[augeas-devel] [PATCH 4 of 7] Use a build aux dir (in build/aux)

David Lutterkort dlutter at redhat.com
Thu May 29 23:56:46 UTC 2008


2 files changed, 11 insertions(+), 1 deletion(-)
autogen.sh   |   11 ++++++++++-
configure.ac |    1 +


# HG changeset patch
# User David Lutterkort <dlutter at redhat.com>
# Date 1212104577 25200
# Node ID d86534b6dc334b7c62385e45337d4cacdb392bf9
# Parent  9db8dee781f59e68df1d8936f15c32c7e890a31c
Use a build aux dir (in build/aux)

diff -r 9db8dee781f5 -r d86534b6dc33 autogen.sh
--- a/autogen.sh	Thu May 29 16:40:47 2008 -0700
+++ b/autogen.sh	Thu May 29 16:42:57 2008 -0700
@@ -1,5 +1,7 @@
 #!/bin/sh
 # Run this to generate all the initial makefiles, etc.
+
+BUILD_AUX=build/aux
 
 set -e
 srcdir=`dirname $0`
@@ -43,14 +45,21 @@ if test -z "$*"; then
         echo "the $0 command line."
 fi
 
+mkdir -p $BUILD_AUX
+
+$LIBTOOLIZE --copy --force
 aclocal
-$LIBTOOLIZE --force
 autoheader
 automake --add-missing
 autoconf
 
 cd $THEDIR
 
+if test x$OBJ_DIR != x; then
+    mkdir -p "$OBJ_DIR"
+    cd "$OBJ_DIR"
+fi
+
 $srcdir/configure --enable-warnings "$@" && {
     echo
     echo "Now type 'make' to compile augeas."
diff -r 9db8dee781f5 -r d86534b6dc33 configure.ac
--- a/configure.ac	Thu May 29 16:40:47 2008 -0700
+++ b/configure.ac	Thu May 29 16:42:57 2008 -0700
@@ -1,5 +1,6 @@ AC_INIT(augeas, 0.1.1)
 AC_INIT(augeas, 0.1.1)
 AC_CONFIG_SRCDIR([src/augeas.c])
+AC_CONFIG_AUX_DIR([build/aux])
 AM_CONFIG_HEADER([config.h])
 AM_INIT_AUTOMAKE([-Wno-portability])
 




More information about the augeas-devel mailing list