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
743 DEFAULT_IMAGE_DIRECTORY
783 ac_precious_vars='build_alias
795 # Initialize some variables set by options.
797 ac_init_version=false
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
807 program_transform_name=s,x,x,
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE}'
832 infodir='${datarootdir}/info'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
881 cache_file=config.cache ;;
883 -datadir | --datadir | --datadi | --datad)
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
895 -disable-* | --disable-*)
896 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
899 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
900 { (exit 1); exit 1; }; }
901 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
902 eval enable_$ac_feature=no ;;
904 -docdir | --docdir | --docdi | --doc | --do)
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 -enable-* | --enable-*)
915 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
918 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919 { (exit 1); exit 1; }; }
920 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
921 eval enable_$ac_feature=\$ac_optarg ;;
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
936 -help | --help | --hel | --he | -h)
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 htmldir=$ac_optarg ;;
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
966 -libdir | --libdir | --libdi | --libd)
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
978 -localedir | --localedir | --localedi | --localed | --locale)
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 # Obsolete; use --without-fp.
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1057 -psdir | --psdir | --psdi | --psd | --ps)
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 sbindir=$ac_optarg ;;
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 sharedstatedir=$ac_optarg ;;
1083 -site | --site | --sit)
1085 -site=* | --site=* | --sit=*)
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1112 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 { echo "$as_me: error: invalid package name: $ac_package" >&2
1116 { (exit 1); exit 1; }; }
1117 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1118 eval with_$ac_package=\$ac_optarg ;;
1120 -without-* | --without-*)
1121 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
1126 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1127 eval with_$ac_package=no ;;
1130 # Obsolete; use --with-x.
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1147 -*) { echo "$as_me: error: unrecognized option: $ac_option
1148 Try \`$0 --help' for more information." >&2
1149 { (exit 1); exit 1; }; }
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157 { (exit 1); exit 1; }; }
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1162 # FIXME: should be removed in autoconf 3.0.
1163 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 { echo "$as_me: error: missing argument to $ac_option" >&2
1175 { (exit 1); exit 1; }; }
1178 # Be sure to have absolute directory names.
1179 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
1184 eval ac_val=\$$ac_var
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1190 { (exit 1); exit 1; }; }
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1198 target=$target_alias
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used." >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214 test "$silent" = yes && exec 6>/dev/null
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 { echo "$as_me: error: Working directory cannot be determined" >&2
1221 { (exit 1); exit 1; }; }
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 { echo "$as_me: error: pwd does not report name of working directory" >&2
1224 { (exit 1); exit 1; }; }
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$0" ||
1232 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$0" : 'X\(//\)[^/]' \| \
1234 X"$0" : 'X\(//\)$' \| \
1235 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1259 ac_srcdir_defaulted=no
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1264 { (exit 1); exit 1; }; }
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1269 { (exit 1); exit 1; }; }
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281 for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 # Report the --help message.
1291 if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1295 \`configure' configures this package to adapt to many kinds of systems.
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE. See below for descriptions of some of the useful variables.
1302 Defaults for the options are specified in brackets.
1307 -h, --help display this help and exit
1308 --help=short display options specific to this package
1309 --help=recursive display the short help of all the included packages
1310 -V, --version display version information and exit
1311 -q, --quiet, --silent do not print \`checking...' messages
1312 --cache-file=FILE cache test results in FILE [disabled]
1313 -C, --config-cache alias for \`--cache-file=config.cache'
1314 -n, --no-create do not create output files
1315 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1317 Installation directories:
1318 --prefix=PREFIX install architecture-independent files in PREFIX
1319 [$ac_default_prefix]
1320 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1323 By default, \`make install' will install all the files in
1324 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1325 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1326 for instance \`--prefix=\$HOME'.
1328 For better control, use the options below.
1330 Fine tuning of the installation directories:
1331 --bindir=DIR user executables [EPREFIX/bin]
1332 --libexecdir=DIR program executables [EPREFIX/libexec]
1333 --libdir=DIR object code libraries [EPREFIX/lib]
1334 --includedir=DIR C header files [PREFIX/include]
1335 --x-includes=DIR X include files are in DIR
1336 --x-libraries=DIR X library files are in DIR
1337 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1338 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1339 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1340 --mandir=DIR man documentation [DATAROOTDIR/man]
1341 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1342 --htmldir=DIR html documentation [DOCDIR]
1343 --dvidir=DIR dvi documentation [DOCDIR]
1344 --pdfdir=DIR pdf documentation [DOCDIR]
1345 --psdir=DIR ps documentation [DOCDIR]
1351 --x-includes=DIR X include files are in DIR
1352 --x-libraries=DIR X library files are in DIR
1355 --build=BUILD configure for building on BUILD [guessed]
1356 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1360 if test -n "$ac_init_help"; then
1365 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1366 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1368 Screen locking options:
1369 --enable-locking Compile in support for locking the display.
1370 --disable-locking Do not allow locking at all.
1372 --enable-root-passwd Allow root passwd to unlock screen.
1373 --disable-root-passwd Do not allow that.
1376 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1377 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1380 Installation options:
1381 --with-hackdir=DIR Where to install the hundreds of demo executables.
1382 Default: `PREFIX/libexec/xscreensaver/'
1383 --with-configdir=DIR Where to install the data files that describe each
1384 of the display modes to the GUI.
1385 Default: `PREFIX/share/xscreensaver/config/'
1386 --with-x-app-defaults=DIR
1387 Where to install xscreensaver configuration file.
1389 Except where noted, all of the --with options below can also take a
1390 directory argument: for example, `--with-motif=/opt/Motif'. That would
1391 cause /opt/Motif/include/ to be added to the -I list, and /opt/Motif/lib/
1392 to be added to the -L list, assuming those directories exist.
1394 By default, support for each of these options will be built in, if the
1395 relevant library routines exist. At run time, they will then be used
1396 only if the X server being used supports them. Each --with option has
1397 a corresponding --without option, to override building support for them
1400 Screen blanking and idle-detection options:
1402 --with-sgi-ext Include support for the SGI SCREEN_SAVER extension.
1403 --with-xidle-ext Include support for the XIDLE extension.
1404 --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL extension.
1405 --with-dpms-ext Include support for the DPMS extension.
1406 --with-xinerama-ext Include support for the XINERAMA extension.
1407 --with-xf86vmode-ext Include support for XFree86 virtual screens.
1408 --with-xf86gamma-ext Include support for XFree86 gamma fading.
1409 --with-randr-ext Include support for the X Resize+Rotate extension.
1410 --with-proc-interrupts Include support for consulting the /proc/interrupts
1411 file to notice keyboard activity.
1412 --with-pam Include support for PAM (Pluggable Auth Modules.)
1413 --with-pam-service-name=NAME
1414 NAME is the name of the PAM service that
1415 xscreensaver will authenticate as.
1416 --with-kerberos Include support for Kerberos authentication.
1417 --with-shadow Include support for shadow password authentication.
1418 --with-passwd-helper Include support for an external password
1419 verification helper program.
1420 --with-login-manager Put a "New Login" button on the unlock dialog that
1421 runs a login manager such as gdmflexiserver.
1423 User interface options:
1425 --with-gtk Use the Gtk toolkit for the user interface.
1426 --with-motif Use the Motif toolkit for the user interface
1431 --with-gl Build those demos which depend on OpenGL.
1432 --with-gle Build those demos which depend on GLE
1433 (the OpenGL "extrusion" library.)
1434 --with-pixbuf Include support for the GDK-Pixbuf library in some
1435 demos, which will make it possible for them to read
1436 GIF, JPEG, and PNG files as well.
1437 --with-xpm Include support for XPM files in some demos.
1438 (Not needed if Pixbuf is used.)
1439 --with-jpeg Include support for the JPEG library.
1440 --with-xshm-ext Include support for the Shared Memory extension.
1441 --with-xdbe-ext Include support for the DOUBLE-BUFFER extension.
1442 --with-readdisplay Include support for the XReadDisplay extension.
1443 --with-image-directory=DIR By default, some demos may display random images
1444 from this directory.
1445 --with-text-file=FILE By default, some demos may display this file.
1446 --with-browser=BROWSER Specify the browser to show help URL.
1447 --with-setuid-hacks Allow some demos to be installed `setuid root'
1448 (which is needed in order to ping other hosts.)
1451 Some influential environment variables:
1452 CC C compiler command
1453 CFLAGS C compiler flags
1454 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1455 nonstandard directory <lib dir>
1456 LIBS libraries to pass to the linker, e.g. -l<library>
1457 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1458 you have headers in a nonstandard directory <include dir>
1460 XMKMF Path to xmkmf, Makefile generator for X Window System
1462 Use these variables to override the choices made by `configure' or to help
1463 it to find libraries and programs with nonstandard names/locations.
1469 if test "$ac_init_help" = "recursive"; then
1470 # If there are subdirs, report their specific --help.
1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472 test -d "$ac_dir" || continue
1476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1479 # A ".." for each directory in $ac_dir_suffix.
1480 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1481 case $ac_top_builddir_sub in
1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486 ac_abs_top_builddir=$ac_pwd
1487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488 # for backward compatibility:
1489 ac_top_builddir=$ac_top_build_prefix
1492 .) # We are building in place.
1494 ac_top_srcdir=$ac_top_builddir_sub
1495 ac_abs_top_srcdir=$ac_pwd ;;
1496 [\\/]* | ?:[\\/]* ) # Absolute name.
1497 ac_srcdir=$srcdir$ac_dir_suffix;
1498 ac_top_srcdir=$srcdir
1499 ac_abs_top_srcdir=$srcdir ;;
1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502 ac_top_srcdir=$ac_top_build_prefix$srcdir
1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507 cd "$ac_dir" || { ac_status=$?; continue; }
1508 # Check for guested configure.
1509 if test -f "$ac_srcdir/configure.gnu"; then
1511 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512 elif test -f "$ac_srcdir/configure"; then
1514 $SHELL "$ac_srcdir/configure" --help=recursive
1516 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518 cd "$ac_pwd" || { ac_status=$?; break; }
1522 test -n "$ac_init_help" && exit $ac_status
1523 if $ac_init_version; then
1526 generated by GNU Autoconf 2.61
1528 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1529 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1530 This configure script is free software; the Free Software Foundation
1531 gives unlimited permission to copy, distribute and modify it.
1535 cat >config.log <<_ACEOF
1536 This file contains any messages produced by compilers while
1537 running configure, to aid debugging if configure makes a mistake.
1539 It was created by $as_me, which was
1540 generated by GNU Autoconf 2.61. Invocation command line was
1552 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1553 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1554 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1555 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1556 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1558 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1559 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1561 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1562 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1563 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1564 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1565 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1566 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1567 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 test -z "$as_dir" && as_dir=.
1576 echo "PATH: $as_dir"
1592 # Keep a trace of the command line.
1593 # Strip out --no-create and --no-recursion so they do not pile up.
1594 # Strip out --silent because we don't want to record it for future runs.
1595 # Also quote any args containing shell meta-characters.
1596 # Make two passes to allow for proper duplicate-argument suppression.
1600 ac_must_keep_next=false
1606 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1607 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1608 | -silent | --silent | --silen | --sile | --sil)
1611 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1614 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1616 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1617 if test $ac_must_keep_next = true; then
1618 ac_must_keep_next=false # Got value, back to normal.
1621 *=* | --config-cache | -C | -disable-* | --disable-* \
1622 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1623 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1624 | -with-* | --with-* | -without-* | --without-* | --x)
1625 case "$ac_configure_args0 " in
1626 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1629 -* ) ac_must_keep_next=true ;;
1632 ac_configure_args="$ac_configure_args '$ac_arg'"
1637 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1638 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1640 # When interrupted or exit'd, cleanup temporary files, and complete
1641 # config.log. We remove comments because anyway the quotes in there
1642 # would cause problems or look ugly.
1643 # WARNING: Use '\'' to represent an apostrophe within the trap.
1644 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1645 trap 'exit_status=$?
1646 # Save into config.log some information that might help in debugging.
1651 ## ---------------- ##
1652 ## Cache variables. ##
1653 ## ---------------- ##
1656 # The following way of writing the cache mishandles newlines in values,
1658 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1659 eval ac_val=\$$ac_var
1663 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1664 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1667 _ | IFS | as_nl) ;; #(
1668 *) $as_unset $ac_var ;;
1673 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1674 *${as_nl}ac_space=\ *)
1676 "s/'\''/'\''\\\\'\'''\''/g;
1677 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1680 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1688 ## ----------------- ##
1689 ## Output variables. ##
1690 ## ----------------- ##
1693 for ac_var in $ac_subst_vars
1695 eval ac_val=\$$ac_var
1697 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1699 echo "$ac_var='\''$ac_val'\''"
1703 if test -n "$ac_subst_files"; then
1705 ## ------------------- ##
1706 ## File substitutions. ##
1707 ## ------------------- ##
1710 for ac_var in $ac_subst_files
1712 eval ac_val=\$$ac_var
1714 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1716 echo "$ac_var='\''$ac_val'\''"
1721 if test -s confdefs.h; then
1731 test "$ac_signal" != 0 &&
1732 echo "$as_me: caught signal $ac_signal"
1733 echo "$as_me: exit $exit_status"
1735 rm -f core *.core core.conftest.* &&
1736 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1739 for ac_signal in 1 2 13 15; do
1740 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1744 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1745 rm -f -r conftest* confdefs.h
1747 # Predefined preprocessor variables.
1749 cat >>confdefs.h <<_ACEOF
1750 #define PACKAGE_NAME "$PACKAGE_NAME"
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_STRING "$PACKAGE_STRING"
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1774 # Let the site file select an alternate cache file if it wants to.
1775 # Prefer explicitly selected file to automatically selected ones.
1776 if test -n "$CONFIG_SITE"; then
1777 set x "$CONFIG_SITE"
1778 elif test "x$prefix" != xNONE; then
1779 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1781 set x "$ac_default_prefix/share/config.site" \
1782 "$ac_default_prefix/etc/config.site"
1787 if test -r "$ac_site_file"; then
1788 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1789 echo "$as_me: loading site script $ac_site_file" >&6;}
1790 sed 's/^/| /' "$ac_site_file" >&5
1795 if test -r "$cache_file"; then
1796 # Some versions of bash will fail to source /dev/null (special
1797 # files actually), so we avoid doing that.
1798 if test -f "$cache_file"; then
1799 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1800 echo "$as_me: loading cache $cache_file" >&6;}
1802 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1803 *) . "./$cache_file";;
1807 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1808 echo "$as_me: creating cache $cache_file" >&6;}
1812 # Check that the precious variables saved in the cache have kept the same
1814 ac_cache_corrupted=false
1815 for ac_var in $ac_precious_vars; do
1816 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1817 eval ac_new_set=\$ac_env_${ac_var}_set
1818 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1819 eval ac_new_val=\$ac_env_${ac_var}_value
1820 case $ac_old_set,$ac_new_set in
1822 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1823 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1824 ac_cache_corrupted=: ;;
1826 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1827 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1828 ac_cache_corrupted=: ;;
1831 if test "x$ac_old_val" != "x$ac_new_val"; then
1832 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1833 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1834 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1835 echo "$as_me: former value: $ac_old_val" >&2;}
1836 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1837 echo "$as_me: current value: $ac_new_val" >&2;}
1838 ac_cache_corrupted=:
1841 # Pass precious variables to config.status.
1842 if test "$ac_new_set" = set; then
1844 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1845 *) ac_arg=$ac_var=$ac_new_val ;;
1847 case " $ac_configure_args " in
1848 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1849 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1853 if $ac_cache_corrupted; then
1854 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1855 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1856 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1857 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1858 { (exit 1); exit 1; }; }
1878 ac_cpp='$CPP $CPPFLAGS'
1879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1884 ac_config_headers="$ac_config_headers config.h"
1887 echo "current directory: `pwd`"
1888 echo "command line was: $0 $@"
1890 ###############################################################################
1894 ###############################################################################
2066 # After checking to see that --srcdir is correct (which AC_INIT does)
2067 # check for some random other files that come later in the tar file,
2068 # to make sure everything is here.
2070 for d in driver utils hacks hacks/glx ; do
2071 f=$srcdir/$d/Makefile.in
2072 if test \! -r $f ; then
2074 echo "ERROR: The package is incomplete: $f does not exist."
2075 echo " This probably means that your download was truncated."
2081 ###############################################################################
2083 # Function to figure out how to run the compiler.
2085 ###############################################################################
2090 ###############################################################################
2092 # Check for availability of various gcc command-line options.
2094 ###############################################################################
2102 # Need to disable Objective C extensions in ANSI C on MacOS X to work
2103 # around an Apple-specific gcc bug.
2107 ###############################################################################
2109 # Function to figure out how to disable // comments in ANSI C code.
2111 # (With recent gcc, this is done with "-std=c89". With older gcc, this
2112 # is done by passing "-lang-c89" to cpp, by passing "-Wp,-lang-c89" to
2113 # gcc. Old gcc doesn't support -std, and new gcc doesn't support -lang.
2114 # so much for compatibility!)
2116 # UPDATE: apparently there is NO WAY to tell gcc 3.2.2 to require that
2117 # declarations preceed statements, without resorting to "-pedantic".
2118 # This means that there is no way to get gcc3 to issue warnings that
2119 # ensure that your code complies with the ANSI/ISO C89 standard, without
2120 # also drowning in totally useless warnings. Thank you master may I
2123 # So, I give up, let's just use -pedantic.
2125 ###############################################################################
2132 ###############################################################################
2134 # Function to figure out how to create directory trees.
2136 ###############################################################################
2141 ###############################################################################
2143 # Function to check whether gettimeofday() exists, and how to call it.
2144 # This may define HAVE_GETTIMEOFDAY and GETTIMEOFDAY_TWO_ARGS.
2146 ###############################################################################
2151 ###############################################################################
2153 # Function to find perl5 (defines PERL and PERL_VERSION.)
2155 ###############################################################################
2157 # M4 sucks!! perl sucks too!!
2159 perl_version_cmd='print $]'
2165 ###############################################################################
2167 # Function to demand "bc". Losers.
2169 ###############################################################################
2173 ###############################################################################
2175 # Functions to check how to do ICMP PING requests.
2177 ###############################################################################
2184 ###############################################################################
2186 # Functions to check for various X11 crap.
2188 ###############################################################################
2190 # Try and find the app-defaults directory.
2191 # It sucks that autoconf doesn't do this already...
2195 ###############################################################################
2197 # Handle the --with-x-app-defaults option HERE
2199 ###############################################################################
2202 # Check whether --with-x-app-defaults was given.
2203 if test "${with_x_app_defaults+set}" = set; then
2204 withval=$with_x_app_defaults; ac_cv_x_app_defaults="$withval"
2206 eval ac_x_app_defaults="$withval"
2219 # Random special-cases for X on certain pathological OSes.
2220 # You know who you are.
2226 ###############################################################################
2228 # Some utility functions to make checking for X things easier.
2230 ###############################################################################
2232 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
2236 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
2240 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
2245 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
2246 # Use this sparingly; it probably doesn't work very well on X programs.
2250 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
2251 # (But not the -L directories!)
2257 # Usage: HANDLE_X_PATH_ARG([variable_name],
2258 # [--command-line-option],
2259 # [descriptive string])
2261 # All of the --with options take three forms:
2263 # --with-foo (or --with-foo=yes)
2264 # --without-foo (or --with-foo=no)
2267 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
2268 # a directory (string beginning with a slash) it checks to see whether
2269 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
2276 ###############################################################################
2277 ###############################################################################
2279 # End of function definitions. Now start actually executing stuff.
2281 ###############################################################################
2282 ###############################################################################
2284 # WTF! autoconf emits this *way* too late. Do it earlier.
2285 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2286 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2289 # random compiler setup
2291 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2292 if test -f "$ac_dir/install-sh"; then
2294 ac_install_sh="$ac_aux_dir/install-sh -c"
2296 elif test -f "$ac_dir/install.sh"; then
2298 ac_install_sh="$ac_aux_dir/install.sh -c"
2300 elif test -f "$ac_dir/shtool"; then
2302 ac_install_sh="$ac_aux_dir/shtool install -c"
2306 if test -z "$ac_aux_dir"; then
2307 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2308 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2309 { (exit 1); exit 1; }; }
2312 # These three variables are undocumented and unsupported,
2313 # and are intended to be withdrawn in a future Autoconf release.
2314 # They can cause serious problems if a builder's source tree is in a directory
2315 # whose full name contains unusual characters.
2316 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2317 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2318 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2321 # Make sure we can run config.sub.
2322 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2323 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2324 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2325 { (exit 1); exit 1; }; }
2327 { echo "$as_me:$LINENO: checking build system type" >&5
2328 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2329 if test "${ac_cv_build+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 ac_build_alias=$build_alias
2333 test "x$ac_build_alias" = x &&
2334 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2335 test "x$ac_build_alias" = x &&
2336 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2337 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2338 { (exit 1); exit 1; }; }
2339 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2340 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2341 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2342 { (exit 1); exit 1; }; }
2345 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2346 echo "${ECHO_T}$ac_cv_build" >&6; }
2347 case $ac_cv_build in
2349 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2350 echo "$as_me: error: invalid value of canonical build" >&2;}
2351 { (exit 1); exit 1; }; };;
2354 ac_save_IFS=$IFS; IFS='-'
2360 # Remember, the first character of IFS is used to create $*,
2361 # except with old shells:
2364 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2367 { echo "$as_me:$LINENO: checking host system type" >&5
2368 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2369 if test "${ac_cv_host+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 if test "x$host_alias" = x; then
2373 ac_cv_host=$ac_cv_build
2375 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2376 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2377 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2378 { (exit 1); exit 1; }; }
2382 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2383 echo "${ECHO_T}$ac_cv_host" >&6; }
2386 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2387 echo "$as_me: error: invalid value of canonical host" >&2;}
2388 { (exit 1); exit 1; }; };;
2391 ac_save_IFS=$IFS; IFS='-'
2397 # Remember, the first character of IFS is used to create $*,
2398 # except with old shells:
2401 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2406 ac_cpp='$CPP $CPPFLAGS'
2407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2410 if test -n "$ac_tool_prefix"; then
2411 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2412 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2415 if test "${ac_cv_prog_CC+set}" = set; then
2416 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 if test -n "$CC"; then
2419 ac_cv_prog_CC="$CC" # Let the user override the test.
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2428 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 if test -n "$CC"; then
2440 { echo "$as_me:$LINENO: result: $CC" >&5
2441 echo "${ECHO_T}$CC" >&6; }
2443 { echo "$as_me:$LINENO: result: no" >&5
2444 echo "${ECHO_T}no" >&6; }
2449 if test -z "$ac_cv_prog_CC"; then
2451 # Extract the first word of "gcc", so it can be a program name with args.
2452 set dummy gcc; ac_word=$2
2453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2455 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 if test -n "$ac_ct_CC"; then
2459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2468 ac_cv_prog_ac_ct_CC="gcc"
2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2479 if test -n "$ac_ct_CC"; then
2480 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2481 echo "${ECHO_T}$ac_ct_CC" >&6; }
2483 { echo "$as_me:$LINENO: result: no" >&5
2484 echo "${ECHO_T}no" >&6; }
2487 if test "x$ac_ct_CC" = x; then
2490 case $cross_compiling:$ac_tool_warned in
2492 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2493 whose name does not start with the host triplet. If you think this
2494 configuration is useful to you, please write to autoconf@gnu.org." >&5
2495 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2496 whose name does not start with the host triplet. If you think this
2497 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2498 ac_tool_warned=yes ;;
2506 if test -z "$CC"; then
2507 if test -n "$ac_tool_prefix"; then
2508 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2509 set dummy ${ac_tool_prefix}cc; ac_word=$2
2510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2512 if test "${ac_cv_prog_CC+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2515 if test -n "$CC"; then
2516 ac_cv_prog_CC="$CC" # Let the user override the test.
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2525 ac_cv_prog_CC="${ac_tool_prefix}cc"
2526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 if test -n "$CC"; then
2537 { echo "$as_me:$LINENO: result: $CC" >&5
2538 echo "${ECHO_T}$CC" >&6; }
2540 { echo "$as_me:$LINENO: result: no" >&5
2541 echo "${ECHO_T}no" >&6; }
2547 if test -z "$CC"; then
2548 # Extract the first word of "cc", so it can be a program name with args.
2549 set dummy cc; ac_word=$2
2550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2552 if test "${ac_cv_prog_CC+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2555 if test -n "$CC"; then
2556 ac_cv_prog_CC="$CC" # Let the user override the test.
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2567 ac_prog_rejected=yes
2571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 if test $ac_prog_rejected = yes; then
2579 # We found a bogon in the path, so make sure we never use it.
2580 set dummy $ac_cv_prog_CC
2582 if test $# != 0; then
2583 # We chose a different compiler from the bogus one.
2584 # However, it has the same basename, so the bogon will be chosen
2585 # first if we set CC to just the basename; use the full file name.
2587 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2593 if test -n "$CC"; then
2594 { echo "$as_me:$LINENO: result: $CC" >&5
2595 echo "${ECHO_T}$CC" >&6; }
2597 { echo "$as_me:$LINENO: result: no" >&5
2598 echo "${ECHO_T}no" >&6; }
2603 if test -z "$CC"; then
2604 if test -n "$ac_tool_prefix"; then
2605 for ac_prog in cl.exe
2607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2611 if test "${ac_cv_prog_CC+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 if test -n "$CC"; then
2615 ac_cv_prog_CC="$CC" # Let the user override the test.
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 if test -n "$CC"; then
2636 { echo "$as_me:$LINENO: result: $CC" >&5
2637 echo "${ECHO_T}$CC" >&6; }
2639 { echo "$as_me:$LINENO: result: no" >&5
2640 echo "${ECHO_T}no" >&6; }
2644 test -n "$CC" && break
2647 if test -z "$CC"; then
2649 for ac_prog in cl.exe
2651 # Extract the first word of "$ac_prog", so it can be a program name with args.
2652 set dummy $ac_prog; ac_word=$2
2653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2655 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 if test -n "$ac_ct_CC"; then
2659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668 ac_cv_prog_ac_ct_CC="$ac_prog"
2669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2679 if test -n "$ac_ct_CC"; then
2680 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2681 echo "${ECHO_T}$ac_ct_CC" >&6; }
2683 { echo "$as_me:$LINENO: result: no" >&5
2684 echo "${ECHO_T}no" >&6; }
2688 test -n "$ac_ct_CC" && break
2691 if test "x$ac_ct_CC" = x; then
2694 case $cross_compiling:$ac_tool_warned in
2696 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2697 whose name does not start with the host triplet. If you think this
2698 configuration is useful to you, please write to autoconf@gnu.org." >&5
2699 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2700 whose name does not start with the host triplet. If you think this
2701 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2702 ac_tool_warned=yes ;;
2711 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2712 See \`config.log' for more details." >&5
2713 echo "$as_me: error: no acceptable C compiler found in \$PATH
2714 See \`config.log' for more details." >&2;}
2715 { (exit 1); exit 1; }; }
2717 # Provide some information about the compiler.
2718 echo "$as_me:$LINENO: checking for C compiler version" >&5
2719 ac_compiler=`set X $ac_compile; echo $2`
2720 { (ac_try="$ac_compiler --version >&5"
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_compiler --version >&5") 2>&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }
2730 { (ac_try="$ac_compiler -v >&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 -v >&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); }
2751 cat >conftest.$ac_ext <<_ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h. */
2766 ac_clean_files_save=$ac_clean_files
2767 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2768 # Try to create an executable without -o first, disregard a.out.
2769 # It will help us diagnose broken compilers, and finding out an intuition
2771 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2772 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2773 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2775 # List of possible output files, starting from the most likely.
2776 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2777 # only as a last resort. b.out is created by i960 compilers.
2778 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2780 # The IRIX 6 linker writes into existing files which may not be
2781 # executable, retaining their permissions. Remove them first so a
2782 # subsequent execution test works.
2784 for ac_file in $ac_files
2787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2788 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2793 if { (ac_try="$ac_link_default"
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799 (eval "$ac_link_default") 2>&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; then
2803 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2804 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2805 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2806 # so that the user can short-circuit this test for compilers unknown to
2808 for ac_file in $ac_files ''
2810 test -f "$ac_file" || continue
2812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2815 # We found the default executable, but exeext='' is most
2819 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2821 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2823 # We set ac_cv_exeext here because the later test for it is not
2824 # safe: cross compilers may not add the suffix if given an `-o'
2825 # argument, so we may need to know it at that point already.
2826 # Even if this section looks crufty: it has the advantage of
2833 test "$ac_cv_exeext" = no && ac_cv_exeext=
2839 { echo "$as_me:$LINENO: result: $ac_file" >&5
2840 echo "${ECHO_T}$ac_file" >&6; }
2841 if test -z "$ac_file"; then
2842 echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2845 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2846 See \`config.log' for more details." >&5
2847 echo "$as_me: error: C compiler cannot create executables
2848 See \`config.log' for more details." >&2;}
2849 { (exit 77); exit 77; }; }
2852 ac_exeext=$ac_cv_exeext
2854 # Check that the compiler produces executables we can run. If not, either
2855 # the compiler is broken, or we cross compile.
2856 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2857 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2858 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2859 # If not cross compiling, check that we can run a simple program.
2860 if test "$cross_compiling" != yes; then
2861 if { ac_try='./$ac_file'
2862 { (case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867 (eval "$ac_try") 2>&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; }; then
2873 if test "$cross_compiling" = maybe; then
2876 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2877 If you meant to cross compile, use \`--host'.
2878 See \`config.log' for more details." >&5
2879 echo "$as_me: error: cannot run C compiled programs.
2880 If you meant to cross compile, use \`--host'.
2881 See \`config.log' for more details." >&2;}
2882 { (exit 1); exit 1; }; }
2886 { echo "$as_me:$LINENO: result: yes" >&5
2887 echo "${ECHO_T}yes" >&6; }
2889 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2890 ac_clean_files=$ac_clean_files_save
2891 # Check that the compiler produces executables we can run. If not, either
2892 # the compiler is broken, or we cross compile.
2893 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2894 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2895 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2896 echo "${ECHO_T}$cross_compiling" >&6; }
2898 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2899 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2900 if { (ac_try="$ac_link"
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 (eval "$ac_link") 2>&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; then
2910 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2911 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2912 # work properly (i.e., refer to `conftest.exe'), while it won't with
2914 for ac_file in conftest.exe conftest conftest.*; do
2915 test -f "$ac_file" || continue
2917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2918 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2924 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2925 See \`config.log' for more details." >&5
2926 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2927 See \`config.log' for more details." >&2;}
2928 { (exit 1); exit 1; }; }
2931 rm -rf conftest$ac_cv_exeext
2932 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2933 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2935 rm -rf conftest.$ac_ext
2936 EXEEXT=$ac_cv_exeext
2938 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2939 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2940 if test "${ac_cv_objext+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2943 cat >conftest.$ac_ext <<_ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2958 rm -rf conftest.o conftest.obj
2959 if { (ac_try="$ac_compile"
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_compile") 2>&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; then
2969 for ac_file in conftest.o conftest.obj conftest.*; do
2970 test -f "$ac_file" || continue;
2972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2973 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2978 echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2981 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2982 See \`config.log' for more details." >&5
2983 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2984 See \`config.log' for more details." >&2;}
2985 { (exit 1); exit 1; }; }
2988 rm -rf conftest.$ac_cv_objext conftest.$ac_ext
2990 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2991 echo "${ECHO_T}$ac_cv_objext" >&6; }
2992 OBJEXT=$ac_cv_objext
2994 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2995 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2996 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 cat >conftest.$ac_ext <<_ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3017 rm -rf conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compile") 2>conftest.er1
3026 grep -v '^ *+' conftest.er1 >conftest.err
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } && {
3031 test -z "$ac_c_werror_flag" ||
3032 test ! -s conftest.err
3033 } && test -s conftest.$ac_objext; then
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3043 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3046 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3047 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3048 GCC=`test $ac_compiler_gnu = yes && echo yes`
3049 ac_test_CFLAGS=${CFLAGS+set}
3050 ac_save_CFLAGS=$CFLAGS
3051 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3052 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3053 if test "${ac_cv_prog_cc_g+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 ac_save_c_werror_flag=$ac_c_werror_flag
3057 ac_c_werror_flag=yes
3060 cat >conftest.$ac_ext <<_ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3075 rm -rf conftest.$ac_objext
3076 if { (ac_try="$ac_compile"
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_compile") 2>conftest.er1
3084 grep -v '^ *+' conftest.er1 >conftest.err
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } && {
3089 test -z "$ac_c_werror_flag" ||
3090 test ! -s conftest.err
3091 } && test -s conftest.$ac_objext; then
3094 echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3098 cat >conftest.$ac_ext <<_ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3113 rm -rf conftest.$ac_objext
3114 if { (ac_try="$ac_compile"
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3122 grep -v '^ *+' conftest.er1 >conftest.err
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } && {
3127 test -z "$ac_c_werror_flag" ||
3128 test ! -s conftest.err
3129 } && test -s conftest.$ac_objext; then
3132 echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3135 ac_c_werror_flag=$ac_save_c_werror_flag
3137 cat >conftest.$ac_ext <<_ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h. */
3152 rm -rf conftest.$ac_objext
3153 if { (ac_try="$ac_compile"
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159 (eval "$ac_compile") 2>conftest.er1
3161 grep -v '^ *+' conftest.er1 >conftest.err
3163 cat conftest.err >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } && {
3166 test -z "$ac_c_werror_flag" ||
3167 test ! -s conftest.err
3168 } && test -s conftest.$ac_objext; then
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184 ac_c_werror_flag=$ac_save_c_werror_flag
3186 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3187 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3188 if test "$ac_test_CFLAGS" = set; then
3189 CFLAGS=$ac_save_CFLAGS
3190 elif test $ac_cv_prog_cc_g = yes; then
3191 if test "$GCC" = yes; then
3197 if test "$GCC" = yes; then
3203 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3204 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3205 if test "${ac_cv_prog_cc_c89+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 ac_cv_prog_cc_c89=no
3210 cat >conftest.$ac_ext <<_ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3218 #include <sys/types.h>
3219 #include <sys/stat.h>
3220 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3221 struct buf { int x; };
3222 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3223 static char *e (p, i)
3229 static char *f (char * (*g) (char **, int), char **p, ...)
3234 s = g (p, va_arg (v,int));
3239 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3240 function prototypes and stuff, but not '\xHH' hex character constants.
3241 These don't provoke an error unfortunately, instead are silently treated
3242 as 'x'. The following induces an error, until -std is added to get
3243 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3244 array size at least. It's necessary to write '\x00'==0 to get something
3245 that's true only with -std. */
3246 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3248 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3249 inside strings and character constants. */
3251 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3253 int test (int i, double x);
3254 struct s1 {int (*f) (int a);};
3255 struct s2 {int (*f) (double a);};
3256 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3262 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3267 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3268 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3270 CC="$ac_save_CC $ac_arg"
3271 rm -rf conftest.$ac_objext
3272 if { (ac_try="$ac_compile"
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278 (eval "$ac_compile") 2>conftest.er1
3280 grep -v '^ *+' conftest.er1 >conftest.err
3282 cat conftest.err >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } && {
3285 test -z "$ac_c_werror_flag" ||
3286 test ! -s conftest.err
3287 } && test -s conftest.$ac_objext; then
3288 ac_cv_prog_cc_c89=$ac_arg
3290 echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3296 rm -f core conftest.err conftest.$ac_objext
3297 test "x$ac_cv_prog_cc_c89" != "xno" && break
3299 rm -rf conftest.$ac_ext
3304 case "x$ac_cv_prog_cc_c89" in
3306 { echo "$as_me:$LINENO: result: none needed" >&5
3307 echo "${ECHO_T}none needed" >&6; } ;;
3309 { echo "$as_me:$LINENO: result: unsupported" >&5
3310 echo "${ECHO_T}unsupported" >&6; } ;;
3312 CC="$CC $ac_cv_prog_cc_c89"
3313 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3314 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3319 ac_cpp='$CPP $CPPFLAGS'
3320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325 if test -z "$GCC"; then
3327 { echo "$as_me:$LINENO: checking how to request ANSI compilation" >&5
3328 echo $ECHO_N "checking how to request ANSI compilation... $ECHO_C" >&6; }
3331 { echo "$as_me:$LINENO: result: HPUX: adding -Ae" >&5
3332 echo "${ECHO_T}HPUX: adding -Ae" >&6; }
3336 { echo "$as_me:$LINENO: result: AIX: adding -qlanglvl=ansi -qhalt=e" >&5
3337 echo "${ECHO_T}AIX: adding -qlanglvl=ansi -qhalt=e" >&6; }
3338 CC="$CC -qlanglvl=ansi -qhalt=e"
3341 { echo "$as_me:$LINENO: result: DEC: adding -std1 -ieee" >&5
3342 echo "${ECHO_T}DEC: adding -std1 -ieee" >&6; }
3346 { echo "$as_me:$LINENO: result: no idea" >&5
3347 echo "${ECHO_T}no idea" >&6; }
3354 { echo "$as_me:$LINENO: result: Solaris: adding -D__EXTENSIONS__" >&5
3355 echo "${ECHO_T}Solaris: adding -D__EXTENSIONS__" >&6; }
3356 CC="$CC -D__EXTENSIONS__"
3363 { echo "$as_me:$LINENO: checking whether the compiler works on ANSI C" >&5
3364 echo $ECHO_N "checking whether the compiler works on ANSI C... $ECHO_C" >&6; }
3365 if test "$cross_compiling" = yes; then
3366 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
3367 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
3368 { (exit 1); exit 1; }; }
3370 cat >conftest.$ac_ext <<_ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h. */
3376 main(int ac, char **av) { return 0; }
3378 rm -rf conftest$ac_exeext
3379 if { (ac_try="$ac_link"
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_link") 2>&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3389 { (case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_try") 2>&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; }; then
3398 { echo "$as_me:$LINENO: result: yes" >&5
3399 echo "${ECHO_T}yes" >&6; }
3401 echo "$as_me: program exited with status $ac_status" >&5
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3406 { echo "$as_me:$LINENO: result: no" >&5
3407 echo "${ECHO_T}no" >&6; }
3408 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
3409 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
3410 { (exit 1); exit 1; }; }
3412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3417 if test -n "$GCC"; then
3418 { echo "$as_me:$LINENO: result: Turning on gcc compiler warnings." >&5
3419 echo "${ECHO_T}Turning on gcc compiler warnings." >&6; }
3420 CC="$CC -pedantic -Wall -Wstrict-prototypes -Wnested-externs -Wmissing-prototypes"
3421 OBJCC="$OBJCC -Wall"
3422 # As of gcc 3.4, we have "-Wdeclaration-after-statement"
3423 # and so perhaps now we can do without -pedantic?
3426 *-irix5* |*-irix6.0-3* )
3427 { echo "$as_me:$LINENO: result: Turning on SGI compiler warnings." >&5
3428 echo "${ECHO_T}Turning on SGI compiler warnings." >&6; }
3429 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
3432 # if test -z "$GCC"; then
3433 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
3434 # CC="$CC -migrate -w0 -verbose -warnprotos"
3440 if test -n "$GCC"; then
3441 { echo "$as_me:$LINENO: checking whether gcc accepts -Wno-overlength-strings" >&5
3442 echo $ECHO_N "checking whether gcc accepts -Wno-overlength-strings... $ECHO_C" >&6; }
3443 if test "${ac_cv_gcc_accepts_no_overlength+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 rm -rf conftest.$ac_ext
3447 touch conftest.$ac_ext
3448 if ( ( gcc -c -Wno-overlength-strings conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3449 grep unrecognized >/dev/null ); then
3450 ac_cv_gcc_accepts_no_overlength=no
3452 ac_cv_gcc_accepts_no_overlength=yes
3453 CC="$CC -Wno-overlength-strings"
3456 { echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_overlength" >&5
3457 echo "${ECHO_T}$ac_cv_gcc_accepts_no_overlength" >&6; }
3458 ac_gcc_accepts_no_overlength="$ac_cv_gcc_accepts_no_overlength"
3461 if test -n "$GCC"; then
3462 { echo "$as_me:$LINENO: checking whether gcc accepts -Wdeclaration-after-statement" >&5
3463 echo $ECHO_N "checking whether gcc accepts -Wdeclaration-after-statement... $ECHO_C" >&6; }
3464 if test "${ac_cv_gcc_accepts_no_decl_after+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 rm -rf conftest.$ac_ext
3468 touch conftest.$ac_ext
3469 if ( ( gcc -c -Wdeclaration-after-statement conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3470 grep unrecognized >/dev/null ); then
3471 ac_cv_gcc_accepts_no_decl_after=no
3473 ac_cv_gcc_accepts_no_decl_after=yes
3474 CC="$CC -Wdeclaration-after-statement"
3477 { echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_decl_after" >&5
3478 echo "${ECHO_T}$ac_cv_gcc_accepts_no_decl_after" >&6; }
3479 ac_gcc_accepts_no_decl_after="$ac_cv_gcc_accepts_no_decl_after"
3482 if test -n "$GCC"; then
3483 { echo "$as_me:$LINENO: checking whether gcc accepts -no-cpp-precomp" >&5
3484 echo $ECHO_N "checking whether gcc accepts -no-cpp-precomp... $ECHO_C" >&6; }
3485 if test "${ac_cv_gcc_accepts_no_cpp_precomp+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3488 rm -rf conftest.$ac_ext
3489 touch conftest.$ac_ext
3490 if ( ( gcc -c -no-cpp-precomp conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3491 grep unrecognized >/dev/null ); then
3492 ac_cv_gcc_accepts_no_cpp_precomp=no
3494 ac_cv_gcc_accepts_no_cpp_precomp=yes
3495 CC="$CC -no-cpp-precomp"
3498 { echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_cpp_precomp" >&5
3499 echo "${ECHO_T}$ac_cv_gcc_accepts_no_cpp_precomp" >&6; }
3500 ac_gcc_accepts_no_cpp_precomp="$ac_cv_gcc_accepts_no_cpp_precomp"
3503 if test -n "$GCC"; then
3504 if test -n "$GCC"; then
3505 { echo "$as_me:$LINENO: checking whether gcc accepts -std=c89" >&5
3506 echo $ECHO_N "checking whether gcc accepts -std=c89... $ECHO_C" >&6; }
3507 if test "${ac_cv_gcc_accepts_std+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 rm -rf conftest.$ac_ext
3511 touch conftest.$ac_ext
3512 if ( ( gcc -c -std=c89 conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3513 grep unrecognized >/dev/null ); then
3514 ac_cv_gcc_accepts_std=no
3516 ac_cv_gcc_accepts_std=yes
3520 { echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_std" >&5
3521 echo "${ECHO_T}$ac_cv_gcc_accepts_std" >&6; }
3522 ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
3525 { echo "$as_me:$LINENO: result: Disabling C++ comments in ANSI C code." >&5
3526 echo "${ECHO_T}Disabling C++ comments in ANSI C code." >&6; }
3528 # The reason that // comments are banned from xscreensaver is that gcc is
3529 # basically the only compiler in the world that supports them in C code.
3530 # All other vendors support them only in their C++ compilers, not in their
3531 # ANSI C compilers. This means that it's a portability problem: every time
3532 # these comments have snuck into the xscreensaver source code, I've gotten
3533 # complaints about it the next day. So we turn off support for them in gcc
3534 # as well to prevent them from accidentially slipping in.
3536 if test "$ac_gcc_accepts_std" = yes ; then
3538 # -std=c89 defines __STRICT_ANSI__, which we don't want.
3539 # (That appears to be the only additional preprocessor symbol
3540 # it defines, in addition to the syntax changes it makes.)
3542 # -std=gnu89 is no good, because // comments were a GNU extension
3543 # before they were in the ANSI C 99 spec... (gcc 2.96 permits //
3544 # with -std=gnu89 but not with -std=c89.)
3546 # $CC already contains "-std=c89" via AC_GCC_ACCEPTS_STD
3547 CC="$CC -U__STRICT_ANSI__"
3550 CC="$CC -Wp,-lang-c89"
3555 ac_cpp='$CPP $CPPFLAGS'
3556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3559 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3560 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3561 # On Suns, sometimes $CPP names a directory.
3562 if test -n "$CPP" && test -d "$CPP"; then
3565 if test -z "$CPP"; then
3566 if test "${ac_cv_prog_CPP+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 # Double quotes because CPP needs to be expanded
3570 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3573 for ac_c_preproc_warn_flag in '' yes
3575 # Use a header file that comes with gcc, so configuring glibc
3576 # with a fresh cross-compiler works.
3577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3578 # <limits.h> exists even on freestanding compilers.
3579 # On the NeXT, cc -E runs the code through the compiler's parser,
3580 # not just through cpp. "Syntax error" is here to catch this case.
3581 cat >conftest.$ac_ext <<_ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3588 # include <limits.h>
3590 # include <assert.h>
3594 if { (ac_try="$ac_cpp conftest.$ac_ext"
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3602 grep -v '^ *+' conftest.er1 >conftest.err
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } >/dev/null && {
3607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3608 test ! -s conftest.err
3612 echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3615 # Broken: fails on valid input.
3619 rm -rf conftest.err conftest.$ac_ext
3621 # OK, works on sane cases. Now check whether nonexistent headers
3622 # can be detected and how.
3623 cat >conftest.$ac_ext <<_ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3629 #include <ac_nonexistent.h>
3631 if { (ac_try="$ac_cpp conftest.$ac_ext"
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3639 grep -v '^ *+' conftest.er1 >conftest.err
3641 cat conftest.err >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); } >/dev/null && {
3644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3645 test ! -s conftest.err
3647 # Broken: success on invalid input.
3650 echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3653 # Passes both tests.
3658 rm -rf conftest.err conftest.$ac_ext
3661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3662 rm -rf conftest.err conftest.$ac_ext
3663 if $ac_preproc_ok; then
3675 { echo "$as_me:$LINENO: result: $CPP" >&5
3676 echo "${ECHO_T}$CPP" >&6; }
3678 for ac_c_preproc_warn_flag in '' yes
3680 # Use a header file that comes with gcc, so configuring glibc
3681 # with a fresh cross-compiler works.
3682 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3683 # <limits.h> exists even on freestanding compilers.
3684 # On the NeXT, cc -E runs the code through the compiler's parser,
3685 # not just through cpp. "Syntax error" is here to catch this case.
3686 cat >conftest.$ac_ext <<_ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3693 # include <limits.h>
3695 # include <assert.h>
3699 if { (ac_try="$ac_cpp conftest.$ac_ext"
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3707 grep -v '^ *+' conftest.er1 >conftest.err
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } >/dev/null && {
3712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3713 test ! -s conftest.err
3717 echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3720 # Broken: fails on valid input.
3724 rm -rf conftest.err conftest.$ac_ext
3726 # OK, works on sane cases. Now check whether nonexistent headers
3727 # can be detected and how.
3728 cat >conftest.$ac_ext <<_ACEOF
3731 cat confdefs.h >>conftest.$ac_ext
3732 cat >>conftest.$ac_ext <<_ACEOF
3733 /* end confdefs.h. */
3734 #include <ac_nonexistent.h>
3736 if { (ac_try="$ac_cpp conftest.$ac_ext"
3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3744 grep -v '^ *+' conftest.er1 >conftest.err
3746 cat conftest.err >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); } >/dev/null && {
3749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3750 test ! -s conftest.err
3752 # Broken: success on invalid input.
3755 echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3758 # Passes both tests.
3763 rm -rf conftest.err conftest.$ac_ext
3766 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3767 rm -rf conftest.err conftest.$ac_ext
3768 if $ac_preproc_ok; then
3771 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3772 See \`config.log' for more details." >&5
3773 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3774 See \`config.log' for more details." >&2;}
3775 { (exit 1); exit 1; }; }
3779 ac_cpp='$CPP $CPPFLAGS'
3780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3784 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3785 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3786 if test "${ac_cv_c_const+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 cat >conftest.$ac_ext <<_ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3799 /* FIXME: Include the comments suggested by Paul. */
3801 /* Ultrix mips cc rejects this. */
3802 typedef int charset[2];
3804 /* SunOS 4.1.1 cc rejects this. */
3805 char const *const *pcpcc;
3807 /* NEC SVR4.0.2 mips cc rejects this. */
3808 struct point {int x, y;};
3809 static struct point const zero = {0,0};
3810 /* AIX XL C 1.02.0.0 rejects this.
3811 It does not let you subtract one const X* pointer from another in
3812 an arm of an if-expression whose if-part is not a constant
3814 const char *g = "string";
3815 pcpcc = &g + (g ? g-g : 0);
3816 /* HPUX 7.0 cc rejects these. */
3818 ppc = (char**) pcpcc;
3819 pcpcc = (char const *const *) ppc;
3820 { /* SCO 3.2v4 cc rejects this. */
3822 char const *s = 0 ? (char *) 0 : (char const *) 0;
3827 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3829 const int *foo = &x[0];
3832 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3833 typedef const int *iptr;
3837 { /* AIX XL C 1.02.0.0 rejects this saying
3838 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3839 struct s { int j; const int *ap[3]; };
3840 struct s *b; b->j = 5;
3842 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3846 return !cs[0] && !zero.x;
3853 rm -rf conftest.$ac_objext
3854 if { (ac_try="$ac_compile"
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3860 (eval "$ac_compile") 2>conftest.er1
3862 grep -v '^ *+' conftest.er1 >conftest.err
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } && {
3867 test -z "$ac_c_werror_flag" ||
3868 test ! -s conftest.err
3869 } && test -s conftest.$ac_objext; then
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3881 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3882 if test $ac_cv_c_const = no; then
3884 cat >>confdefs.h <<\_ACEOF
3890 { echo "$as_me:$LINENO: checking for inline" >&5
3891 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3892 if test "${ac_cv_c_inline+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 for ac_kw in inline __inline__ __inline; do
3897 cat >conftest.$ac_ext <<_ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3905 static $ac_kw foo_t static_foo () {return 0; }
3906 $ac_kw foo_t foo () {return 0; }
3910 rm -rf conftest.$ac_objext
3911 if { (ac_try="$ac_compile"
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3917 (eval "$ac_compile") 2>conftest.er1
3919 grep -v '^ *+' conftest.er1 >conftest.err
3921 cat conftest.err >&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } && {
3924 test -z "$ac_c_werror_flag" ||
3925 test ! -s conftest.err
3926 } && test -s conftest.$ac_objext; then
3927 ac_cv_c_inline=$ac_kw
3929 echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 test "$ac_cv_c_inline" != no && break
3940 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3941 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3944 case $ac_cv_c_inline in
3947 case $ac_cv_c_inline in
3949 *) ac_val=$ac_cv_c_inline;;
3951 cat >>confdefs.h <<_ACEOF
3953 #define inline $ac_val
3960 ac_bc_result=`echo 6+9 | bc 2>/dev/null`
3961 { echo "$as_me:$LINENO: checking for bc" >&5
3962 echo $ECHO_N "checking for bc... $ECHO_C" >&6; }
3963 if test "$ac_bc_result" = "15" ; then
3964 { echo "$as_me:$LINENO: result: yes" >&5
3965 echo "${ECHO_T}yes" >&6; }
3967 { echo "$as_me:$LINENO: result: no" >&5
3968 echo "${ECHO_T}no" >&6; }
3970 { { echo "$as_me:$LINENO: error: Your system doesn't have \"bc\", which has been a standard
3971 part of Unix since the 1970s. Come back when your vendor
3972 has grown a clue." >&5
3973 echo "$as_me: error: Your system doesn't have \"bc\", which has been a standard
3974 part of Unix since the 1970s. Come back when your vendor
3975 has grown a clue." >&2;}
3976 { (exit 1); exit 1; }; }
3980 # stuff for Makefiles
3981 # Find a good install program. We prefer a C program (faster),
3982 # so one script is as good as another. But avoid the broken or
3983 # incompatible versions:
3984 # SysV /etc/install, /usr/sbin/install
3985 # SunOS /usr/etc/install
3986 # IRIX /sbin/install
3988 # AmigaOS /C/install, which installs bootblocks on floppy discs
3989 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3990 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3991 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3992 # OS/2's system install, which has a completely different semantic
3993 # ./install, which can be erroneously created by make from ./install.sh.
3994 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3995 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3996 if test -z "$INSTALL"; then
3997 if test "${ac_cv_path_install+set}" = set; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 test -z "$as_dir" && as_dir=.
4005 # Account for people who put trailing slashes in PATH elements.
4007 ./ | .// | /cC/* | \
4008 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4009 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4012 # OSF1 and SCO ODT 3.0 have their own names for install.
4013 # Don't use installbsd from OSF since it installs stuff as root
4015 for ac_prog in ginstall scoinst install; do
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4018 if test $ac_prog = install &&
4019 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4020 # AIX install. It has an incompatible calling convention.
4022 elif test $ac_prog = install &&
4023 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4024 # program-specific install script used by HP pwplus--don't use.
4027 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4040 if test "${ac_cv_path_install+set}" = set; then
4041 INSTALL=$ac_cv_path_install
4043 # As a last resort, use the slow shell script. Don't cache a
4044 # value for INSTALL within a source directory, because that will
4045 # break other packages using the cache if that directory is
4046 # removed, or if the value is a relative name.
4047 INSTALL=$ac_install_sh
4050 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4051 echo "${ECHO_T}$INSTALL" >&6; }
4053 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4054 # It thinks the first close brace ends the variable substitution.
4055 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4057 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4059 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4061 { echo "$as_me:$LINENO: checking whether \"\${INSTALL} -d\" creates intermediate directories" >&5
4062 echo $ECHO_N "checking whether \"\${INSTALL} -d\" creates intermediate directories... $ECHO_C" >&6; }
4063 if test "${ac_cv_install_d_creates_dirs+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 ac_cv_install_d_creates_dirs=no
4068 if mkdir conftestdir; then
4069 cd conftestdir 2>/dev/null
4070 ${INSTALL} -d `pwd`/dir1/dir2 >/dev/null 2>&1
4071 if test -d dir1/dir2/. ; then
4072 ac_cv_install_d_creates_dirs=yes
4079 { echo "$as_me:$LINENO: result: $ac_cv_install_d_creates_dirs" >&5
4080 echo "${ECHO_T}$ac_cv_install_d_creates_dirs" >&6; }
4082 if test "$ac_cv_install_d_creates_dirs" = no ; then
4083 { echo "$as_me:$LINENO: checking whether \"mkdir -p\" creates intermediate directories" >&5
4084 echo $ECHO_N "checking whether \"mkdir -p\" creates intermediate directories... $ECHO_C" >&6; }
4085 if test "${ac_cv_mkdir_p_creates_dirs+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 ac_cv_mkdir_p_creates_dirs=no
4090 if mkdir conftestdir; then
4091 cd conftestdir 2>/dev/null
4092 mkdir -p dir1/dir2 >/dev/null 2>&1
4093 if test -d dir1/dir2/. ; then
4094 ac_cv_mkdir_p_creates_dirs=yes
4101 { echo "$as_me:$LINENO: result: $ac_cv_mkdir_p_creates_dirs" >&5
4102 echo "${ECHO_T}$ac_cv_mkdir_p_creates_dirs" >&6; }
4105 if test "$ac_cv_install_d_creates_dirs" = yes ; then
4106 INSTALL_DIRS='${INSTALL} -d'
4107 elif test "$ac_cv_mkdir_p_creates_dirs" = yes ; then
4108 INSTALL_DIRS='mkdir -p'
4111 INSTALL_DIRS='${INSTALL} -d'
4114 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4115 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4116 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4117 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 cat >conftest.make <<\_ACEOF
4123 @echo '@@@%%%=$(MAKE)=@@@%%%'
4125 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4126 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4128 eval ac_cv_prog_make_${ac_make}_set=yes;;
4130 eval ac_cv_prog_make_${ac_make}_set=no;;
4132 rm -rf conftest.make
4134 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4135 { echo "$as_me:$LINENO: result: yes" >&5
4136 echo "${ECHO_T}yes" >&6; }
4139 { echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6; }
4141 SET_MAKE="MAKE=${MAKE-make}"
4145 # By default, autoconf sets INSTALL_SCRIPT to '${INSTALL_PROGRAM}'.
4146 # That's wrong: it should be set to '${INSTALL}', so that one can
4147 # implement the "install-strip" target properly (strip executables,
4148 # but do not try to strip scripts.)
4150 INSTALL_SCRIPT='${INSTALL}'
4154 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4155 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4156 if test "${ac_cv_path_GREP+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 # Extract the first word of "grep ggrep" to use in msg output
4160 if test -z "$GREP"; then
4161 set dummy grep ggrep; ac_prog_name=$2
4162 if test "${ac_cv_path_GREP+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 ac_path_GREP_found=false
4166 # Loop through the user's path and test for each of PROGNAME-LIST
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4171 test -z "$as_dir" && as_dir=.
4172 for ac_prog in grep ggrep; do
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4175 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4176 # Check for GNU ac_path_GREP and select it if it is found.
4177 # Check for GNU $ac_path_GREP
4178 case `"$ac_path_GREP" --version 2>&1` in
4180 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4183 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4186 cat "conftest.in" "conftest.in" >"conftest.tmp"
4187 mv "conftest.tmp" "conftest.in"
4188 cp "conftest.in" "conftest.nl"
4189 echo 'GREP' >> "conftest.nl"
4190 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4191 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4192 ac_count=`expr $ac_count + 1`
4193 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4194 # Best one so far, save it but keep looking for a better one
4195 ac_cv_path_GREP="$ac_path_GREP"
4196 ac_path_GREP_max=$ac_count
4198 # 10*(2^10) chars as input seems more than enough
4199 test $ac_count -gt 10 && break
4201 rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
4205 $ac_path_GREP_found && break 3
4215 GREP="$ac_cv_path_GREP"
4216 if test -z "$GREP"; then
4217 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4218 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4219 { (exit 1); exit 1; }; }
4223 ac_cv_path_GREP=$GREP
4228 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4229 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4230 GREP="$ac_cv_path_GREP"
4233 { echo "$as_me:$LINENO: checking for egrep" >&5
4234 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4235 if test "${ac_cv_path_EGREP+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4238 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4239 then ac_cv_path_EGREP="$GREP -E"
4241 # Extract the first word of "egrep" to use in msg output
4242 if test -z "$EGREP"; then
4243 set dummy egrep; ac_prog_name=$2
4244 if test "${ac_cv_path_EGREP+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 ac_path_EGREP_found=false
4248 # Loop through the user's path and test for each of PROGNAME-LIST
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4253 test -z "$as_dir" && as_dir=.
4254 for ac_prog in egrep; do
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4257 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4258 # Check for GNU ac_path_EGREP and select it if it is found.
4259 # Check for GNU $ac_path_EGREP
4260 case `"$ac_path_EGREP" --version 2>&1` in
4262 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4265 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4268 cat "conftest.in" "conftest.in" >"conftest.tmp"
4269 mv "conftest.tmp" "conftest.in"
4270 cp "conftest.in" "conftest.nl"
4271 echo 'EGREP' >> "conftest.nl"
4272 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4273 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4274 ac_count=`expr $ac_count + 1`
4275 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4276 # Best one so far, save it but keep looking for a better one
4277 ac_cv_path_EGREP="$ac_path_EGREP"
4278 ac_path_EGREP_max=$ac_count
4280 # 10*(2^10) chars as input seems more than enough
4281 test $ac_count -gt 10 && break
4283 rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
4287 $ac_path_EGREP_found && break 3
4297 EGREP="$ac_cv_path_EGREP"
4298 if test -z "$EGREP"; then
4299 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4300 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4301 { (exit 1); exit 1; }; }
4305 ac_cv_path_EGREP=$EGREP
4311 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4312 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4313 EGREP="$ac_cv_path_EGREP"
4316 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4317 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4318 if test "${ac_cv_header_stdc+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 cat >conftest.$ac_ext <<_ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4340 rm -rf conftest.$ac_objext
4341 if { (ac_try="$ac_compile"
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_compile") 2>conftest.er1
4349 grep -v '^ *+' conftest.er1 >conftest.err
4351 cat conftest.err >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } && {
4354 test -z "$ac_c_werror_flag" ||
4355 test ! -s conftest.err
4356 } && test -s conftest.$ac_objext; then
4357 ac_cv_header_stdc=yes
4359 echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4362 ac_cv_header_stdc=no
4365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4367 if test $ac_cv_header_stdc = yes; then
4368 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4369 cat >conftest.$ac_ext <<_ACEOF
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h. */
4378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4379 $EGREP "memchr" >/dev/null 2>&1; then
4382 ac_cv_header_stdc=no
4388 if test $ac_cv_header_stdc = yes; then
4389 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4390 cat >conftest.$ac_ext <<_ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h. */
4399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4400 $EGREP "free" >/dev/null 2>&1; then
4403 ac_cv_header_stdc=no
4409 if test $ac_cv_header_stdc = yes; then
4410 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4411 if test "$cross_compiling" = yes; then
4414 cat >conftest.$ac_ext <<_ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4422 #if ((' ' & 0x0FF) == 0x020)
4423 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4424 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4426 # define ISLOWER(c) \
4427 (('a' <= (c) && (c) <= 'i') \
4428 || ('j' <= (c) && (c) <= 'r') \
4429 || ('s' <= (c) && (c) <= 'z'))
4430 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4433 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4438 for (i = 0; i < 256; i++)
4439 if (XOR (islower (i), ISLOWER (i))
4440 || toupper (i) != TOUPPER (i))
4445 rm -rf conftest$ac_exeext
4446 if { (ac_try="$ac_link"
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4452 (eval "$ac_link") 2>&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4456 { (case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461 (eval "$ac_try") 2>&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; }; then
4467 echo "$as_me: program exited with status $ac_status" >&5
4468 echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4472 ac_cv_header_stdc=no
4474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4480 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4481 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4482 if test $ac_cv_header_stdc = yes; then
4484 cat >>confdefs.h <<\_ACEOF
4485 #define STDC_HEADERS 1
4490 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4500 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4501 inttypes.h stdint.h unistd.h
4503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 cat >conftest.$ac_ext <<_ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 $ac_includes_default
4517 #include <$ac_header>
4519 rm -rf conftest.$ac_objext
4520 if { (ac_try="$ac_compile"
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4526 (eval "$ac_compile") 2>conftest.er1
4528 grep -v '^ *+' conftest.er1 >conftest.err
4530 cat conftest.err >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } && {
4533 test -z "$ac_c_werror_flag" ||
4534 test ! -s conftest.err
4535 } && test -s conftest.$ac_objext; then
4536 eval "$as_ac_Header=yes"
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4541 eval "$as_ac_Header=no"
4544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 ac_res=`eval echo '${'$as_ac_Header'}'`
4547 { echo "$as_me:$LINENO: result: $ac_res" >&5
4548 echo "${ECHO_T}$ac_res" >&6; }
4549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4550 cat >>confdefs.h <<_ACEOF
4551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4560 for ac_header in unistd.h
4562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 ac_res=`eval echo '${'$as_ac_Header'}'`
4570 { echo "$as_me:$LINENO: result: $ac_res" >&5
4571 echo "${ECHO_T}$ac_res" >&6; }
4573 # Is the header compilable?
4574 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4575 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4576 cat >conftest.$ac_ext <<_ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 $ac_includes_default
4583 #include <$ac_header>
4585 rm -rf conftest.$ac_objext
4586 if { (ac_try="$ac_compile"
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592 (eval "$ac_compile") 2>conftest.er1
4594 grep -v '^ *+' conftest.er1 >conftest.err
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } && {
4599 test -z "$ac_c_werror_flag" ||
4600 test ! -s conftest.err
4601 } && test -s conftest.$ac_objext; then
4602 ac_header_compiler=yes
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4607 ac_header_compiler=no
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4612 echo "${ECHO_T}$ac_header_compiler" >&6; }
4614 # Is the header present?
4615 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4617 cat >conftest.$ac_ext <<_ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4623 #include <$ac_header>
4625 if { (ac_try="$ac_cpp conftest.$ac_ext"
4627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4628 *) ac_try_echo=$ac_try;;
4630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4633 grep -v '^ *+' conftest.er1 >conftest.err
4635 cat conftest.err >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } >/dev/null && {
4638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4639 test ! -s conftest.err
4641 ac_header_preproc=yes
4643 echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4646 ac_header_preproc=no
4649 rm -rf conftest.err conftest.$ac_ext
4650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4651 echo "${ECHO_T}$ac_header_preproc" >&6; }
4653 # So? What about this header?
4654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4660 ac_header_preproc=yes
4663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4666 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4670 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 eval "$as_ac_Header=\$ac_header_preproc"
4685 ac_res=`eval echo '${'$as_ac_Header'}'`
4686 { echo "$as_me:$LINENO: result: $ac_res" >&5
4687 echo "${ECHO_T}$ac_res" >&6; }
4690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4691 cat >>confdefs.h <<_ACEOF
4692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4699 { echo "$as_me:$LINENO: checking for mode_t" >&5
4700 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
4701 if test "${ac_cv_type_mode_t+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 cat >conftest.$ac_ext <<_ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4710 $ac_includes_default
4711 typedef mode_t ac__type_new_;
4715 if ((ac__type_new_ *) 0)
4717 if (sizeof (ac__type_new_))
4723 rm -rf conftest.$ac_objext
4724 if { (ac_try="$ac_compile"
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_compile") 2>conftest.er1
4732 grep -v '^ *+' conftest.er1 >conftest.err
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } && {
4737 test -z "$ac_c_werror_flag" ||
4738 test ! -s conftest.err
4739 } && test -s conftest.$ac_objext; then
4740 ac_cv_type_mode_t=yes
4742 echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4745 ac_cv_type_mode_t=no
4748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4750 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4751 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
4752 if test $ac_cv_type_mode_t = yes; then
4756 cat >>confdefs.h <<_ACEOF
4762 { echo "$as_me:$LINENO: checking for pid_t" >&5
4763 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
4764 if test "${ac_cv_type_pid_t+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 cat >conftest.$ac_ext <<_ACEOF
4770 cat confdefs.h >>conftest.$ac_ext
4771 cat >>conftest.$ac_ext <<_ACEOF
4772 /* end confdefs.h. */
4773 $ac_includes_default
4774 typedef pid_t ac__type_new_;
4778 if ((ac__type_new_ *) 0)
4780 if (sizeof (ac__type_new_))
4786 rm -rf conftest.$ac_objext
4787 if { (ac_try="$ac_compile"
4789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790 *) ac_try_echo=$ac_try;;
4792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4793 (eval "$ac_compile") 2>conftest.er1
4795 grep -v '^ *+' conftest.er1 >conftest.err
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } && {
4800 test -z "$ac_c_werror_flag" ||
4801 test ! -s conftest.err
4802 } && test -s conftest.$ac_objext; then
4803 ac_cv_type_pid_t=yes
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4814 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
4815 if test $ac_cv_type_pid_t = yes; then
4819 cat >>confdefs.h <<_ACEOF
4825 { echo "$as_me:$LINENO: checking for size_t" >&5
4826 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4827 if test "${ac_cv_type_size_t+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 cat >conftest.$ac_ext <<_ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4836 $ac_includes_default
4837 typedef size_t ac__type_new_;
4841 if ((ac__type_new_ *) 0)
4843 if (sizeof (ac__type_new_))
4849 rm -rf conftest.$ac_objext
4850 if { (ac_try="$ac_compile"
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4856 (eval "$ac_compile") 2>conftest.er1
4858 grep -v '^ *+' conftest.er1 >conftest.err
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } && {
4863 test -z "$ac_c_werror_flag" ||
4864 test ! -s conftest.err
4865 } && test -s conftest.$ac_objext; then
4866 ac_cv_type_size_t=yes
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4871 ac_cv_type_size_t=no
4874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4876 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4877 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4878 if test $ac_cv_type_size_t = yes; then
4882 cat >>confdefs.h <<_ACEOF
4883 #define size_t unsigned int
4888 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4889 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
4890 if test "${ac_cv_type_signal+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 cat >conftest.$ac_ext <<_ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h. */
4899 #include <sys/types.h>
4905 return *(signal (0, 0)) (0) == 1;
4910 rm -rf conftest.$ac_objext
4911 if { (ac_try="$ac_compile"
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917 (eval "$ac_compile") 2>conftest.er1
4919 grep -v '^ *+' conftest.er1 >conftest.err
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } && {
4924 test -z "$ac_c_werror_flag" ||
4925 test ! -s conftest.err
4926 } && test -s conftest.$ac_objext; then
4927 ac_cv_type_signal=int
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4932 ac_cv_type_signal=void
4935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4937 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4938 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
4940 cat >>confdefs.h <<_ACEOF
4941 #define RETSIGTYPE $ac_cv_type_signal
4945 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4946 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4947 if test "${ac_cv_header_time+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 cat >conftest.$ac_ext <<_ACEOF
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4956 #include <sys/types.h>
4957 #include <sys/time.h>
4963 if ((struct tm *) 0)
4969 rm -rf conftest.$ac_objext
4970 if { (ac_try="$ac_compile"
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4976 (eval "$ac_compile") 2>conftest.er1
4978 grep -v '^ *+' conftest.er1 >conftest.err
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } && {
4983 test -z "$ac_c_werror_flag" ||
4984 test ! -s conftest.err
4985 } && test -s conftest.$ac_objext; then
4986 ac_cv_header_time=yes
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4991 ac_cv_header_time=no
4994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4996 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4997 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4998 if test $ac_cv_header_time = yes; then
5000 cat >>confdefs.h <<\_ACEOF
5001 #define TIME_WITH_SYS_TIME 1
5006 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5007 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
5008 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 cat >conftest.$ac_ext <<_ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5017 #include <sys/types.h>
5018 #include <sys/wait.h>
5020 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5023 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5031 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5036 rm -rf conftest.$ac_objext
5037 if { (ac_try="$ac_compile"
5039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040 *) ac_try_echo=$ac_try;;
5042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5043 (eval "$ac_compile") 2>conftest.er1
5045 grep -v '^ *+' conftest.er1 >conftest.err
5047 cat conftest.err >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } && {
5050 test -z "$ac_c_werror_flag" ||
5051 test ! -s conftest.err
5052 } && test -s conftest.$ac_objext; then
5053 ac_cv_header_sys_wait_h=yes
5055 echo "$as_me: failed program was:" >&5
5056 sed 's/^/| /' conftest.$ac_ext >&5
5058 ac_cv_header_sys_wait_h=no
5061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5063 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5064 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
5065 if test $ac_cv_header_sys_wait_h = yes; then
5067 cat >>confdefs.h <<\_ACEOF
5068 #define HAVE_SYS_WAIT_H 1
5079 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5080 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5081 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5082 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 cat >conftest.$ac_ext <<_ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 #include <sys/types.h>
5104 rm -rf conftest.$ac_objext
5105 if { (ac_try="$ac_compile"
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111 (eval "$ac_compile") 2>conftest.er1
5113 grep -v '^ *+' conftest.er1 >conftest.err
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } && {
5118 test -z "$ac_c_werror_flag" ||
5119 test ! -s conftest.err
5120 } && test -s conftest.$ac_objext; then
5121 eval "$as_ac_Header=yes"
5123 echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5126 eval "$as_ac_Header=no"
5129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5131 ac_res=`eval echo '${'$as_ac_Header'}'`
5132 { echo "$as_me:$LINENO: result: $ac_res" >&5
5133 echo "${ECHO_T}$ac_res" >&6; }
5134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5135 cat >>confdefs.h <<_ACEOF
5136 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5139 ac_header_dirent=$ac_hdr; break
5143 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5144 if test $ac_header_dirent = dirent.h; then
5145 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5146 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5147 if test "${ac_cv_search_opendir+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 ac_func_search_save_LIBS=$LIBS
5151 cat >conftest.$ac_ext <<_ACEOF
5154 cat confdefs.h >>conftest.$ac_ext
5155 cat >>conftest.$ac_ext <<_ACEOF
5156 /* end confdefs.h. */
5158 /* Override any GCC internal prototype to avoid an error.
5159 Use char because int might match the return type of a GCC
5160 builtin and then its argument prototype would still apply. */
5173 for ac_lib in '' dir; do
5174 if test -z "$ac_lib"; then
5175 ac_res="none required"
5178 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5180 rm -rf conftest.$ac_objext conftest$ac_exeext
5181 if { (ac_try="$ac_link"
5183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5184 *) ac_try_echo=$ac_try;;
5186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5187 (eval "$ac_link") 2>conftest.er1
5189 grep -v '^ *+' conftest.er1 >conftest.err
5191 cat conftest.err >&5
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); } && {
5194 test -z "$ac_c_werror_flag" ||
5195 test ! -s conftest.err
5196 } && test -s conftest$ac_exeext &&
5197 $as_test_x conftest$ac_exeext; then
5198 ac_cv_search_opendir=$ac_res
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5208 if test "${ac_cv_search_opendir+set}" = set; then
5212 if test "${ac_cv_search_opendir+set}" = set; then
5215 ac_cv_search_opendir=no
5218 LIBS=$ac_func_search_save_LIBS
5220 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5221 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5222 ac_res=$ac_cv_search_opendir
5223 if test "$ac_res" != no; then
5224 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5229 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5230 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5231 if test "${ac_cv_search_opendir+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 ac_func_search_save_LIBS=$LIBS
5235 cat >conftest.$ac_ext <<_ACEOF
5238 cat confdefs.h >>conftest.$ac_ext
5239 cat >>conftest.$ac_ext <<_ACEOF
5240 /* end confdefs.h. */
5242 /* Override any GCC internal prototype to avoid an error.
5243 Use char because int might match the return type of a GCC
5244 builtin and then its argument prototype would still apply. */
5257 for ac_lib in '' x; do
5258 if test -z "$ac_lib"; then
5259 ac_res="none required"
5262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5264 rm -rf conftest.$ac_objext conftest$ac_exeext
5265 if { (ac_try="$ac_link"
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_link") 2>conftest.er1
5273 grep -v '^ *+' conftest.er1 >conftest.err
5275 cat conftest.err >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } && {
5278 test -z "$ac_c_werror_flag" ||
5279 test ! -s conftest.err
5280 } && test -s conftest$ac_exeext &&
5281 $as_test_x conftest$ac_exeext; then
5282 ac_cv_search_opendir=$ac_res
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5292 if test "${ac_cv_search_opendir+set}" = set; then
5296 if test "${ac_cv_search_opendir+set}" = set; then
5299 ac_cv_search_opendir=no
5302 LIBS=$ac_func_search_save_LIBS
5304 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5305 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5306 ac_res=$ac_cv_search_opendir
5307 if test "$ac_res" != no; then
5308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5314 { echo "$as_me:$LINENO: checking how to call gettimeofday" >&5
5315 echo $ECHO_N "checking how to call gettimeofday... $ECHO_C" >&6; }
5316 if test "${ac_cv_gettimeofday_args+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 cat >conftest.$ac_ext <<_ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5326 #include <sys/time.h>
5330 struct timeval tv; struct timezone tzp;
5331 gettimeofday(&tv, &tzp);
5336 rm -rf conftest.$ac_objext
5337 if { (ac_try="$ac_compile"
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_compile") 2>conftest.er1
5345 grep -v '^ *+' conftest.er1 >conftest.err
5347 cat conftest.err >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } && {
5350 test -z "$ac_c_werror_flag" ||
5351 test ! -s conftest.err
5352 } && test -s conftest.$ac_objext; then
5353 ac_gettimeofday_args=2
5355 echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5358 cat >conftest.$ac_ext <<_ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5365 #include <sys/time.h>
5369 struct timeval tv; gettimeofday(&tv);
5374 rm -rf conftest.$ac_objext
5375 if { (ac_try="$ac_compile"
5377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378 *) ac_try_echo=$ac_try;;
5380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5381 (eval "$ac_compile") 2>conftest.er1
5383 grep -v '^ *+' conftest.er1 >conftest.err
5385 cat conftest.err >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } && {
5388 test -z "$ac_c_werror_flag" ||
5389 test ! -s conftest.err
5390 } && test -s conftest.$ac_objext; then
5391 ac_gettimeofday_args=1
5393 echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5396 ac_gettimeofday_args=0
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403 ac_cv_gettimeofday_args=$ac_gettimeofday_args
5406 ac_gettimeofday_args=$ac_cv_gettimeofday_args
5407 if test "$ac_gettimeofday_args" = 1 ; then
5408 cat >>confdefs.h <<\_ACEOF
5409 #define HAVE_GETTIMEOFDAY 1
5412 { echo "$as_me:$LINENO: result: one argument" >&5
5413 echo "${ECHO_T}one argument" >&6; }
5414 elif test "$ac_gettimeofday_args" = 2 ; then
5415 cat >>confdefs.h <<\_ACEOF
5416 #define HAVE_GETTIMEOFDAY 1
5419 cat >>confdefs.h <<\_ACEOF
5420 #define GETTIMEOFDAY_TWO_ARGS 1
5423 { echo "$as_me:$LINENO: result: two arguments" >&5
5424 echo "${ECHO_T}two arguments" >&6; }
5426 { echo "$as_me:$LINENO: result: unknown" >&5
5427 echo "${ECHO_T}unknown" >&6; }
5439 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv sbrk
5441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5442 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 cat >conftest.$ac_ext <<_ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5455 #define $ac_func innocuous_$ac_func
5457 /* System header to define __stub macros and hopefully few prototypes,
5458 which can conflict with char $ac_func (); below.
5459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5460 <limits.h> exists even on freestanding compilers. */
5463 # include <limits.h>
5465 # include <assert.h>
5470 /* Override any GCC internal prototype to avoid an error.
5471 Use char because int might match the return type of a GCC
5472 builtin and then its argument prototype would still apply. */
5477 /* The GNU C library defines this for functions which it implements
5478 to always fail with ENOSYS. Some functions are actually named
5479 something starting with __ and the normal name is an alias. */
5480 #if defined __stub_$ac_func || defined __stub___$ac_func
5492 rm -rf conftest.$ac_objext conftest$ac_exeext
5493 if { (ac_try="$ac_link"
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_link") 2>conftest.er1
5501 grep -v '^ *+' conftest.er1 >conftest.err
5503 cat conftest.err >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } && {
5506 test -z "$ac_c_werror_flag" ||
5507 test ! -s conftest.err
5508 } && test -s conftest$ac_exeext &&
5509 $as_test_x conftest$ac_exeext; then
5510 eval "$as_ac_var=yes"
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5515 eval "$as_ac_var=no"
5518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5519 conftest$ac_exeext conftest.$ac_ext
5521 ac_res=`eval echo '${'$as_ac_var'}'`
5522 { echo "$as_me:$LINENO: result: $ac_res" >&5
5523 echo "${ECHO_T}$ac_res" >&6; }
5524 if test `eval echo '${'$as_ac_var'}'` = yes; then
5525 cat >>confdefs.h <<_ACEOF
5526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5536 for ac_func in sigaction syslog realpath setrlimit
5538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 cat >conftest.$ac_ext <<_ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h. */
5550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5552 #define $ac_func innocuous_$ac_func
5554 /* System header to define __stub macros and hopefully few prototypes,
5555 which can conflict with char $ac_func (); below.
5556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5557 <limits.h> exists even on freestanding compilers. */
5560 # include <limits.h>
5562 # include <assert.h>
5567 /* Override any GCC internal prototype to avoid an error.
5568 Use char because int might match the return type of a GCC
5569 builtin and then its argument prototype would still apply. */
5574 /* The GNU C library defines this for functions which it implements
5575 to always fail with ENOSYS. Some functions are actually named
5576 something starting with __ and the normal name is an alias. */
5577 #if defined __stub_$ac_func || defined __stub___$ac_func
5589 rm -rf conftest.$ac_objext conftest$ac_exeext
5590 if { (ac_try="$ac_link"
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_link") 2>conftest.er1
5598 grep -v '^ *+' conftest.er1 >conftest.err
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } && {
5603 test -z "$ac_c_werror_flag" ||
5604 test ! -s conftest.err
5605 } && test -s conftest$ac_exeext &&
5606 $as_test_x conftest$ac_exeext; then
5607 eval "$as_ac_var=yes"
5609 echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5612 eval "$as_ac_var=no"
5615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5616 conftest$ac_exeext conftest.$ac_ext
5618 ac_res=`eval echo '${'$as_ac_var'}'`
5619 { echo "$as_me:$LINENO: result: $ac_res" >&5
5620 echo "${ECHO_T}$ac_res" >&6; }
5621 if test `eval echo '${'$as_ac_var'}'` = yes; then
5622 cat >>confdefs.h <<_ACEOF
5623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5630 for ac_func in setlocale
5632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5633 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5635 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 cat >conftest.$ac_ext <<_ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5646 #define $ac_func innocuous_$ac_func
5648 /* System header to define __stub macros and hopefully few prototypes,
5649 which can conflict with char $ac_func (); below.
5650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5651 <limits.h> exists even on freestanding compilers. */
5654 # include <limits.h>
5656 # include <assert.h>
5661 /* Override any GCC internal prototype to avoid an error.
5662 Use char because int might match the return type of a GCC
5663 builtin and then its argument prototype would still apply. */
5668 /* The GNU C library defines this for functions which it implements
5669 to always fail with ENOSYS. Some functions are actually named
5670 something starting with __ and the normal name is an alias. */
5671 #if defined __stub_$ac_func || defined __stub___$ac_func
5683 rm -rf conftest.$ac_objext conftest$ac_exeext
5684 if { (ac_try="$ac_link"
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_link") 2>conftest.er1
5692 grep -v '^ *+' conftest.er1 >conftest.err
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && {
5697 test -z "$ac_c_werror_flag" ||
5698 test ! -s conftest.err
5699 } && test -s conftest$ac_exeext &&
5700 $as_test_x conftest$ac_exeext; then
5701 eval "$as_ac_var=yes"
5703 echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5706 eval "$as_ac_var=no"
5709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5710 conftest$ac_exeext conftest.$ac_ext
5712 ac_res=`eval echo '${'$as_ac_var'}'`
5713 { echo "$as_me:$LINENO: result: $ac_res" >&5
5714 echo "${ECHO_T}$ac_res" >&6; }
5715 if test `eval echo '${'$as_ac_var'}'` = yes; then
5716 cat >>confdefs.h <<_ACEOF
5717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5723 { echo "$as_me:$LINENO: checking for struct icmp" >&5
5724 echo $ECHO_N "checking for struct icmp... $ECHO_C" >&6; }
5725 if test "${ac_cv_have_icmp+set}" = set; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 cat >conftest.$ac_ext <<_ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5741 #include <sys/types.h>
5742 #include <sys/time.h>
5743 #include <sys/ipc.h>
5744 #include <sys/shm.h>
5745 #include <sys/socket.h>
5746 #include <netinet/in_systm.h>
5747 #include <netinet/in.h>
5748 #include <netinet/ip.h>
5749 #include <netinet/ip_icmp.h>
5750 #include <netinet/udp.h>
5751 #include <arpa/inet.h>
5758 struct sockaddr_in si;
5760 i.icmp_type = ICMP_ECHO;
5765 si.sin_family = AF_INET;
5766 #if defined(__DECC) || defined(_IP_VHL)
5776 rm -rf conftest.$ac_objext
5777 if { (ac_try="$ac_compile"
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783 (eval "$ac_compile") 2>conftest.er1
5785 grep -v '^ *+' conftest.er1 >conftest.err
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } && {
5790 test -z "$ac_c_werror_flag" ||
5791 test ! -s conftest.err
5792 } && test -s conftest.$ac_objext; then
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803 { echo "$as_me:$LINENO: result: $ac_cv_have_icmp" >&5
5804 echo "${ECHO_T}$ac_cv_have_icmp" >&6; }
5805 if test "$ac_cv_have_icmp" = yes ; then
5806 cat >>confdefs.h <<\_ACEOF
5811 { echo "$as_me:$LINENO: checking for struct icmphdr" >&5
5812 echo $ECHO_N "checking for struct icmphdr... $ECHO_C" >&6; }
5813 if test "${ac_cv_have_icmphdr+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 cat >conftest.$ac_ext <<_ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5829 #include <sys/types.h>
5830 #include <sys/time.h>
5831 #include <sys/ipc.h>
5832 #include <sys/shm.h>
5833 #include <sys/socket.h>
5834 #include <netinet/in_systm.h>
5835 #include <netinet/in.h>
5836 #include <netinet/ip.h>
5837 #include <netinet/ip_icmp.h>
5838 #include <netinet/udp.h>
5839 #include <arpa/inet.h>
5846 struct sockaddr_in si;
5852 i.un.echo.sequence = 0;
5853 si.sin_family = AF_INET;
5859 rm -rf conftest.$ac_objext
5860 if { (ac_try="$ac_compile"
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_compile") 2>conftest.er1
5868 grep -v '^ *+' conftest.er1 >conftest.err
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } && {
5873 test -z "$ac_c_werror_flag" ||
5874 test ! -s conftest.err
5875 } && test -s conftest.$ac_objext; then
5876 ac_cv_have_icmphdr=yes
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5881 ac_cv_have_icmphdr=no
5884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886 { echo "$as_me:$LINENO: result: $ac_cv_have_icmphdr" >&5
5887 echo "${ECHO_T}$ac_cv_have_icmphdr" >&6; }
5888 if test "$ac_cv_have_icmphdr" = yes ; then
5889 cat >>confdefs.h <<\_ACEOF
5890 #define HAVE_ICMPHDR 1
5896 for ac_header in crypt.h sys/select.h
5898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 ac_res=`eval echo '${'$as_ac_Header'}'`
5906 { echo "$as_me:$LINENO: result: $ac_res" >&5
5907 echo "${ECHO_T}$ac_res" >&6; }
5909 # Is the header compilable?
5910 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5912 cat >conftest.$ac_ext <<_ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 $ac_includes_default
5919 #include <$ac_header>
5921 rm -rf conftest.$ac_objext
5922 if { (ac_try="$ac_compile"
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_compile") 2>conftest.er1
5930 grep -v '^ *+' conftest.er1 >conftest.err
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } && {
5935 test -z "$ac_c_werror_flag" ||
5936 test ! -s conftest.err
5937 } && test -s conftest.$ac_objext; then
5938 ac_header_compiler=yes
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5943 ac_header_compiler=no
5946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5948 echo "${ECHO_T}$ac_header_compiler" >&6; }
5950 # Is the header present?
5951 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5953 cat >conftest.$ac_ext <<_ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 #include <$ac_header>
5961 if { (ac_try="$ac_cpp conftest.$ac_ext"
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5969 grep -v '^ *+' conftest.er1 >conftest.err
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } >/dev/null && {
5974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5975 test ! -s conftest.err
5977 ac_header_preproc=yes
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5982 ac_header_preproc=no
5985 rm -rf conftest.err conftest.$ac_ext
5986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5987 echo "${ECHO_T}$ac_header_preproc" >&6; }
5989 # So? What about this header?
5990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5996 ac_header_preproc=yes
5999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6019 eval "$as_ac_Header=\$ac_header_preproc"
6021 ac_res=`eval echo '${'$as_ac_Header'}'`
6022 { echo "$as_me:$LINENO: result: $ac_res" >&5
6023 echo "${ECHO_T}$ac_res" >&6; }
6026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6027 cat >>confdefs.h <<_ACEOF
6028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6035 for ac_prog in perl5 perl
6037 # Extract the first word of "$ac_prog", so it can be a program name with args.
6038 set dummy $ac_prog; ac_word=$2
6039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6041 if test "${ac_cv_path_PERL+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 PERL=$ac_cv_path_PERL
6068 if test -n "$PERL"; then
6069 { echo "$as_me:$LINENO: result: $PERL" >&5
6070 echo "${ECHO_T}$PERL" >&6; }
6072 { echo "$as_me:$LINENO: result: no" >&5
6073 echo "${ECHO_T}no" >&6; }
6077 test -n "$PERL" && break
6080 if test -z "$PERL" ; then
6083 { echo "$as_me:$LINENO: checking perl version" >&5
6084 echo $ECHO_N "checking perl version... $ECHO_C" >&6; }
6085 if test "${ac_cv_perl_version+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 ac_cv_perl_version=`$PERL -e "$perl_version_cmd"`
6090 { echo "$as_me:$LINENO: result: $ac_cv_perl_version" >&5
6091 echo "${ECHO_T}$ac_cv_perl_version" >&6; }
6092 PERL_VERSION=$ac_cv_perl_version
6096 if test -z "$PERL" ; then
6097 # don't let it be blank...
6101 { echo "$as_me:$LINENO: checking for X" >&5
6102 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
6105 # Check whether --with-x was given.
6106 if test "${with_x+set}" = set; then
6110 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6111 if test "x$with_x" = xno; then
6112 # The user explicitly disabled X.
6115 case $x_includes,$x_libraries in #(
6116 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6117 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6118 { (exit 1); exit 1; }; };; #(
6119 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 # One or both of the vars are not set, and there is no cached value.
6123 ac_x_includes=no ac_x_libraries=no
6124 rm -f -r conftest.dir
6125 if mkdir conftest.dir; then
6127 cat >Imakefile <<'_ACEOF'
6129 @echo incroot='${INCROOT}'
6131 @echo usrlibdir='${USRLIBDIR}'
6133 @echo libdir='${LIBDIR}'
6135 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6136 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6137 for ac_var in incroot usrlibdir libdir; do
6138 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6140 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6141 for ac_extension in a so sl; do
6142 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6143 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6144 ac_im_usrlibdir=$ac_im_libdir; break
6147 # Screen out bogus values from the imake configuration. They are
6148 # bogus both because they are the default anyway, and because
6149 # using them would break gcc on systems where it needs fixed includes.
6150 case $ac_im_incroot in
6151 /usr/include) ac_x_includes= ;;
6152 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6154 case $ac_im_usrlibdir in
6156 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6160 rm -f -r conftest.dir
6163 # Standard set of common directories for X headers.
6164 # Check X11 before X11Rn because it is often a symlink to the current release.
6176 /usr/local/X11/include
6177 /usr/local/X11R6/include
6178 /usr/local/X11R5/include
6179 /usr/local/X11R4/include
6181 /usr/local/include/X11
6182 /usr/local/include/X11R6
6183 /usr/local/include/X11R5
6184 /usr/local/include/X11R4
6188 /usr/XFree86/include/X11
6192 /usr/unsupported/include
6194 /usr/local/x11r5/include
6195 /usr/lpp/Xamples/include
6197 /usr/openwin/include
6198 /usr/openwin/share/include'
6200 if test "$ac_x_includes" = no; then
6201 # Guess where to find include files, by looking for Xlib.h.
6202 # First, try using that file with no special directory specified.
6203 cat >conftest.$ac_ext <<_ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6209 #include <X11/Xlib.h>
6211 if { (ac_try="$ac_cpp conftest.$ac_ext"
6213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214 *) ac_try_echo=$ac_try;;
6216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6219 grep -v '^ *+' conftest.er1 >conftest.err
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } >/dev/null && {
6224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6225 test ! -s conftest.err
6227 # We can compile using X headers with no special include directory.
6230 echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6233 for ac_dir in $ac_x_header_dirs; do
6234 if test -r "$ac_dir/X11/Xlib.h"; then
6235 ac_x_includes=$ac_dir
6241 rm -rf conftest.err conftest.$ac_ext
6242 fi # $ac_x_includes = no
6244 if test "$ac_x_libraries" = no; then
6245 # Check for the libraries.
6246 # See if we find them without any special options.
6247 # Don't add to $LIBS permanently.
6250 cat >conftest.$ac_ext <<_ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h. */
6256 #include <X11/Xlib.h>
6265 rm -rf conftest.$ac_objext conftest$ac_exeext
6266 if { (ac_try="$ac_link"
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_link") 2>conftest.er1
6274 grep -v '^ *+' conftest.er1 >conftest.err
6276 cat conftest.err >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } && {
6279 test -z "$ac_c_werror_flag" ||
6280 test ! -s conftest.err
6281 } && test -s conftest$ac_exeext &&
6282 $as_test_x conftest$ac_exeext; then
6284 # We can link X programs with no special library path.
6287 echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6291 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6293 # Don't even attempt the hair of trying to link an X program!
6294 for ac_extension in a so sl; do
6295 if test -r "$ac_dir/libX11.$ac_extension"; then
6296 ac_x_libraries=$ac_dir
6303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6304 conftest$ac_exeext conftest.$ac_ext
6305 fi # $ac_x_libraries = no
6307 case $ac_x_includes,$ac_x_libraries in #(
6309 # Didn't find X, or a directory has "'" in its name.
6310 ac_cv_have_x="have_x=no";; #(
6312 # Record where we found X for the cache.
6313 ac_cv_have_x="have_x=yes\
6314 ac_x_includes='$ac_x_includes'\
6315 ac_x_libraries='$ac_x_libraries'"
6321 eval "$ac_cv_have_x"
6324 if test "$have_x" != yes; then
6325 { echo "$as_me:$LINENO: result: $have_x" >&5
6326 echo "${ECHO_T}$have_x" >&6; }
6329 # If each of the values was on the command line, it overrides each guess.
6330 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6331 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6332 # Update the cache value to reflect the command line values.
6333 ac_cv_have_x="have_x=yes\
6334 ac_x_includes='$x_includes'\
6335 ac_x_libraries='$x_libraries'"
6336 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6337 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
6340 if test "$no_x" = yes; then
6341 # Not all programs may use this symbol, but it does not hurt to define it.
6343 cat >>confdefs.h <<\_ACEOF
6344 #define X_DISPLAY_MISSING 1
6347 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6349 if test -n "$x_includes"; then
6350 X_CFLAGS="$X_CFLAGS -I$x_includes"
6353 # It would also be nice to do this for all -L options, not just this one.
6354 if test -n "$x_libraries"; then
6355 X_LIBS="$X_LIBS -L$x_libraries"
6356 # For Solaris; some versions of Sun CC require a space after -R and
6357 # others require no space. Words are not sufficient . . . .
6358 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6359 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
6360 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6361 ac_xsave_c_werror_flag=$ac_c_werror_flag
6362 ac_c_werror_flag=yes
6363 cat >conftest.$ac_ext <<_ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6378 rm -rf conftest.$ac_objext conftest$ac_exeext
6379 if { (ac_try="$ac_link"
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385 (eval "$ac_link") 2>conftest.er1
6387 grep -v '^ *+' conftest.er1 >conftest.err
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } && {
6392 test -z "$ac_c_werror_flag" ||
6393 test ! -s conftest.err
6394 } && test -s conftest$ac_exeext &&
6395 $as_test_x conftest$ac_exeext; then
6396 { echo "$as_me:$LINENO: result: no" >&5
6397 echo "${ECHO_T}no" >&6; }
6398 X_LIBS="$X_LIBS -R$x_libraries"
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6403 LIBS="$ac_xsave_LIBS -R $x_libraries"
6404 cat >conftest.$ac_ext <<_ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6419 rm -rf conftest.$ac_objext conftest$ac_exeext
6420 if { (ac_try="$ac_link"
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_link") 2>conftest.er1
6428 grep -v '^ *+' conftest.er1 >conftest.err
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && {
6433 test -z "$ac_c_werror_flag" ||
6434 test ! -s conftest.err
6435 } && test -s conftest$ac_exeext &&
6436 $as_test_x conftest$ac_exeext; then
6437 { echo "$as_me:$LINENO: result: yes" >&5
6438 echo "${ECHO_T}yes" >&6; }
6439 X_LIBS="$X_LIBS -R $x_libraries"
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6444 { echo "$as_me:$LINENO: result: neither works" >&5
6445 echo "${ECHO_T}neither works" >&6; }
6448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6449 conftest$ac_exeext conftest.$ac_ext
6452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6453 conftest$ac_exeext conftest.$ac_ext
6454 ac_c_werror_flag=$ac_xsave_c_werror_flag
6458 # Check for system-dependent libraries X programs must link with.
6459 # Do this before checking for the system-independent R6 libraries
6460 # (-lICE), since we may need -lsocket or whatever for X linking.
6462 if test "$ISC" = yes; then
6463 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6465 # Martyn Johnson says this is needed for Ultrix, if the X
6466 # libraries were built with DECnet support. And Karl Berry says
6467 # the Alpha needs dnet_stub (dnet does not exist).
6468 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6469 cat >conftest.$ac_ext <<_ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6476 /* Override any GCC internal prototype to avoid an error.
6477 Use char because int might match the return type of a GCC
6478 builtin and then its argument prototype would still apply. */
6482 char XOpenDisplay ();
6486 return XOpenDisplay ();
6491 rm -rf conftest.$ac_objext conftest$ac_exeext
6492 if { (ac_try="$ac_link"
6494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498 (eval "$ac_link") 2>conftest.er1
6500 grep -v '^ *+' conftest.er1 >conftest.err
6502 cat conftest.err >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } && {
6505 test -z "$ac_c_werror_flag" ||
6506 test ! -s conftest.err
6507 } && test -s conftest$ac_exeext &&
6508 $as_test_x conftest$ac_exeext; then
6511 echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.$ac_ext >&5
6514 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6515 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
6516 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 ac_check_lib_save_LIBS=$LIBS
6521 cat >conftest.$ac_ext <<_ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6528 /* Override any GCC internal prototype to avoid an error.
6529 Use char because int might match the return type of a GCC
6530 builtin and then its argument prototype would still apply. */
6538 return dnet_ntoa ();
6543 rm -rf conftest.$ac_objext conftest$ac_exeext
6544 if { (ac_try="$ac_link"
6546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6547 *) ac_try_echo=$ac_try;;
6549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550 (eval "$ac_link") 2>conftest.er1
6552 grep -v '^ *+' conftest.er1 >conftest.err
6554 cat conftest.err >&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } && {
6557 test -z "$ac_c_werror_flag" ||
6558 test ! -s conftest.err
6559 } && test -s conftest$ac_exeext &&
6560 $as_test_x conftest$ac_exeext; then
6561 ac_cv_lib_dnet_dnet_ntoa=yes
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6566 ac_cv_lib_dnet_dnet_ntoa=no
6569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6570 conftest$ac_exeext conftest.$ac_ext
6571 LIBS=$ac_check_lib_save_LIBS
6573 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6574 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6575 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6576 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6579 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6580 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6581 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
6582 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 ac_check_lib_save_LIBS=$LIBS
6586 LIBS="-ldnet_stub $LIBS"
6587 cat >conftest.$ac_ext <<_ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6594 /* Override any GCC internal prototype to avoid an error.
6595 Use char because int might match the return type of a GCC
6596 builtin and then its argument prototype would still apply. */
6604 return dnet_ntoa ();
6609 rm -rf conftest.$ac_objext conftest$ac_exeext
6610 if { (ac_try="$ac_link"
6612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6613 *) ac_try_echo=$ac_try;;
6615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6616 (eval "$ac_link") 2>conftest.er1
6618 grep -v '^ *+' conftest.er1 >conftest.err
6620 cat conftest.err >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } && {
6623 test -z "$ac_c_werror_flag" ||
6624 test ! -s conftest.err
6625 } && test -s conftest$ac_exeext &&
6626 $as_test_x conftest$ac_exeext; then
6627 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6629 echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6632 ac_cv_lib_dnet_stub_dnet_ntoa=no
6635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6636 conftest$ac_exeext conftest.$ac_ext
6637 LIBS=$ac_check_lib_save_LIBS
6639 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6640 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6641 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6642 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6649 conftest$ac_exeext conftest.$ac_ext
6650 LIBS="$ac_xsave_LIBS"
6652 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6653 # to get the SysV transport functions.
6654 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6656 # The nsl library prevents programs from opening the X display
6657 # on Irix 5.2, according to T.E. Dickey.
6658 # The functions gethostbyname, getservbyname, and inet_addr are
6659 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6660 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
6661 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
6662 if test "${ac_cv_func_gethostbyname+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 cat >conftest.$ac_ext <<_ACEOF
6668 cat confdefs.h >>conftest.$ac_ext
6669 cat >>conftest.$ac_ext <<_ACEOF
6670 /* end confdefs.h. */
6671 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6673 #define gethostbyname innocuous_gethostbyname
6675 /* System header to define __stub macros and hopefully few prototypes,
6676 which can conflict with char gethostbyname (); below.
6677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6678 <limits.h> exists even on freestanding compilers. */
6681 # include <limits.h>
6683 # include <assert.h>
6686 #undef gethostbyname
6688 /* Override any GCC internal prototype to avoid an error.
6689 Use char because int might match the return type of a GCC
6690 builtin and then its argument prototype would still apply. */
6694 char gethostbyname ();
6695 /* The GNU C library defines this for functions which it implements
6696 to always fail with ENOSYS. Some functions are actually named
6697 something starting with __ and the normal name is an alias. */
6698 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6705 return gethostbyname ();
6710 rm -rf conftest.$ac_objext conftest$ac_exeext
6711 if { (ac_try="$ac_link"
6713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6714 *) ac_try_echo=$ac_try;;
6716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6717 (eval "$ac_link") 2>conftest.er1
6719 grep -v '^ *+' conftest.er1 >conftest.err
6721 cat conftest.err >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } && {
6724 test -z "$ac_c_werror_flag" ||
6725 test ! -s conftest.err
6726 } && test -s conftest$ac_exeext &&
6727 $as_test_x conftest$ac_exeext; then
6728 ac_cv_func_gethostbyname=yes
6730 echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6733 ac_cv_func_gethostbyname=no
6736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6737 conftest$ac_exeext conftest.$ac_ext
6739 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6740 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6742 if test $ac_cv_func_gethostbyname = no; then
6743 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6744 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6745 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6748 ac_check_lib_save_LIBS=$LIBS
6750 cat >conftest.$ac_ext <<_ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6757 /* Override any GCC internal prototype to avoid an error.
6758 Use char because int might match the return type of a GCC
6759 builtin and then its argument prototype would still apply. */
6763 char gethostbyname ();
6767 return gethostbyname ();
6772 rm -rf conftest.$ac_objext conftest$ac_exeext
6773 if { (ac_try="$ac_link"
6775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6776 *) ac_try_echo=$ac_try;;
6778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6779 (eval "$ac_link") 2>conftest.er1
6781 grep -v '^ *+' conftest.er1 >conftest.err
6783 cat conftest.err >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } && {
6786 test -z "$ac_c_werror_flag" ||
6787 test ! -s conftest.err
6788 } && test -s conftest$ac_exeext &&
6789 $as_test_x conftest$ac_exeext; then
6790 ac_cv_lib_nsl_gethostbyname=yes
6792 echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6795 ac_cv_lib_nsl_gethostbyname=no
6798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6799 conftest$ac_exeext conftest.$ac_ext
6800 LIBS=$ac_check_lib_save_LIBS
6802 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6803 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6804 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6805 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6808 if test $ac_cv_lib_nsl_gethostbyname = no; then
6809 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6810 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6811 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 ac_check_lib_save_LIBS=$LIBS
6816 cat >conftest.$ac_ext <<_ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6823 /* Override any GCC internal prototype to avoid an error.
6824 Use char because int might match the return type of a GCC
6825 builtin and then its argument prototype would still apply. */
6829 char gethostbyname ();
6833 return gethostbyname ();
6838 rm -rf conftest.$ac_objext conftest$ac_exeext
6839 if { (ac_try="$ac_link"
6841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6842 *) ac_try_echo=$ac_try;;
6844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6845 (eval "$ac_link") 2>conftest.er1
6847 grep -v '^ *+' conftest.er1 >conftest.err
6849 cat conftest.err >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } && {
6852 test -z "$ac_c_werror_flag" ||
6853 test ! -s conftest.err
6854 } && test -s conftest$ac_exeext &&
6855 $as_test_x conftest$ac_exeext; then
6856 ac_cv_lib_bsd_gethostbyname=yes
6858 echo "$as_me: failed program was:" >&5
6859 sed 's/^/| /' conftest.$ac_ext >&5
6861 ac_cv_lib_bsd_gethostbyname=no
6864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6865 conftest$ac_exeext conftest.$ac_ext
6866 LIBS=$ac_check_lib_save_LIBS
6868 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6869 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
6870 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6871 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6877 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6878 # socket/setsockopt and other routines are undefined under SCO ODT
6879 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6880 # on later versions), says Simon Leinen: it contains gethostby*
6881 # variants that don't use the name server (or something). -lsocket
6882 # must be given before -lnsl if both are needed. We assume that
6883 # if connect needs -lnsl, so does gethostbyname.
6884 { echo "$as_me:$LINENO: checking for connect" >&5
6885 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
6886 if test "${ac_cv_func_connect+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 cat >conftest.$ac_ext <<_ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h. */
6895 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6897 #define connect innocuous_connect
6899 /* System header to define __stub macros and hopefully few prototypes,
6900 which can conflict with char connect (); below.
6901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6902 <limits.h> exists even on freestanding compilers. */
6905 # include <limits.h>
6907 # include <assert.h>
6912 /* Override any GCC internal prototype to avoid an error.
6913 Use char because int might match the return type of a GCC
6914 builtin and then its argument prototype would still apply. */
6919 /* The GNU C library defines this for functions which it implements
6920 to always fail with ENOSYS. Some functions are actually named
6921 something starting with __ and the normal name is an alias. */
6922 #if defined __stub_connect || defined __stub___connect
6934 rm -rf conftest.$ac_objext conftest$ac_exeext
6935 if { (ac_try="$ac_link"
6937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6938 *) ac_try_echo=$ac_try;;
6940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6941 (eval "$ac_link") 2>conftest.er1
6943 grep -v '^ *+' conftest.er1 >conftest.err
6945 cat conftest.err >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } && {
6948 test -z "$ac_c_werror_flag" ||
6949 test ! -s conftest.err
6950 } && test -s conftest$ac_exeext &&
6951 $as_test_x conftest$ac_exeext; then
6952 ac_cv_func_connect=yes
6954 echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6957 ac_cv_func_connect=no
6960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6961 conftest$ac_exeext conftest.$ac_ext
6963 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6964 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
6966 if test $ac_cv_func_connect = no; then
6967 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6968 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
6969 if test "${ac_cv_lib_socket_connect+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 ac_check_lib_save_LIBS=$LIBS
6973 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6974 cat >conftest.$ac_ext <<_ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6981 /* Override any GCC internal prototype to avoid an error.
6982 Use char because int might match the return type of a GCC
6983 builtin and then its argument prototype would still apply. */
6996 rm -rf conftest.$ac_objext conftest$ac_exeext
6997 if { (ac_try="$ac_link"
6999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7000 *) ac_try_echo=$ac_try;;
7002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7003 (eval "$ac_link") 2>conftest.er1
7005 grep -v '^ *+' conftest.er1 >conftest.err
7007 cat conftest.err >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } && {
7010 test -z "$ac_c_werror_flag" ||
7011 test ! -s conftest.err
7012 } && test -s conftest$ac_exeext &&
7013 $as_test_x conftest$ac_exeext; then
7014 ac_cv_lib_socket_connect=yes
7016 echo "$as_me: failed program was:" >&5
7017 sed 's/^/| /' conftest.$ac_ext >&5
7019 ac_cv_lib_socket_connect=no
7022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7023 conftest$ac_exeext conftest.$ac_ext
7024 LIBS=$ac_check_lib_save_LIBS
7026 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7027 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
7028 if test $ac_cv_lib_socket_connect = yes; then
7029 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7034 # Guillermo Gomez says -lposix is necessary on A/UX.
7035 { echo "$as_me:$LINENO: checking for remove" >&5
7036 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
7037 if test "${ac_cv_func_remove+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 cat >conftest.$ac_ext <<_ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7046 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7048 #define remove innocuous_remove
7050 /* System header to define __stub macros and hopefully few prototypes,
7051 which can conflict with char remove (); below.
7052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7053 <limits.h> exists even on freestanding compilers. */
7056 # include <limits.h>
7058 # include <assert.h>
7063 /* Override any GCC internal prototype to avoid an error.
7064 Use char because int might match the return type of a GCC
7065 builtin and then its argument prototype would still apply. */
7070 /* The GNU C library defines this for functions which it implements
7071 to always fail with ENOSYS. Some functions are actually named
7072 something starting with __ and the normal name is an alias. */
7073 #if defined __stub_remove || defined __stub___remove
7085 rm -rf conftest.$ac_objext conftest$ac_exeext
7086 if { (ac_try="$ac_link"
7088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7089 *) ac_try_echo=$ac_try;;
7091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7092 (eval "$ac_link") 2>conftest.er1
7094 grep -v '^ *+' conftest.er1 >conftest.err
7096 cat conftest.err >&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } && {
7099 test -z "$ac_c_werror_flag" ||
7100 test ! -s conftest.err
7101 } && test -s conftest$ac_exeext &&
7102 $as_test_x conftest$ac_exeext; then
7103 ac_cv_func_remove=yes
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7108 ac_cv_func_remove=no
7111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7112 conftest$ac_exeext conftest.$ac_ext
7114 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7115 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
7117 if test $ac_cv_func_remove = no; then
7118 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7119 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
7120 if test "${ac_cv_lib_posix_remove+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 ac_check_lib_save_LIBS=$LIBS
7124 LIBS="-lposix $LIBS"
7125 cat >conftest.$ac_ext <<_ACEOF
7128 cat confdefs.h >>conftest.$ac_ext
7129 cat >>conftest.$ac_ext <<_ACEOF
7130 /* end confdefs.h. */
7132 /* Override any GCC internal prototype to avoid an error.
7133 Use char because int might match the return type of a GCC
7134 builtin and then its argument prototype would still apply. */
7147 rm -rf conftest.$ac_objext conftest$ac_exeext
7148 if { (ac_try="$ac_link"
7150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7151 *) ac_try_echo=$ac_try;;
7153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7154 (eval "$ac_link") 2>conftest.er1
7156 grep -v '^ *+' conftest.er1 >conftest.err
7158 cat conftest.err >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); } && {
7161 test -z "$ac_c_werror_flag" ||
7162 test ! -s conftest.err
7163 } && test -s conftest$ac_exeext &&
7164 $as_test_x conftest$ac_exeext; then
7165 ac_cv_lib_posix_remove=yes
7167 echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7170 ac_cv_lib_posix_remove=no
7173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7174 conftest$ac_exeext conftest.$ac_ext
7175 LIBS=$ac_check_lib_save_LIBS
7177 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7178 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
7179 if test $ac_cv_lib_posix_remove = yes; then
7180 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7185 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7186 { echo "$as_me:$LINENO: checking for shmat" >&5
7187 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
7188 if test "${ac_cv_func_shmat+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 cat >conftest.$ac_ext <<_ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7197 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7199 #define shmat innocuous_shmat
7201 /* System header to define __stub macros and hopefully few prototypes,
7202 which can conflict with char shmat (); below.
7203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7204 <limits.h> exists even on freestanding compilers. */
7207 # include <limits.h>
7209 # include <assert.h>
7214 /* Override any GCC internal prototype to avoid an error.
7215 Use char because int might match the return type of a GCC
7216 builtin and then its argument prototype would still apply. */
7221 /* The GNU C library defines this for functions which it implements
7222 to always fail with ENOSYS. Some functions are actually named
7223 something starting with __ and the normal name is an alias. */
7224 #if defined __stub_shmat || defined __stub___shmat
7236 rm -rf conftest.$ac_objext conftest$ac_exeext
7237 if { (ac_try="$ac_link"
7239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240 *) ac_try_echo=$ac_try;;
7242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7243 (eval "$ac_link") 2>conftest.er1
7245 grep -v '^ *+' conftest.er1 >conftest.err
7247 cat conftest.err >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); } && {
7250 test -z "$ac_c_werror_flag" ||
7251 test ! -s conftest.err
7252 } && test -s conftest$ac_exeext &&
7253 $as_test_x conftest$ac_exeext; then
7254 ac_cv_func_shmat=yes
7256 echo "$as_me: failed program was:" >&5
7257 sed 's/^/| /' conftest.$ac_ext >&5
7262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7263 conftest$ac_exeext conftest.$ac_ext
7265 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7266 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
7268 if test $ac_cv_func_shmat = no; then
7269 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7270 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
7271 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 ac_check_lib_save_LIBS=$LIBS
7276 cat >conftest.$ac_ext <<_ACEOF
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h. */
7283 /* Override any GCC internal prototype to avoid an error.
7284 Use char because int might match the return type of a GCC
7285 builtin and then its argument prototype would still apply. */
7298 rm -rf conftest.$ac_objext conftest$ac_exeext
7299 if { (ac_try="$ac_link"
7301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7302 *) ac_try_echo=$ac_try;;
7304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7305 (eval "$ac_link") 2>conftest.er1
7307 grep -v '^ *+' conftest.er1 >conftest.err
7309 cat conftest.err >&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } && {
7312 test -z "$ac_c_werror_flag" ||
7313 test ! -s conftest.err
7314 } && test -s conftest$ac_exeext &&
7315 $as_test_x conftest$ac_exeext; then
7316 ac_cv_lib_ipc_shmat=yes
7318 echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7321 ac_cv_lib_ipc_shmat=no
7324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7325 conftest$ac_exeext conftest.$ac_ext
7326 LIBS=$ac_check_lib_save_LIBS
7328 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7329 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
7330 if test $ac_cv_lib_ipc_shmat = yes; then
7331 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7337 # Check for libraries that X11R6 Xt/Xaw programs need.
7338 ac_save_LDFLAGS=$LDFLAGS
7339 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7340 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7341 # check for ICE first), but we must link in the order -lSM -lICE or
7342 # we get undefined symbols. So assume we have SM if we have ICE.
7343 # These have to be linked with before -lX11, unlike the other
7344 # libraries we check for below, so use a different variable.
7345 # John Interrante, Karl Berry
7346 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7347 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
7348 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 ac_check_lib_save_LIBS=$LIBS
7352 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7353 cat >conftest.$ac_ext <<_ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7360 /* Override any GCC internal prototype to avoid an error.
7361 Use char because int might match the return type of a GCC
7362 builtin and then its argument prototype would still apply. */
7366 char IceConnectionNumber ();
7370 return IceConnectionNumber ();
7375 rm -rf conftest.$ac_objext conftest$ac_exeext
7376 if { (ac_try="$ac_link"
7378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379 *) ac_try_echo=$ac_try;;
7381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7382 (eval "$ac_link") 2>conftest.er1
7384 grep -v '^ *+' conftest.er1 >conftest.err
7386 cat conftest.err >&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); } && {
7389 test -z "$ac_c_werror_flag" ||
7390 test ! -s conftest.err
7391 } && test -s conftest$ac_exeext &&
7392 $as_test_x conftest$ac_exeext; then
7393 ac_cv_lib_ICE_IceConnectionNumber=yes
7395 echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7398 ac_cv_lib_ICE_IceConnectionNumber=no
7401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7402 conftest$ac_exeext conftest.$ac_ext
7403 LIBS=$ac_check_lib_save_LIBS
7405 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7406 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7407 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7408 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7411 LDFLAGS=$ac_save_LDFLAGS
7416 if test "$have_x" != yes; then
7417 { { echo "$as_me:$LINENO: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&5
7418 echo "$as_me: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&2;}
7419 { (exit 1); exit 1; }; }
7423 { echo "$as_me:$LINENO: checking for X app-defaults directory" >&5
7424 echo $ECHO_N "checking for X app-defaults directory... $ECHO_C" >&6; }
7425 if test "${ac_cv_x_app_defaults+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 if mkdir conftestdir; then
7431 cd conftestdir 2>/dev/null
7432 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7433 cat > Imakefile <<'EOF'
7435 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
7437 if (xmkmf) >/dev/null 2>&1 && test -f Makefile; then
7438 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
7439 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7444 if test x"$ac_x_app_defaults" = x; then
7446 # Look for the directory under a standard set of common directories.
7447 # Check X11 before X11Rn because it's often a symlink to the current release.
7449 /usr/X11/lib/app-defaults \
7450 /usr/X11R6/lib/app-defaults \
7451 /usr/X11R6/lib/X11/app-defaults \
7452 /usr/X11R5/lib/app-defaults \
7453 /usr/X11R5/lib/X11/app-defaults \
7454 /usr/X11R4/lib/app-defaults \
7455 /usr/X11R4/lib/X11/app-defaults \
7457 /usr/lib/X11/app-defaults \
7458 /usr/lib/X11R6/app-defaults \
7459 /usr/lib/X11R5/app-defaults \
7460 /usr/lib/X11R4/app-defaults \
7462 /usr/local/X11/lib/app-defaults \
7463 /usr/local/X11R6/lib/app-defaults \
7464 /usr/local/X11R5/lib/app-defaults \
7465 /usr/local/X11R4/lib/app-defaults \
7467 /usr/local/lib/X11/app-defaults \
7468 /usr/local/lib/X11R6/app-defaults \
7469 /usr/local/lib/X11R6/X11/app-defaults \
7470 /usr/local/lib/X11R5/app-defaults \
7471 /usr/local/lib/X11R5/X11/app-defaults \
7472 /usr/local/lib/X11R4/app-defaults \
7473 /usr/local/lib/X11R4/X11/app-defaults \
7475 /usr/X386/lib/X11/app-defaults \
7476 /usr/x386/lib/X11/app-defaults \
7477 /usr/XFree86/lib/X11/app-defaults \
7479 /usr/lib/X11/app-defaults \
7480 /usr/local/lib/X11/app-defaults \
7481 /usr/unsupported/lib/X11/app-defaults \
7482 /usr/athena/lib/X11/app-defaults \
7483 /usr/local/x11r5/lib/X11/app-defaults \
7484 /usr/lpp/Xamples/lib/X11/app-defaults \
7485 /lib/usr/lib/X11/app-defaults \
7487 /usr/openwin/lib/app-defaults \
7488 /usr/openwin/lib/X11/app-defaults \
7489 /usr/openwin/share/lib/app-defaults \
7490 /usr/openwin/share/lib/X11/app-defaults \
7492 /X11R6/lib/app-defaults \
7493 /X11R5/lib/app-defaults \
7494 /X11R4/lib/app-defaults \
7497 if test -d "$ac_dir"; then
7498 ac_x_app_defaults=$ac_dir
7504 if test x"$ac_x_app_defaults" = x; then
7505 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
7507 # Record where we found app-defaults for the cache.
7508 ac_cv_x_app_defaults="$ac_x_app_defaults"
7511 { echo "$as_me:$LINENO: result: $ac_cv_x_app_defaults" >&5
7512 echo "${ECHO_T}$ac_cv_x_app_defaults" >&6; }
7513 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
7517 # The following arcana was gleaned from conversations with
7518 # Eric Schwartz <erics@col.hp.com>:
7520 # On HPUX 10.x, the parts of X that HP considers "standard" live in
7521 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
7522 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
7523 # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
7524 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
7525 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
7526 # you don't need any -I or -L arguments.
7528 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
7529 # are the same division as 10.x. However, there are no symlinks to
7530 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
7531 # arguments are always necessary.
7533 # However, X11R6 was available on HPUX 9.x as a patch: if that
7534 # patch was installed, then all of X11R6 went in to
7535 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
7537 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
7538 # whether R5 was available as a patch; R6 undoubtedly was not.)
7540 # So. We try and use the highest numbered pair of
7541 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
7542 # that are available. We do not mix and match different versions
7545 # Question I still don't know the answer to: (do you?)
7547 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
7548 # /usr/contrib/X11R6/ could be installed as a patch, what was in
7549 # that contrib directory? Did it contain so-called "standard"
7550 # X11R6, or did it include Xaw and Xmu as well? If the former,
7551 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
7552 # be a situation where one had to reach into the R5 headers and
7553 # libs to find Xmu? That is, must both R6 and R5 directories
7554 # be on the -I and -L lists in that case?
7556 for version in X11R6 X11R5 X11R4 ; do
7557 # if either pair of directories exists...
7558 if test -d /usr/include/$version || test -d /usr/contrib/$version/include
7560 # if contrib exists, use it...
7561 if test -d /usr/contrib/$version/include ; then
7562 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
7563 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
7565 # if the "standard" one exists, use it.
7566 if test -d /usr/include/$version ; then
7567 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
7568 X_LIBS="$X_LIBS -L/usr/lib/$version"
7570 # since at least one of the pair exists, go no farther.
7575 # Now find Motif. Thanks for not making xmkmf find this by
7576 # default, you losers.
7578 if test -d /usr/include/Motif2.1 ; then
7579 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
7580 X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
7581 elif test -d /usr/include/Motif1.2 ; then
7582 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
7583 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
7584 elif test -d /usr/include/Motif1.1 ; then
7585 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
7586 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
7589 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
7591 if test -d /opt/graphics/OpenGL/include ; then
7592 # HP-UX 10.20 puts it here
7593 X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
7594 X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
7595 elif test -d /opt/Mesa/lib ; then
7596 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
7597 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
7601 if test -d /opt/xpm/lib/X11 ; then
7602 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
7603 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
7606 # On HPUX, default to installing in /opt/xscreensaver/ instead of
7607 # in /usr/local/, unless there is already an xscreensaver in
7608 # /usr/local/bin/. This can be overridden with the --prefix arg
7609 # to configure. I'm not sure this is the right thing to do, but
7610 # Richard Lloyd says so...
7612 if test \! -x /usr/local/bin/xscreensaver ; then
7613 ac_default_prefix=/opt/xscreensaver
7619 # Thanks for not making xmkmf find this by default, pinheads.
7620 # And thanks for moving things around again, too. Is this
7621 # really the standard location now? What happened to the
7622 # joke that this kind of thing went in /opt?
7623 # cthomp says "answer: CDE (Common Disorganized Environment)"
7625 if test -f /usr/dt/include/Xm/Xm.h ; then
7626 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
7627 MOTIF_LIBS="$MOTIF_LIBS -L/usr/dt/lib -R/usr/dt/lib"
7629 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
7630 { echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
7631 echo $ECHO_N "checking for regcmp in -lgen... $ECHO_C" >&6; }
7632 if test "${ac_cv_lib_gen_regcmp+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 ac_check_lib_save_LIBS=$LIBS
7637 cat >conftest.$ac_ext <<_ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7644 /* Override any GCC internal prototype to avoid an error.
7645 Use char because int might match the return type of a GCC
7646 builtin and then its argument prototype would still apply. */
7659 rm -rf conftest.$ac_objext conftest$ac_exeext
7660 if { (ac_try="$ac_link"
7662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7666 (eval "$ac_link") 2>conftest.er1
7668 grep -v '^ *+' conftest.er1 >conftest.err
7670 cat conftest.err >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } && {
7673 test -z "$ac_c_werror_flag" ||
7674 test ! -s conftest.err
7675 } && test -s conftest$ac_exeext &&
7676 $as_test_x conftest$ac_exeext; then
7677 ac_cv_lib_gen_regcmp=yes
7679 echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7682 ac_cv_lib_gen_regcmp=no
7685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7686 conftest$ac_exeext conftest.$ac_ext
7687 LIBS=$ac_check_lib_save_LIBS
7689 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5
7690 echo "${ECHO_T}$ac_cv_lib_gen_regcmp" >&6; }
7691 if test $ac_cv_lib_gen_regcmp = yes; then
7692 MOTIF_LIBS="$MOTIF_LIBS -lgen"
7700 # On MacOS X (10.x with "fink"), many things are under /sw/.
7702 if test -d /sw/include ; then
7703 X_CFLAGS="-I/sw/include $X_CFLAGS"
7704 X_LIBS="-L/sw/lib $X_LIBS"
7708 { echo "$as_me:$LINENO: checking for XPointer" >&5
7709 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7710 if test "${ac_cv_xpointer+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 ac_save_CPPFLAGS="$CPPFLAGS"
7715 if test \! -z "$includedir" ; then
7716 CPPFLAGS="$CPPFLAGS -I$includedir"
7718 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7719 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
7720 cat >conftest.$ac_ext <<_ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7726 #include <X11/Xlib.h>
7730 XPointer foo = (XPointer) 0;
7735 rm -rf conftest.$ac_objext
7736 if { (ac_try="$ac_compile"
7738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7739 *) ac_try_echo=$ac_try;;
7741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742 (eval "$ac_compile") 2>conftest.er1
7744 grep -v '^ *+' conftest.er1 >conftest.err
7746 cat conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } && {
7749 test -z "$ac_c_werror_flag" ||
7750 test ! -s conftest.err
7751 } && test -s conftest.$ac_objext; then
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761 CPPFLAGS="$ac_save_CPPFLAGS"
7763 { echo "$as_me:$LINENO: result: $ac_cv_xpointer" >&5
7764 echo "${ECHO_T}$ac_cv_xpointer" >&6; }
7765 if test "$ac_cv_xpointer" != yes; then
7766 cat >>confdefs.h <<\_ACEOF
7767 #define XPointer char*
7772 { echo "$as_me:$LINENO: checking whether this is MacOS X" >&5
7773 echo $ECHO_N "checking whether this is MacOS X... $ECHO_C" >&6; }
7780 { echo "$as_me:$LINENO: result: $ac_macosx" >&5
7781 echo "${ECHO_T}$ac_macosx" >&6; }
7784 ###############################################################################
7788 ###############################################################################
7793 { echo "$as_me:$LINENO: checking for intltool >= " >&5
7794 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6; }
7796 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
7797 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < intltool-update.in`
7799 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < intltool-update.in`
7802 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
7803 { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
7804 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
7806 { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5
7807 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6; }
7812 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'
7813 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'
7814 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'
7815 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
7816 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'
7817 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'
7818 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'
7819 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'
7820 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'
7821 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'
7822 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'
7836 # Use the tools built into the package, not the ones that are installed.
7838 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
7839 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
7840 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
7846 # Extract the first word of "perl", so it can be a program name with args.
7847 set dummy perl; ac_word=$2
7848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7850 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7853 case $INTLTOOL_PERL in
7855 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 test -z "$as_dir" && as_dir=.
7863 for ac_exec_ext in '' $ac_executable_extensions; do
7864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7865 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
7866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
7877 if test -n "$INTLTOOL_PERL"; then
7878 { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
7879 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
7881 { echo "$as_me:$LINENO: result: no" >&5
7882 echo "${ECHO_T}no" >&6; }
7886 if test -z "$INTLTOOL_PERL"; then
7887 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
7888 echo "$as_me: error: perl not found; required for intltool" >&2;}
7889 { (exit 1); exit 1; }; }
7891 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
7892 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
7893 echo "$as_me: error: perl 5.x required for intltool" >&2;}
7894 { (exit 1); exit 1; }; }
7897 # Remove file type tags (using []) from po/POTFILES.
7905 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
7907 ac_config_commands="$ac_config_commands default-1"
7911 GETTEXT_PACKAGE=xscreensaver
7913 cat >>confdefs.h <<_ACEOF
7914 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
7918 cat >>confdefs.h <<_ACEOF
7919 #define PACKAGE "$GETTEXT_PACKAGE"
7924 ALL_LINGUAS="ca da de es et fi fr hu it ja ko nb nl no pl pt pt_BR ru sk sv vi wa zh_CN zh_TW"
7925 if test -n "$ac_tool_prefix"; then
7926 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7927 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7930 if test "${ac_cv_prog_RANLIB+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 if test -n "$RANLIB"; then
7934 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 test -z "$as_dir" && as_dir=.
7941 for ac_exec_ext in '' $ac_executable_extensions; do
7942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7943 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7953 RANLIB=$ac_cv_prog_RANLIB
7954 if test -n "$RANLIB"; then
7955 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7956 echo "${ECHO_T}$RANLIB" >&6; }
7958 { echo "$as_me:$LINENO: result: no" >&5
7959 echo "${ECHO_T}no" >&6; }
7964 if test -z "$ac_cv_prog_RANLIB"; then
7965 ac_ct_RANLIB=$RANLIB
7966 # Extract the first word of "ranlib", so it can be a program name with args.
7967 set dummy ranlib; ac_word=$2
7968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7970 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 if test -n "$ac_ct_RANLIB"; then
7974 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 test -z "$as_dir" && as_dir=.
7981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7983 ac_cv_prog_ac_ct_RANLIB="ranlib"
7984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7993 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7994 if test -n "$ac_ct_RANLIB"; then
7995 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7996 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7998 { echo "$as_me:$LINENO: result: no" >&5
7999 echo "${ECHO_T}no" >&6; }
8002 if test "x$ac_ct_RANLIB" = x; then
8005 case $cross_compiling:$ac_tool_warned in
8007 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8008 whose name does not start with the host triplet. If you think this
8009 configuration is useful to you, please write to autoconf@gnu.org." >&5
8010 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8011 whose name does not start with the host triplet. If you think this
8012 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8013 ac_tool_warned=yes ;;
8015 RANLIB=$ac_ct_RANLIB
8018 RANLIB="$ac_cv_prog_RANLIB"
8021 { echo "$as_me:$LINENO: checking for off_t" >&5
8022 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8023 if test "${ac_cv_type_off_t+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8026 cat >conftest.$ac_ext <<_ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8032 $ac_includes_default
8033 typedef off_t ac__type_new_;
8037 if ((ac__type_new_ *) 0)
8039 if (sizeof (ac__type_new_))
8045 rm -rf conftest.$ac_objext
8046 if { (ac_try="$ac_compile"
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_compile") 2>conftest.er1
8054 grep -v '^ *+' conftest.er1 >conftest.err
8056 cat conftest.err >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } && {
8059 test -z "$ac_c_werror_flag" ||
8060 test ! -s conftest.err
8061 } && test -s conftest.$ac_objext; then
8062 ac_cv_type_off_t=yes
8064 echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8073 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8074 if test $ac_cv_type_off_t = yes; then
8078 cat >>confdefs.h <<_ACEOF
8079 #define off_t long int
8084 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8085 # for constant arguments. Useless!
8086 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8087 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8088 if test "${ac_cv_working_alloca_h+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 cat >conftest.$ac_ext <<_ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h. */
8101 char *p = (char *) alloca (2 * sizeof (int));
8107 rm -rf conftest.$ac_objext conftest$ac_exeext
8108 if { (ac_try="$ac_link"
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_link") 2>conftest.er1
8116 grep -v '^ *+' conftest.er1 >conftest.err
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } && {
8121 test -z "$ac_c_werror_flag" ||
8122 test ! -s conftest.err
8123 } && test -s conftest$ac_exeext &&
8124 $as_test_x conftest$ac_exeext; then
8125 ac_cv_working_alloca_h=yes
8127 echo "$as_me: failed program was:" >&5
8128 sed 's/^/| /' conftest.$ac_ext >&5
8130 ac_cv_working_alloca_h=no
8133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8134 conftest$ac_exeext conftest.$ac_ext
8136 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8137 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8138 if test $ac_cv_working_alloca_h = yes; then
8140 cat >>confdefs.h <<\_ACEOF
8141 #define HAVE_ALLOCA_H 1
8146 { echo "$as_me:$LINENO: checking for alloca" >&5
8147 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8148 if test "${ac_cv_func_alloca_works+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8151 cat >conftest.$ac_ext <<_ACEOF
8154 cat confdefs.h >>conftest.$ac_ext
8155 cat >>conftest.$ac_ext <<_ACEOF
8156 /* end confdefs.h. */
8158 # define alloca __builtin_alloca
8161 # include <malloc.h>
8162 # define alloca _alloca
8164 # ifdef HAVE_ALLOCA_H
8165 # include <alloca.h>
8170 # ifndef alloca /* predefined by HP cc +Olibcalls */
8181 char *p = (char *) alloca (1);
8187 rm -rf conftest.$ac_objext conftest$ac_exeext
8188 if { (ac_try="$ac_link"
8190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191 *) ac_try_echo=$ac_try;;
8193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194 (eval "$ac_link") 2>conftest.er1
8196 grep -v '^ *+' conftest.er1 >conftest.err
8198 cat conftest.err >&5
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); } && {
8201 test -z "$ac_c_werror_flag" ||
8202 test ! -s conftest.err
8203 } && test -s conftest$ac_exeext &&
8204 $as_test_x conftest$ac_exeext; then
8205 ac_cv_func_alloca_works=yes
8207 echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.$ac_ext >&5
8210 ac_cv_func_alloca_works=no
8213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8214 conftest$ac_exeext conftest.$ac_ext
8216 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8217 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8219 if test $ac_cv_func_alloca_works = yes; then
8221 cat >>confdefs.h <<\_ACEOF
8222 #define HAVE_ALLOCA 1
8226 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8227 # that cause trouble. Some versions do not even contain alloca or
8228 # contain a buggy version. If you still want to use their alloca,
8229 # use ar to extract alloca.o from them instead of compiling alloca.c.
8231 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8233 cat >>confdefs.h <<\_ACEOF
8238 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8239 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8240 if test "${ac_cv_os_cray+set}" = set; then
8241 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 cat >conftest.$ac_ext <<_ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h. */
8249 #if defined CRAY && ! defined CRAY2
8256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8257 $EGREP "webecray" >/dev/null 2>&1; then
8265 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8266 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8267 if test $ac_cv_os_cray = yes; then
8268 for ac_func in _getb67 GETB67 getb67; do
8269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8275 cat >conftest.$ac_ext <<_ACEOF
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h. */
8281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8283 #define $ac_func innocuous_$ac_func
8285 /* System header to define __stub macros and hopefully few prototypes,
8286 which can conflict with char $ac_func (); below.
8287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8288 <limits.h> exists even on freestanding compilers. */
8291 # include <limits.h>
8293 # include <assert.h>
8298 /* Override any GCC internal prototype to avoid an error.
8299 Use char because int might match the return type of a GCC
8300 builtin and then its argument prototype would still apply. */
8305 /* The GNU C library defines this for functions which it implements
8306 to always fail with ENOSYS. Some functions are actually named
8307 something starting with __ and the normal name is an alias. */
8308 #if defined __stub_$ac_func || defined __stub___$ac_func
8320 rm -rf conftest.$ac_objext conftest$ac_exeext
8321 if { (ac_try="$ac_link"
8323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324 *) ac_try_echo=$ac_try;;
8326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327 (eval "$ac_link") 2>conftest.er1
8329 grep -v '^ *+' conftest.er1 >conftest.err
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } && {
8334 test -z "$ac_c_werror_flag" ||
8335 test ! -s conftest.err
8336 } && test -s conftest$ac_exeext &&
8337 $as_test_x conftest$ac_exeext; then
8338 eval "$as_ac_var=yes"
8340 echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8343 eval "$as_ac_var=no"
8346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8347 conftest$ac_exeext conftest.$ac_ext
8349 ac_res=`eval echo '${'$as_ac_var'}'`
8350 { echo "$as_me:$LINENO: result: $ac_res" >&5
8351 echo "${ECHO_T}$ac_res" >&6; }
8352 if test `eval echo '${'$as_ac_var'}'` = yes; then
8354 cat >>confdefs.h <<_ACEOF
8355 #define CRAY_STACKSEG_END $ac_func
8364 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8365 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8366 if test "${ac_cv_c_stack_direction+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 if test "$cross_compiling" = yes; then
8370 ac_cv_c_stack_direction=0
8372 cat >conftest.$ac_ext <<_ACEOF
8375 cat confdefs.h >>conftest.$ac_ext
8376 cat >>conftest.$ac_ext <<_ACEOF
8377 /* end confdefs.h. */
8378 $ac_includes_default
8380 find_stack_direction ()
8382 static char *addr = 0;
8387 return find_stack_direction ();
8390 return (&dummy > addr) ? 1 : -1;
8396 return find_stack_direction () < 0;
8399 rm -rf conftest$ac_exeext
8400 if { (ac_try="$ac_link"
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_link") 2>&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8410 { (case "(($ac_try" in
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_try") 2>&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_cv_c_stack_direction=1
8421 echo "$as_me: program exited with status $ac_status" >&5
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8426 ac_cv_c_stack_direction=-1
8428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8433 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8434 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8436 cat >>confdefs.h <<_ACEOF
8437 #define STACK_DIRECTION $ac_cv_c_stack_direction
8445 for ac_header in stdlib.h unistd.h
8447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
8454 ac_res=`eval echo '${'$as_ac_Header'}'`
8455 { echo "$as_me:$LINENO: result: $ac_res" >&5
8456 echo "${ECHO_T}$ac_res" >&6; }
8458 # Is the header compilable?
8459 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8460 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8461 cat >conftest.$ac_ext <<_ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8467 $ac_includes_default
8468 #include <$ac_header>
8470 rm -rf conftest.$ac_objext
8471 if { (ac_try="$ac_compile"
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477 (eval "$ac_compile") 2>conftest.er1
8479 grep -v '^ *+' conftest.er1 >conftest.err
8481 cat conftest.err >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } && {
8484 test -z "$ac_c_werror_flag" ||
8485 test ! -s conftest.err
8486 } && test -s conftest.$ac_objext; then
8487 ac_header_compiler=yes
8489 echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.$ac_ext >&5
8492 ac_header_compiler=no
8495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8497 echo "${ECHO_T}$ac_header_compiler" >&6; }
8499 # Is the header present?
8500 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8502 cat >conftest.$ac_ext <<_ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 #include <$ac_header>
8510 if { (ac_try="$ac_cpp conftest.$ac_ext"
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8518 grep -v '^ *+' conftest.er1 >conftest.err
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } >/dev/null && {
8523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8524 test ! -s conftest.err
8526 ac_header_preproc=yes
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8531 ac_header_preproc=no
8534 rm -rf conftest.err conftest.$ac_ext
8535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8536 echo "${ECHO_T}$ac_header_preproc" >&6; }
8538 # So? What about this header?
8539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8545 ac_header_preproc=yes
8548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8555 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8566 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 eval "$as_ac_Header=\$ac_header_preproc"
8570 ac_res=`eval echo '${'$as_ac_Header'}'`
8571 { echo "$as_me:$LINENO: result: $ac_res" >&5
8572 echo "${ECHO_T}$ac_res" >&6; }
8575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8576 cat >>confdefs.h <<_ACEOF
8577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8585 for ac_func in getpagesize
8587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8588 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8590 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8593 cat >conftest.$ac_ext <<_ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h. */
8599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8601 #define $ac_func innocuous_$ac_func
8603 /* System header to define __stub macros and hopefully few prototypes,
8604 which can conflict with char $ac_func (); below.
8605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8606 <limits.h> exists even on freestanding compilers. */
8609 # include <limits.h>
8611 # include <assert.h>
8616 /* Override any GCC internal prototype to avoid an error.
8617 Use char because int might match the return type of a GCC
8618 builtin and then its argument prototype would still apply. */
8623 /* The GNU C library defines this for functions which it implements
8624 to always fail with ENOSYS. Some functions are actually named
8625 something starting with __ and the normal name is an alias. */
8626 #if defined __stub_$ac_func || defined __stub___$ac_func
8638 rm -rf conftest.$ac_objext conftest$ac_exeext
8639 if { (ac_try="$ac_link"
8641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642 *) ac_try_echo=$ac_try;;
8644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8645 (eval "$ac_link") 2>conftest.er1
8647 grep -v '^ *+' conftest.er1 >conftest.err
8649 cat conftest.err >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } && {
8652 test -z "$ac_c_werror_flag" ||
8653 test ! -s conftest.err
8654 } && test -s conftest$ac_exeext &&
8655 $as_test_x conftest$ac_exeext; then
8656 eval "$as_ac_var=yes"
8658 echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8661 eval "$as_ac_var=no"
8664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8665 conftest$ac_exeext conftest.$ac_ext
8667 ac_res=`eval echo '${'$as_ac_var'}'`
8668 { echo "$as_me:$LINENO: result: $ac_res" >&5
8669 echo "${ECHO_T}$ac_res" >&6; }
8670 if test `eval echo '${'$as_ac_var'}'` = yes; then
8671 cat >>confdefs.h <<_ACEOF
8672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8678 { echo "$as_me:$LINENO: checking for working mmap" >&5
8679 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
8680 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
8683 if test "$cross_compiling" = yes; then
8684 ac_cv_func_mmap_fixed_mapped=no
8686 cat >conftest.$ac_ext <<_ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h. */
8692 $ac_includes_default
8693 /* malloc might have been renamed as rpl_malloc. */
8696 /* Thanks to Mike Haertel and Jim Avera for this test.
8697 Here is a matrix of mmap possibilities:
8698 mmap private not fixed
8699 mmap private fixed at somewhere currently unmapped
8700 mmap private fixed at somewhere already mapped
8701 mmap shared not fixed
8702 mmap shared fixed at somewhere currently unmapped
8703 mmap shared fixed at somewhere already mapped
8704 For private mappings, we should verify that changes cannot be read()
8705 back from the file, nor mmap's back from the file at a different
8706 address. (There have been systems where private was not correctly
8707 implemented like the infamous i386 svr4.0, and systems where the
8708 VM page cache was not coherent with the file system buffer cache
8709 like early versions of FreeBSD and possibly contemporary NetBSD.)
8710 For shared mappings, we should conversely verify that changes get
8711 propagated back to all the places they're supposed to be.
8713 Grep wants private fixed already mapped.
8714 The main things grep needs to know about mmap are:
8715 * does it exist and is it safe to write into the mmap'd area
8716 * how to use it (BSD variants) */
8719 #include <sys/mman.h>
8721 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8725 /* This mess was copied from the GNU getpagesize.h. */
8726 #ifndef HAVE_GETPAGESIZE
8727 /* Assume that all systems that can run configure have sys/param.h. */
8728 # ifndef HAVE_SYS_PARAM_H
8729 # define HAVE_SYS_PARAM_H 1
8732 # ifdef _SC_PAGESIZE
8733 # define getpagesize() sysconf(_SC_PAGESIZE)
8734 # else /* no _SC_PAGESIZE */
8735 # ifdef HAVE_SYS_PARAM_H
8736 # include <sys/param.h>
8737 # ifdef EXEC_PAGESIZE
8738 # define getpagesize() EXEC_PAGESIZE
8739 # else /* no EXEC_PAGESIZE */
8741 # define getpagesize() NBPG * CLSIZE
8744 # endif /* no CLSIZE */
8745 # else /* no NBPG */
8747 # define getpagesize() NBPC
8748 # else /* no NBPC */
8750 # define getpagesize() PAGESIZE
8751 # endif /* PAGESIZE */
8752 # endif /* no NBPC */
8753 # endif /* no NBPG */
8754 # endif /* no EXEC_PAGESIZE */
8755 # else /* no HAVE_SYS_PARAM_H */
8756 # define getpagesize() 8192 /* punt totally */
8757 # endif /* no HAVE_SYS_PARAM_H */
8758 # endif /* no _SC_PAGESIZE */
8760 #endif /* no HAVE_GETPAGESIZE */
8765 char *data, *data2, *data3;
8769 pagesize = getpagesize ();
8771 /* First, make a file with some known garbage in it. */
8772 data = (char *) malloc (pagesize);
8775 for (i = 0; i < pagesize; ++i)
8776 *(data + i) = rand ();
8778 fd = creat ("conftest.mmap", 0600);
8781 if (write (fd, data, pagesize) != pagesize)
8785 /* Next, try to mmap the file at a fixed address which already has
8786 something else allocated at it. If we can, also make sure that
8787 we see the same garbage. */
8788 fd = open ("conftest.mmap", O_RDWR);
8791 data2 = (char *) malloc (2 * pagesize);
8794 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8795 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8796 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8798 for (i = 0; i < pagesize; ++i)
8799 if (*(data + i) != *(data2 + i))
8802 /* Finally, make sure that changes to the mapped area do not
8803 percolate back to the file as seen by read(). (This is a bug on
8804 some variants of i386 svr4.0.) */
8805 for (i = 0; i < pagesize; ++i)
8806 *(data2 + i) = *(data2 + i) + 1;
8807 data3 = (char *) malloc (pagesize);
8810 if (read (fd, data3, pagesize) != pagesize)
8812 for (i = 0; i < pagesize; ++i)
8813 if (*(data + i) != *(data3 + i))
8819 rm -rf conftest$ac_exeext
8820 if { (ac_try="$ac_link"
8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823 *) ac_try_echo=$ac_try;;
8825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8826 (eval "$ac_link") 2>&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8830 { (case "(($ac_try" in
8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8835 (eval "$ac_try") 2>&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; }; then
8839 ac_cv_func_mmap_fixed_mapped=yes
8841 echo "$as_me: program exited with status $ac_status" >&5
8842 echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.$ac_ext >&5
8846 ac_cv_func_mmap_fixed_mapped=no
8848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8853 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8854 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
8855 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8857 cat >>confdefs.h <<\_ACEOF
8862 rm -rf conftest.mmap
8873 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
8874 unistd.h sys/param.h
8876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8883 ac_res=`eval echo '${'$as_ac_Header'}'`
8884 { echo "$as_me:$LINENO: result: $ac_res" >&5
8885 echo "${ECHO_T}$ac_res" >&6; }
8887 # Is the header compilable?
8888 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8889 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8890 cat >conftest.$ac_ext <<_ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8896 $ac_includes_default
8897 #include <$ac_header>
8899 rm -rf conftest.$ac_objext
8900 if { (ac_try="$ac_compile"
8902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8903 *) ac_try_echo=$ac_try;;
8905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8906 (eval "$ac_compile") 2>conftest.er1
8908 grep -v '^ *+' conftest.er1 >conftest.err
8910 cat conftest.err >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } && {
8913 test -z "$ac_c_werror_flag" ||
8914 test ! -s conftest.err
8915 } && test -s conftest.$ac_objext; then
8916 ac_header_compiler=yes
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8921 ac_header_compiler=no
8924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8926 echo "${ECHO_T}$ac_header_compiler" >&6; }
8928 # Is the header present?
8929 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8931 cat >conftest.$ac_ext <<_ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8937 #include <$ac_header>
8939 if { (ac_try="$ac_cpp conftest.$ac_ext"
8941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8942 *) ac_try_echo=$ac_try;;
8944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8947 grep -v '^ *+' conftest.er1 >conftest.err
8949 cat conftest.err >&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } >/dev/null && {
8952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8953 test ! -s conftest.err
8955 ac_header_preproc=yes
8957 echo "$as_me: failed program was:" >&5
8958 sed 's/^/| /' conftest.$ac_ext >&5
8960 ac_header_preproc=no
8963 rm -rf conftest.err conftest.$ac_ext
8964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8965 echo "${ECHO_T}$ac_header_preproc" >&6; }
8967 # So? What about this header?
8968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8974 ac_header_preproc=yes
8977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8980 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8984 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8997 eval "$as_ac_Header=\$ac_header_preproc"
8999 ac_res=`eval echo '${'$as_ac_Header'}'`
9000 { echo "$as_me:$LINENO: result: $ac_res" >&5
9001 echo "${ECHO_T}$ac_res" >&6; }
9004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9005 cat >>confdefs.h <<_ACEOF
9006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9024 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
9025 strdup __argz_count __argz_stringify __argz_next
9027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9028 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9030 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9031 echo $ECHO_N "(cached) $ECHO_C" >&6
9033 cat >conftest.$ac_ext <<_ACEOF
9036 cat confdefs.h >>conftest.$ac_ext
9037 cat >>conftest.$ac_ext <<_ACEOF
9038 /* end confdefs.h. */
9039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9041 #define $ac_func innocuous_$ac_func
9043 /* System header to define __stub macros and hopefully few prototypes,
9044 which can conflict with char $ac_func (); below.
9045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9046 <limits.h> exists even on freestanding compilers. */
9049 # include <limits.h>
9051 # include <assert.h>
9056 /* Override any GCC internal prototype to avoid an error.
9057 Use char because int might match the return type of a GCC
9058 builtin and then its argument prototype would still apply. */
9063 /* The GNU C library defines this for functions which it implements
9064 to always fail with ENOSYS. Some functions are actually named
9065 something starting with __ and the normal name is an alias. */
9066 #if defined __stub_$ac_func || defined __stub___$ac_func
9078 rm -rf conftest.$ac_objext conftest$ac_exeext
9079 if { (ac_try="$ac_link"
9081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9082 *) ac_try_echo=$ac_try;;
9084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9085 (eval "$ac_link") 2>conftest.er1
9087 grep -v '^ *+' conftest.er1 >conftest.err
9089 cat conftest.err >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } && {
9092 test -z "$ac_c_werror_flag" ||
9093 test ! -s conftest.err
9094 } && test -s conftest$ac_exeext &&
9095 $as_test_x conftest$ac_exeext; then
9096 eval "$as_ac_var=yes"
9098 echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9101 eval "$as_ac_var=no"
9104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9105 conftest$ac_exeext conftest.$ac_ext
9107 ac_res=`eval echo '${'$as_ac_var'}'`
9108 { echo "$as_me:$LINENO: result: $ac_res" >&5
9109 echo "${ECHO_T}$ac_res" >&6; }
9110 if test `eval echo '${'$as_ac_var'}'` = yes; then
9111 cat >>confdefs.h <<_ACEOF
9112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9119 if test $ac_cv_header_locale_h = yes; then
9120 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9121 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9122 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9125 cat >conftest.$ac_ext <<_ACEOF
9128 cat confdefs.h >>conftest.$ac_ext
9129 cat >>conftest.$ac_ext <<_ACEOF
9130 /* end confdefs.h. */
9140 rm -rf conftest.$ac_objext conftest$ac_exeext
9141 if { (ac_try="$ac_link"
9143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9144 *) ac_try_echo=$ac_try;;
9146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9147 (eval "$ac_link") 2>conftest.er1
9149 grep -v '^ *+' conftest.er1 >conftest.err
9151 cat conftest.err >&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); } && {
9154 test -z "$ac_c_werror_flag" ||
9155 test ! -s conftest.err
9156 } && test -s conftest$ac_exeext &&
9157 $as_test_x conftest$ac_exeext; then
9158 am_cv_val_LC_MESSAGES=yes
9160 echo "$as_me: failed program was:" >&5
9161 sed 's/^/| /' conftest.$ac_ext >&5
9163 am_cv_val_LC_MESSAGES=no
9166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9167 conftest$ac_exeext conftest.$ac_ext
9169 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9170 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9171 if test $am_cv_val_LC_MESSAGES = yes; then
9173 cat >>confdefs.h <<\_ACEOF
9174 #define HAVE_LC_MESSAGES 1
9182 nls_cv_force_use_gnu_gettext="no"
9184 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9185 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9187 nls_cv_header_libgt=
9190 if test "${ac_cv_header_libintl_h+set}" = set; then
9191 { echo "$as_me:$LINENO: checking for libintl.h" >&5
9192 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
9193 if test "${ac_cv_header_libintl_h+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9197 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
9199 # Is the header compilable?
9200 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
9201 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
9202 cat >conftest.$ac_ext <<_ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 $ac_includes_default
9209 #include <libintl.h>
9211 rm -rf conftest.$ac_objext
9212 if { (ac_try="$ac_compile"
9214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9215 *) ac_try_echo=$ac_try;;
9217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9218 (eval "$ac_compile") 2>conftest.er1
9220 grep -v '^ *+' conftest.er1 >conftest.err
9222 cat conftest.err >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } && {
9225 test -z "$ac_c_werror_flag" ||
9226 test ! -s conftest.err
9227 } && test -s conftest.$ac_objext; then
9228 ac_header_compiler=yes
9230 echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.$ac_ext >&5
9233 ac_header_compiler=no
9236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9238 echo "${ECHO_T}$ac_header_compiler" >&6; }
9240 # Is the header present?
9241 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
9242 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
9243 cat >conftest.$ac_ext <<_ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9249 #include <libintl.h>
9251 if { (ac_try="$ac_cpp conftest.$ac_ext"
9253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9254 *) ac_try_echo=$ac_try;;
9256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9259 grep -v '^ *+' conftest.er1 >conftest.err
9261 cat conftest.err >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); } >/dev/null && {
9264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9265 test ! -s conftest.err
9267 ac_header_preproc=yes
9269 echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9272 ac_header_preproc=no
9275 rm -rf conftest.err conftest.$ac_ext
9276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9277 echo "${ECHO_T}$ac_header_preproc" >&6; }
9279 # So? What about this header?
9280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9282 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9283 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9284 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
9285 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
9286 ac_header_preproc=yes
9289 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
9290 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
9291 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
9292 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
9293 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
9294 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
9295 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
9296 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9297 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
9298 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
9300 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
9304 { echo "$as_me:$LINENO: checking for libintl.h" >&5
9305 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
9306 if test "${ac_cv_header_libintl_h+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 ac_cv_header_libintl_h=$ac_header_preproc
9311 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9312 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
9315 if test $ac_cv_header_libintl_h = yes; then
9316 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
9317 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
9318 if test "${gt_cv_func_dgettext_libc+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 cat >conftest.$ac_ext <<_ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9327 #include <libintl.h>
9331 return (int) dgettext ("","")
9336 rm -rf conftest.$ac_objext conftest$ac_exeext
9337 if { (ac_try="$ac_link"
9339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340 *) ac_try_echo=$ac_try;;
9342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9343 (eval "$ac_link") 2>conftest.er1
9345 grep -v '^ *+' conftest.er1 >conftest.err
9347 cat conftest.err >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } && {
9350 test -z "$ac_c_werror_flag" ||
9351 test ! -s conftest.err
9352 } && test -s conftest$ac_exeext &&
9353 $as_test_x conftest$ac_exeext; then
9354 gt_cv_func_dgettext_libc=yes
9356 echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9359 gt_cv_func_dgettext_libc=no
9362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9363 conftest$ac_exeext conftest.$ac_ext
9365 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
9366 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
9368 if test "$gt_cv_func_dgettext_libc" != "yes"; then
9369 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
9370 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
9371 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 ac_check_lib_save_LIBS=$LIBS
9376 cat >conftest.$ac_ext <<_ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9383 /* Override any GCC internal prototype to avoid an error.
9384 Use char because int might match the return type of a GCC
9385 builtin and then its argument prototype would still apply. */
9389 char bindtextdomain ();
9393 return bindtextdomain ();
9398 rm -rf conftest.$ac_objext conftest$ac_exeext
9399 if { (ac_try="$ac_link"
9401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9402 *) ac_try_echo=$ac_try;;
9404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9405 (eval "$ac_link") 2>conftest.er1
9407 grep -v '^ *+' conftest.er1 >conftest.err
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } && {
9412 test -z "$ac_c_werror_flag" ||
9413 test ! -s conftest.err
9414 } && test -s conftest$ac_exeext &&
9415 $as_test_x conftest$ac_exeext; then
9416 ac_cv_lib_intl_bindtextdomain=yes
9418 echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9421 ac_cv_lib_intl_bindtextdomain=no
9424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9425 conftest$ac_exeext conftest.$ac_ext
9426 LIBS=$ac_check_lib_save_LIBS
9428 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
9429 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
9430 if test $ac_cv_lib_intl_bindtextdomain = yes; then
9431 { echo "$as_me:$LINENO: checking for dgettext in libintl" >&5
9432 echo $ECHO_N "checking for dgettext in libintl... $ECHO_C" >&6; }
9433 if test "${gt_cv_func_dgettext_libintl+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9436 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
9437 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
9438 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 ac_check_lib_save_LIBS=$LIBS
9443 cat >conftest.$ac_ext <<_ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9450 /* Override any GCC internal prototype to avoid an error.
9451 Use char because int might match the return type of a GCC
9452 builtin and then its argument prototype would still apply. */
9465 rm -rf conftest.$ac_objext conftest$ac_exeext
9466 if { (ac_try="$ac_link"
9468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9469 *) ac_try_echo=$ac_try;;
9471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9472 (eval "$ac_link") 2>conftest.er1
9474 grep -v '^ *+' conftest.er1 >conftest.err
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } && {
9479 test -z "$ac_c_werror_flag" ||
9480 test ! -s conftest.err
9481 } && test -s conftest$ac_exeext &&
9482 $as_test_x conftest$ac_exeext; then
9483 ac_cv_lib_intl_dgettext=yes
9485 echo "$as_me: failed program was:" >&5
9486 sed 's/^/| /' conftest.$ac_ext >&5
9488 ac_cv_lib_intl_dgettext=no
9491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9492 conftest$ac_exeext conftest.$ac_ext
9493 LIBS=$ac_check_lib_save_LIBS
9495 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
9496 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
9497 if test $ac_cv_lib_intl_dgettext = yes; then
9498 gt_cv_func_dgettext_libintl=yes
9500 gt_cv_func_dgettext_libintl=no
9504 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libintl" >&5
9505 echo "${ECHO_T}$gt_cv_func_dgettext_libintl" >&6; }
9510 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
9511 LIBS="$LIBS -lintl";
9514 if test "$gt_cv_func_dgettext_libc" = "yes" \
9515 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
9517 cat >>confdefs.h <<\_ACEOF
9518 #define HAVE_GETTEXT 1
9521 # Extract the first word of "msgfmt", so it can be a program name with args.
9522 set dummy msgfmt; ac_word=$2
9523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9525 if test "${ac_cv_path_MSGFMT+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9530 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9534 for ac_dir in $PATH; do
9535 test -z "$ac_dir" && ac_dir=.
9536 if test -f $ac_dir/$ac_word; then
9537 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
9538 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
9544 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
9548 MSGFMT="$ac_cv_path_MSGFMT"
9549 if test -n "$MSGFMT"; then
9550 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
9551 echo "${ECHO_T}$MSGFMT" >&6; }
9553 { echo "$as_me:$LINENO: result: no" >&5
9554 echo "${ECHO_T}no" >&6; }
9556 if test "$MSGFMT" != "no"; then
9558 for ac_func in dcgettext
9560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 cat >conftest.$ac_ext <<_ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9574 #define $ac_func innocuous_$ac_func
9576 /* System header to define __stub macros and hopefully few prototypes,
9577 which can conflict with char $ac_func (); below.
9578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9579 <limits.h> exists even on freestanding compilers. */
9582 # include <limits.h>
9584 # include <assert.h>
9589 /* Override any GCC internal prototype to avoid an error.
9590 Use char because int might match the return type of a GCC
9591 builtin and then its argument prototype would still apply. */
9596 /* The GNU C library defines this for functions which it implements
9597 to always fail with ENOSYS. Some functions are actually named
9598 something starting with __ and the normal name is an alias. */
9599 #if defined __stub_$ac_func || defined __stub___$ac_func
9611 rm -rf conftest.$ac_objext conftest$ac_exeext
9612 if { (ac_try="$ac_link"
9614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9615 *) ac_try_echo=$ac_try;;
9617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9618 (eval "$ac_link") 2>conftest.er1
9620 grep -v '^ *+' conftest.er1 >conftest.err
9622 cat conftest.err >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } && {
9625 test -z "$ac_c_werror_flag" ||
9626 test ! -s conftest.err
9627 } && test -s conftest$ac_exeext &&
9628 $as_test_x conftest$ac_exeext; then
9629 eval "$as_ac_var=yes"
9631 echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9634 eval "$as_ac_var=no"
9637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9638 conftest$ac_exeext conftest.$ac_ext
9640 ac_res=`eval echo '${'$as_ac_var'}'`
9641 { echo "$as_me:$LINENO: result: $ac_res" >&5
9642 echo "${ECHO_T}$ac_res" >&6; }
9643 if test `eval echo '${'$as_ac_var'}'` = yes; then
9644 cat >>confdefs.h <<_ACEOF
9645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9651 # Extract the first word of "gmsgfmt", so it can be a program name with args.
9652 set dummy gmsgfmt; ac_word=$2
9653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9655 if test "${ac_cv_path_GMSGFMT+set}" = set; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
9663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667 test -z "$as_dir" && as_dir=.
9668 for ac_exec_ext in '' $ac_executable_extensions; do
9669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9670 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
9671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9678 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9682 GMSGFMT=$ac_cv_path_GMSGFMT
9683 if test -n "$GMSGFMT"; then
9684 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
9685 echo "${ECHO_T}$GMSGFMT" >&6; }
9687 { echo "$as_me:$LINENO: result: no" >&5
9688 echo "${ECHO_T}no" >&6; }
9692 # Extract the first word of "xgettext", so it can be a program name with args.
9693 set dummy xgettext; ac_word=$2
9694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9696 if test "${ac_cv_path_XGETTEXT+set}" = set; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9701 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9705 for ac_dir in $PATH; do
9706 test -z "$ac_dir" && ac_dir=.
9707 if test -f $ac_dir/$ac_word; then
9708 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
9709 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
9715 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9719 XGETTEXT="$ac_cv_path_XGETTEXT"
9720 if test -n "$XGETTEXT"; then
9721 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
9722 echo "${ECHO_T}$XGETTEXT" >&6; }
9724 { echo "$as_me:$LINENO: result: no" >&5
9725 echo "${ECHO_T}no" >&6; }
9728 cat >conftest.$ac_ext <<_ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h. */
9738 extern int _nl_msg_cat_cntr;
9739 return _nl_msg_cat_cntr
9744 rm -rf conftest.$ac_objext conftest$ac_exeext
9745 if { (ac_try="$ac_link"
9747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748 *) ac_try_echo=$ac_try;;
9750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9751 (eval "$ac_link") 2>conftest.er1
9753 grep -v '^ *+' conftest.er1 >conftest.err
9755 cat conftest.err >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } && {
9758 test -z "$ac_c_werror_flag" ||
9759 test ! -s conftest.err
9760 } && test -s conftest$ac_exeext &&
9761 $as_test_x conftest$ac_exeext; then
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9773 conftest$ac_exeext conftest.$ac_ext
9778 # Added by Martin Baulig 12/15/98 for libc5 systems
9779 if test "$gt_cv_func_dgettext_libc" != "yes" \
9780 && test "$gt_cv_func_dgettext_libintl" = "yes"; then
9782 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
9789 if test "$CATOBJEXT" = "NONE"; then
9790 nls_cv_use_gnu_gettext=yes
9794 if test "$nls_cv_use_gnu_gettext" != "yes"; then
9796 cat >>confdefs.h <<\_ACEOF
9797 #define ENABLE_NLS 1
9804 if test "$XGETTEXT" != ":"; then
9805 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9808 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
9809 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
9814 # We need to process the po/ directory.
9817 ac_config_commands="$ac_config_commands default-2"
9820 for lang in $ALL_LINGUAS; do
9821 GMOFILES="$GMOFILES $lang.gmo"
9822 POFILES="$POFILES $lang.po"
9837 if test "x$CATOBJEXT" != "x"; then
9838 if test "x$ALL_LINGUAS" = "x"; then
9841 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9842 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
9844 for lang in ${LINGUAS=$ALL_LINGUAS}; do
9845 case "$ALL_LINGUAS" in
9846 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
9849 LINGUAS=$NEW_LINGUAS
9850 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
9851 echo "${ECHO_T}$LINGUAS" >&6; }
9854 if test -n "$LINGUAS"; then
9855 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9859 test -d po || mkdir po
9860 if test "$CATOBJEXT" = ".cat"; then
9861 if test "${ac_cv_header_linux_version_h+set}" = set; then
9862 { echo "$as_me:$LINENO: checking for linux/version.h" >&5
9863 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
9864 if test "${ac_cv_header_linux_version_h+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9868 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
9870 # Is the header compilable?
9871 { echo "$as_me:$LINENO: checking linux/version.h usability" >&5
9872 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6; }
9873 cat >conftest.$ac_ext <<_ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9879 $ac_includes_default
9880 #include <linux/version.h>
9882 rm -rf conftest.$ac_objext
9883 if { (ac_try="$ac_compile"
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_compile") 2>conftest.er1
9891 grep -v '^ *+' conftest.er1 >conftest.err
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } && {
9896 test -z "$ac_c_werror_flag" ||
9897 test ! -s conftest.err
9898 } && test -s conftest.$ac_objext; then
9899 ac_header_compiler=yes
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9904 ac_header_compiler=no
9907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9909 echo "${ECHO_T}$ac_header_compiler" >&6; }
9911 # Is the header present?
9912 { echo "$as_me:$LINENO: checking linux/version.h presence" >&5
9913 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6; }
9914 cat >conftest.$ac_ext <<_ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 #include <linux/version.h>
9922 if { (ac_try="$ac_cpp conftest.$ac_ext"
9924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9925 *) ac_try_echo=$ac_try;;
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9930 grep -v '^ *+' conftest.er1 >conftest.err
9932 cat conftest.err >&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } >/dev/null && {
9935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9938 ac_header_preproc=yes
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_header_preproc=no
9946 rm -rf conftest.err conftest.$ac_ext
9947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9948 echo "${ECHO_T}$ac_header_preproc" >&6; }
9950 # So? What about this header?
9951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9953 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9954 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9955 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
9956 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
9957 ac_header_preproc=yes
9960 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
9961 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
9963 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
9964 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
9965 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
9966 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
9967 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
9968 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
9969 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
9970 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
9971 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
9975 { echo "$as_me:$LINENO: checking for linux/version.h" >&5
9976 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
9977 if test "${ac_cv_header_linux_version_h+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 ac_cv_header_linux_version_h=$ac_header_preproc
9982 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9983 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
9986 if test $ac_cv_header_linux_version_h = yes; then
9994 sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
9999 # jwz: fuck this! it puts hardcoded pathnames into the generated Makefiles!
10001 # if test -n "$ac_aux_dir"; then
10002 # MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
10004 if test -z "$MKINSTALLDIRS"; then
10005 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10008 # jwz: you know what, screw it. Let's just use the version that I
10009 # already computed in configure.in, instead of this version that came
10010 # with the i18n crud, ok?
10011 MKINSTALLDIRS="$INSTALL_DIRS"
10016 test -d po || mkdir po
10017 if test "x$srcdir" != "x."; then
10018 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
10019 posrcprefix="$srcdir/"
10021 posrcprefix="../$srcdir/"
10027 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
10028 < $srcdir/po/POTFILES.in > po/POTFILES
10030 MKINSTALLDIRS="$INSTALL_DIRS"
10033 ###############################################################################
10035 # Check for -lXmu (some fucked up vendors don't ship it...)
10037 ###############################################################################
10041 ac_save_CPPFLAGS="$CPPFLAGS"
10042 if test \! -z "$includedir" ; then
10043 CPPFLAGS="$CPPFLAGS -I$includedir"
10045 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10046 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10047 { echo "$as_me:$LINENO: checking for X11/Xmu/Error.h" >&5
10048 echo $ECHO_N "checking for X11/Xmu/Error.h... $ECHO_C" >&6; }
10049 if test "${ac_cv_header_X11_Xmu_Error_h+set}" = set; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 cat >conftest.$ac_ext <<_ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h. */
10058 #include <stdlib.h>
10060 #include <X11/Intrinsic.h>
10062 #include <X11/Xmu/Error.h>
10064 rm -rf conftest.$ac_objext
10065 if { (ac_try="$ac_compile"
10066 case "(($ac_try" in
10067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068 *) ac_try_echo=$ac_try;;
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071 (eval "$ac_compile") 2>conftest.er1
10073 grep -v '^ *+' conftest.er1 >conftest.err
10074 rm -rf conftest.er1
10075 cat conftest.err >&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } && {
10078 test -z "$ac_c_werror_flag" ||
10079 test ! -s conftest.err
10080 } && test -s conftest.$ac_objext; then
10081 ac_cv_header_X11_Xmu_Error_h=yes
10083 echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10086 ac_cv_header_X11_Xmu_Error_h=no
10089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10091 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xmu_Error_h" >&5
10092 echo "${ECHO_T}$ac_cv_header_X11_Xmu_Error_h" >&6; }
10093 if test $ac_cv_header_X11_Xmu_Error_h = yes; then
10098 CPPFLAGS="$ac_save_CPPFLAGS"
10099 if test "$have_xmu" = no ; then
10100 XMU_SRCS='$(UTILS_SRC)/xmu.c'
10101 XMU_OBJS='$(UTILS_BIN)/xmu.o'
10107 cat >>confdefs.h <<\_ACEOF
10114 ###############################################################################
10116 # Check for the SunOS 4.1.x _get_wmShellWidgetClass bug.
10117 # See comp.windows.x FAQ question 124. The right fix is to
10118 # get OpenWindows 3.0 patches 100512-02 and 100573-03.
10120 ###############################################################################
10122 if test "$have_xmu" = yes ; then
10125 { echo "$as_me:$LINENO: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
10126 echo $ECHO_N "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug... $ECHO_C" >&6; }
10127 if test "${ac_cv_sunos_xmu_bug+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10130 ac_save_LDFLAGS="$LDFLAGS"
10131 if test \! -z "$x_libraries" ; then
10132 LDFLAGS="$LDFLAGS -L$x_libraries"
10134 # Note: this trick never works! (Generally.)
10135 # We're only getting away with using AC_TRY_LINK
10136 # with X libraries because we know it's SunOS.
10137 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
10138 cat >conftest.$ac_ext <<_ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10153 rm -rf conftest.$ac_objext conftest$ac_exeext
10154 if { (ac_try="$ac_link"
10155 case "(($ac_try" in
10156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10157 *) ac_try_echo=$ac_try;;
10159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10160 (eval "$ac_link") 2>conftest.er1
10162 grep -v '^ *+' conftest.er1 >conftest.err
10163 rm -rf conftest.er1
10164 cat conftest.err >&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } && {
10167 test -z "$ac_c_werror_flag" ||
10168 test ! -s conftest.err
10169 } && test -s conftest$ac_exeext &&
10170 $as_test_x conftest$ac_exeext; then
10171 ac_cv_sunos_xmu_bug=no
10173 echo "$as_me: failed program was:" >&5
10174 sed 's/^/| /' conftest.$ac_ext >&5
10176 ac_cv_sunos_xmu_bug=yes
10179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10180 conftest$ac_exeext conftest.$ac_ext
10181 LDFLAGS="$ac_save_LDFLAGS"
10183 { echo "$as_me:$LINENO: result: $ac_cv_sunos_xmu_bug" >&5
10184 echo "${ECHO_T}$ac_cv_sunos_xmu_bug" >&6; }
10185 if test "$ac_cv_sunos_xmu_bug" = yes ; then
10186 { echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
10187 echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6; }
10188 if test "${ac_cv_ld_static+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 ac_save_LDFLAGS="$LDFLAGS"
10192 LDFLAGS="$LDFLAGS -static"
10193 cat >conftest.$ac_ext <<_ACEOF
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h. */
10208 rm -rf conftest.$ac_objext conftest$ac_exeext
10209 if { (ac_try="$ac_link"
10210 case "(($ac_try" in
10211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212 *) ac_try_echo=$ac_try;;
10214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215 (eval "$ac_link") 2>conftest.er1
10217 grep -v '^ *+' conftest.er1 >conftest.err
10218 rm -rf conftest.er1
10219 cat conftest.err >&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); } && {
10222 test -z "$ac_c_werror_flag" ||
10223 test ! -s conftest.err
10224 } && test -s conftest$ac_exeext &&
10225 $as_test_x conftest$ac_exeext; then
10226 ac_cv_ld_static=yes
10228 echo "$as_me: failed program was:" >&5
10229 sed 's/^/| /' conftest.$ac_ext >&5
10234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10235 conftest$ac_exeext conftest.$ac_ext
10236 LDFLAGS="$ac_save_LDFLAGS"
10238 { echo "$as_me:$LINENO: result: $ac_cv_ld_static" >&5
10239 echo "${ECHO_T}$ac_cv_ld_static" >&6; }
10240 if test "$ac_cv_ld_static" = yes ; then
10241 LDFLAGS="$LDFLAGS -static"
10243 LDFLAGS="$LDFLAGS -Bstatic"
10251 ###############################################################################
10253 # Handle the --with-hackdir option
10255 ###############################################################################
10258 with_hackdir_req=unspecified
10260 # Check whether --with-hackdir was given.
10261 if test "${with_hackdir+set}" = set; then
10262 withval=$with_hackdir; with_hackdir="$withval"; with_hackdir_req="$withval"
10268 if test x"$with_hackdir" = xyes; then
10269 HACKDIR='${libexecdir}/xscreensaver'
10270 elif test x"$with_hackdir" = xno; then
10271 HACKDIR='${bindir}'
10273 HACKDIR=$with_hackdir
10276 # canonicalize slashes.
10277 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
10279 # Expand HACKDIR as HACKDIR_FULL
10280 HACKDIR_FULL=`eval eval eval eval eval eval eval eval eval echo $HACKDIR`
10282 # This option used to be called --enable-subdir; make sure that is no longer
10283 # used, since configure brain-damagedly ignores unknown --enable options.
10286 # Check whether --enable-subdir was given.
10287 if test "${enable_subdir+set}" = set; then
10288 enableval=$enable_subdir; obsolete_enable=yes
10291 if test -n "$obsolete_enable"; then
10292 echo "error: the --enable-subdir option has been replaced with"
10293 echo " the new --with-hackdir option; see \`configure --help'"
10294 echo " for more information."
10299 ###############################################################################
10301 # Handle the --with-configdir option
10302 # Help for --with-x-app-defaults option added..
10304 ###############################################################################
10307 with_configdir_req=unspecified
10309 # Check whether --with-configdir was given.
10310 if test "${with_configdir+set}" = set; then
10311 withval=$with_configdir; with_configdir="$withval"; with_configdir_req="$withval"
10317 if test x"$with_configdir" = xyes; then
10318 HACK_CONF_DIR='${datadir}/xscreensaver/config'
10319 elif test x"$with_configdir" = xno; then
10320 echo "error: must be yes, or a pathname: --with-configdir=$with_configdir"
10323 # there must be a better way than this...
10324 if test -z "`echo $with_configdir | sed 's@^/.*@@'`" ; then
10326 HACK_CONF_DIR=$with_configdir
10329 HACK_CONF_DIR="\${exec_prefix}$with_configdir"
10336 ###############################################################################
10338 # Check for the SGI SCREEN_SAVER server extension.
10340 ###############################################################################
10343 with_sgi_req=unspecified
10345 # Check whether --with-sgi-ext was given.
10346 if test "${with_sgi_ext+set}" = set; then
10347 withval=$with_sgi_ext; with_sgi="$withval"; with_sgi_req="$withval"
10354 case "$with_sgi" in
10359 { echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER headers" >&5
10360 echo $ECHO_N "checking for SGI SCREEN_SAVER headers... $ECHO_C" >&6; }
10361 d=$with_sgi/include
10362 if test -d $d; then
10363 X_CFLAGS="-I$d $X_CFLAGS"
10364 { echo "$as_me:$LINENO: result: $d" >&5
10365 echo "${ECHO_T}$d" >&6; }
10367 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10368 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10371 { echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER libs" >&5
10372 echo $ECHO_N "checking for SGI SCREEN_SAVER libs... $ECHO_C" >&6; }
10374 if test -d $d; then
10375 X_LIBS="-L$d $X_LIBS"
10376 { echo "$as_me:$LINENO: result: $d" >&5
10377 echo "${ECHO_T}$d" >&6; }
10379 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10380 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10383 # replace the directory string with "yes".
10385 with_sgi=$with_sgi_req
10390 echo "error: argument to --with-sgi-ext must be \"yes\", \"no\", or a directory."
10391 echo " If it is a directory, then \`DIR/include' will be added to"
10392 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10398 if test "$with_sgi" = yes; then
10400 ac_save_CPPFLAGS="$CPPFLAGS"
10401 if test \! -z "$includedir" ; then
10402 CPPFLAGS="$CPPFLAGS -I$includedir"
10404 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10405 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10406 { echo "$as_me:$LINENO: checking for X11/extensions/XScreenSaver.h" >&5
10407 echo $ECHO_N "checking for X11/extensions/XScreenSaver.h... $ECHO_C" >&6; }
10408 if test "${ac_cv_header_X11_extensions_XScreenSaver_h+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 cat >conftest.$ac_ext <<_ACEOF
10414 cat confdefs.h >>conftest.$ac_ext
10415 cat >>conftest.$ac_ext <<_ACEOF
10416 /* end confdefs.h. */
10417 #include <X11/Xlib.h>
10419 #include <X11/extensions/XScreenSaver.h>
10421 rm -rf conftest.$ac_objext
10422 if { (ac_try="$ac_compile"
10423 case "(($ac_try" in
10424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425 *) ac_try_echo=$ac_try;;
10427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428 (eval "$ac_compile") 2>conftest.er1
10430 grep -v '^ *+' conftest.er1 >conftest.err
10431 rm -rf conftest.er1
10432 cat conftest.err >&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } && {
10435 test -z "$ac_c_werror_flag" ||
10436 test ! -s conftest.err
10437 } && test -s conftest.$ac_objext; then
10438 ac_cv_header_X11_extensions_XScreenSaver_h=yes
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10443 ac_cv_header_X11_extensions_XScreenSaver_h=no
10446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10448 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XScreenSaver_h" >&5
10449 echo "${ECHO_T}$ac_cv_header_X11_extensions_XScreenSaver_h" >&6; }
10450 if test $ac_cv_header_X11_extensions_XScreenSaver_h = yes; then
10452 cat >>confdefs.h <<\_ACEOF
10453 #define HAVE_SGI_SAVER_EXTENSION 1
10459 CPPFLAGS="$ac_save_CPPFLAGS"
10461 elif test "$with_sgi" != no; then
10462 echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
10467 ###############################################################################
10469 # Check for the XIDLE server extension.
10471 ###############################################################################
10474 with_xidle_req=unspecified
10476 # Check whether --with-xidle-ext was given.
10477 if test "${with_xidle_ext+set}" = set; then
10478 withval=$with_xidle_ext; with_xidle="$withval"; with_xidle_req="$withval"
10485 case "$with_xidle" in
10490 { echo "$as_me:$LINENO: checking for XIDLE headers" >&5
10491 echo $ECHO_N "checking for XIDLE headers... $ECHO_C" >&6; }
10492 d=$with_xidle/include
10493 if test -d $d; then
10494 X_CFLAGS="-I$d $X_CFLAGS"
10495 { echo "$as_me:$LINENO: result: $d" >&5
10496 echo "${ECHO_T}$d" >&6; }
10498 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10499 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10502 { echo "$as_me:$LINENO: checking for XIDLE libs" >&5
10503 echo $ECHO_N "checking for XIDLE libs... $ECHO_C" >&6; }
10505 if test -d $d; then
10506 X_LIBS="-L$d $X_LIBS"
10507 { echo "$as_me:$LINENO: result: $d" >&5
10508 echo "${ECHO_T}$d" >&6; }
10510 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10511 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10514 # replace the directory string with "yes".
10515 with_xidle_req="yes"
10516 with_xidle=$with_xidle_req
10521 echo "error: argument to --with-xidle-ext must be \"yes\", \"no\", or a directory."
10522 echo " If it is a directory, then \`DIR/include' will be added to"
10523 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10529 if test "$with_xidle" = yes; then
10531 ac_save_CPPFLAGS="$CPPFLAGS"
10532 if test \! -z "$includedir" ; then
10533 CPPFLAGS="$CPPFLAGS -I$includedir"
10535 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10536 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10537 { echo "$as_me:$LINENO: checking for X11/extensions/xidle.h" >&5
10538 echo $ECHO_N "checking for X11/extensions/xidle.h... $ECHO_C" >&6; }
10539 if test "${ac_cv_header_X11_extensions_xidle_h+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10542 cat >conftest.$ac_ext <<_ACEOF
10545 cat confdefs.h >>conftest.$ac_ext
10546 cat >>conftest.$ac_ext <<_ACEOF
10547 /* end confdefs.h. */
10548 #include <X11/Xlib.h>
10550 #include <X11/extensions/xidle.h>
10552 rm -rf conftest.$ac_objext
10553 if { (ac_try="$ac_compile"
10554 case "(($ac_try" in
10555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556 *) ac_try_echo=$ac_try;;
10558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559 (eval "$ac_compile") 2>conftest.er1
10561 grep -v '^ *+' conftest.er1 >conftest.err
10562 rm -rf conftest.er1
10563 cat conftest.err >&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } && {
10566 test -z "$ac_c_werror_flag" ||
10567 test ! -s conftest.err
10568 } && test -s conftest.$ac_objext; then
10569 ac_cv_header_X11_extensions_xidle_h=yes
10571 echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10574 ac_cv_header_X11_extensions_xidle_h=no
10577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10579 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xidle_h" >&5
10580 echo "${ECHO_T}$ac_cv_header_X11_extensions_xidle_h" >&6; }
10581 if test $ac_cv_header_X11_extensions_xidle_h = yes; then
10583 cat >>confdefs.h <<\_ACEOF
10584 #define HAVE_XIDLE_EXTENSION 1
10590 CPPFLAGS="$ac_save_CPPFLAGS"
10591 elif test "$with_xidle" != no; then
10592 echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
10597 ###############################################################################
10599 # Check for the SGI-VIDEO-CONTROL server extension.
10601 ###############################################################################
10604 with_sgivc_req=unspecified
10606 # Check whether --with-sgivc-ext was given.
10607 if test "${with_sgivc_ext+set}" = set; then
10608 withval=$with_sgivc_ext; with_sgivc="$withval"; with_sgivc_req="$withval"
10615 case "$with_sgivc" in
10620 { echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL headers" >&5
10621 echo $ECHO_N "checking for SGI-VIDEO-CONTROL headers... $ECHO_C" >&6; }
10622 d=$with_sgivc/include
10623 if test -d $d; then
10624 X_CFLAGS="-I$d $X_CFLAGS"
10625 { echo "$as_me:$LINENO: result: $d" >&5
10626 echo "${ECHO_T}$d" >&6; }
10628 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10629 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10632 { echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL libs" >&5
10633 echo $ECHO_N "checking for SGI-VIDEO-CONTROL libs... $ECHO_C" >&6; }
10635 if test -d $d; then
10636 X_LIBS="-L$d $X_LIBS"
10637 { echo "$as_me:$LINENO: result: $d" >&5
10638 echo "${ECHO_T}$d" >&6; }
10640 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10641 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10644 # replace the directory string with "yes".
10645 with_sgivc_req="yes"
10646 with_sgivc=$with_sgivc_req
10651 echo "error: argument to --with-sgivc-ext must be \"yes\", \"no\", or a directory."
10652 echo " If it is a directory, then \`DIR/include' will be added to"
10653 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10659 if test "$with_sgivc" = yes; then
10661 # first check for XSGIvc.h
10663 ac_save_CPPFLAGS="$CPPFLAGS"
10664 if test \! -z "$includedir" ; then
10665 CPPFLAGS="$CPPFLAGS -I$includedir"
10667 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10668 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10669 { echo "$as_me:$LINENO: checking for X11/extensions/XSGIvc.h" >&5
10670 echo $ECHO_N "checking for X11/extensions/XSGIvc.h... $ECHO_C" >&6; }
10671 if test "${ac_cv_header_X11_extensions_XSGIvc_h+set}" = set; then
10672 echo $ECHO_N "(cached) $ECHO_C" >&6
10674 cat >conftest.$ac_ext <<_ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680 #include <X11/Xlib.h>
10682 #include <X11/extensions/XSGIvc.h>
10684 rm -rf conftest.$ac_objext
10685 if { (ac_try="$ac_compile"
10686 case "(($ac_try" in
10687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688 *) ac_try_echo=$ac_try;;
10690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10691 (eval "$ac_compile") 2>conftest.er1
10693 grep -v '^ *+' conftest.er1 >conftest.err
10694 rm -rf conftest.er1
10695 cat conftest.err >&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } && {
10698 test -z "$ac_c_werror_flag" ||
10699 test ! -s conftest.err
10700 } && test -s conftest.$ac_objext; then
10701 ac_cv_header_X11_extensions_XSGIvc_h=yes
10703 echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.$ac_ext >&5
10706 ac_cv_header_X11_extensions_XSGIvc_h=no
10709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10711 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XSGIvc_h" >&5
10712 echo "${ECHO_T}$ac_cv_header_X11_extensions_XSGIvc_h" >&6; }
10713 if test $ac_cv_header_X11_extensions_XSGIvc_h = yes; then
10718 CPPFLAGS="$ac_save_CPPFLAGS"
10720 # if that succeeded, then check for the -lXsgivc
10721 if test "$have_sgivc" = yes; then
10724 ac_save_CPPFLAGS="$CPPFLAGS"
10725 ac_save_LDFLAGS="$LDFLAGS"
10726 # ac_save_LIBS="$LIBS"
10728 if test \! -z "$includedir" ; then
10729 CPPFLAGS="$CPPFLAGS -I$includedir"
10731 # note: $X_CFLAGS includes $x_includes
10732 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10734 if test \! -z "$libdir" ; then
10735 LDFLAGS="$LDFLAGS -L$libdir"
10737 # note: $X_LIBS includes $x_libraries
10738 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10740 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10741 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
10742 { echo "$as_me:$LINENO: checking for XSGIvcQueryGammaMap in -lXsgivc" >&5
10743 echo $ECHO_N "checking for XSGIvcQueryGammaMap in -lXsgivc... $ECHO_C" >&6; }
10744 if test "${ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 ac_check_lib_save_LIBS=$LIBS
10748 LIBS="-lXsgivc -lXext -lX11 $LIBS"
10749 cat >conftest.$ac_ext <<_ACEOF
10752 cat confdefs.h >>conftest.$ac_ext
10753 cat >>conftest.$ac_ext <<_ACEOF
10754 /* end confdefs.h. */
10756 /* Override any GCC internal prototype to avoid an error.
10757 Use char because int might match the return type of a GCC
10758 builtin and then its argument prototype would still apply. */
10762 char XSGIvcQueryGammaMap ();
10766 return XSGIvcQueryGammaMap ();
10771 rm -rf conftest.$ac_objext conftest$ac_exeext
10772 if { (ac_try="$ac_link"
10773 case "(($ac_try" in
10774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775 *) ac_try_echo=$ac_try;;
10777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10778 (eval "$ac_link") 2>conftest.er1
10780 grep -v '^ *+' conftest.er1 >conftest.err
10781 rm -rf conftest.er1
10782 cat conftest.err >&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); } && {
10785 test -z "$ac_c_werror_flag" ||
10786 test ! -s conftest.err
10787 } && test -s conftest$ac_exeext &&
10788 $as_test_x conftest$ac_exeext; then
10789 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=yes
10791 echo "$as_me: failed program was:" >&5
10792 sed 's/^/| /' conftest.$ac_ext >&5
10794 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=no
10797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10798 conftest$ac_exeext conftest.$ac_ext
10799 LIBS=$ac_check_lib_save_LIBS
10801 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&5
10802 echo "${ECHO_T}$ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&6; }
10803 if test $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap = yes; then
10804 have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"
10809 CPPFLAGS="$ac_save_CPPFLAGS"
10810 LDFLAGS="$ac_save_LDFLAGS"
10811 # LIBS="$ac_save_LIBS"
10815 # if that succeeded, then we've really got it.
10816 if test "$have_sgivc" = yes; then
10817 cat >>confdefs.h <<\_ACEOF
10818 #define HAVE_SGI_VC_EXTENSION 1
10823 elif test "$with_sgivc" != no; then
10824 echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
10829 ###############################################################################
10831 # Check for the DPMS server extension.
10833 ###############################################################################
10836 with_dpms_req=unspecified
10838 # Check whether --with-dpms-ext was given.
10839 if test "${with_dpms_ext+set}" = set; then
10840 withval=$with_dpms_ext; with_dpms="$withval"; with_dpms_req="$withval"
10847 case "$with_dpms" in
10852 { echo "$as_me:$LINENO: checking for DPMS headers" >&5
10853 echo $ECHO_N "checking for DPMS headers... $ECHO_C" >&6; }
10854 d=$with_dpms/include
10855 if test -d $d; then
10856 X_CFLAGS="-I$d $X_CFLAGS"
10857 { echo "$as_me:$LINENO: result: $d" >&5
10858 echo "${ECHO_T}$d" >&6; }
10860 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10861 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10864 { echo "$as_me:$LINENO: checking for DPMS libs" >&5
10865 echo $ECHO_N "checking for DPMS libs... $ECHO_C" >&6; }
10867 if test -d $d; then
10868 X_LIBS="-L$d $X_LIBS"
10869 { echo "$as_me:$LINENO: result: $d" >&5
10870 echo "${ECHO_T}$d" >&6; }
10872 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10873 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10876 # replace the directory string with "yes".
10877 with_dpms_req="yes"
10878 with_dpms=$with_dpms_req
10883 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
10884 echo " If it is a directory, then \`DIR/include' will be added to"
10885 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10891 if test "$with_dpms" = yes; then
10893 # first check for dpms.h
10895 ac_save_CPPFLAGS="$CPPFLAGS"
10896 if test \! -z "$includedir" ; then
10897 CPPFLAGS="$CPPFLAGS -I$includedir"
10899 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10900 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10901 { echo "$as_me:$LINENO: checking for X11/extensions/dpms.h" >&5
10902 echo $ECHO_N "checking for X11/extensions/dpms.h... $ECHO_C" >&6; }
10903 if test "${ac_cv_header_X11_extensions_dpms_h+set}" = set; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 cat >conftest.$ac_ext <<_ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10912 #include <X11/Xlib.h>
10913 #include <X11/Xmd.h>
10915 #include <X11/extensions/dpms.h>
10917 rm -rf conftest.$ac_objext
10918 if { (ac_try="$ac_compile"
10919 case "(($ac_try" in
10920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921 *) ac_try_echo=$ac_try;;
10923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10924 (eval "$ac_compile") 2>conftest.er1
10926 grep -v '^ *+' conftest.er1 >conftest.err
10927 rm -rf conftest.er1
10928 cat conftest.err >&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } && {
10931 test -z "$ac_c_werror_flag" ||
10932 test ! -s conftest.err
10933 } && test -s conftest.$ac_objext; then
10934 ac_cv_header_X11_extensions_dpms_h=yes
10936 echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10939 ac_cv_header_X11_extensions_dpms_h=no
10942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10944 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_dpms_h" >&5
10945 echo "${ECHO_T}$ac_cv_header_X11_extensions_dpms_h" >&6; }
10946 if test $ac_cv_header_X11_extensions_dpms_h = yes; then
10951 CPPFLAGS="$ac_save_CPPFLAGS"
10953 # if that succeeded, then check for the DPMS code in the libraries
10954 if test "$have_dpms" = yes; then
10956 # first look in -lXext (this is where it is with XFree86 4.0)
10959 ac_save_CPPFLAGS="$CPPFLAGS"
10960 ac_save_LDFLAGS="$LDFLAGS"
10961 # ac_save_LIBS="$LIBS"
10963 if test \! -z "$includedir" ; then
10964 CPPFLAGS="$CPPFLAGS -I$includedir"
10966 # note: $X_CFLAGS includes $x_includes
10967 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10969 if test \! -z "$libdir" ; then
10970 LDFLAGS="$LDFLAGS -L$libdir"
10972 # note: $X_LIBS includes $x_libraries
10973 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10975 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10976 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
10977 { echo "$as_me:$LINENO: checking for DPMSInfo in -lXext" >&5
10978 echo $ECHO_N "checking for DPMSInfo in -lXext... $ECHO_C" >&6; }
10979 if test "${ac_cv_lib_Xext_DPMSInfo+set}" = set; then
10980 echo $ECHO_N "(cached) $ECHO_C" >&6
10982 ac_check_lib_save_LIBS=$LIBS
10983 LIBS="-lXext -lXext -lX11 $LIBS"
10984 cat >conftest.$ac_ext <<_ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h. */
10991 /* Override any GCC internal prototype to avoid an error.
10992 Use char because int might match the return type of a GCC
10993 builtin and then its argument prototype would still apply. */
11001 return DPMSInfo ();
11006 rm -rf conftest.$ac_objext conftest$ac_exeext
11007 if { (ac_try="$ac_link"
11008 case "(($ac_try" in
11009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010 *) ac_try_echo=$ac_try;;
11012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013 (eval "$ac_link") 2>conftest.er1
11015 grep -v '^ *+' conftest.er1 >conftest.err
11016 rm -rf conftest.er1
11017 cat conftest.err >&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } && {
11020 test -z "$ac_c_werror_flag" ||
11021 test ! -s conftest.err
11022 } && test -s conftest$ac_exeext &&
11023 $as_test_x conftest$ac_exeext; then
11024 ac_cv_lib_Xext_DPMSInfo=yes
11026 echo "$as_me: failed program was:" >&5
11027 sed 's/^/| /' conftest.$ac_ext >&5
11029 ac_cv_lib_Xext_DPMSInfo=no
11032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11033 conftest$ac_exeext conftest.$ac_ext
11034 LIBS=$ac_check_lib_save_LIBS
11036 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_DPMSInfo" >&5
11037 echo "${ECHO_T}$ac_cv_lib_Xext_DPMSInfo" >&6; }
11038 if test $ac_cv_lib_Xext_DPMSInfo = yes; then
11044 CPPFLAGS="$ac_save_CPPFLAGS"
11045 LDFLAGS="$ac_save_LDFLAGS"
11046 # LIBS="$ac_save_LIBS"
11049 # if that failed, look in -lXdpms (this is where it was in XFree86 3.x)
11050 if test "$have_dpms" = no; then
11052 ac_save_CPPFLAGS="$CPPFLAGS"
11053 ac_save_LDFLAGS="$LDFLAGS"
11054 # ac_save_LIBS="$LIBS"
11056 if test \! -z "$includedir" ; then
11057 CPPFLAGS="$CPPFLAGS -I$includedir"
11059 # note: $X_CFLAGS includes $x_includes
11060 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11062 if test \! -z "$libdir" ; then
11063 LDFLAGS="$LDFLAGS -L$libdir"
11065 # note: $X_LIBS includes $x_libraries
11066 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11068 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11069 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11070 { echo "$as_me:$LINENO: checking for DPMSInfo in -lXdpms" >&5
11071 echo $ECHO_N "checking for DPMSInfo in -lXdpms... $ECHO_C" >&6; }
11072 if test "${ac_cv_lib_Xdpms_DPMSInfo+set}" = set; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11075 ac_check_lib_save_LIBS=$LIBS
11076 LIBS="-lXdpms -lXext -lX11 $LIBS"
11077 cat >conftest.$ac_ext <<_ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h. */
11084 /* Override any GCC internal prototype to avoid an error.
11085 Use char because int might match the return type of a GCC
11086 builtin and then its argument prototype would still apply. */
11094 return DPMSInfo ();
11099 rm -rf conftest.$ac_objext conftest$ac_exeext
11100 if { (ac_try="$ac_link"
11101 case "(($ac_try" in
11102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11103 *) ac_try_echo=$ac_try;;
11105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11106 (eval "$ac_link") 2>conftest.er1
11108 grep -v '^ *+' conftest.er1 >conftest.err
11109 rm -rf conftest.er1
11110 cat conftest.err >&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && {
11113 test -z "$ac_c_werror_flag" ||
11114 test ! -s conftest.err
11115 } && test -s conftest$ac_exeext &&
11116 $as_test_x conftest$ac_exeext; then
11117 ac_cv_lib_Xdpms_DPMSInfo=yes
11119 echo "$as_me: failed program was:" >&5
11120 sed 's/^/| /' conftest.$ac_ext >&5
11122 ac_cv_lib_Xdpms_DPMSInfo=no
11125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11126 conftest$ac_exeext conftest.$ac_ext
11127 LIBS=$ac_check_lib_save_LIBS
11129 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xdpms_DPMSInfo" >&5
11130 echo "${ECHO_T}$ac_cv_lib_Xdpms_DPMSInfo" >&6; }
11131 if test $ac_cv_lib_Xdpms_DPMSInfo = yes; then
11132 have_dpms=yes; XDPMS_LIBS="-lXdpms"
11137 CPPFLAGS="$ac_save_CPPFLAGS"
11138 LDFLAGS="$ac_save_LDFLAGS"
11139 # LIBS="$ac_save_LIBS"
11145 # if that succeeded, then we've really got it.
11146 if test "$have_dpms" = yes; then
11147 cat >>confdefs.h <<\_ACEOF
11148 #define HAVE_DPMS_EXTENSION 1
11153 elif test "$with_dpms" != no; then
11154 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
11159 ###############################################################################
11161 # Check for the XINERAMA server extension.
11163 ###############################################################################
11166 with_xinerama_req=unspecified
11168 # Check whether --with-xinerama-ext was given.
11169 if test "${with_xinerama_ext+set}" = set; then
11170 withval=$with_xinerama_ext; with_xinerama="$withval"; with_xinerama_req="$withval"
11177 case "$with_xinerama" in
11182 { echo "$as_me:$LINENO: checking for XINERAMA headers" >&5
11183 echo $ECHO_N "checking for XINERAMA headers... $ECHO_C" >&6; }
11184 d=$with_xinerama/include
11185 if test -d $d; then
11186 X_CFLAGS="-I$d $X_CFLAGS"
11187 { echo "$as_me:$LINENO: result: $d" >&5
11188 echo "${ECHO_T}$d" >&6; }
11190 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11191 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
11194 { echo "$as_me:$LINENO: checking for XINERAMA libs" >&5
11195 echo $ECHO_N "checking for XINERAMA libs... $ECHO_C" >&6; }
11196 d=$with_xinerama/lib
11197 if test -d $d; then
11198 X_LIBS="-L$d $X_LIBS"
11199 { echo "$as_me:$LINENO: result: $d" >&5
11200 echo "${ECHO_T}$d" >&6; }
11202 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11203 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
11206 # replace the directory string with "yes".
11207 with_xinerama_req="yes"
11208 with_xinerama=$with_xinerama_req
11213 echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
11214 echo " If it is a directory, then \`DIR/include' will be added to"
11215 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11221 if test "$with_xinerama" = yes; then
11223 # first check for Xinerama.h
11225 ac_save_CPPFLAGS="$CPPFLAGS"
11226 if test \! -z "$includedir" ; then
11227 CPPFLAGS="$CPPFLAGS -I$includedir"
11229 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11230 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11231 { echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
11232 echo $ECHO_N "checking for X11/extensions/Xinerama.h... $ECHO_C" >&6; }
11233 if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
11234 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 cat >conftest.$ac_ext <<_ACEOF
11239 cat confdefs.h >>conftest.$ac_ext
11240 cat >>conftest.$ac_ext <<_ACEOF
11241 /* end confdefs.h. */
11242 #include <X11/Xlib.h>
11244 #include <X11/extensions/Xinerama.h>
11246 rm -rf conftest.$ac_objext
11247 if { (ac_try="$ac_compile"
11248 case "(($ac_try" in
11249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250 *) ac_try_echo=$ac_try;;
11252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11253 (eval "$ac_compile") 2>conftest.er1
11255 grep -v '^ *+' conftest.er1 >conftest.err
11256 rm -rf conftest.er1
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } && {
11260 test -z "$ac_c_werror_flag" ||
11261 test ! -s conftest.err
11262 } && test -s conftest.$ac_objext; then
11263 ac_cv_header_X11_extensions_Xinerama_h=yes
11265 echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11268 ac_cv_header_X11_extensions_Xinerama_h=no
11271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
11274 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xinerama_h" >&6; }
11275 if test $ac_cv_header_X11_extensions_Xinerama_h = yes; then
11280 CPPFLAGS="$ac_save_CPPFLAGS"
11282 # if that succeeded, then check for the XINERAMA code in the libraries
11283 if test "$have_xinerama" = yes; then
11285 # first look in -lXext
11288 ac_save_CPPFLAGS="$CPPFLAGS"
11289 ac_save_LDFLAGS="$LDFLAGS"
11290 # ac_save_LIBS="$LIBS"
11292 if test \! -z "$includedir" ; then
11293 CPPFLAGS="$CPPFLAGS -I$includedir"
11295 # note: $X_CFLAGS includes $x_includes
11296 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11298 if test \! -z "$libdir" ; then
11299 LDFLAGS="$LDFLAGS -L$libdir"
11301 # note: $X_LIBS includes $x_libraries
11302 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11304 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11305 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11306 { echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXext" >&5
11307 echo $ECHO_N "checking for XineramaQueryScreens in -lXext... $ECHO_C" >&6; }
11308 if test "${ac_cv_lib_Xext_XineramaQueryScreens+set}" = set; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 ac_check_lib_save_LIBS=$LIBS
11312 LIBS="-lXext -lXext -lX11 $LIBS"
11313 cat >conftest.$ac_ext <<_ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11320 /* Override any GCC internal prototype to avoid an error.
11321 Use char because int might match the return type of a GCC
11322 builtin and then its argument prototype would still apply. */
11326 char XineramaQueryScreens ();
11330 return XineramaQueryScreens ();
11335 rm -rf conftest.$ac_objext conftest$ac_exeext
11336 if { (ac_try="$ac_link"
11337 case "(($ac_try" in
11338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339 *) ac_try_echo=$ac_try;;
11341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11342 (eval "$ac_link") 2>conftest.er1
11344 grep -v '^ *+' conftest.er1 >conftest.err
11345 rm -rf conftest.er1
11346 cat conftest.err >&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } && {
11349 test -z "$ac_c_werror_flag" ||
11350 test ! -s conftest.err
11351 } && test -s conftest$ac_exeext &&
11352 $as_test_x conftest$ac_exeext; then
11353 ac_cv_lib_Xext_XineramaQueryScreens=yes
11355 echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11358 ac_cv_lib_Xext_XineramaQueryScreens=no
11361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11362 conftest$ac_exeext conftest.$ac_ext
11363 LIBS=$ac_check_lib_save_LIBS
11365 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XineramaQueryScreens" >&5
11366 echo "${ECHO_T}$ac_cv_lib_Xext_XineramaQueryScreens" >&6; }
11367 if test $ac_cv_lib_Xext_XineramaQueryScreens = yes; then
11373 CPPFLAGS="$ac_save_CPPFLAGS"
11374 LDFLAGS="$ac_save_LDFLAGS"
11375 # LIBS="$ac_save_LIBS"
11378 # if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
11379 if test "$have_xinerama" = no; then
11381 ac_save_CPPFLAGS="$CPPFLAGS"
11382 ac_save_LDFLAGS="$LDFLAGS"
11383 # ac_save_LIBS="$LIBS"
11385 if test \! -z "$includedir" ; then
11386 CPPFLAGS="$CPPFLAGS -I$includedir"
11388 # note: $X_CFLAGS includes $x_includes
11389 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11391 if test \! -z "$libdir" ; then
11392 LDFLAGS="$LDFLAGS -L$libdir"
11394 # note: $X_LIBS includes $x_libraries
11395 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11397 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11398 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11399 { echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
11400 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6; }
11401 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 ac_check_lib_save_LIBS=$LIBS
11405 LIBS="-lXinerama -lXext -lX11 $LIBS"
11406 cat >conftest.$ac_ext <<_ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11413 /* Override any GCC internal prototype to avoid an error.
11414 Use char because int might match the return type of a GCC
11415 builtin and then its argument prototype would still apply. */
11419 char XineramaQueryScreens ();
11423 return XineramaQueryScreens ();
11428 rm -rf conftest.$ac_objext conftest$ac_exeext
11429 if { (ac_try="$ac_link"
11430 case "(($ac_try" in
11431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432 *) ac_try_echo=$ac_try;;
11434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435 (eval "$ac_link") 2>conftest.er1
11437 grep -v '^ *+' conftest.er1 >conftest.err
11438 rm -rf conftest.er1
11439 cat conftest.err >&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } && {
11442 test -z "$ac_c_werror_flag" ||
11443 test ! -s conftest.err
11444 } && test -s conftest$ac_exeext &&
11445 $as_test_x conftest$ac_exeext; then
11446 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
11448 echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11451 ac_cv_lib_Xinerama_XineramaQueryScreens=no
11454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11455 conftest$ac_exeext conftest.$ac_ext
11456 LIBS=$ac_check_lib_save_LIBS
11458 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
11459 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
11460 if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
11461 have_xinerama=yes; XINERAMA_LIBS="-lXinerama"
11466 CPPFLAGS="$ac_save_CPPFLAGS"
11467 LDFLAGS="$ac_save_LDFLAGS"
11468 # LIBS="$ac_save_LIBS"
11473 # if that succeeded, then we've really got it.
11474 if test "$have_xinerama" = yes; then
11475 cat >>confdefs.h <<\_ACEOF
11476 #define HAVE_XINERAMA 1
11481 elif test "$with_xinerama" != no; then
11482 echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
11487 ###############################################################################
11489 # Check for the XF86VMODE server extension (for virtual screens.)
11491 ###############################################################################
11494 with_xf86vmode_req=unspecified
11496 # Check whether --with-xf86vmode-ext was given.
11497 if test "${with_xf86vmode_ext+set}" = set; then
11498 withval=$with_xf86vmode_ext; with_xf86vmode="$withval"; with_xf86vmode_req="$withval"
11505 case "$with_xf86vmode" in
11510 { echo "$as_me:$LINENO: checking for xf86vmode headers" >&5
11511 echo $ECHO_N "checking for xf86vmode headers... $ECHO_C" >&6; }
11512 d=$with_xf86vmode/include
11513 if test -d $d; then
11514 X_CFLAGS="-I$d $X_CFLAGS"
11515 { echo "$as_me:$LINENO: result: $d" >&5
11516 echo "${ECHO_T}$d" >&6; }
11518 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11519 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
11522 { echo "$as_me:$LINENO: checking for xf86vmode libs" >&5
11523 echo $ECHO_N "checking for xf86vmode libs... $ECHO_C" >&6; }
11524 d=$with_xf86vmode/lib
11525 if test -d $d; then
11526 X_LIBS="-L$d $X_LIBS"
11527 { echo "$as_me:$LINENO: result: $d" >&5
11528 echo "${ECHO_T}$d" >&6; }
11530 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11531 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
11534 # replace the directory string with "yes".
11535 with_xf86vmode_req="yes"
11536 with_xf86vmode=$with_xf86vmode_req
11541 echo "error: argument to --with-xf86vmode-ext must be \"yes\", \"no\", or a directory."
11542 echo " If it is a directory, then \`DIR/include' will be added to"
11543 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11551 if test "$with_xf86vmode" = yes; then
11553 # first check for xf86vmode.h
11555 ac_save_CPPFLAGS="$CPPFLAGS"
11556 if test \! -z "$includedir" ; then
11557 CPPFLAGS="$CPPFLAGS -I$includedir"
11559 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11560 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11561 { echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
11562 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6; }
11563 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 cat >conftest.$ac_ext <<_ACEOF
11569 cat confdefs.h >>conftest.$ac_ext
11570 cat >>conftest.$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11572 #include <X11/Xlib.h>
11574 #include <X11/extensions/xf86vmode.h>
11576 rm -rf conftest.$ac_objext
11577 if { (ac_try="$ac_compile"
11578 case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_compile") 2>conftest.er1
11585 grep -v '^ *+' conftest.er1 >conftest.err
11586 rm -rf conftest.er1
11587 cat conftest.err >&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } && {
11590 test -z "$ac_c_werror_flag" ||
11591 test ! -s conftest.err
11592 } && test -s conftest.$ac_objext; then
11593 ac_cv_header_X11_extensions_xf86vmode_h=yes
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11598 ac_cv_header_X11_extensions_xf86vmode_h=no
11601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11603 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
11604 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6; }
11605 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
11610 CPPFLAGS="$ac_save_CPPFLAGS"
11612 # if that succeeded, then check for the -lXxf86vm
11613 if test "$have_xf86vmode" = yes; then
11616 ac_save_CPPFLAGS="$CPPFLAGS"
11617 ac_save_LDFLAGS="$LDFLAGS"
11618 # ac_save_LIBS="$LIBS"
11620 if test \! -z "$includedir" ; then
11621 CPPFLAGS="$CPPFLAGS -I$includedir"
11623 # note: $X_CFLAGS includes $x_includes
11624 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11626 if test \! -z "$libdir" ; then
11627 LDFLAGS="$LDFLAGS -L$libdir"
11629 # note: $X_LIBS includes $x_libraries
11630 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11632 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11633 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11634 { echo "$as_me:$LINENO: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
11635 echo $ECHO_N "checking for XF86VidModeGetViewPort in -lXxf86vm... $ECHO_C" >&6; }
11636 if test "${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+set}" = set; then
11637 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 ac_check_lib_save_LIBS=$LIBS
11640 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11641 cat >conftest.$ac_ext <<_ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11648 /* Override any GCC internal prototype to avoid an error.
11649 Use char because int might match the return type of a GCC
11650 builtin and then its argument prototype would still apply. */
11654 char XF86VidModeGetViewPort ();
11658 return XF86VidModeGetViewPort ();
11663 rm -rf conftest.$ac_objext conftest$ac_exeext
11664 if { (ac_try="$ac_link"
11665 case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_link") 2>conftest.er1
11672 grep -v '^ *+' conftest.er1 >conftest.err
11673 rm -rf conftest.er1
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } && {
11677 test -z "$ac_c_werror_flag" ||
11678 test ! -s conftest.err
11679 } && test -s conftest$ac_exeext &&
11680 $as_test_x conftest$ac_exeext; then
11681 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
11683 echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.$ac_ext >&5
11686 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=no
11689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11690 conftest$ac_exeext conftest.$ac_ext
11691 LIBS=$ac_check_lib_save_LIBS
11693 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&5
11694 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6; }
11695 if test $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort = yes; then
11696 have_xf86vmode=yes;
11697 VIDMODE_LIBS="-lXxf86vm";
11698 SAVER_LIBS="$SAVER_LIBS $VIDMODE_LIBS"
11703 CPPFLAGS="$ac_save_CPPFLAGS"
11704 LDFLAGS="$ac_save_LDFLAGS"
11705 # LIBS="$ac_save_LIBS"
11709 # if that succeeded, then we've really got it.
11710 if test "$have_xf86vmode" = yes; then
11711 cat >>confdefs.h <<\_ACEOF
11712 #define HAVE_XF86VMODE 1
11717 elif test "$with_xf86vmode" != no; then
11718 echo "error: must be yes or no: --with-xf86vmode-ext=$with_xf86vmode"
11723 ###############################################################################
11725 # Check for the XF86VMODE server extension (for gamma fading.)
11727 ###############################################################################
11730 have_xf86gamma_ramp=no
11731 with_xf86gamma_req=unspecified
11733 # Check whether --with-xf86gamma-ext was given.
11734 if test "${with_xf86gamma_ext+set}" = set; then
11735 withval=$with_xf86gamma_ext; with_xf86gamma="$withval"; with_xf86gamma_req="$withval"
11742 case "$with_xf86gamma" in
11747 { echo "$as_me:$LINENO: checking for xf86gamma headers" >&5
11748 echo $ECHO_N "checking for xf86gamma headers... $ECHO_C" >&6; }
11749 d=$with_xf86gamma/include
11750 if test -d $d; then
11751 X_CFLAGS="-I$d $X_CFLAGS"
11752 { echo "$as_me:$LINENO: result: $d" >&5
11753 echo "${ECHO_T}$d" >&6; }
11755 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11756 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
11759 { echo "$as_me:$LINENO: checking for xf86gamma libs" >&5
11760 echo $ECHO_N "checking for xf86gamma libs... $ECHO_C" >&6; }
11761 d=$with_xf86gamma/lib
11762 if test -d $d; then
11763 X_LIBS="-L$d $X_LIBS"
11764 { echo "$as_me:$LINENO: result: $d" >&5
11765 echo "${ECHO_T}$d" >&6; }
11767 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11768 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
11771 # replace the directory string with "yes".
11772 with_xf86gamma_req="yes"
11773 with_xf86gamma=$with_xf86gamma_req
11778 echo "error: argument to --with-xf86gamma-ext must be \"yes\", \"no\", or a directory."
11779 echo " If it is a directory, then \`DIR/include' will be added to"
11780 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11786 if test "$with_xf86gamma" = yes; then
11788 # first check for xf86vmode.h, if we haven't already
11789 if test "$have_xf86vmode" = yes; then
11793 ac_save_CPPFLAGS="$CPPFLAGS"
11794 if test \! -z "$includedir" ; then
11795 CPPFLAGS="$CPPFLAGS -I$includedir"
11797 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11798 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11799 { echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
11800 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6; }
11801 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
11802 echo $ECHO_N "(cached) $ECHO_C" >&6
11804 cat >conftest.$ac_ext <<_ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 #include <X11/Xlib.h>
11812 #include <X11/extensions/xf86vmode.h>
11814 rm -rf conftest.$ac_objext
11815 if { (ac_try="$ac_compile"
11816 case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_compile") 2>conftest.er1
11823 grep -v '^ *+' conftest.er1 >conftest.err
11824 rm -rf conftest.er1
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } && {
11828 test -z "$ac_c_werror_flag" ||
11829 test ! -s conftest.err
11830 } && test -s conftest.$ac_objext; then
11831 ac_cv_header_X11_extensions_xf86vmode_h=yes
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 ac_cv_header_X11_extensions_xf86vmode_h=no
11839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11841 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
11842 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6; }
11843 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
11848 CPPFLAGS="$ac_save_CPPFLAGS"
11851 # if that succeeded, then check for the -lXxf86vm
11852 if test "$have_xf86gamma" = yes; then
11855 ac_save_CPPFLAGS="$CPPFLAGS"
11856 ac_save_LDFLAGS="$LDFLAGS"
11857 # ac_save_LIBS="$LIBS"
11859 if test \! -z "$includedir" ; then
11860 CPPFLAGS="$CPPFLAGS -I$includedir"
11862 # note: $X_CFLAGS includes $x_includes
11863 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11865 if test \! -z "$libdir" ; then
11866 LDFLAGS="$LDFLAGS -L$libdir"
11868 # note: $X_LIBS includes $x_libraries
11869 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11871 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11872 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11873 { echo "$as_me:$LINENO: checking for XF86VidModeSetGamma in -lXxf86vm" >&5
11874 echo $ECHO_N "checking for XF86VidModeSetGamma in -lXxf86vm... $ECHO_C" >&6; }
11875 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGamma+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11878 ac_check_lib_save_LIBS=$LIBS
11879 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11880 cat >conftest.$ac_ext <<_ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11887 /* Override any GCC internal prototype to avoid an error.
11888 Use char because int might match the return type of a GCC
11889 builtin and then its argument prototype would still apply. */
11893 char XF86VidModeSetGamma ();
11897 return XF86VidModeSetGamma ();
11902 rm -rf conftest.$ac_objext conftest$ac_exeext
11903 if { (ac_try="$ac_link"
11904 case "(($ac_try" in
11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909 (eval "$ac_link") 2>conftest.er1
11911 grep -v '^ *+' conftest.er1 >conftest.err
11912 rm -rf conftest.er1
11913 cat conftest.err >&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } && {
11916 test -z "$ac_c_werror_flag" ||
11917 test ! -s conftest.err
11918 } && test -s conftest$ac_exeext &&
11919 $as_test_x conftest$ac_exeext; then
11920 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=yes
11922 echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11925 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=no
11928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11929 conftest$ac_exeext conftest.$ac_ext
11930 LIBS=$ac_check_lib_save_LIBS
11932 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&5
11933 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&6; }
11934 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma = yes; then
11940 CPPFLAGS="$ac_save_CPPFLAGS"
11941 LDFLAGS="$ac_save_LDFLAGS"
11942 # LIBS="$ac_save_LIBS"
11946 # check for the Ramp versions of the functions too.
11947 if test "$have_xf86gamma" = yes; then
11948 have_xf86gamma_ramp=no
11950 ac_save_CPPFLAGS="$CPPFLAGS"
11951 ac_save_LDFLAGS="$LDFLAGS"
11952 # ac_save_LIBS="$LIBS"
11954 if test \! -z "$includedir" ; then
11955 CPPFLAGS="$CPPFLAGS -I$includedir"
11957 # note: $X_CFLAGS includes $x_includes
11958 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11960 if test \! -z "$libdir" ; then
11961 LDFLAGS="$LDFLAGS -L$libdir"
11963 # note: $X_LIBS includes $x_libraries
11964 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11966 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11967 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11968 { echo "$as_me:$LINENO: checking for XF86VidModeSetGammaRamp in -lXxf86vm" >&5
11969 echo $ECHO_N "checking for XF86VidModeSetGammaRamp in -lXxf86vm... $ECHO_C" >&6; }
11970 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp+set}" = set; then
11971 echo $ECHO_N "(cached) $ECHO_C" >&6
11973 ac_check_lib_save_LIBS=$LIBS
11974 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11975 cat >conftest.$ac_ext <<_ACEOF
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11982 /* Override any GCC internal prototype to avoid an error.
11983 Use char because int might match the return type of a GCC
11984 builtin and then its argument prototype would still apply. */
11988 char XF86VidModeSetGammaRamp ();
11992 return XF86VidModeSetGammaRamp ();
11997 rm -rf conftest.$ac_objext conftest$ac_exeext
11998 if { (ac_try="$ac_link"
11999 case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 (eval "$ac_link") 2>conftest.er1
12006 grep -v '^ *+' conftest.er1 >conftest.err
12007 rm -rf conftest.er1
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } && {
12011 test -z "$ac_c_werror_flag" ||
12012 test ! -s conftest.err
12013 } && test -s conftest$ac_exeext &&
12014 $as_test_x conftest$ac_exeext; then
12015 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=yes
12017 echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12020 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=no
12023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12024 conftest$ac_exeext conftest.$ac_ext
12025 LIBS=$ac_check_lib_save_LIBS
12027 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&5
12028 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&6; }
12029 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp = yes; then
12030 have_xf86gamma_ramp=yes
12035 CPPFLAGS="$ac_save_CPPFLAGS"
12036 LDFLAGS="$ac_save_LDFLAGS"
12037 # LIBS="$ac_save_LIBS"
12041 # if those tests succeeded, then we've really got the functions.
12042 if test "$have_xf86gamma" = yes; then
12043 cat >>confdefs.h <<\_ACEOF
12044 #define HAVE_XF86VMODE_GAMMA 1
12049 if test "$have_xf86gamma_ramp" = yes; then
12050 cat >>confdefs.h <<\_ACEOF
12051 #define HAVE_XF86VMODE_GAMMA_RAMP 1
12056 # pull in the lib, if we haven't already
12057 if test "$have_xf86gamma" = yes -a "$have_xf86vmode" = no; then
12058 SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
12061 elif test "$with_xf86gamma" != no; then
12062 echo "error: must be yes or no: --with-xf86gamma-ext=$with_xf86vmode"
12067 ###############################################################################
12069 # Check for the RANDR (Resize and Rotate) server extension.
12071 # We need this to detect when the resolution of the desktop
12072 # has changed out from under us (this is a newer, different
12073 # mechanism than the XF86VMODE virtual viewports.)
12075 ###############################################################################
12078 with_randr_req=unspecified
12080 # Check whether --with-randr-ext was given.
12081 if test "${with_randr_ext+set}" = set; then
12082 withval=$with_randr_ext; with_randr="$withval"; with_randr_req="$withval"
12089 case "$with_randr" in
12094 { echo "$as_me:$LINENO: checking for RANDR headers" >&5
12095 echo $ECHO_N "checking for RANDR headers... $ECHO_C" >&6; }
12096 d=$with_randr/include
12097 if test -d $d; then
12098 X_CFLAGS="-I$d $X_CFLAGS"
12099 { echo "$as_me:$LINENO: result: $d" >&5
12100 echo "${ECHO_T}$d" >&6; }
12102 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12103 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
12106 { echo "$as_me:$LINENO: checking for RANDR libs" >&5
12107 echo $ECHO_N "checking for RANDR libs... $ECHO_C" >&6; }
12109 if test -d $d; then
12110 X_LIBS="-L$d $X_LIBS"
12111 { echo "$as_me:$LINENO: result: $d" >&5
12112 echo "${ECHO_T}$d" >&6; }
12114 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12115 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
12118 # replace the directory string with "yes".
12119 with_randr_req="yes"
12120 with_randr=$with_randr_req
12125 echo "error: argument to --with-randr-ext must be \"yes\", \"no\", or a directory."
12126 echo " If it is a directory, then \`DIR/include' will be added to"
12127 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12133 if test "$with_randr" = yes; then
12135 # first check for Xrandr.h
12137 ac_save_CPPFLAGS="$CPPFLAGS"
12138 if test \! -z "$includedir" ; then
12139 CPPFLAGS="$CPPFLAGS -I$includedir"
12141 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12142 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12143 { echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
12144 echo $ECHO_N "checking for X11/extensions/Xrandr.h... $ECHO_C" >&6; }
12145 if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
12146 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 cat >conftest.$ac_ext <<_ACEOF
12151 cat confdefs.h >>conftest.$ac_ext
12152 cat >>conftest.$ac_ext <<_ACEOF
12153 /* end confdefs.h. */
12154 #include <X11/Xlib.h>
12156 #include <X11/extensions/Xrandr.h>
12158 rm -rf conftest.$ac_objext
12159 if { (ac_try="$ac_compile"
12160 case "(($ac_try" in
12161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162 *) ac_try_echo=$ac_try;;
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165 (eval "$ac_compile") 2>conftest.er1
12167 grep -v '^ *+' conftest.er1 >conftest.err
12168 rm -rf conftest.er1
12169 cat conftest.err >&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } && {
12172 test -z "$ac_c_werror_flag" ||
12173 test ! -s conftest.err
12174 } && test -s conftest.$ac_objext; then
12175 ac_cv_header_X11_extensions_Xrandr_h=yes
12177 echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12180 ac_cv_header_X11_extensions_Xrandr_h=no
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12185 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
12186 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrandr_h" >&6; }
12187 if test $ac_cv_header_X11_extensions_Xrandr_h = yes; then
12192 CPPFLAGS="$ac_save_CPPFLAGS"
12194 # if that succeeded, then check for the XRR code in the libraries
12195 if test "$have_randr" = yes; then
12197 # RANDR probably needs -lXrender
12200 ac_save_CPPFLAGS="$CPPFLAGS"
12201 ac_save_LDFLAGS="$LDFLAGS"
12202 # ac_save_LIBS="$LIBS"
12204 if test \! -z "$includedir" ; then
12205 CPPFLAGS="$CPPFLAGS -I$includedir"
12207 # note: $X_CFLAGS includes $x_includes
12208 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12210 if test \! -z "$libdir" ; then
12211 LDFLAGS="$LDFLAGS -L$libdir"
12213 # note: $X_LIBS includes $x_libraries
12214 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12216 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12217 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12218 { echo "$as_me:$LINENO: checking for XRenderSetSubpixelOrder in -lXrender" >&5
12219 echo $ECHO_N "checking for XRenderSetSubpixelOrder in -lXrender... $ECHO_C" >&6; }
12220 if test "${ac_cv_lib_Xrender_XRenderSetSubpixelOrder+set}" = set; then
12221 echo $ECHO_N "(cached) $ECHO_C" >&6
12223 ac_check_lib_save_LIBS=$LIBS
12224 LIBS="-lXrender -lXext -lX11 $LIBS"
12225 cat >conftest.$ac_ext <<_ACEOF
12228 cat confdefs.h >>conftest.$ac_ext
12229 cat >>conftest.$ac_ext <<_ACEOF
12230 /* end confdefs.h. */
12232 /* Override any GCC internal prototype to avoid an error.
12233 Use char because int might match the return type of a GCC
12234 builtin and then its argument prototype would still apply. */
12238 char XRenderSetSubpixelOrder ();
12242 return XRenderSetSubpixelOrder ();
12247 rm -rf conftest.$ac_objext conftest$ac_exeext
12248 if { (ac_try="$ac_link"
12249 case "(($ac_try" in
12250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251 *) ac_try_echo=$ac_try;;
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254 (eval "$ac_link") 2>conftest.er1
12256 grep -v '^ *+' conftest.er1 >conftest.err
12257 rm -rf conftest.er1
12258 cat conftest.err >&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } && {
12261 test -z "$ac_c_werror_flag" ||
12262 test ! -s conftest.err
12263 } && test -s conftest$ac_exeext &&
12264 $as_test_x conftest$ac_exeext; then
12265 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=yes
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12270 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=no
12273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12274 conftest$ac_exeext conftest.$ac_ext
12275 LIBS=$ac_check_lib_save_LIBS
12277 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&5
12278 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&6; }
12279 if test $ac_cv_lib_Xrender_XRenderSetSubpixelOrder = yes; then
12280 xrender_libs="-lXrender"
12285 CPPFLAGS="$ac_save_CPPFLAGS"
12286 LDFLAGS="$ac_save_LDFLAGS"
12287 # LIBS="$ac_save_LIBS"
12290 # first look for RANDR in -lXext
12293 ac_save_CPPFLAGS="$CPPFLAGS"
12294 ac_save_LDFLAGS="$LDFLAGS"
12295 # ac_save_LIBS="$LIBS"
12297 if test \! -z "$includedir" ; then
12298 CPPFLAGS="$CPPFLAGS -I$includedir"
12300 # note: $X_CFLAGS includes $x_includes
12301 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12303 if test \! -z "$libdir" ; then
12304 LDFLAGS="$LDFLAGS -L$libdir"
12306 # note: $X_LIBS includes $x_libraries
12307 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12309 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12310 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12311 { echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXext" >&5
12312 echo $ECHO_N "checking for XRRGetScreenInfo in -lXext... $ECHO_C" >&6; }
12313 if test "${ac_cv_lib_Xext_XRRGetScreenInfo+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 ac_check_lib_save_LIBS=$LIBS
12317 LIBS="-lXext $xrender_libs -lXext -lX11 $LIBS"
12318 cat >conftest.$ac_ext <<_ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h. */
12325 /* Override any GCC internal prototype to avoid an error.
12326 Use char because int might match the return type of a GCC
12327 builtin and then its argument prototype would still apply. */
12331 char XRRGetScreenInfo ();
12335 return XRRGetScreenInfo ();
12340 rm -rf conftest.$ac_objext conftest$ac_exeext
12341 if { (ac_try="$ac_link"
12342 case "(($ac_try" in
12343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344 *) ac_try_echo=$ac_try;;
12346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12347 (eval "$ac_link") 2>conftest.er1
12349 grep -v '^ *+' conftest.er1 >conftest.err
12350 rm -rf conftest.er1
12351 cat conftest.err >&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } && {
12354 test -z "$ac_c_werror_flag" ||
12355 test ! -s conftest.err
12356 } && test -s conftest$ac_exeext &&
12357 $as_test_x conftest$ac_exeext; then
12358 ac_cv_lib_Xext_XRRGetScreenInfo=yes
12360 echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12363 ac_cv_lib_Xext_XRRGetScreenInfo=no
12366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12367 conftest$ac_exeext conftest.$ac_ext
12368 LIBS=$ac_check_lib_save_LIBS
12370 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XRRGetScreenInfo" >&5
12371 echo "${ECHO_T}$ac_cv_lib_Xext_XRRGetScreenInfo" >&6; }
12372 if test $ac_cv_lib_Xext_XRRGetScreenInfo = yes; then
12373 have_randr=yes; SAVER_LIBS="$SAVER_LIBS $xrender_libs"
12378 CPPFLAGS="$ac_save_CPPFLAGS"
12379 LDFLAGS="$ac_save_LDFLAGS"
12380 # LIBS="$ac_save_LIBS"
12383 # if that failed, look in -lXrandr
12384 if test "$have_randr" = no; then
12386 ac_save_CPPFLAGS="$CPPFLAGS"
12387 ac_save_LDFLAGS="$LDFLAGS"
12388 # ac_save_LIBS="$LIBS"
12390 if test \! -z "$includedir" ; then
12391 CPPFLAGS="$CPPFLAGS -I$includedir"
12393 # note: $X_CFLAGS includes $x_includes
12394 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12396 if test \! -z "$libdir" ; then
12397 LDFLAGS="$LDFLAGS -L$libdir"
12399 # note: $X_LIBS includes $x_libraries
12400 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12402 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12403 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12404 { echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXrandr" >&5
12405 echo $ECHO_N "checking for XRRGetScreenInfo in -lXrandr... $ECHO_C" >&6; }
12406 if test "${ac_cv_lib_Xrandr_XRRGetScreenInfo+set}" = set; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12409 ac_check_lib_save_LIBS=$LIBS
12410 LIBS="-lXrandr $xrender_libs -lXext -lX11 $LIBS"
12411 cat >conftest.$ac_ext <<_ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12418 /* Override any GCC internal prototype to avoid an error.
12419 Use char because int might match the return type of a GCC
12420 builtin and then its argument prototype would still apply. */
12424 char XRRGetScreenInfo ();
12428 return XRRGetScreenInfo ();
12433 rm -rf conftest.$ac_objext conftest$ac_exeext
12434 if { (ac_try="$ac_link"
12435 case "(($ac_try" in
12436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12437 *) ac_try_echo=$ac_try;;
12439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12440 (eval "$ac_link") 2>conftest.er1
12442 grep -v '^ *+' conftest.er1 >conftest.err
12443 rm -rf conftest.er1
12444 cat conftest.err >&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } && {
12447 test -z "$ac_c_werror_flag" ||
12448 test ! -s conftest.err
12449 } && test -s conftest$ac_exeext &&
12450 $as_test_x conftest$ac_exeext; then
12451 ac_cv_lib_Xrandr_XRRGetScreenInfo=yes
12453 echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12456 ac_cv_lib_Xrandr_XRRGetScreenInfo=no
12459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12460 conftest$ac_exeext conftest.$ac_ext
12461 LIBS=$ac_check_lib_save_LIBS
12463 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRGetScreenInfo" >&5
12464 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRGetScreenInfo" >&6; }
12465 if test $ac_cv_lib_Xrandr_XRRGetScreenInfo = yes; then
12466 have_randr=yes; SAVER_LIBS="$SAVER_LIBS -lXrandr $xrender_libs"
12471 CPPFLAGS="$ac_save_CPPFLAGS"
12472 LDFLAGS="$ac_save_LDFLAGS"
12473 # LIBS="$ac_save_LIBS"
12478 # if that succeeded, then we've really got it.
12479 if test "$have_randr" = yes; then
12480 cat >>confdefs.h <<\_ACEOF
12481 #define HAVE_RANDR 1
12485 # Now check for version 1.2 in the same libs.
12487 ac_save_CPPFLAGS="$CPPFLAGS"
12488 ac_save_LDFLAGS="$LDFLAGS"
12489 # ac_save_LIBS="$LIBS"
12491 if test \! -z "$includedir" ; then
12492 CPPFLAGS="$CPPFLAGS -I$includedir"
12494 # note: $X_CFLAGS includes $x_includes
12495 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12497 if test \! -z "$libdir" ; then
12498 LDFLAGS="$LDFLAGS -L$libdir"
12500 # note: $X_LIBS includes $x_libraries
12501 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12503 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12504 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12505 { echo "$as_me:$LINENO: checking for XRRGetOutputInfo in -lc" >&5
12506 echo $ECHO_N "checking for XRRGetOutputInfo in -lc... $ECHO_C" >&6; }
12507 if test "${ac_cv_lib_c_XRRGetOutputInfo+set}" = set; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 ac_check_lib_save_LIBS=$LIBS
12511 LIBS="-lc $SAVER_LIBS $LIBS"
12512 cat >conftest.$ac_ext <<_ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12519 /* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */
12525 char XRRGetOutputInfo ();
12529 return XRRGetOutputInfo ();
12534 rm -rf conftest.$ac_objext conftest$ac_exeext
12535 if { (ac_try="$ac_link"
12536 case "(($ac_try" in
12537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538 *) ac_try_echo=$ac_try;;
12540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541 (eval "$ac_link") 2>conftest.er1
12543 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -rf conftest.er1
12545 cat conftest.err >&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } && {
12548 test -z "$ac_c_werror_flag" ||
12549 test ! -s conftest.err
12550 } && test -s conftest$ac_exeext &&
12551 $as_test_x conftest$ac_exeext; then
12552 ac_cv_lib_c_XRRGetOutputInfo=yes
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12557 ac_cv_lib_c_XRRGetOutputInfo=no
12560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12561 conftest$ac_exeext conftest.$ac_ext
12562 LIBS=$ac_check_lib_save_LIBS
12564 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_XRRGetOutputInfo" >&5
12565 echo "${ECHO_T}$ac_cv_lib_c_XRRGetOutputInfo" >&6; }
12566 if test $ac_cv_lib_c_XRRGetOutputInfo = yes; then
12567 cat >>confdefs.h <<\_ACEOF
12568 #define HAVE_RANDR_12 1
12575 CPPFLAGS="$ac_save_CPPFLAGS"
12576 LDFLAGS="$ac_save_LDFLAGS"
12577 # LIBS="$ac_save_LIBS"
12582 elif test "$with_randr" != no; then
12583 echo "error: must be yes or no: --with-randr-ext=$with_randr"
12588 ###############################################################################
12590 # Check for XF86MiscSetGrabKeysState (but only bother if we are already
12591 # using other XF86 stuff.)
12593 ###############################################################################
12595 have_xf86miscsetgrabkeysstate=no
12596 if test "$have_xf86gamma" = yes -o "$have_xf86vmode" = yes; then
12598 ac_save_CPPFLAGS="$CPPFLAGS"
12599 ac_save_LDFLAGS="$LDFLAGS"
12600 # ac_save_LIBS="$LIBS"
12602 if test \! -z "$includedir" ; then
12603 CPPFLAGS="$CPPFLAGS -I$includedir"
12605 # note: $X_CFLAGS includes $x_includes
12606 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12608 if test \! -z "$libdir" ; then
12609 LDFLAGS="$LDFLAGS -L$libdir"
12611 # note: $X_LIBS includes $x_libraries
12612 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12614 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12615 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12616 { echo "$as_me:$LINENO: checking for XF86MiscSetGrabKeysState in -lXxf86misc" >&5
12617 echo $ECHO_N "checking for XF86MiscSetGrabKeysState in -lXxf86misc... $ECHO_C" >&6; }
12618 if test "${ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState+set}" = set; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12621 ac_check_lib_save_LIBS=$LIBS
12622 LIBS="-lXxf86misc -lXext -lX11 $LIBS"
12623 cat >conftest.$ac_ext <<_ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12630 /* Override any GCC internal prototype to avoid an error.
12631 Use char because int might match the return type of a GCC
12632 builtin and then its argument prototype would still apply. */
12636 char XF86MiscSetGrabKeysState ();
12640 return XF86MiscSetGrabKeysState ();
12645 rm -rf conftest.$ac_objext conftest$ac_exeext
12646 if { (ac_try="$ac_link"
12647 case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_link") 2>conftest.er1
12654 grep -v '^ *+' conftest.er1 >conftest.err
12655 rm -rf conftest.er1
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } && {
12659 test -z "$ac_c_werror_flag" ||
12660 test ! -s conftest.err
12661 } && test -s conftest$ac_exeext &&
12662 $as_test_x conftest$ac_exeext; then
12663 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=yes
12665 echo "$as_me: failed program was:" >&5
12666 sed 's/^/| /' conftest.$ac_ext >&5
12668 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=no
12671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12672 conftest$ac_exeext conftest.$ac_ext
12673 LIBS=$ac_check_lib_save_LIBS
12675 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&5
12676 echo "${ECHO_T}$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&6; }
12677 if test $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState = yes; then
12678 have_xf86miscsetgrabkeysstate=yes
12683 CPPFLAGS="$ac_save_CPPFLAGS"
12684 LDFLAGS="$ac_save_LDFLAGS"
12685 # LIBS="$ac_save_LIBS"
12687 if test "$have_xf86miscsetgrabkeysstate" = yes ; then
12688 SAVER_LIBS="$SAVER_LIBS -lXxf86misc"
12689 cat >>confdefs.h <<\_ACEOF
12690 #define HAVE_XF86MISCSETGRABKEYSSTATE 1
12697 ###############################################################################
12699 # Check for HP XHPDisableReset and XHPEnableReset.
12701 ###############################################################################
12703 { echo "$as_me:$LINENO: checking for XHPDisableReset in X11/XHPlib.h" >&5
12704 echo $ECHO_N "checking for XHPDisableReset in X11/XHPlib.h... $ECHO_C" >&6; }
12706 ac_save_CPPFLAGS="$CPPFLAGS"
12707 if test \! -z "$includedir" ; then
12708 CPPFLAGS="$CPPFLAGS -I$includedir"
12710 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12711 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12712 cat >conftest.$ac_ext <<_ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12718 #include <X11/XHPlib.h>
12721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12722 $EGREP "XHPDisableReset" >/dev/null 2>&1; then
12723 cat >>confdefs.h <<\_ACEOF
12724 #define HAVE_XHPDISABLERESET 1
12727 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
12728 { echo "$as_me:$LINENO: result: yes" >&5
12729 echo "${ECHO_T}yes" >&6; }
12731 { echo "$as_me:$LINENO: result: no" >&5
12732 echo "${ECHO_T}no" >&6; }
12736 CPPFLAGS="$ac_save_CPPFLAGS"
12739 ###############################################################################
12741 # Check for /proc/interrupts.
12743 ###############################################################################
12745 have_proc_interrupts=no
12746 with_proc_interrupts_req=unspecified
12748 # Check whether --with-proc-interrupts was given.
12749 if test "${with_proc_interrupts+set}" = set; then
12750 withval=$with_proc_interrupts; with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
12752 with_proc_interrupts=yes
12756 if test "$with_proc_interrupts" = yes; then
12758 # Note that we may be building in an environment (e.g. Debian buildd chroot)
12759 # without a proper /proc filesystem. If /proc/interrupts exists, then we'll
12760 # check that it has the bits we need, but otherwise we'll just go on faith.
12762 have_proc_interrupts=yes
12764 if test -f /proc/interrupts; then
12765 { echo "$as_me:$LINENO: checking whether /proc/interrupts contains keyboard data" >&5
12766 echo $ECHO_N "checking whether /proc/interrupts contains keyboard data... $ECHO_C" >&6; }
12767 if test "${ac_cv_have_proc_interrupts+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12770 ac_cv_have_proc_interrupts=no
12771 if grep 'keyboard\|i8042' /proc/interrupts >/dev/null 2>&1 ; then
12772 ac_cv_have_proc_interrupts=yes
12776 { echo "$as_me:$LINENO: result: $ac_cv_have_proc_interrupts" >&5
12777 echo "${ECHO_T}$ac_cv_have_proc_interrupts" >&6; }
12778 have_proc_interrupts=$ac_cv_have_proc_interrupts
12781 if test "$have_proc_interrupts" = yes; then
12782 cat >>confdefs.h <<\_ACEOF
12783 #define HAVE_PROC_INTERRUPTS 1
12788 elif test "$with_proc_interrupts" != no; then
12789 echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
12794 ###############################################################################
12796 # The --enable-locking option
12798 ###############################################################################
12800 # Check whether --enable-locking was given.
12801 if test "${enable_locking+set}" = set; then
12802 enableval=$enable_locking; enable_locking="$enableval"
12804 if test "$ac_macosx" = yes; then
12805 # We can't lock on MacOS X, so default to not compiling in support for it.
12806 # But allow --enable-locking to override that, so I can debug Linux locking
12814 if test "$enable_locking" = yes; then
12816 elif test "$enable_locking" = no; then
12817 cat >>confdefs.h <<\_ACEOF
12818 #define NO_LOCKING 1
12822 echo "error: must be yes or no: --enable-locking=$enable_locking"
12827 ###############################################################################
12829 # Whether to allow root password to unblank.
12831 ###############################################################################
12832 # Check whether --enable-root-passwd was given.
12833 if test "${enable_root_passwd+set}" = set; then
12834 enableval=$enable_root_passwd; enable_root_passwd="$enableval"
12836 enable_root_passwd=yes
12839 if test "$enable_root_passwd" = yes; then
12840 cat >>confdefs.h <<\_ACEOF
12841 #define ALLOW_ROOT_PASSWD 1
12845 elif test "$enable_root_passwd" != no; then
12846 echo "error: must be yes or no: --enable-root-passwd=$enable_root_passwd"
12850 ###############################################################################
12854 ###############################################################################
12858 # Solaris systems tend to come with PAM misconfigured.
12859 # Don't build it by default, even if the headers exist.
12860 with_pam_default=no
12863 # Default to building PAM support on all other systems, if it exists.
12864 with_pam_default=yes
12869 with_pam_req=unspecified
12872 # Check whether --with-pam was given.
12873 if test "${with_pam+set}" = set; then
12874 withval=$with_pam; with_pam="$withval"; with_pam_req="$withval"
12876 with_pam=$with_pam_default
12881 # Check whether --with-pam_service_name was given.
12882 if test "${with_pam_service_name+set}" = set; then
12883 withval=$with_pam_service_name; pam_service_name="$withval"
12885 pam_service_name="xscreensaver"
12890 case "$with_pam" in
12895 { echo "$as_me:$LINENO: checking for PAM headers" >&5
12896 echo $ECHO_N "checking for PAM headers... $ECHO_C" >&6; }
12897 d=$with_pam/include
12898 if test -d $d; then
12899 X_CFLAGS="-I$d $X_CFLAGS"
12900 { echo "$as_me:$LINENO: result: $d" >&5
12901 echo "${ECHO_T}$d" >&6; }
12903 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12904 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
12907 { echo "$as_me:$LINENO: checking for PAM libs" >&5
12908 echo $ECHO_N "checking for PAM libs... $ECHO_C" >&6; }
12910 if test -d $d; then
12911 X_LIBS="-L$d $X_LIBS"
12912 { echo "$as_me:$LINENO: result: $d" >&5
12913 echo "${ECHO_T}$d" >&6; }
12915 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12916 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
12919 # replace the directory string with "yes".
12921 with_pam=$with_pam_req
12926 echo "error: argument to --with-pam must be \"yes\", \"no\", or a directory."
12927 echo " If it is a directory, then \`DIR/include' will be added to"
12928 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12934 if test "$enable_locking" = yes -a "$with_pam" = yes; then
12935 { echo "$as_me:$LINENO: checking for PAM" >&5
12936 echo $ECHO_N "checking for PAM... $ECHO_C" >&6; }
12937 if test "${ac_cv_pam+set}" = set; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12941 ac_save_CPPFLAGS="$CPPFLAGS"
12942 if test \! -z "$includedir" ; then
12943 CPPFLAGS="$CPPFLAGS -I$includedir"
12945 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12946 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12947 cat >conftest.$ac_ext <<_ACEOF
12950 cat confdefs.h >>conftest.$ac_ext
12951 cat >>conftest.$ac_ext <<_ACEOF
12952 /* end confdefs.h. */
12953 #include <security/pam_appl.h>
12962 rm -rf conftest.$ac_objext
12963 if { (ac_try="$ac_compile"
12964 case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_compile") 2>conftest.er1
12971 grep -v '^ *+' conftest.er1 >conftest.err
12972 rm -rf conftest.er1
12973 cat conftest.err >&5
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); } && {
12976 test -z "$ac_c_werror_flag" ||
12977 test ! -s conftest.err
12978 } && test -s conftest.$ac_objext; then
12981 echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12988 CPPFLAGS="$ac_save_CPPFLAGS"
12990 { echo "$as_me:$LINENO: result: $ac_cv_pam" >&5
12991 echo "${ECHO_T}$ac_cv_pam" >&6; }
12992 if test "$ac_cv_pam" = yes ; then
12994 cat >>confdefs.h <<\_ACEOF
12998 cat >>confdefs.h <<_ACEOF
12999 #define PAM_SERVICE_NAME "$pam_service_name"
13003 PASSWD_LIBS="${PASSWD_LIBS} -lpam"
13005 # libpam typically requires dlopen and dlsym. On FreeBSD,
13006 # those are in libc. On Linux and Solaris, they're in libdl.
13007 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13008 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13009 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13012 ac_check_lib_save_LIBS=$LIBS
13014 cat >conftest.$ac_ext <<_ACEOF
13017 cat confdefs.h >>conftest.$ac_ext
13018 cat >>conftest.$ac_ext <<_ACEOF
13019 /* end confdefs.h. */
13021 /* Override any GCC internal prototype to avoid an error.
13022 Use char because int might match the return type of a GCC
13023 builtin and then its argument prototype would still apply. */
13036 rm -rf conftest.$ac_objext conftest$ac_exeext
13037 if { (ac_try="$ac_link"
13038 case "(($ac_try" in
13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040 *) ac_try_echo=$ac_try;;
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043 (eval "$ac_link") 2>conftest.er1
13045 grep -v '^ *+' conftest.er1 >conftest.err
13046 rm -rf conftest.er1
13047 cat conftest.err >&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } && {
13050 test -z "$ac_c_werror_flag" ||
13051 test ! -s conftest.err
13052 } && test -s conftest$ac_exeext &&
13053 $as_test_x conftest$ac_exeext; then
13054 ac_cv_lib_dl_dlopen=yes
13056 echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13059 ac_cv_lib_dl_dlopen=no
13062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13063 conftest$ac_exeext conftest.$ac_ext
13064 LIBS=$ac_check_lib_save_LIBS
13066 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13067 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13068 if test $ac_cv_lib_dl_dlopen = yes; then
13069 PASSWD_LIBS="${PASSWD_LIBS} -ldl"
13073 # On Linux, sigtimedwait() is in libc; on Solaris, it's in librt.
13075 { echo "$as_me:$LINENO: checking for sigtimedwait in -lc" >&5
13076 echo $ECHO_N "checking for sigtimedwait in -lc... $ECHO_C" >&6; }
13077 if test "${ac_cv_lib_c_sigtimedwait+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 ac_check_lib_save_LIBS=$LIBS
13082 cat >conftest.$ac_ext <<_ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
13089 /* Override any GCC internal prototype to avoid an error.
13090 Use char because int might match the return type of a GCC
13091 builtin and then its argument prototype would still apply. */
13095 char sigtimedwait ();
13099 return sigtimedwait ();
13104 rm -rf conftest.$ac_objext conftest$ac_exeext
13105 if { (ac_try="$ac_link"
13106 case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_link") 2>conftest.er1
13113 grep -v '^ *+' conftest.er1 >conftest.err
13114 rm -rf conftest.er1
13115 cat conftest.err >&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } && {
13118 test -z "$ac_c_werror_flag" ||
13119 test ! -s conftest.err
13120 } && test -s conftest$ac_exeext &&
13121 $as_test_x conftest$ac_exeext; then
13122 ac_cv_lib_c_sigtimedwait=yes
13124 echo "$as_me: failed program was:" >&5
13125 sed 's/^/| /' conftest.$ac_ext >&5
13127 ac_cv_lib_c_sigtimedwait=no
13130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13131 conftest$ac_exeext conftest.$ac_ext
13132 LIBS=$ac_check_lib_save_LIBS
13134 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigtimedwait" >&5
13135 echo "${ECHO_T}$ac_cv_lib_c_sigtimedwait" >&6; }
13136 if test $ac_cv_lib_c_sigtimedwait = yes; then
13138 cat >>confdefs.h <<\_ACEOF
13139 #define HAVE_SIGTIMEDWAIT 1
13144 if test "$have_timedwait" = no ; then
13145 { echo "$as_me:$LINENO: checking for sigtimedwait in -lrt" >&5
13146 echo $ECHO_N "checking for sigtimedwait in -lrt... $ECHO_C" >&6; }
13147 if test "${ac_cv_lib_rt_sigtimedwait+set}" = set; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13150 ac_check_lib_save_LIBS=$LIBS
13152 cat >conftest.$ac_ext <<_ACEOF
13155 cat confdefs.h >>conftest.$ac_ext
13156 cat >>conftest.$ac_ext <<_ACEOF
13157 /* end confdefs.h. */
13159 /* Override any GCC internal prototype to avoid an error.
13160 Use char because int might match the return type of a GCC
13161 builtin and then its argument prototype would still apply. */
13165 char sigtimedwait ();
13169 return sigtimedwait ();
13174 rm -rf conftest.$ac_objext conftest$ac_exeext
13175 if { (ac_try="$ac_link"
13176 case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181 (eval "$ac_link") 2>conftest.er1
13183 grep -v '^ *+' conftest.er1 >conftest.err
13184 rm -rf conftest.er1
13185 cat conftest.err >&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } && {
13188 test -z "$ac_c_werror_flag" ||
13189 test ! -s conftest.err
13190 } && test -s conftest$ac_exeext &&
13191 $as_test_x conftest$ac_exeext; then
13192 ac_cv_lib_rt_sigtimedwait=yes
13194 echo "$as_me: failed program was:" >&5
13195 sed 's/^/| /' conftest.$ac_ext >&5
13197 ac_cv_lib_rt_sigtimedwait=no
13200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13201 conftest$ac_exeext conftest.$ac_ext
13202 LIBS=$ac_check_lib_save_LIBS
13204 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sigtimedwait" >&5
13205 echo "${ECHO_T}$ac_cv_lib_rt_sigtimedwait" >&6; }
13206 if test $ac_cv_lib_rt_sigtimedwait = yes; then
13208 cat >>confdefs.h <<\_ACEOF
13209 #define HAVE_SIGTIMEDWAIT 1
13212 PASSWD_LIBS="${PASSWD_LIBS} -lrt"
13217 { echo "$as_me:$LINENO: checking how to call pam_strerror" >&5
13218 echo $ECHO_N "checking how to call pam_strerror... $ECHO_C" >&6; }
13219 if test "${ac_cv_pam_strerror_args+set}" = set; then
13220 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 ac_save_CPPFLAGS="$CPPFLAGS"
13224 if test \! -z "$includedir" ; then
13225 CPPFLAGS="$CPPFLAGS -I$includedir"
13227 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13228 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13229 cat >conftest.$ac_ext <<_ACEOF
13232 cat confdefs.h >>conftest.$ac_ext
13233 cat >>conftest.$ac_ext <<_ACEOF
13234 /* end confdefs.h. */
13236 #include <stdlib.h>
13237 #include <security/pam_appl.h>
13241 pam_handle_t *pamh = 0;
13242 char *s = pam_strerror(pamh, PAM_SUCCESS);
13247 rm -rf conftest.$ac_objext
13248 if { (ac_try="$ac_compile"
13249 case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_compile") 2>conftest.er1
13256 grep -v '^ *+' conftest.er1 >conftest.err
13257 rm -rf conftest.er1
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } && {
13261 test -z "$ac_c_werror_flag" ||
13262 test ! -s conftest.err
13263 } && test -s conftest.$ac_objext; then
13264 ac_pam_strerror_args=2
13266 echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13270 ac_save_CPPFLAGS="$CPPFLAGS"
13271 if test \! -z "$includedir" ; then
13272 CPPFLAGS="$CPPFLAGS -I$includedir"
13274 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13275 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13276 cat >conftest.$ac_ext <<_ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13283 #include <stdlib.h>
13284 #include <security/pam_appl.h>
13289 pam_strerror(PAM_SUCCESS);
13294 rm -rf conftest.$ac_objext
13295 if { (ac_try="$ac_compile"
13296 case "(($ac_try" in
13297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298 *) ac_try_echo=$ac_try;;
13300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13301 (eval "$ac_compile") 2>conftest.er1
13303 grep -v '^ *+' conftest.er1 >conftest.err
13304 rm -rf conftest.er1
13305 cat conftest.err >&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } && {
13308 test -z "$ac_c_werror_flag" ||
13309 test ! -s conftest.err
13310 } && test -s conftest.$ac_objext; then
13311 ac_pam_strerror_args=1
13313 echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13316 ac_pam_strerror_args=0
13319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13320 CPPFLAGS="$ac_save_CPPFLAGS"
13323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13324 CPPFLAGS="$ac_save_CPPFLAGS"
13325 ac_cv_pam_strerror_args=$ac_pam_strerror_args
13328 ac_pam_strerror_args=$ac_cv_pam_strerror_args
13329 if test "$ac_pam_strerror_args" = 1 ; then
13330 { echo "$as_me:$LINENO: result: one argument" >&5
13331 echo "${ECHO_T}one argument" >&6; }
13332 elif test "$ac_pam_strerror_args" = 2 ; then
13333 cat >>confdefs.h <<\_ACEOF
13334 #define PAM_STRERROR_TWO_ARGS 1
13337 { echo "$as_me:$LINENO: result: two arguments" >&5
13338 echo "${ECHO_T}two arguments" >&6; }
13340 { echo "$as_me:$LINENO: result: unknown" >&5
13341 echo "${ECHO_T}unknown" >&6; }
13344 # Check pam_fail_delay
13345 { echo "$as_me:$LINENO: checking pam_fail_delay in -lpam" >&5
13346 echo $ECHO_N "checking pam_fail_delay in -lpam... $ECHO_C" >&6; }
13347 if test "${ac_cv_pam_fail_delay+set}" = set; then
13348 echo $ECHO_N "(cached) $ECHO_C" >&6
13350 ac_save_LDFLAGS="$LDFLAGS"
13352 cat >conftest.$ac_ext <<_ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13358 #include <security/pam_appl.h>
13362 pam_handle_t *pamh = 0;
13363 unsigned int usec = 1;
13364 int status = pam_fail_delay (pamh, usec);
13369 rm -rf conftest.$ac_objext conftest$ac_exeext
13370 if { (ac_try="$ac_link"
13371 case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_link") 2>conftest.er1
13378 grep -v '^ *+' conftest.er1 >conftest.err
13379 rm -rf conftest.er1
13380 cat conftest.err >&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } && {
13383 test -z "$ac_c_werror_flag" ||
13384 test ! -s conftest.err
13385 } && test -s conftest$ac_exeext &&
13386 $as_test_x conftest$ac_exeext; then
13387 ac_pam_fail_delay=yes
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 ac_pam_fail_delay=no
13395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13396 conftest$ac_exeext conftest.$ac_ext
13397 ac_cv_pam_fail_delay=$ac_pam_fail_delay,
13398 LDFLAGS=$ac_save_LDFLAGS
13402 if test "$ac_pam_fail_delay" = yes ; then
13403 { echo "$as_me:$LINENO: result: yes" >&5
13404 echo "${ECHO_T}yes" >&6; }
13405 cat >>confdefs.h <<\_ACEOF
13406 #define HAVE_PAM_FAIL_DELAY 1
13410 { echo "$as_me:$LINENO: result: no" >&5
13411 echo "${ECHO_T}no" >&6; }
13418 ###############################################################################
13420 # Check for Kerberos.
13422 ###############################################################################
13426 with_kerberos_req=unspecified
13429 # Check whether --with-kerberos was given.
13430 if test "${with_kerberos+set}" = set; then
13431 withval=$with_kerberos; with_kerberos="$withval"; with_kerberos_req="$withval"
13438 case "$with_kerberos" in
13443 { echo "$as_me:$LINENO: checking for Kerberos headers" >&5
13444 echo $ECHO_N "checking for Kerberos headers... $ECHO_C" >&6; }
13445 d=$with_kerberos/include
13446 if test -d $d; then
13447 X_CFLAGS="-I$d $X_CFLAGS"
13448 { echo "$as_me:$LINENO: result: $d" >&5
13449 echo "${ECHO_T}$d" >&6; }
13451 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13452 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
13455 { echo "$as_me:$LINENO: checking for Kerberos libs" >&5
13456 echo $ECHO_N "checking for Kerberos libs... $ECHO_C" >&6; }
13457 d=$with_kerberos/lib
13458 if test -d $d; then
13459 X_LIBS="-L$d $X_LIBS"
13460 { echo "$as_me:$LINENO: result: $d" >&5
13461 echo "${ECHO_T}$d" >&6; }
13463 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13464 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
13467 # replace the directory string with "yes".
13468 with_kerberos_req="yes"
13469 with_kerberos=$with_kerberos_req
13474 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
13475 echo " If it is a directory, then \`DIR/include' will be added to"
13476 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13482 if test "$enable_locking" = yes -a "$with_kerberos" = yes; then
13483 { echo "$as_me:$LINENO: checking for Kerberos 4" >&5
13484 echo $ECHO_N "checking for Kerberos 4... $ECHO_C" >&6; }
13485 if test "${ac_cv_kerberos+set}" = set; then
13486 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 ac_save_CPPFLAGS="$CPPFLAGS"
13490 if test \! -z "$includedir" ; then
13491 CPPFLAGS="$CPPFLAGS -I$includedir"
13493 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13494 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13495 cat >conftest.$ac_ext <<_ACEOF
13498 cat confdefs.h >>conftest.$ac_ext
13499 cat >>conftest.$ac_ext <<_ACEOF
13500 /* end confdefs.h. */
13510 rm -rf conftest.$ac_objext
13511 if { (ac_try="$ac_compile"
13512 case "(($ac_try" in
13513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13514 *) ac_try_echo=$ac_try;;
13516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13517 (eval "$ac_compile") 2>conftest.er1
13519 grep -v '^ *+' conftest.er1 >conftest.err
13520 rm -rf conftest.er1
13521 cat conftest.err >&5
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); } && {
13524 test -z "$ac_c_werror_flag" ||
13525 test ! -s conftest.err
13526 } && test -s conftest.$ac_objext; then
13529 echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13536 CPPFLAGS="$ac_save_CPPFLAGS"
13538 { echo "$as_me:$LINENO: result: $ac_cv_kerberos" >&5
13539 echo "${ECHO_T}$ac_cv_kerberos" >&6; }
13540 { echo "$as_me:$LINENO: checking for Kerberos 5" >&5
13541 echo $ECHO_N "checking for Kerberos 5... $ECHO_C" >&6; }
13542 if test "${ac_cv_kerberos5+set}" = set; then
13543 echo $ECHO_N "(cached) $ECHO_C" >&6
13546 ac_save_CPPFLAGS="$CPPFLAGS"
13547 if test \! -z "$includedir" ; then
13548 CPPFLAGS="$CPPFLAGS -I$includedir"
13550 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13551 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13552 cat >conftest.$ac_ext <<_ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 #include <kerberosIV/krb.h>
13567 rm -rf conftest.$ac_objext
13568 if { (ac_try="$ac_compile"
13569 case "(($ac_try" in
13570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13571 *) ac_try_echo=$ac_try;;
13573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13574 (eval "$ac_compile") 2>conftest.er1
13576 grep -v '^ *+' conftest.er1 >conftest.err
13577 rm -rf conftest.er1
13578 cat conftest.err >&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } && {
13581 test -z "$ac_c_werror_flag" ||
13582 test ! -s conftest.err
13583 } && test -s conftest.$ac_objext; then
13584 ac_cv_kerberos5=yes
13586 echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13593 CPPFLAGS="$ac_save_CPPFLAGS"
13595 { echo "$as_me:$LINENO: result: $ac_cv_kerberos5" >&5
13596 echo "${ECHO_T}$ac_cv_kerberos5" >&6; }
13598 if test "$ac_cv_kerberos" = yes ; then
13600 cat >>confdefs.h <<\_ACEOF
13601 #define HAVE_KERBEROS 1
13606 if test "$ac_cv_kerberos5" = yes ; then
13608 # Andrew Snare <ajs@pigpond.com> wrote:
13610 # You were assuming that if kerberosV (krb5) was found, then kerberosIV
13611 # (krb4) was also available. This turns out not to be the case with
13612 # mit-krb-1.2.7; apparently backwards-compatibility with KerberosIV
13615 # So, disable kerberosV support if libkrb4 can't be found.
13616 # This is not the best solution, but it makes the compile not fail.
13619 ac_save_CPPFLAGS="$CPPFLAGS"
13620 ac_save_LDFLAGS="$LDFLAGS"
13621 # ac_save_LIBS="$LIBS"
13623 if test \! -z "$includedir" ; then
13624 CPPFLAGS="$CPPFLAGS -I$includedir"
13626 # note: $X_CFLAGS includes $x_includes
13627 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13629 if test \! -z "$libdir" ; then
13630 LDFLAGS="$LDFLAGS -L$libdir"
13632 # note: $X_LIBS includes $x_libraries
13633 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13635 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13636 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13637 { echo "$as_me:$LINENO: checking for krb_get_tf_realm in -lkrb4" >&5
13638 echo $ECHO_N "checking for krb_get_tf_realm in -lkrb4... $ECHO_C" >&6; }
13639 if test "${ac_cv_lib_krb4_krb_get_tf_realm+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13642 ac_check_lib_save_LIBS=$LIBS
13643 LIBS="-lkrb4 $LIBS"
13644 cat >conftest.$ac_ext <<_ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13651 /* Override any GCC internal prototype to avoid an error.
13652 Use char because int might match the return type of a GCC
13653 builtin and then its argument prototype would still apply. */
13657 char krb_get_tf_realm ();
13661 return krb_get_tf_realm ();
13666 rm -rf conftest.$ac_objext conftest$ac_exeext
13667 if { (ac_try="$ac_link"
13668 case "(($ac_try" in
13669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670 *) ac_try_echo=$ac_try;;
13672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673 (eval "$ac_link") 2>conftest.er1
13675 grep -v '^ *+' conftest.er1 >conftest.err
13676 rm -rf conftest.er1
13677 cat conftest.err >&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); } && {
13680 test -z "$ac_c_werror_flag" ||
13681 test ! -s conftest.err
13682 } && test -s conftest$ac_exeext &&
13683 $as_test_x conftest$ac_exeext; then
13684 ac_cv_lib_krb4_krb_get_tf_realm=yes
13686 echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13689 ac_cv_lib_krb4_krb_get_tf_realm=no
13692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13693 conftest$ac_exeext conftest.$ac_ext
13694 LIBS=$ac_check_lib_save_LIBS
13696 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_tf_realm" >&5
13697 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_tf_realm" >&6; }
13698 if test $ac_cv_lib_krb4_krb_get_tf_realm = yes; then
13704 CPPFLAGS="$ac_save_CPPFLAGS"
13705 LDFLAGS="$ac_save_LDFLAGS"
13706 # LIBS="$ac_save_LIBS"
13708 if test "$have_kerberos" = yes ; then
13710 cat >>confdefs.h <<\_ACEOF
13711 #define HAVE_KERBEROS 1
13714 cat >>confdefs.h <<\_ACEOF
13715 #define HAVE_KERBEROS5 1
13720 { echo "$as_me:$LINENO: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&5
13721 echo "$as_me: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&2;}
13726 if test "$have_kerberos5" = yes ; then
13727 # from Matt Knopp <mhat@infocalypse.netlag.com>
13728 # (who got it from amu@mit.edu)
13730 PASSWD_LIBS="$PASSWD_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
13732 # jwz: MacOS X uses -lkrb5, but not -lcrypt
13734 ac_save_CPPFLAGS="$CPPFLAGS"
13735 ac_save_LDFLAGS="$LDFLAGS"
13736 # ac_save_LIBS="$LIBS"
13738 if test \! -z "$includedir" ; then
13739 CPPFLAGS="$CPPFLAGS -I$includedir"
13741 # note: $X_CFLAGS includes $x_includes
13742 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13744 if test \! -z "$libdir" ; then
13745 LDFLAGS="$LDFLAGS -L$libdir"
13747 # note: $X_LIBS includes $x_libraries
13748 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13750 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13751 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13752 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
13753 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
13754 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13757 ac_check_lib_save_LIBS=$LIBS
13758 LIBS="-lcrypt $LIBS"
13759 cat >conftest.$ac_ext <<_ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13766 /* Override any GCC internal prototype to avoid an error.
13767 Use char because int might match the return type of a GCC
13768 builtin and then its argument prototype would still apply. */
13781 rm -rf conftest.$ac_objext conftest$ac_exeext
13782 if { (ac_try="$ac_link"
13783 case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_link") 2>conftest.er1
13790 grep -v '^ *+' conftest.er1 >conftest.err
13791 rm -rf conftest.er1
13792 cat conftest.err >&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); } && {
13795 test -z "$ac_c_werror_flag" ||
13796 test ! -s conftest.err
13797 } && test -s conftest$ac_exeext &&
13798 $as_test_x conftest$ac_exeext; then
13799 ac_cv_lib_crypt_crypt=yes
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13804 ac_cv_lib_crypt_crypt=no
13807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13808 conftest$ac_exeext conftest.$ac_ext
13809 LIBS=$ac_check_lib_save_LIBS
13811 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
13812 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
13813 if test $ac_cv_lib_crypt_crypt = yes; then
13814 PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
13817 CPPFLAGS="$ac_save_CPPFLAGS"
13818 LDFLAGS="$ac_save_LDFLAGS"
13819 # LIBS="$ac_save_LIBS"
13822 elif test "$have_kerberos" = yes ; then
13823 # from Tim Showalter <tjs@psaux.com> for FreeBSD 4.2
13824 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
13827 if test "$have_kerberos" = yes ; then
13828 { echo "$as_me:$LINENO: checking for res_search" >&5
13829 echo $ECHO_N "checking for res_search... $ECHO_C" >&6; }
13830 if test "${ac_cv_func_res_search+set}" = set; then
13831 echo $ECHO_N "(cached) $ECHO_C" >&6
13833 cat >conftest.$ac_ext <<_ACEOF
13836 cat confdefs.h >>conftest.$ac_ext
13837 cat >>conftest.$ac_ext <<_ACEOF
13838 /* end confdefs.h. */
13839 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
13840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13841 #define res_search innocuous_res_search
13843 /* System header to define __stub macros and hopefully few prototypes,
13844 which can conflict with char res_search (); below.
13845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13846 <limits.h> exists even on freestanding compilers. */
13849 # include <limits.h>
13851 # include <assert.h>
13856 /* Override any GCC internal prototype to avoid an error.
13857 Use char because int might match the return type of a GCC
13858 builtin and then its argument prototype would still apply. */
13862 char res_search ();
13863 /* The GNU C library defines this for functions which it implements
13864 to always fail with ENOSYS. Some functions are actually named
13865 something starting with __ and the normal name is an alias. */
13866 #if defined __stub_res_search || defined __stub___res_search
13873 return res_search ();
13878 rm -rf conftest.$ac_objext conftest$ac_exeext
13879 if { (ac_try="$ac_link"
13880 case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885 (eval "$ac_link") 2>conftest.er1
13887 grep -v '^ *+' conftest.er1 >conftest.err
13888 rm -rf conftest.er1
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } && {
13892 test -z "$ac_c_werror_flag" ||
13893 test ! -s conftest.err
13894 } && test -s conftest$ac_exeext &&
13895 $as_test_x conftest$ac_exeext; then
13896 ac_cv_func_res_search=yes
13898 echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13901 ac_cv_func_res_search=no
13904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13905 conftest$ac_exeext conftest.$ac_ext
13907 { echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
13908 echo "${ECHO_T}$ac_cv_func_res_search" >&6; }
13909 if test $ac_cv_func_res_search = yes; then
13912 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
13913 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
13914 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13917 ac_check_lib_save_LIBS=$LIBS
13918 LIBS="-lresolv $LIBS"
13919 cat >conftest.$ac_ext <<_ACEOF
13922 cat confdefs.h >>conftest.$ac_ext
13923 cat >>conftest.$ac_ext <<_ACEOF
13924 /* end confdefs.h. */
13926 /* Override any GCC internal prototype to avoid an error.
13927 Use char because int might match the return type of a GCC
13928 builtin and then its argument prototype would still apply. */
13932 char res_search ();
13936 return res_search ();
13941 rm -rf conftest.$ac_objext conftest$ac_exeext
13942 if { (ac_try="$ac_link"
13943 case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_link") 2>conftest.er1
13950 grep -v '^ *+' conftest.er1 >conftest.err
13951 rm -rf conftest.er1
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } && {
13955 test -z "$ac_c_werror_flag" ||
13956 test ! -s conftest.err
13957 } && test -s conftest$ac_exeext &&
13958 $as_test_x conftest$ac_exeext; then
13959 ac_cv_lib_resolv_res_search=yes
13961 echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.$ac_ext >&5
13964 ac_cv_lib_resolv_res_search=no
13967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13968 conftest$ac_exeext conftest.$ac_ext
13969 LIBS=$ac_check_lib_save_LIBS
13971 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
13972 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
13973 if test $ac_cv_lib_resolv_res_search = yes; then
13974 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
13976 { echo "$as_me:$LINENO: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&5
13977 echo "$as_me: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&2;}
13987 ###############################################################################
13989 # Check for the nine billion variants of shadow passwords...
13991 ###############################################################################
13996 with_shadow_req=unspecified
13999 # Check whether --with-shadow was given.
14000 if test "${with_shadow+set}" = set; then
14001 withval=$with_shadow; with_shadow="$withval"; with_shadow_req="$withval"
14008 case "$with_shadow" in
14013 { echo "$as_me:$LINENO: checking for shadow password headers" >&5
14014 echo $ECHO_N "checking for shadow password headers... $ECHO_C" >&6; }
14015 d=$with_shadow/include
14016 if test -d $d; then
14017 X_CFLAGS="-I$d $X_CFLAGS"
14018 { echo "$as_me:$LINENO: result: $d" >&5
14019 echo "${ECHO_T}$d" >&6; }
14021 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14022 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
14025 { echo "$as_me:$LINENO: checking for shadow password libs" >&5
14026 echo $ECHO_N "checking for shadow password libs... $ECHO_C" >&6; }
14028 if test -d $d; then
14029 X_LIBS="-L$d $X_LIBS"
14030 { echo "$as_me:$LINENO: result: $d" >&5
14031 echo "${ECHO_T}$d" >&6; }
14033 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14034 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
14037 # replace the directory string with "yes".
14038 with_shadow_req="yes"
14039 with_shadow=$with_shadow_req
14044 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
14045 echo " If it is a directory, then \`DIR/include' will be added to"
14046 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14052 if test "$enable_locking" = no ; then
14058 ###############################################################################
14060 # Check for Sun "adjunct" passwords.
14062 ###############################################################################
14064 if test "$with_shadow" = yes ; then
14065 { echo "$as_me:$LINENO: checking for Sun-style shadow passwords" >&5
14066 echo $ECHO_N "checking for Sun-style shadow passwords... $ECHO_C" >&6; }
14067 if test "${ac_cv_sun_adjunct+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14071 ac_save_CPPFLAGS="$CPPFLAGS"
14072 if test \! -z "$includedir" ; then
14073 CPPFLAGS="$CPPFLAGS -I$includedir"
14075 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14076 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14077 cat >conftest.$ac_ext <<_ACEOF
14080 cat confdefs.h >>conftest.$ac_ext
14081 cat >>conftest.$ac_ext <<_ACEOF
14082 /* end confdefs.h. */
14083 #include <stdlib.h>
14084 #include <unistd.h>
14085 #include <sys/types.h>
14086 #include <sys/label.h>
14087 #include <sys/audit.h>
14088 #include <pwdadj.h>
14092 struct passwd_adjunct *p = getpwanam("nobody");
14093 const char *pw = p->pwa_passwd;
14098 rm -rf conftest.$ac_objext
14099 if { (ac_try="$ac_compile"
14100 case "(($ac_try" in
14101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14102 *) ac_try_echo=$ac_try;;
14104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14105 (eval "$ac_compile") 2>conftest.er1
14107 grep -v '^ *+' conftest.er1 >conftest.err
14108 rm -rf conftest.er1
14109 cat conftest.err >&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } && {
14112 test -z "$ac_c_werror_flag" ||
14113 test ! -s conftest.err
14114 } && test -s conftest.$ac_objext; then
14115 ac_cv_sun_adjunct=yes
14117 echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14120 ac_cv_sun_adjunct=no
14123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14124 CPPFLAGS="$ac_save_CPPFLAGS"
14126 { echo "$as_me:$LINENO: result: $ac_cv_sun_adjunct" >&5
14127 echo "${ECHO_T}$ac_cv_sun_adjunct" >&6; }
14128 if test "$ac_cv_sun_adjunct" = yes; then
14129 have_shadow_adjunct=yes
14136 ###############################################################################
14138 # Check for DEC and SCO so-called "enhanced" security.
14140 ###############################################################################
14142 if test "$with_shadow" = yes ; then
14143 { echo "$as_me:$LINENO: checking for DEC-style shadow passwords" >&5
14144 echo $ECHO_N "checking for DEC-style shadow passwords... $ECHO_C" >&6; }
14145 if test "${ac_cv_enhanced_passwd+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 ac_save_CPPFLAGS="$CPPFLAGS"
14150 if test \! -z "$includedir" ; then
14151 CPPFLAGS="$CPPFLAGS -I$includedir"
14153 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14154 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14155 cat >conftest.$ac_ext <<_ACEOF
14158 cat confdefs.h >>conftest.$ac_ext
14159 cat >>conftest.$ac_ext <<_ACEOF
14160 /* end confdefs.h. */
14161 #include <stdlib.h>
14162 #include <unistd.h>
14163 #include <sys/types.h>
14165 #include <sys/security.h>
14170 struct pr_passwd *p;
14172 set_auth_parameters(0, 0);
14173 check_auth_parameters();
14174 p = getprpwnam("nobody");
14175 pw = p->ufld.fd_encrypt;
14180 rm -rf conftest.$ac_objext
14181 if { (ac_try="$ac_compile"
14182 case "(($ac_try" in
14183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14184 *) ac_try_echo=$ac_try;;
14186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14187 (eval "$ac_compile") 2>conftest.er1
14189 grep -v '^ *+' conftest.er1 >conftest.err
14190 rm -rf conftest.er1
14191 cat conftest.err >&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); } && {
14194 test -z "$ac_c_werror_flag" ||
14195 test ! -s conftest.err
14196 } && test -s conftest.$ac_objext; then
14197 ac_cv_enhanced_passwd=yes
14199 echo "$as_me: failed program was:" >&5
14200 sed 's/^/| /' conftest.$ac_ext >&5
14202 ac_cv_enhanced_passwd=no
14205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14206 CPPFLAGS="$ac_save_CPPFLAGS"
14208 { echo "$as_me:$LINENO: result: $ac_cv_enhanced_passwd" >&5
14209 echo "${ECHO_T}$ac_cv_enhanced_passwd" >&6; }
14210 if test $ac_cv_enhanced_passwd = yes; then
14211 have_shadow_enhanced=yes
14215 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
14216 # (I'm told it needs -lcurses too, but I don't understand why.)
14217 # But on DEC, it's in -lsecurity.
14219 { echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
14220 echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6; }
14221 if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 ac_check_lib_save_LIBS=$LIBS
14225 LIBS="-lprot -lx $LIBS"
14226 cat >conftest.$ac_ext <<_ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14233 /* Override any GCC internal prototype to avoid an error.
14234 Use char because int might match the return type of a GCC
14235 builtin and then its argument prototype would still apply. */
14239 char getprpwnam ();
14243 return getprpwnam ();
14248 rm -rf conftest.$ac_objext conftest$ac_exeext
14249 if { (ac_try="$ac_link"
14250 case "(($ac_try" in
14251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252 *) ac_try_echo=$ac_try;;
14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255 (eval "$ac_link") 2>conftest.er1
14257 grep -v '^ *+' conftest.er1 >conftest.err
14258 rm -rf conftest.er1
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } && {
14262 test -z "$ac_c_werror_flag" ||
14263 test ! -s conftest.err
14264 } && test -s conftest$ac_exeext &&
14265 $as_test_x conftest$ac_exeext; then
14266 ac_cv_lib_prot_getprpwnam=yes
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14271 ac_cv_lib_prot_getprpwnam=no
14274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14275 conftest$ac_exeext conftest.$ac_ext
14276 LIBS=$ac_check_lib_save_LIBS
14278 { echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
14279 echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6; }
14280 if test $ac_cv_lib_prot_getprpwnam = yes; then
14281 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
14283 { echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
14284 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6; }
14285 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
14288 ac_check_lib_save_LIBS=$LIBS
14289 LIBS="-lsecurity $LIBS"
14290 cat >conftest.$ac_ext <<_ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
14297 /* Override any GCC internal prototype to avoid an error.
14298 Use char because int might match the return type of a GCC
14299 builtin and then its argument prototype would still apply. */
14303 char getprpwnam ();
14307 return getprpwnam ();
14312 rm -rf conftest.$ac_objext conftest$ac_exeext
14313 if { (ac_try="$ac_link"
14314 case "(($ac_try" in
14315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316 *) ac_try_echo=$ac_try;;
14318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14319 (eval "$ac_link") 2>conftest.er1
14321 grep -v '^ *+' conftest.er1 >conftest.err
14322 rm -rf conftest.er1
14323 cat conftest.err >&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } && {
14326 test -z "$ac_c_werror_flag" ||
14327 test ! -s conftest.err
14328 } && test -s conftest$ac_exeext &&
14329 $as_test_x conftest$ac_exeext; then
14330 ac_cv_lib_security_getprpwnam=yes
14332 echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14335 ac_cv_lib_security_getprpwnam=no
14338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14339 conftest$ac_exeext conftest.$ac_ext
14340 LIBS=$ac_check_lib_save_LIBS
14342 { echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
14343 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6; }
14344 if test $ac_cv_lib_security_getprpwnam = yes; then
14345 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
14353 ###############################################################################
14355 # Check for HP's entry in the "Not Invented Here" Sweepstakes.
14357 ###############################################################################
14359 if test "$with_shadow" = yes ; then
14360 { echo "$as_me:$LINENO: checking for HP-style shadow passwords" >&5
14361 echo $ECHO_N "checking for HP-style shadow passwords... $ECHO_C" >&6; }
14362 if test "${ac_cv_hpux_passwd+set}" = set; then
14363 echo $ECHO_N "(cached) $ECHO_C" >&6
14366 ac_save_CPPFLAGS="$CPPFLAGS"
14367 if test \! -z "$includedir" ; then
14368 CPPFLAGS="$CPPFLAGS -I$includedir"
14370 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14371 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14372 cat >conftest.$ac_ext <<_ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14378 #include <stdlib.h>
14379 #include <unistd.h>
14380 #include <sys/types.h>
14382 #include <hpsecurity.h>
14387 struct s_passwd *p = getspwnam("nobody");
14388 const char *pw = p->pw_passwd;
14393 rm -rf conftest.$ac_objext
14394 if { (ac_try="$ac_compile"
14395 case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_compile") 2>conftest.er1
14402 grep -v '^ *+' conftest.er1 >conftest.err
14403 rm -rf conftest.er1
14404 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } && {
14407 test -z "$ac_c_werror_flag" ||
14408 test ! -s conftest.err
14409 } && test -s conftest.$ac_objext; then
14410 ac_cv_hpux_passwd=yes
14412 echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14415 ac_cv_hpux_passwd=no
14418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14419 CPPFLAGS="$ac_save_CPPFLAGS"
14421 { echo "$as_me:$LINENO: result: $ac_cv_hpux_passwd" >&5
14422 echo "${ECHO_T}$ac_cv_hpux_passwd" >&6; }
14423 if test "$ac_cv_hpux_passwd" = yes; then
14424 have_shadow_hpux=yes
14428 # on HPUX, bigcrypt is in -lsec
14429 { echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
14430 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6; }
14431 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
14432 echo $ECHO_N "(cached) $ECHO_C" >&6
14434 ac_check_lib_save_LIBS=$LIBS
14436 cat >conftest.$ac_ext <<_ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h. */
14443 /* Override any GCC internal prototype to avoid an error.
14444 Use char because int might match the return type of a GCC
14445 builtin and then its argument prototype would still apply. */
14453 return bigcrypt ();
14458 rm -rf conftest.$ac_objext conftest$ac_exeext
14459 if { (ac_try="$ac_link"
14460 case "(($ac_try" in
14461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14462 *) ac_try_echo=$ac_try;;
14464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14465 (eval "$ac_link") 2>conftest.er1
14467 grep -v '^ *+' conftest.er1 >conftest.err
14468 rm -rf conftest.er1
14469 cat conftest.err >&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } && {
14472 test -z "$ac_c_werror_flag" ||
14473 test ! -s conftest.err
14474 } && test -s conftest$ac_exeext &&
14475 $as_test_x conftest$ac_exeext; then
14476 ac_cv_lib_sec_bigcrypt=yes
14478 echo "$as_me: failed program was:" >&5
14479 sed 's/^/| /' conftest.$ac_ext >&5
14481 ac_cv_lib_sec_bigcrypt=no
14484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14485 conftest$ac_exeext conftest.$ac_ext
14486 LIBS=$ac_check_lib_save_LIBS
14488 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
14489 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6; }
14490 if test $ac_cv_lib_sec_bigcrypt = yes; then
14491 PASSWD_LIBS="$PASSWD_LIBS -lsec"
14498 ###############################################################################
14500 # Check for FreeBSD-style shadow passwords.
14502 # On FreeBSD, getpwnam() and friends work just like on non-shadow-
14503 # password systems -- except you only get stuff in the pw_passwd field
14504 # if the running program is setuid. So, guess that we've got this
14505 # lossage to contend with if /etc/master.passwd exists, and default to
14506 # a setuid installation.
14508 ###############################################################################
14510 if test "$with_shadow" = yes ; then
14511 { echo "$as_me:$LINENO: checking for FreeBSD-style shadow passwords" >&5
14512 echo $ECHO_N "checking for FreeBSD-style shadow passwords... $ECHO_C" >&6; }
14513 if test "${ac_cv_master_passwd+set}" = set; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14516 if test -f /etc/master.passwd ; then
14517 ac_cv_master_passwd=yes
14519 ac_cv_master_passwd=no
14522 { echo "$as_me:$LINENO: result: $ac_cv_master_passwd" >&5
14523 echo "${ECHO_T}$ac_cv_master_passwd" >&6; }
14524 if test "$ac_cv_master_passwd" = yes; then
14530 ###############################################################################
14532 # Check for traditional (ha!) shadow passwords.
14534 ###############################################################################
14536 if test "$with_shadow" = yes ; then
14537 { echo "$as_me:$LINENO: checking for generic shadow passwords" >&5
14538 echo $ECHO_N "checking for generic shadow passwords... $ECHO_C" >&6; }
14539 if test "${ac_cv_shadow+set}" = set; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14543 ac_save_CPPFLAGS="$CPPFLAGS"
14544 if test \! -z "$includedir" ; then
14545 CPPFLAGS="$CPPFLAGS -I$includedir"
14547 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14548 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14549 cat >conftest.$ac_ext <<_ACEOF
14552 cat confdefs.h >>conftest.$ac_ext
14553 cat >>conftest.$ac_ext <<_ACEOF
14554 /* end confdefs.h. */
14555 #include <stdlib.h>
14556 #include <unistd.h>
14557 #include <sys/types.h>
14559 #include <shadow.h>
14563 struct spwd *p = getspnam("nobody");
14564 const char *pw = p->sp_pwdp;
14569 rm -rf conftest.$ac_objext
14570 if { (ac_try="$ac_compile"
14571 case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576 (eval "$ac_compile") 2>conftest.er1
14578 grep -v '^ *+' conftest.er1 >conftest.err
14579 rm -rf conftest.er1
14580 cat conftest.err >&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } && {
14583 test -z "$ac_c_werror_flag" ||
14584 test ! -s conftest.err
14585 } && test -s conftest.$ac_objext; then
14588 echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14595 CPPFLAGS="$ac_save_CPPFLAGS"
14597 { echo "$as_me:$LINENO: result: $ac_cv_shadow" >&5
14598 echo "${ECHO_T}$ac_cv_shadow" >&6; }
14599 if test "$ac_cv_shadow" = yes; then
14603 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
14605 { echo "$as_me:$LINENO: checking for getspnam in -lc" >&5
14606 echo $ECHO_N "checking for getspnam in -lc... $ECHO_C" >&6; }
14607 if test "${ac_cv_lib_c_getspnam+set}" = set; then
14608 echo $ECHO_N "(cached) $ECHO_C" >&6
14610 ac_check_lib_save_LIBS=$LIBS
14612 cat >conftest.$ac_ext <<_ACEOF
14615 cat confdefs.h >>conftest.$ac_ext
14616 cat >>conftest.$ac_ext <<_ACEOF
14617 /* end confdefs.h. */
14619 /* Override any GCC internal prototype to avoid an error.
14620 Use char because int might match the return type of a GCC
14621 builtin and then its argument prototype would still apply. */
14629 return getspnam ();
14634 rm -rf conftest.$ac_objext conftest$ac_exeext
14635 if { (ac_try="$ac_link"
14636 case "(($ac_try" in
14637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641 (eval "$ac_link") 2>conftest.er1
14643 grep -v '^ *+' conftest.er1 >conftest.err
14644 rm -rf conftest.er1
14645 cat conftest.err >&5
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } && {
14648 test -z "$ac_c_werror_flag" ||
14649 test ! -s conftest.err
14650 } && test -s conftest$ac_exeext &&
14651 $as_test_x conftest$ac_exeext; then
14652 ac_cv_lib_c_getspnam=yes
14654 echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.$ac_ext >&5
14657 ac_cv_lib_c_getspnam=no
14660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14661 conftest$ac_exeext conftest.$ac_ext
14662 LIBS=$ac_check_lib_save_LIBS
14664 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_getspnam" >&5
14665 echo "${ECHO_T}$ac_cv_lib_c_getspnam" >&6; }
14666 if test $ac_cv_lib_c_getspnam = yes; then
14670 if test "$have_getspnam" = no ; then
14671 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
14672 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
14673 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
14674 echo $ECHO_N "(cached) $ECHO_C" >&6
14676 ac_check_lib_save_LIBS=$LIBS
14678 cat >conftest.$ac_ext <<_ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14685 /* Override any GCC internal prototype to avoid an error.
14686 Use char because int might match the return type of a GCC
14687 builtin and then its argument prototype would still apply. */
14695 return getspnam ();
14700 rm -rf conftest.$ac_objext conftest$ac_exeext
14701 if { (ac_try="$ac_link"
14702 case "(($ac_try" in
14703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14704 *) ac_try_echo=$ac_try;;
14706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14707 (eval "$ac_link") 2>conftest.er1
14709 grep -v '^ *+' conftest.er1 >conftest.err
14710 rm -rf conftest.er1
14711 cat conftest.err >&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); } && {
14714 test -z "$ac_c_werror_flag" ||
14715 test ! -s conftest.err
14716 } && test -s conftest$ac_exeext &&
14717 $as_test_x conftest$ac_exeext; then
14718 ac_cv_lib_gen_getspnam=yes
14720 echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.$ac_ext >&5
14723 ac_cv_lib_gen_getspnam=no
14726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14727 conftest$ac_exeext conftest.$ac_ext
14728 LIBS=$ac_check_lib_save_LIBS
14730 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
14731 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
14732 if test $ac_cv_lib_gen_getspnam = yes; then
14733 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
14741 ###############################################################################
14743 # Check for other libraries needed for non-shadow passwords.
14745 ###############################################################################
14747 if test "$enable_locking" = yes ; then
14749 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
14751 { echo "$as_me:$LINENO: checking for crypt in -lc" >&5
14752 echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6; }
14753 if test "${ac_cv_lib_c_crypt+set}" = set; then
14754 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 ac_check_lib_save_LIBS=$LIBS
14758 cat >conftest.$ac_ext <<_ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h. */
14765 /* Override any GCC internal prototype to avoid an error.
14766 Use char because int might match the return type of a GCC
14767 builtin and then its argument prototype would still apply. */
14780 rm -rf conftest.$ac_objext conftest$ac_exeext
14781 if { (ac_try="$ac_link"
14782 case "(($ac_try" in
14783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784 *) ac_try_echo=$ac_try;;
14786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14787 (eval "$ac_link") 2>conftest.er1
14789 grep -v '^ *+' conftest.er1 >conftest.err
14790 rm -rf conftest.er1
14791 cat conftest.err >&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } && {
14794 test -z "$ac_c_werror_flag" ||
14795 test ! -s conftest.err
14796 } && test -s conftest$ac_exeext &&
14797 $as_test_x conftest$ac_exeext; then
14798 ac_cv_lib_c_crypt=yes
14800 echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14803 ac_cv_lib_c_crypt=no
14806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14807 conftest$ac_exeext conftest.$ac_ext
14808 LIBS=$ac_check_lib_save_LIBS
14810 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
14811 echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6; }
14812 if test $ac_cv_lib_c_crypt = yes; then
14816 if test "$have_crypt" = no ; then
14817 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
14818 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
14819 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14822 ac_check_lib_save_LIBS=$LIBS
14823 LIBS="-lcrypt $LIBS"
14824 cat >conftest.$ac_ext <<_ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h. */
14831 /* Override any GCC internal prototype to avoid an error.
14832 Use char because int might match the return type of a GCC
14833 builtin and then its argument prototype would still apply. */
14846 rm -rf conftest.$ac_objext conftest$ac_exeext
14847 if { (ac_try="$ac_link"
14848 case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853 (eval "$ac_link") 2>conftest.er1
14855 grep -v '^ *+' conftest.er1 >conftest.err
14856 rm -rf conftest.er1
14857 cat conftest.err >&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } && {
14860 test -z "$ac_c_werror_flag" ||
14861 test ! -s conftest.err
14862 } && test -s conftest$ac_exeext &&
14863 $as_test_x conftest$ac_exeext; then
14864 ac_cv_lib_crypt_crypt=yes
14866 echo "$as_me: failed program was:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14869 ac_cv_lib_crypt_crypt=no
14872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14873 conftest$ac_exeext conftest.$ac_ext
14874 LIBS=$ac_check_lib_save_LIBS
14876 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
14877 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
14878 if test $ac_cv_lib_crypt_crypt = yes; then
14879 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
14886 # Most of the above shadow mechanisms will have set need_setuid to yes,
14887 # if they were found. But, on some systems, we need setuid even when
14888 # using plain old vanilla passwords.
14890 if test "$enable_locking" = yes ; then
14892 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
14899 if test "$have_shadow_adjunct" = yes ; then
14900 cat >>confdefs.h <<\_ACEOF
14901 #define HAVE_ADJUNCT_PASSWD 1
14904 elif test "$have_shadow_enhanced" = yes ; then
14905 cat >>confdefs.h <<\_ACEOF
14906 #define HAVE_ENHANCED_PASSWD 1
14909 elif test "$have_shadow_hpux" = yes ; then
14910 cat >>confdefs.h <<\_ACEOF
14911 #define HAVE_HPUX_PASSWD 1
14914 elif test "$have_shadow" = yes ; then
14915 cat >>confdefs.h <<\_ACEOF
14916 #define HAVE_SHADOW_PASSWD 1
14922 ###############################################################################
14924 # Check for external password helper
14925 # On SuSE, instead of having xscreensaver be a setuid program, they
14926 # fork an external program that takes the password on stdin, and
14927 # returns true if that password is a valid one. Then only that
14928 # smaller program needs to be setuid.
14930 # (Note that this external program is not a GUI: the GUI is still
14931 # all in xscreensaver itself; the external program just does auth.)
14933 ###############################################################################
14935 have_passwd_helper=no
14936 with_passwd_helper_req=unspecified
14939 # Check whether --with-passwd-helper was given.
14940 if test "${with_passwd_helper+set}" = set; then
14941 withval=$with_passwd_helper; with_passwd_helper="$withval"; with_passwd_helper_req="$withval"
14943 with_passwd_helper=no
14946 # no HANDLE_X_PATH_ARG for this one
14948 if test "$enable_locking" = no ; then
14949 with_passwd_helper_req=no
14950 with_passwd_helper=no
14953 case "$with_passwd_helper" in
14956 cat >>confdefs.h <<_ACEOF
14957 #define PASSWD_HELPER_PROGRAM "$with_passwd_helper"
14960 have_passwd_helper=yes;;
14962 echo "error: --with-passwd-helper needs full pathname of helper (not '$with_passwd_helper')." >&2
14967 ###############################################################################
14969 # Check for a login manager for a "New Login" button on the lock dialog.
14970 # Usually this will be "/usr/bin/gdmflexiserver".
14972 ###############################################################################
14974 have_login_manager=no
14975 with_login_manager_req=unspecified
14976 default_login_manager='gdmflexiserver -ls'
14979 # Check whether --with-login-manager was given.
14980 if test "${with_login_manager+set}" = set; then
14981 withval=$with_login_manager; with_login_manager="$withval"; with_login_manager_req="$withval"
14983 with_login_manager=no
14986 # no HANDLE_X_PATH_ARG for this one
14988 if test "$enable_locking" = no ; then
14989 with_login_manager_req=no
14990 with_login_manager=no
14993 if test -n "$with_login_manager_req" ; then
14994 ac_cv_login_manager_program=""
14996 if test "$with_login_manager_req" = "yes" ; then
14997 with_login_manager_req=$default_login_manager
15000 case "$with_login_manager_req" in
15002 with_login_manager=""
15006 set dummy $with_login_manager_req ; login_manager_tmp=$2
15007 { echo "$as_me:$LINENO: checking for $login_manager_tmp" >&5
15008 echo $ECHO_N "checking for $login_manager_tmp... $ECHO_C" >&6; }
15009 if test -x "$login_manager_tmp" ; then
15010 { echo "$as_me:$LINENO: result: yes" >&5
15011 echo "${ECHO_T}yes" >&6; }
15013 { echo "$as_me:$LINENO: result: no" >&5
15014 echo "${ECHO_T}no" >&6; }
15015 with_login_manager=""
15020 set dummy $with_login_manager_req ; login_manager_tmp=$2
15022 unset ac_cv_path_login_manager_tmp
15023 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
15024 set dummy $login_manager_tmp; ac_word=$2
15025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15027 if test "${ac_cv_path_login_manager_tmp+set}" = set; then
15028 echo $ECHO_N "(cached) $ECHO_C" >&6
15030 case $login_manager_tmp in
15032 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
15035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15036 for as_dir in $PATH
15039 test -z "$as_dir" && as_dir=.
15040 for ac_exec_ext in '' $ac_executable_extensions; do
15041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15042 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
15043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15053 login_manager_tmp=$ac_cv_path_login_manager_tmp
15054 if test -n "$login_manager_tmp"; then
15055 { echo "$as_me:$LINENO: result: $login_manager_tmp" >&5
15056 echo "${ECHO_T}$login_manager_tmp" >&6; }
15058 { echo "$as_me:$LINENO: result: no" >&5
15059 echo "${ECHO_T}no" >&6; }
15063 if test -z "$login_manager_tmp" ; then
15064 with_login_manager=""
15066 with_login_manager="$login_manager_tmp"
15070 ac_cv_login_manager_program="$with_login_manager"
15072 elif test -n "$ac_cv_login_manager_program"; then
15073 { echo "$as_me:$LINENO: result: checking for login_manager... (cached) $ac_cv_login_manager_program" >&5
15074 echo "${ECHO_T}checking for login_manager... (cached) $ac_cv_login_manager_program" >&6; }
15077 NEW_LOGIN_COMMAND_P=''
15078 NEW_LOGIN_COMMAND="$ac_cv_login_manager_program"
15080 if test -z "$NEW_LOGIN_COMMAND" ; then
15081 NEW_LOGIN_COMMAND="$default_login_manager"
15082 NEW_LOGIN_COMMAND_P='! '
15087 ###############################################################################
15089 # Check for -lgtk (and Gnome stuff)
15091 ###############################################################################
15094 with_gtk_req=unspecified
15096 # Check whether --with-gtk was given.
15097 if test "${with_gtk+set}" = set; then
15098 withval=$with_gtk; with_gtk="$withval"; with_gtk_req="$withval"
15104 # if --with-gtk=/directory/ was specified, remember that directory so that
15105 # we can also look for the `gtk-config' program in that directory.
15106 case "$with_gtk" in
15108 gtk_dir="$with_gtk"
15116 case "$with_gtk" in
15121 { echo "$as_me:$LINENO: checking for Gtk headers" >&5
15122 echo $ECHO_N "checking for Gtk headers... $ECHO_C" >&6; }
15123 d=$with_gtk/include
15124 if test -d $d; then
15125 X_CFLAGS="-I$d $X_CFLAGS"
15126 { echo "$as_me:$LINENO: result: $d" >&5
15127 echo "${ECHO_T}$d" >&6; }
15129 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15130 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
15133 { echo "$as_me:$LINENO: checking for Gtk libs" >&5
15134 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6; }
15136 if test -d $d; then
15137 X_LIBS="-L$d $X_LIBS"
15138 { echo "$as_me:$LINENO: result: $d" >&5
15139 echo "${ECHO_T}$d" >&6; }
15141 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15142 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
15145 # replace the directory string with "yes".
15147 with_gtk=$with_gtk_req
15152 echo "error: argument to --with-gtk must be \"yes\", \"no\", or a directory."
15153 echo " If it is a directory, then \`DIR/include' will be added to"
15154 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15160 if test "$with_gtk" != yes -a "$with_gtk" != no ; then
15161 echo "error: must be yes or no: --with-gtk=$with_gtk"
15166 parse_gtk_version_string() {
15169 maj=`echo $ac_gtk_version_string | sed -n 's/\..*//p'`
15170 min=`echo $ac_gtk_version_string | sed -n 's/[^.]*\.\([^.]*\).*/\1/p'`
15172 ac_gtk_version=`echo "$maj * 1000 + $min" | bc`
15173 if test -z "$ac_gtk_version"; then
15174 ac_gtk_version=unknown
15175 ac_gtk_version_string=unknown
15179 # Find pkg-config... (need this for both gtk and gdk_pixbuf.)
15180 # if the user specified --with-gtk=/foo/ then look there.
15183 if test ! -z "$gtk_dir"; then
15184 # canonicalize slashes.
15185 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
15186 gtk_path="$foo:$gtk_path"
15189 for ac_prog in pkg-config
15191 # Extract the first word of "$ac_prog", so it can be a program name with args.
15192 set dummy $ac_prog; ac_word=$2
15193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15195 if test "${ac_cv_path_pkg_config+set}" = set; then
15196 echo $ECHO_N "(cached) $ECHO_C" >&6
15198 case $pkg_config in
15200 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path.
15203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15204 for as_dir in $gtk_path
15207 test -z "$as_dir" && as_dir=.
15208 for ac_exec_ext in '' $ac_executable_extensions; do
15209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15210 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext"
15211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15221 pkg_config=$ac_cv_path_pkg_config
15222 if test -n "$pkg_config"; then
15223 { echo "$as_me:$LINENO: result: $pkg_config" >&5
15224 echo "${ECHO_T}$pkg_config" >&6; }
15226 { echo "$as_me:$LINENO: result: no" >&5
15227 echo "${ECHO_T}no" >&6; }
15231 test -n "$pkg_config" && break
15235 if test -z "$pkg_config" ; then
15236 { echo "$as_me:$LINENO: WARNING: pkg-config not found!" >&5
15237 echo "$as_me: WARNING: pkg-config not found!" >&2;}
15242 # Utility function for running pkg-config-based tests...
15245 pkg_check_version() {
15246 if test "$ok" = yes ; then
15249 { echo "$as_me:$LINENO: checking for $req" >&5
15250 echo $ECHO_N "checking for $req... $ECHO_C" >&6; }
15251 if $pkg_config --exists "$req" ; then
15252 vers=`$pkg_config --modversion "$req"`
15253 if $pkg_config --exists "$req >= $min" ; then
15254 { echo "$as_me:$LINENO: result: $vers" >&5
15255 echo "${ECHO_T}$vers" >&6; }
15259 { echo "$as_me:$LINENO: result: $vers (wanted >= $min)" >&5
15260 echo "${ECHO_T}$vers (wanted >= $min)" >&6; }
15265 { echo "$as_me:$LINENO: result: no" >&5
15266 echo "${ECHO_T}no" >&6; }
15277 if test "$with_gtk" = yes; then
15281 pkg_check_version gtk+-2.0 2.0.1 ; ac_gtk_version_string="$vers"
15282 pkg_check_version gmodule-2.0 2.0.0
15283 pkg_check_version libxml-2.0 2.4.6
15284 pkg_check_version libglade-2.0 1.99.0
15285 pkg_check_version gdk-pixbuf-2.0 2.0.0
15286 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
15289 if test "$have_gtk" = no; then
15290 if test -n "$ac_gtk_version_string" ; then
15291 gtk_halfassed="$ac_gtk_version_string"
15292 gtk_halfassed_lib="$req"
15296 if test "$have_gtk" = yes; then
15297 parse_gtk_version_string
15301 if test "$have_gtk" = yes; then
15302 { echo "$as_me:$LINENO: checking for Gtk includes" >&5
15303 echo $ECHO_N "checking for Gtk includes... $ECHO_C" >&6; }
15304 if test "${ac_cv_gtk_config_cflags+set}" = set; then
15305 echo $ECHO_N "(cached) $ECHO_C" >&6
15307 ac_cv_gtk_config_cflags=`$pkg_config --cflags $pkgs`
15309 { echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
15310 echo "${ECHO_T}$ac_cv_gtk_config_cflags" >&6; }
15311 { echo "$as_me:$LINENO: checking for Gtk libs" >&5
15312 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6; }
15313 if test "${ac_cv_gtk_config_libs+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15316 ac_cv_gtk_config_libs=`$pkg_config --libs $pkgs`
15318 { echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
15319 echo "${ECHO_T}$ac_cv_gtk_config_libs" >&6; }
15322 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
15323 ac_gtk_config_libs=$ac_cv_gtk_config_libs
15327 if test "$have_gtk" = yes; then
15328 GTK_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
15329 GTK_DATADIR="$GTK_DATADIR/share"
15332 if test "$have_gtk" = yes; then
15333 INCLUDES="$INCLUDES $ac_gtk_config_cflags"
15334 GTK_LIBS="$GTK_LIBS $ac_gtk_config_libs"
15335 cat >>confdefs.h <<\_ACEOF
15339 cat >>confdefs.h <<\_ACEOF
15340 #define HAVE_GTK2 1
15343 cat >>confdefs.h <<\_ACEOF
15352 # Check for the various Gnome help and URL loading programs.
15354 WITH_BROWSER=gnome-open
15355 if test "$have_gtk" = yes; then
15356 for ac_prog in gnome-open
15358 # Extract the first word of "$ac_prog", so it can be a program name with args.
15359 set dummy $ac_prog; ac_word=$2
15360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15362 if test "${ac_cv_prog_gnome_open_program+set}" = set; then
15363 echo $ECHO_N "(cached) $ECHO_C" >&6
15365 if test -n "$gnome_open_program"; then
15366 ac_cv_prog_gnome_open_program="$gnome_open_program" # Let the user override the test.
15368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15369 for as_dir in $PATH
15372 test -z "$as_dir" && as_dir=.
15373 for ac_exec_ext in '' $ac_executable_extensions; do
15374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15375 ac_cv_prog_gnome_open_program="$ac_prog"
15376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15385 gnome_open_program=$ac_cv_prog_gnome_open_program
15386 if test -n "$gnome_open_program"; then
15387 { echo "$as_me:$LINENO: result: $gnome_open_program" >&5
15388 echo "${ECHO_T}$gnome_open_program" >&6; }
15390 { echo "$as_me:$LINENO: result: no" >&5
15391 echo "${ECHO_T}no" >&6; }
15395 test -n "$gnome_open_program" && break
15398 for ac_prog in gnome-url-show
15400 # Extract the first word of "$ac_prog", so it can be a program name with args.
15401 set dummy $ac_prog; ac_word=$2
15402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15404 if test "${ac_cv_prog_gnome_url_show_program+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 if test -n "$gnome_url_show_program"; then
15408 ac_cv_prog_gnome_url_show_program="$gnome_url_show_program" # Let the user override the test.
15410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15411 for as_dir in $PATH
15414 test -z "$as_dir" && as_dir=.
15415 for ac_exec_ext in '' $ac_executable_extensions; do
15416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15417 ac_cv_prog_gnome_url_show_program="$ac_prog"
15418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15427 gnome_url_show_program=$ac_cv_prog_gnome_url_show_program
15428 if test -n "$gnome_url_show_program"; then
15429 { echo "$as_me:$LINENO: result: $gnome_url_show_program" >&5
15430 echo "${ECHO_T}$gnome_url_show_program" >&6; }
15432 { echo "$as_me:$LINENO: result: no" >&5
15433 echo "${ECHO_T}no" >&6; }
15437 test -n "$gnome_url_show_program" && break
15443 ###############################################################################
15447 ###############################################################################
15450 with_motif_req=unspecified
15452 # Check whether --with-motif was given.
15453 if test "${with_motif+set}" = set; then
15454 withval=$with_motif; with_motif="$withval"; with_motif_req="$withval"
15461 case "$with_motif" in
15466 { echo "$as_me:$LINENO: checking for Motif headers" >&5
15467 echo $ECHO_N "checking for Motif headers... $ECHO_C" >&6; }
15468 d=$with_motif/include
15469 if test -d $d; then
15470 X_CFLAGS="-I$d $X_CFLAGS"
15471 { echo "$as_me:$LINENO: result: $d" >&5
15472 echo "${ECHO_T}$d" >&6; }
15474 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15475 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
15478 { echo "$as_me:$LINENO: checking for Motif libs" >&5
15479 echo $ECHO_N "checking for Motif libs... $ECHO_C" >&6; }
15481 if test -d $d; then
15482 X_LIBS="-L$d $X_LIBS"
15483 { echo "$as_me:$LINENO: result: $d" >&5
15484 echo "${ECHO_T}$d" >&6; }
15486 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15487 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
15490 # replace the directory string with "yes".
15491 with_motif_req="yes"
15492 with_motif=$with_motif_req
15497 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
15498 echo " If it is a directory, then \`DIR/include' will be added to"
15499 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15505 if test "$with_motif" != yes -a "$with_motif" != no ; then
15506 echo "error: must be yes or no: --with-motif=$with_motif"
15510 if test "$with_motif" = yes; then
15513 ac_save_CPPFLAGS="$CPPFLAGS"
15514 if test \! -z "$includedir" ; then
15515 CPPFLAGS="$CPPFLAGS -I$includedir"
15517 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15518 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15519 { echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
15520 echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6; }
15521 if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
15522 echo $ECHO_N "(cached) $ECHO_C" >&6
15524 cat >conftest.$ac_ext <<_ACEOF
15527 cat confdefs.h >>conftest.$ac_ext
15528 cat >>conftest.$ac_ext <<_ACEOF
15529 /* end confdefs.h. */
15530 #include <stdlib.h>
15532 #include <X11/Intrinsic.h>
15536 rm -rf conftest.$ac_objext
15537 if { (ac_try="$ac_compile"
15538 case "(($ac_try" in
15539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540 *) ac_try_echo=$ac_try;;
15542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543 (eval "$ac_compile") 2>conftest.er1
15545 grep -v '^ *+' conftest.er1 >conftest.err
15546 rm -rf conftest.er1
15547 cat conftest.err >&5
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } && {
15550 test -z "$ac_c_werror_flag" ||
15551 test ! -s conftest.err
15552 } && test -s conftest.$ac_objext; then
15553 ac_cv_header_Xm_Xm_h=yes
15555 echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15558 ac_cv_header_Xm_Xm_h=no
15561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15563 { echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
15564 echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6; }
15565 if test $ac_cv_header_Xm_Xm_h = yes; then
15567 cat >>confdefs.h <<\_ACEOF
15568 #define HAVE_MOTIF 1
15571 MOTIF_LIBS="$MOTIF_LIBS -lXm"
15575 CPPFLAGS="$ac_save_CPPFLAGS"
15579 if test "$have_motif" = yes; then
15581 ac_save_CPPFLAGS="$CPPFLAGS"
15582 if test \! -z "$includedir" ; then
15583 CPPFLAGS="$CPPFLAGS -I$includedir"
15585 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15586 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15587 { echo "$as_me:$LINENO: checking for Xm/ComboBox.h" >&5
15588 echo $ECHO_N "checking for Xm/ComboBox.h... $ECHO_C" >&6; }
15589 if test "${ac_cv_header_Xm_ComboBox_h+set}" = set; then
15590 echo $ECHO_N "(cached) $ECHO_C" >&6
15592 cat >conftest.$ac_ext <<_ACEOF
15595 cat confdefs.h >>conftest.$ac_ext
15596 cat >>conftest.$ac_ext <<_ACEOF
15597 /* end confdefs.h. */
15598 #include <stdlib.h>
15600 #include <X11/Intrinsic.h>
15602 #include <Xm/ComboBox.h>
15604 rm -rf conftest.$ac_objext
15605 if { (ac_try="$ac_compile"
15606 case "(($ac_try" in
15607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608 *) ac_try_echo=$ac_try;;
15610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15611 (eval "$ac_compile") 2>conftest.er1
15613 grep -v '^ *+' conftest.er1 >conftest.err
15614 rm -rf conftest.er1
15615 cat conftest.err >&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } && {
15618 test -z "$ac_c_werror_flag" ||
15619 test ! -s conftest.err
15620 } && test -s conftest.$ac_objext; then
15621 ac_cv_header_Xm_ComboBox_h=yes
15623 echo "$as_me: failed program was:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15626 ac_cv_header_Xm_ComboBox_h=no
15629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15631 { echo "$as_me:$LINENO: result: $ac_cv_header_Xm_ComboBox_h" >&5
15632 echo "${ECHO_T}$ac_cv_header_Xm_ComboBox_h" >&6; }
15633 if test $ac_cv_header_Xm_ComboBox_h = yes; then
15634 cat >>confdefs.h <<\_ACEOF
15635 #define HAVE_XMCOMBOBOX 1
15641 CPPFLAGS="$ac_save_CPPFLAGS"
15645 ###############################################################################
15647 # Checking whether Motif is really Lesstif.
15649 ###############################################################################
15652 if test "$have_motif" = yes ; then
15653 { echo "$as_me:$LINENO: checking whether Motif is really LessTif" >&5
15654 echo $ECHO_N "checking whether Motif is really LessTif... $ECHO_C" >&6; }
15655 if test "${ac_cv_have_lesstif+set}" = set; then
15656 echo $ECHO_N "(cached) $ECHO_C" >&6
15659 ac_save_CPPFLAGS="$CPPFLAGS"
15660 if test \! -z "$includedir" ; then
15661 CPPFLAGS="$CPPFLAGS -I$includedir"
15663 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15664 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15665 cat >conftest.$ac_ext <<_ACEOF
15668 cat confdefs.h >>conftest.$ac_ext
15669 cat >>conftest.$ac_ext <<_ACEOF
15670 /* end confdefs.h. */
15675 long vers = LesstifVersion;
15680 rm -rf conftest.$ac_objext
15681 if { (ac_try="$ac_compile"
15682 case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_compile") 2>conftest.er1
15689 grep -v '^ *+' conftest.er1 >conftest.err
15690 rm -rf conftest.er1
15691 cat conftest.err >&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } && {
15694 test -z "$ac_c_werror_flag" ||
15695 test ! -s conftest.err
15696 } && test -s conftest.$ac_objext; then
15697 ac_cv_have_lesstif=yes
15699 echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15702 ac_cv_have_lesstif=no
15705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15706 CPPFLAGS="$ac_save_CPPFLAGS"
15708 { echo "$as_me:$LINENO: result: $ac_cv_have_lesstif" >&5
15709 echo "${ECHO_T}$ac_cv_have_lesstif" >&6; }
15710 have_lesstif=$ac_cv_have_lesstif
15714 lesstif_version=unknown
15715 lesstif_version_string=unknown
15717 if test "$have_lesstif" = yes ; then
15719 echo unknown > conftest-lt
15720 { echo "$as_me:$LINENO: checking LessTif version number" >&5
15721 echo $ECHO_N "checking LessTif version number... $ECHO_C" >&6; }
15722 if test "${ac_cv_lesstif_version_string+set}" = set; then
15723 echo $ECHO_N "(cached) $ECHO_C" >&6
15726 ac_save_CPPFLAGS="$CPPFLAGS"
15727 if test \! -z "$includedir" ; then
15728 CPPFLAGS="$CPPFLAGS -I$includedir"
15730 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15731 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15732 if test "$cross_compiling" = yes; then
15733 ac_cv_lesstif_version=unknown
15734 ac_cv_lesstif_version_string=unknown
15736 cat >conftest.$ac_ext <<_ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h. */
15745 FILE *f = fopen("conftest-lt", "w");
15747 fprintf(f, "%d %d.%d\n", LesstifVersion,
15748 LESSTIF_VERSION, LESSTIF_REVISION);
15753 rm -rf conftest$ac_exeext
15754 if { (ac_try="$ac_link"
15755 case "(($ac_try" in
15756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15757 *) ac_try_echo=$ac_try;;
15759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15760 (eval "$ac_link") 2>&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15764 { (case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15769 (eval "$ac_try") 2>&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; }; then
15773 ltv=`cat conftest-lt`
15774 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
15775 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
15777 echo "$as_me: program exited with status $ac_status" >&5
15778 echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15781 ( exit $ac_status )
15782 ac_cv_lesstif_version=unknown
15783 ac_cv_lesstif_version_string=unknown
15785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15789 CPPFLAGS="$ac_save_CPPFLAGS"
15791 { echo "$as_me:$LINENO: result: $ac_cv_lesstif_version_string" >&5
15792 echo "${ECHO_T}$ac_cv_lesstif_version_string" >&6; }
15794 lesstif_version=$ac_cv_lesstif_version
15795 lesstif_version_string=$ac_cv_lesstif_version_string
15800 if test "$have_motif" = yes ; then
15802 echo unknown > conftest-mt
15803 { echo "$as_me:$LINENO: checking Motif version number" >&5
15804 echo $ECHO_N "checking Motif version number... $ECHO_C" >&6; }
15805 if test "${ac_cv_motif_version_string+set}" = set; then
15806 echo $ECHO_N "(cached) $ECHO_C" >&6
15809 ac_save_CPPFLAGS="$CPPFLAGS"
15810 if test \! -z "$includedir" ; then
15811 CPPFLAGS="$CPPFLAGS -I$includedir"
15813 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15814 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15815 if test "$cross_compiling" = yes; then
15816 ac_cv_motif_version=unknown
15817 ac_cv_motif_version_string=unknown
15819 cat >conftest.$ac_ext <<_ACEOF
15822 cat confdefs.h >>conftest.$ac_ext
15823 cat >>conftest.$ac_ext <<_ACEOF
15824 /* end confdefs.h. */
15828 FILE *f = fopen("conftest-mt", "w");
15830 fprintf(f, "%d %d.%d\n", XmVersion,
15831 XmVERSION, XmREVISION);
15836 rm -rf conftest$ac_exeext
15837 if { (ac_try="$ac_link"
15838 case "(($ac_try" in
15839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840 *) ac_try_echo=$ac_try;;
15842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15843 (eval "$ac_link") 2>&5
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15847 { (case "(($ac_try" in
15848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15849 *) ac_try_echo=$ac_try;;
15851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852 (eval "$ac_try") 2>&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }; }; then
15856 mtv=`cat conftest-mt`
15857 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
15858 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
15860 echo "$as_me: program exited with status $ac_status" >&5
15861 echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15864 ( exit $ac_status )
15865 ac_cv_motif_version=unknown
15866 ac_cv_motif_version_string=unknown
15868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15872 CPPFLAGS="$ac_save_CPPFLAGS"
15874 { echo "$as_me:$LINENO: result: $ac_cv_motif_version_string" >&5
15875 echo "${ECHO_T}$ac_cv_motif_version_string" >&6; }
15877 motif_version=$ac_cv_motif_version
15878 motif_version_string=$ac_cv_motif_version_string
15883 ###############################################################################
15885 # Checking whether Motif requires -lXpm.
15887 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
15888 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
15889 # of the library whether to build the XPM code into libXm, or whether
15890 # to rely on an external libXm. So the only way to tell whether XPM is
15891 # a link-time requirement is to examine libXm.a, which is very
15892 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
15893 # always link against XPM if the XPM lib exists (and this will be a
15894 # no-op if libXm happens to already have the XPM code in it.)
15896 ###############################################################################
15898 motif_requires_xpm=no
15899 if test "$have_motif" = yes ; then
15900 { echo "$as_me:$LINENO: checking whether Motif requires XPM" >&5
15901 echo $ECHO_N "checking whether Motif requires XPM... $ECHO_C" >&6; }
15902 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
15904 motif_requires_xpm=yes
15905 { echo "$as_me:$LINENO: result: maybe" >&5
15906 echo "${ECHO_T}maybe" >&6; }
15908 { echo "$as_me:$LINENO: result: no" >&5
15909 echo "${ECHO_T}no" >&6; }
15914 ###############################################################################
15916 # Checking whether Motif requires -lXp.
15918 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
15919 # Extension". Why this extension isn't in -lXext with all the others,
15922 ###############################################################################
15925 if test "$have_motif" = yes ; then
15928 ac_save_CPPFLAGS="$CPPFLAGS"
15929 ac_save_LDFLAGS="$LDFLAGS"
15930 # ac_save_LIBS="$LIBS"
15932 if test \! -z "$includedir" ; then
15933 CPPFLAGS="$CPPFLAGS -I$includedir"
15935 # note: $X_CFLAGS includes $x_includes
15936 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15938 if test \! -z "$libdir" ; then
15939 LDFLAGS="$LDFLAGS -L$libdir"
15941 # note: $X_LIBS includes $x_libraries
15942 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15944 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15945 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
15946 { echo "$as_me:$LINENO: checking for XpQueryExtension in -lXp" >&5
15947 echo $ECHO_N "checking for XpQueryExtension in -lXp... $ECHO_C" >&6; }
15948 if test "${ac_cv_lib_Xp_XpQueryExtension+set}" = set; then
15949 echo $ECHO_N "(cached) $ECHO_C" >&6
15951 ac_check_lib_save_LIBS=$LIBS
15952 LIBS="-lXp -lX11 -lXext -lm $LIBS"
15953 cat >conftest.$ac_ext <<_ACEOF
15956 cat confdefs.h >>conftest.$ac_ext
15957 cat >>conftest.$ac_ext <<_ACEOF
15958 /* end confdefs.h. */
15960 /* Override any GCC internal prototype to avoid an error.
15961 Use char because int might match the return type of a GCC
15962 builtin and then its argument prototype would still apply. */
15966 char XpQueryExtension ();
15970 return XpQueryExtension ();
15975 rm -rf conftest.$ac_objext conftest$ac_exeext
15976 if { (ac_try="$ac_link"
15977 case "(($ac_try" in
15978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15979 *) ac_try_echo=$ac_try;;
15981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15982 (eval "$ac_link") 2>conftest.er1
15984 grep -v '^ *+' conftest.er1 >conftest.err
15985 rm -rf conftest.er1
15986 cat conftest.err >&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } && {
15989 test -z "$ac_c_werror_flag" ||
15990 test ! -s conftest.err
15991 } && test -s conftest$ac_exeext &&
15992 $as_test_x conftest$ac_exeext; then
15993 ac_cv_lib_Xp_XpQueryExtension=yes
15995 echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15998 ac_cv_lib_Xp_XpQueryExtension=no
16001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16002 conftest$ac_exeext conftest.$ac_ext
16003 LIBS=$ac_check_lib_save_LIBS
16005 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
16006 echo "${ECHO_T}$ac_cv_lib_Xp_XpQueryExtension" >&6; }
16007 if test $ac_cv_lib_Xp_XpQueryExtension = yes; then
16008 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
16013 CPPFLAGS="$ac_save_CPPFLAGS"
16014 LDFLAGS="$ac_save_LDFLAGS"
16015 # LIBS="$ac_save_LIBS"
16020 ###############################################################################
16022 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
16024 ###############################################################################
16027 if test "$have_motif" = yes ; then
16029 ac_save_CPPFLAGS="$CPPFLAGS"
16030 ac_save_LDFLAGS="$LDFLAGS"
16031 # ac_save_LIBS="$LIBS"
16033 if test \! -z "$includedir" ; then
16034 CPPFLAGS="$CPPFLAGS -I$includedir"
16036 # note: $X_CFLAGS includes $x_includes
16037 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16039 if test \! -z "$libdir" ; then
16040 LDFLAGS="$LDFLAGS -L$libdir"
16042 # note: $X_LIBS includes $x_libraries
16043 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16045 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16046 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
16047 { echo "$as_me:$LINENO: checking for _Xsetlocale in -lXintl" >&5
16048 echo $ECHO_N "checking for _Xsetlocale in -lXintl... $ECHO_C" >&6; }
16049 if test "${ac_cv_lib_Xintl__Xsetlocale+set}" = set; then
16050 echo $ECHO_N "(cached) $ECHO_C" >&6
16052 ac_check_lib_save_LIBS=$LIBS
16053 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
16054 cat >conftest.$ac_ext <<_ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h. */
16061 /* Override any GCC internal prototype to avoid an error.
16062 Use char because int might match the return type of a GCC
16063 builtin and then its argument prototype would still apply. */
16067 char _Xsetlocale ();
16071 return _Xsetlocale ();
16076 rm -rf conftest.$ac_objext conftest$ac_exeext
16077 if { (ac_try="$ac_link"
16078 case "(($ac_try" in
16079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16080 *) ac_try_echo=$ac_try;;
16082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16083 (eval "$ac_link") 2>conftest.er1
16085 grep -v '^ *+' conftest.er1 >conftest.err
16086 rm -rf conftest.er1
16087 cat conftest.err >&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } && {
16090 test -z "$ac_c_werror_flag" ||
16091 test ! -s conftest.err
16092 } && test -s conftest$ac_exeext &&
16093 $as_test_x conftest$ac_exeext; then
16094 ac_cv_lib_Xintl__Xsetlocale=yes
16096 echo "$as_me: failed program was:" >&5
16097 sed 's/^/| /' conftest.$ac_ext >&5
16099 ac_cv_lib_Xintl__Xsetlocale=no
16102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16103 conftest$ac_exeext conftest.$ac_ext
16104 LIBS=$ac_check_lib_save_LIBS
16106 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
16107 echo "${ECHO_T}$ac_cv_lib_Xintl__Xsetlocale" >&6; }
16108 if test $ac_cv_lib_Xintl__Xsetlocale = yes; then
16114 CPPFLAGS="$ac_save_CPPFLAGS"
16115 LDFLAGS="$ac_save_LDFLAGS"
16116 # LIBS="$ac_save_LIBS"
16118 if test "$have_xintl" = yes; then
16119 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
16124 ###############################################################################
16126 # Check for -lGL or -lMesaGL.
16128 ###############################################################################
16132 with_gl_req=unspecified
16135 # Check whether --with-gl was given.
16136 if test "${with_gl+set}" = set; then
16137 withval=$with_gl; with_gl="$withval"; with_gl_req="$withval"
16149 { echo "$as_me:$LINENO: checking for GL headers" >&5
16150 echo $ECHO_N "checking for GL headers... $ECHO_C" >&6; }
16152 if test -d $d; then
16153 X_CFLAGS="-I$d $X_CFLAGS"
16154 { echo "$as_me:$LINENO: result: $d" >&5
16155 echo "${ECHO_T}$d" >&6; }
16157 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16158 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
16161 { echo "$as_me:$LINENO: checking for GL libs" >&5
16162 echo $ECHO_N "checking for GL libs... $ECHO_C" >&6; }
16164 if test -d $d; then
16165 X_LIBS="-L$d $X_LIBS"
16166 { echo "$as_me:$LINENO: result: $d" >&5
16167 echo "${ECHO_T}$d" >&6; }
16169 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16170 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
16173 # replace the directory string with "yes".
16175 with_gl=$with_gl_req
16180 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
16181 echo " If it is a directory, then \`DIR/include' will be added to"
16182 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16188 ac_mesagl_version=unknown
16189 ac_mesagl_version_string=unknown
16191 if test "$with_gl" = yes; then
16193 ac_save_CPPFLAGS="$CPPFLAGS"
16194 if test \! -z "$includedir" ; then
16195 CPPFLAGS="$CPPFLAGS -I$includedir"
16197 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16198 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16199 if test "${ac_cv_header_GL_gl_h+set}" = set; then
16200 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
16201 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
16202 if test "${ac_cv_header_GL_gl_h+set}" = set; then
16203 echo $ECHO_N "(cached) $ECHO_C" >&6
16205 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
16206 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
16208 # Is the header compilable?
16209 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
16210 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
16211 cat >conftest.$ac_ext <<_ACEOF
16214 cat confdefs.h >>conftest.$ac_ext
16215 cat >>conftest.$ac_ext <<_ACEOF
16216 /* end confdefs.h. */
16217 $ac_includes_default
16220 rm -rf conftest.$ac_objext
16221 if { (ac_try="$ac_compile"
16222 case "(($ac_try" in
16223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224 *) ac_try_echo=$ac_try;;
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227 (eval "$ac_compile") 2>conftest.er1
16229 grep -v '^ *+' conftest.er1 >conftest.err
16230 rm -rf conftest.er1
16231 cat conftest.err >&5
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); } && {
16234 test -z "$ac_c_werror_flag" ||
16235 test ! -s conftest.err
16236 } && test -s conftest.$ac_objext; then
16237 ac_header_compiler=yes
16239 echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16242 ac_header_compiler=no
16245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16247 echo "${ECHO_T}$ac_header_compiler" >&6; }
16249 # Is the header present?
16250 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
16251 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
16252 cat >conftest.$ac_ext <<_ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h. */
16260 if { (ac_try="$ac_cpp conftest.$ac_ext"
16261 case "(($ac_try" in
16262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16268 grep -v '^ *+' conftest.er1 >conftest.err
16269 rm -rf conftest.er1
16270 cat conftest.err >&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } >/dev/null && {
16273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16274 test ! -s conftest.err
16276 ac_header_preproc=yes
16278 echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16281 ac_header_preproc=no
16284 rm -rf conftest.err conftest.$ac_ext
16285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16286 echo "${ECHO_T}$ac_header_preproc" >&6; }
16288 # So? What about this header?
16289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16291 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16292 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
16294 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
16295 ac_header_preproc=yes
16298 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
16299 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
16300 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
16301 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
16302 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
16303 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
16304 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
16305 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16306 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
16307 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
16309 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
16313 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
16314 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
16315 if test "${ac_cv_header_GL_gl_h+set}" = set; then
16316 echo $ECHO_N "(cached) $ECHO_C" >&6
16318 ac_cv_header_GL_gl_h=$ac_header_preproc
16320 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
16321 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
16324 if test $ac_cv_header_GL_gl_h = yes; then
16331 CPPFLAGS="$ac_save_CPPFLAGS"
16332 if test "$have_gl" = yes ; then
16334 ac_save_CPPFLAGS="$CPPFLAGS"
16335 if test \! -z "$includedir" ; then
16336 CPPFLAGS="$CPPFLAGS -I$includedir"
16338 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16339 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16340 { echo "$as_me:$LINENO: checking for GL/glx.h" >&5
16341 echo $ECHO_N "checking for GL/glx.h... $ECHO_C" >&6; }
16342 if test "${ac_cv_header_GL_glx_h+set}" = set; then
16343 echo $ECHO_N "(cached) $ECHO_C" >&6
16345 cat >conftest.$ac_ext <<_ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h. */
16353 #include <GL/glx.h>
16355 rm -rf conftest.$ac_objext
16356 if { (ac_try="$ac_compile"
16357 case "(($ac_try" in
16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359 *) ac_try_echo=$ac_try;;
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362 (eval "$ac_compile") 2>conftest.er1
16364 grep -v '^ *+' conftest.er1 >conftest.err
16365 rm -rf conftest.er1
16366 cat conftest.err >&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } && {
16369 test -z "$ac_c_werror_flag" ||
16370 test ! -s conftest.err
16371 } && test -s conftest.$ac_objext; then
16372 ac_cv_header_GL_glx_h=yes
16374 echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16377 ac_cv_header_GL_glx_h=no
16380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16382 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5
16383 echo "${ECHO_T}$ac_cv_header_GL_glx_h" >&6; }
16384 if test $ac_cv_header_GL_glx_h = yes; then
16391 CPPFLAGS="$ac_save_CPPFLAGS"
16394 # If we have the headers, try and figure out which vendor it's from.
16396 if test "$have_gl" = yes ; then
16398 # We need to know whether it's MesaGL so that we know which libraries
16401 { echo "$as_me:$LINENO: checking whether GL is really MesaGL" >&5
16402 echo $ECHO_N "checking whether GL is really MesaGL... $ECHO_C" >&6; }
16403 if test "${ac_cv_have_mesa_gl+set}" = set; then
16404 echo $ECHO_N "(cached) $ECHO_C" >&6
16406 ac_cv_have_mesa_gl=no
16407 if test "$ac_macosx" = no; then
16408 # WTF! MacOS 10.5.0 ships the Mesa GL headers!
16409 # It's not really Mesa, is it?
16411 ac_save_CPPFLAGS="$CPPFLAGS"
16412 if test \! -z "$includedir" ; then
16413 CPPFLAGS="$CPPFLAGS -I$includedir"
16415 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16416 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16417 cat >conftest.$ac_ext <<_ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h. */
16423 #include <GL/glx.h>
16426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16427 $EGREP "Mesa|MESA" >/dev/null 2>&1; then
16428 ac_cv_have_mesa_gl=yes
16432 CPPFLAGS="$ac_save_CPPFLAGS"
16435 { echo "$as_me:$LINENO: result: $ac_cv_have_mesa_gl" >&5
16436 echo "${ECHO_T}$ac_cv_have_mesa_gl" >&6; }
16437 ac_have_mesa_gl=$ac_cv_have_mesa_gl
16442 if test "$ac_macosx" = yes; then
16444 # Without these, every link against libGL gets a bunch of useless
16447 osx_crud="-bind_at_load -multiply_defined suppress"
16448 { echo "$as_me:$LINENO: result: adding \"$osx_crud\" to GL_LIBS" >&5
16449 echo "${ECHO_T}adding \"$osx_crud\" to GL_LIBS" >&6; }
16450 GL_LIBS="$GL_LIBS $osx_crud"
16453 # New lossage in 10.5.0: without this, we get:
16454 # ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
16456 osx_crud="/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
16457 osx_crud="-Wl,-dylib_file,${osx_crud}:${osx_crud}"
16459 { echo "$as_me:$LINENO: result: adding \"$osx_crud\" to GL_LIBS" >&5
16460 echo "${ECHO_T}adding \"$osx_crud\" to GL_LIBS" >&6; }
16461 GL_LIBS="$GL_LIBS $osx_crud"
16466 # Some versions of MesaGL are compiled to require -lpthread.
16467 # So if the Mesa headers exist, and -lpthread exists, then always
16468 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
16470 if test "$ac_have_mesa_gl" = yes; then
16471 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16472 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
16473 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16476 ac_check_lib_save_LIBS=$LIBS
16477 LIBS="-lpthread $LIBS"
16478 cat >conftest.$ac_ext <<_ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h. */
16485 /* Override any GCC internal prototype to avoid an error.
16486 Use char because int might match the return type of a GCC
16487 builtin and then its argument prototype would still apply. */
16491 char pthread_create ();
16495 return pthread_create ();
16500 rm -rf conftest.$ac_objext conftest$ac_exeext
16501 if { (ac_try="$ac_link"
16502 case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_link") 2>conftest.er1
16509 grep -v '^ *+' conftest.er1 >conftest.err
16510 rm -rf conftest.er1
16511 cat conftest.err >&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } && {
16514 test -z "$ac_c_werror_flag" ||
16515 test ! -s conftest.err
16516 } && test -s conftest$ac_exeext &&
16517 $as_test_x conftest$ac_exeext; then
16518 ac_cv_lib_pthread_pthread_create=yes
16520 echo "$as_me: failed program was:" >&5
16521 sed 's/^/| /' conftest.$ac_ext >&5
16523 ac_cv_lib_pthread_pthread_create=no
16526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16527 conftest$ac_exeext conftest.$ac_ext
16528 LIBS=$ac_check_lib_save_LIBS
16530 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
16531 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
16532 if test $ac_cv_lib_pthread_pthread_create = yes; then
16533 GL_LIBS="-lpthread"
16539 # If we have Mesa headers, check to see if we can link against -lMesaGL.
16540 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
16541 # Else, warn that GL is busted. (We have the headers, but no libs.)
16544 if test "$ac_have_mesa_gl" = yes ; then
16546 ac_save_CPPFLAGS="$CPPFLAGS"
16547 ac_save_LDFLAGS="$LDFLAGS"
16548 # ac_save_LIBS="$LIBS"
16550 if test \! -z "$includedir" ; then
16551 CPPFLAGS="$CPPFLAGS -I$includedir"
16553 # note: $X_CFLAGS includes $x_includes
16554 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16556 if test \! -z "$libdir" ; then
16557 LDFLAGS="$LDFLAGS -L$libdir"
16559 # note: $X_LIBS includes $x_libraries
16560 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16562 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16563 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
16564 { echo "$as_me:$LINENO: checking for glXCreateContext in -lMesaGL" >&5
16565 echo $ECHO_N "checking for glXCreateContext in -lMesaGL... $ECHO_C" >&6; }
16566 if test "${ac_cv_lib_MesaGL_glXCreateContext+set}" = set; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16569 ac_check_lib_save_LIBS=$LIBS
16570 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
16571 cat >conftest.$ac_ext <<_ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h. */
16578 /* Override any GCC internal prototype to avoid an error.
16579 Use char because int might match the return type of a GCC
16580 builtin and then its argument prototype would still apply. */
16584 char glXCreateContext ();
16588 return glXCreateContext ();
16593 rm -rf conftest.$ac_objext conftest$ac_exeext
16594 if { (ac_try="$ac_link"
16595 case "(($ac_try" in
16596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597 *) ac_try_echo=$ac_try;;
16599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600 (eval "$ac_link") 2>conftest.er1
16602 grep -v '^ *+' conftest.er1 >conftest.err
16603 rm -rf conftest.er1
16604 cat conftest.err >&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); } && {
16607 test -z "$ac_c_werror_flag" ||
16608 test ! -s conftest.err
16609 } && test -s conftest$ac_exeext &&
16610 $as_test_x conftest$ac_exeext; then
16611 ac_cv_lib_MesaGL_glXCreateContext=yes
16613 echo "$as_me: failed program was:" >&5
16614 sed 's/^/| /' conftest.$ac_ext >&5
16616 ac_cv_lib_MesaGL_glXCreateContext=no
16619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16620 conftest$ac_exeext conftest.$ac_ext
16621 LIBS=$ac_check_lib_save_LIBS
16623 { echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
16624 echo "${ECHO_T}$ac_cv_lib_MesaGL_glXCreateContext" >&6; }
16625 if test $ac_cv_lib_MesaGL_glXCreateContext = yes; then
16627 GL_LIBS="-lMesaGL -lMesaGLU $VIDMODE_LIBS $GL_LIBS"
16630 CPPFLAGS="$ac_save_CPPFLAGS"
16631 LDFLAGS="$ac_save_LDFLAGS"
16632 # LIBS="$ac_save_LIBS"
16636 if test "$gl_lib_1" = "" ; then
16638 ac_save_CPPFLAGS="$CPPFLAGS"
16639 ac_save_LDFLAGS="$LDFLAGS"
16640 # ac_save_LIBS="$LIBS"
16642 if test \! -z "$includedir" ; then
16643 CPPFLAGS="$CPPFLAGS -I$includedir"
16645 # note: $X_CFLAGS includes $x_includes
16646 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16648 if test \! -z "$libdir" ; then
16649 LDFLAGS="$LDFLAGS -L$libdir"
16651 # note: $X_LIBS includes $x_libraries
16652 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16654 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16655 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
16656 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
16657 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
16658 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
16659 echo $ECHO_N "(cached) $ECHO_C" >&6
16661 ac_check_lib_save_LIBS=$LIBS
16662 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
16663 cat >conftest.$ac_ext <<_ACEOF
16666 cat confdefs.h >>conftest.$ac_ext
16667 cat >>conftest.$ac_ext <<_ACEOF
16668 /* end confdefs.h. */
16670 /* Override any GCC internal prototype to avoid an error.
16671 Use char because int might match the return type of a GCC
16672 builtin and then its argument prototype would still apply. */
16676 char glXCreateContext ();
16680 return glXCreateContext ();
16685 rm -rf conftest.$ac_objext conftest$ac_exeext
16686 if { (ac_try="$ac_link"
16687 case "(($ac_try" in
16688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689 *) ac_try_echo=$ac_try;;
16691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692 (eval "$ac_link") 2>conftest.er1
16694 grep -v '^ *+' conftest.er1 >conftest.err
16695 rm -rf conftest.er1
16696 cat conftest.err >&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } && {
16699 test -z "$ac_c_werror_flag" ||
16700 test ! -s conftest.err
16701 } && test -s conftest$ac_exeext &&
16702 $as_test_x conftest$ac_exeext; then
16703 ac_cv_lib_GL_glXCreateContext=yes
16705 echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16708 ac_cv_lib_GL_glXCreateContext=no
16711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16712 conftest$ac_exeext conftest.$ac_ext
16713 LIBS=$ac_check_lib_save_LIBS
16715 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
16716 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
16717 if test $ac_cv_lib_GL_glXCreateContext = yes; then
16719 GL_LIBS="-lGL -lGLU $VIDMODE_LIBS $GL_LIBS"
16722 CPPFLAGS="$ac_save_CPPFLAGS"
16723 LDFLAGS="$ac_save_LDFLAGS"
16724 # LIBS="$ac_save_LIBS"
16728 if test "$gl_lib_1" = "" ; then
16729 # we have headers, but no libs -- bail.
16734 # linking works -- we can build the GL hacks.
16735 cat >>confdefs.h <<\_ACEOF
16739 if test "$ac_have_mesa_gl" = yes ; then
16740 cat >>confdefs.h <<\_ACEOF
16741 #define HAVE_MESA_GL 1
16749 # Now that we know we have GL headers and libs, do some more GL testing.
16752 if test "$have_gl" = yes ; then
16753 # If it's MesaGL, we'd like to issue a warning if the version number
16754 # is less than or equal to 2.6, because that version had a security bug.
16756 if test "$ac_have_mesa_gl" = yes; then
16758 { echo "$as_me:$LINENO: checking MesaGL version number" >&5
16759 echo $ECHO_N "checking MesaGL version number... $ECHO_C" >&6; }
16760 if test "${ac_cv_mesagl_version_string+set}" = set; then
16761 echo $ECHO_N "(cached) $ECHO_C" >&6
16763 cat > conftest.$ac_ext <<EOF
16764 #line 16768 "configure"
16765 #include "confdefs.h"
16767 #ifndef MESA_MAJOR_VERSION
16768 # include <GL/xmesa.h>
16769 # ifdef XMESA_MAJOR_VERSION
16770 /* Around Mesa 3.2, they took out the Mesa version number, so instead,
16771 we have to check the XMesa version number (the number of the X protocol
16772 support, which seems to be the same as the Mesa version number.)
16774 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
16775 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
16777 /* Oh great. Some time after 3.4, they took out the xmesa.h header file,
16778 so we have no way of telling what version of Mesa this is at all.
16779 So, we'll guess that the osmesa version (the "offscreen protocol")
16780 is less than or equal to the real mesa version number. Except that
16781 if OSmesa is 3.3, assume at least Mesa 3.4, since OSmesa was 3.3 in
16782 Mesa 3.4. And Mesa 3.3 had xmesa.h. What a complete load of shit!
16784 # include <GL/osmesa.h>
16785 # define MESA_MAJOR_VERSION OSMESA_MAJOR_VERSION
16786 # define MESA_MINOR_VERSION OSMESA_MINOR_VERSION or newer, probably?
16787 # if OSMESA_MAJOR_VERSION == 3 && OSMESA_MINOR_VERSION == 3
16788 # undef MESA_MINOR_VERSION
16789 # define MESA_MINOR_VERSION 4 or newer, probably?
16793 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
16796 ac_save_CPPFLAGS="$CPPFLAGS"
16797 if test \! -z "$includedir" ; then
16798 CPPFLAGS="$CPPFLAGS -I$includedir"
16800 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16802 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | grep configure:`
16806 mglv=`echo "$mglv" | sed -n \
16807 's/^configure: *\([0-9][0-9]*\) *\([0-9].*\)$/\1.\2/p'`
16810 rm -rf conftest.$ac_ext
16812 CPPFLAGS="$ac_save_CPPFLAGS"
16814 if test "$mglv" = ""; then
16815 ac_mesagl_version=unknown
16816 ac_mesagl_version_string=unknown
16818 ac_mesagl_version_string="$mglv"
16821 maj=`echo "$mglv" | sed -n 's/^\([0-9][0-9]*\)\..*$/\1/p'`
16822 min=`echo "$mglv" | sed -n 's/^.*\.\([0-9][0-9]*\).*$/\1/p'`
16824 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
16825 if test -z "$ac_mesagl_version"; then
16826 ac_mesagl_version=unknown
16827 ac_mesagl_version_string=unknown
16830 ac_cv_mesagl_version=$ac_mesagl_version
16831 ac_cv_mesagl_version_string=$ac_mesagl_version_string
16834 { echo "$as_me:$LINENO: result: $ac_cv_mesagl_version_string" >&5
16835 echo "${ECHO_T}$ac_cv_mesagl_version_string" >&6; }
16836 ac_mesagl_version=$ac_cv_mesagl_version
16837 ac_mesagl_version_string=$ac_cv_mesagl_version_string
16841 # Check for OpenGL 1.1 features.
16844 ac_save_CPPFLAGS="$CPPFLAGS"
16845 ac_save_LDFLAGS="$LDFLAGS"
16846 # ac_save_LIBS="$LIBS"
16848 if test \! -z "$includedir" ; then
16849 CPPFLAGS="$CPPFLAGS -I$includedir"
16851 # note: $X_CFLAGS includes $x_includes
16852 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16854 if test \! -z "$libdir" ; then
16855 LDFLAGS="$LDFLAGS -L$libdir"
16857 # note: $X_LIBS includes $x_libraries
16858 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16860 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16861 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
16862 as_ac_Lib=`echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
16863 { echo "$as_me:$LINENO: checking for glBindTexture in -l$gl_lib_1" >&5
16864 echo $ECHO_N "checking for glBindTexture in -l$gl_lib_1... $ECHO_C" >&6; }
16865 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
16866 echo $ECHO_N "(cached) $ECHO_C" >&6
16868 ac_check_lib_save_LIBS=$LIBS
16869 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
16870 cat >conftest.$ac_ext <<_ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h. */
16877 /* Override any GCC internal prototype to avoid an error.
16878 Use char because int might match the return type of a GCC
16879 builtin and then its argument prototype would still apply. */
16883 char glBindTexture ();
16887 return glBindTexture ();
16892 rm -rf conftest.$ac_objext conftest$ac_exeext
16893 if { (ac_try="$ac_link"
16894 case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_link") 2>conftest.er1
16901 grep -v '^ *+' conftest.er1 >conftest.err
16902 rm -rf conftest.er1
16903 cat conftest.err >&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } && {
16906 test -z "$ac_c_werror_flag" ||
16907 test ! -s conftest.err
16908 } && test -s conftest$ac_exeext &&
16909 $as_test_x conftest$ac_exeext; then
16910 eval "$as_ac_Lib=yes"
16912 echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16915 eval "$as_ac_Lib=no"
16918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16919 conftest$ac_exeext conftest.$ac_ext
16920 LIBS=$ac_check_lib_save_LIBS
16922 ac_res=`eval echo '${'$as_ac_Lib'}'`
16923 { echo "$as_me:$LINENO: result: $ac_res" >&5
16924 echo "${ECHO_T}$ac_res" >&6; }
16925 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16926 cat >>confdefs.h <<\_ACEOF
16927 #define HAVE_GLBINDTEXTURE 1
16934 CPPFLAGS="$ac_save_CPPFLAGS"
16935 LDFLAGS="$ac_save_LDFLAGS"
16936 # LIBS="$ac_save_LIBS"
16940 elif test "$with_gl" != no; then
16941 echo "error: must be yes or no: --with-gl=$with_gl"
16946 ###############################################################################
16950 ###############################################################################
16953 with_gle_req=unspecified
16956 # Check whether --with-gle was given.
16957 if test "${with_gle+set}" = set; then
16958 withval=$with_gle; with_gle="$withval"; with_gle_req="$withval"
16965 case "$with_gle" in
16970 { echo "$as_me:$LINENO: checking for GLE headers" >&5
16971 echo $ECHO_N "checking for GLE headers... $ECHO_C" >&6; }
16972 d=$with_gle/include
16973 if test -d $d; then
16974 X_CFLAGS="-I$d $X_CFLAGS"
16975 { echo "$as_me:$LINENO: result: $d" >&5
16976 echo "${ECHO_T}$d" >&6; }
16978 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16979 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
16982 { echo "$as_me:$LINENO: checking for GLE libs" >&5
16983 echo $ECHO_N "checking for GLE libs... $ECHO_C" >&6; }
16985 if test -d $d; then
16986 X_LIBS="-L$d $X_LIBS"
16987 { echo "$as_me:$LINENO: result: $d" >&5
16988 echo "${ECHO_T}$d" >&6; }
16990 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16991 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
16994 # replace the directory string with "yes".
16996 with_gle=$with_gle_req
17001 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
17002 echo " If it is a directory, then \`DIR/include' will be added to"
17003 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17011 if test "$have_gl" = no ; then
17013 elif test "$with_gle" = yes; then
17016 ac_save_CPPFLAGS="$CPPFLAGS"
17017 if test \! -z "$includedir" ; then
17018 CPPFLAGS="$CPPFLAGS -I$includedir"
17020 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17021 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17022 { echo "$as_me:$LINENO: checking for GL/gle.h" >&5
17023 echo $ECHO_N "checking for GL/gle.h... $ECHO_C" >&6; }
17024 if test "${ac_cv_header_GL_gle_h+set}" = set; then
17025 echo $ECHO_N "(cached) $ECHO_C" >&6
17027 cat >conftest.$ac_ext <<_ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h. */
17035 #include <GL/gle.h>
17037 rm -rf conftest.$ac_objext
17038 if { (ac_try="$ac_compile"
17039 case "(($ac_try" in
17040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041 *) ac_try_echo=$ac_try;;
17043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044 (eval "$ac_compile") 2>conftest.er1
17046 grep -v '^ *+' conftest.er1 >conftest.err
17047 rm -rf conftest.er1
17048 cat conftest.err >&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } && {
17051 test -z "$ac_c_werror_flag" ||
17052 test ! -s conftest.err
17053 } && test -s conftest.$ac_objext; then
17054 ac_cv_header_GL_gle_h=yes
17056 echo "$as_me: failed program was:" >&5
17057 sed 's/^/| /' conftest.$ac_ext >&5
17059 ac_cv_header_GL_gle_h=no
17062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17064 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gle_h" >&5
17065 echo "${ECHO_T}$ac_cv_header_GL_gle_h" >&6; }
17066 if test $ac_cv_header_GL_gle_h = yes; then
17073 CPPFLAGS="$ac_save_CPPFLAGS"
17074 if test "$have_gle3" = yes ; then
17078 ac_save_CPPFLAGS="$CPPFLAGS"
17079 if test \! -z "$includedir" ; then
17080 CPPFLAGS="$CPPFLAGS -I$includedir"
17082 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17083 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17084 { echo "$as_me:$LINENO: checking for GL/gutil.h" >&5
17085 echo $ECHO_N "checking for GL/gutil.h... $ECHO_C" >&6; }
17086 if test "${ac_cv_header_GL_gutil_h+set}" = set; then
17087 echo $ECHO_N "(cached) $ECHO_C" >&6
17089 cat >conftest.$ac_ext <<_ACEOF
17092 cat confdefs.h >>conftest.$ac_ext
17093 cat >>conftest.$ac_ext <<_ACEOF
17094 /* end confdefs.h. */
17097 #include <GL/gutil.h>
17099 rm -rf conftest.$ac_objext
17100 if { (ac_try="$ac_compile"
17101 case "(($ac_try" in
17102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103 *) ac_try_echo=$ac_try;;
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106 (eval "$ac_compile") 2>conftest.er1
17108 grep -v '^ *+' conftest.er1 >conftest.err
17109 rm -rf conftest.er1
17110 cat conftest.err >&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } && {
17113 test -z "$ac_c_werror_flag" ||
17114 test ! -s conftest.err
17115 } && test -s conftest.$ac_objext; then
17116 ac_cv_header_GL_gutil_h=yes
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17121 ac_cv_header_GL_gutil_h=no
17124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17126 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gutil_h" >&5
17127 echo "${ECHO_T}$ac_cv_header_GL_gutil_h" >&6; }
17128 if test $ac_cv_header_GL_gutil_h = yes; then
17135 CPPFLAGS="$ac_save_CPPFLAGS"
17136 if test "$have_gle" = yes ; then
17138 ac_save_CPPFLAGS="$CPPFLAGS"
17139 if test \! -z "$includedir" ; then
17140 CPPFLAGS="$CPPFLAGS -I$includedir"
17142 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17143 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17144 { echo "$as_me:$LINENO: checking for GL/tube.h" >&5
17145 echo $ECHO_N "checking for GL/tube.h... $ECHO_C" >&6; }
17146 if test "${ac_cv_header_GL_tube_h+set}" = set; then
17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17149 cat >conftest.$ac_ext <<_ACEOF
17152 cat confdefs.h >>conftest.$ac_ext
17153 cat >>conftest.$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17157 #include <GL/tube.h>
17159 rm -rf conftest.$ac_objext
17160 if { (ac_try="$ac_compile"
17161 case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_compile") 2>conftest.er1
17168 grep -v '^ *+' conftest.er1 >conftest.err
17169 rm -rf conftest.er1
17170 cat conftest.err >&5
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); } && {
17173 test -z "$ac_c_werror_flag" ||
17174 test ! -s conftest.err
17175 } && test -s conftest.$ac_objext; then
17176 ac_cv_header_GL_tube_h=yes
17178 echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17181 ac_cv_header_GL_tube_h=no
17184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17186 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_tube_h" >&5
17187 echo "${ECHO_T}$ac_cv_header_GL_tube_h" >&6; }
17188 if test $ac_cv_header_GL_tube_h = yes; then
17195 CPPFLAGS="$ac_save_CPPFLAGS"
17199 if test "$have_gle" = yes ; then
17203 ac_save_CPPFLAGS="$CPPFLAGS"
17204 ac_save_LDFLAGS="$LDFLAGS"
17205 # ac_save_LIBS="$LIBS"
17207 if test \! -z "$includedir" ; then
17208 CPPFLAGS="$CPPFLAGS -I$includedir"
17210 # note: $X_CFLAGS includes $x_includes
17211 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17213 if test \! -z "$libdir" ; then
17214 LDFLAGS="$LDFLAGS -L$libdir"
17216 # note: $X_LIBS includes $x_libraries
17217 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17219 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17220 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17221 { echo "$as_me:$LINENO: checking for gleCreateGC in -lgle" >&5
17222 echo $ECHO_N "checking for gleCreateGC in -lgle... $ECHO_C" >&6; }
17223 if test "${ac_cv_lib_gle_gleCreateGC+set}" = set; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 ac_check_lib_save_LIBS=$LIBS
17227 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
17228 cat >conftest.$ac_ext <<_ACEOF
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17235 /* Override any GCC internal prototype to avoid an error.
17236 Use char because int might match the return type of a GCC
17237 builtin and then its argument prototype would still apply. */
17241 char gleCreateGC ();
17245 return gleCreateGC ();
17250 rm -rf conftest.$ac_objext conftest$ac_exeext
17251 if { (ac_try="$ac_link"
17252 case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_link") 2>conftest.er1
17259 grep -v '^ *+' conftest.er1 >conftest.err
17260 rm -rf conftest.er1
17261 cat conftest.err >&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } && {
17264 test -z "$ac_c_werror_flag" ||
17265 test ! -s conftest.err
17266 } && test -s conftest$ac_exeext &&
17267 $as_test_x conftest$ac_exeext; then
17268 ac_cv_lib_gle_gleCreateGC=yes
17270 echo "$as_me: failed program was:" >&5
17271 sed 's/^/| /' conftest.$ac_ext >&5
17273 ac_cv_lib_gle_gleCreateGC=no
17276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17277 conftest$ac_exeext conftest.$ac_ext
17278 LIBS=$ac_check_lib_save_LIBS
17280 { echo "$as_me:$LINENO: result: $ac_cv_lib_gle_gleCreateGC" >&5
17281 echo "${ECHO_T}$ac_cv_lib_gle_gleCreateGC" >&6; }
17282 if test $ac_cv_lib_gle_gleCreateGC = yes; then
17283 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
17286 CPPFLAGS="$ac_save_CPPFLAGS"
17287 LDFLAGS="$ac_save_LDFLAGS"
17288 # LIBS="$ac_save_LIBS"
17291 if test "$have_gle" = yes ; then
17295 # sometimes the libmatrix stuff is included in libgle. look there first.
17297 # I don't get it. For some reason, this test passes on SGI, as if
17298 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
17299 # Yet the link is succeeding. Why???
17301 # AC_CHECK_X_LIB(gle, uview_direction_d,
17302 # [have_gle=yes; gle_halfassed=no],
17303 # [], $GL_LIBS -lX11 -lXext -lm)
17305 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
17307 if test "$have_gle3" = yes ; then
17309 ac_save_CPPFLAGS="$CPPFLAGS"
17310 ac_save_LDFLAGS="$LDFLAGS"
17311 # ac_save_LIBS="$LIBS"
17313 if test \! -z "$includedir" ; then
17314 CPPFLAGS="$CPPFLAGS -I$includedir"
17316 # note: $X_CFLAGS includes $x_includes
17317 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17319 if test \! -z "$libdir" ; then
17320 LDFLAGS="$LDFLAGS -L$libdir"
17322 # note: $X_LIBS includes $x_libraries
17323 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17325 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17326 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17327 { echo "$as_me:$LINENO: checking for uview_direction in -lgle" >&5
17328 echo $ECHO_N "checking for uview_direction in -lgle... $ECHO_C" >&6; }
17329 if test "${ac_cv_lib_gle_uview_direction+set}" = set; then
17330 echo $ECHO_N "(cached) $ECHO_C" >&6
17332 ac_check_lib_save_LIBS=$LIBS
17333 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
17334 cat >conftest.$ac_ext <<_ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17341 /* Override any GCC internal prototype to avoid an error.
17342 Use char because int might match the return type of a GCC
17343 builtin and then its argument prototype would still apply. */
17347 char uview_direction ();
17351 return uview_direction ();
17356 rm -rf conftest.$ac_objext conftest$ac_exeext
17357 if { (ac_try="$ac_link"
17358 case "(($ac_try" in
17359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360 *) ac_try_echo=$ac_try;;
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363 (eval "$ac_link") 2>conftest.er1
17365 grep -v '^ *+' conftest.er1 >conftest.err
17366 rm -rf conftest.er1
17367 cat conftest.err >&5
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); } && {
17370 test -z "$ac_c_werror_flag" ||
17371 test ! -s conftest.err
17372 } && test -s conftest$ac_exeext &&
17373 $as_test_x conftest$ac_exeext; then
17374 ac_cv_lib_gle_uview_direction=yes
17376 echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17379 ac_cv_lib_gle_uview_direction=no
17382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17383 conftest$ac_exeext conftest.$ac_ext
17384 LIBS=$ac_check_lib_save_LIBS
17386 { echo "$as_me:$LINENO: result: $ac_cv_lib_gle_uview_direction" >&5
17387 echo "${ECHO_T}$ac_cv_lib_gle_uview_direction" >&6; }
17388 if test $ac_cv_lib_gle_uview_direction = yes; then
17389 have_gle=yes; gle_halfassed=no
17392 CPPFLAGS="$ac_save_CPPFLAGS"
17393 LDFLAGS="$ac_save_LDFLAGS"
17394 # LIBS="$ac_save_LIBS"
17397 # if it wasn't in libgle, then look in libmatrix.
17398 if test "$have_gle" = no ; then
17400 ac_save_CPPFLAGS="$CPPFLAGS"
17401 ac_save_LDFLAGS="$LDFLAGS"
17402 # ac_save_LIBS="$LIBS"
17404 if test \! -z "$includedir" ; then
17405 CPPFLAGS="$CPPFLAGS -I$includedir"
17407 # note: $X_CFLAGS includes $x_includes
17408 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17410 if test \! -z "$libdir" ; then
17411 LDFLAGS="$LDFLAGS -L$libdir"
17413 # note: $X_LIBS includes $x_libraries
17414 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17416 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17417 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17418 { echo "$as_me:$LINENO: checking for uview_direction_d in -lmatrix" >&5
17419 echo $ECHO_N "checking for uview_direction_d in -lmatrix... $ECHO_C" >&6; }
17420 if test "${ac_cv_lib_matrix_uview_direction_d+set}" = set; then
17421 echo $ECHO_N "(cached) $ECHO_C" >&6
17423 ac_check_lib_save_LIBS=$LIBS
17424 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
17425 cat >conftest.$ac_ext <<_ACEOF
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h. */
17432 /* Override any GCC internal prototype to avoid an error.
17433 Use char because int might match the return type of a GCC
17434 builtin and then its argument prototype would still apply. */
17438 char uview_direction_d ();
17442 return uview_direction_d ();
17447 rm -rf conftest.$ac_objext conftest$ac_exeext
17448 if { (ac_try="$ac_link"
17449 case "(($ac_try" in
17450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17451 *) ac_try_echo=$ac_try;;
17453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17454 (eval "$ac_link") 2>conftest.er1
17456 grep -v '^ *+' conftest.er1 >conftest.err
17457 rm -rf conftest.er1
17458 cat conftest.err >&5
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); } && {
17461 test -z "$ac_c_werror_flag" ||
17462 test ! -s conftest.err
17463 } && test -s conftest$ac_exeext &&
17464 $as_test_x conftest$ac_exeext; then
17465 ac_cv_lib_matrix_uview_direction_d=yes
17467 echo "$as_me: failed program was:" >&5
17468 sed 's/^/| /' conftest.$ac_ext >&5
17470 ac_cv_lib_matrix_uview_direction_d=no
17473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17474 conftest$ac_exeext conftest.$ac_ext
17475 LIBS=$ac_check_lib_save_LIBS
17477 { echo "$as_me:$LINENO: result: $ac_cv_lib_matrix_uview_direction_d" >&5
17478 echo "${ECHO_T}$ac_cv_lib_matrix_uview_direction_d" >&6; }
17479 if test $ac_cv_lib_matrix_uview_direction_d = yes; then
17480 have_gle=yes; gle_halfassed=no;
17481 GLE_LIBS="$GLE_LIBS -lmatrix"
17484 CPPFLAGS="$ac_save_CPPFLAGS"
17485 LDFLAGS="$ac_save_LDFLAGS"
17486 # LIBS="$ac_save_LIBS"
17491 if test "$have_gle" = yes ; then
17492 cat >>confdefs.h <<\_ACEOF
17496 if test "$have_gle3" = yes ; then
17497 cat >>confdefs.h <<\_ACEOF
17498 #define HAVE_GLE3 1
17504 elif test "$with_gle" != no; then
17505 echo "error: must be yes or no: --with-gle=$with_gle"
17511 ###############################################################################
17513 # Check for -lgdk_pixbuf.
17514 # These tests are for gdk_pixbuf usage of the hacks,
17515 # not xscreensaver-demo (thus we have to test again to get
17516 # the libraries right: don't want to pull in all of GTK
17519 ###############################################################################
17522 with_gdk_pixbuf_req=unspecified
17524 # Check whether --with-pixbuf was given.
17525 if test "${with_pixbuf+set}" = set; then
17526 withval=$with_pixbuf; with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
17528 with_gdk_pixbuf=yes
17532 # if --with-pixbuf=/directory/ was specified, remember that directory so that
17533 # we can also look for the `gdk-pixbuf-config' program in that directory.
17534 case "$with_gdk_pixbuf" in
17536 gdk_pixbuf_dir="$with_gdk_pixbuf"
17544 case "$with_gdk_pixbuf" in
17549 { echo "$as_me:$LINENO: checking for GDK_PIXBUF headers" >&5
17550 echo $ECHO_N "checking for GDK_PIXBUF headers... $ECHO_C" >&6; }
17551 d=$with_gdk_pixbuf/include
17552 if test -d $d; then
17553 X_CFLAGS="-I$d $X_CFLAGS"
17554 { echo "$as_me:$LINENO: result: $d" >&5
17555 echo "${ECHO_T}$d" >&6; }
17557 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17558 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
17561 { echo "$as_me:$LINENO: checking for GDK_PIXBUF libs" >&5
17562 echo $ECHO_N "checking for GDK_PIXBUF libs... $ECHO_C" >&6; }
17563 d=$with_gdk_pixbuf/lib
17564 if test -d $d; then
17565 X_LIBS="-L$d $X_LIBS"
17566 { echo "$as_me:$LINENO: result: $d" >&5
17567 echo "${ECHO_T}$d" >&6; }
17569 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17570 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
17573 # replace the directory string with "yes".
17574 with_gdk_pixbuf_req="yes"
17575 with_gdk_pixbuf=$with_gdk_pixbuf_req
17580 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
17581 echo " If it is a directory, then \`DIR/include' will be added to"
17582 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17588 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
17589 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
17593 if test "$with_gdk_pixbuf" = yes; then
17599 pkg_check_version gdk-pixbuf-2.0 2.0.0
17600 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
17601 have_gdk_pixbuf="$ok"
17603 if test "$have_gdk_pixbuf" = yes; then
17604 { echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
17605 echo $ECHO_N "checking for gdk-pixbuf includes... $ECHO_C" >&6; }
17606 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
17607 echo $ECHO_N "(cached) $ECHO_C" >&6
17609 ac_cv_gdk_pixbuf_config_cflags=`$pkg_config --cflags $pkgs`
17611 { echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
17612 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_cflags" >&6; }
17613 { echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
17614 echo $ECHO_N "checking for gdk-pixbuf libs... $ECHO_C" >&6; }
17615 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
17616 echo $ECHO_N "(cached) $ECHO_C" >&6
17618 ac_cv_gdk_pixbuf_config_libs=`$pkg_config --libs $pkgs`
17620 { echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
17621 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_libs" >&6; }
17624 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
17625 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
17628 if test "$have_gdk_pixbuf" = yes; then
17630 # we appear to have pixbuf; check for headers/libs to be sure.
17632 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
17633 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
17637 # check for header A...
17639 ac_save_CPPFLAGS="$CPPFLAGS"
17640 if test \! -z "$includedir" ; then
17641 CPPFLAGS="$CPPFLAGS -I$includedir"
17643 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17644 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17645 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17646 { echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
17647 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6; }
17648 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17651 { echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
17652 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6; }
17654 # Is the header compilable?
17655 { echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h usability" >&5
17656 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h usability... $ECHO_C" >&6; }
17657 cat >conftest.$ac_ext <<_ACEOF
17660 cat confdefs.h >>conftest.$ac_ext
17661 cat >>conftest.$ac_ext <<_ACEOF
17662 /* end confdefs.h. */
17663 $ac_includes_default
17664 #include <gdk-pixbuf/gdk-pixbuf.h>
17666 rm -rf conftest.$ac_objext
17667 if { (ac_try="$ac_compile"
17668 case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_compile") 2>conftest.er1
17675 grep -v '^ *+' conftest.er1 >conftest.err
17676 rm -rf conftest.er1
17677 cat conftest.err >&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); } && {
17680 test -z "$ac_c_werror_flag" ||
17681 test ! -s conftest.err
17682 } && test -s conftest.$ac_objext; then
17683 ac_header_compiler=yes
17685 echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17688 ac_header_compiler=no
17691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17693 echo "${ECHO_T}$ac_header_compiler" >&6; }
17695 # Is the header present?
17696 { echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h presence" >&5
17697 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h presence... $ECHO_C" >&6; }
17698 cat >conftest.$ac_ext <<_ACEOF
17701 cat confdefs.h >>conftest.$ac_ext
17702 cat >>conftest.$ac_ext <<_ACEOF
17703 /* end confdefs.h. */
17704 #include <gdk-pixbuf/gdk-pixbuf.h>
17706 if { (ac_try="$ac_cpp conftest.$ac_ext"
17707 case "(($ac_try" in
17708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709 *) ac_try_echo=$ac_try;;
17711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17714 grep -v '^ *+' conftest.er1 >conftest.err
17715 rm -rf conftest.er1
17716 cat conftest.err >&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); } >/dev/null && {
17719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17720 test ! -s conftest.err
17722 ac_header_preproc=yes
17724 echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17727 ac_header_preproc=no
17730 rm -rf conftest.err conftest.$ac_ext
17731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17732 echo "${ECHO_T}$ac_header_preproc" >&6; }
17734 # So? What about this header?
17735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17737 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&5
17738 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17739 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&5
17740 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&2;}
17741 ac_header_preproc=yes
17744 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&5
17745 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&2;}
17746 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&5
17747 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&2;}
17748 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&5
17749 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&2;}
17750 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&5
17751 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&2;}
17752 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
17753 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;}
17754 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&5
17755 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&2;}
17759 { echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
17760 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6; }
17761 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17764 ac_cv_header_gdk_pixbuf_gdk_pixbuf_h=$ac_header_preproc
17766 { echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
17767 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6; }
17770 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h = yes; then
17771 have_gdk_pixbuf=yes
17775 CPPFLAGS="$ac_save_CPPFLAGS"
17777 # if that worked, check for header B...
17778 if test "$have_gdk_pixbuf" = yes; then
17780 gdk_pixbuf_halfassed=yes
17782 ac_save_CPPFLAGS="$CPPFLAGS"
17783 if test \! -z "$includedir" ; then
17784 CPPFLAGS="$CPPFLAGS -I$includedir"
17786 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17787 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17788 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17789 { echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
17790 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6; }
17791 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17792 echo $ECHO_N "(cached) $ECHO_C" >&6
17794 { echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
17795 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6; }
17797 # Is the header compilable?
17798 { echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h usability" >&5
17799 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6; }
17800 cat >conftest.$ac_ext <<_ACEOF
17803 cat confdefs.h >>conftest.$ac_ext
17804 cat >>conftest.$ac_ext <<_ACEOF
17805 /* end confdefs.h. */
17806 $ac_includes_default
17807 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
17809 rm -rf conftest.$ac_objext
17810 if { (ac_try="$ac_compile"
17811 case "(($ac_try" in
17812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813 *) ac_try_echo=$ac_try;;
17815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17816 (eval "$ac_compile") 2>conftest.er1
17818 grep -v '^ *+' conftest.er1 >conftest.err
17819 rm -rf conftest.er1
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } && {
17823 test -z "$ac_c_werror_flag" ||
17824 test ! -s conftest.err
17825 } && test -s conftest.$ac_objext; then
17826 ac_header_compiler=yes
17828 echo "$as_me: failed program was:" >&5
17829 sed 's/^/| /' conftest.$ac_ext >&5
17831 ac_header_compiler=no
17834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17835 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17836 echo "${ECHO_T}$ac_header_compiler" >&6; }
17838 # Is the header present?
17839 { echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h presence" >&5
17840 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6; }
17841 cat >conftest.$ac_ext <<_ACEOF
17844 cat confdefs.h >>conftest.$ac_ext
17845 cat >>conftest.$ac_ext <<_ACEOF
17846 /* end confdefs.h. */
17847 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
17849 if { (ac_try="$ac_cpp conftest.$ac_ext"
17850 case "(($ac_try" in
17851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852 *) ac_try_echo=$ac_try;;
17854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17857 grep -v '^ *+' conftest.er1 >conftest.err
17858 rm -rf conftest.er1
17859 cat conftest.err >&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); } >/dev/null && {
17862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17863 test ! -s conftest.err
17865 ac_header_preproc=yes
17867 echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17870 ac_header_preproc=no
17873 rm -rf conftest.err conftest.$ac_ext
17874 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17875 echo "${ECHO_T}$ac_header_preproc" >&6; }
17877 # So? What about this header?
17878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17880 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17881 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17882 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
17883 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
17884 ac_header_preproc=yes
17887 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
17888 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
17889 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
17890 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
17891 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
17892 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
17893 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
17894 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17895 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
17896 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
17897 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
17898 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
17902 { echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
17903 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6; }
17904 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17905 echo $ECHO_N "(cached) $ECHO_C" >&6
17907 ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h=$ac_header_preproc
17909 { echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
17910 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6; }
17913 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h = yes; then
17914 have_gdk_pixbuf=yes
17915 gdk_pixbuf_halfassed=no
17919 CPPFLAGS="$ac_save_CPPFLAGS"
17921 # yay, it has a new name in Gtk 2.x...
17922 if test "$have_gdk_pixbuf" = no; then
17924 gdk_pixbuf_halfassed=yes
17926 ac_save_CPPFLAGS="$CPPFLAGS"
17927 if test \! -z "$includedir" ; then
17928 CPPFLAGS="$CPPFLAGS -I$includedir"
17930 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17931 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17932 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17933 { echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
17934 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6; }
17935 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17936 echo $ECHO_N "(cached) $ECHO_C" >&6
17938 { echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
17939 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6; }
17941 # Is the header compilable?
17942 { echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability" >&5
17943 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6; }
17944 cat >conftest.$ac_ext <<_ACEOF
17947 cat confdefs.h >>conftest.$ac_ext
17948 cat >>conftest.$ac_ext <<_ACEOF
17949 /* end confdefs.h. */
17950 $ac_includes_default
17951 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
17953 rm -rf conftest.$ac_objext
17954 if { (ac_try="$ac_compile"
17955 case "(($ac_try" in
17956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957 *) ac_try_echo=$ac_try;;
17959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17960 (eval "$ac_compile") 2>conftest.er1
17962 grep -v '^ *+' conftest.er1 >conftest.err
17963 rm -rf conftest.er1
17964 cat conftest.err >&5
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); } && {
17967 test -z "$ac_c_werror_flag" ||
17968 test ! -s conftest.err
17969 } && test -s conftest.$ac_objext; then
17970 ac_header_compiler=yes
17972 echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.$ac_ext >&5
17975 ac_header_compiler=no
17978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17979 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17980 echo "${ECHO_T}$ac_header_compiler" >&6; }
17982 # Is the header present?
17983 { echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence" >&5
17984 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6; }
17985 cat >conftest.$ac_ext <<_ACEOF
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h. */
17991 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
17993 if { (ac_try="$ac_cpp conftest.$ac_ext"
17994 case "(($ac_try" in
17995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996 *) ac_try_echo=$ac_try;;
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18001 grep -v '^ *+' conftest.er1 >conftest.err
18002 rm -rf conftest.er1
18003 cat conftest.err >&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); } >/dev/null && {
18006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18007 test ! -s conftest.err
18009 ac_header_preproc=yes
18011 echo "$as_me: failed program was:" >&5
18012 sed 's/^/| /' conftest.$ac_ext >&5
18014 ac_header_preproc=no
18017 rm -rf conftest.err conftest.$ac_ext
18018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18019 echo "${ECHO_T}$ac_header_preproc" >&6; }
18021 # So? What about this header?
18022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18024 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18025 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18026 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
18027 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
18028 ac_header_preproc=yes
18031 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
18032 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
18033 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
18034 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
18035 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
18036 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
18037 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
18038 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18039 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
18040 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
18041 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
18042 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
18046 { echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
18047 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6; }
18048 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
18049 echo $ECHO_N "(cached) $ECHO_C" >&6
18051 ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h=$ac_header_preproc
18053 { echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
18054 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6; }
18057 if test $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h = yes; then
18058 have_gdk_pixbuf=yes
18059 gdk_pixbuf_halfassed=no
18063 CPPFLAGS="$ac_save_CPPFLAGS"
18066 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
18069 if test "$have_gdk_pixbuf" = yes; then
18070 # we have the headers, now check for the libraries
18072 gdk_pixbuf_halfassed=yes
18074 { echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability..." >&5
18075 echo "${ECHO_T}checking for gdk_pixbuf usability..." >&6; }
18079 ac_save_CPPFLAGS="$CPPFLAGS"
18080 ac_save_LDFLAGS="$LDFLAGS"
18081 # ac_save_LIBS="$LIBS"
18083 if test \! -z "$includedir" ; then
18084 CPPFLAGS="$CPPFLAGS -I$includedir"
18086 # note: $X_CFLAGS includes $x_includes
18087 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18089 if test \! -z "$libdir" ; then
18090 LDFLAGS="$LDFLAGS -L$libdir"
18092 # note: $X_LIBS includes $x_libraries
18093 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18095 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18096 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18097 { echo "$as_me:$LINENO: checking for gdk_pixbuf_new_from_file in -lc" >&5
18098 echo $ECHO_N "checking for gdk_pixbuf_new_from_file in -lc... $ECHO_C" >&6; }
18099 if test "${ac_cv_lib_c_gdk_pixbuf_new_from_file+set}" = set; then
18100 echo $ECHO_N "(cached) $ECHO_C" >&6
18102 ac_check_lib_save_LIBS=$LIBS
18103 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
18104 cat >conftest.$ac_ext <<_ACEOF
18107 cat confdefs.h >>conftest.$ac_ext
18108 cat >>conftest.$ac_ext <<_ACEOF
18109 /* end confdefs.h. */
18111 /* Override any GCC internal prototype to avoid an error.
18112 Use char because int might match the return type of a GCC
18113 builtin and then its argument prototype would still apply. */
18117 char gdk_pixbuf_new_from_file ();
18121 return gdk_pixbuf_new_from_file ();
18126 rm -rf conftest.$ac_objext conftest$ac_exeext
18127 if { (ac_try="$ac_link"
18128 case "(($ac_try" in
18129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18130 *) ac_try_echo=$ac_try;;
18132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18133 (eval "$ac_link") 2>conftest.er1
18135 grep -v '^ *+' conftest.er1 >conftest.err
18136 rm -rf conftest.er1
18137 cat conftest.err >&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); } && {
18140 test -z "$ac_c_werror_flag" ||
18141 test ! -s conftest.err
18142 } && test -s conftest$ac_exeext &&
18143 $as_test_x conftest$ac_exeext; then
18144 ac_cv_lib_c_gdk_pixbuf_new_from_file=yes
18146 echo "$as_me: failed program was:" >&5
18147 sed 's/^/| /' conftest.$ac_ext >&5
18149 ac_cv_lib_c_gdk_pixbuf_new_from_file=no
18152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18153 conftest$ac_exeext conftest.$ac_ext
18154 LIBS=$ac_check_lib_save_LIBS
18156 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_new_from_file" >&5
18157 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_new_from_file" >&6; }
18158 if test $ac_cv_lib_c_gdk_pixbuf_new_from_file = yes; then
18159 have_gdk_pixbuf=yes
18162 CPPFLAGS="$ac_save_CPPFLAGS"
18163 LDFLAGS="$ac_save_LDFLAGS"
18164 # LIBS="$ac_save_LIBS"
18167 if test "$have_gdk_pixbuf" = yes; then
18170 ac_save_CPPFLAGS="$CPPFLAGS"
18171 ac_save_LDFLAGS="$LDFLAGS"
18172 # ac_save_LIBS="$LIBS"
18174 if test \! -z "$includedir" ; then
18175 CPPFLAGS="$CPPFLAGS -I$includedir"
18177 # note: $X_CFLAGS includes $x_includes
18178 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18180 if test \! -z "$libdir" ; then
18181 LDFLAGS="$LDFLAGS -L$libdir"
18183 # note: $X_LIBS includes $x_libraries
18184 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18186 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18187 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18188 { echo "$as_me:$LINENO: checking for gdk_pixbuf_xlib_init in -lc" >&5
18189 echo $ECHO_N "checking for gdk_pixbuf_xlib_init in -lc... $ECHO_C" >&6; }
18190 if test "${ac_cv_lib_c_gdk_pixbuf_xlib_init+set}" = set; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
18193 ac_check_lib_save_LIBS=$LIBS
18194 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
18195 cat >conftest.$ac_ext <<_ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h. */
18202 /* Override any GCC internal prototype to avoid an error.
18203 Use char because int might match the return type of a GCC
18204 builtin and then its argument prototype would still apply. */
18208 char gdk_pixbuf_xlib_init ();
18212 return gdk_pixbuf_xlib_init ();
18217 rm -rf conftest.$ac_objext conftest$ac_exeext
18218 if { (ac_try="$ac_link"
18219 case "(($ac_try" in
18220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18221 *) ac_try_echo=$ac_try;;
18223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18224 (eval "$ac_link") 2>conftest.er1
18226 grep -v '^ *+' conftest.er1 >conftest.err
18227 rm -rf conftest.er1
18228 cat conftest.err >&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); } && {
18231 test -z "$ac_c_werror_flag" ||
18232 test ! -s conftest.err
18233 } && test -s conftest$ac_exeext &&
18234 $as_test_x conftest$ac_exeext; then
18235 ac_cv_lib_c_gdk_pixbuf_xlib_init=yes
18237 echo "$as_me: failed program was:" >&5
18238 sed 's/^/| /' conftest.$ac_ext >&5
18240 ac_cv_lib_c_gdk_pixbuf_xlib_init=no
18243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18244 conftest$ac_exeext conftest.$ac_ext
18245 LIBS=$ac_check_lib_save_LIBS
18247 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_xlib_init" >&5
18248 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_xlib_init" >&6; }
18249 if test $ac_cv_lib_c_gdk_pixbuf_xlib_init = yes; then
18250 have_gdk_pixbuf=yes
18251 gdk_pixbuf_halfassed=no
18254 CPPFLAGS="$ac_save_CPPFLAGS"
18255 LDFLAGS="$ac_save_LDFLAGS"
18256 # LIBS="$ac_save_LIBS"
18261 if test "$have_gdk_pixbuf" = yes; then
18262 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
18263 XPM_LIBS="$ac_gdk_pixbuf_config_libs"
18264 cat >>confdefs.h <<\_ACEOF
18265 #define HAVE_GDK_PIXBUF 1
18269 { echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability... no" >&5
18270 echo "${ECHO_T}checking for gdk_pixbuf usability... no" >&6; }
18275 ###############################################################################
18279 ###############################################################################
18282 with_xpm_req=unspecified
18284 # Check whether --with-xpm was given.
18285 if test "${with_xpm+set}" = set; then
18286 withval=$with_xpm; with_xpm="$withval"; with_xpm_req="$withval"
18293 case "$with_xpm" in
18298 { echo "$as_me:$LINENO: checking for XPM headers" >&5
18299 echo $ECHO_N "checking for XPM headers... $ECHO_C" >&6; }
18300 d=$with_xpm/include
18301 if test -d $d; then
18302 X_CFLAGS="-I$d $X_CFLAGS"
18303 { echo "$as_me:$LINENO: result: $d" >&5
18304 echo "${ECHO_T}$d" >&6; }
18306 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18307 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
18310 { echo "$as_me:$LINENO: checking for XPM libs" >&5
18311 echo $ECHO_N "checking for XPM libs... $ECHO_C" >&6; }
18313 if test -d $d; then
18314 X_LIBS="-L$d $X_LIBS"
18315 { echo "$as_me:$LINENO: result: $d" >&5
18316 echo "${ECHO_T}$d" >&6; }
18318 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18319 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
18322 # replace the directory string with "yes".
18324 with_xpm=$with_xpm_req
18329 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
18330 echo " If it is a directory, then \`DIR/include' will be added to"
18331 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18337 if test "$with_xpm" = yes; then
18339 ac_save_CPPFLAGS="$CPPFLAGS"
18340 if test \! -z "$includedir" ; then
18341 CPPFLAGS="$CPPFLAGS -I$includedir"
18343 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18344 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18345 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18346 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
18347 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18348 echo $ECHO_N "(cached) $ECHO_C" >&6
18350 cat >conftest.$ac_ext <<_ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h. */
18356 #include <X11/Xlib.h>
18358 #include <X11/xpm.h>
18360 rm -rf conftest.$ac_objext
18361 if { (ac_try="$ac_compile"
18362 case "(($ac_try" in
18363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18364 *) ac_try_echo=$ac_try;;
18366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18367 (eval "$ac_compile") 2>conftest.er1
18369 grep -v '^ *+' conftest.er1 >conftest.err
18370 rm -rf conftest.er1
18371 cat conftest.err >&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); } && {
18374 test -z "$ac_c_werror_flag" ||
18375 test ! -s conftest.err
18376 } && test -s conftest.$ac_objext; then
18377 ac_cv_header_X11_xpm_h=yes
18379 echo "$as_me: failed program was:" >&5
18380 sed 's/^/| /' conftest.$ac_ext >&5
18382 ac_cv_header_X11_xpm_h=no
18385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18387 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18388 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
18389 if test $ac_cv_header_X11_xpm_h = yes; then
18391 cat >>confdefs.h <<\_ACEOF
18395 XPM_LIBS="-lXpm $XPM_LIBS"
18399 CPPFLAGS="$ac_save_CPPFLAGS"
18400 elif test "$with_xpm" != no; then
18401 echo "error: must be yes or no: --with-xpm=$with_xpm"
18405 # See comment near $motif_requires_xpm, above.
18406 # Need to do this here, after both Motif and XPM have been checked for.
18408 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
18409 if test "$motif_requires_xpm" = yes ; then
18410 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
18414 if test "$XPM_LIBS" = "" ; then
18415 XPM_LIBS=$(MINIXPM)
18419 ###############################################################################
18423 ###############################################################################
18426 with_jpeg_req=unspecified
18429 # Check whether --with-jpeg was given.
18430 if test "${with_jpeg+set}" = set; then
18431 withval=$with_jpeg; with_jpeg="$withval"; with_jpeg_req="$withval"
18438 case "$with_jpeg" in
18443 { echo "$as_me:$LINENO: checking for JPEG headers" >&5
18444 echo $ECHO_N "checking for JPEG headers... $ECHO_C" >&6; }
18445 d=$with_jpeg/include
18446 if test -d $d; then
18447 X_CFLAGS="-I$d $X_CFLAGS"
18448 { echo "$as_me:$LINENO: result: $d" >&5
18449 echo "${ECHO_T}$d" >&6; }
18451 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18452 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
18455 { echo "$as_me:$LINENO: checking for JPEG libs" >&5
18456 echo $ECHO_N "checking for JPEG libs... $ECHO_C" >&6; }
18458 if test -d $d; then
18459 X_LIBS="-L$d $X_LIBS"
18460 { echo "$as_me:$LINENO: result: $d" >&5
18461 echo "${ECHO_T}$d" >&6; }
18463 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18464 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
18467 # replace the directory string with "yes".
18468 with_jpeg_req="yes"
18469 with_jpeg=$with_jpeg_req
18474 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
18475 echo " If it is a directory, then \`DIR/include' will be added to"
18476 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18482 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
18483 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
18487 if test "$with_jpeg" = yes; then
18491 ac_save_CPPFLAGS="$CPPFLAGS"
18492 if test \! -z "$includedir" ; then
18493 CPPFLAGS="$CPPFLAGS -I$includedir"
18495 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18496 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18497 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18498 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18499 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
18500 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18501 echo $ECHO_N "(cached) $ECHO_C" >&6
18503 { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18504 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
18506 # Is the header compilable?
18507 { echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
18508 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6; }
18509 cat >conftest.$ac_ext <<_ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18515 $ac_includes_default
18516 #include <jpeglib.h>
18518 rm -rf conftest.$ac_objext
18519 if { (ac_try="$ac_compile"
18520 case "(($ac_try" in
18521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522 *) ac_try_echo=$ac_try;;
18524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525 (eval "$ac_compile") 2>conftest.er1
18527 grep -v '^ *+' conftest.er1 >conftest.err
18528 rm -rf conftest.er1
18529 cat conftest.err >&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); } && {
18532 test -z "$ac_c_werror_flag" ||
18533 test ! -s conftest.err
18534 } && test -s conftest.$ac_objext; then
18535 ac_header_compiler=yes
18537 echo "$as_me: failed program was:" >&5
18538 sed 's/^/| /' conftest.$ac_ext >&5
18540 ac_header_compiler=no
18543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18545 echo "${ECHO_T}$ac_header_compiler" >&6; }
18547 # Is the header present?
18548 { echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
18549 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6; }
18550 cat >conftest.$ac_ext <<_ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18556 #include <jpeglib.h>
18558 if { (ac_try="$ac_cpp conftest.$ac_ext"
18559 case "(($ac_try" in
18560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561 *) ac_try_echo=$ac_try;;
18563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18566 grep -v '^ *+' conftest.er1 >conftest.err
18567 rm -rf conftest.er1
18568 cat conftest.err >&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); } >/dev/null && {
18571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18572 test ! -s conftest.err
18574 ac_header_preproc=yes
18576 echo "$as_me: failed program was:" >&5
18577 sed 's/^/| /' conftest.$ac_ext >&5
18579 ac_header_preproc=no
18582 rm -rf conftest.err conftest.$ac_ext
18583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18584 echo "${ECHO_T}$ac_header_preproc" >&6; }
18586 # So? What about this header?
18587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18589 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18590 echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18591 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
18592 echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
18593 ac_header_preproc=yes
18596 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
18597 echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
18598 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
18599 echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
18600 { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
18601 echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
18602 { echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
18603 echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18604 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
18605 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
18606 { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
18607 echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
18611 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18612 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
18613 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18614 echo $ECHO_N "(cached) $ECHO_C" >&6
18616 ac_cv_header_jpeglib_h=$ac_header_preproc
18618 { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18619 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
18622 if test $ac_cv_header_jpeglib_h = yes; then
18627 CPPFLAGS="$ac_save_CPPFLAGS"
18629 if test "$have_jpeg" = yes; then
18630 # we have the header, now check for the library
18634 ac_save_CPPFLAGS="$CPPFLAGS"
18635 ac_save_LDFLAGS="$LDFLAGS"
18636 # ac_save_LIBS="$LIBS"
18638 if test \! -z "$includedir" ; then
18639 CPPFLAGS="$CPPFLAGS -I$includedir"
18641 # note: $X_CFLAGS includes $x_includes
18642 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18644 if test \! -z "$libdir" ; then
18645 LDFLAGS="$LDFLAGS -L$libdir"
18647 # note: $X_LIBS includes $x_libraries
18648 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18650 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18651 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18652 { echo "$as_me:$LINENO: checking for jpeg_start_compress in -ljpeg" >&5
18653 echo $ECHO_N "checking for jpeg_start_compress in -ljpeg... $ECHO_C" >&6; }
18654 if test "${ac_cv_lib_jpeg_jpeg_start_compress+set}" = set; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18657 ac_check_lib_save_LIBS=$LIBS
18658 LIBS="-ljpeg $LIBS"
18659 cat >conftest.$ac_ext <<_ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h. */
18666 /* Override any GCC internal prototype to avoid an error.
18667 Use char because int might match the return type of a GCC
18668 builtin and then its argument prototype would still apply. */
18672 char jpeg_start_compress ();
18676 return jpeg_start_compress ();
18681 rm -rf conftest.$ac_objext conftest$ac_exeext
18682 if { (ac_try="$ac_link"
18683 case "(($ac_try" in
18684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685 *) ac_try_echo=$ac_try;;
18687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688 (eval "$ac_link") 2>conftest.er1
18690 grep -v '^ *+' conftest.er1 >conftest.err
18691 rm -rf conftest.er1
18692 cat conftest.err >&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); } && {
18695 test -z "$ac_c_werror_flag" ||
18696 test ! -s conftest.err
18697 } && test -s conftest$ac_exeext &&
18698 $as_test_x conftest$ac_exeext; then
18699 ac_cv_lib_jpeg_jpeg_start_compress=yes
18701 echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18704 ac_cv_lib_jpeg_jpeg_start_compress=no
18707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18708 conftest$ac_exeext conftest.$ac_ext
18709 LIBS=$ac_check_lib_save_LIBS
18711 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
18712 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_compress" >&6; }
18713 if test $ac_cv_lib_jpeg_jpeg_start_compress = yes; then
18717 cat >>confdefs.h <<\_ACEOF
18718 #define HAVE_JPEGLIB 1
18723 CPPFLAGS="$ac_save_CPPFLAGS"
18724 LDFLAGS="$ac_save_LDFLAGS"
18725 # LIBS="$ac_save_LIBS"
18731 ###############################################################################
18733 # Check for pty support: this allows 'phosphor' and 'apple2'
18734 # to run curses-based programs, or be used as terminal windows.
18736 ###############################################################################
18741 for ac_header in pty.h util.h
18743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18748 echo $ECHO_N "(cached) $ECHO_C" >&6
18750 ac_res=`eval echo '${'$as_ac_Header'}'`
18751 { echo "$as_me:$LINENO: result: $ac_res" >&5
18752 echo "${ECHO_T}$ac_res" >&6; }
18754 # Is the header compilable?
18755 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18757 cat >conftest.$ac_ext <<_ACEOF
18760 cat confdefs.h >>conftest.$ac_ext
18761 cat >>conftest.$ac_ext <<_ACEOF
18762 /* end confdefs.h. */
18763 $ac_includes_default
18764 #include <$ac_header>
18766 rm -rf conftest.$ac_objext
18767 if { (ac_try="$ac_compile"
18768 case "(($ac_try" in
18769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770 *) ac_try_echo=$ac_try;;
18772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773 (eval "$ac_compile") 2>conftest.er1
18775 grep -v '^ *+' conftest.er1 >conftest.err
18776 rm -rf conftest.er1
18777 cat conftest.err >&5
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); } && {
18780 test -z "$ac_c_werror_flag" ||
18781 test ! -s conftest.err
18782 } && test -s conftest.$ac_objext; then
18783 ac_header_compiler=yes
18785 echo "$as_me: failed program was:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18788 ac_header_compiler=no
18791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18793 echo "${ECHO_T}$ac_header_compiler" >&6; }
18795 # Is the header present?
18796 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18798 cat >conftest.$ac_ext <<_ACEOF
18801 cat confdefs.h >>conftest.$ac_ext
18802 cat >>conftest.$ac_ext <<_ACEOF
18803 /* end confdefs.h. */
18804 #include <$ac_header>
18806 if { (ac_try="$ac_cpp conftest.$ac_ext"
18807 case "(($ac_try" in
18808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18809 *) ac_try_echo=$ac_try;;
18811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18814 grep -v '^ *+' conftest.er1 >conftest.err
18815 rm -rf conftest.er1
18816 cat conftest.err >&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); } >/dev/null && {
18819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18820 test ! -s conftest.err
18822 ac_header_preproc=yes
18824 echo "$as_me: failed program was:" >&5
18825 sed 's/^/| /' conftest.$ac_ext >&5
18827 ac_header_preproc=no
18830 rm -rf conftest.err conftest.$ac_ext
18831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18832 echo "${ECHO_T}$ac_header_preproc" >&6; }
18834 # So? What about this header?
18835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18841 ac_header_preproc=yes
18844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18862 echo $ECHO_N "(cached) $ECHO_C" >&6
18864 eval "$as_ac_Header=\$ac_header_preproc"
18866 ac_res=`eval echo '${'$as_ac_Header'}'`
18867 { echo "$as_me:$LINENO: result: $ac_res" >&5
18868 echo "${ECHO_T}$ac_res" >&6; }
18871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18872 cat >>confdefs.h <<_ACEOF
18873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18881 ac_save_CPPFLAGS="$CPPFLAGS"
18882 ac_save_LDFLAGS="$LDFLAGS"
18883 # ac_save_LIBS="$LIBS"
18885 if test \! -z "$includedir" ; then
18886 CPPFLAGS="$CPPFLAGS -I$includedir"
18888 # note: $X_CFLAGS includes $x_includes
18889 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18891 if test \! -z "$libdir" ; then
18892 LDFLAGS="$LDFLAGS -L$libdir"
18894 # note: $X_LIBS includes $x_libraries
18895 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18897 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18898 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18899 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18900 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
18901 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18904 ac_check_lib_save_LIBS=$LIBS
18905 LIBS="-lutil $LIBS"
18906 cat >conftest.$ac_ext <<_ACEOF
18909 cat confdefs.h >>conftest.$ac_ext
18910 cat >>conftest.$ac_ext <<_ACEOF
18911 /* end confdefs.h. */
18913 /* Override any GCC internal prototype to avoid an error.
18914 Use char because int might match the return type of a GCC
18915 builtin and then its argument prototype would still apply. */
18928 rm -rf conftest.$ac_objext conftest$ac_exeext
18929 if { (ac_try="$ac_link"
18930 case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935 (eval "$ac_link") 2>conftest.er1
18937 grep -v '^ *+' conftest.er1 >conftest.err
18938 rm -rf conftest.er1
18939 cat conftest.err >&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); } && {
18942 test -z "$ac_c_werror_flag" ||
18943 test ! -s conftest.err
18944 } && test -s conftest$ac_exeext &&
18945 $as_test_x conftest$ac_exeext; then
18946 ac_cv_lib_util_forkpty=yes
18948 echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18951 ac_cv_lib_util_forkpty=no
18954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18955 conftest$ac_exeext conftest.$ac_ext
18956 LIBS=$ac_check_lib_save_LIBS
18958 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18959 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
18960 if test $ac_cv_lib_util_forkpty = yes; then
18962 ac_have_forkpty=yes
18963 cat >>confdefs.h <<\_ACEOF
18964 #define HAVE_FORKPTY 1
18969 CPPFLAGS="$ac_save_CPPFLAGS"
18970 LDFLAGS="$ac_save_LDFLAGS"
18971 # LIBS="$ac_save_LIBS"
18974 if test "$ac_have_forkpty" != yes ; then
18975 # we don't need (or have) -lutil on MacOS 10.4.2...
18977 ac_save_CPPFLAGS="$CPPFLAGS"
18978 ac_save_LDFLAGS="$LDFLAGS"
18979 # ac_save_LIBS="$LIBS"
18981 if test \! -z "$includedir" ; then
18982 CPPFLAGS="$CPPFLAGS -I$includedir"
18984 # note: $X_CFLAGS includes $x_includes
18985 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18987 if test \! -z "$libdir" ; then
18988 LDFLAGS="$LDFLAGS -L$libdir"
18990 # note: $X_LIBS includes $x_libraries
18991 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18993 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18994 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18995 { echo "$as_me:$LINENO: checking for forkpty in -lc" >&5
18996 echo $ECHO_N "checking for forkpty in -lc... $ECHO_C" >&6; }
18997 if test "${ac_cv_lib_c_forkpty+set}" = set; then
18998 echo $ECHO_N "(cached) $ECHO_C" >&6
19000 ac_check_lib_save_LIBS=$LIBS
19002 cat >conftest.$ac_ext <<_ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h. */
19009 /* Override any GCC internal prototype to avoid an error.
19010 Use char because int might match the return type of a GCC
19011 builtin and then its argument prototype would still apply. */
19024 rm -rf conftest.$ac_objext conftest$ac_exeext
19025 if { (ac_try="$ac_link"
19026 case "(($ac_try" in
19027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19028 *) ac_try_echo=$ac_try;;
19030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19031 (eval "$ac_link") 2>conftest.er1
19033 grep -v '^ *+' conftest.er1 >conftest.err
19034 rm -rf conftest.er1
19035 cat conftest.err >&5
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); } && {
19038 test -z "$ac_c_werror_flag" ||
19039 test ! -s conftest.err
19040 } && test -s conftest$ac_exeext &&
19041 $as_test_x conftest$ac_exeext; then
19042 ac_cv_lib_c_forkpty=yes
19044 echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19047 ac_cv_lib_c_forkpty=no
19050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19051 conftest$ac_exeext conftest.$ac_ext
19052 LIBS=$ac_check_lib_save_LIBS
19054 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_forkpty" >&5
19055 echo "${ECHO_T}$ac_cv_lib_c_forkpty" >&6; }
19056 if test $ac_cv_lib_c_forkpty = yes; then
19058 cat >>confdefs.h <<\_ACEOF
19059 #define HAVE_FORKPTY 1
19064 CPPFLAGS="$ac_save_CPPFLAGS"
19065 LDFLAGS="$ac_save_LDFLAGS"
19066 # LIBS="$ac_save_LIBS"
19070 ###############################################################################
19072 # Check for the XSHM server extension.
19074 ###############################################################################
19077 with_xshm_req=unspecified
19079 # Check whether --with-xshm-ext was given.
19080 if test "${with_xshm_ext+set}" = set; then
19081 withval=$with_xshm_ext; with_xshm="$withval"; with_xshm_req="$withval"
19088 case "$with_xshm" in
19093 { echo "$as_me:$LINENO: checking for XSHM headers" >&5
19094 echo $ECHO_N "checking for XSHM headers... $ECHO_C" >&6; }
19095 d=$with_xshm/include
19096 if test -d $d; then
19097 X_CFLAGS="-I$d $X_CFLAGS"
19098 { echo "$as_me:$LINENO: result: $d" >&5
19099 echo "${ECHO_T}$d" >&6; }
19101 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19102 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
19105 { echo "$as_me:$LINENO: checking for XSHM libs" >&5
19106 echo $ECHO_N "checking for XSHM libs... $ECHO_C" >&6; }
19108 if test -d $d; then
19109 X_LIBS="-L$d $X_LIBS"
19110 { echo "$as_me:$LINENO: result: $d" >&5
19111 echo "${ECHO_T}$d" >&6; }
19113 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19114 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
19117 # replace the directory string with "yes".
19118 with_xshm_req="yes"
19119 with_xshm=$with_xshm_req
19124 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
19125 echo " If it is a directory, then \`DIR/include' will be added to"
19126 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19132 if test "$with_xshm" = yes; then
19134 # first check for Xshm.h.
19136 ac_save_CPPFLAGS="$CPPFLAGS"
19137 if test \! -z "$includedir" ; then
19138 CPPFLAGS="$CPPFLAGS -I$includedir"
19140 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19141 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19142 { echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5
19143 echo $ECHO_N "checking for X11/extensions/XShm.h... $ECHO_C" >&6; }
19144 if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
19147 cat >conftest.$ac_ext <<_ACEOF
19150 cat confdefs.h >>conftest.$ac_ext
19151 cat >>conftest.$ac_ext <<_ACEOF
19152 /* end confdefs.h. */
19153 #include <X11/Xlib.h>
19155 #include <X11/extensions/XShm.h>
19157 rm -rf conftest.$ac_objext
19158 if { (ac_try="$ac_compile"
19159 case "(($ac_try" in
19160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19161 *) ac_try_echo=$ac_try;;
19163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19164 (eval "$ac_compile") 2>conftest.er1
19166 grep -v '^ *+' conftest.er1 >conftest.err
19167 rm -rf conftest.er1
19168 cat conftest.err >&5
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); } && {
19171 test -z "$ac_c_werror_flag" ||
19172 test ! -s conftest.err
19173 } && test -s conftest.$ac_objext; then
19174 ac_cv_header_X11_extensions_XShm_h=yes
19176 echo "$as_me: failed program was:" >&5
19177 sed 's/^/| /' conftest.$ac_ext >&5
19179 ac_cv_header_X11_extensions_XShm_h=no
19182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19184 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5
19185 echo "${ECHO_T}$ac_cv_header_X11_extensions_XShm_h" >&6; }
19186 if test $ac_cv_header_X11_extensions_XShm_h = yes; then
19191 CPPFLAGS="$ac_save_CPPFLAGS"
19193 # if that succeeded, then check for sys/ipc.h.
19194 if test "$have_xshm" = yes; then
19197 ac_save_CPPFLAGS="$CPPFLAGS"
19198 if test \! -z "$includedir" ; then
19199 CPPFLAGS="$CPPFLAGS -I$includedir"
19201 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19202 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19203 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
19204 { echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
19205 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6; }
19206 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
19207 echo $ECHO_N "(cached) $ECHO_C" >&6
19209 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
19210 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6; }
19212 # Is the header compilable?
19213 { echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
19214 echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6; }
19215 cat >conftest.$ac_ext <<_ACEOF
19218 cat confdefs.h >>conftest.$ac_ext
19219 cat >>conftest.$ac_ext <<_ACEOF
19220 /* end confdefs.h. */
19221 $ac_includes_default
19222 #include <sys/ipc.h>
19224 rm -rf conftest.$ac_objext
19225 if { (ac_try="$ac_compile"
19226 case "(($ac_try" in
19227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228 *) ac_try_echo=$ac_try;;
19230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231 (eval "$ac_compile") 2>conftest.er1
19233 grep -v '^ *+' conftest.er1 >conftest.err
19234 rm -rf conftest.er1
19235 cat conftest.err >&5
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } && {
19238 test -z "$ac_c_werror_flag" ||
19239 test ! -s conftest.err
19240 } && test -s conftest.$ac_objext; then
19241 ac_header_compiler=yes
19243 echo "$as_me: failed program was:" >&5
19244 sed 's/^/| /' conftest.$ac_ext >&5
19246 ac_header_compiler=no
19249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19251 echo "${ECHO_T}$ac_header_compiler" >&6; }
19253 # Is the header present?
19254 { echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
19255 echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6; }
19256 cat >conftest.$ac_ext <<_ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19262 #include <sys/ipc.h>
19264 if { (ac_try="$ac_cpp conftest.$ac_ext"
19265 case "(($ac_try" in
19266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19267 *) ac_try_echo=$ac_try;;
19269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19272 grep -v '^ *+' conftest.er1 >conftest.err
19273 rm -rf conftest.er1
19274 cat conftest.err >&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } >/dev/null && {
19277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19278 test ! -s conftest.err
19280 ac_header_preproc=yes
19282 echo "$as_me: failed program was:" >&5
19283 sed 's/^/| /' conftest.$ac_ext >&5
19285 ac_header_preproc=no
19288 rm -rf conftest.err conftest.$ac_ext
19289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19290 echo "${ECHO_T}$ac_header_preproc" >&6; }
19292 # So? What about this header?
19293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19295 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
19296 echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19297 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the compiler's result" >&5
19298 echo "$as_me: WARNING: sys/ipc.h: proceeding with the compiler's result" >&2;}
19299 ac_header_preproc=yes
19302 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
19303 echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
19304 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
19305 echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
19306 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: see the Autoconf documentation" >&5
19307 echo "$as_me: WARNING: sys/ipc.h: see the Autoconf documentation" >&2;}
19308 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&5
19309 echo "$as_me: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&2;}
19310 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
19311 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
19312 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&5
19313 echo "$as_me: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&2;}
19317 { echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
19318 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6; }
19319 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
19320 echo $ECHO_N "(cached) $ECHO_C" >&6
19322 ac_cv_header_sys_ipc_h=$ac_header_preproc
19324 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
19325 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6; }
19328 if test $ac_cv_header_sys_ipc_h = yes; then
19333 CPPFLAGS="$ac_save_CPPFLAGS"
19336 # if that succeeded, then check for sys/shm.h.
19337 if test "$have_xshm" = yes; then
19340 ac_save_CPPFLAGS="$CPPFLAGS"
19341 if test \! -z "$includedir" ; then
19342 CPPFLAGS="$CPPFLAGS -I$includedir"
19344 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19345 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19346 if test "${ac_cv_header_sys_shm_h+set}" = set; then
19347 { echo "$as_me:$LINENO: checking for sys/shm.h" >&5
19348 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6; }
19349 if test "${ac_cv_header_sys_shm_h+set}" = set; then
19350 echo $ECHO_N "(cached) $ECHO_C" >&6
19352 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
19353 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6; }
19355 # Is the header compilable?
19356 { echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
19357 echo $ECHO_N "checking sys/shm.h usability... $ECHO_C" >&6; }
19358 cat >conftest.$ac_ext <<_ACEOF
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h. */
19364 $ac_includes_default
19365 #include <sys/shm.h>
19367 rm -rf conftest.$ac_objext
19368 if { (ac_try="$ac_compile"
19369 case "(($ac_try" in
19370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19371 *) ac_try_echo=$ac_try;;
19373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19374 (eval "$ac_compile") 2>conftest.er1
19376 grep -v '^ *+' conftest.er1 >conftest.err
19377 rm -rf conftest.er1
19378 cat conftest.err >&5
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); } && {
19381 test -z "$ac_c_werror_flag" ||
19382 test ! -s conftest.err
19383 } && test -s conftest.$ac_objext; then
19384 ac_header_compiler=yes
19386 echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19389 ac_header_compiler=no
19392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19394 echo "${ECHO_T}$ac_header_compiler" >&6; }
19396 # Is the header present?
19397 { echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
19398 echo $ECHO_N "checking sys/shm.h presence... $ECHO_C" >&6; }
19399 cat >conftest.$ac_ext <<_ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h. */
19405 #include <sys/shm.h>
19407 if { (ac_try="$ac_cpp conftest.$ac_ext"
19408 case "(($ac_try" in
19409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410 *) ac_try_echo=$ac_try;;
19412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19415 grep -v '^ *+' conftest.er1 >conftest.err
19416 rm -rf conftest.er1
19417 cat conftest.err >&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } >/dev/null && {
19420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19421 test ! -s conftest.err
19423 ac_header_preproc=yes
19425 echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19428 ac_header_preproc=no
19431 rm -rf conftest.err conftest.$ac_ext
19432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19433 echo "${ECHO_T}$ac_header_preproc" >&6; }
19435 # So? What about this header?
19436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19438 { echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
19439 echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19440 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the compiler's result" >&5
19441 echo "$as_me: WARNING: sys/shm.h: proceeding with the compiler's result" >&2;}
19442 ac_header_preproc=yes
19445 { echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
19446 echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
19447 { echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
19448 echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
19449 { echo "$as_me:$LINENO: WARNING: sys/shm.h: see the Autoconf documentation" >&5
19450 echo "$as_me: WARNING: sys/shm.h: see the Autoconf documentation" >&2;}
19451 { echo "$as_me:$LINENO: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&5
19452 echo "$as_me: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&2;}
19453 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
19454 echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
19455 { echo "$as_me:$LINENO: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&5
19456 echo "$as_me: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&2;}
19460 { echo "$as_me:$LINENO: checking for sys/shm.h" >&5
19461 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6; }
19462 if test "${ac_cv_header_sys_shm_h+set}" = set; then
19463 echo $ECHO_N "(cached) $ECHO_C" >&6
19465 ac_cv_header_sys_shm_h=$ac_header_preproc
19467 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
19468 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6; }
19471 if test $ac_cv_header_sys_shm_h = yes; then
19476 CPPFLAGS="$ac_save_CPPFLAGS"
19479 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
19480 # to exist, but the library code to not exist. And even better, the library
19481 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
19482 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
19483 # that's not quite right, but close enough.)
19487 if `uname -v` -eq 3 ; then
19490 ac_save_CPPFLAGS="$CPPFLAGS"
19491 ac_save_LDFLAGS="$LDFLAGS"
19492 # ac_save_LIBS="$LIBS"
19494 if test \! -z "$includedir" ; then
19495 CPPFLAGS="$CPPFLAGS -I$includedir"
19497 # note: $X_CFLAGS includes $x_includes
19498 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19500 if test \! -z "$libdir" ; then
19501 LDFLAGS="$LDFLAGS -L$libdir"
19503 # note: $X_LIBS includes $x_libraries
19504 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19506 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19507 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
19508 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXextSam" >&5
19509 echo $ECHO_N "checking for XShmQueryExtension in -lXextSam... $ECHO_C" >&6; }
19510 if test "${ac_cv_lib_XextSam_XShmQueryExtension+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
19513 ac_check_lib_save_LIBS=$LIBS
19514 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
19515 cat >conftest.$ac_ext <<_ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19522 /* Override any GCC internal prototype to avoid an error.
19523 Use char because int might match the return type of a GCC
19524 builtin and then its argument prototype would still apply. */
19528 char XShmQueryExtension ();
19532 return XShmQueryExtension ();
19537 rm -rf conftest.$ac_objext conftest$ac_exeext
19538 if { (ac_try="$ac_link"
19539 case "(($ac_try" in
19540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541 *) ac_try_echo=$ac_try;;
19543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544 (eval "$ac_link") 2>conftest.er1
19546 grep -v '^ *+' conftest.er1 >conftest.err
19547 rm -rf conftest.er1
19548 cat conftest.err >&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } && {
19551 test -z "$ac_c_werror_flag" ||
19552 test ! -s conftest.err
19553 } && test -s conftest$ac_exeext &&
19554 $as_test_x conftest$ac_exeext; then
19555 ac_cv_lib_XextSam_XShmQueryExtension=yes
19557 echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19560 ac_cv_lib_XextSam_XShmQueryExtension=no
19563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19564 conftest$ac_exeext conftest.$ac_ext
19565 LIBS=$ac_check_lib_save_LIBS
19567 { echo "$as_me:$LINENO: result: $ac_cv_lib_XextSam_XShmQueryExtension" >&5
19568 echo "${ECHO_T}$ac_cv_lib_XextSam_XShmQueryExtension" >&6; }
19569 if test $ac_cv_lib_XextSam_XShmQueryExtension = yes; then
19570 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
19575 CPPFLAGS="$ac_save_CPPFLAGS"
19576 LDFLAGS="$ac_save_LDFLAGS"
19577 # LIBS="$ac_save_LIBS"
19583 # if that succeeded, then we've really got it.
19584 if test "$have_xshm" = yes; then
19585 cat >>confdefs.h <<\_ACEOF
19586 #define HAVE_XSHM_EXTENSION 1
19591 elif test "$with_xshm" != no; then
19592 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
19597 ###############################################################################
19599 # Check for the DOUBLE-BUFFER server extension.
19601 ###############################################################################
19604 with_xdbe_req=unspecified
19606 # Check whether --with-xdbe-ext was given.
19607 if test "${with_xdbe_ext+set}" = set; then
19608 withval=$with_xdbe_ext; with_xdbe="$withval"; with_xdbe_req="$withval"
19615 case "$with_xdbe" in
19620 { echo "$as_me:$LINENO: checking for DOUBLE-BUFFER headers" >&5
19621 echo $ECHO_N "checking for DOUBLE-BUFFER headers... $ECHO_C" >&6; }
19622 d=$with_xdbe/include
19623 if test -d $d; then
19624 X_CFLAGS="-I$d $X_CFLAGS"
19625 { echo "$as_me:$LINENO: result: $d" >&5
19626 echo "${ECHO_T}$d" >&6; }
19628 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19629 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
19632 { echo "$as_me:$LINENO: checking for DOUBLE-BUFFER libs" >&5
19633 echo $ECHO_N "checking for DOUBLE-BUFFER libs... $ECHO_C" >&6; }
19635 if test -d $d; then
19636 X_LIBS="-L$d $X_LIBS"
19637 { echo "$as_me:$LINENO: result: $d" >&5
19638 echo "${ECHO_T}$d" >&6; }
19640 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19641 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
19644 # replace the directory string with "yes".
19645 with_xdbe_req="yes"
19646 with_xdbe=$with_xdbe_req
19651 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
19652 echo " If it is a directory, then \`DIR/include' will be added to"
19653 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19659 if test "$with_xdbe" = yes; then
19662 ac_save_CPPFLAGS="$CPPFLAGS"
19663 if test \! -z "$includedir" ; then
19664 CPPFLAGS="$CPPFLAGS -I$includedir"
19666 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19667 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19668 { echo "$as_me:$LINENO: checking for X11/extensions/Xdbe.h" >&5
19669 echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6; }
19670 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
19671 echo $ECHO_N "(cached) $ECHO_C" >&6
19673 cat >conftest.$ac_ext <<_ACEOF
19676 cat confdefs.h >>conftest.$ac_ext
19677 cat >>conftest.$ac_ext <<_ACEOF
19678 /* end confdefs.h. */
19679 #include <X11/Xlib.h>
19681 #include <X11/extensions/Xdbe.h>
19683 rm -rf conftest.$ac_objext
19684 if { (ac_try="$ac_compile"
19685 case "(($ac_try" in
19686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687 *) ac_try_echo=$ac_try;;
19689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690 (eval "$ac_compile") 2>conftest.er1
19692 grep -v '^ *+' conftest.er1 >conftest.err
19693 rm -rf conftest.er1
19694 cat conftest.err >&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); } && {
19697 test -z "$ac_c_werror_flag" ||
19698 test ! -s conftest.err
19699 } && test -s conftest.$ac_objext; then
19700 ac_cv_header_X11_extensions_Xdbe_h=yes
19702 echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19705 ac_cv_header_X11_extensions_Xdbe_h=no
19708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19710 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
19711 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6; }
19712 if test $ac_cv_header_X11_extensions_Xdbe_h = yes; then
19717 CPPFLAGS="$ac_save_CPPFLAGS"
19718 if test "$have_xdbe" = yes; then
19719 cat >>confdefs.h <<\_ACEOF
19720 #define HAVE_DOUBLE_BUFFER_EXTENSION 1
19725 elif test "$with_xdbe" != no; then
19726 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
19731 ###############################################################################
19733 # Check for the SGI XReadDisplay server extension.
19735 # Note: this has to be down here, rather than up with the other server
19736 # extension tests, so that the output of `configure --help' is in the
19737 # right order. Arrgh!
19739 ###############################################################################
19741 have_readdisplay=no
19742 with_readdisplay_req=unspecified
19744 # Check whether --with-readdisplay was given.
19745 if test "${with_readdisplay+set}" = set; then
19746 withval=$with_readdisplay; with_readdisplay="$withval"; with_readdisplay_req="$withval"
19748 with_readdisplay=yes
19753 case "$with_readdisplay" in
19758 { echo "$as_me:$LINENO: checking for XReadDisplay headers" >&5
19759 echo $ECHO_N "checking for XReadDisplay headers... $ECHO_C" >&6; }
19760 d=$with_readdisplay/include
19761 if test -d $d; then
19762 X_CFLAGS="-I$d $X_CFLAGS"
19763 { echo "$as_me:$LINENO: result: $d" >&5
19764 echo "${ECHO_T}$d" >&6; }
19766 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19767 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
19770 { echo "$as_me:$LINENO: checking for XReadDisplay libs" >&5
19771 echo $ECHO_N "checking for XReadDisplay libs... $ECHO_C" >&6; }
19772 d=$with_readdisplay/lib
19773 if test -d $d; then
19774 X_LIBS="-L$d $X_LIBS"
19775 { echo "$as_me:$LINENO: result: $d" >&5
19776 echo "${ECHO_T}$d" >&6; }
19778 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19779 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
19782 # replace the directory string with "yes".
19783 with_readdisplay_req="yes"
19784 with_readdisplay=$with_readdisplay_req
19789 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
19790 echo " If it is a directory, then \`DIR/include' will be added to"
19791 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19797 if test "$with_readdisplay" = yes; then
19799 ac_save_CPPFLAGS="$CPPFLAGS"
19800 if test \! -z "$includedir" ; then
19801 CPPFLAGS="$CPPFLAGS -I$includedir"
19803 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19804 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19805 { echo "$as_me:$LINENO: checking for X11/extensions/readdisplay.h" >&5
19806 echo $ECHO_N "checking for X11/extensions/readdisplay.h... $ECHO_C" >&6; }
19807 if test "${ac_cv_header_X11_extensions_readdisplay_h+set}" = set; then
19808 echo $ECHO_N "(cached) $ECHO_C" >&6
19810 cat >conftest.$ac_ext <<_ACEOF
19813 cat confdefs.h >>conftest.$ac_ext
19814 cat >>conftest.$ac_ext <<_ACEOF
19815 /* end confdefs.h. */
19816 #include <X11/Xlib.h>
19818 #include <X11/extensions/readdisplay.h>
19820 rm -rf conftest.$ac_objext
19821 if { (ac_try="$ac_compile"
19822 case "(($ac_try" in
19823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824 *) ac_try_echo=$ac_try;;
19826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827 (eval "$ac_compile") 2>conftest.er1
19829 grep -v '^ *+' conftest.er1 >conftest.err
19830 rm -rf conftest.er1
19831 cat conftest.err >&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); } && {
19834 test -z "$ac_c_werror_flag" ||
19835 test ! -s conftest.err
19836 } && test -s conftest.$ac_objext; then
19837 ac_cv_header_X11_extensions_readdisplay_h=yes
19839 echo "$as_me: failed program was:" >&5
19840 sed 's/^/| /' conftest.$ac_ext >&5
19842 ac_cv_header_X11_extensions_readdisplay_h=no
19845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19847 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_readdisplay_h" >&5
19848 echo "${ECHO_T}$ac_cv_header_X11_extensions_readdisplay_h" >&6; }
19849 if test $ac_cv_header_X11_extensions_readdisplay_h = yes; then
19850 cat >>confdefs.h <<\_ACEOF
19851 #define HAVE_READ_DISPLAY_EXTENSION 1
19857 CPPFLAGS="$ac_save_CPPFLAGS"
19858 elif test "$with_readdisplay" != no; then
19859 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
19864 ###############################################################################
19866 # Check for a directory full of images to use as the default value
19867 # of the "imageDirectory" preference.
19869 ###############################################################################
19872 with_imagedir_req=unspecified
19875 # Check whether --with-image-directory was given.
19876 if test "${with_image_directory+set}" = set; then
19877 withval=$with_image_directory; with_imagedir="$withval"; with_imagedir_req="$withval"
19882 # no HANDLE_X_PATH_ARG for this one
19884 case "$with_imagedir" in
19887 { echo "$as_me:$LINENO: checking for image directory $with_imagedir" >&5
19888 echo $ECHO_N "checking for image directory $with_imagedir... $ECHO_C" >&6; }
19889 if test -d "$with_imagedir" ; then
19890 { echo "$as_me:$LINENO: result: yes" >&5
19891 echo "${ECHO_T}yes" >&6; }
19893 { echo "$as_me:$LINENO: result: no" >&5
19894 echo "${ECHO_T}no" >&6; }
19901 #### Could use some more defaults here...
19903 "/usr/share/backgrounds/images/" \
19904 "/usr/share/wallpapers/" \
19905 "/Library/Desktop Pictures/" \
19907 if test -z "$with_imagedir"; then
19908 { echo "$as_me:$LINENO: checking for image directory $dd" >&5
19909 echo $ECHO_N "checking for image directory $dd... $ECHO_C" >&6; }
19910 if test -d "$dd" ; then
19911 { echo "$as_me:$LINENO: result: yes" >&5
19912 echo "${ECHO_T}yes" >&6; }
19913 with_imagedir="$dd"
19915 { echo "$as_me:$LINENO: result: no" >&5
19916 echo "${ECHO_T}no" >&6; }
19927 echo "error: must be an absolute path: --with-image-directory=$with_imagedir_req"
19931 ac_cv_imagedir="$with_imagedir"
19933 DEFAULT_IMAGES_P='True'
19934 DEFAULT_IMAGE_DIRECTORY="$ac_cv_imagedir"
19936 if test -z "$DEFAULT_IMAGE_DIRECTORY" ; then
19937 DEFAULT_IMAGES_P='False'
19941 ###############################################################################
19943 # Pick a text file to use as the default of the "textFile" preference.
19944 # Any old file will do, but preferably one that will make interesting
19945 # shapes when displayed by "starwars" and "fontglide".
19947 ###############################################################################
19950 with_textfile_req=unspecified
19953 # Check whether --with-text-file was given.
19954 if test "${with_text_file+set}" = set; then
19955 withval=$with_text_file; with_textfile="$withval"; with_textfile_req="$withval"
19960 # no HANDLE_X_PATH_ARG for this one
19962 case "$with_textfile" in
19965 { echo "$as_me:$LINENO: checking for text file $with_textfile" >&5
19966 echo $ECHO_N "checking for text file $with_textfile... $ECHO_C" >&6; }
19967 if test -f "$with_textfile" ; then
19968 { echo "$as_me:$LINENO: result: yes" >&5
19969 echo "${ECHO_T}yes" >&6; }
19971 { echo "$as_me:$LINENO: result: no" >&5
19972 echo "${ECHO_T}no" >&6; }
19979 #### Could use some more defaults here...
19981 "/usr/X11R6/lib/X11/doc/README" \
19982 "/usr/share/doc/xserver-common/copyright" \
19983 "/usr/share/doc/xserver-xorg-core/copyright" \
19984 "/usr/X11R6/README" \
19985 "/usr/share/doc/debian/debian-manifesto" \
19987 if test -z "$with_textfile"; then
19988 { echo "$as_me:$LINENO: checking for text file $f" >&5
19989 echo $ECHO_N "checking for text file $f... $ECHO_C" >&6; }
19990 if test -f "$f" ; then
19991 { echo "$as_me:$LINENO: result: yes" >&5
19992 echo "${ECHO_T}yes" >&6; }
19995 { echo "$as_me:$LINENO: result: no" >&5
19996 echo "${ECHO_T}no" >&6; }
20007 echo "error: must be an absolute path: --with-text-file=$with_textfile_req"
20011 ac_cv_textfile="$with_textfile"
20013 DEFAULT_TEXT_FILE="$ac_cv_textfile"
20016 ###############################################################################
20018 # Check the browser to see help URL
20020 ###############################################################################
20023 with_browser_req=unspecified
20026 # Check whether --with-browser was given.
20027 if test "${with_browser+set}" = set; then
20028 withval=$with_browser; with_browser="$withval"; with_browser_req="$withval"
20033 # no HANDLE_X_PATH_ARG for this one
20035 case "$with_browser" in
20039 WITH_BROWSER=$with_browser
20040 gnome_open_program=$with_browser
20041 { echo "$as_me:$LINENO: checking for browser $with_browser" >&5
20042 echo $ECHO_N "checking for browser $with_browser... $ECHO_C" >&6; }
20043 with_browser_fullpath=`which $with_browser 2>/dev/null`
20044 case $with_browser_fullpath in
20046 { echo "$as_me:$LINENO: result: yes" >&5
20047 echo "${ECHO_T}yes" >&6; }
20051 { echo "$as_me:$LINENO: result: no" >&5
20052 echo "${ECHO_T}no" >&6; }
20053 # Only warning: we don't want to install all packages for the
20054 # dependency of the browser in building stage...
20055 echo "WARNING: browser not found: --with-browser=$with_browser"
20060 ac_cv_browser="$with_browser"
20062 ###############################################################################
20064 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
20065 # This should be safe, but let's give people the option.
20067 ###############################################################################
20069 setuid_hacks_default=no
20070 setuid_hacks="$setuid_hacks_default"
20072 # Check whether --with-setuid-hacks was given.
20073 if test "${with_setuid_hacks+set}" = set; then
20074 withval=$with_setuid_hacks; setuid_hacks="$withval"
20076 setuid_hacks="$setuid_hacks_default"
20081 case "$setuid_hacks" in
20086 { echo "$as_me:$LINENO: checking for setuid hacks headers" >&5
20087 echo $ECHO_N "checking for setuid hacks headers... $ECHO_C" >&6; }
20088 d=$setuid_hacks/include
20089 if test -d $d; then
20090 X_CFLAGS="-I$d $X_CFLAGS"
20091 { echo "$as_me:$LINENO: result: $d" >&5
20092 echo "${ECHO_T}$d" >&6; }
20094 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20095 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
20098 { echo "$as_me:$LINENO: checking for setuid hacks libs" >&5
20099 echo $ECHO_N "checking for setuid hacks libs... $ECHO_C" >&6; }
20100 d=$setuid_hacks/lib
20101 if test -d $d; then
20102 X_LIBS="-L$d $X_LIBS"
20103 { echo "$as_me:$LINENO: result: $d" >&5
20104 echo "${ECHO_T}$d" >&6; }
20106 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20107 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
20110 # replace the directory string with "yes".
20111 setuid_hacks_req="yes"
20112 setuid_hacks=$setuid_hacks_req
20117 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
20118 echo " If it is a directory, then \`DIR/include' will be added to"
20119 echo " the -I list, and \`DIR/lib' will be added to the -L list."
20125 if test "$setuid_hacks" = yes; then
20127 elif test "$setuid_hacks" != no; then
20128 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
20133 ###############################################################################
20135 # Done testing. Now, set up the various -I and -L variables,
20136 # and decide which GUI program to build by default.
20138 ###############################################################################
20145 if test \! -z "$includedir" ; then
20146 INCLUDES="$INCLUDES -I$includedir"
20149 if test \! -z "$libdir" ; then
20150 LDFLAGS="$LDFLAGS -L$libdir"
20154 PREFERRED_DEMO_PROGRAM=''
20156 if test "$have_motif" = yes; then
20157 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
20158 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
20160 if test "$have_gtk" = yes; then
20161 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
20162 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
20166 if test "$have_kerberos" = yes; then
20167 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
20168 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
20170 if test "$have_pam" = yes; then
20171 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
20172 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
20173 INSTALL_PAM="install-pam"
20175 if test "$have_passwd_helper" = yes; then
20176 PASSWD_SRCS="$PASSWD_SRCS \$(PWHELPER_SRCS)"
20177 PASSWD_OBJS="$PASSWD_OBJS \$(PWHELPER_OBJS)"
20179 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
20180 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
20183 if test "$enable_locking" = yes; then
20184 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
20185 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
20187 LOCK_SRCS='$(NOLOCK_SRCS_1)'
20188 LOCK_OBJS='$(NOLOCK_OBJS_1)'
20191 if test "$ac_macosx" = yes; then
20192 EXES_OSX='$(EXES_OSX)'
20193 SCRIPTS_OSX='$(SCRIPTS_OSX)'
20194 MEN_OSX='$(MEN_OSX)'
20202 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
20204 if test "$need_setuid" = yes; then
20210 if test "$setuid_hacks" = yes; then
20217 if test "$have_gl" = yes; then
20218 GL_EXES='$(GL_EXES)'
20219 GL_UTIL_EXES='$(GL_UTIL_EXES)'
20221 GL_KLUDGE="${tab} "
20223 GL_KLUDGE="-${tab} "
20226 if test "$have_gle" = yes; then
20227 GLE_EXES='$(GLE_EXES)'
20228 GLE_KLUDGE="${tab} "
20230 GLE_KLUDGE="-${tab} "
20233 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
20234 JPEG_EXES='$(JPEG_EXES)'
20238 # Another substitution in the XScreenSaver.ad.in file:
20240 if test "$gnome_open_program" != ''; then
20244 elif test "$gnome_url_show_program" != ''; then
20255 # Set PO_DATADIR to something sensible.
20257 { echo "$as_me:$LINENO: checking for locale directory" >&5
20258 echo $ECHO_N "checking for locale directory... $ECHO_C" >&6; }
20259 if test -n "$GTK_DATADIR" ; then
20260 PO_DATADIR="$GTK_DATADIR"
20261 elif test "$have_gtk" = yes; then
20262 PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
20263 PO_DATADIR="$PO_DATADIR/share"
20266 if test -z "$PO_DATADIR" ; then
20268 # #### Total fucking kludge --
20269 # Map /build/prefix/usr/X11R6/share/ to /build/prefix/usr/share/
20270 # but of course we need to expand all the nested variables to do that...
20272 dd=`eval eval eval eval eval eval eval eval eval eval eval echo $datadir`
20273 PO_DATADIR=`echo $dd | sed 's@/X11R6/@/@'`
20276 { echo "$as_me:$LINENO: result: $PO_DATADIR/locale" >&5
20277 echo "${ECHO_T}$PO_DATADIR/locale" >&6; }
20280 # canonicalize slashes.
20281 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
20283 # gcc 3.0 likes to issue this warning for every file:
20285 # cc1: warning: changing search order for system directory "/usr/local/include"
20286 # cc1: warning: as it has already been specified as a non-system directory
20288 # Yay. We can only avoid that by deleting "-I${prefix}/include" from the list.
20289 # Which *should* be totally redundant, and thus an ok thing to delete?
20291 INCLUDES=`echo "$INCLUDES" | sed 's@ -I${prefix}/include@@g;'`
20294 ###############################################################################
20296 # Perform substitutions and write Makefiles.
20298 ###############################################################################
20362 APPDEFAULTS=$ac_x_app_defaults
20370 ac_config_files="$ac_config_files Makefile utils/Makefile driver/Makefile hacks/Makefile hacks/glx/Makefile po/Makefile.in driver/XScreenSaver.ad"
20372 cat >confcache <<\_ACEOF
20373 # This file is a shell script that caches the results of configure
20374 # tests run on this system so they can be shared between configure
20375 # scripts and configure runs, see configure's option --config-cache.
20376 # It is not useful on other systems. If it contains results you don't
20377 # want to keep, you may remove or edit it.
20379 # config.status only pays attention to the cache file if you give it
20380 # the --recheck option to rerun configure.
20382 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20383 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20384 # following values.
20388 # The following way of writing the cache mishandles newlines in values,
20389 # but we know of no workaround that is simple, portable, and efficient.
20390 # So, we kill variables containing newlines.
20391 # Ultrix sh set writes to stderr and can't be redirected directly,
20392 # and sets the high bit in the cache file unless we assign to the vars.
20394 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20395 eval ac_val=\$$ac_var
20399 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20400 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20403 _ | IFS | as_nl) ;; #(
20404 *) $as_unset $ac_var ;;
20410 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20411 *${as_nl}ac_space=\ *)
20412 # `set' does not quote correctly, so add quotes (double-quote
20413 # substitution turns \\\\ into \\, and sed turns \\ into \).
20416 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20419 # `set' quotes correctly as required by POSIX, so do not add quotes.
20420 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20429 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20431 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20433 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20434 if test -w "$cache_file"; then
20435 test "x$cache_file" != "x/dev/null" &&
20436 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20437 echo "$as_me: updating cache $cache_file" >&6;}
20438 cat confcache >$cache_file
20440 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20441 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20446 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20447 # Let make expand exec_prefix.
20448 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20450 DEFS=-DHAVE_CONFIG_H
20454 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20455 # 1. Remove the extension, and $U if already installed.
20456 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20457 ac_i=`echo "$ac_i" | sed "$ac_script"`
20458 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20459 # will be set to the directory where LIBOBJS objects are built.
20460 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20461 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20463 LIBOBJS=$ac_libobjs
20465 LTLIBOBJS=$ac_ltlibobjs
20470 mv -f po/POTFILES po/POTFILES.tmp
20471 sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
20472 rm -f po/POTFILES.tmp
20476 : ${CONFIG_STATUS=./config.status}
20477 ac_clean_files_save=$ac_clean_files
20478 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20479 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20480 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20481 cat >$CONFIG_STATUS <<_ACEOF
20483 # Generated by $as_me.
20484 # Run this file to recreate the current configuration.
20485 # Compiler output produced by configure, useful for debugging
20486 # configure, is in config.log if it exists.
20489 ac_cs_recheck=false
20491 SHELL=\${CONFIG_SHELL-$SHELL}
20494 cat >>$CONFIG_STATUS <<\_ACEOF
20495 ## --------------------- ##
20496 ## M4sh Initialization. ##
20497 ## --------------------- ##
20499 # Be more Bourne compatible
20500 DUALCASE=1; export DUALCASE # for MKS sh
20501 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20504 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20505 # is contrary to our usage. Disable this feature.
20506 alias -g '${1+"$@"}'='"$@"'
20507 setopt NO_GLOB_SUBST
20509 case `(set -o) 2>/dev/null` in
20510 *posix*) set -o posix ;;
20519 # Avoid depending upon Character Ranges.
20520 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20521 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20522 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20523 as_cr_digits='0123456789'
20524 as_cr_alnum=$as_cr_Letters$as_cr_digits
20526 # The user is always right.
20527 if test "${PATH_SEPARATOR+set}" != set; then
20528 echo "#! /bin/sh" >conf$$.sh
20529 echo "exit 0" >>conf$$.sh
20531 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20539 # Support unset when possible.
20540 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20548 # We need space, tab and new line, in precisely that order. Quoting is
20549 # there to prevent editors from complaining about space-tab.
20550 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20551 # splitting by setting IFS to empty value.)
20556 # Find who we are. Look in the path if we contain no directory separator.
20558 *[\\/]* ) as_myself=$0 ;;
20559 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20560 for as_dir in $PATH
20563 test -z "$as_dir" && as_dir=.
20564 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20570 # We did not find ourselves, most probably we were run as `sh COMMAND'
20571 # in which case we are not to be found in the path.
20572 if test "x$as_myself" = x; then
20575 if test ! -f "$as_myself"; then
20576 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20577 { (exit 1); exit 1; }
20580 # Work around bugs in pre-3.0 UWIN ksh.
20581 for as_var in ENV MAIL MAILPATH
20582 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20590 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20591 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20592 LC_TELEPHONE LC_TIME
20594 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20595 eval $as_var=C; export $as_var
20597 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20601 # Required to use basename.
20602 if expr a : '\(a\)' >/dev/null 2>&1 &&
20603 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20609 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20610 as_basename=basename
20616 # Name of the executable.
20617 as_me=`$as_basename -- "$0" ||
20618 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20619 X"$0" : 'X\(//\)$' \| \
20620 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20622 sed '/^.*\/\([^/][^/]*\)\/*$/{
20641 as_lineno_1=$LINENO
20642 as_lineno_2=$LINENO
20643 test "x$as_lineno_1" != "x$as_lineno_2" &&
20644 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20646 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20647 # uniformly replaced by the line number. The first 'sed' inserts a
20648 # line-number line after each line using $LINENO; the second 'sed'
20649 # does the real work. The second script uses 'N' to pair each
20650 # line-number line with the line containing $LINENO, and appends
20651 # trailing '-' during substitution so that $LINENO is not a special
20652 # case at line end.
20653 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20654 # scripts with optimization help from Paolo Bonzini. Blame Lee
20655 # E. McMahon (1931-1989) for sed's syntax. :-)
20667 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20670 ' >$as_me.lineno &&
20671 chmod +x "$as_me.lineno" ||
20672 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20673 { (exit 1); exit 1; }; }
20675 # Don't try to exec as it changes $[0], causing all sort of problems
20676 # (the dirname of $[0] is not the place where we might find the
20677 # original and so on. Autoconf is especially sensitive to this).
20678 . "./$as_me.lineno"
20679 # Exit status is that of the last command.
20684 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20690 ECHO_C= ECHO_N= ECHO_T=
20691 case `echo -n x` in
20693 case `echo 'x\c'` in
20694 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20701 if expr a : '\(a\)' >/dev/null 2>&1 &&
20702 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20708 rm -f conf$$ conf$$.exe conf$$.file
20709 if test -d conf$$.dir; then
20710 rm -f conf$$.dir/conf$$.file
20716 if ln -s conf$$.file conf$$ 2>/dev/null; then
20718 # ... but there are two gotchas:
20719 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20720 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20721 # In both cases, we have to default to `cp -p'.
20722 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20724 elif ln conf$$.file conf$$ 2>/dev/null; then
20729 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20730 rmdir conf$$.dir 2>/dev/null
20732 if mkdir -p . 2>/dev/null; then
20735 test -d ./-p && rmdir ./-p
20739 if test -x / >/dev/null 2>&1; then
20740 as_test_x='test -x'
20742 if ls -dL / >/dev/null 2>&1; then
20749 if test -d "$1"; then
20755 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20756 ???[sx]*):;;*)false;;esac;fi
20760 as_executable_p=$as_test_x
20762 # Sed expression to map a string onto a valid CPP name.
20763 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20765 # Sed expression to map a string onto a valid variable name.
20766 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20771 # Save the log message, to keep $[0] and so on meaningful, and to
20772 # report actual input values of CONFIG_FILES etc. instead of their
20773 # values after options handling.
20775 This file was extended by $as_me, which was
20776 generated by GNU Autoconf 2.61. Invocation command line was
20778 CONFIG_FILES = $CONFIG_FILES
20779 CONFIG_HEADERS = $CONFIG_HEADERS
20780 CONFIG_LINKS = $CONFIG_LINKS
20781 CONFIG_COMMANDS = $CONFIG_COMMANDS
20784 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20789 cat >>$CONFIG_STATUS <<_ACEOF
20790 # Files that config.status was made for.
20791 config_files="$ac_config_files"
20792 config_headers="$ac_config_headers"
20793 config_commands="$ac_config_commands"
20797 cat >>$CONFIG_STATUS <<\_ACEOF
20799 \`$as_me' instantiates files from templates according to the
20800 current configuration.
20802 Usage: $0 [OPTIONS] [FILE]...
20804 -h, --help print this help, then exit
20805 -V, --version print version number and configuration settings, then exit
20806 -q, --quiet do not print progress messages
20807 -d, --debug don't remove temporary files
20808 --recheck update $as_me by reconfiguring in the same conditions
20809 --file=FILE[:TEMPLATE]
20810 instantiate the configuration file FILE
20811 --header=FILE[:TEMPLATE]
20812 instantiate the configuration header FILE
20814 Configuration files:
20817 Configuration headers:
20820 Configuration commands:
20823 Report bugs to <bug-autoconf@gnu.org>."
20826 cat >>$CONFIG_STATUS <<_ACEOF
20829 configured by $0, generated by GNU Autoconf 2.61,
20830 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20832 Copyright (C) 2006 Free Software Foundation, Inc.
20833 This config.status script is free software; the Free Software Foundation
20834 gives unlimited permission to copy, distribute and modify it."
20841 cat >>$CONFIG_STATUS <<\_ACEOF
20842 # If no file are specified by the user, then we need to provide default
20843 # value. By we need to know if files were specified by the user.
20849 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20850 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20861 # Handling of the options.
20862 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20864 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20865 echo "$ac_cs_version"; exit ;;
20866 --debug | --debu | --deb | --de | --d | -d )
20868 --file | --fil | --fi | --f )
20870 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20871 ac_need_defaults=false;;
20872 --header | --heade | --head | --hea )
20874 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20875 ac_need_defaults=false;;
20877 # Conflict between --help and --header
20878 { echo "$as_me: error: ambiguous option: $1
20879 Try \`$0 --help' for more information." >&2
20880 { (exit 1); exit 1; }; };;
20881 --help | --hel | -h )
20882 echo "$ac_cs_usage"; exit ;;
20883 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20884 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20887 # This is an error.
20888 -*) { echo "$as_me: error: unrecognized option: $1
20889 Try \`$0 --help' for more information." >&2
20890 { (exit 1); exit 1; }; } ;;
20892 *) ac_config_targets="$ac_config_targets $1"
20893 ac_need_defaults=false ;;
20899 ac_configure_extra_args=
20901 if $ac_cs_silent; then
20903 ac_configure_extra_args="$ac_configure_extra_args --silent"
20907 cat >>$CONFIG_STATUS <<_ACEOF
20908 if \$ac_cs_recheck; then
20909 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20910 CONFIG_SHELL=$SHELL
20911 export CONFIG_SHELL
20912 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20916 cat >>$CONFIG_STATUS <<\_ACEOF
20920 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20921 ## Running $as_me. ##
20927 cat >>$CONFIG_STATUS <<_ACEOF
20931 INTLTOOL_PERL=${INTLTOOL_PERL}
20936 cat >>$CONFIG_STATUS <<\_ACEOF
20938 # Handling of arguments.
20939 for ac_config_target in $ac_config_targets
20941 case $ac_config_target in
20942 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20943 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20944 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
20945 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20946 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20947 "driver/Makefile") CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
20948 "hacks/Makefile") CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
20949 "hacks/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
20950 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20951 "driver/XScreenSaver.ad") CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
20953 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20954 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20955 { (exit 1); exit 1; }; };;
20960 # If the user did not use the arguments to specify the items to instantiate,
20961 # then the envvar interface is used. Set only those that are not.
20962 # We use the long form for the default assignment because of an extremely
20963 # bizarre bug on SunOS 4.1.3.
20964 if $ac_need_defaults; then
20965 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20966 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20967 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20970 # Have a temporary directory for convenience. Make it in the build tree
20971 # simply because there is no reason against having it here, and in addition,
20972 # creating and moving files from /tmp can sometimes cause problems.
20973 # Hook for its removal unless debugging.
20974 # Note that there is a small window in which the directory will not be cleaned:
20975 # after its creation but before its name has been assigned to `$tmp'.
20979 trap 'exit_status=$?
20980 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20982 trap '{ (exit 1); exit 1; }' 1 2 13 15
20984 # Create a (secure) tmp directory for tmp files.
20987 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20988 test -n "$tmp" && test -d "$tmp"
20991 tmp=./conf$$-$RANDOM
20992 (umask 077 && mkdir "$tmp")
20995 echo "$me: cannot create a temporary directory in ." >&2
20996 { (exit 1); exit 1; }
21000 # Set up the sed scripts for CONFIG_FILES section.
21003 # No need to generate the scripts if there are no CONFIG_FILES.
21004 # This happens for instance when ./config.status config.h
21005 if test -n "$CONFIG_FILES"; then
21012 for ac_last_try in false false false false false :; do
21013 cat >conf$$subs.sed <<_ACEOF
21014 SHELL!$SHELL$ac_delim
21015 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21016 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21017 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21018 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21019 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21020 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21021 exec_prefix!$exec_prefix$ac_delim
21022 prefix!$prefix$ac_delim
21023 program_transform_name!$program_transform_name$ac_delim
21024 bindir!$bindir$ac_delim
21025 sbindir!$sbindir$ac_delim
21026 libexecdir!$libexecdir$ac_delim
21027 datarootdir!$datarootdir$ac_delim
21028 datadir!$datadir$ac_delim
21029 sysconfdir!$sysconfdir$ac_delim
21030 sharedstatedir!$sharedstatedir$ac_delim
21031 localstatedir!$localstatedir$ac_delim
21032 includedir!$includedir$ac_delim
21033 oldincludedir!$oldincludedir$ac_delim
21034 docdir!$docdir$ac_delim
21035 infodir!$infodir$ac_delim
21036 htmldir!$htmldir$ac_delim
21037 dvidir!$dvidir$ac_delim
21038 pdfdir!$pdfdir$ac_delim
21039 psdir!$psdir$ac_delim
21040 libdir!$libdir$ac_delim
21041 localedir!$localedir$ac_delim
21042 mandir!$mandir$ac_delim
21043 DEFS!$DEFS$ac_delim
21044 ECHO_C!$ECHO_C$ac_delim
21045 ECHO_N!$ECHO_N$ac_delim
21046 ECHO_T!$ECHO_T$ac_delim
21047 LIBS!$LIBS$ac_delim
21048 build_alias!$build_alias$ac_delim
21049 host_alias!$host_alias$ac_delim
21050 target_alias!$target_alias$ac_delim
21051 build!$build$ac_delim
21052 build_cpu!$build_cpu$ac_delim
21053 build_vendor!$build_vendor$ac_delim
21054 build_os!$build_os$ac_delim
21055 host!$host$ac_delim
21056 host_cpu!$host_cpu$ac_delim
21057 host_vendor!$host_vendor$ac_delim
21058 host_os!$host_os$ac_delim
21060 CFLAGS!$CFLAGS$ac_delim
21061 LDFLAGS!$LDFLAGS$ac_delim
21062 CPPFLAGS!$CPPFLAGS$ac_delim
21063 ac_ct_CC!$ac_ct_CC$ac_delim
21064 EXEEXT!$EXEEXT$ac_delim
21065 OBJEXT!$OBJEXT$ac_delim
21067 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21068 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21069 INSTALL_DATA!$INSTALL_DATA$ac_delim
21070 SET_MAKE!$SET_MAKE$ac_delim
21071 GREP!$GREP$ac_delim
21072 EGREP!$EGREP$ac_delim
21073 PERL!$PERL$ac_delim
21074 XMKMF!$XMKMF$ac_delim
21075 X_CFLAGS!$X_CFLAGS$ac_delim
21076 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
21077 X_LIBS!$X_LIBS$ac_delim
21078 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
21079 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
21080 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
21081 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
21082 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
21083 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
21084 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
21085 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
21086 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
21087 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
21088 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
21089 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
21090 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
21091 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
21092 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
21093 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
21094 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
21095 RANLIB!$RANLIB$ac_delim
21096 ALLOCA!$ALLOCA$ac_delim
21097 USE_NLS!$USE_NLS$ac_delim
21098 MSGFMT!$MSGFMT$ac_delim
21099 GMSGFMT!$GMSGFMT$ac_delim
21100 XGETTEXT!$XGETTEXT$ac_delim
21101 CATALOGS!$CATALOGS$ac_delim
21102 CATOBJEXT!$CATOBJEXT$ac_delim
21103 DATADIRNAME!$DATADIRNAME$ac_delim
21104 GMOFILES!$GMOFILES$ac_delim
21105 INSTOBJEXT!$INSTOBJEXT$ac_delim
21106 INTLDEPS!$INTLDEPS$ac_delim
21107 INTLLIBS!$INTLLIBS$ac_delim
21108 INTLOBJS!$INTLOBJS$ac_delim
21109 POFILES!$POFILES$ac_delim
21110 POSUB!$POSUB$ac_delim
21113 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21115 elif $ac_last_try; then
21116 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21117 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21118 { (exit 1); exit 1; }; }
21120 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21124 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21125 if test -n "$ac_eof"; then
21126 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21127 ac_eof=`expr $ac_eof + 1`
21130 cat >>$CONFIG_STATUS <<_ACEOF
21131 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21132 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21135 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21136 s/^/s,@/; s/!/@,|#_!!_#|/
21139 s/'"$ac_delim"'$/,g/; t
21141 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21142 ' >>$CONFIG_STATUS <conf$$subs.sed
21143 rm -f conf$$subs.sed
21144 cat >>$CONFIG_STATUS <<_ACEOF
21150 for ac_last_try in false false false false false :; do
21151 cat >conf$$subs.sed <<_ACEOF
21152 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
21153 login_manager_tmp!$login_manager_tmp$ac_delim
21154 pkg_config!$pkg_config$ac_delim
21155 gnome_open_program!$gnome_open_program$ac_delim
21156 gnome_url_show_program!$gnome_url_show_program$ac_delim
21157 INCLUDES!$INCLUDES$ac_delim
21158 PREFERRED_DEMO_PROGRAM!$PREFERRED_DEMO_PROGRAM$ac_delim
21159 ALL_DEMO_PROGRAMS!$ALL_DEMO_PROGRAMS$ac_delim
21160 SAVER_LIBS!$SAVER_LIBS$ac_delim
21161 MOTIF_LIBS!$MOTIF_LIBS$ac_delim
21162 GTK_LIBS!$GTK_LIBS$ac_delim
21163 XML_LIBS!$XML_LIBS$ac_delim
21164 JPEG_LIBS!$JPEG_LIBS$ac_delim
21165 HACK_LIBS!$HACK_LIBS$ac_delim
21166 XPM_LIBS!$XPM_LIBS$ac_delim
21167 PTY_LIBS!$PTY_LIBS$ac_delim
21168 GL_LIBS!$GL_LIBS$ac_delim
21169 GLE_LIBS!$GLE_LIBS$ac_delim
21170 XDPMS_LIBS!$XDPMS_LIBS$ac_delim
21171 XINERAMA_LIBS!$XINERAMA_LIBS$ac_delim
21172 PASSWD_LIBS!$PASSWD_LIBS$ac_delim
21173 INSTALL_SETUID!$INSTALL_SETUID$ac_delim
21174 SETUID_HACKS!$SETUID_HACKS$ac_delim
21175 INSTALL_DIRS!$INSTALL_DIRS$ac_delim
21176 NEED_SETUID!$NEED_SETUID$ac_delim
21177 INSTALL_PAM!$INSTALL_PAM$ac_delim
21178 HAVE_PAM_FAIL_DELAY!$HAVE_PAM_FAIL_DELAY$ac_delim
21179 NEW_LOGIN_COMMAND!$NEW_LOGIN_COMMAND$ac_delim
21180 NEW_LOGIN_COMMAND_P!$NEW_LOGIN_COMMAND_P$ac_delim
21181 DEFAULT_IMAGES_P!$DEFAULT_IMAGES_P$ac_delim
21182 DEFAULT_IMAGE_DIRECTORY!$DEFAULT_IMAGE_DIRECTORY$ac_delim
21183 DEFAULT_TEXT_FILE!$DEFAULT_TEXT_FILE$ac_delim
21184 WITH_BROWSER!$WITH_BROWSER$ac_delim
21185 OBJCC!$OBJCC$ac_delim
21186 EXES_OSX!$EXES_OSX$ac_delim
21187 SCRIPTS_OSX!$SCRIPTS_OSX$ac_delim
21188 MEN_OSX!$MEN_OSX$ac_delim
21189 PASSWD_SRCS!$PASSWD_SRCS$ac_delim
21190 PASSWD_OBJS!$PASSWD_OBJS$ac_delim
21191 XMU_SRCS!$XMU_SRCS$ac_delim
21192 XMU_OBJS!$XMU_OBJS$ac_delim
21193 XMU_LIBS!$XMU_LIBS$ac_delim
21194 SAVER_GL_SRCS!$SAVER_GL_SRCS$ac_delim
21195 SAVER_GL_OBJS!$SAVER_GL_OBJS$ac_delim
21196 SAVER_GL_LIBS!$SAVER_GL_LIBS$ac_delim
21197 LOCK_SRCS!$LOCK_SRCS$ac_delim
21198 LOCK_OBJS!$LOCK_OBJS$ac_delim
21199 JPEG_EXES!$JPEG_EXES$ac_delim
21200 GL_EXES!$GL_EXES$ac_delim
21201 GL_UTIL_EXES!$GL_UTIL_EXES$ac_delim
21202 GL_MEN!$GL_MEN$ac_delim
21203 GL_KLUDGE!$GL_KLUDGE$ac_delim
21204 GLE_EXES!$GLE_EXES$ac_delim
21205 GLE_KLUDGE!$GLE_KLUDGE$ac_delim
21206 GNOME24!$GNOME24$ac_delim
21207 GNOME22!$GNOME22$ac_delim
21208 NOGNOME!$NOGNOME$ac_delim
21209 HACKDIR!$HACKDIR$ac_delim
21210 HACKDIR_FULL!$HACKDIR_FULL$ac_delim
21211 GTK_DATADIR!$GTK_DATADIR$ac_delim
21212 PO_DATADIR!$PO_DATADIR$ac_delim
21213 HACK_CONF_DIR!$HACK_CONF_DIR$ac_delim
21214 GTK_EXTRA_OBJS!$GTK_EXTRA_OBJS$ac_delim
21215 APPDEFAULTS!$APPDEFAULTS$ac_delim
21216 DEPEND!$DEPEND$ac_delim
21217 DEPEND_FLAGS!$DEPEND_FLAGS$ac_delim
21218 DEPEND_DEFINES!$DEPEND_DEFINES$ac_delim
21219 LIBOBJS!$LIBOBJS$ac_delim
21220 LTLIBOBJS!$LTLIBOBJS$ac_delim
21223 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 69; then
21225 elif $ac_last_try; then
21226 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21227 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21228 { (exit 1); exit 1; }; }
21230 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21234 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21235 if test -n "$ac_eof"; then
21236 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21237 ac_eof=`expr $ac_eof + 1`
21240 cat >>$CONFIG_STATUS <<_ACEOF
21241 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21242 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21245 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21246 s/^/s,@/; s/!/@,|#_!!_#|/
21249 s/'"$ac_delim"'$/,g/; t
21251 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21252 ' >>$CONFIG_STATUS <conf$$subs.sed
21253 rm -f conf$$subs.sed
21254 cat >>$CONFIG_STATUS <<_ACEOF
21261 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21262 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21263 # trailing colons and then remove the whole line if VPATH becomes empty
21264 # (actually we leave an empty line to preserve line numbers).
21265 if test "x$srcdir" = x.; then
21266 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21267 s/:*\$(srcdir):*/:/
21268 s/:*\${srcdir}:*/:/
21270 s/^\([^=]*=[ ]*\):*/\1/
21276 cat >>$CONFIG_STATUS <<\_ACEOF
21277 fi # test -n "$CONFIG_FILES"
21280 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21283 :[FHLC]) ac_mode=$ac_tag; continue;;
21285 case $ac_mode$ac_tag in
21287 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21288 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21289 { (exit 1); exit 1; }; };;
21290 :[FH]-) ac_tag=-:-;;
21291 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21308 -) ac_f="$tmp/stdin";;
21309 *) # Look for the file first in the build tree, then in the source tree
21310 # (if the path is not absolute). The absolute path cannot be DOS-style,
21311 # because $ac_f cannot contain `:'.
21315 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21317 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21318 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21319 { (exit 1); exit 1; }; };;
21321 ac_file_inputs="$ac_file_inputs $ac_f"
21324 # Let's still pretend it is `configure' which instantiates (i.e., don't
21325 # use $as_me), people would be surprised to read:
21326 # /* config.h. Generated by config.status. */
21327 configure_input="Generated from "`IFS=:
21328 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21329 if test x"$ac_file" != x-; then
21330 configure_input="$ac_file. $configure_input"
21331 { echo "$as_me:$LINENO: creating $ac_file" >&5
21332 echo "$as_me: creating $ac_file" >&6;}
21336 *:-:* | *:-) cat >"$tmp/stdin";;
21341 ac_dir=`$as_dirname -- "$ac_file" ||
21342 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21343 X"$ac_file" : 'X\(//\)[^/]' \| \
21344 X"$ac_file" : 'X\(//\)$' \| \
21345 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21351 /^X\(\/\/\)[^/].*/{
21366 -*) as_dir=./$as_dir;;
21368 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21372 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21373 *) as_qdir=$as_dir;;
21375 as_dirs="'$as_qdir' $as_dirs"
21376 as_dir=`$as_dirname -- "$as_dir" ||
21377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21378 X"$as_dir" : 'X\(//\)[^/]' \| \
21379 X"$as_dir" : 'X\(//\)$' \| \
21380 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21386 /^X\(\/\/\)[^/].*/{
21399 test -d "$as_dir" && break
21401 test -z "$as_dirs" || eval "mkdir $as_dirs"
21402 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21403 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21404 { (exit 1); exit 1; }; }; }
21408 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21410 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21411 # A ".." for each directory in $ac_dir_suffix.
21412 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21413 case $ac_top_builddir_sub in
21414 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21415 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21418 ac_abs_top_builddir=$ac_pwd
21419 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21420 # for backward compatibility:
21421 ac_top_builddir=$ac_top_build_prefix
21424 .) # We are building in place.
21426 ac_top_srcdir=$ac_top_builddir_sub
21427 ac_abs_top_srcdir=$ac_pwd ;;
21428 [\\/]* | ?:[\\/]* ) # Absolute name.
21429 ac_srcdir=$srcdir$ac_dir_suffix;
21430 ac_top_srcdir=$srcdir
21431 ac_abs_top_srcdir=$srcdir ;;
21432 *) # Relative name.
21433 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21434 ac_top_srcdir=$ac_top_build_prefix$srcdir
21435 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21437 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21447 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21448 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21452 cat >>$CONFIG_STATUS <<\_ACEOF
21453 # If the template does not know about datarootdir, expand it.
21454 # FIXME: This hack should be removed a few years after 2.60.
21455 ac_datarootdir_hack=; ac_datarootdir_seen=
21457 case `sed -n '/datarootdir/ {
21466 ' $ac_file_inputs` in
21467 *datarootdir*) ac_datarootdir_seen=yes;;
21468 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21469 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21470 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21472 cat >>$CONFIG_STATUS <<_ACEOF
21473 ac_datarootdir_hack='
21474 s&@datadir@&$datadir&g
21475 s&@docdir@&$docdir&g
21476 s&@infodir@&$infodir&g
21477 s&@localedir@&$localedir&g
21478 s&@mandir@&$mandir&g
21479 s&\\\${datarootdir}&$datarootdir&g' ;;
21483 # Neutralize VPATH when `$srcdir' = `.'.
21484 # Shell code in configure.ac might set extrasub.
21485 # FIXME: do we really want to maintain this feature?
21486 cat >>$CONFIG_STATUS <<_ACEOF
21490 cat >>$CONFIG_STATUS <<\_ACEOF
21492 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21493 s&@configure_input@&$configure_input&;t t
21494 s&@top_builddir@&$ac_top_builddir_sub&;t t
21495 s&@srcdir@&$ac_srcdir&;t t
21496 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21497 s&@top_srcdir@&$ac_top_srcdir&;t t
21498 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21499 s&@builddir@&$ac_builddir&;t t
21500 s&@abs_builddir@&$ac_abs_builddir&;t t
21501 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21502 s&@INSTALL@&$ac_INSTALL&;t t
21503 $ac_datarootdir_hack
21504 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21506 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21507 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21508 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21509 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21510 which seems to be undefined. Please make sure it is defined." >&5
21511 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21512 which seems to be undefined. Please make sure it is defined." >&2;}
21516 -) cat "$tmp/out"; rm -f "$tmp/out";;
21517 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21526 # Transform confdefs.h into a sed script `conftest.defines', that
21527 # substitutes the proper values into config.h.in to produce config.h.
21528 rm -rf conftest.defines conftest.tail
21529 # First, append a space to every undef/define line, to ease matching.
21530 echo 's/$/ /' >conftest.defines
21531 # Then, protect against being on the right side of a sed subst, or in
21532 # an unquoted here document, in config.status. If some macros were
21533 # called several times there might be several #defines for the same
21534 # symbol, which is useless. But do not sort them, since the last
21535 # AC_DEFINE must be honored.
21536 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21537 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21538 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21539 # PARAMS is the parameter list in the macro definition--in most cases, it's
21540 # just an empty string.
21541 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21542 ac_dB='\\)[ (].*,\\1define\\2'
21550 s/^[ ]*#[ ]*define[ ][ ]*//
21555 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21556 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21557 ' >>conftest.defines
21559 # Remove the space that was appended to ease matching.
21560 # Then replace #undef with comments. This is necessary, for
21561 # example, in the case of _POSIX_SOURCE, which is predefined and required
21562 # on some systems where configure will not decide to define it.
21563 # (The regexp can be short, since the line contains either #define or #undef.)
21565 s,^[ #]*u.*,/* & */,' >>conftest.defines
21567 # Break up conftest.defines:
21568 ac_max_sed_lines=50
21570 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21571 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21572 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21574 ac_in='$ac_file_inputs'
21575 ac_out='"$tmp/out1"'
21576 ac_nxt='"$tmp/out2"'
21580 # Write a here document:
21581 cat >>$CONFIG_STATUS <<_ACEOF
21582 # First, check the format of the line:
21583 cat >"\$tmp/defines.sed" <<\\CEOF
21584 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21585 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21589 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21591 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21592 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21593 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21594 grep . conftest.tail >/dev/null || break
21595 rm -rf conftest.defines
21596 mv conftest.tail conftest.defines
21598 rm -rf conftest.defines conftest.tail
21600 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21601 cat >>$CONFIG_STATUS <<\_ACEOF
21602 if test x"$ac_file" != x-; then
21603 echo "/* $configure_input */" >"$tmp/config.h"
21604 cat "$ac_result" >>"$tmp/config.h"
21605 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21606 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21607 echo "$as_me: $ac_file is unchanged" >&6;}
21610 mv "$tmp/config.h" $ac_file
21613 echo "/* $configure_input */"
21619 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21620 echo "$as_me: executing $ac_file commands" >&6;}
21625 case $ac_file$ac_mode in
21628 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
21629 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
21630 rm -f intltool-extract.out
21632 mv -f intltool-extract.out intltool-extract
21634 chmod ugo+x intltool-extract
21635 chmod u+w intltool-extract
21637 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
21638 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
21639 rm -f intltool-merge.out
21641 mv -f intltool-merge.out intltool-merge
21643 chmod ugo+x intltool-merge
21644 chmod u+w intltool-merge
21646 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
21647 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
21648 rm -f intltool-update.out
21650 mv -f intltool-update.out intltool-update
21652 chmod ugo+x intltool-update
21653 chmod u+w intltool-update
21656 "default-2":C) case "$CONFIG_FILES" in *po/Makefile.in*)
21657 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
21664 { (exit 0); exit 0; }
21666 chmod +x $CONFIG_STATUS
21667 ac_clean_files=$ac_clean_files_save
21670 # configure is writing to config.log, and then calls config.status.
21671 # config.status does its own redirection, appending to config.log.
21672 # Unfortunately, on DOS this fails, as config.log is still kept open
21673 # by configure, so config.status won't be able to write to it; its
21674 # output is simply discarded. So we exec the FD to /dev/null,
21675 # effectively closing config.log, so it can be properly (re)opened and
21676 # appended to by config.status. When coming back to configure, we
21677 # need to make the FD available again.
21678 if test "$no_create" != yes; then
21680 ac_config_status_args=
21681 test "$silent" = yes &&
21682 ac_config_status_args="$ac_config_status_args --quiet"
21684 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21686 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21687 # would make configure fail if this is the last instruction.
21688 $ac_cs_success || { (exit 1); exit 1; }
21692 ###############################################################################
21694 # Print some warnings at the end.
21696 ###############################################################################
21698 warn_prefix_1=" Warning:"
21699 warn_prefix_2=" Note:"
21700 warn_prefix="$warn_prefix_1"
21703 warnsep=' #################################################################'
21706 if test "$warning" = no ; then
21707 echo '' ; echo "$warnsep" ; echo ''
21714 if test "$warning" = long ; then echo '' ; fi
21717 echo "$warn_prefix $rest"
21724 if test "$was" != no ; then echo '' ; fi
21726 echo "$warn_prefix $rest"
21736 warn_prefix="$warn_prefix_2"
21738 warn_prefix="$warn_prefix_1"
21742 warn_prefix="$warn_prefix_2"
21744 warn_prefix="$warn_prefix_1"
21748 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
21749 warn 'The SGI saver extension was requested, but was not found.'
21752 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
21753 warn 'The XIdle extension was requested, but was not found.'
21756 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
21757 warn 'The XSHM extension was requested, but was not found.'
21760 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
21761 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
21764 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
21765 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
21768 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
21769 warn 'The DPMS extension was requested, but was not found.'
21772 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
21773 warn 'The Xinerama extension was requested, but was not found.'
21776 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
21777 warn 'The XF86VMODE extension was requested, but was not found.'
21780 if test "$with_randr_req" = yes -a "$have_randr" = no ; then
21781 warn 'The RANDR extension was requested, but was not found.'
21784 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
21785 warn "Checking of /proc/interrupts was requested, but it's bogus."
21788 if test "$pkg_config" = false ; then
21789 warnL 'The "pkg-config" program was not found. Without that,'
21790 warn2 "detection of the various GTK libraries won't work."
21792 pkgerr=`$pkg_config --list-all 2>&1 >/dev/null`
21793 if test "x$pkgerr" != "x" ; then
21794 warnL 'The "pkg-config" program produces errors. This often causes'
21795 warn2 "detection of the various GTK libraries to malfunction."
21796 warn2 "The errors are:"
21798 echo "$pkgerr" | sed 's/^/ > /g'
21802 if test "$gtk_halfassed" != no ; then
21803 warnL "GTK version $gtk_halfassed was found, but at least one supporting"
21804 warn2 "library ($gtk_halfassed_lib) was not, so GTK can't be used."
21805 warn2 "Perhaps some of the development packages are not installed?"
21806 if test "$have_gtk" = yes ; then
21807 v="$ac_gtk_version_string"
21808 warn2 "GTK $v is also installed, so it will be used instead."
21809 warn2 "Please read the above output and the \`config.log' file"
21810 warn2 "for more details."
21815 warn2 'Though the Motif front-end to xscreensaver is still'
21816 warn2 'maintained, it is no longer being updated with new'
21817 warn2 'features: all new development on the xscreensaver-demo'
21818 warn2 'program is happening in the GTK version, and not in the'
21819 warn2 'Motif version. It is recommended that you build against'
21820 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
21823 if test "$have_motif" = no -a "$have_gtk" = no; then
21825 if test "$with_motif" = yes; then
21826 warnL "Neither the GTK nor Motif libraries were found; the"
21827 warn2 "\`xscreensaver-demo' program requires one of these."
21831 warnL "The GTK libraries do not seem to be available; the"
21832 warn2 "\`xscreensaver-demo' program requires them."
21834 # warn2 'You can use Motif or Lesstif instead of GTK (use the'
21835 # warn2 "\`--with-motif' option) but that is NOT recommended."
21839 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
21840 warnL "Use of Motif was requested, but it wasn't found;"
21841 warn2 "Gtk will be used instead."
21843 elif test "$jurassic_gtk" = yes ; then
21847 v="$ac_gtk_version_string"
21848 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
21849 warnL "Use of Gtk was requested, but its version number is unknown;"
21850 elif test "$with_gtk_req" = yes ; then
21851 warnL "Use of Gtk was requested, but it is version $v;"
21853 warnL "Gtk was found on this system, but it is version $v;"
21856 warn2 "Gtk $pref_gtk or newer is required."
21858 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
21859 warnL "Use of Gtk was requested, but it wasn't found."
21863 if test "$have_gtk" = yes -a "$have_gdk_pixbuf" = no ; then
21864 warn "GTK is being used, but the GDK-Pixbuf library and/or"
21865 warn2 "headers were not found. That can't be good. Please"
21866 warn2 "install the GDK-Pixbuf development kit and re-configure."
21869 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
21871 preferred_lesstif=0.92
21873 if test "$lesstif_version" = unknown; then
21874 warnL "Unable to determine the LessTif version number!"
21875 warn2 "Make sure you are using version $preferred_lesstif or newer."
21876 warn2 "See <http://www.lesstif.org/>."
21878 elif test \! $lesstif_version -gt 82; then
21879 warnL "LessTif version $lesstif_version_string is being used."
21880 warn2 "LessTif versions 0.82 and earlier are too buggy to"
21881 warn2 "use with XScreenSaver; it is strongly recommended"
21882 warn2 "that you upgrade to at least version $preferred_lesstif!"
21883 warn2 "See <http://www.lesstif.org/>."
21888 if test "$have_motif" = yes -a "$have_gtk" = no ; then
21889 warn 'Motif is being used, and GTK is not.'
21895 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
21896 warnL 'Use of XPM was requested, but it was not found.'
21899 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
21900 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
21903 if test "$have_gdk_pixbuf" = no -o "$gdk_pixbuf_halfassed" = yes || \
21904 test "$have_gdk_pixbuf" = no -a "$have_xpm" = no ; then
21906 if test "$with_gdk_pixbuf_req" = yes ; then
21908 elif test "$with_gdk_pixbuf_req" = no ; then
21909 warnL 'The GDK-Pixbuf library is not being used.'
21911 warnL 'The GDK-Pixbuf library was not found.'
21914 if test "$with_xpm_req" = yes -o "$have_xpm" = yes ; then
21916 elif test "$with_xpm_req" = no ; then
21917 warnL 'The XPM library is not being used.'
21919 warnL 'The XPM library was not found.'
21922 if test "$have_gdk_pixbuf" = no -a "$have_xpm" = yes ; then
21923 warn2 'The XPM library is being used instead.'
21926 if test "$gdk_pixbuf_halfassed" = yes ; then
21928 warn2 'More specifically, we found the headers, but not the'
21929 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
21930 warn2 "system, or something else went wrong. The \`config.log'"
21931 warn2 'file might contain some clues.'
21935 warn2 'Some of the demos will not use images as much as they could.'
21936 warn2 'You should consider installing GDK-Pixbuf and re-running'
21937 warn2 'configure. (GDK-Pixbuf is recommended over XPM, as it'
21938 warn2 'provides support for more image formats.)'
21942 if test "$have_jpeg" = no ; then
21943 if test "$with_jpeg_req" = yes ; then
21944 warnL 'Use of libjpeg was requested, but it was not found.'
21945 elif test "$with_jpeg_req" = no ; then
21946 noteL 'The JPEG library is not being used.'
21948 noteL 'The JPEG library was not found.'
21951 if test "$jpeg_halfassed" = yes ; then
21953 warn2 'More specifically, we found the headers, but not the'
21954 warn2 'library; so either JPEG is half-installed on this'
21955 warn2 "system, or something else went wrong. The \`config.log'"
21956 warn2 'file might contain some clues.'
21960 if test "$have_gdk_pixbuf" = no ; then
21961 warn2 "This means that it won't be possible for the image-manipulating"
21962 warn2 "display modes to load files from disk; and it also means that"
21963 warn2 "the \`webcollage' program will be much slower."
21965 warn2 "This means the \`webcollage' program will be much slower."
21970 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
21971 preferred_mesagl=3.4
21972 mgv="$ac_mesagl_version_string"
21973 pgl="$preferred_mesagl"
21975 if test "$ac_mesagl_version" = unknown; then
21977 # warnL "Unable to determine the MesaGL version number!"
21978 # warn2 "Make sure you are using version $preferred_mesagl or newer."
21980 elif test \! "$ac_mesagl_version" -gt 2006; then
21981 warnL "MesaGL version number is $mgv --"
21982 warn2 "MesaGL 2.6 and earlier have a security bug. It is strongly"
21983 warn2 "recommended that you upgrade to at least version $preferred_mesagl."
21985 elif test \! "$ac_mesagl_version" -gt 3003; then
21986 warnL "MesaGL version number is $mgv --"
21987 warn2 "MesaGL 3.3 and earlier have some bugs; it is recommended"
21988 warn2 "that you upgrade to $pgl or newer."
21992 if test "$have_gl" = no ; then
21993 if test "$with_gl_req" = yes ; then
21994 warnL 'Use of GL was requested, but it was not found.'
21995 elif test "$with_gl_req" = no ; then
21996 noteL 'The OpenGL 3D library is not being used.'
21998 noteL 'The OpenGL 3D library was not found.'
22001 if test "$gl_halfassed" = yes ; then
22003 warn2 'More specifically, we found the headers, but not the'
22004 warn2 'libraries; so either GL is half-installed on this'
22005 warn2 "system, or something else went wrong. The \`config.log'"
22006 warn2 'file might contain some clues.'
22010 warn2 'Those demos which use 3D will not be built or installed.'
22011 warn2 'You might want to consider installing OpenGL and'
22012 warn2 "re-running configure. If your vendor doesn't ship"
22013 warn2 'their own implementation of OpenGL, you can get a free'
22014 warn2 'version at <http://www.mesa3d.org/>. For general OpenGL'
22015 warn2 'info, see <http://www.opengl.org/>.'
22020 if test "$have_gl" = yes -a "$have_gle" = no ; then
22022 # nobody cares about this; don't print the warning unless it was
22023 # requested and not found, or halfway-found.
22024 if test "$with_gle_req" = yes -o "$gle_halfassed" = yes ; then
22026 if test "$with_gle_req" = yes ; then
22027 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
22028 warn2 'it was not found (though the OpenGL library was found, and'
22029 warn2 'is being used.)'
22030 elif test "$with_gle_req" = no ; then
22031 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
22032 warn2 'library is not.'
22034 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
22038 if test "$gle_halfassed" = yes ; then
22040 warn2 'More specifically, we found the headers, but not the'
22041 warn2 'libraries; so either GLE is half-installed on this'
22042 warn2 "system, or something else went wrong. The \`config.log'"
22043 warn2 'file might contain some clues.'
22047 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
22048 warn2 'will not be built or installed. You might want to consider'
22049 warn2 'installing GLE and re-running configure. You can find the'
22050 warn2 'GLE library at <http://www.linas.org/gle/>. For general'
22051 warn2 'OpenGL info, see <http://www.opengl.org/>.'
22057 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
22058 warn 'Use of XReadDisplay was requested, but it was not found.'
22061 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
22062 warn 'Use of Kerberos was requested, but it was not found.'
22065 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
22066 warn 'Use of PAM was requested, but it was not found.'
22069 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
22070 warn 'Use of shadow passwords was requested, but they were not found.'
22073 if test "$ac_macosx" = yes ; then
22074 if test "$enable_locking" = yes ; then
22075 warn "You have specified --enable-locking on MacOS X."
22076 warn2 "THIS DOES NOT WORK! Don't do this!"
22081 # You are in a twisty maze of namespaces and syntaxes, all alike.
22082 # Fuck the skull of Unix.
22084 bindir=`eval eval eval eval eval eval eval echo $bindir`
22085 HACKDIR=`eval eval eval eval eval eval eval echo $HACKDIR`
22086 HACK_CONF_DIR=`eval eval eval eval eval eval eval echo $HACK_CONF_DIR`
22088 # canonicalize slashes.
22089 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
22090 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
22091 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
22094 # Sanity check the hackdir
22095 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
22096 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
22098 { { echo "$as_me:$LINENO: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
22099 There will be an executable installed with that name, so
22100 that can't be the name of a directory as well. Please
22101 re-configure with a different directory name." >&5
22102 echo "$as_me: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
22103 There will be an executable installed with that name, so
22104 that can't be the name of a directory as well. Please
22105 re-configure with a different directory name." >&2;}
22106 { (exit 1); exit 1; }; }
22113 # Now let's warn if there's a previous RPM version already installed.
22114 # But don't bother with this test if we are currently *building* an RPM.
22116 if test -z "$RPM_PACKAGE_VERSION" ; then
22118 rpmnames="xscreensaver xscreensaver-base xscreensaver-extras"
22122 rpmv=`(rpm -qv $rpmnames) 2>/dev/null | \
22123 sed -n 's/^[-a-z]*-\([0-9][0-9]*[.][0-9][0-9a-z]*\)-.*$/\1/p' | \
22127 if test \! -z "$rpmv" ; then
22128 rpmbdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
22129 rpmhdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/popsquares$@\1@p'`
22132 warnL "There is already an installed RPM of xscreensaver $rpmv"
22133 warn2 'on this system. You might want to remove it ("rpm -ve")'
22134 warn2 'before running "make install" in this directory.'
22136 warn2 "Alternately, you could build this version of xscreensaver"
22137 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
22138 warn2 'file is included. Try "rpmbuild -v -ba xscreensaver.spec".'
22139 warn2 "See the RPM documentation for more info."
22142 if test "$rpmbdir" = "$rpmhdir" ; then
22143 warn2 "The RPM version was installed in $rpmbdir/."
22146 warn2 "The RPM version was installed in $rpmbdir/,"
22147 warn2 "with demos in $rpmhdir/."
22152 # Also warn if there's a Debian package installed.
22154 debnames="xscreensaver xscreensaver-data xscreensaver-data-extra"
22156 for dpkg in $debnames ; do
22157 if test -z "$debv"; then
22158 debv=`dpkg -s $dpkg 2>/dev/null | sed -n 's/^Version: \(.*\)$/\1/p'`
22162 if test \! -z "$debv" ; then
22163 debbdir=`dpkg -L $debnames 2>/dev/null | \
22164 sed -n 's@^\(.*/bin/\)xscreensaver$@\1@p'`
22165 debhdir=`dpkg -L $debnames 2>/dev/null | \
22166 sed -n 's@^\(.*/\)popsquares$@\1@p'`
22167 if test -z "$debbdir" ; then debbdir='???'; fi
22168 if test -z "$debhdir" ; then debhdir='???'; fi
22171 warnL "There is already an installed dpkg of xscreensaver"
22172 warn2 "version \"$debv\" on this system."
22174 warn2 "The dpkg was installed in $debbdir,"
22175 warn2 "with demos in $debhdir."
22179 if test "${bindir}" = "${HACKDIR}" ; then
22183 if test "$do_dir_warning" = yes; then
22187 echo ' When you run "make install", the "xscreensaver",'
22188 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
22189 echo " will be installed in ${bindir}/."
22191 echo " The various graphics demos (190+ different executables) will"
22192 echo " be installed in ${HACKDIR}/."
22194 echo " If you would prefer the demos to be installed elsewhere,"
22195 echo " you should re-run configure with the --with-hackdir=DIR"
22196 echo " option. For more information, run \`./configure --help'."
22200 if test "$warning" != no; then
22201 echo '' ; echo "$warnsep" ; echo ''
22204 if test "$do_dir_warning" = no; then
22205 if test "$warning" = no; then
22208 echo "User programs will be installed in ${bindir}/"
22209 echo "Screen savers will be installed in ${HACKDIR}/"
22210 echo "Configuration dialogs will be installed in ${HACK_CONF_DIR}/"
22211 echo "System-wide default settings will be installed in ${APPDEFAULTS}/"