Mercurial > hg > xemacs-beta
comparison configure.in @ 440:8de8e3f6228a r21-2-28
Import from CVS: tag r21-2-28
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:33:38 +0200 |
parents | 84b14dcb0985 |
children | abe6d1db359e |
comparison
equal
deleted
inserted
replaced
439:357dd071b03c | 440:8de8e3f6228a |
---|---|
387 with_toolbars="" | 387 with_toolbars="" |
388 with_tty="" | 388 with_tty="" |
389 use_union_type="no" | 389 use_union_type="no" |
390 with_dnet="" | 390 with_dnet="" |
391 pdump="no" | 391 pdump="no" |
392 dnl dragndrop is still experimental. When it is stable, comment out the following line: | |
393 with_dragndrop="no" | |
392 | 394 |
393 dnl ------------------ | 395 dnl ------------------ |
394 dnl Options Processing | 396 dnl Options Processing |
395 dnl ------------------ | 397 dnl ------------------ |
396 | 398 |
1018 dnl fixed up. | 1020 dnl fixed up. |
1019 dnl debug implies other options | 1021 dnl debug implies other options |
1020 if test "${debug:=$beta}" = "yes"; then | 1022 if test "${debug:=$beta}" = "yes"; then |
1021 use_assertions=yes memory_usage_stats=yes | 1023 use_assertions=yes memory_usage_stats=yes |
1022 XE_ADD_OBJS(debug.o) | 1024 XE_ADD_OBJS(debug.o) |
1025 XE_ADD_OBJS(tests.o) | |
1023 AC_DEFINE(DEBUG_XEMACS) | 1026 AC_DEFINE(DEBUG_XEMACS) |
1024 fi | 1027 fi |
1025 test "$use_assertions" = "yes" && AC_DEFINE(USE_ASSERTIONS) | 1028 test "$use_assertions" = "yes" && AC_DEFINE(USE_ASSERTIONS) |
1026 test "$memory_usage_stats" = "yes" && AC_DEFINE(MEMORY_USAGE_STATS) | 1029 test "$memory_usage_stats" = "yes" && AC_DEFINE(MEMORY_USAGE_STATS) |
1027 | 1030 |
1069 case "$canonical" in | 1072 case "$canonical" in |
1070 sparc-*-* ) machine=sparc ;; | 1073 sparc-*-* ) machine=sparc ;; |
1071 alpha*-*-* ) machine=alpha ;; | 1074 alpha*-*-* ) machine=alpha ;; |
1072 vax-*-* ) machine=vax ;; | 1075 vax-*-* ) machine=vax ;; |
1073 mips-dec-* ) machine=pmax ;; | 1076 mips-dec-* ) machine=pmax ;; |
1077 mips-sgi-irix6* ) machine=iris6d ;; | |
1074 mips-sgi-* ) machine=iris4d ;; | 1078 mips-sgi-* ) machine=iris4d ;; |
1075 mips*-linux ) machine=mips ;; | 1079 mips*-linux ) machine=mips ;; |
1076 romp-ibm-* ) machine=ibmrt ;; | 1080 romp-ibm-* ) machine=ibmrt ;; |
1077 rs6000-ibm-aix* ) machine=ibmrs6000 ;; | 1081 rs6000-ibm-aix* ) machine=ibmrs6000 ;; |
1078 powerpc-ibm-aix* ) machine=ibmrs6000 ;; | 1082 powerpc-ibm-aix* ) machine=ibmrs6000 ;; |
1081 m88k-dg-* ) machine=aviion ;; | 1085 m88k-dg-* ) machine=aviion ;; |
1082 m68*-sony-* ) machine=news ;; | 1086 m68*-sony-* ) machine=news ;; |
1083 mips-sony-* ) machine=news-risc ;; | 1087 mips-sony-* ) machine=news-risc ;; |
1084 clipper-* ) machine=clipper ;; | 1088 clipper-* ) machine=clipper ;; |
1085 arm-* ) machine=arm ;; | 1089 arm-* ) machine=arm ;; |
1090 armv[34][lb]-* ) machine=arm ;; | |
1086 ns32k-* ) machine=ns32000 ;; | 1091 ns32k-* ) machine=ns32000 ;; |
1087 esac | 1092 esac |
1088 | 1093 |
1089 dnl Straightforward OS determination | 1094 dnl Straightforward OS determination |
1090 case "$canonical" in | 1095 case "$canonical" in |
1814 dnl Use either command line flag, environment var, or autodetection | 1819 dnl Use either command line flag, environment var, or autodetection |
1815 if test "$cflags_specified" = "no"; then | 1820 if test "$cflags_specified" = "no"; then |
1816 dnl Following values of CFLAGS are known to work well. | 1821 dnl Following values of CFLAGS are known to work well. |
1817 dnl Should we take debugging options into consideration? | 1822 dnl Should we take debugging options into consideration? |
1818 if test "$GCC" = "yes"; then | 1823 if test "$GCC" = "yes"; then |
1819 CFLAGS="-g -O3 -Wall -Wno-switch" | 1824 CFLAGS="-g -O3 -Wall -Wno-switch -Wpointer-arith -Winline -Wmissing-prototypes -Wshadow" |
1820 dnl I'm not convinced this is a good idea any more. -sb | 1825 dnl I'm not convinced this is a good idea any more. -sb |
1821 dnl test "$opsys $machine" = "linux intel386" && \ | 1826 dnl test "$opsys $machine" = "linux intel386" && \ |
1822 dnl CFLAGS="$CFLAGS -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2" | 1827 dnl CFLAGS="$CFLAGS -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2" |
1823 elif test "$__SUNPRO_C" = "yes"; then | 1828 elif test "$__SUNPRO_C" = "yes"; then |
1824 case "$opsys" in | 1829 case "$opsys" in |
1976 dnl XE_APPEND("-I/usr/local/include", c_switch_site) | 1981 dnl XE_APPEND("-I/usr/local/include", c_switch_site) |
1977 dnl fi | 1982 dnl fi |
1978 | 1983 |
1979 dnl Extra system-specific library directories - please add to list | 1984 dnl Extra system-specific library directories - please add to list |
1980 for dir in "/usr/ccs/lib"; do | 1985 for dir in "/usr/ccs/lib"; do |
1981 test -d "$dir" && XE_APPEND(-L${dir}, ld_switch_site) | 1986 test -d "$dir" && XE_APPEND(-L${dir}, ld_switch_system) |
1982 done | 1987 done |
1983 | 1988 |
1984 dnl --site-runtime-libraries (multiple dirs) | 1989 dnl --site-runtime-libraries (multiple dirs) |
1985 COLON_TO_SPACE(site_runtime_libraries) | 1990 COLON_TO_SPACE(site_runtime_libraries) |
1986 if test -n "$site_runtime_libraries"; then | 1991 if test -n "$site_runtime_libraries"; then |
1987 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`" | 1992 LD_RUN_PATH="`echo $site_runtime_libraries | sed -e 's/ */:/g'`" |
1988 export LD_RUN_PATH | 1993 export LD_RUN_PATH |
1989 fi | 1994 fi |
1990 | 1995 |
1996 dnl Linux systems have dynamic runtime library directories listed in | |
1997 dnl /etc/ld.so.conf. Since those are used at run time, it seems pretty | |
1998 dnl safe to use them at link time, and less controversial than forcing | |
1999 dnl the run-time to use the link-time libraries. This also helps avoid | |
2000 dnl mismatches between the link-time and run-time libraries. | |
2001 | |
2002 dnl #### Unfortunately, there are horrible libc4 and libc5 libraries | |
2003 dnl listed in /etc/ld.so.conf on some systems, and including them on | |
2004 dnl the link path leads to linking in utterly broken libc's. | |
2005 dnl There are many clever ways of approaching this problem, | |
2006 dnl but finding out that actually works... | |
2007 | |
2008 dnl if test -z "$LD_RUN_PATH" -a -r "/etc/ld.so.conf"; then | |
2009 dnl for dir in `cat /etc/ld.so.conf`; do | |
2010 dnl test -d "$dir" && XE_APPEND(-L${dir}, ld_switch_system) | |
2011 dnl done | |
2012 dnl add_runtime_path=no | |
2013 dnl fi | |
2014 | |
1991 dnl ------------------------------------- | 2015 dnl ------------------------------------- |
1992 dnl Compute runtime library path | 2016 dnl Compute runtime library path |
1993 dnl ------------------------------------- | 2017 dnl ------------------------------------- |
1994 | 2018 |
1995 if test "$dynamic" = "no"; then add_runtime_path=no | 2019 if test -n "$add_runtime_path"; then :; |
2020 elif test "$dynamic" = "no"; then add_runtime_path=no | |
1996 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes | 2021 elif test -n "$LD_RUN_PATH"; then add_runtime_path=yes |
1997 else case "$opsys" in | 2022 else case "$opsys" in |
1998 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;; | 2023 sol2 | irix* | *bsd* | decosf* ) add_runtime_path=yes ;; |
1999 * ) add_runtime_path=no ;; | 2024 * ) add_runtime_path=no ;; |
2000 esac | 2025 esac |
2535 AC_CHECKING(for MS-Windows) | 2560 AC_CHECKING(for MS-Windows) |
2536 AC_CHECK_LIB(gdi32,main,with_msw=yes) | 2561 AC_CHECK_LIB(gdi32,main,with_msw=yes) |
2537 if test "$with_msw" = "yes"; then | 2562 if test "$with_msw" = "yes"; then |
2538 AC_DEFINE(HAVE_MS_WINDOWS) | 2563 AC_DEFINE(HAVE_MS_WINDOWS) |
2539 install_pp="$blddir/lib-src/installexe.sh" | 2564 install_pp="$blddir/lib-src/installexe.sh" |
2540 XE_APPEND(-lshell32 -lgdi32 -luser32 -lcomctl32, libs_system) | 2565 XE_APPEND(-lshell32 -lgdi32 -luser32 -lcomctl32 -lwinspool, libs_system) |
2541 test "$with_dragndrop" != no && XE_APPEND(msw, dragndrop_proto) | 2566 test "$with_dragndrop" != no && XE_APPEND(msw, dragndrop_proto) |
2542 if test "$window_system" != x11; then | 2567 if test "$window_system" != x11; then |
2543 window_system=msw | 2568 window_system=msw |
2544 test "$with_scrollbars" != "no" && with_scrollbars=msw \ | 2569 test "$with_scrollbars" != "no" && with_scrollbars=msw \ |
2545 && XE_ADD_OBJS(scrollbar-msw.o) | 2570 && XE_ADD_OBJS(scrollbar-msw.o) |
2963 dnl Curse this `Lets replace standard libraries' thing that they did. :/ | 2988 dnl Curse this `Lets replace standard libraries' thing that they did. :/ |
2964 AC_CHECK_HEADER(X11/$athena_variant/XawInit.h, | 2989 AC_CHECK_HEADER(X11/$athena_variant/XawInit.h, |
2965 AC_CHECK_HEADER(X11/$athena_variant/ThreeD.h, | 2990 AC_CHECK_HEADER(X11/$athena_variant/ThreeD.h, |
2966 athena_h_path=X11/$athena_variant,)) | 2991 athena_h_path=X11/$athena_variant,)) |
2967 | 2992 |
2993 dnl Is the variant specific header directory directly under include? | |
2994 if test -z "$athena_h_path"; then | |
2995 AC_CHECK_HEADER($athena_variant/XawInit.h, | |
2996 AC_CHECK_HEADER($athena_variant/ThreeD.h, | |
2997 athena_h_path=$athena_variant,)) | |
2998 fi | |
2999 | |
2968 dnl If we couldn't find the specific variant, try the generic Athena 3d headers | 3000 dnl If we couldn't find the specific variant, try the generic Athena 3d headers |
2969 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then | 3001 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then |
2970 AC_CHECK_HEADER(X11/Xaw3d/XawInit.h, | 3002 AC_CHECK_HEADER(X11/Xaw3d/XawInit.h, |
2971 AC_CHECK_HEADER(X11/Xaw3d/ThreeD.h, | 3003 AC_CHECK_HEADER(X11/Xaw3d/ThreeD.h, |
2972 [ | 3004 [ |
2973 AC_MSG_WARN("Assuming that X11/Xaw3d headers are suitable for $athena_variant.") | 3005 AC_MSG_WARN("Assuming that X11/Xaw3d headers are suitable for $athena_variant.") |
2974 athena_h_path=X11/Xaw3d | 3006 athena_h_path=X11/Xaw3d |
3007 ],)) | |
3008 fi | |
3009 | |
3010 dnl Also generic 3d headers directly under include dir | |
3011 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then | |
3012 AC_CHECK_HEADER(Xaw3d/XawInit.h, | |
3013 AC_CHECK_HEADER(Xaw3d/ThreeD.h, | |
3014 [ | |
3015 AC_MSG_WARN("Assuming that Xaw3d headers are suitable for $athena_variant.") | |
3016 athena_h_path=Xaw3d | |
2975 ],)) | 3017 ],)) |
2976 fi | 3018 fi |
2977 | 3019 |
2978 dnl If nothing yet found, see if Xaw is a 3d header set... | 3020 dnl If nothing yet found, see if Xaw is a 3d header set... |
2979 dnl We AC_MSG_WARN if we fail because I am all out of ideas... | 3021 dnl We AC_MSG_WARN if we fail because I am all out of ideas... |
3099 | 3141 |
3100 test "$with_menubars" != "no" && AC_DEFINE(HAVE_MENUBARS) | 3142 test "$with_menubars" != "no" && AC_DEFINE(HAVE_MENUBARS) |
3101 test "$with_scrollbars" != "no" && AC_DEFINE(HAVE_SCROLLBARS) | 3143 test "$with_scrollbars" != "no" && AC_DEFINE(HAVE_SCROLLBARS) |
3102 test "$with_dialogs" != "no" && AC_DEFINE(HAVE_DIALOGS) | 3144 test "$with_dialogs" != "no" && AC_DEFINE(HAVE_DIALOGS) |
3103 test "$with_toolbars" != "no" && AC_DEFINE(HAVE_TOOLBARS) | 3145 test "$with_toolbars" != "no" && AC_DEFINE(HAVE_TOOLBARS) |
3104 test "$with_widgets" != "no" && AC_DEFINE(HAVE_WIDGETS) | 3146 test "$with_widgets" != "no" && AC_DEFINE(HAVE_WIDGETS) |
3105 | 3147 |
3106 test "$with_menubars" = "lucid" && AC_DEFINE(LWLIB_MENUBARS_LUCID) | 3148 test "$with_menubars" = "lucid" && AC_DEFINE(LWLIB_MENUBARS_LUCID) |
3107 test "$with_scrollbars" = "lucid" && AC_DEFINE(LWLIB_SCROLLBARS_LUCID) | 3149 test "$with_scrollbars" = "lucid" && AC_DEFINE(LWLIB_SCROLLBARS_LUCID) |
3108 | 3150 |
3109 test "$with_menubars" = "motif" && AC_DEFINE(LWLIB_MENUBARS_MOTIF) | 3151 test "$with_menubars" = "motif" && AC_DEFINE(LWLIB_MENUBARS_MOTIF) |
3110 test "$with_scrollbars" = "motif" && AC_DEFINE(LWLIB_SCROLLBARS_MOTIF) | 3152 test "$with_scrollbars" = "motif" && AC_DEFINE(LWLIB_SCROLLBARS_MOTIF) |
3111 test "$with_dialogs" = "motif" && AC_DEFINE(LWLIB_DIALOGS_MOTIF) | 3153 test "$with_dialogs" = "motif" && AC_DEFINE(LWLIB_DIALOGS_MOTIF) |
3112 test "$with_widgets" = "motif" && AC_DEFINE(LWLIB_WIDGETS_MOTIF) | 3154 test "$with_widgets" = "motif" && AC_DEFINE(LWLIB_WIDGETS_MOTIF) |
3113 | 3155 |
3114 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar.o) | 3156 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar.o) |
3115 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar.o) | 3157 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar.o) |
3116 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog.o) | 3158 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog.o) |
3117 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar.o) | 3159 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar.o) |
3118 | 3160 |
3119 if test "$with_x11" = "yes"; then | 3161 if test "$with_x11" = "yes"; then |
3120 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-x.o) | 3162 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-x.o) |
3121 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-x.o) | 3163 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-x.o) |
3122 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog-x.o) | 3164 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog-x.o) |
3123 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar-x.o) | 3165 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar-x.o) |
3124 test "$all_widgets" != "no no no no no" && XE_ADD_OBJS(gui-x.o) | 3166 test "$all_widgets" != "no no no no no" && XE_ADD_OBJS(gui-x.o) |
3125 fi | 3167 fi |
3126 | 3168 |
3127 dnl ---------------------- | 3169 dnl ---------------------- |
3128 dnl Mule-dependent options | 3170 dnl Mule-dependent options |
3261 dnl AIX needs the following library for use with Motif | 3303 dnl AIX needs the following library for use with Motif |
3262 AC_CHECK_LIB(i18n, layout_object_getvalue, [XE_PREPEND(-li18n, libs_x)]) | 3304 AC_CHECK_LIB(i18n, layout_object_getvalue, [XE_PREPEND(-li18n, libs_x)]) |
3263 XE_COMPUTE_RUNPATH() | 3305 XE_COMPUTE_RUNPATH() |
3264 fi | 3306 fi |
3265 | 3307 |
3266 AC_CHECK_FUNCS(cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getpt getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask) | 3308 AC_CHECK_FUNCS(cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getpt getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask) |
3267 | 3309 |
3268 dnl realpath is buggy on linux, decosf and aix4 | 3310 dnl Use our own realpath always. |
3269 | 3311 XE_ADD_OBJS(realpath.o) |
3270 dnl The realpath() in linux libc (4.6.27) sometimes fails with ELOOP. | |
3271 dnl The realpath in ELF linux libc's is O.K. | |
3272 dnl For example, call realpath on a file thirty-five or so directories deep | |
3273 dnl and you get ELOOP even if no symlinks at all are involved. | |
3274 dnl Reports as of 11/1997 indicate BSDi has problems too. | |
3275 dnl The realpath() in UnixWare2.1.3 could not get any pathname fragment in error condition. | |
3276 case "$opsys" in | |
3277 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) XE_ADD_OBJS(realpath.o) ;; | |
3278 * ) | |
3279 case "$canonical" in | |
3280 *-*-sysv4.2uw2* ) XE_ADD_OBJS(realpath.o) ;; | |
3281 * ) AC_CHECK_FUNCS(realpath) | |
3282 test "$ac_cv_func_realpath" != "yes" && XE_ADD_OBJS(realpath.o) ;; | |
3283 esac ;; | |
3284 esac | |
3285 | 3312 |
3286 dnl Check whether the system provides getloadavg (Solaris 7 has it) | 3313 dnl Check whether the system provides getloadavg (Solaris 7 has it) |
3287 AC_CHECK_FUNCS(getloadavg) | 3314 AC_CHECK_FUNCS(getloadavg) |
3288 | 3315 |
3289 if test "$ac_cv_func_getloadavg" != "yes" | 3316 if test "$ac_cv_func_getloadavg" != "yes" |