[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Calling AC_CONFIG_HEADERS from LT_INIT?
From: |
Gary V. Vaughan |
Subject: |
Calling AC_CONFIG_HEADERS from LT_INIT? |
Date: |
Fri, 23 Sep 2005 17:17:48 +0100 |
User-agent: |
Mozilla Thunderbird 1.0 (X11/20050305) |
Hallo Ralf,
I think this represents a thinko in the way LT_INIT decides
whether to call AC_CONFIG_HEADERS, but I'm not sure I follow
what the intention is supposed to be. Could you enlighten me?
$ rm -rf foo && mkdir foo && cd foo
$ cat >configure.ac <<EOF
AC_INIT
LT_INIT
LT_WITH_LTDL
AC_OUTPUT
EOF
$ libtoolize --ltdl --install --quiet
$ aclocal
$ autoconf
$ configure --with-included-ltdl
...
configure: creating ./config.status
config.status: creating config.h
config.status: error: cannot find input file: config.h.in
Why is the top level configure trying to make a config.h for
libltdl? It has one of its own:
$ ls -lF libltdl
4 lrwxr-xr-x 1 gary gary 44 Sep 23 17:05 config-h.in@
4 lrwxr-xr-x 1 gary gary 42 Sep 23 17:05 configure@
How do we fix this code to DTRT (and I'm not sure what TRT is!):
# In order that ltdl.c can compile, run AC_CONFIG_HEADERS for the user
# if they did not call it themself. This is so that ltdl.h can pick up
# the parent projects config.h file, The first file in AC_CONFIG_HEADERS
# must contain the definitions required by ltdl.c.
# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
AC_CONFIG_COMMANDS_PRE([dnl
m4_pattern_allow([^LT_CONFIG_H$])dnl
m4_ifset([AH_HEADER],
[LT_CONFIG_H=AH_HEADER],
[m4_ifset([AC_LIST_HEADERS],
[LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's,^[[
]]*,\,;s,[[ :]].*$,,'`],
[LT_CONFIG_H=config.h;AC_CONFIG_HEADERS([config.h])])])])
AC_SUBST([LT_CONFIG_H])
Cheers,
Gary.
--
Gary V. Vaughan ())_. address@hidden,gnu.org}
Research Scientist ( '/ http://tkd.kicks-ass.net
GNU Hacker / )= http://www.gnu.org/software/libtool
Technical Author `(_~)_ http://sources.redhat.com/autobook
signature.asc
Description: OpenPGP digital signature
- Calling AC_CONFIG_HEADERS from LT_INIT?,
Gary V. Vaughan <=