Mercurial > hg > xemacs-beta
comparison configure.in @ 171:929b76928fce r20-3b12
Import from CVS: tag r20-3b12
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:47:52 +0200 |
parents | 15872534500d |
children | 8eaf7971accc |
comparison
equal
deleted
inserted
replaced
170:98a42ee61975 | 171:929b76928fce |
---|---|
348 with_x11='' | 348 with_x11='' |
349 rel_alloc='default' | 349 rel_alloc='default' |
350 use_system_malloc='default' | 350 use_system_malloc='default' |
351 energize_version='' | 351 energize_version='' |
352 native_sound_lib='' | 352 native_sound_lib='' |
353 dnl make normal error-checking be the default in alpha and beta versions, so | |
354 dnl that bugs get noticed. Change this for released versions. | |
355 error_check_default="yes" | |
356 error_check_extents=$error_check_default | |
357 error_check_typecheck=$error_check_default | |
358 error_check_bufpos=$error_check_default | |
359 error_check_gc=$error_check_default | |
360 error_check_malloc=$error_check_default | |
361 dnl debug=yes must be set when error checking is present. This should be | |
362 dnl fixed up. | |
363 debug=$error_check_default | |
364 dnl Default to --extra-verbose when debugging | |
365 extra_verbose=$error_check_default | |
366 dnl use-assertions should be 'yes' by default. Too many people in this | 353 dnl use-assertions should be 'yes' by default. Too many people in this |
367 dnl world have core dumps turned off by default or \"cannot find where the | 354 dnl world have core dumps turned off by default or \"cannot find where the |
368 dnl core file went\". At least we should get some useful output ... | 355 dnl core file went\". At least we should get some useful output ... |
369 use_assertions="yes" | 356 use_assertions="yes" |
370 dnl the following is set to yes or no later. | 357 dnl the following is set to yes or no later. |
372 dnl the following is set to yes or no later. | 359 dnl the following is set to yes or no later. |
373 with_toolbars="" | 360 with_toolbars="" |
374 with_tty="" | 361 with_tty="" |
375 use_union_type="no" | 362 use_union_type="no" |
376 with_dnet="" | 363 with_dnet="" |
377 | |
378 dnl On Sun systems, people sometimes set up the variable CPP | |
379 dnl with a value that is a directory, not an executable at all. | |
380 dnl Detect that case, and ignore that value. | |
381 test -n "$CPP" -a -d "$CPP" && CPP= | |
382 | 364 |
383 dnl Usage message (get it via -help) | 365 dnl Usage message (get it via -help) |
384 usage="Usage: $progname CONFIGURATION [[-OPTION[=VALUE] ...]] | 366 usage="Usage: $progname CONFIGURATION [[-OPTION[=VALUE] ...]] |
385 | 367 |
386 Set compilation and installation parameters for XEmacs, and report. | 368 Set compilation and installation parameters for XEmacs, and report. |
1051 vpath %.l $(srcdir)\ | 1033 vpath %.l $(srcdir)\ |
1052 vpath %.s $(srcdir)\ | 1034 vpath %.s $(srcdir)\ |
1053 vpath %.in $(srcdir)' | 1035 vpath %.in $(srcdir)' |
1054 fi | 1036 fi |
1055 | 1037 |
1038 dnl ---------------------------------------- | |
1039 dnl Find out which version of XEmacs this is | |
1040 dnl ---------------------------------------- | |
1041 . "$srcdir/version.sh" || exit 1; | |
1042 version="${emacs_major_version}.${emacs_minor_version}" | |
1043 AC_DEFINE_UNQUOTED(EMACS_MAJOR_VERSION, $emacs_major_version) | |
1044 AC_DEFINE_UNQUOTED(EMACS_MINOR_VERSION, $emacs_minor_version) | |
1045 if test -n "$emacs_beta_version"; then | |
1046 version="${version}-b${emacs_beta_version}" | |
1047 AC_DEFINE_UNQUOTED(EMACS_BETA_VERSION, $emacs_beta_version) | |
1048 fi | |
1049 AC_DEFINE_UNQUOTED(XEMACS_CODENAME, "$xemacs_codename") | |
1050 AC_DEFINE_UNQUOTED(EMACS_VERSION, "$version") | |
1051 canonical_version=`echo ${version}_${canonical} | sed 'y/.-/__/'` | |
1052 AC_DEFINE_UNQUOTED(CANONICAL_VERSION, $canonical_version) | |
1053 | |
1054 dnl ---------------------------------- | |
1055 dnl Error checking and debugging flags | |
1056 dnl ---------------------------------- | |
1057 dnl Error checking default to "yes" in beta versions, to "no" in releases. | |
1058 dnl Same goes for --debug and --extra-verbosity. | |
1059 if test -n "$emacs_beta_version"; then beta=yes; else beta=no; fi | |
1060 test "${error_check_extents=$beta}" = yes && AC_DEFINE(ERROR_CHECK_EXTENTS) | |
1061 test "${error_check_typecheck=$beta}" = yes && AC_DEFINE(ERROR_CHECK_TYPECHECK) | |
1062 test "${error_check_bufpos=$beta}" = yes && AC_DEFINE(ERROR_CHECK_BUFPOS) | |
1063 test "${error_check_gc=$beta}" = yes && AC_DEFINE(ERROR_CHECK_GC) | |
1064 test "${error_check_malloc=$beta}" = yes && AC_DEFINE(ERROR_CHECK_MALLOC) | |
1065 : "${extra_verbose=$beta}" | |
1066 dnl debug=yes must be set when error checking is present. This should be | |
1067 dnl fixed up. | |
1068 dnl debug implies other options | |
1069 if test "${debug=beta}" = "yes"; then | |
1070 use_assertions=yes memory_usage_stats=yes | |
1071 XE_ADD_OBJS(debug.o) | |
1072 AC_DEFINE(DEBUG_XEMACS) | |
1073 fi | |
1074 test "$use_assertions" = "yes" && AC_DEFINE(USE_ASSERTIONS) | |
1075 test "$memory_usage_stats" = "yes" && AC_DEFINE(MEMORY_USAGE_STATS) | |
1076 | |
1056 dnl ------------------------------ | 1077 dnl ------------------------------ |
1057 dnl Determine the s&m files to use | 1078 dnl Determine the s&m files to use |
1058 dnl ------------------------------ | 1079 dnl ------------------------------ |
1059 dnl Given the configuration name, set machfile and opsysfile to the | 1080 dnl Given the configuration name, set machfile and opsysfile to the |
1060 dnl names of the m/*.h and s/*.h files we should use. | 1081 dnl names of the m/*.h and s/*.h files we should use. |
1564 | 1585 |
1565 dnl -------------------------------------------------- | 1586 dnl -------------------------------------------------- |
1566 dnl Determine the compiler, set up for feature testing | 1587 dnl Determine the compiler, set up for feature testing |
1567 dnl -------------------------------------------------- | 1588 dnl -------------------------------------------------- |
1568 | 1589 |
1569 dnl debug implies other options | |
1570 if test "$debug" = "yes"; then | |
1571 use_assertions=yes memory_usage_stats=yes | |
1572 XE_ADD_OBJS(debug.o) | |
1573 fi | |
1574 | |
1575 dnl Sun Development environment support | 1590 dnl Sun Development environment support |
1576 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias | 1591 test "$with_sparcworks" = "yes" && with_workshop=yes # compatibility alias |
1577 if test "$with_workshop" = "yes"; then | 1592 if test "$with_workshop" = "yes"; then |
1578 AC_DEFINE(SUNPRO) | 1593 AC_DEFINE(SUNPRO) |
1579 XE_ADD_OBJS(sunpro.o) | 1594 XE_ADD_OBJS(sunpro.o) |
1602 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then | 1617 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then |
1603 CC=gcc | 1618 CC=gcc |
1604 AC_PROG_CC | 1619 AC_PROG_CC |
1605 fi | 1620 fi |
1606 CFLAGS="$xe_save_CFLAGS" | 1621 CFLAGS="$xe_save_CFLAGS" |
1622 | |
1623 dnl Figure out what C preprocessor to use. | |
1624 | |
1625 dnl On Sun systems, people sometimes set up the variable CPP | |
1626 dnl with a value that is a directory, not an executable at all. | |
1627 dnl Detect that case, and ignore that value. | |
1628 test -n "$CPP" -a -d "$CPP" && CPP= | |
1607 | 1629 |
1608 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" | 1630 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" |
1609 | 1631 |
1610 AC_PROG_CPP | 1632 AC_PROG_CPP |
1611 | 1633 |
2864 dnl AIX export list | 2886 dnl AIX export list |
2865 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp" ; do | 2887 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp" ; do |
2866 if test -r $f; then AC_DEFINE_UNQUOTED(AIX_SMT_EXP, -bI:$f) break; fi | 2888 if test -r $f; then AC_DEFINE_UNQUOTED(AIX_SMT_EXP, -bI:$f) break; fi |
2867 done | 2889 done |
2868 | 2890 |
2869 dnl Find out which version of XEmacs this is. | |
2870 . "$srcdir/version.sh" || exit 1; | |
2871 #version=`sed -ne 's/^(defconst emacs-version "\(.*\)".*/\1/p' "$file"` | |
2872 #if test -z "$version"; then | |
2873 # echo "$progname: can't find current emacs version in \"$file\"." >&2 | |
2874 # exit 1 | |
2875 #fi | |
2876 #beta=`sed -ne 's/^.*beta.*(beta\([[0-9]][[0-9]]*\)).*$/\1/p' "$file"` | |
2877 #test -n "$beta" && version="${version}-b${beta}" | |
2878 version="${emacs_major_version}.${emacs_minor_version}" | |
2879 AC_DEFINE_UNQUOTED(EMACS_MAJOR_VERSION, $emacs_major_version) | |
2880 AC_DEFINE_UNQUOTED(EMACS_MINOR_VERSION, $emacs_minor_version) | |
2881 if test -n "$emacs_beta_version"; then | |
2882 version="${version}-b${emacs_beta_version}" | |
2883 AC_DEFINE_UNQUOTED(EMACS_BETA_VERSION, $emacs_beta_version) | |
2884 fi | |
2885 AC_DEFINE_UNQUOTED(XEMACS_CODENAME, "$xemacs_codename") | |
2886 AC_DEFINE_UNQUOTED(EMACS_VERSION, "$version") | |
2887 canonical_version=`echo ${version}_${canonical} | sed 'y/.-/__/'` | |
2888 AC_DEFINE_UNQUOTED(CANONICAL_VERSION, $canonical_version) | |
2889 | |
2890 | |
2891 dnl Check for sound of various sorts. | 2891 dnl Check for sound of various sorts. |
2892 | 2892 |
2893 dnl Autodetect native sound | 2893 dnl Autodetect native sound |
2894 AC_CHECKING("for sound support") | 2894 AC_CHECKING("for sound support") |
2895 case "$with_sound" in | 2895 case "$with_sound" in |
3319 test "$with_term" = "yes" && AC_DEFINE(HAVE_TERM) | 3319 test "$with_term" = "yes" && AC_DEFINE(HAVE_TERM) |
3320 test "$external_widget" = "yes" && AC_DEFINE(EXTERNAL_WIDGET) | 3320 test "$external_widget" = "yes" && AC_DEFINE(EXTERNAL_WIDGET) |
3321 test "$with_gnu_make" = "yes" && AC_DEFINE(USE_GNU_MAKE) | 3321 test "$with_gnu_make" = "yes" && AC_DEFINE(USE_GNU_MAKE) |
3322 test "$no_doc_file" = "yes" && AC_DEFINE(NO_DOC_FILE) | 3322 test "$no_doc_file" = "yes" && AC_DEFINE(NO_DOC_FILE) |
3323 test "$const_is_losing" = "yes" && AC_DEFINE(CONST_IS_LOSING) | 3323 test "$const_is_losing" = "yes" && AC_DEFINE(CONST_IS_LOSING) |
3324 test "$use_assertions" = "yes" && AC_DEFINE(USE_ASSERTIONS) | |
3325 test "$debug" = "yes" && AC_DEFINE(DEBUG_XEMACS) | |
3326 test "$with_quantify" = "yes" && AC_DEFINE(QUANTIFY) | 3324 test "$with_quantify" = "yes" && AC_DEFINE(QUANTIFY) |
3327 test "$memory_usage_stats" = "yes" && AC_DEFINE(MEMORY_USAGE_STATS) | |
3328 test "$with_pop" = "yes" && AC_DEFINE(MAIL_USE_POP) | 3325 test "$with_pop" = "yes" && AC_DEFINE(MAIL_USE_POP) |
3329 test "$with_kerberos" = "yes" && AC_DEFINE(KERBEROS) | 3326 test "$with_kerberos" = "yes" && AC_DEFINE(KERBEROS) |
3330 test "$with_hesiod" = "yes" && AC_DEFINE(HESIOD) | 3327 test "$with_hesiod" = "yes" && AC_DEFINE(HESIOD) |
3331 | |
3332 test "$error_check_extents" = "yes" && AC_DEFINE(ERROR_CHECK_EXTENTS) | |
3333 test "$error_check_typecheck" = "yes" && AC_DEFINE(ERROR_CHECK_TYPECHECK) | |
3334 test "$error_check_bufpos" = "yes" && AC_DEFINE(ERROR_CHECK_BUFPOS) | |
3335 test "$error_check_gc" = "yes" && AC_DEFINE(ERROR_CHECK_GC) | |
3336 test "$error_check_malloc" = "yes" && AC_DEFINE(ERROR_CHECK_MALLOC) | |
3337 | 3328 |
3338 test "$use_union_type" != yes && AC_DEFINE(NO_UNION_TYPE) | 3329 test "$use_union_type" != yes && AC_DEFINE(NO_UNION_TYPE) |
3339 | 3330 |
3340 dnl ------------------------------- | 3331 dnl ------------------------------- |
3341 dnl Report on what we decided to do | 3332 dnl Report on what we decided to do |