Mercurial > hg > xemacs-beta
comparison configure.in @ 175:2d532a89d707 r20-3b14
Import from CVS: tag r20-3b14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:50:14 +0200 |
parents | 8eaf7971accc |
children | 6075d714658b |
comparison
equal
deleted
inserted
replaced
174:bb3568571b84 | 175:2d532a89d707 |
---|---|
1612 AC_DEFINE(SUNPRO) | 1612 AC_DEFINE(SUNPRO) |
1613 XE_ADD_OBJS(sunpro.o) | 1613 XE_ADD_OBJS(sunpro.o) |
1614 with_tooltalk=yes | 1614 with_tooltalk=yes |
1615 fi | 1615 fi |
1616 | 1616 |
1617 if test "$with_clash_detection" = "yes"; then | |
1618 AC_DEFINE(CLASH_DETECTION) | |
1619 XE_ADD_OBJS(filelock.o) | |
1620 fi | |
1621 | |
1617 dnl Choose a compiler from (in order) | 1622 dnl Choose a compiler from (in order) |
1618 dnl --compiler, env var CC, with_gcc=no && ${NON_GNU_CC:-cc}, AC_PROG_CC | 1623 dnl --compiler, env var CC, with_gcc=no && ${NON_GNU_CC:-cc}, AC_PROG_CC |
1619 test -n "$compiler" && CC="$compiler" | 1624 test -n "$compiler" && CC="$compiler" |
1620 if test "$with_gcc" = "no"; then dnl Try to find a non-gcc compiler | 1625 if test "$with_gcc" = "no"; then dnl Try to find a non-gcc compiler |
1621 case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac | 1626 case "$CC" in "" | *gcc* ) CC="${NON_GNU_CC-cc}" ;; esac |
1821 dnl Use either command line flag, environment var, or autodetection | 1826 dnl Use either command line flag, environment var, or autodetection |
1822 if test -z "$CFLAGS"; then | 1827 if test -z "$CFLAGS"; then |
1823 dnl Following values of CFLAGS are known to work well. | 1828 dnl Following values of CFLAGS are known to work well. |
1824 dnl Should we take debugging options into consideration? | 1829 dnl Should we take debugging options into consideration? |
1825 if test "$GCC" = "yes"; then | 1830 if test "$GCC" = "yes"; then |
1826 CFLAGS="-g -O2 -Wall" | 1831 CFLAGS="-g -O2 -Wall -Wno-switch" |
1827 test "$opsys" = "linux" -a "$machine" = "intel386" && \ | 1832 test "$opsys" = "linux" -a "$machine" = "intel386" && \ |
1828 CFLAGS="$CFLAGS -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2" | 1833 CFLAGS="$CFLAGS -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2" |
1829 elif test "$__sunpro_c" = "yes"; then | 1834 elif test "$__sunpro_c" = "yes"; then |
1830 case "$opsys" in | 1835 case "$opsys" in |
1831 sol2 ) CFLAGS="-v -xO4" ;; | 1836 sol2 ) CFLAGS="-v -xO4" ;; |
1864 AC_MSG_RESULT(no) | 1869 AC_MSG_RESULT(no) |
1865 else | 1870 else |
1866 AC_MSG_RESULT(yes) | 1871 AC_MSG_RESULT(yes) |
1867 AC_DEFINE(DYNODUMP) | 1872 AC_DEFINE(DYNODUMP) |
1868 XE_APPEND(dynodump, MAKE_SUBDIR) | 1873 XE_APPEND(dynodump, MAKE_SUBDIR) |
1874 XE_APPEND(dynodump, SRC_SUBDIR_DEPS) | |
1869 case "$machine" in | 1875 case "$machine" in |
1870 sparc ) dynodump_arch=sparc ;; | 1876 sparc ) dynodump_arch=sparc ;; |
1871 *86* ) dynodump_arch=i386 ;; | 1877 *86* ) dynodump_arch=i386 ;; |
1872 powerpc ) dynodump_arch=ppc ;; | 1878 powerpc ) dynodump_arch=ppc ;; |
1873 esac | 1879 esac |
1880 AC_SUBST(start_files) | 1886 AC_SUBST(start_files) |
1881 test -n "$ld_text_start_addr" && start_flags="-T $ld_text_start_addr -e __start" | 1887 test -n "$ld_text_start_addr" && start_flags="-T $ld_text_start_addr -e __start" |
1882 AC_SUBST(start_flags) | 1888 AC_SUBST(start_flags) |
1883 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then | 1889 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then |
1884 test -z "$linker" && linker='$(CC) -nostdlib' | 1890 test -z "$linker" && linker='$(CC) -nostdlib' |
1885 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-lib-gccfile-name`' | 1891 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`' |
1886 fi | 1892 fi |
1887 test "$GCC" != "yes" && lib_gcc= | 1893 test "$GCC" != "yes" && lib_gcc= |
1888 AC_SUBST(ld) | 1894 AC_SUBST(ld) |
1889 AC_SUBST(lib_gcc) | 1895 AC_SUBST(lib_gcc) |
1890 | 1896 |
2216 esac | 2222 esac |
2217 | 2223 |
2218 if test "$with_x11" = "yes"; then | 2224 if test "$with_x11" = "yes"; then |
2219 AC_DEFINE(HAVE_X_WINDOWS) | 2225 AC_DEFINE(HAVE_X_WINDOWS) |
2220 XE_APPEND(lwlib, MAKE_SUBDIR) | 2226 XE_APPEND(lwlib, MAKE_SUBDIR) |
2227 XE_APPEND(lwlib, SRC_SUBDIR_DEPS) | |
2221 | 2228 |
2222 dnl Try to find Motif/CDE/Tooltalk dirs | 2229 dnl Try to find Motif/CDE/Tooltalk dirs |
2223 dnl These take precedence over other X libs/includes, so PRE-pend | 2230 dnl These take precedence over other X libs/includes, so PRE-pend |
2224 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do | 2231 for lib_dir in "/usr/dt/lib" "/usr/lib/Motif1.2" "/usr/lib/Motif1.1"; do |
2225 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'` | 2232 inc_dir=`echo $lib_dir | sed -e 's/lib/include/'` |
2807 if test "$ac_cv_c_inline" != "no"; then | 2814 if test "$ac_cv_c_inline" != "no"; then |
2808 AC_DEFINE(HAVE_INLINE) | 2815 AC_DEFINE(HAVE_INLINE) |
2809 test "$GCC" = "yes" && XE_ADD_OBJS(inline.o) | 2816 test "$GCC" = "yes" && XE_ADD_OBJS(inline.o) |
2810 fi | 2817 fi |
2811 | 2818 |
2819 dnl HP-UX has a working alloca in libPW. | |
2820 case "$opsys" in hpux* ) | |
2821 AC_CHECK_FUNC(alloca, [:], [AC_CHECK_LIB(PW, alloca)]) | |
2822 esac | |
2812 | 2823 |
2813 AC_FUNC_ALLOCA | 2824 AC_FUNC_ALLOCA |
2814 test -n "$ALLOCA" && XE_ADD_OBJS($ALLOCA) | 2825 test -n "$ALLOCA" && XE_ADD_OBJS($ALLOCA) |
2815 | 2826 |
2816 dnl Check whether vfork exists and works correctly. (This does more | 2827 dnl Check whether vfork exists and works correctly. (This does more |
2870 dnl We only turn rel_alloc on by default if mmap is available. | 2881 dnl We only turn rel_alloc on by default if mmap is available. |
2871 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no | 2882 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no |
2872 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes | 2883 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes |
2873 test "$rel_alloc" = "yes" && AC_DEFINE(REL_ALLOC) | 2884 test "$rel_alloc" = "yes" && AC_DEFINE(REL_ALLOC) |
2874 | 2885 |
2886 dnl Check for terminal I/O variants | |
2887 dnl TERMIOS systems may have termio.h, but not vice-versa, I think. | |
2888 AC_CHECK_HEADER(termios.h, | |
2889 AC_DEFINE(HAVE_TERMIOS) | |
2890 AC_DEFINE(SIGNALS_VIA_CHARACTERS) | |
2891 AC_DEFINE(NO_TERMIO), | |
2892 [AC_CHECK_HEADER(termio.h, [AC_DEFINE(HAVE_TERMIO)])]) | |
2893 | |
2894 | |
2875 dnl Check for Internet sockets. | 2895 dnl Check for Internet sockets. |
2876 AC_CHECK_FUNC(socket, | 2896 AC_CHECK_FUNC(socket, |
2877 [AC_CHECK_HEADER(netinet/in.h, | 2897 [AC_CHECK_HEADER(netinet/in.h, |
2878 [AC_CHECK_HEADER(arpa/inet.h, [ | 2898 [AC_CHECK_HEADER(arpa/inet.h, [ |
2879 AC_DEFINE(HAVE_SOCKETS) | 2899 AC_DEFINE(HAVE_SOCKETS) |
2900 dnl Check for nlist.h | 2920 dnl Check for nlist.h |
2901 AC_CHECK_HEADER(nlist.h, AC_DEFINE(NLIST_STRUCT), ) | 2921 AC_CHECK_HEADER(nlist.h, AC_DEFINE(NLIST_STRUCT), ) |
2902 | 2922 |
2903 dnl AIX export list | 2923 dnl AIX export list |
2904 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp" ; do | 2924 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp" ; do |
2905 if test -r $f; then AC_DEFINE_UNQUOTED(AIX_SMT_EXP, -bI:$f) break; fi | 2925 if test -r $f; then AC_DEFINE_UNQUOTED(AIX_SMT_EXP, "-bI:$f") break; fi |
2906 done | 2926 done |
2907 | 2927 |
2908 dnl Check for sound of various sorts. | 2928 dnl Check for sound of various sorts. |
2909 | 2929 |
2910 dnl Autodetect native sound | 2930 dnl Autodetect native sound |
3007 | 3027 |
3008 if test "$with_tty" = "yes" ; then | 3028 if test "$with_tty" = "yes" ; then |
3009 AC_CHECKING(for TTY-related features) | 3029 AC_CHECKING(for TTY-related features) |
3010 AC_DEFINE(HAVE_TTY) | 3030 AC_DEFINE(HAVE_TTY) |
3011 XE_ADD_OBJS(console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o) | 3031 XE_ADD_OBJS(console-tty.o device-tty.o event-tty.o frame-tty.o objects-tty.o redisplay-tty.o cm.o) |
3012 | |
3013 dnl Check for terminal I/O variants | |
3014 dnl TERMIOS systems may have termio.h, but not vice-versa, I think. | |
3015 AC_CHECK_HEADER(termios.h, [AC_DEFINE(HAVE_TERMIOS)], | |
3016 [AC_CHECK_HEADER(termio.h, [AC_DEFINE(HAVE_TERMIO)])]) | |
3017 | 3032 |
3018 dnl Autodetect ncurses. | 3033 dnl Autodetect ncurses. |
3019 if test -z "$with_ncurses"; then | 3034 if test -z "$with_ncurses"; then |
3020 AC_CHECK_LIB(ncurses, tgetent, with_ncurses=yes, with_ncurses=no) | 3035 AC_CHECK_LIB(ncurses, tgetent, with_ncurses=yes, with_ncurses=no) |
3021 fi | 3036 fi |
3178 dnl Compute SUBST-itutable variables | 3193 dnl Compute SUBST-itutable variables |
3179 dnl -------------------------------- | 3194 dnl -------------------------------- |
3180 | 3195 |
3181 dnl We ignore (C|LD)_SWITCH_X_(MACHINE|SYSTEM) | 3196 dnl We ignore (C|LD)_SWITCH_X_(MACHINE|SYSTEM) |
3182 dnl Use XE_SPACE instead of plain assignment statements to remove extraneous blanks | 3197 dnl Use XE_SPACE instead of plain assignment statements to remove extraneous blanks |
3198 XE_SPACE(CFLAGS, $CFLAGS) | |
3183 XE_SPACE(extra_objs, $extra_objs) | 3199 XE_SPACE(extra_objs, $extra_objs) |
3184 XE_SPACE(c_switch_general, -DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system) | 3200 XE_SPACE(c_switch_general, -DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system) |
3185 XE_SPACE(c_switch_window_system, $c_switch_x_site $X_CFLAGS) | 3201 XE_SPACE(c_switch_window_system, $c_switch_x_site $X_CFLAGS) |
3186 XE_SPACE(c_switch_all, $c_switch_general $c_switch_window_system) | 3202 XE_SPACE(c_switch_all, $c_switch_general $c_switch_window_system) |
3187 XE_SPACE(ld_switch_general, $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_run) | 3203 XE_SPACE(ld_switch_general, $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_run) |
3190 XE_SPACE(ld_libs_general, $LIBS $libs_machine $libs_system $libs_standard) | 3206 XE_SPACE(ld_libs_general, $LIBS $libs_machine $libs_system $libs_standard) |
3191 XE_SPACE(ld_libs_window_system, $X_EXTRA_LIBS $libs_x $X_PRE_LIBS) | 3207 XE_SPACE(ld_libs_window_system, $X_EXTRA_LIBS $libs_x $X_PRE_LIBS) |
3192 XE_SPACE(ld_libs_all, $ld_libs_window_system $ld_libs_general) | 3208 XE_SPACE(ld_libs_all, $ld_libs_window_system $ld_libs_general) |
3193 | 3209 |
3194 dnl Compute lists of Makefiles and subdirs | 3210 dnl Compute lists of Makefiles and subdirs |
3195 SRC_SUBDIR_DEPS="$MAKE_SUBDIR" | |
3196 AC_SUBST(SRC_SUBDIR_DEPS) | 3211 AC_SUBST(SRC_SUBDIR_DEPS) |
3197 XE_APPEND(src, MAKE_SUBDIR) | 3212 XE_APPEND(src, MAKE_SUBDIR) |
3198 internal_makefile_list="Makefile" | 3213 internal_makefile_list="Makefile" |
3199 SUBDIR_MAKEFILES='' | 3214 SUBDIR_MAKEFILES='' |
3200 test -d lock || mkdir lock | 3215 test -d lock || mkdir lock |
3295 AC_SUBST(ld_switch_window_system) | 3310 AC_SUBST(ld_switch_window_system) |
3296 AC_SUBST(ld_switch_all) | 3311 AC_SUBST(ld_switch_all) |
3297 AC_SUBST(ld_libs_general) | 3312 AC_SUBST(ld_libs_general) |
3298 AC_SUBST(ld_libs_window_system) | 3313 AC_SUBST(ld_libs_window_system) |
3299 AC_SUBST(ld_libs_all) | 3314 AC_SUBST(ld_libs_all) |
3300 AC_SUBST(libsrc_libs) | |
3301 AC_SUBST(CFLAGS) | 3315 AC_SUBST(CFLAGS) |
3302 AC_SUBST(CPPFLAGS) | 3316 AC_SUBST(CPPFLAGS) |
3303 AC_SUBST(LDFLAGS) | 3317 AC_SUBST(LDFLAGS) |
3304 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'" | 3318 RECURSIVE_MAKE="\$(MAKE) \$(MFLAGS) CC='\$(CC)' CFLAGS='\$(CFLAGS)' LDFLAGS='\$(LDFLAGS)' CPPFLAGS='\$(CPPFLAGS)'" |
3305 AC_SUBST(RECURSIVE_MAKE) | 3319 AC_SUBST(RECURSIVE_MAKE) |
3350 test "$const_is_losing" = "yes" && AC_DEFINE(CONST_IS_LOSING) | 3364 test "$const_is_losing" = "yes" && AC_DEFINE(CONST_IS_LOSING) |
3351 test "$with_quantify" = "yes" && AC_DEFINE(QUANTIFY) | 3365 test "$with_quantify" = "yes" && AC_DEFINE(QUANTIFY) |
3352 test "$with_pop" = "yes" && AC_DEFINE(MAIL_USE_POP) | 3366 test "$with_pop" = "yes" && AC_DEFINE(MAIL_USE_POP) |
3353 test "$with_kerberos" = "yes" && AC_DEFINE(KERBEROS) | 3367 test "$with_kerberos" = "yes" && AC_DEFINE(KERBEROS) |
3354 test "$with_hesiod" = "yes" && AC_DEFINE(HESIOD) | 3368 test "$with_hesiod" = "yes" && AC_DEFINE(HESIOD) |
3355 test "$with_clash_detection" = "yes" && AC_DEFINE(CLASH_DETECTION) | |
3356 test "$use_union_type" != yes && AC_DEFINE(NO_UNION_TYPE) | 3369 test "$use_union_type" != yes && AC_DEFINE(NO_UNION_TYPE) |
3357 | 3370 |
3358 dnl ------------------------------- | 3371 dnl ------------------------------- |
3359 dnl Report on what we decided to do | 3372 dnl Report on what we decided to do |
3360 dnl ------------------------------- | 3373 dnl ------------------------------- |
3406 fi | 3419 fi |
3407 | 3420 |
3408 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion." | 3421 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion." |
3409 if test "$with_xpm" = yes; then | 3422 if test "$with_xpm" = yes; then |
3410 echo " Compiling in support for XPM images." | 3423 echo " Compiling in support for XPM images." |
3411 else | 3424 elif test "$with_x11" = yes; then |
3412 echo " --------------------------------------------------------------------" | 3425 echo " --------------------------------------------------------------------" |
3413 echo " WARNING: Compiling without XPM support." | 3426 echo " WARNING: Compiling without XPM support." |
3414 echo " WARNING: You should strongly considering installing XPM." | 3427 echo " WARNING: You should strongly considering installing XPM." |
3415 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal." | 3428 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal." |
3416 echo " --------------------------------------------------------------------" | 3429 echo " --------------------------------------------------------------------" |
3540 mv -f Makefile.new Makefile | 3553 mv -f Makefile.new Makefile |
3541 rm -f junk.c junk.cpp | 3554 rm -f junk.c junk.cpp |
3542 changequote([, ])dnl | 3555 changequote([, ])dnl |
3543 ) | 3556 ) |
3544 done | 3557 done |
3558 | |
3559 dnl Create a file of config variables for use by the lisp code | |
3560 sed < config.status > lib-src/config.values \ | |
3561 -e 's/^s%@\(.*\)@%\(.*\)%g$/\1 "\2"/p' \ | |
3562 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \ | |
3563 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \ | |
3564 -e 's/^\([[^ ]]*\) $/\1 ""/' \ | |
3565 -e 's/ 1$/ t/' | |
3566 | |
3545 ], | 3567 ], |
3546 [CPP="$CPP" | 3568 [CPP="$CPP" |
3547 CPPFLAGS="$CPPFLAGS" | 3569 CPPFLAGS="$CPPFLAGS" |
3548 top_srcdir="$srcdir" | 3570 top_srcdir="$srcdir" |
3549 MAKE_SUBDIR="$MAKE_SUBDIR" | 3571 MAKE_SUBDIR="$MAKE_SUBDIR" |