Mercurial > hg > xemacs-beta
comparison configure.in @ 207:e45d5e7c476e r20-4b2
Import from CVS: tag r20-4b2
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:03:52 +0200 |
parents | 850242ba4a81 |
children | 41ff10fd062f |
comparison
equal
deleted
inserted
replaced
206:d3e9274cbc4e | 207:e45d5e7c476e |
---|---|
1 dnl Define our own header notice with own copyrights | 1 dnl Define our own header notice with own copyright |
2 define([AC_INIT_NOTICE], | 2 define([AC_INIT_NOTICE], |
3 [#### Configuration script for XEmacs. Largely divergent from FSF. | 3 [#### Configuration script for XEmacs. Largely divergent from FSF. |
4 #### Guess values for system-dependent variables and create Makefiles. | 4 #### Guess values for system-dependent variables and create Makefiles. |
5 #### Generated automatically using autoconf version] AC_ACVERSION [ | 5 #### Generated automatically using autoconf version] AC_ACVERSION [ |
6 #### Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | 6 #### Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
356 dnl use-assertions should be 'yes' by default. Too many people in this | 356 dnl use-assertions should be 'yes' by default. Too many people in this |
357 dnl world have core dumps turned off by default or \"cannot find where the | 357 dnl world have core dumps turned off by default or \"cannot find where the |
358 dnl core file went\". At least we should get some useful output ... | 358 dnl core file went\". At least we should get some useful output ... |
359 use_assertions="yes" | 359 use_assertions="yes" |
360 dnl the following is set to yes or no later. | 360 dnl the following is set to yes or no later. |
361 with_gif="" | |
362 dnl the following is set to yes or no later. | 361 dnl the following is set to yes or no later. |
363 with_toolbars="" | 362 with_toolbars="" |
364 with_tty="" | 363 with_tty="" |
365 use_union_type="no" | 364 use_union_type="no" |
366 with_dnet="" | 365 with_dnet="" |
423 --x-includes=DIR Search for X header files in DIR. | 422 --x-includes=DIR Search for X header files in DIR. |
424 --x-libraries=DIR Search for X libraries in DIR. | 423 --x-libraries=DIR Search for X libraries in DIR. |
425 --with-toolbars=no Don't compile with any toolbar support. | 424 --with-toolbars=no Don't compile with any toolbar support. |
426 --with-session=no Compile without realized leader window which will | 425 --with-session=no Compile without realized leader window which will |
427 keep the WM_COMMAND property. Required for proper | 426 keep the WM_COMMAND property. Required for proper |
428 session-management. (ON by default for testing) | 427 session-management. |
429 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid | 428 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid |
430 widgets emulate Motif (mostly) but are faster. | 429 widgets emulate Motif (mostly) but are faster. |
431 *WARNING* The Motif menubar is currently broken. | 430 *WARNING* The Motif menubar is currently broken. |
432 --with-scrollbars=TYPE Use TYPE scrollbars | 431 --with-scrollbars=TYPE Use TYPE scrollbars |
433 (lucid, motif, athena, athena3d, or no). | 432 (lucid, motif, athena, athena3d, or no). |
445 (version 3.4h or better) if you don't already | 444 (version 3.4h or better) if you don't already |
446 have it. Get it from the XEmacs FTP site. | 445 have it. Get it from the XEmacs FTP site. |
447 --with-xface (*) Compile with support for X-Face mail header | 446 --with-xface (*) Compile with support for X-Face mail header |
448 conversion. Requires the compface library. | 447 conversion. Requires the compface library. |
449 Get it from the XEmacs FTP site. | 448 Get it from the XEmacs FTP site. |
450 --with-jpeg (*) Compile with support for JPEG image conversion. | 449 --with-imagick (*) Compile with support for ImageMagick image conversion. |
451 Requires libjpeg from the Independent JPEG Group. | 450 Requires ImageMagick from wizards.dupont.com and |
451 libraries for whatever image types you wish to have | |
452 supported. | |
452 Get it from the XEmacs FTP site. | 453 Get it from the XEmacs FTP site. |
453 --with-png (*) Compile with support for PNG image conversion. | |
454 Requires libpng. Get it from the XEmacs FTP site. | |
455 --with-tiff (*) Compile with support for TIFF image conversion | |
456 (not yet implemented). | |
457 | 454 |
458 | 455 |
459 TTY options: | 456 TTY options: |
460 | 457 |
461 --with-tty=no Don't support TTY-s. | 458 --with-tty=no Don't support TTY-s. |
678 with_term | \ | 675 with_term | \ |
679 with_socks | \ | 676 with_socks | \ |
680 with_cde | \ | 677 with_cde | \ |
681 with_offix | \ | 678 with_offix | \ |
682 with_gpm | \ | 679 with_gpm | \ |
683 with_gif | \ | |
684 with_xpm | \ | 680 with_xpm | \ |
685 with_xface | \ | 681 with_xface | \ |
686 with_jpeg | \ | 682 with_imagick | \ |
687 with_png | \ | |
688 with_tiff | \ | |
689 with_session | \ | 683 with_session | \ |
690 with_xmu | \ | 684 with_xmu | \ |
691 with_quantify | \ | 685 with_quantify | \ |
692 with_toolbars | \ | 686 with_toolbars | \ |
693 with_tty | \ | 687 with_tty | \ |
1044 dnl Make symlinks for etc, lisp, and info directories while the path | 1038 dnl Make symlinks for etc, lisp, and info directories while the path |
1045 dnl is still relative. We do not symlink lock because someone may | 1039 dnl is still relative. We do not symlink lock because someone may |
1046 dnl have stuck the source on a read-only partition. Instead we | 1040 dnl have stuck the source on a read-only partition. Instead we |
1047 dnl create it as an actual directory later on if it does not already | 1041 dnl create it as an actual directory later on if it does not already |
1048 dnl exist. | 1042 dnl exist. |
1049 for dir in lisp etc man info site-lisp; do | 1043 for dir in lisp etc man info; do |
1050 if test ! -d "$dir" ; then | 1044 if test ! -d "$dir" ; then |
1051 echo Making symbolic link to "$srcdir/$dir" | 1045 echo Making symbolic link to "$srcdir/$dir" |
1052 ${LN_S} "$srcdir/$dir" "$dir" | 1046 ${LN_S} "$srcdir/$dir" "$dir" |
1053 fi | 1047 fi |
1054 done | 1048 done |
1465 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;; | 1459 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;; |
1466 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;; | 1460 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;; |
1467 dnl Iris 4D | 1461 dnl Iris 4D |
1468 mips-sgi-irix3.* ) opsys=irix3-3 ;; | 1462 mips-sgi-irix3.* ) opsys=irix3-3 ;; |
1469 mips-sgi-irix4.* ) opsys=irix4-0 ;; | 1463 mips-sgi-irix4.* ) opsys=irix4-0 ;; |
1470 mips-sgi-irix6* ) opsys=irix6-0 NON_GNU_CC="cc -Olimit 2000" ;; | 1464 mips-sgi-irix6* ) opsys=irix6-0 ;; |
1471 mips-sgi-irix5.1* ) opsys=irix5-1 ;; | 1465 mips-sgi-irix5.1* ) opsys=irix5-1 ;; |
1472 mips-sgi-irix5.2* ) opsys=irix5-2 ;; | 1466 mips-sgi-irix5.2* ) opsys=irix5-2 ;; |
1473 mips-sgi-irix5.* ) opsys=irix5-3 ;; | 1467 mips-sgi-irix5.* ) opsys=irix5-3 ;; |
1474 mips-sgi-irix* ) opsys=irix5-0 ;; | 1468 mips-sgi-irix* ) opsys=irix5-0 ;; |
1475 | 1469 |
1645 linux ) ld_call_shared="-Bstatic" ;; | 1639 linux ) ld_call_shared="-Bstatic" ;; |
1646 decosf* ) ld_call_shared="-non_shared" ;; | 1640 decosf* ) ld_call_shared="-non_shared" ;; |
1647 esac | 1641 esac |
1648 fi | 1642 fi |
1649 | 1643 |
1644 dnl Use xlc by default on AIX | |
1645 case "$opsys" in aix*) NON_GNU_CC=xlc ;; esac | |
1646 | |
1650 stack_trace_eye_catcher=`echo xemacs_${version}_${canonical} | sed 'y/.-/__/'` | 1647 stack_trace_eye_catcher=`echo xemacs_${version}_${canonical} | sed 'y/.-/__/'` |
1651 AC_DEFINE_UNQUOTED(STACK_TRACE_EYE_CATCHER, $stack_trace_eye_catcher) | 1648 AC_DEFINE_UNQUOTED(STACK_TRACE_EYE_CATCHER, $stack_trace_eye_catcher) |
1652 | 1649 |
1653 machfile="m/${machine}.h" | 1650 machfile="m/${machine}.h" |
1654 opsysfile="s/${opsys}.h" | 1651 opsysfile="s/${opsys}.h" |
1882 elif test "$__sunpro_c" = "yes"; then | 1879 elif test "$__sunpro_c" = "yes"; then |
1883 case "$opsys" in | 1880 case "$opsys" in |
1884 sol2 ) CFLAGS="-v -xO4" ;; | 1881 sol2 ) CFLAGS="-v -xO4" ;; |
1885 sunos4* ) CFLAGS="-xO2";; | 1882 sunos4* ) CFLAGS="-xO2";; |
1886 esac | 1883 esac |
1884 elif test "$CC" = "xlc"; then | |
1885 CFLAGS="-O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000" | |
1887 else | 1886 else |
1888 CFLAGS="-O" # The only POSIX-approved flag | 1887 CFLAGS="-O" ;dnl The only POSIX-approved flag |
1889 fi | 1888 fi |
1890 fi | 1889 fi |
1891 | 1890 |
1892 dnl Make sure linker flags not understood by GCC are properly wrapped. | 1891 dnl Make sure linker flags not understood by GCC are properly wrapped. |
1893 if test "$GCC" = "yes"; then | 1892 if test "$GCC" = "yes"; then |
1894 define([XE_GCC_WRAP_LDFLAGS], | 1893 define([XE_GCC_WRAP_LDFLAGS], |
1895 [[$1_tmp]="$[$1]"; [$1]="" | 1894 [[$1_tmp]="$[$1]"; [$1]="" |
1896 for arg in $[$1_tmp]; do | 1895 for arg in $[$1_tmp]; do |
1897 case "$arg" in | 1896 case "$arg" in |
1898 -L* | -l* | -R* | -u* | -Wl* | -f* ) [$1]="$[$1] $arg" ;; | 1897 -L* | -l* | -R* | -u* | -Wl* | -f* | -B*) [$1]="$[$1] $arg" ;; |
1899 -Xlinker* ) ;; | 1898 -Xlinker* ) ;; |
1900 * ) [$1]="$[$1] -Xlinker $arg" ;; | 1899 * ) [$1]="$[$1] -Xlinker $arg" ;; |
1901 esac | 1900 esac |
1902 done])dnl | 1901 done])dnl |
1903 XE_GCC_WRAP_LDFLAGS(ld_switch_system) | 1902 XE_GCC_WRAP_LDFLAGS(ld_switch_system) |
1928 dnl Dynodump requires the system linker | 1927 dnl Dynodump requires the system linker |
1929 test "$GCC" = "yes" && XE_APPEND(-fno-gnu-linker, ld_switch_site) | 1928 test "$GCC" = "yes" && XE_APPEND(-fno-gnu-linker, ld_switch_site) |
1930 fi | 1929 fi |
1931 | 1930 |
1932 dnl Feed s&m crud to src/Makefile | 1931 dnl Feed s&m crud to src/Makefile |
1932 | |
1933 if test "$unexec" = "unexaix.o"; then | |
1934 dnl AIX needs various hacks to make static linking work. | |
1935 dnl This can go away if we ever figure out how to get dynamic linking on AIX. | |
1936 start_flags="-Wl,-bnso,-bnodelcsect" | |
1937 test "$GCC" = "yes" && start_flags="-B/bin/ ${aixflags}" | |
1938 for f in "/lib/syscalls.exp" "$srcdir/src/m/ibmrs6000.inp"; do | |
1939 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi | |
1940 done | |
1941 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do | |
1942 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi | |
1943 done | |
1944 elif test -n "$ld_text_start_addr"; then | |
1945 start_flags="-T $ld_text_start_addr -e __start" | |
1946 fi | |
1947 AC_SUBST(start_flags) | |
1948 | |
1933 AC_SUBST(ld_switch_shared) | 1949 AC_SUBST(ld_switch_shared) |
1934 AC_SUBST(start_files) | 1950 AC_SUBST(start_files) |
1935 test -n "$ld_text_start_addr" && start_flags="-T $ld_text_start_addr -e __start" | |
1936 AC_SUBST(start_flags) | |
1937 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then | 1951 if test "$ordinary_link" = "no" -a "$GCC" = "yes"; then |
1938 test -z "$linker" && linker='$(CC) -nostdlib' | 1952 test -z "$linker" && linker='$(CC) -nostdlib' |
1939 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`' | 1953 test -z "$lib_gcc" && lib_gcc='`$(CC) -print-libgcc-file-name`' |
1940 fi | 1954 fi |
1941 test "$GCC" != "yes" && lib_gcc= | 1955 test "$GCC" != "yes" && lib_gcc= |
2188 | 2202 |
2189 dnl check for long file names | 2203 dnl check for long file names |
2190 AC_SYS_LONG_FILE_NAMES | 2204 AC_SYS_LONG_FILE_NAMES |
2191 | 2205 |
2192 dnl -lm is required by LISP_FLOAT_TYPE, among other things | 2206 dnl -lm is required by LISP_FLOAT_TYPE, among other things |
2193 AC_CHECK_LIB(m, sqrt) | 2207 AC_CHECK_LIB(m, sin) |
2194 | 2208 |
2195 dnl Floating operation support is now unconditional | 2209 dnl Floating operation support is now unconditional |
2196 AC_DEFINE(LISP_FLOAT_TYPE) | 2210 AC_DEFINE(LISP_FLOAT_TYPE) |
2197 | 2211 |
2198 dnl Determine type of mail locking from configure args and s&m headers | 2212 dnl Determine type of mail locking from configure args and s&m headers |
2419 if test "$with_tty" = "no" ; then | 2433 if test "$with_tty" = "no" ; then |
2420 AC_MSG_ERROR([No window system support and no TTY support - Unable to proceed.]) | 2434 AC_MSG_ERROR([No window system support and no TTY support - Unable to proceed.]) |
2421 fi | 2435 fi |
2422 for feature in tooltalk cde offix session \ | 2436 for feature in tooltalk cde offix session \ |
2423 menubars scrollbars toolbars dialogs xim xmu \ | 2437 menubars scrollbars toolbars dialogs xim xmu \ |
2424 tiff png jpeg gif xface xpm | 2438 imagick xface xpm |
2425 do | 2439 do |
2426 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then | 2440 if eval "test -n \"\$with_${feature}\" -a \"\$with_${feature}\" != no" ; then |
2427 AC_MSG_WARN([--with-$feature ignored: Not valid without X support]) | 2441 AC_MSG_WARN([--with-$feature ignored: Not valid without X support]) |
2428 fi | 2442 fi |
2429 eval "with_${feature}=no" | 2443 eval "with_${feature}=no" |
2461 AC_DEFINE(HAVE_XAUTH) | 2475 AC_DEFINE(HAVE_XAUTH) |
2462 XE_SPACE(libs_xauth, $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS) | 2476 XE_SPACE(libs_xauth, $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS) |
2463 fi | 2477 fi |
2464 AC_SUBST(libs_xauth) | 2478 AC_SUBST(libs_xauth) |
2465 | 2479 |
2466 dnl Autodetect OffiX | 2480 dnl Always compile OffiX except --without-offix is given or no |
2481 dnl x11 support is compiled in | |
2467 OFFIX_O="" | 2482 OFFIX_O="" |
2468 test -z "$with_offix" && { AC_CHECK_HEADER(OffiX/DragAndDrop.h, , with_offix=no) } | 2483 test "$window_system" != "x11" && with_offix=no |
2469 test -z "$with_offix" && { AC_CHECK_LIB(Dnd, DndInitialize, [:] , with_offix=no) } | |
2470 test -z "$with_offix" && with_offix=yes | 2484 test -z "$with_offix" && with_offix=yes |
2471 if test "$with_offix" = "yes"; then | 2485 if test "$with_offix" = "yes"; then |
2472 AC_DEFINE(HAVE_OFFIX_DND) | 2486 AC_DEFINE(HAVE_OFFIX_DND) |
2473 OFFIX_O="offix.o" | 2487 OFFIX_O="offix.o" |
2474 fi | 2488 fi |
2535 dnl ---------------------- | 2549 dnl ---------------------- |
2536 | 2550 |
2537 if test "$with_x11" = "yes"; then | 2551 if test "$with_x11" = "yes"; then |
2538 | 2552 |
2539 AC_CHECKING(for X11 graphics libraries) | 2553 AC_CHECKING(for X11 graphics libraries) |
2540 dnl Built-in GIF support defaults to yes | |
2541 test -z "$with_gif" && with_gif=yes; | |
2542 if test "$with_gif" = "yes"; then | |
2543 AC_DEFINE(HAVE_GIF) | |
2544 XE_ADD_OBJS(dgif_lib.o gif_err.o gifalloc.o) | |
2545 fi | |
2546 | |
2547 dnl Autodetect Xpm | 2554 dnl Autodetect Xpm |
2548 AC_MSG_CHECKING(for Xpm - no older than 3.4f) | 2555 AC_MSG_CHECKING(for Xpm - no older than 3.4f) |
2549 xe_check_libs=-lXpm | 2556 xe_check_libs=-lXpm |
2550 test -z "$with_xpm" && { AC_TRY_RUN([#include <X11/xpm.h> | 2557 test -z "$with_xpm" && { AC_TRY_RUN([#include <X11/xpm.h> |
2551 int main(int c, char **v) { | 2558 int main(int c, char **v) { |
2581 if test "$with_xface" = "yes"; then | 2588 if test "$with_xface" = "yes"; then |
2582 AC_DEFINE(HAVE_XFACE) | 2589 AC_DEFINE(HAVE_XFACE) |
2583 XE_PREPEND(-lcompface, libs_x) | 2590 XE_PREPEND(-lcompface, libs_x) |
2584 fi | 2591 fi |
2585 | 2592 |
2586 dnl autodetect JPEG | 2593 dnl autodetect ImageMagick |
2587 test -z "$with_jpeg" && { AC_CHECK_HEADER(jpeglib.h, ,with_jpeg=no) } | 2594 test -z "$with_imagick" && { AC_CHECK_HEADER(magick.h, ,with_imagick=no) } |
2588 test -z "$with_jpeg" && { AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,[:],with_jpeg=no) } | 2595 test -z "$with_imagick" && { AC_CHECK_LIB(Magick, MogrifyImage,[:],with_imagick=no) } |
2589 test -z "$with_jpeg" && with_jpeg=yes | 2596 test -z "$with_imagick" && with_imagick=yes |
2590 if test "$with_jpeg" = "yes"; then | 2597 if test "$with_imagick" = "yes"; then |
2591 AC_DEFINE(HAVE_JPEG) | 2598 AC_DEFINE(HAVE_IMAGEMAGICK) |
2592 XE_PREPEND(-ljpeg, libs_x) | 2599 XE_PREPEND(-lMagick, libs_x) |
2593 fi | |
2594 | |
2595 dnl autodetect PNG | |
2596 test -z "$with_png" && { AC_CHECK_HEADER(png.h, , with_png=no) } | |
2597 test -z "$with_png" && { AC_CHECK_FUNC(pow, , with_png=no) } | |
2598 if test "$with_png" != "no"; then | |
2599 for extra_libs in "" "-lz" "-lgz"; do | |
2600 AC_CHECK_LIB(png, png_read_image, | |
2601 png_libs="-lpng $extra_libs" with_png=yes; break,[:],$extra_libs) | |
2602 done | |
2603 fi | |
2604 test -z "$with_png" && with_png=no | |
2605 if test "$with_png" = "yes"; then | |
2606 AC_DEFINE(HAVE_PNG) | |
2607 XE_PREPEND($png_libs, libs_x) | |
2608 fi | |
2609 | |
2610 dnl autodetect TIFF | |
2611 if test "$with_tiff" != no; then | |
2612 for extra_libs in "" "-lz" "-lgz"; do | |
2613 AC_CHECK_LIB(tiff, TIFFReadScanline, | |
2614 tiff_libs="-ltiff $extra_libs" with_tiff=yes; break, [:], $extra_libs) | |
2615 done | |
2616 fi | |
2617 test -z "$with_tiff" && with_tiff=no | |
2618 if test "$with_tiff" = "yes"; then | |
2619 AC_DEFINE(HAVE_TIFF) | |
2620 XE_PREPEND($tiff_libs, libs_x) | |
2621 fi | 2600 fi |
2622 | 2601 |
2623 dnl Autodetect -lXaw | 2602 dnl Autodetect -lXaw |
2624 AC_CHECK_LIB(Xaw, XawScrollbarSetThumb, have_xaw=yes, have_xaw=no) | 2603 AC_CHECK_LIB(Xaw, XawScrollbarSetThumb, have_xaw=yes, have_xaw=no) |
2625 if test "$have_xaw" = "yes"; then | 2604 if test "$have_xaw" = "yes"; then |
2711 dnl ---------------------- | 2690 dnl ---------------------- |
2712 dnl Mule-dependent options | 2691 dnl Mule-dependent options |
2713 dnl ---------------------- | 2692 dnl ---------------------- |
2714 | 2693 |
2715 test -z "$with_mule" && with_mule=no | 2694 test -z "$with_mule" && with_mule=no |
2695 | |
2696 if test "$with_mule" = "yes" && test ! -d "$srcdir/lisp/mule"; then | |
2697 echo "Attempt to Build with Mule without Mule/Lisp" | |
2698 echo "Please install the XEmacs/Mule tarball or" | |
2699 echo "rerun configure with --with-mule=no" | |
2700 exit 1 | |
2701 fi | |
2716 | 2702 |
2717 if test "$with_mule" = "yes" ; then | 2703 if test "$with_mule" = "yes" ; then |
2718 AC_CHECKING(for Mule-related features) | 2704 AC_CHECKING(for Mule-related features) |
2719 AC_DEFINE(MULE) | 2705 AC_DEFINE(MULE) |
2720 XE_ADD_OBJS(mule.o mule-ccl.o mule-charset.o mule-coding.o) | 2706 XE_ADD_OBJS(mule.o mule-ccl.o mule-charset.o mule-coding.o) |
2797 | 2783 |
2798 | 2784 |
2799 dnl At this point, we know whether we need the motif lib or not. | 2785 dnl At this point, we know whether we need the motif lib or not. |
2800 if test "$need_motif" = "yes" ; then | 2786 if test "$need_motif" = "yes" ; then |
2801 XE_PREPEND(-lXm, libs_x) | 2787 XE_PREPEND(-lXm, libs_x) |
2788 dnl AIX needs the following library for use with Motif | |
2789 AC_CHECK_LIB(i18n, layout_object_getvalue, [XE_PREPEND(-li18n, libs_x)]) | |
2802 XE_COMPUTE_RUNPATH() | 2790 XE_COMPUTE_RUNPATH() |
2803 fi | 2791 fi |
2804 | 2792 |
2805 AC_CHECK_FUNCS(acosh asinh atanh 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 strcasecmp strerror tzset ulimit usleep utimes waitpid) | 2793 AC_CHECK_FUNCS(acosh asinh atanh 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 strcasecmp strerror tzset ulimit usleep utimes waitpid) |
2806 | 2794 |
2900 [AC_MSG_RESULT(no)], | 2888 [AC_MSG_RESULT(no)], |
2901 [AC_MSG_RESULT(yes) | 2889 [AC_MSG_RESULT(yes) |
2902 AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)]) | 2890 AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)]) |
2903 fi | 2891 fi |
2904 | 2892 |
2893 AC_MSG_CHECKING(whether the timezone variable is already declared) | |
2894 AC_TRY_LINK([ | |
2895 #ifdef TIME_WITH_SYS_TIME | |
2896 #include <sys/time.h> | |
2897 #include <time.h> | |
2898 #else | |
2899 #ifdef HAVE_SYS_TIME_H | |
2900 #include <sys/time.h> | |
2901 #else | |
2902 #include <time.h> | |
2903 #endif | |
2904 #endif | |
2905 ], | |
2906 [ | |
2907 timezone = 0; | |
2908 ], | |
2909 [AC_MSG_RESULT(yes) | |
2910 AC_DEFINE(HAVE_TIMEZONE_DECL)], | |
2911 [AC_MSG_RESULT(no)]) | |
2912 | |
2913 | |
2905 | 2914 |
2906 AC_C_INLINE | 2915 AC_C_INLINE |
2907 if test "$ac_cv_c_inline" != "no"; then | 2916 if test "$ac_cv_c_inline" != "no"; then |
2908 AC_DEFINE(HAVE_INLINE) | 2917 AC_DEFINE(HAVE_INLINE) |
2909 test "$GCC" = "yes" && XE_ADD_OBJS(inline.o) | 2918 test "$GCC" = "yes" && XE_ADD_OBJS(inline.o) |
3010 AC_CHECK_HEADER(dirent.h, [AC_DEFINE(SYSV_SYSTEM_DIR)], | 3019 AC_CHECK_HEADER(dirent.h, [AC_DEFINE(SYSV_SYSTEM_DIR)], |
3011 [AC_CHECK_HEADER(sys/dir.h, , [AC_DEFINE(NONSYSTEM_DIR_LIBRARY)])]) | 3020 [AC_CHECK_HEADER(sys/dir.h, , [AC_DEFINE(NONSYSTEM_DIR_LIBRARY)])]) |
3012 | 3021 |
3013 dnl Check for nlist.h | 3022 dnl Check for nlist.h |
3014 AC_CHECK_HEADER(nlist.h, AC_DEFINE(NLIST_STRUCT), ) | 3023 AC_CHECK_HEADER(nlist.h, AC_DEFINE(NLIST_STRUCT), ) |
3015 | |
3016 dnl AIX export list | |
3017 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp" ; do | |
3018 if test -r $f; then AC_DEFINE_UNQUOTED(AIX_SMT_EXP, "-bI:$f") break; fi | |
3019 done | |
3020 | 3024 |
3021 dnl Check for sound of various sorts. | 3025 dnl Check for sound of various sorts. |
3022 | 3026 |
3023 dnl Autodetect native sound | 3027 dnl Autodetect native sound |
3024 AC_CHECKING("for sound support") | 3028 AC_CHECKING("for sound support") |
3249 #ifdef WE_DONT_NEED_QUADS | 3253 #ifdef WE_DONT_NEED_QUADS |
3250 typedef uint64_t u_int64_t; | 3254 typedef uint64_t u_int64_t; |
3251 #endif | 3255 #endif |
3252 #endif | 3256 #endif |
3253 #include <$path> | 3257 #include <$path> |
3254 #ifdef DB_VERSION_MAJOR | |
3255 #if DB_VERSION_MAJOR > 1 | |
3256 choke me; | |
3257 #endif | |
3258 #endif | |
3259 ],[], db_h_path="$path"; break) | 3258 ],[], db_h_path="$path"; break) |
3260 done | 3259 done |
3261 test -z "$db_h_path" && with_database_berkdb=no | 3260 test -z "$db_h_path" && with_database_berkdb=no |
3262 fi | 3261 fi |
3263 if test "$with_database_berkdb" = "yes"; then | 3262 if test "$with_database_berkdb" = "yes"; then |
3380 AC_SUBST(libdir) | 3379 AC_SUBST(libdir) |
3381 AC_SUBST(mandir) | 3380 AC_SUBST(mandir) |
3382 AC_SUBST(infodir) | 3381 AC_SUBST(infodir) |
3383 AC_SUBST(infodir_user_defined) | 3382 AC_SUBST(infodir_user_defined) |
3384 AC_SUBST(infopath) | 3383 AC_SUBST(infopath) |
3384 AC_SUBST(infopath_user_defined) | |
3385 AC_SUBST(lispdir) | 3385 AC_SUBST(lispdir) |
3386 AC_SUBST(lispdir_user_defined) | 3386 AC_SUBST(lispdir_user_defined) |
3387 AC_SUBST(sitelispdir) | 3387 AC_SUBST(sitelispdir) |
3388 AC_SUBST(etcdir) | 3388 AC_SUBST(etcdir) |
3389 AC_SUBST(etcdir_user_defined) | 3389 AC_SUBST(etcdir_user_defined) |
3429 fi | 3429 fi |
3430 dnl change blanks to colons in package path, and make available to config.h | 3430 dnl change blanks to colons in package path, and make available to config.h |
3431 package_path=`echo $package_path | sed 'y/ /:/'` | 3431 package_path=`echo $package_path | sed 'y/ /:/'` |
3432 AC_DEFINE_UNQUOTED(PACKAGE_PATH, "$package_path") | 3432 AC_DEFINE_UNQUOTED(PACKAGE_PATH, "$package_path") |
3433 | 3433 |
3434 XE_SPACE(ac_configure_args, $ac_configure_args) | |
3434 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "$canonical") | 3435 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "$canonical") |
3435 AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "${ac_configure_args}") | 3436 AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "$ac_configure_args") |
3436 AC_DEFINE_UNQUOTED(config_machfile, "$machfile") | 3437 AC_DEFINE_UNQUOTED(config_machfile, "$machfile") |
3437 AC_DEFINE_UNQUOTED(config_opsysfile, "$opsysfile") | 3438 AC_DEFINE_UNQUOTED(config_opsysfile, "$opsysfile") |
3438 | 3439 |
3439 dnl Following are deprecated | 3440 dnl Following are deprecated |
3440 | 3441 |
3520 test "$with_xauth" = yes && echo " Compiling in support for XAUTH." | 3521 test "$with_xauth" = yes && echo " Compiling in support for XAUTH." |
3521 if test "$with_xmu" != yes -a "$with_x11" = yes; then | 3522 if test "$with_xmu" != yes -a "$with_x11" = yes; then |
3522 echo " No Xmu; substituting equivalent routines." | 3523 echo " No Xmu; substituting equivalent routines." |
3523 fi | 3524 fi |
3524 | 3525 |
3525 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion." | |
3526 if test "$with_xpm" = yes; then | 3526 if test "$with_xpm" = yes; then |
3527 echo " Compiling in support for XPM images." | 3527 echo " Compiling in support for XPM images." |
3528 elif test "$with_x11" = yes; then | 3528 elif test "$with_x11" = yes; then |
3529 echo " --------------------------------------------------------------------" | 3529 echo " --------------------------------------------------------------------" |
3530 echo " WARNING: Compiling without XPM support." | 3530 echo " WARNING: Compiling without XPM support." |
3531 echo " WARNING: You should strongly considering installing XPM." | 3531 echo " WARNING: You should strongly considering installing XPM." |
3532 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal." | 3532 echo " WARNING: Otherwise toolbars and other graphics will look suboptimal." |
3533 echo " --------------------------------------------------------------------" | 3533 echo " --------------------------------------------------------------------" |
3534 fi | 3534 fi |
3535 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." | 3535 test "$with_xface" = yes && echo " Compiling in support for X-Face message headers." |
3536 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion." | 3536 test "$with_imagick" = yes && echo " Compiling in support for ImageMagick image conversion." |
3537 test "$with_png" = yes && echo " Compiling in support for PNG image conversion." | |
3538 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)." | |
3539 | 3537 |
3540 case "$with_sound" in | 3538 case "$with_sound" in |
3541 nas ) echo " Compiling in network sound (NAS) support." ;; | 3539 nas ) echo " Compiling in network sound (NAS) support." ;; |
3542 native ) echo " Compiling in native sound support." ;; | 3540 native ) echo " Compiling in native sound support." ;; |
3543 both ) echo " Compiling in both network and native sound support." ;; | 3541 both ) echo " Compiling in both network and native sound support." ;; |
3592 echo " movemail will use \"$mail_locking\" for locking mail spool files." | 3590 echo " movemail will use \"$mail_locking\" for locking mail spool files." |
3593 test "$with_pop" = yes && echo " Using POP for mail access" | 3591 test "$with_pop" = yes && echo " Using POP for mail access" |
3594 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication" | 3592 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication" |
3595 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host" | 3593 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host" |
3596 echo " The \`Info-default-directory-list' will be initialized from:" | 3594 echo " The \`Info-default-directory-list' will be initialized from:" |
3597 echo " INFOPATH=\"`echo $infopath`\"" | 3595 echo " INFOPATH=\"$infopath\"" |
3598 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects." | 3596 test "$use_union_type" = yes && echo " Using the union type for Lisp_Objects." |
3599 test "$debug" = yes && echo " Compiling in extra code for debugging." | 3597 test "$debug" = yes && echo " Compiling in extra code for debugging." |
3600 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage." | 3598 test "$memory_usage_stats" = yes && echo " Compiling in code for checking XEmacs memory usage." |
3601 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." | 3599 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)." |
3602 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \ | 3600 if test "$error_check_extents $error_check_typecheck $error_check_bufpos $error_check_gc $error_check_malloc" \ |