summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <gp@n-dimensional.de>2005-12-25 15:54:08 +0000
committerHans Ulrich Niedermann <gp@n-dimensional.de>2005-12-25 15:54:08 +0000
commitb91b0158d2fd8eabd2e6f2e2de66534a2dcbfb0b (patch)
tree4b53f5729fcee36df24a4448b41e8cf2921a2fc1 /autogen.sh
parent8c095af8172a29f4d7bdd8d08bb2f5ec4925e9df (diff)
downloadlibgphoto2-b91b0158d2fd8eabd2e6f2e2de66534a2dcbfb0b.tar.gz
autogen.sh 0.4.6 fixes two bugs:
1. Use --copy with libtoolize so that auto* can generate its files for libltdl. 2. Determine the tool location to use before querying its version number. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8330 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh98
1 files changed, 49 insertions, 49 deletions
diff --git a/autogen.sh b/autogen.sh
index 117ada562..99bd6182a 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -19,7 +19,7 @@ debug="false"
recursive="false"
dryrun="false"
self="$(basename "$0")"
-autogen_version="0.4.5"
+autogen_version="0.4.6"
########################################################################
@@ -305,7 +305,7 @@ if cd "${dir}"; then
if test "x$AG_LIBLTDL_DIR" != "x"; then
# We have to run libtoolize --ltdl ourselves because
# - autoreconf doesn't run it at all
- execute_command "${LIBTOOLIZE-"libtoolize"}" --ltdl
+ execute_command "${LIBTOOLIZE-"libtoolize"}" --ltdl --copy
# And we have to clean up the generated files after libtoolize because
# - we still want symlinks for the files
# - but we want to (implicitly) AC_CONFIG_SUBDIR and that writes to
@@ -348,6 +348,53 @@ fi
########################################################################
+# If not explicitly given, try to find most convenient tools in $PATH
+#
+# This method only works for tools made for parallel installation with
+# a version suffix, i.e. autoconf and automake.
+#
+# libtool and gettext do not support that, so you'll still have to
+# manually set the respective variables if the default does not work
+# for you.
+
+skip="false"
+oldversion="oldversion"
+while read flag variable binary version restofline; do
+ case "$flag" in
+ +)
+ if "$skip"; then skip=false; fi
+ if test -n "`eval echo \$\{$variable+"set"\}`"; then
+ skip=:
+ else
+ if test -x "`which ${binary}${version}`"; then
+ export "$variable"="${binary}${version}"
+ oldversion="${version}"
+ else
+ skip=:
+ fi
+ fi
+ ;;
+ -)
+ if "$skip"; then :; else
+ export "$variable"="${binary}${oldversion}"
+ fi
+ ;;
+ esac
+done<<EOF
++ AUTOMAKE automake -1.9
+- ACLOCAL aclocal
++ AUTOMAKE automake -1.8
+- ACLOCAL aclocal
++ AUTOCONF autoconf 2.59
+- AUTOHEADER autoheader
+- AUTORECONF autoreconf
++ AUTOCONF autoconf 2.50
+- AUTOHEADER autoheader
+- AUTORECONF autoreconf
+EOF
+
+
+########################################################################
# Parse command line.
# This still accepts more than the help text says it does, but that
# isn't supported.
@@ -407,53 +454,6 @@ fi
########################################################################
-# If not explicitly given, try to find most convenient tools in $PATH
-#
-# This method only works for tools made for parallel installation with
-# a version suffix, i.e. autoconf and automake.
-#
-# libtool and gettext do not support that, so you'll still have to
-# manually set the respective variables if the default does not work
-# for you.
-
-skip="false"
-oldversion="oldversion"
-while read flag variable binary version restofline; do
- case "$flag" in
- +)
- if "$skip"; then skip=false; fi
- if test -n "`eval echo \$\{$variable+"set"\}`"; then
- skip=:
- else
- if test -x "`which ${binary}${version}`"; then
- export "$variable"="${binary}${version}"
- oldversion="${version}"
- else
- skip=:
- fi
- fi
- ;;
- -)
- if "$skip"; then :; else
- export "$variable"="${binary}${oldversion}"
- fi
- ;;
- esac
-done<<EOF
-+ AUTOMAKE automake -1.9
-- ACLOCAL aclocal
-+ AUTOMAKE automake -1.8
-- ACLOCAL aclocal
-+ AUTOCONF autoconf 2.59
-- AUTOHEADER autoheader
-- AUTORECONF autoreconf
-+ AUTOCONF autoconf 2.50
-- AUTOHEADER autoheader
-- AUTORECONF autoreconf
-EOF
-
-
-########################################################################
# Check that tool versions satisfy our needs
if "$check_versions"; then