Mercurial > hg > xemacs-beta
comparison configure.in @ 267:966663fcf606 r20-5b32
Import from CVS: tag r20-5b32
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:26:29 +0200 |
parents | 8efd647ea9ca |
children | b2472a1930f2 |
comparison
equal
deleted
inserted
replaced
266:18d185df8c54 | 267:966663fcf606 |
---|---|
253 target=NONE | 253 target=NONE |
254 verbose= | 254 verbose= |
255 x_includes=NONE | 255 x_includes=NONE |
256 x_libraries=NONE | 256 x_libraries=NONE |
257 CDPATH=.; export CDPATH | 257 CDPATH=.; export CDPATH |
258 dnl this will serve for testing if a default value should be given | |
259 package_path=NONE | |
260 | 258 |
261 dnl Allow this script to work with zsh, by setting sh emulation options | 259 dnl Allow this script to work with zsh, by setting sh emulation options |
262 if test -n "$ZSH_VERSION"; then | 260 if test -n "$ZSH_VERSION"; then |
263 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO | 261 setopt NO_BAD_PATTERN NO_BANG_HIST NO_BG_NICE NO_EQUALS NO_FUNCTION_ARGZERO |
264 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH | 262 setopt GLOB_SUBST NO_HUP INTERACTIVE_COMMENTS KSH_ARRAYS NO_MULTIOS NO_NOMATCH |
333 infopath='/usr/local/lib/texmf/doc/info:/usr/local/lib/texmf/info:/usr/lib/texmf/doc/info:/usr/lib/texmf/info:/usr/local/info:/usr/info' | 331 infopath='/usr/local/lib/texmf/doc/info:/usr/local/lib/texmf/info:/usr/lib/texmf/doc/info:/usr/lib/texmf/info:/usr/local/info:/usr/info' |
334 infopath_user_defined='no' | 332 infopath_user_defined='no' |
335 lispdir='${datadir}/xemacs-${version}/lisp' | 333 lispdir='${datadir}/xemacs-${version}/lisp' |
336 lispdir_user_defined='no' | 334 lispdir_user_defined='no' |
337 sitelispdir='${datadir}/xemacs/site-lisp' | 335 sitelispdir='${datadir}/xemacs/site-lisp' |
336 sitelispdir_user_defined='no' | |
337 packagepath='~/.xemacs::${datadir}/xemacs/mule-packages:${datadir}/xemacs-${version}/mule-packages:${datadir}/xemacs/packages:${datadir}/xemacs-${version}/packages' | |
338 packagepath_user_defined='no' | |
338 etcdir='${datadir}/xemacs-${version}/etc' | 339 etcdir='${datadir}/xemacs-${version}/etc' |
339 etcdir_user_defined='no' | 340 etcdir_user_defined='no' |
340 lockdir='${statedir}/xemacs/lock' | 341 lockdir='${statedir}/xemacs/lock' |
341 lockdir_user_defined='no' | 342 lockdir_user_defined='no' |
342 archlibdir='${libdir}/xemacs-${version}/${configuration}' | 343 archlibdir='${libdir}/xemacs-${version}/${configuration}' |
343 archlibdir_user_defined='no' | 344 archlibdir_user_defined='no' |
345 with_site_lisp='yes' | |
344 with_menubars='' | 346 with_menubars='' |
345 with_scrollbars='' | 347 with_scrollbars='' |
346 with_dialogs='' | 348 with_dialogs='' |
347 with_file_coding='' | 349 with_file_coding='' |
348 const_is_losing='yes' | 350 const_is_losing='yes' |
512 compiler | \ | 514 compiler | \ |
513 cflags | \ | 515 cflags | \ |
514 puresize | \ | 516 puresize | \ |
515 cache_file | \ | 517 cache_file | \ |
516 native_sound_lib | \ | 518 native_sound_lib | \ |
517 package_path | \ | 519 site_lisp | \ |
518 x_includes | \ | 520 x_includes | \ |
519 x_libraries | \ | 521 x_libraries | \ |
520 site_includes | \ | 522 site_includes | \ |
521 site_libraries | \ | 523 site_libraries | \ |
522 site_prefixes | \ | 524 site_prefixes | \ |
627 "error_checking" ) | 629 "error_checking" ) |
628 dnl value can be all, none, and/or a list of categories to check. | 630 dnl value can be all, none, and/or a list of categories to check. |
629 dnl Example: --error-checking=all,noextents,nobufpos | 631 dnl Example: --error-checking=all,noextents,nobufpos |
630 dnl Example: --error-checking=none,malloc,gc | 632 dnl Example: --error-checking=none,malloc,gc |
631 | 633 |
632 for x in `echo "$val" | sed -e 's/,/ /'` ; do | 634 for x in `echo "$val" | sed -e 's/,/ /g'` ; do |
633 case "$x" in | 635 case "$x" in |
634 dnl all and none are only permitted as the first in the list. | 636 dnl all and none are only permitted as the first in the list. |
635 n | no | non | none ) new_default=no ;; | 637 n | no | non | none ) new_default=no ;; |
636 a | al | all ) new_default=yes ;; | 638 a | al | all ) new_default=yes ;; |
637 | 639 |
652 | 654 |
653 * ) bogus_error_check=yes ;; | 655 * ) bogus_error_check=yes ;; |
654 esac | 656 esac |
655 if test "$bogus_error_check" -o \ | 657 if test "$bogus_error_check" -o \ |
656 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then | 658 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then |
657 if test $error_check_default = yes ; then | 659 if test "$error_check_default" = yes ; then |
658 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'." | 660 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'." |
659 else | 661 else |
660 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'." | 662 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'." |
661 fi | 663 fi |
662 USAGE_ERROR(["Valid types for the \`--$optname' option are: | 664 USAGE_ERROR(["Valid types for the \`--$optname' option are: |
679 dnl installed in odd places. | 681 dnl installed in odd places. |
680 | 682 |
681 dnl Has the user specified one of the path options? | 683 dnl Has the user specified one of the path options? |
682 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ | 684 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ |
683 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \ | 685 mandir | infodir | infopath | lispdir | etcdir | lockdir | pkgdir | \ |
684 archlibdir | sitelispdir | docdir ) | 686 archlibdir | sitelispdir | docdir | packagepath ) |
685 dnl If the value was omitted, get it from the next argument. | 687 dnl If the value was omitted, get it from the next argument. |
686 if test "$valomitted" = "yes"; then | 688 if test "$valomitted" = "yes"; then |
687 if test "$#" = 0; then | 689 if test "$#" = 0; then |
688 USAGE_ERROR("The \`--$optname' option requires a value."); | 690 USAGE_ERROR("The \`--$optname' option requires a value."); |
689 fi | 691 fi |
695 dnl of archlibdir. Changing datadir will change the default value | 697 dnl of archlibdir. Changing datadir will change the default value |
696 dnl of etcdir and lispdir. Changing statedir will change the | 698 dnl of etcdir and lispdir. Changing statedir will change the |
697 dnl default value of lockdir. | 699 dnl default value of lockdir. |
698 case "$opt" in | 700 case "$opt" in |
699 lispdir ) lispdir_user_defined=yes ;; | 701 lispdir ) lispdir_user_defined=yes ;; |
702 sitelispdir ) sitelispdir_user_defined=yes ;; | |
700 etcdir ) etcdir_user_defined=yes ;; | 703 etcdir ) etcdir_user_defined=yes ;; |
701 infodir ) infodir_user_defined=yes ;; | 704 infodir ) infodir_user_defined=yes ;; |
702 infopath ) infopath_user_defined=yes ;; | 705 infopath ) infopath_user_defined=yes ;; |
706 packagepath ) packagepath_user_defined=yes ;; | |
703 datadir ) lispdir_user_defined=yes etcdir_user_defined=yes ;; | 707 datadir ) lispdir_user_defined=yes etcdir_user_defined=yes ;; |
704 statedir | lockdir ) lockdir_user_defined=yes ;; | 708 statedir | lockdir ) lockdir_user_defined=yes ;; |
705 exec_prefix | libdir | archlibdir ) archlibdir_user_defined=yes ;; | 709 exec_prefix | libdir | archlibdir ) archlibdir_user_defined=yes ;; |
706 esac | 710 esac |
707 ;; | 711 ;; |
1960 AC_DEFINE(_NO_MALLOC_WARNING_) | 1964 AC_DEFINE(_NO_MALLOC_WARNING_) |
1961 fi | 1965 fi |
1962 with_minimal_tagbits=yes | 1966 with_minimal_tagbits=yes |
1963 fi | 1967 fi |
1964 | 1968 |
1969 dnl #### mcheck is broken in all versions of Linux libc and glibc. | |
1970 dnl Try this again when 2.1 hits the streets. | |
1971 dnl Avoid using free-hook.c if support exists for malloc debugging in libc | |
1972 dnl have_libmcheck=no | |
1973 dnl if test "$error_check_malloc" = "yes" -a \ | |
1974 dnl "$have_glibc" = "yes" -a \ | |
1975 dnl "$doug_lea_malloc" = "yes"; then | |
1976 dnl AC_CHECK_HEADERS(mcheck.h) | |
1977 dnl AC_CHECK_LIB(mcheck, mcheck, have_libmcheck=yes, have_libmcheck=no) | |
1978 dnl fi | |
1979 | |
1980 dnl if test "$have_libmcheck" = "yes"; then | |
1981 dnl AC_DEFINE(HAVE_LIBMCHECK) | |
1982 dnl libmcheck=-lmcheck | |
1983 dnl AC_SUBST(libmcheck) | |
1984 dnl fi | |
1985 | |
1965 dnl Some other nice autoconf tests. If you add a test here which | 1986 dnl Some other nice autoconf tests. If you add a test here which |
1966 dnl should make an entry in src/config.h, do not forget to add an | 1987 dnl should make an entry in src/config.h, do not forget to add an |
1967 dnl #undef clause to src/config.h.in for autoconf to modify. | 1988 dnl #undef clause to src/config.h.in for autoconf to modify. |
1968 | 1989 |
1969 AC_PROG_RANLIB | 1990 AC_PROG_RANLIB |
2322 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-msw.o) | 2343 test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-msw.o) |
2323 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-msw.o) | 2344 test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-msw.o) |
2324 fi | 2345 fi |
2325 const_is_losing=no | 2346 const_is_losing=no |
2326 with_file_coding=yes | 2347 with_file_coding=yes |
2327 XE_ADD_OBJS(console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o) | 2348 XE_ADD_OBJS(console-msw.o device-msw.o event-msw.o frame-msw.o objects-msw.o select-msw.o redisplay-msw.o glyphs-msw.o) |
2328 fi | 2349 fi |
2329 fi | 2350 fi |
2330 | 2351 |
2331 test -z "$window_system" && window_system="none" | 2352 test -z "$window_system" && window_system="none" |
2332 | 2353 |
2523 dnl autodetect PNG | 2544 dnl autodetect PNG |
2524 test -z "$with_png" && { AC_CHECK_HEADER(png.h, , with_png=no) } | 2545 test -z "$with_png" && { AC_CHECK_HEADER(png.h, , with_png=no) } |
2525 test -z "$with_png" && { AC_CHECK_FUNC(pow, , with_png=no) } | 2546 test -z "$with_png" && { AC_CHECK_FUNC(pow, , with_png=no) } |
2526 if test "$with_png" != "no"; then | 2547 if test "$with_png" != "no"; then |
2527 for extra_libs in "" "-lz" "-lgz"; do | 2548 for extra_libs in "" "-lz" "-lgz"; do |
2528 AC_CHECK_LIB(png, png_read_image, | 2549 AC_CHECK_LIB(png, png_set_strip_alpha, |
2529 png_libs="-lpng $extra_libs" with_png=yes; break,[:],$extra_libs) | 2550 png_libs="-lpng $extra_libs" with_png=yes; break,[:],$extra_libs) |
2530 done | 2551 done |
2531 fi | 2552 fi |
2532 test -z "$with_png" && with_png=no | 2553 test -z "$with_png" && with_png=no |
2533 if test "$with_png" = "yes"; then | 2554 if test "$with_png" = "yes"; then |
2731 AC_CHECK_LIB(wnn, jl_fi_dic_list, with_wnn6=yes) | 2752 AC_CHECK_LIB(wnn, jl_fi_dic_list, with_wnn6=yes) |
2732 test "$with_wnn6" = "yes" && AC_DEFINE(WNN6) | 2753 test "$with_wnn6" = "yes" && AC_DEFINE(WNN6) |
2733 fi | 2754 fi |
2734 | 2755 |
2735 dnl Autodetect canna | 2756 dnl Autodetect canna |
2757 canna_includes_found=no | |
2758 if test "$with_canna" != "no"; then | |
2759 AC_CHECK_HEADER(canna/jrkanji.h,canna_includes_found=yes) | |
2760 fi | |
2761 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \ | |
2762 -d "/usr/local/canna/include"; then | |
2763 save_c_switch_site="$c_switch_site" | |
2764 c_switch_site="$c_switch_site -I/usr/local/canna/include" | |
2765 AC_CHECK_HEADER(canna/jrkanji.h,canna_includes_found=yes) | |
2766 if test "$canna_includes_found" != "yes"; then | |
2767 c_switch_site="$save_c_switch_site" | |
2768 with_canna="no" | |
2769 fi | |
2770 fi | |
2771 | |
2736 test -z "$with_canna" && { AC_CHECK_HEADER(canna/RK.h, , with_canna=no) } | 2772 test -z "$with_canna" && { AC_CHECK_HEADER(canna/RK.h, , with_canna=no) } |
2737 test -z "$with_canna" && { AC_CHECK_LIB(RKC, RkBgnBun, [:],with_canna=no) } | 2773 test -z "$with_canna" && { AC_CHECK_LIB(RKC, RkBgnBun, [:],with_canna=no) } |
2738 test -z "$with_canna" && { AC_CHECK_LIB(canna,jrKanjiControl,[:],with_canna=no) } | 2774 test -z "$with_canna" && { AC_CHECK_LIB(canna,jrKanjiControl,[:],with_canna=no) } |
2739 test -z "$with_canna" && with_canna=yes | 2775 test -z "$with_canna" && with_canna=yes |
2740 if test "$with_canna" = "yes"; then | 2776 if test "$with_canna" = "yes"; then |
3262 test ! -z "$DLL_LIB" && XE_PREPEND(-l${DLL_LIB}, LIBS) | 3298 test ! -z "$DLL_LIB" && XE_PREPEND(-l${DLL_LIB}, LIBS) |
3263 XE_MAKE_SHAREDLIB | 3299 XE_MAKE_SHAREDLIB |
3264 ld_dynamic_link_flags= | 3300 ld_dynamic_link_flags= |
3265 dnl Fill this in with other values as this gets more testing | 3301 dnl Fill this in with other values as this gets more testing |
3266 case "$opsys" in | 3302 case "$opsys" in |
3267 hpux*) ld_dynamic_link_flags="-E" ;; | 3303 hpux*) ld_dynamic_link_flags="-Wl,-E" ;; |
3268 linux*) ld_dynamic_link_flags="-rdynamic" ;; | 3304 linux*) ld_dynamic_link_flags="-rdynamic" ;; |
3269 *) ;; | 3305 *) ;; |
3270 esac | 3306 esac |
3271 fi | 3307 fi |
3272 | 3308 |
3371 AC_SUBST(mandir) | 3407 AC_SUBST(mandir) |
3372 AC_SUBST(infodir) | 3408 AC_SUBST(infodir) |
3373 AC_SUBST(infodir_user_defined) | 3409 AC_SUBST(infodir_user_defined) |
3374 AC_SUBST(infopath) | 3410 AC_SUBST(infopath) |
3375 AC_SUBST(infopath_user_defined) | 3411 AC_SUBST(infopath_user_defined) |
3412 AC_SUBST(packagepath) | |
3413 AC_SUBST(packagepath_user_defined) | |
3376 AC_SUBST(lispdir) | 3414 AC_SUBST(lispdir) |
3377 AC_SUBST(lispdir_user_defined) | 3415 AC_SUBST(lispdir_user_defined) |
3378 AC_SUBST(sitelispdir) | 3416 AC_SUBST(sitelispdir) |
3417 AC_SUBST(sitelispdir_user_defined) | |
3379 AC_SUBST(etcdir) | 3418 AC_SUBST(etcdir) |
3380 AC_SUBST(etcdir_user_defined) | 3419 AC_SUBST(etcdir_user_defined) |
3381 AC_SUBST(lockdir) | 3420 AC_SUBST(lockdir) |
3382 AC_SUBST(lockdir_user_defined) | 3421 AC_SUBST(lockdir_user_defined) |
3383 AC_SUBST(archlibdir) | 3422 AC_SUBST(archlibdir) |
3412 AC_SUBST(native_sound_lib) | 3451 AC_SUBST(native_sound_lib) |
3413 AC_SUBST(sound_cflags) | 3452 AC_SUBST(sound_cflags) |
3414 AC_SUBST(RANLIB) | 3453 AC_SUBST(RANLIB) |
3415 AC_SUBST(dynodump_arch) | 3454 AC_SUBST(dynodump_arch) |
3416 | 3455 |
3417 | 3456 # The default is yes |
3418 dnl if --package-path wasn't passed to configure, give the default value | 3457 if test "$with_site_lisp" = "no"; then |
3419 if test "${package_path}" = "NONE" ; then | 3458 AC_DEFINE(INHIBIT_SITE_LISP) |
3420 package_path="~/.xemacs:${prefix}/lib/xemacs/packages" | 3459 fi |
3421 fi | |
3422 dnl change blanks to colons in package path, and make available to config.h | |
3423 package_path=`echo $package_path | sed 'y/ /:/'` | |
3424 AC_DEFINE_UNQUOTED(PACKAGE_PATH, "$package_path") | |
3425 | 3460 |
3426 XE_SPACE(ac_configure_args, $ac_configure_args) | 3461 XE_SPACE(ac_configure_args, $ac_configure_args) |
3427 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "$canonical") | 3462 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "$canonical") |
3428 AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "$ac_configure_args") | 3463 AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "$ac_configure_args") |
3429 AC_DEFINE_UNQUOTED(config_machfile, "$machfile") | 3464 AC_DEFINE_UNQUOTED(config_machfile, "$machfile") |
3487 | 3522 |
3488 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'. | 3523 XEmacs ${emacs_major_version}.${emacs_minor_version}${xemacs_betaname} \"$xemacs_codename\" configured for \`$canonical'. |
3489 | 3524 |
3490 Where should the build process find the source code? $srcdir | 3525 Where should the build process find the source code? $srcdir |
3491 What installation prefix should install use? $prefix | 3526 What installation prefix should install use? $prefix |
3492 Where should XEmacs look for packages? $package_path | |
3493 What operating system and machine description files should XEmacs use? | 3527 What operating system and machine description files should XEmacs use? |
3494 \`$opsysfile' and \`$machfile' | 3528 \`$opsysfile' and \`$machfile' |
3495 What compiler should XEmacs be built with? $CC $CFLAGS | 3529 What compiler should XEmacs be built with? $CC $CFLAGS |
3496 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | 3530 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} |
3497 Should XEmacs use the relocating allocator for buffers? $rel_alloc | 3531 Should XEmacs use the relocating allocator for buffers? $rel_alloc |
3592 echo " Clash detection will use \"$lockdir\" for locking files." | 3626 echo " Clash detection will use \"$lockdir\" for locking files." |
3593 echo " movemail will use \"$mail_locking\" for locking mail spool files." | 3627 echo " movemail will use \"$mail_locking\" for locking mail spool files." |
3594 test "$with_pop" = yes && echo " Using POP for mail access" | 3628 test "$with_pop" = yes && echo " Using POP for mail access" |
3595 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication" | 3629 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication" |
3596 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host" | 3630 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host" |
3597 echo " The \`Info-default-directory-list' will be initialized from:" | |
3598 echo " INFOPATH=\"$infopath\"" | |
3599 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects." | 3631 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects." |
3600 test "$with_minimal_tagbits" != "no" -o "$with_gung" != "no" && \ | 3632 test "$with_minimal_tagbits" != "no" -o "$with_gung" != "no" && \ |
3601 echo " Using Lisp_Objects with minimal tagbits." | 3633 echo " Using Lisp_Objects with minimal tagbits." |
3602 test "$with_gung" != "no" && echo " Using indexed lrecord implementation." | 3634 test "$with_gung" != "no" && echo " Using indexed lrecord implementation." |
3603 test "$debug" = yes && echo " Compiling in extra code for debugging." | 3635 test "$debug" = yes && echo " Compiling in extra code for debugging." |