comparison configure.in @ 458:c33ae14dd6d0 r21-2-44

Import from CVS: tag r21-2-44
author cvs
date Mon, 13 Aug 2007 11:42:25 +0200
parents 3d3049ae1304
children 223736d75acb
comparison
equal deleted inserted replaced
457:4b9290a33024 458:c33ae14dd6d0
281 srcdir= 281 srcdir=
282 target=NONE 282 target=NONE
283 verbose= 283 verbose=
284 x_includes=NONE 284 x_includes=NONE
285 x_libraries=NONE 285 x_libraries=NONE
286
287 dnl Installation directory options.
288 dnl These are left unexpanded so users can "make install exec_prefix=/foo"
289 dnl and all the variables that are supposed to be based on exec_prefix
290 dnl by default will actually change.
291 dnl Use braces instead of parens because sh, perl, etc. also accept them.
292 dnl If you change these, you need to synchronize with the settings of the
293 dnl various ..._USER_DEFINED variables further down.
294 bindir='${exec_prefix}/bin'
295 sbindir='${exec_prefix}/sbin'
296 libexecdir='${exec_prefix}/libexec'
297 datadir='${prefix}/share'
298 sysconfdir='${prefix}/etc'
299 sharedstatedir='${prefix}/com'
300 localstatedir='${prefix}/var'
301 libdir='${{exec_prefix}}/lib'
302 includedir='${prefix}/include'
303 oldincludedir='/usr/include'
304 infodir='${prefix}/info'
305 mandir='${prefix}/man'
306 286
307 dnl Initialize some other variables. 287 dnl Initialize some other variables.
308 subdirs= 288 subdirs=
309 MFLAGS= MAKEFLAGS= 289 MFLAGS= MAKEFLAGS=
310 SHELL=${CONFIG_SHELL-/bin/sh} 290 SHELL=${CONFIG_SHELL-/bin/sh}
768 etcdir ) AC_DEFINE(ETCDIR_USER_DEFINED) ;; 748 etcdir ) AC_DEFINE(ETCDIR_USER_DEFINED) ;;
769 infodir ) AC_DEFINE(INFODIR_USER_DEFINED) ;; 749 infodir ) AC_DEFINE(INFODIR_USER_DEFINED) ;;
770 infopath ) AC_DEFINE(INFOPATH_USER_DEFINED) ;; 750 infopath ) AC_DEFINE(INFOPATH_USER_DEFINED) ;;
771 package_path ) AC_DEFINE(PACKAGE_PATH_USER_DEFINED) ;; 751 package_path ) AC_DEFINE(PACKAGE_PATH_USER_DEFINED) ;;
772 datadir ) 752 datadir )
773 AC_DEFINE(INFODIR_USER_DEFINED) 753 AC_DEFINE(INFODIR_USER_DEFINED)
774 AC_DEFINE(LISPDIR_USER_DEFINED) 754 AC_DEFINE(LISPDIR_USER_DEFINED)
775 AC_DEFINE(MODULEDIR_USER_DEFINED) 755 AC_DEFINE(MODULEDIR_USER_DEFINED)
776 AC_DEFINE(ETCDIR_USER_DEFINED) ;; 756 AC_DEFINE(ETCDIR_USER_DEFINED)
757 AC_DEFINE(DOCDIR_USER_DEFINED)
758 AC_DEFINE(ARCHLIBDIR_USER_DEFINED) ;;
777 docdir ) AC_DEFINE(DOCDIR_USER_DEFINED) ;; 759 docdir ) AC_DEFINE(DOCDIR_USER_DEFINED) ;;
778 exec_prefix | libdir | archlibdir ) AC_DEFINE(ARCHLIBDIR_USER_DEFINED) ;; 760 exec_prefix | libdir | archlibdir ) AC_DEFINE(ARCHLIBDIR_USER_DEFINED) ;;
779 esac 761 esac
780 ;; 762 ;;
781 763
1864 ld_switch_machine ld_switch_system unexec ld_switch_shared 1846 ld_switch_machine ld_switch_system unexec ld_switch_shared
1865 ld lib_gcc ld_text_start_addr start_files ordinary_link 1847 ld lib_gcc ld_text_start_addr start_files ordinary_link
1866 have_terminfo mail_use_flock mail_use_lockf) && echo "" 1848 have_terminfo mail_use_flock mail_use_lockf) && echo ""
1867 1849
1868 dnl Pick up mingw32 include path 1850 dnl Pick up mingw32 include path
1869 case "$opsys" in mingw* | cygwin*) 1851 case "$opsys" in mingw* | cygwin*)
1870 cygwin_include=`eval "gcc -print-file-name=libc.a"` ; 1852 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
1871 cygwin_include=`eval "dirname $cygwin_include"` ; 1853 cygwin_include=`eval "dirname $cygwin_include"` ;
1872 cygwin_include="-I$cygwin_include/../include" ; 1854 cygwin_include="-I$cygwin_include/../include" ;
1873 extra_includes="$cygwin_include/mingw32 $cygwin_include/mingw $cygwin_include" ; 1855 extra_includes="$cygwin_include/mingw32 $cygwin_include/mingw $cygwin_include" ;
1874 case "$opsys" in mingw*) 1856 case "$opsys" in mingw*)
1875 XE_APPEND($extra_includes, c_switch_system) ;; 1857 XE_APPEND($extra_includes, c_switch_system) ;;
1876 esac 1858 esac
1877 ;; 1859 ;;
1878 esac 1860 esac
1879 1861
1880 dnl Non-ordinary link usually requires -lc 1862 dnl Non-ordinary link usually requires -lc
1881 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc" 1863 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
1882 1864
1904 dnl Use either command line flag, environment var, or autodetection 1886 dnl Use either command line flag, environment var, or autodetection
1905 if test "$cflags_specified" = "no"; then 1887 if test "$cflags_specified" = "no"; then
1906 dnl Following values of CFLAGS are known to work well. 1888 dnl Following values of CFLAGS are known to work well.
1907 dnl Should we take debugging options into consideration? 1889 dnl Should we take debugging options into consideration?
1908 if test "$GCC" = "yes"; then 1890 if test "$GCC" = "yes"; then
1909 CFLAGS="-g -O3 -Wall -Wno-switch -Wpointer-arith -Winline -Wmissing-prototypes -Wshadow" 1891 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow"
1892 dnl glibc is intentionally not `-Wpointer-arith'-clean.
1893 dnl Ulrich Drepper has rejected patches to fix the glibc header files.
1894 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
1910 dnl I'm not convinced this is a good idea any more. -sb 1895 dnl I'm not convinced this is a good idea any more. -sb
1911 dnl test "$opsys $machine" = "linux intel386" && \ 1896 dnl test "$opsys $machine" = "linux intel386" && \
1912 dnl CFLAGS="$CFLAGS -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2" 1897 dnl CFLAGS="$CFLAGS -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2"
1913 elif test "$__SUNPRO_C" = "yes"; then 1898 elif test "$__SUNPRO_C" = "yes"; then
1914 case "$opsys" in 1899 case "$opsys" in
2724 AC_TRY_COMPILE([ 2709 AC_TRY_COMPILE([
2725 #define NeedFunctionPrototypes 1 2710 #define NeedFunctionPrototypes 1
2726 #include <X11/Xlib.h> 2711 #include <X11/Xlib.h>
2727 extern Bool XRegisterIMInstantiateCallback( 2712 extern Bool XRegisterIMInstantiateCallback(
2728 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*); 2713 Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*);
2729 ], [], 2714 ], [],
2730 [AC_MSG_RESULT(yes)], 2715 [AC_MSG_RESULT(yes)],
2731 [AC_MSG_RESULT(no) 2716 [AC_MSG_RESULT(no)
2732 AC_DEFINE(XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE)]) 2717 AC_DEFINE(XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE)])
2733 2718
2734 dnl autodetect -lXmu 2719 dnl autodetect -lXmu
2770 2755
2771 dnl The net installer only works with MS-Windows currently 2756 dnl The net installer only works with MS-Windows currently
2772 XE_APPEND(netinstall, MAKE_SUBDIR) 2757 XE_APPEND(netinstall, MAKE_SUBDIR)
2773 XE_APPEND(netinstall, SRC_SUBDIR_DEPS) 2758 XE_APPEND(netinstall, SRC_SUBDIR_DEPS)
2774 XE_APPEND(netinstall, INSTALL_ARCH_DEP_SUBDIR) 2759 XE_APPEND(netinstall, INSTALL_ARCH_DEP_SUBDIR)
2775 2760
2776 install_pp="$blddir/lib-src/installexe.sh" 2761 install_pp="$blddir/lib-src/installexe.sh"
2777 XE_APPEND(-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool, libs_system) 2762 XE_APPEND(-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool, libs_system)
2778 test "$with_dragndrop" != no && XE_APPEND(msw, dragndrop_proto) 2763 test "$with_dragndrop" != no && XE_APPEND(msw, dragndrop_proto)
2779 if test "$window_system" != x11; then 2764 if test "$window_system" != x11; then
2780 window_system=msw 2765 window_system=msw
3085 [with_xpm=no]) 3070 [with_xpm=no])
3086 xe_check_libs= 3071 xe_check_libs=
3087 AC_MSG_RESULT($with_xpm) 3072 AC_MSG_RESULT($with_xpm)
3088 fi 3073 fi
3089 if test "$with_xpm" = "yes"; then 3074 if test "$with_xpm" = "yes"; then
3075 dnl #### This code assumes that if AC_CHECK_LIB fails,
3076 dnl #### then it will succeed if FOR_MSW is defined,
3077 dnl #### but doesn't actually verify this assumption.
3090 AC_DEFINE(HAVE_XPM) 3078 AC_DEFINE(HAVE_XPM)
3091 XE_PREPEND(-lXpm, libs_x) 3079 XE_PREPEND(-lXpm, libs_x)
3092 AC_MSG_CHECKING(for \"FOR_MSW\" xpm) 3080 AC_MSG_CHECKING(for \"FOR_MSW\" xpm)
3093 xe_check_libs=-lXpm 3081 xe_check_libs=-lXpm
3094 AC_TRY_LINK(, [XpmCreatePixmapFromData()], 3082 AC_TRY_LINK(, [XpmCreatePixmapFromData()],
3500 fi dnl with_xfs 3488 fi dnl with_xfs
3501 3489
3502 dnl Autodetect WNN 3490 dnl Autodetect WNN
3503 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 3491 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
3504 test -z "$with_wnn" && { AC_CHECK_HEADER(wnn/jllib.h, ,with_wnn=no) } 3492 test -z "$with_wnn" && { AC_CHECK_HEADER(wnn/jllib.h, ,with_wnn=no) }
3493 dnl gcc 2.97 fixincludes breaks inclusion of wnn/commonhd.h
3494 test -z "$with_wnn" && { AC_CHECK_HEADER(wnn/commonhd.h, ,with_wnn=no) }
3505 dnl Detour to find crypt 3495 dnl Detour to find crypt
3506 if test "$with_wnn" != "no"; then 3496 if test "$with_wnn" != "no"; then
3507 AC_CHECK_FUNCS(crypt) 3497 AC_CHECK_FUNCS(crypt)
3508 test "$ac_cv_func_crypt" != "yes" && { AC_CHECK_LIB(crypt, crypt) } 3498 test "$ac_cv_func_crypt" != "yes" && { AC_CHECK_LIB(crypt, crypt) }
3509 fi 3499 fi
3569 XE_COMPUTE_RUNPATH() 3559 XE_COMPUTE_RUNPATH()
3570 fi 3560 fi
3571 3561
3572 AC_CHECK_FUNCS(cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo 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 stpcpy strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask) 3562 AC_CHECK_FUNCS(cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo 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 stpcpy strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask)
3573 3563
3564 dnl ----------------------------------------------------------------
3574 dnl Check for PTY support functions. 3565 dnl Check for PTY support functions.
3575 dnl getpt is the preferred pty allocation method on glibc systems. 3566 dnl ----------------------------------------------------------------
3576 dnl _getpty is the preferred pty allocation method on SGI systems. 3567
3577 dnl grantpt, unlockpt, ptsname are defined by Unix98. 3568 dnl There is no "standard" pty allocation method. Every system is different.
3569 dnl getpt() is the preferred pty allocation method on glibc systems.
3570 dnl _getpty() is the preferred pty allocation method on SGI systems.
3571 dnl grantpt(), unlockpt(), ptsname() are defined by Unix98.
3578 AC_CHECK_FUNCS(getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp) 3572 AC_CHECK_FUNCS(getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp)
3579 3573
3580 dnl openpty is the preferred pty allocation method on BSD and Tru64 systems. 3574 dnl openpty() is the preferred pty allocation method on BSD and Tru64 systems.
3581 dnl openpty might be declared in pty.h or in libutil.h. 3575 dnl openpty() might be declared in:
3576 dnl - pty.h (Tru64 or Linux)
3577 dnl - libutil.h (FreeBSD)
3578 dnl - util.h (NetBSD)
3582 AC_CHECK_FUNC(openpty, have_openpty=yes, [ 3579 AC_CHECK_FUNC(openpty, have_openpty=yes, [
3583 AC_CHECK_LIB(util, openpty, have_openpty=yes need_libutil=yes)]) 3580 AC_CHECK_LIB(util, openpty, have_openpty=yes need_libutil=yes)])
3584 if test "$have_openpty" = "yes"; then 3581 if test "$have_openpty" = "yes"; then
3585 AC_DEFINE(HAVE_OPENPTY) 3582 AC_DEFINE(HAVE_OPENPTY)
3586 AC_CHECK_HEADERS(pty.h libutil.h) 3583 AC_CHECK_HEADERS(pty.h libutil.h util.h, break)
3587 test "$need_libutil" = "yes" && XE_APPEND(-lutil, libs_system) 3584 test "$need_libutil" = "yes" && XE_APPEND(-lutil, libs_system)
3588 fi 3585 fi
3589 3586
3590 dnl Check for STREAM support functions. 3587 dnl Check for STREAM support functions.
3591 dnl Confusingly, "str" means both "string" and "SysV Streams". 3588 dnl Confusingly, "str" means both "string" and "SysV Streams".