Mercurial > hg > xemacs-beta
comparison configure.in @ 209:41ff10fd062f r20-4b3
Import from CVS: tag r20-4b3
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:04:58 +0200 |
parents | e45d5e7c476e |
children | 78478c60bfcd |
comparison
equal
deleted
inserted
replaced
208:f427b8ec4379 | 209:41ff10fd062f |
---|---|
397 option. This just allows for simultaneous | 397 option. This just allows for simultaneous |
398 in-place and --srcdir building.) | 398 in-place and --srcdir building.) |
399 --cflags=FLAGS Compiler flags. Overrides environment variable CFLAGS. | 399 --cflags=FLAGS Compiler flags. Overrides environment variable CFLAGS. |
400 --site-includes=PATH List of directories to search first for header files. | 400 --site-includes=PATH List of directories to search first for header files. |
401 --site-libraries=PATH List of directories to search first for libraries. | 401 --site-libraries=PATH List of directories to search first for libraries. |
402 --site-prefixes=PATH List of directories to search for include/ and lib/ | |
403 subdirectories, just after 'site-includes' and | |
404 'site-libraries'. | |
402 --site-runtime-libraries=PATH | 405 --site-runtime-libraries=PATH |
403 List of ALL directories to search for dynamically | 406 List of ALL directories to search for dynamically |
404 linked libraries at run time. | 407 linked libraries at run time. |
405 --dynamic=yes Link dynamically if supported by system. | 408 --dynamic=yes Link dynamically if supported by system. |
406 --dynamic=no Force static linking on systems where dynamic | 409 --dynamic=no Force static linking on systems where dynamic |
729 package_path | \ | 732 package_path | \ |
730 x_includes | \ | 733 x_includes | \ |
731 x_libraries | \ | 734 x_libraries | \ |
732 site_includes | \ | 735 site_includes | \ |
733 site_libraries | \ | 736 site_libraries | \ |
737 site_prefixes | \ | |
734 site_runtime_libraries ) | 738 site_runtime_libraries ) |
735 dnl If the value was omitted, get it from the next argument. | 739 dnl If the value was omitted, get it from the next argument. |
736 if test "$valomitted" = "yes" ; then | 740 if test "$valomitted" = "yes" ; then |
737 dnl Get the next argument from the argument list, if there is one. | 741 dnl Get the next argument from the argument list, if there is one. |
738 if test "$#" = 0 ; then | 742 if test "$#" = 0 ; then |
973 dnl Allow use of either ":" or spaces for lists of directories | 977 dnl Allow use of either ":" or spaces for lists of directories |
974 define(COLON_TO_SPACE, | 978 define(COLON_TO_SPACE, |
975 [case "$[$1]" in *:* [)] [$1]="`echo '' $[$1] | sed -e 's/^ //' -e 's/:/ /g'`";; esac])dnl | 979 [case "$[$1]" in *:* [)] [$1]="`echo '' $[$1] | sed -e 's/^ //' -e 's/:/ /g'`";; esac])dnl |
976 COLON_TO_SPACE(site_includes) | 980 COLON_TO_SPACE(site_includes) |
977 COLON_TO_SPACE(site_libraries) | 981 COLON_TO_SPACE(site_libraries) |
982 COLON_TO_SPACE(site_prefixes) | |
978 COLON_TO_SPACE(site_runtime_libraries) | 983 COLON_TO_SPACE(site_runtime_libraries) |
979 | 984 |
980 dnl with_x is an obsolete synonym for with_x11 | 985 dnl with_x is an obsolete synonym for with_x11 |
981 test -n "$with_x" && with_x11="$with_x" | 986 test -n "$with_x" && with_x11="$with_x" |
982 | 987 |
1892 if test "$GCC" = "yes"; then | 1897 if test "$GCC" = "yes"; then |
1893 define([XE_GCC_WRAP_LDFLAGS], | 1898 define([XE_GCC_WRAP_LDFLAGS], |
1894 [[$1_tmp]="$[$1]"; [$1]="" | 1899 [[$1_tmp]="$[$1]"; [$1]="" |
1895 for arg in $[$1_tmp]; do | 1900 for arg in $[$1_tmp]; do |
1896 case "$arg" in | 1901 case "$arg" in |
1897 -L* | -l* | -R* | -u* | -Wl* | -f* | -B*) [$1]="$[$1] $arg" ;; | 1902 -L* | -l* | -R* | -u* | -Wl* | -f*) [$1]="$[$1] $arg" ;; |
1898 -Xlinker* ) ;; | 1903 -Xlinker* ) ;; |
1899 * ) [$1]="$[$1] -Xlinker $arg" ;; | 1904 * ) [$1]="$[$1] -Xlinker $arg" ;; |
1900 esac | 1905 esac |
1901 done])dnl | 1906 done])dnl |
1902 XE_GCC_WRAP_LDFLAGS(ld_switch_system) | 1907 XE_GCC_WRAP_LDFLAGS(ld_switch_system) |
1932 | 1937 |
1933 if test "$unexec" = "unexaix.o"; then | 1938 if test "$unexec" = "unexaix.o"; then |
1934 dnl AIX needs various hacks to make static linking work. | 1939 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. | 1940 dnl This can go away if we ever figure out how to get dynamic linking on AIX. |
1936 start_flags="-Wl,-bnso,-bnodelcsect" | 1941 start_flags="-Wl,-bnso,-bnodelcsect" |
1937 test "$GCC" = "yes" && start_flags="-B/bin/ ${aixflags}" | 1942 test "$GCC" = "yes" && start_flags="-B/bin/ ${start_flags}" |
1938 for f in "/lib/syscalls.exp" "$srcdir/src/m/ibmrs6000.inp"; do | 1943 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 | 1944 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; fi |
1940 done | 1945 done |
1941 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do | 1946 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 | 1947 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi |
1957 AC_SUBST(lib_gcc) | 1962 AC_SUBST(lib_gcc) |
1958 | 1963 |
1959 dnl --------------------------------------------------------------- | 1964 dnl --------------------------------------------------------------- |
1960 dnl Add site and system specific flags to compile and link commands | 1965 dnl Add site and system specific flags to compile and link commands |
1961 dnl --------------------------------------------------------------- | 1966 dnl --------------------------------------------------------------- |
1967 | |
1968 dnl All dirs present in site-prefixes will be searched for include/ and lib/ | |
1969 dnl subdirs. This can avoid specifying both site-includes and site-libraries. | |
1970 dnl Those dirs will take precedence over the standard places, but not over | |
1971 dnl site-includes and site-libraries. | |
1972 | |
1973 dnl --site-prefixes (multiple dirs) | |
1974 if test -n "$site_prefixes"; then | |
1975 for arg in $site_prefixes; do | |
1976 case "$arg" in | |
1977 -* ) ;; | |
1978 * ) argi="-I${arg}/include" ; argl="-L${arg}/lib" ;; | |
1979 esac | |
1980 XE_APPEND($argi, c_switch_site) | |
1981 XE_APPEND($argl, ld_switch_site) | |
1982 done | |
1983 fi | |
1962 | 1984 |
1963 dnl --site-libraries (multiple dirs) | 1985 dnl --site-libraries (multiple dirs) |
1964 if test -n "$site_libraries"; then | 1986 if test -n "$site_libraries"; then |
1965 for arg in $site_libraries; do | 1987 for arg in $site_libraries; do |
1966 case "$arg" in -* ) ;; * ) arg="-L${arg}" ;; esac | 1988 case "$arg" in -* ) ;; * ) arg="-L${arg}" ;; esac |
2589 AC_DEFINE(HAVE_XFACE) | 2611 AC_DEFINE(HAVE_XFACE) |
2590 XE_PREPEND(-lcompface, libs_x) | 2612 XE_PREPEND(-lcompface, libs_x) |
2591 fi | 2613 fi |
2592 | 2614 |
2593 dnl autodetect ImageMagick | 2615 dnl autodetect ImageMagick |
2594 test -z "$with_imagick" && { AC_CHECK_HEADER(magick.h, ,with_imagick=no) } | 2616 test -z "$with_imagick" && { AC_CHECK_HEADER(magick/magick.h, ,with_imagick=no) } |
2595 test -z "$with_imagick" && { AC_CHECK_LIB(Magick, MogrifyImage,[:],with_imagick=no) } | 2617 test -z "$with_imagick" && { AC_CHECK_LIB(Magick, MogrifyImage,[:],with_imagick=no) } |
2596 test -z "$with_imagick" && with_imagick=yes | 2618 test -z "$with_imagick" && with_imagick=yes |
2597 if test "$with_imagick" = "yes"; then | 2619 if test "$with_imagick" = "yes"; then |
2598 AC_DEFINE(HAVE_IMAGEMAGICK) | 2620 AC_DEFINE(HAVE_IMAGEMAGICK) |
2599 XE_PREPEND(-lMagick, libs_x) | 2621 XE_PREPEND(-lMagick, libs_x) |
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) | 2815 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) |
2794 | 2816 |
2795 dnl realpath is buggy on linux, decosf and aix4 | 2817 dnl realpath is buggy on linux, decosf and aix4 |
2796 | 2818 |
2797 dnl The realpath() in linux libc (4.6.27) sometimes fails with ELOOP. | 2819 dnl The realpath() in linux libc (4.6.27) sometimes fails with ELOOP. |
2820 dnl The realpath in ELF linux libc's is O.K. | |
2798 dnl For example, call realpath on a file thirty-five or so directories deep | 2821 dnl For example, call realpath on a file thirty-five or so directories deep |
2799 dnl and you get ELOOP even if no symlinks at all are involved. | 2822 dnl and you get ELOOP even if no symlinks at all are involved. |
2823 dnl Reports as of 11/1997 indicate BSDi has problems too. | |
2800 case "$opsys" in | 2824 case "$opsys" in |
2801 linux* | decosf4-0* | aix4* ) XE_ADD_OBJS(realpath.o) ;; | 2825 linuxaout* | bsdos3* | freebsd* | decosf4-0* | aix4* ) XE_ADD_OBJS(realpath.o) ;; |
2802 * ) | 2826 * ) |
2803 AC_CHECK_FUNCS(realpath) | 2827 AC_CHECK_FUNCS(realpath) |
2804 test "$ac_cv_func_realpath" != "yes" && XE_ADD_OBJS(realpath.o) ;; | 2828 test "$ac_cv_func_realpath" != "yes" && XE_ADD_OBJS(realpath.o) ;; |
2805 esac | 2829 esac |
2806 | 2830 |
3510 echo " Additional header files: $site_includes" | 3534 echo " Additional header files: $site_includes" |
3511 fi | 3535 fi |
3512 if test -n "$site_libraries"; then | 3536 if test -n "$site_libraries"; then |
3513 echo " Additional libraries: $site_libraries" | 3537 echo " Additional libraries: $site_libraries" |
3514 fi | 3538 fi |
3539 if test -n "$site_prefixes"; then | |
3540 echo " Additional prefixes: $site_prefixes" | |
3541 fi | |
3515 if test -n "$runpath"; then | 3542 if test -n "$runpath"; then |
3516 echo " Runtime library search path: $runpath" | 3543 echo " Runtime library search path: $runpath" |
3517 fi | 3544 fi |
3518 test "$with_dnet" = yes && echo " Compiling in support for DNET." | 3545 test "$with_dnet" = yes && echo " Compiling in support for DNET." |
3519 test "$with_socks" = yes && echo " Compiling in support for SOCKS." | 3546 test "$with_socks" = yes && echo " Compiling in support for SOCKS." |
3542 esac | 3569 esac |
3543 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously" | 3570 test "$old_nas" = yes && echo " nas library lacks error trapping, will play synchronously" |
3544 | 3571 |
3545 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB." | 3572 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB." |
3546 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." | 3573 test "$with_database_dbm" = yes && echo " Compiling in support for DBM." |
3547 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM." | 3574 test "$with_database_gnudbm" = yes && echo " Compiling in support for DBM." |
3548 | 3575 |
3549 test "$with_ncurses" = yes && echo " Compiling in support for ncurses." | 3576 test "$with_ncurses" = yes && echo " Compiling in support for ncurses." |
3550 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)." | 3577 test "$with_gpm" = yes && echo " Compiling in support for GPM (General Purpose Mouse)." |
3551 | 3578 |
3552 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support." | 3579 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support." |