Browse Source

Allow out-of-tree build and use config.h file.

pull/1/head
Ghislain MARY 12 years ago
parent
commit
2634faf85a
2 changed files with 10 additions and 1 deletions
  1. +9
    -1
      autogen.sh
  2. +1
    -0
      configure.ac

+ 9
- 1
autogen.sh View File

@ -1,5 +1,11 @@
#!/bin/sh
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
THEDIR=`pwd`
cd $srcdir
#AM_VERSION="1.11"
if ! type aclocal-$AM_VERSION 1>/dev/null 2>&1; then
AUTOMAKE=automake
@ -23,7 +29,9 @@ echo "Generating build scripts for G729 codec..."
set -x
$LIBTOOLIZE --copy --force
$ACLOCAL $ACLOCAL_ARGS
#autoheader
autoheader
$AUTOMAKE --force-missing --add-missing --copy
autoconf
cd $THEDIR

+ 1
- 0
configure.ac View File

@ -11,6 +11,7 @@ AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([tar-ustar --warnings=no-portability])
AC_PROG_LIBTOOL
AC_PROG_CC
AC_CONFIG_HEADERS(config.h)
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_ARG_ENABLE(strict,


Loading…
Cancel
Save