summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2010-06-17 09:12:04 -0700
committerDan Nicholson <dbn.lists@gmail.com>2010-06-17 09:17:46 -0700
commitf76fe525754c9e983443d37bd791ae84e732a345 (patch)
treebb9a02e55e782ed7b35abe4ec86a6928d2327c00
parenta465eacaf681ea34abc3eb9ffac0718df07f63ff (diff)
Force generation of libtool script so it can be used reliably
We want to use the libtool script to determine if indirect dependencies should be listed. LT_OUTPUT forces the script to be created immediately so that the test can be run reliably. This is borrowed from glib's configure.in.
-rw-r--r--.gitignore1
-rw-r--r--configure.in2
2 files changed, 3 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 39896a0..0357dab 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,6 +15,7 @@ config.guess
config.h
config.h.in
config.log
+config.lt
config.status
config.sub
configure
diff --git a/configure.in b/configure.in
index f798281..e58157d 100644
--- a/configure.in
+++ b/configure.in
@@ -7,6 +7,8 @@ AM_MAINTAINER_MODE
AM_CONFIG_HEADER(config.h)
AM_PROG_LIBTOOL
+dnl when using libtool 2.x create libtool early, because it's used in configure
+m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
AC_PROG_CC