Mercurial > hg > xemacs-beta
comparison configure.in @ 321:19dcec799385 r21-0-58
Import from CVS: tag r21-0-58
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:46:44 +0200 |
parents | afd57c14dfc8 |
children | 03446687b7cc |
comparison
equal
deleted
inserted
replaced
320:73c75c43c1f2 | 321:19dcec799385 |
---|---|
1323 machine=mips-siemens opsys=usg5-4 | 1323 machine=mips-siemens opsys=usg5-4 |
1324 NON_GNU_CC=/usr/ccs/bin/cc | 1324 NON_GNU_CC=/usr/ccs/bin/cc |
1325 NON_GNU_CPP=/usr/ccs/lib/cpp | 1325 NON_GNU_CPP=/usr/ccs/lib/cpp |
1326 ;; | 1326 ;; |
1327 | 1327 |
1328 dnl NEC | |
1329 mips-nec-sysv*) | |
1330 machine=mips-nec | |
1331 NON_GNU_CC=/usr/ccs/bin/cc | |
1332 NON_GNU_CPP=/usr/ccs/lib/cpp | |
1333 ;; | |
1334 | |
1328 dnl Silicon Graphics machines | 1335 dnl Silicon Graphics machines |
1329 dnl Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | 1336 dnl Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) |
1330 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;; | 1337 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;; |
1331 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;; | 1338 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;; |
1332 dnl Iris 4D | 1339 dnl Iris 4D |
1480 ;; | 1487 ;; |
1481 | 1488 |
1482 dnl Linux/68k | 1489 dnl Linux/68k |
1483 m68k-*-linux* ) machine=m68k opsys=linux ;; | 1490 m68k-*-linux* ) machine=m68k opsys=linux ;; |
1484 | 1491 |
1492 dnl Linux/arm | |
1493 arm-*-linux* ) machine=arm opsys=linux ;; | |
1494 | |
1485 esac | 1495 esac |
1486 | 1496 |
1487 if test -z "$machine" -o -z "$opsys"; then | 1497 if test -z "$machine" -o -z "$opsys"; then |
1488 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems." | 1498 (echo "$progname: XEmacs hasn't been ported to \`$canonical' systems." |
1489 echo "$progname: Check \`etc/MACHINES' for recognized configuration names." | 1499 echo "$progname: Check \`etc/MACHINES' for recognized configuration names." |
2079 AC_PROG_INSTALL | 2089 AC_PROG_INSTALL |
2080 AC_PROG_YACC | 2090 AC_PROG_YACC |
2081 | 2091 |
2082 dnl checks for header files | 2092 dnl checks for header files |
2083 AC_CHECK_HEADERS(mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h) | 2093 AC_CHECK_HEADERS(mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h) |
2084 AC_CHECK_HEADERS(utime.h locale.h libgen.h fcntl.h ulimit.h cygwin32/version.h) | 2094 AC_CHECK_HEADERS(utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h) |
2085 AC_CHECK_HEADERS(linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h) | 2095 AC_CHECK_HEADERS(linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h) |
2086 AC_HEADER_SYS_WAIT | 2096 AC_HEADER_SYS_WAIT |
2087 AC_HEADER_STDC | 2097 AC_HEADER_STDC |
2088 AC_HEADER_TIME | 2098 AC_HEADER_TIME |
2089 AC_DECL_SYS_SIGLIST | 2099 AC_DECL_SYS_SIGLIST |
2440 AC_CHECK_LIB(gdi32,main,with_msw=yes) | 2450 AC_CHECK_LIB(gdi32,main,with_msw=yes) |
2441 if test "$with_msw" = "yes"; then | 2451 if test "$with_msw" = "yes"; then |
2442 AC_DEFINE(HAVE_MS_WINDOWS) | 2452 AC_DEFINE(HAVE_MS_WINDOWS) |
2443 install_pp="$blddir/lib-src/installexe.sh" | 2453 install_pp="$blddir/lib-src/installexe.sh" |
2444 XE_APPEND(-lshell32 -lgdi32 -luser32 -lcomctl32, libs_system) | 2454 XE_APPEND(-lshell32 -lgdi32 -luser32 -lcomctl32, libs_system) |
2455 test "$with_dragndrop" != no && XE_APPEND(msw, dragndrop_proto) | |
2445 if test "$window_system" != x11; then | 2456 if test "$window_system" != x11; then |
2446 window_system=msw | 2457 window_system=msw |
2447 test "$with_scrollbars" != "no" && with_scrollbars=msw \ | 2458 test "$with_scrollbars" != "no" && with_scrollbars=msw \ |
2448 && XE_ADD_OBJS(scrollbar-msw.o) | 2459 && XE_ADD_OBJS(scrollbar-msw.o) |
2449 test "$with_menubars" != "no" && with_menubars=msw \ | 2460 test "$with_menubars" != "no" && with_menubars=msw \ |
3000 if test "$with_wnn" != "no"; then | 3011 if test "$with_wnn" != "no"; then |
3001 AC_CHECK_FUNCS(crypt) | 3012 AC_CHECK_FUNCS(crypt) |
3002 test "$ac_cv_func_crypt" != "yes" && { AC_CHECK_LIB(crypt, crypt) } | 3013 test "$ac_cv_func_crypt" != "yes" && { AC_CHECK_LIB(crypt, crypt) } |
3003 fi | 3014 fi |
3004 dnl Back to our regularly scheduled wnn hunting | 3015 dnl Back to our regularly scheduled wnn hunting |
3005 test -z "$with_wnn" && { AC_CHECK_LIB(wnn,jl_dic_list_e,[:],with_wnn=no) } | 3016 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then |
3017 AC_CHECK_LIB(wnn,jl_dic_list_e,libwnn=wnn, | |
3018 AC_CHECK_LIB(wnn4,jl_dic_list_e,libwnn=wnn4, | |
3019 AC_CHECK_LIB(wnn6,jl_dic_list_e,libwnn=wnn6, | |
3020 AC_CHECK_LIB(wnn6_fromsrc,dic_list_e,libwnn=wnn6_fromsrc,with_wnn=no)))) | |
3021 fi | |
3006 test -z "$with_wnn" && with_wnn=yes | 3022 test -z "$with_wnn" && with_wnn=yes |
3007 if test "$with_wnn" = "yes"; then | 3023 if test "$with_wnn" = "yes"; then |
3008 AC_DEFINE(HAVE_WNN) | 3024 AC_DEFINE(HAVE_WNN) |
3009 XE_PREPEND(-lwnn, libs_x) | 3025 XE_PREPEND(-l$libwnn, libs_x) |
3010 XE_ADD_OBJS(mule-wnnfns.o) | 3026 XE_ADD_OBJS(mule-wnnfns.o) |
3011 if test "$with_wnn6" != "no"; then | 3027 if test "$with_wnn6" != "no"; then |
3012 AC_CHECK_LIB(wnn, jl_fi_dic_list, with_wnn6=yes) | 3028 AC_CHECK_LIB($libwnn, jl_fi_dic_list, with_wnn6=yes) |
3013 test "$with_wnn6" = "yes" && AC_DEFINE(WNN6) | 3029 test "$with_wnn6" = "yes" && AC_DEFINE(WNN6) |
3014 fi | 3030 fi |
3015 fi | 3031 fi |
3016 | 3032 |
3017 dnl Autodetect canna | 3033 dnl Autodetect canna |
3065 dnl The realpath() in linux libc (4.6.27) sometimes fails with ELOOP. | 3081 dnl The realpath() in linux libc (4.6.27) sometimes fails with ELOOP. |
3066 dnl The realpath in ELF linux libc's is O.K. | 3082 dnl The realpath in ELF linux libc's is O.K. |
3067 dnl For example, call realpath on a file thirty-five or so directories deep | 3083 dnl For example, call realpath on a file thirty-five or so directories deep |
3068 dnl and you get ELOOP even if no symlinks at all are involved. | 3084 dnl and you get ELOOP even if no symlinks at all are involved. |
3069 dnl Reports as of 11/1997 indicate BSDi has problems too. | 3085 dnl Reports as of 11/1997 indicate BSDi has problems too. |
3086 dnl The realpath() in UnixWare2.1.3 could not get any pathname fragment in error condition. | |
3070 case "$opsys" in | 3087 case "$opsys" in |
3071 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) XE_ADD_OBJS(realpath.o) ;; | 3088 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) XE_ADD_OBJS(realpath.o) ;; |
3072 * ) | 3089 * ) |
3073 AC_CHECK_FUNCS(realpath) | 3090 case "$canonical" in |
3074 test "$ac_cv_func_realpath" != "yes" && XE_ADD_OBJS(realpath.o) ;; | 3091 *-*-sysv4.2uw2* ) XE_ADD_OBJS(realpath.o) ;; |
3092 * ) AC_CHECK_FUNCS(realpath) | |
3093 test "$ac_cv_func_realpath" != "yes" && XE_ADD_OBJS(realpath.o) ;; | |
3094 esac ;; | |
3075 esac | 3095 esac |
3076 | 3096 |
3077 dnl If netdb.h does not declare h_errno, we must declare it by hand. | 3097 dnl If netdb.h does not declare h_errno, we must declare it by hand. |
3078 AC_MSG_CHECKING(whether netdb declares h_errno) | 3098 AC_MSG_CHECKING(whether netdb declares h_errno) |
3079 AC_TRY_LINK([#include <netdb.h>], | 3099 AC_TRY_LINK([#include <netdb.h>], |
3555 if test "$usage_tracking" = "yes"; then | 3575 if test "$usage_tracking" = "yes"; then |
3556 AC_DEFINE(USAGE_TRACKING) | 3576 AC_DEFINE(USAGE_TRACKING) |
3557 XE_PREPEND(-Bstatic -lut -Bdynamic, LIBS) | 3577 XE_PREPEND(-Bstatic -lut -Bdynamic, LIBS) |
3558 fi | 3578 fi |
3559 | 3579 |
3580 dnl cygwin can't cope with dlfcn at the moment | |
3581 test -z "$with_shlib" && test "$opsys $machine" = "cygwin32 intel386" && with_shlib=no | |
3582 | |
3560 dnl autodetect dll support | 3583 dnl autodetect dll support |
3561 AC_CHECK_HEADERS(dlfcn.h, have_dlfcn=yes) | 3584 AC_CHECK_HEADERS(dlfcn.h, have_dlfcn=yes) |
3562 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { AC_CHECK_LIB(dl, dlopen, [ AC_DEFINE(HAVE_DLOPEN) DLL_LIB=dl; with_shlib=yes]) } | 3585 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { AC_CHECK_LIB(dl, dlopen, [ AC_DEFINE(HAVE_DLOPEN) DLL_LIB=dl; with_shlib=yes]) } |
3563 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { AC_CHECK_LIB(c, _dlopen, [ AC_DEFINE(HAVE_DLOPEN) DLL_LIB=; with_shlib=yes]) } | 3586 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { AC_CHECK_LIB(c, _dlopen, [ AC_DEFINE(HAVE_DLOPEN) DLL_LIB=; with_shlib=yes]) } |
3564 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { AC_CHECK_LIB(c, dlopen, [ AC_DEFINE(HAVE_DLOPEN) DLL_LIB=; with_shlib=yes]) } | 3587 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { AC_CHECK_LIB(c, dlopen, [ AC_DEFINE(HAVE_DLOPEN) DLL_LIB=; with_shlib=yes]) } |