aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2011-01-21 16:13:42 -0800
committerPaul Eggert2011-01-21 16:13:42 -0800
commit7d77be379f282812eec91436b174d3d00c010cb5 (patch)
tree5697f480552fbbf7b5d35beecf7dd8a8200beafe
parentf205c6e78b18365fef34192a66d139796d051f51 (diff)
parentb06b1098fc4c4ee793c87c4b4b63366a1422d64f (diff)
downloademacs-7d77be379f282812eec91436b174d3d00c010cb5.tar.gz
emacs-7d77be379f282812eec91436b174d3d00c010cb5.zip
Merge: src/config.in: shrink slightly
-rw-r--r--ChangeLog10
-rwxr-xr-xconfigure157
-rw-r--r--configure.in15
-rw-r--r--m4/getopt.m43
-rw-r--r--m4/gnulib-common.m412
-rw-r--r--m4/include_next.m497
-rw-r--r--m4/multiarch.m47
-rw-r--r--m4/stddef_h.m44
-rw-r--r--m4/time_h.m44
-rw-r--r--m4/unistd_h.m44
-rw-r--r--src/config.in19
11 files changed, 174 insertions, 158 deletions
diff --git a/ChangeLog b/ChangeLog
index 1a2dc58f802..364fe879c5e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
12011-01-21 Paul Eggert <eggert@cs.ucla.edu> 12011-01-21 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 src/config.in: shrink slightly
4 * configure.in: Invoke the new gnulib macro gl_ASSERT_NO_GNULIB_TESTS.
5 This makes src/config.in a bit smaller, by removing identifiers
6 like GNULIB_TEST_MKTIME that Emacs does not need.
7 * m4/getopt.m4, m4/gnulib-common.m4, m4/include_next.m4:
8 * m4/multiarch.m4, m4/stddef_h.m4, m4/time_h.m4, m4/unistd_h.m4:
9 Sync from gnulib. This removes a few more unnecessary symbols from
10 src/config.in, such as AA_APPLE_UNIVERSAL_BUILD and HAVE_STDDEF_H.
11 * configure, src/config.in: Regenerate.
12
3 aclocal.m4: tweaks to regenerate more conveniently 13 aclocal.m4: tweaks to regenerate more conveniently
4 This attempts to act better when the source is in a weird state. See 14 This attempts to act better when the source is in a weird state. See
5 <http://lists.gnu.org/archive/html/emacs-devel/2011-01/msg00734.html>. 15 <http://lists.gnu.org/archive/html/emacs-devel/2011-01/msg00734.html>.
diff --git a/configure b/configure
index 56701c27f5b..7e51212fc28 100755
--- a/configure
+++ b/configure
@@ -2658,8 +2658,6 @@ as_fn_append ac_header_list " sys/param.h"
2658gl_getopt_required=GNU 2658gl_getopt_required=GNU
2659as_fn_append ac_header_list " getopt.h" 2659as_fn_append ac_header_list " getopt.h"
2660as_fn_append ac_func_list " alarm" 2660as_fn_append ac_func_list " alarm"
2661as_fn_append ac_header_list " stddef.h"
2662as_fn_append ac_header_list " time.h"
2663as_fn_append ac_header_list " sys/time.h" 2661as_fn_append ac_header_list " sys/time.h"
2664as_fn_append ac_func_list " localtime_r" 2662as_fn_append ac_func_list " localtime_r"
2665# Check that the precious variables saved in the cache have kept the same 2663# Check that the precious variables saved in the cache have kept the same
@@ -13570,6 +13568,9 @@ fi
13570 13568
13571 13569
13572 13570
13571
13572
13573
13573 LIBC_FATAL_STDERR_=1 13574 LIBC_FATAL_STDERR_=1
13574 export LIBC_FATAL_STDERR_ 13575 export LIBC_FATAL_STDERR_
13575 13576
@@ -13851,6 +13852,9 @@ $as_echo "$gl_cv_pragma_columns" >&6; }
13851 13852
13852 13853
13853 13854
13855
13856
13857
13854 if test $gl_cv_have_include_next = yes; then 13858 if test $gl_cv_have_include_next = yes; then
13855 gl_cv_next_getopt_h='<'getopt.h'>' 13859 gl_cv_next_getopt_h='<'getopt.h'>'
13856 else 13860 else
@@ -13860,26 +13864,29 @@ if ${gl_cv_next_getopt_h+:} false; then :
13860 $as_echo_n "(cached) " >&6 13864 $as_echo_n "(cached) " >&6
13861else 13865else
13862 13866
13863 if test $ac_cv_header_getopt_h = yes; then 13867 if test $ac_cv_header_getopt_h = yes; then
13864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13868
13869
13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865/* end confdefs.h. */ 13871/* end confdefs.h. */
13866#include <getopt.h> 13872#include <getopt.h>
13867 13873
13868_ACEOF 13874_ACEOF
13869 case "$host_os" in 13875 case "$host_os" in
13870 aix*) gl_absname_cpp="$ac_cpp -C" ;; 13876 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13871 *) gl_absname_cpp="$ac_cpp" ;; 13877 *) gl_absname_cpp="$ac_cpp" ;;
13872 esac 13878 esac
13873 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 13879 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13874 sed -n '\#/getopt.h#{ 13880 sed -n '\#/getopt.h#{
13875 s#.*"\(.*/getopt.h\)".*#\1# 13881 s#.*"\(.*/getopt.h\)".*#\1#
13876 s#^/[^/]#//&# 13882 s#^/[^/]#//&#
13877 p 13883 p
13878 q 13884 q
13879 }'`'"' 13885 }'`'"'
13880 else 13886 else
13881 gl_cv_next_getopt_h='<'getopt.h'>' 13887 gl_cv_next_getopt_h='<'getopt.h'>'
13882 fi 13888 fi
13889
13883 13890
13884fi 13891fi
13885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 13892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
@@ -14337,9 +14344,6 @@ if ac_fn_c_try_compile "$LINENO"; then :
14337fi 14344fi
14338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14339 if test $gl_cv_c_multiarch = yes; then 14346 if test $gl_cv_c_multiarch = yes; then
14340
14341$as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14342
14343 APPLE_UNIVERSAL_BUILD=1 14347 APPLE_UNIVERSAL_BUILD=1
14344 else 14348 else
14345 APPLE_UNIVERSAL_BUILD=0 14349 APPLE_UNIVERSAL_BUILD=0
@@ -14426,8 +14430,6 @@ $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14426 14430
14427 fi 14431 fi
14428 14432
14429
14430
14431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 14433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14432$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 14434$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14433if ${ac_cv_c_restrict+:} false; then : 14435if ${ac_cv_c_restrict+:} false; then :
@@ -14478,8 +14480,6 @@ _ACEOF
14478 14480
14479 14481
14480 14482
14481
14482
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5 14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14484$as_echo_n "checking for struct timespec in <time.h>... " >&6; } 14484$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14485if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then : 14485if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
@@ -14586,6 +14586,8 @@ $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14586 14586
14587 14587
14588 14588
14589
14590
14589 if test $gl_cv_have_include_next = yes; then 14591 if test $gl_cv_have_include_next = yes; then
14590 gl_cv_next_time_h='<'time.h'>' 14592 gl_cv_next_time_h='<'time.h'>'
14591 else 14593 else
@@ -14595,26 +14597,23 @@ if ${gl_cv_next_time_h+:} false; then :
14595 $as_echo_n "(cached) " >&6 14597 $as_echo_n "(cached) " >&6
14596else 14598else
14597 14599
14598 if test $ac_cv_header_time_h = yes; then 14600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600/* end confdefs.h. */ 14601/* end confdefs.h. */
14601#include <time.h> 14602#include <time.h>
14602 14603
14603_ACEOF 14604_ACEOF
14604 case "$host_os" in 14605 case "$host_os" in
14605 aix*) gl_absname_cpp="$ac_cpp -C" ;; 14606 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14606 *) gl_absname_cpp="$ac_cpp" ;; 14607 *) gl_absname_cpp="$ac_cpp" ;;
14607 esac 14608 esac
14608 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 14609 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14609 sed -n '\#/time.h#{ 14610 sed -n '\#/time.h#{
14610 s#.*"\(.*/time.h\)".*#\1# 14611 s#.*"\(.*/time.h\)".*#\1#
14611 s#^/[^/]#//&# 14612 s#^/[^/]#//&#
14612 p 14613 p
14613 q 14614 q
14614 }'`'"' 14615 }'`'"'
14615 else 14616
14616 gl_cv_next_time_h='<'time.h'>'
14617 fi
14618 14617
14619fi 14618fi
14620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5 14619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
@@ -14635,6 +14634,7 @@ $as_echo "$gl_cv_next_time_h" >&6; }
14635 14634
14636 14635
14637 14636
14637
14638ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default" 14638ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
14639if test "x$ac_cv_have_decl_localtime_r" = xyes; then : 14639if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
14640 ac_have_decl=1 14640 ac_have_decl=1
@@ -14683,10 +14683,6 @@ fi
14683 14683
14684 14684
14685 14685
14686
14687$as_echo "#define GNULIB_TEST_GETOPT_GNU 1" >>confdefs.h
14688
14689
14690 # Code from module getopt-posix: 14686 # Code from module getopt-posix:
14691 14687
14692 14688
@@ -14989,10 +14985,6 @@ fi
14989 14985
14990 14986
14991 14987
14992$as_echo "#define GNULIB_TEST_MKTIME 1" >>confdefs.h
14993
14994
14995
14996 # Code from module multiarch: 14988 # Code from module multiarch:
14997 14989
14998 # Code from module stddef: 14990 # Code from module stddef:
@@ -15041,6 +15033,8 @@ $as_echo "$gl_cv_decl_null_works" >&6; }
15041 15033
15042 15034
15043 15035
15036
15037
15044 if test $gl_cv_have_include_next = yes; then 15038 if test $gl_cv_have_include_next = yes; then
15045 gl_cv_next_stddef_h='<'stddef.h'>' 15039 gl_cv_next_stddef_h='<'stddef.h'>'
15046 else 15040 else
@@ -15050,26 +15044,23 @@ if ${gl_cv_next_stddef_h+:} false; then :
15050 $as_echo_n "(cached) " >&6 15044 $as_echo_n "(cached) " >&6
15051else 15045else
15052 15046
15053 if test $ac_cv_header_stddef_h = yes; then 15047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055/* end confdefs.h. */ 15048/* end confdefs.h. */
15056#include <stddef.h> 15049#include <stddef.h>
15057 15050
15058_ACEOF 15051_ACEOF
15059 case "$host_os" in 15052 case "$host_os" in
15060 aix*) gl_absname_cpp="$ac_cpp -C" ;; 15053 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15061 *) gl_absname_cpp="$ac_cpp" ;; 15054 *) gl_absname_cpp="$ac_cpp" ;;
15062 esac 15055 esac
15063 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 15056 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15064 sed -n '\#/stddef.h#{ 15057 sed -n '\#/stddef.h#{
15065 s#.*"\(.*/stddef.h\)".*#\1# 15058 s#.*"\(.*/stddef.h\)".*#\1#
15066 s#^/[^/]#//&# 15059 s#^/[^/]#//&#
15067 p 15060 p
15068 q 15061 q
15069 }'`'"' 15062 }'`'"'
15070 else 15063
15071 gl_cv_next_stddef_h='<'stddef.h'>'
15072 fi
15073 15064
15074fi 15065fi
15075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 15066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
@@ -15088,6 +15079,7 @@ $as_echo "$gl_cv_next_stddef_h" >&6; }
15088 15079
15089 15080
15090 15081
15082
15091 fi 15083 fi
15092 15084
15093 # Code from module time: 15085 # Code from module time:
@@ -15174,11 +15166,10 @@ $as_echo "$gl_cv_time_r_posix" >&6; }
15174 15166
15175 15167
15176 15168
15177$as_echo "#define GNULIB_TEST_TIME_R 1" >>confdefs.h 15169 # Code from module unistd:
15178 15170
15179 15171
15180 15172
15181 # Code from module unistd:
15182 15173
15183 15174
15184 15175
@@ -15198,26 +15189,29 @@ if ${gl_cv_next_unistd_h+:} false; then :
15198 $as_echo_n "(cached) " >&6 15189 $as_echo_n "(cached) " >&6
15199else 15190else
15200 15191
15201 if test $ac_cv_header_unistd_h = yes; then 15192 if test $ac_cv_header_unistd_h = yes; then
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15193
15194
15195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203/* end confdefs.h. */ 15196/* end confdefs.h. */
15204#include <unistd.h> 15197#include <unistd.h>
15205 15198
15206_ACEOF 15199_ACEOF
15207 case "$host_os" in 15200 case "$host_os" in
15208 aix*) gl_absname_cpp="$ac_cpp -C" ;; 15201 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15209 *) gl_absname_cpp="$ac_cpp" ;; 15202 *) gl_absname_cpp="$ac_cpp" ;;
15210 esac 15203 esac
15211 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 15204 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15212 sed -n '\#/unistd.h#{ 15205 sed -n '\#/unistd.h#{
15213 s#.*"\(.*/unistd.h\)".*#\1# 15206 s#.*"\(.*/unistd.h\)".*#\1#
15214 s#^/[^/]#//&# 15207 s#^/[^/]#//&#
15215 p 15208 p
15216 q 15209 q
15217 }'`'"' 15210 }'`'"'
15218 else 15211 else
15219 gl_cv_next_unistd_h='<'unistd.h'>' 15212 gl_cv_next_unistd_h='<'unistd.h'>'
15220 fi 15213 fi
15214
15221 15215
15222fi 15216fi
15223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 15217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
@@ -15237,7 +15231,6 @@ $as_echo "$gl_cv_next_unistd_h" >&6; }
15237 15231
15238 15232
15239 15233
15240
15241 if test $ac_cv_header_unistd_h = yes; then 15234 if test $ac_cv_header_unistd_h = yes; then
15242 HAVE_UNISTD_H=1 15235 HAVE_UNISTD_H=1
15243 else 15236 else
diff --git a/configure.in b/configure.in
index c338ff37a60..bd1133319ba 100644
--- a/configure.in
+++ b/configure.in
@@ -877,11 +877,11 @@ case "$opsys" in
877 # emacs, instead of the generic ELF dump code found in unexelf.c. 877 # emacs, instead of the generic ELF dump code found in unexelf.c.
878 # The resulting binary has a complete symbol table, and is better 878 # The resulting binary has a complete symbol table, and is better
879 # for debugging and other observability tools (debuggers, pstack, etc). 879 # for debugging and other observability tools (debuggers, pstack, etc).
880 # 880 #
881 # If you encounter a problem using dldump(), please consider sending 881 # If you encounter a problem using dldump(), please consider sending
882 # a message to the OpenSolaris tools-linking mailing list: 882 # a message to the OpenSolaris tools-linking mailing list:
883 # http://mail.opensolaris.org/mailman/listinfo/tools-linking 883 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
884 # 884 #
885 # It is likely that dldump() works with older Solaris too, but this has 885 # It is likely that dldump() works with older Solaris too, but this has
886 # not been tested, so for now this change is for Solaris 10 or newer. 886 # not been tested, so for now this change is for Solaris 10 or newer.
887 UNEXEC_OBJ=unexsol.o 887 UNEXEC_OBJ=unexsol.o
@@ -948,7 +948,7 @@ if test "$machine" = "alpha"; then
948 AC_MSG_ERROR([What gives? Fix me if DEC Unix supports ELF now.]) 948 AC_MSG_ERROR([What gives? Fix me if DEC Unix supports ELF now.])
949 fi 949 fi
950 else 950 else
951 UNEXEC_OBJ=unexalpha.o 951 UNEXEC_OBJ=unexalpha.o
952 fi 952 fi
953fi 953fi
954AC_SUBST(C_SWITCH_MACHINE) 954AC_SUBST(C_SWITCH_MACHINE)
@@ -1130,7 +1130,7 @@ AC_DEFUN([PKG_CHECK_MODULES], [
1130 1130
1131if test "${with_sound}" != "no"; then 1131if test "${with_sound}" != "no"; then
1132 # Sound support for GNU/Linux and the free BSDs. 1132 # Sound support for GNU/Linux and the free BSDs.
1133 AC_CHECK_HEADERS(machine/soundcard.h sys/soundcard.h soundcard.h, 1133 AC_CHECK_HEADERS(machine/soundcard.h sys/soundcard.h soundcard.h,
1134 have_sound_header=yes) 1134 have_sound_header=yes)
1135 # Emulation library used on NetBSD. 1135 # Emulation library used on NetBSD.
1136 AC_CHECK_LIB(ossaudio, _oss_ioctl, LIBSOUND=-lossaudio, LIBSOUND=) 1136 AC_CHECK_LIB(ossaudio, _oss_ioctl, LIBSOUND=-lossaudio, LIBSOUND=)
@@ -1817,7 +1817,7 @@ if test "${HAVE_X11}" = "yes"; then
1817 PKG_CHECK_MODULES(IMAGEMAGICK, $IMAGEMAGICK_MODULE, HAVE_IMAGEMAGICK=yes, :) 1817 PKG_CHECK_MODULES(IMAGEMAGICK, $IMAGEMAGICK_MODULE, HAVE_IMAGEMAGICK=yes, :)
1818 AC_SUBST(IMAGEMAGICK_CFLAGS) 1818 AC_SUBST(IMAGEMAGICK_CFLAGS)
1819 AC_SUBST(IMAGEMAGICK_LIBS) 1819 AC_SUBST(IMAGEMAGICK_LIBS)
1820 1820
1821 if test $HAVE_IMAGEMAGICK = yes; then 1821 if test $HAVE_IMAGEMAGICK = yes; then
1822 AC_DEFINE(HAVE_IMAGEMAGICK, 1, [Define to 1 if using imagemagick.]) 1822 AC_DEFINE(HAVE_IMAGEMAGICK, 1, [Define to 1 if using imagemagick.])
1823 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS" 1823 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
@@ -2670,6 +2670,7 @@ AC_FUNC_FSEEKO
2670AC_FUNC_GETPGRP 2670AC_FUNC_GETPGRP
2671 2671
2672# Configure gnulib. 2672# Configure gnulib.
2673gl_ASSERT_NO_GNULIB_TESTS
2673gl_INIT 2674gl_INIT
2674 2675
2675AC_FUNC_STRFTIME 2676AC_FUNC_STRFTIME
@@ -3241,7 +3242,7 @@ fi
3241 3242
3242if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then 3243if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
3243 OLDXMENU_TARGET= 3244 OLDXMENU_TARGET=
3244 OLDXMENU=nothing 3245 OLDXMENU=nothing
3245 LIBXMENU= 3246 LIBXMENU=
3246 OLDXMENU_DEPS= 3247 OLDXMENU_DEPS=
3247fi 3248fi
@@ -3305,7 +3306,7 @@ case "$opsys" in
3305 headerpad_extra=690 3306 headerpad_extra=690
3306 fi 3307 fi
3307 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra" 3308 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
3308 3309
3309 ## This is here because src/Makefile.in did some extra fiddling around 3310 ## This is here because src/Makefile.in did some extra fiddling around
3310 ## with LD_SWITCH_SYSTEM. The cpp logic was: 3311 ## with LD_SWITCH_SYSTEM. The cpp logic was:
3311 ## #ifndef LD_SWITCH_SYSTEM 3312 ## #ifndef LD_SWITCH_SYSTEM
diff --git a/m4/getopt.m4 b/m4/getopt.m4
index 793ab789ded..d351b842be3 100644
--- a/m4/getopt.m4
+++ b/m4/getopt.m4
@@ -1,4 +1,4 @@
1# getopt.m4 serial 32 1# getopt.m4 serial 33
2dnl Copyright (C) 2002-2006, 2008-2011 Free Software Foundation, Inc. 2dnl Copyright (C) 2002-2006, 2008-2011 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -56,7 +56,6 @@ AC_DEFUN([gl_GETOPT_CHECK_HEADERS],
56 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 56 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
57 57
58 gl_CHECK_NEXT_HEADERS([getopt.h]) 58 gl_CHECK_NEXT_HEADERS([getopt.h])
59 AC_CHECK_HEADERS_ONCE([getopt.h])
60 if test $ac_cv_header_getopt_h = yes; then 59 if test $ac_cv_header_getopt_h = yes; then
61 HAVE_GETOPT_H=1 60 HAVE_GETOPT_H=1
62 else 61 else
diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4
index 1a1794ce9af..c4f41f180ba 100644
--- a/m4/gnulib-common.m4
+++ b/m4/gnulib-common.m4
@@ -1,4 +1,4 @@
1# gnulib-common.m4 serial 21 1# gnulib-common.m4 serial 22
2dnl Copyright (C) 2007-2011 Free Software Foundation, Inc. 2dnl Copyright (C) 2007-2011 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -102,6 +102,16 @@ AC_DEFUN([gl_MODULE_INDICATOR_FOR_TESTS],
102 [Define to 1 when the gnulib module $1 should be tested.]) 102 [Define to 1 when the gnulib module $1 should be tested.])
103]) 103])
104 104
105# gl_ASSERT_NO_GNULIB_TESTS
106# asserts that there will be no gnulib tests in the scope of the configure.ac
107# and thereby enables an optimization of config.h.
108# Used by Emacs.
109AC_DEFUN([gl_ASSERT_NO_GNULIB_TESTS],
110[
111 dnl Override gl_MODULE_INDICATOR_FOR_TESTS.
112 AC_DEFUN([gl_MODULE_INDICATOR_FOR_TESTS], [])
113])
114
105# Test whether <features.h> exists. 115# Test whether <features.h> exists.
106# Set HAVE_FEATURES_H. 116# Set HAVE_FEATURES_H.
107AC_DEFUN([gl_FEATURES_H], 117AC_DEFUN([gl_FEATURES_H],
diff --git a/m4/include_next.m4 b/m4/include_next.m4
index ed05e1de964..b3c78491855 100644
--- a/m4/include_next.m4
+++ b/m4/include_next.m4
@@ -1,4 +1,4 @@
1# include_next.m4 serial 16 1# include_next.m4 serial 18
2dnl Copyright (C) 2006-2011 Free Software Foundation, Inc. 2dnl Copyright (C) 2006-2011 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -147,11 +147,33 @@ choke me
147# Note: This macro assumes that the header file is not empty after 147# Note: This macro assumes that the header file is not empty after
148# preprocessing, i.e. it does not only define preprocessor macros but also 148# preprocessing, i.e. it does not only define preprocessor macros but also
149# provides some type/enum definitions or function/variable declarations. 149# provides some type/enum definitions or function/variable declarations.
150#
151# This macro also checks whether each header exists, by invoking
152# AC_CHECK_HEADERS_ONCE or AC_CHECK_HEADERS on each argument.
150AC_DEFUN([gl_CHECK_NEXT_HEADERS], 153AC_DEFUN([gl_CHECK_NEXT_HEADERS],
151[ 154[
155 gl_NEXT_HEADERS_INTERNAL([$1], [check])
156])
157
158# gl_NEXT_HEADERS(HEADER1 HEADER2 ...)
159# ------------------------------------
160# Like gl_CHECK_NEXT_HEADERS, except do not check whether the headers exist.
161# This is suitable for headers like <stddef.h> that are standardized by C89
162# and therefore can be assumed to exist.
163AC_DEFUN([gl_NEXT_HEADERS],
164[
165 gl_NEXT_HEADERS_INTERNAL([$1], [assume])
166])
167
168# The guts of gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS.
169AC_DEFUN([gl_NEXT_HEADERS_INTERNAL],
170[
152 AC_REQUIRE([gl_INCLUDE_NEXT]) 171 AC_REQUIRE([gl_INCLUDE_NEXT])
153 AC_REQUIRE([AC_CANONICAL_HOST]) 172 AC_REQUIRE([AC_CANONICAL_HOST])
154 AC_CHECK_HEADERS_ONCE([$1]) 173
174 m4_if([$2], [check],
175 [AC_CHECK_HEADERS_ONCE([$1])
176 ])
155 177
156 m4_foreach_w([gl_HEADER_NAME], [$1], 178 m4_foreach_w([gl_HEADER_NAME], [$1],
157 [AS_VAR_PUSHDEF([gl_next_header], 179 [AS_VAR_PUSHDEF([gl_next_header],
@@ -162,39 +184,44 @@ AC_DEFUN([gl_CHECK_NEXT_HEADERS],
162 AC_CACHE_CHECK( 184 AC_CACHE_CHECK(
163 [absolute name of <]m4_defn([gl_HEADER_NAME])[>], 185 [absolute name of <]m4_defn([gl_HEADER_NAME])[>],
164 m4_defn([gl_next_header]), 186 m4_defn([gl_next_header]),
165 [AS_VAR_PUSHDEF([gl_header_exists], 187 [m4_if([$2], [check],
166 [ac_cv_header_]m4_defn([gl_HEADER_NAME])) 188 [AS_VAR_PUSHDEF([gl_header_exists],
167 if test AS_VAR_GET(gl_header_exists) = yes; then 189 [ac_cv_header_]m4_defn([gl_HEADER_NAME]))
168 AC_LANG_CONFTEST( 190 if test AS_VAR_GET(gl_header_exists) = yes; then
169 [AC_LANG_SOURCE( 191 AS_VAR_POPDEF([gl_header_exists])
170 [[#include <]]m4_dquote(m4_defn([gl_HEADER_NAME]))[[>]] 192 ])
171 )]) 193 AC_LANG_CONFTEST(
172 dnl AIX "xlc -E" and "cc -E" omit #line directives for header files 194 [AC_LANG_SOURCE(
173 dnl that contain only a #include of other header files and no 195 [[#include <]]m4_dquote(m4_defn([gl_HEADER_NAME]))[[>]]
174 dnl non-comment tokens of their own. This leads to a failure to 196 )])
175 dnl detect the absolute name of <dirent.h>, <signal.h>, <poll.h> 197 dnl AIX "xlc -E" and "cc -E" omit #line directives for header
176 dnl and others. The workaround is to force preservation of comments 198 dnl files that contain only a #include of other header files and
177 dnl through option -C. This ensures all necessary #line directives 199 dnl no non-comment tokens of their own. This leads to a failure
178 dnl are present. GCC supports option -C as well. 200 dnl to detect the absolute name of <dirent.h>, <signal.h>,
179 case "$host_os" in 201 dnl <poll.h> and others. The workaround is to force preservation
180 aix*) gl_absname_cpp="$ac_cpp -C" ;; 202 dnl of comments through option -C. This ensures all necessary
181 *) gl_absname_cpp="$ac_cpp" ;; 203 dnl #line directives are present. GCC supports option -C as well.
182 esac 204 case "$host_os" in
183 dnl eval is necessary to expand gl_absname_cpp. 205 aix*) gl_absname_cpp="$ac_cpp -C" ;;
184 dnl Ultrix and Pyramid sh refuse to redirect output of eval, 206 *) gl_absname_cpp="$ac_cpp" ;;
185 dnl so use subshell. 207 esac
186 AS_VAR_SET([gl_next_header], 208 dnl eval is necessary to expand gl_absname_cpp.
187 ['"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | 209 dnl Ultrix and Pyramid sh refuse to redirect output of eval,
188 sed -n '\#/]m4_defn([gl_HEADER_NAME])[#{ 210 dnl so use subshell.
189 s#.*"\(.*/]m4_defn([gl_HEADER_NAME])[\)".*#\1# 211 AS_VAR_SET([gl_next_header],
190 s#^/[^/]#//&# 212 ['"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD |
191 p 213 sed -n '\#/]m4_defn([gl_HEADER_NAME])[#{
192 q 214 s#.*"\(.*/]m4_defn([gl_HEADER_NAME])[\)".*#\1#
193 }'`'"']) 215 s#^/[^/]#//&#
194 else 216 p
195 AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>']) 217 q
196 fi 218 }'`'"'])
197 AS_VAR_POPDEF([gl_header_exists])]) 219 m4_if([$2], [check],
220 [else
221 AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>'])
222 fi
223 ])
224 ])
198 fi 225 fi
199 AC_SUBST( 226 AC_SUBST(
200 AS_TR_CPP([NEXT_]m4_defn([gl_HEADER_NAME])), 227 AS_TR_CPP([NEXT_]m4_defn([gl_HEADER_NAME])),
diff --git a/m4/multiarch.m4 b/m4/multiarch.m4
index 47e3e63a3ed..691d89270b6 100644
--- a/m4/multiarch.m4
+++ b/m4/multiarch.m4
@@ -1,4 +1,4 @@
1# multiarch.m4 serial 5 1# multiarch.m4 serial 6
2dnl Copyright (C) 2008-2011 Free Software Foundation, Inc. 2dnl Copyright (C) 2008-2011 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -16,8 +16,7 @@ dnl with or without modifications, as long as this notice is preserved.
16# CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ 16# CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
17# CPP="gcc -E" CXXCPP="g++ -E" 17# CPP="gcc -E" CXXCPP="g++ -E"
18# 18#
19# Detect this situation and set the macro AA_APPLE_UNIVERSAL_BUILD at the 19# Detect this situation and set APPLE_UNIVERSAL_BUILD accordingly.
20# beginning of config.h and set APPLE_UNIVERSAL_BUILD accordingly.
21 20
22AC_DEFUN_ONCE([gl_MULTIARCH], 21AC_DEFUN_ONCE([gl_MULTIARCH],
23[ 22[
@@ -55,8 +54,6 @@ AC_DEFUN_ONCE([gl_MULTIARCH],
55 done 54 done
56 ]) 55 ])
57 if test $gl_cv_c_multiarch = yes; then 56 if test $gl_cv_c_multiarch = yes; then
58 AC_DEFINE([AA_APPLE_UNIVERSAL_BUILD], [1],
59 [Define if the compiler is building for multiple architectures of Apple platforms at once.])
60 APPLE_UNIVERSAL_BUILD=1 57 APPLE_UNIVERSAL_BUILD=1
61 else 58 else
62 APPLE_UNIVERSAL_BUILD=0 59 APPLE_UNIVERSAL_BUILD=0
diff --git a/m4/stddef_h.m4 b/m4/stddef_h.m4
index 3a5ecc57117..1942b6aa0df 100644
--- a/m4/stddef_h.m4
+++ b/m4/stddef_h.m4
@@ -1,5 +1,5 @@
1dnl A placeholder for POSIX 2008 <stddef.h>, for platforms that have issues. 1dnl A placeholder for POSIX 2008 <stddef.h>, for platforms that have issues.
2# stddef_h.m4 serial 2 2# stddef_h.m4 serial 3
3dnl Copyright (C) 2009-2011 Free Software Foundation, Inc. 3dnl Copyright (C) 2009-2011 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
@@ -25,7 +25,7 @@ AC_DEFUN([gl_STDDEF_H],
25 STDDEF_H=stddef.h 25 STDDEF_H=stddef.h
26 fi 26 fi
27 if test -n "$STDDEF_H"; then 27 if test -n "$STDDEF_H"; then
28 gl_CHECK_NEXT_HEADERS([stddef.h]) 28 gl_NEXT_HEADERS([stddef.h])
29 fi 29 fi
30]) 30])
31 31
diff --git a/m4/time_h.m4 b/m4/time_h.m4
index dc601c574ae..615da1cfd39 100644
--- a/m4/time_h.m4
+++ b/m4/time_h.m4
@@ -2,7 +2,7 @@
2 2
3# Copyright (C) 2000-2001, 2003-2007, 2009-2011 Free Software Foundation, Inc. 3# Copyright (C) 2000-2001, 2003-2007, 2009-2011 Free Software Foundation, Inc.
4 4
5# serial 3 5# serial 4
6 6
7# This file is free software; the Free Software Foundation 7# This file is free software; the Free Software Foundation
8# gives unlimited permission to copy and/or distribute it, 8# gives unlimited permission to copy and/or distribute it,
@@ -21,7 +21,7 @@ AC_DEFUN([gl_HEADER_TIME_H_BODY],
21[ 21[
22 AC_REQUIRE([AC_C_RESTRICT]) 22 AC_REQUIRE([AC_C_RESTRICT])
23 AC_REQUIRE([gl_HEADER_TIME_H_DEFAULTS]) 23 AC_REQUIRE([gl_HEADER_TIME_H_DEFAULTS])
24 gl_CHECK_NEXT_HEADERS([time.h]) 24 gl_NEXT_HEADERS([time.h])
25 AC_REQUIRE([gl_CHECK_TYPE_STRUCT_TIMESPEC]) 25 AC_REQUIRE([gl_CHECK_TYPE_STRUCT_TIMESPEC])
26]) 26])
27 27
diff --git a/m4/unistd_h.m4 b/m4/unistd_h.m4
index ba45e8b7aab..c81a1138e92 100644
--- a/m4/unistd_h.m4
+++ b/m4/unistd_h.m4
@@ -1,4 +1,4 @@
1# unistd_h.m4 serial 52 1# unistd_h.m4 serial 53
2dnl Copyright (C) 2006-2011 Free Software Foundation, Inc. 2dnl Copyright (C) 2006-2011 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -14,8 +14,6 @@ AC_DEFUN([gl_UNISTD_H],
14 AC_REQUIRE([AC_C_INLINE]) 14 AC_REQUIRE([AC_C_INLINE])
15 15
16 gl_CHECK_NEXT_HEADERS([unistd.h]) 16 gl_CHECK_NEXT_HEADERS([unistd.h])
17
18 AC_CHECK_HEADERS_ONCE([unistd.h])
19 if test $ac_cv_header_unistd_h = yes; then 17 if test $ac_cv_header_unistd_h = yes; then
20 HAVE_UNISTD_H=1 18 HAVE_UNISTD_H=1
21 else 19 else
diff --git a/src/config.in b/src/config.in
index 62e83eea334..c706be3e865 100644
--- a/src/config.in
+++ b/src/config.in
@@ -27,10 +27,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
27#define EMACS_CONFIG_H 27#define EMACS_CONFIG_H
28 28
29 29
30/* Define if the compiler is building for multiple architectures of Apple
31 platforms at once. */
32#undef AA_APPLE_UNIVERSAL_BUILD
33
34/* Define if building universal (internal helper macro) */ 30/* Define if building universal (internal helper macro) */
35#undef AC_APPLE_UNIVERSAL_BUILD 31#undef AC_APPLE_UNIVERSAL_BUILD
36 32
@@ -87,15 +83,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
87/* Define to 1 if gettimeofday accepts only one argument. */ 83/* Define to 1 if gettimeofday accepts only one argument. */
88#undef GETTIMEOFDAY_ONE_ARGUMENT 84#undef GETTIMEOFDAY_ONE_ARGUMENT
89 85
90/* Define to 1 when the gnulib module getopt-gnu should be tested. */
91#undef GNULIB_TEST_GETOPT_GNU
92
93/* Define to 1 when the gnulib module mktime should be tested. */
94#undef GNULIB_TEST_MKTIME
95
96/* Define to 1 when the gnulib module time_r should be tested. */
97#undef GNULIB_TEST_TIME_R
98
99/* Define to 1 if you want to use the GNU memory allocator. */ 86/* Define to 1 if you want to use the GNU memory allocator. */
100#undef GNU_MALLOC 87#undef GNU_MALLOC
101 88
@@ -752,9 +739,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
752/* Define to 1 if `speed_t' is declared by <termios.h>. */ 739/* Define to 1 if `speed_t' is declared by <termios.h>. */
753#undef HAVE_SPEED_T 740#undef HAVE_SPEED_T
754 741
755/* Define to 1 if you have the <stddef.h> header file. */
756#undef HAVE_STDDEF_H
757
758/* Define to 1 if you have the <stdint.h> header file. */ 742/* Define to 1 if you have the <stdint.h> header file. */
759#undef HAVE_STDINT_H 743#undef HAVE_STDINT_H
760 744
@@ -869,9 +853,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
869/* Define to 1 if `struct timeval' is declared by <sys/time.h>. */ 853/* Define to 1 if `struct timeval' is declared by <sys/time.h>. */
870#undef HAVE_TIMEVAL 854#undef HAVE_TIMEVAL
871 855
872/* Define to 1 if you have the <time.h> header file. */
873#undef HAVE_TIME_H
874
875/* Define to 1 if `tm_gmtoff' is member of `struct tm'. */ 856/* Define to 1 if `tm_gmtoff' is member of `struct tm'. */
876#undef HAVE_TM_GMTOFF 857#undef HAVE_TM_GMTOFF
877 858