comparison configure.in @ 187:b405438285a2 r20-3b20

Import from CVS: tag r20-3b20
author cvs
date Mon, 13 Aug 2007 09:56:28 +0200
parents 3d6bfa290dbd
children f53b5ca2e663
comparison
equal deleted inserted replaced
186:24ac94803b48 187:b405438285a2
372 them using \`--OPTION=yes' and explicitly disable them using \`--OPTION=no'. 372 them using \`--OPTION=yes' and explicitly disable them using \`--OPTION=no'.
373 This is especially useful for auto-detected options. 373 This is especially useful for auto-detected options.
374 374
375 Options marked with a (*) are autodetected. 375 Options marked with a (*) are autodetected.
376 376
377 Use colons (or quoted spaces) to separate directory names in option
378 values which are PATHs (i.e. lists of directories).
377 379
378 General options: 380 General options:
379 381
380 --help Issue this usage message. 382 --help Issue this usage message.
381 --verbose Display the results of configure tests. 383 --verbose Display the results of configure tests.
391 special features of GNU Make. (GNU Make 393 special features of GNU Make. (GNU Make
392 works fine on the Makefiles even without this 394 works fine on the Makefiles even without this
393 option. This just allows for simultaneous 395 option. This just allows for simultaneous
394 in-place and --srcdir building.) 396 in-place and --srcdir building.)
395 --cflags=FLAGS Compiler flags. Overrides environment variable CFLAGS. 397 --cflags=FLAGS Compiler flags. Overrides environment variable CFLAGS.
396 --site-includes=DIR Other header file directories. Separate multiple 398 --site-includes=PATH List of directories to search first for header files.
397 dirs with spaces and use quotes to enclose. 399 --site-libraries=PATH List of directories to search first for libraries.
398 --site-libraries=DIR Other library directories. 400 --site-runtime-libraries=PATH
399 --site-runtime-libraries=DIR 401 List of ALL directories to search for dynamically
400 Paths to add with -R flag. 402 linked libraries at run time.
401 --dynamic=yes Link dynamically if supported by system. 403 --dynamic=yes Link dynamically if supported by system.
402 --dynamic=no Force static linking on systems where dynamic 404 --dynamic=no Force static linking on systems where dynamic
403 linking is the default. 405 linking is the default.
404 --srcdir=DIR Look for the XEmacs source files in DIR. 406 --srcdir=DIR Look for the XEmacs source files in DIR.
405 See also --with-gnu-make. 407 See also --with-gnu-make.
411 --prefix=DIR Install files below DIR. Defaults to \`$prefix'. 413 --prefix=DIR Install files below DIR. Defaults to \`$prefix'.
412 414
413 415
414 Window-system options: 416 Window-system options:
415 417
416 --with-x (*) Support the X Window System. 418 --with-x11 (*) Support the X Window System.
417 --with-x=no Don't support X. 419 --with-x11=no Don't support X.
418 --x-includes=DIR Search for X header files in DIR. 420 --x-includes=DIR Search for X header files in DIR.
419 --x-libraries=DIR Search for X libraries in DIR. 421 --x-libraries=DIR Search for X libraries in DIR.
420 --with-toolbars=no Don't compile with any toolbar support. 422 --with-toolbars=no Don't compile with any toolbar support.
421 --with-session=no Compile without realized leader window which will 423 --with-session=no Compile without realized leader window which will
422 keep the WM_COMMAND property. Required for proper 424 keep the WM_COMMAND property. Required for proper
425 widgets emulate Motif (mostly) but are faster. 427 widgets emulate Motif (mostly) but are faster.
426 *WARNING* The Motif menubar is currently broken. 428 *WARNING* The Motif menubar is currently broken.
427 --with-scrollbars=TYPE Use TYPE scrollbars 429 --with-scrollbars=TYPE Use TYPE scrollbars
428 (lucid, motif, athena, athena3d, or no). 430 (lucid, motif, athena, athena3d, or no).
429 --with-dialogs=TYPE Use TYPE dialog boxes (motif, athena, athena3d, or no). 431 --with-dialogs=TYPE Use TYPE dialog boxes (motif, athena, athena3d, or no).
430 (Lucid menubars and scrollbars are the default. 432 Lucid menubars and scrollbars are the default.
431 Motif dialog boxes will be used if Motif can be 433 Motif dialog boxes will be used if Motif can be found.
432 found.)
433 --with-cde (*) Compile in support for CDE drag and drop. 434 --with-cde (*) Compile in support for CDE drag and drop.
434 --with-offix (*) Compile in support for OffiX drag and drop. 435 --with-offix (*) Compile in support for OffiX drag and drop.
435 --with-xmu=no (*) For those unfortunates whose vendors don't ship Xmu. 436 --with-xmu=no (*) For those unfortunates whose vendors don't ship Xmu.
436 --external-widget Compile with external widget support. 437 --external-widget Compile with external widget support.
437 --with-gif Compile with support for GIF image conversion. 438 --with-gif Compile with support for GIF image conversion.
487 --with-hesiod support Hesiod to get the POP server host 488 --with-hesiod support Hesiod to get the POP server host
488 --with-dnet (*) Compile with support for DECnet. 489 --with-dnet (*) Compile with support for DECnet.
489 --mail-locking=TYPE (*) Specify the locking to be used by movemail to prevent 490 --mail-locking=TYPE (*) Specify the locking to be used by movemail to prevent
490 concurrent updates of mail spool files. Valid types 491 concurrent updates of mail spool files. Valid types
491 are \`lockf', \`flock', and \`file'. 492 are \`lockf', \`flock', and \`file'.
492 --package-path=PATH A list of blank separated directories for finding 493 --package-path=PATH Directories to search for packages to dump with xemacs.
493 packages to dump with xemacs. 494 Defaults to \`$prefix/lib/xemacs/packages:~/.xemacs'.
494 Defaults to \`$prefix/lib/xemacs/packages ~/.xemacs'
495 495
496 Internationalization options: 496 Internationalization options:
497 497
498 --with-mule Compile with Mule (MUlti-Lingual Emacs) support, 498 --with-mule Compile with Mule (MUlti-Lingual Emacs) support,
499 needed to suport non-Latin-1 (including Asian) languages. 499 needed to suport non-Latin-1 (including Asian) languages.
795 ;; 795 ;;
796 796
797 dnl XFontSet support? 797 dnl XFontSet support?
798 "with_xfs" ) 798 "with_xfs" )
799 case "$val" in 799 case "$val" in
800 y | ye | yes ) val=yes ;; 800 y | ye | yes ) val=yes ;;
801 n | no | non | none ) val=no ;; 801 n | no | non | none ) val=no ;;
802 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: 802 * ) USAGE_ERROR(["The \`--$optname' option must have one of these values:
803 \`yes', or \`no'."]) ;; 803 \`yes', or \`no'."]) ;;
804 esac 804 esac
805 eval "$opt=\"$val\"" 805 eval "$opt=\"$val\""
806 ;; 806 ;;
949 dnl --extra-verbose implies --verbose 949 dnl --extra-verbose implies --verbose
950 test "$extra_verbose" = "yes" && verbose=yes 950 test "$extra_verbose" = "yes" && verbose=yes
951 951
952 dnl Allow use of either ":" or spaces for lists of directories 952 dnl Allow use of either ":" or spaces for lists of directories
953 define(COLON_TO_SPACE, 953 define(COLON_TO_SPACE,
954 [case "$[$1]" in *:* [)] [$1]="`echo '' $[$1] | sed -e 's:^ ::' -e 's/:/ /g'`";; esac])dnl 954 [case "$[$1]" in *:* [)] [$1]="`echo '' $[$1] | sed -e 's/^ //' -e 's/:/ /g'`";; esac])dnl
955 COLON_TO_SPACE(site_includes) 955 COLON_TO_SPACE(site_includes)
956 COLON_TO_SPACE(site_libraries) 956 COLON_TO_SPACE(site_libraries)
957 COLON_TO_SPACE(site_runtime_libraries) 957 COLON_TO_SPACE(site_runtime_libraries)
958 958
959 dnl with_x is obsolete synonym for with_x11 959 dnl with_x is an obsolete synonym for with_x11
960 test -n "$with_x" && with_x11="$with_x" 960 test -n "$with_x" && with_x11="$with_x"
961 961
962 dnl# Ignore useless run-in-place flag 962 dnl# Ignore useless run-in-place flag
963 if test "$run_in_place" = "yes"; then 963 if test "$run_in_place" = "yes"; then
964 AC_MSG_WARN("The --run-in-place option is ignored because it is unnecessary.") 964 AC_MSG_WARN("The --run-in-place option is ignored because it is unnecessary.")
1028 1028
1029 dnl Calculate canonical name for blddir (i.e. current directory). 1029 dnl Calculate canonical name for blddir (i.e. current directory).
1030 dnl PWD may already be the preferable absolute name for ".", 1030 dnl PWD may already be the preferable absolute name for ".",
1031 dnl but we can't trust it - it is sometimes inaccurate. 1031 dnl but we can't trust it - it is sometimes inaccurate.
1032 absolute_pwd="`pwd`"; 1032 absolute_pwd="`pwd`";
1033 if test -n "$PWD" && "`cd $PWD && pwd`" = "$absolute_pwd" 1033 if test -n "$PWD" -a "`cd $PWD && pwd`" = "$absolute_pwd"
1034 then blddir="$PWD" 1034 then blddir="$PWD"
1035 else blddir="$absolute_pwd" 1035 else blddir="$absolute_pwd"
1036 fi 1036 fi
1037 AC_SUBST(blddir) 1037 AC_SUBST(blddir)
1038 1038
1609 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;; 1609 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
1610 decosf* ) ld_call_shared="-call_shared" ;; 1610 decosf* ) ld_call_shared="-call_shared" ;;
1611 esac 1611 esac
1612 else dnl "$dynamic" = "no" 1612 else dnl "$dynamic" = "no"
1613 case "$opsys" in 1613 case "$opsys" in
1614 sol2 ) 1614 sol2 )
1615 echo "Static linking is not supported on Solaris 2." 1615 echo "Static linking is not supported on Solaris 2."
1616 echo "Rerun configure without specifying --dynamic=no." 1616 echo "Rerun configure without specifying --dynamic=no."
1617 exit 1 ;; 1617 exit 1 ;;
1618 linux ) ld_call_shared="-Bstatic" ;; 1618 linux ) ld_call_shared="-Bstatic" ;;
1619 decosf* ) ld_call_shared="-non_shared" ;; 1619 decosf* ) ld_call_shared="-non_shared" ;;
2214 dnl Choose a window system 2214 dnl Choose a window system
2215 dnl ---------------------- 2215 dnl ----------------------
2216 2216
2217 AC_CHECKING("for specified window system") 2217 AC_CHECKING("for specified window system")
2218 2218
2219 dnl $OPENWINHOME implies --x-includes and --x-libraries 2219 if test "$with_x11" != "no"; then
2220 dnl Not (yet) handled by autoconf2 2220 dnl User-specified --x-includes or --x-libraries implies --with-x11.
2221 if test "$x_includes $x_libraries" = "NONE NONE"; then 2221 test "$x_includes $x_libraries" != "NONE NONE" && \
2222 if test -n "$OPENWINHOME" \ 2222 window_system=x11 with_x11=yes
2223 -a "$OPENWINHOME" != "/usr/openwin" \ 2223
2224 -a -d "$OPENWINHOME"; then 2224 dnl $OPENWINHOME implies --x-includes and --x-libraries
2225 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib" 2225 dnl Not (yet) handled by autoconf2
2226 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include" 2226 if test "$x_includes $x_libraries" = "NONE NONE"; then
2227 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include" 2227 if test -n "$OPENWINHOME" \
2228 -a "$OPENWINHOME" != "/usr/openwin" \
2229 -a -d "$OPENWINHOME"; then
2230 test -d "$OPENWINHOME/lib" && x_libraries="$OPENWINHOME/lib"
2231 test -d "$OPENWINHOME/include" && x_includes="$OPENWINHOME/include"
2232 test -d "$OPENWINHOME/share/include" && x_includes="$OPENWINHOME/share/include"
2233 else
2234 dnl AC_PATH_XTRA often guesses /usr/include, when some other
2235 dnl include directory is a MUCH better guess (Linux, HP-UX 10.20).
2236 dnl This is a workaround for idiot (esp. HP) system packagers.
2237 for dir in "/usr/X11R6/include" "/usr/include/X11R6"; do
2238 if test -d "$dir/X11"; then x_includes="$dir"; break; fi
2239 done
2240 if test "$x_includes" != "NONE"; then
2241 for dir in "/usr/X11R6/lib" "/usr/lib/X11R6"; do
2242 if test -d "$dir"; then x_libraries="$dir"; break; fi
2243 done
2244 fi
2245 fi
2228 fi 2246 fi
2229 fi 2247
2230
2231 dnl --x-includes or --x-libraries implies --with-x11.
2232 test "$x_includes $x_libraries" != "NONE NONE" && \
2233 window_system=x11 with_x11=yes
2234
2235 if test "$with_x11" != "no"; then
2236 AC_PATH_XTRA # Autoconf claims to find X library and include dirs for us. 2248 AC_PATH_XTRA # Autoconf claims to find X library and include dirs for us.
2237 if test "$no_x" = "yes" 2249 if test "$no_x" = "yes"
2238 then with_x11=no window_system=none HAVE_X_WINDOWS=no 2250 then with_x11=no window_system=none HAVE_X_WINDOWS=no
2239 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes 2251 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
2240 fi 2252 fi
2364 dnl autodetect -lXmu 2376 dnl autodetect -lXmu
2365 test -z "$with_xmu" && { AC_CHECK_LIB(Xmu, XmuReadBitmapDataFromFile, 2377 test -z "$with_xmu" && { AC_CHECK_LIB(Xmu, XmuReadBitmapDataFromFile,
2366 with_xmu=yes, with_xmu=no) } 2378 with_xmu=yes, with_xmu=no) }
2367 if test "$with_xmu" = "no"; then 2379 if test "$with_xmu" = "no"; then
2368 XE_ADD_OBJS(xmu.o) 2380 XE_ADD_OBJS(xmu.o)
2369 else 2381 else
2370 XE_PREPEND(-lXmu, libs_x) 2382 XE_PREPEND(-lXmu, libs_x)
2371 AC_DEFINE(HAVE_XMU) 2383 AC_DEFINE(HAVE_XMU)
2372 fi 2384 fi
2373 2385
2374 dnl Autodetect -lXbsd 2386 dnl Autodetect -lXbsd
2927 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes 2939 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
2928 test "$rel_alloc" = "yes" && AC_DEFINE(REL_ALLOC) 2940 test "$rel_alloc" = "yes" && AC_DEFINE(REL_ALLOC)
2929 2941
2930 dnl Check for terminal I/O variants 2942 dnl Check for terminal I/O variants
2931 dnl TERMIOS systems may have termio.h, but not vice-versa, I think. 2943 dnl TERMIOS systems may have termio.h, but not vice-versa, I think.
2932 AC_CHECK_HEADER(termios.h, 2944 AC_CHECK_HEADER(termios.h,
2933 AC_DEFINE(HAVE_TERMIOS) 2945 AC_DEFINE(HAVE_TERMIOS)
2934 AC_DEFINE(SIGNALS_VIA_CHARACTERS) 2946 AC_DEFINE(SIGNALS_VIA_CHARACTERS)
2935 AC_DEFINE(NO_TERMIO), 2947 AC_DEFINE(NO_TERMIO),
2936 [AC_CHECK_HEADER(termio.h, [AC_DEFINE(HAVE_TERMIO)])]) 2948 [AC_CHECK_HEADER(termio.h, [AC_DEFINE(HAVE_TERMIO)])])
2937 2949
3372 AC_SUBST(RANLIB) 3384 AC_SUBST(RANLIB)
3373 AC_SUBST(dynodump_arch) 3385 AC_SUBST(dynodump_arch)
3374 3386
3375 3387
3376 dnl if --package-path wasn't passed to configure, give the default value 3388 dnl if --package-path wasn't passed to configure, give the default value
3377 if test "x${package_path}" = "xNONE" ; then 3389 if test "${package_path}" = "NONE" ; then
3378 package_path="${prefix}/lib/xemacs/packages:~/.xemacs" 3390 package_path="~/.xemacs:${prefix}/lib/xemacs/packages"
3379 fi 3391 fi
3380 dnl change blanks to colons in package path, and make available to config.h 3392 dnl change blanks to colons in package path, and make available to config.h
3381 package_path=`echo $package_path | sed 'y/ /:/'` 3393 package_path=`echo $package_path | sed 'y/ /:/'`
3382 AC_DEFINE_UNQUOTED(PACKAGE_PATH, "$package_path") 3394 AC_DEFINE_UNQUOTED(PACKAGE_PATH, "$package_path")
3383 3395