2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="driver/subprocs.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
681 INTLTOOL_DESKTOP_RULE
682 INTLTOOL_DIRECTORY_RULE
688 INTLTOOL_SOUNDLIST_RULE
717 gnome_url_show_program
719 PREFERRED_DEMO_PROGRAM
744 DEFAULT_IMAGE_DIRECTORY
786 ac_precious_vars='build_alias
798 # Initialize some variables set by options.
800 ac_init_version=false
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
810 program_transform_name=s,x,x,
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 includedir='${prefix}/include'
833 oldincludedir='/usr/include'
834 docdir='${datarootdir}/doc/${PACKAGE}'
835 infodir='${datarootdir}/info'
840 libdir='${exec_prefix}/lib'
841 localedir='${datarootdir}/locale'
842 mandir='${datarootdir}/man'
848 # If the previous option needs an argument, assign it.
849 if test -n "$ac_prev"; then
850 eval $ac_prev=\$ac_option
856 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860 # Accept the important Cygnus configure options, so we can diagnose typos.
862 case $ac_dashdash$ac_option in
866 -bindir | --bindir | --bindi | --bind | --bin | --bi)
868 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871 -build | --build | --buil | --bui | --bu)
872 ac_prev=build_alias ;;
873 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874 build_alias=$ac_optarg ;;
876 -cache-file | --cache-file | --cache-fil | --cache-fi \
877 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878 ac_prev=cache_file ;;
879 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881 cache_file=$ac_optarg ;;
884 cache_file=config.cache ;;
886 -datadir | --datadir | --datadi | --datad)
888 -datadir=* | --datadir=* | --datadi=* | --datad=*)
889 datadir=$ac_optarg ;;
891 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892 | --dataroo | --dataro | --datar)
893 ac_prev=datarootdir ;;
894 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896 datarootdir=$ac_optarg ;;
898 -disable-* | --disable-*)
899 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900 # Reject names that are not valid shell variable names.
901 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
902 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
903 { (exit 1); exit 1; }; }
904 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
905 eval enable_$ac_feature=no ;;
907 -docdir | --docdir | --docdi | --doc | --do)
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 -enable-* | --enable-*)
918 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
921 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
922 { (exit 1); exit 1; }; }
923 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
924 eval enable_$ac_feature=\$ac_optarg ;;
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
933 exec_prefix=$ac_optarg ;;
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
939 -help | --help | --hel | --he | -h)
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
946 -host | --host | --hos | --ho)
947 ac_prev=host_alias ;;
948 -host=* | --host=* | --hos=* | --ho=*)
949 host_alias=$ac_optarg ;;
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955 htmldir=$ac_optarg ;;
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
962 includedir=$ac_optarg ;;
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967 infodir=$ac_optarg ;;
969 -libdir | --libdir | --libdi | --libd)
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
979 libexecdir=$ac_optarg ;;
981 -localedir | --localedir | --localedi | --localed | --locale)
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
986 -localstatedir | --localstatedir | --localstatedi | --localstated \
987 | --localstate | --localstat | --localsta | --localst | --locals)
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991 localstatedir=$ac_optarg ;;
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999 # Obsolete; use --without-fp.
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n)
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017 oldincludedir=$ac_optarg ;;
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022 prefix=$ac_optarg ;;
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029 program_prefix=$ac_optarg ;;
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036 program_suffix=$ac_optarg ;;
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
1053 program_transform_name=$ac_optarg ;;
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1060 -psdir | --psdir | --psdi | --psd | --ps)
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1069 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073 sbindir=$ac_optarg ;;
1075 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077 | --sharedst | --shareds | --shared | --share | --shar \
1079 ac_prev=sharedstatedir ;;
1080 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084 sharedstatedir=$ac_optarg ;;
1086 -site | --site | --sit)
1088 -site=* | --site=* | --sit=*)
1091 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094 srcdir=$ac_optarg ;;
1096 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097 | --syscon | --sysco | --sysc | --sys | --sy)
1098 ac_prev=sysconfdir ;;
1099 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101 sysconfdir=$ac_optarg ;;
1103 -target | --target | --targe | --targ | --tar | --ta | --t)
1104 ac_prev=target_alias ;;
1105 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106 target_alias=$ac_optarg ;;
1108 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1111 -version | --version | --versio | --versi | --vers | -V)
1112 ac_init_version=: ;;
1115 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1118 { echo "$as_me: error: invalid package name: $ac_package" >&2
1119 { (exit 1); exit 1; }; }
1120 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1121 eval with_$ac_package=\$ac_optarg ;;
1123 -without-* | --without-*)
1124 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1127 { echo "$as_me: error: invalid package name: $ac_package" >&2
1128 { (exit 1); exit 1; }; }
1129 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1130 eval with_$ac_package=no ;;
1133 # Obsolete; use --with-x.
1136 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137 | --x-incl | --x-inc | --x-in | --x-i)
1138 ac_prev=x_includes ;;
1139 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141 x_includes=$ac_optarg ;;
1143 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145 ac_prev=x_libraries ;;
1146 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148 x_libraries=$ac_optarg ;;
1150 -*) { echo "$as_me: error: unrecognized option: $ac_option
1151 Try \`$0 --help' for more information." >&2
1152 { (exit 1); exit 1; }; }
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1159 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1160 { (exit 1); exit 1; }; }
1161 eval $ac_envvar=\$ac_optarg
1162 export $ac_envvar ;;
1165 # FIXME: should be removed in autoconf 3.0.
1166 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175 if test -n "$ac_prev"; then
1176 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177 { echo "$as_me: error: missing argument to $ac_option" >&2
1178 { (exit 1); exit 1; }; }
1181 # Be sure to have absolute directory names.
1182 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183 datadir sysconfdir sharedstatedir localstatedir includedir \
1184 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185 libdir localedir mandir
1187 eval ac_val=\$$ac_var
1189 [\\/$]* | ?:[\\/]* ) continue;;
1190 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1192 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1193 { (exit 1); exit 1; }; }
1196 # There might be people who depend on the old broken behavior: `$host'
1197 # used to hold the argument of --host etc.
1198 # FIXME: To remove some day.
1201 target=$target_alias
1203 # FIXME: To remove some day.
1204 if test "x$host_alias" != x; then
1205 if test "x$build_alias" = x; then
1206 cross_compiling=maybe
1207 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1208 If a cross compiler is detected then cross compile mode will be used." >&2
1209 elif test "x$build_alias" != "x$host_alias"; then
1215 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1217 test "$silent" = yes && exec 6>/dev/null
1220 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1221 ac_ls_di=`ls -di .` &&
1222 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1223 { echo "$as_me: error: Working directory cannot be determined" >&2
1224 { (exit 1); exit 1; }; }
1225 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1226 { echo "$as_me: error: pwd does not report name of working directory" >&2
1227 { (exit 1); exit 1; }; }
1230 # Find the source files, if location was not specified.
1231 if test -z "$srcdir"; then
1232 ac_srcdir_defaulted=yes
1233 # Try the directory containing this script, then the parent directory.
1234 ac_confdir=`$as_dirname -- "$0" ||
1235 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1236 X"$0" : 'X\(//\)[^/]' \| \
1237 X"$0" : 'X\(//\)$' \| \
1238 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1262 ac_srcdir_defaulted=no
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1266 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1267 { (exit 1); exit 1; }; }
1269 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1272 { (exit 1); exit 1; }; }
1274 # When building in place, set srcdir=.
1275 if test "$ac_abs_confdir" = "$ac_pwd"; then
1278 # Remove unnecessary trailing slashes from srcdir.
1279 # Double slashes in file names in object file debugging info
1280 # mess up M-x gdb in Emacs.
1282 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284 for ac_var in $ac_precious_vars; do
1285 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286 eval ac_env_${ac_var}_value=\$${ac_var}
1287 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1292 # Report the --help message.
1294 if test "$ac_init_help" = "long"; then
1295 # Omit some internal or obsolete options to make the list less imposing.
1296 # This message is too long to be a string in the A/UX 3.1 sh.
1298 \`configure' configures this package to adapt to many kinds of systems.
1300 Usage: $0 [OPTION]... [VAR=VALUE]...
1302 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303 VAR=VALUE. See below for descriptions of some of the useful variables.
1305 Defaults for the options are specified in brackets.
1308 -h, --help display this help and exit
1309 --help=short display options specific to this package
1310 --help=recursive display the short help of all the included packages
1311 -V, --version display version information and exit
1312 -q, --quiet, --silent do not print \`checking...' messages
1313 --cache-file=FILE cache test results in FILE [disabled]
1314 -C, --config-cache alias for \`--cache-file=config.cache'
1315 -n, --no-create do not create output files
1316 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1318 Installation directories:
1319 --prefix=PREFIX install architecture-independent files in PREFIX
1320 [$ac_default_prefix]
1321 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1324 By default, \`make install' will install all the files in
1325 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1326 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327 for instance \`--prefix=\$HOME'.
1329 For better control, use the options below.
1331 Fine tuning of the installation directories:
1332 --bindir=DIR user executables [EPREFIX/bin]
1333 --sbindir=DIR system admin executables [EPREFIX/sbin]
1334 --libexecdir=DIR program executables [EPREFIX/libexec]
1335 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1336 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1337 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1338 --libdir=DIR object code libraries [EPREFIX/lib]
1339 --includedir=DIR C header files [PREFIX/include]
1340 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1341 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1342 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1343 --infodir=DIR info documentation [DATAROOTDIR/info]
1344 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1345 --mandir=DIR man documentation [DATAROOTDIR/man]
1346 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1347 --htmldir=DIR html documentation [DOCDIR]
1348 --dvidir=DIR dvi documentation [DOCDIR]
1349 --pdfdir=DIR pdf documentation [DOCDIR]
1350 --psdir=DIR ps documentation [DOCDIR]
1356 --x-includes=DIR X include files are in DIR
1357 --x-libraries=DIR X library files are in DIR
1360 --build=BUILD configure for building on BUILD [guessed]
1361 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1365 if test -n "$ac_init_help"; then
1370 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1371 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1373 Screen locking options:
1374 --enable-locking Compile in support for locking the display.
1375 --disable-locking Do not allow locking at all.
1377 --enable-root-passwd Allow root passwd to unlock screen.
1378 --disable-root-passwd Do not allow that.
1381 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1382 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1384 --with-x use the X Window System
1387 Installation options:
1388 --with-hackdir=DIR Where to install the hundreds of demo executables.
1389 Default: `PREFIX/libexec/xscreensaver/'
1390 --with-configdir=DIR Where to install the data files that describe each
1391 of the display modes to the GUI.
1392 Default: `PREFIX/share/xscreensaver/config/'
1393 --with-x-app-defaults=DIR
1394 Where to install xscreensaver configuration file.
1396 Except where noted, all of the --with options below can also take a
1397 directory argument: for example, `--with-motif=/opt/Motif'. That would
1398 cause /opt/Motif/include/ to be added to the -I list, and /opt/Motif/lib/
1399 to be added to the -L list, assuming those directories exist.
1401 By default, support for each of these options will be built in, if the
1402 relevant library routines exist. At run time, they will then be used
1403 only if the X server being used supports them. Each --with option has
1404 a corresponding --without option, to override building support for them
1407 Screen blanking and idle-detection options:
1409 --with-sgi-ext Include support for the SGI SCREEN_SAVER extension.
1410 --with-xidle-ext Include support for the XIDLE extension.
1411 --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL extension.
1412 --with-dpms-ext Include support for the DPMS extension.
1413 --with-xinerama-ext Include support for the XINERAMA extension.
1414 --with-xf86vmode-ext Include support for XFree86 virtual screens.
1415 --with-xf86gamma-ext Include support for XFree86 gamma fading.
1416 --with-randr-ext Include support for the X Resize+Rotate extension.
1417 --with-proc-interrupts Include support for consulting the /proc/interrupts
1418 file to notice keyboard activity.
1419 --with-pam Include support for PAM (Pluggable Auth Modules.)
1420 --with-pam-service-name=NAME
1421 NAME is the name of the PAM service that
1422 xscreensaver will authenticate as.
1423 --with-kerberos Include support for Kerberos authentication.
1424 --with-shadow Include support for shadow password authentication.
1425 --with-passwd-helper Include support for an external password
1426 verification helper program.
1427 --with-login-manager Put a "New Login" button on the unlock dialog that
1428 runs a login manager such as gdmflexiserver.
1430 User interface options:
1432 --with-gtk Use the Gtk toolkit for the user interface.
1433 --with-motif Use the Motif toolkit for the user interface
1438 --with-gl Build those demos which depend on OpenGL.
1439 --with-gle Build those demos which depend on GLE
1440 (the OpenGL "extrusion" library.)
1441 --with-pixbuf Include support for the GDK-Pixbuf library in some
1442 demos, which will make it possible for them to read
1443 GIF, JPEG, and PNG files as well.
1444 --with-xpm Include support for XPM files in some demos.
1445 (Not needed if Pixbuf is used.)
1446 --with-jpeg Include support for the JPEG library.
1447 --with-xshm-ext Include support for the Shared Memory extension.
1448 --with-xdbe-ext Include support for the DOUBLE-BUFFER extension.
1449 --with-readdisplay Include support for the XReadDisplay extension.
1450 --with-image-directory=DIR By default, some demos may display random images
1451 from this directory.
1452 --with-text-file=FILE By default, some demos may display this file.
1453 --with-browser=BROWSER Specify the browser to show help URL.
1454 --with-setuid-hacks Allow some demos to be installed `setuid root'
1455 (which is needed in order to ping other hosts.)
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 LIBS libraries to pass to the linker, e.g. -l<library>
1464 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1467 XMKMF Path to xmkmf, Makefile generator for X Window System
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1476 if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479 test -d "$ac_dir" || continue
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1486 # A ".." for each directory in $ac_dir_suffix.
1487 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1488 case $ac_top_builddir_sub in
1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1499 .) # We are building in place.
1501 ac_top_srcdir=$ac_top_builddir_sub
1502 ac_abs_top_srcdir=$ac_pwd ;;
1503 [\\/]* | ?:[\\/]* ) # Absolute name.
1504 ac_srcdir=$srcdir$ac_dir_suffix;
1505 ac_top_srcdir=$srcdir
1506 ac_abs_top_srcdir=$srcdir ;;
1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509 ac_top_srcdir=$ac_top_build_prefix$srcdir
1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514 cd "$ac_dir" || { ac_status=$?; continue; }
1515 # Check for guested configure.
1516 if test -f "$ac_srcdir/configure.gnu"; then
1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519 elif test -f "$ac_srcdir/configure"; then
1521 $SHELL "$ac_srcdir/configure" --help=recursive
1523 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525 cd "$ac_pwd" || { ac_status=$?; break; }
1529 test -n "$ac_init_help" && exit $ac_status
1530 if $ac_init_version; then
1533 generated by GNU Autoconf 2.61
1535 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1536 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1537 This configure script is free software; the Free Software Foundation
1538 gives unlimited permission to copy, distribute and modify it.
1542 cat >config.log <<_ACEOF
1543 This file contains any messages produced by compilers while
1544 running configure, to aid debugging if configure makes a mistake.
1546 It was created by $as_me, which was
1547 generated by GNU Autoconf 2.61. Invocation command line was
1559 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1560 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1561 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1562 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1563 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1565 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1566 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1568 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1569 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1570 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1571 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1572 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1573 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1574 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 test -z "$as_dir" && as_dir=.
1583 echo "PATH: $as_dir"
1599 # Keep a trace of the command line.
1600 # Strip out --no-create and --no-recursion so they do not pile up.
1601 # Strip out --silent because we don't want to record it for future runs.
1602 # Also quote any args containing shell meta-characters.
1603 # Make two passes to allow for proper duplicate-argument suppression.
1607 ac_must_keep_next=false
1613 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1615 | -silent | --silent | --silen | --sile | --sil)
1618 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1621 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1623 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1624 if test $ac_must_keep_next = true; then
1625 ac_must_keep_next=false # Got value, back to normal.
1628 *=* | --config-cache | -C | -disable-* | --disable-* \
1629 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1630 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1631 | -with-* | --with-* | -without-* | --without-* | --x)
1632 case "$ac_configure_args0 " in
1633 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1636 -* ) ac_must_keep_next=true ;;
1639 ac_configure_args="$ac_configure_args '$ac_arg'"
1644 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1645 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1647 # When interrupted or exit'd, cleanup temporary files, and complete
1648 # config.log. We remove comments because anyway the quotes in there
1649 # would cause problems or look ugly.
1650 # WARNING: Use '\'' to represent an apostrophe within the trap.
1651 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1652 trap 'exit_status=$?
1653 # Save into config.log some information that might help in debugging.
1658 ## ---------------- ##
1659 ## Cache variables. ##
1660 ## ---------------- ##
1663 # The following way of writing the cache mishandles newlines in values,
1665 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1666 eval ac_val=\$$ac_var
1670 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1671 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1674 _ | IFS | as_nl) ;; #(
1675 *) $as_unset $ac_var ;;
1680 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1681 *${as_nl}ac_space=\ *)
1683 "s/'\''/'\''\\\\'\'''\''/g;
1684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1687 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1695 ## ----------------- ##
1696 ## Output variables. ##
1697 ## ----------------- ##
1700 for ac_var in $ac_subst_vars
1702 eval ac_val=\$$ac_var
1704 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1706 echo "$ac_var='\''$ac_val'\''"
1710 if test -n "$ac_subst_files"; then
1712 ## ------------------- ##
1713 ## File substitutions. ##
1714 ## ------------------- ##
1717 for ac_var in $ac_subst_files
1719 eval ac_val=\$$ac_var
1721 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1723 echo "$ac_var='\''$ac_val'\''"
1728 if test -s confdefs.h; then
1738 test "$ac_signal" != 0 &&
1739 echo "$as_me: caught signal $ac_signal"
1740 echo "$as_me: exit $exit_status"
1742 rm -f core *.core core.conftest.* &&
1743 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1746 for ac_signal in 1 2 13 15; do
1747 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1751 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1752 rm -f -r conftest* confdefs.h
1754 # Predefined preprocessor variables.
1756 cat >>confdefs.h <<_ACEOF
1757 #define PACKAGE_NAME "$PACKAGE_NAME"
1761 cat >>confdefs.h <<_ACEOF
1762 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1766 cat >>confdefs.h <<_ACEOF
1767 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_STRING "$PACKAGE_STRING"
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1781 # Let the site file select an alternate cache file if it wants to.
1782 # Prefer explicitly selected file to automatically selected ones.
1783 if test -n "$CONFIG_SITE"; then
1784 set x "$CONFIG_SITE"
1785 elif test "x$prefix" != xNONE; then
1786 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1788 set x "$ac_default_prefix/share/config.site" \
1789 "$ac_default_prefix/etc/config.site"
1794 if test -r "$ac_site_file"; then
1795 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1796 echo "$as_me: loading site script $ac_site_file" >&6;}
1797 sed 's/^/| /' "$ac_site_file" >&5
1802 if test -r "$cache_file"; then
1803 # Some versions of bash will fail to source /dev/null (special
1804 # files actually), so we avoid doing that.
1805 if test -f "$cache_file"; then
1806 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1807 echo "$as_me: loading cache $cache_file" >&6;}
1809 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1810 *) . "./$cache_file";;
1814 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1815 echo "$as_me: creating cache $cache_file" >&6;}
1819 # Check that the precious variables saved in the cache have kept the same
1821 ac_cache_corrupted=false
1822 for ac_var in $ac_precious_vars; do
1823 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1824 eval ac_new_set=\$ac_env_${ac_var}_set
1825 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1826 eval ac_new_val=\$ac_env_${ac_var}_value
1827 case $ac_old_set,$ac_new_set in
1829 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1830 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1831 ac_cache_corrupted=: ;;
1833 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1834 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1835 ac_cache_corrupted=: ;;
1838 if test "x$ac_old_val" != "x$ac_new_val"; then
1839 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1840 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1841 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1842 echo "$as_me: former value: $ac_old_val" >&2;}
1843 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1844 echo "$as_me: current value: $ac_new_val" >&2;}
1845 ac_cache_corrupted=:
1848 # Pass precious variables to config.status.
1849 if test "$ac_new_set" = set; then
1851 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1852 *) ac_arg=$ac_var=$ac_new_val ;;
1854 case " $ac_configure_args " in
1855 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1856 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1860 if $ac_cache_corrupted; then
1861 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1862 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1863 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1864 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1865 { (exit 1); exit 1; }; }
1885 ac_cpp='$CPP $CPPFLAGS'
1886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1891 ac_config_headers="$ac_config_headers config.h"
1894 echo "current directory: `pwd`"
1895 echo "command line was: $0 $@"
1897 ###############################################################################
1901 ###############################################################################
2076 # After checking to see that --srcdir is correct (which AC_INIT does)
2077 # check for some random other files that come later in the tar file,
2078 # to make sure everything is here.
2080 for d in driver utils hacks hacks/glx ; do
2081 f=$srcdir/$d/Makefile.in
2082 if test \! -r $f ; then
2084 echo "ERROR: The package is incomplete: $f does not exist."
2085 echo " This probably means that your download was truncated."
2091 ###############################################################################
2093 # Function to figure out how to run the compiler.
2095 ###############################################################################
2100 ###############################################################################
2102 # Check for availability of various gcc command-line options.
2104 ###############################################################################
2112 # Need to disable Objective C extensions in ANSI C on MacOS X to work
2113 # around an Apple-specific gcc bug.
2117 ###############################################################################
2119 # Function to figure out how to disable // comments in ANSI C code.
2121 # (With recent gcc, this is done with "-std=c89". With older gcc, this
2122 # is done by passing "-lang-c89" to cpp, by passing "-Wp,-lang-c89" to
2123 # gcc. Old gcc doesn't support -std, and new gcc doesn't support -lang.
2124 # so much for compatibility!)
2126 # UPDATE: apparently there is NO WAY to tell gcc 3.2.2 to require that
2127 # declarations preceed statements, without resorting to "-pedantic".
2128 # This means that there is no way to get gcc3 to issue warnings that
2129 # ensure that your code complies with the ANSI/ISO C89 standard, without
2130 # also drowning in totally useless warnings. Thank you master may I
2133 # So, I give up, let's just use -pedantic.
2135 ###############################################################################
2142 ###############################################################################
2144 # Function to figure out how to create directory trees.
2146 ###############################################################################
2151 ###############################################################################
2153 # Function to check whether gettimeofday() exists, and how to call it.
2154 # This may define HAVE_GETTIMEOFDAY and GETTIMEOFDAY_TWO_ARGS.
2156 ###############################################################################
2161 ###############################################################################
2163 # Function to find perl5 (defines PERL and PERL_VERSION.)
2165 ###############################################################################
2167 # M4 sucks!! perl sucks too!!
2169 perl_version_cmd='print $]'
2175 ###############################################################################
2177 # Function to demand "bc". Losers.
2179 ###############################################################################
2183 ###############################################################################
2185 # Functions to check how to do ICMP PING requests.
2187 ###############################################################################
2194 ###############################################################################
2196 # Functions to check for various X11 crap.
2198 ###############################################################################
2200 # Try and find the app-defaults directory.
2201 # It sucks that autoconf doesn't do this already...
2205 ###############################################################################
2207 # Handle the --with-x-app-defaults option HERE
2209 ###############################################################################
2212 # Check whether --with-x-app-defaults was given.
2213 if test "${with_x_app_defaults+set}" = set; then
2214 withval=$with_x_app_defaults; ac_cv_x_app_defaults="$withval"
2216 eval ac_x_app_defaults="$withval"
2229 # Random special-cases for X on certain pathological OSes.
2230 # You know who you are.
2236 ###############################################################################
2238 # Some utility functions to make checking for X things easier.
2240 ###############################################################################
2242 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
2246 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
2250 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
2255 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
2256 # Use this sparingly; it probably doesn't work very well on X programs.
2260 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
2261 # (But not the -L directories!)
2267 # Usage: HANDLE_X_PATH_ARG([variable_name],
2268 # [--command-line-option],
2269 # [descriptive string])
2271 # All of the --with options take three forms:
2273 # --with-foo (or --with-foo=yes)
2274 # --without-foo (or --with-foo=no)
2277 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
2278 # a directory (string beginning with a slash) it checks to see whether
2279 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
2286 ###############################################################################
2287 ###############################################################################
2289 # End of function definitions. Now start actually executing stuff.
2291 ###############################################################################
2292 ###############################################################################
2294 # WTF! autoconf emits this *way* too late. Do it earlier.
2295 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2296 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2299 # random compiler setup
2301 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2302 if test -f "$ac_dir/install-sh"; then
2304 ac_install_sh="$ac_aux_dir/install-sh -c"
2306 elif test -f "$ac_dir/install.sh"; then
2308 ac_install_sh="$ac_aux_dir/install.sh -c"
2310 elif test -f "$ac_dir/shtool"; then
2312 ac_install_sh="$ac_aux_dir/shtool install -c"
2316 if test -z "$ac_aux_dir"; then
2317 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2318 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2319 { (exit 1); exit 1; }; }
2322 # These three variables are undocumented and unsupported,
2323 # and are intended to be withdrawn in a future Autoconf release.
2324 # They can cause serious problems if a builder's source tree is in a directory
2325 # whose full name contains unusual characters.
2326 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2327 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2328 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2331 # Make sure we can run config.sub.
2332 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2333 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2334 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2335 { (exit 1); exit 1; }; }
2337 { echo "$as_me:$LINENO: checking build system type" >&5
2338 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2339 if test "${ac_cv_build+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 ac_build_alias=$build_alias
2343 test "x$ac_build_alias" = x &&
2344 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2345 test "x$ac_build_alias" = x &&
2346 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2347 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2348 { (exit 1); exit 1; }; }
2349 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2350 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2351 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2352 { (exit 1); exit 1; }; }
2355 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2356 echo "${ECHO_T}$ac_cv_build" >&6; }
2357 case $ac_cv_build in
2359 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2360 echo "$as_me: error: invalid value of canonical build" >&2;}
2361 { (exit 1); exit 1; }; };;
2364 ac_save_IFS=$IFS; IFS='-'
2370 # Remember, the first character of IFS is used to create $*,
2371 # except with old shells:
2374 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2377 { echo "$as_me:$LINENO: checking host system type" >&5
2378 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2379 if test "${ac_cv_host+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 if test "x$host_alias" = x; then
2383 ac_cv_host=$ac_cv_build
2385 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2386 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2387 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2388 { (exit 1); exit 1; }; }
2392 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2393 echo "${ECHO_T}$ac_cv_host" >&6; }
2396 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2397 echo "$as_me: error: invalid value of canonical host" >&2;}
2398 { (exit 1); exit 1; }; };;
2401 ac_save_IFS=$IFS; IFS='-'
2407 # Remember, the first character of IFS is used to create $*,
2408 # except with old shells:
2411 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2416 ac_cpp='$CPP $CPPFLAGS'
2417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2420 if test -n "$ac_tool_prefix"; then
2421 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2422 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2425 if test "${ac_cv_prog_CC+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2428 if test -n "$CC"; then
2429 ac_cv_prog_CC="$CC" # Let the user override the test.
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 test -z "$as_dir" && as_dir=.
2436 for ac_exec_ext in '' $ac_executable_extensions; do
2437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2438 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 if test -n "$CC"; then
2450 { echo "$as_me:$LINENO: result: $CC" >&5
2451 echo "${ECHO_T}$CC" >&6; }
2453 { echo "$as_me:$LINENO: result: no" >&5
2454 echo "${ECHO_T}no" >&6; }
2459 if test -z "$ac_cv_prog_CC"; then
2461 # Extract the first word of "gcc", so it can be a program name with args.
2462 set dummy gcc; ac_word=$2
2463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2465 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 if test -n "$ac_ct_CC"; then
2469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478 ac_cv_prog_ac_ct_CC="gcc"
2479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2489 if test -n "$ac_ct_CC"; then
2490 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2491 echo "${ECHO_T}$ac_ct_CC" >&6; }
2493 { echo "$as_me:$LINENO: result: no" >&5
2494 echo "${ECHO_T}no" >&6; }
2497 if test "x$ac_ct_CC" = x; then
2500 case $cross_compiling:$ac_tool_warned in
2502 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2503 whose name does not start with the host triplet. If you think this
2504 configuration is useful to you, please write to autoconf@gnu.org." >&5
2505 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2506 whose name does not start with the host triplet. If you think this
2507 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2508 ac_tool_warned=yes ;;
2516 if test -z "$CC"; then
2517 if test -n "$ac_tool_prefix"; then
2518 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2519 set dummy ${ac_tool_prefix}cc; ac_word=$2
2520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_CC+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC="$CC" # Let the user override the test.
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535 ac_cv_prog_CC="${ac_tool_prefix}cc"
2536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2546 if test -n "$CC"; then
2547 { echo "$as_me:$LINENO: result: $CC" >&5
2548 echo "${ECHO_T}$CC" >&6; }
2550 { echo "$as_me:$LINENO: result: no" >&5
2551 echo "${ECHO_T}no" >&6; }
2557 if test -z "$CC"; then
2558 # Extract the first word of "cc", so it can be a program name with args.
2559 set dummy cc; ac_word=$2
2560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2562 if test "${ac_cv_prog_CC+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 if test -n "$CC"; then
2566 ac_cv_prog_CC="$CC" # Let the user override the test.
2569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do
2575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2576 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2577 ac_prog_rejected=yes
2581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 if test $ac_prog_rejected = yes; then
2589 # We found a bogon in the path, so make sure we never use it.
2590 set dummy $ac_cv_prog_CC
2592 if test $# != 0; then
2593 # We chose a different compiler from the bogus one.
2594 # However, it has the same basename, so the bogon will be chosen
2595 # first if we set CC to just the basename; use the full file name.
2597 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2603 if test -n "$CC"; then
2604 { echo "$as_me:$LINENO: result: $CC" >&5
2605 echo "${ECHO_T}$CC" >&6; }
2607 { echo "$as_me:$LINENO: result: no" >&5
2608 echo "${ECHO_T}no" >&6; }
2613 if test -z "$CC"; then
2614 if test -n "$ac_tool_prefix"; then
2615 for ac_prog in cl.exe
2617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2621 if test "${ac_cv_prog_CC+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2624 if test -n "$CC"; then
2625 ac_cv_prog_CC="$CC" # Let the user override the test.
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 if test -n "$CC"; then
2646 { echo "$as_me:$LINENO: result: $CC" >&5
2647 echo "${ECHO_T}$CC" >&6; }
2649 { echo "$as_me:$LINENO: result: no" >&5
2650 echo "${ECHO_T}no" >&6; }
2654 test -n "$CC" && break
2657 if test -z "$CC"; then
2659 for ac_prog in cl.exe
2661 # Extract the first word of "$ac_prog", so it can be a program name with args.
2662 set dummy $ac_prog; ac_word=$2
2663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2665 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 if test -n "$ac_ct_CC"; then
2669 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678 ac_cv_prog_ac_ct_CC="$ac_prog"
2679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2689 if test -n "$ac_ct_CC"; then
2690 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2691 echo "${ECHO_T}$ac_ct_CC" >&6; }
2693 { echo "$as_me:$LINENO: result: no" >&5
2694 echo "${ECHO_T}no" >&6; }
2698 test -n "$ac_ct_CC" && break
2701 if test "x$ac_ct_CC" = x; then
2704 case $cross_compiling:$ac_tool_warned in
2706 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2707 whose name does not start with the host triplet. If you think this
2708 configuration is useful to you, please write to autoconf@gnu.org." >&5
2709 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2710 whose name does not start with the host triplet. If you think this
2711 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2712 ac_tool_warned=yes ;;
2721 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2722 See \`config.log' for more details." >&5
2723 echo "$as_me: error: no acceptable C compiler found in \$PATH
2724 See \`config.log' for more details." >&2;}
2725 { (exit 1); exit 1; }; }
2727 # Provide some information about the compiler.
2728 echo "$as_me:$LINENO: checking for C compiler version" >&5
2729 ac_compiler=`set X $ac_compile; echo $2`
2730 { (ac_try="$ac_compiler --version >&5"
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736 (eval "$ac_compiler --version >&5") 2>&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }
2740 { (ac_try="$ac_compiler -v >&5"
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_compiler -v >&5") 2>&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }
2750 { (ac_try="$ac_compiler -V >&5"
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756 (eval "$ac_compiler -V >&5") 2>&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }
2761 cat >conftest.$ac_ext <<_ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h. */
2776 ac_clean_files_save=$ac_clean_files
2777 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2778 # Try to create an executable without -o first, disregard a.out.
2779 # It will help us diagnose broken compilers, and finding out an intuition
2781 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2782 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2783 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2785 # List of possible output files, starting from the most likely.
2786 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2787 # only as a last resort. b.out is created by i960 compilers.
2788 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2790 # The IRIX 6 linker writes into existing files which may not be
2791 # executable, retaining their permissions. Remove them first so a
2792 # subsequent execution test works.
2794 for ac_file in $ac_files
2797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2798 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2803 if { (ac_try="$ac_link_default"
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809 (eval "$ac_link_default") 2>&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; then
2813 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2814 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2815 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2816 # so that the user can short-circuit this test for compilers unknown to
2818 for ac_file in $ac_files ''
2820 test -f "$ac_file" || continue
2822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2825 # We found the default executable, but exeext='' is most
2829 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2831 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2833 # We set ac_cv_exeext here because the later test for it is not
2834 # safe: cross compilers may not add the suffix if given an `-o'
2835 # argument, so we may need to know it at that point already.
2836 # Even if this section looks crufty: it has the advantage of
2843 test "$ac_cv_exeext" = no && ac_cv_exeext=
2849 { echo "$as_me:$LINENO: result: $ac_file" >&5
2850 echo "${ECHO_T}$ac_file" >&6; }
2851 if test -z "$ac_file"; then
2852 echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2855 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2856 See \`config.log' for more details." >&5
2857 echo "$as_me: error: C compiler cannot create executables
2858 See \`config.log' for more details." >&2;}
2859 { (exit 77); exit 77; }; }
2862 ac_exeext=$ac_cv_exeext
2864 # Check that the compiler produces executables we can run. If not, either
2865 # the compiler is broken, or we cross compile.
2866 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2867 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2868 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2869 # If not cross compiling, check that we can run a simple program.
2870 if test "$cross_compiling" != yes; then
2871 if { ac_try='./$ac_file'
2872 { (case "(($ac_try" in
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877 (eval "$ac_try") 2>&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; }; then
2883 if test "$cross_compiling" = maybe; then
2886 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2887 If you meant to cross compile, use \`--host'.
2888 See \`config.log' for more details." >&5
2889 echo "$as_me: error: cannot run C compiled programs.
2890 If you meant to cross compile, use \`--host'.
2891 See \`config.log' for more details." >&2;}
2892 { (exit 1); exit 1; }; }
2896 { echo "$as_me:$LINENO: result: yes" >&5
2897 echo "${ECHO_T}yes" >&6; }
2899 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2900 ac_clean_files=$ac_clean_files_save
2901 # Check that the compiler produces executables we can run. If not, either
2902 # the compiler is broken, or we cross compile.
2903 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2904 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2905 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2906 echo "${ECHO_T}$cross_compiling" >&6; }
2908 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2909 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2910 if { (ac_try="$ac_link"
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916 (eval "$ac_link") 2>&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; then
2920 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2921 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2922 # work properly (i.e., refer to `conftest.exe'), while it won't with
2924 for ac_file in conftest.exe conftest conftest.*; do
2925 test -f "$ac_file" || continue
2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2928 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2934 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2935 See \`config.log' for more details." >&5
2936 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2937 See \`config.log' for more details." >&2;}
2938 { (exit 1); exit 1; }; }
2941 rm -f conftest$ac_cv_exeext
2942 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2943 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2945 rm -f conftest.$ac_ext
2946 EXEEXT=$ac_cv_exeext
2948 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2949 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2950 if test "${ac_cv_objext+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 cat >conftest.$ac_ext <<_ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2968 rm -f conftest.o conftest.obj
2969 if { (ac_try="$ac_compile"
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_compile") 2>&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; then
2979 for ac_file in conftest.o conftest.obj conftest.*; do
2980 test -f "$ac_file" || continue;
2982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2983 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2988 echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2991 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2992 See \`config.log' for more details." >&5
2993 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2994 See \`config.log' for more details." >&2;}
2995 { (exit 1); exit 1; }; }
2998 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3000 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3001 echo "${ECHO_T}$ac_cv_objext" >&6; }
3002 OBJEXT=$ac_cv_objext
3004 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3005 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3006 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 cat >conftest.$ac_ext <<_ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3027 rm -f conftest.$ac_objext
3028 if { (ac_try="$ac_compile"
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compile") 2>conftest.er1
3036 grep -v '^ *+' conftest.er1 >conftest.err
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } && {
3041 test -z "$ac_c_werror_flag" ||
3042 test ! -s conftest.err
3043 } && test -s conftest.$ac_objext; then
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3056 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3057 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3058 GCC=`test $ac_compiler_gnu = yes && echo yes`
3059 ac_test_CFLAGS=${CFLAGS+set}
3060 ac_save_CFLAGS=$CFLAGS
3061 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3062 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3063 if test "${ac_cv_prog_cc_g+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 ac_save_c_werror_flag=$ac_c_werror_flag
3067 ac_c_werror_flag=yes
3070 cat >conftest.$ac_ext <<_ACEOF
3073 cat confdefs.h >>conftest.$ac_ext
3074 cat >>conftest.$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3085 rm -f conftest.$ac_objext
3086 if { (ac_try="$ac_compile"
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_compile") 2>conftest.er1
3094 grep -v '^ *+' conftest.er1 >conftest.err
3096 cat conftest.err >&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } && {
3099 test -z "$ac_c_werror_flag" ||
3100 test ! -s conftest.err
3101 } && test -s conftest.$ac_objext; then
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3108 cat >conftest.$ac_ext <<_ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3123 rm -f conftest.$ac_objext
3124 if { (ac_try="$ac_compile"
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_compile") 2>conftest.er1
3132 grep -v '^ *+' conftest.er1 >conftest.err
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } && {
3137 test -z "$ac_c_werror_flag" ||
3138 test ! -s conftest.err
3139 } && test -s conftest.$ac_objext; then
3142 echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3145 ac_c_werror_flag=$ac_save_c_werror_flag
3147 cat >conftest.$ac_ext <<_ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3162 rm -f conftest.$ac_objext
3163 if { (ac_try="$ac_compile"
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169 (eval "$ac_compile") 2>conftest.er1
3171 grep -v '^ *+' conftest.er1 >conftest.err
3173 cat conftest.err >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } && {
3176 test -z "$ac_c_werror_flag" ||
3177 test ! -s conftest.err
3178 } && test -s conftest.$ac_objext; then
3181 echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 ac_c_werror_flag=$ac_save_c_werror_flag
3196 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3197 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3198 if test "$ac_test_CFLAGS" = set; then
3199 CFLAGS=$ac_save_CFLAGS
3200 elif test $ac_cv_prog_cc_g = yes; then
3201 if test "$GCC" = yes; then
3207 if test "$GCC" = yes; then
3213 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3214 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3215 if test "${ac_cv_prog_cc_c89+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 ac_cv_prog_cc_c89=no
3220 cat >conftest.$ac_ext <<_ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3228 #include <sys/types.h>
3229 #include <sys/stat.h>
3230 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3231 struct buf { int x; };
3232 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3233 static char *e (p, i)
3239 static char *f (char * (*g) (char **, int), char **p, ...)
3244 s = g (p, va_arg (v,int));
3249 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3250 function prototypes and stuff, but not '\xHH' hex character constants.
3251 These don't provoke an error unfortunately, instead are silently treated
3252 as 'x'. The following induces an error, until -std is added to get
3253 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3254 array size at least. It's necessary to write '\x00'==0 to get something
3255 that's true only with -std. */
3256 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3258 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3259 inside strings and character constants. */
3261 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3263 int test (int i, double x);
3264 struct s1 {int (*f) (int a);};
3265 struct s2 {int (*f) (double a);};
3266 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3272 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3277 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3278 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3280 CC="$ac_save_CC $ac_arg"
3281 rm -f conftest.$ac_objext
3282 if { (ac_try="$ac_compile"
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288 (eval "$ac_compile") 2>conftest.er1
3290 grep -v '^ *+' conftest.er1 >conftest.err
3292 cat conftest.err >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } && {
3295 test -z "$ac_c_werror_flag" ||
3296 test ! -s conftest.err
3297 } && test -s conftest.$ac_objext; then
3298 ac_cv_prog_cc_c89=$ac_arg
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3306 rm -f core conftest.err conftest.$ac_objext
3307 test "x$ac_cv_prog_cc_c89" != "xno" && break
3309 rm -f conftest.$ac_ext
3314 case "x$ac_cv_prog_cc_c89" in
3316 { echo "$as_me:$LINENO: result: none needed" >&5
3317 echo "${ECHO_T}none needed" >&6; } ;;
3319 { echo "$as_me:$LINENO: result: unsupported" >&5
3320 echo "${ECHO_T}unsupported" >&6; } ;;
3322 CC="$CC $ac_cv_prog_cc_c89"
3323 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3324 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3329 ac_cpp='$CPP $CPPFLAGS'
3330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335 if test -z "$GCC"; then
3337 { echo "$as_me:$LINENO: checking how to request ANSI compilation" >&5
3338 echo $ECHO_N "checking how to request ANSI compilation... $ECHO_C" >&6; }
3341 { echo "$as_me:$LINENO: result: HPUX: adding -Ae" >&5
3342 echo "${ECHO_T}HPUX: adding -Ae" >&6; }
3346 { echo "$as_me:$LINENO: result: AIX: adding -qlanglvl=ansi -qhalt=e" >&5
3347 echo "${ECHO_T}AIX: adding -qlanglvl=ansi -qhalt=e" >&6; }
3348 CC="$CC -qlanglvl=ansi -qhalt=e"
3351 { echo "$as_me:$LINENO: result: DEC: adding -std1 -ieee" >&5
3352 echo "${ECHO_T}DEC: adding -std1 -ieee" >&6; }
3356 { echo "$as_me:$LINENO: result: no idea" >&5
3357 echo "${ECHO_T}no idea" >&6; }
3364 { echo "$as_me:$LINENO: result: Solaris: adding -D__EXTENSIONS__" >&5
3365 echo "${ECHO_T}Solaris: adding -D__EXTENSIONS__" >&6; }
3366 CC="$CC -D__EXTENSIONS__"
3373 { echo "$as_me:$LINENO: checking whether the compiler works on ANSI C" >&5
3374 echo $ECHO_N "checking whether the compiler works on ANSI C... $ECHO_C" >&6; }
3375 if test "$cross_compiling" = yes; then
3376 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
3377 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
3378 { (exit 1); exit 1; }; }
3380 cat >conftest.$ac_ext <<_ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3386 main(int ac, char **av) { return 0; }
3388 rm -f conftest$ac_exeext
3389 if { (ac_try="$ac_link"
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_link") 2>&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3399 { (case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_try") 2>&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); }; }; then
3408 { echo "$as_me:$LINENO: result: yes" >&5
3409 echo "${ECHO_T}yes" >&6; }
3411 echo "$as_me: program exited with status $ac_status" >&5
3412 echo "$as_me: failed program was:" >&5
3413 sed 's/^/| /' conftest.$ac_ext >&5
3416 { echo "$as_me:$LINENO: result: no" >&5
3417 echo "${ECHO_T}no" >&6; }
3418 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
3419 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
3420 { (exit 1); exit 1; }; }
3422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3427 if test -n "$GCC"; then
3428 { echo "$as_me:$LINENO: result: Turning on gcc compiler warnings." >&5
3429 echo "${ECHO_T}Turning on gcc compiler warnings." >&6; }
3430 CC="$CC -pedantic -Wall -Wstrict-prototypes -Wnested-externs -Wmissing-prototypes"
3431 OBJCC="$OBJCC -Wall"
3432 # As of gcc 3.4, we have "-Wdeclaration-after-statement"
3433 # and so perhaps now we can do without -pedantic?
3436 *-irix5* |*-irix6.0-3* )
3437 { echo "$as_me:$LINENO: result: Turning on SGI compiler warnings." >&5
3438 echo "${ECHO_T}Turning on SGI compiler warnings." >&6; }
3439 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
3442 # if test -z "$GCC"; then
3443 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
3444 # CC="$CC -migrate -w0 -verbose -warnprotos"
3450 if test -n "$GCC"; then
3451 { echo "$as_me:$LINENO: checking whether gcc accepts -Wno-overlength-strings" >&5
3452 echo $ECHO_N "checking whether gcc accepts -Wno-overlength-strings... $ECHO_C" >&6; }
3453 if test "${ac_cv_gcc_accepts_no_overlength+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 rm -rf conftest.$ac_ext
3457 touch conftest.$ac_ext
3458 if ( ( gcc -c -Wno-overlength-strings conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3459 grep unrecognized >/dev/null ); then
3460 ac_cv_gcc_accepts_no_overlength=no
3462 ac_cv_gcc_accepts_no_overlength=yes
3463 CC="$CC -Wno-overlength-strings"
3466 { echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_overlength" >&5
3467 echo "${ECHO_T}$ac_cv_gcc_accepts_no_overlength" >&6; }
3468 ac_gcc_accepts_no_overlength="$ac_cv_gcc_accepts_no_overlength"
3471 if test -n "$GCC"; then
3472 { echo "$as_me:$LINENO: checking whether gcc accepts -Wdeclaration-after-statement" >&5
3473 echo $ECHO_N "checking whether gcc accepts -Wdeclaration-after-statement... $ECHO_C" >&6; }
3474 if test "${ac_cv_gcc_accepts_no_decl_after+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 rm -rf conftest.$ac_ext
3478 touch conftest.$ac_ext
3479 if ( ( gcc -c -Wdeclaration-after-statement conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3480 grep unrecognized >/dev/null ); then
3481 ac_cv_gcc_accepts_no_decl_after=no
3483 ac_cv_gcc_accepts_no_decl_after=yes
3484 CC="$CC -Wdeclaration-after-statement"
3487 { echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_decl_after" >&5
3488 echo "${ECHO_T}$ac_cv_gcc_accepts_no_decl_after" >&6; }
3489 ac_gcc_accepts_no_decl_after="$ac_cv_gcc_accepts_no_decl_after"
3492 if test -n "$GCC"; then
3493 { echo "$as_me:$LINENO: checking whether gcc accepts -no-cpp-precomp" >&5
3494 echo $ECHO_N "checking whether gcc accepts -no-cpp-precomp... $ECHO_C" >&6; }
3495 if test "${ac_cv_gcc_accepts_no_cpp_precomp+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 rm -rf conftest.$ac_ext
3499 touch conftest.$ac_ext
3500 if ( ( gcc -c -no-cpp-precomp conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3501 grep unrecognized >/dev/null ); then
3502 ac_cv_gcc_accepts_no_cpp_precomp=no
3504 ac_cv_gcc_accepts_no_cpp_precomp=yes
3505 CC="$CC -no-cpp-precomp"
3508 { echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_cpp_precomp" >&5
3509 echo "${ECHO_T}$ac_cv_gcc_accepts_no_cpp_precomp" >&6; }
3510 ac_gcc_accepts_no_cpp_precomp="$ac_cv_gcc_accepts_no_cpp_precomp"
3513 if test -n "$GCC"; then
3517 # Fucking Apple let // comments sneak into OpenGL headers, so
3518 # we *must* allow // comments when compiling on Mac OS 10.6! FUCK!
3521 if test -n "$GCC"; then
3522 { echo "$as_me:$LINENO: checking whether gcc accepts -std=c89" >&5
3523 echo $ECHO_N "checking whether gcc accepts -std=c89... $ECHO_C" >&6; }
3524 if test "${ac_cv_gcc_accepts_std+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3527 rm -rf conftest.$ac_ext
3528 touch conftest.$ac_ext
3529 if ( ( gcc -c -std=c89 conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3530 grep unrecognized >/dev/null ); then
3531 ac_cv_gcc_accepts_std=no
3533 ac_cv_gcc_accepts_std=yes
3537 { echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_std" >&5
3538 echo "${ECHO_T}$ac_cv_gcc_accepts_std" >&6; }
3539 ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
3545 { echo "$as_me:$LINENO: result: Disabling C++ comments in ANSI C code." >&5
3546 echo "${ECHO_T}Disabling C++ comments in ANSI C code." >&6; }
3548 # The reason that // comments are banned from xscreensaver is that gcc is
3549 # basically the only compiler in the world that supports them in C code.
3550 # All other vendors support them only in their C++ compilers, not in their
3551 # ANSI C compilers. This means that it's a portability problem: every time
3552 # these comments have snuck into the xscreensaver source code, I've gotten
3553 # complaints about it the next day. So we turn off support for them in gcc
3554 # as well to prevent them from accidentially slipping in.
3556 if test "$ac_gcc_accepts_std" = yes ; then
3558 # -std=c89 defines __STRICT_ANSI__, which we don't want.
3559 # (That appears to be the only additional preprocessor symbol
3560 # it defines, in addition to the syntax changes it makes.)
3562 # -std=gnu89 is no good, because // comments were a GNU extension
3563 # before they were in the ANSI C 99 spec... (gcc 2.96 permits //
3564 # with -std=gnu89 but not with -std=c89.)
3566 # $CC already contains "-std=c89" via AC_GCC_ACCEPTS_STD
3567 CC="$CC -U__STRICT_ANSI__"
3570 # CC="$CC -Wp,-lang-c89"
3575 ac_cpp='$CPP $CPPFLAGS'
3576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3580 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3581 # On Suns, sometimes $CPP names a directory.
3582 if test -n "$CPP" && test -d "$CPP"; then
3585 if test -z "$CPP"; then
3586 if test "${ac_cv_prog_CPP+set}" = set; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 # Double quotes because CPP needs to be expanded
3590 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3593 for ac_c_preproc_warn_flag in '' yes
3595 # Use a header file that comes with gcc, so configuring glibc
3596 # with a fresh cross-compiler works.
3597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3598 # <limits.h> exists even on freestanding compilers.
3599 # On the NeXT, cc -E runs the code through the compiler's parser,
3600 # not just through cpp. "Syntax error" is here to catch this case.
3601 cat >conftest.$ac_ext <<_ACEOF
3604 cat confdefs.h >>conftest.$ac_ext
3605 cat >>conftest.$ac_ext <<_ACEOF
3606 /* end confdefs.h. */
3608 # include <limits.h>
3610 # include <assert.h>
3614 if { (ac_try="$ac_cpp conftest.$ac_ext"
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3622 grep -v '^ *+' conftest.er1 >conftest.err
3624 cat conftest.err >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } >/dev/null && {
3627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3628 test ! -s conftest.err
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 # Broken: fails on valid input.
3639 rm -f conftest.err conftest.$ac_ext
3641 # OK, works on sane cases. Now check whether nonexistent headers
3642 # can be detected and how.
3643 cat >conftest.$ac_ext <<_ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3649 #include <ac_nonexistent.h>
3651 if { (ac_try="$ac_cpp conftest.$ac_ext"
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3659 grep -v '^ *+' conftest.er1 >conftest.err
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } >/dev/null && {
3664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3665 test ! -s conftest.err
3667 # Broken: success on invalid input.
3670 echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3673 # Passes both tests.
3678 rm -f conftest.err conftest.$ac_ext
3681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3682 rm -f conftest.err conftest.$ac_ext
3683 if $ac_preproc_ok; then
3695 { echo "$as_me:$LINENO: result: $CPP" >&5
3696 echo "${ECHO_T}$CPP" >&6; }
3698 for ac_c_preproc_warn_flag in '' yes
3700 # Use a header file that comes with gcc, so configuring glibc
3701 # with a fresh cross-compiler works.
3702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3703 # <limits.h> exists even on freestanding compilers.
3704 # On the NeXT, cc -E runs the code through the compiler's parser,
3705 # not just through cpp. "Syntax error" is here to catch this case.
3706 cat >conftest.$ac_ext <<_ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h. */
3713 # include <limits.h>
3715 # include <assert.h>
3719 if { (ac_try="$ac_cpp conftest.$ac_ext"
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3727 grep -v '^ *+' conftest.er1 >conftest.err
3729 cat conftest.err >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } >/dev/null && {
3732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3733 test ! -s conftest.err
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3740 # Broken: fails on valid input.
3744 rm -f conftest.err conftest.$ac_ext
3746 # OK, works on sane cases. Now check whether nonexistent headers
3747 # can be detected and how.
3748 cat >conftest.$ac_ext <<_ACEOF
3751 cat confdefs.h >>conftest.$ac_ext
3752 cat >>conftest.$ac_ext <<_ACEOF
3753 /* end confdefs.h. */
3754 #include <ac_nonexistent.h>
3756 if { (ac_try="$ac_cpp conftest.$ac_ext"
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3764 grep -v '^ *+' conftest.er1 >conftest.err
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } >/dev/null && {
3769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3770 test ! -s conftest.err
3772 # Broken: success on invalid input.
3775 echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3778 # Passes both tests.
3783 rm -f conftest.err conftest.$ac_ext
3786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3787 rm -f conftest.err conftest.$ac_ext
3788 if $ac_preproc_ok; then
3791 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3792 See \`config.log' for more details." >&5
3793 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3794 See \`config.log' for more details." >&2;}
3795 { (exit 1); exit 1; }; }
3799 ac_cpp='$CPP $CPPFLAGS'
3800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3804 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3805 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3806 if test "${ac_cv_c_const+set}" = set; then
3807 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 cat >conftest.$ac_ext <<_ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3819 /* FIXME: Include the comments suggested by Paul. */
3821 /* Ultrix mips cc rejects this. */
3822 typedef int charset[2];
3824 /* SunOS 4.1.1 cc rejects this. */
3825 char const *const *pcpcc;
3827 /* NEC SVR4.0.2 mips cc rejects this. */
3828 struct point {int x, y;};
3829 static struct point const zero = {0,0};
3830 /* AIX XL C 1.02.0.0 rejects this.
3831 It does not let you subtract one const X* pointer from another in
3832 an arm of an if-expression whose if-part is not a constant
3834 const char *g = "string";
3835 pcpcc = &g + (g ? g-g : 0);
3836 /* HPUX 7.0 cc rejects these. */
3838 ppc = (char**) pcpcc;
3839 pcpcc = (char const *const *) ppc;
3840 { /* SCO 3.2v4 cc rejects this. */
3842 char const *s = 0 ? (char *) 0 : (char const *) 0;
3847 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3849 const int *foo = &x[0];
3852 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3853 typedef const int *iptr;
3857 { /* AIX XL C 1.02.0.0 rejects this saying
3858 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3859 struct s { int j; const int *ap[3]; };
3860 struct s *b; b->j = 5;
3862 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3866 return !cs[0] && !zero.x;
3873 rm -f conftest.$ac_objext
3874 if { (ac_try="$ac_compile"
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880 (eval "$ac_compile") 2>conftest.er1
3882 grep -v '^ *+' conftest.er1 >conftest.err
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } && {
3887 test -z "$ac_c_werror_flag" ||
3888 test ! -s conftest.err
3889 } && test -s conftest.$ac_objext; then
3892 echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3901 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3902 if test $ac_cv_c_const = no; then
3904 cat >>confdefs.h <<\_ACEOF
3910 { echo "$as_me:$LINENO: checking for inline" >&5
3911 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3912 if test "${ac_cv_c_inline+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 for ac_kw in inline __inline__ __inline; do
3917 cat >conftest.$ac_ext <<_ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3925 static $ac_kw foo_t static_foo () {return 0; }
3926 $ac_kw foo_t foo () {return 0; }
3930 rm -f conftest.$ac_objext
3931 if { (ac_try="$ac_compile"
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3937 (eval "$ac_compile") 2>conftest.er1
3939 grep -v '^ *+' conftest.er1 >conftest.err
3941 cat conftest.err >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); } && {
3944 test -z "$ac_c_werror_flag" ||
3945 test ! -s conftest.err
3946 } && test -s conftest.$ac_objext; then
3947 ac_cv_c_inline=$ac_kw
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956 test "$ac_cv_c_inline" != no && break
3960 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3961 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3964 case $ac_cv_c_inline in
3967 case $ac_cv_c_inline in
3969 *) ac_val=$ac_cv_c_inline;;
3971 cat >>confdefs.h <<_ACEOF
3973 #define inline $ac_val
3980 ac_bc_result=`echo 6+9 | bc 2>/dev/null`
3981 { echo "$as_me:$LINENO: checking for bc" >&5
3982 echo $ECHO_N "checking for bc... $ECHO_C" >&6; }
3983 if test "$ac_bc_result" = "15" ; then
3984 { echo "$as_me:$LINENO: result: yes" >&5
3985 echo "${ECHO_T}yes" >&6; }
3987 { echo "$as_me:$LINENO: result: no" >&5
3988 echo "${ECHO_T}no" >&6; }
3990 { { echo "$as_me:$LINENO: error: Your system doesn't have \"bc\", which has been a standard
3991 part of Unix since the 1970s. Come back when your vendor
3992 has grown a clue." >&5
3993 echo "$as_me: error: Your system doesn't have \"bc\", which has been a standard
3994 part of Unix since the 1970s. Come back when your vendor
3995 has grown a clue." >&2;}
3996 { (exit 1); exit 1; }; }
4000 # stuff for Makefiles
4001 # Find a good install program. We prefer a C program (faster),
4002 # so one script is as good as another. But avoid the broken or
4003 # incompatible versions:
4004 # SysV /etc/install, /usr/sbin/install
4005 # SunOS /usr/etc/install
4006 # IRIX /sbin/install
4008 # AmigaOS /C/install, which installs bootblocks on floppy discs
4009 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4010 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4011 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4012 # OS/2's system install, which has a completely different semantic
4013 # ./install, which can be erroneously created by make from ./install.sh.
4014 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4015 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4016 if test -z "$INSTALL"; then
4017 if test "${ac_cv_path_install+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 test -z "$as_dir" && as_dir=.
4025 # Account for people who put trailing slashes in PATH elements.
4027 ./ | .// | /cC/* | \
4028 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4029 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4032 # OSF1 and SCO ODT 3.0 have their own names for install.
4033 # Don't use installbsd from OSF since it installs stuff as root
4035 for ac_prog in ginstall scoinst install; do
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4038 if test $ac_prog = install &&
4039 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4040 # AIX install. It has an incompatible calling convention.
4042 elif test $ac_prog = install &&
4043 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4044 # program-specific install script used by HP pwplus--don't use.
4047 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4060 if test "${ac_cv_path_install+set}" = set; then
4061 INSTALL=$ac_cv_path_install
4063 # As a last resort, use the slow shell script. Don't cache a
4064 # value for INSTALL within a source directory, because that will
4065 # break other packages using the cache if that directory is
4066 # removed, or if the value is a relative name.
4067 INSTALL=$ac_install_sh
4070 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4071 echo "${ECHO_T}$INSTALL" >&6; }
4073 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4074 # It thinks the first close brace ends the variable substitution.
4075 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4077 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4079 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4081 { echo "$as_me:$LINENO: checking whether \"\${INSTALL} -d\" creates intermediate directories" >&5
4082 echo $ECHO_N "checking whether \"\${INSTALL} -d\" creates intermediate directories... $ECHO_C" >&6; }
4083 if test "${ac_cv_install_d_creates_dirs+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 ac_cv_install_d_creates_dirs=no
4088 if mkdir conftestdir; then
4089 cd conftestdir 2>/dev/null
4090 ${INSTALL} -d `pwd`/dir1/dir2 >/dev/null 2>&1
4091 if test -d dir1/dir2/. ; then
4092 ac_cv_install_d_creates_dirs=yes
4099 { echo "$as_me:$LINENO: result: $ac_cv_install_d_creates_dirs" >&5
4100 echo "${ECHO_T}$ac_cv_install_d_creates_dirs" >&6; }
4102 if test "$ac_cv_install_d_creates_dirs" = no ; then
4103 { echo "$as_me:$LINENO: checking whether \"mkdir -p\" creates intermediate directories" >&5
4104 echo $ECHO_N "checking whether \"mkdir -p\" creates intermediate directories... $ECHO_C" >&6; }
4105 if test "${ac_cv_mkdir_p_creates_dirs+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4108 ac_cv_mkdir_p_creates_dirs=no
4110 if mkdir conftestdir; then
4111 cd conftestdir 2>/dev/null
4112 mkdir -p dir1/dir2 >/dev/null 2>&1
4113 if test -d dir1/dir2/. ; then
4114 ac_cv_mkdir_p_creates_dirs=yes
4121 { echo "$as_me:$LINENO: result: $ac_cv_mkdir_p_creates_dirs" >&5
4122 echo "${ECHO_T}$ac_cv_mkdir_p_creates_dirs" >&6; }
4125 if test "$ac_cv_install_d_creates_dirs" = yes ; then
4126 INSTALL_DIRS='${INSTALL} -d'
4127 elif test "$ac_cv_mkdir_p_creates_dirs" = yes ; then
4128 INSTALL_DIRS='mkdir -p'
4131 INSTALL_DIRS='${INSTALL} -d'
4134 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4135 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4136 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4137 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 cat >conftest.make <<\_ACEOF
4143 @echo '@@@%%%=$(MAKE)=@@@%%%'
4145 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4146 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4148 eval ac_cv_prog_make_${ac_make}_set=yes;;
4150 eval ac_cv_prog_make_${ac_make}_set=no;;
4154 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4155 { echo "$as_me:$LINENO: result: yes" >&5
4156 echo "${ECHO_T}yes" >&6; }
4159 { echo "$as_me:$LINENO: result: no" >&5
4160 echo "${ECHO_T}no" >&6; }
4161 SET_MAKE="MAKE=${MAKE-make}"
4165 # By default, autoconf sets INSTALL_SCRIPT to '${INSTALL_PROGRAM}'.
4166 # That's wrong: it should be set to '${INSTALL}', so that one can
4167 # implement the "install-strip" target properly (strip executables,
4168 # but do not try to strip scripts.)
4170 INSTALL_SCRIPT='${INSTALL}'
4174 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4175 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4176 if test "${ac_cv_path_GREP+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 # Extract the first word of "grep ggrep" to use in msg output
4180 if test -z "$GREP"; then
4181 set dummy grep ggrep; ac_prog_name=$2
4182 if test "${ac_cv_path_GREP+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4185 ac_path_GREP_found=false
4186 # Loop through the user's path and test for each of PROGNAME-LIST
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4191 test -z "$as_dir" && as_dir=.
4192 for ac_prog in grep ggrep; do
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4195 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4196 # Check for GNU ac_path_GREP and select it if it is found.
4197 # Check for GNU $ac_path_GREP
4198 case `"$ac_path_GREP" --version 2>&1` in
4200 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4203 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4206 cat "conftest.in" "conftest.in" >"conftest.tmp"
4207 mv "conftest.tmp" "conftest.in"
4208 cp "conftest.in" "conftest.nl"
4209 echo 'GREP' >> "conftest.nl"
4210 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4212 ac_count=`expr $ac_count + 1`
4213 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4214 # Best one so far, save it but keep looking for a better one
4215 ac_cv_path_GREP="$ac_path_GREP"
4216 ac_path_GREP_max=$ac_count
4218 # 10*(2^10) chars as input seems more than enough
4219 test $ac_count -gt 10 && break
4221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4225 $ac_path_GREP_found && break 3
4235 GREP="$ac_cv_path_GREP"
4236 if test -z "$GREP"; then
4237 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4238 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4239 { (exit 1); exit 1; }; }
4243 ac_cv_path_GREP=$GREP
4248 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4249 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4250 GREP="$ac_cv_path_GREP"
4253 { echo "$as_me:$LINENO: checking for egrep" >&5
4254 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4255 if test "${ac_cv_path_EGREP+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4259 then ac_cv_path_EGREP="$GREP -E"
4261 # Extract the first word of "egrep" to use in msg output
4262 if test -z "$EGREP"; then
4263 set dummy egrep; ac_prog_name=$2
4264 if test "${ac_cv_path_EGREP+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 ac_path_EGREP_found=false
4268 # Loop through the user's path and test for each of PROGNAME-LIST
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4273 test -z "$as_dir" && as_dir=.
4274 for ac_prog in egrep; do
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4277 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4278 # Check for GNU ac_path_EGREP and select it if it is found.
4279 # Check for GNU $ac_path_EGREP
4280 case `"$ac_path_EGREP" --version 2>&1` in
4282 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4285 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4288 cat "conftest.in" "conftest.in" >"conftest.tmp"
4289 mv "conftest.tmp" "conftest.in"
4290 cp "conftest.in" "conftest.nl"
4291 echo 'EGREP' >> "conftest.nl"
4292 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4293 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4294 ac_count=`expr $ac_count + 1`
4295 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4296 # Best one so far, save it but keep looking for a better one
4297 ac_cv_path_EGREP="$ac_path_EGREP"
4298 ac_path_EGREP_max=$ac_count
4300 # 10*(2^10) chars as input seems more than enough
4301 test $ac_count -gt 10 && break
4303 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4307 $ac_path_EGREP_found && break 3
4317 EGREP="$ac_cv_path_EGREP"
4318 if test -z "$EGREP"; then
4319 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4320 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4321 { (exit 1); exit 1; }; }
4325 ac_cv_path_EGREP=$EGREP
4331 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4332 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4333 EGREP="$ac_cv_path_EGREP"
4336 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4337 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4338 if test "${ac_cv_header_stdc+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 cat >conftest.$ac_ext <<_ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4360 rm -f conftest.$ac_objext
4361 if { (ac_try="$ac_compile"
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367 (eval "$ac_compile") 2>conftest.er1
4369 grep -v '^ *+' conftest.er1 >conftest.err
4371 cat conftest.err >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } && {
4374 test -z "$ac_c_werror_flag" ||
4375 test ! -s conftest.err
4376 } && test -s conftest.$ac_objext; then
4377 ac_cv_header_stdc=yes
4379 echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4382 ac_cv_header_stdc=no
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4387 if test $ac_cv_header_stdc = yes; then
4388 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4389 cat >conftest.$ac_ext <<_ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h. */
4398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4399 $EGREP "memchr" >/dev/null 2>&1; then
4402 ac_cv_header_stdc=no
4408 if test $ac_cv_header_stdc = yes; then
4409 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4410 cat >conftest.$ac_ext <<_ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4420 $EGREP "free" >/dev/null 2>&1; then
4423 ac_cv_header_stdc=no
4429 if test $ac_cv_header_stdc = yes; then
4430 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4431 if test "$cross_compiling" = yes; then
4434 cat >conftest.$ac_ext <<_ACEOF
4437 cat confdefs.h >>conftest.$ac_ext
4438 cat >>conftest.$ac_ext <<_ACEOF
4439 /* end confdefs.h. */
4442 #if ((' ' & 0x0FF) == 0x020)
4443 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4444 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4446 # define ISLOWER(c) \
4447 (('a' <= (c) && (c) <= 'i') \
4448 || ('j' <= (c) && (c) <= 'r') \
4449 || ('s' <= (c) && (c) <= 'z'))
4450 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4453 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4458 for (i = 0; i < 256; i++)
4459 if (XOR (islower (i), ISLOWER (i))
4460 || toupper (i) != TOUPPER (i))
4465 rm -f conftest$ac_exeext
4466 if { (ac_try="$ac_link"
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4472 (eval "$ac_link") 2>&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4476 { (case "(($ac_try" in
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481 (eval "$ac_try") 2>&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4487 echo "$as_me: program exited with status $ac_status" >&5
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4492 ac_cv_header_stdc=no
4494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4500 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4501 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4502 if test $ac_cv_header_stdc = yes; then
4504 cat >>confdefs.h <<\_ACEOF
4505 #define STDC_HEADERS 1
4510 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4520 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4521 inttypes.h stdint.h unistd.h
4523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 cat >conftest.$ac_ext <<_ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535 $ac_includes_default
4537 #include <$ac_header>
4539 rm -f conftest.$ac_objext
4540 if { (ac_try="$ac_compile"
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546 (eval "$ac_compile") 2>conftest.er1
4548 grep -v '^ *+' conftest.er1 >conftest.err
4550 cat conftest.err >&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); } && {
4553 test -z "$ac_c_werror_flag" ||
4554 test ! -s conftest.err
4555 } && test -s conftest.$ac_objext; then
4556 eval "$as_ac_Header=yes"
4558 echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4561 eval "$as_ac_Header=no"
4564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566 ac_res=`eval echo '${'$as_ac_Header'}'`
4567 { echo "$as_me:$LINENO: result: $ac_res" >&5
4568 echo "${ECHO_T}$ac_res" >&6; }
4569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4570 cat >>confdefs.h <<_ACEOF
4571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4580 for ac_header in unistd.h
4582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 ac_res=`eval echo '${'$as_ac_Header'}'`
4590 { echo "$as_me:$LINENO: result: $ac_res" >&5
4591 echo "${ECHO_T}$ac_res" >&6; }
4593 # Is the header compilable?
4594 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4596 cat >conftest.$ac_ext <<_ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4602 $ac_includes_default
4603 #include <$ac_header>
4605 rm -f conftest.$ac_objext
4606 if { (ac_try="$ac_compile"
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_compile") 2>conftest.er1
4614 grep -v '^ *+' conftest.er1 >conftest.err
4616 cat conftest.err >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } && {
4619 test -z "$ac_c_werror_flag" ||
4620 test ! -s conftest.err
4621 } && test -s conftest.$ac_objext; then
4622 ac_header_compiler=yes
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4627 ac_header_compiler=no
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4632 echo "${ECHO_T}$ac_header_compiler" >&6; }
4634 # Is the header present?
4635 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4636 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4637 cat >conftest.$ac_ext <<_ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 #include <$ac_header>
4645 if { (ac_try="$ac_cpp conftest.$ac_ext"
4647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648 *) ac_try_echo=$ac_try;;
4650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4653 grep -v '^ *+' conftest.er1 >conftest.err
4655 cat conftest.err >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } >/dev/null && {
4658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4659 test ! -s conftest.err
4661 ac_header_preproc=yes
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4666 ac_header_preproc=no
4669 rm -f conftest.err conftest.$ac_ext
4670 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4671 echo "${ECHO_T}$ac_header_preproc" >&6; }
4673 # So? What about this header?
4674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4680 ac_header_preproc=yes
4683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4686 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4690 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 eval "$as_ac_Header=\$ac_header_preproc"
4705 ac_res=`eval echo '${'$as_ac_Header'}'`
4706 { echo "$as_me:$LINENO: result: $ac_res" >&5
4707 echo "${ECHO_T}$ac_res" >&6; }
4710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4711 cat >>confdefs.h <<_ACEOF
4712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4719 { echo "$as_me:$LINENO: checking for mode_t" >&5
4720 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
4721 if test "${ac_cv_type_mode_t+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 cat >conftest.$ac_ext <<_ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4730 $ac_includes_default
4731 typedef mode_t ac__type_new_;
4735 if ((ac__type_new_ *) 0)
4737 if (sizeof (ac__type_new_))
4743 rm -f conftest.$ac_objext
4744 if { (ac_try="$ac_compile"
4746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747 *) ac_try_echo=$ac_try;;
4749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4750 (eval "$ac_compile") 2>conftest.er1
4752 grep -v '^ *+' conftest.er1 >conftest.err
4754 cat conftest.err >&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } && {
4757 test -z "$ac_c_werror_flag" ||
4758 test ! -s conftest.err
4759 } && test -s conftest.$ac_objext; then
4760 ac_cv_type_mode_t=yes
4762 echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4765 ac_cv_type_mode_t=no
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4771 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
4772 if test $ac_cv_type_mode_t = yes; then
4776 cat >>confdefs.h <<_ACEOF
4782 { echo "$as_me:$LINENO: checking for pid_t" >&5
4783 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
4784 if test "${ac_cv_type_pid_t+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 cat >conftest.$ac_ext <<_ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 $ac_includes_default
4794 typedef pid_t ac__type_new_;
4798 if ((ac__type_new_ *) 0)
4800 if (sizeof (ac__type_new_))
4806 rm -f conftest.$ac_objext
4807 if { (ac_try="$ac_compile"
4809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810 *) ac_try_echo=$ac_try;;
4812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813 (eval "$ac_compile") 2>conftest.er1
4815 grep -v '^ *+' conftest.er1 >conftest.err
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } && {
4820 test -z "$ac_c_werror_flag" ||
4821 test ! -s conftest.err
4822 } && test -s conftest.$ac_objext; then
4823 ac_cv_type_pid_t=yes
4825 echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4834 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
4835 if test $ac_cv_type_pid_t = yes; then
4839 cat >>confdefs.h <<_ACEOF
4845 { echo "$as_me:$LINENO: checking for size_t" >&5
4846 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4847 if test "${ac_cv_type_size_t+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 cat >conftest.$ac_ext <<_ACEOF
4853 cat confdefs.h >>conftest.$ac_ext
4854 cat >>conftest.$ac_ext <<_ACEOF
4855 /* end confdefs.h. */
4856 $ac_includes_default
4857 typedef size_t ac__type_new_;
4861 if ((ac__type_new_ *) 0)
4863 if (sizeof (ac__type_new_))
4869 rm -f conftest.$ac_objext
4870 if { (ac_try="$ac_compile"
4872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4873 *) ac_try_echo=$ac_try;;
4875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4876 (eval "$ac_compile") 2>conftest.er1
4878 grep -v '^ *+' conftest.er1 >conftest.err
4880 cat conftest.err >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } && {
4883 test -z "$ac_c_werror_flag" ||
4884 test ! -s conftest.err
4885 } && test -s conftest.$ac_objext; then
4886 ac_cv_type_size_t=yes
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4891 ac_cv_type_size_t=no
4894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4897 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4898 if test $ac_cv_type_size_t = yes; then
4902 cat >>confdefs.h <<_ACEOF
4903 #define size_t unsigned int
4908 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4909 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
4910 if test "${ac_cv_type_signal+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4913 cat >conftest.$ac_ext <<_ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4919 #include <sys/types.h>
4925 return *(signal (0, 0)) (0) == 1;
4930 rm -f conftest.$ac_objext
4931 if { (ac_try="$ac_compile"
4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934 *) ac_try_echo=$ac_try;;
4936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4937 (eval "$ac_compile") 2>conftest.er1
4939 grep -v '^ *+' conftest.er1 >conftest.err
4941 cat conftest.err >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); } && {
4944 test -z "$ac_c_werror_flag" ||
4945 test ! -s conftest.err
4946 } && test -s conftest.$ac_objext; then
4947 ac_cv_type_signal=int
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4952 ac_cv_type_signal=void
4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4958 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
4960 cat >>confdefs.h <<_ACEOF
4961 #define RETSIGTYPE $ac_cv_type_signal
4965 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4966 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4967 if test "${ac_cv_header_time+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 cat >conftest.$ac_ext <<_ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4976 #include <sys/types.h>
4977 #include <sys/time.h>
4983 if ((struct tm *) 0)
4989 rm -f conftest.$ac_objext
4990 if { (ac_try="$ac_compile"
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4996 (eval "$ac_compile") 2>conftest.er1
4998 grep -v '^ *+' conftest.er1 >conftest.err
5000 cat conftest.err >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } && {
5003 test -z "$ac_c_werror_flag" ||
5004 test ! -s conftest.err
5005 } && test -s conftest.$ac_objext; then
5006 ac_cv_header_time=yes
5008 echo "$as_me: failed program was:" >&5
5009 sed 's/^/| /' conftest.$ac_ext >&5
5011 ac_cv_header_time=no
5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5017 echo "${ECHO_T}$ac_cv_header_time" >&6; }
5018 if test $ac_cv_header_time = yes; then
5020 cat >>confdefs.h <<\_ACEOF
5021 #define TIME_WITH_SYS_TIME 1
5026 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5027 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
5028 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 cat >conftest.$ac_ext <<_ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5037 #include <sys/types.h>
5038 #include <sys/wait.h>
5040 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5043 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5051 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5056 rm -f conftest.$ac_objext
5057 if { (ac_try="$ac_compile"
5059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060 *) ac_try_echo=$ac_try;;
5062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5063 (eval "$ac_compile") 2>conftest.er1
5065 grep -v '^ *+' conftest.er1 >conftest.err
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } && {
5070 test -z "$ac_c_werror_flag" ||
5071 test ! -s conftest.err
5072 } && test -s conftest.$ac_objext; then
5073 ac_cv_header_sys_wait_h=yes
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5078 ac_cv_header_sys_wait_h=no
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5084 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
5085 if test $ac_cv_header_sys_wait_h = yes; then
5087 cat >>confdefs.h <<\_ACEOF
5088 #define HAVE_SYS_WAIT_H 1
5099 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5100 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5101 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5102 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 cat >conftest.$ac_ext <<_ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 #include <sys/types.h>
5124 rm -f conftest.$ac_objext
5125 if { (ac_try="$ac_compile"
5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131 (eval "$ac_compile") 2>conftest.er1
5133 grep -v '^ *+' conftest.er1 >conftest.err
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } && {
5138 test -z "$ac_c_werror_flag" ||
5139 test ! -s conftest.err
5140 } && test -s conftest.$ac_objext; then
5141 eval "$as_ac_Header=yes"
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5146 eval "$as_ac_Header=no"
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5151 ac_res=`eval echo '${'$as_ac_Header'}'`
5152 { echo "$as_me:$LINENO: result: $ac_res" >&5
5153 echo "${ECHO_T}$ac_res" >&6; }
5154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5155 cat >>confdefs.h <<_ACEOF
5156 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5159 ac_header_dirent=$ac_hdr; break
5163 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5164 if test $ac_header_dirent = dirent.h; then
5165 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5166 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5167 if test "${ac_cv_search_opendir+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 ac_func_search_save_LIBS=$LIBS
5171 cat >conftest.$ac_ext <<_ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h. */
5178 /* Override any GCC internal prototype to avoid an error.
5179 Use char because int might match the return type of a GCC
5180 builtin and then its argument prototype would still apply. */
5193 for ac_lib in '' dir; do
5194 if test -z "$ac_lib"; then
5195 ac_res="none required"
5198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5200 rm -f conftest.$ac_objext conftest$ac_exeext
5201 if { (ac_try="$ac_link"
5203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5204 *) ac_try_echo=$ac_try;;
5206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5207 (eval "$ac_link") 2>conftest.er1
5209 grep -v '^ *+' conftest.er1 >conftest.err
5211 cat conftest.err >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } && {
5214 test -z "$ac_c_werror_flag" ||
5215 test ! -s conftest.err
5216 } && test -s conftest$ac_exeext &&
5217 $as_test_x conftest$ac_exeext; then
5218 ac_cv_search_opendir=$ac_res
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5228 if test "${ac_cv_search_opendir+set}" = set; then
5232 if test "${ac_cv_search_opendir+set}" = set; then
5235 ac_cv_search_opendir=no
5238 LIBS=$ac_func_search_save_LIBS
5240 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5241 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5242 ac_res=$ac_cv_search_opendir
5243 if test "$ac_res" != no; then
5244 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5249 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5250 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5251 if test "${ac_cv_search_opendir+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 ac_func_search_save_LIBS=$LIBS
5255 cat >conftest.$ac_ext <<_ACEOF
5258 cat confdefs.h >>conftest.$ac_ext
5259 cat >>conftest.$ac_ext <<_ACEOF
5260 /* end confdefs.h. */
5262 /* Override any GCC internal prototype to avoid an error.
5263 Use char because int might match the return type of a GCC
5264 builtin and then its argument prototype would still apply. */
5277 for ac_lib in '' x; do
5278 if test -z "$ac_lib"; then
5279 ac_res="none required"
5282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5284 rm -f conftest.$ac_objext conftest$ac_exeext
5285 if { (ac_try="$ac_link"
5287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288 *) ac_try_echo=$ac_try;;
5290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291 (eval "$ac_link") 2>conftest.er1
5293 grep -v '^ *+' conftest.er1 >conftest.err
5295 cat conftest.err >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); } && {
5298 test -z "$ac_c_werror_flag" ||
5299 test ! -s conftest.err
5300 } && test -s conftest$ac_exeext &&
5301 $as_test_x conftest$ac_exeext; then
5302 ac_cv_search_opendir=$ac_res
5304 echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5312 if test "${ac_cv_search_opendir+set}" = set; then
5316 if test "${ac_cv_search_opendir+set}" = set; then
5319 ac_cv_search_opendir=no
5322 LIBS=$ac_func_search_save_LIBS
5324 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5325 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5326 ac_res=$ac_cv_search_opendir
5327 if test "$ac_res" != no; then
5328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5334 { echo "$as_me:$LINENO: checking how to call gettimeofday" >&5
5335 echo $ECHO_N "checking how to call gettimeofday... $ECHO_C" >&6; }
5336 if test "${ac_cv_gettimeofday_args+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 cat >conftest.$ac_ext <<_ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5346 #include <sys/time.h>
5350 struct timeval tv; struct timezone tzp;
5351 gettimeofday(&tv, &tzp);
5356 rm -f conftest.$ac_objext
5357 if { (ac_try="$ac_compile"
5359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360 *) ac_try_echo=$ac_try;;
5362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363 (eval "$ac_compile") 2>conftest.er1
5365 grep -v '^ *+' conftest.er1 >conftest.err
5367 cat conftest.err >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } && {
5370 test -z "$ac_c_werror_flag" ||
5371 test ! -s conftest.err
5372 } && test -s conftest.$ac_objext; then
5373 ac_gettimeofday_args=2
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5378 cat >conftest.$ac_ext <<_ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5385 #include <sys/time.h>
5389 struct timeval tv; gettimeofday(&tv);
5394 rm -f conftest.$ac_objext
5395 if { (ac_try="$ac_compile"
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401 (eval "$ac_compile") 2>conftest.er1
5403 grep -v '^ *+' conftest.er1 >conftest.err
5405 cat conftest.err >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } && {
5408 test -z "$ac_c_werror_flag" ||
5409 test ! -s conftest.err
5410 } && test -s conftest.$ac_objext; then
5411 ac_gettimeofday_args=1
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5416 ac_gettimeofday_args=0
5419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423 ac_cv_gettimeofday_args=$ac_gettimeofday_args
5426 ac_gettimeofday_args=$ac_cv_gettimeofday_args
5427 if test "$ac_gettimeofday_args" = 1 ; then
5428 cat >>confdefs.h <<\_ACEOF
5429 #define HAVE_GETTIMEOFDAY 1
5432 { echo "$as_me:$LINENO: result: one argument" >&5
5433 echo "${ECHO_T}one argument" >&6; }
5434 elif test "$ac_gettimeofday_args" = 2 ; then
5435 cat >>confdefs.h <<\_ACEOF
5436 #define HAVE_GETTIMEOFDAY 1
5439 cat >>confdefs.h <<\_ACEOF
5440 #define GETTIMEOFDAY_TWO_ARGS 1
5443 { echo "$as_me:$LINENO: result: two arguments" >&5
5444 echo "${ECHO_T}two arguments" >&6; }
5446 { echo "$as_me:$LINENO: result: unknown" >&5
5447 echo "${ECHO_T}unknown" >&6; }
5459 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv sbrk
5461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5462 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5464 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 cat >conftest.$ac_ext <<_ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5475 #define $ac_func innocuous_$ac_func
5477 /* System header to define __stub macros and hopefully few prototypes,
5478 which can conflict with char $ac_func (); below.
5479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5480 <limits.h> exists even on freestanding compilers. */
5483 # include <limits.h>
5485 # include <assert.h>
5490 /* Override any GCC internal prototype to avoid an error.
5491 Use char because int might match the return type of a GCC
5492 builtin and then its argument prototype would still apply. */
5497 /* The GNU C library defines this for functions which it implements
5498 to always fail with ENOSYS. Some functions are actually named
5499 something starting with __ and the normal name is an alias. */
5500 #if defined __stub_$ac_func || defined __stub___$ac_func
5512 rm -f conftest.$ac_objext conftest$ac_exeext
5513 if { (ac_try="$ac_link"
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519 (eval "$ac_link") 2>conftest.er1
5521 grep -v '^ *+' conftest.er1 >conftest.err
5523 cat conftest.err >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } && {
5526 test -z "$ac_c_werror_flag" ||
5527 test ! -s conftest.err
5528 } && test -s conftest$ac_exeext &&
5529 $as_test_x conftest$ac_exeext; then
5530 eval "$as_ac_var=yes"
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5535 eval "$as_ac_var=no"
5538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5539 conftest$ac_exeext conftest.$ac_ext
5541 ac_res=`eval echo '${'$as_ac_var'}'`
5542 { echo "$as_me:$LINENO: result: $ac_res" >&5
5543 echo "${ECHO_T}$ac_res" >&6; }
5544 if test `eval echo '${'$as_ac_var'}'` = yes; then
5545 cat >>confdefs.h <<_ACEOF
5546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5556 for ac_func in sigaction syslog realpath setrlimit
5558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5559 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5564 cat >conftest.$ac_ext <<_ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5572 #define $ac_func innocuous_$ac_func
5574 /* System header to define __stub macros and hopefully few prototypes,
5575 which can conflict with char $ac_func (); below.
5576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5577 <limits.h> exists even on freestanding compilers. */
5580 # include <limits.h>
5582 # include <assert.h>
5587 /* Override any GCC internal prototype to avoid an error.
5588 Use char because int might match the return type of a GCC
5589 builtin and then its argument prototype would still apply. */
5594 /* The GNU C library defines this for functions which it implements
5595 to always fail with ENOSYS. Some functions are actually named
5596 something starting with __ and the normal name is an alias. */
5597 #if defined __stub_$ac_func || defined __stub___$ac_func
5609 rm -f conftest.$ac_objext conftest$ac_exeext
5610 if { (ac_try="$ac_link"
5612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613 *) ac_try_echo=$ac_try;;
5615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5616 (eval "$ac_link") 2>conftest.er1
5618 grep -v '^ *+' conftest.er1 >conftest.err
5620 cat conftest.err >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } && {
5623 test -z "$ac_c_werror_flag" ||
5624 test ! -s conftest.err
5625 } && test -s conftest$ac_exeext &&
5626 $as_test_x conftest$ac_exeext; then
5627 eval "$as_ac_var=yes"
5629 echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5632 eval "$as_ac_var=no"
5635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5636 conftest$ac_exeext conftest.$ac_ext
5638 ac_res=`eval echo '${'$as_ac_var'}'`
5639 { echo "$as_me:$LINENO: result: $ac_res" >&5
5640 echo "${ECHO_T}$ac_res" >&6; }
5641 if test `eval echo '${'$as_ac_var'}'` = yes; then
5642 cat >>confdefs.h <<_ACEOF
5643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5650 for ac_func in setlocale
5652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 cat >conftest.$ac_ext <<_ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5666 #define $ac_func innocuous_$ac_func
5668 /* System header to define __stub macros and hopefully few prototypes,
5669 which can conflict with char $ac_func (); below.
5670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5671 <limits.h> exists even on freestanding compilers. */
5674 # include <limits.h>
5676 # include <assert.h>
5681 /* Override any GCC internal prototype to avoid an error.
5682 Use char because int might match the return type of a GCC
5683 builtin and then its argument prototype would still apply. */
5688 /* The GNU C library defines this for functions which it implements
5689 to always fail with ENOSYS. Some functions are actually named
5690 something starting with __ and the normal name is an alias. */
5691 #if defined __stub_$ac_func || defined __stub___$ac_func
5703 rm -f conftest.$ac_objext conftest$ac_exeext
5704 if { (ac_try="$ac_link"
5706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5707 *) ac_try_echo=$ac_try;;
5709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5710 (eval "$ac_link") 2>conftest.er1
5712 grep -v '^ *+' conftest.er1 >conftest.err
5714 cat conftest.err >&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } && {
5717 test -z "$ac_c_werror_flag" ||
5718 test ! -s conftest.err
5719 } && test -s conftest$ac_exeext &&
5720 $as_test_x conftest$ac_exeext; then
5721 eval "$as_ac_var=yes"
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5726 eval "$as_ac_var=no"
5729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5730 conftest$ac_exeext conftest.$ac_ext
5732 ac_res=`eval echo '${'$as_ac_var'}'`
5733 { echo "$as_me:$LINENO: result: $ac_res" >&5
5734 echo "${ECHO_T}$ac_res" >&6; }
5735 if test `eval echo '${'$as_ac_var'}'` = yes; then
5736 cat >>confdefs.h <<_ACEOF
5737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5743 { echo "$as_me:$LINENO: checking for struct icmp" >&5
5744 echo $ECHO_N "checking for struct icmp... $ECHO_C" >&6; }
5745 if test "${ac_cv_have_icmp+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 cat >conftest.$ac_ext <<_ACEOF
5751 cat confdefs.h >>conftest.$ac_ext
5752 cat >>conftest.$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5761 #include <sys/types.h>
5762 #include <sys/time.h>
5763 #include <sys/ipc.h>
5764 #include <sys/shm.h>
5765 #include <sys/socket.h>
5766 #include <netinet/in_systm.h>
5767 #include <netinet/in.h>
5768 #include <netinet/ip.h>
5769 #include <netinet/ip_icmp.h>
5770 #include <netinet/udp.h>
5771 #include <arpa/inet.h>
5778 struct sockaddr_in si;
5780 i.icmp_type = ICMP_ECHO;
5785 si.sin_family = AF_INET;
5786 #if defined(__DECC) || defined(_IP_VHL)
5796 rm -f conftest.$ac_objext
5797 if { (ac_try="$ac_compile"
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803 (eval "$ac_compile") 2>conftest.er1
5805 grep -v '^ *+' conftest.er1 >conftest.err
5807 cat conftest.err >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); } && {
5810 test -z "$ac_c_werror_flag" ||
5811 test ! -s conftest.err
5812 } && test -s conftest.$ac_objext; then
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823 { echo "$as_me:$LINENO: result: $ac_cv_have_icmp" >&5
5824 echo "${ECHO_T}$ac_cv_have_icmp" >&6; }
5825 if test "$ac_cv_have_icmp" = yes ; then
5826 cat >>confdefs.h <<\_ACEOF
5831 { echo "$as_me:$LINENO: checking for struct icmphdr" >&5
5832 echo $ECHO_N "checking for struct icmphdr... $ECHO_C" >&6; }
5833 if test "${ac_cv_have_icmphdr+set}" = set; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 cat >conftest.$ac_ext <<_ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5849 #include <sys/types.h>
5850 #include <sys/time.h>
5851 #include <sys/ipc.h>
5852 #include <sys/shm.h>
5853 #include <sys/socket.h>
5854 #include <netinet/in_systm.h>
5855 #include <netinet/in.h>
5856 #include <netinet/ip.h>
5857 #include <netinet/ip_icmp.h>
5858 #include <netinet/udp.h>
5859 #include <arpa/inet.h>
5866 struct sockaddr_in si;
5872 i.un.echo.sequence = 0;
5873 si.sin_family = AF_INET;
5879 rm -f conftest.$ac_objext
5880 if { (ac_try="$ac_compile"
5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886 (eval "$ac_compile") 2>conftest.er1
5888 grep -v '^ *+' conftest.er1 >conftest.err
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } && {
5893 test -z "$ac_c_werror_flag" ||
5894 test ! -s conftest.err
5895 } && test -s conftest.$ac_objext; then
5896 ac_cv_have_icmphdr=yes
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5901 ac_cv_have_icmphdr=no
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906 { echo "$as_me:$LINENO: result: $ac_cv_have_icmphdr" >&5
5907 echo "${ECHO_T}$ac_cv_have_icmphdr" >&6; }
5908 if test "$ac_cv_have_icmphdr" = yes ; then
5909 cat >>confdefs.h <<\_ACEOF
5910 #define HAVE_ICMPHDR 1
5916 for ac_header in crypt.h sys/select.h
5918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 ac_res=`eval echo '${'$as_ac_Header'}'`
5926 { echo "$as_me:$LINENO: result: $ac_res" >&5
5927 echo "${ECHO_T}$ac_res" >&6; }
5929 # Is the header compilable?
5930 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5932 cat >conftest.$ac_ext <<_ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5938 $ac_includes_default
5939 #include <$ac_header>
5941 rm -f conftest.$ac_objext
5942 if { (ac_try="$ac_compile"
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_compile") 2>conftest.er1
5950 grep -v '^ *+' conftest.er1 >conftest.err
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } && {
5955 test -z "$ac_c_werror_flag" ||
5956 test ! -s conftest.err
5957 } && test -s conftest.$ac_objext; then
5958 ac_header_compiler=yes
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5963 ac_header_compiler=no
5966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5968 echo "${ECHO_T}$ac_header_compiler" >&6; }
5970 # Is the header present?
5971 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5973 cat >conftest.$ac_ext <<_ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5979 #include <$ac_header>
5981 if { (ac_try="$ac_cpp conftest.$ac_ext"
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5989 grep -v '^ *+' conftest.er1 >conftest.err
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } >/dev/null && {
5994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5995 test ! -s conftest.err
5997 ac_header_preproc=yes
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6002 ac_header_preproc=no
6005 rm -f conftest.err conftest.$ac_ext
6006 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6007 echo "${ECHO_T}$ac_header_preproc" >&6; }
6009 # So? What about this header?
6010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6016 ac_header_preproc=yes
6019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6022 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6026 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 eval "$as_ac_Header=\$ac_header_preproc"
6041 ac_res=`eval echo '${'$as_ac_Header'}'`
6042 { echo "$as_me:$LINENO: result: $ac_res" >&5
6043 echo "${ECHO_T}$ac_res" >&6; }
6046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6047 cat >>confdefs.h <<_ACEOF
6048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6055 for ac_prog in perl5 perl
6057 # Extract the first word of "$ac_prog", so it can be a program name with args.
6058 set dummy $ac_prog; ac_word=$2
6059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6061 if test "${ac_cv_path_PERL+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 test -z "$as_dir" && as_dir=.
6074 for ac_exec_ext in '' $ac_executable_extensions; do
6075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6076 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 PERL=$ac_cv_path_PERL
6088 if test -n "$PERL"; then
6089 { echo "$as_me:$LINENO: result: $PERL" >&5
6090 echo "${ECHO_T}$PERL" >&6; }
6092 { echo "$as_me:$LINENO: result: no" >&5
6093 echo "${ECHO_T}no" >&6; }
6097 test -n "$PERL" && break
6100 if test -z "$PERL" ; then
6103 { echo "$as_me:$LINENO: checking perl version" >&5
6104 echo $ECHO_N "checking perl version... $ECHO_C" >&6; }
6105 if test "${ac_cv_perl_version+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 ac_cv_perl_version=`$PERL -e "$perl_version_cmd"`
6110 { echo "$as_me:$LINENO: result: $ac_cv_perl_version" >&5
6111 echo "${ECHO_T}$ac_cv_perl_version" >&6; }
6112 PERL_VERSION=$ac_cv_perl_version
6116 if test -z "$PERL" ; then
6117 # don't let it be blank...
6121 { echo "$as_me:$LINENO: checking for X" >&5
6122 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
6125 # Check whether --with-x was given.
6126 if test "${with_x+set}" = set; then
6130 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6131 if test "x$with_x" = xno; then
6132 # The user explicitly disabled X.
6135 case $x_includes,$x_libraries in #(
6136 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6137 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6138 { (exit 1); exit 1; }; };; #(
6139 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 # One or both of the vars are not set, and there is no cached value.
6143 ac_x_includes=no ac_x_libraries=no
6144 rm -f -r conftest.dir
6145 if mkdir conftest.dir; then
6147 cat >Imakefile <<'_ACEOF'
6149 @echo incroot='${INCROOT}'
6151 @echo usrlibdir='${USRLIBDIR}'
6153 @echo libdir='${LIBDIR}'
6155 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6156 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6157 for ac_var in incroot usrlibdir libdir; do
6158 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6160 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6161 for ac_extension in a so sl; do
6162 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6163 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6164 ac_im_usrlibdir=$ac_im_libdir; break
6167 # Screen out bogus values from the imake configuration. They are
6168 # bogus both because they are the default anyway, and because
6169 # using them would break gcc on systems where it needs fixed includes.
6170 case $ac_im_incroot in
6171 /usr/include) ac_x_includes= ;;
6172 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6174 case $ac_im_usrlibdir in
6176 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6180 rm -f -r conftest.dir
6183 # Standard set of common directories for X headers.
6184 # Check X11 before X11Rn because it is often a symlink to the current release.
6196 /usr/local/X11/include
6197 /usr/local/X11R6/include
6198 /usr/local/X11R5/include
6199 /usr/local/X11R4/include
6201 /usr/local/include/X11
6202 /usr/local/include/X11R6
6203 /usr/local/include/X11R5
6204 /usr/local/include/X11R4
6208 /usr/XFree86/include/X11
6212 /usr/unsupported/include
6214 /usr/local/x11r5/include
6215 /usr/lpp/Xamples/include
6217 /usr/openwin/include
6218 /usr/openwin/share/include'
6220 if test "$ac_x_includes" = no; then
6221 # Guess where to find include files, by looking for Xlib.h.
6222 # First, try using that file with no special directory specified.
6223 cat >conftest.$ac_ext <<_ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6229 #include <X11/Xlib.h>
6231 if { (ac_try="$ac_cpp conftest.$ac_ext"
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6239 grep -v '^ *+' conftest.er1 >conftest.err
6241 cat conftest.err >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } >/dev/null && {
6244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6245 test ! -s conftest.err
6247 # We can compile using X headers with no special include directory.
6250 echo "$as_me: failed program was:" >&5
6251 sed 's/^/| /' conftest.$ac_ext >&5
6253 for ac_dir in $ac_x_header_dirs; do
6254 if test -r "$ac_dir/X11/Xlib.h"; then
6255 ac_x_includes=$ac_dir
6261 rm -f conftest.err conftest.$ac_ext
6262 fi # $ac_x_includes = no
6264 if test "$ac_x_libraries" = no; then
6265 # Check for the libraries.
6266 # See if we find them without any special options.
6267 # Don't add to $LIBS permanently.
6270 cat >conftest.$ac_ext <<_ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6276 #include <X11/Xlib.h>
6285 rm -f conftest.$ac_objext conftest$ac_exeext
6286 if { (ac_try="$ac_link"
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_link") 2>conftest.er1
6294 grep -v '^ *+' conftest.er1 >conftest.err
6296 cat conftest.err >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } && {
6299 test -z "$ac_c_werror_flag" ||
6300 test ! -s conftest.err
6301 } && test -s conftest$ac_exeext &&
6302 $as_test_x conftest$ac_exeext; then
6304 # We can link X programs with no special library path.
6307 echo "$as_me: failed program was:" >&5
6308 sed 's/^/| /' conftest.$ac_ext >&5
6311 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6313 # Don't even attempt the hair of trying to link an X program!
6314 for ac_extension in a so sl; do
6315 if test -r "$ac_dir/libX11.$ac_extension"; then
6316 ac_x_libraries=$ac_dir
6323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6324 conftest$ac_exeext conftest.$ac_ext
6325 fi # $ac_x_libraries = no
6327 case $ac_x_includes,$ac_x_libraries in #(
6329 # Didn't find X, or a directory has "'" in its name.
6330 ac_cv_have_x="have_x=no";; #(
6332 # Record where we found X for the cache.
6333 ac_cv_have_x="have_x=yes\
6334 ac_x_includes='$ac_x_includes'\
6335 ac_x_libraries='$ac_x_libraries'"
6341 eval "$ac_cv_have_x"
6344 if test "$have_x" != yes; then
6345 { echo "$as_me:$LINENO: result: $have_x" >&5
6346 echo "${ECHO_T}$have_x" >&6; }
6349 # If each of the values was on the command line, it overrides each guess.
6350 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6351 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6352 # Update the cache value to reflect the command line values.
6353 ac_cv_have_x="have_x=yes\
6354 ac_x_includes='$x_includes'\
6355 ac_x_libraries='$x_libraries'"
6356 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6357 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
6360 if test "$no_x" = yes; then
6361 # Not all programs may use this symbol, but it does not hurt to define it.
6363 cat >>confdefs.h <<\_ACEOF
6364 #define X_DISPLAY_MISSING 1
6367 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6369 if test -n "$x_includes"; then
6370 X_CFLAGS="$X_CFLAGS -I$x_includes"
6373 # It would also be nice to do this for all -L options, not just this one.
6374 if test -n "$x_libraries"; then
6375 X_LIBS="$X_LIBS -L$x_libraries"
6376 # For Solaris; some versions of Sun CC require a space after -R and
6377 # others require no space. Words are not sufficient . . . .
6378 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6379 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
6380 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6381 ac_xsave_c_werror_flag=$ac_c_werror_flag
6382 ac_c_werror_flag=yes
6383 cat >conftest.$ac_ext <<_ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6398 rm -f conftest.$ac_objext conftest$ac_exeext
6399 if { (ac_try="$ac_link"
6401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6405 (eval "$ac_link") 2>conftest.er1
6407 grep -v '^ *+' conftest.er1 >conftest.err
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } && {
6412 test -z "$ac_c_werror_flag" ||
6413 test ! -s conftest.err
6414 } && test -s conftest$ac_exeext &&
6415 $as_test_x conftest$ac_exeext; then
6416 { echo "$as_me:$LINENO: result: no" >&5
6417 echo "${ECHO_T}no" >&6; }
6418 X_LIBS="$X_LIBS -R$x_libraries"
6420 echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.$ac_ext >&5
6423 LIBS="$ac_xsave_LIBS -R $x_libraries"
6424 cat >conftest.$ac_ext <<_ACEOF
6427 cat confdefs.h >>conftest.$ac_ext
6428 cat >>conftest.$ac_ext <<_ACEOF
6429 /* end confdefs.h. */
6439 rm -f conftest.$ac_objext conftest$ac_exeext
6440 if { (ac_try="$ac_link"
6442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6443 *) ac_try_echo=$ac_try;;
6445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6446 (eval "$ac_link") 2>conftest.er1
6448 grep -v '^ *+' conftest.er1 >conftest.err
6450 cat conftest.err >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } && {
6453 test -z "$ac_c_werror_flag" ||
6454 test ! -s conftest.err
6455 } && test -s conftest$ac_exeext &&
6456 $as_test_x conftest$ac_exeext; then
6457 { echo "$as_me:$LINENO: result: yes" >&5
6458 echo "${ECHO_T}yes" >&6; }
6459 X_LIBS="$X_LIBS -R $x_libraries"
6461 echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.$ac_ext >&5
6464 { echo "$as_me:$LINENO: result: neither works" >&5
6465 echo "${ECHO_T}neither works" >&6; }
6468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6469 conftest$ac_exeext conftest.$ac_ext
6472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6473 conftest$ac_exeext conftest.$ac_ext
6474 ac_c_werror_flag=$ac_xsave_c_werror_flag
6478 # Check for system-dependent libraries X programs must link with.
6479 # Do this before checking for the system-independent R6 libraries
6480 # (-lICE), since we may need -lsocket or whatever for X linking.
6482 if test "$ISC" = yes; then
6483 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6485 # Martyn Johnson says this is needed for Ultrix, if the X
6486 # libraries were built with DECnet support. And Karl Berry says
6487 # the Alpha needs dnet_stub (dnet does not exist).
6488 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6489 cat >conftest.$ac_ext <<_ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h. */
6496 /* Override any GCC internal prototype to avoid an error.
6497 Use char because int might match the return type of a GCC
6498 builtin and then its argument prototype would still apply. */
6502 char XOpenDisplay ();
6506 return XOpenDisplay ();
6511 rm -f conftest.$ac_objext conftest$ac_exeext
6512 if { (ac_try="$ac_link"
6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518 (eval "$ac_link") 2>conftest.er1
6520 grep -v '^ *+' conftest.er1 >conftest.err
6522 cat conftest.err >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); } && {
6525 test -z "$ac_c_werror_flag" ||
6526 test ! -s conftest.err
6527 } && test -s conftest$ac_exeext &&
6528 $as_test_x conftest$ac_exeext; then
6531 echo "$as_me: failed program was:" >&5
6532 sed 's/^/| /' conftest.$ac_ext >&5
6534 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6535 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
6536 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 ac_check_lib_save_LIBS=$LIBS
6541 cat >conftest.$ac_ext <<_ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h. */
6548 /* Override any GCC internal prototype to avoid an error.
6549 Use char because int might match the return type of a GCC
6550 builtin and then its argument prototype would still apply. */
6558 return dnet_ntoa ();
6563 rm -f conftest.$ac_objext conftest$ac_exeext
6564 if { (ac_try="$ac_link"
6566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6567 *) ac_try_echo=$ac_try;;
6569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6570 (eval "$ac_link") 2>conftest.er1
6572 grep -v '^ *+' conftest.er1 >conftest.err
6574 cat conftest.err >&5
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); } && {
6577 test -z "$ac_c_werror_flag" ||
6578 test ! -s conftest.err
6579 } && test -s conftest$ac_exeext &&
6580 $as_test_x conftest$ac_exeext; then
6581 ac_cv_lib_dnet_dnet_ntoa=yes
6583 echo "$as_me: failed program was:" >&5
6584 sed 's/^/| /' conftest.$ac_ext >&5
6586 ac_cv_lib_dnet_dnet_ntoa=no
6589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6590 conftest$ac_exeext conftest.$ac_ext
6591 LIBS=$ac_check_lib_save_LIBS
6593 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6594 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6595 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6596 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6599 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6600 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6601 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
6602 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 ac_check_lib_save_LIBS=$LIBS
6606 LIBS="-ldnet_stub $LIBS"
6607 cat >conftest.$ac_ext <<_ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6614 /* Override any GCC internal prototype to avoid an error.
6615 Use char because int might match the return type of a GCC
6616 builtin and then its argument prototype would still apply. */
6624 return dnet_ntoa ();
6629 rm -f conftest.$ac_objext conftest$ac_exeext
6630 if { (ac_try="$ac_link"
6632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6633 *) ac_try_echo=$ac_try;;
6635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6636 (eval "$ac_link") 2>conftest.er1
6638 grep -v '^ *+' conftest.er1 >conftest.err
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } && {
6643 test -z "$ac_c_werror_flag" ||
6644 test ! -s conftest.err
6645 } && test -s conftest$ac_exeext &&
6646 $as_test_x conftest$ac_exeext; then
6647 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6649 echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6652 ac_cv_lib_dnet_stub_dnet_ntoa=no
6655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6656 conftest$ac_exeext conftest.$ac_ext
6657 LIBS=$ac_check_lib_save_LIBS
6659 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6660 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6661 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6662 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6669 conftest$ac_exeext conftest.$ac_ext
6670 LIBS="$ac_xsave_LIBS"
6672 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6673 # to get the SysV transport functions.
6674 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6676 # The nsl library prevents programs from opening the X display
6677 # on Irix 5.2, according to T.E. Dickey.
6678 # The functions gethostbyname, getservbyname, and inet_addr are
6679 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6680 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
6681 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
6682 if test "${ac_cv_func_gethostbyname+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 cat >conftest.$ac_ext <<_ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6693 #define gethostbyname innocuous_gethostbyname
6695 /* System header to define __stub macros and hopefully few prototypes,
6696 which can conflict with char gethostbyname (); below.
6697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6698 <limits.h> exists even on freestanding compilers. */
6701 # include <limits.h>
6703 # include <assert.h>
6706 #undef gethostbyname
6708 /* Override any GCC internal prototype to avoid an error.
6709 Use char because int might match the return type of a GCC
6710 builtin and then its argument prototype would still apply. */
6714 char gethostbyname ();
6715 /* The GNU C library defines this for functions which it implements
6716 to always fail with ENOSYS. Some functions are actually named
6717 something starting with __ and the normal name is an alias. */
6718 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6725 return gethostbyname ();
6730 rm -f conftest.$ac_objext conftest$ac_exeext
6731 if { (ac_try="$ac_link"
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_link") 2>conftest.er1
6739 grep -v '^ *+' conftest.er1 >conftest.err
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } && {
6744 test -z "$ac_c_werror_flag" ||
6745 test ! -s conftest.err
6746 } && test -s conftest$ac_exeext &&
6747 $as_test_x conftest$ac_exeext; then
6748 ac_cv_func_gethostbyname=yes
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6753 ac_cv_func_gethostbyname=no
6756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6757 conftest$ac_exeext conftest.$ac_ext
6759 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6760 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6762 if test $ac_cv_func_gethostbyname = no; then
6763 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6764 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6765 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 ac_check_lib_save_LIBS=$LIBS
6770 cat >conftest.$ac_ext <<_ACEOF
6773 cat confdefs.h >>conftest.$ac_ext
6774 cat >>conftest.$ac_ext <<_ACEOF
6775 /* end confdefs.h. */
6777 /* Override any GCC internal prototype to avoid an error.
6778 Use char because int might match the return type of a GCC
6779 builtin and then its argument prototype would still apply. */
6783 char gethostbyname ();
6787 return gethostbyname ();
6792 rm -f conftest.$ac_objext conftest$ac_exeext
6793 if { (ac_try="$ac_link"
6795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6796 *) ac_try_echo=$ac_try;;
6798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6799 (eval "$ac_link") 2>conftest.er1
6801 grep -v '^ *+' conftest.er1 >conftest.err
6803 cat conftest.err >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } && {
6806 test -z "$ac_c_werror_flag" ||
6807 test ! -s conftest.err
6808 } && test -s conftest$ac_exeext &&
6809 $as_test_x conftest$ac_exeext; then
6810 ac_cv_lib_nsl_gethostbyname=yes
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6815 ac_cv_lib_nsl_gethostbyname=no
6818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6819 conftest$ac_exeext conftest.$ac_ext
6820 LIBS=$ac_check_lib_save_LIBS
6822 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6823 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6824 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6825 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6828 if test $ac_cv_lib_nsl_gethostbyname = no; then
6829 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6830 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6831 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 ac_check_lib_save_LIBS=$LIBS
6836 cat >conftest.$ac_ext <<_ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6843 /* Override any GCC internal prototype to avoid an error.
6844 Use char because int might match the return type of a GCC
6845 builtin and then its argument prototype would still apply. */
6849 char gethostbyname ();
6853 return gethostbyname ();
6858 rm -f conftest.$ac_objext conftest$ac_exeext
6859 if { (ac_try="$ac_link"
6861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6862 *) ac_try_echo=$ac_try;;
6864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6865 (eval "$ac_link") 2>conftest.er1
6867 grep -v '^ *+' conftest.er1 >conftest.err
6869 cat conftest.err >&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } && {
6872 test -z "$ac_c_werror_flag" ||
6873 test ! -s conftest.err
6874 } && test -s conftest$ac_exeext &&
6875 $as_test_x conftest$ac_exeext; then
6876 ac_cv_lib_bsd_gethostbyname=yes
6878 echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.$ac_ext >&5
6881 ac_cv_lib_bsd_gethostbyname=no
6884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6885 conftest$ac_exeext conftest.$ac_ext
6886 LIBS=$ac_check_lib_save_LIBS
6888 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6889 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
6890 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6891 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6897 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6898 # socket/setsockopt and other routines are undefined under SCO ODT
6899 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6900 # on later versions), says Simon Leinen: it contains gethostby*
6901 # variants that don't use the name server (or something). -lsocket
6902 # must be given before -lnsl if both are needed. We assume that
6903 # if connect needs -lnsl, so does gethostbyname.
6904 { echo "$as_me:$LINENO: checking for connect" >&5
6905 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
6906 if test "${ac_cv_func_connect+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 cat >conftest.$ac_ext <<_ACEOF
6912 cat confdefs.h >>conftest.$ac_ext
6913 cat >>conftest.$ac_ext <<_ACEOF
6914 /* end confdefs.h. */
6915 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6917 #define connect innocuous_connect
6919 /* System header to define __stub macros and hopefully few prototypes,
6920 which can conflict with char connect (); below.
6921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6922 <limits.h> exists even on freestanding compilers. */
6925 # include <limits.h>
6927 # include <assert.h>
6932 /* Override any GCC internal prototype to avoid an error.
6933 Use char because int might match the return type of a GCC
6934 builtin and then its argument prototype would still apply. */
6939 /* The GNU C library defines this for functions which it implements
6940 to always fail with ENOSYS. Some functions are actually named
6941 something starting with __ and the normal name is an alias. */
6942 #if defined __stub_connect || defined __stub___connect
6954 rm -f conftest.$ac_objext conftest$ac_exeext
6955 if { (ac_try="$ac_link"
6957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6958 *) ac_try_echo=$ac_try;;
6960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6961 (eval "$ac_link") 2>conftest.er1
6963 grep -v '^ *+' conftest.er1 >conftest.err
6965 cat conftest.err >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } && {
6968 test -z "$ac_c_werror_flag" ||
6969 test ! -s conftest.err
6970 } && test -s conftest$ac_exeext &&
6971 $as_test_x conftest$ac_exeext; then
6972 ac_cv_func_connect=yes
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6977 ac_cv_func_connect=no
6980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6981 conftest$ac_exeext conftest.$ac_ext
6983 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6984 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
6986 if test $ac_cv_func_connect = no; then
6987 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6988 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
6989 if test "${ac_cv_lib_socket_connect+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 ac_check_lib_save_LIBS=$LIBS
6993 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6994 cat >conftest.$ac_ext <<_ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7001 /* Override any GCC internal prototype to avoid an error.
7002 Use char because int might match the return type of a GCC
7003 builtin and then its argument prototype would still apply. */
7016 rm -f conftest.$ac_objext conftest$ac_exeext
7017 if { (ac_try="$ac_link"
7019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7020 *) ac_try_echo=$ac_try;;
7022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7023 (eval "$ac_link") 2>conftest.er1
7025 grep -v '^ *+' conftest.er1 >conftest.err
7027 cat conftest.err >&5
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); } && {
7030 test -z "$ac_c_werror_flag" ||
7031 test ! -s conftest.err
7032 } && test -s conftest$ac_exeext &&
7033 $as_test_x conftest$ac_exeext; then
7034 ac_cv_lib_socket_connect=yes
7036 echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7039 ac_cv_lib_socket_connect=no
7042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7043 conftest$ac_exeext conftest.$ac_ext
7044 LIBS=$ac_check_lib_save_LIBS
7046 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7047 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
7048 if test $ac_cv_lib_socket_connect = yes; then
7049 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7054 # Guillermo Gomez says -lposix is necessary on A/UX.
7055 { echo "$as_me:$LINENO: checking for remove" >&5
7056 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
7057 if test "${ac_cv_func_remove+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 cat >conftest.$ac_ext <<_ACEOF
7063 cat confdefs.h >>conftest.$ac_ext
7064 cat >>conftest.$ac_ext <<_ACEOF
7065 /* end confdefs.h. */
7066 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7068 #define remove innocuous_remove
7070 /* System header to define __stub macros and hopefully few prototypes,
7071 which can conflict with char remove (); below.
7072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7073 <limits.h> exists even on freestanding compilers. */
7076 # include <limits.h>
7078 # include <assert.h>
7083 /* Override any GCC internal prototype to avoid an error.
7084 Use char because int might match the return type of a GCC
7085 builtin and then its argument prototype would still apply. */
7090 /* The GNU C library defines this for functions which it implements
7091 to always fail with ENOSYS. Some functions are actually named
7092 something starting with __ and the normal name is an alias. */
7093 #if defined __stub_remove || defined __stub___remove
7105 rm -f conftest.$ac_objext conftest$ac_exeext
7106 if { (ac_try="$ac_link"
7108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7109 *) ac_try_echo=$ac_try;;
7111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7112 (eval "$ac_link") 2>conftest.er1
7114 grep -v '^ *+' conftest.er1 >conftest.err
7116 cat conftest.err >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } && {
7119 test -z "$ac_c_werror_flag" ||
7120 test ! -s conftest.err
7121 } && test -s conftest$ac_exeext &&
7122 $as_test_x conftest$ac_exeext; then
7123 ac_cv_func_remove=yes
7125 echo "$as_me: failed program was:" >&5
7126 sed 's/^/| /' conftest.$ac_ext >&5
7128 ac_cv_func_remove=no
7131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7132 conftest$ac_exeext conftest.$ac_ext
7134 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7135 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
7137 if test $ac_cv_func_remove = no; then
7138 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7139 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
7140 if test "${ac_cv_lib_posix_remove+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7143 ac_check_lib_save_LIBS=$LIBS
7144 LIBS="-lposix $LIBS"
7145 cat >conftest.$ac_ext <<_ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7152 /* Override any GCC internal prototype to avoid an error.
7153 Use char because int might match the return type of a GCC
7154 builtin and then its argument prototype would still apply. */
7167 rm -f conftest.$ac_objext conftest$ac_exeext
7168 if { (ac_try="$ac_link"
7170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7171 *) ac_try_echo=$ac_try;;
7173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7174 (eval "$ac_link") 2>conftest.er1
7176 grep -v '^ *+' conftest.er1 >conftest.err
7178 cat conftest.err >&5
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } && {
7181 test -z "$ac_c_werror_flag" ||
7182 test ! -s conftest.err
7183 } && test -s conftest$ac_exeext &&
7184 $as_test_x conftest$ac_exeext; then
7185 ac_cv_lib_posix_remove=yes
7187 echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7190 ac_cv_lib_posix_remove=no
7193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7194 conftest$ac_exeext conftest.$ac_ext
7195 LIBS=$ac_check_lib_save_LIBS
7197 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7198 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
7199 if test $ac_cv_lib_posix_remove = yes; then
7200 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7205 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7206 { echo "$as_me:$LINENO: checking for shmat" >&5
7207 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
7208 if test "${ac_cv_func_shmat+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 cat >conftest.$ac_ext <<_ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7219 #define shmat innocuous_shmat
7221 /* System header to define __stub macros and hopefully few prototypes,
7222 which can conflict with char shmat (); below.
7223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7224 <limits.h> exists even on freestanding compilers. */
7227 # include <limits.h>
7229 # include <assert.h>
7234 /* Override any GCC internal prototype to avoid an error.
7235 Use char because int might match the return type of a GCC
7236 builtin and then its argument prototype would still apply. */
7241 /* The GNU C library defines this for functions which it implements
7242 to always fail with ENOSYS. Some functions are actually named
7243 something starting with __ and the normal name is an alias. */
7244 #if defined __stub_shmat || defined __stub___shmat
7256 rm -f conftest.$ac_objext conftest$ac_exeext
7257 if { (ac_try="$ac_link"
7259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7260 *) ac_try_echo=$ac_try;;
7262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7263 (eval "$ac_link") 2>conftest.er1
7265 grep -v '^ *+' conftest.er1 >conftest.err
7267 cat conftest.err >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } && {
7270 test -z "$ac_c_werror_flag" ||
7271 test ! -s conftest.err
7272 } && test -s conftest$ac_exeext &&
7273 $as_test_x conftest$ac_exeext; then
7274 ac_cv_func_shmat=yes
7276 echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.$ac_ext >&5
7282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7283 conftest$ac_exeext conftest.$ac_ext
7285 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7286 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
7288 if test $ac_cv_func_shmat = no; then
7289 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7290 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
7291 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 ac_check_lib_save_LIBS=$LIBS
7296 cat >conftest.$ac_ext <<_ACEOF
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h. */
7303 /* Override any GCC internal prototype to avoid an error.
7304 Use char because int might match the return type of a GCC
7305 builtin and then its argument prototype would still apply. */
7318 rm -f conftest.$ac_objext conftest$ac_exeext
7319 if { (ac_try="$ac_link"
7321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322 *) ac_try_echo=$ac_try;;
7324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7325 (eval "$ac_link") 2>conftest.er1
7327 grep -v '^ *+' conftest.er1 >conftest.err
7329 cat conftest.err >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } && {
7332 test -z "$ac_c_werror_flag" ||
7333 test ! -s conftest.err
7334 } && test -s conftest$ac_exeext &&
7335 $as_test_x conftest$ac_exeext; then
7336 ac_cv_lib_ipc_shmat=yes
7338 echo "$as_me: failed program was:" >&5
7339 sed 's/^/| /' conftest.$ac_ext >&5
7341 ac_cv_lib_ipc_shmat=no
7344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7345 conftest$ac_exeext conftest.$ac_ext
7346 LIBS=$ac_check_lib_save_LIBS
7348 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7349 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
7350 if test $ac_cv_lib_ipc_shmat = yes; then
7351 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7357 # Check for libraries that X11R6 Xt/Xaw programs need.
7358 ac_save_LDFLAGS=$LDFLAGS
7359 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7360 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7361 # check for ICE first), but we must link in the order -lSM -lICE or
7362 # we get undefined symbols. So assume we have SM if we have ICE.
7363 # These have to be linked with before -lX11, unlike the other
7364 # libraries we check for below, so use a different variable.
7365 # John Interrante, Karl Berry
7366 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7367 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
7368 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7371 ac_check_lib_save_LIBS=$LIBS
7372 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7373 cat >conftest.$ac_ext <<_ACEOF
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h. */
7380 /* Override any GCC internal prototype to avoid an error.
7381 Use char because int might match the return type of a GCC
7382 builtin and then its argument prototype would still apply. */
7386 char IceConnectionNumber ();
7390 return IceConnectionNumber ();
7395 rm -f conftest.$ac_objext conftest$ac_exeext
7396 if { (ac_try="$ac_link"
7398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7399 *) ac_try_echo=$ac_try;;
7401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7402 (eval "$ac_link") 2>conftest.er1
7404 grep -v '^ *+' conftest.er1 >conftest.err
7406 cat conftest.err >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } && {
7409 test -z "$ac_c_werror_flag" ||
7410 test ! -s conftest.err
7411 } && test -s conftest$ac_exeext &&
7412 $as_test_x conftest$ac_exeext; then
7413 ac_cv_lib_ICE_IceConnectionNumber=yes
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7418 ac_cv_lib_ICE_IceConnectionNumber=no
7421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7422 conftest$ac_exeext conftest.$ac_ext
7423 LIBS=$ac_check_lib_save_LIBS
7425 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7426 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7427 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7428 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7431 LDFLAGS=$ac_save_LDFLAGS
7436 if test "$have_x" != yes; then
7437 { { echo "$as_me:$LINENO: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&5
7438 echo "$as_me: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&2;}
7439 { (exit 1); exit 1; }; }
7443 { echo "$as_me:$LINENO: checking for X app-defaults directory" >&5
7444 echo $ECHO_N "checking for X app-defaults directory... $ECHO_C" >&6; }
7445 if test "${ac_cv_x_app_defaults+set}" = set; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 if mkdir conftestdir; then
7451 cd conftestdir 2>/dev/null
7452 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7453 cat > Imakefile <<'EOF'
7455 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
7457 if (xmkmf) >/dev/null 2>&1 && test -f Makefile; then
7458 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
7459 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7464 if test x"$ac_x_app_defaults" = x; then
7466 # Look for the directory under a standard set of common directories.
7467 # Check X11 before X11Rn because it's often a symlink to the current release.
7469 /usr/X11/lib/app-defaults \
7470 /usr/X11R6/lib/app-defaults \
7471 /usr/X11R6/lib/X11/app-defaults \
7472 /usr/X11R5/lib/app-defaults \
7473 /usr/X11R5/lib/X11/app-defaults \
7474 /usr/X11R4/lib/app-defaults \
7475 /usr/X11R4/lib/X11/app-defaults \
7477 /usr/lib/X11/app-defaults \
7478 /usr/lib/X11R6/app-defaults \
7479 /usr/lib/X11R5/app-defaults \
7480 /usr/lib/X11R4/app-defaults \
7482 /usr/local/X11/lib/app-defaults \
7483 /usr/local/X11R6/lib/app-defaults \
7484 /usr/local/X11R5/lib/app-defaults \
7485 /usr/local/X11R4/lib/app-defaults \
7487 /usr/local/lib/X11/app-defaults \
7488 /usr/local/lib/X11R6/app-defaults \
7489 /usr/local/lib/X11R6/X11/app-defaults \
7490 /usr/local/lib/X11R5/app-defaults \
7491 /usr/local/lib/X11R5/X11/app-defaults \
7492 /usr/local/lib/X11R4/app-defaults \
7493 /usr/local/lib/X11R4/X11/app-defaults \
7495 /usr/X386/lib/X11/app-defaults \
7496 /usr/x386/lib/X11/app-defaults \
7497 /usr/XFree86/lib/X11/app-defaults \
7499 /usr/lib/X11/app-defaults \
7500 /usr/local/lib/X11/app-defaults \
7501 /usr/unsupported/lib/X11/app-defaults \
7502 /usr/athena/lib/X11/app-defaults \
7503 /usr/local/x11r5/lib/X11/app-defaults \
7504 /usr/lpp/Xamples/lib/X11/app-defaults \
7505 /lib/usr/lib/X11/app-defaults \
7507 /usr/openwin/lib/app-defaults \
7508 /usr/openwin/lib/X11/app-defaults \
7509 /usr/openwin/share/lib/app-defaults \
7510 /usr/openwin/share/lib/X11/app-defaults \
7512 /X11R6/lib/app-defaults \
7513 /X11R5/lib/app-defaults \
7514 /X11R4/lib/app-defaults \
7517 if test -d "$ac_dir"; then
7518 ac_x_app_defaults=$ac_dir
7524 if test x"$ac_x_app_defaults" = x; then
7525 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
7527 # Record where we found app-defaults for the cache.
7528 ac_cv_x_app_defaults="$ac_x_app_defaults"
7531 { echo "$as_me:$LINENO: result: $ac_cv_x_app_defaults" >&5
7532 echo "${ECHO_T}$ac_cv_x_app_defaults" >&6; }
7533 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
7537 # The following arcana was gleaned from conversations with
7538 # Eric Schwartz <erics@col.hp.com>:
7540 # On HPUX 10.x, the parts of X that HP considers "standard" live in
7541 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
7542 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
7543 # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
7544 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
7545 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
7546 # you don't need any -I or -L arguments.
7548 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
7549 # are the same division as 10.x. However, there are no symlinks to
7550 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
7551 # arguments are always necessary.
7553 # However, X11R6 was available on HPUX 9.x as a patch: if that
7554 # patch was installed, then all of X11R6 went in to
7555 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
7557 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
7558 # whether R5 was available as a patch; R6 undoubtedly was not.)
7560 # So. We try and use the highest numbered pair of
7561 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
7562 # that are available. We do not mix and match different versions
7565 # Question I still don't know the answer to: (do you?)
7567 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
7568 # /usr/contrib/X11R6/ could be installed as a patch, what was in
7569 # that contrib directory? Did it contain so-called "standard"
7570 # X11R6, or did it include Xaw and Xmu as well? If the former,
7571 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
7572 # be a situation where one had to reach into the R5 headers and
7573 # libs to find Xmu? That is, must both R6 and R5 directories
7574 # be on the -I and -L lists in that case?
7576 for version in X11R6 X11R5 X11R4 ; do
7577 # if either pair of directories exists...
7578 if test -d /usr/include/$version || test -d /usr/contrib/$version/include
7580 # if contrib exists, use it...
7581 if test -d /usr/contrib/$version/include ; then
7582 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
7583 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
7585 # if the "standard" one exists, use it.
7586 if test -d /usr/include/$version ; then
7587 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
7588 X_LIBS="$X_LIBS -L/usr/lib/$version"
7590 # since at least one of the pair exists, go no farther.
7595 # Now find Motif. Thanks for not making xmkmf find this by
7596 # default, you losers.
7598 if test -d /usr/include/Motif2.1 ; then
7599 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
7600 X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
7601 elif test -d /usr/include/Motif1.2 ; then
7602 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
7603 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
7604 elif test -d /usr/include/Motif1.1 ; then
7605 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
7606 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
7609 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
7611 if test -d /opt/graphics/OpenGL/include ; then
7612 # HP-UX 10.20 puts it here
7613 X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
7614 X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
7615 elif test -d /opt/Mesa/lib ; then
7616 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
7617 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
7621 if test -d /opt/xpm/lib/X11 ; then
7622 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
7623 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
7626 # On HPUX, default to installing in /opt/xscreensaver/ instead of
7627 # in /usr/local/, unless there is already an xscreensaver in
7628 # /usr/local/bin/. This can be overridden with the --prefix arg
7629 # to configure. I'm not sure this is the right thing to do, but
7630 # Richard Lloyd says so...
7632 if test \! -x /usr/local/bin/xscreensaver ; then
7633 ac_default_prefix=/opt/xscreensaver
7639 # Thanks for not making xmkmf find this by default, pinheads.
7640 # And thanks for moving things around again, too. Is this
7641 # really the standard location now? What happened to the
7642 # joke that this kind of thing went in /opt?
7643 # cthomp says "answer: CDE (Common Disorganized Environment)"
7645 if test -f /usr/dt/include/Xm/Xm.h ; then
7646 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
7647 MOTIF_LIBS="$MOTIF_LIBS -L/usr/dt/lib -R/usr/dt/lib"
7649 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
7650 { echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
7651 echo $ECHO_N "checking for regcmp in -lgen... $ECHO_C" >&6; }
7652 if test "${ac_cv_lib_gen_regcmp+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 ac_check_lib_save_LIBS=$LIBS
7657 cat >conftest.$ac_ext <<_ACEOF
7660 cat confdefs.h >>conftest.$ac_ext
7661 cat >>conftest.$ac_ext <<_ACEOF
7662 /* end confdefs.h. */
7664 /* Override any GCC internal prototype to avoid an error.
7665 Use char because int might match the return type of a GCC
7666 builtin and then its argument prototype would still apply. */
7679 rm -f conftest.$ac_objext conftest$ac_exeext
7680 if { (ac_try="$ac_link"
7682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7683 *) ac_try_echo=$ac_try;;
7685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7686 (eval "$ac_link") 2>conftest.er1
7688 grep -v '^ *+' conftest.er1 >conftest.err
7690 cat conftest.err >&5
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); } && {
7693 test -z "$ac_c_werror_flag" ||
7694 test ! -s conftest.err
7695 } && test -s conftest$ac_exeext &&
7696 $as_test_x conftest$ac_exeext; then
7697 ac_cv_lib_gen_regcmp=yes
7699 echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.$ac_ext >&5
7702 ac_cv_lib_gen_regcmp=no
7705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7706 conftest$ac_exeext conftest.$ac_ext
7707 LIBS=$ac_check_lib_save_LIBS
7709 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5
7710 echo "${ECHO_T}$ac_cv_lib_gen_regcmp" >&6; }
7711 if test $ac_cv_lib_gen_regcmp = yes; then
7712 MOTIF_LIBS="$MOTIF_LIBS -lgen"
7720 # On MacOS X (10.x with "fink"), many things are under /sw/.
7722 if test -d /sw/include ; then
7723 X_CFLAGS="-I/sw/include $X_CFLAGS"
7724 X_LIBS="-L/sw/lib $X_LIBS"
7728 { echo "$as_me:$LINENO: checking for XPointer" >&5
7729 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7730 if test "${ac_cv_xpointer+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
7734 ac_save_CPPFLAGS="$CPPFLAGS"
7735 if test \! -z "$includedir" ; then
7736 CPPFLAGS="$CPPFLAGS -I$includedir"
7738 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7739 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
7740 cat >conftest.$ac_ext <<_ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h. */
7746 #include <X11/Xlib.h>
7750 XPointer foo = (XPointer) 0;
7755 rm -f conftest.$ac_objext
7756 if { (ac_try="$ac_compile"
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762 (eval "$ac_compile") 2>conftest.er1
7764 grep -v '^ *+' conftest.er1 >conftest.err
7766 cat conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } && {
7769 test -z "$ac_c_werror_flag" ||
7770 test ! -s conftest.err
7771 } && test -s conftest.$ac_objext; then
7774 echo "$as_me: failed program was:" >&5
7775 sed 's/^/| /' conftest.$ac_ext >&5
7780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 CPPFLAGS="$ac_save_CPPFLAGS"
7783 { echo "$as_me:$LINENO: result: $ac_cv_xpointer" >&5
7784 echo "${ECHO_T}$ac_cv_xpointer" >&6; }
7785 if test "$ac_cv_xpointer" != yes; then
7786 cat >>confdefs.h <<\_ACEOF
7787 #define XPointer char*
7792 { echo "$as_me:$LINENO: checking whether this is MacOS X" >&5
7793 echo $ECHO_N "checking whether this is MacOS X... $ECHO_C" >&6; }
7800 { echo "$as_me:$LINENO: result: $ac_macosx" >&5
7801 echo "${ECHO_T}$ac_macosx" >&6; }
7804 ###############################################################################
7808 ###############################################################################
7813 { echo "$as_me:$LINENO: checking for intltool >= " >&5
7814 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6; }
7816 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
7817 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < intltool-update.in`
7819 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < intltool-update.in`
7822 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
7823 { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
7824 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
7826 { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5
7827 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6; }
7832 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
7833 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
7834 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -k -u -c $(top_builddir)/po/.intltool-merge-cache'
7835 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
7836 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
7837 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -u -c $(top_builddir)/po/.intltool-merge-cache'
7838 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
7839 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
7840 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
7841 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
7842 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
7856 # Use the tools built into the package, not the ones that are installed.
7858 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
7859 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
7860 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
7866 # Extract the first word of "perl", so it can be a program name with args.
7867 set dummy perl; ac_word=$2
7868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7870 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7873 case $INTLTOOL_PERL in
7875 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
7878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 test -z "$as_dir" && as_dir=.
7883 for ac_exec_ext in '' $ac_executable_extensions; do
7884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7885 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
7886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7896 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
7897 if test -n "$INTLTOOL_PERL"; then
7898 { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
7899 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
7901 { echo "$as_me:$LINENO: result: no" >&5
7902 echo "${ECHO_T}no" >&6; }
7906 if test -z "$INTLTOOL_PERL"; then
7907 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
7908 echo "$as_me: error: perl not found; required for intltool" >&2;}
7909 { (exit 1); exit 1; }; }
7911 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
7912 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
7913 echo "$as_me: error: perl 5.x required for intltool" >&2;}
7914 { (exit 1); exit 1; }; }
7917 # Remove file type tags (using []) from po/POTFILES.
7925 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
7927 ac_config_commands="$ac_config_commands default-1"
7931 GETTEXT_PACKAGE=xscreensaver
7933 cat >>confdefs.h <<_ACEOF
7934 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
7938 cat >>confdefs.h <<_ACEOF
7939 #define PACKAGE "$GETTEXT_PACKAGE"
7944 ALL_LINGUAS="ca da de es et fi fr hu it ja ko nb nl pl pt pt_BR ru sk sv vi wa zh_CN zh_TW"
7945 if test -n "$ac_tool_prefix"; then
7946 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7947 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7950 if test "${ac_cv_prog_RANLIB+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 if test -n "$RANLIB"; then
7954 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7963 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 RANLIB=$ac_cv_prog_RANLIB
7974 if test -n "$RANLIB"; then
7975 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7976 echo "${ECHO_T}$RANLIB" >&6; }
7978 { echo "$as_me:$LINENO: result: no" >&5
7979 echo "${ECHO_T}no" >&6; }
7984 if test -z "$ac_cv_prog_RANLIB"; then
7985 ac_ct_RANLIB=$RANLIB
7986 # Extract the first word of "ranlib", so it can be a program name with args.
7987 set dummy ranlib; ac_word=$2
7988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7990 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 if test -n "$ac_ct_RANLIB"; then
7994 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 test -z "$as_dir" && as_dir=.
8001 for ac_exec_ext in '' $ac_executable_extensions; do
8002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8003 ac_cv_prog_ac_ct_RANLIB="ranlib"
8004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8014 if test -n "$ac_ct_RANLIB"; then
8015 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8016 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8018 { echo "$as_me:$LINENO: result: no" >&5
8019 echo "${ECHO_T}no" >&6; }
8022 if test "x$ac_ct_RANLIB" = x; then
8025 case $cross_compiling:$ac_tool_warned in
8027 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8028 whose name does not start with the host triplet. If you think this
8029 configuration is useful to you, please write to autoconf@gnu.org." >&5
8030 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8031 whose name does not start with the host triplet. If you think this
8032 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8033 ac_tool_warned=yes ;;
8035 RANLIB=$ac_ct_RANLIB
8038 RANLIB="$ac_cv_prog_RANLIB"
8041 { echo "$as_me:$LINENO: checking for off_t" >&5
8042 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8043 if test "${ac_cv_type_off_t+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8046 cat >conftest.$ac_ext <<_ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8052 $ac_includes_default
8053 typedef off_t ac__type_new_;
8057 if ((ac__type_new_ *) 0)
8059 if (sizeof (ac__type_new_))
8065 rm -f conftest.$ac_objext
8066 if { (ac_try="$ac_compile"
8068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069 *) ac_try_echo=$ac_try;;
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072 (eval "$ac_compile") 2>conftest.er1
8074 grep -v '^ *+' conftest.er1 >conftest.err
8076 cat conftest.err >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } && {
8079 test -z "$ac_c_werror_flag" ||
8080 test ! -s conftest.err
8081 } && test -s conftest.$ac_objext; then
8082 ac_cv_type_off_t=yes
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8093 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8094 if test $ac_cv_type_off_t = yes; then
8098 cat >>confdefs.h <<_ACEOF
8099 #define off_t long int
8104 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8105 # for constant arguments. Useless!
8106 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8107 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8108 if test "${ac_cv_working_alloca_h+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 cat >conftest.$ac_ext <<_ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h. */
8121 char *p = (char *) alloca (2 * sizeof (int));
8127 rm -f conftest.$ac_objext conftest$ac_exeext
8128 if { (ac_try="$ac_link"
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_link") 2>conftest.er1
8136 grep -v '^ *+' conftest.er1 >conftest.err
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } && {
8141 test -z "$ac_c_werror_flag" ||
8142 test ! -s conftest.err
8143 } && test -s conftest$ac_exeext &&
8144 $as_test_x conftest$ac_exeext; then
8145 ac_cv_working_alloca_h=yes
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8150 ac_cv_working_alloca_h=no
8153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8154 conftest$ac_exeext conftest.$ac_ext
8156 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8157 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8158 if test $ac_cv_working_alloca_h = yes; then
8160 cat >>confdefs.h <<\_ACEOF
8161 #define HAVE_ALLOCA_H 1
8166 { echo "$as_me:$LINENO: checking for alloca" >&5
8167 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8168 if test "${ac_cv_func_alloca_works+set}" = set; then
8169 echo $ECHO_N "(cached) $ECHO_C" >&6
8171 cat >conftest.$ac_ext <<_ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8178 # define alloca __builtin_alloca
8181 # include <malloc.h>
8182 # define alloca _alloca
8184 # ifdef HAVE_ALLOCA_H
8185 # include <alloca.h>
8190 # ifndef alloca /* predefined by HP cc +Olibcalls */
8201 char *p = (char *) alloca (1);
8207 rm -f conftest.$ac_objext conftest$ac_exeext
8208 if { (ac_try="$ac_link"
8210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_link") 2>conftest.er1
8216 grep -v '^ *+' conftest.er1 >conftest.err
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } && {
8221 test -z "$ac_c_werror_flag" ||
8222 test ! -s conftest.err
8223 } && test -s conftest$ac_exeext &&
8224 $as_test_x conftest$ac_exeext; then
8225 ac_cv_func_alloca_works=yes
8227 echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8230 ac_cv_func_alloca_works=no
8233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8234 conftest$ac_exeext conftest.$ac_ext
8236 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8237 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8239 if test $ac_cv_func_alloca_works = yes; then
8241 cat >>confdefs.h <<\_ACEOF
8242 #define HAVE_ALLOCA 1
8246 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8247 # that cause trouble. Some versions do not even contain alloca or
8248 # contain a buggy version. If you still want to use their alloca,
8249 # use ar to extract alloca.o from them instead of compiling alloca.c.
8251 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8253 cat >>confdefs.h <<\_ACEOF
8258 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8259 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8260 if test "${ac_cv_os_cray+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8263 cat >conftest.$ac_ext <<_ACEOF
8266 cat confdefs.h >>conftest.$ac_ext
8267 cat >>conftest.$ac_ext <<_ACEOF
8268 /* end confdefs.h. */
8269 #if defined CRAY && ! defined CRAY2
8276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8277 $EGREP "webecray" >/dev/null 2>&1; then
8285 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8286 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8287 if test $ac_cv_os_cray = yes; then
8288 for ac_func in _getb67 GETB67 getb67; do
8289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8290 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8292 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8295 cat >conftest.$ac_ext <<_ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8303 #define $ac_func innocuous_$ac_func
8305 /* System header to define __stub macros and hopefully few prototypes,
8306 which can conflict with char $ac_func (); below.
8307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8308 <limits.h> exists even on freestanding compilers. */
8311 # include <limits.h>
8313 # include <assert.h>
8318 /* Override any GCC internal prototype to avoid an error.
8319 Use char because int might match the return type of a GCC
8320 builtin and then its argument prototype would still apply. */
8325 /* The GNU C library defines this for functions which it implements
8326 to always fail with ENOSYS. Some functions are actually named
8327 something starting with __ and the normal name is an alias. */
8328 #if defined __stub_$ac_func || defined __stub___$ac_func
8340 rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (ac_try="$ac_link"
8343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344 *) ac_try_echo=$ac_try;;
8346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8347 (eval "$ac_link") 2>conftest.er1
8349 grep -v '^ *+' conftest.er1 >conftest.err
8351 cat conftest.err >&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); } && {
8354 test -z "$ac_c_werror_flag" ||
8355 test ! -s conftest.err
8356 } && test -s conftest$ac_exeext &&
8357 $as_test_x conftest$ac_exeext; then
8358 eval "$as_ac_var=yes"
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8363 eval "$as_ac_var=no"
8366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8367 conftest$ac_exeext conftest.$ac_ext
8369 ac_res=`eval echo '${'$as_ac_var'}'`
8370 { echo "$as_me:$LINENO: result: $ac_res" >&5
8371 echo "${ECHO_T}$ac_res" >&6; }
8372 if test `eval echo '${'$as_ac_var'}'` = yes; then
8374 cat >>confdefs.h <<_ACEOF
8375 #define CRAY_STACKSEG_END $ac_func
8384 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8385 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8386 if test "${ac_cv_c_stack_direction+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 if test "$cross_compiling" = yes; then
8390 ac_cv_c_stack_direction=0
8392 cat >conftest.$ac_ext <<_ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8398 $ac_includes_default
8400 find_stack_direction ()
8402 static char *addr = 0;
8407 return find_stack_direction ();
8410 return (&dummy > addr) ? 1 : -1;
8416 return find_stack_direction () < 0;
8419 rm -f conftest$ac_exeext
8420 if { (ac_try="$ac_link"
8422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8423 *) ac_try_echo=$ac_try;;
8425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8426 (eval "$ac_link") 2>&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8430 { (case "(($ac_try" in
8431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432 *) ac_try_echo=$ac_try;;
8434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_try") 2>&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; }; then
8439 ac_cv_c_stack_direction=1
8441 echo "$as_me: program exited with status $ac_status" >&5
8442 echo "$as_me: failed program was:" >&5
8443 sed 's/^/| /' conftest.$ac_ext >&5
8446 ac_cv_c_stack_direction=-1
8448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8453 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8454 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8456 cat >>confdefs.h <<_ACEOF
8457 #define STACK_DIRECTION $ac_cv_c_stack_direction
8465 for ac_header in stdlib.h unistd.h
8467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8474 ac_res=`eval echo '${'$as_ac_Header'}'`
8475 { echo "$as_me:$LINENO: result: $ac_res" >&5
8476 echo "${ECHO_T}$ac_res" >&6; }
8478 # Is the header compilable?
8479 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8481 cat >conftest.$ac_ext <<_ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8487 $ac_includes_default
8488 #include <$ac_header>
8490 rm -f conftest.$ac_objext
8491 if { (ac_try="$ac_compile"
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497 (eval "$ac_compile") 2>conftest.er1
8499 grep -v '^ *+' conftest.er1 >conftest.err
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } && {
8504 test -z "$ac_c_werror_flag" ||
8505 test ! -s conftest.err
8506 } && test -s conftest.$ac_objext; then
8507 ac_header_compiler=yes
8509 echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8512 ac_header_compiler=no
8515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8517 echo "${ECHO_T}$ac_header_compiler" >&6; }
8519 # Is the header present?
8520 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8522 cat >conftest.$ac_ext <<_ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8528 #include <$ac_header>
8530 if { (ac_try="$ac_cpp conftest.$ac_ext"
8532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8533 *) ac_try_echo=$ac_try;;
8535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8538 grep -v '^ *+' conftest.er1 >conftest.err
8540 cat conftest.err >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } >/dev/null && {
8543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8544 test ! -s conftest.err
8546 ac_header_preproc=yes
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8551 ac_header_preproc=no
8554 rm -f conftest.err conftest.$ac_ext
8555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8556 echo "${ECHO_T}$ac_header_preproc" >&6; }
8558 # So? What about this header?
8559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8565 ac_header_preproc=yes
8568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 eval "$as_ac_Header=\$ac_header_preproc"
8590 ac_res=`eval echo '${'$as_ac_Header'}'`
8591 { echo "$as_me:$LINENO: result: $ac_res" >&5
8592 echo "${ECHO_T}$ac_res" >&6; }
8595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8596 cat >>confdefs.h <<_ACEOF
8597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8605 for ac_func in getpagesize
8607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8613 cat >conftest.$ac_ext <<_ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8621 #define $ac_func innocuous_$ac_func
8623 /* System header to define __stub macros and hopefully few prototypes,
8624 which can conflict with char $ac_func (); below.
8625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8626 <limits.h> exists even on freestanding compilers. */
8629 # include <limits.h>
8631 # include <assert.h>
8636 /* Override any GCC internal prototype to avoid an error.
8637 Use char because int might match the return type of a GCC
8638 builtin and then its argument prototype would still apply. */
8643 /* The GNU C library defines this for functions which it implements
8644 to always fail with ENOSYS. Some functions are actually named
8645 something starting with __ and the normal name is an alias. */
8646 #if defined __stub_$ac_func || defined __stub___$ac_func
8658 rm -f conftest.$ac_objext conftest$ac_exeext
8659 if { (ac_try="$ac_link"
8661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8662 *) ac_try_echo=$ac_try;;
8664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8665 (eval "$ac_link") 2>conftest.er1
8667 grep -v '^ *+' conftest.er1 >conftest.err
8669 cat conftest.err >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } && {
8672 test -z "$ac_c_werror_flag" ||
8673 test ! -s conftest.err
8674 } && test -s conftest$ac_exeext &&
8675 $as_test_x conftest$ac_exeext; then
8676 eval "$as_ac_var=yes"
8678 echo "$as_me: failed program was:" >&5
8679 sed 's/^/| /' conftest.$ac_ext >&5
8681 eval "$as_ac_var=no"
8684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8685 conftest$ac_exeext conftest.$ac_ext
8687 ac_res=`eval echo '${'$as_ac_var'}'`
8688 { echo "$as_me:$LINENO: result: $ac_res" >&5
8689 echo "${ECHO_T}$ac_res" >&6; }
8690 if test `eval echo '${'$as_ac_var'}'` = yes; then
8691 cat >>confdefs.h <<_ACEOF
8692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8698 { echo "$as_me:$LINENO: checking for working mmap" >&5
8699 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
8700 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8703 if test "$cross_compiling" = yes; then
8704 ac_cv_func_mmap_fixed_mapped=no
8706 cat >conftest.$ac_ext <<_ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 $ac_includes_default
8713 /* malloc might have been renamed as rpl_malloc. */
8716 /* Thanks to Mike Haertel and Jim Avera for this test.
8717 Here is a matrix of mmap possibilities:
8718 mmap private not fixed
8719 mmap private fixed at somewhere currently unmapped
8720 mmap private fixed at somewhere already mapped
8721 mmap shared not fixed
8722 mmap shared fixed at somewhere currently unmapped
8723 mmap shared fixed at somewhere already mapped
8724 For private mappings, we should verify that changes cannot be read()
8725 back from the file, nor mmap's back from the file at a different
8726 address. (There have been systems where private was not correctly
8727 implemented like the infamous i386 svr4.0, and systems where the
8728 VM page cache was not coherent with the file system buffer cache
8729 like early versions of FreeBSD and possibly contemporary NetBSD.)
8730 For shared mappings, we should conversely verify that changes get
8731 propagated back to all the places they're supposed to be.
8733 Grep wants private fixed already mapped.
8734 The main things grep needs to know about mmap are:
8735 * does it exist and is it safe to write into the mmap'd area
8736 * how to use it (BSD variants) */
8739 #include <sys/mman.h>
8741 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8745 /* This mess was copied from the GNU getpagesize.h. */
8746 #ifndef HAVE_GETPAGESIZE
8747 /* Assume that all systems that can run configure have sys/param.h. */
8748 # ifndef HAVE_SYS_PARAM_H
8749 # define HAVE_SYS_PARAM_H 1
8752 # ifdef _SC_PAGESIZE
8753 # define getpagesize() sysconf(_SC_PAGESIZE)
8754 # else /* no _SC_PAGESIZE */
8755 # ifdef HAVE_SYS_PARAM_H
8756 # include <sys/param.h>
8757 # ifdef EXEC_PAGESIZE
8758 # define getpagesize() EXEC_PAGESIZE
8759 # else /* no EXEC_PAGESIZE */
8761 # define getpagesize() NBPG * CLSIZE
8764 # endif /* no CLSIZE */
8765 # else /* no NBPG */
8767 # define getpagesize() NBPC
8768 # else /* no NBPC */
8770 # define getpagesize() PAGESIZE
8771 # endif /* PAGESIZE */
8772 # endif /* no NBPC */
8773 # endif /* no NBPG */
8774 # endif /* no EXEC_PAGESIZE */
8775 # else /* no HAVE_SYS_PARAM_H */
8776 # define getpagesize() 8192 /* punt totally */
8777 # endif /* no HAVE_SYS_PARAM_H */
8778 # endif /* no _SC_PAGESIZE */
8780 #endif /* no HAVE_GETPAGESIZE */
8785 char *data, *data2, *data3;
8789 pagesize = getpagesize ();
8791 /* First, make a file with some known garbage in it. */
8792 data = (char *) malloc (pagesize);
8795 for (i = 0; i < pagesize; ++i)
8796 *(data + i) = rand ();
8798 fd = creat ("conftest.mmap", 0600);
8801 if (write (fd, data, pagesize) != pagesize)
8805 /* Next, try to mmap the file at a fixed address which already has
8806 something else allocated at it. If we can, also make sure that
8807 we see the same garbage. */
8808 fd = open ("conftest.mmap", O_RDWR);
8811 data2 = (char *) malloc (2 * pagesize);
8814 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8815 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8816 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8818 for (i = 0; i < pagesize; ++i)
8819 if (*(data + i) != *(data2 + i))
8822 /* Finally, make sure that changes to the mapped area do not
8823 percolate back to the file as seen by read(). (This is a bug on
8824 some variants of i386 svr4.0.) */
8825 for (i = 0; i < pagesize; ++i)
8826 *(data2 + i) = *(data2 + i) + 1;
8827 data3 = (char *) malloc (pagesize);
8830 if (read (fd, data3, pagesize) != pagesize)
8832 for (i = 0; i < pagesize; ++i)
8833 if (*(data + i) != *(data3 + i))
8839 rm -f conftest$ac_exeext
8840 if { (ac_try="$ac_link"
8842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843 *) ac_try_echo=$ac_try;;
8845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8846 (eval "$ac_link") 2>&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8850 { (case "(($ac_try" in
8851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852 *) ac_try_echo=$ac_try;;
8854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855 (eval "$ac_try") 2>&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
8859 ac_cv_func_mmap_fixed_mapped=yes
8861 echo "$as_me: program exited with status $ac_status" >&5
8862 echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8866 ac_cv_func_mmap_fixed_mapped=no
8868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8873 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8874 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
8875 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8877 cat >>confdefs.h <<\_ACEOF
8893 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
8894 unistd.h sys/param.h
8896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8903 ac_res=`eval echo '${'$as_ac_Header'}'`
8904 { echo "$as_me:$LINENO: result: $ac_res" >&5
8905 echo "${ECHO_T}$ac_res" >&6; }
8907 # Is the header compilable?
8908 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8910 cat >conftest.$ac_ext <<_ACEOF
8913 cat confdefs.h >>conftest.$ac_ext
8914 cat >>conftest.$ac_ext <<_ACEOF
8915 /* end confdefs.h. */
8916 $ac_includes_default
8917 #include <$ac_header>
8919 rm -f conftest.$ac_objext
8920 if { (ac_try="$ac_compile"
8922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923 *) ac_try_echo=$ac_try;;
8925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8926 (eval "$ac_compile") 2>conftest.er1
8928 grep -v '^ *+' conftest.er1 >conftest.err
8930 cat conftest.err >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } && {
8933 test -z "$ac_c_werror_flag" ||
8934 test ! -s conftest.err
8935 } && test -s conftest.$ac_objext; then
8936 ac_header_compiler=yes
8938 echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8941 ac_header_compiler=no
8944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8945 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8946 echo "${ECHO_T}$ac_header_compiler" >&6; }
8948 # Is the header present?
8949 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8951 cat >conftest.$ac_ext <<_ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8957 #include <$ac_header>
8959 if { (ac_try="$ac_cpp conftest.$ac_ext"
8961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962 *) ac_try_echo=$ac_try;;
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8967 grep -v '^ *+' conftest.er1 >conftest.err
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } >/dev/null && {
8972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8973 test ! -s conftest.err
8975 ac_header_preproc=yes
8977 echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.$ac_ext >&5
8980 ac_header_preproc=no
8983 rm -f conftest.err conftest.$ac_ext
8984 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8985 echo "${ECHO_T}$ac_header_preproc" >&6; }
8987 # So? What about this header?
8988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8990 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8991 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8993 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8994 ac_header_preproc=yes
8997 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8998 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9000 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9002 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9004 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9007 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9008 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9017 eval "$as_ac_Header=\$ac_header_preproc"
9019 ac_res=`eval echo '${'$as_ac_Header'}'`
9020 { echo "$as_me:$LINENO: result: $ac_res" >&5
9021 echo "${ECHO_T}$ac_res" >&6; }
9024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9025 cat >>confdefs.h <<_ACEOF
9026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9044 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
9045 strdup __argz_count __argz_stringify __argz_next
9047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9051 echo $ECHO_N "(cached) $ECHO_C" >&6
9053 cat >conftest.$ac_ext <<_ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9061 #define $ac_func innocuous_$ac_func
9063 /* System header to define __stub macros and hopefully few prototypes,
9064 which can conflict with char $ac_func (); below.
9065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9066 <limits.h> exists even on freestanding compilers. */
9069 # include <limits.h>
9071 # include <assert.h>
9076 /* Override any GCC internal prototype to avoid an error.
9077 Use char because int might match the return type of a GCC
9078 builtin and then its argument prototype would still apply. */
9083 /* The GNU C library defines this for functions which it implements
9084 to always fail with ENOSYS. Some functions are actually named
9085 something starting with __ and the normal name is an alias. */
9086 #if defined __stub_$ac_func || defined __stub___$ac_func
9098 rm -f conftest.$ac_objext conftest$ac_exeext
9099 if { (ac_try="$ac_link"
9101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9102 *) ac_try_echo=$ac_try;;
9104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9105 (eval "$ac_link") 2>conftest.er1
9107 grep -v '^ *+' conftest.er1 >conftest.err
9109 cat conftest.err >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } && {
9112 test -z "$ac_c_werror_flag" ||
9113 test ! -s conftest.err
9114 } && test -s conftest$ac_exeext &&
9115 $as_test_x conftest$ac_exeext; then
9116 eval "$as_ac_var=yes"
9118 echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.$ac_ext >&5
9121 eval "$as_ac_var=no"
9124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9125 conftest$ac_exeext conftest.$ac_ext
9127 ac_res=`eval echo '${'$as_ac_var'}'`
9128 { echo "$as_me:$LINENO: result: $ac_res" >&5
9129 echo "${ECHO_T}$ac_res" >&6; }
9130 if test `eval echo '${'$as_ac_var'}'` = yes; then
9131 cat >>confdefs.h <<_ACEOF
9132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9139 if test $ac_cv_header_locale_h = yes; then
9140 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9141 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9142 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9143 echo $ECHO_N "(cached) $ECHO_C" >&6
9145 cat >conftest.$ac_ext <<_ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h. */
9160 rm -f conftest.$ac_objext conftest$ac_exeext
9161 if { (ac_try="$ac_link"
9163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9164 *) ac_try_echo=$ac_try;;
9166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9167 (eval "$ac_link") 2>conftest.er1
9169 grep -v '^ *+' conftest.er1 >conftest.err
9171 cat conftest.err >&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); } && {
9174 test -z "$ac_c_werror_flag" ||
9175 test ! -s conftest.err
9176 } && test -s conftest$ac_exeext &&
9177 $as_test_x conftest$ac_exeext; then
9178 am_cv_val_LC_MESSAGES=yes
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9183 am_cv_val_LC_MESSAGES=no
9186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9187 conftest$ac_exeext conftest.$ac_ext
9189 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9190 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9191 if test $am_cv_val_LC_MESSAGES = yes; then
9193 cat >>confdefs.h <<\_ACEOF
9194 #define HAVE_LC_MESSAGES 1
9202 nls_cv_force_use_gnu_gettext="no"
9204 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9205 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9207 nls_cv_header_libgt=
9210 if test "${ac_cv_header_libintl_h+set}" = set; then
9211 { echo "$as_me:$LINENO: checking for libintl.h" >&5
9212 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
9213 if test "${ac_cv_header_libintl_h+set}" = set; then
9214 echo $ECHO_N "(cached) $ECHO_C" >&6
9216 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9217 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
9219 # Is the header compilable?
9220 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
9221 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
9222 cat >conftest.$ac_ext <<_ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9228 $ac_includes_default
9229 #include <libintl.h>
9231 rm -f conftest.$ac_objext
9232 if { (ac_try="$ac_compile"
9234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9235 *) ac_try_echo=$ac_try;;
9237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9238 (eval "$ac_compile") 2>conftest.er1
9240 grep -v '^ *+' conftest.er1 >conftest.err
9242 cat conftest.err >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); } && {
9245 test -z "$ac_c_werror_flag" ||
9246 test ! -s conftest.err
9247 } && test -s conftest.$ac_objext; then
9248 ac_header_compiler=yes
9250 echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.$ac_ext >&5
9253 ac_header_compiler=no
9256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9258 echo "${ECHO_T}$ac_header_compiler" >&6; }
9260 # Is the header present?
9261 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
9262 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
9263 cat >conftest.$ac_ext <<_ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269 #include <libintl.h>
9271 if { (ac_try="$ac_cpp conftest.$ac_ext"
9273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274 *) ac_try_echo=$ac_try;;
9276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9279 grep -v '^ *+' conftest.er1 >conftest.err
9281 cat conftest.err >&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } >/dev/null && {
9284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9285 test ! -s conftest.err
9287 ac_header_preproc=yes
9289 echo "$as_me: failed program was:" >&5
9290 sed 's/^/| /' conftest.$ac_ext >&5
9292 ac_header_preproc=no
9295 rm -f conftest.err conftest.$ac_ext
9296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9297 echo "${ECHO_T}$ac_header_preproc" >&6; }
9299 # So? What about this header?
9300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9302 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9303 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9304 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
9305 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
9306 ac_header_preproc=yes
9309 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
9310 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
9311 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
9312 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
9313 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
9314 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
9315 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
9316 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9317 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
9318 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
9319 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
9320 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
9324 { echo "$as_me:$LINENO: checking for libintl.h" >&5
9325 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
9326 if test "${ac_cv_header_libintl_h+set}" = set; then
9327 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 ac_cv_header_libintl_h=$ac_header_preproc
9331 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9332 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
9335 if test $ac_cv_header_libintl_h = yes; then
9336 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
9337 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
9338 if test "${gt_cv_func_dgettext_libc+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9341 cat >conftest.$ac_ext <<_ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h. */
9347 #include <libintl.h>
9351 return (int) dgettext ("","")
9356 rm -f conftest.$ac_objext conftest$ac_exeext
9357 if { (ac_try="$ac_link"
9359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9360 *) ac_try_echo=$ac_try;;
9362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9363 (eval "$ac_link") 2>conftest.er1
9365 grep -v '^ *+' conftest.er1 >conftest.err
9367 cat conftest.err >&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } && {
9370 test -z "$ac_c_werror_flag" ||
9371 test ! -s conftest.err
9372 } && test -s conftest$ac_exeext &&
9373 $as_test_x conftest$ac_exeext; then
9374 gt_cv_func_dgettext_libc=yes
9376 echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9379 gt_cv_func_dgettext_libc=no
9382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9383 conftest$ac_exeext conftest.$ac_ext
9385 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
9386 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
9388 if test "$gt_cv_func_dgettext_libc" != "yes"; then
9389 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
9390 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
9391 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9394 ac_check_lib_save_LIBS=$LIBS
9396 cat >conftest.$ac_ext <<_ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h. */
9403 /* Override any GCC internal prototype to avoid an error.
9404 Use char because int might match the return type of a GCC
9405 builtin and then its argument prototype would still apply. */
9409 char bindtextdomain ();
9413 return bindtextdomain ();
9418 rm -f conftest.$ac_objext conftest$ac_exeext
9419 if { (ac_try="$ac_link"
9421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9422 *) ac_try_echo=$ac_try;;
9424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9425 (eval "$ac_link") 2>conftest.er1
9427 grep -v '^ *+' conftest.er1 >conftest.err
9429 cat conftest.err >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); } && {
9432 test -z "$ac_c_werror_flag" ||
9433 test ! -s conftest.err
9434 } && test -s conftest$ac_exeext &&
9435 $as_test_x conftest$ac_exeext; then
9436 ac_cv_lib_intl_bindtextdomain=yes
9438 echo "$as_me: failed program was:" >&5
9439 sed 's/^/| /' conftest.$ac_ext >&5
9441 ac_cv_lib_intl_bindtextdomain=no
9444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9445 conftest$ac_exeext conftest.$ac_ext
9446 LIBS=$ac_check_lib_save_LIBS
9448 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
9449 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
9450 if test $ac_cv_lib_intl_bindtextdomain = yes; then
9451 { echo "$as_me:$LINENO: checking for dgettext in libintl" >&5
9452 echo $ECHO_N "checking for dgettext in libintl... $ECHO_C" >&6; }
9453 if test "${gt_cv_func_dgettext_libintl+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9456 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
9457 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
9458 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 ac_check_lib_save_LIBS=$LIBS
9463 cat >conftest.$ac_ext <<_ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9470 /* Override any GCC internal prototype to avoid an error.
9471 Use char because int might match the return type of a GCC
9472 builtin and then its argument prototype would still apply. */
9485 rm -f conftest.$ac_objext conftest$ac_exeext
9486 if { (ac_try="$ac_link"
9488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489 *) ac_try_echo=$ac_try;;
9491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492 (eval "$ac_link") 2>conftest.er1
9494 grep -v '^ *+' conftest.er1 >conftest.err
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } && {
9499 test -z "$ac_c_werror_flag" ||
9500 test ! -s conftest.err
9501 } && test -s conftest$ac_exeext &&
9502 $as_test_x conftest$ac_exeext; then
9503 ac_cv_lib_intl_dgettext=yes
9505 echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9508 ac_cv_lib_intl_dgettext=no
9511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9512 conftest$ac_exeext conftest.$ac_ext
9513 LIBS=$ac_check_lib_save_LIBS
9515 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
9516 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
9517 if test $ac_cv_lib_intl_dgettext = yes; then
9518 gt_cv_func_dgettext_libintl=yes
9520 gt_cv_func_dgettext_libintl=no
9524 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libintl" >&5
9525 echo "${ECHO_T}$gt_cv_func_dgettext_libintl" >&6; }
9530 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
9531 LIBS="$LIBS -lintl";
9534 if test "$gt_cv_func_dgettext_libc" = "yes" \
9535 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
9537 cat >>confdefs.h <<\_ACEOF
9538 #define HAVE_GETTEXT 1
9541 # Extract the first word of "msgfmt", so it can be a program name with args.
9542 set dummy msgfmt; ac_word=$2
9543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9545 if test "${ac_cv_path_MSGFMT+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9553 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9554 for ac_dir in $PATH; do
9555 test -z "$ac_dir" && ac_dir=.
9556 if test -f $ac_dir/$ac_word; then
9557 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
9558 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
9564 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
9568 MSGFMT="$ac_cv_path_MSGFMT"
9569 if test -n "$MSGFMT"; then
9570 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
9571 echo "${ECHO_T}$MSGFMT" >&6; }
9573 { echo "$as_me:$LINENO: result: no" >&5
9574 echo "${ECHO_T}no" >&6; }
9576 if test "$MSGFMT" != "no"; then
9578 for ac_func in dcgettext
9580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9581 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 cat >conftest.$ac_ext <<_ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h. */
9592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9594 #define $ac_func innocuous_$ac_func
9596 /* System header to define __stub macros and hopefully few prototypes,
9597 which can conflict with char $ac_func (); below.
9598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9599 <limits.h> exists even on freestanding compilers. */
9602 # include <limits.h>
9604 # include <assert.h>
9609 /* Override any GCC internal prototype to avoid an error.
9610 Use char because int might match the return type of a GCC
9611 builtin and then its argument prototype would still apply. */
9616 /* The GNU C library defines this for functions which it implements
9617 to always fail with ENOSYS. Some functions are actually named
9618 something starting with __ and the normal name is an alias. */
9619 #if defined __stub_$ac_func || defined __stub___$ac_func
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (ac_try="$ac_link"
9634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635 *) ac_try_echo=$ac_try;;
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638 (eval "$ac_link") 2>conftest.er1
9640 grep -v '^ *+' conftest.er1 >conftest.err
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } && {
9645 test -z "$ac_c_werror_flag" ||
9646 test ! -s conftest.err
9647 } && test -s conftest$ac_exeext &&
9648 $as_test_x conftest$ac_exeext; then
9649 eval "$as_ac_var=yes"
9651 echo "$as_me: failed program was:" >&5
9652 sed 's/^/| /' conftest.$ac_ext >&5
9654 eval "$as_ac_var=no"
9657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9658 conftest$ac_exeext conftest.$ac_ext
9660 ac_res=`eval echo '${'$as_ac_var'}'`
9661 { echo "$as_me:$LINENO: result: $ac_res" >&5
9662 echo "${ECHO_T}$ac_res" >&6; }
9663 if test `eval echo '${'$as_ac_var'}'` = yes; then
9664 cat >>confdefs.h <<_ACEOF
9665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9671 # Extract the first word of "gmsgfmt", so it can be a program name with args.
9672 set dummy gmsgfmt; ac_word=$2
9673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9675 if test "${ac_cv_path_GMSGFMT+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9680 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
9683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687 test -z "$as_dir" && as_dir=.
9688 for ac_exec_ext in '' $ac_executable_extensions; do
9689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9690 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
9691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9698 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9702 GMSGFMT=$ac_cv_path_GMSGFMT
9703 if test -n "$GMSGFMT"; then
9704 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
9705 echo "${ECHO_T}$GMSGFMT" >&6; }
9707 { echo "$as_me:$LINENO: result: no" >&5
9708 echo "${ECHO_T}no" >&6; }
9712 # Extract the first word of "xgettext", so it can be a program name with args.
9713 set dummy xgettext; ac_word=$2
9714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9716 if test "${ac_cv_path_XGETTEXT+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9725 for ac_dir in $PATH; do
9726 test -z "$ac_dir" && ac_dir=.
9727 if test -f $ac_dir/$ac_word; then
9728 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
9729 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
9735 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9739 XGETTEXT="$ac_cv_path_XGETTEXT"
9740 if test -n "$XGETTEXT"; then
9741 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
9742 echo "${ECHO_T}$XGETTEXT" >&6; }
9744 { echo "$as_me:$LINENO: result: no" >&5
9745 echo "${ECHO_T}no" >&6; }
9748 cat >conftest.$ac_ext <<_ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9758 extern int _nl_msg_cat_cntr;
9759 return _nl_msg_cat_cntr
9764 rm -f conftest.$ac_objext conftest$ac_exeext
9765 if { (ac_try="$ac_link"
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_link") 2>conftest.er1
9773 grep -v '^ *+' conftest.er1 >conftest.err
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } && {
9778 test -z "$ac_c_werror_flag" ||
9779 test ! -s conftest.err
9780 } && test -s conftest$ac_exeext &&
9781 $as_test_x conftest$ac_exeext; then
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9793 conftest$ac_exeext conftest.$ac_ext
9798 # Added by Martin Baulig 12/15/98 for libc5 systems
9799 if test "$gt_cv_func_dgettext_libc" != "yes" \
9800 && test "$gt_cv_func_dgettext_libintl" = "yes"; then
9802 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
9809 if test "$CATOBJEXT" = "NONE"; then
9810 nls_cv_use_gnu_gettext=yes
9814 if test "$nls_cv_use_gnu_gettext" != "yes"; then
9816 cat >>confdefs.h <<\_ACEOF
9817 #define ENABLE_NLS 1
9824 if test "$XGETTEXT" != ":"; then
9825 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9828 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
9829 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
9834 # We need to process the po/ directory.
9837 ac_config_commands="$ac_config_commands default-2"
9840 for lang in $ALL_LINGUAS; do
9841 GMOFILES="$GMOFILES $lang.gmo"
9842 POFILES="$POFILES $lang.po"
9857 if test "x$CATOBJEXT" != "x"; then
9858 if test "x$ALL_LINGUAS" = "x"; then
9861 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9862 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
9864 for lang in ${LINGUAS=$ALL_LINGUAS}; do
9865 case "$ALL_LINGUAS" in
9866 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
9869 LINGUAS=$NEW_LINGUAS
9870 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
9871 echo "${ECHO_T}$LINGUAS" >&6; }
9874 if test -n "$LINGUAS"; then
9875 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9879 test -d po || mkdir po
9880 if test "$CATOBJEXT" = ".cat"; then
9881 if test "${ac_cv_header_linux_version_h+set}" = set; then
9882 { echo "$as_me:$LINENO: checking for linux/version.h" >&5
9883 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
9884 if test "${ac_cv_header_linux_version_h+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9887 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9888 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
9890 # Is the header compilable?
9891 { echo "$as_me:$LINENO: checking linux/version.h usability" >&5
9892 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6; }
9893 cat >conftest.$ac_ext <<_ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9899 $ac_includes_default
9900 #include <linux/version.h>
9902 rm -f conftest.$ac_objext
9903 if { (ac_try="$ac_compile"
9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906 *) ac_try_echo=$ac_try;;
9908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909 (eval "$ac_compile") 2>conftest.er1
9911 grep -v '^ *+' conftest.er1 >conftest.err
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } && {
9916 test -z "$ac_c_werror_flag" ||
9917 test ! -s conftest.err
9918 } && test -s conftest.$ac_objext; then
9919 ac_header_compiler=yes
9921 echo "$as_me: failed program was:" >&5
9922 sed 's/^/| /' conftest.$ac_ext >&5
9924 ac_header_compiler=no
9927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9929 echo "${ECHO_T}$ac_header_compiler" >&6; }
9931 # Is the header present?
9932 { echo "$as_me:$LINENO: checking linux/version.h presence" >&5
9933 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6; }
9934 cat >conftest.$ac_ext <<_ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h. */
9940 #include <linux/version.h>
9942 if { (ac_try="$ac_cpp conftest.$ac_ext"
9944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945 *) ac_try_echo=$ac_try;;
9947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9950 grep -v '^ *+' conftest.er1 >conftest.err
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } >/dev/null && {
9955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9956 test ! -s conftest.err
9958 ac_header_preproc=yes
9960 echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9963 ac_header_preproc=no
9966 rm -f conftest.err conftest.$ac_ext
9967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9968 echo "${ECHO_T}$ac_header_preproc" >&6; }
9970 # So? What about this header?
9971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9973 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9974 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9975 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
9976 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
9977 ac_header_preproc=yes
9980 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
9981 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
9982 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
9983 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
9984 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
9985 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
9986 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
9987 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
9988 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
9989 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
9990 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
9991 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
9995 { echo "$as_me:$LINENO: checking for linux/version.h" >&5
9996 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
9997 if test "${ac_cv_header_linux_version_h+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 ac_cv_header_linux_version_h=$ac_header_preproc
10002 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
10003 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
10006 if test $ac_cv_header_linux_version_h = yes; then
10014 sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
10019 # jwz: fuck this! it puts hardcoded pathnames into the generated Makefiles!
10021 # if test -n "$ac_aux_dir"; then
10022 # MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
10024 if test -z "$MKINSTALLDIRS"; then
10025 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10028 # jwz: you know what, screw it. Let's just use the version that I
10029 # already computed in configure.in, instead of this version that came
10030 # with the i18n crud, ok?
10031 MKINSTALLDIRS="$INSTALL_DIRS"
10036 test -d po || mkdir po
10037 if test "x$srcdir" != "x."; then
10038 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
10039 posrcprefix="$srcdir/"
10041 posrcprefix="../$srcdir/"
10047 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
10048 < $srcdir/po/POTFILES.in > po/POTFILES
10050 MKINSTALLDIRS="$INSTALL_DIRS"
10053 ###############################################################################
10055 # Check for -lXmu (some fucked up vendors don't ship it...)
10057 ###############################################################################
10061 ac_save_CPPFLAGS="$CPPFLAGS"
10062 if test \! -z "$includedir" ; then
10063 CPPFLAGS="$CPPFLAGS -I$includedir"
10065 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10066 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10067 { echo "$as_me:$LINENO: checking for X11/Xmu/Error.h" >&5
10068 echo $ECHO_N "checking for X11/Xmu/Error.h... $ECHO_C" >&6; }
10069 if test "${ac_cv_header_X11_Xmu_Error_h+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 cat >conftest.$ac_ext <<_ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10078 #include <stdlib.h>
10080 #include <X11/Intrinsic.h>
10082 #include <X11/Xmu/Error.h>
10084 rm -f conftest.$ac_objext
10085 if { (ac_try="$ac_compile"
10086 case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091 (eval "$ac_compile") 2>conftest.er1
10093 grep -v '^ *+' conftest.er1 >conftest.err
10095 cat conftest.err >&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } && {
10098 test -z "$ac_c_werror_flag" ||
10099 test ! -s conftest.err
10100 } && test -s conftest.$ac_objext; then
10101 ac_cv_header_X11_Xmu_Error_h=yes
10103 echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10106 ac_cv_header_X11_Xmu_Error_h=no
10109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10111 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xmu_Error_h" >&5
10112 echo "${ECHO_T}$ac_cv_header_X11_Xmu_Error_h" >&6; }
10113 if test $ac_cv_header_X11_Xmu_Error_h = yes; then
10118 CPPFLAGS="$ac_save_CPPFLAGS"
10119 if test "$have_xmu" = no ; then
10120 XMU_SRCS='$(UTILS_SRC)/xmu.c'
10121 XMU_OBJS='$(UTILS_BIN)/xmu.o'
10127 cat >>confdefs.h <<\_ACEOF
10134 ###############################################################################
10136 # Check for the SunOS 4.1.x _get_wmShellWidgetClass bug.
10137 # See comp.windows.x FAQ question 124. The right fix is to
10138 # get OpenWindows 3.0 patches 100512-02 and 100573-03.
10140 ###############################################################################
10142 if test "$have_xmu" = yes ; then
10145 { echo "$as_me:$LINENO: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
10146 echo $ECHO_N "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug... $ECHO_C" >&6; }
10147 if test "${ac_cv_sunos_xmu_bug+set}" = set; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 ac_save_LDFLAGS="$LDFLAGS"
10151 if test \! -z "$x_libraries" ; then
10152 LDFLAGS="$LDFLAGS -L$x_libraries"
10154 # Note: this trick never works! (Generally.)
10155 # We're only getting away with using AC_TRY_LINK
10156 # with X libraries because we know it's SunOS.
10157 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
10158 cat >conftest.$ac_ext <<_ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10173 rm -f conftest.$ac_objext conftest$ac_exeext
10174 if { (ac_try="$ac_link"
10175 case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_link") 2>conftest.er1
10182 grep -v '^ *+' conftest.er1 >conftest.err
10184 cat conftest.err >&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } && {
10187 test -z "$ac_c_werror_flag" ||
10188 test ! -s conftest.err
10189 } && test -s conftest$ac_exeext &&
10190 $as_test_x conftest$ac_exeext; then
10191 ac_cv_sunos_xmu_bug=no
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10196 ac_cv_sunos_xmu_bug=yes
10199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10200 conftest$ac_exeext conftest.$ac_ext
10201 LDFLAGS="$ac_save_LDFLAGS"
10203 { echo "$as_me:$LINENO: result: $ac_cv_sunos_xmu_bug" >&5
10204 echo "${ECHO_T}$ac_cv_sunos_xmu_bug" >&6; }
10205 if test "$ac_cv_sunos_xmu_bug" = yes ; then
10206 { echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
10207 echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6; }
10208 if test "${ac_cv_ld_static+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 ac_save_LDFLAGS="$LDFLAGS"
10212 LDFLAGS="$LDFLAGS -static"
10213 cat >conftest.$ac_ext <<_ACEOF
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h. */
10228 rm -f conftest.$ac_objext conftest$ac_exeext
10229 if { (ac_try="$ac_link"
10230 case "(($ac_try" in
10231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10232 *) ac_try_echo=$ac_try;;
10234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10235 (eval "$ac_link") 2>conftest.er1
10237 grep -v '^ *+' conftest.er1 >conftest.err
10239 cat conftest.err >&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } && {
10242 test -z "$ac_c_werror_flag" ||
10243 test ! -s conftest.err
10244 } && test -s conftest$ac_exeext &&
10245 $as_test_x conftest$ac_exeext; then
10246 ac_cv_ld_static=yes
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10255 conftest$ac_exeext conftest.$ac_ext
10256 LDFLAGS="$ac_save_LDFLAGS"
10258 { echo "$as_me:$LINENO: result: $ac_cv_ld_static" >&5
10259 echo "${ECHO_T}$ac_cv_ld_static" >&6; }
10260 if test "$ac_cv_ld_static" = yes ; then
10261 LDFLAGS="$LDFLAGS -static"
10263 LDFLAGS="$LDFLAGS -Bstatic"
10271 ###############################################################################
10273 # Handle the --with-hackdir option
10275 ###############################################################################
10278 with_hackdir_req=unspecified
10280 # Check whether --with-hackdir was given.
10281 if test "${with_hackdir+set}" = set; then
10282 withval=$with_hackdir; with_hackdir="$withval"; with_hackdir_req="$withval"
10288 if test x"$with_hackdir" = xyes; then
10289 HACKDIR='${libexecdir}/xscreensaver'
10290 elif test x"$with_hackdir" = xno; then
10291 HACKDIR='${bindir}'
10293 HACKDIR=$with_hackdir
10296 # canonicalize slashes.
10297 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
10299 # Expand HACKDIR as HACKDIR_FULL
10300 HACKDIR_FULL=`eval eval eval eval eval eval eval eval eval echo $HACKDIR`
10302 # This option used to be called --enable-subdir; make sure that is no longer
10303 # used, since configure brain-damagedly ignores unknown --enable options.
10306 # Check whether --enable-subdir was given.
10307 if test "${enable_subdir+set}" = set; then
10308 enableval=$enable_subdir; obsolete_enable=yes
10311 if test -n "$obsolete_enable"; then
10312 echo "error: the --enable-subdir option has been replaced with"
10313 echo " the new --with-hackdir option; see \`configure --help'"
10314 echo " for more information."
10319 ###############################################################################
10321 # Handle the --with-configdir option
10322 # Help for --with-x-app-defaults option added..
10324 ###############################################################################
10327 with_configdir_req=unspecified
10329 # Check whether --with-configdir was given.
10330 if test "${with_configdir+set}" = set; then
10331 withval=$with_configdir; with_configdir="$withval"; with_configdir_req="$withval"
10337 if test x"$with_configdir" = xyes; then
10338 HACK_CONF_DIR='${datadir}/xscreensaver/config'
10339 elif test x"$with_configdir" = xno; then
10340 echo "error: must be yes, or a pathname: --with-configdir=$with_configdir"
10343 # there must be a better way than this...
10344 if test -z "`echo $with_configdir | sed 's@^/.*@@'`" ; then
10346 HACK_CONF_DIR=$with_configdir
10349 HACK_CONF_DIR="\${exec_prefix}$with_configdir"
10356 ###############################################################################
10358 # Check for the SGI SCREEN_SAVER server extension.
10360 ###############################################################################
10363 with_sgi_req=unspecified
10365 # Check whether --with-sgi-ext was given.
10366 if test "${with_sgi_ext+set}" = set; then
10367 withval=$with_sgi_ext; with_sgi="$withval"; with_sgi_req="$withval"
10374 case "$with_sgi" in
10379 { echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER headers" >&5
10380 echo $ECHO_N "checking for SGI SCREEN_SAVER headers... $ECHO_C" >&6; }
10381 d=$with_sgi/include
10382 if test -d $d; then
10383 X_CFLAGS="-I$d $X_CFLAGS"
10384 { echo "$as_me:$LINENO: result: $d" >&5
10385 echo "${ECHO_T}$d" >&6; }
10387 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10388 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10391 { echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER libs" >&5
10392 echo $ECHO_N "checking for SGI SCREEN_SAVER libs... $ECHO_C" >&6; }
10394 if test -d $d; then
10395 X_LIBS="-L$d $X_LIBS"
10396 { echo "$as_me:$LINENO: result: $d" >&5
10397 echo "${ECHO_T}$d" >&6; }
10399 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10400 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10403 # replace the directory string with "yes".
10405 with_sgi=$with_sgi_req
10410 echo "error: argument to --with-sgi-ext must be \"yes\", \"no\", or a directory."
10411 echo " If it is a directory, then \`DIR/include' will be added to"
10412 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10418 if test "$with_sgi" = yes; then
10420 ac_save_CPPFLAGS="$CPPFLAGS"
10421 if test \! -z "$includedir" ; then
10422 CPPFLAGS="$CPPFLAGS -I$includedir"
10424 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10425 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10426 { echo "$as_me:$LINENO: checking for X11/extensions/XScreenSaver.h" >&5
10427 echo $ECHO_N "checking for X11/extensions/XScreenSaver.h... $ECHO_C" >&6; }
10428 if test "${ac_cv_header_X11_extensions_XScreenSaver_h+set}" = set; then
10429 echo $ECHO_N "(cached) $ECHO_C" >&6
10431 cat >conftest.$ac_ext <<_ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10437 #include <X11/Xlib.h>
10439 #include <X11/extensions/XScreenSaver.h>
10441 rm -f conftest.$ac_objext
10442 if { (ac_try="$ac_compile"
10443 case "(($ac_try" in
10444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445 *) ac_try_echo=$ac_try;;
10447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10448 (eval "$ac_compile") 2>conftest.er1
10450 grep -v '^ *+' conftest.er1 >conftest.err
10452 cat conftest.err >&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); } && {
10455 test -z "$ac_c_werror_flag" ||
10456 test ! -s conftest.err
10457 } && test -s conftest.$ac_objext; then
10458 ac_cv_header_X11_extensions_XScreenSaver_h=yes
10460 echo "$as_me: failed program was:" >&5
10461 sed 's/^/| /' conftest.$ac_ext >&5
10463 ac_cv_header_X11_extensions_XScreenSaver_h=no
10466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10468 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XScreenSaver_h" >&5
10469 echo "${ECHO_T}$ac_cv_header_X11_extensions_XScreenSaver_h" >&6; }
10470 if test $ac_cv_header_X11_extensions_XScreenSaver_h = yes; then
10472 cat >>confdefs.h <<\_ACEOF
10473 #define HAVE_SGI_SAVER_EXTENSION 1
10479 CPPFLAGS="$ac_save_CPPFLAGS"
10481 elif test "$with_sgi" != no; then
10482 echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
10487 ###############################################################################
10489 # Check for the XIDLE server extension.
10491 ###############################################################################
10494 with_xidle_req=unspecified
10496 # Check whether --with-xidle-ext was given.
10497 if test "${with_xidle_ext+set}" = set; then
10498 withval=$with_xidle_ext; with_xidle="$withval"; with_xidle_req="$withval"
10505 case "$with_xidle" in
10510 { echo "$as_me:$LINENO: checking for XIDLE headers" >&5
10511 echo $ECHO_N "checking for XIDLE headers... $ECHO_C" >&6; }
10512 d=$with_xidle/include
10513 if test -d $d; then
10514 X_CFLAGS="-I$d $X_CFLAGS"
10515 { echo "$as_me:$LINENO: result: $d" >&5
10516 echo "${ECHO_T}$d" >&6; }
10518 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10519 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10522 { echo "$as_me:$LINENO: checking for XIDLE libs" >&5
10523 echo $ECHO_N "checking for XIDLE libs... $ECHO_C" >&6; }
10525 if test -d $d; then
10526 X_LIBS="-L$d $X_LIBS"
10527 { echo "$as_me:$LINENO: result: $d" >&5
10528 echo "${ECHO_T}$d" >&6; }
10530 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10531 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10534 # replace the directory string with "yes".
10535 with_xidle_req="yes"
10536 with_xidle=$with_xidle_req
10541 echo "error: argument to --with-xidle-ext must be \"yes\", \"no\", or a directory."
10542 echo " If it is a directory, then \`DIR/include' will be added to"
10543 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10549 if test "$with_xidle" = yes; then
10551 ac_save_CPPFLAGS="$CPPFLAGS"
10552 if test \! -z "$includedir" ; then
10553 CPPFLAGS="$CPPFLAGS -I$includedir"
10555 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10556 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10557 { echo "$as_me:$LINENO: checking for X11/extensions/xidle.h" >&5
10558 echo $ECHO_N "checking for X11/extensions/xidle.h... $ECHO_C" >&6; }
10559 if test "${ac_cv_header_X11_extensions_xidle_h+set}" = set; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10562 cat >conftest.$ac_ext <<_ACEOF
10565 cat confdefs.h >>conftest.$ac_ext
10566 cat >>conftest.$ac_ext <<_ACEOF
10567 /* end confdefs.h. */
10568 #include <X11/Xlib.h>
10570 #include <X11/extensions/xidle.h>
10572 rm -f conftest.$ac_objext
10573 if { (ac_try="$ac_compile"
10574 case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10579 (eval "$ac_compile") 2>conftest.er1
10581 grep -v '^ *+' conftest.er1 >conftest.err
10583 cat conftest.err >&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } && {
10586 test -z "$ac_c_werror_flag" ||
10587 test ! -s conftest.err
10588 } && test -s conftest.$ac_objext; then
10589 ac_cv_header_X11_extensions_xidle_h=yes
10591 echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.$ac_ext >&5
10594 ac_cv_header_X11_extensions_xidle_h=no
10597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10599 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xidle_h" >&5
10600 echo "${ECHO_T}$ac_cv_header_X11_extensions_xidle_h" >&6; }
10601 if test $ac_cv_header_X11_extensions_xidle_h = yes; then
10603 cat >>confdefs.h <<\_ACEOF
10604 #define HAVE_XIDLE_EXTENSION 1
10610 CPPFLAGS="$ac_save_CPPFLAGS"
10611 elif test "$with_xidle" != no; then
10612 echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
10617 ###############################################################################
10619 # Check for the SGI-VIDEO-CONTROL server extension.
10621 ###############################################################################
10624 with_sgivc_req=unspecified
10626 # Check whether --with-sgivc-ext was given.
10627 if test "${with_sgivc_ext+set}" = set; then
10628 withval=$with_sgivc_ext; with_sgivc="$withval"; with_sgivc_req="$withval"
10635 case "$with_sgivc" in
10640 { echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL headers" >&5
10641 echo $ECHO_N "checking for SGI-VIDEO-CONTROL headers... $ECHO_C" >&6; }
10642 d=$with_sgivc/include
10643 if test -d $d; then
10644 X_CFLAGS="-I$d $X_CFLAGS"
10645 { echo "$as_me:$LINENO: result: $d" >&5
10646 echo "${ECHO_T}$d" >&6; }
10648 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10649 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10652 { echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL libs" >&5
10653 echo $ECHO_N "checking for SGI-VIDEO-CONTROL libs... $ECHO_C" >&6; }
10655 if test -d $d; then
10656 X_LIBS="-L$d $X_LIBS"
10657 { echo "$as_me:$LINENO: result: $d" >&5
10658 echo "${ECHO_T}$d" >&6; }
10660 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10661 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10664 # replace the directory string with "yes".
10665 with_sgivc_req="yes"
10666 with_sgivc=$with_sgivc_req
10671 echo "error: argument to --with-sgivc-ext must be \"yes\", \"no\", or a directory."
10672 echo " If it is a directory, then \`DIR/include' will be added to"
10673 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10679 if test "$with_sgivc" = yes; then
10681 # first check for XSGIvc.h
10683 ac_save_CPPFLAGS="$CPPFLAGS"
10684 if test \! -z "$includedir" ; then
10685 CPPFLAGS="$CPPFLAGS -I$includedir"
10687 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10688 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10689 { echo "$as_me:$LINENO: checking for X11/extensions/XSGIvc.h" >&5
10690 echo $ECHO_N "checking for X11/extensions/XSGIvc.h... $ECHO_C" >&6; }
10691 if test "${ac_cv_header_X11_extensions_XSGIvc_h+set}" = set; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10694 cat >conftest.$ac_ext <<_ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h. */
10700 #include <X11/Xlib.h>
10702 #include <X11/extensions/XSGIvc.h>
10704 rm -f conftest.$ac_objext
10705 if { (ac_try="$ac_compile"
10706 case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_compile") 2>conftest.er1
10713 grep -v '^ *+' conftest.er1 >conftest.err
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } && {
10718 test -z "$ac_c_werror_flag" ||
10719 test ! -s conftest.err
10720 } && test -s conftest.$ac_objext; then
10721 ac_cv_header_X11_extensions_XSGIvc_h=yes
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10726 ac_cv_header_X11_extensions_XSGIvc_h=no
10729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10731 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XSGIvc_h" >&5
10732 echo "${ECHO_T}$ac_cv_header_X11_extensions_XSGIvc_h" >&6; }
10733 if test $ac_cv_header_X11_extensions_XSGIvc_h = yes; then
10738 CPPFLAGS="$ac_save_CPPFLAGS"
10740 # if that succeeded, then check for the -lXsgivc
10741 if test "$have_sgivc" = yes; then
10744 ac_save_CPPFLAGS="$CPPFLAGS"
10745 ac_save_LDFLAGS="$LDFLAGS"
10746 # ac_save_LIBS="$LIBS"
10748 if test \! -z "$includedir" ; then
10749 CPPFLAGS="$CPPFLAGS -I$includedir"
10751 # note: $X_CFLAGS includes $x_includes
10752 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10754 if test \! -z "$libdir" ; then
10755 LDFLAGS="$LDFLAGS -L$libdir"
10757 # note: $X_LIBS includes $x_libraries
10758 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10760 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10761 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
10762 { echo "$as_me:$LINENO: checking for XSGIvcQueryGammaMap in -lXsgivc" >&5
10763 echo $ECHO_N "checking for XSGIvcQueryGammaMap in -lXsgivc... $ECHO_C" >&6; }
10764 if test "${ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap+set}" = set; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 ac_check_lib_save_LIBS=$LIBS
10768 LIBS="-lXsgivc -lXext -lX11 $LIBS"
10769 cat >conftest.$ac_ext <<_ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10776 /* Override any GCC internal prototype to avoid an error.
10777 Use char because int might match the return type of a GCC
10778 builtin and then its argument prototype would still apply. */
10782 char XSGIvcQueryGammaMap ();
10786 return XSGIvcQueryGammaMap ();
10791 rm -f conftest.$ac_objext conftest$ac_exeext
10792 if { (ac_try="$ac_link"
10793 case "(($ac_try" in
10794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795 *) ac_try_echo=$ac_try;;
10797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798 (eval "$ac_link") 2>conftest.er1
10800 grep -v '^ *+' conftest.er1 >conftest.err
10802 cat conftest.err >&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } && {
10805 test -z "$ac_c_werror_flag" ||
10806 test ! -s conftest.err
10807 } && test -s conftest$ac_exeext &&
10808 $as_test_x conftest$ac_exeext; then
10809 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=yes
10811 echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10814 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=no
10817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10818 conftest$ac_exeext conftest.$ac_ext
10819 LIBS=$ac_check_lib_save_LIBS
10821 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&5
10822 echo "${ECHO_T}$ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&6; }
10823 if test $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap = yes; then
10824 have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"
10829 CPPFLAGS="$ac_save_CPPFLAGS"
10830 LDFLAGS="$ac_save_LDFLAGS"
10831 # LIBS="$ac_save_LIBS"
10835 # if that succeeded, then we've really got it.
10836 if test "$have_sgivc" = yes; then
10837 cat >>confdefs.h <<\_ACEOF
10838 #define HAVE_SGI_VC_EXTENSION 1
10843 elif test "$with_sgivc" != no; then
10844 echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
10849 ###############################################################################
10851 # Check for the DPMS server extension.
10853 ###############################################################################
10856 with_dpms_req=unspecified
10858 # Check whether --with-dpms-ext was given.
10859 if test "${with_dpms_ext+set}" = set; then
10860 withval=$with_dpms_ext; with_dpms="$withval"; with_dpms_req="$withval"
10867 case "$with_dpms" in
10872 { echo "$as_me:$LINENO: checking for DPMS headers" >&5
10873 echo $ECHO_N "checking for DPMS headers... $ECHO_C" >&6; }
10874 d=$with_dpms/include
10875 if test -d $d; then
10876 X_CFLAGS="-I$d $X_CFLAGS"
10877 { echo "$as_me:$LINENO: result: $d" >&5
10878 echo "${ECHO_T}$d" >&6; }
10880 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10881 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10884 { echo "$as_me:$LINENO: checking for DPMS libs" >&5
10885 echo $ECHO_N "checking for DPMS libs... $ECHO_C" >&6; }
10887 if test -d $d; then
10888 X_LIBS="-L$d $X_LIBS"
10889 { echo "$as_me:$LINENO: result: $d" >&5
10890 echo "${ECHO_T}$d" >&6; }
10892 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10893 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10896 # replace the directory string with "yes".
10897 with_dpms_req="yes"
10898 with_dpms=$with_dpms_req
10903 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
10904 echo " If it is a directory, then \`DIR/include' will be added to"
10905 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10911 if test "$with_dpms" = yes; then
10913 # first check for dpms.h
10915 ac_save_CPPFLAGS="$CPPFLAGS"
10916 if test \! -z "$includedir" ; then
10917 CPPFLAGS="$CPPFLAGS -I$includedir"
10919 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10920 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10921 { echo "$as_me:$LINENO: checking for X11/extensions/dpms.h" >&5
10922 echo $ECHO_N "checking for X11/extensions/dpms.h... $ECHO_C" >&6; }
10923 if test "${ac_cv_header_X11_extensions_dpms_h+set}" = set; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 cat >conftest.$ac_ext <<_ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h. */
10932 #include <X11/Xlib.h>
10933 #include <X11/Xmd.h>
10935 #include <X11/extensions/dpms.h>
10937 rm -f conftest.$ac_objext
10938 if { (ac_try="$ac_compile"
10939 case "(($ac_try" in
10940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941 *) ac_try_echo=$ac_try;;
10943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10944 (eval "$ac_compile") 2>conftest.er1
10946 grep -v '^ *+' conftest.er1 >conftest.err
10948 cat conftest.err >&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } && {
10951 test -z "$ac_c_werror_flag" ||
10952 test ! -s conftest.err
10953 } && test -s conftest.$ac_objext; then
10954 ac_cv_header_X11_extensions_dpms_h=yes
10956 echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10959 ac_cv_header_X11_extensions_dpms_h=no
10962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10964 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_dpms_h" >&5
10965 echo "${ECHO_T}$ac_cv_header_X11_extensions_dpms_h" >&6; }
10966 if test $ac_cv_header_X11_extensions_dpms_h = yes; then
10971 CPPFLAGS="$ac_save_CPPFLAGS"
10973 # if that succeeded, then check for the DPMS code in the libraries
10974 if test "$have_dpms" = yes; then
10976 # first look in -lXext (this is where it is with XFree86 4.0)
10979 ac_save_CPPFLAGS="$CPPFLAGS"
10980 ac_save_LDFLAGS="$LDFLAGS"
10981 # ac_save_LIBS="$LIBS"
10983 if test \! -z "$includedir" ; then
10984 CPPFLAGS="$CPPFLAGS -I$includedir"
10986 # note: $X_CFLAGS includes $x_includes
10987 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10989 if test \! -z "$libdir" ; then
10990 LDFLAGS="$LDFLAGS -L$libdir"
10992 # note: $X_LIBS includes $x_libraries
10993 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10995 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10996 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
10997 { echo "$as_me:$LINENO: checking for DPMSInfo in -lXext" >&5
10998 echo $ECHO_N "checking for DPMSInfo in -lXext... $ECHO_C" >&6; }
10999 if test "${ac_cv_lib_Xext_DPMSInfo+set}" = set; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11002 ac_check_lib_save_LIBS=$LIBS
11003 LIBS="-lXext -lXext -lX11 $LIBS"
11004 cat >conftest.$ac_ext <<_ACEOF
11007 cat confdefs.h >>conftest.$ac_ext
11008 cat >>conftest.$ac_ext <<_ACEOF
11009 /* end confdefs.h. */
11011 /* Override any GCC internal prototype to avoid an error.
11012 Use char because int might match the return type of a GCC
11013 builtin and then its argument prototype would still apply. */
11021 return DPMSInfo ();
11026 rm -f conftest.$ac_objext conftest$ac_exeext
11027 if { (ac_try="$ac_link"
11028 case "(($ac_try" in
11029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11030 *) ac_try_echo=$ac_try;;
11032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11033 (eval "$ac_link") 2>conftest.er1
11035 grep -v '^ *+' conftest.er1 >conftest.err
11037 cat conftest.err >&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } && {
11040 test -z "$ac_c_werror_flag" ||
11041 test ! -s conftest.err
11042 } && test -s conftest$ac_exeext &&
11043 $as_test_x conftest$ac_exeext; then
11044 ac_cv_lib_Xext_DPMSInfo=yes
11046 echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11049 ac_cv_lib_Xext_DPMSInfo=no
11052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11053 conftest$ac_exeext conftest.$ac_ext
11054 LIBS=$ac_check_lib_save_LIBS
11056 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_DPMSInfo" >&5
11057 echo "${ECHO_T}$ac_cv_lib_Xext_DPMSInfo" >&6; }
11058 if test $ac_cv_lib_Xext_DPMSInfo = yes; then
11064 CPPFLAGS="$ac_save_CPPFLAGS"
11065 LDFLAGS="$ac_save_LDFLAGS"
11066 # LIBS="$ac_save_LIBS"
11069 # if that failed, look in -lXdpms (this is where it was in XFree86 3.x)
11070 if test "$have_dpms" = no; then
11072 ac_save_CPPFLAGS="$CPPFLAGS"
11073 ac_save_LDFLAGS="$LDFLAGS"
11074 # ac_save_LIBS="$LIBS"
11076 if test \! -z "$includedir" ; then
11077 CPPFLAGS="$CPPFLAGS -I$includedir"
11079 # note: $X_CFLAGS includes $x_includes
11080 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11082 if test \! -z "$libdir" ; then
11083 LDFLAGS="$LDFLAGS -L$libdir"
11085 # note: $X_LIBS includes $x_libraries
11086 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11088 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11089 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11090 { echo "$as_me:$LINENO: checking for DPMSInfo in -lXdpms" >&5
11091 echo $ECHO_N "checking for DPMSInfo in -lXdpms... $ECHO_C" >&6; }
11092 if test "${ac_cv_lib_Xdpms_DPMSInfo+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 ac_check_lib_save_LIBS=$LIBS
11096 LIBS="-lXdpms -lXext -lX11 $LIBS"
11097 cat >conftest.$ac_ext <<_ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h. */
11104 /* Override any GCC internal prototype to avoid an error.
11105 Use char because int might match the return type of a GCC
11106 builtin and then its argument prototype would still apply. */
11114 return DPMSInfo ();
11119 rm -f conftest.$ac_objext conftest$ac_exeext
11120 if { (ac_try="$ac_link"
11121 case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_link") 2>conftest.er1
11128 grep -v '^ *+' conftest.er1 >conftest.err
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } && {
11133 test -z "$ac_c_werror_flag" ||
11134 test ! -s conftest.err
11135 } && test -s conftest$ac_exeext &&
11136 $as_test_x conftest$ac_exeext; then
11137 ac_cv_lib_Xdpms_DPMSInfo=yes
11139 echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11142 ac_cv_lib_Xdpms_DPMSInfo=no
11145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11146 conftest$ac_exeext conftest.$ac_ext
11147 LIBS=$ac_check_lib_save_LIBS
11149 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xdpms_DPMSInfo" >&5
11150 echo "${ECHO_T}$ac_cv_lib_Xdpms_DPMSInfo" >&6; }
11151 if test $ac_cv_lib_Xdpms_DPMSInfo = yes; then
11152 have_dpms=yes; XDPMS_LIBS="-lXdpms"
11157 CPPFLAGS="$ac_save_CPPFLAGS"
11158 LDFLAGS="$ac_save_LDFLAGS"
11159 # LIBS="$ac_save_LIBS"
11165 # if that succeeded, then we've really got it.
11166 if test "$have_dpms" = yes; then
11167 cat >>confdefs.h <<\_ACEOF
11168 #define HAVE_DPMS_EXTENSION 1
11173 elif test "$with_dpms" != no; then
11174 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
11179 ###############################################################################
11181 # Check for the XINERAMA server extension.
11183 ###############################################################################
11186 with_xinerama_req=unspecified
11188 # Check whether --with-xinerama-ext was given.
11189 if test "${with_xinerama_ext+set}" = set; then
11190 withval=$with_xinerama_ext; with_xinerama="$withval"; with_xinerama_req="$withval"
11197 case "$with_xinerama" in
11202 { echo "$as_me:$LINENO: checking for XINERAMA headers" >&5
11203 echo $ECHO_N "checking for XINERAMA headers... $ECHO_C" >&6; }
11204 d=$with_xinerama/include
11205 if test -d $d; then
11206 X_CFLAGS="-I$d $X_CFLAGS"
11207 { echo "$as_me:$LINENO: result: $d" >&5
11208 echo "${ECHO_T}$d" >&6; }
11210 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11211 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
11214 { echo "$as_me:$LINENO: checking for XINERAMA libs" >&5
11215 echo $ECHO_N "checking for XINERAMA libs... $ECHO_C" >&6; }
11216 d=$with_xinerama/lib
11217 if test -d $d; then
11218 X_LIBS="-L$d $X_LIBS"
11219 { echo "$as_me:$LINENO: result: $d" >&5
11220 echo "${ECHO_T}$d" >&6; }
11222 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11223 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
11226 # replace the directory string with "yes".
11227 with_xinerama_req="yes"
11228 with_xinerama=$with_xinerama_req
11233 echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
11234 echo " If it is a directory, then \`DIR/include' will be added to"
11235 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11241 if test "$with_xinerama" = yes; then
11243 # first check for Xinerama.h
11245 ac_save_CPPFLAGS="$CPPFLAGS"
11246 if test \! -z "$includedir" ; then
11247 CPPFLAGS="$CPPFLAGS -I$includedir"
11249 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11250 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11251 { echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
11252 echo $ECHO_N "checking for X11/extensions/Xinerama.h... $ECHO_C" >&6; }
11253 if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 cat >conftest.$ac_ext <<_ACEOF
11259 cat confdefs.h >>conftest.$ac_ext
11260 cat >>conftest.$ac_ext <<_ACEOF
11261 /* end confdefs.h. */
11262 #include <X11/Xlib.h>
11264 #include <X11/extensions/Xinerama.h>
11266 rm -f conftest.$ac_objext
11267 if { (ac_try="$ac_compile"
11268 case "(($ac_try" in
11269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270 *) ac_try_echo=$ac_try;;
11272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11273 (eval "$ac_compile") 2>conftest.er1
11275 grep -v '^ *+' conftest.er1 >conftest.err
11277 cat conftest.err >&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } && {
11280 test -z "$ac_c_werror_flag" ||
11281 test ! -s conftest.err
11282 } && test -s conftest.$ac_objext; then
11283 ac_cv_header_X11_extensions_Xinerama_h=yes
11285 echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11288 ac_cv_header_X11_extensions_Xinerama_h=no
11291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
11294 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xinerama_h" >&6; }
11295 if test $ac_cv_header_X11_extensions_Xinerama_h = yes; then
11300 CPPFLAGS="$ac_save_CPPFLAGS"
11302 # if that succeeded, then check for the XINERAMA code in the libraries
11303 if test "$have_xinerama" = yes; then
11305 # first look in -lXext
11308 ac_save_CPPFLAGS="$CPPFLAGS"
11309 ac_save_LDFLAGS="$LDFLAGS"
11310 # ac_save_LIBS="$LIBS"
11312 if test \! -z "$includedir" ; then
11313 CPPFLAGS="$CPPFLAGS -I$includedir"
11315 # note: $X_CFLAGS includes $x_includes
11316 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11318 if test \! -z "$libdir" ; then
11319 LDFLAGS="$LDFLAGS -L$libdir"
11321 # note: $X_LIBS includes $x_libraries
11322 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11324 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11325 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11326 { echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXext" >&5
11327 echo $ECHO_N "checking for XineramaQueryScreens in -lXext... $ECHO_C" >&6; }
11328 if test "${ac_cv_lib_Xext_XineramaQueryScreens+set}" = set; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11331 ac_check_lib_save_LIBS=$LIBS
11332 LIBS="-lXext -lXext -lX11 $LIBS"
11333 cat >conftest.$ac_ext <<_ACEOF
11336 cat confdefs.h >>conftest.$ac_ext
11337 cat >>conftest.$ac_ext <<_ACEOF
11338 /* end confdefs.h. */
11340 /* Override any GCC internal prototype to avoid an error.
11341 Use char because int might match the return type of a GCC
11342 builtin and then its argument prototype would still apply. */
11346 char XineramaQueryScreens ();
11350 return XineramaQueryScreens ();
11355 rm -f conftest.$ac_objext conftest$ac_exeext
11356 if { (ac_try="$ac_link"
11357 case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362 (eval "$ac_link") 2>conftest.er1
11364 grep -v '^ *+' conftest.er1 >conftest.err
11366 cat conftest.err >&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } && {
11369 test -z "$ac_c_werror_flag" ||
11370 test ! -s conftest.err
11371 } && test -s conftest$ac_exeext &&
11372 $as_test_x conftest$ac_exeext; then
11373 ac_cv_lib_Xext_XineramaQueryScreens=yes
11375 echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11378 ac_cv_lib_Xext_XineramaQueryScreens=no
11381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11382 conftest$ac_exeext conftest.$ac_ext
11383 LIBS=$ac_check_lib_save_LIBS
11385 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XineramaQueryScreens" >&5
11386 echo "${ECHO_T}$ac_cv_lib_Xext_XineramaQueryScreens" >&6; }
11387 if test $ac_cv_lib_Xext_XineramaQueryScreens = yes; then
11393 CPPFLAGS="$ac_save_CPPFLAGS"
11394 LDFLAGS="$ac_save_LDFLAGS"
11395 # LIBS="$ac_save_LIBS"
11398 # if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
11399 if test "$have_xinerama" = no; then
11401 ac_save_CPPFLAGS="$CPPFLAGS"
11402 ac_save_LDFLAGS="$LDFLAGS"
11403 # ac_save_LIBS="$LIBS"
11405 if test \! -z "$includedir" ; then
11406 CPPFLAGS="$CPPFLAGS -I$includedir"
11408 # note: $X_CFLAGS includes $x_includes
11409 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11411 if test \! -z "$libdir" ; then
11412 LDFLAGS="$LDFLAGS -L$libdir"
11414 # note: $X_LIBS includes $x_libraries
11415 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11417 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11418 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11419 { echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
11420 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6; }
11421 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
11422 echo $ECHO_N "(cached) $ECHO_C" >&6
11424 ac_check_lib_save_LIBS=$LIBS
11425 LIBS="-lXinerama -lXext -lX11 $LIBS"
11426 cat >conftest.$ac_ext <<_ACEOF
11429 cat confdefs.h >>conftest.$ac_ext
11430 cat >>conftest.$ac_ext <<_ACEOF
11431 /* end confdefs.h. */
11433 /* Override any GCC internal prototype to avoid an error.
11434 Use char because int might match the return type of a GCC
11435 builtin and then its argument prototype would still apply. */
11439 char XineramaQueryScreens ();
11443 return XineramaQueryScreens ();
11448 rm -f conftest.$ac_objext conftest$ac_exeext
11449 if { (ac_try="$ac_link"
11450 case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455 (eval "$ac_link") 2>conftest.er1
11457 grep -v '^ *+' conftest.er1 >conftest.err
11459 cat conftest.err >&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } && {
11462 test -z "$ac_c_werror_flag" ||
11463 test ! -s conftest.err
11464 } && test -s conftest$ac_exeext &&
11465 $as_test_x conftest$ac_exeext; then
11466 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
11468 echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.$ac_ext >&5
11471 ac_cv_lib_Xinerama_XineramaQueryScreens=no
11474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11475 conftest$ac_exeext conftest.$ac_ext
11476 LIBS=$ac_check_lib_save_LIBS
11478 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
11479 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
11480 if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
11481 have_xinerama=yes; XINERAMA_LIBS="-lXinerama"
11486 CPPFLAGS="$ac_save_CPPFLAGS"
11487 LDFLAGS="$ac_save_LDFLAGS"
11488 # LIBS="$ac_save_LIBS"
11493 # if that succeeded, then we've really got it.
11494 if test "$have_xinerama" = yes; then
11495 cat >>confdefs.h <<\_ACEOF
11496 #define HAVE_XINERAMA 1
11501 elif test "$with_xinerama" != no; then
11502 echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
11507 ###############################################################################
11509 # Check for the XF86VMODE server extension (for virtual screens.)
11511 ###############################################################################
11514 with_xf86vmode_req=unspecified
11516 # Check whether --with-xf86vmode-ext was given.
11517 if test "${with_xf86vmode_ext+set}" = set; then
11518 withval=$with_xf86vmode_ext; with_xf86vmode="$withval"; with_xf86vmode_req="$withval"
11525 case "$with_xf86vmode" in
11530 { echo "$as_me:$LINENO: checking for xf86vmode headers" >&5
11531 echo $ECHO_N "checking for xf86vmode headers... $ECHO_C" >&6; }
11532 d=$with_xf86vmode/include
11533 if test -d $d; then
11534 X_CFLAGS="-I$d $X_CFLAGS"
11535 { echo "$as_me:$LINENO: result: $d" >&5
11536 echo "${ECHO_T}$d" >&6; }
11538 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11539 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
11542 { echo "$as_me:$LINENO: checking for xf86vmode libs" >&5
11543 echo $ECHO_N "checking for xf86vmode libs... $ECHO_C" >&6; }
11544 d=$with_xf86vmode/lib
11545 if test -d $d; then
11546 X_LIBS="-L$d $X_LIBS"
11547 { echo "$as_me:$LINENO: result: $d" >&5
11548 echo "${ECHO_T}$d" >&6; }
11550 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11551 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
11554 # replace the directory string with "yes".
11555 with_xf86vmode_req="yes"
11556 with_xf86vmode=$with_xf86vmode_req
11561 echo "error: argument to --with-xf86vmode-ext must be \"yes\", \"no\", or a directory."
11562 echo " If it is a directory, then \`DIR/include' will be added to"
11563 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11571 if test "$with_xf86vmode" = yes; then
11573 # first check for xf86vmode.h
11575 ac_save_CPPFLAGS="$CPPFLAGS"
11576 if test \! -z "$includedir" ; then
11577 CPPFLAGS="$CPPFLAGS -I$includedir"
11579 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11580 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11581 { echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
11582 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6; }
11583 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11586 cat >conftest.$ac_ext <<_ACEOF
11589 cat confdefs.h >>conftest.$ac_ext
11590 cat >>conftest.$ac_ext <<_ACEOF
11591 /* end confdefs.h. */
11592 #include <X11/Xlib.h>
11594 #include <X11/extensions/xf86vmode.h>
11596 rm -f conftest.$ac_objext
11597 if { (ac_try="$ac_compile"
11598 case "(($ac_try" in
11599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11600 *) ac_try_echo=$ac_try;;
11602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11603 (eval "$ac_compile") 2>conftest.er1
11605 grep -v '^ *+' conftest.er1 >conftest.err
11607 cat conftest.err >&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } && {
11610 test -z "$ac_c_werror_flag" ||
11611 test ! -s conftest.err
11612 } && test -s conftest.$ac_objext; then
11613 ac_cv_header_X11_extensions_xf86vmode_h=yes
11615 echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11618 ac_cv_header_X11_extensions_xf86vmode_h=no
11621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11623 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
11624 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6; }
11625 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
11630 CPPFLAGS="$ac_save_CPPFLAGS"
11632 # if that succeeded, then check for the -lXxf86vm
11633 if test "$have_xf86vmode" = yes; then
11636 ac_save_CPPFLAGS="$CPPFLAGS"
11637 ac_save_LDFLAGS="$LDFLAGS"
11638 # ac_save_LIBS="$LIBS"
11640 if test \! -z "$includedir" ; then
11641 CPPFLAGS="$CPPFLAGS -I$includedir"
11643 # note: $X_CFLAGS includes $x_includes
11644 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11646 if test \! -z "$libdir" ; then
11647 LDFLAGS="$LDFLAGS -L$libdir"
11649 # note: $X_LIBS includes $x_libraries
11650 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11652 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11653 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11654 { echo "$as_me:$LINENO: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
11655 echo $ECHO_N "checking for XF86VidModeGetViewPort in -lXxf86vm... $ECHO_C" >&6; }
11656 if test "${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 ac_check_lib_save_LIBS=$LIBS
11660 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11661 cat >conftest.$ac_ext <<_ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11668 /* Override any GCC internal prototype to avoid an error.
11669 Use char because int might match the return type of a GCC
11670 builtin and then its argument prototype would still apply. */
11674 char XF86VidModeGetViewPort ();
11678 return XF86VidModeGetViewPort ();
11683 rm -f conftest.$ac_objext conftest$ac_exeext
11684 if { (ac_try="$ac_link"
11685 case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690 (eval "$ac_link") 2>conftest.er1
11692 grep -v '^ *+' conftest.er1 >conftest.err
11694 cat conftest.err >&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } && {
11697 test -z "$ac_c_werror_flag" ||
11698 test ! -s conftest.err
11699 } && test -s conftest$ac_exeext &&
11700 $as_test_x conftest$ac_exeext; then
11701 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
11703 echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11706 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=no
11709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11710 conftest$ac_exeext conftest.$ac_ext
11711 LIBS=$ac_check_lib_save_LIBS
11713 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&5
11714 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6; }
11715 if test $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort = yes; then
11716 have_xf86vmode=yes;
11717 VIDMODE_LIBS="-lXxf86vm";
11718 SAVER_LIBS="$SAVER_LIBS $VIDMODE_LIBS"
11723 CPPFLAGS="$ac_save_CPPFLAGS"
11724 LDFLAGS="$ac_save_LDFLAGS"
11725 # LIBS="$ac_save_LIBS"
11729 # if that succeeded, then we've really got it.
11730 if test "$have_xf86vmode" = yes; then
11731 cat >>confdefs.h <<\_ACEOF
11732 #define HAVE_XF86VMODE 1
11737 elif test "$with_xf86vmode" != no; then
11738 echo "error: must be yes or no: --with-xf86vmode-ext=$with_xf86vmode"
11743 ###############################################################################
11745 # Check for the XF86VMODE server extension (for gamma fading.)
11747 ###############################################################################
11750 have_xf86gamma_ramp=no
11751 with_xf86gamma_req=unspecified
11753 # Check whether --with-xf86gamma-ext was given.
11754 if test "${with_xf86gamma_ext+set}" = set; then
11755 withval=$with_xf86gamma_ext; with_xf86gamma="$withval"; with_xf86gamma_req="$withval"
11762 case "$with_xf86gamma" in
11767 { echo "$as_me:$LINENO: checking for xf86gamma headers" >&5
11768 echo $ECHO_N "checking for xf86gamma headers... $ECHO_C" >&6; }
11769 d=$with_xf86gamma/include
11770 if test -d $d; then
11771 X_CFLAGS="-I$d $X_CFLAGS"
11772 { echo "$as_me:$LINENO: result: $d" >&5
11773 echo "${ECHO_T}$d" >&6; }
11775 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11776 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
11779 { echo "$as_me:$LINENO: checking for xf86gamma libs" >&5
11780 echo $ECHO_N "checking for xf86gamma libs... $ECHO_C" >&6; }
11781 d=$with_xf86gamma/lib
11782 if test -d $d; then
11783 X_LIBS="-L$d $X_LIBS"
11784 { echo "$as_me:$LINENO: result: $d" >&5
11785 echo "${ECHO_T}$d" >&6; }
11787 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11788 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
11791 # replace the directory string with "yes".
11792 with_xf86gamma_req="yes"
11793 with_xf86gamma=$with_xf86gamma_req
11798 echo "error: argument to --with-xf86gamma-ext must be \"yes\", \"no\", or a directory."
11799 echo " If it is a directory, then \`DIR/include' will be added to"
11800 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11806 if test "$with_xf86gamma" = yes; then
11808 # first check for xf86vmode.h, if we haven't already
11809 if test "$have_xf86vmode" = yes; then
11813 ac_save_CPPFLAGS="$CPPFLAGS"
11814 if test \! -z "$includedir" ; then
11815 CPPFLAGS="$CPPFLAGS -I$includedir"
11817 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11818 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11819 { echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
11820 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6; }
11821 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11824 cat >conftest.$ac_ext <<_ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h. */
11830 #include <X11/Xlib.h>
11832 #include <X11/extensions/xf86vmode.h>
11834 rm -f conftest.$ac_objext
11835 if { (ac_try="$ac_compile"
11836 case "(($ac_try" in
11837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838 *) ac_try_echo=$ac_try;;
11840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841 (eval "$ac_compile") 2>conftest.er1
11843 grep -v '^ *+' conftest.er1 >conftest.err
11845 cat conftest.err >&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } && {
11848 test -z "$ac_c_werror_flag" ||
11849 test ! -s conftest.err
11850 } && test -s conftest.$ac_objext; then
11851 ac_cv_header_X11_extensions_xf86vmode_h=yes
11853 echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11856 ac_cv_header_X11_extensions_xf86vmode_h=no
11859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
11862 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6; }
11863 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
11868 CPPFLAGS="$ac_save_CPPFLAGS"
11871 # if that succeeded, then check for the -lXxf86vm
11872 if test "$have_xf86gamma" = yes; then
11875 ac_save_CPPFLAGS="$CPPFLAGS"
11876 ac_save_LDFLAGS="$LDFLAGS"
11877 # ac_save_LIBS="$LIBS"
11879 if test \! -z "$includedir" ; then
11880 CPPFLAGS="$CPPFLAGS -I$includedir"
11882 # note: $X_CFLAGS includes $x_includes
11883 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11885 if test \! -z "$libdir" ; then
11886 LDFLAGS="$LDFLAGS -L$libdir"
11888 # note: $X_LIBS includes $x_libraries
11889 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11891 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11892 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11893 { echo "$as_me:$LINENO: checking for XF86VidModeSetGamma in -lXxf86vm" >&5
11894 echo $ECHO_N "checking for XF86VidModeSetGamma in -lXxf86vm... $ECHO_C" >&6; }
11895 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGamma+set}" = set; then
11896 echo $ECHO_N "(cached) $ECHO_C" >&6
11898 ac_check_lib_save_LIBS=$LIBS
11899 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11900 cat >conftest.$ac_ext <<_ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11907 /* Override any GCC internal prototype to avoid an error.
11908 Use char because int might match the return type of a GCC
11909 builtin and then its argument prototype would still apply. */
11913 char XF86VidModeSetGamma ();
11917 return XF86VidModeSetGamma ();
11922 rm -f conftest.$ac_objext conftest$ac_exeext
11923 if { (ac_try="$ac_link"
11924 case "(($ac_try" in
11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 *) ac_try_echo=$ac_try;;
11928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929 (eval "$ac_link") 2>conftest.er1
11931 grep -v '^ *+' conftest.er1 >conftest.err
11933 cat conftest.err >&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } && {
11936 test -z "$ac_c_werror_flag" ||
11937 test ! -s conftest.err
11938 } && test -s conftest$ac_exeext &&
11939 $as_test_x conftest$ac_exeext; then
11940 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=yes
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11945 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=no
11948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11949 conftest$ac_exeext conftest.$ac_ext
11950 LIBS=$ac_check_lib_save_LIBS
11952 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&5
11953 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&6; }
11954 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma = yes; then
11960 CPPFLAGS="$ac_save_CPPFLAGS"
11961 LDFLAGS="$ac_save_LDFLAGS"
11962 # LIBS="$ac_save_LIBS"
11966 # check for the Ramp versions of the functions too.
11967 if test "$have_xf86gamma" = yes; then
11968 have_xf86gamma_ramp=no
11970 ac_save_CPPFLAGS="$CPPFLAGS"
11971 ac_save_LDFLAGS="$LDFLAGS"
11972 # ac_save_LIBS="$LIBS"
11974 if test \! -z "$includedir" ; then
11975 CPPFLAGS="$CPPFLAGS -I$includedir"
11977 # note: $X_CFLAGS includes $x_includes
11978 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11980 if test \! -z "$libdir" ; then
11981 LDFLAGS="$LDFLAGS -L$libdir"
11983 # note: $X_LIBS includes $x_libraries
11984 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11986 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11987 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11988 { echo "$as_me:$LINENO: checking for XF86VidModeSetGammaRamp in -lXxf86vm" >&5
11989 echo $ECHO_N "checking for XF86VidModeSetGammaRamp in -lXxf86vm... $ECHO_C" >&6; }
11990 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp+set}" = set; then
11991 echo $ECHO_N "(cached) $ECHO_C" >&6
11993 ac_check_lib_save_LIBS=$LIBS
11994 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11995 cat >conftest.$ac_ext <<_ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h. */
12002 /* Override any GCC internal prototype to avoid an error.
12003 Use char because int might match the return type of a GCC
12004 builtin and then its argument prototype would still apply. */
12008 char XF86VidModeSetGammaRamp ();
12012 return XF86VidModeSetGammaRamp ();
12017 rm -f conftest.$ac_objext conftest$ac_exeext
12018 if { (ac_try="$ac_link"
12019 case "(($ac_try" in
12020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12021 *) ac_try_echo=$ac_try;;
12023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12024 (eval "$ac_link") 2>conftest.er1
12026 grep -v '^ *+' conftest.er1 >conftest.err
12028 cat conftest.err >&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } && {
12031 test -z "$ac_c_werror_flag" ||
12032 test ! -s conftest.err
12033 } && test -s conftest$ac_exeext &&
12034 $as_test_x conftest$ac_exeext; then
12035 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=yes
12037 echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12040 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=no
12043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12044 conftest$ac_exeext conftest.$ac_ext
12045 LIBS=$ac_check_lib_save_LIBS
12047 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&5
12048 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&6; }
12049 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp = yes; then
12050 have_xf86gamma_ramp=yes
12055 CPPFLAGS="$ac_save_CPPFLAGS"
12056 LDFLAGS="$ac_save_LDFLAGS"
12057 # LIBS="$ac_save_LIBS"
12061 # if those tests succeeded, then we've really got the functions.
12062 if test "$have_xf86gamma" = yes; then
12063 cat >>confdefs.h <<\_ACEOF
12064 #define HAVE_XF86VMODE_GAMMA 1
12069 if test "$have_xf86gamma_ramp" = yes; then
12070 cat >>confdefs.h <<\_ACEOF
12071 #define HAVE_XF86VMODE_GAMMA_RAMP 1
12076 # pull in the lib, if we haven't already
12077 if test "$have_xf86gamma" = yes -a "$have_xf86vmode" = no; then
12078 SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
12081 elif test "$with_xf86gamma" != no; then
12082 echo "error: must be yes or no: --with-xf86gamma-ext=$with_xf86vmode"
12087 ###############################################################################
12089 # Check for the RANDR (Resize and Rotate) server extension.
12091 # We need this to detect when the resolution of the desktop
12092 # has changed out from under us (this is a newer, different
12093 # mechanism than the XF86VMODE virtual viewports.)
12095 ###############################################################################
12098 with_randr_req=unspecified
12100 # Check whether --with-randr-ext was given.
12101 if test "${with_randr_ext+set}" = set; then
12102 withval=$with_randr_ext; with_randr="$withval"; with_randr_req="$withval"
12109 case "$with_randr" in
12114 { echo "$as_me:$LINENO: checking for RANDR headers" >&5
12115 echo $ECHO_N "checking for RANDR headers... $ECHO_C" >&6; }
12116 d=$with_randr/include
12117 if test -d $d; then
12118 X_CFLAGS="-I$d $X_CFLAGS"
12119 { echo "$as_me:$LINENO: result: $d" >&5
12120 echo "${ECHO_T}$d" >&6; }
12122 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12123 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
12126 { echo "$as_me:$LINENO: checking for RANDR libs" >&5
12127 echo $ECHO_N "checking for RANDR libs... $ECHO_C" >&6; }
12129 if test -d $d; then
12130 X_LIBS="-L$d $X_LIBS"
12131 { echo "$as_me:$LINENO: result: $d" >&5
12132 echo "${ECHO_T}$d" >&6; }
12134 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12135 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
12138 # replace the directory string with "yes".
12139 with_randr_req="yes"
12140 with_randr=$with_randr_req
12145 echo "error: argument to --with-randr-ext must be \"yes\", \"no\", or a directory."
12146 echo " If it is a directory, then \`DIR/include' will be added to"
12147 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12153 if test "$with_randr" = yes; then
12155 # first check for Xrandr.h
12157 ac_save_CPPFLAGS="$CPPFLAGS"
12158 if test \! -z "$includedir" ; then
12159 CPPFLAGS="$CPPFLAGS -I$includedir"
12161 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12162 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12163 { echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
12164 echo $ECHO_N "checking for X11/extensions/Xrandr.h... $ECHO_C" >&6; }
12165 if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 cat >conftest.$ac_ext <<_ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 #include <X11/Xlib.h>
12176 #include <X11/extensions/Xrandr.h>
12178 rm -f conftest.$ac_objext
12179 if { (ac_try="$ac_compile"
12180 case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_compile") 2>conftest.er1
12187 grep -v '^ *+' conftest.er1 >conftest.err
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } && {
12192 test -z "$ac_c_werror_flag" ||
12193 test ! -s conftest.err
12194 } && test -s conftest.$ac_objext; then
12195 ac_cv_header_X11_extensions_Xrandr_h=yes
12197 echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12200 ac_cv_header_X11_extensions_Xrandr_h=no
12203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
12206 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrandr_h" >&6; }
12207 if test $ac_cv_header_X11_extensions_Xrandr_h = yes; then
12212 CPPFLAGS="$ac_save_CPPFLAGS"
12214 # if that succeeded, then check for the XRR code in the libraries
12215 if test "$have_randr" = yes; then
12217 # RANDR probably needs -lXrender
12220 ac_save_CPPFLAGS="$CPPFLAGS"
12221 ac_save_LDFLAGS="$LDFLAGS"
12222 # ac_save_LIBS="$LIBS"
12224 if test \! -z "$includedir" ; then
12225 CPPFLAGS="$CPPFLAGS -I$includedir"
12227 # note: $X_CFLAGS includes $x_includes
12228 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12230 if test \! -z "$libdir" ; then
12231 LDFLAGS="$LDFLAGS -L$libdir"
12233 # note: $X_LIBS includes $x_libraries
12234 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12236 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12237 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12238 { echo "$as_me:$LINENO: checking for XRenderSetSubpixelOrder in -lXrender" >&5
12239 echo $ECHO_N "checking for XRenderSetSubpixelOrder in -lXrender... $ECHO_C" >&6; }
12240 if test "${ac_cv_lib_Xrender_XRenderSetSubpixelOrder+set}" = set; then
12241 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 ac_check_lib_save_LIBS=$LIBS
12244 LIBS="-lXrender -lXext -lX11 $LIBS"
12245 cat >conftest.$ac_ext <<_ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12252 /* Override any GCC internal prototype to avoid an error.
12253 Use char because int might match the return type of a GCC
12254 builtin and then its argument prototype would still apply. */
12258 char XRenderSetSubpixelOrder ();
12262 return XRenderSetSubpixelOrder ();
12267 rm -f conftest.$ac_objext conftest$ac_exeext
12268 if { (ac_try="$ac_link"
12269 case "(($ac_try" in
12270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271 *) ac_try_echo=$ac_try;;
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274 (eval "$ac_link") 2>conftest.er1
12276 grep -v '^ *+' conftest.er1 >conftest.err
12278 cat conftest.err >&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } && {
12281 test -z "$ac_c_werror_flag" ||
12282 test ! -s conftest.err
12283 } && test -s conftest$ac_exeext &&
12284 $as_test_x conftest$ac_exeext; then
12285 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=yes
12287 echo "$as_me: failed program was:" >&5
12288 sed 's/^/| /' conftest.$ac_ext >&5
12290 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=no
12293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12294 conftest$ac_exeext conftest.$ac_ext
12295 LIBS=$ac_check_lib_save_LIBS
12297 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&5
12298 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&6; }
12299 if test $ac_cv_lib_Xrender_XRenderSetSubpixelOrder = yes; then
12300 xrender_libs="-lXrender"
12305 CPPFLAGS="$ac_save_CPPFLAGS"
12306 LDFLAGS="$ac_save_LDFLAGS"
12307 # LIBS="$ac_save_LIBS"
12310 # first look for RANDR in -lXext
12313 ac_save_CPPFLAGS="$CPPFLAGS"
12314 ac_save_LDFLAGS="$LDFLAGS"
12315 # ac_save_LIBS="$LIBS"
12317 if test \! -z "$includedir" ; then
12318 CPPFLAGS="$CPPFLAGS -I$includedir"
12320 # note: $X_CFLAGS includes $x_includes
12321 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12323 if test \! -z "$libdir" ; then
12324 LDFLAGS="$LDFLAGS -L$libdir"
12326 # note: $X_LIBS includes $x_libraries
12327 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12329 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12330 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12331 { echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXext" >&5
12332 echo $ECHO_N "checking for XRRGetScreenInfo in -lXext... $ECHO_C" >&6; }
12333 if test "${ac_cv_lib_Xext_XRRGetScreenInfo+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 ac_check_lib_save_LIBS=$LIBS
12337 LIBS="-lXext $xrender_libs -lXext -lX11 $LIBS"
12338 cat >conftest.$ac_ext <<_ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h. */
12345 /* Override any GCC internal prototype to avoid an error.
12346 Use char because int might match the return type of a GCC
12347 builtin and then its argument prototype would still apply. */
12351 char XRRGetScreenInfo ();
12355 return XRRGetScreenInfo ();
12360 rm -f conftest.$ac_objext conftest$ac_exeext
12361 if { (ac_try="$ac_link"
12362 case "(($ac_try" in
12363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12364 *) ac_try_echo=$ac_try;;
12366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12367 (eval "$ac_link") 2>conftest.er1
12369 grep -v '^ *+' conftest.er1 >conftest.err
12371 cat conftest.err >&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); } && {
12374 test -z "$ac_c_werror_flag" ||
12375 test ! -s conftest.err
12376 } && test -s conftest$ac_exeext &&
12377 $as_test_x conftest$ac_exeext; then
12378 ac_cv_lib_Xext_XRRGetScreenInfo=yes
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12383 ac_cv_lib_Xext_XRRGetScreenInfo=no
12386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12387 conftest$ac_exeext conftest.$ac_ext
12388 LIBS=$ac_check_lib_save_LIBS
12390 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XRRGetScreenInfo" >&5
12391 echo "${ECHO_T}$ac_cv_lib_Xext_XRRGetScreenInfo" >&6; }
12392 if test $ac_cv_lib_Xext_XRRGetScreenInfo = yes; then
12393 have_randr=yes; SAVER_LIBS="$SAVER_LIBS $xrender_libs"
12398 CPPFLAGS="$ac_save_CPPFLAGS"
12399 LDFLAGS="$ac_save_LDFLAGS"
12400 # LIBS="$ac_save_LIBS"
12403 # if that failed, look in -lXrandr
12404 if test "$have_randr" = no; then
12406 ac_save_CPPFLAGS="$CPPFLAGS"
12407 ac_save_LDFLAGS="$LDFLAGS"
12408 # ac_save_LIBS="$LIBS"
12410 if test \! -z "$includedir" ; then
12411 CPPFLAGS="$CPPFLAGS -I$includedir"
12413 # note: $X_CFLAGS includes $x_includes
12414 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12416 if test \! -z "$libdir" ; then
12417 LDFLAGS="$LDFLAGS -L$libdir"
12419 # note: $X_LIBS includes $x_libraries
12420 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12422 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12423 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12424 { echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXrandr" >&5
12425 echo $ECHO_N "checking for XRRGetScreenInfo in -lXrandr... $ECHO_C" >&6; }
12426 if test "${ac_cv_lib_Xrandr_XRRGetScreenInfo+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12429 ac_check_lib_save_LIBS=$LIBS
12430 LIBS="-lXrandr $xrender_libs -lXext -lX11 $LIBS"
12431 cat >conftest.$ac_ext <<_ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h. */
12438 /* Override any GCC internal prototype to avoid an error.
12439 Use char because int might match the return type of a GCC
12440 builtin and then its argument prototype would still apply. */
12444 char XRRGetScreenInfo ();
12448 return XRRGetScreenInfo ();
12453 rm -f conftest.$ac_objext conftest$ac_exeext
12454 if { (ac_try="$ac_link"
12455 case "(($ac_try" in
12456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457 *) ac_try_echo=$ac_try;;
12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460 (eval "$ac_link") 2>conftest.er1
12462 grep -v '^ *+' conftest.er1 >conftest.err
12464 cat conftest.err >&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } && {
12467 test -z "$ac_c_werror_flag" ||
12468 test ! -s conftest.err
12469 } && test -s conftest$ac_exeext &&
12470 $as_test_x conftest$ac_exeext; then
12471 ac_cv_lib_Xrandr_XRRGetScreenInfo=yes
12473 echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12476 ac_cv_lib_Xrandr_XRRGetScreenInfo=no
12479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12480 conftest$ac_exeext conftest.$ac_ext
12481 LIBS=$ac_check_lib_save_LIBS
12483 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRGetScreenInfo" >&5
12484 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRGetScreenInfo" >&6; }
12485 if test $ac_cv_lib_Xrandr_XRRGetScreenInfo = yes; then
12486 have_randr=yes; SAVER_LIBS="$SAVER_LIBS -lXrandr $xrender_libs"
12491 CPPFLAGS="$ac_save_CPPFLAGS"
12492 LDFLAGS="$ac_save_LDFLAGS"
12493 # LIBS="$ac_save_LIBS"
12498 # if that succeeded, then we've really got it.
12499 if test "$have_randr" = yes; then
12500 cat >>confdefs.h <<\_ACEOF
12501 #define HAVE_RANDR 1
12505 # Now check for version 1.2 in the same libs.
12506 # Try to compile, since on MacOS 10.5.7, headers are older than libs!
12507 { echo "$as_me:$LINENO: checking for XRRGetScreenResources" >&5
12508 echo $ECHO_N "checking for XRRGetScreenResources... $ECHO_C" >&6; }
12509 if test "${ac_cv_randr_12+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12514 ac_save_CPPFLAGS="$CPPFLAGS"
12515 if test \! -z "$includedir" ; then
12516 CPPFLAGS="$CPPFLAGS -I$includedir"
12518 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12519 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12520 cat >conftest.$ac_ext <<_ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12526 #include <stdlib.h>
12527 #include <X11/Xlib.h>
12528 #include <X11/extensions/Xrandr.h>
12532 XRRScreenResources *res =
12533 XRRGetScreenResources (0, 0);
12538 rm -f conftest.$ac_objext
12539 if { (ac_try="$ac_compile"
12540 case "(($ac_try" in
12541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542 *) ac_try_echo=$ac_try;;
12544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545 (eval "$ac_compile") 2>conftest.er1
12547 grep -v '^ *+' conftest.er1 >conftest.err
12549 cat conftest.err >&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } && {
12552 test -z "$ac_c_werror_flag" ||
12553 test ! -s conftest.err
12554 } && test -s conftest.$ac_objext; then
12557 echo "$as_me: failed program was:" >&5
12558 sed 's/^/| /' conftest.$ac_ext >&5
12563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12564 CPPFLAGS="$ac_save_CPPFLAGS"
12566 { echo "$as_me:$LINENO: result: $ac_cv_randr_12" >&5
12567 echo "${ECHO_T}$ac_cv_randr_12" >&6; }
12568 if test "$ac_cv_randr_12" = yes ; then
12569 cat >>confdefs.h <<\_ACEOF
12570 #define HAVE_RANDR_12 1
12574 # AC_CHECK_X_LIB(c, XRRGetOutputInfo, [AC_DEFINE(HAVE_RANDR_12)],
12575 # [true], $SAVER_LIBS)
12579 elif test "$with_randr" != no; then
12580 echo "error: must be yes or no: --with-randr-ext=$with_randr"
12585 ###############################################################################
12587 # Check for XF86MiscSetGrabKeysState (but only bother if we are already
12588 # using other XF86 stuff.)
12590 ###############################################################################
12592 have_xf86miscsetgrabkeysstate=no
12593 if test "$have_xf86gamma" = yes -o "$have_xf86vmode" = yes; then
12595 ac_save_CPPFLAGS="$CPPFLAGS"
12596 ac_save_LDFLAGS="$LDFLAGS"
12597 # ac_save_LIBS="$LIBS"
12599 if test \! -z "$includedir" ; then
12600 CPPFLAGS="$CPPFLAGS -I$includedir"
12602 # note: $X_CFLAGS includes $x_includes
12603 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12605 if test \! -z "$libdir" ; then
12606 LDFLAGS="$LDFLAGS -L$libdir"
12608 # note: $X_LIBS includes $x_libraries
12609 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12611 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12612 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12613 { echo "$as_me:$LINENO: checking for XF86MiscSetGrabKeysState in -lXxf86misc" >&5
12614 echo $ECHO_N "checking for XF86MiscSetGrabKeysState in -lXxf86misc... $ECHO_C" >&6; }
12615 if test "${ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12618 ac_check_lib_save_LIBS=$LIBS
12619 LIBS="-lXxf86misc -lXext -lX11 $LIBS"
12620 cat >conftest.$ac_ext <<_ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h. */
12627 /* Override any GCC internal prototype to avoid an error.
12628 Use char because int might match the return type of a GCC
12629 builtin and then its argument prototype would still apply. */
12633 char XF86MiscSetGrabKeysState ();
12637 return XF86MiscSetGrabKeysState ();
12642 rm -f conftest.$ac_objext conftest$ac_exeext
12643 if { (ac_try="$ac_link"
12644 case "(($ac_try" in
12645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12646 *) ac_try_echo=$ac_try;;
12648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12649 (eval "$ac_link") 2>conftest.er1
12651 grep -v '^ *+' conftest.er1 >conftest.err
12653 cat conftest.err >&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } && {
12656 test -z "$ac_c_werror_flag" ||
12657 test ! -s conftest.err
12658 } && test -s conftest$ac_exeext &&
12659 $as_test_x conftest$ac_exeext; then
12660 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=yes
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12665 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=no
12668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12669 conftest$ac_exeext conftest.$ac_ext
12670 LIBS=$ac_check_lib_save_LIBS
12672 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&5
12673 echo "${ECHO_T}$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&6; }
12674 if test $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState = yes; then
12675 have_xf86miscsetgrabkeysstate=yes
12680 CPPFLAGS="$ac_save_CPPFLAGS"
12681 LDFLAGS="$ac_save_LDFLAGS"
12682 # LIBS="$ac_save_LIBS"
12684 if test "$have_xf86miscsetgrabkeysstate" = yes ; then
12685 SAVER_LIBS="$SAVER_LIBS -lXxf86misc"
12686 cat >>confdefs.h <<\_ACEOF
12687 #define HAVE_XF86MISCSETGRABKEYSSTATE 1
12694 ###############################################################################
12696 # Check for HP XHPDisableReset and XHPEnableReset.
12698 ###############################################################################
12700 { echo "$as_me:$LINENO: checking for XHPDisableReset in X11/XHPlib.h" >&5
12701 echo $ECHO_N "checking for XHPDisableReset in X11/XHPlib.h... $ECHO_C" >&6; }
12703 ac_save_CPPFLAGS="$CPPFLAGS"
12704 if test \! -z "$includedir" ; then
12705 CPPFLAGS="$CPPFLAGS -I$includedir"
12707 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12708 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12709 cat >conftest.$ac_ext <<_ACEOF
12712 cat confdefs.h >>conftest.$ac_ext
12713 cat >>conftest.$ac_ext <<_ACEOF
12714 /* end confdefs.h. */
12715 #include <X11/XHPlib.h>
12718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12719 $EGREP "XHPDisableReset" >/dev/null 2>&1; then
12720 cat >>confdefs.h <<\_ACEOF
12721 #define HAVE_XHPDISABLERESET 1
12724 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
12725 { echo "$as_me:$LINENO: result: yes" >&5
12726 echo "${ECHO_T}yes" >&6; }
12728 { echo "$as_me:$LINENO: result: no" >&5
12729 echo "${ECHO_T}no" >&6; }
12733 CPPFLAGS="$ac_save_CPPFLAGS"
12736 ###############################################################################
12738 # Check for /proc/interrupts.
12740 ###############################################################################
12742 have_proc_interrupts=no
12743 with_proc_interrupts_req=unspecified
12745 # Check whether --with-proc-interrupts was given.
12746 if test "${with_proc_interrupts+set}" = set; then
12747 withval=$with_proc_interrupts; with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
12749 with_proc_interrupts=yes
12753 if test "$with_proc_interrupts" = yes; then
12755 # Note that we may be building in an environment (e.g. Debian buildd chroot)
12756 # without a proper /proc filesystem. If /proc/interrupts exists, then we'll
12757 # check that it has the bits we need, but otherwise we'll just go on faith.
12759 have_proc_interrupts=yes
12761 if test -f /proc/interrupts; then
12762 { echo "$as_me:$LINENO: checking whether /proc/interrupts contains keyboard data" >&5
12763 echo $ECHO_N "checking whether /proc/interrupts contains keyboard data... $ECHO_C" >&6; }
12764 if test "${ac_cv_have_proc_interrupts+set}" = set; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12767 ac_cv_have_proc_interrupts=no
12768 if grep 'keyboard\|i8042' /proc/interrupts >/dev/null 2>&1 ; then
12769 ac_cv_have_proc_interrupts=yes
12773 { echo "$as_me:$LINENO: result: $ac_cv_have_proc_interrupts" >&5
12774 echo "${ECHO_T}$ac_cv_have_proc_interrupts" >&6; }
12775 have_proc_interrupts=$ac_cv_have_proc_interrupts
12778 if test "$have_proc_interrupts" = yes; then
12779 cat >>confdefs.h <<\_ACEOF
12780 #define HAVE_PROC_INTERRUPTS 1
12785 elif test "$with_proc_interrupts" != no; then
12786 echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
12791 ###############################################################################
12793 # The --enable-locking option
12795 ###############################################################################
12797 # Check whether --enable-locking was given.
12798 if test "${enable_locking+set}" = set; then
12799 enableval=$enable_locking; enable_locking="$enableval"
12801 if test "$ac_macosx" = yes; then
12802 # We can't lock on MacOS X, so default to not compiling in support for it.
12803 # But allow --enable-locking to override that, so I can debug Linux locking
12811 if test "$enable_locking" = yes; then
12813 elif test "$enable_locking" = no; then
12814 cat >>confdefs.h <<\_ACEOF
12815 #define NO_LOCKING 1
12819 echo "error: must be yes or no: --enable-locking=$enable_locking"
12824 ###############################################################################
12826 # Whether to allow root password to unblank.
12828 ###############################################################################
12829 # Check whether --enable-root-passwd was given.
12830 if test "${enable_root_passwd+set}" = set; then
12831 enableval=$enable_root_passwd; enable_root_passwd="$enableval"
12833 enable_root_passwd=yes
12836 if test "$enable_root_passwd" = yes; then
12837 cat >>confdefs.h <<\_ACEOF
12838 #define ALLOW_ROOT_PASSWD 1
12842 elif test "$enable_root_passwd" != no; then
12843 echo "error: must be yes or no: --enable-root-passwd=$enable_root_passwd"
12847 ###############################################################################
12851 ###############################################################################
12855 # Solaris systems tend to come with PAM misconfigured.
12856 # Don't build it by default, even if the headers exist.
12857 with_pam_default=no
12860 # Default to building PAM support on all other systems, if it exists.
12861 with_pam_default=yes
12866 with_pam_req=unspecified
12869 # Check whether --with-pam was given.
12870 if test "${with_pam+set}" = set; then
12871 withval=$with_pam; with_pam="$withval"; with_pam_req="$withval"
12873 with_pam=$with_pam_default
12878 # Check whether --with-pam_service_name was given.
12879 if test "${with_pam_service_name+set}" = set; then
12880 withval=$with_pam_service_name; pam_service_name="$withval"
12882 pam_service_name="xscreensaver"
12887 case "$with_pam" in
12892 { echo "$as_me:$LINENO: checking for PAM headers" >&5
12893 echo $ECHO_N "checking for PAM headers... $ECHO_C" >&6; }
12894 d=$with_pam/include
12895 if test -d $d; then
12896 X_CFLAGS="-I$d $X_CFLAGS"
12897 { echo "$as_me:$LINENO: result: $d" >&5
12898 echo "${ECHO_T}$d" >&6; }
12900 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12901 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
12904 { echo "$as_me:$LINENO: checking for PAM libs" >&5
12905 echo $ECHO_N "checking for PAM libs... $ECHO_C" >&6; }
12907 if test -d $d; then
12908 X_LIBS="-L$d $X_LIBS"
12909 { echo "$as_me:$LINENO: result: $d" >&5
12910 echo "${ECHO_T}$d" >&6; }
12912 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12913 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
12916 # replace the directory string with "yes".
12918 with_pam=$with_pam_req
12923 echo "error: argument to --with-pam must be \"yes\", \"no\", or a directory."
12924 echo " If it is a directory, then \`DIR/include' will be added to"
12925 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12931 if test "$enable_locking" = yes -a "$with_pam" = yes; then
12932 { echo "$as_me:$LINENO: checking for PAM" >&5
12933 echo $ECHO_N "checking for PAM... $ECHO_C" >&6; }
12934 if test "${ac_cv_pam+set}" = set; then
12935 echo $ECHO_N "(cached) $ECHO_C" >&6
12938 ac_save_CPPFLAGS="$CPPFLAGS"
12939 if test \! -z "$includedir" ; then
12940 CPPFLAGS="$CPPFLAGS -I$includedir"
12942 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12943 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12944 cat >conftest.$ac_ext <<_ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h. */
12950 #include <security/pam_appl.h>
12959 rm -f conftest.$ac_objext
12960 if { (ac_try="$ac_compile"
12961 case "(($ac_try" in
12962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12963 *) ac_try_echo=$ac_try;;
12965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12966 (eval "$ac_compile") 2>conftest.er1
12968 grep -v '^ *+' conftest.er1 >conftest.err
12970 cat conftest.err >&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } && {
12973 test -z "$ac_c_werror_flag" ||
12974 test ! -s conftest.err
12975 } && test -s conftest.$ac_objext; then
12978 echo "$as_me: failed program was:" >&5
12979 sed 's/^/| /' conftest.$ac_ext >&5
12984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12985 CPPFLAGS="$ac_save_CPPFLAGS"
12987 { echo "$as_me:$LINENO: result: $ac_cv_pam" >&5
12988 echo "${ECHO_T}$ac_cv_pam" >&6; }
12989 if test "$ac_cv_pam" = yes ; then
12991 cat >>confdefs.h <<\_ACEOF
12995 cat >>confdefs.h <<_ACEOF
12996 #define PAM_SERVICE_NAME "$pam_service_name"
13000 PASSWD_LIBS="${PASSWD_LIBS} -lpam"
13002 # libpam typically requires dlopen and dlsym. On FreeBSD,
13003 # those are in libc. On Linux and Solaris, they're in libdl.
13004 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13005 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13006 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13009 ac_check_lib_save_LIBS=$LIBS
13011 cat >conftest.$ac_ext <<_ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13018 /* Override any GCC internal prototype to avoid an error.
13019 Use char because int might match the return type of a GCC
13020 builtin and then its argument prototype would still apply. */
13033 rm -f conftest.$ac_objext conftest$ac_exeext
13034 if { (ac_try="$ac_link"
13035 case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_link") 2>conftest.er1
13042 grep -v '^ *+' conftest.er1 >conftest.err
13044 cat conftest.err >&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } && {
13047 test -z "$ac_c_werror_flag" ||
13048 test ! -s conftest.err
13049 } && test -s conftest$ac_exeext &&
13050 $as_test_x conftest$ac_exeext; then
13051 ac_cv_lib_dl_dlopen=yes
13053 echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13056 ac_cv_lib_dl_dlopen=no
13059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13060 conftest$ac_exeext conftest.$ac_ext
13061 LIBS=$ac_check_lib_save_LIBS
13063 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13064 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13065 if test $ac_cv_lib_dl_dlopen = yes; then
13066 PASSWD_LIBS="${PASSWD_LIBS} -ldl"
13070 # On Linux, sigtimedwait() is in libc; on Solaris, it's in librt.
13072 { echo "$as_me:$LINENO: checking for sigtimedwait in -lc" >&5
13073 echo $ECHO_N "checking for sigtimedwait in -lc... $ECHO_C" >&6; }
13074 if test "${ac_cv_lib_c_sigtimedwait+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 ac_check_lib_save_LIBS=$LIBS
13079 cat >conftest.$ac_ext <<_ACEOF
13082 cat confdefs.h >>conftest.$ac_ext
13083 cat >>conftest.$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13086 /* Override any GCC internal prototype to avoid an error.
13087 Use char because int might match the return type of a GCC
13088 builtin and then its argument prototype would still apply. */
13092 char sigtimedwait ();
13096 return sigtimedwait ();
13101 rm -f conftest.$ac_objext conftest$ac_exeext
13102 if { (ac_try="$ac_link"
13103 case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108 (eval "$ac_link") 2>conftest.er1
13110 grep -v '^ *+' conftest.er1 >conftest.err
13112 cat conftest.err >&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); } && {
13115 test -z "$ac_c_werror_flag" ||
13116 test ! -s conftest.err
13117 } && test -s conftest$ac_exeext &&
13118 $as_test_x conftest$ac_exeext; then
13119 ac_cv_lib_c_sigtimedwait=yes
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13124 ac_cv_lib_c_sigtimedwait=no
13127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13128 conftest$ac_exeext conftest.$ac_ext
13129 LIBS=$ac_check_lib_save_LIBS
13131 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigtimedwait" >&5
13132 echo "${ECHO_T}$ac_cv_lib_c_sigtimedwait" >&6; }
13133 if test $ac_cv_lib_c_sigtimedwait = yes; then
13135 cat >>confdefs.h <<\_ACEOF
13136 #define HAVE_SIGTIMEDWAIT 1
13141 if test "$have_timedwait" = no ; then
13142 { echo "$as_me:$LINENO: checking for sigtimedwait in -lrt" >&5
13143 echo $ECHO_N "checking for sigtimedwait in -lrt... $ECHO_C" >&6; }
13144 if test "${ac_cv_lib_rt_sigtimedwait+set}" = set; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
13147 ac_check_lib_save_LIBS=$LIBS
13149 cat >conftest.$ac_ext <<_ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13156 /* Override any GCC internal prototype to avoid an error.
13157 Use char because int might match the return type of a GCC
13158 builtin and then its argument prototype would still apply. */
13162 char sigtimedwait ();
13166 return sigtimedwait ();
13171 rm -f conftest.$ac_objext conftest$ac_exeext
13172 if { (ac_try="$ac_link"
13173 case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_link") 2>conftest.er1
13180 grep -v '^ *+' conftest.er1 >conftest.err
13182 cat conftest.err >&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } && {
13185 test -z "$ac_c_werror_flag" ||
13186 test ! -s conftest.err
13187 } && test -s conftest$ac_exeext &&
13188 $as_test_x conftest$ac_exeext; then
13189 ac_cv_lib_rt_sigtimedwait=yes
13191 echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13194 ac_cv_lib_rt_sigtimedwait=no
13197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13198 conftest$ac_exeext conftest.$ac_ext
13199 LIBS=$ac_check_lib_save_LIBS
13201 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sigtimedwait" >&5
13202 echo "${ECHO_T}$ac_cv_lib_rt_sigtimedwait" >&6; }
13203 if test $ac_cv_lib_rt_sigtimedwait = yes; then
13205 cat >>confdefs.h <<\_ACEOF
13206 #define HAVE_SIGTIMEDWAIT 1
13209 PASSWD_LIBS="${PASSWD_LIBS} -lrt"
13214 { echo "$as_me:$LINENO: checking how to call pam_strerror" >&5
13215 echo $ECHO_N "checking how to call pam_strerror... $ECHO_C" >&6; }
13216 if test "${ac_cv_pam_strerror_args+set}" = set; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13220 ac_save_CPPFLAGS="$CPPFLAGS"
13221 if test \! -z "$includedir" ; then
13222 CPPFLAGS="$CPPFLAGS -I$includedir"
13224 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13225 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13226 cat >conftest.$ac_ext <<_ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13233 #include <stdlib.h>
13234 #include <security/pam_appl.h>
13238 pam_handle_t *pamh = 0;
13239 char *s = pam_strerror(pamh, PAM_SUCCESS);
13244 rm -f conftest.$ac_objext
13245 if { (ac_try="$ac_compile"
13246 case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_compile") 2>conftest.er1
13253 grep -v '^ *+' conftest.er1 >conftest.err
13255 cat conftest.err >&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } && {
13258 test -z "$ac_c_werror_flag" ||
13259 test ! -s conftest.err
13260 } && test -s conftest.$ac_objext; then
13261 ac_pam_strerror_args=2
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13267 ac_save_CPPFLAGS="$CPPFLAGS"
13268 if test \! -z "$includedir" ; then
13269 CPPFLAGS="$CPPFLAGS -I$includedir"
13271 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13272 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13273 cat >conftest.$ac_ext <<_ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13280 #include <stdlib.h>
13281 #include <security/pam_appl.h>
13286 pam_strerror(PAM_SUCCESS);
13291 rm -f conftest.$ac_objext
13292 if { (ac_try="$ac_compile"
13293 case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_compile") 2>conftest.er1
13300 grep -v '^ *+' conftest.er1 >conftest.err
13302 cat conftest.err >&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } && {
13305 test -z "$ac_c_werror_flag" ||
13306 test ! -s conftest.err
13307 } && test -s conftest.$ac_objext; then
13308 ac_pam_strerror_args=1
13310 echo "$as_me: failed program was:" >&5
13311 sed 's/^/| /' conftest.$ac_ext >&5
13313 ac_pam_strerror_args=0
13316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13317 CPPFLAGS="$ac_save_CPPFLAGS"
13320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321 CPPFLAGS="$ac_save_CPPFLAGS"
13322 ac_cv_pam_strerror_args=$ac_pam_strerror_args
13325 ac_pam_strerror_args=$ac_cv_pam_strerror_args
13326 if test "$ac_pam_strerror_args" = 1 ; then
13327 { echo "$as_me:$LINENO: result: one argument" >&5
13328 echo "${ECHO_T}one argument" >&6; }
13329 elif test "$ac_pam_strerror_args" = 2 ; then
13330 cat >>confdefs.h <<\_ACEOF
13331 #define PAM_STRERROR_TWO_ARGS 1
13334 { echo "$as_me:$LINENO: result: two arguments" >&5
13335 echo "${ECHO_T}two arguments" >&6; }
13337 { echo "$as_me:$LINENO: result: unknown" >&5
13338 echo "${ECHO_T}unknown" >&6; }
13341 # Check pam_fail_delay
13342 { echo "$as_me:$LINENO: checking pam_fail_delay in -lpam" >&5
13343 echo $ECHO_N "checking pam_fail_delay in -lpam... $ECHO_C" >&6; }
13344 if test "${ac_cv_pam_fail_delay+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13347 ac_save_LDFLAGS="$LDFLAGS"
13349 cat >conftest.$ac_ext <<_ACEOF
13352 cat confdefs.h >>conftest.$ac_ext
13353 cat >>conftest.$ac_ext <<_ACEOF
13354 /* end confdefs.h. */
13355 #include <security/pam_appl.h>
13359 pam_handle_t *pamh = 0;
13360 unsigned int usec = 1;
13361 int status = pam_fail_delay (pamh, usec);
13366 rm -f conftest.$ac_objext conftest$ac_exeext
13367 if { (ac_try="$ac_link"
13368 case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_link") 2>conftest.er1
13375 grep -v '^ *+' conftest.er1 >conftest.err
13377 cat conftest.err >&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } && {
13380 test -z "$ac_c_werror_flag" ||
13381 test ! -s conftest.err
13382 } && test -s conftest$ac_exeext &&
13383 $as_test_x conftest$ac_exeext; then
13384 ac_pam_fail_delay=yes
13386 echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.$ac_ext >&5
13389 ac_pam_fail_delay=no
13392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13393 conftest$ac_exeext conftest.$ac_ext
13394 ac_cv_pam_fail_delay=$ac_pam_fail_delay,
13395 LDFLAGS=$ac_save_LDFLAGS
13399 if test "$ac_pam_fail_delay" = yes ; then
13400 { echo "$as_me:$LINENO: result: yes" >&5
13401 echo "${ECHO_T}yes" >&6; }
13402 cat >>confdefs.h <<\_ACEOF
13403 #define HAVE_PAM_FAIL_DELAY 1
13407 { echo "$as_me:$LINENO: result: no" >&5
13408 echo "${ECHO_T}no" >&6; }
13415 ###############################################################################
13417 # Check for Kerberos.
13419 ###############################################################################
13423 with_kerberos_req=unspecified
13426 # Check whether --with-kerberos was given.
13427 if test "${with_kerberos+set}" = set; then
13428 withval=$with_kerberos; with_kerberos="$withval"; with_kerberos_req="$withval"
13435 case "$with_kerberos" in
13440 { echo "$as_me:$LINENO: checking for Kerberos headers" >&5
13441 echo $ECHO_N "checking for Kerberos headers... $ECHO_C" >&6; }
13442 d=$with_kerberos/include
13443 if test -d $d; then
13444 X_CFLAGS="-I$d $X_CFLAGS"
13445 { echo "$as_me:$LINENO: result: $d" >&5
13446 echo "${ECHO_T}$d" >&6; }
13448 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13449 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
13452 { echo "$as_me:$LINENO: checking for Kerberos libs" >&5
13453 echo $ECHO_N "checking for Kerberos libs... $ECHO_C" >&6; }
13454 d=$with_kerberos/lib
13455 if test -d $d; then
13456 X_LIBS="-L$d $X_LIBS"
13457 { echo "$as_me:$LINENO: result: $d" >&5
13458 echo "${ECHO_T}$d" >&6; }
13460 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13461 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
13464 # replace the directory string with "yes".
13465 with_kerberos_req="yes"
13466 with_kerberos=$with_kerberos_req
13471 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
13472 echo " If it is a directory, then \`DIR/include' will be added to"
13473 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13479 if test "$enable_locking" = yes -a "$with_kerberos" = yes; then
13480 { echo "$as_me:$LINENO: checking for Kerberos 4" >&5
13481 echo $ECHO_N "checking for Kerberos 4... $ECHO_C" >&6; }
13482 if test "${ac_cv_kerberos+set}" = set; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13486 ac_save_CPPFLAGS="$CPPFLAGS"
13487 if test \! -z "$includedir" ; then
13488 CPPFLAGS="$CPPFLAGS -I$includedir"
13490 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13491 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13492 cat >conftest.$ac_ext <<_ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h. */
13507 rm -f conftest.$ac_objext
13508 if { (ac_try="$ac_compile"
13509 case "(($ac_try" in
13510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13511 *) ac_try_echo=$ac_try;;
13513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13514 (eval "$ac_compile") 2>conftest.er1
13516 grep -v '^ *+' conftest.er1 >conftest.err
13518 cat conftest.err >&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } && {
13521 test -z "$ac_c_werror_flag" ||
13522 test ! -s conftest.err
13523 } && test -s conftest.$ac_objext; then
13526 echo "$as_me: failed program was:" >&5
13527 sed 's/^/| /' conftest.$ac_ext >&5
13532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13533 CPPFLAGS="$ac_save_CPPFLAGS"
13535 { echo "$as_me:$LINENO: result: $ac_cv_kerberos" >&5
13536 echo "${ECHO_T}$ac_cv_kerberos" >&6; }
13537 { echo "$as_me:$LINENO: checking for Kerberos 5" >&5
13538 echo $ECHO_N "checking for Kerberos 5... $ECHO_C" >&6; }
13539 if test "${ac_cv_kerberos5+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13543 ac_save_CPPFLAGS="$CPPFLAGS"
13544 if test \! -z "$includedir" ; then
13545 CPPFLAGS="$CPPFLAGS -I$includedir"
13547 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13548 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13549 cat >conftest.$ac_ext <<_ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h. */
13555 #include <kerberosIV/krb.h>
13564 rm -f conftest.$ac_objext
13565 if { (ac_try="$ac_compile"
13566 case "(($ac_try" in
13567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13568 *) ac_try_echo=$ac_try;;
13570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13571 (eval "$ac_compile") 2>conftest.er1
13573 grep -v '^ *+' conftest.er1 >conftest.err
13575 cat conftest.err >&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } && {
13578 test -z "$ac_c_werror_flag" ||
13579 test ! -s conftest.err
13580 } && test -s conftest.$ac_objext; then
13581 ac_cv_kerberos5=yes
13583 echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13590 CPPFLAGS="$ac_save_CPPFLAGS"
13592 { echo "$as_me:$LINENO: result: $ac_cv_kerberos5" >&5
13593 echo "${ECHO_T}$ac_cv_kerberos5" >&6; }
13595 if test "$ac_cv_kerberos" = yes ; then
13597 cat >>confdefs.h <<\_ACEOF
13598 #define HAVE_KERBEROS 1
13603 if test "$ac_cv_kerberos5" = yes ; then
13605 # Andrew Snare <ajs@pigpond.com> wrote:
13607 # You were assuming that if kerberosV (krb5) was found, then kerberosIV
13608 # (krb4) was also available. This turns out not to be the case with
13609 # mit-krb-1.2.7; apparently backwards-compatibility with KerberosIV
13612 # So, disable kerberosV support if libkrb4 can't be found.
13613 # This is not the best solution, but it makes the compile not fail.
13616 ac_save_CPPFLAGS="$CPPFLAGS"
13617 ac_save_LDFLAGS="$LDFLAGS"
13618 # ac_save_LIBS="$LIBS"
13620 if test \! -z "$includedir" ; then
13621 CPPFLAGS="$CPPFLAGS -I$includedir"
13623 # note: $X_CFLAGS includes $x_includes
13624 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13626 if test \! -z "$libdir" ; then
13627 LDFLAGS="$LDFLAGS -L$libdir"
13629 # note: $X_LIBS includes $x_libraries
13630 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13632 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13633 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13634 { echo "$as_me:$LINENO: checking for krb_get_tf_realm in -lkrb4" >&5
13635 echo $ECHO_N "checking for krb_get_tf_realm in -lkrb4... $ECHO_C" >&6; }
13636 if test "${ac_cv_lib_krb4_krb_get_tf_realm+set}" = set; then
13637 echo $ECHO_N "(cached) $ECHO_C" >&6
13639 ac_check_lib_save_LIBS=$LIBS
13640 LIBS="-lkrb4 $LIBS"
13641 cat >conftest.$ac_ext <<_ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h. */
13648 /* Override any GCC internal prototype to avoid an error.
13649 Use char because int might match the return type of a GCC
13650 builtin and then its argument prototype would still apply. */
13654 char krb_get_tf_realm ();
13658 return krb_get_tf_realm ();
13663 rm -f conftest.$ac_objext conftest$ac_exeext
13664 if { (ac_try="$ac_link"
13665 case "(($ac_try" in
13666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13667 *) ac_try_echo=$ac_try;;
13669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13670 (eval "$ac_link") 2>conftest.er1
13672 grep -v '^ *+' conftest.er1 >conftest.err
13674 cat conftest.err >&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); } && {
13677 test -z "$ac_c_werror_flag" ||
13678 test ! -s conftest.err
13679 } && test -s conftest$ac_exeext &&
13680 $as_test_x conftest$ac_exeext; then
13681 ac_cv_lib_krb4_krb_get_tf_realm=yes
13683 echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13686 ac_cv_lib_krb4_krb_get_tf_realm=no
13689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13690 conftest$ac_exeext conftest.$ac_ext
13691 LIBS=$ac_check_lib_save_LIBS
13693 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_tf_realm" >&5
13694 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_tf_realm" >&6; }
13695 if test $ac_cv_lib_krb4_krb_get_tf_realm = yes; then
13701 CPPFLAGS="$ac_save_CPPFLAGS"
13702 LDFLAGS="$ac_save_LDFLAGS"
13703 # LIBS="$ac_save_LIBS"
13705 if test "$have_kerberos" = yes ; then
13707 cat >>confdefs.h <<\_ACEOF
13708 #define HAVE_KERBEROS 1
13711 cat >>confdefs.h <<\_ACEOF
13712 #define HAVE_KERBEROS5 1
13717 { echo "$as_me:$LINENO: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&5
13718 echo "$as_me: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&2;}
13723 if test "$have_kerberos5" = yes ; then
13724 # from Matt Knopp <mhat@infocalypse.netlag.com>
13725 # (who got it from amu@mit.edu)
13727 PASSWD_LIBS="$PASSWD_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
13729 # jwz: MacOS X uses -lkrb5, but not -lcrypt
13731 ac_save_CPPFLAGS="$CPPFLAGS"
13732 ac_save_LDFLAGS="$LDFLAGS"
13733 # ac_save_LIBS="$LIBS"
13735 if test \! -z "$includedir" ; then
13736 CPPFLAGS="$CPPFLAGS -I$includedir"
13738 # note: $X_CFLAGS includes $x_includes
13739 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13741 if test \! -z "$libdir" ; then
13742 LDFLAGS="$LDFLAGS -L$libdir"
13744 # note: $X_LIBS includes $x_libraries
13745 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13747 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13748 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13749 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
13750 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
13751 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13754 ac_check_lib_save_LIBS=$LIBS
13755 LIBS="-lcrypt $LIBS"
13756 cat >conftest.$ac_ext <<_ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h. */
13763 /* Override any GCC internal prototype to avoid an error.
13764 Use char because int might match the return type of a GCC
13765 builtin and then its argument prototype would still apply. */
13778 rm -f conftest.$ac_objext conftest$ac_exeext
13779 if { (ac_try="$ac_link"
13780 case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_link") 2>conftest.er1
13787 grep -v '^ *+' conftest.er1 >conftest.err
13789 cat conftest.err >&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } && {
13792 test -z "$ac_c_werror_flag" ||
13793 test ! -s conftest.err
13794 } && test -s conftest$ac_exeext &&
13795 $as_test_x conftest$ac_exeext; then
13796 ac_cv_lib_crypt_crypt=yes
13798 echo "$as_me: failed program was:" >&5
13799 sed 's/^/| /' conftest.$ac_ext >&5
13801 ac_cv_lib_crypt_crypt=no
13804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13805 conftest$ac_exeext conftest.$ac_ext
13806 LIBS=$ac_check_lib_save_LIBS
13808 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
13809 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
13810 if test $ac_cv_lib_crypt_crypt = yes; then
13811 PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
13814 CPPFLAGS="$ac_save_CPPFLAGS"
13815 LDFLAGS="$ac_save_LDFLAGS"
13816 # LIBS="$ac_save_LIBS"
13819 elif test "$have_kerberos" = yes ; then
13820 # from Tim Showalter <tjs@psaux.com> for FreeBSD 4.2
13821 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
13824 if test "$have_kerberos" = yes ; then
13825 { echo "$as_me:$LINENO: checking for res_search" >&5
13826 echo $ECHO_N "checking for res_search... $ECHO_C" >&6; }
13827 if test "${ac_cv_func_res_search+set}" = set; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 cat >conftest.$ac_ext <<_ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
13837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13838 #define res_search innocuous_res_search
13840 /* System header to define __stub macros and hopefully few prototypes,
13841 which can conflict with char res_search (); below.
13842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13843 <limits.h> exists even on freestanding compilers. */
13846 # include <limits.h>
13848 # include <assert.h>
13853 /* Override any GCC internal prototype to avoid an error.
13854 Use char because int might match the return type of a GCC
13855 builtin and then its argument prototype would still apply. */
13859 char res_search ();
13860 /* The GNU C library defines this for functions which it implements
13861 to always fail with ENOSYS. Some functions are actually named
13862 something starting with __ and the normal name is an alias. */
13863 #if defined __stub_res_search || defined __stub___res_search
13870 return res_search ();
13875 rm -f conftest.$ac_objext conftest$ac_exeext
13876 if { (ac_try="$ac_link"
13877 case "(($ac_try" in
13878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882 (eval "$ac_link") 2>conftest.er1
13884 grep -v '^ *+' conftest.er1 >conftest.err
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } && {
13889 test -z "$ac_c_werror_flag" ||
13890 test ! -s conftest.err
13891 } && test -s conftest$ac_exeext &&
13892 $as_test_x conftest$ac_exeext; then
13893 ac_cv_func_res_search=yes
13895 echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.$ac_ext >&5
13898 ac_cv_func_res_search=no
13901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13902 conftest$ac_exeext conftest.$ac_ext
13904 { echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
13905 echo "${ECHO_T}$ac_cv_func_res_search" >&6; }
13906 if test $ac_cv_func_res_search = yes; then
13909 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
13910 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
13911 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
13914 ac_check_lib_save_LIBS=$LIBS
13915 LIBS="-lresolv $LIBS"
13916 cat >conftest.$ac_ext <<_ACEOF
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h. */
13923 /* Override any GCC internal prototype to avoid an error.
13924 Use char because int might match the return type of a GCC
13925 builtin and then its argument prototype would still apply. */
13929 char res_search ();
13933 return res_search ();
13938 rm -f conftest.$ac_objext conftest$ac_exeext
13939 if { (ac_try="$ac_link"
13940 case "(($ac_try" in
13941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13942 *) ac_try_echo=$ac_try;;
13944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13945 (eval "$ac_link") 2>conftest.er1
13947 grep -v '^ *+' conftest.er1 >conftest.err
13949 cat conftest.err >&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } && {
13952 test -z "$ac_c_werror_flag" ||
13953 test ! -s conftest.err
13954 } && test -s conftest$ac_exeext &&
13955 $as_test_x conftest$ac_exeext; then
13956 ac_cv_lib_resolv_res_search=yes
13958 echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13961 ac_cv_lib_resolv_res_search=no
13964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13965 conftest$ac_exeext conftest.$ac_ext
13966 LIBS=$ac_check_lib_save_LIBS
13968 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
13969 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
13970 if test $ac_cv_lib_resolv_res_search = yes; then
13971 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
13973 { echo "$as_me:$LINENO: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&5
13974 echo "$as_me: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&2;}
13984 ###############################################################################
13986 # Check for the nine billion variants of shadow passwords...
13988 ###############################################################################
13993 with_shadow_req=unspecified
13996 # Check whether --with-shadow was given.
13997 if test "${with_shadow+set}" = set; then
13998 withval=$with_shadow; with_shadow="$withval"; with_shadow_req="$withval"
14005 case "$with_shadow" in
14010 { echo "$as_me:$LINENO: checking for shadow password headers" >&5
14011 echo $ECHO_N "checking for shadow password headers... $ECHO_C" >&6; }
14012 d=$with_shadow/include
14013 if test -d $d; then
14014 X_CFLAGS="-I$d $X_CFLAGS"
14015 { echo "$as_me:$LINENO: result: $d" >&5
14016 echo "${ECHO_T}$d" >&6; }
14018 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14019 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
14022 { echo "$as_me:$LINENO: checking for shadow password libs" >&5
14023 echo $ECHO_N "checking for shadow password libs... $ECHO_C" >&6; }
14025 if test -d $d; then
14026 X_LIBS="-L$d $X_LIBS"
14027 { echo "$as_me:$LINENO: result: $d" >&5
14028 echo "${ECHO_T}$d" >&6; }
14030 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14031 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
14034 # replace the directory string with "yes".
14035 with_shadow_req="yes"
14036 with_shadow=$with_shadow_req
14041 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
14042 echo " If it is a directory, then \`DIR/include' will be added to"
14043 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14049 if test "$enable_locking" = no ; then
14055 ###############################################################################
14057 # Check for Sun "adjunct" passwords.
14059 ###############################################################################
14061 if test "$with_shadow" = yes ; then
14062 { echo "$as_me:$LINENO: checking for Sun-style shadow passwords" >&5
14063 echo $ECHO_N "checking for Sun-style shadow passwords... $ECHO_C" >&6; }
14064 if test "${ac_cv_sun_adjunct+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14068 ac_save_CPPFLAGS="$CPPFLAGS"
14069 if test \! -z "$includedir" ; then
14070 CPPFLAGS="$CPPFLAGS -I$includedir"
14072 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14073 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14074 cat >conftest.$ac_ext <<_ACEOF
14077 cat confdefs.h >>conftest.$ac_ext
14078 cat >>conftest.$ac_ext <<_ACEOF
14079 /* end confdefs.h. */
14080 #include <stdlib.h>
14081 #include <unistd.h>
14082 #include <sys/types.h>
14083 #include <sys/label.h>
14084 #include <sys/audit.h>
14085 #include <pwdadj.h>
14089 struct passwd_adjunct *p = getpwanam("nobody");
14090 const char *pw = p->pwa_passwd;
14095 rm -f conftest.$ac_objext
14096 if { (ac_try="$ac_compile"
14097 case "(($ac_try" in
14098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14099 *) ac_try_echo=$ac_try;;
14101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14102 (eval "$ac_compile") 2>conftest.er1
14104 grep -v '^ *+' conftest.er1 >conftest.err
14106 cat conftest.err >&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } && {
14109 test -z "$ac_c_werror_flag" ||
14110 test ! -s conftest.err
14111 } && test -s conftest.$ac_objext; then
14112 ac_cv_sun_adjunct=yes
14114 echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14117 ac_cv_sun_adjunct=no
14120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14121 CPPFLAGS="$ac_save_CPPFLAGS"
14123 { echo "$as_me:$LINENO: result: $ac_cv_sun_adjunct" >&5
14124 echo "${ECHO_T}$ac_cv_sun_adjunct" >&6; }
14125 if test "$ac_cv_sun_adjunct" = yes; then
14126 have_shadow_adjunct=yes
14133 ###############################################################################
14135 # Check for DEC and SCO so-called "enhanced" security.
14137 ###############################################################################
14139 if test "$with_shadow" = yes ; then
14140 { echo "$as_me:$LINENO: checking for DEC-style shadow passwords" >&5
14141 echo $ECHO_N "checking for DEC-style shadow passwords... $ECHO_C" >&6; }
14142 if test "${ac_cv_enhanced_passwd+set}" = set; then
14143 echo $ECHO_N "(cached) $ECHO_C" >&6
14146 ac_save_CPPFLAGS="$CPPFLAGS"
14147 if test \! -z "$includedir" ; then
14148 CPPFLAGS="$CPPFLAGS -I$includedir"
14150 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14151 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14152 cat >conftest.$ac_ext <<_ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h. */
14158 #include <stdlib.h>
14159 #include <unistd.h>
14160 #include <sys/types.h>
14162 #include <sys/security.h>
14167 struct pr_passwd *p;
14169 set_auth_parameters(0, 0);
14170 check_auth_parameters();
14171 p = getprpwnam("nobody");
14172 pw = p->ufld.fd_encrypt;
14177 rm -f conftest.$ac_objext
14178 if { (ac_try="$ac_compile"
14179 case "(($ac_try" in
14180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14181 *) ac_try_echo=$ac_try;;
14183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14184 (eval "$ac_compile") 2>conftest.er1
14186 grep -v '^ *+' conftest.er1 >conftest.err
14188 cat conftest.err >&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } && {
14191 test -z "$ac_c_werror_flag" ||
14192 test ! -s conftest.err
14193 } && test -s conftest.$ac_objext; then
14194 ac_cv_enhanced_passwd=yes
14196 echo "$as_me: failed program was:" >&5
14197 sed 's/^/| /' conftest.$ac_ext >&5
14199 ac_cv_enhanced_passwd=no
14202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14203 CPPFLAGS="$ac_save_CPPFLAGS"
14205 { echo "$as_me:$LINENO: result: $ac_cv_enhanced_passwd" >&5
14206 echo "${ECHO_T}$ac_cv_enhanced_passwd" >&6; }
14207 if test $ac_cv_enhanced_passwd = yes; then
14208 have_shadow_enhanced=yes
14212 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
14213 # (I'm told it needs -lcurses too, but I don't understand why.)
14214 # But on DEC, it's in -lsecurity.
14216 { echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
14217 echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6; }
14218 if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14221 ac_check_lib_save_LIBS=$LIBS
14222 LIBS="-lprot -lx $LIBS"
14223 cat >conftest.$ac_ext <<_ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14230 /* Override any GCC internal prototype to avoid an error.
14231 Use char because int might match the return type of a GCC
14232 builtin and then its argument prototype would still apply. */
14236 char getprpwnam ();
14240 return getprpwnam ();
14245 rm -f conftest.$ac_objext conftest$ac_exeext
14246 if { (ac_try="$ac_link"
14247 case "(($ac_try" in
14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252 (eval "$ac_link") 2>conftest.er1
14254 grep -v '^ *+' conftest.er1 >conftest.err
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } && {
14259 test -z "$ac_c_werror_flag" ||
14260 test ! -s conftest.err
14261 } && test -s conftest$ac_exeext &&
14262 $as_test_x conftest$ac_exeext; then
14263 ac_cv_lib_prot_getprpwnam=yes
14265 echo "$as_me: failed program was:" >&5
14266 sed 's/^/| /' conftest.$ac_ext >&5
14268 ac_cv_lib_prot_getprpwnam=no
14271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14272 conftest$ac_exeext conftest.$ac_ext
14273 LIBS=$ac_check_lib_save_LIBS
14275 { echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
14276 echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6; }
14277 if test $ac_cv_lib_prot_getprpwnam = yes; then
14278 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
14280 { echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
14281 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6; }
14282 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
14283 echo $ECHO_N "(cached) $ECHO_C" >&6
14285 ac_check_lib_save_LIBS=$LIBS
14286 LIBS="-lsecurity $LIBS"
14287 cat >conftest.$ac_ext <<_ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14294 /* Override any GCC internal prototype to avoid an error.
14295 Use char because int might match the return type of a GCC
14296 builtin and then its argument prototype would still apply. */
14300 char getprpwnam ();
14304 return getprpwnam ();
14309 rm -f conftest.$ac_objext conftest$ac_exeext
14310 if { (ac_try="$ac_link"
14311 case "(($ac_try" in
14312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313 *) ac_try_echo=$ac_try;;
14315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316 (eval "$ac_link") 2>conftest.er1
14318 grep -v '^ *+' conftest.er1 >conftest.err
14320 cat conftest.err >&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } && {
14323 test -z "$ac_c_werror_flag" ||
14324 test ! -s conftest.err
14325 } && test -s conftest$ac_exeext &&
14326 $as_test_x conftest$ac_exeext; then
14327 ac_cv_lib_security_getprpwnam=yes
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14332 ac_cv_lib_security_getprpwnam=no
14335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14336 conftest$ac_exeext conftest.$ac_ext
14337 LIBS=$ac_check_lib_save_LIBS
14339 { echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
14340 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6; }
14341 if test $ac_cv_lib_security_getprpwnam = yes; then
14342 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
14350 ###############################################################################
14352 # Check for HP's entry in the "Not Invented Here" Sweepstakes.
14354 ###############################################################################
14356 if test "$with_shadow" = yes ; then
14357 { echo "$as_me:$LINENO: checking for HP-style shadow passwords" >&5
14358 echo $ECHO_N "checking for HP-style shadow passwords... $ECHO_C" >&6; }
14359 if test "${ac_cv_hpux_passwd+set}" = set; then
14360 echo $ECHO_N "(cached) $ECHO_C" >&6
14363 ac_save_CPPFLAGS="$CPPFLAGS"
14364 if test \! -z "$includedir" ; then
14365 CPPFLAGS="$CPPFLAGS -I$includedir"
14367 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14368 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14369 cat >conftest.$ac_ext <<_ACEOF
14372 cat confdefs.h >>conftest.$ac_ext
14373 cat >>conftest.$ac_ext <<_ACEOF
14374 /* end confdefs.h. */
14375 #include <stdlib.h>
14376 #include <unistd.h>
14377 #include <sys/types.h>
14379 #include <hpsecurity.h>
14384 struct s_passwd *p = getspwnam("nobody");
14385 const char *pw = p->pw_passwd;
14390 rm -f conftest.$ac_objext
14391 if { (ac_try="$ac_compile"
14392 case "(($ac_try" in
14393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14394 *) ac_try_echo=$ac_try;;
14396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14397 (eval "$ac_compile") 2>conftest.er1
14399 grep -v '^ *+' conftest.er1 >conftest.err
14401 cat conftest.err >&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } && {
14404 test -z "$ac_c_werror_flag" ||
14405 test ! -s conftest.err
14406 } && test -s conftest.$ac_objext; then
14407 ac_cv_hpux_passwd=yes
14409 echo "$as_me: failed program was:" >&5
14410 sed 's/^/| /' conftest.$ac_ext >&5
14412 ac_cv_hpux_passwd=no
14415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14416 CPPFLAGS="$ac_save_CPPFLAGS"
14418 { echo "$as_me:$LINENO: result: $ac_cv_hpux_passwd" >&5
14419 echo "${ECHO_T}$ac_cv_hpux_passwd" >&6; }
14420 if test "$ac_cv_hpux_passwd" = yes; then
14421 have_shadow_hpux=yes
14425 # on HPUX, bigcrypt is in -lsec
14426 { echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
14427 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6; }
14428 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14431 ac_check_lib_save_LIBS=$LIBS
14433 cat >conftest.$ac_ext <<_ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h. */
14440 /* Override any GCC internal prototype to avoid an error.
14441 Use char because int might match the return type of a GCC
14442 builtin and then its argument prototype would still apply. */
14450 return bigcrypt ();
14455 rm -f conftest.$ac_objext conftest$ac_exeext
14456 if { (ac_try="$ac_link"
14457 case "(($ac_try" in
14458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459 *) ac_try_echo=$ac_try;;
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_link") 2>conftest.er1
14464 grep -v '^ *+' conftest.er1 >conftest.err
14466 cat conftest.err >&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } && {
14469 test -z "$ac_c_werror_flag" ||
14470 test ! -s conftest.err
14471 } && test -s conftest$ac_exeext &&
14472 $as_test_x conftest$ac_exeext; then
14473 ac_cv_lib_sec_bigcrypt=yes
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14478 ac_cv_lib_sec_bigcrypt=no
14481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14482 conftest$ac_exeext conftest.$ac_ext
14483 LIBS=$ac_check_lib_save_LIBS
14485 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
14486 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6; }
14487 if test $ac_cv_lib_sec_bigcrypt = yes; then
14488 PASSWD_LIBS="$PASSWD_LIBS -lsec"
14495 ###############################################################################
14497 # Check for FreeBSD-style shadow passwords.
14499 # On FreeBSD, getpwnam() and friends work just like on non-shadow-
14500 # password systems -- except you only get stuff in the pw_passwd field
14501 # if the running program is setuid. So, guess that we've got this
14502 # lossage to contend with if /etc/master.passwd exists, and default to
14503 # a setuid installation.
14505 ###############################################################################
14507 if test "$with_shadow" = yes ; then
14508 { echo "$as_me:$LINENO: checking for FreeBSD-style shadow passwords" >&5
14509 echo $ECHO_N "checking for FreeBSD-style shadow passwords... $ECHO_C" >&6; }
14510 if test "${ac_cv_master_passwd+set}" = set; then
14511 echo $ECHO_N "(cached) $ECHO_C" >&6
14513 if test -f /etc/master.passwd ; then
14514 ac_cv_master_passwd=yes
14516 ac_cv_master_passwd=no
14519 { echo "$as_me:$LINENO: result: $ac_cv_master_passwd" >&5
14520 echo "${ECHO_T}$ac_cv_master_passwd" >&6; }
14521 if test "$ac_cv_master_passwd" = yes; then
14527 ###############################################################################
14529 # Check for traditional (ha!) shadow passwords.
14531 ###############################################################################
14533 if test "$with_shadow" = yes ; then
14534 { echo "$as_me:$LINENO: checking for generic shadow passwords" >&5
14535 echo $ECHO_N "checking for generic shadow passwords... $ECHO_C" >&6; }
14536 if test "${ac_cv_shadow+set}" = set; then
14537 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 ac_save_CPPFLAGS="$CPPFLAGS"
14541 if test \! -z "$includedir" ; then
14542 CPPFLAGS="$CPPFLAGS -I$includedir"
14544 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14545 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14546 cat >conftest.$ac_ext <<_ACEOF
14549 cat confdefs.h >>conftest.$ac_ext
14550 cat >>conftest.$ac_ext <<_ACEOF
14551 /* end confdefs.h. */
14552 #include <stdlib.h>
14553 #include <unistd.h>
14554 #include <sys/types.h>
14556 #include <shadow.h>
14560 struct spwd *p = getspnam("nobody");
14561 const char *pw = p->sp_pwdp;
14566 rm -f conftest.$ac_objext
14567 if { (ac_try="$ac_compile"
14568 case "(($ac_try" in
14569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14570 *) ac_try_echo=$ac_try;;
14572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14573 (eval "$ac_compile") 2>conftest.er1
14575 grep -v '^ *+' conftest.er1 >conftest.err
14577 cat conftest.err >&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); } && {
14580 test -z "$ac_c_werror_flag" ||
14581 test ! -s conftest.err
14582 } && test -s conftest.$ac_objext; then
14585 echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14592 CPPFLAGS="$ac_save_CPPFLAGS"
14594 { echo "$as_me:$LINENO: result: $ac_cv_shadow" >&5
14595 echo "${ECHO_T}$ac_cv_shadow" >&6; }
14596 if test "$ac_cv_shadow" = yes; then
14600 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
14602 { echo "$as_me:$LINENO: checking for getspnam in -lc" >&5
14603 echo $ECHO_N "checking for getspnam in -lc... $ECHO_C" >&6; }
14604 if test "${ac_cv_lib_c_getspnam+set}" = set; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14607 ac_check_lib_save_LIBS=$LIBS
14609 cat >conftest.$ac_ext <<_ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h. */
14616 /* Override any GCC internal prototype to avoid an error.
14617 Use char because int might match the return type of a GCC
14618 builtin and then its argument prototype would still apply. */
14626 return getspnam ();
14631 rm -f conftest.$ac_objext conftest$ac_exeext
14632 if { (ac_try="$ac_link"
14633 case "(($ac_try" in
14634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14635 *) ac_try_echo=$ac_try;;
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_link") 2>conftest.er1
14640 grep -v '^ *+' conftest.er1 >conftest.err
14642 cat conftest.err >&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } && {
14645 test -z "$ac_c_werror_flag" ||
14646 test ! -s conftest.err
14647 } && test -s conftest$ac_exeext &&
14648 $as_test_x conftest$ac_exeext; then
14649 ac_cv_lib_c_getspnam=yes
14651 echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14654 ac_cv_lib_c_getspnam=no
14657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14658 conftest$ac_exeext conftest.$ac_ext
14659 LIBS=$ac_check_lib_save_LIBS
14661 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_getspnam" >&5
14662 echo "${ECHO_T}$ac_cv_lib_c_getspnam" >&6; }
14663 if test $ac_cv_lib_c_getspnam = yes; then
14667 if test "$have_getspnam" = no ; then
14668 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
14669 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
14670 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14673 ac_check_lib_save_LIBS=$LIBS
14675 cat >conftest.$ac_ext <<_ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14682 /* Override any GCC internal prototype to avoid an error.
14683 Use char because int might match the return type of a GCC
14684 builtin and then its argument prototype would still apply. */
14692 return getspnam ();
14697 rm -f conftest.$ac_objext conftest$ac_exeext
14698 if { (ac_try="$ac_link"
14699 case "(($ac_try" in
14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704 (eval "$ac_link") 2>conftest.er1
14706 grep -v '^ *+' conftest.er1 >conftest.err
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } && {
14711 test -z "$ac_c_werror_flag" ||
14712 test ! -s conftest.err
14713 } && test -s conftest$ac_exeext &&
14714 $as_test_x conftest$ac_exeext; then
14715 ac_cv_lib_gen_getspnam=yes
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 ac_cv_lib_gen_getspnam=no
14723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14724 conftest$ac_exeext conftest.$ac_ext
14725 LIBS=$ac_check_lib_save_LIBS
14727 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
14728 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
14729 if test $ac_cv_lib_gen_getspnam = yes; then
14730 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
14738 ###############################################################################
14740 # Check for other libraries needed for non-shadow passwords.
14742 ###############################################################################
14744 if test "$enable_locking" = yes ; then
14746 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
14748 { echo "$as_me:$LINENO: checking for crypt in -lc" >&5
14749 echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6; }
14750 if test "${ac_cv_lib_c_crypt+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14753 ac_check_lib_save_LIBS=$LIBS
14755 cat >conftest.$ac_ext <<_ACEOF
14758 cat confdefs.h >>conftest.$ac_ext
14759 cat >>conftest.$ac_ext <<_ACEOF
14760 /* end confdefs.h. */
14762 /* Override any GCC internal prototype to avoid an error.
14763 Use char because int might match the return type of a GCC
14764 builtin and then its argument prototype would still apply. */
14777 rm -f conftest.$ac_objext conftest$ac_exeext
14778 if { (ac_try="$ac_link"
14779 case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_link") 2>conftest.er1
14786 grep -v '^ *+' conftest.er1 >conftest.err
14788 cat conftest.err >&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } && {
14791 test -z "$ac_c_werror_flag" ||
14792 test ! -s conftest.err
14793 } && test -s conftest$ac_exeext &&
14794 $as_test_x conftest$ac_exeext; then
14795 ac_cv_lib_c_crypt=yes
14797 echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14800 ac_cv_lib_c_crypt=no
14803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14804 conftest$ac_exeext conftest.$ac_ext
14805 LIBS=$ac_check_lib_save_LIBS
14807 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
14808 echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6; }
14809 if test $ac_cv_lib_c_crypt = yes; then
14813 if test "$have_crypt" = no ; then
14814 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
14815 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
14816 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
14817 echo $ECHO_N "(cached) $ECHO_C" >&6
14819 ac_check_lib_save_LIBS=$LIBS
14820 LIBS="-lcrypt $LIBS"
14821 cat >conftest.$ac_ext <<_ACEOF
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h. */
14828 /* Override any GCC internal prototype to avoid an error.
14829 Use char because int might match the return type of a GCC
14830 builtin and then its argument prototype would still apply. */
14843 rm -f conftest.$ac_objext conftest$ac_exeext
14844 if { (ac_try="$ac_link"
14845 case "(($ac_try" in
14846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850 (eval "$ac_link") 2>conftest.er1
14852 grep -v '^ *+' conftest.er1 >conftest.err
14854 cat conftest.err >&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } && {
14857 test -z "$ac_c_werror_flag" ||
14858 test ! -s conftest.err
14859 } && test -s conftest$ac_exeext &&
14860 $as_test_x conftest$ac_exeext; then
14861 ac_cv_lib_crypt_crypt=yes
14863 echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14866 ac_cv_lib_crypt_crypt=no
14869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14870 conftest$ac_exeext conftest.$ac_ext
14871 LIBS=$ac_check_lib_save_LIBS
14873 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
14874 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
14875 if test $ac_cv_lib_crypt_crypt = yes; then
14876 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
14883 # Most of the above shadow mechanisms will have set need_setuid to yes,
14884 # if they were found. But, on some systems, we need setuid even when
14885 # using plain old vanilla passwords.
14887 if test "$enable_locking" = yes ; then
14889 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
14896 if test "$have_shadow_adjunct" = yes ; then
14897 cat >>confdefs.h <<\_ACEOF
14898 #define HAVE_ADJUNCT_PASSWD 1
14901 elif test "$have_shadow_enhanced" = yes ; then
14902 cat >>confdefs.h <<\_ACEOF
14903 #define HAVE_ENHANCED_PASSWD 1
14906 elif test "$have_shadow_hpux" = yes ; then
14907 cat >>confdefs.h <<\_ACEOF
14908 #define HAVE_HPUX_PASSWD 1
14911 elif test "$have_shadow" = yes ; then
14912 cat >>confdefs.h <<\_ACEOF
14913 #define HAVE_SHADOW_PASSWD 1
14919 ###############################################################################
14921 # Check for external password helper
14922 # On SuSE, instead of having xscreensaver be a setuid program, they
14923 # fork an external program that takes the password on stdin, and
14924 # returns true if that password is a valid one. Then only that
14925 # smaller program needs to be setuid.
14927 # (Note that this external program is not a GUI: the GUI is still
14928 # all in xscreensaver itself; the external program just does auth.)
14930 ###############################################################################
14932 have_passwd_helper=no
14933 with_passwd_helper_req=unspecified
14936 # Check whether --with-passwd-helper was given.
14937 if test "${with_passwd_helper+set}" = set; then
14938 withval=$with_passwd_helper; with_passwd_helper="$withval"; with_passwd_helper_req="$withval"
14940 with_passwd_helper=no
14943 # no HANDLE_X_PATH_ARG for this one
14945 if test "$enable_locking" = no ; then
14946 with_passwd_helper_req=no
14947 with_passwd_helper=no
14950 case "$with_passwd_helper" in
14953 cat >>confdefs.h <<_ACEOF
14954 #define PASSWD_HELPER_PROGRAM "$with_passwd_helper"
14957 have_passwd_helper=yes;;
14959 echo "error: --with-passwd-helper needs full pathname of helper (not '$with_passwd_helper')." >&2
14964 ###############################################################################
14966 # Check for a login manager for a "New Login" button on the lock dialog.
14967 # Usually this will be "/usr/bin/gdmflexiserver".
14969 ###############################################################################
14971 have_login_manager=no
14972 with_login_manager_req=unspecified
14973 default_login_manager='gdmflexiserver -ls'
14976 # Check whether --with-login-manager was given.
14977 if test "${with_login_manager+set}" = set; then
14978 withval=$with_login_manager; with_login_manager="$withval"; with_login_manager_req="$withval"
14980 with_login_manager=no
14983 # no HANDLE_X_PATH_ARG for this one
14985 if test "$enable_locking" = no ; then
14986 with_login_manager_req=no
14987 with_login_manager=no
14990 if test -n "$with_login_manager_req" ; then
14991 ac_cv_login_manager_program=""
14993 if test "$with_login_manager_req" = "yes" ; then
14994 with_login_manager_req=$default_login_manager
14997 case "$with_login_manager_req" in
14999 with_login_manager=""
15003 set dummy $with_login_manager_req ; login_manager_tmp=$2
15004 { echo "$as_me:$LINENO: checking for $login_manager_tmp" >&5
15005 echo $ECHO_N "checking for $login_manager_tmp... $ECHO_C" >&6; }
15006 if test -x "$login_manager_tmp" ; then
15007 { echo "$as_me:$LINENO: result: yes" >&5
15008 echo "${ECHO_T}yes" >&6; }
15010 { echo "$as_me:$LINENO: result: no" >&5
15011 echo "${ECHO_T}no" >&6; }
15012 with_login_manager=""
15017 set dummy $with_login_manager_req ; login_manager_tmp=$2
15019 unset ac_cv_path_login_manager_tmp
15020 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
15021 set dummy $login_manager_tmp; ac_word=$2
15022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15024 if test "${ac_cv_path_login_manager_tmp+set}" = set; then
15025 echo $ECHO_N "(cached) $ECHO_C" >&6
15027 case $login_manager_tmp in
15029 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
15032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15033 for as_dir in $PATH
15036 test -z "$as_dir" && as_dir=.
15037 for ac_exec_ext in '' $ac_executable_extensions; do
15038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15039 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
15040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15050 login_manager_tmp=$ac_cv_path_login_manager_tmp
15051 if test -n "$login_manager_tmp"; then
15052 { echo "$as_me:$LINENO: result: $login_manager_tmp" >&5
15053 echo "${ECHO_T}$login_manager_tmp" >&6; }
15055 { echo "$as_me:$LINENO: result: no" >&5
15056 echo "${ECHO_T}no" >&6; }
15060 if test -z "$login_manager_tmp" ; then
15061 with_login_manager=""
15063 with_login_manager="$login_manager_tmp"
15067 ac_cv_login_manager_program="$with_login_manager"
15069 elif test -n "$ac_cv_login_manager_program"; then
15070 { echo "$as_me:$LINENO: result: checking for login_manager... (cached) $ac_cv_login_manager_program" >&5
15071 echo "${ECHO_T}checking for login_manager... (cached) $ac_cv_login_manager_program" >&6; }
15074 NEW_LOGIN_COMMAND_P=''
15075 NEW_LOGIN_COMMAND="$ac_cv_login_manager_program"
15077 if test -z "$NEW_LOGIN_COMMAND" ; then
15078 NEW_LOGIN_COMMAND="$default_login_manager"
15079 NEW_LOGIN_COMMAND_P='! '
15084 ###############################################################################
15086 # Check for -lgtk (and Gnome stuff)
15088 ###############################################################################
15091 with_gtk_req=unspecified
15093 # Check whether --with-gtk was given.
15094 if test "${with_gtk+set}" = set; then
15095 withval=$with_gtk; with_gtk="$withval"; with_gtk_req="$withval"
15101 # if --with-gtk=/directory/ was specified, remember that directory so that
15102 # we can also look for the `gtk-config' program in that directory.
15103 case "$with_gtk" in
15105 gtk_dir="$with_gtk"
15113 case "$with_gtk" in
15118 { echo "$as_me:$LINENO: checking for Gtk headers" >&5
15119 echo $ECHO_N "checking for Gtk headers... $ECHO_C" >&6; }
15120 d=$with_gtk/include
15121 if test -d $d; then
15122 X_CFLAGS="-I$d $X_CFLAGS"
15123 { echo "$as_me:$LINENO: result: $d" >&5
15124 echo "${ECHO_T}$d" >&6; }
15126 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15127 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
15130 { echo "$as_me:$LINENO: checking for Gtk libs" >&5
15131 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6; }
15133 if test -d $d; then
15134 X_LIBS="-L$d $X_LIBS"
15135 { echo "$as_me:$LINENO: result: $d" >&5
15136 echo "${ECHO_T}$d" >&6; }
15138 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15139 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
15142 # replace the directory string with "yes".
15144 with_gtk=$with_gtk_req
15149 echo "error: argument to --with-gtk must be \"yes\", \"no\", or a directory."
15150 echo " If it is a directory, then \`DIR/include' will be added to"
15151 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15157 if test "$with_gtk" != yes -a "$with_gtk" != no ; then
15158 echo "error: must be yes or no: --with-gtk=$with_gtk"
15163 parse_gtk_version_string() {
15166 maj=`echo $ac_gtk_version_string | sed -n 's/\..*//p'`
15167 min=`echo $ac_gtk_version_string | sed -n 's/[^.]*\.\([^.]*\).*/\1/p'`
15169 ac_gtk_version=`echo "$maj * 1000 + $min" | bc`
15170 if test -z "$ac_gtk_version"; then
15171 ac_gtk_version=unknown
15172 ac_gtk_version_string=unknown
15176 # Find pkg-config... (need this for both gtk and gdk_pixbuf.)
15177 # if the user specified --with-gtk=/foo/ then look there.
15180 if test ! -z "$gtk_dir"; then
15181 # canonicalize slashes.
15182 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
15183 gtk_path="$foo:$gtk_path"
15186 for ac_prog in pkg-config
15188 # Extract the first word of "$ac_prog", so it can be a program name with args.
15189 set dummy $ac_prog; ac_word=$2
15190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15192 if test "${ac_cv_path_pkg_config+set}" = set; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15195 case $pkg_config in
15197 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path.
15200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15201 for as_dir in $gtk_path
15204 test -z "$as_dir" && as_dir=.
15205 for ac_exec_ext in '' $ac_executable_extensions; do
15206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15207 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext"
15208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15218 pkg_config=$ac_cv_path_pkg_config
15219 if test -n "$pkg_config"; then
15220 { echo "$as_me:$LINENO: result: $pkg_config" >&5
15221 echo "${ECHO_T}$pkg_config" >&6; }
15223 { echo "$as_me:$LINENO: result: no" >&5
15224 echo "${ECHO_T}no" >&6; }
15228 test -n "$pkg_config" && break
15232 if test -z "$pkg_config" ; then
15233 { echo "$as_me:$LINENO: WARNING: pkg-config not found!" >&5
15234 echo "$as_me: WARNING: pkg-config not found!" >&2;}
15239 # Utility function for running pkg-config-based tests...
15242 pkg_check_version() {
15243 if test "$ok" = yes ; then
15246 { echo "$as_me:$LINENO: checking for $req" >&5
15247 echo $ECHO_N "checking for $req... $ECHO_C" >&6; }
15248 if $pkg_config --exists "$req" ; then
15249 vers=`$pkg_config --modversion "$req"`
15250 if $pkg_config --exists "$req >= $min" ; then
15251 { echo "$as_me:$LINENO: result: $vers" >&5
15252 echo "${ECHO_T}$vers" >&6; }
15256 { echo "$as_me:$LINENO: result: $vers (wanted >= $min)" >&5
15257 echo "${ECHO_T}$vers (wanted >= $min)" >&6; }
15262 { echo "$as_me:$LINENO: result: no" >&5
15263 echo "${ECHO_T}no" >&6; }
15274 #if test "$with_gtk" = yes; then
15278 pkg_check_version gtk+-2.0 2.0.1 ; ac_gtk_version_string="$vers"
15279 pkg_check_version gmodule-2.0 2.0.0
15280 pkg_check_version libxml-2.0 2.4.6
15281 pkg_check_version libglade-2.0 1.99.0
15282 pkg_check_version gdk-pixbuf-2.0 2.0.0
15283 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
15286 if test "$have_gtk" = no; then
15287 if test -n "$ac_gtk_version_string" ; then
15288 gtk_halfassed="$ac_gtk_version_string"
15289 gtk_halfassed_lib="$req"
15293 if test "$have_gtk" = yes; then
15294 parse_gtk_version_string
15298 if test "$have_gtk" = yes; then
15299 { echo "$as_me:$LINENO: checking for Gtk includes" >&5
15300 echo $ECHO_N "checking for Gtk includes... $ECHO_C" >&6; }
15301 if test "${ac_cv_gtk_config_cflags+set}" = set; then
15302 echo $ECHO_N "(cached) $ECHO_C" >&6
15304 ac_cv_gtk_config_cflags=`$pkg_config --cflags $pkgs`
15306 { echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
15307 echo "${ECHO_T}$ac_cv_gtk_config_cflags" >&6; }
15308 { echo "$as_me:$LINENO: checking for Gtk libs" >&5
15309 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6; }
15310 if test "${ac_cv_gtk_config_libs+set}" = set; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 ac_cv_gtk_config_libs=`$pkg_config --libs $pkgs`
15315 { echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
15316 echo "${ECHO_T}$ac_cv_gtk_config_libs" >&6; }
15319 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
15320 ac_gtk_config_libs=$ac_cv_gtk_config_libs
15324 if test "$have_gtk" = yes; then
15325 GTK_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
15326 GTK_DATADIR="$GTK_DATADIR/share"
15329 if test "$have_gtk" = yes; then
15330 INCLUDES="$INCLUDES $ac_gtk_config_cflags"
15331 GTK_LIBS="$GTK_LIBS $ac_gtk_config_libs"
15332 cat >>confdefs.h <<\_ACEOF
15336 cat >>confdefs.h <<\_ACEOF
15337 #define HAVE_GTK2 1
15340 cat >>confdefs.h <<\_ACEOF
15348 { echo "$as_me:$LINENO: checking for DBUS includes" >&5
15349 echo $ECHO_N "checking for DBUS includes... $ECHO_C" >&6; }
15350 if test "${ac_cv_dbus_config_cflags+set}" = set; then
15351 echo $ECHO_N "(cached) $ECHO_C" >&6
15353 ac_cv_dbus_config_cflags=`$pkg_config --cflags dbus-1`
15355 { echo "$as_me:$LINENO: result: $ac_cv_dbus_config_cflags" >&5
15356 echo "${ECHO_T}$ac_cv_dbus_config_cflags" >&6; }
15357 { echo "$as_me:$LINENO: checking for DBUS includes" >&5
15358 echo $ECHO_N "checking for DBUS includes... $ECHO_C" >&6; }
15359 if test "${ac_cv_dbus_config_libs+set}" = set; then
15360 echo $ECHO_N "(cached) $ECHO_C" >&6
15362 ac_cv_dbus_config_libs=`$pkg_config --libs dbus-1`
15364 { echo "$as_me:$LINENO: result: $ac_cv_dbus_config_libs" >&5
15365 echo "${ECHO_T}$ac_cv_dbus_config_libs" >&6; }
15367 ac_dbus_config_cflags=$ac_cv_dbus_config_cflags
15368 ac_dbus_config_libs=$ac_cv_dbus_config_libs
15370 INCLUDES="$INCLUDES $ac_dbus_config_cflags"
15371 DBUS_LIBS="$GTK_LIBS $ac_dbus_config_libs"
15375 # Check for the various Gnome help and URL loading programs.
15377 WITH_BROWSER=gnome-open
15378 if test "$have_gtk" = yes; then
15379 for ac_prog in gnome-open
15381 # Extract the first word of "$ac_prog", so it can be a program name with args.
15382 set dummy $ac_prog; ac_word=$2
15383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15385 if test "${ac_cv_prog_gnome_open_program+set}" = set; then
15386 echo $ECHO_N "(cached) $ECHO_C" >&6
15388 if test -n "$gnome_open_program"; then
15389 ac_cv_prog_gnome_open_program="$gnome_open_program" # Let the user override the test.
15391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15392 for as_dir in $PATH
15395 test -z "$as_dir" && as_dir=.
15396 for ac_exec_ext in '' $ac_executable_extensions; do
15397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15398 ac_cv_prog_gnome_open_program="$ac_prog"
15399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15408 gnome_open_program=$ac_cv_prog_gnome_open_program
15409 if test -n "$gnome_open_program"; then
15410 { echo "$as_me:$LINENO: result: $gnome_open_program" >&5
15411 echo "${ECHO_T}$gnome_open_program" >&6; }
15413 { echo "$as_me:$LINENO: result: no" >&5
15414 echo "${ECHO_T}no" >&6; }
15418 test -n "$gnome_open_program" && break
15421 for ac_prog in gnome-url-show
15423 # Extract the first word of "$ac_prog", so it can be a program name with args.
15424 set dummy $ac_prog; ac_word=$2
15425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15427 if test "${ac_cv_prog_gnome_url_show_program+set}" = set; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15430 if test -n "$gnome_url_show_program"; then
15431 ac_cv_prog_gnome_url_show_program="$gnome_url_show_program" # Let the user override the test.
15433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15434 for as_dir in $PATH
15437 test -z "$as_dir" && as_dir=.
15438 for ac_exec_ext in '' $ac_executable_extensions; do
15439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15440 ac_cv_prog_gnome_url_show_program="$ac_prog"
15441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15450 gnome_url_show_program=$ac_cv_prog_gnome_url_show_program
15451 if test -n "$gnome_url_show_program"; then
15452 { echo "$as_me:$LINENO: result: $gnome_url_show_program" >&5
15453 echo "${ECHO_T}$gnome_url_show_program" >&6; }
15455 { echo "$as_me:$LINENO: result: no" >&5
15456 echo "${ECHO_T}no" >&6; }
15460 test -n "$gnome_url_show_program" && break
15466 ###############################################################################
15470 ###############################################################################
15473 with_motif_req=unspecified
15475 # Check whether --with-motif was given.
15476 if test "${with_motif+set}" = set; then
15477 withval=$with_motif; with_motif="$withval"; with_motif_req="$withval"
15484 case "$with_motif" in
15489 { echo "$as_me:$LINENO: checking for Motif headers" >&5
15490 echo $ECHO_N "checking for Motif headers... $ECHO_C" >&6; }
15491 d=$with_motif/include
15492 if test -d $d; then
15493 X_CFLAGS="-I$d $X_CFLAGS"
15494 { echo "$as_me:$LINENO: result: $d" >&5
15495 echo "${ECHO_T}$d" >&6; }
15497 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15498 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
15501 { echo "$as_me:$LINENO: checking for Motif libs" >&5
15502 echo $ECHO_N "checking for Motif libs... $ECHO_C" >&6; }
15504 if test -d $d; then
15505 X_LIBS="-L$d $X_LIBS"
15506 { echo "$as_me:$LINENO: result: $d" >&5
15507 echo "${ECHO_T}$d" >&6; }
15509 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15510 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
15513 # replace the directory string with "yes".
15514 with_motif_req="yes"
15515 with_motif=$with_motif_req
15520 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
15521 echo " If it is a directory, then \`DIR/include' will be added to"
15522 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15528 if test "$with_motif" != yes -a "$with_motif" != no ; then
15529 echo "error: must be yes or no: --with-motif=$with_motif"
15533 if test "$with_motif" = yes; then
15536 ac_save_CPPFLAGS="$CPPFLAGS"
15537 if test \! -z "$includedir" ; then
15538 CPPFLAGS="$CPPFLAGS -I$includedir"
15540 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15541 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15542 { echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
15543 echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6; }
15544 if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
15545 echo $ECHO_N "(cached) $ECHO_C" >&6
15547 cat >conftest.$ac_ext <<_ACEOF
15550 cat confdefs.h >>conftest.$ac_ext
15551 cat >>conftest.$ac_ext <<_ACEOF
15552 /* end confdefs.h. */
15553 #include <stdlib.h>
15555 #include <X11/Intrinsic.h>
15559 rm -f conftest.$ac_objext
15560 if { (ac_try="$ac_compile"
15561 case "(($ac_try" in
15562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563 *) ac_try_echo=$ac_try;;
15565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566 (eval "$ac_compile") 2>conftest.er1
15568 grep -v '^ *+' conftest.er1 >conftest.err
15570 cat conftest.err >&5
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); } && {
15573 test -z "$ac_c_werror_flag" ||
15574 test ! -s conftest.err
15575 } && test -s conftest.$ac_objext; then
15576 ac_cv_header_Xm_Xm_h=yes
15578 echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15581 ac_cv_header_Xm_Xm_h=no
15584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15586 { echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
15587 echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6; }
15588 if test $ac_cv_header_Xm_Xm_h = yes; then
15590 cat >>confdefs.h <<\_ACEOF
15591 #define HAVE_MOTIF 1
15594 MOTIF_LIBS="$MOTIF_LIBS -lXm"
15598 CPPFLAGS="$ac_save_CPPFLAGS"
15602 if test "$have_motif" = yes; then
15604 ac_save_CPPFLAGS="$CPPFLAGS"
15605 if test \! -z "$includedir" ; then
15606 CPPFLAGS="$CPPFLAGS -I$includedir"
15608 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15609 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15610 { echo "$as_me:$LINENO: checking for Xm/ComboBox.h" >&5
15611 echo $ECHO_N "checking for Xm/ComboBox.h... $ECHO_C" >&6; }
15612 if test "${ac_cv_header_Xm_ComboBox_h+set}" = set; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15615 cat >conftest.$ac_ext <<_ACEOF
15618 cat confdefs.h >>conftest.$ac_ext
15619 cat >>conftest.$ac_ext <<_ACEOF
15620 /* end confdefs.h. */
15621 #include <stdlib.h>
15623 #include <X11/Intrinsic.h>
15625 #include <Xm/ComboBox.h>
15627 rm -f conftest.$ac_objext
15628 if { (ac_try="$ac_compile"
15629 case "(($ac_try" in
15630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631 *) ac_try_echo=$ac_try;;
15633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15634 (eval "$ac_compile") 2>conftest.er1
15636 grep -v '^ *+' conftest.er1 >conftest.err
15638 cat conftest.err >&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); } && {
15641 test -z "$ac_c_werror_flag" ||
15642 test ! -s conftest.err
15643 } && test -s conftest.$ac_objext; then
15644 ac_cv_header_Xm_ComboBox_h=yes
15646 echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15649 ac_cv_header_Xm_ComboBox_h=no
15652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15654 { echo "$as_me:$LINENO: result: $ac_cv_header_Xm_ComboBox_h" >&5
15655 echo "${ECHO_T}$ac_cv_header_Xm_ComboBox_h" >&6; }
15656 if test $ac_cv_header_Xm_ComboBox_h = yes; then
15657 cat >>confdefs.h <<\_ACEOF
15658 #define HAVE_XMCOMBOBOX 1
15664 CPPFLAGS="$ac_save_CPPFLAGS"
15668 ###############################################################################
15670 # Checking whether Motif is really Lesstif.
15672 ###############################################################################
15675 if test "$have_motif" = yes ; then
15676 { echo "$as_me:$LINENO: checking whether Motif is really LessTif" >&5
15677 echo $ECHO_N "checking whether Motif is really LessTif... $ECHO_C" >&6; }
15678 if test "${ac_cv_have_lesstif+set}" = set; then
15679 echo $ECHO_N "(cached) $ECHO_C" >&6
15682 ac_save_CPPFLAGS="$CPPFLAGS"
15683 if test \! -z "$includedir" ; then
15684 CPPFLAGS="$CPPFLAGS -I$includedir"
15686 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15687 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15688 cat >conftest.$ac_ext <<_ACEOF
15691 cat confdefs.h >>conftest.$ac_ext
15692 cat >>conftest.$ac_ext <<_ACEOF
15693 /* end confdefs.h. */
15698 long vers = LesstifVersion;
15703 rm -f conftest.$ac_objext
15704 if { (ac_try="$ac_compile"
15705 case "(($ac_try" in
15706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707 *) ac_try_echo=$ac_try;;
15709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15710 (eval "$ac_compile") 2>conftest.er1
15712 grep -v '^ *+' conftest.er1 >conftest.err
15714 cat conftest.err >&5
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); } && {
15717 test -z "$ac_c_werror_flag" ||
15718 test ! -s conftest.err
15719 } && test -s conftest.$ac_objext; then
15720 ac_cv_have_lesstif=yes
15722 echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15725 ac_cv_have_lesstif=no
15728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15729 CPPFLAGS="$ac_save_CPPFLAGS"
15731 { echo "$as_me:$LINENO: result: $ac_cv_have_lesstif" >&5
15732 echo "${ECHO_T}$ac_cv_have_lesstif" >&6; }
15733 have_lesstif=$ac_cv_have_lesstif
15737 lesstif_version=unknown
15738 lesstif_version_string=unknown
15740 if test "$have_lesstif" = yes ; then
15742 echo unknown > conftest-lt
15743 { echo "$as_me:$LINENO: checking LessTif version number" >&5
15744 echo $ECHO_N "checking LessTif version number... $ECHO_C" >&6; }
15745 if test "${ac_cv_lesstif_version_string+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15749 ac_save_CPPFLAGS="$CPPFLAGS"
15750 if test \! -z "$includedir" ; then
15751 CPPFLAGS="$CPPFLAGS -I$includedir"
15753 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15754 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15755 if test "$cross_compiling" = yes; then
15756 ac_cv_lesstif_version=unknown
15757 ac_cv_lesstif_version_string=unknown
15759 cat >conftest.$ac_ext <<_ACEOF
15762 cat confdefs.h >>conftest.$ac_ext
15763 cat >>conftest.$ac_ext <<_ACEOF
15764 /* end confdefs.h. */
15768 FILE *f = fopen("conftest-lt", "w");
15770 fprintf(f, "%d %d.%d\n", LesstifVersion,
15771 LESSTIF_VERSION, LESSTIF_REVISION);
15776 rm -f conftest$ac_exeext
15777 if { (ac_try="$ac_link"
15778 case "(($ac_try" in
15779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780 *) ac_try_echo=$ac_try;;
15782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783 (eval "$ac_link") 2>&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15787 { (case "(($ac_try" in
15788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15789 *) ac_try_echo=$ac_try;;
15791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15792 (eval "$ac_try") 2>&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; }; then
15796 ltv=`cat conftest-lt`
15797 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
15798 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
15800 echo "$as_me: program exited with status $ac_status" >&5
15801 echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15804 ( exit $ac_status )
15805 ac_cv_lesstif_version=unknown
15806 ac_cv_lesstif_version_string=unknown
15808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15812 CPPFLAGS="$ac_save_CPPFLAGS"
15814 { echo "$as_me:$LINENO: result: $ac_cv_lesstif_version_string" >&5
15815 echo "${ECHO_T}$ac_cv_lesstif_version_string" >&6; }
15817 lesstif_version=$ac_cv_lesstif_version
15818 lesstif_version_string=$ac_cv_lesstif_version_string
15823 if test "$have_motif" = yes ; then
15825 echo unknown > conftest-mt
15826 { echo "$as_me:$LINENO: checking Motif version number" >&5
15827 echo $ECHO_N "checking Motif version number... $ECHO_C" >&6; }
15828 if test "${ac_cv_motif_version_string+set}" = set; then
15829 echo $ECHO_N "(cached) $ECHO_C" >&6
15832 ac_save_CPPFLAGS="$CPPFLAGS"
15833 if test \! -z "$includedir" ; then
15834 CPPFLAGS="$CPPFLAGS -I$includedir"
15836 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15837 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15838 if test "$cross_compiling" = yes; then
15839 ac_cv_motif_version=unknown
15840 ac_cv_motif_version_string=unknown
15842 cat >conftest.$ac_ext <<_ACEOF
15845 cat confdefs.h >>conftest.$ac_ext
15846 cat >>conftest.$ac_ext <<_ACEOF
15847 /* end confdefs.h. */
15851 FILE *f = fopen("conftest-mt", "w");
15853 fprintf(f, "%d %d.%d\n", XmVersion,
15854 XmVERSION, XmREVISION);
15859 rm -f conftest$ac_exeext
15860 if { (ac_try="$ac_link"
15861 case "(($ac_try" in
15862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15863 *) ac_try_echo=$ac_try;;
15865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15866 (eval "$ac_link") 2>&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15870 { (case "(($ac_try" in
15871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15872 *) ac_try_echo=$ac_try;;
15874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15875 (eval "$ac_try") 2>&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }; then
15879 mtv=`cat conftest-mt`
15880 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
15881 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
15883 echo "$as_me: program exited with status $ac_status" >&5
15884 echo "$as_me: failed program was:" >&5
15885 sed 's/^/| /' conftest.$ac_ext >&5
15887 ( exit $ac_status )
15888 ac_cv_motif_version=unknown
15889 ac_cv_motif_version_string=unknown
15891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15895 CPPFLAGS="$ac_save_CPPFLAGS"
15897 { echo "$as_me:$LINENO: result: $ac_cv_motif_version_string" >&5
15898 echo "${ECHO_T}$ac_cv_motif_version_string" >&6; }
15900 motif_version=$ac_cv_motif_version
15901 motif_version_string=$ac_cv_motif_version_string
15906 ###############################################################################
15908 # Checking whether Motif requires -lXpm.
15910 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
15911 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
15912 # of the library whether to build the XPM code into libXm, or whether
15913 # to rely on an external libXm. So the only way to tell whether XPM is
15914 # a link-time requirement is to examine libXm.a, which is very
15915 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
15916 # always link against XPM if the XPM lib exists (and this will be a
15917 # no-op if libXm happens to already have the XPM code in it.)
15919 ###############################################################################
15921 motif_requires_xpm=no
15922 if test "$have_motif" = yes ; then
15923 { echo "$as_me:$LINENO: checking whether Motif requires XPM" >&5
15924 echo $ECHO_N "checking whether Motif requires XPM... $ECHO_C" >&6; }
15925 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
15927 motif_requires_xpm=yes
15928 { echo "$as_me:$LINENO: result: maybe" >&5
15929 echo "${ECHO_T}maybe" >&6; }
15931 { echo "$as_me:$LINENO: result: no" >&5
15932 echo "${ECHO_T}no" >&6; }
15937 ###############################################################################
15939 # Checking whether Motif requires -lXp.
15941 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
15942 # Extension". Why this extension isn't in -lXext with all the others,
15945 ###############################################################################
15948 if test "$have_motif" = yes ; then
15951 ac_save_CPPFLAGS="$CPPFLAGS"
15952 ac_save_LDFLAGS="$LDFLAGS"
15953 # ac_save_LIBS="$LIBS"
15955 if test \! -z "$includedir" ; then
15956 CPPFLAGS="$CPPFLAGS -I$includedir"
15958 # note: $X_CFLAGS includes $x_includes
15959 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15961 if test \! -z "$libdir" ; then
15962 LDFLAGS="$LDFLAGS -L$libdir"
15964 # note: $X_LIBS includes $x_libraries
15965 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15967 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15968 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
15969 { echo "$as_me:$LINENO: checking for XpQueryExtension in -lXp" >&5
15970 echo $ECHO_N "checking for XpQueryExtension in -lXp... $ECHO_C" >&6; }
15971 if test "${ac_cv_lib_Xp_XpQueryExtension+set}" = set; then
15972 echo $ECHO_N "(cached) $ECHO_C" >&6
15974 ac_check_lib_save_LIBS=$LIBS
15975 LIBS="-lXp -lX11 -lXext -lm $LIBS"
15976 cat >conftest.$ac_ext <<_ACEOF
15979 cat confdefs.h >>conftest.$ac_ext
15980 cat >>conftest.$ac_ext <<_ACEOF
15981 /* end confdefs.h. */
15983 /* Override any GCC internal prototype to avoid an error.
15984 Use char because int might match the return type of a GCC
15985 builtin and then its argument prototype would still apply. */
15989 char XpQueryExtension ();
15993 return XpQueryExtension ();
15998 rm -f conftest.$ac_objext conftest$ac_exeext
15999 if { (ac_try="$ac_link"
16000 case "(($ac_try" in
16001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16002 *) ac_try_echo=$ac_try;;
16004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16005 (eval "$ac_link") 2>conftest.er1
16007 grep -v '^ *+' conftest.er1 >conftest.err
16009 cat conftest.err >&5
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } && {
16012 test -z "$ac_c_werror_flag" ||
16013 test ! -s conftest.err
16014 } && test -s conftest$ac_exeext &&
16015 $as_test_x conftest$ac_exeext; then
16016 ac_cv_lib_Xp_XpQueryExtension=yes
16018 echo "$as_me: failed program was:" >&5
16019 sed 's/^/| /' conftest.$ac_ext >&5
16021 ac_cv_lib_Xp_XpQueryExtension=no
16024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16025 conftest$ac_exeext conftest.$ac_ext
16026 LIBS=$ac_check_lib_save_LIBS
16028 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
16029 echo "${ECHO_T}$ac_cv_lib_Xp_XpQueryExtension" >&6; }
16030 if test $ac_cv_lib_Xp_XpQueryExtension = yes; then
16031 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
16036 CPPFLAGS="$ac_save_CPPFLAGS"
16037 LDFLAGS="$ac_save_LDFLAGS"
16038 # LIBS="$ac_save_LIBS"
16043 ###############################################################################
16045 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
16047 ###############################################################################
16050 if test "$have_motif" = yes ; then
16052 ac_save_CPPFLAGS="$CPPFLAGS"
16053 ac_save_LDFLAGS="$LDFLAGS"
16054 # ac_save_LIBS="$LIBS"
16056 if test \! -z "$includedir" ; then
16057 CPPFLAGS="$CPPFLAGS -I$includedir"
16059 # note: $X_CFLAGS includes $x_includes
16060 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16062 if test \! -z "$libdir" ; then
16063 LDFLAGS="$LDFLAGS -L$libdir"
16065 # note: $X_LIBS includes $x_libraries
16066 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16068 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16069 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
16070 { echo "$as_me:$LINENO: checking for _Xsetlocale in -lXintl" >&5
16071 echo $ECHO_N "checking for _Xsetlocale in -lXintl... $ECHO_C" >&6; }
16072 if test "${ac_cv_lib_Xintl__Xsetlocale+set}" = set; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16075 ac_check_lib_save_LIBS=$LIBS
16076 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
16077 cat >conftest.$ac_ext <<_ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16084 /* Override any GCC internal prototype to avoid an error.
16085 Use char because int might match the return type of a GCC
16086 builtin and then its argument prototype would still apply. */
16090 char _Xsetlocale ();
16094 return _Xsetlocale ();
16099 rm -f conftest.$ac_objext conftest$ac_exeext
16100 if { (ac_try="$ac_link"
16101 case "(($ac_try" in
16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106 (eval "$ac_link") 2>conftest.er1
16108 grep -v '^ *+' conftest.er1 >conftest.err
16110 cat conftest.err >&5
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); } && {
16113 test -z "$ac_c_werror_flag" ||
16114 test ! -s conftest.err
16115 } && test -s conftest$ac_exeext &&
16116 $as_test_x conftest$ac_exeext; then
16117 ac_cv_lib_Xintl__Xsetlocale=yes
16119 echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.$ac_ext >&5
16122 ac_cv_lib_Xintl__Xsetlocale=no
16125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16126 conftest$ac_exeext conftest.$ac_ext
16127 LIBS=$ac_check_lib_save_LIBS
16129 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
16130 echo "${ECHO_T}$ac_cv_lib_Xintl__Xsetlocale" >&6; }
16131 if test $ac_cv_lib_Xintl__Xsetlocale = yes; then
16137 CPPFLAGS="$ac_save_CPPFLAGS"
16138 LDFLAGS="$ac_save_LDFLAGS"
16139 # LIBS="$ac_save_LIBS"
16141 if test "$have_xintl" = yes; then
16142 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
16147 ###############################################################################
16149 # Check for -lGL or -lMesaGL.
16151 ###############################################################################
16155 with_gl_req=unspecified
16158 # Check whether --with-gl was given.
16159 if test "${with_gl+set}" = set; then
16160 withval=$with_gl; with_gl="$withval"; with_gl_req="$withval"
16172 { echo "$as_me:$LINENO: checking for GL headers" >&5
16173 echo $ECHO_N "checking for GL headers... $ECHO_C" >&6; }
16175 if test -d $d; then
16176 X_CFLAGS="-I$d $X_CFLAGS"
16177 { echo "$as_me:$LINENO: result: $d" >&5
16178 echo "${ECHO_T}$d" >&6; }
16180 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16181 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
16184 { echo "$as_me:$LINENO: checking for GL libs" >&5
16185 echo $ECHO_N "checking for GL libs... $ECHO_C" >&6; }
16187 if test -d $d; then
16188 X_LIBS="-L$d $X_LIBS"
16189 { echo "$as_me:$LINENO: result: $d" >&5
16190 echo "${ECHO_T}$d" >&6; }
16192 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16193 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
16196 # replace the directory string with "yes".
16198 with_gl=$with_gl_req
16203 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
16204 echo " If it is a directory, then \`DIR/include' will be added to"
16205 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16211 ac_mesagl_version=unknown
16212 ac_mesagl_version_string=unknown
16214 if test "$with_gl" = yes; then
16216 ac_save_CPPFLAGS="$CPPFLAGS"
16217 if test \! -z "$includedir" ; then
16218 CPPFLAGS="$CPPFLAGS -I$includedir"
16220 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16221 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16222 if test "${ac_cv_header_GL_gl_h+set}" = set; then
16223 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
16224 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
16225 if test "${ac_cv_header_GL_gl_h+set}" = set; then
16226 echo $ECHO_N "(cached) $ECHO_C" >&6
16228 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
16229 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
16231 # Is the header compilable?
16232 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
16233 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
16234 cat >conftest.$ac_ext <<_ACEOF
16237 cat confdefs.h >>conftest.$ac_ext
16238 cat >>conftest.$ac_ext <<_ACEOF
16239 /* end confdefs.h. */
16240 $ac_includes_default
16243 rm -f conftest.$ac_objext
16244 if { (ac_try="$ac_compile"
16245 case "(($ac_try" in
16246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16247 *) ac_try_echo=$ac_try;;
16249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16250 (eval "$ac_compile") 2>conftest.er1
16252 grep -v '^ *+' conftest.er1 >conftest.err
16254 cat conftest.err >&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } && {
16257 test -z "$ac_c_werror_flag" ||
16258 test ! -s conftest.err
16259 } && test -s conftest.$ac_objext; then
16260 ac_header_compiler=yes
16262 echo "$as_me: failed program was:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16265 ac_header_compiler=no
16268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16270 echo "${ECHO_T}$ac_header_compiler" >&6; }
16272 # Is the header present?
16273 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
16274 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
16275 cat >conftest.$ac_ext <<_ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h. */
16283 if { (ac_try="$ac_cpp conftest.$ac_ext"
16284 case "(($ac_try" in
16285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286 *) ac_try_echo=$ac_try;;
16288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16291 grep -v '^ *+' conftest.er1 >conftest.err
16293 cat conftest.err >&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } >/dev/null && {
16296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16297 test ! -s conftest.err
16299 ac_header_preproc=yes
16301 echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16304 ac_header_preproc=no
16307 rm -f conftest.err conftest.$ac_ext
16308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16309 echo "${ECHO_T}$ac_header_preproc" >&6; }
16311 # So? What about this header?
16312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16314 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16315 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16316 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
16317 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
16318 ac_header_preproc=yes
16321 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
16322 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
16323 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
16324 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
16325 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
16326 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
16327 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
16328 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16329 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
16330 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
16332 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
16336 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
16337 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
16338 if test "${ac_cv_header_GL_gl_h+set}" = set; then
16339 echo $ECHO_N "(cached) $ECHO_C" >&6
16341 ac_cv_header_GL_gl_h=$ac_header_preproc
16343 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
16344 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
16347 if test $ac_cv_header_GL_gl_h = yes; then
16354 CPPFLAGS="$ac_save_CPPFLAGS"
16355 if test "$have_gl" = yes ; then
16357 ac_save_CPPFLAGS="$CPPFLAGS"
16358 if test \! -z "$includedir" ; then
16359 CPPFLAGS="$CPPFLAGS -I$includedir"
16361 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16362 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16363 { echo "$as_me:$LINENO: checking for GL/glx.h" >&5
16364 echo $ECHO_N "checking for GL/glx.h... $ECHO_C" >&6; }
16365 if test "${ac_cv_header_GL_glx_h+set}" = set; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 cat >conftest.$ac_ext <<_ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16376 #include <GL/glx.h>
16378 rm -f conftest.$ac_objext
16379 if { (ac_try="$ac_compile"
16380 case "(($ac_try" in
16381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382 *) ac_try_echo=$ac_try;;
16384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385 (eval "$ac_compile") 2>conftest.er1
16387 grep -v '^ *+' conftest.er1 >conftest.err
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } && {
16392 test -z "$ac_c_werror_flag" ||
16393 test ! -s conftest.err
16394 } && test -s conftest.$ac_objext; then
16395 ac_cv_header_GL_glx_h=yes
16397 echo "$as_me: failed program was:" >&5
16398 sed 's/^/| /' conftest.$ac_ext >&5
16400 ac_cv_header_GL_glx_h=no
16403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16405 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5
16406 echo "${ECHO_T}$ac_cv_header_GL_glx_h" >&6; }
16407 if test $ac_cv_header_GL_glx_h = yes; then
16414 CPPFLAGS="$ac_save_CPPFLAGS"
16417 # If we have the headers, try and figure out which vendor it's from.
16419 if test "$have_gl" = yes ; then
16421 # We need to know whether it's MesaGL so that we know which libraries
16424 { echo "$as_me:$LINENO: checking whether GL is really MesaGL" >&5
16425 echo $ECHO_N "checking whether GL is really MesaGL... $ECHO_C" >&6; }
16426 if test "${ac_cv_have_mesa_gl+set}" = set; then
16427 echo $ECHO_N "(cached) $ECHO_C" >&6
16429 ac_cv_have_mesa_gl=no
16430 if test "$ac_macosx" = no; then
16431 # WTF! MacOS 10.5.0 ships the Mesa GL headers!
16432 # It's not really Mesa, is it?
16434 ac_save_CPPFLAGS="$CPPFLAGS"
16435 if test \! -z "$includedir" ; then
16436 CPPFLAGS="$CPPFLAGS -I$includedir"
16438 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16439 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16440 cat >conftest.$ac_ext <<_ACEOF
16443 cat confdefs.h >>conftest.$ac_ext
16444 cat >>conftest.$ac_ext <<_ACEOF
16445 /* end confdefs.h. */
16446 #include <GL/glx.h>
16449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16450 $EGREP "Mesa|MESA" >/dev/null 2>&1; then
16451 ac_cv_have_mesa_gl=yes
16455 CPPFLAGS="$ac_save_CPPFLAGS"
16458 { echo "$as_me:$LINENO: result: $ac_cv_have_mesa_gl" >&5
16459 echo "${ECHO_T}$ac_cv_have_mesa_gl" >&6; }
16460 ac_have_mesa_gl=$ac_cv_have_mesa_gl
16465 if test "$ac_macosx" = yes; then
16467 # Without these, every link against libGL gets a bunch of useless
16470 osx_crud="-bind_at_load -multiply_defined suppress"
16471 { echo "$as_me:$LINENO: result: adding \"$osx_crud\" to GL_LIBS" >&5
16472 echo "${ECHO_T}adding \"$osx_crud\" to GL_LIBS" >&6; }
16473 GL_LIBS="$GL_LIBS $osx_crud"
16476 # New lossage in 10.5.0: without this, we get:
16477 # ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
16479 osx_crud="/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
16480 osx_crud="-Wl,-dylib_file,${osx_crud}:${osx_crud}"
16482 { echo "$as_me:$LINENO: result: adding \"$osx_crud\" to GL_LIBS" >&5
16483 echo "${ECHO_T}adding \"$osx_crud\" to GL_LIBS" >&6; }
16484 GL_LIBS="$GL_LIBS $osx_crud"
16489 # Some versions of MesaGL are compiled to require -lpthread.
16490 # So if the Mesa headers exist, and -lpthread exists, then always
16491 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
16493 if test "$ac_have_mesa_gl" = yes; then
16494 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16495 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
16496 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
16497 echo $ECHO_N "(cached) $ECHO_C" >&6
16499 ac_check_lib_save_LIBS=$LIBS
16500 LIBS="-lpthread $LIBS"
16501 cat >conftest.$ac_ext <<_ACEOF
16504 cat confdefs.h >>conftest.$ac_ext
16505 cat >>conftest.$ac_ext <<_ACEOF
16506 /* end confdefs.h. */
16508 /* Override any GCC internal prototype to avoid an error.
16509 Use char because int might match the return type of a GCC
16510 builtin and then its argument prototype would still apply. */
16514 char pthread_create ();
16518 return pthread_create ();
16523 rm -f conftest.$ac_objext conftest$ac_exeext
16524 if { (ac_try="$ac_link"
16525 case "(($ac_try" in
16526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527 *) ac_try_echo=$ac_try;;
16529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530 (eval "$ac_link") 2>conftest.er1
16532 grep -v '^ *+' conftest.er1 >conftest.err
16534 cat conftest.err >&5
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); } && {
16537 test -z "$ac_c_werror_flag" ||
16538 test ! -s conftest.err
16539 } && test -s conftest$ac_exeext &&
16540 $as_test_x conftest$ac_exeext; then
16541 ac_cv_lib_pthread_pthread_create=yes
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16546 ac_cv_lib_pthread_pthread_create=no
16549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16550 conftest$ac_exeext conftest.$ac_ext
16551 LIBS=$ac_check_lib_save_LIBS
16553 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
16554 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
16555 if test $ac_cv_lib_pthread_pthread_create = yes; then
16556 GL_LIBS="-lpthread"
16562 # If we have Mesa headers, check to see if we can link against -lMesaGL.
16563 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
16564 # Else, warn that GL is busted. (We have the headers, but no libs.)
16567 if test "$ac_have_mesa_gl" = yes ; then
16569 ac_save_CPPFLAGS="$CPPFLAGS"
16570 ac_save_LDFLAGS="$LDFLAGS"
16571 # ac_save_LIBS="$LIBS"
16573 if test \! -z "$includedir" ; then
16574 CPPFLAGS="$CPPFLAGS -I$includedir"
16576 # note: $X_CFLAGS includes $x_includes
16577 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16579 if test \! -z "$libdir" ; then
16580 LDFLAGS="$LDFLAGS -L$libdir"
16582 # note: $X_LIBS includes $x_libraries
16583 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16585 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16586 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
16587 { echo "$as_me:$LINENO: checking for glXCreateContext in -lMesaGL" >&5
16588 echo $ECHO_N "checking for glXCreateContext in -lMesaGL... $ECHO_C" >&6; }
16589 if test "${ac_cv_lib_MesaGL_glXCreateContext+set}" = set; then
16590 echo $ECHO_N "(cached) $ECHO_C" >&6
16592 ac_check_lib_save_LIBS=$LIBS
16593 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
16594 cat >conftest.$ac_ext <<_ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h. */
16601 /* Override any GCC internal prototype to avoid an error.
16602 Use char because int might match the return type of a GCC
16603 builtin and then its argument prototype would still apply. */
16607 char glXCreateContext ();
16611 return glXCreateContext ();
16616 rm -f conftest.$ac_objext conftest$ac_exeext
16617 if { (ac_try="$ac_link"
16618 case "(($ac_try" in
16619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16620 *) ac_try_echo=$ac_try;;
16622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16623 (eval "$ac_link") 2>conftest.er1
16625 grep -v '^ *+' conftest.er1 >conftest.err
16627 cat conftest.err >&5
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); } && {
16630 test -z "$ac_c_werror_flag" ||
16631 test ! -s conftest.err
16632 } && test -s conftest$ac_exeext &&
16633 $as_test_x conftest$ac_exeext; then
16634 ac_cv_lib_MesaGL_glXCreateContext=yes
16636 echo "$as_me: failed program was:" >&5
16637 sed 's/^/| /' conftest.$ac_ext >&5
16639 ac_cv_lib_MesaGL_glXCreateContext=no
16642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16643 conftest$ac_exeext conftest.$ac_ext
16644 LIBS=$ac_check_lib_save_LIBS
16646 { echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
16647 echo "${ECHO_T}$ac_cv_lib_MesaGL_glXCreateContext" >&6; }
16648 if test $ac_cv_lib_MesaGL_glXCreateContext = yes; then
16650 GL_LIBS="-lMesaGL -lMesaGLU $VIDMODE_LIBS $GL_LIBS"
16653 CPPFLAGS="$ac_save_CPPFLAGS"
16654 LDFLAGS="$ac_save_LDFLAGS"
16655 # LIBS="$ac_save_LIBS"
16659 if test "$gl_lib_1" = "" ; then
16661 ac_save_CPPFLAGS="$CPPFLAGS"
16662 ac_save_LDFLAGS="$LDFLAGS"
16663 # ac_save_LIBS="$LIBS"
16665 if test \! -z "$includedir" ; then
16666 CPPFLAGS="$CPPFLAGS -I$includedir"
16668 # note: $X_CFLAGS includes $x_includes
16669 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16671 if test \! -z "$libdir" ; then
16672 LDFLAGS="$LDFLAGS -L$libdir"
16674 # note: $X_LIBS includes $x_libraries
16675 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16677 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16678 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
16679 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
16680 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
16681 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
16684 ac_check_lib_save_LIBS=$LIBS
16685 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
16686 cat >conftest.$ac_ext <<_ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16693 /* Override any GCC internal prototype to avoid an error.
16694 Use char because int might match the return type of a GCC
16695 builtin and then its argument prototype would still apply. */
16699 char glXCreateContext ();
16703 return glXCreateContext ();
16708 rm -f conftest.$ac_objext conftest$ac_exeext
16709 if { (ac_try="$ac_link"
16710 case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_link") 2>conftest.er1
16717 grep -v '^ *+' conftest.er1 >conftest.err
16719 cat conftest.err >&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); } && {
16722 test -z "$ac_c_werror_flag" ||
16723 test ! -s conftest.err
16724 } && test -s conftest$ac_exeext &&
16725 $as_test_x conftest$ac_exeext; then
16726 ac_cv_lib_GL_glXCreateContext=yes
16728 echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16731 ac_cv_lib_GL_glXCreateContext=no
16734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16735 conftest$ac_exeext conftest.$ac_ext
16736 LIBS=$ac_check_lib_save_LIBS
16738 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
16739 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
16740 if test $ac_cv_lib_GL_glXCreateContext = yes; then
16742 GL_LIBS="-lGL -lGLU $VIDMODE_LIBS $GL_LIBS"
16745 CPPFLAGS="$ac_save_CPPFLAGS"
16746 LDFLAGS="$ac_save_LDFLAGS"
16747 # LIBS="$ac_save_LIBS"
16751 if test "$gl_lib_1" = "" ; then
16752 # we have headers, but no libs -- bail.
16757 # linking works -- we can build the GL hacks.
16758 cat >>confdefs.h <<\_ACEOF
16762 if test "$ac_have_mesa_gl" = yes ; then
16763 cat >>confdefs.h <<\_ACEOF
16764 #define HAVE_MESA_GL 1
16772 # Now that we know we have GL headers and libs, do some more GL testing.
16775 if test "$have_gl" = yes ; then
16776 # If it's MesaGL, we'd like to issue a warning if the version number
16777 # is less than or equal to 2.6, because that version had a security bug.
16779 if test "$ac_have_mesa_gl" = yes; then
16781 { echo "$as_me:$LINENO: checking MesaGL version number" >&5
16782 echo $ECHO_N "checking MesaGL version number... $ECHO_C" >&6; }
16783 if test "${ac_cv_mesagl_version_string+set}" = set; then
16784 echo $ECHO_N "(cached) $ECHO_C" >&6
16786 cat > conftest.$ac_ext <<EOF
16787 #line 16787 "configure"
16788 #include "confdefs.h"
16790 #ifndef MESA_MAJOR_VERSION
16791 # include <GL/xmesa.h>
16792 # ifdef XMESA_MAJOR_VERSION
16793 /* Around Mesa 3.2, they took out the Mesa version number, so instead,
16794 we have to check the XMesa version number (the number of the X protocol
16795 support, which seems to be the same as the Mesa version number.)
16797 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
16798 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
16800 /* Oh great. Some time after 3.4, they took out the xmesa.h header file,
16801 so we have no way of telling what version of Mesa this is at all.
16802 So, we'll guess that the osmesa version (the "offscreen protocol")
16803 is less than or equal to the real mesa version number. Except that
16804 if OSmesa is 3.3, assume at least Mesa 3.4, since OSmesa was 3.3 in
16805 Mesa 3.4. And Mesa 3.3 had xmesa.h. What a complete load of shit!
16807 # include <GL/osmesa.h>
16808 # define MESA_MAJOR_VERSION OSMESA_MAJOR_VERSION
16809 # define MESA_MINOR_VERSION OSMESA_MINOR_VERSION or newer, probably?
16810 # if OSMESA_MAJOR_VERSION == 3 && OSMESA_MINOR_VERSION == 3
16811 # undef MESA_MINOR_VERSION
16812 # define MESA_MINOR_VERSION 4 or newer, probably?
16816 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
16819 ac_save_CPPFLAGS="$CPPFLAGS"
16820 if test \! -z "$includedir" ; then
16821 CPPFLAGS="$CPPFLAGS -I$includedir"
16823 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16825 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | grep configure:`
16829 mglv=`echo "$mglv" | sed -n \
16830 's/^configure: *\([0-9][0-9]*\) *\([0-9].*\)$/\1.\2/p'`
16833 rm -f conftest.$ac_ext
16835 CPPFLAGS="$ac_save_CPPFLAGS"
16837 if test "$mglv" = ""; then
16838 ac_mesagl_version=unknown
16839 ac_mesagl_version_string=unknown
16841 ac_mesagl_version_string="$mglv"
16844 maj=`echo "$mglv" | sed -n 's/^\([0-9][0-9]*\)\..*$/\1/p'`
16845 min=`echo "$mglv" | sed -n 's/^.*\.\([0-9][0-9]*\).*$/\1/p'`
16847 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
16848 if test -z "$ac_mesagl_version"; then
16849 ac_mesagl_version=unknown
16850 ac_mesagl_version_string=unknown
16853 ac_cv_mesagl_version=$ac_mesagl_version
16854 ac_cv_mesagl_version_string=$ac_mesagl_version_string
16857 { echo "$as_me:$LINENO: result: $ac_cv_mesagl_version_string" >&5
16858 echo "${ECHO_T}$ac_cv_mesagl_version_string" >&6; }
16859 ac_mesagl_version=$ac_cv_mesagl_version
16860 ac_mesagl_version_string=$ac_cv_mesagl_version_string
16864 # Check for OpenGL 1.1 features.
16867 ac_save_CPPFLAGS="$CPPFLAGS"
16868 ac_save_LDFLAGS="$LDFLAGS"
16869 # ac_save_LIBS="$LIBS"
16871 if test \! -z "$includedir" ; then
16872 CPPFLAGS="$CPPFLAGS -I$includedir"
16874 # note: $X_CFLAGS includes $x_includes
16875 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16877 if test \! -z "$libdir" ; then
16878 LDFLAGS="$LDFLAGS -L$libdir"
16880 # note: $X_LIBS includes $x_libraries
16881 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16883 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16884 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
16885 as_ac_Lib=`echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
16886 { echo "$as_me:$LINENO: checking for glBindTexture in -l$gl_lib_1" >&5
16887 echo $ECHO_N "checking for glBindTexture in -l$gl_lib_1... $ECHO_C" >&6; }
16888 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16891 ac_check_lib_save_LIBS=$LIBS
16892 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
16893 cat >conftest.$ac_ext <<_ACEOF
16896 cat confdefs.h >>conftest.$ac_ext
16897 cat >>conftest.$ac_ext <<_ACEOF
16898 /* end confdefs.h. */
16900 /* Override any GCC internal prototype to avoid an error.
16901 Use char because int might match the return type of a GCC
16902 builtin and then its argument prototype would still apply. */
16906 char glBindTexture ();
16910 return glBindTexture ();
16915 rm -f conftest.$ac_objext conftest$ac_exeext
16916 if { (ac_try="$ac_link"
16917 case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_link") 2>conftest.er1
16924 grep -v '^ *+' conftest.er1 >conftest.err
16926 cat conftest.err >&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); } && {
16929 test -z "$ac_c_werror_flag" ||
16930 test ! -s conftest.err
16931 } && test -s conftest$ac_exeext &&
16932 $as_test_x conftest$ac_exeext; then
16933 eval "$as_ac_Lib=yes"
16935 echo "$as_me: failed program was:" >&5
16936 sed 's/^/| /' conftest.$ac_ext >&5
16938 eval "$as_ac_Lib=no"
16941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16942 conftest$ac_exeext conftest.$ac_ext
16943 LIBS=$ac_check_lib_save_LIBS
16945 ac_res=`eval echo '${'$as_ac_Lib'}'`
16946 { echo "$as_me:$LINENO: result: $ac_res" >&5
16947 echo "${ECHO_T}$ac_res" >&6; }
16948 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16949 cat >>confdefs.h <<\_ACEOF
16950 #define HAVE_GLBINDTEXTURE 1
16957 CPPFLAGS="$ac_save_CPPFLAGS"
16958 LDFLAGS="$ac_save_LDFLAGS"
16959 # LIBS="$ac_save_LIBS"
16963 elif test "$with_gl" != no; then
16964 echo "error: must be yes or no: --with-gl=$with_gl"
16969 ###############################################################################
16973 ###############################################################################
16976 with_gle_req=unspecified
16979 # Check whether --with-gle was given.
16980 if test "${with_gle+set}" = set; then
16981 withval=$with_gle; with_gle="$withval"; with_gle_req="$withval"
16988 case "$with_gle" in
16993 { echo "$as_me:$LINENO: checking for GLE headers" >&5
16994 echo $ECHO_N "checking for GLE headers... $ECHO_C" >&6; }
16995 d=$with_gle/include
16996 if test -d $d; then
16997 X_CFLAGS="-I$d $X_CFLAGS"
16998 { echo "$as_me:$LINENO: result: $d" >&5
16999 echo "${ECHO_T}$d" >&6; }
17001 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17002 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
17005 { echo "$as_me:$LINENO: checking for GLE libs" >&5
17006 echo $ECHO_N "checking for GLE libs... $ECHO_C" >&6; }
17008 if test -d $d; then
17009 X_LIBS="-L$d $X_LIBS"
17010 { echo "$as_me:$LINENO: result: $d" >&5
17011 echo "${ECHO_T}$d" >&6; }
17013 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17014 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
17017 # replace the directory string with "yes".
17019 with_gle=$with_gle_req
17024 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
17025 echo " If it is a directory, then \`DIR/include' will be added to"
17026 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17034 if test "$have_gl" = no ; then
17036 elif test "$with_gle" = yes; then
17039 ac_save_CPPFLAGS="$CPPFLAGS"
17040 if test \! -z "$includedir" ; then
17041 CPPFLAGS="$CPPFLAGS -I$includedir"
17043 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17044 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17045 { echo "$as_me:$LINENO: checking for GL/gle.h" >&5
17046 echo $ECHO_N "checking for GL/gle.h... $ECHO_C" >&6; }
17047 if test "${ac_cv_header_GL_gle_h+set}" = set; then
17048 echo $ECHO_N "(cached) $ECHO_C" >&6
17050 cat >conftest.$ac_ext <<_ACEOF
17053 cat confdefs.h >>conftest.$ac_ext
17054 cat >>conftest.$ac_ext <<_ACEOF
17055 /* end confdefs.h. */
17058 #include <GL/gle.h>
17060 rm -f conftest.$ac_objext
17061 if { (ac_try="$ac_compile"
17062 case "(($ac_try" in
17063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064 *) ac_try_echo=$ac_try;;
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067 (eval "$ac_compile") 2>conftest.er1
17069 grep -v '^ *+' conftest.er1 >conftest.err
17071 cat conftest.err >&5
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); } && {
17074 test -z "$ac_c_werror_flag" ||
17075 test ! -s conftest.err
17076 } && test -s conftest.$ac_objext; then
17077 ac_cv_header_GL_gle_h=yes
17079 echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.$ac_ext >&5
17082 ac_cv_header_GL_gle_h=no
17085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17087 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gle_h" >&5
17088 echo "${ECHO_T}$ac_cv_header_GL_gle_h" >&6; }
17089 if test $ac_cv_header_GL_gle_h = yes; then
17096 CPPFLAGS="$ac_save_CPPFLAGS"
17097 if test "$have_gle3" = yes ; then
17101 ac_save_CPPFLAGS="$CPPFLAGS"
17102 if test \! -z "$includedir" ; then
17103 CPPFLAGS="$CPPFLAGS -I$includedir"
17105 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17106 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17107 { echo "$as_me:$LINENO: checking for GL/gutil.h" >&5
17108 echo $ECHO_N "checking for GL/gutil.h... $ECHO_C" >&6; }
17109 if test "${ac_cv_header_GL_gutil_h+set}" = set; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17112 cat >conftest.$ac_ext <<_ACEOF
17115 cat confdefs.h >>conftest.$ac_ext
17116 cat >>conftest.$ac_ext <<_ACEOF
17117 /* end confdefs.h. */
17120 #include <GL/gutil.h>
17122 rm -f conftest.$ac_objext
17123 if { (ac_try="$ac_compile"
17124 case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17129 (eval "$ac_compile") 2>conftest.er1
17131 grep -v '^ *+' conftest.er1 >conftest.err
17133 cat conftest.err >&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } && {
17136 test -z "$ac_c_werror_flag" ||
17137 test ! -s conftest.err
17138 } && test -s conftest.$ac_objext; then
17139 ac_cv_header_GL_gutil_h=yes
17141 echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17144 ac_cv_header_GL_gutil_h=no
17147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17149 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gutil_h" >&5
17150 echo "${ECHO_T}$ac_cv_header_GL_gutil_h" >&6; }
17151 if test $ac_cv_header_GL_gutil_h = yes; then
17158 CPPFLAGS="$ac_save_CPPFLAGS"
17159 if test "$have_gle" = yes ; then
17161 ac_save_CPPFLAGS="$CPPFLAGS"
17162 if test \! -z "$includedir" ; then
17163 CPPFLAGS="$CPPFLAGS -I$includedir"
17165 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17166 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17167 { echo "$as_me:$LINENO: checking for GL/tube.h" >&5
17168 echo $ECHO_N "checking for GL/tube.h... $ECHO_C" >&6; }
17169 if test "${ac_cv_header_GL_tube_h+set}" = set; then
17170 echo $ECHO_N "(cached) $ECHO_C" >&6
17172 cat >conftest.$ac_ext <<_ACEOF
17175 cat confdefs.h >>conftest.$ac_ext
17176 cat >>conftest.$ac_ext <<_ACEOF
17177 /* end confdefs.h. */
17180 #include <GL/tube.h>
17182 rm -f conftest.$ac_objext
17183 if { (ac_try="$ac_compile"
17184 case "(($ac_try" in
17185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17186 *) ac_try_echo=$ac_try;;
17188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17189 (eval "$ac_compile") 2>conftest.er1
17191 grep -v '^ *+' conftest.er1 >conftest.err
17193 cat conftest.err >&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } && {
17196 test -z "$ac_c_werror_flag" ||
17197 test ! -s conftest.err
17198 } && test -s conftest.$ac_objext; then
17199 ac_cv_header_GL_tube_h=yes
17201 echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17204 ac_cv_header_GL_tube_h=no
17207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17209 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_tube_h" >&5
17210 echo "${ECHO_T}$ac_cv_header_GL_tube_h" >&6; }
17211 if test $ac_cv_header_GL_tube_h = yes; then
17218 CPPFLAGS="$ac_save_CPPFLAGS"
17222 if test "$have_gle" = yes ; then
17226 ac_save_CPPFLAGS="$CPPFLAGS"
17227 ac_save_LDFLAGS="$LDFLAGS"
17228 # ac_save_LIBS="$LIBS"
17230 if test \! -z "$includedir" ; then
17231 CPPFLAGS="$CPPFLAGS -I$includedir"
17233 # note: $X_CFLAGS includes $x_includes
17234 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17236 if test \! -z "$libdir" ; then
17237 LDFLAGS="$LDFLAGS -L$libdir"
17239 # note: $X_LIBS includes $x_libraries
17240 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17242 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17243 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17244 { echo "$as_me:$LINENO: checking for gleCreateGC in -lgle" >&5
17245 echo $ECHO_N "checking for gleCreateGC in -lgle... $ECHO_C" >&6; }
17246 if test "${ac_cv_lib_gle_gleCreateGC+set}" = set; then
17247 echo $ECHO_N "(cached) $ECHO_C" >&6
17249 ac_check_lib_save_LIBS=$LIBS
17250 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
17251 cat >conftest.$ac_ext <<_ACEOF
17254 cat confdefs.h >>conftest.$ac_ext
17255 cat >>conftest.$ac_ext <<_ACEOF
17256 /* end confdefs.h. */
17258 /* Override any GCC internal prototype to avoid an error.
17259 Use char because int might match the return type of a GCC
17260 builtin and then its argument prototype would still apply. */
17264 char gleCreateGC ();
17268 return gleCreateGC ();
17273 rm -f conftest.$ac_objext conftest$ac_exeext
17274 if { (ac_try="$ac_link"
17275 case "(($ac_try" in
17276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277 *) ac_try_echo=$ac_try;;
17279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280 (eval "$ac_link") 2>conftest.er1
17282 grep -v '^ *+' conftest.er1 >conftest.err
17284 cat conftest.err >&5
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); } && {
17287 test -z "$ac_c_werror_flag" ||
17288 test ! -s conftest.err
17289 } && test -s conftest$ac_exeext &&
17290 $as_test_x conftest$ac_exeext; then
17291 ac_cv_lib_gle_gleCreateGC=yes
17293 echo "$as_me: failed program was:" >&5
17294 sed 's/^/| /' conftest.$ac_ext >&5
17296 ac_cv_lib_gle_gleCreateGC=no
17299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17300 conftest$ac_exeext conftest.$ac_ext
17301 LIBS=$ac_check_lib_save_LIBS
17303 { echo "$as_me:$LINENO: result: $ac_cv_lib_gle_gleCreateGC" >&5
17304 echo "${ECHO_T}$ac_cv_lib_gle_gleCreateGC" >&6; }
17305 if test $ac_cv_lib_gle_gleCreateGC = yes; then
17306 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
17309 CPPFLAGS="$ac_save_CPPFLAGS"
17310 LDFLAGS="$ac_save_LDFLAGS"
17311 # LIBS="$ac_save_LIBS"
17314 if test "$have_gle" = yes ; then
17318 # sometimes the libmatrix stuff is included in libgle. look there first.
17320 # I don't get it. For some reason, this test passes on SGI, as if
17321 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
17322 # Yet the link is succeeding. Why???
17324 # AC_CHECK_X_LIB(gle, uview_direction_d,
17325 # [have_gle=yes; gle_halfassed=no],
17326 # [], $GL_LIBS -lX11 -lXext -lm)
17328 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
17330 if test "$have_gle3" = yes ; then
17332 ac_save_CPPFLAGS="$CPPFLAGS"
17333 ac_save_LDFLAGS="$LDFLAGS"
17334 # ac_save_LIBS="$LIBS"
17336 if test \! -z "$includedir" ; then
17337 CPPFLAGS="$CPPFLAGS -I$includedir"
17339 # note: $X_CFLAGS includes $x_includes
17340 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17342 if test \! -z "$libdir" ; then
17343 LDFLAGS="$LDFLAGS -L$libdir"
17345 # note: $X_LIBS includes $x_libraries
17346 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17348 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17349 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17350 { echo "$as_me:$LINENO: checking for uview_direction in -lgle" >&5
17351 echo $ECHO_N "checking for uview_direction in -lgle... $ECHO_C" >&6; }
17352 if test "${ac_cv_lib_gle_uview_direction+set}" = set; then
17353 echo $ECHO_N "(cached) $ECHO_C" >&6
17355 ac_check_lib_save_LIBS=$LIBS
17356 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
17357 cat >conftest.$ac_ext <<_ACEOF
17360 cat confdefs.h >>conftest.$ac_ext
17361 cat >>conftest.$ac_ext <<_ACEOF
17362 /* end confdefs.h. */
17364 /* Override any GCC internal prototype to avoid an error.
17365 Use char because int might match the return type of a GCC
17366 builtin and then its argument prototype would still apply. */
17370 char uview_direction ();
17374 return uview_direction ();
17379 rm -f conftest.$ac_objext conftest$ac_exeext
17380 if { (ac_try="$ac_link"
17381 case "(($ac_try" in
17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386 (eval "$ac_link") 2>conftest.er1
17388 grep -v '^ *+' conftest.er1 >conftest.err
17390 cat conftest.err >&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } && {
17393 test -z "$ac_c_werror_flag" ||
17394 test ! -s conftest.err
17395 } && test -s conftest$ac_exeext &&
17396 $as_test_x conftest$ac_exeext; then
17397 ac_cv_lib_gle_uview_direction=yes
17399 echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17402 ac_cv_lib_gle_uview_direction=no
17405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17406 conftest$ac_exeext conftest.$ac_ext
17407 LIBS=$ac_check_lib_save_LIBS
17409 { echo "$as_me:$LINENO: result: $ac_cv_lib_gle_uview_direction" >&5
17410 echo "${ECHO_T}$ac_cv_lib_gle_uview_direction" >&6; }
17411 if test $ac_cv_lib_gle_uview_direction = yes; then
17412 have_gle=yes; gle_halfassed=no
17415 CPPFLAGS="$ac_save_CPPFLAGS"
17416 LDFLAGS="$ac_save_LDFLAGS"
17417 # LIBS="$ac_save_LIBS"
17420 # if it wasn't in libgle, then look in libmatrix.
17421 if test "$have_gle" = no ; then
17423 ac_save_CPPFLAGS="$CPPFLAGS"
17424 ac_save_LDFLAGS="$LDFLAGS"
17425 # ac_save_LIBS="$LIBS"
17427 if test \! -z "$includedir" ; then
17428 CPPFLAGS="$CPPFLAGS -I$includedir"
17430 # note: $X_CFLAGS includes $x_includes
17431 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17433 if test \! -z "$libdir" ; then
17434 LDFLAGS="$LDFLAGS -L$libdir"
17436 # note: $X_LIBS includes $x_libraries
17437 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17439 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17440 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17441 { echo "$as_me:$LINENO: checking for uview_direction_d in -lmatrix" >&5
17442 echo $ECHO_N "checking for uview_direction_d in -lmatrix... $ECHO_C" >&6; }
17443 if test "${ac_cv_lib_matrix_uview_direction_d+set}" = set; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17446 ac_check_lib_save_LIBS=$LIBS
17447 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
17448 cat >conftest.$ac_ext <<_ACEOF
17451 cat confdefs.h >>conftest.$ac_ext
17452 cat >>conftest.$ac_ext <<_ACEOF
17453 /* end confdefs.h. */
17455 /* Override any GCC internal prototype to avoid an error.
17456 Use char because int might match the return type of a GCC
17457 builtin and then its argument prototype would still apply. */
17461 char uview_direction_d ();
17465 return uview_direction_d ();
17470 rm -f conftest.$ac_objext conftest$ac_exeext
17471 if { (ac_try="$ac_link"
17472 case "(($ac_try" in
17473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474 *) ac_try_echo=$ac_try;;
17476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477 (eval "$ac_link") 2>conftest.er1
17479 grep -v '^ *+' conftest.er1 >conftest.err
17481 cat conftest.err >&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); } && {
17484 test -z "$ac_c_werror_flag" ||
17485 test ! -s conftest.err
17486 } && test -s conftest$ac_exeext &&
17487 $as_test_x conftest$ac_exeext; then
17488 ac_cv_lib_matrix_uview_direction_d=yes
17490 echo "$as_me: failed program was:" >&5
17491 sed 's/^/| /' conftest.$ac_ext >&5
17493 ac_cv_lib_matrix_uview_direction_d=no
17496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17497 conftest$ac_exeext conftest.$ac_ext
17498 LIBS=$ac_check_lib_save_LIBS
17500 { echo "$as_me:$LINENO: result: $ac_cv_lib_matrix_uview_direction_d" >&5
17501 echo "${ECHO_T}$ac_cv_lib_matrix_uview_direction_d" >&6; }
17502 if test $ac_cv_lib_matrix_uview_direction_d = yes; then
17503 have_gle=yes; gle_halfassed=no;
17504 GLE_LIBS="$GLE_LIBS -lmatrix"
17507 CPPFLAGS="$ac_save_CPPFLAGS"
17508 LDFLAGS="$ac_save_LDFLAGS"
17509 # LIBS="$ac_save_LIBS"
17514 if test "$have_gle" = yes ; then
17515 cat >>confdefs.h <<\_ACEOF
17519 if test "$have_gle3" = yes ; then
17520 cat >>confdefs.h <<\_ACEOF
17521 #define HAVE_GLE3 1
17527 elif test "$with_gle" != no; then
17528 echo "error: must be yes or no: --with-gle=$with_gle"
17534 ###############################################################################
17536 # Check for -lgdk_pixbuf.
17537 # These tests are for gdk_pixbuf usage of the hacks,
17538 # not xscreensaver-demo (thus we have to test again to get
17539 # the libraries right: don't want to pull in all of GTK
17542 ###############################################################################
17545 with_gdk_pixbuf_req=unspecified
17547 # Check whether --with-pixbuf was given.
17548 if test "${with_pixbuf+set}" = set; then
17549 withval=$with_pixbuf; with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
17551 with_gdk_pixbuf=yes
17555 # if --with-pixbuf=/directory/ was specified, remember that directory so that
17556 # we can also look for the `gdk-pixbuf-config' program in that directory.
17557 case "$with_gdk_pixbuf" in
17559 gdk_pixbuf_dir="$with_gdk_pixbuf"
17567 case "$with_gdk_pixbuf" in
17572 { echo "$as_me:$LINENO: checking for GDK_PIXBUF headers" >&5
17573 echo $ECHO_N "checking for GDK_PIXBUF headers... $ECHO_C" >&6; }
17574 d=$with_gdk_pixbuf/include
17575 if test -d $d; then
17576 X_CFLAGS="-I$d $X_CFLAGS"
17577 { echo "$as_me:$LINENO: result: $d" >&5
17578 echo "${ECHO_T}$d" >&6; }
17580 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17581 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
17584 { echo "$as_me:$LINENO: checking for GDK_PIXBUF libs" >&5
17585 echo $ECHO_N "checking for GDK_PIXBUF libs... $ECHO_C" >&6; }
17586 d=$with_gdk_pixbuf/lib
17587 if test -d $d; then
17588 X_LIBS="-L$d $X_LIBS"
17589 { echo "$as_me:$LINENO: result: $d" >&5
17590 echo "${ECHO_T}$d" >&6; }
17592 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17593 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
17596 # replace the directory string with "yes".
17597 with_gdk_pixbuf_req="yes"
17598 with_gdk_pixbuf=$with_gdk_pixbuf_req
17603 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
17604 echo " If it is a directory, then \`DIR/include' will be added to"
17605 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17611 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
17612 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
17616 if test "$with_gdk_pixbuf" = yes; then
17622 pkg_check_version gdk-pixbuf-2.0 2.0.0
17623 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
17624 have_gdk_pixbuf="$ok"
17626 if test "$have_gdk_pixbuf" = yes; then
17627 { echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
17628 echo $ECHO_N "checking for gdk-pixbuf includes... $ECHO_C" >&6; }
17629 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
17630 echo $ECHO_N "(cached) $ECHO_C" >&6
17632 ac_cv_gdk_pixbuf_config_cflags=`$pkg_config --cflags $pkgs`
17634 { echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
17635 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_cflags" >&6; }
17636 { echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
17637 echo $ECHO_N "checking for gdk-pixbuf libs... $ECHO_C" >&6; }
17638 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
17639 echo $ECHO_N "(cached) $ECHO_C" >&6
17641 ac_cv_gdk_pixbuf_config_libs=`$pkg_config --libs $pkgs`
17643 { echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
17644 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_libs" >&6; }
17647 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
17648 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
17651 if test "$have_gdk_pixbuf" = yes; then
17653 # we appear to have pixbuf; check for headers/libs to be sure.
17655 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
17656 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
17660 # check for header A...
17662 ac_save_CPPFLAGS="$CPPFLAGS"
17663 if test \! -z "$includedir" ; then
17664 CPPFLAGS="$CPPFLAGS -I$includedir"
17666 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17667 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17668 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17669 { echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
17670 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6; }
17671 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17672 echo $ECHO_N "(cached) $ECHO_C" >&6
17674 { echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
17675 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6; }
17677 # Is the header compilable?
17678 { echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h usability" >&5
17679 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h usability... $ECHO_C" >&6; }
17680 cat >conftest.$ac_ext <<_ACEOF
17683 cat confdefs.h >>conftest.$ac_ext
17684 cat >>conftest.$ac_ext <<_ACEOF
17685 /* end confdefs.h. */
17686 $ac_includes_default
17687 #include <gdk-pixbuf/gdk-pixbuf.h>
17689 rm -f conftest.$ac_objext
17690 if { (ac_try="$ac_compile"
17691 case "(($ac_try" in
17692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17693 *) ac_try_echo=$ac_try;;
17695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17696 (eval "$ac_compile") 2>conftest.er1
17698 grep -v '^ *+' conftest.er1 >conftest.err
17700 cat conftest.err >&5
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); } && {
17703 test -z "$ac_c_werror_flag" ||
17704 test ! -s conftest.err
17705 } && test -s conftest.$ac_objext; then
17706 ac_header_compiler=yes
17708 echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.$ac_ext >&5
17711 ac_header_compiler=no
17714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17716 echo "${ECHO_T}$ac_header_compiler" >&6; }
17718 # Is the header present?
17719 { echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h presence" >&5
17720 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h presence... $ECHO_C" >&6; }
17721 cat >conftest.$ac_ext <<_ACEOF
17724 cat confdefs.h >>conftest.$ac_ext
17725 cat >>conftest.$ac_ext <<_ACEOF
17726 /* end confdefs.h. */
17727 #include <gdk-pixbuf/gdk-pixbuf.h>
17729 if { (ac_try="$ac_cpp conftest.$ac_ext"
17730 case "(($ac_try" in
17731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732 *) ac_try_echo=$ac_try;;
17734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17737 grep -v '^ *+' conftest.er1 >conftest.err
17739 cat conftest.err >&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } >/dev/null && {
17742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17743 test ! -s conftest.err
17745 ac_header_preproc=yes
17747 echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.$ac_ext >&5
17750 ac_header_preproc=no
17753 rm -f conftest.err conftest.$ac_ext
17754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17755 echo "${ECHO_T}$ac_header_preproc" >&6; }
17757 # So? What about this header?
17758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17760 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&5
17761 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17762 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&5
17763 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&2;}
17764 ac_header_preproc=yes
17767 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&5
17768 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&2;}
17769 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&5
17770 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&2;}
17771 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&5
17772 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&2;}
17773 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&5
17774 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&2;}
17775 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
17776 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;}
17777 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&5
17778 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&2;}
17782 { echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
17783 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6; }
17784 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17785 echo $ECHO_N "(cached) $ECHO_C" >&6
17787 ac_cv_header_gdk_pixbuf_gdk_pixbuf_h=$ac_header_preproc
17789 { echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
17790 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6; }
17793 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h = yes; then
17794 have_gdk_pixbuf=yes
17798 CPPFLAGS="$ac_save_CPPFLAGS"
17800 # if that worked, check for header B...
17801 if test "$have_gdk_pixbuf" = yes; then
17803 gdk_pixbuf_halfassed=yes
17805 ac_save_CPPFLAGS="$CPPFLAGS"
17806 if test \! -z "$includedir" ; then
17807 CPPFLAGS="$CPPFLAGS -I$includedir"
17809 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17810 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17811 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17812 { echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
17813 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6; }
17814 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17815 echo $ECHO_N "(cached) $ECHO_C" >&6
17817 { echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
17818 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6; }
17820 # Is the header compilable?
17821 { echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h usability" >&5
17822 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6; }
17823 cat >conftest.$ac_ext <<_ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h. */
17829 $ac_includes_default
17830 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
17832 rm -f conftest.$ac_objext
17833 if { (ac_try="$ac_compile"
17834 case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_compile") 2>conftest.er1
17841 grep -v '^ *+' conftest.er1 >conftest.err
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } && {
17846 test -z "$ac_c_werror_flag" ||
17847 test ! -s conftest.err
17848 } && test -s conftest.$ac_objext; then
17849 ac_header_compiler=yes
17851 echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.$ac_ext >&5
17854 ac_header_compiler=no
17857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17858 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17859 echo "${ECHO_T}$ac_header_compiler" >&6; }
17861 # Is the header present?
17862 { echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h presence" >&5
17863 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6; }
17864 cat >conftest.$ac_ext <<_ACEOF
17867 cat confdefs.h >>conftest.$ac_ext
17868 cat >>conftest.$ac_ext <<_ACEOF
17869 /* end confdefs.h. */
17870 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
17872 if { (ac_try="$ac_cpp conftest.$ac_ext"
17873 case "(($ac_try" in
17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17880 grep -v '^ *+' conftest.er1 >conftest.err
17882 cat conftest.err >&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } >/dev/null && {
17885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17886 test ! -s conftest.err
17888 ac_header_preproc=yes
17890 echo "$as_me: failed program was:" >&5
17891 sed 's/^/| /' conftest.$ac_ext >&5
17893 ac_header_preproc=no
17896 rm -f conftest.err conftest.$ac_ext
17897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17898 echo "${ECHO_T}$ac_header_preproc" >&6; }
17900 # So? What about this header?
17901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17903 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17904 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17905 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
17906 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
17907 ac_header_preproc=yes
17910 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
17911 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
17912 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
17913 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
17914 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
17915 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
17916 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
17917 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17918 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
17919 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
17920 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
17921 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
17925 { echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
17926 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6; }
17927 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17928 echo $ECHO_N "(cached) $ECHO_C" >&6
17930 ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h=$ac_header_preproc
17932 { echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
17933 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6; }
17936 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h = yes; then
17937 have_gdk_pixbuf=yes
17938 gdk_pixbuf_halfassed=no
17942 CPPFLAGS="$ac_save_CPPFLAGS"
17944 # yay, it has a new name in Gtk 2.x...
17945 if test "$have_gdk_pixbuf" = no; then
17947 gdk_pixbuf_halfassed=yes
17949 ac_save_CPPFLAGS="$CPPFLAGS"
17950 if test \! -z "$includedir" ; then
17951 CPPFLAGS="$CPPFLAGS -I$includedir"
17953 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17954 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17955 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17956 { echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
17957 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6; }
17958 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17959 echo $ECHO_N "(cached) $ECHO_C" >&6
17961 { echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
17962 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6; }
17964 # Is the header compilable?
17965 { echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability" >&5
17966 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6; }
17967 cat >conftest.$ac_ext <<_ACEOF
17970 cat confdefs.h >>conftest.$ac_ext
17971 cat >>conftest.$ac_ext <<_ACEOF
17972 /* end confdefs.h. */
17973 $ac_includes_default
17974 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
17976 rm -f conftest.$ac_objext
17977 if { (ac_try="$ac_compile"
17978 case "(($ac_try" in
17979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17980 *) ac_try_echo=$ac_try;;
17982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17983 (eval "$ac_compile") 2>conftest.er1
17985 grep -v '^ *+' conftest.er1 >conftest.err
17987 cat conftest.err >&5
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); } && {
17990 test -z "$ac_c_werror_flag" ||
17991 test ! -s conftest.err
17992 } && test -s conftest.$ac_objext; then
17993 ac_header_compiler=yes
17995 echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.$ac_ext >&5
17998 ac_header_compiler=no
18001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18003 echo "${ECHO_T}$ac_header_compiler" >&6; }
18005 # Is the header present?
18006 { echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence" >&5
18007 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6; }
18008 cat >conftest.$ac_ext <<_ACEOF
18011 cat confdefs.h >>conftest.$ac_ext
18012 cat >>conftest.$ac_ext <<_ACEOF
18013 /* end confdefs.h. */
18014 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
18016 if { (ac_try="$ac_cpp conftest.$ac_ext"
18017 case "(($ac_try" in
18018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18019 *) ac_try_echo=$ac_try;;
18021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18024 grep -v '^ *+' conftest.er1 >conftest.err
18026 cat conftest.err >&5
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); } >/dev/null && {
18029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18030 test ! -s conftest.err
18032 ac_header_preproc=yes
18034 echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18037 ac_header_preproc=no
18040 rm -f conftest.err conftest.$ac_ext
18041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18042 echo "${ECHO_T}$ac_header_preproc" >&6; }
18044 # So? What about this header?
18045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18047 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18048 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18049 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
18050 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
18051 ac_header_preproc=yes
18054 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
18055 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
18056 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
18057 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
18058 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
18059 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
18060 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
18061 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18062 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
18063 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
18064 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
18065 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
18069 { echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
18070 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6; }
18071 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
18072 echo $ECHO_N "(cached) $ECHO_C" >&6
18074 ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h=$ac_header_preproc
18076 { echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
18077 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6; }
18080 if test $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h = yes; then
18081 have_gdk_pixbuf=yes
18082 gdk_pixbuf_halfassed=no
18086 CPPFLAGS="$ac_save_CPPFLAGS"
18089 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
18092 if test "$have_gdk_pixbuf" = yes; then
18093 # we have the headers, now check for the libraries
18095 gdk_pixbuf_halfassed=yes
18097 { echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability..." >&5
18098 echo "${ECHO_T}checking for gdk_pixbuf usability..." >&6; }
18102 ac_save_CPPFLAGS="$CPPFLAGS"
18103 ac_save_LDFLAGS="$LDFLAGS"
18104 # ac_save_LIBS="$LIBS"
18106 if test \! -z "$includedir" ; then
18107 CPPFLAGS="$CPPFLAGS -I$includedir"
18109 # note: $X_CFLAGS includes $x_includes
18110 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18112 if test \! -z "$libdir" ; then
18113 LDFLAGS="$LDFLAGS -L$libdir"
18115 # note: $X_LIBS includes $x_libraries
18116 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18118 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18119 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18120 { echo "$as_me:$LINENO: checking for gdk_pixbuf_new_from_file in -lc" >&5
18121 echo $ECHO_N "checking for gdk_pixbuf_new_from_file in -lc... $ECHO_C" >&6; }
18122 if test "${ac_cv_lib_c_gdk_pixbuf_new_from_file+set}" = set; then
18123 echo $ECHO_N "(cached) $ECHO_C" >&6
18125 ac_check_lib_save_LIBS=$LIBS
18126 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
18127 cat >conftest.$ac_ext <<_ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h. */
18134 /* Override any GCC internal prototype to avoid an error.
18135 Use char because int might match the return type of a GCC
18136 builtin and then its argument prototype would still apply. */
18140 char gdk_pixbuf_new_from_file ();
18144 return gdk_pixbuf_new_from_file ();
18149 rm -f conftest.$ac_objext conftest$ac_exeext
18150 if { (ac_try="$ac_link"
18151 case "(($ac_try" in
18152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153 *) ac_try_echo=$ac_try;;
18155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156 (eval "$ac_link") 2>conftest.er1
18158 grep -v '^ *+' conftest.er1 >conftest.err
18160 cat conftest.err >&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } && {
18163 test -z "$ac_c_werror_flag" ||
18164 test ! -s conftest.err
18165 } && test -s conftest$ac_exeext &&
18166 $as_test_x conftest$ac_exeext; then
18167 ac_cv_lib_c_gdk_pixbuf_new_from_file=yes
18169 echo "$as_me: failed program was:" >&5
18170 sed 's/^/| /' conftest.$ac_ext >&5
18172 ac_cv_lib_c_gdk_pixbuf_new_from_file=no
18175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18176 conftest$ac_exeext conftest.$ac_ext
18177 LIBS=$ac_check_lib_save_LIBS
18179 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_new_from_file" >&5
18180 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_new_from_file" >&6; }
18181 if test $ac_cv_lib_c_gdk_pixbuf_new_from_file = yes; then
18182 have_gdk_pixbuf=yes
18185 CPPFLAGS="$ac_save_CPPFLAGS"
18186 LDFLAGS="$ac_save_LDFLAGS"
18187 # LIBS="$ac_save_LIBS"
18190 if test "$have_gdk_pixbuf" = yes; then
18193 ac_save_CPPFLAGS="$CPPFLAGS"
18194 ac_save_LDFLAGS="$LDFLAGS"
18195 # ac_save_LIBS="$LIBS"
18197 if test \! -z "$includedir" ; then
18198 CPPFLAGS="$CPPFLAGS -I$includedir"
18200 # note: $X_CFLAGS includes $x_includes
18201 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18203 if test \! -z "$libdir" ; then
18204 LDFLAGS="$LDFLAGS -L$libdir"
18206 # note: $X_LIBS includes $x_libraries
18207 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18209 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18210 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18211 { echo "$as_me:$LINENO: checking for gdk_pixbuf_xlib_init in -lc" >&5
18212 echo $ECHO_N "checking for gdk_pixbuf_xlib_init in -lc... $ECHO_C" >&6; }
18213 if test "${ac_cv_lib_c_gdk_pixbuf_xlib_init+set}" = set; then
18214 echo $ECHO_N "(cached) $ECHO_C" >&6
18216 ac_check_lib_save_LIBS=$LIBS
18217 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
18218 cat >conftest.$ac_ext <<_ACEOF
18221 cat confdefs.h >>conftest.$ac_ext
18222 cat >>conftest.$ac_ext <<_ACEOF
18223 /* end confdefs.h. */
18225 /* Override any GCC internal prototype to avoid an error.
18226 Use char because int might match the return type of a GCC
18227 builtin and then its argument prototype would still apply. */
18231 char gdk_pixbuf_xlib_init ();
18235 return gdk_pixbuf_xlib_init ();
18240 rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (ac_try="$ac_link"
18242 case "(($ac_try" in
18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244 *) ac_try_echo=$ac_try;;
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247 (eval "$ac_link") 2>conftest.er1
18249 grep -v '^ *+' conftest.er1 >conftest.err
18251 cat conftest.err >&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } && {
18254 test -z "$ac_c_werror_flag" ||
18255 test ! -s conftest.err
18256 } && test -s conftest$ac_exeext &&
18257 $as_test_x conftest$ac_exeext; then
18258 ac_cv_lib_c_gdk_pixbuf_xlib_init=yes
18260 echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18263 ac_cv_lib_c_gdk_pixbuf_xlib_init=no
18266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18267 conftest$ac_exeext conftest.$ac_ext
18268 LIBS=$ac_check_lib_save_LIBS
18270 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_xlib_init" >&5
18271 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_xlib_init" >&6; }
18272 if test $ac_cv_lib_c_gdk_pixbuf_xlib_init = yes; then
18273 have_gdk_pixbuf=yes
18274 gdk_pixbuf_halfassed=no
18277 CPPFLAGS="$ac_save_CPPFLAGS"
18278 LDFLAGS="$ac_save_LDFLAGS"
18279 # LIBS="$ac_save_LIBS"
18284 if test "$have_gdk_pixbuf" = yes; then
18285 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
18286 XPM_LIBS="$ac_gdk_pixbuf_config_libs"
18287 cat >>confdefs.h <<\_ACEOF
18288 #define HAVE_GDK_PIXBUF 1
18292 { echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability... no" >&5
18293 echo "${ECHO_T}checking for gdk_pixbuf usability... no" >&6; }
18296 if test "$have_gdk_pixbuf" = yes; then
18298 ac_save_CPPFLAGS="$CPPFLAGS"
18299 ac_save_LDFLAGS="$LDFLAGS"
18300 # ac_save_LIBS="$LIBS"
18302 if test \! -z "$includedir" ; then
18303 CPPFLAGS="$CPPFLAGS -I$includedir"
18305 # note: $X_CFLAGS includes $x_includes
18306 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18308 if test \! -z "$libdir" ; then
18309 LDFLAGS="$LDFLAGS -L$libdir"
18311 # note: $X_LIBS includes $x_libraries
18312 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18314 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18315 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18316 { echo "$as_me:$LINENO: checking for gdk_pixbuf_apply_embedded_orientation in -lc" >&5
18317 echo $ECHO_N "checking for gdk_pixbuf_apply_embedded_orientation in -lc... $ECHO_C" >&6; }
18318 if test "${ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation+set}" = set; then
18319 echo $ECHO_N "(cached) $ECHO_C" >&6
18321 ac_check_lib_save_LIBS=$LIBS
18322 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
18323 cat >conftest.$ac_ext <<_ACEOF
18326 cat confdefs.h >>conftest.$ac_ext
18327 cat >>conftest.$ac_ext <<_ACEOF
18328 /* end confdefs.h. */
18330 /* Override any GCC internal prototype to avoid an error.
18331 Use char because int might match the return type of a GCC
18332 builtin and then its argument prototype would still apply. */
18336 char gdk_pixbuf_apply_embedded_orientation ();
18340 return gdk_pixbuf_apply_embedded_orientation ();
18345 rm -f conftest.$ac_objext conftest$ac_exeext
18346 if { (ac_try="$ac_link"
18347 case "(($ac_try" in
18348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18349 *) ac_try_echo=$ac_try;;
18351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18352 (eval "$ac_link") 2>conftest.er1
18354 grep -v '^ *+' conftest.er1 >conftest.err
18356 cat conftest.err >&5
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); } && {
18359 test -z "$ac_c_werror_flag" ||
18360 test ! -s conftest.err
18361 } && test -s conftest$ac_exeext &&
18362 $as_test_x conftest$ac_exeext; then
18363 ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation=yes
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18368 ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation=no
18371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18372 conftest$ac_exeext conftest.$ac_ext
18373 LIBS=$ac_check_lib_save_LIBS
18375 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" >&5
18376 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" >&6; }
18377 if test $ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation = yes; then
18378 cat >>confdefs.h <<\_ACEOF
18379 #define HAVE_GDK_PIXBUF_APPLY_EMBEDDED_ORIENTATION 1
18384 CPPFLAGS="$ac_save_CPPFLAGS"
18385 LDFLAGS="$ac_save_LDFLAGS"
18386 # LIBS="$ac_save_LIBS"
18392 ###############################################################################
18396 ###############################################################################
18399 with_xpm_req=unspecified
18401 # Check whether --with-xpm was given.
18402 if test "${with_xpm+set}" = set; then
18403 withval=$with_xpm; with_xpm="$withval"; with_xpm_req="$withval"
18410 case "$with_xpm" in
18415 { echo "$as_me:$LINENO: checking for XPM headers" >&5
18416 echo $ECHO_N "checking for XPM headers... $ECHO_C" >&6; }
18417 d=$with_xpm/include
18418 if test -d $d; then
18419 X_CFLAGS="-I$d $X_CFLAGS"
18420 { echo "$as_me:$LINENO: result: $d" >&5
18421 echo "${ECHO_T}$d" >&6; }
18423 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18424 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
18427 { echo "$as_me:$LINENO: checking for XPM libs" >&5
18428 echo $ECHO_N "checking for XPM libs... $ECHO_C" >&6; }
18430 if test -d $d; then
18431 X_LIBS="-L$d $X_LIBS"
18432 { echo "$as_me:$LINENO: result: $d" >&5
18433 echo "${ECHO_T}$d" >&6; }
18435 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18436 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
18439 # replace the directory string with "yes".
18441 with_xpm=$with_xpm_req
18446 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
18447 echo " If it is a directory, then \`DIR/include' will be added to"
18448 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18454 if test "$with_xpm" = yes; then
18456 ac_save_CPPFLAGS="$CPPFLAGS"
18457 if test \! -z "$includedir" ; then
18458 CPPFLAGS="$CPPFLAGS -I$includedir"
18460 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18461 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18462 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18463 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
18464 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18465 echo $ECHO_N "(cached) $ECHO_C" >&6
18467 cat >conftest.$ac_ext <<_ACEOF
18470 cat confdefs.h >>conftest.$ac_ext
18471 cat >>conftest.$ac_ext <<_ACEOF
18472 /* end confdefs.h. */
18473 #include <X11/Xlib.h>
18475 #include <X11/xpm.h>
18477 rm -f conftest.$ac_objext
18478 if { (ac_try="$ac_compile"
18479 case "(($ac_try" in
18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484 (eval "$ac_compile") 2>conftest.er1
18486 grep -v '^ *+' conftest.er1 >conftest.err
18488 cat conftest.err >&5
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); } && {
18491 test -z "$ac_c_werror_flag" ||
18492 test ! -s conftest.err
18493 } && test -s conftest.$ac_objext; then
18494 ac_cv_header_X11_xpm_h=yes
18496 echo "$as_me: failed program was:" >&5
18497 sed 's/^/| /' conftest.$ac_ext >&5
18499 ac_cv_header_X11_xpm_h=no
18502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18504 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18505 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
18506 if test $ac_cv_header_X11_xpm_h = yes; then
18508 cat >>confdefs.h <<\_ACEOF
18512 XPM_LIBS="-lXpm $XPM_LIBS"
18516 CPPFLAGS="$ac_save_CPPFLAGS"
18517 elif test "$with_xpm" != no; then
18518 echo "error: must be yes or no: --with-xpm=$with_xpm"
18522 # See comment near $motif_requires_xpm, above.
18523 # Need to do this here, after both Motif and XPM have been checked for.
18525 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
18526 if test "$motif_requires_xpm" = yes ; then
18527 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
18531 if test "$XPM_LIBS" = "" ; then
18532 XPM_LIBS=$(MINIXPM)
18536 ###############################################################################
18540 ###############################################################################
18543 with_jpeg_req=unspecified
18546 # Check whether --with-jpeg was given.
18547 if test "${with_jpeg+set}" = set; then
18548 withval=$with_jpeg; with_jpeg="$withval"; with_jpeg_req="$withval"
18555 case "$with_jpeg" in
18560 { echo "$as_me:$LINENO: checking for JPEG headers" >&5
18561 echo $ECHO_N "checking for JPEG headers... $ECHO_C" >&6; }
18562 d=$with_jpeg/include
18563 if test -d $d; then
18564 X_CFLAGS="-I$d $X_CFLAGS"
18565 { echo "$as_me:$LINENO: result: $d" >&5
18566 echo "${ECHO_T}$d" >&6; }
18568 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18569 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
18572 { echo "$as_me:$LINENO: checking for JPEG libs" >&5
18573 echo $ECHO_N "checking for JPEG libs... $ECHO_C" >&6; }
18575 if test -d $d; then
18576 X_LIBS="-L$d $X_LIBS"
18577 { echo "$as_me:$LINENO: result: $d" >&5
18578 echo "${ECHO_T}$d" >&6; }
18580 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18581 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
18584 # replace the directory string with "yes".
18585 with_jpeg_req="yes"
18586 with_jpeg=$with_jpeg_req
18591 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
18592 echo " If it is a directory, then \`DIR/include' will be added to"
18593 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18599 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
18600 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
18604 if test "$with_jpeg" = yes; then
18608 ac_save_CPPFLAGS="$CPPFLAGS"
18609 if test \! -z "$includedir" ; then
18610 CPPFLAGS="$CPPFLAGS -I$includedir"
18612 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18613 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18614 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18615 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18616 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
18617 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18618 echo $ECHO_N "(cached) $ECHO_C" >&6
18620 { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18621 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
18623 # Is the header compilable?
18624 { echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
18625 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6; }
18626 cat >conftest.$ac_ext <<_ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h. */
18632 $ac_includes_default
18633 #include <jpeglib.h>
18635 rm -f conftest.$ac_objext
18636 if { (ac_try="$ac_compile"
18637 case "(($ac_try" in
18638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642 (eval "$ac_compile") 2>conftest.er1
18644 grep -v '^ *+' conftest.er1 >conftest.err
18646 cat conftest.err >&5
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); } && {
18649 test -z "$ac_c_werror_flag" ||
18650 test ! -s conftest.err
18651 } && test -s conftest.$ac_objext; then
18652 ac_header_compiler=yes
18654 echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18657 ac_header_compiler=no
18660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18662 echo "${ECHO_T}$ac_header_compiler" >&6; }
18664 # Is the header present?
18665 { echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
18666 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6; }
18667 cat >conftest.$ac_ext <<_ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h. */
18673 #include <jpeglib.h>
18675 if { (ac_try="$ac_cpp conftest.$ac_ext"
18676 case "(($ac_try" in
18677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678 *) ac_try_echo=$ac_try;;
18680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18683 grep -v '^ *+' conftest.er1 >conftest.err
18685 cat conftest.err >&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } >/dev/null && {
18688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18689 test ! -s conftest.err
18691 ac_header_preproc=yes
18693 echo "$as_me: failed program was:" >&5
18694 sed 's/^/| /' conftest.$ac_ext >&5
18696 ac_header_preproc=no
18699 rm -f conftest.err conftest.$ac_ext
18700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18701 echo "${ECHO_T}$ac_header_preproc" >&6; }
18703 # So? What about this header?
18704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18706 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18707 echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18708 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
18709 echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
18710 ac_header_preproc=yes
18713 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
18714 echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
18715 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
18716 echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
18717 { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
18718 echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
18719 { echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
18720 echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18721 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
18722 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
18723 { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
18724 echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
18728 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18729 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
18730 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18731 echo $ECHO_N "(cached) $ECHO_C" >&6
18733 ac_cv_header_jpeglib_h=$ac_header_preproc
18735 { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18736 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
18739 if test $ac_cv_header_jpeglib_h = yes; then
18744 CPPFLAGS="$ac_save_CPPFLAGS"
18746 if test "$have_jpeg" = yes; then
18747 # we have the header, now check for the library
18751 ac_save_CPPFLAGS="$CPPFLAGS"
18752 ac_save_LDFLAGS="$LDFLAGS"
18753 # ac_save_LIBS="$LIBS"
18755 if test \! -z "$includedir" ; then
18756 CPPFLAGS="$CPPFLAGS -I$includedir"
18758 # note: $X_CFLAGS includes $x_includes
18759 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18761 if test \! -z "$libdir" ; then
18762 LDFLAGS="$LDFLAGS -L$libdir"
18764 # note: $X_LIBS includes $x_libraries
18765 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18767 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18768 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18769 { echo "$as_me:$LINENO: checking for jpeg_start_compress in -ljpeg" >&5
18770 echo $ECHO_N "checking for jpeg_start_compress in -ljpeg... $ECHO_C" >&6; }
18771 if test "${ac_cv_lib_jpeg_jpeg_start_compress+set}" = set; then
18772 echo $ECHO_N "(cached) $ECHO_C" >&6
18774 ac_check_lib_save_LIBS=$LIBS
18775 LIBS="-ljpeg $LIBS"
18776 cat >conftest.$ac_ext <<_ACEOF
18779 cat confdefs.h >>conftest.$ac_ext
18780 cat >>conftest.$ac_ext <<_ACEOF
18781 /* end confdefs.h. */
18783 /* Override any GCC internal prototype to avoid an error.
18784 Use char because int might match the return type of a GCC
18785 builtin and then its argument prototype would still apply. */
18789 char jpeg_start_compress ();
18793 return jpeg_start_compress ();
18798 rm -f conftest.$ac_objext conftest$ac_exeext
18799 if { (ac_try="$ac_link"
18800 case "(($ac_try" in
18801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802 *) ac_try_echo=$ac_try;;
18804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18805 (eval "$ac_link") 2>conftest.er1
18807 grep -v '^ *+' conftest.er1 >conftest.err
18809 cat conftest.err >&5
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); } && {
18812 test -z "$ac_c_werror_flag" ||
18813 test ! -s conftest.err
18814 } && test -s conftest$ac_exeext &&
18815 $as_test_x conftest$ac_exeext; then
18816 ac_cv_lib_jpeg_jpeg_start_compress=yes
18818 echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18821 ac_cv_lib_jpeg_jpeg_start_compress=no
18824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18825 conftest$ac_exeext conftest.$ac_ext
18826 LIBS=$ac_check_lib_save_LIBS
18828 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
18829 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_compress" >&6; }
18830 if test $ac_cv_lib_jpeg_jpeg_start_compress = yes; then
18834 cat >>confdefs.h <<\_ACEOF
18835 #define HAVE_JPEGLIB 1
18840 CPPFLAGS="$ac_save_CPPFLAGS"
18841 LDFLAGS="$ac_save_LDFLAGS"
18842 # LIBS="$ac_save_LIBS"
18848 ###############################################################################
18850 # Check for pty support: this allows 'phosphor' and 'apple2'
18851 # to run curses-based programs, or be used as terminal windows.
18853 ###############################################################################
18858 for ac_header in pty.h util.h
18860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18865 echo $ECHO_N "(cached) $ECHO_C" >&6
18867 ac_res=`eval echo '${'$as_ac_Header'}'`
18868 { echo "$as_me:$LINENO: result: $ac_res" >&5
18869 echo "${ECHO_T}$ac_res" >&6; }
18871 # Is the header compilable?
18872 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18873 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18874 cat >conftest.$ac_ext <<_ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18880 $ac_includes_default
18881 #include <$ac_header>
18883 rm -f conftest.$ac_objext
18884 if { (ac_try="$ac_compile"
18885 case "(($ac_try" in
18886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887 *) ac_try_echo=$ac_try;;
18889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18890 (eval "$ac_compile") 2>conftest.er1
18892 grep -v '^ *+' conftest.er1 >conftest.err
18894 cat conftest.err >&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); } && {
18897 test -z "$ac_c_werror_flag" ||
18898 test ! -s conftest.err
18899 } && test -s conftest.$ac_objext; then
18900 ac_header_compiler=yes
18902 echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18905 ac_header_compiler=no
18908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18910 echo "${ECHO_T}$ac_header_compiler" >&6; }
18912 # Is the header present?
18913 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18915 cat >conftest.$ac_ext <<_ACEOF
18918 cat confdefs.h >>conftest.$ac_ext
18919 cat >>conftest.$ac_ext <<_ACEOF
18920 /* end confdefs.h. */
18921 #include <$ac_header>
18923 if { (ac_try="$ac_cpp conftest.$ac_ext"
18924 case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18931 grep -v '^ *+' conftest.er1 >conftest.err
18933 cat conftest.err >&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); } >/dev/null && {
18936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18937 test ! -s conftest.err
18939 ac_header_preproc=yes
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18944 ac_header_preproc=no
18947 rm -f conftest.err conftest.$ac_ext
18948 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18949 echo "${ECHO_T}$ac_header_preproc" >&6; }
18951 # So? What about this header?
18952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18958 ac_header_preproc=yes
18961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18966 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18968 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18972 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18979 echo $ECHO_N "(cached) $ECHO_C" >&6
18981 eval "$as_ac_Header=\$ac_header_preproc"
18983 ac_res=`eval echo '${'$as_ac_Header'}'`
18984 { echo "$as_me:$LINENO: result: $ac_res" >&5
18985 echo "${ECHO_T}$ac_res" >&6; }
18988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18989 cat >>confdefs.h <<_ACEOF
18990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18998 ac_save_CPPFLAGS="$CPPFLAGS"
18999 ac_save_LDFLAGS="$LDFLAGS"
19000 # ac_save_LIBS="$LIBS"
19002 if test \! -z "$includedir" ; then
19003 CPPFLAGS="$CPPFLAGS -I$includedir"
19005 # note: $X_CFLAGS includes $x_includes
19006 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19008 if test \! -z "$libdir" ; then
19009 LDFLAGS="$LDFLAGS -L$libdir"
19011 # note: $X_LIBS includes $x_libraries
19012 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19014 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19015 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
19016 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
19017 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
19018 if test "${ac_cv_lib_util_forkpty+set}" = set; then
19019 echo $ECHO_N "(cached) $ECHO_C" >&6
19021 ac_check_lib_save_LIBS=$LIBS
19022 LIBS="-lutil $LIBS"
19023 cat >conftest.$ac_ext <<_ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19030 /* Override any GCC internal prototype to avoid an error.
19031 Use char because int might match the return type of a GCC
19032 builtin and then its argument prototype would still apply. */
19045 rm -f conftest.$ac_objext conftest$ac_exeext
19046 if { (ac_try="$ac_link"
19047 case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_link") 2>conftest.er1
19054 grep -v '^ *+' conftest.er1 >conftest.err
19056 cat conftest.err >&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } && {
19059 test -z "$ac_c_werror_flag" ||
19060 test ! -s conftest.err
19061 } && test -s conftest$ac_exeext &&
19062 $as_test_x conftest$ac_exeext; then
19063 ac_cv_lib_util_forkpty=yes
19065 echo "$as_me: failed program was:" >&5
19066 sed 's/^/| /' conftest.$ac_ext >&5
19068 ac_cv_lib_util_forkpty=no
19071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19072 conftest$ac_exeext conftest.$ac_ext
19073 LIBS=$ac_check_lib_save_LIBS
19075 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
19076 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
19077 if test $ac_cv_lib_util_forkpty = yes; then
19079 ac_have_forkpty=yes
19080 cat >>confdefs.h <<\_ACEOF
19081 #define HAVE_FORKPTY 1
19086 CPPFLAGS="$ac_save_CPPFLAGS"
19087 LDFLAGS="$ac_save_LDFLAGS"
19088 # LIBS="$ac_save_LIBS"
19091 if test "$ac_have_forkpty" != yes ; then
19092 # we don't need (or have) -lutil on MacOS 10.4.2...
19094 ac_save_CPPFLAGS="$CPPFLAGS"
19095 ac_save_LDFLAGS="$LDFLAGS"
19096 # ac_save_LIBS="$LIBS"
19098 if test \! -z "$includedir" ; then
19099 CPPFLAGS="$CPPFLAGS -I$includedir"
19101 # note: $X_CFLAGS includes $x_includes
19102 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19104 if test \! -z "$libdir" ; then
19105 LDFLAGS="$LDFLAGS -L$libdir"
19107 # note: $X_LIBS includes $x_libraries
19108 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19110 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19111 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
19112 { echo "$as_me:$LINENO: checking for forkpty in -lc" >&5
19113 echo $ECHO_N "checking for forkpty in -lc... $ECHO_C" >&6; }
19114 if test "${ac_cv_lib_c_forkpty+set}" = set; then
19115 echo $ECHO_N "(cached) $ECHO_C" >&6
19117 ac_check_lib_save_LIBS=$LIBS
19119 cat >conftest.$ac_ext <<_ACEOF
19122 cat confdefs.h >>conftest.$ac_ext
19123 cat >>conftest.$ac_ext <<_ACEOF
19124 /* end confdefs.h. */
19126 /* Override any GCC internal prototype to avoid an error.
19127 Use char because int might match the return type of a GCC
19128 builtin and then its argument prototype would still apply. */
19141 rm -f conftest.$ac_objext conftest$ac_exeext
19142 if { (ac_try="$ac_link"
19143 case "(($ac_try" in
19144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19145 *) ac_try_echo=$ac_try;;
19147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19148 (eval "$ac_link") 2>conftest.er1
19150 grep -v '^ *+' conftest.er1 >conftest.err
19152 cat conftest.err >&5
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); } && {
19155 test -z "$ac_c_werror_flag" ||
19156 test ! -s conftest.err
19157 } && test -s conftest$ac_exeext &&
19158 $as_test_x conftest$ac_exeext; then
19159 ac_cv_lib_c_forkpty=yes
19161 echo "$as_me: failed program was:" >&5
19162 sed 's/^/| /' conftest.$ac_ext >&5
19164 ac_cv_lib_c_forkpty=no
19167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19168 conftest$ac_exeext conftest.$ac_ext
19169 LIBS=$ac_check_lib_save_LIBS
19171 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_forkpty" >&5
19172 echo "${ECHO_T}$ac_cv_lib_c_forkpty" >&6; }
19173 if test $ac_cv_lib_c_forkpty = yes; then
19175 cat >>confdefs.h <<\_ACEOF
19176 #define HAVE_FORKPTY 1
19181 CPPFLAGS="$ac_save_CPPFLAGS"
19182 LDFLAGS="$ac_save_LDFLAGS"
19183 # LIBS="$ac_save_LIBS"
19187 ###############################################################################
19189 # Check for the XSHM server extension.
19191 ###############################################################################
19194 with_xshm_req=unspecified
19196 # Check whether --with-xshm-ext was given.
19197 if test "${with_xshm_ext+set}" = set; then
19198 withval=$with_xshm_ext; with_xshm="$withval"; with_xshm_req="$withval"
19205 case "$with_xshm" in
19210 { echo "$as_me:$LINENO: checking for XSHM headers" >&5
19211 echo $ECHO_N "checking for XSHM headers... $ECHO_C" >&6; }
19212 d=$with_xshm/include
19213 if test -d $d; then
19214 X_CFLAGS="-I$d $X_CFLAGS"
19215 { echo "$as_me:$LINENO: result: $d" >&5
19216 echo "${ECHO_T}$d" >&6; }
19218 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19219 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
19222 { echo "$as_me:$LINENO: checking for XSHM libs" >&5
19223 echo $ECHO_N "checking for XSHM libs... $ECHO_C" >&6; }
19225 if test -d $d; then
19226 X_LIBS="-L$d $X_LIBS"
19227 { echo "$as_me:$LINENO: result: $d" >&5
19228 echo "${ECHO_T}$d" >&6; }
19230 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19231 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
19234 # replace the directory string with "yes".
19235 with_xshm_req="yes"
19236 with_xshm=$with_xshm_req
19241 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
19242 echo " If it is a directory, then \`DIR/include' will be added to"
19243 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19249 if test "$with_xshm" = yes; then
19251 # first check for Xshm.h.
19253 ac_save_CPPFLAGS="$CPPFLAGS"
19254 if test \! -z "$includedir" ; then
19255 CPPFLAGS="$CPPFLAGS -I$includedir"
19257 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19258 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19259 { echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5
19260 echo $ECHO_N "checking for X11/extensions/XShm.h... $ECHO_C" >&6; }
19261 if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
19262 echo $ECHO_N "(cached) $ECHO_C" >&6
19264 cat >conftest.$ac_ext <<_ACEOF
19267 cat confdefs.h >>conftest.$ac_ext
19268 cat >>conftest.$ac_ext <<_ACEOF
19269 /* end confdefs.h. */
19270 #include <X11/Xlib.h>
19272 #include <X11/extensions/XShm.h>
19274 rm -f conftest.$ac_objext
19275 if { (ac_try="$ac_compile"
19276 case "(($ac_try" in
19277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19278 *) ac_try_echo=$ac_try;;
19280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19281 (eval "$ac_compile") 2>conftest.er1
19283 grep -v '^ *+' conftest.er1 >conftest.err
19285 cat conftest.err >&5
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); } && {
19288 test -z "$ac_c_werror_flag" ||
19289 test ! -s conftest.err
19290 } && test -s conftest.$ac_objext; then
19291 ac_cv_header_X11_extensions_XShm_h=yes
19293 echo "$as_me: failed program was:" >&5
19294 sed 's/^/| /' conftest.$ac_ext >&5
19296 ac_cv_header_X11_extensions_XShm_h=no
19299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19301 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5
19302 echo "${ECHO_T}$ac_cv_header_X11_extensions_XShm_h" >&6; }
19303 if test $ac_cv_header_X11_extensions_XShm_h = yes; then
19308 CPPFLAGS="$ac_save_CPPFLAGS"
19310 # if that succeeded, then check for sys/ipc.h.
19311 if test "$have_xshm" = yes; then
19314 ac_save_CPPFLAGS="$CPPFLAGS"
19315 if test \! -z "$includedir" ; then
19316 CPPFLAGS="$CPPFLAGS -I$includedir"
19318 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19319 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19320 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
19321 { echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
19322 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6; }
19323 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
19324 echo $ECHO_N "(cached) $ECHO_C" >&6
19326 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
19327 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6; }
19329 # Is the header compilable?
19330 { echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
19331 echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6; }
19332 cat >conftest.$ac_ext <<_ACEOF
19335 cat confdefs.h >>conftest.$ac_ext
19336 cat >>conftest.$ac_ext <<_ACEOF
19337 /* end confdefs.h. */
19338 $ac_includes_default
19339 #include <sys/ipc.h>
19341 rm -f conftest.$ac_objext
19342 if { (ac_try="$ac_compile"
19343 case "(($ac_try" in
19344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19345 *) ac_try_echo=$ac_try;;
19347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19348 (eval "$ac_compile") 2>conftest.er1
19350 grep -v '^ *+' conftest.er1 >conftest.err
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } && {
19355 test -z "$ac_c_werror_flag" ||
19356 test ! -s conftest.err
19357 } && test -s conftest.$ac_objext; then
19358 ac_header_compiler=yes
19360 echo "$as_me: failed program was:" >&5
19361 sed 's/^/| /' conftest.$ac_ext >&5
19363 ac_header_compiler=no
19366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19367 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19368 echo "${ECHO_T}$ac_header_compiler" >&6; }
19370 # Is the header present?
19371 { echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
19372 echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6; }
19373 cat >conftest.$ac_ext <<_ACEOF
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h. */
19379 #include <sys/ipc.h>
19381 if { (ac_try="$ac_cpp conftest.$ac_ext"
19382 case "(($ac_try" in
19383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19384 *) ac_try_echo=$ac_try;;
19386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19389 grep -v '^ *+' conftest.er1 >conftest.err
19391 cat conftest.err >&5
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); } >/dev/null && {
19394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19395 test ! -s conftest.err
19397 ac_header_preproc=yes
19399 echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19402 ac_header_preproc=no
19405 rm -f conftest.err conftest.$ac_ext
19406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19407 echo "${ECHO_T}$ac_header_preproc" >&6; }
19409 # So? What about this header?
19410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19412 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
19413 echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19414 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the compiler's result" >&5
19415 echo "$as_me: WARNING: sys/ipc.h: proceeding with the compiler's result" >&2;}
19416 ac_header_preproc=yes
19419 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
19420 echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
19421 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
19422 echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
19423 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: see the Autoconf documentation" >&5
19424 echo "$as_me: WARNING: sys/ipc.h: see the Autoconf documentation" >&2;}
19425 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&5
19426 echo "$as_me: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&2;}
19427 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
19428 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
19429 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&5
19430 echo "$as_me: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&2;}
19434 { echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
19435 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6; }
19436 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
19437 echo $ECHO_N "(cached) $ECHO_C" >&6
19439 ac_cv_header_sys_ipc_h=$ac_header_preproc
19441 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
19442 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6; }
19445 if test $ac_cv_header_sys_ipc_h = yes; then
19450 CPPFLAGS="$ac_save_CPPFLAGS"
19453 # if that succeeded, then check for sys/shm.h.
19454 if test "$have_xshm" = yes; then
19457 ac_save_CPPFLAGS="$CPPFLAGS"
19458 if test \! -z "$includedir" ; then
19459 CPPFLAGS="$CPPFLAGS -I$includedir"
19461 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19462 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19463 if test "${ac_cv_header_sys_shm_h+set}" = set; then
19464 { echo "$as_me:$LINENO: checking for sys/shm.h" >&5
19465 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6; }
19466 if test "${ac_cv_header_sys_shm_h+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19469 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
19470 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6; }
19472 # Is the header compilable?
19473 { echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
19474 echo $ECHO_N "checking sys/shm.h usability... $ECHO_C" >&6; }
19475 cat >conftest.$ac_ext <<_ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h. */
19481 $ac_includes_default
19482 #include <sys/shm.h>
19484 rm -f conftest.$ac_objext
19485 if { (ac_try="$ac_compile"
19486 case "(($ac_try" in
19487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19488 *) ac_try_echo=$ac_try;;
19490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19491 (eval "$ac_compile") 2>conftest.er1
19493 grep -v '^ *+' conftest.er1 >conftest.err
19495 cat conftest.err >&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); } && {
19498 test -z "$ac_c_werror_flag" ||
19499 test ! -s conftest.err
19500 } && test -s conftest.$ac_objext; then
19501 ac_header_compiler=yes
19503 echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.$ac_ext >&5
19506 ac_header_compiler=no
19509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19510 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19511 echo "${ECHO_T}$ac_header_compiler" >&6; }
19513 # Is the header present?
19514 { echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
19515 echo $ECHO_N "checking sys/shm.h presence... $ECHO_C" >&6; }
19516 cat >conftest.$ac_ext <<_ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19522 #include <sys/shm.h>
19524 if { (ac_try="$ac_cpp conftest.$ac_ext"
19525 case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19532 grep -v '^ *+' conftest.er1 >conftest.err
19534 cat conftest.err >&5
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); } >/dev/null && {
19537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19538 test ! -s conftest.err
19540 ac_header_preproc=yes
19542 echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19545 ac_header_preproc=no
19548 rm -f conftest.err conftest.$ac_ext
19549 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19550 echo "${ECHO_T}$ac_header_preproc" >&6; }
19552 # So? What about this header?
19553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19555 { echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
19556 echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19557 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the compiler's result" >&5
19558 echo "$as_me: WARNING: sys/shm.h: proceeding with the compiler's result" >&2;}
19559 ac_header_preproc=yes
19562 { echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
19563 echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
19564 { echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
19565 echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
19566 { echo "$as_me:$LINENO: WARNING: sys/shm.h: see the Autoconf documentation" >&5
19567 echo "$as_me: WARNING: sys/shm.h: see the Autoconf documentation" >&2;}
19568 { echo "$as_me:$LINENO: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&5
19569 echo "$as_me: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&2;}
19570 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
19571 echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
19572 { echo "$as_me:$LINENO: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&5
19573 echo "$as_me: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&2;}
19577 { echo "$as_me:$LINENO: checking for sys/shm.h" >&5
19578 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6; }
19579 if test "${ac_cv_header_sys_shm_h+set}" = set; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
19582 ac_cv_header_sys_shm_h=$ac_header_preproc
19584 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
19585 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6; }
19588 if test $ac_cv_header_sys_shm_h = yes; then
19593 CPPFLAGS="$ac_save_CPPFLAGS"
19596 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
19597 # to exist, but the library code to not exist. And even better, the library
19598 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
19599 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
19600 # that's not quite right, but close enough.)
19604 if `uname -v` -eq 3 ; then
19607 ac_save_CPPFLAGS="$CPPFLAGS"
19608 ac_save_LDFLAGS="$LDFLAGS"
19609 # ac_save_LIBS="$LIBS"
19611 if test \! -z "$includedir" ; then
19612 CPPFLAGS="$CPPFLAGS -I$includedir"
19614 # note: $X_CFLAGS includes $x_includes
19615 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19617 if test \! -z "$libdir" ; then
19618 LDFLAGS="$LDFLAGS -L$libdir"
19620 # note: $X_LIBS includes $x_libraries
19621 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19623 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19624 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
19625 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXextSam" >&5
19626 echo $ECHO_N "checking for XShmQueryExtension in -lXextSam... $ECHO_C" >&6; }
19627 if test "${ac_cv_lib_XextSam_XShmQueryExtension+set}" = set; then
19628 echo $ECHO_N "(cached) $ECHO_C" >&6
19630 ac_check_lib_save_LIBS=$LIBS
19631 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
19632 cat >conftest.$ac_ext <<_ACEOF
19635 cat confdefs.h >>conftest.$ac_ext
19636 cat >>conftest.$ac_ext <<_ACEOF
19637 /* end confdefs.h. */
19639 /* Override any GCC internal prototype to avoid an error.
19640 Use char because int might match the return type of a GCC
19641 builtin and then its argument prototype would still apply. */
19645 char XShmQueryExtension ();
19649 return XShmQueryExtension ();
19654 rm -f conftest.$ac_objext conftest$ac_exeext
19655 if { (ac_try="$ac_link"
19656 case "(($ac_try" in
19657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19658 *) ac_try_echo=$ac_try;;
19660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19661 (eval "$ac_link") 2>conftest.er1
19663 grep -v '^ *+' conftest.er1 >conftest.err
19665 cat conftest.err >&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } && {
19668 test -z "$ac_c_werror_flag" ||
19669 test ! -s conftest.err
19670 } && test -s conftest$ac_exeext &&
19671 $as_test_x conftest$ac_exeext; then
19672 ac_cv_lib_XextSam_XShmQueryExtension=yes
19674 echo "$as_me: failed program was:" >&5
19675 sed 's/^/| /' conftest.$ac_ext >&5
19677 ac_cv_lib_XextSam_XShmQueryExtension=no
19680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19681 conftest$ac_exeext conftest.$ac_ext
19682 LIBS=$ac_check_lib_save_LIBS
19684 { echo "$as_me:$LINENO: result: $ac_cv_lib_XextSam_XShmQueryExtension" >&5
19685 echo "${ECHO_T}$ac_cv_lib_XextSam_XShmQueryExtension" >&6; }
19686 if test $ac_cv_lib_XextSam_XShmQueryExtension = yes; then
19687 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
19692 CPPFLAGS="$ac_save_CPPFLAGS"
19693 LDFLAGS="$ac_save_LDFLAGS"
19694 # LIBS="$ac_save_LIBS"
19700 # if that succeeded, then we've really got it.
19701 if test "$have_xshm" = yes; then
19702 cat >>confdefs.h <<\_ACEOF
19703 #define HAVE_XSHM_EXTENSION 1
19708 elif test "$with_xshm" != no; then
19709 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
19714 ###############################################################################
19716 # Check for the DOUBLE-BUFFER server extension.
19718 ###############################################################################
19721 with_xdbe_req=unspecified
19723 # Check whether --with-xdbe-ext was given.
19724 if test "${with_xdbe_ext+set}" = set; then
19725 withval=$with_xdbe_ext; with_xdbe="$withval"; with_xdbe_req="$withval"
19732 case "$with_xdbe" in
19737 { echo "$as_me:$LINENO: checking for DOUBLE-BUFFER headers" >&5
19738 echo $ECHO_N "checking for DOUBLE-BUFFER headers... $ECHO_C" >&6; }
19739 d=$with_xdbe/include
19740 if test -d $d; then
19741 X_CFLAGS="-I$d $X_CFLAGS"
19742 { echo "$as_me:$LINENO: result: $d" >&5
19743 echo "${ECHO_T}$d" >&6; }
19745 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19746 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
19749 { echo "$as_me:$LINENO: checking for DOUBLE-BUFFER libs" >&5
19750 echo $ECHO_N "checking for DOUBLE-BUFFER libs... $ECHO_C" >&6; }
19752 if test -d $d; then
19753 X_LIBS="-L$d $X_LIBS"
19754 { echo "$as_me:$LINENO: result: $d" >&5
19755 echo "${ECHO_T}$d" >&6; }
19757 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19758 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
19761 # replace the directory string with "yes".
19762 with_xdbe_req="yes"
19763 with_xdbe=$with_xdbe_req
19768 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
19769 echo " If it is a directory, then \`DIR/include' will be added to"
19770 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19776 if test "$with_xdbe" = yes; then
19779 ac_save_CPPFLAGS="$CPPFLAGS"
19780 if test \! -z "$includedir" ; then
19781 CPPFLAGS="$CPPFLAGS -I$includedir"
19783 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19784 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19785 { echo "$as_me:$LINENO: checking for X11/extensions/Xdbe.h" >&5
19786 echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6; }
19787 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
19788 echo $ECHO_N "(cached) $ECHO_C" >&6
19790 cat >conftest.$ac_ext <<_ACEOF
19793 cat confdefs.h >>conftest.$ac_ext
19794 cat >>conftest.$ac_ext <<_ACEOF
19795 /* end confdefs.h. */
19796 #include <X11/Xlib.h>
19798 #include <X11/extensions/Xdbe.h>
19800 rm -f conftest.$ac_objext
19801 if { (ac_try="$ac_compile"
19802 case "(($ac_try" in
19803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807 (eval "$ac_compile") 2>conftest.er1
19809 grep -v '^ *+' conftest.er1 >conftest.err
19811 cat conftest.err >&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } && {
19814 test -z "$ac_c_werror_flag" ||
19815 test ! -s conftest.err
19816 } && test -s conftest.$ac_objext; then
19817 ac_cv_header_X11_extensions_Xdbe_h=yes
19819 echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19822 ac_cv_header_X11_extensions_Xdbe_h=no
19825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19827 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
19828 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6; }
19829 if test $ac_cv_header_X11_extensions_Xdbe_h = yes; then
19834 CPPFLAGS="$ac_save_CPPFLAGS"
19835 if test "$have_xdbe" = yes; then
19836 cat >>confdefs.h <<\_ACEOF
19837 #define HAVE_DOUBLE_BUFFER_EXTENSION 1
19842 elif test "$with_xdbe" != no; then
19843 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
19848 ###############################################################################
19850 # Check for the SGI XReadDisplay server extension.
19852 # Note: this has to be down here, rather than up with the other server
19853 # extension tests, so that the output of `configure --help' is in the
19854 # right order. Arrgh!
19856 ###############################################################################
19858 have_readdisplay=no
19859 with_readdisplay_req=unspecified
19861 # Check whether --with-readdisplay was given.
19862 if test "${with_readdisplay+set}" = set; then
19863 withval=$with_readdisplay; with_readdisplay="$withval"; with_readdisplay_req="$withval"
19865 with_readdisplay=yes
19870 case "$with_readdisplay" in
19875 { echo "$as_me:$LINENO: checking for XReadDisplay headers" >&5
19876 echo $ECHO_N "checking for XReadDisplay headers... $ECHO_C" >&6; }
19877 d=$with_readdisplay/include
19878 if test -d $d; then
19879 X_CFLAGS="-I$d $X_CFLAGS"
19880 { echo "$as_me:$LINENO: result: $d" >&5
19881 echo "${ECHO_T}$d" >&6; }
19883 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19884 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
19887 { echo "$as_me:$LINENO: checking for XReadDisplay libs" >&5
19888 echo $ECHO_N "checking for XReadDisplay libs... $ECHO_C" >&6; }
19889 d=$with_readdisplay/lib
19890 if test -d $d; then
19891 X_LIBS="-L$d $X_LIBS"
19892 { echo "$as_me:$LINENO: result: $d" >&5
19893 echo "${ECHO_T}$d" >&6; }
19895 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19896 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
19899 # replace the directory string with "yes".
19900 with_readdisplay_req="yes"
19901 with_readdisplay=$with_readdisplay_req
19906 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
19907 echo " If it is a directory, then \`DIR/include' will be added to"
19908 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19914 if test "$with_readdisplay" = yes; then
19916 ac_save_CPPFLAGS="$CPPFLAGS"
19917 if test \! -z "$includedir" ; then
19918 CPPFLAGS="$CPPFLAGS -I$includedir"
19920 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19921 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19922 { echo "$as_me:$LINENO: checking for X11/extensions/readdisplay.h" >&5
19923 echo $ECHO_N "checking for X11/extensions/readdisplay.h... $ECHO_C" >&6; }
19924 if test "${ac_cv_header_X11_extensions_readdisplay_h+set}" = set; then
19925 echo $ECHO_N "(cached) $ECHO_C" >&6
19927 cat >conftest.$ac_ext <<_ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h. */
19933 #include <X11/Xlib.h>
19935 #include <X11/extensions/readdisplay.h>
19937 rm -f conftest.$ac_objext
19938 if { (ac_try="$ac_compile"
19939 case "(($ac_try" in
19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941 *) ac_try_echo=$ac_try;;
19943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944 (eval "$ac_compile") 2>conftest.er1
19946 grep -v '^ *+' conftest.er1 >conftest.err
19948 cat conftest.err >&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } && {
19951 test -z "$ac_c_werror_flag" ||
19952 test ! -s conftest.err
19953 } && test -s conftest.$ac_objext; then
19954 ac_cv_header_X11_extensions_readdisplay_h=yes
19956 echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19959 ac_cv_header_X11_extensions_readdisplay_h=no
19962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19964 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_readdisplay_h" >&5
19965 echo "${ECHO_T}$ac_cv_header_X11_extensions_readdisplay_h" >&6; }
19966 if test $ac_cv_header_X11_extensions_readdisplay_h = yes; then
19967 cat >>confdefs.h <<\_ACEOF
19968 #define HAVE_READ_DISPLAY_EXTENSION 1
19974 CPPFLAGS="$ac_save_CPPFLAGS"
19975 elif test "$with_readdisplay" != no; then
19976 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
19981 ###############################################################################
19983 # Check for a directory full of images to use as the default value
19984 # of the "imageDirectory" preference.
19986 ###############################################################################
19989 with_imagedir_req=unspecified
19992 # Check whether --with-image-directory was given.
19993 if test "${with_image_directory+set}" = set; then
19994 withval=$with_image_directory; with_imagedir="$withval"; with_imagedir_req="$withval"
19999 # no HANDLE_X_PATH_ARG for this one
20001 case "$with_imagedir" in
20004 { echo "$as_me:$LINENO: checking for image directory $with_imagedir" >&5
20005 echo $ECHO_N "checking for image directory $with_imagedir... $ECHO_C" >&6; }
20006 if test -d "$with_imagedir" ; then
20007 { echo "$as_me:$LINENO: result: yes" >&5
20008 echo "${ECHO_T}yes" >&6; }
20010 { echo "$as_me:$LINENO: result: no" >&5
20011 echo "${ECHO_T}no" >&6; }
20018 #### Could use some more defaults here...
20020 "/usr/share/backgrounds/images/" \
20021 "/usr/share/wallpapers/" \
20022 "/Library/Desktop Pictures/" \
20024 if test -z "$with_imagedir"; then
20025 { echo "$as_me:$LINENO: checking for image directory $dd" >&5
20026 echo $ECHO_N "checking for image directory $dd... $ECHO_C" >&6; }
20027 if test -d "$dd" ; then
20028 { echo "$as_me:$LINENO: result: yes" >&5
20029 echo "${ECHO_T}yes" >&6; }
20030 with_imagedir="$dd"
20032 { echo "$as_me:$LINENO: result: no" >&5
20033 echo "${ECHO_T}no" >&6; }
20044 echo "error: must be an absolute path: --with-image-directory=$with_imagedir_req"
20048 ac_cv_imagedir="$with_imagedir"
20050 DEFAULT_IMAGES_P='True'
20051 DEFAULT_IMAGE_DIRECTORY="$ac_cv_imagedir"
20053 if test -z "$DEFAULT_IMAGE_DIRECTORY" ; then
20054 DEFAULT_IMAGES_P='False'
20058 ###############################################################################
20060 # Pick a text file to use as the default of the "textFile" preference.
20061 # Any old file will do, but preferably one that will make interesting
20062 # shapes when displayed by "starwars" and "fontglide".
20064 ###############################################################################
20067 with_textfile_req=unspecified
20070 # Check whether --with-text-file was given.
20071 if test "${with_text_file+set}" = set; then
20072 withval=$with_text_file; with_textfile="$withval"; with_textfile_req="$withval"
20077 # no HANDLE_X_PATH_ARG for this one
20079 case "$with_textfile" in
20082 { echo "$as_me:$LINENO: checking for text file $with_textfile" >&5
20083 echo $ECHO_N "checking for text file $with_textfile... $ECHO_C" >&6; }
20084 if test -f "$with_textfile" ; then
20085 { echo "$as_me:$LINENO: result: yes" >&5
20086 echo "${ECHO_T}yes" >&6; }
20088 { echo "$as_me:$LINENO: result: no" >&5
20089 echo "${ECHO_T}no" >&6; }
20096 #### Could use some more defaults here...
20098 "/usr/X11R6/lib/X11/doc/README" \
20099 "/usr/share/doc/xserver-common/copyright" \
20100 "/usr/share/doc/xserver-xorg-core/copyright" \
20101 "/usr/X11R6/README" \
20102 "/usr/share/doc/debian/debian-manifesto" \
20104 if test -z "$with_textfile"; then
20105 { echo "$as_me:$LINENO: checking for text file $f" >&5
20106 echo $ECHO_N "checking for text file $f... $ECHO_C" >&6; }
20107 if test -f "$f" ; then
20108 { echo "$as_me:$LINENO: result: yes" >&5
20109 echo "${ECHO_T}yes" >&6; }
20112 { echo "$as_me:$LINENO: result: no" >&5
20113 echo "${ECHO_T}no" >&6; }
20124 echo "error: must be an absolute path: --with-text-file=$with_textfile_req"
20128 ac_cv_textfile="$with_textfile"
20130 DEFAULT_TEXT_FILE="$ac_cv_textfile"
20133 ###############################################################################
20135 # Check the browser to see help URL
20137 ###############################################################################
20140 with_browser_req=unspecified
20143 # Check whether --with-browser was given.
20144 if test "${with_browser+set}" = set; then
20145 withval=$with_browser; with_browser="$withval"; with_browser_req="$withval"
20150 # no HANDLE_X_PATH_ARG for this one
20152 case "$with_browser" in
20156 WITH_BROWSER=$with_browser
20157 gnome_open_program=$with_browser
20158 { echo "$as_me:$LINENO: checking for browser $with_browser" >&5
20159 echo $ECHO_N "checking for browser $with_browser... $ECHO_C" >&6; }
20160 with_browser_fullpath=`which $with_browser 2>/dev/null`
20161 case $with_browser_fullpath in
20163 { echo "$as_me:$LINENO: result: yes" >&5
20164 echo "${ECHO_T}yes" >&6; }
20168 { echo "$as_me:$LINENO: result: no" >&5
20169 echo "${ECHO_T}no" >&6; }
20170 # Only warning: we don't want to install all packages for the
20171 # dependency of the browser in building stage...
20172 echo "WARNING: browser not found: --with-browser=$with_browser"
20177 ac_cv_browser="$with_browser"
20179 ###############################################################################
20181 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
20182 # This should be safe, but let's give people the option.
20184 ###############################################################################
20186 setuid_hacks_default=no
20187 setuid_hacks="$setuid_hacks_default"
20189 # Check whether --with-setuid-hacks was given.
20190 if test "${with_setuid_hacks+set}" = set; then
20191 withval=$with_setuid_hacks; setuid_hacks="$withval"
20193 setuid_hacks="$setuid_hacks_default"
20198 case "$setuid_hacks" in
20203 { echo "$as_me:$LINENO: checking for setuid hacks headers" >&5
20204 echo $ECHO_N "checking for setuid hacks headers... $ECHO_C" >&6; }
20205 d=$setuid_hacks/include
20206 if test -d $d; then
20207 X_CFLAGS="-I$d $X_CFLAGS"
20208 { echo "$as_me:$LINENO: result: $d" >&5
20209 echo "${ECHO_T}$d" >&6; }
20211 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20212 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
20215 { echo "$as_me:$LINENO: checking for setuid hacks libs" >&5
20216 echo $ECHO_N "checking for setuid hacks libs... $ECHO_C" >&6; }
20217 d=$setuid_hacks/lib
20218 if test -d $d; then
20219 X_LIBS="-L$d $X_LIBS"
20220 { echo "$as_me:$LINENO: result: $d" >&5
20221 echo "${ECHO_T}$d" >&6; }
20223 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20224 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
20227 # replace the directory string with "yes".
20228 setuid_hacks_req="yes"
20229 setuid_hacks=$setuid_hacks_req
20234 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
20235 echo " If it is a directory, then \`DIR/include' will be added to"
20236 echo " the -I list, and \`DIR/lib' will be added to the -L list."
20242 if test "$setuid_hacks" = yes; then
20244 elif test "$setuid_hacks" != no; then
20245 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
20250 ###############################################################################
20252 # Done testing. Now, set up the various -I and -L variables,
20253 # and decide which GUI program to build by default.
20255 ###############################################################################
20262 if test \! -z "$includedir" ; then
20263 INCLUDES="$INCLUDES -I$includedir"
20266 if test \! -z "$libdir" ; then
20267 LDFLAGS="$LDFLAGS -L$libdir"
20271 PREFERRED_DEMO_PROGRAM=''
20273 if test "$have_motif" = yes; then
20274 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
20275 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
20277 if test "$have_gtk" = yes; then
20278 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
20279 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
20283 if test "$have_kerberos" = yes; then
20284 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
20285 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
20287 if test "$have_pam" = yes; then
20288 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
20289 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
20290 INSTALL_PAM="install-pam"
20292 if test "$have_passwd_helper" = yes; then
20293 PASSWD_SRCS="$PASSWD_SRCS \$(PWHELPER_SRCS)"
20294 PASSWD_OBJS="$PASSWD_OBJS \$(PWHELPER_OBJS)"
20296 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
20297 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
20300 if test "$enable_locking" = yes; then
20301 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
20302 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
20304 LOCK_SRCS='$(NOLOCK_SRCS_1)'
20305 LOCK_OBJS='$(NOLOCK_OBJS_1)'
20308 if test "$ac_macosx" = yes; then
20309 EXES_OSX='$(EXES_OSX)'
20310 SCRIPTS_OSX='$(SCRIPTS_OSX)'
20311 MEN_OSX='$(MEN_OSX)'
20319 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
20321 if test "$need_setuid" = yes; then
20327 if test "$setuid_hacks" = yes; then
20334 if test "$have_gl" = yes; then
20335 GL_EXES='$(GL_EXES)'
20336 SUID_EXES='$(SUID_EXES)'
20337 RETIRED_GL_EXES='$(RETIRED_GL_EXES)'
20338 GL_UTIL_EXES='$(GL_UTIL_EXES)'
20345 if test "$have_gle" = yes; then
20346 GLE_EXES='$(GLE_EXES)'
20352 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
20353 JPEG_EXES='$(JPEG_EXES)'
20357 # Another substitution in the XScreenSaver.ad.in file:
20359 if test "$gnome_open_program" != ''; then
20363 elif test "$gnome_url_show_program" != ''; then
20374 # Set PO_DATADIR to something sensible.
20376 { echo "$as_me:$LINENO: checking for locale directory" >&5
20377 echo $ECHO_N "checking for locale directory... $ECHO_C" >&6; }
20378 if test -n "$GTK_DATADIR" ; then
20379 PO_DATADIR="$GTK_DATADIR"
20380 elif test "$have_gtk" = yes; then
20381 PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
20382 PO_DATADIR="$PO_DATADIR/share"
20385 if test -z "$PO_DATADIR" ; then
20387 # #### Total fucking kludge --
20388 # Map /build/prefix/usr/X11R6/share/ to /build/prefix/usr/share/
20389 # but of course we need to expand all the nested variables to do that...
20391 dd=`eval eval eval eval eval eval eval eval eval eval eval echo $datadir`
20392 PO_DATADIR=`echo $dd | sed 's@/X11R6/@/@'`
20395 { echo "$as_me:$LINENO: result: $PO_DATADIR/locale" >&5
20396 echo "${ECHO_T}$PO_DATADIR/locale" >&6; }
20399 # canonicalize slashes.
20400 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
20402 # gcc 3.0 likes to issue this warning for every file:
20404 # cc1: warning: changing search order for system directory "/usr/local/include"
20405 # cc1: warning: as it has already been specified as a non-system directory
20407 # Yay. We can only avoid that by deleting "-I${prefix}/include" from the list.
20408 # Which *should* be totally redundant, and thus an ok thing to delete?
20410 INCLUDES=`echo "$INCLUDES" | sed 's@ -I${prefix}/include@@g;'`
20413 ###############################################################################
20415 # Perform substitutions and write Makefiles.
20417 ###############################################################################
20484 APPDEFAULTS=$ac_x_app_defaults
20492 ac_config_files="$ac_config_files Makefile utils/Makefile driver/Makefile hacks/Makefile hacks/glx/Makefile po/Makefile.in driver/XScreenSaver.ad"
20494 cat >confcache <<\_ACEOF
20495 # This file is a shell script that caches the results of configure
20496 # tests run on this system so they can be shared between configure
20497 # scripts and configure runs, see configure's option --config-cache.
20498 # It is not useful on other systems. If it contains results you don't
20499 # want to keep, you may remove or edit it.
20501 # config.status only pays attention to the cache file if you give it
20502 # the --recheck option to rerun configure.
20504 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20505 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20506 # following values.
20510 # The following way of writing the cache mishandles newlines in values,
20511 # but we know of no workaround that is simple, portable, and efficient.
20512 # So, we kill variables containing newlines.
20513 # Ultrix sh set writes to stderr and can't be redirected directly,
20514 # and sets the high bit in the cache file unless we assign to the vars.
20516 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20517 eval ac_val=\$$ac_var
20521 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20522 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20525 _ | IFS | as_nl) ;; #(
20526 *) $as_unset $ac_var ;;
20532 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20533 *${as_nl}ac_space=\ *)
20534 # `set' does not quote correctly, so add quotes (double-quote
20535 # substitution turns \\\\ into \\, and sed turns \\ into \).
20538 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20541 # `set' quotes correctly as required by POSIX, so do not add quotes.
20542 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20551 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20553 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20555 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20556 if test -w "$cache_file"; then
20557 test "x$cache_file" != "x/dev/null" &&
20558 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20559 echo "$as_me: updating cache $cache_file" >&6;}
20560 cat confcache >$cache_file
20562 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20563 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20568 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20569 # Let make expand exec_prefix.
20570 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20572 DEFS=-DHAVE_CONFIG_H
20576 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20577 # 1. Remove the extension, and $U if already installed.
20578 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20579 ac_i=`echo "$ac_i" | sed "$ac_script"`
20580 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20581 # will be set to the directory where LIBOBJS objects are built.
20582 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20583 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20585 LIBOBJS=$ac_libobjs
20587 LTLIBOBJS=$ac_ltlibobjs
20592 mv -f po/POTFILES po/POTFILES.tmp
20593 sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
20594 rm -f po/POTFILES.tmp
20598 : ${CONFIG_STATUS=./config.status}
20599 ac_clean_files_save=$ac_clean_files
20600 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20601 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20602 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20603 cat >$CONFIG_STATUS <<_ACEOF
20605 # Generated by $as_me.
20606 # Run this file to recreate the current configuration.
20607 # Compiler output produced by configure, useful for debugging
20608 # configure, is in config.log if it exists.
20611 ac_cs_recheck=false
20613 SHELL=\${CONFIG_SHELL-$SHELL}
20616 cat >>$CONFIG_STATUS <<\_ACEOF
20617 ## --------------------- ##
20618 ## M4sh Initialization. ##
20619 ## --------------------- ##
20621 # Be more Bourne compatible
20622 DUALCASE=1; export DUALCASE # for MKS sh
20623 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20626 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20627 # is contrary to our usage. Disable this feature.
20628 alias -g '${1+"$@"}'='"$@"'
20629 setopt NO_GLOB_SUBST
20631 case `(set -o) 2>/dev/null` in
20632 *posix*) set -o posix ;;
20641 # Avoid depending upon Character Ranges.
20642 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20643 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20644 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20645 as_cr_digits='0123456789'
20646 as_cr_alnum=$as_cr_Letters$as_cr_digits
20648 # The user is always right.
20649 if test "${PATH_SEPARATOR+set}" != set; then
20650 echo "#! /bin/sh" >conf$$.sh
20651 echo "exit 0" >>conf$$.sh
20653 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20661 # Support unset when possible.
20662 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20670 # We need space, tab and new line, in precisely that order. Quoting is
20671 # there to prevent editors from complaining about space-tab.
20672 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20673 # splitting by setting IFS to empty value.)
20678 # Find who we are. Look in the path if we contain no directory separator.
20680 *[\\/]* ) as_myself=$0 ;;
20681 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20682 for as_dir in $PATH
20685 test -z "$as_dir" && as_dir=.
20686 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20692 # We did not find ourselves, most probably we were run as `sh COMMAND'
20693 # in which case we are not to be found in the path.
20694 if test "x$as_myself" = x; then
20697 if test ! -f "$as_myself"; then
20698 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20699 { (exit 1); exit 1; }
20702 # Work around bugs in pre-3.0 UWIN ksh.
20703 for as_var in ENV MAIL MAILPATH
20704 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20712 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20713 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20714 LC_TELEPHONE LC_TIME
20716 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20717 eval $as_var=C; export $as_var
20719 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20723 # Required to use basename.
20724 if expr a : '\(a\)' >/dev/null 2>&1 &&
20725 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20731 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20732 as_basename=basename
20738 # Name of the executable.
20739 as_me=`$as_basename -- "$0" ||
20740 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20741 X"$0" : 'X\(//\)$' \| \
20742 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20744 sed '/^.*\/\([^/][^/]*\)\/*$/{
20763 as_lineno_1=$LINENO
20764 as_lineno_2=$LINENO
20765 test "x$as_lineno_1" != "x$as_lineno_2" &&
20766 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20768 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20769 # uniformly replaced by the line number. The first 'sed' inserts a
20770 # line-number line after each line using $LINENO; the second 'sed'
20771 # does the real work. The second script uses 'N' to pair each
20772 # line-number line with the line containing $LINENO, and appends
20773 # trailing '-' during substitution so that $LINENO is not a special
20774 # case at line end.
20775 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20776 # scripts with optimization help from Paolo Bonzini. Blame Lee
20777 # E. McMahon (1931-1989) for sed's syntax. :-)
20789 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20792 ' >$as_me.lineno &&
20793 chmod +x "$as_me.lineno" ||
20794 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20795 { (exit 1); exit 1; }; }
20797 # Don't try to exec as it changes $[0], causing all sort of problems
20798 # (the dirname of $[0] is not the place where we might find the
20799 # original and so on. Autoconf is especially sensitive to this).
20800 . "./$as_me.lineno"
20801 # Exit status is that of the last command.
20806 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20812 ECHO_C= ECHO_N= ECHO_T=
20813 case `echo -n x` in
20815 case `echo 'x\c'` in
20816 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20823 if expr a : '\(a\)' >/dev/null 2>&1 &&
20824 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20830 rm -f conf$$ conf$$.exe conf$$.file
20831 if test -d conf$$.dir; then
20832 rm -f conf$$.dir/conf$$.file
20838 if ln -s conf$$.file conf$$ 2>/dev/null; then
20840 # ... but there are two gotchas:
20841 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20842 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20843 # In both cases, we have to default to `cp -p'.
20844 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20846 elif ln conf$$.file conf$$ 2>/dev/null; then
20851 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20852 rmdir conf$$.dir 2>/dev/null
20854 if mkdir -p . 2>/dev/null; then
20857 test -d ./-p && rmdir ./-p
20861 if test -x / >/dev/null 2>&1; then
20862 as_test_x='test -x'
20864 if ls -dL / >/dev/null 2>&1; then
20871 if test -d "$1"; then
20877 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20878 ???[sx]*):;;*)false;;esac;fi
20882 as_executable_p=$as_test_x
20884 # Sed expression to map a string onto a valid CPP name.
20885 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20887 # Sed expression to map a string onto a valid variable name.
20888 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20893 # Save the log message, to keep $[0] and so on meaningful, and to
20894 # report actual input values of CONFIG_FILES etc. instead of their
20895 # values after options handling.
20897 This file was extended by $as_me, which was
20898 generated by GNU Autoconf 2.61. Invocation command line was
20900 CONFIG_FILES = $CONFIG_FILES
20901 CONFIG_HEADERS = $CONFIG_HEADERS
20902 CONFIG_LINKS = $CONFIG_LINKS
20903 CONFIG_COMMANDS = $CONFIG_COMMANDS
20906 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20911 cat >>$CONFIG_STATUS <<_ACEOF
20912 # Files that config.status was made for.
20913 config_files="$ac_config_files"
20914 config_headers="$ac_config_headers"
20915 config_commands="$ac_config_commands"
20919 cat >>$CONFIG_STATUS <<\_ACEOF
20921 \`$as_me' instantiates files from templates according to the
20922 current configuration.
20924 Usage: $0 [OPTIONS] [FILE]...
20926 -h, --help print this help, then exit
20927 -V, --version print version number and configuration settings, then exit
20928 -q, --quiet do not print progress messages
20929 -d, --debug don't remove temporary files
20930 --recheck update $as_me by reconfiguring in the same conditions
20931 --file=FILE[:TEMPLATE]
20932 instantiate the configuration file FILE
20933 --header=FILE[:TEMPLATE]
20934 instantiate the configuration header FILE
20936 Configuration files:
20939 Configuration headers:
20942 Configuration commands:
20945 Report bugs to <bug-autoconf@gnu.org>."
20948 cat >>$CONFIG_STATUS <<_ACEOF
20951 configured by $0, generated by GNU Autoconf 2.61,
20952 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20954 Copyright (C) 2006 Free Software Foundation, Inc.
20955 This config.status script is free software; the Free Software Foundation
20956 gives unlimited permission to copy, distribute and modify it."
20963 cat >>$CONFIG_STATUS <<\_ACEOF
20964 # If no file are specified by the user, then we need to provide default
20965 # value. By we need to know if files were specified by the user.
20971 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20972 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20983 # Handling of the options.
20984 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20986 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20987 echo "$ac_cs_version"; exit ;;
20988 --debug | --debu | --deb | --de | --d | -d )
20990 --file | --fil | --fi | --f )
20992 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20993 ac_need_defaults=false;;
20994 --header | --heade | --head | --hea )
20996 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20997 ac_need_defaults=false;;
20999 # Conflict between --help and --header
21000 { echo "$as_me: error: ambiguous option: $1
21001 Try \`$0 --help' for more information." >&2
21002 { (exit 1); exit 1; }; };;
21003 --help | --hel | -h )
21004 echo "$ac_cs_usage"; exit ;;
21005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21006 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21009 # This is an error.
21010 -*) { echo "$as_me: error: unrecognized option: $1
21011 Try \`$0 --help' for more information." >&2
21012 { (exit 1); exit 1; }; } ;;
21014 *) ac_config_targets="$ac_config_targets $1"
21015 ac_need_defaults=false ;;
21021 ac_configure_extra_args=
21023 if $ac_cs_silent; then
21025 ac_configure_extra_args="$ac_configure_extra_args --silent"
21029 cat >>$CONFIG_STATUS <<_ACEOF
21030 if \$ac_cs_recheck; then
21031 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21032 CONFIG_SHELL=$SHELL
21033 export CONFIG_SHELL
21034 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21038 cat >>$CONFIG_STATUS <<\_ACEOF
21042 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21043 ## Running $as_me. ##
21049 cat >>$CONFIG_STATUS <<_ACEOF
21053 INTLTOOL_PERL=${INTLTOOL_PERL}
21058 cat >>$CONFIG_STATUS <<\_ACEOF
21060 # Handling of arguments.
21061 for ac_config_target in $ac_config_targets
21063 case $ac_config_target in
21064 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21065 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21066 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
21067 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21068 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
21069 "driver/Makefile") CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
21070 "hacks/Makefile") CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
21071 "hacks/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
21072 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21073 "driver/XScreenSaver.ad") CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
21075 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21076 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21077 { (exit 1); exit 1; }; };;
21082 # If the user did not use the arguments to specify the items to instantiate,
21083 # then the envvar interface is used. Set only those that are not.
21084 # We use the long form for the default assignment because of an extremely
21085 # bizarre bug on SunOS 4.1.3.
21086 if $ac_need_defaults; then
21087 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21088 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21089 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21092 # Have a temporary directory for convenience. Make it in the build tree
21093 # simply because there is no reason against having it here, and in addition,
21094 # creating and moving files from /tmp can sometimes cause problems.
21095 # Hook for its removal unless debugging.
21096 # Note that there is a small window in which the directory will not be cleaned:
21097 # after its creation but before its name has been assigned to `$tmp'.
21101 trap 'exit_status=$?
21102 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21104 trap '{ (exit 1); exit 1; }' 1 2 13 15
21106 # Create a (secure) tmp directory for tmp files.
21109 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21110 test -n "$tmp" && test -d "$tmp"
21113 tmp=./conf$$-$RANDOM
21114 (umask 077 && mkdir "$tmp")
21117 echo "$me: cannot create a temporary directory in ." >&2
21118 { (exit 1); exit 1; }
21122 # Set up the sed scripts for CONFIG_FILES section.
21125 # No need to generate the scripts if there are no CONFIG_FILES.
21126 # This happens for instance when ./config.status config.h
21127 if test -n "$CONFIG_FILES"; then
21134 for ac_last_try in false false false false false :; do
21135 cat >conf$$subs.sed <<_ACEOF
21136 SHELL!$SHELL$ac_delim
21137 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21138 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21139 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21140 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21141 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21142 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21143 exec_prefix!$exec_prefix$ac_delim
21144 prefix!$prefix$ac_delim
21145 program_transform_name!$program_transform_name$ac_delim
21146 bindir!$bindir$ac_delim
21147 sbindir!$sbindir$ac_delim
21148 libexecdir!$libexecdir$ac_delim
21149 datarootdir!$datarootdir$ac_delim
21150 datadir!$datadir$ac_delim
21151 sysconfdir!$sysconfdir$ac_delim
21152 sharedstatedir!$sharedstatedir$ac_delim
21153 localstatedir!$localstatedir$ac_delim
21154 includedir!$includedir$ac_delim
21155 oldincludedir!$oldincludedir$ac_delim
21156 docdir!$docdir$ac_delim
21157 infodir!$infodir$ac_delim
21158 htmldir!$htmldir$ac_delim
21159 dvidir!$dvidir$ac_delim
21160 pdfdir!$pdfdir$ac_delim
21161 psdir!$psdir$ac_delim
21162 libdir!$libdir$ac_delim
21163 localedir!$localedir$ac_delim
21164 mandir!$mandir$ac_delim
21165 DEFS!$DEFS$ac_delim
21166 ECHO_C!$ECHO_C$ac_delim
21167 ECHO_N!$ECHO_N$ac_delim
21168 ECHO_T!$ECHO_T$ac_delim
21169 LIBS!$LIBS$ac_delim
21170 build_alias!$build_alias$ac_delim
21171 host_alias!$host_alias$ac_delim
21172 target_alias!$target_alias$ac_delim
21173 build!$build$ac_delim
21174 build_cpu!$build_cpu$ac_delim
21175 build_vendor!$build_vendor$ac_delim
21176 build_os!$build_os$ac_delim
21177 host!$host$ac_delim
21178 host_cpu!$host_cpu$ac_delim
21179 host_vendor!$host_vendor$ac_delim
21180 host_os!$host_os$ac_delim
21182 CFLAGS!$CFLAGS$ac_delim
21183 LDFLAGS!$LDFLAGS$ac_delim
21184 CPPFLAGS!$CPPFLAGS$ac_delim
21185 ac_ct_CC!$ac_ct_CC$ac_delim
21186 EXEEXT!$EXEEXT$ac_delim
21187 OBJEXT!$OBJEXT$ac_delim
21189 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21190 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21191 INSTALL_DATA!$INSTALL_DATA$ac_delim
21192 SET_MAKE!$SET_MAKE$ac_delim
21193 GREP!$GREP$ac_delim
21194 EGREP!$EGREP$ac_delim
21195 PERL!$PERL$ac_delim
21196 XMKMF!$XMKMF$ac_delim
21197 X_CFLAGS!$X_CFLAGS$ac_delim
21198 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
21199 X_LIBS!$X_LIBS$ac_delim
21200 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
21201 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
21202 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
21203 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
21204 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
21205 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
21206 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
21207 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
21208 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
21209 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
21210 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
21211 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
21212 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
21213 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
21214 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
21215 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
21216 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
21217 RANLIB!$RANLIB$ac_delim
21218 ALLOCA!$ALLOCA$ac_delim
21219 USE_NLS!$USE_NLS$ac_delim
21220 MSGFMT!$MSGFMT$ac_delim
21221 GMSGFMT!$GMSGFMT$ac_delim
21222 XGETTEXT!$XGETTEXT$ac_delim
21223 CATALOGS!$CATALOGS$ac_delim
21224 CATOBJEXT!$CATOBJEXT$ac_delim
21225 DATADIRNAME!$DATADIRNAME$ac_delim
21226 GMOFILES!$GMOFILES$ac_delim
21227 INSTOBJEXT!$INSTOBJEXT$ac_delim
21228 INTLDEPS!$INTLDEPS$ac_delim
21229 INTLLIBS!$INTLLIBS$ac_delim
21230 INTLOBJS!$INTLOBJS$ac_delim
21231 POFILES!$POFILES$ac_delim
21232 POSUB!$POSUB$ac_delim
21235 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21237 elif $ac_last_try; then
21238 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21239 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21240 { (exit 1); exit 1; }; }
21242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21246 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21247 if test -n "$ac_eof"; then
21248 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21249 ac_eof=`expr $ac_eof + 1`
21252 cat >>$CONFIG_STATUS <<_ACEOF
21253 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21254 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21257 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21258 s/^/s,@/; s/!/@,|#_!!_#|/
21261 s/'"$ac_delim"'$/,g/; t
21263 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21264 ' >>$CONFIG_STATUS <conf$$subs.sed
21265 rm -f conf$$subs.sed
21266 cat >>$CONFIG_STATUS <<_ACEOF
21272 for ac_last_try in false false false false false :; do
21273 cat >conf$$subs.sed <<_ACEOF
21274 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
21275 login_manager_tmp!$login_manager_tmp$ac_delim
21276 pkg_config!$pkg_config$ac_delim
21277 gnome_open_program!$gnome_open_program$ac_delim
21278 gnome_url_show_program!$gnome_url_show_program$ac_delim
21279 INCLUDES!$INCLUDES$ac_delim
21280 PREFERRED_DEMO_PROGRAM!$PREFERRED_DEMO_PROGRAM$ac_delim
21281 ALL_DEMO_PROGRAMS!$ALL_DEMO_PROGRAMS$ac_delim
21282 SAVER_LIBS!$SAVER_LIBS$ac_delim
21283 MOTIF_LIBS!$MOTIF_LIBS$ac_delim
21284 GTK_LIBS!$GTK_LIBS$ac_delim
21285 XML_LIBS!$XML_LIBS$ac_delim
21286 JPEG_LIBS!$JPEG_LIBS$ac_delim
21287 HACK_LIBS!$HACK_LIBS$ac_delim
21288 XPM_LIBS!$XPM_LIBS$ac_delim
21289 PTY_LIBS!$PTY_LIBS$ac_delim
21290 GL_LIBS!$GL_LIBS$ac_delim
21291 DBUS_LIBS!$DBUS_LIBS$ac_delim
21292 GLE_LIBS!$GLE_LIBS$ac_delim
21293 XDPMS_LIBS!$XDPMS_LIBS$ac_delim
21294 XINERAMA_LIBS!$XINERAMA_LIBS$ac_delim
21295 PASSWD_LIBS!$PASSWD_LIBS$ac_delim
21296 INSTALL_SETUID!$INSTALL_SETUID$ac_delim
21297 SETUID_HACKS!$SETUID_HACKS$ac_delim
21298 INSTALL_DIRS!$INSTALL_DIRS$ac_delim
21299 NEED_SETUID!$NEED_SETUID$ac_delim
21300 INSTALL_PAM!$INSTALL_PAM$ac_delim
21301 HAVE_PAM_FAIL_DELAY!$HAVE_PAM_FAIL_DELAY$ac_delim
21302 NEW_LOGIN_COMMAND!$NEW_LOGIN_COMMAND$ac_delim
21303 NEW_LOGIN_COMMAND_P!$NEW_LOGIN_COMMAND_P$ac_delim
21304 DEFAULT_IMAGES_P!$DEFAULT_IMAGES_P$ac_delim
21305 DEFAULT_IMAGE_DIRECTORY!$DEFAULT_IMAGE_DIRECTORY$ac_delim
21306 DEFAULT_TEXT_FILE!$DEFAULT_TEXT_FILE$ac_delim
21307 WITH_BROWSER!$WITH_BROWSER$ac_delim
21308 OBJCC!$OBJCC$ac_delim
21309 EXES_OSX!$EXES_OSX$ac_delim
21310 SCRIPTS_OSX!$SCRIPTS_OSX$ac_delim
21311 MEN_OSX!$MEN_OSX$ac_delim
21312 PASSWD_SRCS!$PASSWD_SRCS$ac_delim
21313 PASSWD_OBJS!$PASSWD_OBJS$ac_delim
21314 XMU_SRCS!$XMU_SRCS$ac_delim
21315 XMU_OBJS!$XMU_OBJS$ac_delim
21316 XMU_LIBS!$XMU_LIBS$ac_delim
21317 SAVER_GL_SRCS!$SAVER_GL_SRCS$ac_delim
21318 SAVER_GL_OBJS!$SAVER_GL_OBJS$ac_delim
21319 SAVER_GL_LIBS!$SAVER_GL_LIBS$ac_delim
21320 LOCK_SRCS!$LOCK_SRCS$ac_delim
21321 LOCK_OBJS!$LOCK_OBJS$ac_delim
21322 JPEG_EXES!$JPEG_EXES$ac_delim
21323 GL_EXES!$GL_EXES$ac_delim
21324 RETIRED_GL_EXES!$RETIRED_GL_EXES$ac_delim
21325 SUID_EXES!$SUID_EXES$ac_delim
21326 GL_UTIL_EXES!$GL_UTIL_EXES$ac_delim
21327 GL_MEN!$GL_MEN$ac_delim
21328 GL_KLUDGE!$GL_KLUDGE$ac_delim
21329 GLE_EXES!$GLE_EXES$ac_delim
21330 GLE_KLUDGE!$GLE_KLUDGE$ac_delim
21331 GNOME24!$GNOME24$ac_delim
21332 GNOME22!$GNOME22$ac_delim
21333 NOGNOME!$NOGNOME$ac_delim
21334 HACKDIR!$HACKDIR$ac_delim
21335 HACKDIR_FULL!$HACKDIR_FULL$ac_delim
21336 GTK_DATADIR!$GTK_DATADIR$ac_delim
21337 PO_DATADIR!$PO_DATADIR$ac_delim
21338 HACK_CONF_DIR!$HACK_CONF_DIR$ac_delim
21339 GTK_EXTRA_OBJS!$GTK_EXTRA_OBJS$ac_delim
21340 APPDEFAULTS!$APPDEFAULTS$ac_delim
21341 DEPEND!$DEPEND$ac_delim
21342 DEPEND_FLAGS!$DEPEND_FLAGS$ac_delim
21343 DEPEND_DEFINES!$DEPEND_DEFINES$ac_delim
21344 LIBOBJS!$LIBOBJS$ac_delim
21345 LTLIBOBJS!$LTLIBOBJS$ac_delim
21348 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 72; then
21350 elif $ac_last_try; then
21351 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21352 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21353 { (exit 1); exit 1; }; }
21355 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21359 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21360 if test -n "$ac_eof"; then
21361 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21362 ac_eof=`expr $ac_eof + 1`
21365 cat >>$CONFIG_STATUS <<_ACEOF
21366 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21367 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21370 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21371 s/^/s,@/; s/!/@,|#_!!_#|/
21374 s/'"$ac_delim"'$/,g/; t
21376 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21377 ' >>$CONFIG_STATUS <conf$$subs.sed
21378 rm -f conf$$subs.sed
21379 cat >>$CONFIG_STATUS <<_ACEOF
21386 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21387 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21388 # trailing colons and then remove the whole line if VPATH becomes empty
21389 # (actually we leave an empty line to preserve line numbers).
21390 if test "x$srcdir" = x.; then
21391 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21392 s/:*\$(srcdir):*/:/
21393 s/:*\${srcdir}:*/:/
21395 s/^\([^=]*=[ ]*\):*/\1/
21401 cat >>$CONFIG_STATUS <<\_ACEOF
21402 fi # test -n "$CONFIG_FILES"
21405 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21408 :[FHLC]) ac_mode=$ac_tag; continue;;
21410 case $ac_mode$ac_tag in
21412 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21413 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21414 { (exit 1); exit 1; }; };;
21415 :[FH]-) ac_tag=-:-;;
21416 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21433 -) ac_f="$tmp/stdin";;
21434 *) # Look for the file first in the build tree, then in the source tree
21435 # (if the path is not absolute). The absolute path cannot be DOS-style,
21436 # because $ac_f cannot contain `:'.
21440 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21442 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21443 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21444 { (exit 1); exit 1; }; };;
21446 ac_file_inputs="$ac_file_inputs $ac_f"
21449 # Let's still pretend it is `configure' which instantiates (i.e., don't
21450 # use $as_me), people would be surprised to read:
21451 # /* config.h. Generated by config.status. */
21452 configure_input="Generated from "`IFS=:
21453 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21454 if test x"$ac_file" != x-; then
21455 configure_input="$ac_file. $configure_input"
21456 { echo "$as_me:$LINENO: creating $ac_file" >&5
21457 echo "$as_me: creating $ac_file" >&6;}
21461 *:-:* | *:-) cat >"$tmp/stdin";;
21466 ac_dir=`$as_dirname -- "$ac_file" ||
21467 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21468 X"$ac_file" : 'X\(//\)[^/]' \| \
21469 X"$ac_file" : 'X\(//\)$' \| \
21470 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21476 /^X\(\/\/\)[^/].*/{
21491 -*) as_dir=./$as_dir;;
21493 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21497 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21498 *) as_qdir=$as_dir;;
21500 as_dirs="'$as_qdir' $as_dirs"
21501 as_dir=`$as_dirname -- "$as_dir" ||
21502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21503 X"$as_dir" : 'X\(//\)[^/]' \| \
21504 X"$as_dir" : 'X\(//\)$' \| \
21505 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21511 /^X\(\/\/\)[^/].*/{
21524 test -d "$as_dir" && break
21526 test -z "$as_dirs" || eval "mkdir $as_dirs"
21527 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21528 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21529 { (exit 1); exit 1; }; }; }
21533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21535 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21536 # A ".." for each directory in $ac_dir_suffix.
21537 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21538 case $ac_top_builddir_sub in
21539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21543 ac_abs_top_builddir=$ac_pwd
21544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21545 # for backward compatibility:
21546 ac_top_builddir=$ac_top_build_prefix
21549 .) # We are building in place.
21551 ac_top_srcdir=$ac_top_builddir_sub
21552 ac_abs_top_srcdir=$ac_pwd ;;
21553 [\\/]* | ?:[\\/]* ) # Absolute name.
21554 ac_srcdir=$srcdir$ac_dir_suffix;
21555 ac_top_srcdir=$srcdir
21556 ac_abs_top_srcdir=$srcdir ;;
21557 *) # Relative name.
21558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21559 ac_top_srcdir=$ac_top_build_prefix$srcdir
21560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21572 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21573 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21577 cat >>$CONFIG_STATUS <<\_ACEOF
21578 # If the template does not know about datarootdir, expand it.
21579 # FIXME: This hack should be removed a few years after 2.60.
21580 ac_datarootdir_hack=; ac_datarootdir_seen=
21582 case `sed -n '/datarootdir/ {
21591 ' $ac_file_inputs` in
21592 *datarootdir*) ac_datarootdir_seen=yes;;
21593 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21594 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21595 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21597 cat >>$CONFIG_STATUS <<_ACEOF
21598 ac_datarootdir_hack='
21599 s&@datadir@&$datadir&g
21600 s&@docdir@&$docdir&g
21601 s&@infodir@&$infodir&g
21602 s&@localedir@&$localedir&g
21603 s&@mandir@&$mandir&g
21604 s&\\\${datarootdir}&$datarootdir&g' ;;
21608 # Neutralize VPATH when `$srcdir' = `.'.
21609 # Shell code in configure.ac might set extrasub.
21610 # FIXME: do we really want to maintain this feature?
21611 cat >>$CONFIG_STATUS <<_ACEOF
21615 cat >>$CONFIG_STATUS <<\_ACEOF
21617 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21618 s&@configure_input@&$configure_input&;t t
21619 s&@top_builddir@&$ac_top_builddir_sub&;t t
21620 s&@srcdir@&$ac_srcdir&;t t
21621 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21622 s&@top_srcdir@&$ac_top_srcdir&;t t
21623 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21624 s&@builddir@&$ac_builddir&;t t
21625 s&@abs_builddir@&$ac_abs_builddir&;t t
21626 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21627 s&@INSTALL@&$ac_INSTALL&;t t
21628 $ac_datarootdir_hack
21629 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21631 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21632 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21633 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21634 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21635 which seems to be undefined. Please make sure it is defined." >&5
21636 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21637 which seems to be undefined. Please make sure it is defined." >&2;}
21641 -) cat "$tmp/out"; rm -f "$tmp/out";;
21642 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21651 # Transform confdefs.h into a sed script `conftest.defines', that
21652 # substitutes the proper values into config.h.in to produce config.h.
21653 rm -f conftest.defines conftest.tail
21654 # First, append a space to every undef/define line, to ease matching.
21655 echo 's/$/ /' >conftest.defines
21656 # Then, protect against being on the right side of a sed subst, or in
21657 # an unquoted here document, in config.status. If some macros were
21658 # called several times there might be several #defines for the same
21659 # symbol, which is useless. But do not sort them, since the last
21660 # AC_DEFINE must be honored.
21661 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21662 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21663 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21664 # PARAMS is the parameter list in the macro definition--in most cases, it's
21665 # just an empty string.
21666 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21667 ac_dB='\\)[ (].*,\\1define\\2'
21675 s/^[ ]*#[ ]*define[ ][ ]*//
21680 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21681 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21682 ' >>conftest.defines
21684 # Remove the space that was appended to ease matching.
21685 # Then replace #undef with comments. This is necessary, for
21686 # example, in the case of _POSIX_SOURCE, which is predefined and required
21687 # on some systems where configure will not decide to define it.
21688 # (The regexp can be short, since the line contains either #define or #undef.)
21690 s,^[ #]*u.*,/* & */,' >>conftest.defines
21692 # Break up conftest.defines:
21693 ac_max_sed_lines=50
21695 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21696 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21697 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21699 ac_in='$ac_file_inputs'
21700 ac_out='"$tmp/out1"'
21701 ac_nxt='"$tmp/out2"'
21705 # Write a here document:
21706 cat >>$CONFIG_STATUS <<_ACEOF
21707 # First, check the format of the line:
21708 cat >"\$tmp/defines.sed" <<\\CEOF
21709 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21710 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21714 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21716 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21717 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21718 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21719 grep . conftest.tail >/dev/null || break
21720 rm -f conftest.defines
21721 mv conftest.tail conftest.defines
21723 rm -f conftest.defines conftest.tail
21725 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21726 cat >>$CONFIG_STATUS <<\_ACEOF
21727 if test x"$ac_file" != x-; then
21728 echo "/* $configure_input */" >"$tmp/config.h"
21729 cat "$ac_result" >>"$tmp/config.h"
21730 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21731 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21732 echo "$as_me: $ac_file is unchanged" >&6;}
21735 mv "$tmp/config.h" $ac_file
21738 echo "/* $configure_input */"
21744 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21745 echo "$as_me: executing $ac_file commands" >&6;}
21750 case $ac_file$ac_mode in
21753 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
21754 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
21755 rm -f intltool-extract.out
21757 mv -f intltool-extract.out intltool-extract
21759 chmod ugo+x intltool-extract
21760 chmod u+w intltool-extract
21762 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
21763 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
21764 rm -f intltool-merge.out
21766 mv -f intltool-merge.out intltool-merge
21768 chmod ugo+x intltool-merge
21769 chmod u+w intltool-merge
21771 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
21772 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
21773 rm -f intltool-update.out
21775 mv -f intltool-update.out intltool-update
21777 chmod ugo+x intltool-update
21778 chmod u+w intltool-update
21781 "default-2":C) case "$CONFIG_FILES" in *po/Makefile.in*)
21782 rm -f po/stamp-it po/stamp-it.tmp
21784 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
21785 mv po/stamp-it.tmp po/stamp-it
21792 { (exit 0); exit 0; }
21794 chmod +x $CONFIG_STATUS
21795 ac_clean_files=$ac_clean_files_save
21798 # configure is writing to config.log, and then calls config.status.
21799 # config.status does its own redirection, appending to config.log.
21800 # Unfortunately, on DOS this fails, as config.log is still kept open
21801 # by configure, so config.status won't be able to write to it; its
21802 # output is simply discarded. So we exec the FD to /dev/null,
21803 # effectively closing config.log, so it can be properly (re)opened and
21804 # appended to by config.status. When coming back to configure, we
21805 # need to make the FD available again.
21806 if test "$no_create" != yes; then
21808 ac_config_status_args=
21809 test "$silent" = yes &&
21810 ac_config_status_args="$ac_config_status_args --quiet"
21812 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21814 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21815 # would make configure fail if this is the last instruction.
21816 $ac_cs_success || { (exit 1); exit 1; }
21820 ###############################################################################
21822 # Print some warnings at the end.
21824 ###############################################################################
21826 warn_prefix_1=" Warning:"
21827 warn_prefix_2=" Note:"
21828 warn_prefix="$warn_prefix_1"
21831 warnsep=' #################################################################'
21834 if test "$warning" = no ; then
21835 echo '' ; echo "$warnsep" ; echo ''
21842 if test "$warning" = long ; then echo '' ; fi
21845 echo "$warn_prefix $rest"
21852 if test "$was" != no ; then echo '' ; fi
21854 echo "$warn_prefix $rest"
21864 warn_prefix="$warn_prefix_2"
21866 warn_prefix="$warn_prefix_1"
21870 warn_prefix="$warn_prefix_2"
21872 warn_prefix="$warn_prefix_1"
21876 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
21877 warn 'The SGI saver extension was requested, but was not found.'
21880 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
21881 warn 'The XIdle extension was requested, but was not found.'
21884 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
21885 warn 'The XSHM extension was requested, but was not found.'
21888 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
21889 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
21892 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
21893 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
21896 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
21897 warn 'The DPMS extension was requested, but was not found.'
21900 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
21901 warn 'The Xinerama extension was requested, but was not found.'
21904 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
21905 warn 'The XF86VMODE extension was requested, but was not found.'
21908 if test "$with_randr_req" = yes -a "$have_randr" = no ; then
21909 warn 'The RANDR extension was requested, but was not found.'
21912 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
21913 warn "Checking of /proc/interrupts was requested, but it's bogus."
21916 if test "$pkg_config" = false ; then
21917 warnL 'The "pkg-config" program was not found. Without that,'
21918 warn2 "detection of the various GTK libraries won't work."
21920 pkgerr=`$pkg_config --list-all 2>&1 >/dev/null`
21921 if test "x$pkgerr" != "x" ; then
21922 warnL 'The "pkg-config" program produces errors. This often causes'
21923 warn2 "detection of the various GTK libraries to malfunction."
21924 warn2 "The errors are:"
21926 echo "$pkgerr" | sed 's/^/ > /g'
21930 if test "$gtk_halfassed" != no ; then
21931 warnL "GTK version $gtk_halfassed was found, but at least one supporting"
21932 warn2 "library ($gtk_halfassed_lib) was not, so GTK can't be used."
21933 warn2 "Perhaps some of the development packages are not installed?"
21934 if test "$have_gtk" = yes ; then
21935 v="$ac_gtk_version_string"
21936 warn2 "GTK $v is also installed, so it will be used instead."
21937 warn2 "Please read the above output and the \`config.log' file"
21938 warn2 "for more details."
21943 warn2 'Though the Motif front-end to xscreensaver is still'
21944 warn2 'maintained, it is no longer being updated with new'
21945 warn2 'features: all new development on the xscreensaver-demo'
21946 warn2 'program is happening in the GTK version, and not in the'
21947 warn2 'Motif version. It is recommended that you build against'
21948 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
21951 if test "$have_motif" = no -a "$have_gtk" = no; then
21953 if test "$with_motif" = yes; then
21954 warnL "Neither the GTK nor Motif libraries were found; the"
21955 warn2 "\`xscreensaver-demo' program requires one of these."
21959 warnL "The GTK libraries do not seem to be available; the"
21960 warn2 "\`xscreensaver-demo' program requires them."
21962 # warn2 'You can use Motif or Lesstif instead of GTK (use the'
21963 # warn2 "\`--with-motif' option) but that is NOT recommended."
21967 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
21968 warnL "Use of Motif was requested, but it wasn't found;"
21969 warn2 "Gtk will be used instead."
21971 elif test "$jurassic_gtk" = yes ; then
21975 v="$ac_gtk_version_string"
21976 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
21977 warnL "Use of Gtk was requested, but its version number is unknown;"
21978 elif test "$with_gtk_req" = yes ; then
21979 warnL "Use of Gtk was requested, but it is version $v;"
21981 warnL "Gtk was found on this system, but it is version $v;"
21984 warn2 "Gtk $pref_gtk or newer is required."
21986 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
21987 warnL "Use of Gtk was requested, but it wasn't found."
21991 if test "$have_gtk" = yes -a "$have_gdk_pixbuf" = no ; then
21992 warn "GTK is being used, but the GDK-Pixbuf library and/or"
21993 warn2 "headers were not found. That can't be good. Please"
21994 warn2 "install the GDK-Pixbuf development kit and re-configure."
21997 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
21999 preferred_lesstif=0.92
22001 if test "$lesstif_version" = unknown; then
22002 warnL "Unable to determine the LessTif version number!"
22003 warn2 "Make sure you are using version $preferred_lesstif or newer."
22004 warn2 "See <http://www.lesstif.org/>."
22006 elif test \! $lesstif_version -gt 82; then
22007 warnL "LessTif version $lesstif_version_string is being used."
22008 warn2 "LessTif versions 0.82 and earlier are too buggy to"
22009 warn2 "use with XScreenSaver; it is strongly recommended"
22010 warn2 "that you upgrade to at least version $preferred_lesstif!"
22011 warn2 "See <http://www.lesstif.org/>."
22016 if test "$have_motif" = yes -a "$have_gtk" = no ; then
22017 warn 'Motif is being used, and GTK is not.'
22023 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
22024 warnL 'Use of XPM was requested, but it was not found.'
22027 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
22028 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
22031 if test "$have_gdk_pixbuf" = no -o "$gdk_pixbuf_halfassed" = yes || \
22032 test "$have_gdk_pixbuf" = no -a "$have_xpm" = no ; then
22034 if test "$with_gdk_pixbuf_req" = yes ; then
22036 elif test "$with_gdk_pixbuf_req" = no ; then
22037 warnL 'The GDK-Pixbuf library is not being used.'
22039 warnL 'The GDK-Pixbuf library was not found.'
22042 if test "$with_xpm_req" = yes -o "$have_xpm" = yes ; then
22044 elif test "$with_xpm_req" = no ; then
22045 warnL 'The XPM library is not being used.'
22047 warnL 'The XPM library was not found.'
22050 if test "$have_gdk_pixbuf" = no -a "$have_xpm" = yes ; then
22051 warn2 'The XPM library is being used instead.'
22054 if test "$gdk_pixbuf_halfassed" = yes ; then
22056 warn2 'More specifically, we found the headers, but not the'
22057 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
22058 warn2 "system, or something else went wrong. The \`config.log'"
22059 warn2 'file might contain some clues.'
22063 warn2 'Some of the demos will not use images as much as they could.'
22064 warn2 'You should consider installing GDK-Pixbuf and re-running'
22065 warn2 'configure. (GDK-Pixbuf is recommended over XPM, as it'
22066 warn2 'provides support for more image formats.)'
22070 if test "$have_jpeg" = no ; then
22071 if test "$with_jpeg_req" = yes ; then
22072 warnL 'Use of libjpeg was requested, but it was not found.'
22073 elif test "$with_jpeg_req" = no ; then
22074 noteL 'The JPEG library is not being used.'
22076 noteL 'The JPEG library was not found.'
22079 if test "$jpeg_halfassed" = yes ; then
22081 warn2 'More specifically, we found the headers, but not the'
22082 warn2 'library; so either JPEG is half-installed on this'
22083 warn2 "system, or something else went wrong. The \`config.log'"
22084 warn2 'file might contain some clues.'
22088 if test "$have_gdk_pixbuf" = no ; then
22089 warn2 "This means that it won't be possible for the image-manipulating"
22090 warn2 "display modes to load files from disk; and it also means that"
22091 warn2 "the \`webcollage' program will be much slower."
22093 warn2 "This means the \`webcollage' program will be much slower."
22098 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
22099 preferred_mesagl=3.4
22100 mgv="$ac_mesagl_version_string"
22101 pgl="$preferred_mesagl"
22103 if test "$ac_mesagl_version" = unknown; then
22105 # warnL "Unable to determine the MesaGL version number!"
22106 # warn2 "Make sure you are using version $preferred_mesagl or newer."
22108 elif test \! "$ac_mesagl_version" -gt 2006; then
22109 warnL "MesaGL version number is $mgv --"
22110 warn2 "MesaGL 2.6 and earlier have a security bug. It is strongly"
22111 warn2 "recommended that you upgrade to at least version $preferred_mesagl."
22113 elif test \! "$ac_mesagl_version" -gt 3003; then
22114 warnL "MesaGL version number is $mgv --"
22115 warn2 "MesaGL 3.3 and earlier have some bugs; it is recommended"
22116 warn2 "that you upgrade to $pgl or newer."
22120 if test "$have_gl" = no ; then
22121 if test "$with_gl_req" = yes ; then
22122 warnL 'Use of GL was requested, but it was not found.'
22123 elif test "$with_gl_req" = no ; then
22124 noteL 'The OpenGL 3D library is not being used.'
22126 noteL 'The OpenGL 3D library was not found.'
22129 if test "$gl_halfassed" = yes ; then
22131 warn2 'More specifically, we found the headers, but not the'
22132 warn2 'libraries; so either GL is half-installed on this'
22133 warn2 "system, or something else went wrong. The \`config.log'"
22134 warn2 'file might contain some clues.'
22138 warn2 'Those demos which use 3D will not be built or installed.'
22139 warn2 'You might want to consider installing OpenGL and'
22140 warn2 "re-running configure. If your vendor doesn't ship"
22141 warn2 'their own implementation of OpenGL, you can get a free'
22142 warn2 'version at <http://www.mesa3d.org/>. For general OpenGL'
22143 warn2 'info, see <http://www.opengl.org/>.'
22148 if test "$have_gl" = yes -a "$have_gle" = no ; then
22150 # nobody cares about this; don't print the warning unless it was
22151 # requested and not found, or halfway-found.
22152 if test "$with_gle_req" = yes -o "$gle_halfassed" = yes ; then
22154 if test "$with_gle_req" = yes ; then
22155 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
22156 warn2 'it was not found (though the OpenGL library was found, and'
22157 warn2 'is being used.)'
22158 elif test "$with_gle_req" = no ; then
22159 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
22160 warn2 'library is not.'
22162 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
22166 if test "$gle_halfassed" = yes ; then
22168 warn2 'More specifically, we found the headers, but not the'
22169 warn2 'libraries; so either GLE is half-installed on this'
22170 warn2 "system, or something else went wrong. The \`config.log'"
22171 warn2 'file might contain some clues.'
22175 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
22176 warn2 'will not be built or installed. You might want to consider'
22177 warn2 'installing GLE and re-running configure. You can find the'
22178 warn2 'GLE library at <http://www.linas.org/gle/>. For general'
22179 warn2 'OpenGL info, see <http://www.opengl.org/>.'
22185 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
22186 warn 'Use of XReadDisplay was requested, but it was not found.'
22189 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
22190 warn 'Use of Kerberos was requested, but it was not found.'
22193 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
22194 warn 'Use of PAM was requested, but it was not found.'
22197 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
22198 warn 'Use of shadow passwords was requested, but they were not found.'
22201 if test "$ac_macosx" = yes ; then
22202 if test "$enable_locking" = yes ; then
22203 warn "You have specified --enable-locking on MacOS X."
22204 warn2 "THIS DOES NOT WORK! Don't do this!"
22209 # You are in a twisty maze of namespaces and syntaxes, all alike.
22210 # Fuck the skull of Unix.
22212 bindir=`eval eval eval eval eval eval eval echo $bindir`
22213 HACKDIR=`eval eval eval eval eval eval eval echo $HACKDIR`
22214 HACK_CONF_DIR=`eval eval eval eval eval eval eval echo $HACK_CONF_DIR`
22216 # canonicalize slashes.
22217 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
22218 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
22219 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
22222 # Sanity check the hackdir
22223 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
22224 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
22226 { { echo "$as_me:$LINENO: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
22227 There will be an executable installed with that name, so
22228 that can't be the name of a directory as well. Please
22229 re-configure with a different directory name." >&5
22230 echo "$as_me: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
22231 There will be an executable installed with that name, so
22232 that can't be the name of a directory as well. Please
22233 re-configure with a different directory name." >&2;}
22234 { (exit 1); exit 1; }; }
22241 # Now let's warn if there's a previous RPM version already installed.
22242 # But don't bother with this test if we are currently *building* an RPM.
22244 if test -z "$RPM_PACKAGE_VERSION" ; then
22246 rpmnames="xscreensaver xscreensaver-base xscreensaver-extras"
22250 rpmv=`(rpm -qv $rpmnames) 2>/dev/null | \
22251 sed -n 's/^[-a-z]*-\([0-9][0-9]*[.][0-9][0-9a-z]*\)-.*$/\1/p' | \
22255 if test \! -z "$rpmv" ; then
22256 rpmbdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
22257 rpmhdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/popsquares$@\1@p'`
22260 warnL "There is already an installed RPM of xscreensaver $rpmv"
22261 warn2 'on this system. You might want to remove it ("rpm -ve")'
22262 warn2 'before running "make install" in this directory.'
22264 warn2 "Alternately, you could build this version of xscreensaver"
22265 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
22266 warn2 'file is included. Try "rpmbuild -v -ba xscreensaver.spec".'
22267 warn2 "See the RPM documentation for more info."
22270 if test "$rpmbdir" = "$rpmhdir" ; then
22271 warn2 "The RPM version was installed in $rpmbdir/."
22274 warn2 "The RPM version was installed in $rpmbdir/,"
22275 warn2 "with demos in $rpmhdir/."
22280 # Also warn if there's a Debian package installed.
22282 debnames="xscreensaver xscreensaver-data xscreensaver-data-extra"
22284 for dpkg in $debnames ; do
22285 if test -z "$debv"; then
22286 debv=`dpkg -s $dpkg 2>/dev/null | sed -n 's/^Version: \(.*\)$/\1/p'`
22290 if test \! -z "$debv" ; then
22291 debbdir=`dpkg -L $debnames 2>/dev/null | \
22292 sed -n 's@^\(.*/bin/\)xscreensaver$@\1@p'`
22293 debhdir=`dpkg -L $debnames 2>/dev/null | \
22294 sed -n 's@^\(.*/\)popsquares$@\1@p'`
22295 if test -z "$debbdir" ; then debbdir='???'; fi
22296 if test -z "$debhdir" ; then debhdir='???'; fi
22299 warnL "There is already an installed dpkg of xscreensaver"
22300 warn2 "version \"$debv\" on this system."
22302 warn2 "The dpkg was installed in $debbdir,"
22303 warn2 "with demos in $debhdir."
22307 if test "${bindir}" = "${HACKDIR}" ; then
22311 if test "$do_dir_warning" = yes; then
22315 echo ' When you run "make install", the "xscreensaver",'
22316 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
22317 echo " will be installed in ${bindir}/."
22319 echo " The various graphics demos (190+ different executables) will"
22320 echo " be installed in ${HACKDIR}/."
22322 echo " If you would prefer the demos to be installed elsewhere,"
22323 echo " you should re-run configure with the --with-hackdir=DIR"
22324 echo " option. For more information, run \`./configure --help'."
22328 if test "$warning" != no; then
22329 echo '' ; echo "$warnsep" ; echo ''
22332 if test "$do_dir_warning" = no; then
22333 if test "$warning" = no; then
22336 echo "User programs will be installed in ${bindir}/"
22337 echo "Screen savers will be installed in ${HACKDIR}/"
22338 echo "Configuration dialogs will be installed in ${HACK_CONF_DIR}/"
22339 echo "System-wide default settings will be installed in ${APPDEFAULTS}/"