1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 16:18:48 -05:00
curl/m4
Yang Tse efe4656656 xc-cc-check.m4: re-evaluate exporting and AC_SUBST'ing vars
Notes:

When running a configure script that has nested packages (for example
libcurl's configure with --enable-ares and c-ares sources embedded in
curl tree) and AC_CONFIG_SUBDIRS([nested-subdir]) machinery is used to
automatically run the nested configure script from within the parent
configure script, it happens that the nested _shell_ script will
inherit shell variables exported from the parent _shell_ script.

If for example parent configure script sets and exports LDFLAGS and LIBS
variables with proper values in order to link either a parent library or
program with a library which will be configured and built by a nested
package; It will happen that when the nested configure script runs, the
nested library does not exist yet and _any_ link-test done in the nested
configure will fail, such as those that autoconf macros perform in order
to detect existing compiler and its characteristics, the result is that
the nested configure script will fail with errors such as:

configure: error: C compiler cannot create executables

For now, we no longer export variables previously exported here.

On the other hand, AC_SUBST'ing them is appropriate and even with nested
packages each package's config.status gets its own package values.

So we reinstate AC_SUBST'ing previously AC_SUBST'ed variables.
2013-01-21 21:29:30 +01:00
..
.gitignore configure: libtool 1.5 tweaks 2011-12-15 18:01:00 +01:00
curl-compilers.m4 configure: autotools compatibility fixes - step I 2013-01-20 20:23:20 +01:00
curl-confopts.m4 configure: autotools compatibility fixes - step I 2013-01-20 20:23:20 +01:00
curl-functions.m4 curl-functions.m4: improve gethostname arg 2 data type check 2012-12-17 16:31:24 +01:00
curl-openssl.m4 configure openssl version check: handle lack of L suffix 2011-09-28 23:09:46 +02:00
curl-override.m4 configure: fix automake 1.13 compatibility 2013-01-14 04:29:43 +01:00
curl-reentrant.m4 build: fix circular header inclusion with other packages 2013-01-09 00:49:50 +01:00
curl-system.m4 remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
xc-cc-check.m4 xc-cc-check.m4: re-evaluate exporting and AC_SUBST'ing vars 2013-01-21 21:29:30 +01:00
xc-translit.m4 xc-translit.m4 fix quoting 2011-06-21 00:03:44 +02:00
xc-val-flgs.m4 configure: autotools compatibility fixes - step I 2013-01-20 20:23:20 +01:00
zz50-xc-ovr.m4 configure: libtool 1.5 tweaks 2011-12-15 18:01:00 +01:00
zz60-xc-ovr.m4 configure: fix automake 1.13 compatibility 2013-01-14 04:29:43 +01:00