comparison configure.in @ 424:11054d720c21 r21-2-20

Import from CVS: tag r21-2-20
author cvs
date Mon, 13 Aug 2007 11:26:11 +0200
parents 95016f13131a
children 43177a4f3daf
comparison
equal deleted inserted replaced
423:28d9c139be4c 424:11054d720c21
386 dnl the following is set to yes or no later. 386 dnl the following is set to yes or no later.
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 392
392 dnl ------------------ 393 dnl ------------------
393 dnl Options Processing 394 dnl Options Processing
394 dnl ------------------ 395 dnl ------------------
395 396
514 verbose | \ 515 verbose | \
515 extra_verbose | \ 516 extra_verbose | \
516 const_is_losing | \ 517 const_is_losing | \
517 usage_tracking | \ 518 usage_tracking | \
518 use_union_type | \ 519 use_union_type | \
520 pdump | \
519 debug | \ 521 debug | \
520 use_assertions | \ 522 use_assertions | \
521 memory_usage_stats | \ 523 memory_usage_stats | \
522 with_clash_detection | \ 524 with_clash_detection | \
523 with_modules | \ 525 with_modules | \
757 esac 759 esac
758 eval "$opt=\"$val\"" 760 eval "$opt=\"$val\""
759 ;; 761 ;;
760 762
761 dnl Obsolete legacy argument? Warn, but otherwise ignore. 763 dnl Obsolete legacy argument? Warn, but otherwise ignore.
764 "use_minimal_tagbits" | \
765 "use_indexed_lrecord_implementation" | \
762 "run_in_place" | \ 766 "run_in_place" | \
763 "with_gnu_make" ) 767 "with_gnu_make" )
764 AC_MSG_WARN([Obsolete option \`--$optname' ignored.]) 768 AC_MSG_WARN([Obsolete option \`--$optname' ignored.])
765 ;; 769 ;;
766 770
1028 sparc-*-* ) machine=sparc ;; 1032 sparc-*-* ) machine=sparc ;;
1029 alpha*-*-* ) machine=alpha ;; 1033 alpha*-*-* ) machine=alpha ;;
1030 vax-*-* ) machine=vax ;; 1034 vax-*-* ) machine=vax ;;
1031 mips-dec-* ) machine=pmax ;; 1035 mips-dec-* ) machine=pmax ;;
1032 mips-sgi-* ) machine=iris4d ;; 1036 mips-sgi-* ) machine=iris4d ;;
1037 mips*-linux ) machine=mips ;;
1033 romp-ibm-* ) machine=ibmrt ;; 1038 romp-ibm-* ) machine=ibmrt ;;
1034 rs6000-ibm-aix* ) machine=ibmrs6000 ;; 1039 rs6000-ibm-aix* ) machine=ibmrs6000 ;;
1035 powerpc-ibm-aix* ) machine=ibmrs6000 ;; 1040 powerpc-ibm-aix* ) machine=ibmrs6000 ;;
1036 powerpc*-* ) machine=powerpc ;; 1041 powerpc*-* ) machine=powerpc ;;
1037 hppa-*-* ) machine=hp800 ;; 1042 hppa-*-* ) machine=hp800 ;;
2858 dnl AC_CHECK_HEADER(X11/Xaw/Reports.h, [ 2863 dnl AC_CHECK_HEADER(X11/Xaw/Reports.h, [
2859 dnl XE_APPEND(pkg-src/tree-x, MAKE_SUBDIR) 2864 dnl XE_APPEND(pkg-src/tree-x, MAKE_SUBDIR)
2860 dnl XE_APPEND(pkg-src/tree-x, INSTALL_ARCH_DEP_SUBDIR)]) 2865 dnl XE_APPEND(pkg-src/tree-x, INSTALL_ARCH_DEP_SUBDIR)])
2861 dnl fi 2866 dnl fi
2862 2867
2868 dnl Autodetect -lXaw3d
2869 AC_CHECK_LIB(Xaw3d, XawScrollbarSetThumb, have_xaw3d=yes, have_xaw3d=no)
2870
2863 dnl autodetect Motif - but only add to libs_x later (if necessary) 2871 dnl autodetect Motif - but only add to libs_x later (if necessary)
2864 AC_CHECK_HEADER(Xm/Xm.h, 2872 AC_CHECK_HEADER(Xm/Xm.h,
2865 [AC_CHECK_LIB(Xm, XmStringFree, have_motif=yes, have_motif=no)], 2873 [AC_CHECK_LIB(Xm, XmStringFree, have_motif=yes, have_motif=no)],
2866 have_motif=no) 2874 have_motif=no)
2867 2875
2886 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" ) 2894 case "$with_menubars" in "" | "yes" | "athena" | "athena3d" )
2887 with_menubars="lucid" ;; 2895 with_menubars="lucid" ;;
2888 esac 2896 esac
2889 case "$with_dialogs" in "" | "yes" | "lucid" ) 2897 case "$with_dialogs" in "" | "yes" | "lucid" )
2890 if test "$have_motif" = "yes"; then with_dialogs="motif" 2898 if test "$have_motif" = "yes"; then with_dialogs="motif"
2899 elif test "$have_xaw3d" = "yes"; then with_dialogs="athena3d"
2891 elif test "$have_xaw" = "yes"; then with_dialogs="athena" 2900 elif test "$have_xaw" = "yes"; then with_dialogs="athena"
2892 else with_dialogs=no 2901 else with_dialogs=no
2893 fi ;; 2902 fi ;;
2894 esac 2903 esac
2895 case "$with_scrollbars" in "" | "yes" ) 2904 case "$with_scrollbars" in "" | "yes" )
2896 with_scrollbars="lucid" ;; 2905 with_scrollbars="lucid" ;;
2897 esac 2906 esac
2898 case "$with_widgets" in "" | "yes" ) 2907 case "$with_widgets" in "" | "yes" | "lucid")
2899 if test "$have_motif" = "yes"; then with_widgets="motif" 2908 if test "$have_motif" = "yes"; then with_widgets="motif"
2909 elif test "$have_xaw3d" = "yes"; then with_widgets="athena3d"
2910 elif test "$have_xaw" = "yes"; then with_widgets="athena"
2900 else with_widgets=no 2911 else with_widgets=no
2901 fi ;; 2912 fi ;;
2902 esac 2913 esac
2903 2914
2904 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets" 2915 all_widgets="$with_menubars $with_scrollbars $with_dialogs $with_toolbars $with_widgets"
2905 2916
2906 case "$all_widgets" in *athena* ) 2917 case "$all_widgets" in
2918 *athena*3d )
2919 AC_DEFINE(LWLIB_USES_ATHENA)
2920 AC_DEFINE(NEED_ATHENA)
2921 XE_APPEND(lwlib-Xaw.o, lwlib_objs)
2922 if test "$have_xaw3d"; then
2923 XE_PREPEND(-lXaw3d, libs_x)
2924 else
2925 XE_PREPEND(-lXaw, libs_x)
2926 fi ;;
2927 *athena* )
2907 AC_DEFINE(LWLIB_USES_ATHENA) 2928 AC_DEFINE(LWLIB_USES_ATHENA)
2908 AC_DEFINE(NEED_ATHENA) 2929 AC_DEFINE(NEED_ATHENA)
2909 XE_APPEND(lwlib-Xaw.o, lwlib_objs) 2930 XE_APPEND(lwlib-Xaw.o, lwlib_objs)
2910 XE_PREPEND(-lXaw, libs_x) ;; 2931 XE_PREPEND(-lXaw, libs_x) ;;
2911 esac 2932 esac
2918 esac 2939 esac
2919 2940
2920 test "$with_menubars" = "lucid" && XE_APPEND(xlwmenu.o, lwlib_objs) 2941 test "$with_menubars" = "lucid" && XE_APPEND(xlwmenu.o, lwlib_objs)
2921 test "$with_menubars" = "motif" && XE_APPEND(xlwmenu.o, lwlib_objs) 2942 test "$with_menubars" = "motif" && XE_APPEND(xlwmenu.o, lwlib_objs)
2922 test "$with_scrollbars" = "lucid" && XE_APPEND(xlwscrollbar.o, lwlib_objs) 2943 test "$with_scrollbars" = "lucid" && XE_APPEND(xlwscrollbar.o, lwlib_objs)
2944 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
2945 XE_APPEND(xlwtabs.o xlwgcs.o, lwlib_objs)
2946 case "$with_widgets" in athena* )
2947 XE_APPEND(xlwradio.o xlwcheckbox.o xlwgauge.o, lwlib_objs);;
2948 esac
2923 case "$all_widgets" in *lucid* ) 2949 case "$all_widgets" in *lucid* )
2924 AC_DEFINE(NEED_LUCID) 2950 AC_DEFINE(NEED_LUCID)
2925 XE_APPEND(lwlib-Xlw.o, lwlib_objs) ;; 2951 XE_APPEND(lwlib-Xlw.o, lwlib_objs) ;;
2926 esac 2952 esac
2927 2953
2929 2955
2930 case "$with_scrollbars" in athena* ) AC_DEFINE(LWLIB_SCROLLBARS_ATHENA);; esac 2956 case "$with_scrollbars" in athena* ) AC_DEFINE(LWLIB_SCROLLBARS_ATHENA);; esac
2931 case "$with_dialogs" in athena* ) AC_DEFINE(LWLIB_DIALOGS_ATHENA) ;; esac 2957 case "$with_dialogs" in athena* ) AC_DEFINE(LWLIB_DIALOGS_ATHENA) ;; esac
2932 test "$with_scrollbars" = "athena3d" && AC_DEFINE(LWLIB_SCROLLBARS_ATHENA3D) 2958 test "$with_scrollbars" = "athena3d" && AC_DEFINE(LWLIB_SCROLLBARS_ATHENA3D)
2933 test "$with_dialogs" = "athena3d" && AC_DEFINE(LWLIB_DIALOGS_ATHENA3D) 2959 test "$with_dialogs" = "athena3d" && AC_DEFINE(LWLIB_DIALOGS_ATHENA3D)
2960 case "$with_widgets" in athena* ) AC_DEFINE(LWLIB_WIDGETS_ATHENA);; esac
2961 test "$with_widgets" != "no" && test "$with_widgets" != "msw" && \
2962 AC_DEFINE(LWLIB_TABS_LUCID)
2934 2963
2935 test "$with_menubars" != "no" && AC_DEFINE(HAVE_MENUBARS) 2964 test "$with_menubars" != "no" && AC_DEFINE(HAVE_MENUBARS)
2936 test "$with_scrollbars" != "no" && AC_DEFINE(HAVE_SCROLLBARS) 2965 test "$with_scrollbars" != "no" && AC_DEFINE(HAVE_SCROLLBARS)
2937 test "$with_dialogs" != "no" && AC_DEFINE(HAVE_DIALOGS) 2966 test "$with_dialogs" != "no" && AC_DEFINE(HAVE_DIALOGS)
2938 test "$with_toolbars" != "no" && AC_DEFINE(HAVE_TOOLBARS) 2967 test "$with_toolbars" != "no" && AC_DEFINE(HAVE_TOOLBARS)
2968 test "$with_widgets" != "no" && AC_DEFINE(HAVE_WIDGETS)
2939 2969
2940 test "$with_menubars" = "lucid" && AC_DEFINE(LWLIB_MENUBARS_LUCID) 2970 test "$with_menubars" = "lucid" && AC_DEFINE(LWLIB_MENUBARS_LUCID)
2941 test "$with_scrollbars" = "lucid" && AC_DEFINE(LWLIB_SCROLLBARS_LUCID) 2971 test "$with_scrollbars" = "lucid" && AC_DEFINE(LWLIB_SCROLLBARS_LUCID)
2942 2972
2943 test "$with_menubars" = "motif" && AC_DEFINE(LWLIB_MENUBARS_MOTIF) 2973 test "$with_menubars" = "motif" && AC_DEFINE(LWLIB_MENUBARS_MOTIF)
2944 test "$with_scrollbars" = "motif" && AC_DEFINE(LWLIB_SCROLLBARS_MOTIF) 2974 test "$with_scrollbars" = "motif" && AC_DEFINE(LWLIB_SCROLLBARS_MOTIF)
2945 test "$with_dialogs" = "motif" && AC_DEFINE(LWLIB_DIALOGS_MOTIF) 2975 test "$with_dialogs" = "motif" && AC_DEFINE(LWLIB_DIALOGS_MOTIF)
2976 test "$with_widgets" = "motif" && AC_DEFINE(LWLIB_WIDGETS_MOTIF)
2946 2977
2947 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar.o) 2978 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar.o)
2948 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar.o) 2979 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar.o)
2949 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog.o) 2980 test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog.o)
2950 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar.o) 2981 test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar.o)
3100 dnl AIX needs the following library for use with Motif 3131 dnl AIX needs the following library for use with Motif
3101 AC_CHECK_LIB(i18n, layout_object_getvalue, [XE_PREPEND(-li18n, libs_x)]) 3132 AC_CHECK_LIB(i18n, layout_object_getvalue, [XE_PREPEND(-li18n, libs_x)])
3102 XE_COMPUTE_RUNPATH() 3133 XE_COMPUTE_RUNPATH()
3103 fi 3134 fi
3104 3135
3105 AC_CHECK_FUNCS(cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf) 3136 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)
3106 3137
3107 dnl realpath is buggy on linux, decosf and aix4 3138 dnl realpath is buggy on linux, decosf and aix4
3108 3139
3109 dnl The realpath() in linux libc (4.6.27) sometimes fails with ELOOP. 3140 dnl The realpath() in linux libc (4.6.27) sometimes fails with ELOOP.
3110 dnl The realpath in ELF linux libc's is O.K. 3141 dnl The realpath in ELF linux libc's is O.K.
3960 if test "$with_site_modules" = "no"; then 3991 if test "$with_site_modules" = "no"; then
3961 AC_DEFINE(INHIBIT_SITE_MODULES) 3992 AC_DEFINE(INHIBIT_SITE_MODULES)
3962 fi 3993 fi
3963 3994
3964 XE_SPACE(ac_configure_args, $ac_configure_args) 3995 XE_SPACE(ac_configure_args, $ac_configure_args)
3965 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "$canonical") 3996 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "$configuration")
3966 AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "$ac_configure_args") 3997 AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "$ac_configure_args")
3967 AC_DEFINE_UNQUOTED(config_machfile, "$machfile") 3998 AC_DEFINE_UNQUOTED(config_machfile, "$machfile")
3968 AC_DEFINE_UNQUOTED(config_opsysfile, "$opsysfile") 3999 AC_DEFINE_UNQUOTED(config_opsysfile, "$opsysfile")
3969 4000
3970 dnl Following are deprecated 4001 dnl Following are deprecated
3996 test "$with_quantify" = "yes" && AC_DEFINE(QUANTIFY) 4027 test "$with_quantify" = "yes" && AC_DEFINE(QUANTIFY)
3997 test "$with_pop" = "yes" && AC_DEFINE(MAIL_USE_POP) 4028 test "$with_pop" = "yes" && AC_DEFINE(MAIL_USE_POP)
3998 test "$with_kerberos" = "yes" && AC_DEFINE(KERBEROS) 4029 test "$with_kerberos" = "yes" && AC_DEFINE(KERBEROS)
3999 test "$with_hesiod" = "yes" && AC_DEFINE(HESIOD) 4030 test "$with_hesiod" = "yes" && AC_DEFINE(HESIOD)
4000 test "$use_union_type" = "yes" && AC_DEFINE(USE_UNION_TYPE) 4031 test "$use_union_type" = "yes" && AC_DEFINE(USE_UNION_TYPE)
4032 test "$pdump" = "yes" && AC_DEFINE(PDUMP)
4001 4033
4002 dnl ------------------------------- 4034 dnl -------------------------------
4003 dnl Report on what we decided to do 4035 dnl Report on what we decided to do
4004 dnl ------------------------------- 4036 dnl -------------------------------
4005 4037
4130 lucid ) echo " Using Lucid menubars." ;; 4162 lucid ) echo " Using Lucid menubars." ;;
4131 motif ) echo " Using Motif menubars." 4163 motif ) echo " Using Motif menubars."
4132 echo " *WARNING* The Motif menubar implementation is currently buggy." 4164 echo " *WARNING* The Motif menubar implementation is currently buggy."
4133 echo " We recommend using the Lucid menubar instead." 4165 echo " We recommend using the Lucid menubar instead."
4134 echo " Re-run configure with --with-menubars='lucid'." ;; 4166 echo " Re-run configure with --with-menubars='lucid'." ;;
4167 msw ) echo " Using MS-Windows menubars." ;;
4135 esac 4168 esac
4136 case "$with_scrollbars" in 4169 case "$with_scrollbars" in
4137 lucid ) echo " Using Lucid scrollbars." ;; 4170 lucid ) echo " Using Lucid scrollbars." ;;
4138 motif ) echo " Using Motif scrollbars." ;; 4171 motif ) echo " Using Motif scrollbars." ;;
4139 athena ) echo " Using Athena scrollbars." ;; 4172 athena ) echo " Using Athena scrollbars." ;;
4140 athena3d ) echo " Using Athena-3d scrollbars." ;; 4173 athena3d ) echo " Using Athena-3d scrollbars." ;;
4174 msw ) echo " Using MS-Windows scrollbars." ;;
4141 esac 4175 esac
4142 case "$with_widgets" in 4176 case "$with_widgets" in
4143 motif ) echo " Using Motif native widgets." ;; 4177 motif ) echo " Using Motif native widgets." ;;
4178 athena ) echo " Using Athena native widgets." ;;
4179 athena3d ) echo " Using Athena-3d native widgets." ;;
4180 msw ) echo " Using MS-Windows native widgets." ;;
4144 esac 4181 esac
4145 case "$with_dialogs" in 4182 case "$with_dialogs" in
4146 motif ) 4183 motif )
4147 echo " Using Motif dialog boxes." 4184 echo " Using Motif dialog boxes."
4148 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then 4185 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
4152 echo " Read the PROBLEMS file for more information." 4189 echo " Read the PROBLEMS file for more information."
4153 fi; fi 4190 fi; fi
4154 ;; 4191 ;;
4155 athena ) echo " Using Athena dialog boxes." ;; 4192 athena ) echo " Using Athena dialog boxes." ;;
4156 athena3d ) echo " Using Athena-3d dialog boxes." ;; 4193 athena3d ) echo " Using Athena-3d dialog boxes." ;;
4194 msw ) echo " Using MS-Windows dialog boxes." ;;
4157 esac 4195 esac
4158 test "$with_modules" = "yes" && echo " Compiling in DSO module support." 4196 test "$with_modules" = "yes" && echo " Compiling in DSO module support."
4159 test "$with_clash_detection" = yes && \ 4197 test "$with_clash_detection" = yes && \
4160 echo " Clash detection will use \"$lockdir\" for locking files." 4198 echo " Clash detection will use \"$lockdir\" for locking files."
4161 echo " movemail will use \"$mail_locking\" for locking mail spool files." 4199 echo " movemail will use \"$mail_locking\" for locking mail spool files."
4162 test "$with_pop" = yes && echo " Using POP for mail access." 4200 test "$with_pop" = yes && echo " Using POP for mail access."
4163 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication." 4201 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
4164 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host." 4202 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host."
4165 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects." 4203 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects."
4166 test "$debug" = yes && echo " Compiling in extra code for debugging." 4204 test "$pdump" = yes && echo " Using the new portable dumper (wishful thinking)."
4167 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." 4205 test "$debug" = yes && echo " Compiling in extra code for debugging."
4206 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
4168 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \ 4207 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \
4169 != "no no no no no"; then 4208 != "no no no no no"; then
4170 echo " WARNING: ---------------------------------------------------------" 4209 echo " WARNING: ---------------------------------------------------------"
4171 echo " WARNING: Compiling in support for runtime error checking." 4210 echo " WARNING: Compiling in support for runtime error checking."
4172 echo " WARNING: XEmacs will run noticeably more slowly as a result." 4211 echo " WARNING: XEmacs will run noticeably more slowly as a result."