diff options
| author | Glenn Morris | 2008-08-10 02:35:40 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-08-10 02:35:40 +0000 |
| commit | e9251f82752dccce1370155cf30831ef6cdb83f3 (patch) | |
| tree | 76b667edffda3602c7a2fc143c6190a349373a95 | |
| parent | ad828eeb8524ee9a06bf12ad2f9c05d06c8aa5e4 (diff) | |
| download | emacs-e9251f82752dccce1370155cf30831ef6cdb83f3.tar.gz emacs-e9251f82752dccce1370155cf30831ef6cdb83f3.zip | |
(cpp_undefs): Rename from `undefs', update uses.
Use $srcdir rather than $top_srcdir. Set before calling AC_OUTPUT,
and explicitly export there. (Bug#507.) (Sync of trunk 2008-07-01).
| -rw-r--r-- | configure.in | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/configure.in b/configure.in index 3d096002cd8..2dd1e5f0e1e 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -3337,6 +3337,16 @@ fi | |||
| 3337 | test "${exec_prefix}" != NONE && | 3337 | test "${exec_prefix}" != NONE && |
| 3338 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`] | 3338 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`] |
| 3339 | 3339 | ||
| 3340 | # Now get this: Some word that is part of the ${srcdir} directory name | ||
| 3341 | # or the ${configuration} value might, just might, happen to be an | ||
| 3342 | # identifier like `sun4' or `i386' or something, and be predefined by | ||
| 3343 | # the C preprocessor to some helpful value like 1, or maybe the empty | ||
| 3344 | # string. Needless to say consequent macro substitutions are less | ||
| 3345 | # than conducive to the makefile finding the correct directory. | ||
| 3346 | [cpp_undefs="`echo $srcdir $configuration $canonical | | ||
| 3347 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | ||
| 3348 | -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"] | ||
| 3349 | |||
| 3340 | ## Check if the C preprocessor will convert `..' to `. .'. If so, set | 3350 | ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
| 3341 | ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | 3351 | ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile |
| 3342 | ## from Makefile.c can correctly provide the arg `-traditional' to the | 3352 | ## from Makefile.c can correctly provide the arg `-traditional' to the |
| @@ -3360,17 +3370,6 @@ done | |||
| 3360 | # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | 3370 | # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c |
| 3361 | # This must be done after src/config.h is built, since we rely on that file. | 3371 | # This must be done after src/config.h is built, since we rely on that file. |
| 3362 | 3372 | ||
| 3363 | # Now get this: Some word that is part of the ${srcdir} directory name | ||
| 3364 | # or the ${configuration} value might, just might, happen to be an | ||
| 3365 | # identifier like `sun4' or `i386' or something, and be predefined by | ||
| 3366 | # the C preprocessor to some helpful value like 1, or maybe the empty | ||
| 3367 | # string. Needless to say consequent macro substitutions are less | ||
| 3368 | # than conducive to the makefile finding the correct directory. | ||
| 3369 | [undefs="`echo $top_srcdir $configuration $canonical | | ||
| 3370 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | ||
| 3371 | -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | ||
| 3372 | `"] | ||
| 3373 | |||
| 3374 | echo creating src/epaths.h | 3373 | echo creating src/epaths.h |
| 3375 | ${MAKE-make} epaths-force | 3374 | ${MAKE-make} epaths-force |
| 3376 | 3375 | ||
| @@ -3389,7 +3388,7 @@ echo creating lib-src/Makefile | |||
| 3389 | sed -e '1,/start of cpp stuff/d'\ | 3388 | sed -e '1,/start of cpp stuff/d'\ |
| 3390 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ | 3389 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
| 3391 | < Makefile.c > junk.c | 3390 | < Makefile.c > junk.c |
| 3392 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ | 3391 | $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
| 3393 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | 3392 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
| 3394 | cat junk1.c junk2.c > Makefile.new | 3393 | cat junk1.c junk2.c > Makefile.new |
| 3395 | rm -f junk.c junk1.c junk2.c | 3394 | rm -f junk.c junk1.c junk2.c |
| @@ -3405,7 +3404,7 @@ echo creating src/Makefile | |||
| 3405 | sed -e '1,/start of cpp stuff/d'\ | 3404 | sed -e '1,/start of cpp stuff/d'\ |
| 3406 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ | 3405 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
| 3407 | < Makefile.c > junk.c | 3406 | < Makefile.c > junk.c |
| 3408 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ | 3407 | $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
| 3409 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | 3408 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
| 3410 | cat junk1.c junk2.c > Makefile.new | 3409 | cat junk1.c junk2.c > Makefile.new |
| 3411 | rm -f junk.c junk1.c junk2.c | 3410 | rm -f junk.c junk1.c junk2.c |
| @@ -3421,7 +3420,7 @@ fi | |||
| 3421 | # This is how we know whether to re-run configure in certain cases. | 3420 | # This is how we know whether to re-run configure in certain cases. |
| 3422 | touch src/config.stamp | 3421 | touch src/config.stamp |
| 3423 | 3422 | ||
| 3424 | ], [GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"]) | 3423 | ], [GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"]) |
| 3425 | 3424 | ||
| 3426 | m4_if(dnl Do not change this comment | 3425 | m4_if(dnl Do not change this comment |
| 3427 | arch-tag: 156a4dd5-bddc-4d18-96ac-f37742cf6a5e | 3426 | arch-tag: 156a4dd5-bddc-4d18-96ac-f37742cf6a5e |