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
785 ac_precious_vars='build_alias
797 # Initialize some variables set by options.
799 ac_init_version=false
800 # The variables have the same names as the options, with
801 # dashes changed to underlines.
809 program_transform_name=s,x,x,
817 # Installation directory options.
818 # These are left unexpanded so users can "make install exec_prefix=/foo"
819 # and all the variables that are supposed to be based on exec_prefix
820 # by default will actually change.
821 # Use braces instead of parens because sh, perl, etc. also accept them.
822 # (The list follows the same order as the GNU Coding Standards.)
823 bindir='${exec_prefix}/bin'
824 sbindir='${exec_prefix}/sbin'
825 libexecdir='${exec_prefix}/libexec'
826 datarootdir='${prefix}/share'
827 datadir='${datarootdir}'
828 sysconfdir='${prefix}/etc'
829 sharedstatedir='${prefix}/com'
830 localstatedir='${prefix}/var'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE}'
834 infodir='${datarootdir}/info'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
847 # If the previous option needs an argument, assign it.
848 if test -n "$ac_prev"; then
849 eval $ac_prev=\$ac_option
855 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859 # Accept the important Cygnus configure options, so we can diagnose typos.
861 case $ac_dashdash$ac_option in
865 -bindir | --bindir | --bindi | --bind | --bin | --bi)
867 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870 -build | --build | --buil | --bui | --bu)
871 ac_prev=build_alias ;;
872 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
873 build_alias=$ac_optarg ;;
875 -cache-file | --cache-file | --cache-fil | --cache-fi \
876 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
877 ac_prev=cache_file ;;
878 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
879 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
880 cache_file=$ac_optarg ;;
883 cache_file=config.cache ;;
885 -datadir | --datadir | --datadi | --datad)
887 -datadir=* | --datadir=* | --datadi=* | --datad=*)
888 datadir=$ac_optarg ;;
890 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
891 | --dataroo | --dataro | --datar)
892 ac_prev=datarootdir ;;
893 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
894 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
895 datarootdir=$ac_optarg ;;
897 -disable-* | --disable-*)
898 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
901 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
902 { (exit 1); exit 1; }; }
903 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
904 eval enable_$ac_feature=no ;;
906 -docdir | --docdir | --docdi | --doc | --do)
908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
916 -enable-* | --enable-*)
917 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
920 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
921 { (exit 1); exit 1; }; }
922 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
923 eval enable_$ac_feature=\$ac_optarg ;;
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
938 -help | --help | --hel | --he | -h)
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 htmldir=$ac_optarg ;;
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
968 -libdir | --libdir | --libdi | --libd)
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
980 -localedir | --localedir | --localedi | --localed | --locale)
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998 # Obsolete; use --without-fp.
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1059 -psdir | --psdir | --psdi | --psd | --ps)
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072 sbindir=$ac_optarg ;;
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083 sharedstatedir=$ac_optarg ;;
1085 -site | --site | --sit)
1087 -site=* | --site=* | --sit=*)
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1114 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1117 { echo "$as_me: error: invalid package name: $ac_package" >&2
1118 { (exit 1); exit 1; }; }
1119 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1120 eval with_$ac_package=\$ac_optarg ;;
1122 -without-* | --without-*)
1123 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1126 { echo "$as_me: error: invalid package name: $ac_package" >&2
1127 { (exit 1); exit 1; }; }
1128 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1129 eval with_$ac_package=no ;;
1132 # Obsolete; use --with-x.
1135 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136 | --x-incl | --x-inc | --x-in | --x-i)
1137 ac_prev=x_includes ;;
1138 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140 x_includes=$ac_optarg ;;
1142 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144 ac_prev=x_libraries ;;
1145 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147 x_libraries=$ac_optarg ;;
1149 -*) { echo "$as_me: error: unrecognized option: $ac_option
1150 Try \`$0 --help' for more information." >&2
1151 { (exit 1); exit 1; }; }
1155 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1158 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1159 { (exit 1); exit 1; }; }
1160 eval $ac_envvar=\$ac_optarg
1161 export $ac_envvar ;;
1164 # FIXME: should be removed in autoconf 3.0.
1165 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1174 if test -n "$ac_prev"; then
1175 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176 { echo "$as_me: error: missing argument to $ac_option" >&2
1177 { (exit 1); exit 1; }; }
1180 # Be sure to have absolute directory names.
1181 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1182 datadir sysconfdir sharedstatedir localstatedir includedir \
1183 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1184 libdir localedir mandir
1186 eval ac_val=\$$ac_var
1188 [\\/$]* | ?:[\\/]* ) continue;;
1189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1191 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1192 { (exit 1); exit 1; }; }
1195 # There might be people who depend on the old broken behavior: `$host'
1196 # used to hold the argument of --host etc.
1197 # FIXME: To remove some day.
1200 target=$target_alias
1202 # FIXME: To remove some day.
1203 if test "x$host_alias" != x; then
1204 if test "x$build_alias" = x; then
1205 cross_compiling=maybe
1206 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1207 If a cross compiler is detected then cross compile mode will be used." >&2
1208 elif test "x$build_alias" != "x$host_alias"; then
1214 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1216 test "$silent" = yes && exec 6>/dev/null
1219 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1220 ac_ls_di=`ls -di .` &&
1221 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1222 { echo "$as_me: error: Working directory cannot be determined" >&2
1223 { (exit 1); exit 1; }; }
1224 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1225 { echo "$as_me: error: pwd does not report name of working directory" >&2
1226 { (exit 1); exit 1; }; }
1229 # Find the source files, if location was not specified.
1230 if test -z "$srcdir"; then
1231 ac_srcdir_defaulted=yes
1232 # Try the directory containing this script, then the parent directory.
1233 ac_confdir=`$as_dirname -- "$0" ||
1234 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1235 X"$0" : 'X\(//\)[^/]' \| \
1236 X"$0" : 'X\(//\)$' \| \
1237 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1261 ac_srcdir_defaulted=no
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1264 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1265 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1266 { (exit 1); exit 1; }; }
1268 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1270 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1271 { (exit 1); exit 1; }; }
1273 # When building in place, set srcdir=.
1274 if test "$ac_abs_confdir" = "$ac_pwd"; then
1277 # Remove unnecessary trailing slashes from srcdir.
1278 # Double slashes in file names in object file debugging info
1279 # mess up M-x gdb in Emacs.
1281 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283 for ac_var in $ac_precious_vars; do
1284 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_env_${ac_var}_value=\$${ac_var}
1286 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1291 # Report the --help message.
1293 if test "$ac_init_help" = "long"; then
1294 # Omit some internal or obsolete options to make the list less imposing.
1295 # This message is too long to be a string in the A/UX 3.1 sh.
1297 \`configure' configures this package to adapt to many kinds of systems.
1299 Usage: $0 [OPTION]... [VAR=VALUE]...
1301 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1302 VAR=VALUE. See below for descriptions of some of the useful variables.
1304 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 --sbindir=DIR system admin executables [EPREFIX/sbin]
1333 --libexecdir=DIR program executables [EPREFIX/libexec]
1334 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1335 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1336 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1337 --libdir=DIR object code libraries [EPREFIX/lib]
1338 --includedir=DIR C header files [PREFIX/include]
1339 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1340 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1341 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1342 --infodir=DIR info documentation [DATAROOTDIR/info]
1343 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1344 --mandir=DIR man documentation [DATAROOTDIR/man]
1345 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1346 --htmldir=DIR html documentation [DOCDIR]
1347 --dvidir=DIR dvi documentation [DOCDIR]
1348 --pdfdir=DIR pdf documentation [DOCDIR]
1349 --psdir=DIR ps documentation [DOCDIR]
1355 --x-includes=DIR X include files are in DIR
1356 --x-libraries=DIR X library files are in DIR
1359 --build=BUILD configure for building on BUILD [guessed]
1360 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1364 if test -n "$ac_init_help"; then
1369 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1370 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1372 Screen locking options:
1373 --enable-locking Compile in support for locking the display.
1374 --disable-locking Do not allow locking at all.
1376 --enable-root-passwd Allow root passwd to unlock screen.
1377 --disable-root-passwd Do not allow that.
1380 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1381 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1383 --with-x use the X Window System
1386 Installation options:
1387 --with-hackdir=DIR Where to install the hundreds of demo executables.
1388 Default: `PREFIX/libexec/xscreensaver/'
1389 --with-configdir=DIR Where to install the data files that describe each
1390 of the display modes to the GUI.
1391 Default: `PREFIX/share/xscreensaver/config/'
1392 --with-x-app-defaults=DIR
1393 Where to install xscreensaver configuration file.
1395 Except where noted, all of the --with options below can also take a
1396 directory argument: for example, `--with-motif=/opt/Motif'. That would
1397 cause /opt/Motif/include/ to be added to the -I list, and /opt/Motif/lib/
1398 to be added to the -L list, assuming those directories exist.
1400 By default, support for each of these options will be built in, if the
1401 relevant library routines exist. At run time, they will then be used
1402 only if the X server being used supports them. Each --with option has
1403 a corresponding --without option, to override building support for them
1406 Screen blanking and idle-detection options:
1408 --with-sgi-ext Include support for the SGI SCREEN_SAVER extension.
1409 --with-xidle-ext Include support for the XIDLE extension.
1410 --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL extension.
1411 --with-dpms-ext Include support for the DPMS extension.
1412 --with-xinerama-ext Include support for the XINERAMA extension.
1413 --with-xf86vmode-ext Include support for XFree86 virtual screens.
1414 --with-xf86gamma-ext Include support for XFree86 gamma fading.
1415 --with-randr-ext Include support for the X Resize+Rotate extension.
1416 --with-proc-interrupts Include support for consulting the /proc/interrupts
1417 file to notice keyboard activity.
1418 --with-pam Include support for PAM (Pluggable Auth Modules.)
1419 --with-pam-service-name=NAME
1420 NAME is the name of the PAM service that
1421 xscreensaver will authenticate as.
1422 --with-kerberos Include support for Kerberos authentication.
1423 --with-shadow Include support for shadow password authentication.
1424 --with-passwd-helper Include support for an external password
1425 verification helper program.
1426 --with-login-manager Put a "New Login" button on the unlock dialog that
1427 runs a login manager such as gdmflexiserver.
1429 User interface options:
1431 --with-gtk Use the Gtk toolkit for the user interface.
1432 --with-motif Use the Motif toolkit for the user interface
1437 --with-gl Build those demos which depend on OpenGL.
1438 --with-gle Build those demos which depend on GLE
1439 (the OpenGL "extrusion" library.)
1440 --with-pixbuf Include support for the GDK-Pixbuf library in some
1441 demos, which will make it possible for them to read
1442 GIF, JPEG, and PNG files as well.
1443 --with-xpm Include support for XPM files in some demos.
1444 (Not needed if Pixbuf is used.)
1445 --with-jpeg Include support for the JPEG library.
1446 --with-xshm-ext Include support for the Shared Memory extension.
1447 --with-xdbe-ext Include support for the DOUBLE-BUFFER extension.
1448 --with-readdisplay Include support for the XReadDisplay extension.
1449 --with-image-directory=DIR By default, some demos may display random images
1450 from this directory.
1451 --with-text-file=FILE By default, some demos may display this file.
1452 --with-browser=BROWSER Specify the browser to show help URL.
1453 --with-setuid-hacks Allow some demos to be installed `setuid root'
1454 (which is needed in order to ping other hosts.)
1457 Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
1462 LIBS libraries to pass to the linker, e.g. -l<library>
1463 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1466 XMKMF Path to xmkmf, Makefile generator for X Window System
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1475 if test "$ac_init_help" = "recursive"; then
1476 # If there are subdirs, report their specific --help.
1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478 test -d "$ac_dir" || continue
1482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1485 # A ".." for each directory in $ac_dir_suffix.
1486 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1487 case $ac_top_builddir_sub in
1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492 ac_abs_top_builddir=$ac_pwd
1493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494 # for backward compatibility:
1495 ac_top_builddir=$ac_top_build_prefix
1498 .) # We are building in place.
1500 ac_top_srcdir=$ac_top_builddir_sub
1501 ac_abs_top_srcdir=$ac_pwd ;;
1502 [\\/]* | ?:[\\/]* ) # Absolute name.
1503 ac_srcdir=$srcdir$ac_dir_suffix;
1504 ac_top_srcdir=$srcdir
1505 ac_abs_top_srcdir=$srcdir ;;
1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508 ac_top_srcdir=$ac_top_build_prefix$srcdir
1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513 cd "$ac_dir" || { ac_status=$?; continue; }
1514 # Check for guested configure.
1515 if test -f "$ac_srcdir/configure.gnu"; then
1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518 elif test -f "$ac_srcdir/configure"; then
1520 $SHELL "$ac_srcdir/configure" --help=recursive
1522 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524 cd "$ac_pwd" || { ac_status=$?; break; }
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1532 generated by GNU Autoconf 2.61
1534 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1535 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1536 This configure script is free software; the Free Software Foundation
1537 gives unlimited permission to copy, distribute and modify it.
1541 cat >config.log <<_ACEOF
1542 This file contains any messages produced by compilers while
1543 running configure, to aid debugging if configure makes a mistake.
1545 It was created by $as_me, which was
1546 generated by GNU Autoconf 2.61. Invocation command line was
1558 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1559 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1560 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1561 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1562 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1564 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1565 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1567 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1568 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1569 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1570 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1571 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1572 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1573 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 test -z "$as_dir" && as_dir=.
1582 echo "PATH: $as_dir"
1598 # Keep a trace of the command line.
1599 # Strip out --no-create and --no-recursion so they do not pile up.
1600 # Strip out --silent because we don't want to record it for future runs.
1601 # Also quote any args containing shell meta-characters.
1602 # Make two passes to allow for proper duplicate-argument suppression.
1606 ac_must_keep_next=false
1612 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1613 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1614 | -silent | --silent | --silen | --sile | --sil)
1617 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1620 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1622 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1623 if test $ac_must_keep_next = true; then
1624 ac_must_keep_next=false # Got value, back to normal.
1627 *=* | --config-cache | -C | -disable-* | --disable-* \
1628 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1629 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1630 | -with-* | --with-* | -without-* | --without-* | --x)
1631 case "$ac_configure_args0 " in
1632 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1635 -* ) ac_must_keep_next=true ;;
1638 ac_configure_args="$ac_configure_args '$ac_arg'"
1643 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1644 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1646 # When interrupted or exit'd, cleanup temporary files, and complete
1647 # config.log. We remove comments because anyway the quotes in there
1648 # would cause problems or look ugly.
1649 # WARNING: Use '\'' to represent an apostrophe within the trap.
1650 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1651 trap 'exit_status=$?
1652 # Save into config.log some information that might help in debugging.
1657 ## ---------------- ##
1658 ## Cache variables. ##
1659 ## ---------------- ##
1662 # The following way of writing the cache mishandles newlines in values,
1664 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1665 eval ac_val=\$$ac_var
1669 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1670 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1673 _ | IFS | as_nl) ;; #(
1674 *) $as_unset $ac_var ;;
1679 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1680 *${as_nl}ac_space=\ *)
1682 "s/'\''/'\''\\\\'\'''\''/g;
1683 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1686 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1694 ## ----------------- ##
1695 ## Output variables. ##
1696 ## ----------------- ##
1699 for ac_var in $ac_subst_vars
1701 eval ac_val=\$$ac_var
1703 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1705 echo "$ac_var='\''$ac_val'\''"
1709 if test -n "$ac_subst_files"; then
1711 ## ------------------- ##
1712 ## File substitutions. ##
1713 ## ------------------- ##
1716 for ac_var in $ac_subst_files
1718 eval ac_val=\$$ac_var
1720 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1722 echo "$ac_var='\''$ac_val'\''"
1727 if test -s confdefs.h; then
1737 test "$ac_signal" != 0 &&
1738 echo "$as_me: caught signal $ac_signal"
1739 echo "$as_me: exit $exit_status"
1741 rm -f core *.core core.conftest.* &&
1742 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1745 for ac_signal in 1 2 13 15; do
1746 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1750 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1751 rm -f -r conftest* confdefs.h
1753 # Predefined preprocessor variables.
1755 cat >>confdefs.h <<_ACEOF
1756 #define PACKAGE_NAME "$PACKAGE_NAME"
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_STRING "$PACKAGE_STRING"
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1780 # Let the site file select an alternate cache file if it wants to.
1781 # Prefer explicitly selected file to automatically selected ones.
1782 if test -n "$CONFIG_SITE"; then
1783 set x "$CONFIG_SITE"
1784 elif test "x$prefix" != xNONE; then
1785 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1787 set x "$ac_default_prefix/share/config.site" \
1788 "$ac_default_prefix/etc/config.site"
1793 if test -r "$ac_site_file"; then
1794 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1795 echo "$as_me: loading site script $ac_site_file" >&6;}
1796 sed 's/^/| /' "$ac_site_file" >&5
1801 if test -r "$cache_file"; then
1802 # Some versions of bash will fail to source /dev/null (special
1803 # files actually), so we avoid doing that.
1804 if test -f "$cache_file"; then
1805 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1806 echo "$as_me: loading cache $cache_file" >&6;}
1808 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1809 *) . "./$cache_file";;
1813 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1814 echo "$as_me: creating cache $cache_file" >&6;}
1818 # Check that the precious variables saved in the cache have kept the same
1820 ac_cache_corrupted=false
1821 for ac_var in $ac_precious_vars; do
1822 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1823 eval ac_new_set=\$ac_env_${ac_var}_set
1824 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1825 eval ac_new_val=\$ac_env_${ac_var}_value
1826 case $ac_old_set,$ac_new_set in
1828 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1829 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1830 ac_cache_corrupted=: ;;
1832 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1833 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1834 ac_cache_corrupted=: ;;
1837 if test "x$ac_old_val" != "x$ac_new_val"; then
1838 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1839 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1840 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1841 echo "$as_me: former value: $ac_old_val" >&2;}
1842 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1843 echo "$as_me: current value: $ac_new_val" >&2;}
1844 ac_cache_corrupted=:
1847 # Pass precious variables to config.status.
1848 if test "$ac_new_set" = set; then
1850 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1851 *) ac_arg=$ac_var=$ac_new_val ;;
1853 case " $ac_configure_args " in
1854 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1855 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1859 if $ac_cache_corrupted; then
1860 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1861 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1862 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1863 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1864 { (exit 1); exit 1; }; }
1884 ac_cpp='$CPP $CPPFLAGS'
1885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1890 ac_config_headers="$ac_config_headers config.h"
1893 echo "current directory: `pwd`"
1894 echo "command line was: $0 $@"
1896 ###############################################################################
1900 ###############################################################################
2075 # After checking to see that --srcdir is correct (which AC_INIT does)
2076 # check for some random other files that come later in the tar file,
2077 # to make sure everything is here.
2079 for d in driver utils hacks hacks/glx ; do
2080 f=$srcdir/$d/Makefile.in
2081 if test \! -r $f ; then
2083 echo "ERROR: The package is incomplete: $f does not exist."
2084 echo " This probably means that your download was truncated."
2090 ###############################################################################
2092 # Function to figure out how to run the compiler.
2094 ###############################################################################
2099 ###############################################################################
2101 # Check for availability of various gcc command-line options.
2103 ###############################################################################
2111 # Need to disable Objective C extensions in ANSI C on MacOS X to work
2112 # around an Apple-specific gcc bug.
2116 ###############################################################################
2118 # Function to figure out how to disable // comments in ANSI C code.
2120 # (With recent gcc, this is done with "-std=c89". With older gcc, this
2121 # is done by passing "-lang-c89" to cpp, by passing "-Wp,-lang-c89" to
2122 # gcc. Old gcc doesn't support -std, and new gcc doesn't support -lang.
2123 # so much for compatibility!)
2125 # UPDATE: apparently there is NO WAY to tell gcc 3.2.2 to require that
2126 # declarations preceed statements, without resorting to "-pedantic".
2127 # This means that there is no way to get gcc3 to issue warnings that
2128 # ensure that your code complies with the ANSI/ISO C89 standard, without
2129 # also drowning in totally useless warnings. Thank you master may I
2132 # So, I give up, let's just use -pedantic.
2134 ###############################################################################
2141 ###############################################################################
2143 # Function to figure out how to create directory trees.
2145 ###############################################################################
2150 ###############################################################################
2152 # Function to check whether gettimeofday() exists, and how to call it.
2153 # This may define HAVE_GETTIMEOFDAY and GETTIMEOFDAY_TWO_ARGS.
2155 ###############################################################################
2160 ###############################################################################
2162 # Function to find perl5 (defines PERL and PERL_VERSION.)
2164 ###############################################################################
2166 # M4 sucks!! perl sucks too!!
2168 perl_version_cmd='print $]'
2174 ###############################################################################
2176 # Function to demand "bc". Losers.
2178 ###############################################################################
2182 ###############################################################################
2184 # Functions to check how to do ICMP PING requests.
2186 ###############################################################################
2193 ###############################################################################
2195 # Functions to check for various X11 crap.
2197 ###############################################################################
2199 # Try and find the app-defaults directory.
2200 # It sucks that autoconf doesn't do this already...
2204 ###############################################################################
2206 # Handle the --with-x-app-defaults option HERE
2208 ###############################################################################
2211 # Check whether --with-x-app-defaults was given.
2212 if test "${with_x_app_defaults+set}" = set; then
2213 withval=$with_x_app_defaults; ac_cv_x_app_defaults="$withval"
2215 eval ac_x_app_defaults="$withval"
2228 # Random special-cases for X on certain pathological OSes.
2229 # You know who you are.
2235 ###############################################################################
2237 # Some utility functions to make checking for X things easier.
2239 ###############################################################################
2241 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
2245 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
2249 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
2254 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
2255 # Use this sparingly; it probably doesn't work very well on X programs.
2259 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
2260 # (But not the -L directories!)
2266 # Usage: HANDLE_X_PATH_ARG([variable_name],
2267 # [--command-line-option],
2268 # [descriptive string])
2270 # All of the --with options take three forms:
2272 # --with-foo (or --with-foo=yes)
2273 # --without-foo (or --with-foo=no)
2276 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
2277 # a directory (string beginning with a slash) it checks to see whether
2278 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
2285 ###############################################################################
2286 ###############################################################################
2288 # End of function definitions. Now start actually executing stuff.
2290 ###############################################################################
2291 ###############################################################################
2293 # WTF! autoconf emits this *way* too late. Do it earlier.
2294 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2295 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2298 # random compiler setup
2300 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2301 if test -f "$ac_dir/install-sh"; then
2303 ac_install_sh="$ac_aux_dir/install-sh -c"
2305 elif test -f "$ac_dir/install.sh"; then
2307 ac_install_sh="$ac_aux_dir/install.sh -c"
2309 elif test -f "$ac_dir/shtool"; then
2311 ac_install_sh="$ac_aux_dir/shtool install -c"
2315 if test -z "$ac_aux_dir"; then
2316 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2317 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2318 { (exit 1); exit 1; }; }
2321 # These three variables are undocumented and unsupported,
2322 # and are intended to be withdrawn in a future Autoconf release.
2323 # They can cause serious problems if a builder's source tree is in a directory
2324 # whose full name contains unusual characters.
2325 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2326 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2327 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2330 # Make sure we can run config.sub.
2331 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2332 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2333 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2334 { (exit 1); exit 1; }; }
2336 { echo "$as_me:$LINENO: checking build system type" >&5
2337 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2338 if test "${ac_cv_build+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 ac_build_alias=$build_alias
2342 test "x$ac_build_alias" = x &&
2343 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2344 test "x$ac_build_alias" = x &&
2345 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2346 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2347 { (exit 1); exit 1; }; }
2348 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2349 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2350 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2351 { (exit 1); exit 1; }; }
2354 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2355 echo "${ECHO_T}$ac_cv_build" >&6; }
2356 case $ac_cv_build in
2358 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2359 echo "$as_me: error: invalid value of canonical build" >&2;}
2360 { (exit 1); exit 1; }; };;
2363 ac_save_IFS=$IFS; IFS='-'
2369 # Remember, the first character of IFS is used to create $*,
2370 # except with old shells:
2373 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2376 { echo "$as_me:$LINENO: checking host system type" >&5
2377 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2378 if test "${ac_cv_host+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 if test "x$host_alias" = x; then
2382 ac_cv_host=$ac_cv_build
2384 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2385 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2386 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2387 { (exit 1); exit 1; }; }
2391 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2392 echo "${ECHO_T}$ac_cv_host" >&6; }
2395 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2396 echo "$as_me: error: invalid value of canonical host" >&2;}
2397 { (exit 1); exit 1; }; };;
2400 ac_save_IFS=$IFS; IFS='-'
2406 # Remember, the first character of IFS is used to create $*,
2407 # except with old shells:
2410 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2415 ac_cpp='$CPP $CPPFLAGS'
2416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419 if test -n "$ac_tool_prefix"; then
2420 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2421 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_CC+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 if test -n "$CC"; then
2428 ac_cv_prog_CC="$CC" # Let the user override the test.
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 if test -n "$CC"; then
2449 { echo "$as_me:$LINENO: result: $CC" >&5
2450 echo "${ECHO_T}$CC" >&6; }
2452 { echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6; }
2458 if test -z "$ac_cv_prog_CC"; then
2460 # Extract the first word of "gcc", so it can be a program name with args.
2461 set dummy gcc; ac_word=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 if test -n "$ac_ct_CC"; then
2468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 ac_cv_prog_ac_ct_CC="gcc"
2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2488 if test -n "$ac_ct_CC"; then
2489 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2490 echo "${ECHO_T}$ac_ct_CC" >&6; }
2492 { echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6; }
2496 if test "x$ac_ct_CC" = x; then
2499 case $cross_compiling:$ac_tool_warned in
2501 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2502 whose name does not start with the host triplet. If you think this
2503 configuration is useful to you, please write to autoconf@gnu.org." >&5
2504 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2505 whose name does not start with the host triplet. If you think this
2506 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2507 ac_tool_warned=yes ;;
2515 if test -z "$CC"; then
2516 if test -n "$ac_tool_prefix"; then
2517 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2518 set dummy ${ac_tool_prefix}cc; ac_word=$2
2519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2521 if test "${ac_cv_prog_CC+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 if test -n "$CC"; then
2525 ac_cv_prog_CC="$CC" # Let the user override the test.
2527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 test -z "$as_dir" && as_dir=.
2532 for ac_exec_ext in '' $ac_executable_extensions; do
2533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2534 ac_cv_prog_CC="${ac_tool_prefix}cc"
2535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 if test -n "$CC"; then
2546 { echo "$as_me:$LINENO: result: $CC" >&5
2547 echo "${ECHO_T}$CC" >&6; }
2549 { echo "$as_me:$LINENO: result: no" >&5
2550 echo "${ECHO_T}no" >&6; }
2556 if test -z "$CC"; then
2557 # Extract the first word of "cc", so it can be a program name with args.
2558 set dummy cc; ac_word=$2
2559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2561 if test "${ac_cv_prog_CC+set}" = set; then
2562 echo $ECHO_N "(cached) $ECHO_C" >&6
2564 if test -n "$CC"; then
2565 ac_cv_prog_CC="$CC" # Let the user override the test.
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2576 ac_prog_rejected=yes
2580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 if test $ac_prog_rejected = yes; then
2588 # We found a bogon in the path, so make sure we never use it.
2589 set dummy $ac_cv_prog_CC
2591 if test $# != 0; then
2592 # We chose a different compiler from the bogus one.
2593 # However, it has the same basename, so the bogon will be chosen
2594 # first if we set CC to just the basename; use the full file name.
2596 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2602 if test -n "$CC"; then
2603 { echo "$as_me:$LINENO: result: $CC" >&5
2604 echo "${ECHO_T}$CC" >&6; }
2606 { echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6; }
2612 if test -z "$CC"; then
2613 if test -n "$ac_tool_prefix"; then
2614 for ac_prog in cl.exe
2616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2620 if test "${ac_cv_prog_CC+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 if test -n "$CC"; then
2624 ac_cv_prog_CC="$CC" # Let the user override the test.
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 if test -n "$CC"; then
2645 { echo "$as_me:$LINENO: result: $CC" >&5
2646 echo "${ECHO_T}$CC" >&6; }
2648 { echo "$as_me:$LINENO: result: no" >&5
2649 echo "${ECHO_T}no" >&6; }
2653 test -n "$CC" && break
2656 if test -z "$CC"; then
2658 for ac_prog in cl.exe
2660 # Extract the first word of "$ac_prog", so it can be a program name with args.
2661 set dummy $ac_prog; ac_word=$2
2662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2667 if test -n "$ac_ct_CC"; then
2668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 test -z "$as_dir" && as_dir=.
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677 ac_cv_prog_ac_ct_CC="$ac_prog"
2678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2688 if test -n "$ac_ct_CC"; then
2689 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2690 echo "${ECHO_T}$ac_ct_CC" >&6; }
2692 { echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6; }
2697 test -n "$ac_ct_CC" && break
2700 if test "x$ac_ct_CC" = x; then
2703 case $cross_compiling:$ac_tool_warned in
2705 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2706 whose name does not start with the host triplet. If you think this
2707 configuration is useful to you, please write to autoconf@gnu.org." >&5
2708 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2709 whose name does not start with the host triplet. If you think this
2710 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2711 ac_tool_warned=yes ;;
2720 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2721 See \`config.log' for more details." >&5
2722 echo "$as_me: error: no acceptable C compiler found in \$PATH
2723 See \`config.log' for more details." >&2;}
2724 { (exit 1); exit 1; }; }
2726 # Provide some information about the compiler.
2727 echo "$as_me:$LINENO: checking for C compiler version" >&5
2728 ac_compiler=`set X $ac_compile; echo $2`
2729 { (ac_try="$ac_compiler --version >&5"
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_compiler --version >&5") 2>&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }
2739 { (ac_try="$ac_compiler -v >&5"
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_compiler -v >&5") 2>&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }
2749 { (ac_try="$ac_compiler -V >&5"
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_compiler -V >&5") 2>&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }
2760 cat >conftest.$ac_ext <<_ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2775 ac_clean_files_save=$ac_clean_files
2776 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2777 # Try to create an executable without -o first, disregard a.out.
2778 # It will help us diagnose broken compilers, and finding out an intuition
2780 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2781 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2782 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2784 # List of possible output files, starting from the most likely.
2785 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2786 # only as a last resort. b.out is created by i960 compilers.
2787 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2789 # The IRIX 6 linker writes into existing files which may not be
2790 # executable, retaining their permissions. Remove them first so a
2791 # subsequent execution test works.
2793 for ac_file in $ac_files
2796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2797 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2802 if { (ac_try="$ac_link_default"
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808 (eval "$ac_link_default") 2>&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); }; then
2812 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2813 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2814 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2815 # so that the user can short-circuit this test for compilers unknown to
2817 for ac_file in $ac_files ''
2819 test -f "$ac_file" || continue
2821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2824 # We found the default executable, but exeext='' is most
2828 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2830 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2832 # We set ac_cv_exeext here because the later test for it is not
2833 # safe: cross compilers may not add the suffix if given an `-o'
2834 # argument, so we may need to know it at that point already.
2835 # Even if this section looks crufty: it has the advantage of
2842 test "$ac_cv_exeext" = no && ac_cv_exeext=
2848 { echo "$as_me:$LINENO: result: $ac_file" >&5
2849 echo "${ECHO_T}$ac_file" >&6; }
2850 if test -z "$ac_file"; then
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2854 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: C compiler cannot create executables
2857 See \`config.log' for more details." >&2;}
2858 { (exit 77); exit 77; }; }
2861 ac_exeext=$ac_cv_exeext
2863 # Check that the compiler produces executables we can run. If not, either
2864 # the compiler is broken, or we cross compile.
2865 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2866 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2867 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2868 # If not cross compiling, check that we can run a simple program.
2869 if test "$cross_compiling" != yes; then
2870 if { ac_try='./$ac_file'
2871 { (case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_try") 2>&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; }; then
2882 if test "$cross_compiling" = maybe; then
2885 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2886 If you meant to cross compile, use \`--host'.
2887 See \`config.log' for more details." >&5
2888 echo "$as_me: error: cannot run C compiled programs.
2889 If you meant to cross compile, use \`--host'.
2890 See \`config.log' for more details." >&2;}
2891 { (exit 1); exit 1; }; }
2895 { echo "$as_me:$LINENO: result: yes" >&5
2896 echo "${ECHO_T}yes" >&6; }
2898 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2899 ac_clean_files=$ac_clean_files_save
2900 # Check that the compiler produces executables we can run. If not, either
2901 # the compiler is broken, or we cross compile.
2902 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2903 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2904 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2905 echo "${ECHO_T}$cross_compiling" >&6; }
2907 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2908 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2909 if { (ac_try="$ac_link"
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915 (eval "$ac_link") 2>&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; then
2919 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2920 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2921 # work properly (i.e., refer to `conftest.exe'), while it won't with
2923 for ac_file in conftest.exe conftest conftest.*; do
2924 test -f "$ac_file" || continue
2926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2927 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2933 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2934 See \`config.log' for more details." >&5
2935 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2936 See \`config.log' for more details." >&2;}
2937 { (exit 1); exit 1; }; }
2940 rm -f conftest$ac_cv_exeext
2941 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2942 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2944 rm -f conftest.$ac_ext
2945 EXEEXT=$ac_cv_exeext
2947 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2948 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2949 if test "${ac_cv_objext+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 cat >conftest.$ac_ext <<_ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2967 rm -f conftest.o conftest.obj
2968 if { (ac_try="$ac_compile"
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_compile") 2>&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; then
2978 for ac_file in conftest.o conftest.obj conftest.*; do
2979 test -f "$ac_file" || continue;
2981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2982 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2990 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2991 See \`config.log' for more details." >&5
2992 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2993 See \`config.log' for more details." >&2;}
2994 { (exit 1); exit 1; }; }
2997 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2999 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3000 echo "${ECHO_T}$ac_cv_objext" >&6; }
3001 OBJEXT=$ac_cv_objext
3003 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3004 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3005 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 cat >conftest.$ac_ext <<_ACEOF
3011 cat confdefs.h >>conftest.$ac_ext
3012 cat >>conftest.$ac_ext <<_ACEOF
3013 /* end confdefs.h. */
3026 rm -f conftest.$ac_objext
3027 if { (ac_try="$ac_compile"
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033 (eval "$ac_compile") 2>conftest.er1
3035 grep -v '^ *+' conftest.er1 >conftest.err
3037 cat conftest.err >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); } && {
3040 test -z "$ac_c_werror_flag" ||
3041 test ! -s conftest.err
3042 } && test -s conftest.$ac_objext; then
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3055 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3056 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3057 GCC=`test $ac_compiler_gnu = yes && echo yes`
3058 ac_test_CFLAGS=${CFLAGS+set}
3059 ac_save_CFLAGS=$CFLAGS
3060 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3061 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3062 if test "${ac_cv_prog_cc_g+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 ac_save_c_werror_flag=$ac_c_werror_flag
3066 ac_c_werror_flag=yes
3069 cat >conftest.$ac_ext <<_ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h. */
3084 rm -f conftest.$ac_objext
3085 if { (ac_try="$ac_compile"
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091 (eval "$ac_compile") 2>conftest.er1
3093 grep -v '^ *+' conftest.er1 >conftest.err
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } && {
3098 test -z "$ac_c_werror_flag" ||
3099 test ! -s conftest.err
3100 } && test -s conftest.$ac_objext; then
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3107 cat >conftest.$ac_ext <<_ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compile") 2>conftest.er1
3131 grep -v '^ *+' conftest.er1 >conftest.err
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } && {
3136 test -z "$ac_c_werror_flag" ||
3137 test ! -s conftest.err
3138 } && test -s conftest.$ac_objext; then
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3144 ac_c_werror_flag=$ac_save_c_werror_flag
3146 cat >conftest.$ac_ext <<_ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3161 rm -f conftest.$ac_objext
3162 if { (ac_try="$ac_compile"
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_compile") 2>conftest.er1
3170 grep -v '^ *+' conftest.er1 >conftest.err
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } && {
3175 test -z "$ac_c_werror_flag" ||
3176 test ! -s conftest.err
3177 } && test -s conftest.$ac_objext; then
3180 echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 ac_c_werror_flag=$ac_save_c_werror_flag
3195 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3196 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3197 if test "$ac_test_CFLAGS" = set; then
3198 CFLAGS=$ac_save_CFLAGS
3199 elif test $ac_cv_prog_cc_g = yes; then
3200 if test "$GCC" = yes; then
3206 if test "$GCC" = yes; then
3212 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3213 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3214 if test "${ac_cv_prog_cc_c89+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 ac_cv_prog_cc_c89=no
3219 cat >conftest.$ac_ext <<_ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3227 #include <sys/types.h>
3228 #include <sys/stat.h>
3229 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3230 struct buf { int x; };
3231 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3232 static char *e (p, i)
3238 static char *f (char * (*g) (char **, int), char **p, ...)
3243 s = g (p, va_arg (v,int));
3248 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3249 function prototypes and stuff, but not '\xHH' hex character constants.
3250 These don't provoke an error unfortunately, instead are silently treated
3251 as 'x'. The following induces an error, until -std is added to get
3252 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3253 array size at least. It's necessary to write '\x00'==0 to get something
3254 that's true only with -std. */
3255 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3257 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3258 inside strings and character constants. */
3260 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3262 int test (int i, double x);
3263 struct s1 {int (*f) (int a);};
3264 struct s2 {int (*f) (double a);};
3265 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3271 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3276 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3277 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3279 CC="$ac_save_CC $ac_arg"
3280 rm -f conftest.$ac_objext
3281 if { (ac_try="$ac_compile"
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287 (eval "$ac_compile") 2>conftest.er1
3289 grep -v '^ *+' conftest.er1 >conftest.err
3291 cat conftest.err >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } && {
3294 test -z "$ac_c_werror_flag" ||
3295 test ! -s conftest.err
3296 } && test -s conftest.$ac_objext; then
3297 ac_cv_prog_cc_c89=$ac_arg
3299 echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3305 rm -f core conftest.err conftest.$ac_objext
3306 test "x$ac_cv_prog_cc_c89" != "xno" && break
3308 rm -f conftest.$ac_ext
3313 case "x$ac_cv_prog_cc_c89" in
3315 { echo "$as_me:$LINENO: result: none needed" >&5
3316 echo "${ECHO_T}none needed" >&6; } ;;
3318 { echo "$as_me:$LINENO: result: unsupported" >&5
3319 echo "${ECHO_T}unsupported" >&6; } ;;
3321 CC="$CC $ac_cv_prog_cc_c89"
3322 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3323 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334 if test -z "$GCC"; then
3336 { echo "$as_me:$LINENO: checking how to request ANSI compilation" >&5
3337 echo $ECHO_N "checking how to request ANSI compilation... $ECHO_C" >&6; }
3340 { echo "$as_me:$LINENO: result: HPUX: adding -Ae" >&5
3341 echo "${ECHO_T}HPUX: adding -Ae" >&6; }
3345 { echo "$as_me:$LINENO: result: AIX: adding -qlanglvl=ansi -qhalt=e" >&5
3346 echo "${ECHO_T}AIX: adding -qlanglvl=ansi -qhalt=e" >&6; }
3347 CC="$CC -qlanglvl=ansi -qhalt=e"
3350 { echo "$as_me:$LINENO: result: DEC: adding -std1 -ieee" >&5
3351 echo "${ECHO_T}DEC: adding -std1 -ieee" >&6; }
3355 { echo "$as_me:$LINENO: result: no idea" >&5
3356 echo "${ECHO_T}no idea" >&6; }
3363 { echo "$as_me:$LINENO: result: Solaris: adding -D__EXTENSIONS__" >&5
3364 echo "${ECHO_T}Solaris: adding -D__EXTENSIONS__" >&6; }
3365 CC="$CC -D__EXTENSIONS__"
3372 { echo "$as_me:$LINENO: checking whether the compiler works on ANSI C" >&5
3373 echo $ECHO_N "checking whether the compiler works on ANSI C... $ECHO_C" >&6; }
3374 if test "$cross_compiling" = yes; then
3375 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
3376 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
3377 { (exit 1); exit 1; }; }
3379 cat >conftest.$ac_ext <<_ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h. */
3385 main(int ac, char **av) { return 0; }
3387 rm -f conftest$ac_exeext
3388 if { (ac_try="$ac_link"
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_link") 2>&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3398 { (case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_try") 2>&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }; }; then
3407 { echo "$as_me:$LINENO: result: yes" >&5
3408 echo "${ECHO_T}yes" >&6; }
3410 echo "$as_me: program exited with status $ac_status" >&5
3411 echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3415 { echo "$as_me:$LINENO: result: no" >&5
3416 echo "${ECHO_T}no" >&6; }
3417 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
3418 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
3419 { (exit 1); exit 1; }; }
3421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3426 if test -n "$GCC"; then
3427 { echo "$as_me:$LINENO: result: Turning on gcc compiler warnings." >&5
3428 echo "${ECHO_T}Turning on gcc compiler warnings." >&6; }
3429 CC="$CC -pedantic -Wall -Wstrict-prototypes -Wnested-externs -Wmissing-prototypes"
3430 OBJCC="$OBJCC -Wall"
3431 # As of gcc 3.4, we have "-Wdeclaration-after-statement"
3432 # and so perhaps now we can do without -pedantic?
3435 *-irix5* |*-irix6.0-3* )
3436 { echo "$as_me:$LINENO: result: Turning on SGI compiler warnings." >&5
3437 echo "${ECHO_T}Turning on SGI compiler warnings." >&6; }
3438 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
3441 # if test -z "$GCC"; then
3442 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
3443 # CC="$CC -migrate -w0 -verbose -warnprotos"
3449 if test -n "$GCC"; then
3450 { echo "$as_me:$LINENO: checking whether gcc accepts -Wno-overlength-strings" >&5
3451 echo $ECHO_N "checking whether gcc accepts -Wno-overlength-strings... $ECHO_C" >&6; }
3452 if test "${ac_cv_gcc_accepts_no_overlength+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 rm -rf conftest.$ac_ext
3456 touch conftest.$ac_ext
3457 if ( ( gcc -c -Wno-overlength-strings conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3458 grep unrecognized >/dev/null ); then
3459 ac_cv_gcc_accepts_no_overlength=no
3461 ac_cv_gcc_accepts_no_overlength=yes
3462 CC="$CC -Wno-overlength-strings"
3465 { echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_overlength" >&5
3466 echo "${ECHO_T}$ac_cv_gcc_accepts_no_overlength" >&6; }
3467 ac_gcc_accepts_no_overlength="$ac_cv_gcc_accepts_no_overlength"
3470 if test -n "$GCC"; then
3471 { echo "$as_me:$LINENO: checking whether gcc accepts -Wdeclaration-after-statement" >&5
3472 echo $ECHO_N "checking whether gcc accepts -Wdeclaration-after-statement... $ECHO_C" >&6; }
3473 if test "${ac_cv_gcc_accepts_no_decl_after+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 rm -rf conftest.$ac_ext
3477 touch conftest.$ac_ext
3478 if ( ( gcc -c -Wdeclaration-after-statement conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3479 grep unrecognized >/dev/null ); then
3480 ac_cv_gcc_accepts_no_decl_after=no
3482 ac_cv_gcc_accepts_no_decl_after=yes
3483 CC="$CC -Wdeclaration-after-statement"
3486 { echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_decl_after" >&5
3487 echo "${ECHO_T}$ac_cv_gcc_accepts_no_decl_after" >&6; }
3488 ac_gcc_accepts_no_decl_after="$ac_cv_gcc_accepts_no_decl_after"
3491 if test -n "$GCC"; then
3492 { echo "$as_me:$LINENO: checking whether gcc accepts -no-cpp-precomp" >&5
3493 echo $ECHO_N "checking whether gcc accepts -no-cpp-precomp... $ECHO_C" >&6; }
3494 if test "${ac_cv_gcc_accepts_no_cpp_precomp+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 rm -rf conftest.$ac_ext
3498 touch conftest.$ac_ext
3499 if ( ( gcc -c -no-cpp-precomp conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3500 grep unrecognized >/dev/null ); then
3501 ac_cv_gcc_accepts_no_cpp_precomp=no
3503 ac_cv_gcc_accepts_no_cpp_precomp=yes
3504 CC="$CC -no-cpp-precomp"
3507 { echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_cpp_precomp" >&5
3508 echo "${ECHO_T}$ac_cv_gcc_accepts_no_cpp_precomp" >&6; }
3509 ac_gcc_accepts_no_cpp_precomp="$ac_cv_gcc_accepts_no_cpp_precomp"
3512 if test -n "$GCC"; then
3516 # Fucking Apple let // comments sneak into OpenGL headers, so
3517 # we *must* allow // comments when compiling on Mac OS 10.6! FUCK!
3520 if test -n "$GCC"; then
3521 { echo "$as_me:$LINENO: checking whether gcc accepts -std=c89" >&5
3522 echo $ECHO_N "checking whether gcc accepts -std=c89... $ECHO_C" >&6; }
3523 if test "${ac_cv_gcc_accepts_std+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 rm -rf conftest.$ac_ext
3527 touch conftest.$ac_ext
3528 if ( ( gcc -c -std=c89 conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3529 grep unrecognized >/dev/null ); then
3530 ac_cv_gcc_accepts_std=no
3532 ac_cv_gcc_accepts_std=yes
3536 { echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_std" >&5
3537 echo "${ECHO_T}$ac_cv_gcc_accepts_std" >&6; }
3538 ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
3544 { echo "$as_me:$LINENO: result: Disabling C++ comments in ANSI C code." >&5
3545 echo "${ECHO_T}Disabling C++ comments in ANSI C code." >&6; }
3547 # The reason that // comments are banned from xscreensaver is that gcc is
3548 # basically the only compiler in the world that supports them in C code.
3549 # All other vendors support them only in their C++ compilers, not in their
3550 # ANSI C compilers. This means that it's a portability problem: every time
3551 # these comments have snuck into the xscreensaver source code, I've gotten
3552 # complaints about it the next day. So we turn off support for them in gcc
3553 # as well to prevent them from accidentially slipping in.
3555 if test "$ac_gcc_accepts_std" = yes ; then
3557 # -std=c89 defines __STRICT_ANSI__, which we don't want.
3558 # (That appears to be the only additional preprocessor symbol
3559 # it defines, in addition to the syntax changes it makes.)
3561 # -std=gnu89 is no good, because // comments were a GNU extension
3562 # before they were in the ANSI C 99 spec... (gcc 2.96 permits //
3563 # with -std=gnu89 but not with -std=c89.)
3565 # $CC already contains "-std=c89" via AC_GCC_ACCEPTS_STD
3566 CC="$CC -U__STRICT_ANSI__"
3569 # CC="$CC -Wp,-lang-c89"
3574 ac_cpp='$CPP $CPPFLAGS'
3575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3578 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3579 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3580 # On Suns, sometimes $CPP names a directory.
3581 if test -n "$CPP" && test -d "$CPP"; then
3584 if test -z "$CPP"; then
3585 if test "${ac_cv_prog_CPP+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 # Double quotes because CPP needs to be expanded
3589 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3592 for ac_c_preproc_warn_flag in '' yes
3594 # Use a header file that comes with gcc, so configuring glibc
3595 # with a fresh cross-compiler works.
3596 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3597 # <limits.h> exists even on freestanding compilers.
3598 # On the NeXT, cc -E runs the code through the compiler's parser,
3599 # not just through cpp. "Syntax error" is here to catch this case.
3600 cat >conftest.$ac_ext <<_ACEOF
3603 cat confdefs.h >>conftest.$ac_ext
3604 cat >>conftest.$ac_ext <<_ACEOF
3605 /* end confdefs.h. */
3607 # include <limits.h>
3609 # include <assert.h>
3613 if { (ac_try="$ac_cpp conftest.$ac_ext"
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3621 grep -v '^ *+' conftest.er1 >conftest.err
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } >/dev/null && {
3626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3627 test ! -s conftest.err
3631 echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3634 # Broken: fails on valid input.
3638 rm -f conftest.err conftest.$ac_ext
3640 # OK, works on sane cases. Now check whether nonexistent headers
3641 # can be detected and how.
3642 cat >conftest.$ac_ext <<_ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3648 #include <ac_nonexistent.h>
3650 if { (ac_try="$ac_cpp conftest.$ac_ext"
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3658 grep -v '^ *+' conftest.er1 >conftest.err
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } >/dev/null && {
3663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3664 test ! -s conftest.err
3666 # Broken: success on invalid input.
3669 echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3672 # Passes both tests.
3677 rm -f conftest.err conftest.$ac_ext
3680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3681 rm -f conftest.err conftest.$ac_ext
3682 if $ac_preproc_ok; then
3694 { echo "$as_me:$LINENO: result: $CPP" >&5
3695 echo "${ECHO_T}$CPP" >&6; }
3697 for ac_c_preproc_warn_flag in '' yes
3699 # Use a header file that comes with gcc, so configuring glibc
3700 # with a fresh cross-compiler works.
3701 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3702 # <limits.h> exists even on freestanding compilers.
3703 # On the NeXT, cc -E runs the code through the compiler's parser,
3704 # not just through cpp. "Syntax error" is here to catch this case.
3705 cat >conftest.$ac_ext <<_ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3712 # include <limits.h>
3714 # include <assert.h>
3718 if { (ac_try="$ac_cpp conftest.$ac_ext"
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3726 grep -v '^ *+' conftest.er1 >conftest.err
3728 cat conftest.err >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } >/dev/null && {
3731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3732 test ! -s conftest.err
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 # Broken: fails on valid input.
3743 rm -f conftest.err conftest.$ac_ext
3745 # OK, works on sane cases. Now check whether nonexistent headers
3746 # can be detected and how.
3747 cat >conftest.$ac_ext <<_ACEOF
3750 cat confdefs.h >>conftest.$ac_ext
3751 cat >>conftest.$ac_ext <<_ACEOF
3752 /* end confdefs.h. */
3753 #include <ac_nonexistent.h>
3755 if { (ac_try="$ac_cpp conftest.$ac_ext"
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3763 grep -v '^ *+' conftest.er1 >conftest.err
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } >/dev/null && {
3768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3769 test ! -s conftest.err
3771 # Broken: success on invalid input.
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3777 # Passes both tests.
3782 rm -f conftest.err conftest.$ac_ext
3785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3786 rm -f conftest.err conftest.$ac_ext
3787 if $ac_preproc_ok; then
3790 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3791 See \`config.log' for more details." >&5
3792 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3793 See \`config.log' for more details." >&2;}
3794 { (exit 1); exit 1; }; }
3798 ac_cpp='$CPP $CPPFLAGS'
3799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3804 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3805 if test "${ac_cv_c_const+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 cat >conftest.$ac_ext <<_ACEOF
3811 cat confdefs.h >>conftest.$ac_ext
3812 cat >>conftest.$ac_ext <<_ACEOF
3813 /* end confdefs.h. */
3818 /* FIXME: Include the comments suggested by Paul. */
3820 /* Ultrix mips cc rejects this. */
3821 typedef int charset[2];
3823 /* SunOS 4.1.1 cc rejects this. */
3824 char const *const *pcpcc;
3826 /* NEC SVR4.0.2 mips cc rejects this. */
3827 struct point {int x, y;};
3828 static struct point const zero = {0,0};
3829 /* AIX XL C 1.02.0.0 rejects this.
3830 It does not let you subtract one const X* pointer from another in
3831 an arm of an if-expression whose if-part is not a constant
3833 const char *g = "string";
3834 pcpcc = &g + (g ? g-g : 0);
3835 /* HPUX 7.0 cc rejects these. */
3837 ppc = (char**) pcpcc;
3838 pcpcc = (char const *const *) ppc;
3839 { /* SCO 3.2v4 cc rejects this. */
3841 char const *s = 0 ? (char *) 0 : (char const *) 0;
3846 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3848 const int *foo = &x[0];
3851 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3852 typedef const int *iptr;
3856 { /* AIX XL C 1.02.0.0 rejects this saying
3857 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3858 struct s { int j; const int *ap[3]; };
3859 struct s *b; b->j = 5;
3861 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3865 return !cs[0] && !zero.x;
3872 rm -f conftest.$ac_objext
3873 if { (ac_try="$ac_compile"
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_compile") 2>conftest.er1
3881 grep -v '^ *+' conftest.er1 >conftest.err
3883 cat conftest.err >&5
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); } && {
3886 test -z "$ac_c_werror_flag" ||
3887 test ! -s conftest.err
3888 } && test -s conftest.$ac_objext; then
3891 echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3900 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3901 if test $ac_cv_c_const = no; then
3903 cat >>confdefs.h <<\_ACEOF
3909 { echo "$as_me:$LINENO: checking for inline" >&5
3910 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3911 if test "${ac_cv_c_inline+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 for ac_kw in inline __inline__ __inline; do
3916 cat >conftest.$ac_ext <<_ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h. */
3924 static $ac_kw foo_t static_foo () {return 0; }
3925 $ac_kw foo_t foo () {return 0; }
3929 rm -f conftest.$ac_objext
3930 if { (ac_try="$ac_compile"
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3936 (eval "$ac_compile") 2>conftest.er1
3938 grep -v '^ *+' conftest.er1 >conftest.err
3940 cat conftest.err >&5
3941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); } && {
3943 test -z "$ac_c_werror_flag" ||
3944 test ! -s conftest.err
3945 } && test -s conftest.$ac_objext; then
3946 ac_cv_c_inline=$ac_kw
3948 echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 test "$ac_cv_c_inline" != no && break
3959 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3960 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3963 case $ac_cv_c_inline in
3966 case $ac_cv_c_inline in
3968 *) ac_val=$ac_cv_c_inline;;
3970 cat >>confdefs.h <<_ACEOF
3972 #define inline $ac_val
3979 ac_bc_result=`echo 6+9 | bc 2>/dev/null`
3980 { echo "$as_me:$LINENO: checking for bc" >&5
3981 echo $ECHO_N "checking for bc... $ECHO_C" >&6; }
3982 if test "$ac_bc_result" = "15" ; then
3983 { echo "$as_me:$LINENO: result: yes" >&5
3984 echo "${ECHO_T}yes" >&6; }
3986 { echo "$as_me:$LINENO: result: no" >&5
3987 echo "${ECHO_T}no" >&6; }
3989 { { echo "$as_me:$LINENO: error: Your system doesn't have \"bc\", which has been a standard
3990 part of Unix since the 1970s. Come back when your vendor
3991 has grown a clue." >&5
3992 echo "$as_me: error: Your system doesn't have \"bc\", which has been a standard
3993 part of Unix since the 1970s. Come back when your vendor
3994 has grown a clue." >&2;}
3995 { (exit 1); exit 1; }; }
3999 # stuff for Makefiles
4000 # Find a good install program. We prefer a C program (faster),
4001 # so one script is as good as another. But avoid the broken or
4002 # incompatible versions:
4003 # SysV /etc/install, /usr/sbin/install
4004 # SunOS /usr/etc/install
4005 # IRIX /sbin/install
4007 # AmigaOS /C/install, which installs bootblocks on floppy discs
4008 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4009 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4010 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4011 # OS/2's system install, which has a completely different semantic
4012 # ./install, which can be erroneously created by make from ./install.sh.
4013 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4014 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4015 if test -z "$INSTALL"; then
4016 if test "${ac_cv_path_install+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 test -z "$as_dir" && as_dir=.
4024 # Account for people who put trailing slashes in PATH elements.
4026 ./ | .// | /cC/* | \
4027 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4028 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4031 # OSF1 and SCO ODT 3.0 have their own names for install.
4032 # Don't use installbsd from OSF since it installs stuff as root
4034 for ac_prog in ginstall scoinst install; do
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4037 if test $ac_prog = install &&
4038 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4039 # AIX install. It has an incompatible calling convention.
4041 elif test $ac_prog = install &&
4042 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4043 # program-specific install script used by HP pwplus--don't use.
4046 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4059 if test "${ac_cv_path_install+set}" = set; then
4060 INSTALL=$ac_cv_path_install
4062 # As a last resort, use the slow shell script. Don't cache a
4063 # value for INSTALL within a source directory, because that will
4064 # break other packages using the cache if that directory is
4065 # removed, or if the value is a relative name.
4066 INSTALL=$ac_install_sh
4069 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4070 echo "${ECHO_T}$INSTALL" >&6; }
4072 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4073 # It thinks the first close brace ends the variable substitution.
4074 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4076 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4078 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4080 { echo "$as_me:$LINENO: checking whether \"\${INSTALL} -d\" creates intermediate directories" >&5
4081 echo $ECHO_N "checking whether \"\${INSTALL} -d\" creates intermediate directories... $ECHO_C" >&6; }
4082 if test "${ac_cv_install_d_creates_dirs+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 ac_cv_install_d_creates_dirs=no
4087 if mkdir conftestdir; then
4088 cd conftestdir 2>/dev/null
4089 ${INSTALL} -d `pwd`/dir1/dir2 >/dev/null 2>&1
4090 if test -d dir1/dir2/. ; then
4091 ac_cv_install_d_creates_dirs=yes
4098 { echo "$as_me:$LINENO: result: $ac_cv_install_d_creates_dirs" >&5
4099 echo "${ECHO_T}$ac_cv_install_d_creates_dirs" >&6; }
4101 if test "$ac_cv_install_d_creates_dirs" = no ; then
4102 { echo "$as_me:$LINENO: checking whether \"mkdir -p\" creates intermediate directories" >&5
4103 echo $ECHO_N "checking whether \"mkdir -p\" creates intermediate directories... $ECHO_C" >&6; }
4104 if test "${ac_cv_mkdir_p_creates_dirs+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 ac_cv_mkdir_p_creates_dirs=no
4109 if mkdir conftestdir; then
4110 cd conftestdir 2>/dev/null
4111 mkdir -p dir1/dir2 >/dev/null 2>&1
4112 if test -d dir1/dir2/. ; then
4113 ac_cv_mkdir_p_creates_dirs=yes
4120 { echo "$as_me:$LINENO: result: $ac_cv_mkdir_p_creates_dirs" >&5
4121 echo "${ECHO_T}$ac_cv_mkdir_p_creates_dirs" >&6; }
4124 if test "$ac_cv_install_d_creates_dirs" = yes ; then
4125 INSTALL_DIRS='${INSTALL} -d'
4126 elif test "$ac_cv_mkdir_p_creates_dirs" = yes ; then
4127 INSTALL_DIRS='mkdir -p'
4130 INSTALL_DIRS='${INSTALL} -d'
4133 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4134 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4135 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4136 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 cat >conftest.make <<\_ACEOF
4142 @echo '@@@%%%=$(MAKE)=@@@%%%'
4144 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4145 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4147 eval ac_cv_prog_make_${ac_make}_set=yes;;
4149 eval ac_cv_prog_make_${ac_make}_set=no;;
4153 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4154 { echo "$as_me:$LINENO: result: yes" >&5
4155 echo "${ECHO_T}yes" >&6; }
4158 { echo "$as_me:$LINENO: result: no" >&5
4159 echo "${ECHO_T}no" >&6; }
4160 SET_MAKE="MAKE=${MAKE-make}"
4164 # By default, autoconf sets INSTALL_SCRIPT to '${INSTALL_PROGRAM}'.
4165 # That's wrong: it should be set to '${INSTALL}', so that one can
4166 # implement the "install-strip" target properly (strip executables,
4167 # but do not try to strip scripts.)
4169 INSTALL_SCRIPT='${INSTALL}'
4173 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4174 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4175 if test "${ac_cv_path_GREP+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 # Extract the first word of "grep ggrep" to use in msg output
4179 if test -z "$GREP"; then
4180 set dummy grep ggrep; ac_prog_name=$2
4181 if test "${ac_cv_path_GREP+set}" = set; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4184 ac_path_GREP_found=false
4185 # Loop through the user's path and test for each of PROGNAME-LIST
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4190 test -z "$as_dir" && as_dir=.
4191 for ac_prog in grep ggrep; do
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4194 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4195 # Check for GNU ac_path_GREP and select it if it is found.
4196 # Check for GNU $ac_path_GREP
4197 case `"$ac_path_GREP" --version 2>&1` in
4199 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4202 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4205 cat "conftest.in" "conftest.in" >"conftest.tmp"
4206 mv "conftest.tmp" "conftest.in"
4207 cp "conftest.in" "conftest.nl"
4208 echo 'GREP' >> "conftest.nl"
4209 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4211 ac_count=`expr $ac_count + 1`
4212 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4213 # Best one so far, save it but keep looking for a better one
4214 ac_cv_path_GREP="$ac_path_GREP"
4215 ac_path_GREP_max=$ac_count
4217 # 10*(2^10) chars as input seems more than enough
4218 test $ac_count -gt 10 && break
4220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4224 $ac_path_GREP_found && break 3
4234 GREP="$ac_cv_path_GREP"
4235 if test -z "$GREP"; then
4236 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4237 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4238 { (exit 1); exit 1; }; }
4242 ac_cv_path_GREP=$GREP
4247 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4248 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4249 GREP="$ac_cv_path_GREP"
4252 { echo "$as_me:$LINENO: checking for egrep" >&5
4253 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4254 if test "${ac_cv_path_EGREP+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4258 then ac_cv_path_EGREP="$GREP -E"
4260 # Extract the first word of "egrep" to use in msg output
4261 if test -z "$EGREP"; then
4262 set dummy egrep; ac_prog_name=$2
4263 if test "${ac_cv_path_EGREP+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 ac_path_EGREP_found=false
4267 # Loop through the user's path and test for each of PROGNAME-LIST
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4272 test -z "$as_dir" && as_dir=.
4273 for ac_prog in egrep; do
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4276 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4277 # Check for GNU ac_path_EGREP and select it if it is found.
4278 # Check for GNU $ac_path_EGREP
4279 case `"$ac_path_EGREP" --version 2>&1` in
4281 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4284 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4287 cat "conftest.in" "conftest.in" >"conftest.tmp"
4288 mv "conftest.tmp" "conftest.in"
4289 cp "conftest.in" "conftest.nl"
4290 echo 'EGREP' >> "conftest.nl"
4291 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4292 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4293 ac_count=`expr $ac_count + 1`
4294 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4295 # Best one so far, save it but keep looking for a better one
4296 ac_cv_path_EGREP="$ac_path_EGREP"
4297 ac_path_EGREP_max=$ac_count
4299 # 10*(2^10) chars as input seems more than enough
4300 test $ac_count -gt 10 && break
4302 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4306 $ac_path_EGREP_found && break 3
4316 EGREP="$ac_cv_path_EGREP"
4317 if test -z "$EGREP"; then
4318 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4319 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4320 { (exit 1); exit 1; }; }
4324 ac_cv_path_EGREP=$EGREP
4330 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4331 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4332 EGREP="$ac_cv_path_EGREP"
4335 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4336 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4337 if test "${ac_cv_header_stdc+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 cat >conftest.$ac_ext <<_ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4359 rm -f conftest.$ac_objext
4360 if { (ac_try="$ac_compile"
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_compile") 2>conftest.er1
4368 grep -v '^ *+' conftest.er1 >conftest.err
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } && {
4373 test -z "$ac_c_werror_flag" ||
4374 test ! -s conftest.err
4375 } && test -s conftest.$ac_objext; then
4376 ac_cv_header_stdc=yes
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4381 ac_cv_header_stdc=no
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 if test $ac_cv_header_stdc = yes; then
4387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4388 cat >conftest.$ac_ext <<_ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4398 $EGREP "memchr" >/dev/null 2>&1; then
4401 ac_cv_header_stdc=no
4407 if test $ac_cv_header_stdc = yes; then
4408 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4409 cat >conftest.$ac_ext <<_ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4419 $EGREP "free" >/dev/null 2>&1; then
4422 ac_cv_header_stdc=no
4428 if test $ac_cv_header_stdc = yes; then
4429 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4430 if test "$cross_compiling" = yes; then
4433 cat >conftest.$ac_ext <<_ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4441 #if ((' ' & 0x0FF) == 0x020)
4442 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4443 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4445 # define ISLOWER(c) \
4446 (('a' <= (c) && (c) <= 'i') \
4447 || ('j' <= (c) && (c) <= 'r') \
4448 || ('s' <= (c) && (c) <= 'z'))
4449 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4452 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4457 for (i = 0; i < 256; i++)
4458 if (XOR (islower (i), ISLOWER (i))
4459 || toupper (i) != TOUPPER (i))
4464 rm -f conftest$ac_exeext
4465 if { (ac_try="$ac_link"
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471 (eval "$ac_link") 2>&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4475 { (case "(($ac_try" in
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4480 (eval "$ac_try") 2>&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4486 echo "$as_me: program exited with status $ac_status" >&5
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4491 ac_cv_header_stdc=no
4493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4499 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4500 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4501 if test $ac_cv_header_stdc = yes; then
4503 cat >>confdefs.h <<\_ACEOF
4504 #define STDC_HEADERS 1
4509 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4519 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4520 inttypes.h stdint.h unistd.h
4522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 cat >conftest.$ac_ext <<_ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h. */
4534 $ac_includes_default
4536 #include <$ac_header>
4538 rm -f conftest.$ac_objext
4539 if { (ac_try="$ac_compile"
4541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542 *) ac_try_echo=$ac_try;;
4544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4545 (eval "$ac_compile") 2>conftest.er1
4547 grep -v '^ *+' conftest.er1 >conftest.err
4549 cat conftest.err >&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } && {
4552 test -z "$ac_c_werror_flag" ||
4553 test ! -s conftest.err
4554 } && test -s conftest.$ac_objext; then
4555 eval "$as_ac_Header=yes"
4557 echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.$ac_ext >&5
4560 eval "$as_ac_Header=no"
4563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565 ac_res=`eval echo '${'$as_ac_Header'}'`
4566 { echo "$as_me:$LINENO: result: $ac_res" >&5
4567 echo "${ECHO_T}$ac_res" >&6; }
4568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4569 cat >>confdefs.h <<_ACEOF
4570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4579 for ac_header in unistd.h
4581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 ac_res=`eval echo '${'$as_ac_Header'}'`
4589 { echo "$as_me:$LINENO: result: $ac_res" >&5
4590 echo "${ECHO_T}$ac_res" >&6; }
4592 # Is the header compilable?
4593 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4595 cat >conftest.$ac_ext <<_ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 $ac_includes_default
4602 #include <$ac_header>
4604 rm -f conftest.$ac_objext
4605 if { (ac_try="$ac_compile"
4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_compile") 2>conftest.er1
4613 grep -v '^ *+' conftest.er1 >conftest.err
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } && {
4618 test -z "$ac_c_werror_flag" ||
4619 test ! -s conftest.err
4620 } && test -s conftest.$ac_objext; then
4621 ac_header_compiler=yes
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4626 ac_header_compiler=no
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4631 echo "${ECHO_T}$ac_header_compiler" >&6; }
4633 # Is the header present?
4634 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4635 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4636 cat >conftest.$ac_ext <<_ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4642 #include <$ac_header>
4644 if { (ac_try="$ac_cpp conftest.$ac_ext"
4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647 *) ac_try_echo=$ac_try;;
4649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4652 grep -v '^ *+' conftest.er1 >conftest.err
4654 cat conftest.err >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } >/dev/null && {
4657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4658 test ! -s conftest.err
4660 ac_header_preproc=yes
4662 echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4665 ac_header_preproc=no
4668 rm -f conftest.err conftest.$ac_ext
4669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4670 echo "${ECHO_T}$ac_header_preproc" >&6; }
4672 # So? What about this header?
4673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4675 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4679 ac_header_preproc=yes
4682 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4684 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4685 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4686 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4688 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4689 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4692 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 eval "$as_ac_Header=\$ac_header_preproc"
4704 ac_res=`eval echo '${'$as_ac_Header'}'`
4705 { echo "$as_me:$LINENO: result: $ac_res" >&5
4706 echo "${ECHO_T}$ac_res" >&6; }
4709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4710 cat >>confdefs.h <<_ACEOF
4711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4718 { echo "$as_me:$LINENO: checking for mode_t" >&5
4719 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
4720 if test "${ac_cv_type_mode_t+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 cat >conftest.$ac_ext <<_ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4729 $ac_includes_default
4730 typedef mode_t ac__type_new_;
4734 if ((ac__type_new_ *) 0)
4736 if (sizeof (ac__type_new_))
4742 rm -f conftest.$ac_objext
4743 if { (ac_try="$ac_compile"
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4749 (eval "$ac_compile") 2>conftest.er1
4751 grep -v '^ *+' conftest.er1 >conftest.err
4753 cat conftest.err >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } && {
4756 test -z "$ac_c_werror_flag" ||
4757 test ! -s conftest.err
4758 } && test -s conftest.$ac_objext; then
4759 ac_cv_type_mode_t=yes
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4764 ac_cv_type_mode_t=no
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4770 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
4771 if test $ac_cv_type_mode_t = yes; then
4775 cat >>confdefs.h <<_ACEOF
4781 { echo "$as_me:$LINENO: checking for pid_t" >&5
4782 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
4783 if test "${ac_cv_type_pid_t+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 cat >conftest.$ac_ext <<_ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 $ac_includes_default
4793 typedef pid_t ac__type_new_;
4797 if ((ac__type_new_ *) 0)
4799 if (sizeof (ac__type_new_))
4805 rm -f conftest.$ac_objext
4806 if { (ac_try="$ac_compile"
4808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4809 *) ac_try_echo=$ac_try;;
4811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4812 (eval "$ac_compile") 2>conftest.er1
4814 grep -v '^ *+' conftest.er1 >conftest.err
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } && {
4819 test -z "$ac_c_werror_flag" ||
4820 test ! -s conftest.err
4821 } && test -s conftest.$ac_objext; then
4822 ac_cv_type_pid_t=yes
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4833 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
4834 if test $ac_cv_type_pid_t = yes; then
4838 cat >>confdefs.h <<_ACEOF
4844 { echo "$as_me:$LINENO: checking for size_t" >&5
4845 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4846 if test "${ac_cv_type_size_t+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 cat >conftest.$ac_ext <<_ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4855 $ac_includes_default
4856 typedef size_t ac__type_new_;
4860 if ((ac__type_new_ *) 0)
4862 if (sizeof (ac__type_new_))
4868 rm -f conftest.$ac_objext
4869 if { (ac_try="$ac_compile"
4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4875 (eval "$ac_compile") 2>conftest.er1
4877 grep -v '^ *+' conftest.er1 >conftest.err
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } && {
4882 test -z "$ac_c_werror_flag" ||
4883 test ! -s conftest.err
4884 } && test -s conftest.$ac_objext; then
4885 ac_cv_type_size_t=yes
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4890 ac_cv_type_size_t=no
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4896 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4897 if test $ac_cv_type_size_t = yes; then
4901 cat >>confdefs.h <<_ACEOF
4902 #define size_t unsigned int
4907 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4908 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
4909 if test "${ac_cv_type_signal+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 cat >conftest.$ac_ext <<_ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4918 #include <sys/types.h>
4924 return *(signal (0, 0)) (0) == 1;
4929 rm -f conftest.$ac_objext
4930 if { (ac_try="$ac_compile"
4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4936 (eval "$ac_compile") 2>conftest.er1
4938 grep -v '^ *+' conftest.er1 >conftest.err
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } && {
4943 test -z "$ac_c_werror_flag" ||
4944 test ! -s conftest.err
4945 } && test -s conftest.$ac_objext; then
4946 ac_cv_type_signal=int
4948 echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4951 ac_cv_type_signal=void
4954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4956 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4957 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
4959 cat >>confdefs.h <<_ACEOF
4960 #define RETSIGTYPE $ac_cv_type_signal
4964 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4965 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4966 if test "${ac_cv_header_time+set}" = set; then
4967 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 cat >conftest.$ac_ext <<_ACEOF
4972 cat confdefs.h >>conftest.$ac_ext
4973 cat >>conftest.$ac_ext <<_ACEOF
4974 /* end confdefs.h. */
4975 #include <sys/types.h>
4976 #include <sys/time.h>
4982 if ((struct tm *) 0)
4988 rm -f conftest.$ac_objext
4989 if { (ac_try="$ac_compile"
4991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992 *) ac_try_echo=$ac_try;;
4994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4995 (eval "$ac_compile") 2>conftest.er1
4997 grep -v '^ *+' conftest.er1 >conftest.err
4999 cat conftest.err >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); } && {
5002 test -z "$ac_c_werror_flag" ||
5003 test ! -s conftest.err
5004 } && test -s conftest.$ac_objext; then
5005 ac_cv_header_time=yes
5007 echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5010 ac_cv_header_time=no
5013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5016 echo "${ECHO_T}$ac_cv_header_time" >&6; }
5017 if test $ac_cv_header_time = yes; then
5019 cat >>confdefs.h <<\_ACEOF
5020 #define TIME_WITH_SYS_TIME 1
5025 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5026 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
5027 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 cat >conftest.$ac_ext <<_ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5036 #include <sys/types.h>
5037 #include <sys/wait.h>
5039 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5042 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5050 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5055 rm -f conftest.$ac_objext
5056 if { (ac_try="$ac_compile"
5058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059 *) ac_try_echo=$ac_try;;
5061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062 (eval "$ac_compile") 2>conftest.er1
5064 grep -v '^ *+' conftest.er1 >conftest.err
5066 cat conftest.err >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } && {
5069 test -z "$ac_c_werror_flag" ||
5070 test ! -s conftest.err
5071 } && test -s conftest.$ac_objext; then
5072 ac_cv_header_sys_wait_h=yes
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5077 ac_cv_header_sys_wait_h=no
5080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5083 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
5084 if test $ac_cv_header_sys_wait_h = yes; then
5086 cat >>confdefs.h <<\_ACEOF
5087 #define HAVE_SYS_WAIT_H 1
5098 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5099 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5100 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5101 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 cat >conftest.$ac_ext <<_ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5111 #include <sys/types.h>
5123 rm -f conftest.$ac_objext
5124 if { (ac_try="$ac_compile"
5126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5127 *) ac_try_echo=$ac_try;;
5129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5130 (eval "$ac_compile") 2>conftest.er1
5132 grep -v '^ *+' conftest.er1 >conftest.err
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } && {
5137 test -z "$ac_c_werror_flag" ||
5138 test ! -s conftest.err
5139 } && test -s conftest.$ac_objext; then
5140 eval "$as_ac_Header=yes"
5142 echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5145 eval "$as_ac_Header=no"
5148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 ac_res=`eval echo '${'$as_ac_Header'}'`
5151 { echo "$as_me:$LINENO: result: $ac_res" >&5
5152 echo "${ECHO_T}$ac_res" >&6; }
5153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5154 cat >>confdefs.h <<_ACEOF
5155 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5158 ac_header_dirent=$ac_hdr; break
5162 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5163 if test $ac_header_dirent = dirent.h; then
5164 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5165 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5166 if test "${ac_cv_search_opendir+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 ac_func_search_save_LIBS=$LIBS
5170 cat >conftest.$ac_ext <<_ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5177 /* Override any GCC internal prototype to avoid an error.
5178 Use char because int might match the return type of a GCC
5179 builtin and then its argument prototype would still apply. */
5192 for ac_lib in '' dir; do
5193 if test -z "$ac_lib"; then
5194 ac_res="none required"
5197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5199 rm -f conftest.$ac_objext conftest$ac_exeext
5200 if { (ac_try="$ac_link"
5202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5203 *) ac_try_echo=$ac_try;;
5205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5206 (eval "$ac_link") 2>conftest.er1
5208 grep -v '^ *+' conftest.er1 >conftest.err
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } && {
5213 test -z "$ac_c_werror_flag" ||
5214 test ! -s conftest.err
5215 } && test -s conftest$ac_exeext &&
5216 $as_test_x conftest$ac_exeext; then
5217 ac_cv_search_opendir=$ac_res
5219 echo "$as_me: failed program was:" >&5
5220 sed 's/^/| /' conftest.$ac_ext >&5
5225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5227 if test "${ac_cv_search_opendir+set}" = set; then
5231 if test "${ac_cv_search_opendir+set}" = set; then
5234 ac_cv_search_opendir=no
5237 LIBS=$ac_func_search_save_LIBS
5239 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5240 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5241 ac_res=$ac_cv_search_opendir
5242 if test "$ac_res" != no; then
5243 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5248 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5249 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5250 if test "${ac_cv_search_opendir+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5253 ac_func_search_save_LIBS=$LIBS
5254 cat >conftest.$ac_ext <<_ACEOF
5257 cat confdefs.h >>conftest.$ac_ext
5258 cat >>conftest.$ac_ext <<_ACEOF
5259 /* end confdefs.h. */
5261 /* Override any GCC internal prototype to avoid an error.
5262 Use char because int might match the return type of a GCC
5263 builtin and then its argument prototype would still apply. */
5276 for ac_lib in '' x; do
5277 if test -z "$ac_lib"; then
5278 ac_res="none required"
5281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5283 rm -f conftest.$ac_objext conftest$ac_exeext
5284 if { (ac_try="$ac_link"
5286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5287 *) ac_try_echo=$ac_try;;
5289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5290 (eval "$ac_link") 2>conftest.er1
5292 grep -v '^ *+' conftest.er1 >conftest.err
5294 cat conftest.err >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } && {
5297 test -z "$ac_c_werror_flag" ||
5298 test ! -s conftest.err
5299 } && test -s conftest$ac_exeext &&
5300 $as_test_x conftest$ac_exeext; then
5301 ac_cv_search_opendir=$ac_res
5303 echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5311 if test "${ac_cv_search_opendir+set}" = set; then
5315 if test "${ac_cv_search_opendir+set}" = set; then
5318 ac_cv_search_opendir=no
5321 LIBS=$ac_func_search_save_LIBS
5323 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5324 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5325 ac_res=$ac_cv_search_opendir
5326 if test "$ac_res" != no; then
5327 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5333 { echo "$as_me:$LINENO: checking how to call gettimeofday" >&5
5334 echo $ECHO_N "checking how to call gettimeofday... $ECHO_C" >&6; }
5335 if test "${ac_cv_gettimeofday_args+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 cat >conftest.$ac_ext <<_ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5345 #include <sys/time.h>
5349 struct timeval tv; struct timezone tzp;
5350 gettimeofday(&tv, &tzp);
5355 rm -f conftest.$ac_objext
5356 if { (ac_try="$ac_compile"
5358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359 *) ac_try_echo=$ac_try;;
5361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362 (eval "$ac_compile") 2>conftest.er1
5364 grep -v '^ *+' conftest.er1 >conftest.err
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } && {
5369 test -z "$ac_c_werror_flag" ||
5370 test ! -s conftest.err
5371 } && test -s conftest.$ac_objext; then
5372 ac_gettimeofday_args=2
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 cat >conftest.$ac_ext <<_ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h. */
5384 #include <sys/time.h>
5388 struct timeval tv; gettimeofday(&tv);
5393 rm -f conftest.$ac_objext
5394 if { (ac_try="$ac_compile"
5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400 (eval "$ac_compile") 2>conftest.er1
5402 grep -v '^ *+' conftest.er1 >conftest.err
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } && {
5407 test -z "$ac_c_werror_flag" ||
5408 test ! -s conftest.err
5409 } && test -s conftest.$ac_objext; then
5410 ac_gettimeofday_args=1
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5415 ac_gettimeofday_args=0
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 ac_cv_gettimeofday_args=$ac_gettimeofday_args
5425 ac_gettimeofday_args=$ac_cv_gettimeofday_args
5426 if test "$ac_gettimeofday_args" = 1 ; then
5427 cat >>confdefs.h <<\_ACEOF
5428 #define HAVE_GETTIMEOFDAY 1
5431 { echo "$as_me:$LINENO: result: one argument" >&5
5432 echo "${ECHO_T}one argument" >&6; }
5433 elif test "$ac_gettimeofday_args" = 2 ; then
5434 cat >>confdefs.h <<\_ACEOF
5435 #define HAVE_GETTIMEOFDAY 1
5438 cat >>confdefs.h <<\_ACEOF
5439 #define GETTIMEOFDAY_TWO_ARGS 1
5442 { echo "$as_me:$LINENO: result: two arguments" >&5
5443 echo "${ECHO_T}two arguments" >&6; }
5445 { echo "$as_me:$LINENO: result: unknown" >&5
5446 echo "${ECHO_T}unknown" >&6; }
5458 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv sbrk
5460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 cat >conftest.$ac_ext <<_ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5474 #define $ac_func innocuous_$ac_func
5476 /* System header to define __stub macros and hopefully few prototypes,
5477 which can conflict with char $ac_func (); below.
5478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5479 <limits.h> exists even on freestanding compilers. */
5482 # include <limits.h>
5484 # include <assert.h>
5489 /* Override any GCC internal prototype to avoid an error.
5490 Use char because int might match the return type of a GCC
5491 builtin and then its argument prototype would still apply. */
5496 /* The GNU C library defines this for functions which it implements
5497 to always fail with ENOSYS. Some functions are actually named
5498 something starting with __ and the normal name is an alias. */
5499 #if defined __stub_$ac_func || defined __stub___$ac_func
5511 rm -f conftest.$ac_objext conftest$ac_exeext
5512 if { (ac_try="$ac_link"
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_link") 2>conftest.er1
5520 grep -v '^ *+' conftest.er1 >conftest.err
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } && {
5525 test -z "$ac_c_werror_flag" ||
5526 test ! -s conftest.err
5527 } && test -s conftest$ac_exeext &&
5528 $as_test_x conftest$ac_exeext; then
5529 eval "$as_ac_var=yes"
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5534 eval "$as_ac_var=no"
5537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5538 conftest$ac_exeext conftest.$ac_ext
5540 ac_res=`eval echo '${'$as_ac_var'}'`
5541 { echo "$as_me:$LINENO: result: $ac_res" >&5
5542 echo "${ECHO_T}$ac_res" >&6; }
5543 if test `eval echo '${'$as_ac_var'}'` = yes; then
5544 cat >>confdefs.h <<_ACEOF
5545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5555 for ac_func in sigaction syslog realpath setrlimit
5557 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5558 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5559 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5560 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 cat >conftest.$ac_ext <<_ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5571 #define $ac_func innocuous_$ac_func
5573 /* System header to define __stub macros and hopefully few prototypes,
5574 which can conflict with char $ac_func (); below.
5575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5576 <limits.h> exists even on freestanding compilers. */
5579 # include <limits.h>
5581 # include <assert.h>
5586 /* Override any GCC internal prototype to avoid an error.
5587 Use char because int might match the return type of a GCC
5588 builtin and then its argument prototype would still apply. */
5593 /* The GNU C library defines this for functions which it implements
5594 to always fail with ENOSYS. Some functions are actually named
5595 something starting with __ and the normal name is an alias. */
5596 #if defined __stub_$ac_func || defined __stub___$ac_func
5608 rm -f conftest.$ac_objext conftest$ac_exeext
5609 if { (ac_try="$ac_link"
5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612 *) ac_try_echo=$ac_try;;
5614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5615 (eval "$ac_link") 2>conftest.er1
5617 grep -v '^ *+' conftest.er1 >conftest.err
5619 cat conftest.err >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } && {
5622 test -z "$ac_c_werror_flag" ||
5623 test ! -s conftest.err
5624 } && test -s conftest$ac_exeext &&
5625 $as_test_x conftest$ac_exeext; then
5626 eval "$as_ac_var=yes"
5628 echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5631 eval "$as_ac_var=no"
5634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5635 conftest$ac_exeext conftest.$ac_ext
5637 ac_res=`eval echo '${'$as_ac_var'}'`
5638 { echo "$as_me:$LINENO: result: $ac_res" >&5
5639 echo "${ECHO_T}$ac_res" >&6; }
5640 if test `eval echo '${'$as_ac_var'}'` = yes; then
5641 cat >>confdefs.h <<_ACEOF
5642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5649 for ac_func in setlocale
5651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 cat >conftest.$ac_ext <<_ACEOF
5660 cat confdefs.h >>conftest.$ac_ext
5661 cat >>conftest.$ac_ext <<_ACEOF
5662 /* end confdefs.h. */
5663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5665 #define $ac_func innocuous_$ac_func
5667 /* System header to define __stub macros and hopefully few prototypes,
5668 which can conflict with char $ac_func (); below.
5669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5670 <limits.h> exists even on freestanding compilers. */
5673 # include <limits.h>
5675 # include <assert.h>
5680 /* Override any GCC internal prototype to avoid an error.
5681 Use char because int might match the return type of a GCC
5682 builtin and then its argument prototype would still apply. */
5687 /* The GNU C library defines this for functions which it implements
5688 to always fail with ENOSYS. Some functions are actually named
5689 something starting with __ and the normal name is an alias. */
5690 #if defined __stub_$ac_func || defined __stub___$ac_func
5702 rm -f conftest.$ac_objext conftest$ac_exeext
5703 if { (ac_try="$ac_link"
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_link") 2>conftest.er1
5711 grep -v '^ *+' conftest.er1 >conftest.err
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } && {
5716 test -z "$ac_c_werror_flag" ||
5717 test ! -s conftest.err
5718 } && test -s conftest$ac_exeext &&
5719 $as_test_x conftest$ac_exeext; then
5720 eval "$as_ac_var=yes"
5722 echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5725 eval "$as_ac_var=no"
5728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5729 conftest$ac_exeext conftest.$ac_ext
5731 ac_res=`eval echo '${'$as_ac_var'}'`
5732 { echo "$as_me:$LINENO: result: $ac_res" >&5
5733 echo "${ECHO_T}$ac_res" >&6; }
5734 if test `eval echo '${'$as_ac_var'}'` = yes; then
5735 cat >>confdefs.h <<_ACEOF
5736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5742 { echo "$as_me:$LINENO: checking for struct icmp" >&5
5743 echo $ECHO_N "checking for struct icmp... $ECHO_C" >&6; }
5744 if test "${ac_cv_have_icmp+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 cat >conftest.$ac_ext <<_ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5760 #include <sys/types.h>
5761 #include <sys/time.h>
5762 #include <sys/ipc.h>
5763 #include <sys/shm.h>
5764 #include <sys/socket.h>
5765 #include <netinet/in_systm.h>
5766 #include <netinet/in.h>
5767 #include <netinet/ip.h>
5768 #include <netinet/ip_icmp.h>
5769 #include <netinet/udp.h>
5770 #include <arpa/inet.h>
5777 struct sockaddr_in si;
5779 i.icmp_type = ICMP_ECHO;
5784 si.sin_family = AF_INET;
5785 #if defined(__DECC) || defined(_IP_VHL)
5795 rm -f conftest.$ac_objext
5796 if { (ac_try="$ac_compile"
5798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799 *) ac_try_echo=$ac_try;;
5801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802 (eval "$ac_compile") 2>conftest.er1
5804 grep -v '^ *+' conftest.er1 >conftest.err
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } && {
5809 test -z "$ac_c_werror_flag" ||
5810 test ! -s conftest.err
5811 } && test -s conftest.$ac_objext; then
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822 { echo "$as_me:$LINENO: result: $ac_cv_have_icmp" >&5
5823 echo "${ECHO_T}$ac_cv_have_icmp" >&6; }
5824 if test "$ac_cv_have_icmp" = yes ; then
5825 cat >>confdefs.h <<\_ACEOF
5830 { echo "$as_me:$LINENO: checking for struct icmphdr" >&5
5831 echo $ECHO_N "checking for struct icmphdr... $ECHO_C" >&6; }
5832 if test "${ac_cv_have_icmphdr+set}" = set; then
5833 echo $ECHO_N "(cached) $ECHO_C" >&6
5835 cat >conftest.$ac_ext <<_ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5848 #include <sys/types.h>
5849 #include <sys/time.h>
5850 #include <sys/ipc.h>
5851 #include <sys/shm.h>
5852 #include <sys/socket.h>
5853 #include <netinet/in_systm.h>
5854 #include <netinet/in.h>
5855 #include <netinet/ip.h>
5856 #include <netinet/ip_icmp.h>
5857 #include <netinet/udp.h>
5858 #include <arpa/inet.h>
5865 struct sockaddr_in si;
5871 i.un.echo.sequence = 0;
5872 si.sin_family = AF_INET;
5878 rm -f conftest.$ac_objext
5879 if { (ac_try="$ac_compile"
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_compile") 2>conftest.er1
5887 grep -v '^ *+' conftest.er1 >conftest.err
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } && {
5892 test -z "$ac_c_werror_flag" ||
5893 test ! -s conftest.err
5894 } && test -s conftest.$ac_objext; then
5895 ac_cv_have_icmphdr=yes
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5900 ac_cv_have_icmphdr=no
5903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 { echo "$as_me:$LINENO: result: $ac_cv_have_icmphdr" >&5
5906 echo "${ECHO_T}$ac_cv_have_icmphdr" >&6; }
5907 if test "$ac_cv_have_icmphdr" = yes ; then
5908 cat >>confdefs.h <<\_ACEOF
5909 #define HAVE_ICMPHDR 1
5915 for ac_header in crypt.h sys/select.h
5917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 ac_res=`eval echo '${'$as_ac_Header'}'`
5925 { echo "$as_me:$LINENO: result: $ac_res" >&5
5926 echo "${ECHO_T}$ac_res" >&6; }
5928 # Is the header compilable?
5929 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5931 cat >conftest.$ac_ext <<_ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5937 $ac_includes_default
5938 #include <$ac_header>
5940 rm -f conftest.$ac_objext
5941 if { (ac_try="$ac_compile"
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_compile") 2>conftest.er1
5949 grep -v '^ *+' conftest.er1 >conftest.err
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } && {
5954 test -z "$ac_c_werror_flag" ||
5955 test ! -s conftest.err
5956 } && test -s conftest.$ac_objext; then
5957 ac_header_compiler=yes
5959 echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5962 ac_header_compiler=no
5965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5967 echo "${ECHO_T}$ac_header_compiler" >&6; }
5969 # Is the header present?
5970 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5972 cat >conftest.$ac_ext <<_ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 #include <$ac_header>
5980 if { (ac_try="$ac_cpp conftest.$ac_ext"
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5988 grep -v '^ *+' conftest.er1 >conftest.err
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } >/dev/null && {
5993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5994 test ! -s conftest.err
5996 ac_header_preproc=yes
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6001 ac_header_preproc=no
6004 rm -f conftest.err conftest.$ac_ext
6005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6006 echo "${ECHO_T}$ac_header_preproc" >&6; }
6008 # So? What about this header?
6009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6015 ac_header_preproc=yes
6018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6038 eval "$as_ac_Header=\$ac_header_preproc"
6040 ac_res=`eval echo '${'$as_ac_Header'}'`
6041 { echo "$as_me:$LINENO: result: $ac_res" >&5
6042 echo "${ECHO_T}$ac_res" >&6; }
6045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6046 cat >>confdefs.h <<_ACEOF
6047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6054 for ac_prog in perl5 perl
6056 # Extract the first word of "$ac_prog", so it can be a program name with args.
6057 set dummy $ac_prog; ac_word=$2
6058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6060 if test "${ac_cv_path_PERL+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6075 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6086 PERL=$ac_cv_path_PERL
6087 if test -n "$PERL"; then
6088 { echo "$as_me:$LINENO: result: $PERL" >&5
6089 echo "${ECHO_T}$PERL" >&6; }
6091 { echo "$as_me:$LINENO: result: no" >&5
6092 echo "${ECHO_T}no" >&6; }
6096 test -n "$PERL" && break
6099 if test -z "$PERL" ; then
6102 { echo "$as_me:$LINENO: checking perl version" >&5
6103 echo $ECHO_N "checking perl version... $ECHO_C" >&6; }
6104 if test "${ac_cv_perl_version+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 ac_cv_perl_version=`$PERL -e "$perl_version_cmd"`
6109 { echo "$as_me:$LINENO: result: $ac_cv_perl_version" >&5
6110 echo "${ECHO_T}$ac_cv_perl_version" >&6; }
6111 PERL_VERSION=$ac_cv_perl_version
6115 if test -z "$PERL" ; then
6116 # don't let it be blank...
6120 { echo "$as_me:$LINENO: checking for X" >&5
6121 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
6124 # Check whether --with-x was given.
6125 if test "${with_x+set}" = set; then
6129 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6130 if test "x$with_x" = xno; then
6131 # The user explicitly disabled X.
6134 case $x_includes,$x_libraries in #(
6135 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6136 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6137 { (exit 1); exit 1; }; };; #(
6138 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 # One or both of the vars are not set, and there is no cached value.
6142 ac_x_includes=no ac_x_libraries=no
6143 rm -f -r conftest.dir
6144 if mkdir conftest.dir; then
6146 cat >Imakefile <<'_ACEOF'
6148 @echo incroot='${INCROOT}'
6150 @echo usrlibdir='${USRLIBDIR}'
6152 @echo libdir='${LIBDIR}'
6154 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6155 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6156 for ac_var in incroot usrlibdir libdir; do
6157 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6159 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6160 for ac_extension in a so sl; do
6161 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6162 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6163 ac_im_usrlibdir=$ac_im_libdir; break
6166 # Screen out bogus values from the imake configuration. They are
6167 # bogus both because they are the default anyway, and because
6168 # using them would break gcc on systems where it needs fixed includes.
6169 case $ac_im_incroot in
6170 /usr/include) ac_x_includes= ;;
6171 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6173 case $ac_im_usrlibdir in
6175 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6179 rm -f -r conftest.dir
6182 # Standard set of common directories for X headers.
6183 # Check X11 before X11Rn because it is often a symlink to the current release.
6195 /usr/local/X11/include
6196 /usr/local/X11R6/include
6197 /usr/local/X11R5/include
6198 /usr/local/X11R4/include
6200 /usr/local/include/X11
6201 /usr/local/include/X11R6
6202 /usr/local/include/X11R5
6203 /usr/local/include/X11R4
6207 /usr/XFree86/include/X11
6211 /usr/unsupported/include
6213 /usr/local/x11r5/include
6214 /usr/lpp/Xamples/include
6216 /usr/openwin/include
6217 /usr/openwin/share/include'
6219 if test "$ac_x_includes" = no; then
6220 # Guess where to find include files, by looking for Xlib.h.
6221 # First, try using that file with no special directory specified.
6222 cat >conftest.$ac_ext <<_ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h. */
6228 #include <X11/Xlib.h>
6230 if { (ac_try="$ac_cpp conftest.$ac_ext"
6232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233 *) ac_try_echo=$ac_try;;
6235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6238 grep -v '^ *+' conftest.er1 >conftest.err
6240 cat conftest.err >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } >/dev/null && {
6243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6244 test ! -s conftest.err
6246 # We can compile using X headers with no special include directory.
6249 echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6252 for ac_dir in $ac_x_header_dirs; do
6253 if test -r "$ac_dir/X11/Xlib.h"; then
6254 ac_x_includes=$ac_dir
6260 rm -f conftest.err conftest.$ac_ext
6261 fi # $ac_x_includes = no
6263 if test "$ac_x_libraries" = no; then
6264 # Check for the libraries.
6265 # See if we find them without any special options.
6266 # Don't add to $LIBS permanently.
6269 cat >conftest.$ac_ext <<_ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6275 #include <X11/Xlib.h>
6284 rm -f conftest.$ac_objext conftest$ac_exeext
6285 if { (ac_try="$ac_link"
6287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6288 *) ac_try_echo=$ac_try;;
6290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6291 (eval "$ac_link") 2>conftest.er1
6293 grep -v '^ *+' conftest.er1 >conftest.err
6295 cat conftest.err >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } && {
6298 test -z "$ac_c_werror_flag" ||
6299 test ! -s conftest.err
6300 } && test -s conftest$ac_exeext &&
6301 $as_test_x conftest$ac_exeext; then
6303 # We can link X programs with no special library path.
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6310 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6312 # Don't even attempt the hair of trying to link an X program!
6313 for ac_extension in a so sl; do
6314 if test -r "$ac_dir/libX11.$ac_extension"; then
6315 ac_x_libraries=$ac_dir
6322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6323 conftest$ac_exeext conftest.$ac_ext
6324 fi # $ac_x_libraries = no
6326 case $ac_x_includes,$ac_x_libraries in #(
6328 # Didn't find X, or a directory has "'" in its name.
6329 ac_cv_have_x="have_x=no";; #(
6331 # Record where we found X for the cache.
6332 ac_cv_have_x="have_x=yes\
6333 ac_x_includes='$ac_x_includes'\
6334 ac_x_libraries='$ac_x_libraries'"
6340 eval "$ac_cv_have_x"
6343 if test "$have_x" != yes; then
6344 { echo "$as_me:$LINENO: result: $have_x" >&5
6345 echo "${ECHO_T}$have_x" >&6; }
6348 # If each of the values was on the command line, it overrides each guess.
6349 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6350 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6351 # Update the cache value to reflect the command line values.
6352 ac_cv_have_x="have_x=yes\
6353 ac_x_includes='$x_includes'\
6354 ac_x_libraries='$x_libraries'"
6355 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6356 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
6359 if test "$no_x" = yes; then
6360 # Not all programs may use this symbol, but it does not hurt to define it.
6362 cat >>confdefs.h <<\_ACEOF
6363 #define X_DISPLAY_MISSING 1
6366 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6368 if test -n "$x_includes"; then
6369 X_CFLAGS="$X_CFLAGS -I$x_includes"
6372 # It would also be nice to do this for all -L options, not just this one.
6373 if test -n "$x_libraries"; then
6374 X_LIBS="$X_LIBS -L$x_libraries"
6375 # For Solaris; some versions of Sun CC require a space after -R and
6376 # others require no space. Words are not sufficient . . . .
6377 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6378 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
6379 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6380 ac_xsave_c_werror_flag=$ac_c_werror_flag
6381 ac_c_werror_flag=yes
6382 cat >conftest.$ac_ext <<_ACEOF
6385 cat confdefs.h >>conftest.$ac_ext
6386 cat >>conftest.$ac_ext <<_ACEOF
6387 /* end confdefs.h. */
6397 rm -f conftest.$ac_objext conftest$ac_exeext
6398 if { (ac_try="$ac_link"
6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6404 (eval "$ac_link") 2>conftest.er1
6406 grep -v '^ *+' conftest.er1 >conftest.err
6408 cat conftest.err >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } && {
6411 test -z "$ac_c_werror_flag" ||
6412 test ! -s conftest.err
6413 } && test -s conftest$ac_exeext &&
6414 $as_test_x conftest$ac_exeext; then
6415 { echo "$as_me:$LINENO: result: no" >&5
6416 echo "${ECHO_T}no" >&6; }
6417 X_LIBS="$X_LIBS -R$x_libraries"
6419 echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6422 LIBS="$ac_xsave_LIBS -R $x_libraries"
6423 cat >conftest.$ac_ext <<_ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6438 rm -f conftest.$ac_objext conftest$ac_exeext
6439 if { (ac_try="$ac_link"
6441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442 *) ac_try_echo=$ac_try;;
6444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445 (eval "$ac_link") 2>conftest.er1
6447 grep -v '^ *+' conftest.er1 >conftest.err
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } && {
6452 test -z "$ac_c_werror_flag" ||
6453 test ! -s conftest.err
6454 } && test -s conftest$ac_exeext &&
6455 $as_test_x conftest$ac_exeext; then
6456 { echo "$as_me:$LINENO: result: yes" >&5
6457 echo "${ECHO_T}yes" >&6; }
6458 X_LIBS="$X_LIBS -R $x_libraries"
6460 echo "$as_me: failed program was:" >&5
6461 sed 's/^/| /' conftest.$ac_ext >&5
6463 { echo "$as_me:$LINENO: result: neither works" >&5
6464 echo "${ECHO_T}neither works" >&6; }
6467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6468 conftest$ac_exeext conftest.$ac_ext
6471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6472 conftest$ac_exeext conftest.$ac_ext
6473 ac_c_werror_flag=$ac_xsave_c_werror_flag
6477 # Check for system-dependent libraries X programs must link with.
6478 # Do this before checking for the system-independent R6 libraries
6479 # (-lICE), since we may need -lsocket or whatever for X linking.
6481 if test "$ISC" = yes; then
6482 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6484 # Martyn Johnson says this is needed for Ultrix, if the X
6485 # libraries were built with DECnet support. And Karl Berry says
6486 # the Alpha needs dnet_stub (dnet does not exist).
6487 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6488 cat >conftest.$ac_ext <<_ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h. */
6495 /* Override any GCC internal prototype to avoid an error.
6496 Use char because int might match the return type of a GCC
6497 builtin and then its argument prototype would still apply. */
6501 char XOpenDisplay ();
6505 return XOpenDisplay ();
6510 rm -f conftest.$ac_objext conftest$ac_exeext
6511 if { (ac_try="$ac_link"
6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514 *) ac_try_echo=$ac_try;;
6516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517 (eval "$ac_link") 2>conftest.er1
6519 grep -v '^ *+' conftest.er1 >conftest.err
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } && {
6524 test -z "$ac_c_werror_flag" ||
6525 test ! -s conftest.err
6526 } && test -s conftest$ac_exeext &&
6527 $as_test_x conftest$ac_exeext; then
6530 echo "$as_me: failed program was:" >&5
6531 sed 's/^/| /' conftest.$ac_ext >&5
6533 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6534 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
6535 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 ac_check_lib_save_LIBS=$LIBS
6540 cat >conftest.$ac_ext <<_ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6547 /* Override any GCC internal prototype to avoid an error.
6548 Use char because int might match the return type of a GCC
6549 builtin and then its argument prototype would still apply. */
6557 return dnet_ntoa ();
6562 rm -f conftest.$ac_objext conftest$ac_exeext
6563 if { (ac_try="$ac_link"
6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566 *) ac_try_echo=$ac_try;;
6568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569 (eval "$ac_link") 2>conftest.er1
6571 grep -v '^ *+' conftest.er1 >conftest.err
6573 cat conftest.err >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } && {
6576 test -z "$ac_c_werror_flag" ||
6577 test ! -s conftest.err
6578 } && test -s conftest$ac_exeext &&
6579 $as_test_x conftest$ac_exeext; then
6580 ac_cv_lib_dnet_dnet_ntoa=yes
6582 echo "$as_me: failed program was:" >&5
6583 sed 's/^/| /' conftest.$ac_ext >&5
6585 ac_cv_lib_dnet_dnet_ntoa=no
6588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6589 conftest$ac_exeext conftest.$ac_ext
6590 LIBS=$ac_check_lib_save_LIBS
6592 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6593 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6594 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6595 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6598 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6599 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6600 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
6601 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 ac_check_lib_save_LIBS=$LIBS
6605 LIBS="-ldnet_stub $LIBS"
6606 cat >conftest.$ac_ext <<_ACEOF
6609 cat confdefs.h >>conftest.$ac_ext
6610 cat >>conftest.$ac_ext <<_ACEOF
6611 /* end confdefs.h. */
6613 /* Override any GCC internal prototype to avoid an error.
6614 Use char because int might match the return type of a GCC
6615 builtin and then its argument prototype would still apply. */
6623 return dnet_ntoa ();
6628 rm -f conftest.$ac_objext conftest$ac_exeext
6629 if { (ac_try="$ac_link"
6631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632 *) ac_try_echo=$ac_try;;
6634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635 (eval "$ac_link") 2>conftest.er1
6637 grep -v '^ *+' conftest.er1 >conftest.err
6639 cat conftest.err >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } && {
6642 test -z "$ac_c_werror_flag" ||
6643 test ! -s conftest.err
6644 } && test -s conftest$ac_exeext &&
6645 $as_test_x conftest$ac_exeext; then
6646 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6651 ac_cv_lib_dnet_stub_dnet_ntoa=no
6654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6655 conftest$ac_exeext conftest.$ac_ext
6656 LIBS=$ac_check_lib_save_LIBS
6658 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6659 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6660 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6661 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6668 conftest$ac_exeext conftest.$ac_ext
6669 LIBS="$ac_xsave_LIBS"
6671 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6672 # to get the SysV transport functions.
6673 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6675 # The nsl library prevents programs from opening the X display
6676 # on Irix 5.2, according to T.E. Dickey.
6677 # The functions gethostbyname, getservbyname, and inet_addr are
6678 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6679 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
6680 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
6681 if test "${ac_cv_func_gethostbyname+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 cat >conftest.$ac_ext <<_ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6690 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6692 #define gethostbyname innocuous_gethostbyname
6694 /* System header to define __stub macros and hopefully few prototypes,
6695 which can conflict with char gethostbyname (); below.
6696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6697 <limits.h> exists even on freestanding compilers. */
6700 # include <limits.h>
6702 # include <assert.h>
6705 #undef gethostbyname
6707 /* Override any GCC internal prototype to avoid an error.
6708 Use char because int might match the return type of a GCC
6709 builtin and then its argument prototype would still apply. */
6713 char gethostbyname ();
6714 /* The GNU C library defines this for functions which it implements
6715 to always fail with ENOSYS. Some functions are actually named
6716 something starting with __ and the normal name is an alias. */
6717 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6724 return gethostbyname ();
6729 rm -f conftest.$ac_objext conftest$ac_exeext
6730 if { (ac_try="$ac_link"
6732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6733 *) ac_try_echo=$ac_try;;
6735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6736 (eval "$ac_link") 2>conftest.er1
6738 grep -v '^ *+' conftest.er1 >conftest.err
6740 cat conftest.err >&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } && {
6743 test -z "$ac_c_werror_flag" ||
6744 test ! -s conftest.err
6745 } && test -s conftest$ac_exeext &&
6746 $as_test_x conftest$ac_exeext; then
6747 ac_cv_func_gethostbyname=yes
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6752 ac_cv_func_gethostbyname=no
6755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6756 conftest$ac_exeext conftest.$ac_ext
6758 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6759 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6761 if test $ac_cv_func_gethostbyname = no; then
6762 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6763 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6764 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 ac_check_lib_save_LIBS=$LIBS
6769 cat >conftest.$ac_ext <<_ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6776 /* Override any GCC internal prototype to avoid an error.
6777 Use char because int might match the return type of a GCC
6778 builtin and then its argument prototype would still apply. */
6782 char gethostbyname ();
6786 return gethostbyname ();
6791 rm -f conftest.$ac_objext conftest$ac_exeext
6792 if { (ac_try="$ac_link"
6794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6795 *) ac_try_echo=$ac_try;;
6797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6798 (eval "$ac_link") 2>conftest.er1
6800 grep -v '^ *+' conftest.er1 >conftest.err
6802 cat conftest.err >&5
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); } && {
6805 test -z "$ac_c_werror_flag" ||
6806 test ! -s conftest.err
6807 } && test -s conftest$ac_exeext &&
6808 $as_test_x conftest$ac_exeext; then
6809 ac_cv_lib_nsl_gethostbyname=yes
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6814 ac_cv_lib_nsl_gethostbyname=no
6817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6818 conftest$ac_exeext conftest.$ac_ext
6819 LIBS=$ac_check_lib_save_LIBS
6821 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6822 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6823 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6824 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6827 if test $ac_cv_lib_nsl_gethostbyname = no; then
6828 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6829 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6830 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 ac_check_lib_save_LIBS=$LIBS
6835 cat >conftest.$ac_ext <<_ACEOF
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h. */
6842 /* Override any GCC internal prototype to avoid an error.
6843 Use char because int might match the return type of a GCC
6844 builtin and then its argument prototype would still apply. */
6848 char gethostbyname ();
6852 return gethostbyname ();
6857 rm -f conftest.$ac_objext conftest$ac_exeext
6858 if { (ac_try="$ac_link"
6860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861 *) ac_try_echo=$ac_try;;
6863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6864 (eval "$ac_link") 2>conftest.er1
6866 grep -v '^ *+' conftest.er1 >conftest.err
6868 cat conftest.err >&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } && {
6871 test -z "$ac_c_werror_flag" ||
6872 test ! -s conftest.err
6873 } && test -s conftest$ac_exeext &&
6874 $as_test_x conftest$ac_exeext; then
6875 ac_cv_lib_bsd_gethostbyname=yes
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6880 ac_cv_lib_bsd_gethostbyname=no
6883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6884 conftest$ac_exeext conftest.$ac_ext
6885 LIBS=$ac_check_lib_save_LIBS
6887 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6888 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
6889 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6890 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6896 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6897 # socket/setsockopt and other routines are undefined under SCO ODT
6898 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6899 # on later versions), says Simon Leinen: it contains gethostby*
6900 # variants that don't use the name server (or something). -lsocket
6901 # must be given before -lnsl if both are needed. We assume that
6902 # if connect needs -lnsl, so does gethostbyname.
6903 { echo "$as_me:$LINENO: checking for connect" >&5
6904 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
6905 if test "${ac_cv_func_connect+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 cat >conftest.$ac_ext <<_ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h. */
6914 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6916 #define connect innocuous_connect
6918 /* System header to define __stub macros and hopefully few prototypes,
6919 which can conflict with char connect (); below.
6920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6921 <limits.h> exists even on freestanding compilers. */
6924 # include <limits.h>
6926 # include <assert.h>
6931 /* Override any GCC internal prototype to avoid an error.
6932 Use char because int might match the return type of a GCC
6933 builtin and then its argument prototype would still apply. */
6938 /* The GNU C library defines this for functions which it implements
6939 to always fail with ENOSYS. Some functions are actually named
6940 something starting with __ and the normal name is an alias. */
6941 #if defined __stub_connect || defined __stub___connect
6953 rm -f conftest.$ac_objext conftest$ac_exeext
6954 if { (ac_try="$ac_link"
6956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6957 *) ac_try_echo=$ac_try;;
6959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6960 (eval "$ac_link") 2>conftest.er1
6962 grep -v '^ *+' conftest.er1 >conftest.err
6964 cat conftest.err >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } && {
6967 test -z "$ac_c_werror_flag" ||
6968 test ! -s conftest.err
6969 } && test -s conftest$ac_exeext &&
6970 $as_test_x conftest$ac_exeext; then
6971 ac_cv_func_connect=yes
6973 echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6976 ac_cv_func_connect=no
6979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6980 conftest$ac_exeext conftest.$ac_ext
6982 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6983 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
6985 if test $ac_cv_func_connect = no; then
6986 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6987 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
6988 if test "${ac_cv_lib_socket_connect+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 ac_check_lib_save_LIBS=$LIBS
6992 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6993 cat >conftest.$ac_ext <<_ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
7000 /* Override any GCC internal prototype to avoid an error.
7001 Use char because int might match the return type of a GCC
7002 builtin and then its argument prototype would still apply. */
7015 rm -f conftest.$ac_objext conftest$ac_exeext
7016 if { (ac_try="$ac_link"
7018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019 *) ac_try_echo=$ac_try;;
7021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7022 (eval "$ac_link") 2>conftest.er1
7024 grep -v '^ *+' conftest.er1 >conftest.err
7026 cat conftest.err >&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } && {
7029 test -z "$ac_c_werror_flag" ||
7030 test ! -s conftest.err
7031 } && test -s conftest$ac_exeext &&
7032 $as_test_x conftest$ac_exeext; then
7033 ac_cv_lib_socket_connect=yes
7035 echo "$as_me: failed program was:" >&5
7036 sed 's/^/| /' conftest.$ac_ext >&5
7038 ac_cv_lib_socket_connect=no
7041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7042 conftest$ac_exeext conftest.$ac_ext
7043 LIBS=$ac_check_lib_save_LIBS
7045 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7046 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
7047 if test $ac_cv_lib_socket_connect = yes; then
7048 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7053 # Guillermo Gomez says -lposix is necessary on A/UX.
7054 { echo "$as_me:$LINENO: checking for remove" >&5
7055 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
7056 if test "${ac_cv_func_remove+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 cat >conftest.$ac_ext <<_ACEOF
7062 cat confdefs.h >>conftest.$ac_ext
7063 cat >>conftest.$ac_ext <<_ACEOF
7064 /* end confdefs.h. */
7065 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7067 #define remove innocuous_remove
7069 /* System header to define __stub macros and hopefully few prototypes,
7070 which can conflict with char remove (); below.
7071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7072 <limits.h> exists even on freestanding compilers. */
7075 # include <limits.h>
7077 # include <assert.h>
7082 /* Override any GCC internal prototype to avoid an error.
7083 Use char because int might match the return type of a GCC
7084 builtin and then its argument prototype would still apply. */
7089 /* The GNU C library defines this for functions which it implements
7090 to always fail with ENOSYS. Some functions are actually named
7091 something starting with __ and the normal name is an alias. */
7092 #if defined __stub_remove || defined __stub___remove
7104 rm -f conftest.$ac_objext conftest$ac_exeext
7105 if { (ac_try="$ac_link"
7107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7108 *) ac_try_echo=$ac_try;;
7110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7111 (eval "$ac_link") 2>conftest.er1
7113 grep -v '^ *+' conftest.er1 >conftest.err
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && {
7118 test -z "$ac_c_werror_flag" ||
7119 test ! -s conftest.err
7120 } && test -s conftest$ac_exeext &&
7121 $as_test_x conftest$ac_exeext; then
7122 ac_cv_func_remove=yes
7124 echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7127 ac_cv_func_remove=no
7130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7131 conftest$ac_exeext conftest.$ac_ext
7133 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7134 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
7136 if test $ac_cv_func_remove = no; then
7137 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7138 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
7139 if test "${ac_cv_lib_posix_remove+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 ac_check_lib_save_LIBS=$LIBS
7143 LIBS="-lposix $LIBS"
7144 cat >conftest.$ac_ext <<_ACEOF
7147 cat confdefs.h >>conftest.$ac_ext
7148 cat >>conftest.$ac_ext <<_ACEOF
7149 /* end confdefs.h. */
7151 /* Override any GCC internal prototype to avoid an error.
7152 Use char because int might match the return type of a GCC
7153 builtin and then its argument prototype would still apply. */
7166 rm -f conftest.$ac_objext conftest$ac_exeext
7167 if { (ac_try="$ac_link"
7169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7170 *) ac_try_echo=$ac_try;;
7172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7173 (eval "$ac_link") 2>conftest.er1
7175 grep -v '^ *+' conftest.er1 >conftest.err
7177 cat conftest.err >&5
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } && {
7180 test -z "$ac_c_werror_flag" ||
7181 test ! -s conftest.err
7182 } && test -s conftest$ac_exeext &&
7183 $as_test_x conftest$ac_exeext; then
7184 ac_cv_lib_posix_remove=yes
7186 echo "$as_me: failed program was:" >&5
7187 sed 's/^/| /' conftest.$ac_ext >&5
7189 ac_cv_lib_posix_remove=no
7192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7193 conftest$ac_exeext conftest.$ac_ext
7194 LIBS=$ac_check_lib_save_LIBS
7196 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7197 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
7198 if test $ac_cv_lib_posix_remove = yes; then
7199 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7204 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7205 { echo "$as_me:$LINENO: checking for shmat" >&5
7206 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
7207 if test "${ac_cv_func_shmat+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 cat >conftest.$ac_ext <<_ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
7215 /* end confdefs.h. */
7216 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7218 #define shmat innocuous_shmat
7220 /* System header to define __stub macros and hopefully few prototypes,
7221 which can conflict with char shmat (); below.
7222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7223 <limits.h> exists even on freestanding compilers. */
7226 # include <limits.h>
7228 # include <assert.h>
7233 /* Override any GCC internal prototype to avoid an error.
7234 Use char because int might match the return type of a GCC
7235 builtin and then its argument prototype would still apply. */
7240 /* The GNU C library defines this for functions which it implements
7241 to always fail with ENOSYS. Some functions are actually named
7242 something starting with __ and the normal name is an alias. */
7243 #if defined __stub_shmat || defined __stub___shmat
7255 rm -f conftest.$ac_objext conftest$ac_exeext
7256 if { (ac_try="$ac_link"
7258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7259 *) ac_try_echo=$ac_try;;
7261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7262 (eval "$ac_link") 2>conftest.er1
7264 grep -v '^ *+' conftest.er1 >conftest.err
7266 cat conftest.err >&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } && {
7269 test -z "$ac_c_werror_flag" ||
7270 test ! -s conftest.err
7271 } && test -s conftest$ac_exeext &&
7272 $as_test_x conftest$ac_exeext; then
7273 ac_cv_func_shmat=yes
7275 echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7282 conftest$ac_exeext conftest.$ac_ext
7284 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7285 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
7287 if test $ac_cv_func_shmat = no; then
7288 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7289 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
7290 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 ac_check_lib_save_LIBS=$LIBS
7295 cat >conftest.$ac_ext <<_ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7302 /* Override any GCC internal prototype to avoid an error.
7303 Use char because int might match the return type of a GCC
7304 builtin and then its argument prototype would still apply. */
7317 rm -f conftest.$ac_objext conftest$ac_exeext
7318 if { (ac_try="$ac_link"
7320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321 *) ac_try_echo=$ac_try;;
7323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7324 (eval "$ac_link") 2>conftest.er1
7326 grep -v '^ *+' conftest.er1 >conftest.err
7328 cat conftest.err >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && {
7331 test -z "$ac_c_werror_flag" ||
7332 test ! -s conftest.err
7333 } && test -s conftest$ac_exeext &&
7334 $as_test_x conftest$ac_exeext; then
7335 ac_cv_lib_ipc_shmat=yes
7337 echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7340 ac_cv_lib_ipc_shmat=no
7343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7344 conftest$ac_exeext conftest.$ac_ext
7345 LIBS=$ac_check_lib_save_LIBS
7347 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7348 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
7349 if test $ac_cv_lib_ipc_shmat = yes; then
7350 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7356 # Check for libraries that X11R6 Xt/Xaw programs need.
7357 ac_save_LDFLAGS=$LDFLAGS
7358 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7359 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7360 # check for ICE first), but we must link in the order -lSM -lICE or
7361 # we get undefined symbols. So assume we have SM if we have ICE.
7362 # These have to be linked with before -lX11, unlike the other
7363 # libraries we check for below, so use a different variable.
7364 # John Interrante, Karl Berry
7365 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7366 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
7367 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 ac_check_lib_save_LIBS=$LIBS
7371 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7372 cat >conftest.$ac_ext <<_ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7379 /* Override any GCC internal prototype to avoid an error.
7380 Use char because int might match the return type of a GCC
7381 builtin and then its argument prototype would still apply. */
7385 char IceConnectionNumber ();
7389 return IceConnectionNumber ();
7394 rm -f conftest.$ac_objext conftest$ac_exeext
7395 if { (ac_try="$ac_link"
7397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7398 *) ac_try_echo=$ac_try;;
7400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7401 (eval "$ac_link") 2>conftest.er1
7403 grep -v '^ *+' conftest.er1 >conftest.err
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } && {
7408 test -z "$ac_c_werror_flag" ||
7409 test ! -s conftest.err
7410 } && test -s conftest$ac_exeext &&
7411 $as_test_x conftest$ac_exeext; then
7412 ac_cv_lib_ICE_IceConnectionNumber=yes
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7417 ac_cv_lib_ICE_IceConnectionNumber=no
7420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7421 conftest$ac_exeext conftest.$ac_ext
7422 LIBS=$ac_check_lib_save_LIBS
7424 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7425 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7426 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7427 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7430 LDFLAGS=$ac_save_LDFLAGS
7435 if test "$have_x" != yes; then
7436 { { echo "$as_me:$LINENO: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&5
7437 echo "$as_me: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&2;}
7438 { (exit 1); exit 1; }; }
7442 { echo "$as_me:$LINENO: checking for X app-defaults directory" >&5
7443 echo $ECHO_N "checking for X app-defaults directory... $ECHO_C" >&6; }
7444 if test "${ac_cv_x_app_defaults+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 if mkdir conftestdir; then
7450 cd conftestdir 2>/dev/null
7451 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7452 cat > Imakefile <<'EOF'
7454 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
7456 if (xmkmf) >/dev/null 2>&1 && test -f Makefile; then
7457 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
7458 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7463 if test x"$ac_x_app_defaults" = x; then
7465 # Look for the directory under a standard set of common directories.
7466 # Check X11 before X11Rn because it's often a symlink to the current release.
7468 /usr/X11/lib/app-defaults \
7469 /usr/X11R6/lib/app-defaults \
7470 /usr/X11R6/lib/X11/app-defaults \
7471 /usr/X11R5/lib/app-defaults \
7472 /usr/X11R5/lib/X11/app-defaults \
7473 /usr/X11R4/lib/app-defaults \
7474 /usr/X11R4/lib/X11/app-defaults \
7476 /usr/lib/X11/app-defaults \
7477 /usr/lib/X11R6/app-defaults \
7478 /usr/lib/X11R5/app-defaults \
7479 /usr/lib/X11R4/app-defaults \
7481 /usr/local/X11/lib/app-defaults \
7482 /usr/local/X11R6/lib/app-defaults \
7483 /usr/local/X11R5/lib/app-defaults \
7484 /usr/local/X11R4/lib/app-defaults \
7486 /usr/local/lib/X11/app-defaults \
7487 /usr/local/lib/X11R6/app-defaults \
7488 /usr/local/lib/X11R6/X11/app-defaults \
7489 /usr/local/lib/X11R5/app-defaults \
7490 /usr/local/lib/X11R5/X11/app-defaults \
7491 /usr/local/lib/X11R4/app-defaults \
7492 /usr/local/lib/X11R4/X11/app-defaults \
7494 /usr/X386/lib/X11/app-defaults \
7495 /usr/x386/lib/X11/app-defaults \
7496 /usr/XFree86/lib/X11/app-defaults \
7498 /usr/lib/X11/app-defaults \
7499 /usr/local/lib/X11/app-defaults \
7500 /usr/unsupported/lib/X11/app-defaults \
7501 /usr/athena/lib/X11/app-defaults \
7502 /usr/local/x11r5/lib/X11/app-defaults \
7503 /usr/lpp/Xamples/lib/X11/app-defaults \
7504 /lib/usr/lib/X11/app-defaults \
7506 /usr/openwin/lib/app-defaults \
7507 /usr/openwin/lib/X11/app-defaults \
7508 /usr/openwin/share/lib/app-defaults \
7509 /usr/openwin/share/lib/X11/app-defaults \
7511 /X11R6/lib/app-defaults \
7512 /X11R5/lib/app-defaults \
7513 /X11R4/lib/app-defaults \
7516 if test -d "$ac_dir"; then
7517 ac_x_app_defaults=$ac_dir
7523 if test x"$ac_x_app_defaults" = x; then
7524 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
7526 # Record where we found app-defaults for the cache.
7527 ac_cv_x_app_defaults="$ac_x_app_defaults"
7530 { echo "$as_me:$LINENO: result: $ac_cv_x_app_defaults" >&5
7531 echo "${ECHO_T}$ac_cv_x_app_defaults" >&6; }
7532 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
7536 # The following arcana was gleaned from conversations with
7537 # Eric Schwartz <erics@col.hp.com>:
7539 # On HPUX 10.x, the parts of X that HP considers "standard" live in
7540 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
7541 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
7542 # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
7543 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
7544 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
7545 # you don't need any -I or -L arguments.
7547 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
7548 # are the same division as 10.x. However, there are no symlinks to
7549 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
7550 # arguments are always necessary.
7552 # However, X11R6 was available on HPUX 9.x as a patch: if that
7553 # patch was installed, then all of X11R6 went in to
7554 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
7556 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
7557 # whether R5 was available as a patch; R6 undoubtedly was not.)
7559 # So. We try and use the highest numbered pair of
7560 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
7561 # that are available. We do not mix and match different versions
7564 # Question I still don't know the answer to: (do you?)
7566 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
7567 # /usr/contrib/X11R6/ could be installed as a patch, what was in
7568 # that contrib directory? Did it contain so-called "standard"
7569 # X11R6, or did it include Xaw and Xmu as well? If the former,
7570 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
7571 # be a situation where one had to reach into the R5 headers and
7572 # libs to find Xmu? That is, must both R6 and R5 directories
7573 # be on the -I and -L lists in that case?
7575 for version in X11R6 X11R5 X11R4 ; do
7576 # if either pair of directories exists...
7577 if test -d /usr/include/$version || test -d /usr/contrib/$version/include
7579 # if contrib exists, use it...
7580 if test -d /usr/contrib/$version/include ; then
7581 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
7582 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
7584 # if the "standard" one exists, use it.
7585 if test -d /usr/include/$version ; then
7586 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
7587 X_LIBS="$X_LIBS -L/usr/lib/$version"
7589 # since at least one of the pair exists, go no farther.
7594 # Now find Motif. Thanks for not making xmkmf find this by
7595 # default, you losers.
7597 if test -d /usr/include/Motif2.1 ; then
7598 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
7599 X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
7600 elif test -d /usr/include/Motif1.2 ; then
7601 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
7602 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
7603 elif test -d /usr/include/Motif1.1 ; then
7604 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
7605 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
7608 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
7610 if test -d /opt/graphics/OpenGL/include ; then
7611 # HP-UX 10.20 puts it here
7612 X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
7613 X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
7614 elif test -d /opt/Mesa/lib ; then
7615 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
7616 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
7620 if test -d /opt/xpm/lib/X11 ; then
7621 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
7622 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
7625 # On HPUX, default to installing in /opt/xscreensaver/ instead of
7626 # in /usr/local/, unless there is already an xscreensaver in
7627 # /usr/local/bin/. This can be overridden with the --prefix arg
7628 # to configure. I'm not sure this is the right thing to do, but
7629 # Richard Lloyd says so...
7631 if test \! -x /usr/local/bin/xscreensaver ; then
7632 ac_default_prefix=/opt/xscreensaver
7638 # Thanks for not making xmkmf find this by default, pinheads.
7639 # And thanks for moving things around again, too. Is this
7640 # really the standard location now? What happened to the
7641 # joke that this kind of thing went in /opt?
7642 # cthomp says "answer: CDE (Common Disorganized Environment)"
7644 if test -f /usr/dt/include/Xm/Xm.h ; then
7645 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
7646 MOTIF_LIBS="$MOTIF_LIBS -L/usr/dt/lib -R/usr/dt/lib"
7648 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
7649 { echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
7650 echo $ECHO_N "checking for regcmp in -lgen... $ECHO_C" >&6; }
7651 if test "${ac_cv_lib_gen_regcmp+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 ac_check_lib_save_LIBS=$LIBS
7656 cat >conftest.$ac_ext <<_ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7663 /* Override any GCC internal prototype to avoid an error.
7664 Use char because int might match the return type of a GCC
7665 builtin and then its argument prototype would still apply. */
7678 rm -f conftest.$ac_objext conftest$ac_exeext
7679 if { (ac_try="$ac_link"
7681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682 *) ac_try_echo=$ac_try;;
7684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7685 (eval "$ac_link") 2>conftest.er1
7687 grep -v '^ *+' conftest.er1 >conftest.err
7689 cat conftest.err >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); } && {
7692 test -z "$ac_c_werror_flag" ||
7693 test ! -s conftest.err
7694 } && test -s conftest$ac_exeext &&
7695 $as_test_x conftest$ac_exeext; then
7696 ac_cv_lib_gen_regcmp=yes
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7701 ac_cv_lib_gen_regcmp=no
7704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7705 conftest$ac_exeext conftest.$ac_ext
7706 LIBS=$ac_check_lib_save_LIBS
7708 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5
7709 echo "${ECHO_T}$ac_cv_lib_gen_regcmp" >&6; }
7710 if test $ac_cv_lib_gen_regcmp = yes; then
7711 MOTIF_LIBS="$MOTIF_LIBS -lgen"
7719 # On MacOS X (10.x with "fink"), many things are under /sw/.
7721 if test -d /sw/include ; then
7722 X_CFLAGS="-I/sw/include $X_CFLAGS"
7723 X_LIBS="-L/sw/lib $X_LIBS"
7727 { echo "$as_me:$LINENO: checking for XPointer" >&5
7728 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7729 if test "${ac_cv_xpointer+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7733 ac_save_CPPFLAGS="$CPPFLAGS"
7734 if test \! -z "$includedir" ; then
7735 CPPFLAGS="$CPPFLAGS -I$includedir"
7737 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7738 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
7739 cat >conftest.$ac_ext <<_ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h. */
7745 #include <X11/Xlib.h>
7749 XPointer foo = (XPointer) 0;
7754 rm -f conftest.$ac_objext
7755 if { (ac_try="$ac_compile"
7757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758 *) ac_try_echo=$ac_try;;
7760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761 (eval "$ac_compile") 2>conftest.er1
7763 grep -v '^ *+' conftest.er1 >conftest.err
7765 cat conftest.err >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } && {
7768 test -z "$ac_c_werror_flag" ||
7769 test ! -s conftest.err
7770 } && test -s conftest.$ac_objext; then
7773 echo "$as_me: failed program was:" >&5
7774 sed 's/^/| /' conftest.$ac_ext >&5
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780 CPPFLAGS="$ac_save_CPPFLAGS"
7782 { echo "$as_me:$LINENO: result: $ac_cv_xpointer" >&5
7783 echo "${ECHO_T}$ac_cv_xpointer" >&6; }
7784 if test "$ac_cv_xpointer" != yes; then
7785 cat >>confdefs.h <<\_ACEOF
7786 #define XPointer char*
7791 { echo "$as_me:$LINENO: checking whether this is MacOS X" >&5
7792 echo $ECHO_N "checking whether this is MacOS X... $ECHO_C" >&6; }
7799 { echo "$as_me:$LINENO: result: $ac_macosx" >&5
7800 echo "${ECHO_T}$ac_macosx" >&6; }
7803 ###############################################################################
7807 ###############################################################################
7812 { echo "$as_me:$LINENO: checking for intltool >= " >&5
7813 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6; }
7815 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
7816 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < intltool-update.in`
7818 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < intltool-update.in`
7821 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
7822 { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
7823 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
7825 { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5
7826 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6; }
7831 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'
7832 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'
7833 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'
7834 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
7835 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'
7836 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'
7837 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'
7838 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'
7839 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'
7840 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'
7841 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'
7855 # Use the tools built into the package, not the ones that are installed.
7857 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
7858 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
7859 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
7865 # Extract the first word of "perl", so it can be a program name with args.
7866 set dummy perl; ac_word=$2
7867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7869 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 case $INTLTOOL_PERL in
7874 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881 test -z "$as_dir" && as_dir=.
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7884 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
7885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7895 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
7896 if test -n "$INTLTOOL_PERL"; then
7897 { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
7898 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
7900 { echo "$as_me:$LINENO: result: no" >&5
7901 echo "${ECHO_T}no" >&6; }
7905 if test -z "$INTLTOOL_PERL"; then
7906 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
7907 echo "$as_me: error: perl not found; required for intltool" >&2;}
7908 { (exit 1); exit 1; }; }
7910 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
7911 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
7912 echo "$as_me: error: perl 5.x required for intltool" >&2;}
7913 { (exit 1); exit 1; }; }
7916 # Remove file type tags (using []) from po/POTFILES.
7924 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
7926 ac_config_commands="$ac_config_commands default-1"
7930 GETTEXT_PACKAGE=xscreensaver
7932 cat >>confdefs.h <<_ACEOF
7933 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
7937 cat >>confdefs.h <<_ACEOF
7938 #define PACKAGE "$GETTEXT_PACKAGE"
7943 ALL_LINGUAS="ca da de es et fi fr hu it ja ko nb nl pl pt pt_BR ru sk sv vi wa zh_CN zh_TW"
7944 if test -n "$ac_tool_prefix"; then
7945 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7946 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7949 if test "${ac_cv_prog_RANLIB+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 if test -n "$RANLIB"; then
7953 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7962 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7972 RANLIB=$ac_cv_prog_RANLIB
7973 if test -n "$RANLIB"; then
7974 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7975 echo "${ECHO_T}$RANLIB" >&6; }
7977 { echo "$as_me:$LINENO: result: no" >&5
7978 echo "${ECHO_T}no" >&6; }
7983 if test -z "$ac_cv_prog_RANLIB"; then
7984 ac_ct_RANLIB=$RANLIB
7985 # Extract the first word of "ranlib", so it can be a program name with args.
7986 set dummy ranlib; ac_word=$2
7987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7989 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 if test -n "$ac_ct_RANLIB"; then
7993 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999 test -z "$as_dir" && as_dir=.
8000 for ac_exec_ext in '' $ac_executable_extensions; do
8001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8002 ac_cv_prog_ac_ct_RANLIB="ranlib"
8003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8012 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8013 if test -n "$ac_ct_RANLIB"; then
8014 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8015 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8017 { echo "$as_me:$LINENO: result: no" >&5
8018 echo "${ECHO_T}no" >&6; }
8021 if test "x$ac_ct_RANLIB" = x; then
8024 case $cross_compiling:$ac_tool_warned in
8026 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8027 whose name does not start with the host triplet. If you think this
8028 configuration is useful to you, please write to autoconf@gnu.org." >&5
8029 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8030 whose name does not start with the host triplet. If you think this
8031 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8032 ac_tool_warned=yes ;;
8034 RANLIB=$ac_ct_RANLIB
8037 RANLIB="$ac_cv_prog_RANLIB"
8040 { echo "$as_me:$LINENO: checking for off_t" >&5
8041 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8042 if test "${ac_cv_type_off_t+set}" = set; then
8043 echo $ECHO_N "(cached) $ECHO_C" >&6
8045 cat >conftest.$ac_ext <<_ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8051 $ac_includes_default
8052 typedef off_t ac__type_new_;
8056 if ((ac__type_new_ *) 0)
8058 if (sizeof (ac__type_new_))
8064 rm -f conftest.$ac_objext
8065 if { (ac_try="$ac_compile"
8067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068 *) ac_try_echo=$ac_try;;
8070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071 (eval "$ac_compile") 2>conftest.er1
8073 grep -v '^ *+' conftest.er1 >conftest.err
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } && {
8078 test -z "$ac_c_werror_flag" ||
8079 test ! -s conftest.err
8080 } && test -s conftest.$ac_objext; then
8081 ac_cv_type_off_t=yes
8083 echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8092 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8093 if test $ac_cv_type_off_t = yes; then
8097 cat >>confdefs.h <<_ACEOF
8098 #define off_t long int
8103 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8104 # for constant arguments. Useless!
8105 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8106 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8107 if test "${ac_cv_working_alloca_h+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8110 cat >conftest.$ac_ext <<_ACEOF
8113 cat confdefs.h >>conftest.$ac_ext
8114 cat >>conftest.$ac_ext <<_ACEOF
8115 /* end confdefs.h. */
8120 char *p = (char *) alloca (2 * sizeof (int));
8126 rm -f conftest.$ac_objext conftest$ac_exeext
8127 if { (ac_try="$ac_link"
8129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130 *) ac_try_echo=$ac_try;;
8132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8133 (eval "$ac_link") 2>conftest.er1
8135 grep -v '^ *+' conftest.er1 >conftest.err
8137 cat conftest.err >&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); } && {
8140 test -z "$ac_c_werror_flag" ||
8141 test ! -s conftest.err
8142 } && test -s conftest$ac_exeext &&
8143 $as_test_x conftest$ac_exeext; then
8144 ac_cv_working_alloca_h=yes
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8149 ac_cv_working_alloca_h=no
8152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8153 conftest$ac_exeext conftest.$ac_ext
8155 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8156 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8157 if test $ac_cv_working_alloca_h = yes; then
8159 cat >>confdefs.h <<\_ACEOF
8160 #define HAVE_ALLOCA_H 1
8165 { echo "$as_me:$LINENO: checking for alloca" >&5
8166 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8167 if test "${ac_cv_func_alloca_works+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8170 cat >conftest.$ac_ext <<_ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8177 # define alloca __builtin_alloca
8180 # include <malloc.h>
8181 # define alloca _alloca
8183 # ifdef HAVE_ALLOCA_H
8184 # include <alloca.h>
8189 # ifndef alloca /* predefined by HP cc +Olibcalls */
8200 char *p = (char *) alloca (1);
8206 rm -f conftest.$ac_objext conftest$ac_exeext
8207 if { (ac_try="$ac_link"
8209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8210 *) ac_try_echo=$ac_try;;
8212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8213 (eval "$ac_link") 2>conftest.er1
8215 grep -v '^ *+' conftest.er1 >conftest.err
8217 cat conftest.err >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } && {
8220 test -z "$ac_c_werror_flag" ||
8221 test ! -s conftest.err
8222 } && test -s conftest$ac_exeext &&
8223 $as_test_x conftest$ac_exeext; then
8224 ac_cv_func_alloca_works=yes
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8229 ac_cv_func_alloca_works=no
8232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8233 conftest$ac_exeext conftest.$ac_ext
8235 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8236 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8238 if test $ac_cv_func_alloca_works = yes; then
8240 cat >>confdefs.h <<\_ACEOF
8241 #define HAVE_ALLOCA 1
8245 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8246 # that cause trouble. Some versions do not even contain alloca or
8247 # contain a buggy version. If you still want to use their alloca,
8248 # use ar to extract alloca.o from them instead of compiling alloca.c.
8250 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8252 cat >>confdefs.h <<\_ACEOF
8257 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8258 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8259 if test "${ac_cv_os_cray+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 cat >conftest.$ac_ext <<_ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8268 #if defined CRAY && ! defined CRAY2
8275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8276 $EGREP "webecray" >/dev/null 2>&1; then
8284 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8285 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8286 if test $ac_cv_os_cray = yes; then
8287 for ac_func in _getb67 GETB67 getb67; do
8288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 cat >conftest.$ac_ext <<_ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8302 #define $ac_func innocuous_$ac_func
8304 /* System header to define __stub macros and hopefully few prototypes,
8305 which can conflict with char $ac_func (); below.
8306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8307 <limits.h> exists even on freestanding compilers. */
8310 # include <limits.h>
8312 # include <assert.h>
8317 /* Override any GCC internal prototype to avoid an error.
8318 Use char because int might match the return type of a GCC
8319 builtin and then its argument prototype would still apply. */
8324 /* The GNU C library defines this for functions which it implements
8325 to always fail with ENOSYS. Some functions are actually named
8326 something starting with __ and the normal name is an alias. */
8327 #if defined __stub_$ac_func || defined __stub___$ac_func
8339 rm -f conftest.$ac_objext conftest$ac_exeext
8340 if { (ac_try="$ac_link"
8342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343 *) ac_try_echo=$ac_try;;
8345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346 (eval "$ac_link") 2>conftest.er1
8348 grep -v '^ *+' conftest.er1 >conftest.err
8350 cat conftest.err >&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); } && {
8353 test -z "$ac_c_werror_flag" ||
8354 test ! -s conftest.err
8355 } && test -s conftest$ac_exeext &&
8356 $as_test_x conftest$ac_exeext; then
8357 eval "$as_ac_var=yes"
8359 echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.$ac_ext >&5
8362 eval "$as_ac_var=no"
8365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8366 conftest$ac_exeext conftest.$ac_ext
8368 ac_res=`eval echo '${'$as_ac_var'}'`
8369 { echo "$as_me:$LINENO: result: $ac_res" >&5
8370 echo "${ECHO_T}$ac_res" >&6; }
8371 if test `eval echo '${'$as_ac_var'}'` = yes; then
8373 cat >>confdefs.h <<_ACEOF
8374 #define CRAY_STACKSEG_END $ac_func
8383 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8384 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8385 if test "${ac_cv_c_stack_direction+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 if test "$cross_compiling" = yes; then
8389 ac_cv_c_stack_direction=0
8391 cat >conftest.$ac_ext <<_ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h. */
8397 $ac_includes_default
8399 find_stack_direction ()
8401 static char *addr = 0;
8406 return find_stack_direction ();
8409 return (&dummy > addr) ? 1 : -1;
8415 return find_stack_direction () < 0;
8418 rm -f conftest$ac_exeext
8419 if { (ac_try="$ac_link"
8421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422 *) ac_try_echo=$ac_try;;
8424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425 (eval "$ac_link") 2>&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8429 { (case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_try") 2>&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8438 ac_cv_c_stack_direction=1
8440 echo "$as_me: program exited with status $ac_status" >&5
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8445 ac_cv_c_stack_direction=-1
8447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8452 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8453 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8455 cat >>confdefs.h <<_ACEOF
8456 #define STACK_DIRECTION $ac_cv_c_stack_direction
8464 for ac_header in stdlib.h unistd.h
8466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8473 ac_res=`eval echo '${'$as_ac_Header'}'`
8474 { echo "$as_me:$LINENO: result: $ac_res" >&5
8475 echo "${ECHO_T}$ac_res" >&6; }
8477 # Is the header compilable?
8478 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8480 cat >conftest.$ac_ext <<_ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8486 $ac_includes_default
8487 #include <$ac_header>
8489 rm -f conftest.$ac_objext
8490 if { (ac_try="$ac_compile"
8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496 (eval "$ac_compile") 2>conftest.er1
8498 grep -v '^ *+' conftest.er1 >conftest.err
8500 cat conftest.err >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } && {
8503 test -z "$ac_c_werror_flag" ||
8504 test ! -s conftest.err
8505 } && test -s conftest.$ac_objext; then
8506 ac_header_compiler=yes
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8511 ac_header_compiler=no
8514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8515 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8516 echo "${ECHO_T}$ac_header_compiler" >&6; }
8518 # Is the header present?
8519 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8521 cat >conftest.$ac_ext <<_ACEOF
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h. */
8527 #include <$ac_header>
8529 if { (ac_try="$ac_cpp conftest.$ac_ext"
8531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8532 *) ac_try_echo=$ac_try;;
8534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8537 grep -v '^ *+' conftest.er1 >conftest.err
8539 cat conftest.err >&5
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } >/dev/null && {
8542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8543 test ! -s conftest.err
8545 ac_header_preproc=yes
8547 echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8550 ac_header_preproc=no
8553 rm -f conftest.err conftest.$ac_ext
8554 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8555 echo "${ECHO_T}$ac_header_preproc" >&6; }
8557 # So? What about this header?
8558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8564 ac_header_preproc=yes
8567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8574 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8587 eval "$as_ac_Header=\$ac_header_preproc"
8589 ac_res=`eval echo '${'$as_ac_Header'}'`
8590 { echo "$as_me:$LINENO: result: $ac_res" >&5
8591 echo "${ECHO_T}$ac_res" >&6; }
8594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8595 cat >>confdefs.h <<_ACEOF
8596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8604 for ac_func in getpagesize
8606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8610 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 cat >conftest.$ac_ext <<_ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8620 #define $ac_func innocuous_$ac_func
8622 /* System header to define __stub macros and hopefully few prototypes,
8623 which can conflict with char $ac_func (); below.
8624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8625 <limits.h> exists even on freestanding compilers. */
8628 # include <limits.h>
8630 # include <assert.h>
8635 /* Override any GCC internal prototype to avoid an error.
8636 Use char because int might match the return type of a GCC
8637 builtin and then its argument prototype would still apply. */
8642 /* The GNU C library defines this for functions which it implements
8643 to always fail with ENOSYS. Some functions are actually named
8644 something starting with __ and the normal name is an alias. */
8645 #if defined __stub_$ac_func || defined __stub___$ac_func
8657 rm -f conftest.$ac_objext conftest$ac_exeext
8658 if { (ac_try="$ac_link"
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_link") 2>conftest.er1
8666 grep -v '^ *+' conftest.er1 >conftest.err
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } && {
8671 test -z "$ac_c_werror_flag" ||
8672 test ! -s conftest.err
8673 } && test -s conftest$ac_exeext &&
8674 $as_test_x conftest$ac_exeext; then
8675 eval "$as_ac_var=yes"
8677 echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8680 eval "$as_ac_var=no"
8683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8684 conftest$ac_exeext conftest.$ac_ext
8686 ac_res=`eval echo '${'$as_ac_var'}'`
8687 { echo "$as_me:$LINENO: result: $ac_res" >&5
8688 echo "${ECHO_T}$ac_res" >&6; }
8689 if test `eval echo '${'$as_ac_var'}'` = yes; then
8690 cat >>confdefs.h <<_ACEOF
8691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8697 { echo "$as_me:$LINENO: checking for working mmap" >&5
8698 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
8699 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8702 if test "$cross_compiling" = yes; then
8703 ac_cv_func_mmap_fixed_mapped=no
8705 cat >conftest.$ac_ext <<_ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h. */
8711 $ac_includes_default
8712 /* malloc might have been renamed as rpl_malloc. */
8715 /* Thanks to Mike Haertel and Jim Avera for this test.
8716 Here is a matrix of mmap possibilities:
8717 mmap private not fixed
8718 mmap private fixed at somewhere currently unmapped
8719 mmap private fixed at somewhere already mapped
8720 mmap shared not fixed
8721 mmap shared fixed at somewhere currently unmapped
8722 mmap shared fixed at somewhere already mapped
8723 For private mappings, we should verify that changes cannot be read()
8724 back from the file, nor mmap's back from the file at a different
8725 address. (There have been systems where private was not correctly
8726 implemented like the infamous i386 svr4.0, and systems where the
8727 VM page cache was not coherent with the file system buffer cache
8728 like early versions of FreeBSD and possibly contemporary NetBSD.)
8729 For shared mappings, we should conversely verify that changes get
8730 propagated back to all the places they're supposed to be.
8732 Grep wants private fixed already mapped.
8733 The main things grep needs to know about mmap are:
8734 * does it exist and is it safe to write into the mmap'd area
8735 * how to use it (BSD variants) */
8738 #include <sys/mman.h>
8740 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8744 /* This mess was copied from the GNU getpagesize.h. */
8745 #ifndef HAVE_GETPAGESIZE
8746 /* Assume that all systems that can run configure have sys/param.h. */
8747 # ifndef HAVE_SYS_PARAM_H
8748 # define HAVE_SYS_PARAM_H 1
8751 # ifdef _SC_PAGESIZE
8752 # define getpagesize() sysconf(_SC_PAGESIZE)
8753 # else /* no _SC_PAGESIZE */
8754 # ifdef HAVE_SYS_PARAM_H
8755 # include <sys/param.h>
8756 # ifdef EXEC_PAGESIZE
8757 # define getpagesize() EXEC_PAGESIZE
8758 # else /* no EXEC_PAGESIZE */
8760 # define getpagesize() NBPG * CLSIZE
8763 # endif /* no CLSIZE */
8764 # else /* no NBPG */
8766 # define getpagesize() NBPC
8767 # else /* no NBPC */
8769 # define getpagesize() PAGESIZE
8770 # endif /* PAGESIZE */
8771 # endif /* no NBPC */
8772 # endif /* no NBPG */
8773 # endif /* no EXEC_PAGESIZE */
8774 # else /* no HAVE_SYS_PARAM_H */
8775 # define getpagesize() 8192 /* punt totally */
8776 # endif /* no HAVE_SYS_PARAM_H */
8777 # endif /* no _SC_PAGESIZE */
8779 #endif /* no HAVE_GETPAGESIZE */
8784 char *data, *data2, *data3;
8788 pagesize = getpagesize ();
8790 /* First, make a file with some known garbage in it. */
8791 data = (char *) malloc (pagesize);
8794 for (i = 0; i < pagesize; ++i)
8795 *(data + i) = rand ();
8797 fd = creat ("conftest.mmap", 0600);
8800 if (write (fd, data, pagesize) != pagesize)
8804 /* Next, try to mmap the file at a fixed address which already has
8805 something else allocated at it. If we can, also make sure that
8806 we see the same garbage. */
8807 fd = open ("conftest.mmap", O_RDWR);
8810 data2 = (char *) malloc (2 * pagesize);
8813 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8814 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8815 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8817 for (i = 0; i < pagesize; ++i)
8818 if (*(data + i) != *(data2 + i))
8821 /* Finally, make sure that changes to the mapped area do not
8822 percolate back to the file as seen by read(). (This is a bug on
8823 some variants of i386 svr4.0.) */
8824 for (i = 0; i < pagesize; ++i)
8825 *(data2 + i) = *(data2 + i) + 1;
8826 data3 = (char *) malloc (pagesize);
8829 if (read (fd, data3, pagesize) != pagesize)
8831 for (i = 0; i < pagesize; ++i)
8832 if (*(data + i) != *(data3 + i))
8838 rm -f conftest$ac_exeext
8839 if { (ac_try="$ac_link"
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_link") 2>&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8849 { (case "(($ac_try" in
8850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851 *) ac_try_echo=$ac_try;;
8853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854 (eval "$ac_try") 2>&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; }; then
8858 ac_cv_func_mmap_fixed_mapped=yes
8860 echo "$as_me: program exited with status $ac_status" >&5
8861 echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8865 ac_cv_func_mmap_fixed_mapped=no
8867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8872 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8873 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
8874 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8876 cat >>confdefs.h <<\_ACEOF
8892 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
8893 unistd.h sys/param.h
8895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 ac_res=`eval echo '${'$as_ac_Header'}'`
8903 { echo "$as_me:$LINENO: result: $ac_res" >&5
8904 echo "${ECHO_T}$ac_res" >&6; }
8906 # Is the header compilable?
8907 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8909 cat >conftest.$ac_ext <<_ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h. */
8915 $ac_includes_default
8916 #include <$ac_header>
8918 rm -f conftest.$ac_objext
8919 if { (ac_try="$ac_compile"
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925 (eval "$ac_compile") 2>conftest.er1
8927 grep -v '^ *+' conftest.er1 >conftest.err
8929 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } && {
8932 test -z "$ac_c_werror_flag" ||
8933 test ! -s conftest.err
8934 } && test -s conftest.$ac_objext; then
8935 ac_header_compiler=yes
8937 echo "$as_me: failed program was:" >&5
8938 sed 's/^/| /' conftest.$ac_ext >&5
8940 ac_header_compiler=no
8943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8945 echo "${ECHO_T}$ac_header_compiler" >&6; }
8947 # Is the header present?
8948 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8950 cat >conftest.$ac_ext <<_ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h. */
8956 #include <$ac_header>
8958 if { (ac_try="$ac_cpp conftest.$ac_ext"
8960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8961 *) ac_try_echo=$ac_try;;
8963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8966 grep -v '^ *+' conftest.er1 >conftest.err
8968 cat conftest.err >&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } >/dev/null && {
8971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8972 test ! -s conftest.err
8974 ac_header_preproc=yes
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8979 ac_header_preproc=no
8982 rm -f conftest.err conftest.$ac_ext
8983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8984 echo "${ECHO_T}$ac_header_preproc" >&6; }
8986 # So? What about this header?
8987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8993 ac_header_preproc=yes
8996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8999 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9003 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 eval "$as_ac_Header=\$ac_header_preproc"
9018 ac_res=`eval echo '${'$as_ac_Header'}'`
9019 { echo "$as_me:$LINENO: result: $ac_res" >&5
9020 echo "${ECHO_T}$ac_res" >&6; }
9023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9024 cat >>confdefs.h <<_ACEOF
9025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9043 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
9044 strdup __argz_count __argz_stringify __argz_next
9046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9047 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
9052 cat >conftest.$ac_ext <<_ACEOF
9055 cat confdefs.h >>conftest.$ac_ext
9056 cat >>conftest.$ac_ext <<_ACEOF
9057 /* end confdefs.h. */
9058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9060 #define $ac_func innocuous_$ac_func
9062 /* System header to define __stub macros and hopefully few prototypes,
9063 which can conflict with char $ac_func (); below.
9064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9065 <limits.h> exists even on freestanding compilers. */
9068 # include <limits.h>
9070 # include <assert.h>
9075 /* Override any GCC internal prototype to avoid an error.
9076 Use char because int might match the return type of a GCC
9077 builtin and then its argument prototype would still apply. */
9082 /* The GNU C library defines this for functions which it implements
9083 to always fail with ENOSYS. Some functions are actually named
9084 something starting with __ and the normal name is an alias. */
9085 #if defined __stub_$ac_func || defined __stub___$ac_func
9097 rm -f conftest.$ac_objext conftest$ac_exeext
9098 if { (ac_try="$ac_link"
9100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101 *) ac_try_echo=$ac_try;;
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104 (eval "$ac_link") 2>conftest.er1
9106 grep -v '^ *+' conftest.er1 >conftest.err
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } && {
9111 test -z "$ac_c_werror_flag" ||
9112 test ! -s conftest.err
9113 } && test -s conftest$ac_exeext &&
9114 $as_test_x conftest$ac_exeext; then
9115 eval "$as_ac_var=yes"
9117 echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9120 eval "$as_ac_var=no"
9123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9124 conftest$ac_exeext conftest.$ac_ext
9126 ac_res=`eval echo '${'$as_ac_var'}'`
9127 { echo "$as_me:$LINENO: result: $ac_res" >&5
9128 echo "${ECHO_T}$ac_res" >&6; }
9129 if test `eval echo '${'$as_ac_var'}'` = yes; then
9130 cat >>confdefs.h <<_ACEOF
9131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9138 if test $ac_cv_header_locale_h = yes; then
9139 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9140 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9141 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9144 cat >conftest.$ac_ext <<_ACEOF
9147 cat confdefs.h >>conftest.$ac_ext
9148 cat >>conftest.$ac_ext <<_ACEOF
9149 /* end confdefs.h. */
9159 rm -f conftest.$ac_objext conftest$ac_exeext
9160 if { (ac_try="$ac_link"
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_link") 2>conftest.er1
9168 grep -v '^ *+' conftest.er1 >conftest.err
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } && {
9173 test -z "$ac_c_werror_flag" ||
9174 test ! -s conftest.err
9175 } && test -s conftest$ac_exeext &&
9176 $as_test_x conftest$ac_exeext; then
9177 am_cv_val_LC_MESSAGES=yes
9179 echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.$ac_ext >&5
9182 am_cv_val_LC_MESSAGES=no
9185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9186 conftest$ac_exeext conftest.$ac_ext
9188 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9189 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9190 if test $am_cv_val_LC_MESSAGES = yes; then
9192 cat >>confdefs.h <<\_ACEOF
9193 #define HAVE_LC_MESSAGES 1
9201 nls_cv_force_use_gnu_gettext="no"
9203 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9204 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9206 nls_cv_header_libgt=
9209 if test "${ac_cv_header_libintl_h+set}" = set; then
9210 { echo "$as_me:$LINENO: checking for libintl.h" >&5
9211 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
9212 if test "${ac_cv_header_libintl_h+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9216 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
9218 # Is the header compilable?
9219 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
9220 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
9221 cat >conftest.$ac_ext <<_ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 $ac_includes_default
9228 #include <libintl.h>
9230 rm -f conftest.$ac_objext
9231 if { (ac_try="$ac_compile"
9233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9234 *) ac_try_echo=$ac_try;;
9236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237 (eval "$ac_compile") 2>conftest.er1
9239 grep -v '^ *+' conftest.er1 >conftest.err
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } && {
9244 test -z "$ac_c_werror_flag" ||
9245 test ! -s conftest.err
9246 } && test -s conftest.$ac_objext; then
9247 ac_header_compiler=yes
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.$ac_ext >&5
9252 ac_header_compiler=no
9255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9257 echo "${ECHO_T}$ac_header_compiler" >&6; }
9259 # Is the header present?
9260 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
9261 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
9262 cat >conftest.$ac_ext <<_ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h. */
9268 #include <libintl.h>
9270 if { (ac_try="$ac_cpp conftest.$ac_ext"
9272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9278 grep -v '^ *+' conftest.er1 >conftest.err
9280 cat conftest.err >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } >/dev/null && {
9283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9284 test ! -s conftest.err
9286 ac_header_preproc=yes
9288 echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9291 ac_header_preproc=no
9294 rm -f conftest.err conftest.$ac_ext
9295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9296 echo "${ECHO_T}$ac_header_preproc" >&6; }
9298 # So? What about this header?
9299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9301 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9302 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
9304 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
9305 ac_header_preproc=yes
9308 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
9309 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
9311 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
9313 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
9315 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9316 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
9317 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
9318 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
9319 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
9323 { echo "$as_me:$LINENO: checking for libintl.h" >&5
9324 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
9325 if test "${ac_cv_header_libintl_h+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9328 ac_cv_header_libintl_h=$ac_header_preproc
9330 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9331 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
9334 if test $ac_cv_header_libintl_h = yes; then
9335 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
9336 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
9337 if test "${gt_cv_func_dgettext_libc+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 cat >conftest.$ac_ext <<_ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 #include <libintl.h>
9350 return (int) dgettext ("","")
9355 rm -f conftest.$ac_objext conftest$ac_exeext
9356 if { (ac_try="$ac_link"
9358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9359 *) ac_try_echo=$ac_try;;
9361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9362 (eval "$ac_link") 2>conftest.er1
9364 grep -v '^ *+' conftest.er1 >conftest.err
9366 cat conftest.err >&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); } && {
9369 test -z "$ac_c_werror_flag" ||
9370 test ! -s conftest.err
9371 } && test -s conftest$ac_exeext &&
9372 $as_test_x conftest$ac_exeext; then
9373 gt_cv_func_dgettext_libc=yes
9375 echo "$as_me: failed program was:" >&5
9376 sed 's/^/| /' conftest.$ac_ext >&5
9378 gt_cv_func_dgettext_libc=no
9381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9382 conftest$ac_exeext conftest.$ac_ext
9384 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
9385 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
9387 if test "$gt_cv_func_dgettext_libc" != "yes"; then
9388 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
9389 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
9390 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9393 ac_check_lib_save_LIBS=$LIBS
9395 cat >conftest.$ac_ext <<_ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9402 /* Override any GCC internal prototype to avoid an error.
9403 Use char because int might match the return type of a GCC
9404 builtin and then its argument prototype would still apply. */
9408 char bindtextdomain ();
9412 return bindtextdomain ();
9417 rm -f conftest.$ac_objext conftest$ac_exeext
9418 if { (ac_try="$ac_link"
9420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9421 *) ac_try_echo=$ac_try;;
9423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9424 (eval "$ac_link") 2>conftest.er1
9426 grep -v '^ *+' conftest.er1 >conftest.err
9428 cat conftest.err >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } && {
9431 test -z "$ac_c_werror_flag" ||
9432 test ! -s conftest.err
9433 } && test -s conftest$ac_exeext &&
9434 $as_test_x conftest$ac_exeext; then
9435 ac_cv_lib_intl_bindtextdomain=yes
9437 echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9440 ac_cv_lib_intl_bindtextdomain=no
9443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9444 conftest$ac_exeext conftest.$ac_ext
9445 LIBS=$ac_check_lib_save_LIBS
9447 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
9448 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
9449 if test $ac_cv_lib_intl_bindtextdomain = yes; then
9450 { echo "$as_me:$LINENO: checking for dgettext in libintl" >&5
9451 echo $ECHO_N "checking for dgettext in libintl... $ECHO_C" >&6; }
9452 if test "${gt_cv_func_dgettext_libintl+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9455 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
9456 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
9457 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
9458 echo $ECHO_N "(cached) $ECHO_C" >&6
9460 ac_check_lib_save_LIBS=$LIBS
9462 cat >conftest.$ac_ext <<_ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h. */
9469 /* Override any GCC internal prototype to avoid an error.
9470 Use char because int might match the return type of a GCC
9471 builtin and then its argument prototype would still apply. */
9484 rm -f conftest.$ac_objext conftest$ac_exeext
9485 if { (ac_try="$ac_link"
9487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9488 *) ac_try_echo=$ac_try;;
9490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9491 (eval "$ac_link") 2>conftest.er1
9493 grep -v '^ *+' conftest.er1 >conftest.err
9495 cat conftest.err >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); } && {
9498 test -z "$ac_c_werror_flag" ||
9499 test ! -s conftest.err
9500 } && test -s conftest$ac_exeext &&
9501 $as_test_x conftest$ac_exeext; then
9502 ac_cv_lib_intl_dgettext=yes
9504 echo "$as_me: failed program was:" >&5
9505 sed 's/^/| /' conftest.$ac_ext >&5
9507 ac_cv_lib_intl_dgettext=no
9510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9511 conftest$ac_exeext conftest.$ac_ext
9512 LIBS=$ac_check_lib_save_LIBS
9514 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
9515 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
9516 if test $ac_cv_lib_intl_dgettext = yes; then
9517 gt_cv_func_dgettext_libintl=yes
9519 gt_cv_func_dgettext_libintl=no
9523 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libintl" >&5
9524 echo "${ECHO_T}$gt_cv_func_dgettext_libintl" >&6; }
9529 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
9530 LIBS="$LIBS -lintl";
9533 if test "$gt_cv_func_dgettext_libc" = "yes" \
9534 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
9536 cat >>confdefs.h <<\_ACEOF
9537 #define HAVE_GETTEXT 1
9540 # Extract the first word of "msgfmt", so it can be a program name with args.
9541 set dummy msgfmt; ac_word=$2
9542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9544 if test "${ac_cv_path_MSGFMT+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9553 for ac_dir in $PATH; do
9554 test -z "$ac_dir" && ac_dir=.
9555 if test -f $ac_dir/$ac_word; then
9556 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
9557 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
9563 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
9567 MSGFMT="$ac_cv_path_MSGFMT"
9568 if test -n "$MSGFMT"; then
9569 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
9570 echo "${ECHO_T}$MSGFMT" >&6; }
9572 { echo "$as_me:$LINENO: result: no" >&5
9573 echo "${ECHO_T}no" >&6; }
9575 if test "$MSGFMT" != "no"; then
9577 for ac_func in dcgettext
9579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9580 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9582 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9585 cat >conftest.$ac_ext <<_ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h. */
9591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9593 #define $ac_func innocuous_$ac_func
9595 /* System header to define __stub macros and hopefully few prototypes,
9596 which can conflict with char $ac_func (); below.
9597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9598 <limits.h> exists even on freestanding compilers. */
9601 # include <limits.h>
9603 # include <assert.h>
9608 /* Override any GCC internal prototype to avoid an error.
9609 Use char because int might match the return type of a GCC
9610 builtin and then its argument prototype would still apply. */
9615 /* The GNU C library defines this for functions which it implements
9616 to always fail with ENOSYS. Some functions are actually named
9617 something starting with __ and the normal name is an alias. */
9618 #if defined __stub_$ac_func || defined __stub___$ac_func
9630 rm -f conftest.$ac_objext conftest$ac_exeext
9631 if { (ac_try="$ac_link"
9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634 *) ac_try_echo=$ac_try;;
9636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637 (eval "$ac_link") 2>conftest.er1
9639 grep -v '^ *+' conftest.er1 >conftest.err
9641 cat conftest.err >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } && {
9644 test -z "$ac_c_werror_flag" ||
9645 test ! -s conftest.err
9646 } && test -s conftest$ac_exeext &&
9647 $as_test_x conftest$ac_exeext; then
9648 eval "$as_ac_var=yes"
9650 echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9653 eval "$as_ac_var=no"
9656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9657 conftest$ac_exeext conftest.$ac_ext
9659 ac_res=`eval echo '${'$as_ac_var'}'`
9660 { echo "$as_me:$LINENO: result: $ac_res" >&5
9661 echo "${ECHO_T}$ac_res" >&6; }
9662 if test `eval echo '${'$as_ac_var'}'` = yes; then
9663 cat >>confdefs.h <<_ACEOF
9664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9670 # Extract the first word of "gmsgfmt", so it can be a program name with args.
9671 set dummy gmsgfmt; ac_word=$2
9672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9674 if test "${ac_cv_path_GMSGFMT+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9679 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
9682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9686 test -z "$as_dir" && as_dir=.
9687 for ac_exec_ext in '' $ac_executable_extensions; do
9688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9689 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
9690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9697 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9701 GMSGFMT=$ac_cv_path_GMSGFMT
9702 if test -n "$GMSGFMT"; then
9703 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
9704 echo "${ECHO_T}$GMSGFMT" >&6; }
9706 { echo "$as_me:$LINENO: result: no" >&5
9707 echo "${ECHO_T}no" >&6; }
9711 # Extract the first word of "xgettext", so it can be a program name with args.
9712 set dummy xgettext; ac_word=$2
9713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9715 if test "${ac_cv_path_XGETTEXT+set}" = set; then
9716 echo $ECHO_N "(cached) $ECHO_C" >&6
9720 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9724 for ac_dir in $PATH; do
9725 test -z "$ac_dir" && ac_dir=.
9726 if test -f $ac_dir/$ac_word; then
9727 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
9728 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
9734 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9738 XGETTEXT="$ac_cv_path_XGETTEXT"
9739 if test -n "$XGETTEXT"; then
9740 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
9741 echo "${ECHO_T}$XGETTEXT" >&6; }
9743 { echo "$as_me:$LINENO: result: no" >&5
9744 echo "${ECHO_T}no" >&6; }
9747 cat >conftest.$ac_ext <<_ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9757 extern int _nl_msg_cat_cntr;
9758 return _nl_msg_cat_cntr
9763 rm -f conftest.$ac_objext conftest$ac_exeext
9764 if { (ac_try="$ac_link"
9766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9767 *) ac_try_echo=$ac_try;;
9769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9770 (eval "$ac_link") 2>conftest.er1
9772 grep -v '^ *+' conftest.er1 >conftest.err
9774 cat conftest.err >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); } && {
9777 test -z "$ac_c_werror_flag" ||
9778 test ! -s conftest.err
9779 } && test -s conftest$ac_exeext &&
9780 $as_test_x conftest$ac_exeext; then
9784 echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9792 conftest$ac_exeext conftest.$ac_ext
9797 # Added by Martin Baulig 12/15/98 for libc5 systems
9798 if test "$gt_cv_func_dgettext_libc" != "yes" \
9799 && test "$gt_cv_func_dgettext_libintl" = "yes"; then
9801 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
9808 if test "$CATOBJEXT" = "NONE"; then
9809 nls_cv_use_gnu_gettext=yes
9813 if test "$nls_cv_use_gnu_gettext" != "yes"; then
9815 cat >>confdefs.h <<\_ACEOF
9816 #define ENABLE_NLS 1
9823 if test "$XGETTEXT" != ":"; then
9824 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9827 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
9828 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
9833 # We need to process the po/ directory.
9836 ac_config_commands="$ac_config_commands default-2"
9839 for lang in $ALL_LINGUAS; do
9840 GMOFILES="$GMOFILES $lang.gmo"
9841 POFILES="$POFILES $lang.po"
9856 if test "x$CATOBJEXT" != "x"; then
9857 if test "x$ALL_LINGUAS" = "x"; then
9860 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9861 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
9863 for lang in ${LINGUAS=$ALL_LINGUAS}; do
9864 case "$ALL_LINGUAS" in
9865 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
9868 LINGUAS=$NEW_LINGUAS
9869 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
9870 echo "${ECHO_T}$LINGUAS" >&6; }
9873 if test -n "$LINGUAS"; then
9874 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9878 test -d po || mkdir po
9879 if test "$CATOBJEXT" = ".cat"; then
9880 if test "${ac_cv_header_linux_version_h+set}" = set; then
9881 { echo "$as_me:$LINENO: checking for linux/version.h" >&5
9882 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
9883 if test "${ac_cv_header_linux_version_h+set}" = set; then
9884 echo $ECHO_N "(cached) $ECHO_C" >&6
9886 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9887 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
9889 # Is the header compilable?
9890 { echo "$as_me:$LINENO: checking linux/version.h usability" >&5
9891 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6; }
9892 cat >conftest.$ac_ext <<_ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9898 $ac_includes_default
9899 #include <linux/version.h>
9901 rm -f conftest.$ac_objext
9902 if { (ac_try="$ac_compile"
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_compile") 2>conftest.er1
9910 grep -v '^ *+' conftest.er1 >conftest.err
9912 cat conftest.err >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } && {
9915 test -z "$ac_c_werror_flag" ||
9916 test ! -s conftest.err
9917 } && test -s conftest.$ac_objext; then
9918 ac_header_compiler=yes
9920 echo "$as_me: failed program was:" >&5
9921 sed 's/^/| /' conftest.$ac_ext >&5
9923 ac_header_compiler=no
9926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9928 echo "${ECHO_T}$ac_header_compiler" >&6; }
9930 # Is the header present?
9931 { echo "$as_me:$LINENO: checking linux/version.h presence" >&5
9932 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6; }
9933 cat >conftest.$ac_ext <<_ACEOF
9936 cat confdefs.h >>conftest.$ac_ext
9937 cat >>conftest.$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9939 #include <linux/version.h>
9941 if { (ac_try="$ac_cpp conftest.$ac_ext"
9943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944 *) ac_try_echo=$ac_try;;
9946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9949 grep -v '^ *+' conftest.er1 >conftest.err
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } >/dev/null && {
9954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9955 test ! -s conftest.err
9957 ac_header_preproc=yes
9959 echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.$ac_ext >&5
9962 ac_header_preproc=no
9965 rm -f conftest.err conftest.$ac_ext
9966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9967 echo "${ECHO_T}$ac_header_preproc" >&6; }
9969 # So? What about this header?
9970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9972 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9973 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9974 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
9975 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
9976 ac_header_preproc=yes
9979 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
9980 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
9981 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
9982 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
9983 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
9984 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
9985 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
9986 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
9987 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
9988 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
9989 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
9990 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
9994 { echo "$as_me:$LINENO: checking for linux/version.h" >&5
9995 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6; }
9996 if test "${ac_cv_header_linux_version_h+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 ac_cv_header_linux_version_h=$ac_header_preproc
10001 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
10002 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6; }
10005 if test $ac_cv_header_linux_version_h = yes; then
10013 sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
10018 # jwz: fuck this! it puts hardcoded pathnames into the generated Makefiles!
10020 # if test -n "$ac_aux_dir"; then
10021 # MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
10023 if test -z "$MKINSTALLDIRS"; then
10024 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10027 # jwz: you know what, screw it. Let's just use the version that I
10028 # already computed in configure.in, instead of this version that came
10029 # with the i18n crud, ok?
10030 MKINSTALLDIRS="$INSTALL_DIRS"
10035 test -d po || mkdir po
10036 if test "x$srcdir" != "x."; then
10037 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
10038 posrcprefix="$srcdir/"
10040 posrcprefix="../$srcdir/"
10046 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
10047 < $srcdir/po/POTFILES.in > po/POTFILES
10049 MKINSTALLDIRS="$INSTALL_DIRS"
10052 ###############################################################################
10054 # Check for -lXmu (some fucked up vendors don't ship it...)
10056 ###############################################################################
10060 ac_save_CPPFLAGS="$CPPFLAGS"
10061 if test \! -z "$includedir" ; then
10062 CPPFLAGS="$CPPFLAGS -I$includedir"
10064 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10065 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10066 { echo "$as_me:$LINENO: checking for X11/Xmu/Error.h" >&5
10067 echo $ECHO_N "checking for X11/Xmu/Error.h... $ECHO_C" >&6; }
10068 if test "${ac_cv_header_X11_Xmu_Error_h+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 cat >conftest.$ac_ext <<_ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h. */
10077 #include <stdlib.h>
10079 #include <X11/Intrinsic.h>
10081 #include <X11/Xmu/Error.h>
10083 rm -f conftest.$ac_objext
10084 if { (ac_try="$ac_compile"
10085 case "(($ac_try" in
10086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087 *) ac_try_echo=$ac_try;;
10089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10090 (eval "$ac_compile") 2>conftest.er1
10092 grep -v '^ *+' conftest.er1 >conftest.err
10094 cat conftest.err >&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } && {
10097 test -z "$ac_c_werror_flag" ||
10098 test ! -s conftest.err
10099 } && test -s conftest.$ac_objext; then
10100 ac_cv_header_X11_Xmu_Error_h=yes
10102 echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10105 ac_cv_header_X11_Xmu_Error_h=no
10108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10110 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xmu_Error_h" >&5
10111 echo "${ECHO_T}$ac_cv_header_X11_Xmu_Error_h" >&6; }
10112 if test $ac_cv_header_X11_Xmu_Error_h = yes; then
10117 CPPFLAGS="$ac_save_CPPFLAGS"
10118 if test "$have_xmu" = no ; then
10119 XMU_SRCS='$(UTILS_SRC)/xmu.c'
10120 XMU_OBJS='$(UTILS_BIN)/xmu.o'
10126 cat >>confdefs.h <<\_ACEOF
10133 ###############################################################################
10135 # Check for the SunOS 4.1.x _get_wmShellWidgetClass bug.
10136 # See comp.windows.x FAQ question 124. The right fix is to
10137 # get OpenWindows 3.0 patches 100512-02 and 100573-03.
10139 ###############################################################################
10141 if test "$have_xmu" = yes ; then
10144 { echo "$as_me:$LINENO: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
10145 echo $ECHO_N "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug... $ECHO_C" >&6; }
10146 if test "${ac_cv_sunos_xmu_bug+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 ac_save_LDFLAGS="$LDFLAGS"
10150 if test \! -z "$x_libraries" ; then
10151 LDFLAGS="$LDFLAGS -L$x_libraries"
10153 # Note: this trick never works! (Generally.)
10154 # We're only getting away with using AC_TRY_LINK
10155 # with X libraries because we know it's SunOS.
10156 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
10157 cat >conftest.$ac_ext <<_ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10172 rm -f conftest.$ac_objext conftest$ac_exeext
10173 if { (ac_try="$ac_link"
10174 case "(($ac_try" in
10175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176 *) ac_try_echo=$ac_try;;
10178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179 (eval "$ac_link") 2>conftest.er1
10181 grep -v '^ *+' conftest.er1 >conftest.err
10183 cat conftest.err >&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } && {
10186 test -z "$ac_c_werror_flag" ||
10187 test ! -s conftest.err
10188 } && test -s conftest$ac_exeext &&
10189 $as_test_x conftest$ac_exeext; then
10190 ac_cv_sunos_xmu_bug=no
10192 echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.$ac_ext >&5
10195 ac_cv_sunos_xmu_bug=yes
10198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10199 conftest$ac_exeext conftest.$ac_ext
10200 LDFLAGS="$ac_save_LDFLAGS"
10202 { echo "$as_me:$LINENO: result: $ac_cv_sunos_xmu_bug" >&5
10203 echo "${ECHO_T}$ac_cv_sunos_xmu_bug" >&6; }
10204 if test "$ac_cv_sunos_xmu_bug" = yes ; then
10205 { echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
10206 echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6; }
10207 if test "${ac_cv_ld_static+set}" = set; then
10208 echo $ECHO_N "(cached) $ECHO_C" >&6
10210 ac_save_LDFLAGS="$LDFLAGS"
10211 LDFLAGS="$LDFLAGS -static"
10212 cat >conftest.$ac_ext <<_ACEOF
10215 cat confdefs.h >>conftest.$ac_ext
10216 cat >>conftest.$ac_ext <<_ACEOF
10217 /* end confdefs.h. */
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (ac_try="$ac_link"
10229 case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_link") 2>conftest.er1
10236 grep -v '^ *+' conftest.er1 >conftest.err
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } && {
10241 test -z "$ac_c_werror_flag" ||
10242 test ! -s conftest.err
10243 } && test -s conftest$ac_exeext &&
10244 $as_test_x conftest$ac_exeext; then
10245 ac_cv_ld_static=yes
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10254 conftest$ac_exeext conftest.$ac_ext
10255 LDFLAGS="$ac_save_LDFLAGS"
10257 { echo "$as_me:$LINENO: result: $ac_cv_ld_static" >&5
10258 echo "${ECHO_T}$ac_cv_ld_static" >&6; }
10259 if test "$ac_cv_ld_static" = yes ; then
10260 LDFLAGS="$LDFLAGS -static"
10262 LDFLAGS="$LDFLAGS -Bstatic"
10270 ###############################################################################
10272 # Handle the --with-hackdir option
10274 ###############################################################################
10277 with_hackdir_req=unspecified
10279 # Check whether --with-hackdir was given.
10280 if test "${with_hackdir+set}" = set; then
10281 withval=$with_hackdir; with_hackdir="$withval"; with_hackdir_req="$withval"
10287 if test x"$with_hackdir" = xyes; then
10288 HACKDIR='${libexecdir}/xscreensaver'
10289 elif test x"$with_hackdir" = xno; then
10290 HACKDIR='${bindir}'
10292 HACKDIR=$with_hackdir
10295 # canonicalize slashes.
10296 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
10298 # Expand HACKDIR as HACKDIR_FULL
10299 HACKDIR_FULL=`eval eval eval eval eval eval eval eval eval echo $HACKDIR`
10301 # This option used to be called --enable-subdir; make sure that is no longer
10302 # used, since configure brain-damagedly ignores unknown --enable options.
10305 # Check whether --enable-subdir was given.
10306 if test "${enable_subdir+set}" = set; then
10307 enableval=$enable_subdir; obsolete_enable=yes
10310 if test -n "$obsolete_enable"; then
10311 echo "error: the --enable-subdir option has been replaced with"
10312 echo " the new --with-hackdir option; see \`configure --help'"
10313 echo " for more information."
10318 ###############################################################################
10320 # Handle the --with-configdir option
10321 # Help for --with-x-app-defaults option added..
10323 ###############################################################################
10326 with_configdir_req=unspecified
10328 # Check whether --with-configdir was given.
10329 if test "${with_configdir+set}" = set; then
10330 withval=$with_configdir; with_configdir="$withval"; with_configdir_req="$withval"
10336 if test x"$with_configdir" = xyes; then
10337 HACK_CONF_DIR='${datadir}/xscreensaver/config'
10338 elif test x"$with_configdir" = xno; then
10339 echo "error: must be yes, or a pathname: --with-configdir=$with_configdir"
10342 # there must be a better way than this...
10343 if test -z "`echo $with_configdir | sed 's@^/.*@@'`" ; then
10345 HACK_CONF_DIR=$with_configdir
10348 HACK_CONF_DIR="\${exec_prefix}$with_configdir"
10355 ###############################################################################
10357 # Check for the SGI SCREEN_SAVER server extension.
10359 ###############################################################################
10362 with_sgi_req=unspecified
10364 # Check whether --with-sgi-ext was given.
10365 if test "${with_sgi_ext+set}" = set; then
10366 withval=$with_sgi_ext; with_sgi="$withval"; with_sgi_req="$withval"
10373 case "$with_sgi" in
10378 { echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER headers" >&5
10379 echo $ECHO_N "checking for SGI SCREEN_SAVER headers... $ECHO_C" >&6; }
10380 d=$with_sgi/include
10381 if test -d $d; then
10382 X_CFLAGS="-I$d $X_CFLAGS"
10383 { echo "$as_me:$LINENO: result: $d" >&5
10384 echo "${ECHO_T}$d" >&6; }
10386 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10387 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10390 { echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER libs" >&5
10391 echo $ECHO_N "checking for SGI SCREEN_SAVER libs... $ECHO_C" >&6; }
10393 if test -d $d; then
10394 X_LIBS="-L$d $X_LIBS"
10395 { echo "$as_me:$LINENO: result: $d" >&5
10396 echo "${ECHO_T}$d" >&6; }
10398 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10399 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10402 # replace the directory string with "yes".
10404 with_sgi=$with_sgi_req
10409 echo "error: argument to --with-sgi-ext must be \"yes\", \"no\", or a directory."
10410 echo " If it is a directory, then \`DIR/include' will be added to"
10411 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10417 if test "$with_sgi" = yes; then
10419 ac_save_CPPFLAGS="$CPPFLAGS"
10420 if test \! -z "$includedir" ; then
10421 CPPFLAGS="$CPPFLAGS -I$includedir"
10423 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10424 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10425 { echo "$as_me:$LINENO: checking for X11/extensions/XScreenSaver.h" >&5
10426 echo $ECHO_N "checking for X11/extensions/XScreenSaver.h... $ECHO_C" >&6; }
10427 if test "${ac_cv_header_X11_extensions_XScreenSaver_h+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10430 cat >conftest.$ac_ext <<_ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10436 #include <X11/Xlib.h>
10438 #include <X11/extensions/XScreenSaver.h>
10440 rm -f conftest.$ac_objext
10441 if { (ac_try="$ac_compile"
10442 case "(($ac_try" in
10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447 (eval "$ac_compile") 2>conftest.er1
10449 grep -v '^ *+' conftest.er1 >conftest.err
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } && {
10454 test -z "$ac_c_werror_flag" ||
10455 test ! -s conftest.err
10456 } && test -s conftest.$ac_objext; then
10457 ac_cv_header_X11_extensions_XScreenSaver_h=yes
10459 echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.$ac_ext >&5
10462 ac_cv_header_X11_extensions_XScreenSaver_h=no
10465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10467 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XScreenSaver_h" >&5
10468 echo "${ECHO_T}$ac_cv_header_X11_extensions_XScreenSaver_h" >&6; }
10469 if test $ac_cv_header_X11_extensions_XScreenSaver_h = yes; then
10471 cat >>confdefs.h <<\_ACEOF
10472 #define HAVE_SGI_SAVER_EXTENSION 1
10478 CPPFLAGS="$ac_save_CPPFLAGS"
10480 elif test "$with_sgi" != no; then
10481 echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
10486 ###############################################################################
10488 # Check for the XIDLE server extension.
10490 ###############################################################################
10493 with_xidle_req=unspecified
10495 # Check whether --with-xidle-ext was given.
10496 if test "${with_xidle_ext+set}" = set; then
10497 withval=$with_xidle_ext; with_xidle="$withval"; with_xidle_req="$withval"
10504 case "$with_xidle" in
10509 { echo "$as_me:$LINENO: checking for XIDLE headers" >&5
10510 echo $ECHO_N "checking for XIDLE headers... $ECHO_C" >&6; }
10511 d=$with_xidle/include
10512 if test -d $d; then
10513 X_CFLAGS="-I$d $X_CFLAGS"
10514 { echo "$as_me:$LINENO: result: $d" >&5
10515 echo "${ECHO_T}$d" >&6; }
10517 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10518 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10521 { echo "$as_me:$LINENO: checking for XIDLE libs" >&5
10522 echo $ECHO_N "checking for XIDLE libs... $ECHO_C" >&6; }
10524 if test -d $d; then
10525 X_LIBS="-L$d $X_LIBS"
10526 { echo "$as_me:$LINENO: result: $d" >&5
10527 echo "${ECHO_T}$d" >&6; }
10529 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10530 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10533 # replace the directory string with "yes".
10534 with_xidle_req="yes"
10535 with_xidle=$with_xidle_req
10540 echo "error: argument to --with-xidle-ext must be \"yes\", \"no\", or a directory."
10541 echo " If it is a directory, then \`DIR/include' will be added to"
10542 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10548 if test "$with_xidle" = yes; then
10550 ac_save_CPPFLAGS="$CPPFLAGS"
10551 if test \! -z "$includedir" ; then
10552 CPPFLAGS="$CPPFLAGS -I$includedir"
10554 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10555 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10556 { echo "$as_me:$LINENO: checking for X11/extensions/xidle.h" >&5
10557 echo $ECHO_N "checking for X11/extensions/xidle.h... $ECHO_C" >&6; }
10558 if test "${ac_cv_header_X11_extensions_xidle_h+set}" = set; then
10559 echo $ECHO_N "(cached) $ECHO_C" >&6
10561 cat >conftest.$ac_ext <<_ACEOF
10564 cat confdefs.h >>conftest.$ac_ext
10565 cat >>conftest.$ac_ext <<_ACEOF
10566 /* end confdefs.h. */
10567 #include <X11/Xlib.h>
10569 #include <X11/extensions/xidle.h>
10571 rm -f conftest.$ac_objext
10572 if { (ac_try="$ac_compile"
10573 case "(($ac_try" in
10574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575 *) ac_try_echo=$ac_try;;
10577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10578 (eval "$ac_compile") 2>conftest.er1
10580 grep -v '^ *+' conftest.er1 >conftest.err
10582 cat conftest.err >&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); } && {
10585 test -z "$ac_c_werror_flag" ||
10586 test ! -s conftest.err
10587 } && test -s conftest.$ac_objext; then
10588 ac_cv_header_X11_extensions_xidle_h=yes
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10593 ac_cv_header_X11_extensions_xidle_h=no
10596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10598 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xidle_h" >&5
10599 echo "${ECHO_T}$ac_cv_header_X11_extensions_xidle_h" >&6; }
10600 if test $ac_cv_header_X11_extensions_xidle_h = yes; then
10602 cat >>confdefs.h <<\_ACEOF
10603 #define HAVE_XIDLE_EXTENSION 1
10609 CPPFLAGS="$ac_save_CPPFLAGS"
10610 elif test "$with_xidle" != no; then
10611 echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
10616 ###############################################################################
10618 # Check for the SGI-VIDEO-CONTROL server extension.
10620 ###############################################################################
10623 with_sgivc_req=unspecified
10625 # Check whether --with-sgivc-ext was given.
10626 if test "${with_sgivc_ext+set}" = set; then
10627 withval=$with_sgivc_ext; with_sgivc="$withval"; with_sgivc_req="$withval"
10634 case "$with_sgivc" in
10639 { echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL headers" >&5
10640 echo $ECHO_N "checking for SGI-VIDEO-CONTROL headers... $ECHO_C" >&6; }
10641 d=$with_sgivc/include
10642 if test -d $d; then
10643 X_CFLAGS="-I$d $X_CFLAGS"
10644 { echo "$as_me:$LINENO: result: $d" >&5
10645 echo "${ECHO_T}$d" >&6; }
10647 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10648 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10651 { echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL libs" >&5
10652 echo $ECHO_N "checking for SGI-VIDEO-CONTROL libs... $ECHO_C" >&6; }
10654 if test -d $d; then
10655 X_LIBS="-L$d $X_LIBS"
10656 { echo "$as_me:$LINENO: result: $d" >&5
10657 echo "${ECHO_T}$d" >&6; }
10659 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10660 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10663 # replace the directory string with "yes".
10664 with_sgivc_req="yes"
10665 with_sgivc=$with_sgivc_req
10670 echo "error: argument to --with-sgivc-ext must be \"yes\", \"no\", or a directory."
10671 echo " If it is a directory, then \`DIR/include' will be added to"
10672 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10678 if test "$with_sgivc" = yes; then
10680 # first check for XSGIvc.h
10682 ac_save_CPPFLAGS="$CPPFLAGS"
10683 if test \! -z "$includedir" ; then
10684 CPPFLAGS="$CPPFLAGS -I$includedir"
10686 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10687 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10688 { echo "$as_me:$LINENO: checking for X11/extensions/XSGIvc.h" >&5
10689 echo $ECHO_N "checking for X11/extensions/XSGIvc.h... $ECHO_C" >&6; }
10690 if test "${ac_cv_header_X11_extensions_XSGIvc_h+set}" = set; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
10693 cat >conftest.$ac_ext <<_ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h. */
10699 #include <X11/Xlib.h>
10701 #include <X11/extensions/XSGIvc.h>
10703 rm -f conftest.$ac_objext
10704 if { (ac_try="$ac_compile"
10705 case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710 (eval "$ac_compile") 2>conftest.er1
10712 grep -v '^ *+' conftest.er1 >conftest.err
10714 cat conftest.err >&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); } && {
10717 test -z "$ac_c_werror_flag" ||
10718 test ! -s conftest.err
10719 } && test -s conftest.$ac_objext; then
10720 ac_cv_header_X11_extensions_XSGIvc_h=yes
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10725 ac_cv_header_X11_extensions_XSGIvc_h=no
10728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10730 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XSGIvc_h" >&5
10731 echo "${ECHO_T}$ac_cv_header_X11_extensions_XSGIvc_h" >&6; }
10732 if test $ac_cv_header_X11_extensions_XSGIvc_h = yes; then
10737 CPPFLAGS="$ac_save_CPPFLAGS"
10739 # if that succeeded, then check for the -lXsgivc
10740 if test "$have_sgivc" = yes; then
10743 ac_save_CPPFLAGS="$CPPFLAGS"
10744 ac_save_LDFLAGS="$LDFLAGS"
10745 # ac_save_LIBS="$LIBS"
10747 if test \! -z "$includedir" ; then
10748 CPPFLAGS="$CPPFLAGS -I$includedir"
10750 # note: $X_CFLAGS includes $x_includes
10751 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10753 if test \! -z "$libdir" ; then
10754 LDFLAGS="$LDFLAGS -L$libdir"
10756 # note: $X_LIBS includes $x_libraries
10757 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10759 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10760 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
10761 { echo "$as_me:$LINENO: checking for XSGIvcQueryGammaMap in -lXsgivc" >&5
10762 echo $ECHO_N "checking for XSGIvcQueryGammaMap in -lXsgivc... $ECHO_C" >&6; }
10763 if test "${ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 ac_check_lib_save_LIBS=$LIBS
10767 LIBS="-lXsgivc -lXext -lX11 $LIBS"
10768 cat >conftest.$ac_ext <<_ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h. */
10775 /* Override any GCC internal prototype to avoid an error.
10776 Use char because int might match the return type of a GCC
10777 builtin and then its argument prototype would still apply. */
10781 char XSGIvcQueryGammaMap ();
10785 return XSGIvcQueryGammaMap ();
10790 rm -f conftest.$ac_objext conftest$ac_exeext
10791 if { (ac_try="$ac_link"
10792 case "(($ac_try" in
10793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10794 *) ac_try_echo=$ac_try;;
10796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10797 (eval "$ac_link") 2>conftest.er1
10799 grep -v '^ *+' conftest.er1 >conftest.err
10801 cat conftest.err >&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } && {
10804 test -z "$ac_c_werror_flag" ||
10805 test ! -s conftest.err
10806 } && test -s conftest$ac_exeext &&
10807 $as_test_x conftest$ac_exeext; then
10808 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=yes
10810 echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10813 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=no
10816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10817 conftest$ac_exeext conftest.$ac_ext
10818 LIBS=$ac_check_lib_save_LIBS
10820 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&5
10821 echo "${ECHO_T}$ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&6; }
10822 if test $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap = yes; then
10823 have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"
10828 CPPFLAGS="$ac_save_CPPFLAGS"
10829 LDFLAGS="$ac_save_LDFLAGS"
10830 # LIBS="$ac_save_LIBS"
10834 # if that succeeded, then we've really got it.
10835 if test "$have_sgivc" = yes; then
10836 cat >>confdefs.h <<\_ACEOF
10837 #define HAVE_SGI_VC_EXTENSION 1
10842 elif test "$with_sgivc" != no; then
10843 echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
10848 ###############################################################################
10850 # Check for the DPMS server extension.
10852 ###############################################################################
10855 with_dpms_req=unspecified
10857 # Check whether --with-dpms-ext was given.
10858 if test "${with_dpms_ext+set}" = set; then
10859 withval=$with_dpms_ext; with_dpms="$withval"; with_dpms_req="$withval"
10866 case "$with_dpms" in
10871 { echo "$as_me:$LINENO: checking for DPMS headers" >&5
10872 echo $ECHO_N "checking for DPMS headers... $ECHO_C" >&6; }
10873 d=$with_dpms/include
10874 if test -d $d; then
10875 X_CFLAGS="-I$d $X_CFLAGS"
10876 { echo "$as_me:$LINENO: result: $d" >&5
10877 echo "${ECHO_T}$d" >&6; }
10879 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10880 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10883 { echo "$as_me:$LINENO: checking for DPMS libs" >&5
10884 echo $ECHO_N "checking for DPMS libs... $ECHO_C" >&6; }
10886 if test -d $d; then
10887 X_LIBS="-L$d $X_LIBS"
10888 { echo "$as_me:$LINENO: result: $d" >&5
10889 echo "${ECHO_T}$d" >&6; }
10891 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10892 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
10895 # replace the directory string with "yes".
10896 with_dpms_req="yes"
10897 with_dpms=$with_dpms_req
10902 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
10903 echo " If it is a directory, then \`DIR/include' will be added to"
10904 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10910 if test "$with_dpms" = yes; then
10912 # first check for dpms.h
10914 ac_save_CPPFLAGS="$CPPFLAGS"
10915 if test \! -z "$includedir" ; then
10916 CPPFLAGS="$CPPFLAGS -I$includedir"
10918 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10919 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10920 { echo "$as_me:$LINENO: checking for X11/extensions/dpms.h" >&5
10921 echo $ECHO_N "checking for X11/extensions/dpms.h... $ECHO_C" >&6; }
10922 if test "${ac_cv_header_X11_extensions_dpms_h+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 cat >conftest.$ac_ext <<_ACEOF
10928 cat confdefs.h >>conftest.$ac_ext
10929 cat >>conftest.$ac_ext <<_ACEOF
10930 /* end confdefs.h. */
10931 #include <X11/Xlib.h>
10932 #include <X11/Xmd.h>
10934 #include <X11/extensions/dpms.h>
10936 rm -f conftest.$ac_objext
10937 if { (ac_try="$ac_compile"
10938 case "(($ac_try" in
10939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940 *) ac_try_echo=$ac_try;;
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943 (eval "$ac_compile") 2>conftest.er1
10945 grep -v '^ *+' conftest.er1 >conftest.err
10947 cat conftest.err >&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } && {
10950 test -z "$ac_c_werror_flag" ||
10951 test ! -s conftest.err
10952 } && test -s conftest.$ac_objext; then
10953 ac_cv_header_X11_extensions_dpms_h=yes
10955 echo "$as_me: failed program was:" >&5
10956 sed 's/^/| /' conftest.$ac_ext >&5
10958 ac_cv_header_X11_extensions_dpms_h=no
10961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10963 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_dpms_h" >&5
10964 echo "${ECHO_T}$ac_cv_header_X11_extensions_dpms_h" >&6; }
10965 if test $ac_cv_header_X11_extensions_dpms_h = yes; then
10970 CPPFLAGS="$ac_save_CPPFLAGS"
10972 # if that succeeded, then check for the DPMS code in the libraries
10973 if test "$have_dpms" = yes; then
10975 # first look in -lXext (this is where it is with XFree86 4.0)
10978 ac_save_CPPFLAGS="$CPPFLAGS"
10979 ac_save_LDFLAGS="$LDFLAGS"
10980 # ac_save_LIBS="$LIBS"
10982 if test \! -z "$includedir" ; then
10983 CPPFLAGS="$CPPFLAGS -I$includedir"
10985 # note: $X_CFLAGS includes $x_includes
10986 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10988 if test \! -z "$libdir" ; then
10989 LDFLAGS="$LDFLAGS -L$libdir"
10991 # note: $X_LIBS includes $x_libraries
10992 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10994 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10995 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
10996 { echo "$as_me:$LINENO: checking for DPMSInfo in -lXext" >&5
10997 echo $ECHO_N "checking for DPMSInfo in -lXext... $ECHO_C" >&6; }
10998 if test "${ac_cv_lib_Xext_DPMSInfo+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 ac_check_lib_save_LIBS=$LIBS
11002 LIBS="-lXext -lXext -lX11 $LIBS"
11003 cat >conftest.$ac_ext <<_ACEOF
11006 cat confdefs.h >>conftest.$ac_ext
11007 cat >>conftest.$ac_ext <<_ACEOF
11008 /* end confdefs.h. */
11010 /* Override any GCC internal prototype to avoid an error.
11011 Use char because int might match the return type of a GCC
11012 builtin and then its argument prototype would still apply. */
11020 return DPMSInfo ();
11025 rm -f conftest.$ac_objext conftest$ac_exeext
11026 if { (ac_try="$ac_link"
11027 case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_link") 2>conftest.er1
11034 grep -v '^ *+' conftest.er1 >conftest.err
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } && {
11039 test -z "$ac_c_werror_flag" ||
11040 test ! -s conftest.err
11041 } && test -s conftest$ac_exeext &&
11042 $as_test_x conftest$ac_exeext; then
11043 ac_cv_lib_Xext_DPMSInfo=yes
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11048 ac_cv_lib_Xext_DPMSInfo=no
11051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11052 conftest$ac_exeext conftest.$ac_ext
11053 LIBS=$ac_check_lib_save_LIBS
11055 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_DPMSInfo" >&5
11056 echo "${ECHO_T}$ac_cv_lib_Xext_DPMSInfo" >&6; }
11057 if test $ac_cv_lib_Xext_DPMSInfo = yes; then
11063 CPPFLAGS="$ac_save_CPPFLAGS"
11064 LDFLAGS="$ac_save_LDFLAGS"
11065 # LIBS="$ac_save_LIBS"
11068 # if that failed, look in -lXdpms (this is where it was in XFree86 3.x)
11069 if test "$have_dpms" = no; then
11071 ac_save_CPPFLAGS="$CPPFLAGS"
11072 ac_save_LDFLAGS="$LDFLAGS"
11073 # ac_save_LIBS="$LIBS"
11075 if test \! -z "$includedir" ; then
11076 CPPFLAGS="$CPPFLAGS -I$includedir"
11078 # note: $X_CFLAGS includes $x_includes
11079 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11081 if test \! -z "$libdir" ; then
11082 LDFLAGS="$LDFLAGS -L$libdir"
11084 # note: $X_LIBS includes $x_libraries
11085 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11087 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11088 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11089 { echo "$as_me:$LINENO: checking for DPMSInfo in -lXdpms" >&5
11090 echo $ECHO_N "checking for DPMSInfo in -lXdpms... $ECHO_C" >&6; }
11091 if test "${ac_cv_lib_Xdpms_DPMSInfo+set}" = set; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11094 ac_check_lib_save_LIBS=$LIBS
11095 LIBS="-lXdpms -lXext -lX11 $LIBS"
11096 cat >conftest.$ac_ext <<_ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11103 /* Override any GCC internal prototype to avoid an error.
11104 Use char because int might match the return type of a GCC
11105 builtin and then its argument prototype would still apply. */
11113 return DPMSInfo ();
11118 rm -f conftest.$ac_objext conftest$ac_exeext
11119 if { (ac_try="$ac_link"
11120 case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_link") 2>conftest.er1
11127 grep -v '^ *+' conftest.er1 >conftest.err
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } && {
11132 test -z "$ac_c_werror_flag" ||
11133 test ! -s conftest.err
11134 } && test -s conftest$ac_exeext &&
11135 $as_test_x conftest$ac_exeext; then
11136 ac_cv_lib_Xdpms_DPMSInfo=yes
11138 echo "$as_me: failed program was:" >&5
11139 sed 's/^/| /' conftest.$ac_ext >&5
11141 ac_cv_lib_Xdpms_DPMSInfo=no
11144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11145 conftest$ac_exeext conftest.$ac_ext
11146 LIBS=$ac_check_lib_save_LIBS
11148 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xdpms_DPMSInfo" >&5
11149 echo "${ECHO_T}$ac_cv_lib_Xdpms_DPMSInfo" >&6; }
11150 if test $ac_cv_lib_Xdpms_DPMSInfo = yes; then
11151 have_dpms=yes; XDPMS_LIBS="-lXdpms"
11156 CPPFLAGS="$ac_save_CPPFLAGS"
11157 LDFLAGS="$ac_save_LDFLAGS"
11158 # LIBS="$ac_save_LIBS"
11164 # if that succeeded, then we've really got it.
11165 if test "$have_dpms" = yes; then
11166 cat >>confdefs.h <<\_ACEOF
11167 #define HAVE_DPMS_EXTENSION 1
11172 elif test "$with_dpms" != no; then
11173 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
11178 ###############################################################################
11180 # Check for the XINERAMA server extension.
11182 ###############################################################################
11185 with_xinerama_req=unspecified
11187 # Check whether --with-xinerama-ext was given.
11188 if test "${with_xinerama_ext+set}" = set; then
11189 withval=$with_xinerama_ext; with_xinerama="$withval"; with_xinerama_req="$withval"
11196 case "$with_xinerama" in
11201 { echo "$as_me:$LINENO: checking for XINERAMA headers" >&5
11202 echo $ECHO_N "checking for XINERAMA headers... $ECHO_C" >&6; }
11203 d=$with_xinerama/include
11204 if test -d $d; then
11205 X_CFLAGS="-I$d $X_CFLAGS"
11206 { echo "$as_me:$LINENO: result: $d" >&5
11207 echo "${ECHO_T}$d" >&6; }
11209 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11210 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
11213 { echo "$as_me:$LINENO: checking for XINERAMA libs" >&5
11214 echo $ECHO_N "checking for XINERAMA libs... $ECHO_C" >&6; }
11215 d=$with_xinerama/lib
11216 if test -d $d; then
11217 X_LIBS="-L$d $X_LIBS"
11218 { echo "$as_me:$LINENO: result: $d" >&5
11219 echo "${ECHO_T}$d" >&6; }
11221 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11222 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
11225 # replace the directory string with "yes".
11226 with_xinerama_req="yes"
11227 with_xinerama=$with_xinerama_req
11232 echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
11233 echo " If it is a directory, then \`DIR/include' will be added to"
11234 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11240 if test "$with_xinerama" = yes; then
11242 # first check for Xinerama.h
11244 ac_save_CPPFLAGS="$CPPFLAGS"
11245 if test \! -z "$includedir" ; then
11246 CPPFLAGS="$CPPFLAGS -I$includedir"
11248 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11249 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11250 { echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
11251 echo $ECHO_N "checking for X11/extensions/Xinerama.h... $ECHO_C" >&6; }
11252 if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 cat >conftest.$ac_ext <<_ACEOF
11258 cat confdefs.h >>conftest.$ac_ext
11259 cat >>conftest.$ac_ext <<_ACEOF
11260 /* end confdefs.h. */
11261 #include <X11/Xlib.h>
11263 #include <X11/extensions/Xinerama.h>
11265 rm -f conftest.$ac_objext
11266 if { (ac_try="$ac_compile"
11267 case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_compile") 2>conftest.er1
11274 grep -v '^ *+' conftest.er1 >conftest.err
11276 cat conftest.err >&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); } && {
11279 test -z "$ac_c_werror_flag" ||
11280 test ! -s conftest.err
11281 } && test -s conftest.$ac_objext; then
11282 ac_cv_header_X11_extensions_Xinerama_h=yes
11284 echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11287 ac_cv_header_X11_extensions_Xinerama_h=no
11290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11292 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
11293 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xinerama_h" >&6; }
11294 if test $ac_cv_header_X11_extensions_Xinerama_h = yes; then
11299 CPPFLAGS="$ac_save_CPPFLAGS"
11301 # if that succeeded, then check for the XINERAMA code in the libraries
11302 if test "$have_xinerama" = yes; then
11304 # first look in -lXext
11307 ac_save_CPPFLAGS="$CPPFLAGS"
11308 ac_save_LDFLAGS="$LDFLAGS"
11309 # ac_save_LIBS="$LIBS"
11311 if test \! -z "$includedir" ; then
11312 CPPFLAGS="$CPPFLAGS -I$includedir"
11314 # note: $X_CFLAGS includes $x_includes
11315 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11317 if test \! -z "$libdir" ; then
11318 LDFLAGS="$LDFLAGS -L$libdir"
11320 # note: $X_LIBS includes $x_libraries
11321 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11323 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11324 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11325 { echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXext" >&5
11326 echo $ECHO_N "checking for XineramaQueryScreens in -lXext... $ECHO_C" >&6; }
11327 if test "${ac_cv_lib_Xext_XineramaQueryScreens+set}" = set; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11330 ac_check_lib_save_LIBS=$LIBS
11331 LIBS="-lXext -lXext -lX11 $LIBS"
11332 cat >conftest.$ac_ext <<_ACEOF
11335 cat confdefs.h >>conftest.$ac_ext
11336 cat >>conftest.$ac_ext <<_ACEOF
11337 /* end confdefs.h. */
11339 /* Override any GCC internal prototype to avoid an error.
11340 Use char because int might match the return type of a GCC
11341 builtin and then its argument prototype would still apply. */
11345 char XineramaQueryScreens ();
11349 return XineramaQueryScreens ();
11354 rm -f conftest.$ac_objext conftest$ac_exeext
11355 if { (ac_try="$ac_link"
11356 case "(($ac_try" in
11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361 (eval "$ac_link") 2>conftest.er1
11363 grep -v '^ *+' conftest.er1 >conftest.err
11365 cat conftest.err >&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } && {
11368 test -z "$ac_c_werror_flag" ||
11369 test ! -s conftest.err
11370 } && test -s conftest$ac_exeext &&
11371 $as_test_x conftest$ac_exeext; then
11372 ac_cv_lib_Xext_XineramaQueryScreens=yes
11374 echo "$as_me: failed program was:" >&5
11375 sed 's/^/| /' conftest.$ac_ext >&5
11377 ac_cv_lib_Xext_XineramaQueryScreens=no
11380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11381 conftest$ac_exeext conftest.$ac_ext
11382 LIBS=$ac_check_lib_save_LIBS
11384 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XineramaQueryScreens" >&5
11385 echo "${ECHO_T}$ac_cv_lib_Xext_XineramaQueryScreens" >&6; }
11386 if test $ac_cv_lib_Xext_XineramaQueryScreens = yes; then
11392 CPPFLAGS="$ac_save_CPPFLAGS"
11393 LDFLAGS="$ac_save_LDFLAGS"
11394 # LIBS="$ac_save_LIBS"
11397 # if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
11398 if test "$have_xinerama" = no; then
11400 ac_save_CPPFLAGS="$CPPFLAGS"
11401 ac_save_LDFLAGS="$LDFLAGS"
11402 # ac_save_LIBS="$LIBS"
11404 if test \! -z "$includedir" ; then
11405 CPPFLAGS="$CPPFLAGS -I$includedir"
11407 # note: $X_CFLAGS includes $x_includes
11408 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11410 if test \! -z "$libdir" ; then
11411 LDFLAGS="$LDFLAGS -L$libdir"
11413 # note: $X_LIBS includes $x_libraries
11414 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11416 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11417 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11418 { echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
11419 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6; }
11420 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
11421 echo $ECHO_N "(cached) $ECHO_C" >&6
11423 ac_check_lib_save_LIBS=$LIBS
11424 LIBS="-lXinerama -lXext -lX11 $LIBS"
11425 cat >conftest.$ac_ext <<_ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11432 /* Override any GCC internal prototype to avoid an error.
11433 Use char because int might match the return type of a GCC
11434 builtin and then its argument prototype would still apply. */
11438 char XineramaQueryScreens ();
11442 return XineramaQueryScreens ();
11447 rm -f conftest.$ac_objext conftest$ac_exeext
11448 if { (ac_try="$ac_link"
11449 case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_link") 2>conftest.er1
11456 grep -v '^ *+' conftest.er1 >conftest.err
11458 cat conftest.err >&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } && {
11461 test -z "$ac_c_werror_flag" ||
11462 test ! -s conftest.err
11463 } && test -s conftest$ac_exeext &&
11464 $as_test_x conftest$ac_exeext; then
11465 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
11467 echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.$ac_ext >&5
11470 ac_cv_lib_Xinerama_XineramaQueryScreens=no
11473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11474 conftest$ac_exeext conftest.$ac_ext
11475 LIBS=$ac_check_lib_save_LIBS
11477 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
11478 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
11479 if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
11480 have_xinerama=yes; XINERAMA_LIBS="-lXinerama"
11485 CPPFLAGS="$ac_save_CPPFLAGS"
11486 LDFLAGS="$ac_save_LDFLAGS"
11487 # LIBS="$ac_save_LIBS"
11492 # if that succeeded, then we've really got it.
11493 if test "$have_xinerama" = yes; then
11494 cat >>confdefs.h <<\_ACEOF
11495 #define HAVE_XINERAMA 1
11500 elif test "$with_xinerama" != no; then
11501 echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
11506 ###############################################################################
11508 # Check for the XF86VMODE server extension (for virtual screens.)
11510 ###############################################################################
11513 with_xf86vmode_req=unspecified
11515 # Check whether --with-xf86vmode-ext was given.
11516 if test "${with_xf86vmode_ext+set}" = set; then
11517 withval=$with_xf86vmode_ext; with_xf86vmode="$withval"; with_xf86vmode_req="$withval"
11524 case "$with_xf86vmode" in
11529 { echo "$as_me:$LINENO: checking for xf86vmode headers" >&5
11530 echo $ECHO_N "checking for xf86vmode headers... $ECHO_C" >&6; }
11531 d=$with_xf86vmode/include
11532 if test -d $d; then
11533 X_CFLAGS="-I$d $X_CFLAGS"
11534 { echo "$as_me:$LINENO: result: $d" >&5
11535 echo "${ECHO_T}$d" >&6; }
11537 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11538 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
11541 { echo "$as_me:$LINENO: checking for xf86vmode libs" >&5
11542 echo $ECHO_N "checking for xf86vmode libs... $ECHO_C" >&6; }
11543 d=$with_xf86vmode/lib
11544 if test -d $d; then
11545 X_LIBS="-L$d $X_LIBS"
11546 { echo "$as_me:$LINENO: result: $d" >&5
11547 echo "${ECHO_T}$d" >&6; }
11549 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11550 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
11553 # replace the directory string with "yes".
11554 with_xf86vmode_req="yes"
11555 with_xf86vmode=$with_xf86vmode_req
11560 echo "error: argument to --with-xf86vmode-ext must be \"yes\", \"no\", or a directory."
11561 echo " If it is a directory, then \`DIR/include' will be added to"
11562 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11570 if test "$with_xf86vmode" = yes; then
11572 # first check for xf86vmode.h
11574 ac_save_CPPFLAGS="$CPPFLAGS"
11575 if test \! -z "$includedir" ; then
11576 CPPFLAGS="$CPPFLAGS -I$includedir"
11578 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11579 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11580 { echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
11581 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6; }
11582 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11585 cat >conftest.$ac_ext <<_ACEOF
11588 cat confdefs.h >>conftest.$ac_ext
11589 cat >>conftest.$ac_ext <<_ACEOF
11590 /* end confdefs.h. */
11591 #include <X11/Xlib.h>
11593 #include <X11/extensions/xf86vmode.h>
11595 rm -f conftest.$ac_objext
11596 if { (ac_try="$ac_compile"
11597 case "(($ac_try" in
11598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11599 *) ac_try_echo=$ac_try;;
11601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11602 (eval "$ac_compile") 2>conftest.er1
11604 grep -v '^ *+' conftest.er1 >conftest.err
11606 cat conftest.err >&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); } && {
11609 test -z "$ac_c_werror_flag" ||
11610 test ! -s conftest.err
11611 } && test -s conftest.$ac_objext; then
11612 ac_cv_header_X11_extensions_xf86vmode_h=yes
11614 echo "$as_me: failed program was:" >&5
11615 sed 's/^/| /' conftest.$ac_ext >&5
11617 ac_cv_header_X11_extensions_xf86vmode_h=no
11620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11622 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
11623 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6; }
11624 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
11629 CPPFLAGS="$ac_save_CPPFLAGS"
11631 # if that succeeded, then check for the -lXxf86vm
11632 if test "$have_xf86vmode" = yes; then
11635 ac_save_CPPFLAGS="$CPPFLAGS"
11636 ac_save_LDFLAGS="$LDFLAGS"
11637 # ac_save_LIBS="$LIBS"
11639 if test \! -z "$includedir" ; then
11640 CPPFLAGS="$CPPFLAGS -I$includedir"
11642 # note: $X_CFLAGS includes $x_includes
11643 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11645 if test \! -z "$libdir" ; then
11646 LDFLAGS="$LDFLAGS -L$libdir"
11648 # note: $X_LIBS includes $x_libraries
11649 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11651 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11652 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11653 { echo "$as_me:$LINENO: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
11654 echo $ECHO_N "checking for XF86VidModeGetViewPort in -lXxf86vm... $ECHO_C" >&6; }
11655 if test "${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+set}" = set; then
11656 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 ac_check_lib_save_LIBS=$LIBS
11659 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11660 cat >conftest.$ac_ext <<_ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11667 /* Override any GCC internal prototype to avoid an error.
11668 Use char because int might match the return type of a GCC
11669 builtin and then its argument prototype would still apply. */
11673 char XF86VidModeGetViewPort ();
11677 return XF86VidModeGetViewPort ();
11682 rm -f conftest.$ac_objext conftest$ac_exeext
11683 if { (ac_try="$ac_link"
11684 case "(($ac_try" in
11685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686 *) ac_try_echo=$ac_try;;
11688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11689 (eval "$ac_link") 2>conftest.er1
11691 grep -v '^ *+' conftest.er1 >conftest.err
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } && {
11696 test -z "$ac_c_werror_flag" ||
11697 test ! -s conftest.err
11698 } && test -s conftest$ac_exeext &&
11699 $as_test_x conftest$ac_exeext; then
11700 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
11702 echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.$ac_ext >&5
11705 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=no
11708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11709 conftest$ac_exeext conftest.$ac_ext
11710 LIBS=$ac_check_lib_save_LIBS
11712 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&5
11713 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6; }
11714 if test $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort = yes; then
11715 have_xf86vmode=yes;
11716 VIDMODE_LIBS="-lXxf86vm";
11717 SAVER_LIBS="$SAVER_LIBS $VIDMODE_LIBS"
11722 CPPFLAGS="$ac_save_CPPFLAGS"
11723 LDFLAGS="$ac_save_LDFLAGS"
11724 # LIBS="$ac_save_LIBS"
11728 # if that succeeded, then we've really got it.
11729 if test "$have_xf86vmode" = yes; then
11730 cat >>confdefs.h <<\_ACEOF
11731 #define HAVE_XF86VMODE 1
11736 elif test "$with_xf86vmode" != no; then
11737 echo "error: must be yes or no: --with-xf86vmode-ext=$with_xf86vmode"
11742 ###############################################################################
11744 # Check for the XF86VMODE server extension (for gamma fading.)
11746 ###############################################################################
11749 have_xf86gamma_ramp=no
11750 with_xf86gamma_req=unspecified
11752 # Check whether --with-xf86gamma-ext was given.
11753 if test "${with_xf86gamma_ext+set}" = set; then
11754 withval=$with_xf86gamma_ext; with_xf86gamma="$withval"; with_xf86gamma_req="$withval"
11761 case "$with_xf86gamma" in
11766 { echo "$as_me:$LINENO: checking for xf86gamma headers" >&5
11767 echo $ECHO_N "checking for xf86gamma headers... $ECHO_C" >&6; }
11768 d=$with_xf86gamma/include
11769 if test -d $d; then
11770 X_CFLAGS="-I$d $X_CFLAGS"
11771 { echo "$as_me:$LINENO: result: $d" >&5
11772 echo "${ECHO_T}$d" >&6; }
11774 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11775 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
11778 { echo "$as_me:$LINENO: checking for xf86gamma libs" >&5
11779 echo $ECHO_N "checking for xf86gamma libs... $ECHO_C" >&6; }
11780 d=$with_xf86gamma/lib
11781 if test -d $d; then
11782 X_LIBS="-L$d $X_LIBS"
11783 { echo "$as_me:$LINENO: result: $d" >&5
11784 echo "${ECHO_T}$d" >&6; }
11786 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11787 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
11790 # replace the directory string with "yes".
11791 with_xf86gamma_req="yes"
11792 with_xf86gamma=$with_xf86gamma_req
11797 echo "error: argument to --with-xf86gamma-ext must be \"yes\", \"no\", or a directory."
11798 echo " If it is a directory, then \`DIR/include' will be added to"
11799 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11805 if test "$with_xf86gamma" = yes; then
11807 # first check for xf86vmode.h, if we haven't already
11808 if test "$have_xf86vmode" = yes; then
11812 ac_save_CPPFLAGS="$CPPFLAGS"
11813 if test \! -z "$includedir" ; then
11814 CPPFLAGS="$CPPFLAGS -I$includedir"
11816 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11817 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11818 { echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
11819 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6; }
11820 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
11821 echo $ECHO_N "(cached) $ECHO_C" >&6
11823 cat >conftest.$ac_ext <<_ACEOF
11826 cat confdefs.h >>conftest.$ac_ext
11827 cat >>conftest.$ac_ext <<_ACEOF
11828 /* end confdefs.h. */
11829 #include <X11/Xlib.h>
11831 #include <X11/extensions/xf86vmode.h>
11833 rm -f conftest.$ac_objext
11834 if { (ac_try="$ac_compile"
11835 case "(($ac_try" in
11836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837 *) ac_try_echo=$ac_try;;
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_compile") 2>conftest.er1
11842 grep -v '^ *+' conftest.er1 >conftest.err
11844 cat conftest.err >&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } && {
11847 test -z "$ac_c_werror_flag" ||
11848 test ! -s conftest.err
11849 } && test -s conftest.$ac_objext; then
11850 ac_cv_header_X11_extensions_xf86vmode_h=yes
11852 echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11855 ac_cv_header_X11_extensions_xf86vmode_h=no
11858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11860 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
11861 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6; }
11862 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
11867 CPPFLAGS="$ac_save_CPPFLAGS"
11870 # if that succeeded, then check for the -lXxf86vm
11871 if test "$have_xf86gamma" = yes; then
11874 ac_save_CPPFLAGS="$CPPFLAGS"
11875 ac_save_LDFLAGS="$LDFLAGS"
11876 # ac_save_LIBS="$LIBS"
11878 if test \! -z "$includedir" ; then
11879 CPPFLAGS="$CPPFLAGS -I$includedir"
11881 # note: $X_CFLAGS includes $x_includes
11882 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11884 if test \! -z "$libdir" ; then
11885 LDFLAGS="$LDFLAGS -L$libdir"
11887 # note: $X_LIBS includes $x_libraries
11888 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11890 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11891 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11892 { echo "$as_me:$LINENO: checking for XF86VidModeSetGamma in -lXxf86vm" >&5
11893 echo $ECHO_N "checking for XF86VidModeSetGamma in -lXxf86vm... $ECHO_C" >&6; }
11894 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGamma+set}" = set; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11897 ac_check_lib_save_LIBS=$LIBS
11898 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11899 cat >conftest.$ac_ext <<_ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h. */
11906 /* Override any GCC internal prototype to avoid an error.
11907 Use char because int might match the return type of a GCC
11908 builtin and then its argument prototype would still apply. */
11912 char XF86VidModeSetGamma ();
11916 return XF86VidModeSetGamma ();
11921 rm -f conftest.$ac_objext conftest$ac_exeext
11922 if { (ac_try="$ac_link"
11923 case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_link") 2>conftest.er1
11930 grep -v '^ *+' conftest.er1 >conftest.err
11932 cat conftest.err >&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); } && {
11935 test -z "$ac_c_werror_flag" ||
11936 test ! -s conftest.err
11937 } && test -s conftest$ac_exeext &&
11938 $as_test_x conftest$ac_exeext; then
11939 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=yes
11941 echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11944 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=no
11947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11948 conftest$ac_exeext conftest.$ac_ext
11949 LIBS=$ac_check_lib_save_LIBS
11951 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&5
11952 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&6; }
11953 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma = yes; then
11959 CPPFLAGS="$ac_save_CPPFLAGS"
11960 LDFLAGS="$ac_save_LDFLAGS"
11961 # LIBS="$ac_save_LIBS"
11965 # check for the Ramp versions of the functions too.
11966 if test "$have_xf86gamma" = yes; then
11967 have_xf86gamma_ramp=no
11969 ac_save_CPPFLAGS="$CPPFLAGS"
11970 ac_save_LDFLAGS="$LDFLAGS"
11971 # ac_save_LIBS="$LIBS"
11973 if test \! -z "$includedir" ; then
11974 CPPFLAGS="$CPPFLAGS -I$includedir"
11976 # note: $X_CFLAGS includes $x_includes
11977 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11979 if test \! -z "$libdir" ; then
11980 LDFLAGS="$LDFLAGS -L$libdir"
11982 # note: $X_LIBS includes $x_libraries
11983 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11985 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11986 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11987 { echo "$as_me:$LINENO: checking for XF86VidModeSetGammaRamp in -lXxf86vm" >&5
11988 echo $ECHO_N "checking for XF86VidModeSetGammaRamp in -lXxf86vm... $ECHO_C" >&6; }
11989 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp+set}" = set; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11992 ac_check_lib_save_LIBS=$LIBS
11993 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11994 cat >conftest.$ac_ext <<_ACEOF
11997 cat confdefs.h >>conftest.$ac_ext
11998 cat >>conftest.$ac_ext <<_ACEOF
11999 /* end confdefs.h. */
12001 /* Override any GCC internal prototype to avoid an error.
12002 Use char because int might match the return type of a GCC
12003 builtin and then its argument prototype would still apply. */
12007 char XF86VidModeSetGammaRamp ();
12011 return XF86VidModeSetGammaRamp ();
12016 rm -f conftest.$ac_objext conftest$ac_exeext
12017 if { (ac_try="$ac_link"
12018 case "(($ac_try" in
12019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020 *) ac_try_echo=$ac_try;;
12022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12023 (eval "$ac_link") 2>conftest.er1
12025 grep -v '^ *+' conftest.er1 >conftest.err
12027 cat conftest.err >&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } && {
12030 test -z "$ac_c_werror_flag" ||
12031 test ! -s conftest.err
12032 } && test -s conftest$ac_exeext &&
12033 $as_test_x conftest$ac_exeext; then
12034 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=yes
12036 echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.$ac_ext >&5
12039 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=no
12042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12043 conftest$ac_exeext conftest.$ac_ext
12044 LIBS=$ac_check_lib_save_LIBS
12046 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&5
12047 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&6; }
12048 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp = yes; then
12049 have_xf86gamma_ramp=yes
12054 CPPFLAGS="$ac_save_CPPFLAGS"
12055 LDFLAGS="$ac_save_LDFLAGS"
12056 # LIBS="$ac_save_LIBS"
12060 # if those tests succeeded, then we've really got the functions.
12061 if test "$have_xf86gamma" = yes; then
12062 cat >>confdefs.h <<\_ACEOF
12063 #define HAVE_XF86VMODE_GAMMA 1
12068 if test "$have_xf86gamma_ramp" = yes; then
12069 cat >>confdefs.h <<\_ACEOF
12070 #define HAVE_XF86VMODE_GAMMA_RAMP 1
12075 # pull in the lib, if we haven't already
12076 if test "$have_xf86gamma" = yes -a "$have_xf86vmode" = no; then
12077 SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
12080 elif test "$with_xf86gamma" != no; then
12081 echo "error: must be yes or no: --with-xf86gamma-ext=$with_xf86vmode"
12086 ###############################################################################
12088 # Check for the RANDR (Resize and Rotate) server extension.
12090 # We need this to detect when the resolution of the desktop
12091 # has changed out from under us (this is a newer, different
12092 # mechanism than the XF86VMODE virtual viewports.)
12094 ###############################################################################
12097 with_randr_req=unspecified
12099 # Check whether --with-randr-ext was given.
12100 if test "${with_randr_ext+set}" = set; then
12101 withval=$with_randr_ext; with_randr="$withval"; with_randr_req="$withval"
12108 case "$with_randr" in
12113 { echo "$as_me:$LINENO: checking for RANDR headers" >&5
12114 echo $ECHO_N "checking for RANDR headers... $ECHO_C" >&6; }
12115 d=$with_randr/include
12116 if test -d $d; then
12117 X_CFLAGS="-I$d $X_CFLAGS"
12118 { echo "$as_me:$LINENO: result: $d" >&5
12119 echo "${ECHO_T}$d" >&6; }
12121 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12122 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
12125 { echo "$as_me:$LINENO: checking for RANDR libs" >&5
12126 echo $ECHO_N "checking for RANDR libs... $ECHO_C" >&6; }
12128 if test -d $d; then
12129 X_LIBS="-L$d $X_LIBS"
12130 { echo "$as_me:$LINENO: result: $d" >&5
12131 echo "${ECHO_T}$d" >&6; }
12133 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12134 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
12137 # replace the directory string with "yes".
12138 with_randr_req="yes"
12139 with_randr=$with_randr_req
12144 echo "error: argument to --with-randr-ext must be \"yes\", \"no\", or a directory."
12145 echo " If it is a directory, then \`DIR/include' will be added to"
12146 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12152 if test "$with_randr" = yes; then
12154 # first check for Xrandr.h
12156 ac_save_CPPFLAGS="$CPPFLAGS"
12157 if test \! -z "$includedir" ; then
12158 CPPFLAGS="$CPPFLAGS -I$includedir"
12160 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12161 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12162 { echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
12163 echo $ECHO_N "checking for X11/extensions/Xrandr.h... $ECHO_C" >&6; }
12164 if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12167 cat >conftest.$ac_ext <<_ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h. */
12173 #include <X11/Xlib.h>
12175 #include <X11/extensions/Xrandr.h>
12177 rm -f conftest.$ac_objext
12178 if { (ac_try="$ac_compile"
12179 case "(($ac_try" in
12180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181 *) ac_try_echo=$ac_try;;
12183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184 (eval "$ac_compile") 2>conftest.er1
12186 grep -v '^ *+' conftest.er1 >conftest.err
12188 cat conftest.err >&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); } && {
12191 test -z "$ac_c_werror_flag" ||
12192 test ! -s conftest.err
12193 } && test -s conftest.$ac_objext; then
12194 ac_cv_header_X11_extensions_Xrandr_h=yes
12196 echo "$as_me: failed program was:" >&5
12197 sed 's/^/| /' conftest.$ac_ext >&5
12199 ac_cv_header_X11_extensions_Xrandr_h=no
12202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
12205 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrandr_h" >&6; }
12206 if test $ac_cv_header_X11_extensions_Xrandr_h = yes; then
12211 CPPFLAGS="$ac_save_CPPFLAGS"
12213 # if that succeeded, then check for the XRR code in the libraries
12214 if test "$have_randr" = yes; then
12216 # RANDR probably needs -lXrender
12219 ac_save_CPPFLAGS="$CPPFLAGS"
12220 ac_save_LDFLAGS="$LDFLAGS"
12221 # ac_save_LIBS="$LIBS"
12223 if test \! -z "$includedir" ; then
12224 CPPFLAGS="$CPPFLAGS -I$includedir"
12226 # note: $X_CFLAGS includes $x_includes
12227 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12229 if test \! -z "$libdir" ; then
12230 LDFLAGS="$LDFLAGS -L$libdir"
12232 # note: $X_LIBS includes $x_libraries
12233 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12235 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12236 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12237 { echo "$as_me:$LINENO: checking for XRenderSetSubpixelOrder in -lXrender" >&5
12238 echo $ECHO_N "checking for XRenderSetSubpixelOrder in -lXrender... $ECHO_C" >&6; }
12239 if test "${ac_cv_lib_Xrender_XRenderSetSubpixelOrder+set}" = set; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
12242 ac_check_lib_save_LIBS=$LIBS
12243 LIBS="-lXrender -lXext -lX11 $LIBS"
12244 cat >conftest.$ac_ext <<_ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12251 /* Override any GCC internal prototype to avoid an error.
12252 Use char because int might match the return type of a GCC
12253 builtin and then its argument prototype would still apply. */
12257 char XRenderSetSubpixelOrder ();
12261 return XRenderSetSubpixelOrder ();
12266 rm -f conftest.$ac_objext conftest$ac_exeext
12267 if { (ac_try="$ac_link"
12268 case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_link") 2>conftest.er1
12275 grep -v '^ *+' conftest.er1 >conftest.err
12277 cat conftest.err >&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } && {
12280 test -z "$ac_c_werror_flag" ||
12281 test ! -s conftest.err
12282 } && test -s conftest$ac_exeext &&
12283 $as_test_x conftest$ac_exeext; then
12284 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=yes
12286 echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12289 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=no
12292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12293 conftest$ac_exeext conftest.$ac_ext
12294 LIBS=$ac_check_lib_save_LIBS
12296 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&5
12297 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&6; }
12298 if test $ac_cv_lib_Xrender_XRenderSetSubpixelOrder = yes; then
12299 xrender_libs="-lXrender"
12304 CPPFLAGS="$ac_save_CPPFLAGS"
12305 LDFLAGS="$ac_save_LDFLAGS"
12306 # LIBS="$ac_save_LIBS"
12309 # first look for RANDR in -lXext
12312 ac_save_CPPFLAGS="$CPPFLAGS"
12313 ac_save_LDFLAGS="$LDFLAGS"
12314 # ac_save_LIBS="$LIBS"
12316 if test \! -z "$includedir" ; then
12317 CPPFLAGS="$CPPFLAGS -I$includedir"
12319 # note: $X_CFLAGS includes $x_includes
12320 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12322 if test \! -z "$libdir" ; then
12323 LDFLAGS="$LDFLAGS -L$libdir"
12325 # note: $X_LIBS includes $x_libraries
12326 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12328 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12329 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12330 { echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXext" >&5
12331 echo $ECHO_N "checking for XRRGetScreenInfo in -lXext... $ECHO_C" >&6; }
12332 if test "${ac_cv_lib_Xext_XRRGetScreenInfo+set}" = set; then
12333 echo $ECHO_N "(cached) $ECHO_C" >&6
12335 ac_check_lib_save_LIBS=$LIBS
12336 LIBS="-lXext $xrender_libs -lXext -lX11 $LIBS"
12337 cat >conftest.$ac_ext <<_ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12344 /* Override any GCC internal prototype to avoid an error.
12345 Use char because int might match the return type of a GCC
12346 builtin and then its argument prototype would still apply. */
12350 char XRRGetScreenInfo ();
12354 return XRRGetScreenInfo ();
12359 rm -f conftest.$ac_objext conftest$ac_exeext
12360 if { (ac_try="$ac_link"
12361 case "(($ac_try" in
12362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363 *) ac_try_echo=$ac_try;;
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366 (eval "$ac_link") 2>conftest.er1
12368 grep -v '^ *+' conftest.er1 >conftest.err
12370 cat conftest.err >&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); } && {
12373 test -z "$ac_c_werror_flag" ||
12374 test ! -s conftest.err
12375 } && test -s conftest$ac_exeext &&
12376 $as_test_x conftest$ac_exeext; then
12377 ac_cv_lib_Xext_XRRGetScreenInfo=yes
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 ac_cv_lib_Xext_XRRGetScreenInfo=no
12385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12386 conftest$ac_exeext conftest.$ac_ext
12387 LIBS=$ac_check_lib_save_LIBS
12389 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XRRGetScreenInfo" >&5
12390 echo "${ECHO_T}$ac_cv_lib_Xext_XRRGetScreenInfo" >&6; }
12391 if test $ac_cv_lib_Xext_XRRGetScreenInfo = yes; then
12392 have_randr=yes; SAVER_LIBS="$SAVER_LIBS $xrender_libs"
12397 CPPFLAGS="$ac_save_CPPFLAGS"
12398 LDFLAGS="$ac_save_LDFLAGS"
12399 # LIBS="$ac_save_LIBS"
12402 # if that failed, look in -lXrandr
12403 if test "$have_randr" = no; then
12405 ac_save_CPPFLAGS="$CPPFLAGS"
12406 ac_save_LDFLAGS="$LDFLAGS"
12407 # ac_save_LIBS="$LIBS"
12409 if test \! -z "$includedir" ; then
12410 CPPFLAGS="$CPPFLAGS -I$includedir"
12412 # note: $X_CFLAGS includes $x_includes
12413 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12415 if test \! -z "$libdir" ; then
12416 LDFLAGS="$LDFLAGS -L$libdir"
12418 # note: $X_LIBS includes $x_libraries
12419 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12421 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12422 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12423 { echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXrandr" >&5
12424 echo $ECHO_N "checking for XRRGetScreenInfo in -lXrandr... $ECHO_C" >&6; }
12425 if test "${ac_cv_lib_Xrandr_XRRGetScreenInfo+set}" = set; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12428 ac_check_lib_save_LIBS=$LIBS
12429 LIBS="-lXrandr $xrender_libs -lXext -lX11 $LIBS"
12430 cat >conftest.$ac_ext <<_ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h. */
12437 /* Override any GCC internal prototype to avoid an error.
12438 Use char because int might match the return type of a GCC
12439 builtin and then its argument prototype would still apply. */
12443 char XRRGetScreenInfo ();
12447 return XRRGetScreenInfo ();
12452 rm -f conftest.$ac_objext conftest$ac_exeext
12453 if { (ac_try="$ac_link"
12454 case "(($ac_try" in
12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456 *) ac_try_echo=$ac_try;;
12458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459 (eval "$ac_link") 2>conftest.er1
12461 grep -v '^ *+' conftest.er1 >conftest.err
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } && {
12466 test -z "$ac_c_werror_flag" ||
12467 test ! -s conftest.err
12468 } && test -s conftest$ac_exeext &&
12469 $as_test_x conftest$ac_exeext; then
12470 ac_cv_lib_Xrandr_XRRGetScreenInfo=yes
12472 echo "$as_me: failed program was:" >&5
12473 sed 's/^/| /' conftest.$ac_ext >&5
12475 ac_cv_lib_Xrandr_XRRGetScreenInfo=no
12478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12479 conftest$ac_exeext conftest.$ac_ext
12480 LIBS=$ac_check_lib_save_LIBS
12482 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRGetScreenInfo" >&5
12483 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRGetScreenInfo" >&6; }
12484 if test $ac_cv_lib_Xrandr_XRRGetScreenInfo = yes; then
12485 have_randr=yes; SAVER_LIBS="$SAVER_LIBS -lXrandr $xrender_libs"
12490 CPPFLAGS="$ac_save_CPPFLAGS"
12491 LDFLAGS="$ac_save_LDFLAGS"
12492 # LIBS="$ac_save_LIBS"
12497 # if that succeeded, then we've really got it.
12498 if test "$have_randr" = yes; then
12499 cat >>confdefs.h <<\_ACEOF
12500 #define HAVE_RANDR 1
12504 # Now check for version 1.2 in the same libs.
12505 # Try to compile, since on MacOS 10.5.7, headers are older than libs!
12506 { echo "$as_me:$LINENO: checking for XRRGetScreenResources" >&5
12507 echo $ECHO_N "checking for XRRGetScreenResources... $ECHO_C" >&6; }
12508 if test "${ac_cv_randr_12+set}" = set; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 ac_save_CPPFLAGS="$CPPFLAGS"
12514 if test \! -z "$includedir" ; then
12515 CPPFLAGS="$CPPFLAGS -I$includedir"
12517 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12518 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12519 cat >conftest.$ac_ext <<_ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12525 #include <stdlib.h>
12526 #include <X11/Xlib.h>
12527 #include <X11/extensions/Xrandr.h>
12531 XRRScreenResources *res =
12532 XRRGetScreenResources (0, 0);
12537 rm -f conftest.$ac_objext
12538 if { (ac_try="$ac_compile"
12539 case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_compile") 2>conftest.er1
12546 grep -v '^ *+' conftest.er1 >conftest.err
12548 cat conftest.err >&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); } && {
12551 test -z "$ac_c_werror_flag" ||
12552 test ! -s conftest.err
12553 } && test -s conftest.$ac_objext; then
12556 echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12563 CPPFLAGS="$ac_save_CPPFLAGS"
12565 { echo "$as_me:$LINENO: result: $ac_cv_randr_12" >&5
12566 echo "${ECHO_T}$ac_cv_randr_12" >&6; }
12567 if test "$ac_cv_randr_12" = yes ; then
12568 cat >>confdefs.h <<\_ACEOF
12569 #define HAVE_RANDR_12 1
12573 # AC_CHECK_X_LIB(c, XRRGetOutputInfo, [AC_DEFINE(HAVE_RANDR_12)],
12574 # [true], $SAVER_LIBS)
12578 elif test "$with_randr" != no; then
12579 echo "error: must be yes or no: --with-randr-ext=$with_randr"
12584 ###############################################################################
12586 # Check for XF86MiscSetGrabKeysState (but only bother if we are already
12587 # using other XF86 stuff.)
12589 ###############################################################################
12591 have_xf86miscsetgrabkeysstate=no
12592 if test "$have_xf86gamma" = yes -o "$have_xf86vmode" = yes; then
12594 ac_save_CPPFLAGS="$CPPFLAGS"
12595 ac_save_LDFLAGS="$LDFLAGS"
12596 # ac_save_LIBS="$LIBS"
12598 if test \! -z "$includedir" ; then
12599 CPPFLAGS="$CPPFLAGS -I$includedir"
12601 # note: $X_CFLAGS includes $x_includes
12602 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12604 if test \! -z "$libdir" ; then
12605 LDFLAGS="$LDFLAGS -L$libdir"
12607 # note: $X_LIBS includes $x_libraries
12608 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12610 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12611 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12612 { echo "$as_me:$LINENO: checking for XF86MiscSetGrabKeysState in -lXxf86misc" >&5
12613 echo $ECHO_N "checking for XF86MiscSetGrabKeysState in -lXxf86misc... $ECHO_C" >&6; }
12614 if test "${ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState+set}" = set; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12617 ac_check_lib_save_LIBS=$LIBS
12618 LIBS="-lXxf86misc -lXext -lX11 $LIBS"
12619 cat >conftest.$ac_ext <<_ACEOF
12622 cat confdefs.h >>conftest.$ac_ext
12623 cat >>conftest.$ac_ext <<_ACEOF
12624 /* end confdefs.h. */
12626 /* Override any GCC internal prototype to avoid an error.
12627 Use char because int might match the return type of a GCC
12628 builtin and then its argument prototype would still apply. */
12632 char XF86MiscSetGrabKeysState ();
12636 return XF86MiscSetGrabKeysState ();
12641 rm -f conftest.$ac_objext conftest$ac_exeext
12642 if { (ac_try="$ac_link"
12643 case "(($ac_try" in
12644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645 *) ac_try_echo=$ac_try;;
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648 (eval "$ac_link") 2>conftest.er1
12650 grep -v '^ *+' conftest.er1 >conftest.err
12652 cat conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } && {
12655 test -z "$ac_c_werror_flag" ||
12656 test ! -s conftest.err
12657 } && test -s conftest$ac_exeext &&
12658 $as_test_x conftest$ac_exeext; then
12659 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=yes
12661 echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12664 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=no
12667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12668 conftest$ac_exeext conftest.$ac_ext
12669 LIBS=$ac_check_lib_save_LIBS
12671 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&5
12672 echo "${ECHO_T}$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&6; }
12673 if test $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState = yes; then
12674 have_xf86miscsetgrabkeysstate=yes
12679 CPPFLAGS="$ac_save_CPPFLAGS"
12680 LDFLAGS="$ac_save_LDFLAGS"
12681 # LIBS="$ac_save_LIBS"
12683 if test "$have_xf86miscsetgrabkeysstate" = yes ; then
12684 SAVER_LIBS="$SAVER_LIBS -lXxf86misc"
12685 cat >>confdefs.h <<\_ACEOF
12686 #define HAVE_XF86MISCSETGRABKEYSSTATE 1
12693 ###############################################################################
12695 # Check for HP XHPDisableReset and XHPEnableReset.
12697 ###############################################################################
12699 { echo "$as_me:$LINENO: checking for XHPDisableReset in X11/XHPlib.h" >&5
12700 echo $ECHO_N "checking for XHPDisableReset in X11/XHPlib.h... $ECHO_C" >&6; }
12702 ac_save_CPPFLAGS="$CPPFLAGS"
12703 if test \! -z "$includedir" ; then
12704 CPPFLAGS="$CPPFLAGS -I$includedir"
12706 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12707 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12708 cat >conftest.$ac_ext <<_ACEOF
12711 cat confdefs.h >>conftest.$ac_ext
12712 cat >>conftest.$ac_ext <<_ACEOF
12713 /* end confdefs.h. */
12714 #include <X11/XHPlib.h>
12717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12718 $EGREP "XHPDisableReset" >/dev/null 2>&1; then
12719 cat >>confdefs.h <<\_ACEOF
12720 #define HAVE_XHPDISABLERESET 1
12723 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
12724 { echo "$as_me:$LINENO: result: yes" >&5
12725 echo "${ECHO_T}yes" >&6; }
12727 { echo "$as_me:$LINENO: result: no" >&5
12728 echo "${ECHO_T}no" >&6; }
12732 CPPFLAGS="$ac_save_CPPFLAGS"
12735 ###############################################################################
12737 # Check for /proc/interrupts.
12739 ###############################################################################
12741 have_proc_interrupts=no
12742 with_proc_interrupts_req=unspecified
12744 # Check whether --with-proc-interrupts was given.
12745 if test "${with_proc_interrupts+set}" = set; then
12746 withval=$with_proc_interrupts; with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
12748 with_proc_interrupts=yes
12752 if test "$with_proc_interrupts" = yes; then
12754 # Note that we may be building in an environment (e.g. Debian buildd chroot)
12755 # without a proper /proc filesystem. If /proc/interrupts exists, then we'll
12756 # check that it has the bits we need, but otherwise we'll just go on faith.
12758 have_proc_interrupts=yes
12760 if test -f /proc/interrupts; then
12761 { echo "$as_me:$LINENO: checking whether /proc/interrupts contains keyboard data" >&5
12762 echo $ECHO_N "checking whether /proc/interrupts contains keyboard data... $ECHO_C" >&6; }
12763 if test "${ac_cv_have_proc_interrupts+set}" = set; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12766 ac_cv_have_proc_interrupts=no
12767 if grep 'keyboard\|i8042' /proc/interrupts >/dev/null 2>&1 ; then
12768 ac_cv_have_proc_interrupts=yes
12772 { echo "$as_me:$LINENO: result: $ac_cv_have_proc_interrupts" >&5
12773 echo "${ECHO_T}$ac_cv_have_proc_interrupts" >&6; }
12774 have_proc_interrupts=$ac_cv_have_proc_interrupts
12777 if test "$have_proc_interrupts" = yes; then
12778 cat >>confdefs.h <<\_ACEOF
12779 #define HAVE_PROC_INTERRUPTS 1
12784 elif test "$with_proc_interrupts" != no; then
12785 echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
12790 ###############################################################################
12792 # The --enable-locking option
12794 ###############################################################################
12796 # Check whether --enable-locking was given.
12797 if test "${enable_locking+set}" = set; then
12798 enableval=$enable_locking; enable_locking="$enableval"
12800 if test "$ac_macosx" = yes; then
12801 # We can't lock on MacOS X, so default to not compiling in support for it.
12802 # But allow --enable-locking to override that, so I can debug Linux locking
12810 if test "$enable_locking" = yes; then
12812 elif test "$enable_locking" = no; then
12813 cat >>confdefs.h <<\_ACEOF
12814 #define NO_LOCKING 1
12818 echo "error: must be yes or no: --enable-locking=$enable_locking"
12823 ###############################################################################
12825 # Whether to allow root password to unblank.
12827 ###############################################################################
12828 # Check whether --enable-root-passwd was given.
12829 if test "${enable_root_passwd+set}" = set; then
12830 enableval=$enable_root_passwd; enable_root_passwd="$enableval"
12832 enable_root_passwd=yes
12835 if test "$enable_root_passwd" = yes; then
12836 cat >>confdefs.h <<\_ACEOF
12837 #define ALLOW_ROOT_PASSWD 1
12841 elif test "$enable_root_passwd" != no; then
12842 echo "error: must be yes or no: --enable-root-passwd=$enable_root_passwd"
12846 ###############################################################################
12850 ###############################################################################
12854 # Solaris systems tend to come with PAM misconfigured.
12855 # Don't build it by default, even if the headers exist.
12856 with_pam_default=no
12859 # Default to building PAM support on all other systems, if it exists.
12860 with_pam_default=yes
12865 with_pam_req=unspecified
12868 # Check whether --with-pam was given.
12869 if test "${with_pam+set}" = set; then
12870 withval=$with_pam; with_pam="$withval"; with_pam_req="$withval"
12872 with_pam=$with_pam_default
12877 # Check whether --with-pam_service_name was given.
12878 if test "${with_pam_service_name+set}" = set; then
12879 withval=$with_pam_service_name; pam_service_name="$withval"
12881 pam_service_name="xscreensaver"
12886 case "$with_pam" in
12891 { echo "$as_me:$LINENO: checking for PAM headers" >&5
12892 echo $ECHO_N "checking for PAM headers... $ECHO_C" >&6; }
12893 d=$with_pam/include
12894 if test -d $d; then
12895 X_CFLAGS="-I$d $X_CFLAGS"
12896 { echo "$as_me:$LINENO: result: $d" >&5
12897 echo "${ECHO_T}$d" >&6; }
12899 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12900 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
12903 { echo "$as_me:$LINENO: checking for PAM libs" >&5
12904 echo $ECHO_N "checking for PAM libs... $ECHO_C" >&6; }
12906 if test -d $d; then
12907 X_LIBS="-L$d $X_LIBS"
12908 { echo "$as_me:$LINENO: result: $d" >&5
12909 echo "${ECHO_T}$d" >&6; }
12911 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12912 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
12915 # replace the directory string with "yes".
12917 with_pam=$with_pam_req
12922 echo "error: argument to --with-pam must be \"yes\", \"no\", or a directory."
12923 echo " If it is a directory, then \`DIR/include' will be added to"
12924 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12930 if test "$enable_locking" = yes -a "$with_pam" = yes; then
12931 { echo "$as_me:$LINENO: checking for PAM" >&5
12932 echo $ECHO_N "checking for PAM... $ECHO_C" >&6; }
12933 if test "${ac_cv_pam+set}" = set; then
12934 echo $ECHO_N "(cached) $ECHO_C" >&6
12937 ac_save_CPPFLAGS="$CPPFLAGS"
12938 if test \! -z "$includedir" ; then
12939 CPPFLAGS="$CPPFLAGS -I$includedir"
12941 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12942 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12943 cat >conftest.$ac_ext <<_ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h. */
12949 #include <security/pam_appl.h>
12958 rm -f conftest.$ac_objext
12959 if { (ac_try="$ac_compile"
12960 case "(($ac_try" in
12961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12962 *) ac_try_echo=$ac_try;;
12964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12965 (eval "$ac_compile") 2>conftest.er1
12967 grep -v '^ *+' conftest.er1 >conftest.err
12969 cat conftest.err >&5
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); } && {
12972 test -z "$ac_c_werror_flag" ||
12973 test ! -s conftest.err
12974 } && test -s conftest.$ac_objext; then
12977 echo "$as_me: failed program was:" >&5
12978 sed 's/^/| /' conftest.$ac_ext >&5
12983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12984 CPPFLAGS="$ac_save_CPPFLAGS"
12986 { echo "$as_me:$LINENO: result: $ac_cv_pam" >&5
12987 echo "${ECHO_T}$ac_cv_pam" >&6; }
12988 if test "$ac_cv_pam" = yes ; then
12990 cat >>confdefs.h <<\_ACEOF
12994 cat >>confdefs.h <<_ACEOF
12995 #define PAM_SERVICE_NAME "$pam_service_name"
12999 PASSWD_LIBS="${PASSWD_LIBS} -lpam"
13001 # libpam typically requires dlopen and dlsym. On FreeBSD,
13002 # those are in libc. On Linux and Solaris, they're in libdl.
13003 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13004 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13005 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13006 echo $ECHO_N "(cached) $ECHO_C" >&6
13008 ac_check_lib_save_LIBS=$LIBS
13010 cat >conftest.$ac_ext <<_ACEOF
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h. */
13017 /* Override any GCC internal prototype to avoid an error.
13018 Use char because int might match the return type of a GCC
13019 builtin and then its argument prototype would still apply. */
13032 rm -f conftest.$ac_objext conftest$ac_exeext
13033 if { (ac_try="$ac_link"
13034 case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039 (eval "$ac_link") 2>conftest.er1
13041 grep -v '^ *+' conftest.er1 >conftest.err
13043 cat conftest.err >&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } && {
13046 test -z "$ac_c_werror_flag" ||
13047 test ! -s conftest.err
13048 } && test -s conftest$ac_exeext &&
13049 $as_test_x conftest$ac_exeext; then
13050 ac_cv_lib_dl_dlopen=yes
13052 echo "$as_me: failed program was:" >&5
13053 sed 's/^/| /' conftest.$ac_ext >&5
13055 ac_cv_lib_dl_dlopen=no
13058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13059 conftest$ac_exeext conftest.$ac_ext
13060 LIBS=$ac_check_lib_save_LIBS
13062 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13063 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13064 if test $ac_cv_lib_dl_dlopen = yes; then
13065 PASSWD_LIBS="${PASSWD_LIBS} -ldl"
13069 # On Linux, sigtimedwait() is in libc; on Solaris, it's in librt.
13071 { echo "$as_me:$LINENO: checking for sigtimedwait in -lc" >&5
13072 echo $ECHO_N "checking for sigtimedwait in -lc... $ECHO_C" >&6; }
13073 if test "${ac_cv_lib_c_sigtimedwait+set}" = set; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 ac_check_lib_save_LIBS=$LIBS
13078 cat >conftest.$ac_ext <<_ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h. */
13085 /* Override any GCC internal prototype to avoid an error.
13086 Use char because int might match the return type of a GCC
13087 builtin and then its argument prototype would still apply. */
13091 char sigtimedwait ();
13095 return sigtimedwait ();
13100 rm -f conftest.$ac_objext conftest$ac_exeext
13101 if { (ac_try="$ac_link"
13102 case "(($ac_try" in
13103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104 *) ac_try_echo=$ac_try;;
13106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107 (eval "$ac_link") 2>conftest.er1
13109 grep -v '^ *+' conftest.er1 >conftest.err
13111 cat conftest.err >&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); } && {
13114 test -z "$ac_c_werror_flag" ||
13115 test ! -s conftest.err
13116 } && test -s conftest$ac_exeext &&
13117 $as_test_x conftest$ac_exeext; then
13118 ac_cv_lib_c_sigtimedwait=yes
13120 echo "$as_me: failed program was:" >&5
13121 sed 's/^/| /' conftest.$ac_ext >&5
13123 ac_cv_lib_c_sigtimedwait=no
13126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13127 conftest$ac_exeext conftest.$ac_ext
13128 LIBS=$ac_check_lib_save_LIBS
13130 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigtimedwait" >&5
13131 echo "${ECHO_T}$ac_cv_lib_c_sigtimedwait" >&6; }
13132 if test $ac_cv_lib_c_sigtimedwait = yes; then
13134 cat >>confdefs.h <<\_ACEOF
13135 #define HAVE_SIGTIMEDWAIT 1
13140 if test "$have_timedwait" = no ; then
13141 { echo "$as_me:$LINENO: checking for sigtimedwait in -lrt" >&5
13142 echo $ECHO_N "checking for sigtimedwait in -lrt... $ECHO_C" >&6; }
13143 if test "${ac_cv_lib_rt_sigtimedwait+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13146 ac_check_lib_save_LIBS=$LIBS
13148 cat >conftest.$ac_ext <<_ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13155 /* Override any GCC internal prototype to avoid an error.
13156 Use char because int might match the return type of a GCC
13157 builtin and then its argument prototype would still apply. */
13161 char sigtimedwait ();
13165 return sigtimedwait ();
13170 rm -f conftest.$ac_objext conftest$ac_exeext
13171 if { (ac_try="$ac_link"
13172 case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_link") 2>conftest.er1
13179 grep -v '^ *+' conftest.er1 >conftest.err
13181 cat conftest.err >&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } && {
13184 test -z "$ac_c_werror_flag" ||
13185 test ! -s conftest.err
13186 } && test -s conftest$ac_exeext &&
13187 $as_test_x conftest$ac_exeext; then
13188 ac_cv_lib_rt_sigtimedwait=yes
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13193 ac_cv_lib_rt_sigtimedwait=no
13196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13197 conftest$ac_exeext conftest.$ac_ext
13198 LIBS=$ac_check_lib_save_LIBS
13200 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sigtimedwait" >&5
13201 echo "${ECHO_T}$ac_cv_lib_rt_sigtimedwait" >&6; }
13202 if test $ac_cv_lib_rt_sigtimedwait = yes; then
13204 cat >>confdefs.h <<\_ACEOF
13205 #define HAVE_SIGTIMEDWAIT 1
13208 PASSWD_LIBS="${PASSWD_LIBS} -lrt"
13213 { echo "$as_me:$LINENO: checking how to call pam_strerror" >&5
13214 echo $ECHO_N "checking how to call pam_strerror... $ECHO_C" >&6; }
13215 if test "${ac_cv_pam_strerror_args+set}" = set; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 ac_save_CPPFLAGS="$CPPFLAGS"
13220 if test \! -z "$includedir" ; then
13221 CPPFLAGS="$CPPFLAGS -I$includedir"
13223 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13224 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13225 cat >conftest.$ac_ext <<_ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13232 #include <stdlib.h>
13233 #include <security/pam_appl.h>
13237 pam_handle_t *pamh = 0;
13238 char *s = pam_strerror(pamh, PAM_SUCCESS);
13243 rm -f conftest.$ac_objext
13244 if { (ac_try="$ac_compile"
13245 case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250 (eval "$ac_compile") 2>conftest.er1
13252 grep -v '^ *+' conftest.er1 >conftest.err
13254 cat conftest.err >&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); } && {
13257 test -z "$ac_c_werror_flag" ||
13258 test ! -s conftest.err
13259 } && test -s conftest.$ac_objext; then
13260 ac_pam_strerror_args=2
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13266 ac_save_CPPFLAGS="$CPPFLAGS"
13267 if test \! -z "$includedir" ; then
13268 CPPFLAGS="$CPPFLAGS -I$includedir"
13270 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13271 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13272 cat >conftest.$ac_ext <<_ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h. */
13279 #include <stdlib.h>
13280 #include <security/pam_appl.h>
13285 pam_strerror(PAM_SUCCESS);
13290 rm -f conftest.$ac_objext
13291 if { (ac_try="$ac_compile"
13292 case "(($ac_try" in
13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 *) ac_try_echo=$ac_try;;
13296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_compile") 2>conftest.er1
13299 grep -v '^ *+' conftest.er1 >conftest.err
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } && {
13304 test -z "$ac_c_werror_flag" ||
13305 test ! -s conftest.err
13306 } && test -s conftest.$ac_objext; then
13307 ac_pam_strerror_args=1
13309 echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13312 ac_pam_strerror_args=0
13315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13316 CPPFLAGS="$ac_save_CPPFLAGS"
13319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13320 CPPFLAGS="$ac_save_CPPFLAGS"
13321 ac_cv_pam_strerror_args=$ac_pam_strerror_args
13324 ac_pam_strerror_args=$ac_cv_pam_strerror_args
13325 if test "$ac_pam_strerror_args" = 1 ; then
13326 { echo "$as_me:$LINENO: result: one argument" >&5
13327 echo "${ECHO_T}one argument" >&6; }
13328 elif test "$ac_pam_strerror_args" = 2 ; then
13329 cat >>confdefs.h <<\_ACEOF
13330 #define PAM_STRERROR_TWO_ARGS 1
13333 { echo "$as_me:$LINENO: result: two arguments" >&5
13334 echo "${ECHO_T}two arguments" >&6; }
13336 { echo "$as_me:$LINENO: result: unknown" >&5
13337 echo "${ECHO_T}unknown" >&6; }
13340 # Check pam_fail_delay
13341 { echo "$as_me:$LINENO: checking pam_fail_delay in -lpam" >&5
13342 echo $ECHO_N "checking pam_fail_delay in -lpam... $ECHO_C" >&6; }
13343 if test "${ac_cv_pam_fail_delay+set}" = set; then
13344 echo $ECHO_N "(cached) $ECHO_C" >&6
13346 ac_save_LDFLAGS="$LDFLAGS"
13348 cat >conftest.$ac_ext <<_ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h. */
13354 #include <security/pam_appl.h>
13358 pam_handle_t *pamh = 0;
13359 unsigned int usec = 1;
13360 int status = pam_fail_delay (pamh, usec);
13365 rm -f conftest.$ac_objext conftest$ac_exeext
13366 if { (ac_try="$ac_link"
13367 case "(($ac_try" in
13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372 (eval "$ac_link") 2>conftest.er1
13374 grep -v '^ *+' conftest.er1 >conftest.err
13376 cat conftest.err >&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } && {
13379 test -z "$ac_c_werror_flag" ||
13380 test ! -s conftest.err
13381 } && test -s conftest$ac_exeext &&
13382 $as_test_x conftest$ac_exeext; then
13383 ac_pam_fail_delay=yes
13385 echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13388 ac_pam_fail_delay=no
13391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13392 conftest$ac_exeext conftest.$ac_ext
13393 ac_cv_pam_fail_delay=$ac_pam_fail_delay,
13394 LDFLAGS=$ac_save_LDFLAGS
13398 if test "$ac_pam_fail_delay" = yes ; then
13399 { echo "$as_me:$LINENO: result: yes" >&5
13400 echo "${ECHO_T}yes" >&6; }
13401 cat >>confdefs.h <<\_ACEOF
13402 #define HAVE_PAM_FAIL_DELAY 1
13406 { echo "$as_me:$LINENO: result: no" >&5
13407 echo "${ECHO_T}no" >&6; }
13414 ###############################################################################
13416 # Check for Kerberos.
13418 ###############################################################################
13422 with_kerberos_req=unspecified
13425 # Check whether --with-kerberos was given.
13426 if test "${with_kerberos+set}" = set; then
13427 withval=$with_kerberos; with_kerberos="$withval"; with_kerberos_req="$withval"
13434 case "$with_kerberos" in
13439 { echo "$as_me:$LINENO: checking for Kerberos headers" >&5
13440 echo $ECHO_N "checking for Kerberos headers... $ECHO_C" >&6; }
13441 d=$with_kerberos/include
13442 if test -d $d; then
13443 X_CFLAGS="-I$d $X_CFLAGS"
13444 { echo "$as_me:$LINENO: result: $d" >&5
13445 echo "${ECHO_T}$d" >&6; }
13447 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13448 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
13451 { echo "$as_me:$LINENO: checking for Kerberos libs" >&5
13452 echo $ECHO_N "checking for Kerberos libs... $ECHO_C" >&6; }
13453 d=$with_kerberos/lib
13454 if test -d $d; then
13455 X_LIBS="-L$d $X_LIBS"
13456 { echo "$as_me:$LINENO: result: $d" >&5
13457 echo "${ECHO_T}$d" >&6; }
13459 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13460 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
13463 # replace the directory string with "yes".
13464 with_kerberos_req="yes"
13465 with_kerberos=$with_kerberos_req
13470 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
13471 echo " If it is a directory, then \`DIR/include' will be added to"
13472 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13478 if test "$enable_locking" = yes -a "$with_kerberos" = yes; then
13479 { echo "$as_me:$LINENO: checking for Kerberos 4" >&5
13480 echo $ECHO_N "checking for Kerberos 4... $ECHO_C" >&6; }
13481 if test "${ac_cv_kerberos+set}" = set; then
13482 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 ac_save_CPPFLAGS="$CPPFLAGS"
13486 if test \! -z "$includedir" ; then
13487 CPPFLAGS="$CPPFLAGS -I$includedir"
13489 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13490 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13491 cat >conftest.$ac_ext <<_ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13506 rm -f conftest.$ac_objext
13507 if { (ac_try="$ac_compile"
13508 case "(($ac_try" in
13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513 (eval "$ac_compile") 2>conftest.er1
13515 grep -v '^ *+' conftest.er1 >conftest.err
13517 cat conftest.err >&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } && {
13520 test -z "$ac_c_werror_flag" ||
13521 test ! -s conftest.err
13522 } && test -s conftest.$ac_objext; then
13525 echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13532 CPPFLAGS="$ac_save_CPPFLAGS"
13534 { echo "$as_me:$LINENO: result: $ac_cv_kerberos" >&5
13535 echo "${ECHO_T}$ac_cv_kerberos" >&6; }
13536 { echo "$as_me:$LINENO: checking for Kerberos 5" >&5
13537 echo $ECHO_N "checking for Kerberos 5... $ECHO_C" >&6; }
13538 if test "${ac_cv_kerberos5+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13542 ac_save_CPPFLAGS="$CPPFLAGS"
13543 if test \! -z "$includedir" ; then
13544 CPPFLAGS="$CPPFLAGS -I$includedir"
13546 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13547 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13548 cat >conftest.$ac_ext <<_ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h. */
13554 #include <kerberosIV/krb.h>
13563 rm -f conftest.$ac_objext
13564 if { (ac_try="$ac_compile"
13565 case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_compile") 2>conftest.er1
13572 grep -v '^ *+' conftest.er1 >conftest.err
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } && {
13577 test -z "$ac_c_werror_flag" ||
13578 test ! -s conftest.err
13579 } && test -s conftest.$ac_objext; then
13580 ac_cv_kerberos5=yes
13582 echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13589 CPPFLAGS="$ac_save_CPPFLAGS"
13591 { echo "$as_me:$LINENO: result: $ac_cv_kerberos5" >&5
13592 echo "${ECHO_T}$ac_cv_kerberos5" >&6; }
13594 if test "$ac_cv_kerberos" = yes ; then
13596 cat >>confdefs.h <<\_ACEOF
13597 #define HAVE_KERBEROS 1
13602 if test "$ac_cv_kerberos5" = yes ; then
13604 # Andrew Snare <ajs@pigpond.com> wrote:
13606 # You were assuming that if kerberosV (krb5) was found, then kerberosIV
13607 # (krb4) was also available. This turns out not to be the case with
13608 # mit-krb-1.2.7; apparently backwards-compatibility with KerberosIV
13611 # So, disable kerberosV support if libkrb4 can't be found.
13612 # This is not the best solution, but it makes the compile not fail.
13615 ac_save_CPPFLAGS="$CPPFLAGS"
13616 ac_save_LDFLAGS="$LDFLAGS"
13617 # ac_save_LIBS="$LIBS"
13619 if test \! -z "$includedir" ; then
13620 CPPFLAGS="$CPPFLAGS -I$includedir"
13622 # note: $X_CFLAGS includes $x_includes
13623 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13625 if test \! -z "$libdir" ; then
13626 LDFLAGS="$LDFLAGS -L$libdir"
13628 # note: $X_LIBS includes $x_libraries
13629 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13631 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13632 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13633 { echo "$as_me:$LINENO: checking for krb_get_tf_realm in -lkrb4" >&5
13634 echo $ECHO_N "checking for krb_get_tf_realm in -lkrb4... $ECHO_C" >&6; }
13635 if test "${ac_cv_lib_krb4_krb_get_tf_realm+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13638 ac_check_lib_save_LIBS=$LIBS
13639 LIBS="-lkrb4 $LIBS"
13640 cat >conftest.$ac_ext <<_ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h. */
13647 /* Override any GCC internal prototype to avoid an error.
13648 Use char because int might match the return type of a GCC
13649 builtin and then its argument prototype would still apply. */
13653 char krb_get_tf_realm ();
13657 return krb_get_tf_realm ();
13662 rm -f conftest.$ac_objext conftest$ac_exeext
13663 if { (ac_try="$ac_link"
13664 case "(($ac_try" in
13665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666 *) ac_try_echo=$ac_try;;
13668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669 (eval "$ac_link") 2>conftest.er1
13671 grep -v '^ *+' conftest.er1 >conftest.err
13673 cat conftest.err >&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } && {
13676 test -z "$ac_c_werror_flag" ||
13677 test ! -s conftest.err
13678 } && test -s conftest$ac_exeext &&
13679 $as_test_x conftest$ac_exeext; then
13680 ac_cv_lib_krb4_krb_get_tf_realm=yes
13682 echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13685 ac_cv_lib_krb4_krb_get_tf_realm=no
13688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13689 conftest$ac_exeext conftest.$ac_ext
13690 LIBS=$ac_check_lib_save_LIBS
13692 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_tf_realm" >&5
13693 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_tf_realm" >&6; }
13694 if test $ac_cv_lib_krb4_krb_get_tf_realm = yes; then
13700 CPPFLAGS="$ac_save_CPPFLAGS"
13701 LDFLAGS="$ac_save_LDFLAGS"
13702 # LIBS="$ac_save_LIBS"
13704 if test "$have_kerberos" = yes ; then
13706 cat >>confdefs.h <<\_ACEOF
13707 #define HAVE_KERBEROS 1
13710 cat >>confdefs.h <<\_ACEOF
13711 #define HAVE_KERBEROS5 1
13716 { echo "$as_me:$LINENO: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&5
13717 echo "$as_me: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&2;}
13722 if test "$have_kerberos5" = yes ; then
13723 # from Matt Knopp <mhat@infocalypse.netlag.com>
13724 # (who got it from amu@mit.edu)
13726 PASSWD_LIBS="$PASSWD_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
13728 # jwz: MacOS X uses -lkrb5, but not -lcrypt
13730 ac_save_CPPFLAGS="$CPPFLAGS"
13731 ac_save_LDFLAGS="$LDFLAGS"
13732 # ac_save_LIBS="$LIBS"
13734 if test \! -z "$includedir" ; then
13735 CPPFLAGS="$CPPFLAGS -I$includedir"
13737 # note: $X_CFLAGS includes $x_includes
13738 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13740 if test \! -z "$libdir" ; then
13741 LDFLAGS="$LDFLAGS -L$libdir"
13743 # note: $X_LIBS includes $x_libraries
13744 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13746 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13747 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13748 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
13749 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
13750 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 ac_check_lib_save_LIBS=$LIBS
13754 LIBS="-lcrypt $LIBS"
13755 cat >conftest.$ac_ext <<_ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13762 /* Override any GCC internal prototype to avoid an error.
13763 Use char because int might match the return type of a GCC
13764 builtin and then its argument prototype would still apply. */
13777 rm -f conftest.$ac_objext conftest$ac_exeext
13778 if { (ac_try="$ac_link"
13779 case "(($ac_try" in
13780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781 *) ac_try_echo=$ac_try;;
13783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13784 (eval "$ac_link") 2>conftest.er1
13786 grep -v '^ *+' conftest.er1 >conftest.err
13788 cat conftest.err >&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } && {
13791 test -z "$ac_c_werror_flag" ||
13792 test ! -s conftest.err
13793 } && test -s conftest$ac_exeext &&
13794 $as_test_x conftest$ac_exeext; then
13795 ac_cv_lib_crypt_crypt=yes
13797 echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13800 ac_cv_lib_crypt_crypt=no
13803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13804 conftest$ac_exeext conftest.$ac_ext
13805 LIBS=$ac_check_lib_save_LIBS
13807 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
13808 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
13809 if test $ac_cv_lib_crypt_crypt = yes; then
13810 PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
13813 CPPFLAGS="$ac_save_CPPFLAGS"
13814 LDFLAGS="$ac_save_LDFLAGS"
13815 # LIBS="$ac_save_LIBS"
13818 elif test "$have_kerberos" = yes ; then
13819 # from Tim Showalter <tjs@psaux.com> for FreeBSD 4.2
13820 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
13823 if test "$have_kerberos" = yes ; then
13824 { echo "$as_me:$LINENO: checking for res_search" >&5
13825 echo $ECHO_N "checking for res_search... $ECHO_C" >&6; }
13826 if test "${ac_cv_func_res_search+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13829 cat >conftest.$ac_ext <<_ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h. */
13835 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
13836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13837 #define res_search innocuous_res_search
13839 /* System header to define __stub macros and hopefully few prototypes,
13840 which can conflict with char res_search (); below.
13841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13842 <limits.h> exists even on freestanding compilers. */
13845 # include <limits.h>
13847 # include <assert.h>
13852 /* Override any GCC internal prototype to avoid an error.
13853 Use char because int might match the return type of a GCC
13854 builtin and then its argument prototype would still apply. */
13858 char res_search ();
13859 /* The GNU C library defines this for functions which it implements
13860 to always fail with ENOSYS. Some functions are actually named
13861 something starting with __ and the normal name is an alias. */
13862 #if defined __stub_res_search || defined __stub___res_search
13869 return res_search ();
13874 rm -f conftest.$ac_objext conftest$ac_exeext
13875 if { (ac_try="$ac_link"
13876 case "(($ac_try" in
13877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878 *) ac_try_echo=$ac_try;;
13880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881 (eval "$ac_link") 2>conftest.er1
13883 grep -v '^ *+' conftest.er1 >conftest.err
13885 cat conftest.err >&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } && {
13888 test -z "$ac_c_werror_flag" ||
13889 test ! -s conftest.err
13890 } && test -s conftest$ac_exeext &&
13891 $as_test_x conftest$ac_exeext; then
13892 ac_cv_func_res_search=yes
13894 echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13897 ac_cv_func_res_search=no
13900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13901 conftest$ac_exeext conftest.$ac_ext
13903 { echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
13904 echo "${ECHO_T}$ac_cv_func_res_search" >&6; }
13905 if test $ac_cv_func_res_search = yes; then
13908 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
13909 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; }
13910 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13913 ac_check_lib_save_LIBS=$LIBS
13914 LIBS="-lresolv $LIBS"
13915 cat >conftest.$ac_ext <<_ACEOF
13918 cat confdefs.h >>conftest.$ac_ext
13919 cat >>conftest.$ac_ext <<_ACEOF
13920 /* end confdefs.h. */
13922 /* Override any GCC internal prototype to avoid an error.
13923 Use char because int might match the return type of a GCC
13924 builtin and then its argument prototype would still apply. */
13928 char res_search ();
13932 return res_search ();
13937 rm -f conftest.$ac_objext conftest$ac_exeext
13938 if { (ac_try="$ac_link"
13939 case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944 (eval "$ac_link") 2>conftest.er1
13946 grep -v '^ *+' conftest.er1 >conftest.err
13948 cat conftest.err >&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } && {
13951 test -z "$ac_c_werror_flag" ||
13952 test ! -s conftest.err
13953 } && test -s conftest$ac_exeext &&
13954 $as_test_x conftest$ac_exeext; then
13955 ac_cv_lib_resolv_res_search=yes
13957 echo "$as_me: failed program was:" >&5
13958 sed 's/^/| /' conftest.$ac_ext >&5
13960 ac_cv_lib_resolv_res_search=no
13963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13964 conftest$ac_exeext conftest.$ac_ext
13965 LIBS=$ac_check_lib_save_LIBS
13967 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
13968 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; }
13969 if test $ac_cv_lib_resolv_res_search = yes; then
13970 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
13972 { echo "$as_me:$LINENO: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&5
13973 echo "$as_me: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&2;}
13983 ###############################################################################
13985 # Check for the nine billion variants of shadow passwords...
13987 ###############################################################################
13992 with_shadow_req=unspecified
13995 # Check whether --with-shadow was given.
13996 if test "${with_shadow+set}" = set; then
13997 withval=$with_shadow; with_shadow="$withval"; with_shadow_req="$withval"
14004 case "$with_shadow" in
14009 { echo "$as_me:$LINENO: checking for shadow password headers" >&5
14010 echo $ECHO_N "checking for shadow password headers... $ECHO_C" >&6; }
14011 d=$with_shadow/include
14012 if test -d $d; then
14013 X_CFLAGS="-I$d $X_CFLAGS"
14014 { echo "$as_me:$LINENO: result: $d" >&5
14015 echo "${ECHO_T}$d" >&6; }
14017 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14018 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
14021 { echo "$as_me:$LINENO: checking for shadow password libs" >&5
14022 echo $ECHO_N "checking for shadow password libs... $ECHO_C" >&6; }
14024 if test -d $d; then
14025 X_LIBS="-L$d $X_LIBS"
14026 { echo "$as_me:$LINENO: result: $d" >&5
14027 echo "${ECHO_T}$d" >&6; }
14029 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14030 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
14033 # replace the directory string with "yes".
14034 with_shadow_req="yes"
14035 with_shadow=$with_shadow_req
14040 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
14041 echo " If it is a directory, then \`DIR/include' will be added to"
14042 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14048 if test "$enable_locking" = no ; then
14054 ###############################################################################
14056 # Check for Sun "adjunct" passwords.
14058 ###############################################################################
14060 if test "$with_shadow" = yes ; then
14061 { echo "$as_me:$LINENO: checking for Sun-style shadow passwords" >&5
14062 echo $ECHO_N "checking for Sun-style shadow passwords... $ECHO_C" >&6; }
14063 if test "${ac_cv_sun_adjunct+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 ac_save_CPPFLAGS="$CPPFLAGS"
14068 if test \! -z "$includedir" ; then
14069 CPPFLAGS="$CPPFLAGS -I$includedir"
14071 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14072 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14073 cat >conftest.$ac_ext <<_ACEOF
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h. */
14079 #include <stdlib.h>
14080 #include <unistd.h>
14081 #include <sys/types.h>
14082 #include <sys/label.h>
14083 #include <sys/audit.h>
14084 #include <pwdadj.h>
14088 struct passwd_adjunct *p = getpwanam("nobody");
14089 const char *pw = p->pwa_passwd;
14094 rm -f conftest.$ac_objext
14095 if { (ac_try="$ac_compile"
14096 case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_compile") 2>conftest.er1
14103 grep -v '^ *+' conftest.er1 >conftest.err
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } && {
14108 test -z "$ac_c_werror_flag" ||
14109 test ! -s conftest.err
14110 } && test -s conftest.$ac_objext; then
14111 ac_cv_sun_adjunct=yes
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14116 ac_cv_sun_adjunct=no
14119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14120 CPPFLAGS="$ac_save_CPPFLAGS"
14122 { echo "$as_me:$LINENO: result: $ac_cv_sun_adjunct" >&5
14123 echo "${ECHO_T}$ac_cv_sun_adjunct" >&6; }
14124 if test "$ac_cv_sun_adjunct" = yes; then
14125 have_shadow_adjunct=yes
14132 ###############################################################################
14134 # Check for DEC and SCO so-called "enhanced" security.
14136 ###############################################################################
14138 if test "$with_shadow" = yes ; then
14139 { echo "$as_me:$LINENO: checking for DEC-style shadow passwords" >&5
14140 echo $ECHO_N "checking for DEC-style shadow passwords... $ECHO_C" >&6; }
14141 if test "${ac_cv_enhanced_passwd+set}" = set; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 ac_save_CPPFLAGS="$CPPFLAGS"
14146 if test \! -z "$includedir" ; then
14147 CPPFLAGS="$CPPFLAGS -I$includedir"
14149 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14150 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14151 cat >conftest.$ac_ext <<_ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14157 #include <stdlib.h>
14158 #include <unistd.h>
14159 #include <sys/types.h>
14161 #include <sys/security.h>
14166 struct pr_passwd *p;
14168 set_auth_parameters(0, 0);
14169 check_auth_parameters();
14170 p = getprpwnam("nobody");
14171 pw = p->ufld.fd_encrypt;
14176 rm -f conftest.$ac_objext
14177 if { (ac_try="$ac_compile"
14178 case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_compile") 2>conftest.er1
14185 grep -v '^ *+' conftest.er1 >conftest.err
14187 cat conftest.err >&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } && {
14190 test -z "$ac_c_werror_flag" ||
14191 test ! -s conftest.err
14192 } && test -s conftest.$ac_objext; then
14193 ac_cv_enhanced_passwd=yes
14195 echo "$as_me: failed program was:" >&5
14196 sed 's/^/| /' conftest.$ac_ext >&5
14198 ac_cv_enhanced_passwd=no
14201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14202 CPPFLAGS="$ac_save_CPPFLAGS"
14204 { echo "$as_me:$LINENO: result: $ac_cv_enhanced_passwd" >&5
14205 echo "${ECHO_T}$ac_cv_enhanced_passwd" >&6; }
14206 if test $ac_cv_enhanced_passwd = yes; then
14207 have_shadow_enhanced=yes
14211 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
14212 # (I'm told it needs -lcurses too, but I don't understand why.)
14213 # But on DEC, it's in -lsecurity.
14215 { echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
14216 echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6; }
14217 if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14220 ac_check_lib_save_LIBS=$LIBS
14221 LIBS="-lprot -lx $LIBS"
14222 cat >conftest.$ac_ext <<_ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14229 /* Override any GCC internal prototype to avoid an error.
14230 Use char because int might match the return type of a GCC
14231 builtin and then its argument prototype would still apply. */
14235 char getprpwnam ();
14239 return getprpwnam ();
14244 rm -f conftest.$ac_objext conftest$ac_exeext
14245 if { (ac_try="$ac_link"
14246 case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_link") 2>conftest.er1
14253 grep -v '^ *+' conftest.er1 >conftest.err
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } && {
14258 test -z "$ac_c_werror_flag" ||
14259 test ! -s conftest.err
14260 } && test -s conftest$ac_exeext &&
14261 $as_test_x conftest$ac_exeext; then
14262 ac_cv_lib_prot_getprpwnam=yes
14264 echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14267 ac_cv_lib_prot_getprpwnam=no
14270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14271 conftest$ac_exeext conftest.$ac_ext
14272 LIBS=$ac_check_lib_save_LIBS
14274 { echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
14275 echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6; }
14276 if test $ac_cv_lib_prot_getprpwnam = yes; then
14277 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
14279 { echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
14280 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6; }
14281 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
14282 echo $ECHO_N "(cached) $ECHO_C" >&6
14284 ac_check_lib_save_LIBS=$LIBS
14285 LIBS="-lsecurity $LIBS"
14286 cat >conftest.$ac_ext <<_ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h. */
14293 /* Override any GCC internal prototype to avoid an error.
14294 Use char because int might match the return type of a GCC
14295 builtin and then its argument prototype would still apply. */
14299 char getprpwnam ();
14303 return getprpwnam ();
14308 rm -f conftest.$ac_objext conftest$ac_exeext
14309 if { (ac_try="$ac_link"
14310 case "(($ac_try" in
14311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312 *) ac_try_echo=$ac_try;;
14314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14315 (eval "$ac_link") 2>conftest.er1
14317 grep -v '^ *+' conftest.er1 >conftest.err
14319 cat conftest.err >&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); } && {
14322 test -z "$ac_c_werror_flag" ||
14323 test ! -s conftest.err
14324 } && test -s conftest$ac_exeext &&
14325 $as_test_x conftest$ac_exeext; then
14326 ac_cv_lib_security_getprpwnam=yes
14328 echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14331 ac_cv_lib_security_getprpwnam=no
14334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14335 conftest$ac_exeext conftest.$ac_ext
14336 LIBS=$ac_check_lib_save_LIBS
14338 { echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
14339 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6; }
14340 if test $ac_cv_lib_security_getprpwnam = yes; then
14341 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
14349 ###############################################################################
14351 # Check for HP's entry in the "Not Invented Here" Sweepstakes.
14353 ###############################################################################
14355 if test "$with_shadow" = yes ; then
14356 { echo "$as_me:$LINENO: checking for HP-style shadow passwords" >&5
14357 echo $ECHO_N "checking for HP-style shadow passwords... $ECHO_C" >&6; }
14358 if test "${ac_cv_hpux_passwd+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14362 ac_save_CPPFLAGS="$CPPFLAGS"
14363 if test \! -z "$includedir" ; then
14364 CPPFLAGS="$CPPFLAGS -I$includedir"
14366 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14367 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14368 cat >conftest.$ac_ext <<_ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h. */
14374 #include <stdlib.h>
14375 #include <unistd.h>
14376 #include <sys/types.h>
14378 #include <hpsecurity.h>
14383 struct s_passwd *p = getspwnam("nobody");
14384 const char *pw = p->pw_passwd;
14389 rm -f conftest.$ac_objext
14390 if { (ac_try="$ac_compile"
14391 case "(($ac_try" in
14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393 *) ac_try_echo=$ac_try;;
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396 (eval "$ac_compile") 2>conftest.er1
14398 grep -v '^ *+' conftest.er1 >conftest.err
14400 cat conftest.err >&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } && {
14403 test -z "$ac_c_werror_flag" ||
14404 test ! -s conftest.err
14405 } && test -s conftest.$ac_objext; then
14406 ac_cv_hpux_passwd=yes
14408 echo "$as_me: failed program was:" >&5
14409 sed 's/^/| /' conftest.$ac_ext >&5
14411 ac_cv_hpux_passwd=no
14414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14415 CPPFLAGS="$ac_save_CPPFLAGS"
14417 { echo "$as_me:$LINENO: result: $ac_cv_hpux_passwd" >&5
14418 echo "${ECHO_T}$ac_cv_hpux_passwd" >&6; }
14419 if test "$ac_cv_hpux_passwd" = yes; then
14420 have_shadow_hpux=yes
14424 # on HPUX, bigcrypt is in -lsec
14425 { echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
14426 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6; }
14427 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
14428 echo $ECHO_N "(cached) $ECHO_C" >&6
14430 ac_check_lib_save_LIBS=$LIBS
14432 cat >conftest.$ac_ext <<_ACEOF
14435 cat confdefs.h >>conftest.$ac_ext
14436 cat >>conftest.$ac_ext <<_ACEOF
14437 /* end confdefs.h. */
14439 /* Override any GCC internal prototype to avoid an error.
14440 Use char because int might match the return type of a GCC
14441 builtin and then its argument prototype would still apply. */
14449 return bigcrypt ();
14454 rm -f conftest.$ac_objext conftest$ac_exeext
14455 if { (ac_try="$ac_link"
14456 case "(($ac_try" in
14457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14458 *) ac_try_echo=$ac_try;;
14460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14461 (eval "$ac_link") 2>conftest.er1
14463 grep -v '^ *+' conftest.er1 >conftest.err
14465 cat conftest.err >&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); } && {
14468 test -z "$ac_c_werror_flag" ||
14469 test ! -s conftest.err
14470 } && test -s conftest$ac_exeext &&
14471 $as_test_x conftest$ac_exeext; then
14472 ac_cv_lib_sec_bigcrypt=yes
14474 echo "$as_me: failed program was:" >&5
14475 sed 's/^/| /' conftest.$ac_ext >&5
14477 ac_cv_lib_sec_bigcrypt=no
14480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14481 conftest$ac_exeext conftest.$ac_ext
14482 LIBS=$ac_check_lib_save_LIBS
14484 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
14485 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6; }
14486 if test $ac_cv_lib_sec_bigcrypt = yes; then
14487 PASSWD_LIBS="$PASSWD_LIBS -lsec"
14494 ###############################################################################
14496 # Check for FreeBSD-style shadow passwords.
14498 # On FreeBSD, getpwnam() and friends work just like on non-shadow-
14499 # password systems -- except you only get stuff in the pw_passwd field
14500 # if the running program is setuid. So, guess that we've got this
14501 # lossage to contend with if /etc/master.passwd exists, and default to
14502 # a setuid installation.
14504 ###############################################################################
14506 if test "$with_shadow" = yes ; then
14507 { echo "$as_me:$LINENO: checking for FreeBSD-style shadow passwords" >&5
14508 echo $ECHO_N "checking for FreeBSD-style shadow passwords... $ECHO_C" >&6; }
14509 if test "${ac_cv_master_passwd+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14512 if test -f /etc/master.passwd ; then
14513 ac_cv_master_passwd=yes
14515 ac_cv_master_passwd=no
14518 { echo "$as_me:$LINENO: result: $ac_cv_master_passwd" >&5
14519 echo "${ECHO_T}$ac_cv_master_passwd" >&6; }
14520 if test "$ac_cv_master_passwd" = yes; then
14526 ###############################################################################
14528 # Check for traditional (ha!) shadow passwords.
14530 ###############################################################################
14532 if test "$with_shadow" = yes ; then
14533 { echo "$as_me:$LINENO: checking for generic shadow passwords" >&5
14534 echo $ECHO_N "checking for generic shadow passwords... $ECHO_C" >&6; }
14535 if test "${ac_cv_shadow+set}" = set; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14539 ac_save_CPPFLAGS="$CPPFLAGS"
14540 if test \! -z "$includedir" ; then
14541 CPPFLAGS="$CPPFLAGS -I$includedir"
14543 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14544 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14545 cat >conftest.$ac_ext <<_ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h. */
14551 #include <stdlib.h>
14552 #include <unistd.h>
14553 #include <sys/types.h>
14555 #include <shadow.h>
14559 struct spwd *p = getspnam("nobody");
14560 const char *pw = p->sp_pwdp;
14565 rm -f conftest.$ac_objext
14566 if { (ac_try="$ac_compile"
14567 case "(($ac_try" in
14568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14569 *) ac_try_echo=$ac_try;;
14571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14572 (eval "$ac_compile") 2>conftest.er1
14574 grep -v '^ *+' conftest.er1 >conftest.err
14576 cat conftest.err >&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); } && {
14579 test -z "$ac_c_werror_flag" ||
14580 test ! -s conftest.err
14581 } && test -s conftest.$ac_objext; then
14584 echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14591 CPPFLAGS="$ac_save_CPPFLAGS"
14593 { echo "$as_me:$LINENO: result: $ac_cv_shadow" >&5
14594 echo "${ECHO_T}$ac_cv_shadow" >&6; }
14595 if test "$ac_cv_shadow" = yes; then
14599 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
14601 { echo "$as_me:$LINENO: checking for getspnam in -lc" >&5
14602 echo $ECHO_N "checking for getspnam in -lc... $ECHO_C" >&6; }
14603 if test "${ac_cv_lib_c_getspnam+set}" = set; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14606 ac_check_lib_save_LIBS=$LIBS
14608 cat >conftest.$ac_ext <<_ACEOF
14611 cat confdefs.h >>conftest.$ac_ext
14612 cat >>conftest.$ac_ext <<_ACEOF
14613 /* end confdefs.h. */
14615 /* Override any GCC internal prototype to avoid an error.
14616 Use char because int might match the return type of a GCC
14617 builtin and then its argument prototype would still apply. */
14625 return getspnam ();
14630 rm -f conftest.$ac_objext conftest$ac_exeext
14631 if { (ac_try="$ac_link"
14632 case "(($ac_try" in
14633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634 *) ac_try_echo=$ac_try;;
14636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14637 (eval "$ac_link") 2>conftest.er1
14639 grep -v '^ *+' conftest.er1 >conftest.err
14641 cat conftest.err >&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } && {
14644 test -z "$ac_c_werror_flag" ||
14645 test ! -s conftest.err
14646 } && test -s conftest$ac_exeext &&
14647 $as_test_x conftest$ac_exeext; then
14648 ac_cv_lib_c_getspnam=yes
14650 echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14653 ac_cv_lib_c_getspnam=no
14656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14657 conftest$ac_exeext conftest.$ac_ext
14658 LIBS=$ac_check_lib_save_LIBS
14660 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_getspnam" >&5
14661 echo "${ECHO_T}$ac_cv_lib_c_getspnam" >&6; }
14662 if test $ac_cv_lib_c_getspnam = yes; then
14666 if test "$have_getspnam" = no ; then
14667 { echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
14668 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6; }
14669 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
14670 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 ac_check_lib_save_LIBS=$LIBS
14674 cat >conftest.$ac_ext <<_ACEOF
14677 cat confdefs.h >>conftest.$ac_ext
14678 cat >>conftest.$ac_ext <<_ACEOF
14679 /* end confdefs.h. */
14681 /* Override any GCC internal prototype to avoid an error.
14682 Use char because int might match the return type of a GCC
14683 builtin and then its argument prototype would still apply. */
14691 return getspnam ();
14696 rm -f conftest.$ac_objext conftest$ac_exeext
14697 if { (ac_try="$ac_link"
14698 case "(($ac_try" in
14699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700 *) ac_try_echo=$ac_try;;
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703 (eval "$ac_link") 2>conftest.er1
14705 grep -v '^ *+' conftest.er1 >conftest.err
14707 cat conftest.err >&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } && {
14710 test -z "$ac_c_werror_flag" ||
14711 test ! -s conftest.err
14712 } && test -s conftest$ac_exeext &&
14713 $as_test_x conftest$ac_exeext; then
14714 ac_cv_lib_gen_getspnam=yes
14716 echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.$ac_ext >&5
14719 ac_cv_lib_gen_getspnam=no
14722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14723 conftest$ac_exeext conftest.$ac_ext
14724 LIBS=$ac_check_lib_save_LIBS
14726 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
14727 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6; }
14728 if test $ac_cv_lib_gen_getspnam = yes; then
14729 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
14737 ###############################################################################
14739 # Check for other libraries needed for non-shadow passwords.
14741 ###############################################################################
14743 if test "$enable_locking" = yes ; then
14745 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
14747 { echo "$as_me:$LINENO: checking for crypt in -lc" >&5
14748 echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6; }
14749 if test "${ac_cv_lib_c_crypt+set}" = set; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14752 ac_check_lib_save_LIBS=$LIBS
14754 cat >conftest.$ac_ext <<_ACEOF
14757 cat confdefs.h >>conftest.$ac_ext
14758 cat >>conftest.$ac_ext <<_ACEOF
14759 /* end confdefs.h. */
14761 /* Override any GCC internal prototype to avoid an error.
14762 Use char because int might match the return type of a GCC
14763 builtin and then its argument prototype would still apply. */
14776 rm -f conftest.$ac_objext conftest$ac_exeext
14777 if { (ac_try="$ac_link"
14778 case "(($ac_try" in
14779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14780 *) ac_try_echo=$ac_try;;
14782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14783 (eval "$ac_link") 2>conftest.er1
14785 grep -v '^ *+' conftest.er1 >conftest.err
14787 cat conftest.err >&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); } && {
14790 test -z "$ac_c_werror_flag" ||
14791 test ! -s conftest.err
14792 } && test -s conftest$ac_exeext &&
14793 $as_test_x conftest$ac_exeext; then
14794 ac_cv_lib_c_crypt=yes
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14799 ac_cv_lib_c_crypt=no
14802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14803 conftest$ac_exeext conftest.$ac_ext
14804 LIBS=$ac_check_lib_save_LIBS
14806 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
14807 echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6; }
14808 if test $ac_cv_lib_c_crypt = yes; then
14812 if test "$have_crypt" = no ; then
14813 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
14814 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
14815 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
14816 echo $ECHO_N "(cached) $ECHO_C" >&6
14818 ac_check_lib_save_LIBS=$LIBS
14819 LIBS="-lcrypt $LIBS"
14820 cat >conftest.$ac_ext <<_ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h. */
14827 /* Override any GCC internal prototype to avoid an error.
14828 Use char because int might match the return type of a GCC
14829 builtin and then its argument prototype would still apply. */
14842 rm -f conftest.$ac_objext conftest$ac_exeext
14843 if { (ac_try="$ac_link"
14844 case "(($ac_try" in
14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846 *) ac_try_echo=$ac_try;;
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849 (eval "$ac_link") 2>conftest.er1
14851 grep -v '^ *+' conftest.er1 >conftest.err
14853 cat conftest.err >&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } && {
14856 test -z "$ac_c_werror_flag" ||
14857 test ! -s conftest.err
14858 } && test -s conftest$ac_exeext &&
14859 $as_test_x conftest$ac_exeext; then
14860 ac_cv_lib_crypt_crypt=yes
14862 echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.$ac_ext >&5
14865 ac_cv_lib_crypt_crypt=no
14868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14869 conftest$ac_exeext conftest.$ac_ext
14870 LIBS=$ac_check_lib_save_LIBS
14872 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
14873 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
14874 if test $ac_cv_lib_crypt_crypt = yes; then
14875 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
14882 # Most of the above shadow mechanisms will have set need_setuid to yes,
14883 # if they were found. But, on some systems, we need setuid even when
14884 # using plain old vanilla passwords.
14886 if test "$enable_locking" = yes ; then
14888 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
14895 if test "$have_shadow_adjunct" = yes ; then
14896 cat >>confdefs.h <<\_ACEOF
14897 #define HAVE_ADJUNCT_PASSWD 1
14900 elif test "$have_shadow_enhanced" = yes ; then
14901 cat >>confdefs.h <<\_ACEOF
14902 #define HAVE_ENHANCED_PASSWD 1
14905 elif test "$have_shadow_hpux" = yes ; then
14906 cat >>confdefs.h <<\_ACEOF
14907 #define HAVE_HPUX_PASSWD 1
14910 elif test "$have_shadow" = yes ; then
14911 cat >>confdefs.h <<\_ACEOF
14912 #define HAVE_SHADOW_PASSWD 1
14918 ###############################################################################
14920 # Check for external password helper
14921 # On SuSE, instead of having xscreensaver be a setuid program, they
14922 # fork an external program that takes the password on stdin, and
14923 # returns true if that password is a valid one. Then only that
14924 # smaller program needs to be setuid.
14926 # (Note that this external program is not a GUI: the GUI is still
14927 # all in xscreensaver itself; the external program just does auth.)
14929 ###############################################################################
14931 have_passwd_helper=no
14932 with_passwd_helper_req=unspecified
14935 # Check whether --with-passwd-helper was given.
14936 if test "${with_passwd_helper+set}" = set; then
14937 withval=$with_passwd_helper; with_passwd_helper="$withval"; with_passwd_helper_req="$withval"
14939 with_passwd_helper=no
14942 # no HANDLE_X_PATH_ARG for this one
14944 if test "$enable_locking" = no ; then
14945 with_passwd_helper_req=no
14946 with_passwd_helper=no
14949 case "$with_passwd_helper" in
14952 cat >>confdefs.h <<_ACEOF
14953 #define PASSWD_HELPER_PROGRAM "$with_passwd_helper"
14956 have_passwd_helper=yes;;
14958 echo "error: --with-passwd-helper needs full pathname of helper (not '$with_passwd_helper')." >&2
14963 ###############################################################################
14965 # Check for a login manager for a "New Login" button on the lock dialog.
14966 # Usually this will be "/usr/bin/gdmflexiserver".
14968 ###############################################################################
14970 have_login_manager=no
14971 with_login_manager_req=unspecified
14972 default_login_manager='gdmflexiserver -ls'
14975 # Check whether --with-login-manager was given.
14976 if test "${with_login_manager+set}" = set; then
14977 withval=$with_login_manager; with_login_manager="$withval"; with_login_manager_req="$withval"
14979 with_login_manager=no
14982 # no HANDLE_X_PATH_ARG for this one
14984 if test "$enable_locking" = no ; then
14985 with_login_manager_req=no
14986 with_login_manager=no
14989 if test -n "$with_login_manager_req" ; then
14990 ac_cv_login_manager_program=""
14992 if test "$with_login_manager_req" = "yes" ; then
14993 with_login_manager_req=$default_login_manager
14996 case "$with_login_manager_req" in
14998 with_login_manager=""
15002 set dummy $with_login_manager_req ; login_manager_tmp=$2
15003 { echo "$as_me:$LINENO: checking for $login_manager_tmp" >&5
15004 echo $ECHO_N "checking for $login_manager_tmp... $ECHO_C" >&6; }
15005 if test -x "$login_manager_tmp" ; then
15006 { echo "$as_me:$LINENO: result: yes" >&5
15007 echo "${ECHO_T}yes" >&6; }
15009 { echo "$as_me:$LINENO: result: no" >&5
15010 echo "${ECHO_T}no" >&6; }
15011 with_login_manager=""
15016 set dummy $with_login_manager_req ; login_manager_tmp=$2
15018 unset ac_cv_path_login_manager_tmp
15019 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
15020 set dummy $login_manager_tmp; ac_word=$2
15021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15023 if test "${ac_cv_path_login_manager_tmp+set}" = set; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15026 case $login_manager_tmp in
15028 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
15031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15032 for as_dir in $PATH
15035 test -z "$as_dir" && as_dir=.
15036 for ac_exec_ext in '' $ac_executable_extensions; do
15037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15038 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
15039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15049 login_manager_tmp=$ac_cv_path_login_manager_tmp
15050 if test -n "$login_manager_tmp"; then
15051 { echo "$as_me:$LINENO: result: $login_manager_tmp" >&5
15052 echo "${ECHO_T}$login_manager_tmp" >&6; }
15054 { echo "$as_me:$LINENO: result: no" >&5
15055 echo "${ECHO_T}no" >&6; }
15059 if test -z "$login_manager_tmp" ; then
15060 with_login_manager=""
15062 with_login_manager="$login_manager_tmp"
15066 ac_cv_login_manager_program="$with_login_manager"
15068 elif test -n "$ac_cv_login_manager_program"; then
15069 { echo "$as_me:$LINENO: result: checking for login_manager... (cached) $ac_cv_login_manager_program" >&5
15070 echo "${ECHO_T}checking for login_manager... (cached) $ac_cv_login_manager_program" >&6; }
15073 NEW_LOGIN_COMMAND_P=''
15074 NEW_LOGIN_COMMAND="$ac_cv_login_manager_program"
15076 if test -z "$NEW_LOGIN_COMMAND" ; then
15077 NEW_LOGIN_COMMAND="$default_login_manager"
15078 NEW_LOGIN_COMMAND_P='! '
15083 ###############################################################################
15085 # Check for -lgtk (and Gnome stuff)
15087 ###############################################################################
15090 with_gtk_req=unspecified
15092 # Check whether --with-gtk was given.
15093 if test "${with_gtk+set}" = set; then
15094 withval=$with_gtk; with_gtk="$withval"; with_gtk_req="$withval"
15100 # if --with-gtk=/directory/ was specified, remember that directory so that
15101 # we can also look for the `gtk-config' program in that directory.
15102 case "$with_gtk" in
15104 gtk_dir="$with_gtk"
15112 case "$with_gtk" in
15117 { echo "$as_me:$LINENO: checking for Gtk headers" >&5
15118 echo $ECHO_N "checking for Gtk headers... $ECHO_C" >&6; }
15119 d=$with_gtk/include
15120 if test -d $d; then
15121 X_CFLAGS="-I$d $X_CFLAGS"
15122 { echo "$as_me:$LINENO: result: $d" >&5
15123 echo "${ECHO_T}$d" >&6; }
15125 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15126 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
15129 { echo "$as_me:$LINENO: checking for Gtk libs" >&5
15130 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6; }
15132 if test -d $d; then
15133 X_LIBS="-L$d $X_LIBS"
15134 { echo "$as_me:$LINENO: result: $d" >&5
15135 echo "${ECHO_T}$d" >&6; }
15137 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15138 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
15141 # replace the directory string with "yes".
15143 with_gtk=$with_gtk_req
15148 echo "error: argument to --with-gtk must be \"yes\", \"no\", or a directory."
15149 echo " If it is a directory, then \`DIR/include' will be added to"
15150 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15156 if test "$with_gtk" != yes -a "$with_gtk" != no ; then
15157 echo "error: must be yes or no: --with-gtk=$with_gtk"
15162 parse_gtk_version_string() {
15165 maj=`echo $ac_gtk_version_string | sed -n 's/\..*//p'`
15166 min=`echo $ac_gtk_version_string | sed -n 's/[^.]*\.\([^.]*\).*/\1/p'`
15168 ac_gtk_version=`echo "$maj * 1000 + $min" | bc`
15169 if test -z "$ac_gtk_version"; then
15170 ac_gtk_version=unknown
15171 ac_gtk_version_string=unknown
15175 # Find pkg-config... (need this for both gtk and gdk_pixbuf.)
15176 # if the user specified --with-gtk=/foo/ then look there.
15179 if test ! -z "$gtk_dir"; then
15180 # canonicalize slashes.
15181 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
15182 gtk_path="$foo:$gtk_path"
15185 for ac_prog in pkg-config
15187 # Extract the first word of "$ac_prog", so it can be a program name with args.
15188 set dummy $ac_prog; ac_word=$2
15189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15191 if test "${ac_cv_path_pkg_config+set}" = set; then
15192 echo $ECHO_N "(cached) $ECHO_C" >&6
15194 case $pkg_config in
15196 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path.
15199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15200 for as_dir in $gtk_path
15203 test -z "$as_dir" && as_dir=.
15204 for ac_exec_ext in '' $ac_executable_extensions; do
15205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15206 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext"
15207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15217 pkg_config=$ac_cv_path_pkg_config
15218 if test -n "$pkg_config"; then
15219 { echo "$as_me:$LINENO: result: $pkg_config" >&5
15220 echo "${ECHO_T}$pkg_config" >&6; }
15222 { echo "$as_me:$LINENO: result: no" >&5
15223 echo "${ECHO_T}no" >&6; }
15227 test -n "$pkg_config" && break
15231 if test -z "$pkg_config" ; then
15232 { echo "$as_me:$LINENO: WARNING: pkg-config not found!" >&5
15233 echo "$as_me: WARNING: pkg-config not found!" >&2;}
15238 # Utility function for running pkg-config-based tests...
15241 pkg_check_version() {
15242 if test "$ok" = yes ; then
15245 { echo "$as_me:$LINENO: checking for $req" >&5
15246 echo $ECHO_N "checking for $req... $ECHO_C" >&6; }
15247 if $pkg_config --exists "$req" ; then
15248 vers=`$pkg_config --modversion "$req"`
15249 if $pkg_config --exists "$req >= $min" ; then
15250 { echo "$as_me:$LINENO: result: $vers" >&5
15251 echo "${ECHO_T}$vers" >&6; }
15255 { echo "$as_me:$LINENO: result: $vers (wanted >= $min)" >&5
15256 echo "${ECHO_T}$vers (wanted >= $min)" >&6; }
15261 { echo "$as_me:$LINENO: result: no" >&5
15262 echo "${ECHO_T}no" >&6; }
15273 #if test "$with_gtk" = yes; then
15277 pkg_check_version gtk+-2.0 2.0.1 ; ac_gtk_version_string="$vers"
15278 pkg_check_version gmodule-2.0 2.0.0
15279 pkg_check_version libxml-2.0 2.4.6
15280 pkg_check_version libglade-2.0 1.99.0
15281 pkg_check_version gdk-pixbuf-2.0 2.0.0
15282 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
15285 if test "$have_gtk" = no; then
15286 if test -n "$ac_gtk_version_string" ; then
15287 gtk_halfassed="$ac_gtk_version_string"
15288 gtk_halfassed_lib="$req"
15292 if test "$have_gtk" = yes; then
15293 parse_gtk_version_string
15297 if test "$have_gtk" = yes; then
15298 { echo "$as_me:$LINENO: checking for Gtk includes" >&5
15299 echo $ECHO_N "checking for Gtk includes... $ECHO_C" >&6; }
15300 if test "${ac_cv_gtk_config_cflags+set}" = set; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15303 ac_cv_gtk_config_cflags=`$pkg_config --cflags $pkgs`
15305 { echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
15306 echo "${ECHO_T}$ac_cv_gtk_config_cflags" >&6; }
15307 { echo "$as_me:$LINENO: checking for Gtk libs" >&5
15308 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6; }
15309 if test "${ac_cv_gtk_config_libs+set}" = set; then
15310 echo $ECHO_N "(cached) $ECHO_C" >&6
15312 ac_cv_gtk_config_libs=`$pkg_config --libs $pkgs`
15314 { echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
15315 echo "${ECHO_T}$ac_cv_gtk_config_libs" >&6; }
15318 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
15319 ac_gtk_config_libs=$ac_cv_gtk_config_libs
15323 if test "$have_gtk" = yes; then
15324 GTK_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
15325 GTK_DATADIR="$GTK_DATADIR/share"
15328 if test "$have_gtk" = yes; then
15329 INCLUDES="$INCLUDES $ac_gtk_config_cflags"
15330 GTK_LIBS="$GTK_LIBS $ac_gtk_config_libs"
15331 cat >>confdefs.h <<\_ACEOF
15335 cat >>confdefs.h <<\_ACEOF
15336 #define HAVE_GTK2 1
15339 cat >>confdefs.h <<\_ACEOF
15347 { echo "$as_me:$LINENO: checking for DBUS includes" >&5
15348 echo $ECHO_N "checking for DBUS includes... $ECHO_C" >&6; }
15349 if test "${ac_cv_dbus_config_cflags+set}" = set; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15352 ac_cv_dbus_config_cflags=`$pkg_config --cflags dbus-1`
15354 { echo "$as_me:$LINENO: result: $ac_cv_dbus_config_cflags" >&5
15355 echo "${ECHO_T}$ac_cv_dbus_config_cflags" >&6; }
15356 { echo "$as_me:$LINENO: checking for DBUS includes" >&5
15357 echo $ECHO_N "checking for DBUS includes... $ECHO_C" >&6; }
15358 if test "${ac_cv_dbus_config_libs+set}" = set; then
15359 echo $ECHO_N "(cached) $ECHO_C" >&6
15361 ac_cv_dbus_config_libs=`$pkg_config --libs dbus-1`
15363 { echo "$as_me:$LINENO: result: $ac_cv_dbus_config_libs" >&5
15364 echo "${ECHO_T}$ac_cv_dbus_config_libs" >&6; }
15366 ac_dbus_config_cflags=$ac_cv_dbus_config_cflags
15367 ac_dbus_config_libs=$ac_cv_dbus_config_libs
15369 INCLUDES="$INCLUDES $ac_dbus_config_cflags"
15370 GTK_LIBS="$GTK_LIBS $ac_dbus_config_libs"
15372 { echo "$as_me:$LINENO: checking for OSSO includes" >&5
15373 echo $ECHO_N "checking for OSSO includes... $ECHO_C" >&6; }
15374 if test "${ac_cv_osso_config_cflags+set}" = set; then
15375 echo $ECHO_N "(cached) $ECHO_C" >&6
15377 ac_cv_osso_config_cflags=`$pkg_config --cflags libosso`
15379 { echo "$as_me:$LINENO: result: $ac_cv_osso_config_cflags" >&5
15380 echo "${ECHO_T}$ac_cv_osso_config_cflags" >&6; }
15381 { echo "$as_me:$LINENO: checking for OSSO includes" >&5
15382 echo $ECHO_N "checking for OSSO includes... $ECHO_C" >&6; }
15383 if test "${ac_cv_osso_config_libs+set}" = set; then
15384 echo $ECHO_N "(cached) $ECHO_C" >&6
15386 ac_cv_osso_config_libs=`$pkg_config --libs libosso`
15388 { echo "$as_me:$LINENO: result: $ac_cv_osso_config_libs" >&5
15389 echo "${ECHO_T}$ac_cv_osso_config_libs" >&6; }
15391 ac_osso_config_cflags=$ac_cv_osso_config_cflags
15392 ac_osso_config_libs=$ac_cv_osso_config_libs
15394 INCLUDES="$INCLUDES $ac_osso_config_cflags"
15395 GTK_LIBS="$GTK_LIBS $ac_osso_config_libs"
15400 # Check for the various Gnome help and URL loading programs.
15402 WITH_BROWSER=gnome-open
15403 if test "$have_gtk" = yes; then
15404 for ac_prog in gnome-open
15406 # Extract the first word of "$ac_prog", so it can be a program name with args.
15407 set dummy $ac_prog; ac_word=$2
15408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15410 if test "${ac_cv_prog_gnome_open_program+set}" = set; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15413 if test -n "$gnome_open_program"; then
15414 ac_cv_prog_gnome_open_program="$gnome_open_program" # Let the user override the test.
15416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15417 for as_dir in $PATH
15420 test -z "$as_dir" && as_dir=.
15421 for ac_exec_ext in '' $ac_executable_extensions; do
15422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15423 ac_cv_prog_gnome_open_program="$ac_prog"
15424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15433 gnome_open_program=$ac_cv_prog_gnome_open_program
15434 if test -n "$gnome_open_program"; then
15435 { echo "$as_me:$LINENO: result: $gnome_open_program" >&5
15436 echo "${ECHO_T}$gnome_open_program" >&6; }
15438 { echo "$as_me:$LINENO: result: no" >&5
15439 echo "${ECHO_T}no" >&6; }
15443 test -n "$gnome_open_program" && break
15446 for ac_prog in gnome-url-show
15448 # Extract the first word of "$ac_prog", so it can be a program name with args.
15449 set dummy $ac_prog; ac_word=$2
15450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15452 if test "${ac_cv_prog_gnome_url_show_program+set}" = set; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15455 if test -n "$gnome_url_show_program"; then
15456 ac_cv_prog_gnome_url_show_program="$gnome_url_show_program" # Let the user override the test.
15458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15459 for as_dir in $PATH
15462 test -z "$as_dir" && as_dir=.
15463 for ac_exec_ext in '' $ac_executable_extensions; do
15464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15465 ac_cv_prog_gnome_url_show_program="$ac_prog"
15466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15475 gnome_url_show_program=$ac_cv_prog_gnome_url_show_program
15476 if test -n "$gnome_url_show_program"; then
15477 { echo "$as_me:$LINENO: result: $gnome_url_show_program" >&5
15478 echo "${ECHO_T}$gnome_url_show_program" >&6; }
15480 { echo "$as_me:$LINENO: result: no" >&5
15481 echo "${ECHO_T}no" >&6; }
15485 test -n "$gnome_url_show_program" && break
15491 ###############################################################################
15495 ###############################################################################
15498 with_motif_req=unspecified
15500 # Check whether --with-motif was given.
15501 if test "${with_motif+set}" = set; then
15502 withval=$with_motif; with_motif="$withval"; with_motif_req="$withval"
15509 case "$with_motif" in
15514 { echo "$as_me:$LINENO: checking for Motif headers" >&5
15515 echo $ECHO_N "checking for Motif headers... $ECHO_C" >&6; }
15516 d=$with_motif/include
15517 if test -d $d; then
15518 X_CFLAGS="-I$d $X_CFLAGS"
15519 { echo "$as_me:$LINENO: result: $d" >&5
15520 echo "${ECHO_T}$d" >&6; }
15522 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15523 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
15526 { echo "$as_me:$LINENO: checking for Motif libs" >&5
15527 echo $ECHO_N "checking for Motif libs... $ECHO_C" >&6; }
15529 if test -d $d; then
15530 X_LIBS="-L$d $X_LIBS"
15531 { echo "$as_me:$LINENO: result: $d" >&5
15532 echo "${ECHO_T}$d" >&6; }
15534 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15535 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
15538 # replace the directory string with "yes".
15539 with_motif_req="yes"
15540 with_motif=$with_motif_req
15545 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
15546 echo " If it is a directory, then \`DIR/include' will be added to"
15547 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15553 if test "$with_motif" != yes -a "$with_motif" != no ; then
15554 echo "error: must be yes or no: --with-motif=$with_motif"
15558 if test "$with_motif" = yes; then
15561 ac_save_CPPFLAGS="$CPPFLAGS"
15562 if test \! -z "$includedir" ; then
15563 CPPFLAGS="$CPPFLAGS -I$includedir"
15565 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15566 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15567 { echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
15568 echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6; }
15569 if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
15570 echo $ECHO_N "(cached) $ECHO_C" >&6
15572 cat >conftest.$ac_ext <<_ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h. */
15578 #include <stdlib.h>
15580 #include <X11/Intrinsic.h>
15584 rm -f conftest.$ac_objext
15585 if { (ac_try="$ac_compile"
15586 case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591 (eval "$ac_compile") 2>conftest.er1
15593 grep -v '^ *+' conftest.er1 >conftest.err
15595 cat conftest.err >&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } && {
15598 test -z "$ac_c_werror_flag" ||
15599 test ! -s conftest.err
15600 } && test -s conftest.$ac_objext; then
15601 ac_cv_header_Xm_Xm_h=yes
15603 echo "$as_me: failed program was:" >&5
15604 sed 's/^/| /' conftest.$ac_ext >&5
15606 ac_cv_header_Xm_Xm_h=no
15609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15611 { echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
15612 echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6; }
15613 if test $ac_cv_header_Xm_Xm_h = yes; then
15615 cat >>confdefs.h <<\_ACEOF
15616 #define HAVE_MOTIF 1
15619 MOTIF_LIBS="$MOTIF_LIBS -lXm"
15623 CPPFLAGS="$ac_save_CPPFLAGS"
15627 if test "$have_motif" = yes; then
15629 ac_save_CPPFLAGS="$CPPFLAGS"
15630 if test \! -z "$includedir" ; then
15631 CPPFLAGS="$CPPFLAGS -I$includedir"
15633 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15634 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15635 { echo "$as_me:$LINENO: checking for Xm/ComboBox.h" >&5
15636 echo $ECHO_N "checking for Xm/ComboBox.h... $ECHO_C" >&6; }
15637 if test "${ac_cv_header_Xm_ComboBox_h+set}" = set; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15640 cat >conftest.$ac_ext <<_ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646 #include <stdlib.h>
15648 #include <X11/Intrinsic.h>
15650 #include <Xm/ComboBox.h>
15652 rm -f conftest.$ac_objext
15653 if { (ac_try="$ac_compile"
15654 case "(($ac_try" in
15655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15656 *) ac_try_echo=$ac_try;;
15658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15659 (eval "$ac_compile") 2>conftest.er1
15661 grep -v '^ *+' conftest.er1 >conftest.err
15663 cat conftest.err >&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } && {
15666 test -z "$ac_c_werror_flag" ||
15667 test ! -s conftest.err
15668 } && test -s conftest.$ac_objext; then
15669 ac_cv_header_Xm_ComboBox_h=yes
15671 echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15674 ac_cv_header_Xm_ComboBox_h=no
15677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679 { echo "$as_me:$LINENO: result: $ac_cv_header_Xm_ComboBox_h" >&5
15680 echo "${ECHO_T}$ac_cv_header_Xm_ComboBox_h" >&6; }
15681 if test $ac_cv_header_Xm_ComboBox_h = yes; then
15682 cat >>confdefs.h <<\_ACEOF
15683 #define HAVE_XMCOMBOBOX 1
15689 CPPFLAGS="$ac_save_CPPFLAGS"
15693 ###############################################################################
15695 # Checking whether Motif is really Lesstif.
15697 ###############################################################################
15700 if test "$have_motif" = yes ; then
15701 { echo "$as_me:$LINENO: checking whether Motif is really LessTif" >&5
15702 echo $ECHO_N "checking whether Motif is really LessTif... $ECHO_C" >&6; }
15703 if test "${ac_cv_have_lesstif+set}" = set; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15707 ac_save_CPPFLAGS="$CPPFLAGS"
15708 if test \! -z "$includedir" ; then
15709 CPPFLAGS="$CPPFLAGS -I$includedir"
15711 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15712 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15713 cat >conftest.$ac_ext <<_ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h. */
15723 long vers = LesstifVersion;
15728 rm -f conftest.$ac_objext
15729 if { (ac_try="$ac_compile"
15730 case "(($ac_try" in
15731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732 *) ac_try_echo=$ac_try;;
15734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15735 (eval "$ac_compile") 2>conftest.er1
15737 grep -v '^ *+' conftest.er1 >conftest.err
15739 cat conftest.err >&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } && {
15742 test -z "$ac_c_werror_flag" ||
15743 test ! -s conftest.err
15744 } && test -s conftest.$ac_objext; then
15745 ac_cv_have_lesstif=yes
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15750 ac_cv_have_lesstif=no
15753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15754 CPPFLAGS="$ac_save_CPPFLAGS"
15756 { echo "$as_me:$LINENO: result: $ac_cv_have_lesstif" >&5
15757 echo "${ECHO_T}$ac_cv_have_lesstif" >&6; }
15758 have_lesstif=$ac_cv_have_lesstif
15762 lesstif_version=unknown
15763 lesstif_version_string=unknown
15765 if test "$have_lesstif" = yes ; then
15767 echo unknown > conftest-lt
15768 { echo "$as_me:$LINENO: checking LessTif version number" >&5
15769 echo $ECHO_N "checking LessTif version number... $ECHO_C" >&6; }
15770 if test "${ac_cv_lesstif_version_string+set}" = set; then
15771 echo $ECHO_N "(cached) $ECHO_C" >&6
15774 ac_save_CPPFLAGS="$CPPFLAGS"
15775 if test \! -z "$includedir" ; then
15776 CPPFLAGS="$CPPFLAGS -I$includedir"
15778 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15779 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15780 if test "$cross_compiling" = yes; then
15781 ac_cv_lesstif_version=unknown
15782 ac_cv_lesstif_version_string=unknown
15784 cat >conftest.$ac_ext <<_ACEOF
15787 cat confdefs.h >>conftest.$ac_ext
15788 cat >>conftest.$ac_ext <<_ACEOF
15789 /* end confdefs.h. */
15793 FILE *f = fopen("conftest-lt", "w");
15795 fprintf(f, "%d %d.%d\n", LesstifVersion,
15796 LESSTIF_VERSION, LESSTIF_REVISION);
15801 rm -f conftest$ac_exeext
15802 if { (ac_try="$ac_link"
15803 case "(($ac_try" in
15804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15805 *) ac_try_echo=$ac_try;;
15807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15808 (eval "$ac_link") 2>&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15812 { (case "(($ac_try" in
15813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814 *) ac_try_echo=$ac_try;;
15816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817 (eval "$ac_try") 2>&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); }; }; then
15821 ltv=`cat conftest-lt`
15822 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
15823 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
15825 echo "$as_me: program exited with status $ac_status" >&5
15826 echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15829 ( exit $ac_status )
15830 ac_cv_lesstif_version=unknown
15831 ac_cv_lesstif_version_string=unknown
15833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15837 CPPFLAGS="$ac_save_CPPFLAGS"
15839 { echo "$as_me:$LINENO: result: $ac_cv_lesstif_version_string" >&5
15840 echo "${ECHO_T}$ac_cv_lesstif_version_string" >&6; }
15842 lesstif_version=$ac_cv_lesstif_version
15843 lesstif_version_string=$ac_cv_lesstif_version_string
15848 if test "$have_motif" = yes ; then
15850 echo unknown > conftest-mt
15851 { echo "$as_me:$LINENO: checking Motif version number" >&5
15852 echo $ECHO_N "checking Motif version number... $ECHO_C" >&6; }
15853 if test "${ac_cv_motif_version_string+set}" = set; then
15854 echo $ECHO_N "(cached) $ECHO_C" >&6
15857 ac_save_CPPFLAGS="$CPPFLAGS"
15858 if test \! -z "$includedir" ; then
15859 CPPFLAGS="$CPPFLAGS -I$includedir"
15861 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15862 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15863 if test "$cross_compiling" = yes; then
15864 ac_cv_motif_version=unknown
15865 ac_cv_motif_version_string=unknown
15867 cat >conftest.$ac_ext <<_ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h. */
15876 FILE *f = fopen("conftest-mt", "w");
15878 fprintf(f, "%d %d.%d\n", XmVersion,
15879 XmVERSION, XmREVISION);
15884 rm -f conftest$ac_exeext
15885 if { (ac_try="$ac_link"
15886 case "(($ac_try" in
15887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15888 *) ac_try_echo=$ac_try;;
15890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15891 (eval "$ac_link") 2>&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15895 { (case "(($ac_try" in
15896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897 *) ac_try_echo=$ac_try;;
15899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15900 (eval "$ac_try") 2>&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; }; then
15904 mtv=`cat conftest-mt`
15905 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
15906 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
15908 echo "$as_me: program exited with status $ac_status" >&5
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15912 ( exit $ac_status )
15913 ac_cv_motif_version=unknown
15914 ac_cv_motif_version_string=unknown
15916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15920 CPPFLAGS="$ac_save_CPPFLAGS"
15922 { echo "$as_me:$LINENO: result: $ac_cv_motif_version_string" >&5
15923 echo "${ECHO_T}$ac_cv_motif_version_string" >&6; }
15925 motif_version=$ac_cv_motif_version
15926 motif_version_string=$ac_cv_motif_version_string
15931 ###############################################################################
15933 # Checking whether Motif requires -lXpm.
15935 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
15936 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
15937 # of the library whether to build the XPM code into libXm, or whether
15938 # to rely on an external libXm. So the only way to tell whether XPM is
15939 # a link-time requirement is to examine libXm.a, which is very
15940 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
15941 # always link against XPM if the XPM lib exists (and this will be a
15942 # no-op if libXm happens to already have the XPM code in it.)
15944 ###############################################################################
15946 motif_requires_xpm=no
15947 if test "$have_motif" = yes ; then
15948 { echo "$as_me:$LINENO: checking whether Motif requires XPM" >&5
15949 echo $ECHO_N "checking whether Motif requires XPM... $ECHO_C" >&6; }
15950 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
15952 motif_requires_xpm=yes
15953 { echo "$as_me:$LINENO: result: maybe" >&5
15954 echo "${ECHO_T}maybe" >&6; }
15956 { echo "$as_me:$LINENO: result: no" >&5
15957 echo "${ECHO_T}no" >&6; }
15962 ###############################################################################
15964 # Checking whether Motif requires -lXp.
15966 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
15967 # Extension". Why this extension isn't in -lXext with all the others,
15970 ###############################################################################
15973 if test "$have_motif" = yes ; then
15976 ac_save_CPPFLAGS="$CPPFLAGS"
15977 ac_save_LDFLAGS="$LDFLAGS"
15978 # ac_save_LIBS="$LIBS"
15980 if test \! -z "$includedir" ; then
15981 CPPFLAGS="$CPPFLAGS -I$includedir"
15983 # note: $X_CFLAGS includes $x_includes
15984 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15986 if test \! -z "$libdir" ; then
15987 LDFLAGS="$LDFLAGS -L$libdir"
15989 # note: $X_LIBS includes $x_libraries
15990 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15992 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15993 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
15994 { echo "$as_me:$LINENO: checking for XpQueryExtension in -lXp" >&5
15995 echo $ECHO_N "checking for XpQueryExtension in -lXp... $ECHO_C" >&6; }
15996 if test "${ac_cv_lib_Xp_XpQueryExtension+set}" = set; then
15997 echo $ECHO_N "(cached) $ECHO_C" >&6
15999 ac_check_lib_save_LIBS=$LIBS
16000 LIBS="-lXp -lX11 -lXext -lm $LIBS"
16001 cat >conftest.$ac_ext <<_ACEOF
16004 cat confdefs.h >>conftest.$ac_ext
16005 cat >>conftest.$ac_ext <<_ACEOF
16006 /* end confdefs.h. */
16008 /* Override any GCC internal prototype to avoid an error.
16009 Use char because int might match the return type of a GCC
16010 builtin and then its argument prototype would still apply. */
16014 char XpQueryExtension ();
16018 return XpQueryExtension ();
16023 rm -f conftest.$ac_objext conftest$ac_exeext
16024 if { (ac_try="$ac_link"
16025 case "(($ac_try" in
16026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027 *) ac_try_echo=$ac_try;;
16029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16030 (eval "$ac_link") 2>conftest.er1
16032 grep -v '^ *+' conftest.er1 >conftest.err
16034 cat conftest.err >&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); } && {
16037 test -z "$ac_c_werror_flag" ||
16038 test ! -s conftest.err
16039 } && test -s conftest$ac_exeext &&
16040 $as_test_x conftest$ac_exeext; then
16041 ac_cv_lib_Xp_XpQueryExtension=yes
16043 echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16046 ac_cv_lib_Xp_XpQueryExtension=no
16049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16050 conftest$ac_exeext conftest.$ac_ext
16051 LIBS=$ac_check_lib_save_LIBS
16053 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
16054 echo "${ECHO_T}$ac_cv_lib_Xp_XpQueryExtension" >&6; }
16055 if test $ac_cv_lib_Xp_XpQueryExtension = yes; then
16056 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
16061 CPPFLAGS="$ac_save_CPPFLAGS"
16062 LDFLAGS="$ac_save_LDFLAGS"
16063 # LIBS="$ac_save_LIBS"
16068 ###############################################################################
16070 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
16072 ###############################################################################
16075 if test "$have_motif" = yes ; then
16077 ac_save_CPPFLAGS="$CPPFLAGS"
16078 ac_save_LDFLAGS="$LDFLAGS"
16079 # ac_save_LIBS="$LIBS"
16081 if test \! -z "$includedir" ; then
16082 CPPFLAGS="$CPPFLAGS -I$includedir"
16084 # note: $X_CFLAGS includes $x_includes
16085 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16087 if test \! -z "$libdir" ; then
16088 LDFLAGS="$LDFLAGS -L$libdir"
16090 # note: $X_LIBS includes $x_libraries
16091 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16093 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16094 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
16095 { echo "$as_me:$LINENO: checking for _Xsetlocale in -lXintl" >&5
16096 echo $ECHO_N "checking for _Xsetlocale in -lXintl... $ECHO_C" >&6; }
16097 if test "${ac_cv_lib_Xintl__Xsetlocale+set}" = set; then
16098 echo $ECHO_N "(cached) $ECHO_C" >&6
16100 ac_check_lib_save_LIBS=$LIBS
16101 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
16102 cat >conftest.$ac_ext <<_ACEOF
16105 cat confdefs.h >>conftest.$ac_ext
16106 cat >>conftest.$ac_ext <<_ACEOF
16107 /* end confdefs.h. */
16109 /* Override any GCC internal prototype to avoid an error.
16110 Use char because int might match the return type of a GCC
16111 builtin and then its argument prototype would still apply. */
16115 char _Xsetlocale ();
16119 return _Xsetlocale ();
16124 rm -f conftest.$ac_objext conftest$ac_exeext
16125 if { (ac_try="$ac_link"
16126 case "(($ac_try" in
16127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128 *) ac_try_echo=$ac_try;;
16130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16131 (eval "$ac_link") 2>conftest.er1
16133 grep -v '^ *+' conftest.er1 >conftest.err
16135 cat conftest.err >&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); } && {
16138 test -z "$ac_c_werror_flag" ||
16139 test ! -s conftest.err
16140 } && test -s conftest$ac_exeext &&
16141 $as_test_x conftest$ac_exeext; then
16142 ac_cv_lib_Xintl__Xsetlocale=yes
16144 echo "$as_me: failed program was:" >&5
16145 sed 's/^/| /' conftest.$ac_ext >&5
16147 ac_cv_lib_Xintl__Xsetlocale=no
16150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16151 conftest$ac_exeext conftest.$ac_ext
16152 LIBS=$ac_check_lib_save_LIBS
16154 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
16155 echo "${ECHO_T}$ac_cv_lib_Xintl__Xsetlocale" >&6; }
16156 if test $ac_cv_lib_Xintl__Xsetlocale = yes; then
16162 CPPFLAGS="$ac_save_CPPFLAGS"
16163 LDFLAGS="$ac_save_LDFLAGS"
16164 # LIBS="$ac_save_LIBS"
16166 if test "$have_xintl" = yes; then
16167 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
16172 ###############################################################################
16174 # Check for -lGL or -lMesaGL.
16176 ###############################################################################
16180 with_gl_req=unspecified
16183 # Check whether --with-gl was given.
16184 if test "${with_gl+set}" = set; then
16185 withval=$with_gl; with_gl="$withval"; with_gl_req="$withval"
16197 { echo "$as_me:$LINENO: checking for GL headers" >&5
16198 echo $ECHO_N "checking for GL headers... $ECHO_C" >&6; }
16200 if test -d $d; then
16201 X_CFLAGS="-I$d $X_CFLAGS"
16202 { echo "$as_me:$LINENO: result: $d" >&5
16203 echo "${ECHO_T}$d" >&6; }
16205 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16206 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
16209 { echo "$as_me:$LINENO: checking for GL libs" >&5
16210 echo $ECHO_N "checking for GL libs... $ECHO_C" >&6; }
16212 if test -d $d; then
16213 X_LIBS="-L$d $X_LIBS"
16214 { echo "$as_me:$LINENO: result: $d" >&5
16215 echo "${ECHO_T}$d" >&6; }
16217 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16218 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
16221 # replace the directory string with "yes".
16223 with_gl=$with_gl_req
16228 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
16229 echo " If it is a directory, then \`DIR/include' will be added to"
16230 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16236 ac_mesagl_version=unknown
16237 ac_mesagl_version_string=unknown
16239 if test "$with_gl" = yes; then
16241 ac_save_CPPFLAGS="$CPPFLAGS"
16242 if test \! -z "$includedir" ; then
16243 CPPFLAGS="$CPPFLAGS -I$includedir"
16245 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16246 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16247 if test "${ac_cv_header_GL_gl_h+set}" = set; then
16248 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
16249 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
16250 if test "${ac_cv_header_GL_gl_h+set}" = set; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16253 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
16254 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
16256 # Is the header compilable?
16257 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
16258 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
16259 cat >conftest.$ac_ext <<_ACEOF
16262 cat confdefs.h >>conftest.$ac_ext
16263 cat >>conftest.$ac_ext <<_ACEOF
16264 /* end confdefs.h. */
16265 $ac_includes_default
16268 rm -f conftest.$ac_objext
16269 if { (ac_try="$ac_compile"
16270 case "(($ac_try" in
16271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16272 *) ac_try_echo=$ac_try;;
16274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16275 (eval "$ac_compile") 2>conftest.er1
16277 grep -v '^ *+' conftest.er1 >conftest.err
16279 cat conftest.err >&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } && {
16282 test -z "$ac_c_werror_flag" ||
16283 test ! -s conftest.err
16284 } && test -s conftest.$ac_objext; then
16285 ac_header_compiler=yes
16287 echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16290 ac_header_compiler=no
16293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16294 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16295 echo "${ECHO_T}$ac_header_compiler" >&6; }
16297 # Is the header present?
16298 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
16299 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
16300 cat >conftest.$ac_ext <<_ACEOF
16303 cat confdefs.h >>conftest.$ac_ext
16304 cat >>conftest.$ac_ext <<_ACEOF
16305 /* end confdefs.h. */
16308 if { (ac_try="$ac_cpp conftest.$ac_ext"
16309 case "(($ac_try" in
16310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16311 *) ac_try_echo=$ac_try;;
16313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16316 grep -v '^ *+' conftest.er1 >conftest.err
16318 cat conftest.err >&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); } >/dev/null && {
16321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16322 test ! -s conftest.err
16324 ac_header_preproc=yes
16326 echo "$as_me: failed program was:" >&5
16327 sed 's/^/| /' conftest.$ac_ext >&5
16329 ac_header_preproc=no
16332 rm -f conftest.err conftest.$ac_ext
16333 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16334 echo "${ECHO_T}$ac_header_preproc" >&6; }
16336 # So? What about this header?
16337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16339 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16340 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16341 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
16342 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
16343 ac_header_preproc=yes
16346 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
16347 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
16348 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
16349 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
16350 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
16351 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
16352 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
16353 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16354 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
16355 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
16356 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
16357 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
16361 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
16362 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
16363 if test "${ac_cv_header_GL_gl_h+set}" = set; then
16364 echo $ECHO_N "(cached) $ECHO_C" >&6
16366 ac_cv_header_GL_gl_h=$ac_header_preproc
16368 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
16369 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
16372 if test $ac_cv_header_GL_gl_h = yes; then
16379 CPPFLAGS="$ac_save_CPPFLAGS"
16380 if test "$have_gl" = yes ; then
16382 ac_save_CPPFLAGS="$CPPFLAGS"
16383 if test \! -z "$includedir" ; then
16384 CPPFLAGS="$CPPFLAGS -I$includedir"
16386 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16387 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16388 { echo "$as_me:$LINENO: checking for GL/glx.h" >&5
16389 echo $ECHO_N "checking for GL/glx.h... $ECHO_C" >&6; }
16390 if test "${ac_cv_header_GL_glx_h+set}" = set; then
16391 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 cat >conftest.$ac_ext <<_ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16401 #include <GL/glx.h>
16403 rm -f conftest.$ac_objext
16404 if { (ac_try="$ac_compile"
16405 case "(($ac_try" in
16406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407 *) ac_try_echo=$ac_try;;
16409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410 (eval "$ac_compile") 2>conftest.er1
16412 grep -v '^ *+' conftest.er1 >conftest.err
16414 cat conftest.err >&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } && {
16417 test -z "$ac_c_werror_flag" ||
16418 test ! -s conftest.err
16419 } && test -s conftest.$ac_objext; then
16420 ac_cv_header_GL_glx_h=yes
16422 echo "$as_me: failed program was:" >&5
16423 sed 's/^/| /' conftest.$ac_ext >&5
16425 ac_cv_header_GL_glx_h=no
16428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16430 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5
16431 echo "${ECHO_T}$ac_cv_header_GL_glx_h" >&6; }
16432 if test $ac_cv_header_GL_glx_h = yes; then
16439 CPPFLAGS="$ac_save_CPPFLAGS"
16442 # If we have the headers, try and figure out which vendor it's from.
16444 if test "$have_gl" = yes ; then
16446 # We need to know whether it's MesaGL so that we know which libraries
16449 { echo "$as_me:$LINENO: checking whether GL is really MesaGL" >&5
16450 echo $ECHO_N "checking whether GL is really MesaGL... $ECHO_C" >&6; }
16451 if test "${ac_cv_have_mesa_gl+set}" = set; then
16452 echo $ECHO_N "(cached) $ECHO_C" >&6
16454 ac_cv_have_mesa_gl=no
16455 if test "$ac_macosx" = no; then
16456 # WTF! MacOS 10.5.0 ships the Mesa GL headers!
16457 # It's not really Mesa, is it?
16459 ac_save_CPPFLAGS="$CPPFLAGS"
16460 if test \! -z "$includedir" ; then
16461 CPPFLAGS="$CPPFLAGS -I$includedir"
16463 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16464 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16465 cat >conftest.$ac_ext <<_ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h. */
16471 #include <GL/glx.h>
16474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16475 $EGREP "Mesa|MESA" >/dev/null 2>&1; then
16476 ac_cv_have_mesa_gl=yes
16480 CPPFLAGS="$ac_save_CPPFLAGS"
16483 { echo "$as_me:$LINENO: result: $ac_cv_have_mesa_gl" >&5
16484 echo "${ECHO_T}$ac_cv_have_mesa_gl" >&6; }
16485 ac_have_mesa_gl=$ac_cv_have_mesa_gl
16490 if test "$ac_macosx" = yes; then
16492 # Without these, every link against libGL gets a bunch of useless
16495 osx_crud="-bind_at_load -multiply_defined suppress"
16496 { echo "$as_me:$LINENO: result: adding \"$osx_crud\" to GL_LIBS" >&5
16497 echo "${ECHO_T}adding \"$osx_crud\" to GL_LIBS" >&6; }
16498 GL_LIBS="$GL_LIBS $osx_crud"
16501 # New lossage in 10.5.0: without this, we get:
16502 # ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
16504 osx_crud="/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
16505 osx_crud="-Wl,-dylib_file,${osx_crud}:${osx_crud}"
16507 { echo "$as_me:$LINENO: result: adding \"$osx_crud\" to GL_LIBS" >&5
16508 echo "${ECHO_T}adding \"$osx_crud\" to GL_LIBS" >&6; }
16509 GL_LIBS="$GL_LIBS $osx_crud"
16514 # Some versions of MesaGL are compiled to require -lpthread.
16515 # So if the Mesa headers exist, and -lpthread exists, then always
16516 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
16518 if test "$ac_have_mesa_gl" = yes; then
16519 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16520 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
16521 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
16522 echo $ECHO_N "(cached) $ECHO_C" >&6
16524 ac_check_lib_save_LIBS=$LIBS
16525 LIBS="-lpthread $LIBS"
16526 cat >conftest.$ac_ext <<_ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h. */
16533 /* Override any GCC internal prototype to avoid an error.
16534 Use char because int might match the return type of a GCC
16535 builtin and then its argument prototype would still apply. */
16539 char pthread_create ();
16543 return pthread_create ();
16548 rm -f conftest.$ac_objext conftest$ac_exeext
16549 if { (ac_try="$ac_link"
16550 case "(($ac_try" in
16551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16552 *) ac_try_echo=$ac_try;;
16554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16555 (eval "$ac_link") 2>conftest.er1
16557 grep -v '^ *+' conftest.er1 >conftest.err
16559 cat conftest.err >&5
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); } && {
16562 test -z "$ac_c_werror_flag" ||
16563 test ! -s conftest.err
16564 } && test -s conftest$ac_exeext &&
16565 $as_test_x conftest$ac_exeext; then
16566 ac_cv_lib_pthread_pthread_create=yes
16568 echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16571 ac_cv_lib_pthread_pthread_create=no
16574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16575 conftest$ac_exeext conftest.$ac_ext
16576 LIBS=$ac_check_lib_save_LIBS
16578 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
16579 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
16580 if test $ac_cv_lib_pthread_pthread_create = yes; then
16581 GL_LIBS="-lpthread"
16587 # If we have Mesa headers, check to see if we can link against -lMesaGL.
16588 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
16589 # Else, warn that GL is busted. (We have the headers, but no libs.)
16592 if test "$ac_have_mesa_gl" = yes ; then
16594 ac_save_CPPFLAGS="$CPPFLAGS"
16595 ac_save_LDFLAGS="$LDFLAGS"
16596 # ac_save_LIBS="$LIBS"
16598 if test \! -z "$includedir" ; then
16599 CPPFLAGS="$CPPFLAGS -I$includedir"
16601 # note: $X_CFLAGS includes $x_includes
16602 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16604 if test \! -z "$libdir" ; then
16605 LDFLAGS="$LDFLAGS -L$libdir"
16607 # note: $X_LIBS includes $x_libraries
16608 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16610 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16611 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
16612 { echo "$as_me:$LINENO: checking for glXCreateContext in -lMesaGL" >&5
16613 echo $ECHO_N "checking for glXCreateContext in -lMesaGL... $ECHO_C" >&6; }
16614 if test "${ac_cv_lib_MesaGL_glXCreateContext+set}" = set; then
16615 echo $ECHO_N "(cached) $ECHO_C" >&6
16617 ac_check_lib_save_LIBS=$LIBS
16618 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
16619 cat >conftest.$ac_ext <<_ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16626 /* Override any GCC internal prototype to avoid an error.
16627 Use char because int might match the return type of a GCC
16628 builtin and then its argument prototype would still apply. */
16632 char glXCreateContext ();
16636 return glXCreateContext ();
16641 rm -f conftest.$ac_objext conftest$ac_exeext
16642 if { (ac_try="$ac_link"
16643 case "(($ac_try" in
16644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645 *) ac_try_echo=$ac_try;;
16647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648 (eval "$ac_link") 2>conftest.er1
16650 grep -v '^ *+' conftest.er1 >conftest.err
16652 cat conftest.err >&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); } && {
16655 test -z "$ac_c_werror_flag" ||
16656 test ! -s conftest.err
16657 } && test -s conftest$ac_exeext &&
16658 $as_test_x conftest$ac_exeext; then
16659 ac_cv_lib_MesaGL_glXCreateContext=yes
16661 echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16664 ac_cv_lib_MesaGL_glXCreateContext=no
16667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16668 conftest$ac_exeext conftest.$ac_ext
16669 LIBS=$ac_check_lib_save_LIBS
16671 { echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
16672 echo "${ECHO_T}$ac_cv_lib_MesaGL_glXCreateContext" >&6; }
16673 if test $ac_cv_lib_MesaGL_glXCreateContext = yes; then
16675 GL_LIBS="-lMesaGL -lMesaGLU $VIDMODE_LIBS $GL_LIBS"
16678 CPPFLAGS="$ac_save_CPPFLAGS"
16679 LDFLAGS="$ac_save_LDFLAGS"
16680 # LIBS="$ac_save_LIBS"
16684 if test "$gl_lib_1" = "" ; then
16686 ac_save_CPPFLAGS="$CPPFLAGS"
16687 ac_save_LDFLAGS="$LDFLAGS"
16688 # ac_save_LIBS="$LIBS"
16690 if test \! -z "$includedir" ; then
16691 CPPFLAGS="$CPPFLAGS -I$includedir"
16693 # note: $X_CFLAGS includes $x_includes
16694 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16696 if test \! -z "$libdir" ; then
16697 LDFLAGS="$LDFLAGS -L$libdir"
16699 # note: $X_LIBS includes $x_libraries
16700 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16702 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16703 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
16704 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
16705 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
16706 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
16707 echo $ECHO_N "(cached) $ECHO_C" >&6
16709 ac_check_lib_save_LIBS=$LIBS
16710 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
16711 cat >conftest.$ac_ext <<_ACEOF
16714 cat confdefs.h >>conftest.$ac_ext
16715 cat >>conftest.$ac_ext <<_ACEOF
16716 /* end confdefs.h. */
16718 /* Override any GCC internal prototype to avoid an error.
16719 Use char because int might match the return type of a GCC
16720 builtin and then its argument prototype would still apply. */
16724 char glXCreateContext ();
16728 return glXCreateContext ();
16733 rm -f conftest.$ac_objext conftest$ac_exeext
16734 if { (ac_try="$ac_link"
16735 case "(($ac_try" in
16736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16737 *) ac_try_echo=$ac_try;;
16739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16740 (eval "$ac_link") 2>conftest.er1
16742 grep -v '^ *+' conftest.er1 >conftest.err
16744 cat conftest.err >&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } && {
16747 test -z "$ac_c_werror_flag" ||
16748 test ! -s conftest.err
16749 } && test -s conftest$ac_exeext &&
16750 $as_test_x conftest$ac_exeext; then
16751 ac_cv_lib_GL_glXCreateContext=yes
16753 echo "$as_me: failed program was:" >&5
16754 sed 's/^/| /' conftest.$ac_ext >&5
16756 ac_cv_lib_GL_glXCreateContext=no
16759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16760 conftest$ac_exeext conftest.$ac_ext
16761 LIBS=$ac_check_lib_save_LIBS
16763 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
16764 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
16765 if test $ac_cv_lib_GL_glXCreateContext = yes; then
16767 GL_LIBS="-lGL -lGLU $VIDMODE_LIBS $GL_LIBS"
16770 CPPFLAGS="$ac_save_CPPFLAGS"
16771 LDFLAGS="$ac_save_LDFLAGS"
16772 # LIBS="$ac_save_LIBS"
16776 if test "$gl_lib_1" = "" ; then
16777 # we have headers, but no libs -- bail.
16782 # linking works -- we can build the GL hacks.
16783 cat >>confdefs.h <<\_ACEOF
16787 if test "$ac_have_mesa_gl" = yes ; then
16788 cat >>confdefs.h <<\_ACEOF
16789 #define HAVE_MESA_GL 1
16797 # Now that we know we have GL headers and libs, do some more GL testing.
16800 if test "$have_gl" = yes ; then
16801 # If it's MesaGL, we'd like to issue a warning if the version number
16802 # is less than or equal to 2.6, because that version had a security bug.
16804 if test "$ac_have_mesa_gl" = yes; then
16806 { echo "$as_me:$LINENO: checking MesaGL version number" >&5
16807 echo $ECHO_N "checking MesaGL version number... $ECHO_C" >&6; }
16808 if test "${ac_cv_mesagl_version_string+set}" = set; then
16809 echo $ECHO_N "(cached) $ECHO_C" >&6
16811 cat > conftest.$ac_ext <<EOF
16812 #line 16812 "configure"
16813 #include "confdefs.h"
16815 #ifndef MESA_MAJOR_VERSION
16816 # include <GL/xmesa.h>
16817 # ifdef XMESA_MAJOR_VERSION
16818 /* Around Mesa 3.2, they took out the Mesa version number, so instead,
16819 we have to check the XMesa version number (the number of the X protocol
16820 support, which seems to be the same as the Mesa version number.)
16822 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
16823 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
16825 /* Oh great. Some time after 3.4, they took out the xmesa.h header file,
16826 so we have no way of telling what version of Mesa this is at all.
16827 So, we'll guess that the osmesa version (the "offscreen protocol")
16828 is less than or equal to the real mesa version number. Except that
16829 if OSmesa is 3.3, assume at least Mesa 3.4, since OSmesa was 3.3 in
16830 Mesa 3.4. And Mesa 3.3 had xmesa.h. What a complete load of shit!
16832 # include <GL/osmesa.h>
16833 # define MESA_MAJOR_VERSION OSMESA_MAJOR_VERSION
16834 # define MESA_MINOR_VERSION OSMESA_MINOR_VERSION or newer, probably?
16835 # if OSMESA_MAJOR_VERSION == 3 && OSMESA_MINOR_VERSION == 3
16836 # undef MESA_MINOR_VERSION
16837 # define MESA_MINOR_VERSION 4 or newer, probably?
16841 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
16844 ac_save_CPPFLAGS="$CPPFLAGS"
16845 if test \! -z "$includedir" ; then
16846 CPPFLAGS="$CPPFLAGS -I$includedir"
16848 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16850 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | grep configure:`
16854 mglv=`echo "$mglv" | sed -n \
16855 's/^configure: *\([0-9][0-9]*\) *\([0-9].*\)$/\1.\2/p'`
16858 rm -f conftest.$ac_ext
16860 CPPFLAGS="$ac_save_CPPFLAGS"
16862 if test "$mglv" = ""; then
16863 ac_mesagl_version=unknown
16864 ac_mesagl_version_string=unknown
16866 ac_mesagl_version_string="$mglv"
16869 maj=`echo "$mglv" | sed -n 's/^\([0-9][0-9]*\)\..*$/\1/p'`
16870 min=`echo "$mglv" | sed -n 's/^.*\.\([0-9][0-9]*\).*$/\1/p'`
16872 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
16873 if test -z "$ac_mesagl_version"; then
16874 ac_mesagl_version=unknown
16875 ac_mesagl_version_string=unknown
16878 ac_cv_mesagl_version=$ac_mesagl_version
16879 ac_cv_mesagl_version_string=$ac_mesagl_version_string
16882 { echo "$as_me:$LINENO: result: $ac_cv_mesagl_version_string" >&5
16883 echo "${ECHO_T}$ac_cv_mesagl_version_string" >&6; }
16884 ac_mesagl_version=$ac_cv_mesagl_version
16885 ac_mesagl_version_string=$ac_cv_mesagl_version_string
16889 # Check for OpenGL 1.1 features.
16892 ac_save_CPPFLAGS="$CPPFLAGS"
16893 ac_save_LDFLAGS="$LDFLAGS"
16894 # ac_save_LIBS="$LIBS"
16896 if test \! -z "$includedir" ; then
16897 CPPFLAGS="$CPPFLAGS -I$includedir"
16899 # note: $X_CFLAGS includes $x_includes
16900 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16902 if test \! -z "$libdir" ; then
16903 LDFLAGS="$LDFLAGS -L$libdir"
16905 # note: $X_LIBS includes $x_libraries
16906 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16908 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16909 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
16910 as_ac_Lib=`echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
16911 { echo "$as_me:$LINENO: checking for glBindTexture in -l$gl_lib_1" >&5
16912 echo $ECHO_N "checking for glBindTexture in -l$gl_lib_1... $ECHO_C" >&6; }
16913 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
16914 echo $ECHO_N "(cached) $ECHO_C" >&6
16916 ac_check_lib_save_LIBS=$LIBS
16917 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
16918 cat >conftest.$ac_ext <<_ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h. */
16925 /* Override any GCC internal prototype to avoid an error.
16926 Use char because int might match the return type of a GCC
16927 builtin and then its argument prototype would still apply. */
16931 char glBindTexture ();
16935 return glBindTexture ();
16940 rm -f conftest.$ac_objext conftest$ac_exeext
16941 if { (ac_try="$ac_link"
16942 case "(($ac_try" in
16943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944 *) ac_try_echo=$ac_try;;
16946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947 (eval "$ac_link") 2>conftest.er1
16949 grep -v '^ *+' conftest.er1 >conftest.err
16951 cat conftest.err >&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } && {
16954 test -z "$ac_c_werror_flag" ||
16955 test ! -s conftest.err
16956 } && test -s conftest$ac_exeext &&
16957 $as_test_x conftest$ac_exeext; then
16958 eval "$as_ac_Lib=yes"
16960 echo "$as_me: failed program was:" >&5
16961 sed 's/^/| /' conftest.$ac_ext >&5
16963 eval "$as_ac_Lib=no"
16966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16967 conftest$ac_exeext conftest.$ac_ext
16968 LIBS=$ac_check_lib_save_LIBS
16970 ac_res=`eval echo '${'$as_ac_Lib'}'`
16971 { echo "$as_me:$LINENO: result: $ac_res" >&5
16972 echo "${ECHO_T}$ac_res" >&6; }
16973 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16974 cat >>confdefs.h <<\_ACEOF
16975 #define HAVE_GLBINDTEXTURE 1
16982 CPPFLAGS="$ac_save_CPPFLAGS"
16983 LDFLAGS="$ac_save_LDFLAGS"
16984 # LIBS="$ac_save_LIBS"
16988 elif test "$with_gl" != no; then
16989 echo "error: must be yes or no: --with-gl=$with_gl"
16994 ###############################################################################
16998 ###############################################################################
17001 with_gle_req=unspecified
17004 # Check whether --with-gle was given.
17005 if test "${with_gle+set}" = set; then
17006 withval=$with_gle; with_gle="$withval"; with_gle_req="$withval"
17013 case "$with_gle" in
17018 { echo "$as_me:$LINENO: checking for GLE headers" >&5
17019 echo $ECHO_N "checking for GLE headers... $ECHO_C" >&6; }
17020 d=$with_gle/include
17021 if test -d $d; then
17022 X_CFLAGS="-I$d $X_CFLAGS"
17023 { echo "$as_me:$LINENO: result: $d" >&5
17024 echo "${ECHO_T}$d" >&6; }
17026 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17027 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
17030 { echo "$as_me:$LINENO: checking for GLE libs" >&5
17031 echo $ECHO_N "checking for GLE libs... $ECHO_C" >&6; }
17033 if test -d $d; then
17034 X_LIBS="-L$d $X_LIBS"
17035 { echo "$as_me:$LINENO: result: $d" >&5
17036 echo "${ECHO_T}$d" >&6; }
17038 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17039 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
17042 # replace the directory string with "yes".
17044 with_gle=$with_gle_req
17049 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
17050 echo " If it is a directory, then \`DIR/include' will be added to"
17051 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17059 if test "$have_gl" = no ; then
17061 elif test "$with_gle" = yes; then
17064 ac_save_CPPFLAGS="$CPPFLAGS"
17065 if test \! -z "$includedir" ; then
17066 CPPFLAGS="$CPPFLAGS -I$includedir"
17068 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17069 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17070 { echo "$as_me:$LINENO: checking for GL/gle.h" >&5
17071 echo $ECHO_N "checking for GL/gle.h... $ECHO_C" >&6; }
17072 if test "${ac_cv_header_GL_gle_h+set}" = set; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
17075 cat >conftest.$ac_ext <<_ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h. */
17083 #include <GL/gle.h>
17085 rm -f conftest.$ac_objext
17086 if { (ac_try="$ac_compile"
17087 case "(($ac_try" in
17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089 *) ac_try_echo=$ac_try;;
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092 (eval "$ac_compile") 2>conftest.er1
17094 grep -v '^ *+' conftest.er1 >conftest.err
17096 cat conftest.err >&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); } && {
17099 test -z "$ac_c_werror_flag" ||
17100 test ! -s conftest.err
17101 } && test -s conftest.$ac_objext; then
17102 ac_cv_header_GL_gle_h=yes
17104 echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17107 ac_cv_header_GL_gle_h=no
17110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17112 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gle_h" >&5
17113 echo "${ECHO_T}$ac_cv_header_GL_gle_h" >&6; }
17114 if test $ac_cv_header_GL_gle_h = yes; then
17121 CPPFLAGS="$ac_save_CPPFLAGS"
17122 if test "$have_gle3" = yes ; then
17126 ac_save_CPPFLAGS="$CPPFLAGS"
17127 if test \! -z "$includedir" ; then
17128 CPPFLAGS="$CPPFLAGS -I$includedir"
17130 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17131 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17132 { echo "$as_me:$LINENO: checking for GL/gutil.h" >&5
17133 echo $ECHO_N "checking for GL/gutil.h... $ECHO_C" >&6; }
17134 if test "${ac_cv_header_GL_gutil_h+set}" = set; then
17135 echo $ECHO_N "(cached) $ECHO_C" >&6
17137 cat >conftest.$ac_ext <<_ACEOF
17140 cat confdefs.h >>conftest.$ac_ext
17141 cat >>conftest.$ac_ext <<_ACEOF
17142 /* end confdefs.h. */
17145 #include <GL/gutil.h>
17147 rm -f conftest.$ac_objext
17148 if { (ac_try="$ac_compile"
17149 case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154 (eval "$ac_compile") 2>conftest.er1
17156 grep -v '^ *+' conftest.er1 >conftest.err
17158 cat conftest.err >&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } && {
17161 test -z "$ac_c_werror_flag" ||
17162 test ! -s conftest.err
17163 } && test -s conftest.$ac_objext; then
17164 ac_cv_header_GL_gutil_h=yes
17166 echo "$as_me: failed program was:" >&5
17167 sed 's/^/| /' conftest.$ac_ext >&5
17169 ac_cv_header_GL_gutil_h=no
17172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17174 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gutil_h" >&5
17175 echo "${ECHO_T}$ac_cv_header_GL_gutil_h" >&6; }
17176 if test $ac_cv_header_GL_gutil_h = yes; then
17183 CPPFLAGS="$ac_save_CPPFLAGS"
17184 if test "$have_gle" = yes ; then
17186 ac_save_CPPFLAGS="$CPPFLAGS"
17187 if test \! -z "$includedir" ; then
17188 CPPFLAGS="$CPPFLAGS -I$includedir"
17190 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17191 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17192 { echo "$as_me:$LINENO: checking for GL/tube.h" >&5
17193 echo $ECHO_N "checking for GL/tube.h... $ECHO_C" >&6; }
17194 if test "${ac_cv_header_GL_tube_h+set}" = set; then
17195 echo $ECHO_N "(cached) $ECHO_C" >&6
17197 cat >conftest.$ac_ext <<_ACEOF
17200 cat confdefs.h >>conftest.$ac_ext
17201 cat >>conftest.$ac_ext <<_ACEOF
17202 /* end confdefs.h. */
17205 #include <GL/tube.h>
17207 rm -f conftest.$ac_objext
17208 if { (ac_try="$ac_compile"
17209 case "(($ac_try" in
17210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17211 *) ac_try_echo=$ac_try;;
17213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17214 (eval "$ac_compile") 2>conftest.er1
17216 grep -v '^ *+' conftest.er1 >conftest.err
17218 cat conftest.err >&5
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); } && {
17221 test -z "$ac_c_werror_flag" ||
17222 test ! -s conftest.err
17223 } && test -s conftest.$ac_objext; then
17224 ac_cv_header_GL_tube_h=yes
17226 echo "$as_me: failed program was:" >&5
17227 sed 's/^/| /' conftest.$ac_ext >&5
17229 ac_cv_header_GL_tube_h=no
17232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17234 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_tube_h" >&5
17235 echo "${ECHO_T}$ac_cv_header_GL_tube_h" >&6; }
17236 if test $ac_cv_header_GL_tube_h = yes; then
17243 CPPFLAGS="$ac_save_CPPFLAGS"
17247 if test "$have_gle" = yes ; then
17251 ac_save_CPPFLAGS="$CPPFLAGS"
17252 ac_save_LDFLAGS="$LDFLAGS"
17253 # ac_save_LIBS="$LIBS"
17255 if test \! -z "$includedir" ; then
17256 CPPFLAGS="$CPPFLAGS -I$includedir"
17258 # note: $X_CFLAGS includes $x_includes
17259 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17261 if test \! -z "$libdir" ; then
17262 LDFLAGS="$LDFLAGS -L$libdir"
17264 # note: $X_LIBS includes $x_libraries
17265 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17267 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17268 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17269 { echo "$as_me:$LINENO: checking for gleCreateGC in -lgle" >&5
17270 echo $ECHO_N "checking for gleCreateGC in -lgle... $ECHO_C" >&6; }
17271 if test "${ac_cv_lib_gle_gleCreateGC+set}" = set; then
17272 echo $ECHO_N "(cached) $ECHO_C" >&6
17274 ac_check_lib_save_LIBS=$LIBS
17275 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
17276 cat >conftest.$ac_ext <<_ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17283 /* Override any GCC internal prototype to avoid an error.
17284 Use char because int might match the return type of a GCC
17285 builtin and then its argument prototype would still apply. */
17289 char gleCreateGC ();
17293 return gleCreateGC ();
17298 rm -f conftest.$ac_objext conftest$ac_exeext
17299 if { (ac_try="$ac_link"
17300 case "(($ac_try" in
17301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302 *) ac_try_echo=$ac_try;;
17304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17305 (eval "$ac_link") 2>conftest.er1
17307 grep -v '^ *+' conftest.er1 >conftest.err
17309 cat conftest.err >&5
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); } && {
17312 test -z "$ac_c_werror_flag" ||
17313 test ! -s conftest.err
17314 } && test -s conftest$ac_exeext &&
17315 $as_test_x conftest$ac_exeext; then
17316 ac_cv_lib_gle_gleCreateGC=yes
17318 echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17321 ac_cv_lib_gle_gleCreateGC=no
17324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17325 conftest$ac_exeext conftest.$ac_ext
17326 LIBS=$ac_check_lib_save_LIBS
17328 { echo "$as_me:$LINENO: result: $ac_cv_lib_gle_gleCreateGC" >&5
17329 echo "${ECHO_T}$ac_cv_lib_gle_gleCreateGC" >&6; }
17330 if test $ac_cv_lib_gle_gleCreateGC = yes; then
17331 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
17334 CPPFLAGS="$ac_save_CPPFLAGS"
17335 LDFLAGS="$ac_save_LDFLAGS"
17336 # LIBS="$ac_save_LIBS"
17339 if test "$have_gle" = yes ; then
17343 # sometimes the libmatrix stuff is included in libgle. look there first.
17345 # I don't get it. For some reason, this test passes on SGI, as if
17346 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
17347 # Yet the link is succeeding. Why???
17349 # AC_CHECK_X_LIB(gle, uview_direction_d,
17350 # [have_gle=yes; gle_halfassed=no],
17351 # [], $GL_LIBS -lX11 -lXext -lm)
17353 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
17355 if test "$have_gle3" = yes ; then
17357 ac_save_CPPFLAGS="$CPPFLAGS"
17358 ac_save_LDFLAGS="$LDFLAGS"
17359 # ac_save_LIBS="$LIBS"
17361 if test \! -z "$includedir" ; then
17362 CPPFLAGS="$CPPFLAGS -I$includedir"
17364 # note: $X_CFLAGS includes $x_includes
17365 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17367 if test \! -z "$libdir" ; then
17368 LDFLAGS="$LDFLAGS -L$libdir"
17370 # note: $X_LIBS includes $x_libraries
17371 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17373 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17374 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17375 { echo "$as_me:$LINENO: checking for uview_direction in -lgle" >&5
17376 echo $ECHO_N "checking for uview_direction in -lgle... $ECHO_C" >&6; }
17377 if test "${ac_cv_lib_gle_uview_direction+set}" = set; then
17378 echo $ECHO_N "(cached) $ECHO_C" >&6
17380 ac_check_lib_save_LIBS=$LIBS
17381 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
17382 cat >conftest.$ac_ext <<_ACEOF
17385 cat confdefs.h >>conftest.$ac_ext
17386 cat >>conftest.$ac_ext <<_ACEOF
17387 /* end confdefs.h. */
17389 /* Override any GCC internal prototype to avoid an error.
17390 Use char because int might match the return type of a GCC
17391 builtin and then its argument prototype would still apply. */
17395 char uview_direction ();
17399 return uview_direction ();
17404 rm -f conftest.$ac_objext conftest$ac_exeext
17405 if { (ac_try="$ac_link"
17406 case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_link") 2>conftest.er1
17413 grep -v '^ *+' conftest.er1 >conftest.err
17415 cat conftest.err >&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } && {
17418 test -z "$ac_c_werror_flag" ||
17419 test ! -s conftest.err
17420 } && test -s conftest$ac_exeext &&
17421 $as_test_x conftest$ac_exeext; then
17422 ac_cv_lib_gle_uview_direction=yes
17424 echo "$as_me: failed program was:" >&5
17425 sed 's/^/| /' conftest.$ac_ext >&5
17427 ac_cv_lib_gle_uview_direction=no
17430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17431 conftest$ac_exeext conftest.$ac_ext
17432 LIBS=$ac_check_lib_save_LIBS
17434 { echo "$as_me:$LINENO: result: $ac_cv_lib_gle_uview_direction" >&5
17435 echo "${ECHO_T}$ac_cv_lib_gle_uview_direction" >&6; }
17436 if test $ac_cv_lib_gle_uview_direction = yes; then
17437 have_gle=yes; gle_halfassed=no
17440 CPPFLAGS="$ac_save_CPPFLAGS"
17441 LDFLAGS="$ac_save_LDFLAGS"
17442 # LIBS="$ac_save_LIBS"
17445 # if it wasn't in libgle, then look in libmatrix.
17446 if test "$have_gle" = no ; then
17448 ac_save_CPPFLAGS="$CPPFLAGS"
17449 ac_save_LDFLAGS="$LDFLAGS"
17450 # ac_save_LIBS="$LIBS"
17452 if test \! -z "$includedir" ; then
17453 CPPFLAGS="$CPPFLAGS -I$includedir"
17455 # note: $X_CFLAGS includes $x_includes
17456 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17458 if test \! -z "$libdir" ; then
17459 LDFLAGS="$LDFLAGS -L$libdir"
17461 # note: $X_LIBS includes $x_libraries
17462 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17464 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17465 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17466 { echo "$as_me:$LINENO: checking for uview_direction_d in -lmatrix" >&5
17467 echo $ECHO_N "checking for uview_direction_d in -lmatrix... $ECHO_C" >&6; }
17468 if test "${ac_cv_lib_matrix_uview_direction_d+set}" = set; then
17469 echo $ECHO_N "(cached) $ECHO_C" >&6
17471 ac_check_lib_save_LIBS=$LIBS
17472 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
17473 cat >conftest.$ac_ext <<_ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h. */
17480 /* Override any GCC internal prototype to avoid an error.
17481 Use char because int might match the return type of a GCC
17482 builtin and then its argument prototype would still apply. */
17486 char uview_direction_d ();
17490 return uview_direction_d ();
17495 rm -f conftest.$ac_objext conftest$ac_exeext
17496 if { (ac_try="$ac_link"
17497 case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_link") 2>conftest.er1
17504 grep -v '^ *+' conftest.er1 >conftest.err
17506 cat conftest.err >&5
17507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508 (exit $ac_status); } && {
17509 test -z "$ac_c_werror_flag" ||
17510 test ! -s conftest.err
17511 } && test -s conftest$ac_exeext &&
17512 $as_test_x conftest$ac_exeext; then
17513 ac_cv_lib_matrix_uview_direction_d=yes
17515 echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17518 ac_cv_lib_matrix_uview_direction_d=no
17521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17522 conftest$ac_exeext conftest.$ac_ext
17523 LIBS=$ac_check_lib_save_LIBS
17525 { echo "$as_me:$LINENO: result: $ac_cv_lib_matrix_uview_direction_d" >&5
17526 echo "${ECHO_T}$ac_cv_lib_matrix_uview_direction_d" >&6; }
17527 if test $ac_cv_lib_matrix_uview_direction_d = yes; then
17528 have_gle=yes; gle_halfassed=no;
17529 GLE_LIBS="$GLE_LIBS -lmatrix"
17532 CPPFLAGS="$ac_save_CPPFLAGS"
17533 LDFLAGS="$ac_save_LDFLAGS"
17534 # LIBS="$ac_save_LIBS"
17539 if test "$have_gle" = yes ; then
17540 cat >>confdefs.h <<\_ACEOF
17544 if test "$have_gle3" = yes ; then
17545 cat >>confdefs.h <<\_ACEOF
17546 #define HAVE_GLE3 1
17552 elif test "$with_gle" != no; then
17553 echo "error: must be yes or no: --with-gle=$with_gle"
17559 ###############################################################################
17561 # Check for -lgdk_pixbuf.
17562 # These tests are for gdk_pixbuf usage of the hacks,
17563 # not xscreensaver-demo (thus we have to test again to get
17564 # the libraries right: don't want to pull in all of GTK
17567 ###############################################################################
17570 with_gdk_pixbuf_req=unspecified
17572 # Check whether --with-pixbuf was given.
17573 if test "${with_pixbuf+set}" = set; then
17574 withval=$with_pixbuf; with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
17576 with_gdk_pixbuf=yes
17580 # if --with-pixbuf=/directory/ was specified, remember that directory so that
17581 # we can also look for the `gdk-pixbuf-config' program in that directory.
17582 case "$with_gdk_pixbuf" in
17584 gdk_pixbuf_dir="$with_gdk_pixbuf"
17592 case "$with_gdk_pixbuf" in
17597 { echo "$as_me:$LINENO: checking for GDK_PIXBUF headers" >&5
17598 echo $ECHO_N "checking for GDK_PIXBUF headers... $ECHO_C" >&6; }
17599 d=$with_gdk_pixbuf/include
17600 if test -d $d; then
17601 X_CFLAGS="-I$d $X_CFLAGS"
17602 { echo "$as_me:$LINENO: result: $d" >&5
17603 echo "${ECHO_T}$d" >&6; }
17605 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17606 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
17609 { echo "$as_me:$LINENO: checking for GDK_PIXBUF libs" >&5
17610 echo $ECHO_N "checking for GDK_PIXBUF libs... $ECHO_C" >&6; }
17611 d=$with_gdk_pixbuf/lib
17612 if test -d $d; then
17613 X_LIBS="-L$d $X_LIBS"
17614 { echo "$as_me:$LINENO: result: $d" >&5
17615 echo "${ECHO_T}$d" >&6; }
17617 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17618 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
17621 # replace the directory string with "yes".
17622 with_gdk_pixbuf_req="yes"
17623 with_gdk_pixbuf=$with_gdk_pixbuf_req
17628 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
17629 echo " If it is a directory, then \`DIR/include' will be added to"
17630 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17636 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
17637 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
17641 if test "$with_gdk_pixbuf" = yes; then
17647 pkg_check_version gdk-pixbuf-2.0 2.0.0
17648 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
17649 have_gdk_pixbuf="$ok"
17651 if test "$have_gdk_pixbuf" = yes; then
17652 { echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
17653 echo $ECHO_N "checking for gdk-pixbuf includes... $ECHO_C" >&6; }
17654 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
17655 echo $ECHO_N "(cached) $ECHO_C" >&6
17657 ac_cv_gdk_pixbuf_config_cflags=`$pkg_config --cflags $pkgs`
17659 { echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
17660 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_cflags" >&6; }
17661 { echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
17662 echo $ECHO_N "checking for gdk-pixbuf libs... $ECHO_C" >&6; }
17663 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
17664 echo $ECHO_N "(cached) $ECHO_C" >&6
17666 ac_cv_gdk_pixbuf_config_libs=`$pkg_config --libs $pkgs`
17668 { echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
17669 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_libs" >&6; }
17672 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
17673 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
17676 if test "$have_gdk_pixbuf" = yes; then
17678 # we appear to have pixbuf; check for headers/libs to be sure.
17680 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
17681 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
17685 # check for header A...
17687 ac_save_CPPFLAGS="$CPPFLAGS"
17688 if test \! -z "$includedir" ; then
17689 CPPFLAGS="$CPPFLAGS -I$includedir"
17691 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17692 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17693 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17694 { echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
17695 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6; }
17696 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17699 { echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
17700 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6; }
17702 # Is the header compilable?
17703 { echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h usability" >&5
17704 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h usability... $ECHO_C" >&6; }
17705 cat >conftest.$ac_ext <<_ACEOF
17708 cat confdefs.h >>conftest.$ac_ext
17709 cat >>conftest.$ac_ext <<_ACEOF
17710 /* end confdefs.h. */
17711 $ac_includes_default
17712 #include <gdk-pixbuf/gdk-pixbuf.h>
17714 rm -f conftest.$ac_objext
17715 if { (ac_try="$ac_compile"
17716 case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_compile") 2>conftest.er1
17723 grep -v '^ *+' conftest.er1 >conftest.err
17725 cat conftest.err >&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } && {
17728 test -z "$ac_c_werror_flag" ||
17729 test ! -s conftest.err
17730 } && test -s conftest.$ac_objext; then
17731 ac_header_compiler=yes
17733 echo "$as_me: failed program was:" >&5
17734 sed 's/^/| /' conftest.$ac_ext >&5
17736 ac_header_compiler=no
17739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17740 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17741 echo "${ECHO_T}$ac_header_compiler" >&6; }
17743 # Is the header present?
17744 { echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h presence" >&5
17745 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h presence... $ECHO_C" >&6; }
17746 cat >conftest.$ac_ext <<_ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17752 #include <gdk-pixbuf/gdk-pixbuf.h>
17754 if { (ac_try="$ac_cpp conftest.$ac_ext"
17755 case "(($ac_try" in
17756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757 *) ac_try_echo=$ac_try;;
17759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17762 grep -v '^ *+' conftest.er1 >conftest.err
17764 cat conftest.err >&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } >/dev/null && {
17767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17768 test ! -s conftest.err
17770 ac_header_preproc=yes
17772 echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17775 ac_header_preproc=no
17778 rm -f conftest.err conftest.$ac_ext
17779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17780 echo "${ECHO_T}$ac_header_preproc" >&6; }
17782 # So? What about this header?
17783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17785 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&5
17786 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17787 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&5
17788 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&2;}
17789 ac_header_preproc=yes
17792 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&5
17793 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&2;}
17794 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&5
17795 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&2;}
17796 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&5
17797 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&2;}
17798 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&5
17799 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&2;}
17800 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
17801 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;}
17802 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&5
17803 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&2;}
17807 { echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
17808 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6; }
17809 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17810 echo $ECHO_N "(cached) $ECHO_C" >&6
17812 ac_cv_header_gdk_pixbuf_gdk_pixbuf_h=$ac_header_preproc
17814 { echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
17815 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6; }
17818 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h = yes; then
17819 have_gdk_pixbuf=yes
17823 CPPFLAGS="$ac_save_CPPFLAGS"
17825 # if that worked, check for header B...
17826 if test "$have_gdk_pixbuf" = yes; then
17828 gdk_pixbuf_halfassed=yes
17830 ac_save_CPPFLAGS="$CPPFLAGS"
17831 if test \! -z "$includedir" ; then
17832 CPPFLAGS="$CPPFLAGS -I$includedir"
17834 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17835 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17836 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17837 { echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
17838 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6; }
17839 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17840 echo $ECHO_N "(cached) $ECHO_C" >&6
17842 { echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
17843 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6; }
17845 # Is the header compilable?
17846 { echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h usability" >&5
17847 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6; }
17848 cat >conftest.$ac_ext <<_ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17854 $ac_includes_default
17855 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
17857 rm -f conftest.$ac_objext
17858 if { (ac_try="$ac_compile"
17859 case "(($ac_try" in
17860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861 *) ac_try_echo=$ac_try;;
17863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864 (eval "$ac_compile") 2>conftest.er1
17866 grep -v '^ *+' conftest.er1 >conftest.err
17868 cat conftest.err >&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } && {
17871 test -z "$ac_c_werror_flag" ||
17872 test ! -s conftest.err
17873 } && test -s conftest.$ac_objext; then
17874 ac_header_compiler=yes
17876 echo "$as_me: failed program was:" >&5
17877 sed 's/^/| /' conftest.$ac_ext >&5
17879 ac_header_compiler=no
17882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17884 echo "${ECHO_T}$ac_header_compiler" >&6; }
17886 # Is the header present?
17887 { echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h presence" >&5
17888 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6; }
17889 cat >conftest.$ac_ext <<_ACEOF
17892 cat confdefs.h >>conftest.$ac_ext
17893 cat >>conftest.$ac_ext <<_ACEOF
17894 /* end confdefs.h. */
17895 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
17897 if { (ac_try="$ac_cpp conftest.$ac_ext"
17898 case "(($ac_try" in
17899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17900 *) ac_try_echo=$ac_try;;
17902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17905 grep -v '^ *+' conftest.er1 >conftest.err
17907 cat conftest.err >&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); } >/dev/null && {
17910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17911 test ! -s conftest.err
17913 ac_header_preproc=yes
17915 echo "$as_me: failed program was:" >&5
17916 sed 's/^/| /' conftest.$ac_ext >&5
17918 ac_header_preproc=no
17921 rm -f conftest.err conftest.$ac_ext
17922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17923 echo "${ECHO_T}$ac_header_preproc" >&6; }
17925 # So? What about this header?
17926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17928 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17929 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17930 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
17931 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
17932 ac_header_preproc=yes
17935 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
17936 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
17937 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
17938 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
17939 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
17940 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
17941 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
17942 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17943 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
17944 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
17945 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
17946 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
17950 { echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
17951 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6; }
17952 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17955 ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h=$ac_header_preproc
17957 { echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
17958 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6; }
17961 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h = yes; then
17962 have_gdk_pixbuf=yes
17963 gdk_pixbuf_halfassed=no
17967 CPPFLAGS="$ac_save_CPPFLAGS"
17969 # yay, it has a new name in Gtk 2.x...
17970 if test "$have_gdk_pixbuf" = no; then
17972 gdk_pixbuf_halfassed=yes
17974 ac_save_CPPFLAGS="$CPPFLAGS"
17975 if test \! -z "$includedir" ; then
17976 CPPFLAGS="$CPPFLAGS -I$includedir"
17978 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17979 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17980 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17981 { echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
17982 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6; }
17983 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17984 echo $ECHO_N "(cached) $ECHO_C" >&6
17986 { echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
17987 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6; }
17989 # Is the header compilable?
17990 { echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability" >&5
17991 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6; }
17992 cat >conftest.$ac_ext <<_ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17998 $ac_includes_default
17999 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
18001 rm -f conftest.$ac_objext
18002 if { (ac_try="$ac_compile"
18003 case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_compile") 2>conftest.er1
18010 grep -v '^ *+' conftest.er1 >conftest.err
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } && {
18015 test -z "$ac_c_werror_flag" ||
18016 test ! -s conftest.err
18017 } && test -s conftest.$ac_objext; then
18018 ac_header_compiler=yes
18020 echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18023 ac_header_compiler=no
18026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18028 echo "${ECHO_T}$ac_header_compiler" >&6; }
18030 # Is the header present?
18031 { echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence" >&5
18032 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6; }
18033 cat >conftest.$ac_ext <<_ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
18041 if { (ac_try="$ac_cpp conftest.$ac_ext"
18042 case "(($ac_try" in
18043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044 *) ac_try_echo=$ac_try;;
18046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18049 grep -v '^ *+' conftest.er1 >conftest.err
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } >/dev/null && {
18054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18055 test ! -s conftest.err
18057 ac_header_preproc=yes
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18062 ac_header_preproc=no
18065 rm -f conftest.err conftest.$ac_ext
18066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18067 echo "${ECHO_T}$ac_header_preproc" >&6; }
18069 # So? What about this header?
18070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18072 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18073 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18074 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
18075 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
18076 ac_header_preproc=yes
18079 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
18080 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
18081 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
18082 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
18083 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
18084 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
18085 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
18086 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18087 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
18088 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
18089 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
18090 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
18094 { echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
18095 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6; }
18096 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18099 ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h=$ac_header_preproc
18101 { echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
18102 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6; }
18105 if test $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h = yes; then
18106 have_gdk_pixbuf=yes
18107 gdk_pixbuf_halfassed=no
18111 CPPFLAGS="$ac_save_CPPFLAGS"
18114 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
18117 if test "$have_gdk_pixbuf" = yes; then
18118 # we have the headers, now check for the libraries
18120 gdk_pixbuf_halfassed=yes
18122 { echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability..." >&5
18123 echo "${ECHO_T}checking for gdk_pixbuf usability..." >&6; }
18127 ac_save_CPPFLAGS="$CPPFLAGS"
18128 ac_save_LDFLAGS="$LDFLAGS"
18129 # ac_save_LIBS="$LIBS"
18131 if test \! -z "$includedir" ; then
18132 CPPFLAGS="$CPPFLAGS -I$includedir"
18134 # note: $X_CFLAGS includes $x_includes
18135 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18137 if test \! -z "$libdir" ; then
18138 LDFLAGS="$LDFLAGS -L$libdir"
18140 # note: $X_LIBS includes $x_libraries
18141 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18143 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18144 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18145 { echo "$as_me:$LINENO: checking for gdk_pixbuf_new_from_file in -lc" >&5
18146 echo $ECHO_N "checking for gdk_pixbuf_new_from_file in -lc... $ECHO_C" >&6; }
18147 if test "${ac_cv_lib_c_gdk_pixbuf_new_from_file+set}" = set; then
18148 echo $ECHO_N "(cached) $ECHO_C" >&6
18150 ac_check_lib_save_LIBS=$LIBS
18151 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
18152 cat >conftest.$ac_ext <<_ACEOF
18155 cat confdefs.h >>conftest.$ac_ext
18156 cat >>conftest.$ac_ext <<_ACEOF
18157 /* end confdefs.h. */
18159 /* Override any GCC internal prototype to avoid an error.
18160 Use char because int might match the return type of a GCC
18161 builtin and then its argument prototype would still apply. */
18165 char gdk_pixbuf_new_from_file ();
18169 return gdk_pixbuf_new_from_file ();
18174 rm -f conftest.$ac_objext conftest$ac_exeext
18175 if { (ac_try="$ac_link"
18176 case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_link") 2>conftest.er1
18183 grep -v '^ *+' conftest.er1 >conftest.err
18185 cat conftest.err >&5
18186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187 (exit $ac_status); } && {
18188 test -z "$ac_c_werror_flag" ||
18189 test ! -s conftest.err
18190 } && test -s conftest$ac_exeext &&
18191 $as_test_x conftest$ac_exeext; then
18192 ac_cv_lib_c_gdk_pixbuf_new_from_file=yes
18194 echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18197 ac_cv_lib_c_gdk_pixbuf_new_from_file=no
18200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18201 conftest$ac_exeext conftest.$ac_ext
18202 LIBS=$ac_check_lib_save_LIBS
18204 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_new_from_file" >&5
18205 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_new_from_file" >&6; }
18206 if test $ac_cv_lib_c_gdk_pixbuf_new_from_file = yes; then
18207 have_gdk_pixbuf=yes
18210 CPPFLAGS="$ac_save_CPPFLAGS"
18211 LDFLAGS="$ac_save_LDFLAGS"
18212 # LIBS="$ac_save_LIBS"
18215 if test "$have_gdk_pixbuf" = yes; then
18218 ac_save_CPPFLAGS="$CPPFLAGS"
18219 ac_save_LDFLAGS="$LDFLAGS"
18220 # ac_save_LIBS="$LIBS"
18222 if test \! -z "$includedir" ; then
18223 CPPFLAGS="$CPPFLAGS -I$includedir"
18225 # note: $X_CFLAGS includes $x_includes
18226 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18228 if test \! -z "$libdir" ; then
18229 LDFLAGS="$LDFLAGS -L$libdir"
18231 # note: $X_LIBS includes $x_libraries
18232 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18234 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18235 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18236 { echo "$as_me:$LINENO: checking for gdk_pixbuf_xlib_init in -lc" >&5
18237 echo $ECHO_N "checking for gdk_pixbuf_xlib_init in -lc... $ECHO_C" >&6; }
18238 if test "${ac_cv_lib_c_gdk_pixbuf_xlib_init+set}" = set; then
18239 echo $ECHO_N "(cached) $ECHO_C" >&6
18241 ac_check_lib_save_LIBS=$LIBS
18242 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
18243 cat >conftest.$ac_ext <<_ACEOF
18246 cat confdefs.h >>conftest.$ac_ext
18247 cat >>conftest.$ac_ext <<_ACEOF
18248 /* end confdefs.h. */
18250 /* Override any GCC internal prototype to avoid an error.
18251 Use char because int might match the return type of a GCC
18252 builtin and then its argument prototype would still apply. */
18256 char gdk_pixbuf_xlib_init ();
18260 return gdk_pixbuf_xlib_init ();
18265 rm -f conftest.$ac_objext conftest$ac_exeext
18266 if { (ac_try="$ac_link"
18267 case "(($ac_try" in
18268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269 *) ac_try_echo=$ac_try;;
18271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272 (eval "$ac_link") 2>conftest.er1
18274 grep -v '^ *+' conftest.er1 >conftest.err
18276 cat conftest.err >&5
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); } && {
18279 test -z "$ac_c_werror_flag" ||
18280 test ! -s conftest.err
18281 } && test -s conftest$ac_exeext &&
18282 $as_test_x conftest$ac_exeext; then
18283 ac_cv_lib_c_gdk_pixbuf_xlib_init=yes
18285 echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18288 ac_cv_lib_c_gdk_pixbuf_xlib_init=no
18291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18292 conftest$ac_exeext conftest.$ac_ext
18293 LIBS=$ac_check_lib_save_LIBS
18295 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_xlib_init" >&5
18296 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_xlib_init" >&6; }
18297 if test $ac_cv_lib_c_gdk_pixbuf_xlib_init = yes; then
18298 have_gdk_pixbuf=yes
18299 gdk_pixbuf_halfassed=no
18302 CPPFLAGS="$ac_save_CPPFLAGS"
18303 LDFLAGS="$ac_save_LDFLAGS"
18304 # LIBS="$ac_save_LIBS"
18309 if test "$have_gdk_pixbuf" = yes; then
18310 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
18311 XPM_LIBS="$ac_gdk_pixbuf_config_libs"
18312 cat >>confdefs.h <<\_ACEOF
18313 #define HAVE_GDK_PIXBUF 1
18317 { echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability... no" >&5
18318 echo "${ECHO_T}checking for gdk_pixbuf usability... no" >&6; }
18321 if test "$have_gdk_pixbuf" = yes; then
18323 ac_save_CPPFLAGS="$CPPFLAGS"
18324 ac_save_LDFLAGS="$LDFLAGS"
18325 # ac_save_LIBS="$LIBS"
18327 if test \! -z "$includedir" ; then
18328 CPPFLAGS="$CPPFLAGS -I$includedir"
18330 # note: $X_CFLAGS includes $x_includes
18331 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18333 if test \! -z "$libdir" ; then
18334 LDFLAGS="$LDFLAGS -L$libdir"
18336 # note: $X_LIBS includes $x_libraries
18337 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18339 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18340 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18341 { echo "$as_me:$LINENO: checking for gdk_pixbuf_apply_embedded_orientation in -lc" >&5
18342 echo $ECHO_N "checking for gdk_pixbuf_apply_embedded_orientation in -lc... $ECHO_C" >&6; }
18343 if test "${ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation+set}" = set; then
18344 echo $ECHO_N "(cached) $ECHO_C" >&6
18346 ac_check_lib_save_LIBS=$LIBS
18347 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
18348 cat >conftest.$ac_ext <<_ACEOF
18351 cat confdefs.h >>conftest.$ac_ext
18352 cat >>conftest.$ac_ext <<_ACEOF
18353 /* end confdefs.h. */
18355 /* Override any GCC internal prototype to avoid an error.
18356 Use char because int might match the return type of a GCC
18357 builtin and then its argument prototype would still apply. */
18361 char gdk_pixbuf_apply_embedded_orientation ();
18365 return gdk_pixbuf_apply_embedded_orientation ();
18370 rm -f conftest.$ac_objext conftest$ac_exeext
18371 if { (ac_try="$ac_link"
18372 case "(($ac_try" in
18373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374 *) ac_try_echo=$ac_try;;
18376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18377 (eval "$ac_link") 2>conftest.er1
18379 grep -v '^ *+' conftest.er1 >conftest.err
18381 cat conftest.err >&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } && {
18384 test -z "$ac_c_werror_flag" ||
18385 test ! -s conftest.err
18386 } && test -s conftest$ac_exeext &&
18387 $as_test_x conftest$ac_exeext; then
18388 ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation=yes
18390 echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18393 ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation=no
18396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18397 conftest$ac_exeext conftest.$ac_ext
18398 LIBS=$ac_check_lib_save_LIBS
18400 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" >&5
18401 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" >&6; }
18402 if test $ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation = yes; then
18403 cat >>confdefs.h <<\_ACEOF
18404 #define HAVE_GDK_PIXBUF_APPLY_EMBEDDED_ORIENTATION 1
18409 CPPFLAGS="$ac_save_CPPFLAGS"
18410 LDFLAGS="$ac_save_LDFLAGS"
18411 # LIBS="$ac_save_LIBS"
18417 ###############################################################################
18421 ###############################################################################
18424 with_xpm_req=unspecified
18426 # Check whether --with-xpm was given.
18427 if test "${with_xpm+set}" = set; then
18428 withval=$with_xpm; with_xpm="$withval"; with_xpm_req="$withval"
18435 case "$with_xpm" in
18440 { echo "$as_me:$LINENO: checking for XPM headers" >&5
18441 echo $ECHO_N "checking for XPM headers... $ECHO_C" >&6; }
18442 d=$with_xpm/include
18443 if test -d $d; then
18444 X_CFLAGS="-I$d $X_CFLAGS"
18445 { echo "$as_me:$LINENO: result: $d" >&5
18446 echo "${ECHO_T}$d" >&6; }
18448 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18449 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
18452 { echo "$as_me:$LINENO: checking for XPM libs" >&5
18453 echo $ECHO_N "checking for XPM libs... $ECHO_C" >&6; }
18455 if test -d $d; then
18456 X_LIBS="-L$d $X_LIBS"
18457 { echo "$as_me:$LINENO: result: $d" >&5
18458 echo "${ECHO_T}$d" >&6; }
18460 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18461 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
18464 # replace the directory string with "yes".
18466 with_xpm=$with_xpm_req
18471 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
18472 echo " If it is a directory, then \`DIR/include' will be added to"
18473 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18479 if test "$with_xpm" = yes; then
18481 ac_save_CPPFLAGS="$CPPFLAGS"
18482 if test \! -z "$includedir" ; then
18483 CPPFLAGS="$CPPFLAGS -I$includedir"
18485 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18486 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18487 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18488 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
18489 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18490 echo $ECHO_N "(cached) $ECHO_C" >&6
18492 cat >conftest.$ac_ext <<_ACEOF
18495 cat confdefs.h >>conftest.$ac_ext
18496 cat >>conftest.$ac_ext <<_ACEOF
18497 /* end confdefs.h. */
18498 #include <X11/Xlib.h>
18500 #include <X11/xpm.h>
18502 rm -f conftest.$ac_objext
18503 if { (ac_try="$ac_compile"
18504 case "(($ac_try" in
18505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18506 *) ac_try_echo=$ac_try;;
18508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18509 (eval "$ac_compile") 2>conftest.er1
18511 grep -v '^ *+' conftest.er1 >conftest.err
18513 cat conftest.err >&5
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); } && {
18516 test -z "$ac_c_werror_flag" ||
18517 test ! -s conftest.err
18518 } && test -s conftest.$ac_objext; then
18519 ac_cv_header_X11_xpm_h=yes
18521 echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18524 ac_cv_header_X11_xpm_h=no
18527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18529 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18530 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
18531 if test $ac_cv_header_X11_xpm_h = yes; then
18533 cat >>confdefs.h <<\_ACEOF
18537 XPM_LIBS="-lXpm $XPM_LIBS"
18541 CPPFLAGS="$ac_save_CPPFLAGS"
18542 elif test "$with_xpm" != no; then
18543 echo "error: must be yes or no: --with-xpm=$with_xpm"
18547 # See comment near $motif_requires_xpm, above.
18548 # Need to do this here, after both Motif and XPM have been checked for.
18550 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
18551 if test "$motif_requires_xpm" = yes ; then
18552 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
18556 if test "$XPM_LIBS" = "" ; then
18557 XPM_LIBS=$(MINIXPM)
18561 ###############################################################################
18565 ###############################################################################
18568 with_jpeg_req=unspecified
18571 # Check whether --with-jpeg was given.
18572 if test "${with_jpeg+set}" = set; then
18573 withval=$with_jpeg; with_jpeg="$withval"; with_jpeg_req="$withval"
18580 case "$with_jpeg" in
18585 { echo "$as_me:$LINENO: checking for JPEG headers" >&5
18586 echo $ECHO_N "checking for JPEG headers... $ECHO_C" >&6; }
18587 d=$with_jpeg/include
18588 if test -d $d; then
18589 X_CFLAGS="-I$d $X_CFLAGS"
18590 { echo "$as_me:$LINENO: result: $d" >&5
18591 echo "${ECHO_T}$d" >&6; }
18593 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18594 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
18597 { echo "$as_me:$LINENO: checking for JPEG libs" >&5
18598 echo $ECHO_N "checking for JPEG libs... $ECHO_C" >&6; }
18600 if test -d $d; then
18601 X_LIBS="-L$d $X_LIBS"
18602 { echo "$as_me:$LINENO: result: $d" >&5
18603 echo "${ECHO_T}$d" >&6; }
18605 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18606 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
18609 # replace the directory string with "yes".
18610 with_jpeg_req="yes"
18611 with_jpeg=$with_jpeg_req
18616 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
18617 echo " If it is a directory, then \`DIR/include' will be added to"
18618 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18624 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
18625 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
18629 if test "$with_jpeg" = yes; then
18633 ac_save_CPPFLAGS="$CPPFLAGS"
18634 if test \! -z "$includedir" ; then
18635 CPPFLAGS="$CPPFLAGS -I$includedir"
18637 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18638 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18639 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18640 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18641 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
18642 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18643 echo $ECHO_N "(cached) $ECHO_C" >&6
18645 { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18646 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
18648 # Is the header compilable?
18649 { echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
18650 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6; }
18651 cat >conftest.$ac_ext <<_ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18657 $ac_includes_default
18658 #include <jpeglib.h>
18660 rm -f conftest.$ac_objext
18661 if { (ac_try="$ac_compile"
18662 case "(($ac_try" in
18663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664 *) ac_try_echo=$ac_try;;
18666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667 (eval "$ac_compile") 2>conftest.er1
18669 grep -v '^ *+' conftest.er1 >conftest.err
18671 cat conftest.err >&5
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); } && {
18674 test -z "$ac_c_werror_flag" ||
18675 test ! -s conftest.err
18676 } && test -s conftest.$ac_objext; then
18677 ac_header_compiler=yes
18679 echo "$as_me: failed program was:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18682 ac_header_compiler=no
18685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18687 echo "${ECHO_T}$ac_header_compiler" >&6; }
18689 # Is the header present?
18690 { echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
18691 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6; }
18692 cat >conftest.$ac_ext <<_ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18698 #include <jpeglib.h>
18700 if { (ac_try="$ac_cpp conftest.$ac_ext"
18701 case "(($ac_try" in
18702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703 *) ac_try_echo=$ac_try;;
18705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18708 grep -v '^ *+' conftest.er1 >conftest.err
18710 cat conftest.err >&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); } >/dev/null && {
18713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18714 test ! -s conftest.err
18716 ac_header_preproc=yes
18718 echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.$ac_ext >&5
18721 ac_header_preproc=no
18724 rm -f conftest.err conftest.$ac_ext
18725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18726 echo "${ECHO_T}$ac_header_preproc" >&6; }
18728 # So? What about this header?
18729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18731 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18732 echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18733 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
18734 echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
18735 ac_header_preproc=yes
18738 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
18739 echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
18740 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
18741 echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
18742 { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
18743 echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
18744 { echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
18745 echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18746 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
18747 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
18748 { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
18749 echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
18753 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18754 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
18755 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18756 echo $ECHO_N "(cached) $ECHO_C" >&6
18758 ac_cv_header_jpeglib_h=$ac_header_preproc
18760 { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18761 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
18764 if test $ac_cv_header_jpeglib_h = yes; then
18769 CPPFLAGS="$ac_save_CPPFLAGS"
18771 if test "$have_jpeg" = yes; then
18772 # we have the header, now check for the library
18776 ac_save_CPPFLAGS="$CPPFLAGS"
18777 ac_save_LDFLAGS="$LDFLAGS"
18778 # ac_save_LIBS="$LIBS"
18780 if test \! -z "$includedir" ; then
18781 CPPFLAGS="$CPPFLAGS -I$includedir"
18783 # note: $X_CFLAGS includes $x_includes
18784 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18786 if test \! -z "$libdir" ; then
18787 LDFLAGS="$LDFLAGS -L$libdir"
18789 # note: $X_LIBS includes $x_libraries
18790 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18792 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18793 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18794 { echo "$as_me:$LINENO: checking for jpeg_start_compress in -ljpeg" >&5
18795 echo $ECHO_N "checking for jpeg_start_compress in -ljpeg... $ECHO_C" >&6; }
18796 if test "${ac_cv_lib_jpeg_jpeg_start_compress+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18799 ac_check_lib_save_LIBS=$LIBS
18800 LIBS="-ljpeg $LIBS"
18801 cat >conftest.$ac_ext <<_ACEOF
18804 cat confdefs.h >>conftest.$ac_ext
18805 cat >>conftest.$ac_ext <<_ACEOF
18806 /* end confdefs.h. */
18808 /* Override any GCC internal prototype to avoid an error.
18809 Use char because int might match the return type of a GCC
18810 builtin and then its argument prototype would still apply. */
18814 char jpeg_start_compress ();
18818 return jpeg_start_compress ();
18823 rm -f conftest.$ac_objext conftest$ac_exeext
18824 if { (ac_try="$ac_link"
18825 case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_link") 2>conftest.er1
18832 grep -v '^ *+' conftest.er1 >conftest.err
18834 cat conftest.err >&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } && {
18837 test -z "$ac_c_werror_flag" ||
18838 test ! -s conftest.err
18839 } && test -s conftest$ac_exeext &&
18840 $as_test_x conftest$ac_exeext; then
18841 ac_cv_lib_jpeg_jpeg_start_compress=yes
18843 echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18846 ac_cv_lib_jpeg_jpeg_start_compress=no
18849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18850 conftest$ac_exeext conftest.$ac_ext
18851 LIBS=$ac_check_lib_save_LIBS
18853 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
18854 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_compress" >&6; }
18855 if test $ac_cv_lib_jpeg_jpeg_start_compress = yes; then
18859 cat >>confdefs.h <<\_ACEOF
18860 #define HAVE_JPEGLIB 1
18865 CPPFLAGS="$ac_save_CPPFLAGS"
18866 LDFLAGS="$ac_save_LDFLAGS"
18867 # LIBS="$ac_save_LIBS"
18873 ###############################################################################
18875 # Check for pty support: this allows 'phosphor' and 'apple2'
18876 # to run curses-based programs, or be used as terminal windows.
18878 ###############################################################################
18883 for ac_header in pty.h util.h
18885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18890 echo $ECHO_N "(cached) $ECHO_C" >&6
18892 ac_res=`eval echo '${'$as_ac_Header'}'`
18893 { echo "$as_me:$LINENO: result: $ac_res" >&5
18894 echo "${ECHO_T}$ac_res" >&6; }
18896 # Is the header compilable?
18897 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18899 cat >conftest.$ac_ext <<_ACEOF
18902 cat confdefs.h >>conftest.$ac_ext
18903 cat >>conftest.$ac_ext <<_ACEOF
18904 /* end confdefs.h. */
18905 $ac_includes_default
18906 #include <$ac_header>
18908 rm -f conftest.$ac_objext
18909 if { (ac_try="$ac_compile"
18910 case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18915 (eval "$ac_compile") 2>conftest.er1
18917 grep -v '^ *+' conftest.er1 >conftest.err
18919 cat conftest.err >&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); } && {
18922 test -z "$ac_c_werror_flag" ||
18923 test ! -s conftest.err
18924 } && test -s conftest.$ac_objext; then
18925 ac_header_compiler=yes
18927 echo "$as_me: failed program was:" >&5
18928 sed 's/^/| /' conftest.$ac_ext >&5
18930 ac_header_compiler=no
18933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18935 echo "${ECHO_T}$ac_header_compiler" >&6; }
18937 # Is the header present?
18938 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18940 cat >conftest.$ac_ext <<_ACEOF
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h. */
18946 #include <$ac_header>
18948 if { (ac_try="$ac_cpp conftest.$ac_ext"
18949 case "(($ac_try" in
18950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951 *) ac_try_echo=$ac_try;;
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18956 grep -v '^ *+' conftest.er1 >conftest.err
18958 cat conftest.err >&5
18959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960 (exit $ac_status); } >/dev/null && {
18961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18962 test ! -s conftest.err
18964 ac_header_preproc=yes
18966 echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18969 ac_header_preproc=no
18972 rm -f conftest.err conftest.$ac_ext
18973 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18974 echo "${ECHO_T}$ac_header_preproc" >&6; }
18976 # So? What about this header?
18977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18982 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18983 ac_header_preproc=yes
18986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18989 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18990 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18991 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18992 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18993 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18996 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18997 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19004 echo $ECHO_N "(cached) $ECHO_C" >&6
19006 eval "$as_ac_Header=\$ac_header_preproc"
19008 ac_res=`eval echo '${'$as_ac_Header'}'`
19009 { echo "$as_me:$LINENO: result: $ac_res" >&5
19010 echo "${ECHO_T}$ac_res" >&6; }
19013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19014 cat >>confdefs.h <<_ACEOF
19015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19023 ac_save_CPPFLAGS="$CPPFLAGS"
19024 ac_save_LDFLAGS="$LDFLAGS"
19025 # ac_save_LIBS="$LIBS"
19027 if test \! -z "$includedir" ; then
19028 CPPFLAGS="$CPPFLAGS -I$includedir"
19030 # note: $X_CFLAGS includes $x_includes
19031 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19033 if test \! -z "$libdir" ; then
19034 LDFLAGS="$LDFLAGS -L$libdir"
19036 # note: $X_LIBS includes $x_libraries
19037 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19039 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19040 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
19041 { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
19042 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
19043 if test "${ac_cv_lib_util_forkpty+set}" = set; then
19044 echo $ECHO_N "(cached) $ECHO_C" >&6
19046 ac_check_lib_save_LIBS=$LIBS
19047 LIBS="-lutil $LIBS"
19048 cat >conftest.$ac_ext <<_ACEOF
19051 cat confdefs.h >>conftest.$ac_ext
19052 cat >>conftest.$ac_ext <<_ACEOF
19053 /* end confdefs.h. */
19055 /* Override any GCC internal prototype to avoid an error.
19056 Use char because int might match the return type of a GCC
19057 builtin and then its argument prototype would still apply. */
19070 rm -f conftest.$ac_objext conftest$ac_exeext
19071 if { (ac_try="$ac_link"
19072 case "(($ac_try" in
19073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19074 *) ac_try_echo=$ac_try;;
19076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19077 (eval "$ac_link") 2>conftest.er1
19079 grep -v '^ *+' conftest.er1 >conftest.err
19081 cat conftest.err >&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } && {
19084 test -z "$ac_c_werror_flag" ||
19085 test ! -s conftest.err
19086 } && test -s conftest$ac_exeext &&
19087 $as_test_x conftest$ac_exeext; then
19088 ac_cv_lib_util_forkpty=yes
19090 echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19093 ac_cv_lib_util_forkpty=no
19096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19097 conftest$ac_exeext conftest.$ac_ext
19098 LIBS=$ac_check_lib_save_LIBS
19100 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
19101 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
19102 if test $ac_cv_lib_util_forkpty = yes; then
19104 ac_have_forkpty=yes
19105 cat >>confdefs.h <<\_ACEOF
19106 #define HAVE_FORKPTY 1
19111 CPPFLAGS="$ac_save_CPPFLAGS"
19112 LDFLAGS="$ac_save_LDFLAGS"
19113 # LIBS="$ac_save_LIBS"
19116 if test "$ac_have_forkpty" != yes ; then
19117 # we don't need (or have) -lutil on MacOS 10.4.2...
19119 ac_save_CPPFLAGS="$CPPFLAGS"
19120 ac_save_LDFLAGS="$LDFLAGS"
19121 # ac_save_LIBS="$LIBS"
19123 if test \! -z "$includedir" ; then
19124 CPPFLAGS="$CPPFLAGS -I$includedir"
19126 # note: $X_CFLAGS includes $x_includes
19127 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19129 if test \! -z "$libdir" ; then
19130 LDFLAGS="$LDFLAGS -L$libdir"
19132 # note: $X_LIBS includes $x_libraries
19133 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19135 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19136 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
19137 { echo "$as_me:$LINENO: checking for forkpty in -lc" >&5
19138 echo $ECHO_N "checking for forkpty in -lc... $ECHO_C" >&6; }
19139 if test "${ac_cv_lib_c_forkpty+set}" = set; then
19140 echo $ECHO_N "(cached) $ECHO_C" >&6
19142 ac_check_lib_save_LIBS=$LIBS
19144 cat >conftest.$ac_ext <<_ACEOF
19147 cat confdefs.h >>conftest.$ac_ext
19148 cat >>conftest.$ac_ext <<_ACEOF
19149 /* end confdefs.h. */
19151 /* Override any GCC internal prototype to avoid an error.
19152 Use char because int might match the return type of a GCC
19153 builtin and then its argument prototype would still apply. */
19166 rm -f conftest.$ac_objext conftest$ac_exeext
19167 if { (ac_try="$ac_link"
19168 case "(($ac_try" in
19169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19170 *) ac_try_echo=$ac_try;;
19172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19173 (eval "$ac_link") 2>conftest.er1
19175 grep -v '^ *+' conftest.er1 >conftest.err
19177 cat conftest.err >&5
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); } && {
19180 test -z "$ac_c_werror_flag" ||
19181 test ! -s conftest.err
19182 } && test -s conftest$ac_exeext &&
19183 $as_test_x conftest$ac_exeext; then
19184 ac_cv_lib_c_forkpty=yes
19186 echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19189 ac_cv_lib_c_forkpty=no
19192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19193 conftest$ac_exeext conftest.$ac_ext
19194 LIBS=$ac_check_lib_save_LIBS
19196 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_forkpty" >&5
19197 echo "${ECHO_T}$ac_cv_lib_c_forkpty" >&6; }
19198 if test $ac_cv_lib_c_forkpty = yes; then
19200 cat >>confdefs.h <<\_ACEOF
19201 #define HAVE_FORKPTY 1
19206 CPPFLAGS="$ac_save_CPPFLAGS"
19207 LDFLAGS="$ac_save_LDFLAGS"
19208 # LIBS="$ac_save_LIBS"
19212 ###############################################################################
19214 # Check for the XSHM server extension.
19216 ###############################################################################
19219 with_xshm_req=unspecified
19221 # Check whether --with-xshm-ext was given.
19222 if test "${with_xshm_ext+set}" = set; then
19223 withval=$with_xshm_ext; with_xshm="$withval"; with_xshm_req="$withval"
19230 case "$with_xshm" in
19235 { echo "$as_me:$LINENO: checking for XSHM headers" >&5
19236 echo $ECHO_N "checking for XSHM headers... $ECHO_C" >&6; }
19237 d=$with_xshm/include
19238 if test -d $d; then
19239 X_CFLAGS="-I$d $X_CFLAGS"
19240 { echo "$as_me:$LINENO: result: $d" >&5
19241 echo "${ECHO_T}$d" >&6; }
19243 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19244 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
19247 { echo "$as_me:$LINENO: checking for XSHM libs" >&5
19248 echo $ECHO_N "checking for XSHM libs... $ECHO_C" >&6; }
19250 if test -d $d; then
19251 X_LIBS="-L$d $X_LIBS"
19252 { echo "$as_me:$LINENO: result: $d" >&5
19253 echo "${ECHO_T}$d" >&6; }
19255 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19256 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
19259 # replace the directory string with "yes".
19260 with_xshm_req="yes"
19261 with_xshm=$with_xshm_req
19266 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
19267 echo " If it is a directory, then \`DIR/include' will be added to"
19268 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19274 if test "$with_xshm" = yes; then
19276 # first check for Xshm.h.
19278 ac_save_CPPFLAGS="$CPPFLAGS"
19279 if test \! -z "$includedir" ; then
19280 CPPFLAGS="$CPPFLAGS -I$includedir"
19282 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19283 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19284 { echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5
19285 echo $ECHO_N "checking for X11/extensions/XShm.h... $ECHO_C" >&6; }
19286 if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
19287 echo $ECHO_N "(cached) $ECHO_C" >&6
19289 cat >conftest.$ac_ext <<_ACEOF
19292 cat confdefs.h >>conftest.$ac_ext
19293 cat >>conftest.$ac_ext <<_ACEOF
19294 /* end confdefs.h. */
19295 #include <X11/Xlib.h>
19297 #include <X11/extensions/XShm.h>
19299 rm -f conftest.$ac_objext
19300 if { (ac_try="$ac_compile"
19301 case "(($ac_try" in
19302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303 *) ac_try_echo=$ac_try;;
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306 (eval "$ac_compile") 2>conftest.er1
19308 grep -v '^ *+' conftest.er1 >conftest.err
19310 cat conftest.err >&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } && {
19313 test -z "$ac_c_werror_flag" ||
19314 test ! -s conftest.err
19315 } && test -s conftest.$ac_objext; then
19316 ac_cv_header_X11_extensions_XShm_h=yes
19318 echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19321 ac_cv_header_X11_extensions_XShm_h=no
19324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19326 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5
19327 echo "${ECHO_T}$ac_cv_header_X11_extensions_XShm_h" >&6; }
19328 if test $ac_cv_header_X11_extensions_XShm_h = yes; then
19333 CPPFLAGS="$ac_save_CPPFLAGS"
19335 # if that succeeded, then check for sys/ipc.h.
19336 if test "$have_xshm" = yes; then
19339 ac_save_CPPFLAGS="$CPPFLAGS"
19340 if test \! -z "$includedir" ; then
19341 CPPFLAGS="$CPPFLAGS -I$includedir"
19343 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19344 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19345 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
19346 { echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
19347 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6; }
19348 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
19349 echo $ECHO_N "(cached) $ECHO_C" >&6
19351 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
19352 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6; }
19354 # Is the header compilable?
19355 { echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
19356 echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6; }
19357 cat >conftest.$ac_ext <<_ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h. */
19363 $ac_includes_default
19364 #include <sys/ipc.h>
19366 rm -f conftest.$ac_objext
19367 if { (ac_try="$ac_compile"
19368 case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373 (eval "$ac_compile") 2>conftest.er1
19375 grep -v '^ *+' conftest.er1 >conftest.err
19377 cat conftest.err >&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } && {
19380 test -z "$ac_c_werror_flag" ||
19381 test ! -s conftest.err
19382 } && test -s conftest.$ac_objext; then
19383 ac_header_compiler=yes
19385 echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19388 ac_header_compiler=no
19391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19393 echo "${ECHO_T}$ac_header_compiler" >&6; }
19395 # Is the header present?
19396 { echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
19397 echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6; }
19398 cat >conftest.$ac_ext <<_ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h. */
19404 #include <sys/ipc.h>
19406 if { (ac_try="$ac_cpp conftest.$ac_ext"
19407 case "(($ac_try" in
19408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19409 *) ac_try_echo=$ac_try;;
19411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19414 grep -v '^ *+' conftest.er1 >conftest.err
19416 cat conftest.err >&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); } >/dev/null && {
19419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19420 test ! -s conftest.err
19422 ac_header_preproc=yes
19424 echo "$as_me: failed program was:" >&5
19425 sed 's/^/| /' conftest.$ac_ext >&5
19427 ac_header_preproc=no
19430 rm -f conftest.err conftest.$ac_ext
19431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19432 echo "${ECHO_T}$ac_header_preproc" >&6; }
19434 # So? What about this header?
19435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19437 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
19438 echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19439 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the compiler's result" >&5
19440 echo "$as_me: WARNING: sys/ipc.h: proceeding with the compiler's result" >&2;}
19441 ac_header_preproc=yes
19444 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
19445 echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
19446 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
19447 echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
19448 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: see the Autoconf documentation" >&5
19449 echo "$as_me: WARNING: sys/ipc.h: see the Autoconf documentation" >&2;}
19450 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&5
19451 echo "$as_me: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&2;}
19452 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
19453 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
19454 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&5
19455 echo "$as_me: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&2;}
19459 { echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
19460 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6; }
19461 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19464 ac_cv_header_sys_ipc_h=$ac_header_preproc
19466 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
19467 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6; }
19470 if test $ac_cv_header_sys_ipc_h = yes; then
19475 CPPFLAGS="$ac_save_CPPFLAGS"
19478 # if that succeeded, then check for sys/shm.h.
19479 if test "$have_xshm" = yes; then
19482 ac_save_CPPFLAGS="$CPPFLAGS"
19483 if test \! -z "$includedir" ; then
19484 CPPFLAGS="$CPPFLAGS -I$includedir"
19486 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19487 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19488 if test "${ac_cv_header_sys_shm_h+set}" = set; then
19489 { echo "$as_me:$LINENO: checking for sys/shm.h" >&5
19490 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6; }
19491 if test "${ac_cv_header_sys_shm_h+set}" = set; then
19492 echo $ECHO_N "(cached) $ECHO_C" >&6
19494 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
19495 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6; }
19497 # Is the header compilable?
19498 { echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
19499 echo $ECHO_N "checking sys/shm.h usability... $ECHO_C" >&6; }
19500 cat >conftest.$ac_ext <<_ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h. */
19506 $ac_includes_default
19507 #include <sys/shm.h>
19509 rm -f conftest.$ac_objext
19510 if { (ac_try="$ac_compile"
19511 case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_compile") 2>conftest.er1
19518 grep -v '^ *+' conftest.er1 >conftest.err
19520 cat conftest.err >&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); } && {
19523 test -z "$ac_c_werror_flag" ||
19524 test ! -s conftest.err
19525 } && test -s conftest.$ac_objext; then
19526 ac_header_compiler=yes
19528 echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19531 ac_header_compiler=no
19534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19536 echo "${ECHO_T}$ac_header_compiler" >&6; }
19538 # Is the header present?
19539 { echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
19540 echo $ECHO_N "checking sys/shm.h presence... $ECHO_C" >&6; }
19541 cat >conftest.$ac_ext <<_ACEOF
19544 cat confdefs.h >>conftest.$ac_ext
19545 cat >>conftest.$ac_ext <<_ACEOF
19546 /* end confdefs.h. */
19547 #include <sys/shm.h>
19549 if { (ac_try="$ac_cpp conftest.$ac_ext"
19550 case "(($ac_try" in
19551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19552 *) ac_try_echo=$ac_try;;
19554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19557 grep -v '^ *+' conftest.er1 >conftest.err
19559 cat conftest.err >&5
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); } >/dev/null && {
19562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19563 test ! -s conftest.err
19565 ac_header_preproc=yes
19567 echo "$as_me: failed program was:" >&5
19568 sed 's/^/| /' conftest.$ac_ext >&5
19570 ac_header_preproc=no
19573 rm -f conftest.err conftest.$ac_ext
19574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19575 echo "${ECHO_T}$ac_header_preproc" >&6; }
19577 # So? What about this header?
19578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19580 { echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
19581 echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19582 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the compiler's result" >&5
19583 echo "$as_me: WARNING: sys/shm.h: proceeding with the compiler's result" >&2;}
19584 ac_header_preproc=yes
19587 { echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
19588 echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
19589 { echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
19590 echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
19591 { echo "$as_me:$LINENO: WARNING: sys/shm.h: see the Autoconf documentation" >&5
19592 echo "$as_me: WARNING: sys/shm.h: see the Autoconf documentation" >&2;}
19593 { echo "$as_me:$LINENO: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&5
19594 echo "$as_me: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&2;}
19595 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
19596 echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
19597 { echo "$as_me:$LINENO: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&5
19598 echo "$as_me: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&2;}
19602 { echo "$as_me:$LINENO: checking for sys/shm.h" >&5
19603 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6; }
19604 if test "${ac_cv_header_sys_shm_h+set}" = set; then
19605 echo $ECHO_N "(cached) $ECHO_C" >&6
19607 ac_cv_header_sys_shm_h=$ac_header_preproc
19609 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
19610 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6; }
19613 if test $ac_cv_header_sys_shm_h = yes; then
19618 CPPFLAGS="$ac_save_CPPFLAGS"
19621 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
19622 # to exist, but the library code to not exist. And even better, the library
19623 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
19624 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
19625 # that's not quite right, but close enough.)
19629 if `uname -v` -eq 3 ; then
19632 ac_save_CPPFLAGS="$CPPFLAGS"
19633 ac_save_LDFLAGS="$LDFLAGS"
19634 # ac_save_LIBS="$LIBS"
19636 if test \! -z "$includedir" ; then
19637 CPPFLAGS="$CPPFLAGS -I$includedir"
19639 # note: $X_CFLAGS includes $x_includes
19640 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19642 if test \! -z "$libdir" ; then
19643 LDFLAGS="$LDFLAGS -L$libdir"
19645 # note: $X_LIBS includes $x_libraries
19646 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19648 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19649 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
19650 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXextSam" >&5
19651 echo $ECHO_N "checking for XShmQueryExtension in -lXextSam... $ECHO_C" >&6; }
19652 if test "${ac_cv_lib_XextSam_XShmQueryExtension+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
19655 ac_check_lib_save_LIBS=$LIBS
19656 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
19657 cat >conftest.$ac_ext <<_ACEOF
19660 cat confdefs.h >>conftest.$ac_ext
19661 cat >>conftest.$ac_ext <<_ACEOF
19662 /* end confdefs.h. */
19664 /* Override any GCC internal prototype to avoid an error.
19665 Use char because int might match the return type of a GCC
19666 builtin and then its argument prototype would still apply. */
19670 char XShmQueryExtension ();
19674 return XShmQueryExtension ();
19679 rm -f conftest.$ac_objext conftest$ac_exeext
19680 if { (ac_try="$ac_link"
19681 case "(($ac_try" in
19682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683 *) ac_try_echo=$ac_try;;
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686 (eval "$ac_link") 2>conftest.er1
19688 grep -v '^ *+' conftest.er1 >conftest.err
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } && {
19693 test -z "$ac_c_werror_flag" ||
19694 test ! -s conftest.err
19695 } && test -s conftest$ac_exeext &&
19696 $as_test_x conftest$ac_exeext; then
19697 ac_cv_lib_XextSam_XShmQueryExtension=yes
19699 echo "$as_me: failed program was:" >&5
19700 sed 's/^/| /' conftest.$ac_ext >&5
19702 ac_cv_lib_XextSam_XShmQueryExtension=no
19705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19706 conftest$ac_exeext conftest.$ac_ext
19707 LIBS=$ac_check_lib_save_LIBS
19709 { echo "$as_me:$LINENO: result: $ac_cv_lib_XextSam_XShmQueryExtension" >&5
19710 echo "${ECHO_T}$ac_cv_lib_XextSam_XShmQueryExtension" >&6; }
19711 if test $ac_cv_lib_XextSam_XShmQueryExtension = yes; then
19712 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
19717 CPPFLAGS="$ac_save_CPPFLAGS"
19718 LDFLAGS="$ac_save_LDFLAGS"
19719 # LIBS="$ac_save_LIBS"
19725 # if that succeeded, then we've really got it.
19726 if test "$have_xshm" = yes; then
19727 cat >>confdefs.h <<\_ACEOF
19728 #define HAVE_XSHM_EXTENSION 1
19733 elif test "$with_xshm" != no; then
19734 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
19739 ###############################################################################
19741 # Check for the DOUBLE-BUFFER server extension.
19743 ###############################################################################
19746 with_xdbe_req=unspecified
19748 # Check whether --with-xdbe-ext was given.
19749 if test "${with_xdbe_ext+set}" = set; then
19750 withval=$with_xdbe_ext; with_xdbe="$withval"; with_xdbe_req="$withval"
19757 case "$with_xdbe" in
19762 { echo "$as_me:$LINENO: checking for DOUBLE-BUFFER headers" >&5
19763 echo $ECHO_N "checking for DOUBLE-BUFFER headers... $ECHO_C" >&6; }
19764 d=$with_xdbe/include
19765 if test -d $d; then
19766 X_CFLAGS="-I$d $X_CFLAGS"
19767 { echo "$as_me:$LINENO: result: $d" >&5
19768 echo "${ECHO_T}$d" >&6; }
19770 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19771 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
19774 { echo "$as_me:$LINENO: checking for DOUBLE-BUFFER libs" >&5
19775 echo $ECHO_N "checking for DOUBLE-BUFFER libs... $ECHO_C" >&6; }
19777 if test -d $d; then
19778 X_LIBS="-L$d $X_LIBS"
19779 { echo "$as_me:$LINENO: result: $d" >&5
19780 echo "${ECHO_T}$d" >&6; }
19782 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19783 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
19786 # replace the directory string with "yes".
19787 with_xdbe_req="yes"
19788 with_xdbe=$with_xdbe_req
19793 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
19794 echo " If it is a directory, then \`DIR/include' will be added to"
19795 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19801 if test "$with_xdbe" = yes; then
19804 ac_save_CPPFLAGS="$CPPFLAGS"
19805 if test \! -z "$includedir" ; then
19806 CPPFLAGS="$CPPFLAGS -I$includedir"
19808 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19809 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19810 { echo "$as_me:$LINENO: checking for X11/extensions/Xdbe.h" >&5
19811 echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6; }
19812 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
19813 echo $ECHO_N "(cached) $ECHO_C" >&6
19815 cat >conftest.$ac_ext <<_ACEOF
19818 cat confdefs.h >>conftest.$ac_ext
19819 cat >>conftest.$ac_ext <<_ACEOF
19820 /* end confdefs.h. */
19821 #include <X11/Xlib.h>
19823 #include <X11/extensions/Xdbe.h>
19825 rm -f conftest.$ac_objext
19826 if { (ac_try="$ac_compile"
19827 case "(($ac_try" in
19828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829 *) ac_try_echo=$ac_try;;
19831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832 (eval "$ac_compile") 2>conftest.er1
19834 grep -v '^ *+' conftest.er1 >conftest.err
19836 cat conftest.err >&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } && {
19839 test -z "$ac_c_werror_flag" ||
19840 test ! -s conftest.err
19841 } && test -s conftest.$ac_objext; then
19842 ac_cv_header_X11_extensions_Xdbe_h=yes
19844 echo "$as_me: failed program was:" >&5
19845 sed 's/^/| /' conftest.$ac_ext >&5
19847 ac_cv_header_X11_extensions_Xdbe_h=no
19850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19852 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
19853 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6; }
19854 if test $ac_cv_header_X11_extensions_Xdbe_h = yes; then
19859 CPPFLAGS="$ac_save_CPPFLAGS"
19860 if test "$have_xdbe" = yes; then
19861 cat >>confdefs.h <<\_ACEOF
19862 #define HAVE_DOUBLE_BUFFER_EXTENSION 1
19867 elif test "$with_xdbe" != no; then
19868 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
19873 ###############################################################################
19875 # Check for the SGI XReadDisplay server extension.
19877 # Note: this has to be down here, rather than up with the other server
19878 # extension tests, so that the output of `configure --help' is in the
19879 # right order. Arrgh!
19881 ###############################################################################
19883 have_readdisplay=no
19884 with_readdisplay_req=unspecified
19886 # Check whether --with-readdisplay was given.
19887 if test "${with_readdisplay+set}" = set; then
19888 withval=$with_readdisplay; with_readdisplay="$withval"; with_readdisplay_req="$withval"
19890 with_readdisplay=yes
19895 case "$with_readdisplay" in
19900 { echo "$as_me:$LINENO: checking for XReadDisplay headers" >&5
19901 echo $ECHO_N "checking for XReadDisplay headers... $ECHO_C" >&6; }
19902 d=$with_readdisplay/include
19903 if test -d $d; then
19904 X_CFLAGS="-I$d $X_CFLAGS"
19905 { echo "$as_me:$LINENO: result: $d" >&5
19906 echo "${ECHO_T}$d" >&6; }
19908 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19909 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
19912 { echo "$as_me:$LINENO: checking for XReadDisplay libs" >&5
19913 echo $ECHO_N "checking for XReadDisplay libs... $ECHO_C" >&6; }
19914 d=$with_readdisplay/lib
19915 if test -d $d; then
19916 X_LIBS="-L$d $X_LIBS"
19917 { echo "$as_me:$LINENO: result: $d" >&5
19918 echo "${ECHO_T}$d" >&6; }
19920 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19921 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
19924 # replace the directory string with "yes".
19925 with_readdisplay_req="yes"
19926 with_readdisplay=$with_readdisplay_req
19931 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
19932 echo " If it is a directory, then \`DIR/include' will be added to"
19933 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19939 if test "$with_readdisplay" = yes; then
19941 ac_save_CPPFLAGS="$CPPFLAGS"
19942 if test \! -z "$includedir" ; then
19943 CPPFLAGS="$CPPFLAGS -I$includedir"
19945 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19946 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19947 { echo "$as_me:$LINENO: checking for X11/extensions/readdisplay.h" >&5
19948 echo $ECHO_N "checking for X11/extensions/readdisplay.h... $ECHO_C" >&6; }
19949 if test "${ac_cv_header_X11_extensions_readdisplay_h+set}" = set; then
19950 echo $ECHO_N "(cached) $ECHO_C" >&6
19952 cat >conftest.$ac_ext <<_ACEOF
19955 cat confdefs.h >>conftest.$ac_ext
19956 cat >>conftest.$ac_ext <<_ACEOF
19957 /* end confdefs.h. */
19958 #include <X11/Xlib.h>
19960 #include <X11/extensions/readdisplay.h>
19962 rm -f conftest.$ac_objext
19963 if { (ac_try="$ac_compile"
19964 case "(($ac_try" in
19965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19966 *) ac_try_echo=$ac_try;;
19968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19969 (eval "$ac_compile") 2>conftest.er1
19971 grep -v '^ *+' conftest.er1 >conftest.err
19973 cat conftest.err >&5
19974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975 (exit $ac_status); } && {
19976 test -z "$ac_c_werror_flag" ||
19977 test ! -s conftest.err
19978 } && test -s conftest.$ac_objext; then
19979 ac_cv_header_X11_extensions_readdisplay_h=yes
19981 echo "$as_me: failed program was:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19984 ac_cv_header_X11_extensions_readdisplay_h=no
19987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19989 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_readdisplay_h" >&5
19990 echo "${ECHO_T}$ac_cv_header_X11_extensions_readdisplay_h" >&6; }
19991 if test $ac_cv_header_X11_extensions_readdisplay_h = yes; then
19992 cat >>confdefs.h <<\_ACEOF
19993 #define HAVE_READ_DISPLAY_EXTENSION 1
19999 CPPFLAGS="$ac_save_CPPFLAGS"
20000 elif test "$with_readdisplay" != no; then
20001 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
20006 ###############################################################################
20008 # Check for a directory full of images to use as the default value
20009 # of the "imageDirectory" preference.
20011 ###############################################################################
20014 with_imagedir_req=unspecified
20017 # Check whether --with-image-directory was given.
20018 if test "${with_image_directory+set}" = set; then
20019 withval=$with_image_directory; with_imagedir="$withval"; with_imagedir_req="$withval"
20024 # no HANDLE_X_PATH_ARG for this one
20026 case "$with_imagedir" in
20029 { echo "$as_me:$LINENO: checking for image directory $with_imagedir" >&5
20030 echo $ECHO_N "checking for image directory $with_imagedir... $ECHO_C" >&6; }
20031 if test -d "$with_imagedir" ; then
20032 { echo "$as_me:$LINENO: result: yes" >&5
20033 echo "${ECHO_T}yes" >&6; }
20035 { echo "$as_me:$LINENO: result: no" >&5
20036 echo "${ECHO_T}no" >&6; }
20043 #### Could use some more defaults here...
20045 "/usr/share/backgrounds/images/" \
20046 "/usr/share/wallpapers/" \
20047 "/Library/Desktop Pictures/" \
20049 if test -z "$with_imagedir"; then
20050 { echo "$as_me:$LINENO: checking for image directory $dd" >&5
20051 echo $ECHO_N "checking for image directory $dd... $ECHO_C" >&6; }
20052 if test -d "$dd" ; then
20053 { echo "$as_me:$LINENO: result: yes" >&5
20054 echo "${ECHO_T}yes" >&6; }
20055 with_imagedir="$dd"
20057 { echo "$as_me:$LINENO: result: no" >&5
20058 echo "${ECHO_T}no" >&6; }
20069 echo "error: must be an absolute path: --with-image-directory=$with_imagedir_req"
20073 ac_cv_imagedir="$with_imagedir"
20075 DEFAULT_IMAGES_P='True'
20076 DEFAULT_IMAGE_DIRECTORY="$ac_cv_imagedir"
20078 if test -z "$DEFAULT_IMAGE_DIRECTORY" ; then
20079 DEFAULT_IMAGES_P='False'
20083 ###############################################################################
20085 # Pick a text file to use as the default of the "textFile" preference.
20086 # Any old file will do, but preferably one that will make interesting
20087 # shapes when displayed by "starwars" and "fontglide".
20089 ###############################################################################
20092 with_textfile_req=unspecified
20095 # Check whether --with-text-file was given.
20096 if test "${with_text_file+set}" = set; then
20097 withval=$with_text_file; with_textfile="$withval"; with_textfile_req="$withval"
20102 # no HANDLE_X_PATH_ARG for this one
20104 case "$with_textfile" in
20107 { echo "$as_me:$LINENO: checking for text file $with_textfile" >&5
20108 echo $ECHO_N "checking for text file $with_textfile... $ECHO_C" >&6; }
20109 if test -f "$with_textfile" ; then
20110 { echo "$as_me:$LINENO: result: yes" >&5
20111 echo "${ECHO_T}yes" >&6; }
20113 { echo "$as_me:$LINENO: result: no" >&5
20114 echo "${ECHO_T}no" >&6; }
20121 #### Could use some more defaults here...
20123 "/usr/X11R6/lib/X11/doc/README" \
20124 "/usr/share/doc/xserver-common/copyright" \
20125 "/usr/share/doc/xserver-xorg-core/copyright" \
20126 "/usr/X11R6/README" \
20127 "/usr/share/doc/debian/debian-manifesto" \
20129 if test -z "$with_textfile"; then
20130 { echo "$as_me:$LINENO: checking for text file $f" >&5
20131 echo $ECHO_N "checking for text file $f... $ECHO_C" >&6; }
20132 if test -f "$f" ; then
20133 { echo "$as_me:$LINENO: result: yes" >&5
20134 echo "${ECHO_T}yes" >&6; }
20137 { echo "$as_me:$LINENO: result: no" >&5
20138 echo "${ECHO_T}no" >&6; }
20149 echo "error: must be an absolute path: --with-text-file=$with_textfile_req"
20153 ac_cv_textfile="$with_textfile"
20155 DEFAULT_TEXT_FILE="$ac_cv_textfile"
20158 ###############################################################################
20160 # Check the browser to see help URL
20162 ###############################################################################
20165 with_browser_req=unspecified
20168 # Check whether --with-browser was given.
20169 if test "${with_browser+set}" = set; then
20170 withval=$with_browser; with_browser="$withval"; with_browser_req="$withval"
20175 # no HANDLE_X_PATH_ARG for this one
20177 case "$with_browser" in
20181 WITH_BROWSER=$with_browser
20182 gnome_open_program=$with_browser
20183 { echo "$as_me:$LINENO: checking for browser $with_browser" >&5
20184 echo $ECHO_N "checking for browser $with_browser... $ECHO_C" >&6; }
20185 with_browser_fullpath=`which $with_browser 2>/dev/null`
20186 case $with_browser_fullpath in
20188 { echo "$as_me:$LINENO: result: yes" >&5
20189 echo "${ECHO_T}yes" >&6; }
20193 { echo "$as_me:$LINENO: result: no" >&5
20194 echo "${ECHO_T}no" >&6; }
20195 # Only warning: we don't want to install all packages for the
20196 # dependency of the browser in building stage...
20197 echo "WARNING: browser not found: --with-browser=$with_browser"
20202 ac_cv_browser="$with_browser"
20204 ###############################################################################
20206 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
20207 # This should be safe, but let's give people the option.
20209 ###############################################################################
20211 setuid_hacks_default=no
20212 setuid_hacks="$setuid_hacks_default"
20214 # Check whether --with-setuid-hacks was given.
20215 if test "${with_setuid_hacks+set}" = set; then
20216 withval=$with_setuid_hacks; setuid_hacks="$withval"
20218 setuid_hacks="$setuid_hacks_default"
20223 case "$setuid_hacks" in
20228 { echo "$as_me:$LINENO: checking for setuid hacks headers" >&5
20229 echo $ECHO_N "checking for setuid hacks headers... $ECHO_C" >&6; }
20230 d=$setuid_hacks/include
20231 if test -d $d; then
20232 X_CFLAGS="-I$d $X_CFLAGS"
20233 { echo "$as_me:$LINENO: result: $d" >&5
20234 echo "${ECHO_T}$d" >&6; }
20236 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20237 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
20240 { echo "$as_me:$LINENO: checking for setuid hacks libs" >&5
20241 echo $ECHO_N "checking for setuid hacks libs... $ECHO_C" >&6; }
20242 d=$setuid_hacks/lib
20243 if test -d $d; then
20244 X_LIBS="-L$d $X_LIBS"
20245 { echo "$as_me:$LINENO: result: $d" >&5
20246 echo "${ECHO_T}$d" >&6; }
20248 { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20249 echo "${ECHO_T}not found ($d: no such directory)" >&6; }
20252 # replace the directory string with "yes".
20253 setuid_hacks_req="yes"
20254 setuid_hacks=$setuid_hacks_req
20259 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
20260 echo " If it is a directory, then \`DIR/include' will be added to"
20261 echo " the -I list, and \`DIR/lib' will be added to the -L list."
20267 if test "$setuid_hacks" = yes; then
20269 elif test "$setuid_hacks" != no; then
20270 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
20275 ###############################################################################
20277 # Done testing. Now, set up the various -I and -L variables,
20278 # and decide which GUI program to build by default.
20280 ###############################################################################
20287 if test \! -z "$includedir" ; then
20288 INCLUDES="$INCLUDES -I$includedir"
20291 if test \! -z "$libdir" ; then
20292 LDFLAGS="$LDFLAGS -L$libdir"
20296 PREFERRED_DEMO_PROGRAM=''
20298 if test "$have_motif" = yes; then
20299 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
20300 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
20302 if test "$have_gtk" = yes; then
20303 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
20304 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
20308 if test "$have_kerberos" = yes; then
20309 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
20310 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
20312 if test "$have_pam" = yes; then
20313 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
20314 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
20315 INSTALL_PAM="install-pam"
20317 if test "$have_passwd_helper" = yes; then
20318 PASSWD_SRCS="$PASSWD_SRCS \$(PWHELPER_SRCS)"
20319 PASSWD_OBJS="$PASSWD_OBJS \$(PWHELPER_OBJS)"
20321 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
20322 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
20325 if test "$enable_locking" = yes; then
20326 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
20327 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
20329 LOCK_SRCS='$(NOLOCK_SRCS_1)'
20330 LOCK_OBJS='$(NOLOCK_OBJS_1)'
20333 if test "$ac_macosx" = yes; then
20334 EXES_OSX='$(EXES_OSX)'
20335 SCRIPTS_OSX='$(SCRIPTS_OSX)'
20336 MEN_OSX='$(MEN_OSX)'
20344 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
20346 if test "$need_setuid" = yes; then
20352 if test "$setuid_hacks" = yes; then
20359 if test "$have_gl" = yes; then
20360 GL_EXES='$(GL_EXES)'
20361 SUID_EXES='$(SUID_EXES)'
20362 RETIRED_GL_EXES='$(RETIRED_GL_EXES)'
20363 GL_UTIL_EXES='$(GL_UTIL_EXES)'
20370 if test "$have_gle" = yes; then
20371 GLE_EXES='$(GLE_EXES)'
20377 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
20378 JPEG_EXES='$(JPEG_EXES)'
20382 # Another substitution in the XScreenSaver.ad.in file:
20384 if test "$gnome_open_program" != ''; then
20388 elif test "$gnome_url_show_program" != ''; then
20399 # Set PO_DATADIR to something sensible.
20401 { echo "$as_me:$LINENO: checking for locale directory" >&5
20402 echo $ECHO_N "checking for locale directory... $ECHO_C" >&6; }
20403 if test -n "$GTK_DATADIR" ; then
20404 PO_DATADIR="$GTK_DATADIR"
20405 elif test "$have_gtk" = yes; then
20406 PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
20407 PO_DATADIR="$PO_DATADIR/share"
20410 if test -z "$PO_DATADIR" ; then
20412 # #### Total fucking kludge --
20413 # Map /build/prefix/usr/X11R6/share/ to /build/prefix/usr/share/
20414 # but of course we need to expand all the nested variables to do that...
20416 dd=`eval eval eval eval eval eval eval eval eval eval eval echo $datadir`
20417 PO_DATADIR=`echo $dd | sed 's@/X11R6/@/@'`
20420 { echo "$as_me:$LINENO: result: $PO_DATADIR/locale" >&5
20421 echo "${ECHO_T}$PO_DATADIR/locale" >&6; }
20424 # canonicalize slashes.
20425 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
20427 # gcc 3.0 likes to issue this warning for every file:
20429 # cc1: warning: changing search order for system directory "/usr/local/include"
20430 # cc1: warning: as it has already been specified as a non-system directory
20432 # Yay. We can only avoid that by deleting "-I${prefix}/include" from the list.
20433 # Which *should* be totally redundant, and thus an ok thing to delete?
20435 INCLUDES=`echo "$INCLUDES" | sed 's@ -I${prefix}/include@@g;'`
20438 ###############################################################################
20440 # Perform substitutions and write Makefiles.
20442 ###############################################################################
20508 APPDEFAULTS=$ac_x_app_defaults
20516 ac_config_files="$ac_config_files Makefile utils/Makefile driver/Makefile hacks/Makefile hacks/glx/Makefile po/Makefile.in driver/XScreenSaver.ad"
20518 cat >confcache <<\_ACEOF
20519 # This file is a shell script that caches the results of configure
20520 # tests run on this system so they can be shared between configure
20521 # scripts and configure runs, see configure's option --config-cache.
20522 # It is not useful on other systems. If it contains results you don't
20523 # want to keep, you may remove or edit it.
20525 # config.status only pays attention to the cache file if you give it
20526 # the --recheck option to rerun configure.
20528 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20529 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20530 # following values.
20534 # The following way of writing the cache mishandles newlines in values,
20535 # but we know of no workaround that is simple, portable, and efficient.
20536 # So, we kill variables containing newlines.
20537 # Ultrix sh set writes to stderr and can't be redirected directly,
20538 # and sets the high bit in the cache file unless we assign to the vars.
20540 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20541 eval ac_val=\$$ac_var
20545 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20546 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20549 _ | IFS | as_nl) ;; #(
20550 *) $as_unset $ac_var ;;
20556 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20557 *${as_nl}ac_space=\ *)
20558 # `set' does not quote correctly, so add quotes (double-quote
20559 # substitution turns \\\\ into \\, and sed turns \\ into \).
20562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20565 # `set' quotes correctly as required by POSIX, so do not add quotes.
20566 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20577 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20579 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20580 if test -w "$cache_file"; then
20581 test "x$cache_file" != "x/dev/null" &&
20582 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20583 echo "$as_me: updating cache $cache_file" >&6;}
20584 cat confcache >$cache_file
20586 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20587 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20592 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20593 # Let make expand exec_prefix.
20594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20596 DEFS=-DHAVE_CONFIG_H
20600 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20601 # 1. Remove the extension, and $U if already installed.
20602 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20603 ac_i=`echo "$ac_i" | sed "$ac_script"`
20604 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20605 # will be set to the directory where LIBOBJS objects are built.
20606 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20607 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20609 LIBOBJS=$ac_libobjs
20611 LTLIBOBJS=$ac_ltlibobjs
20616 mv -f po/POTFILES po/POTFILES.tmp
20617 sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
20618 rm -f po/POTFILES.tmp
20622 : ${CONFIG_STATUS=./config.status}
20623 ac_clean_files_save=$ac_clean_files
20624 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20625 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20626 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20627 cat >$CONFIG_STATUS <<_ACEOF
20629 # Generated by $as_me.
20630 # Run this file to recreate the current configuration.
20631 # Compiler output produced by configure, useful for debugging
20632 # configure, is in config.log if it exists.
20635 ac_cs_recheck=false
20637 SHELL=\${CONFIG_SHELL-$SHELL}
20640 cat >>$CONFIG_STATUS <<\_ACEOF
20641 ## --------------------- ##
20642 ## M4sh Initialization. ##
20643 ## --------------------- ##
20645 # Be more Bourne compatible
20646 DUALCASE=1; export DUALCASE # for MKS sh
20647 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20650 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20651 # is contrary to our usage. Disable this feature.
20652 alias -g '${1+"$@"}'='"$@"'
20653 setopt NO_GLOB_SUBST
20655 case `(set -o) 2>/dev/null` in
20656 *posix*) set -o posix ;;
20665 # Avoid depending upon Character Ranges.
20666 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20667 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20668 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20669 as_cr_digits='0123456789'
20670 as_cr_alnum=$as_cr_Letters$as_cr_digits
20672 # The user is always right.
20673 if test "${PATH_SEPARATOR+set}" != set; then
20674 echo "#! /bin/sh" >conf$$.sh
20675 echo "exit 0" >>conf$$.sh
20677 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20685 # Support unset when possible.
20686 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20694 # We need space, tab and new line, in precisely that order. Quoting is
20695 # there to prevent editors from complaining about space-tab.
20696 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20697 # splitting by setting IFS to empty value.)
20702 # Find who we are. Look in the path if we contain no directory separator.
20704 *[\\/]* ) as_myself=$0 ;;
20705 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20706 for as_dir in $PATH
20709 test -z "$as_dir" && as_dir=.
20710 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20716 # We did not find ourselves, most probably we were run as `sh COMMAND'
20717 # in which case we are not to be found in the path.
20718 if test "x$as_myself" = x; then
20721 if test ! -f "$as_myself"; then
20722 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20723 { (exit 1); exit 1; }
20726 # Work around bugs in pre-3.0 UWIN ksh.
20727 for as_var in ENV MAIL MAILPATH
20728 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20736 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20737 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20738 LC_TELEPHONE LC_TIME
20740 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20741 eval $as_var=C; export $as_var
20743 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20747 # Required to use basename.
20748 if expr a : '\(a\)' >/dev/null 2>&1 &&
20749 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20755 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20756 as_basename=basename
20762 # Name of the executable.
20763 as_me=`$as_basename -- "$0" ||
20764 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20765 X"$0" : 'X\(//\)$' \| \
20766 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20768 sed '/^.*\/\([^/][^/]*\)\/*$/{
20787 as_lineno_1=$LINENO
20788 as_lineno_2=$LINENO
20789 test "x$as_lineno_1" != "x$as_lineno_2" &&
20790 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20792 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20793 # uniformly replaced by the line number. The first 'sed' inserts a
20794 # line-number line after each line using $LINENO; the second 'sed'
20795 # does the real work. The second script uses 'N' to pair each
20796 # line-number line with the line containing $LINENO, and appends
20797 # trailing '-' during substitution so that $LINENO is not a special
20798 # case at line end.
20799 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20800 # scripts with optimization help from Paolo Bonzini. Blame Lee
20801 # E. McMahon (1931-1989) for sed's syntax. :-)
20813 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20816 ' >$as_me.lineno &&
20817 chmod +x "$as_me.lineno" ||
20818 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20819 { (exit 1); exit 1; }; }
20821 # Don't try to exec as it changes $[0], causing all sort of problems
20822 # (the dirname of $[0] is not the place where we might find the
20823 # original and so on. Autoconf is especially sensitive to this).
20824 . "./$as_me.lineno"
20825 # Exit status is that of the last command.
20830 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20836 ECHO_C= ECHO_N= ECHO_T=
20837 case `echo -n x` in
20839 case `echo 'x\c'` in
20840 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20847 if expr a : '\(a\)' >/dev/null 2>&1 &&
20848 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20854 rm -f conf$$ conf$$.exe conf$$.file
20855 if test -d conf$$.dir; then
20856 rm -f conf$$.dir/conf$$.file
20862 if ln -s conf$$.file conf$$ 2>/dev/null; then
20864 # ... but there are two gotchas:
20865 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20866 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20867 # In both cases, we have to default to `cp -p'.
20868 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20870 elif ln conf$$.file conf$$ 2>/dev/null; then
20875 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20876 rmdir conf$$.dir 2>/dev/null
20878 if mkdir -p . 2>/dev/null; then
20881 test -d ./-p && rmdir ./-p
20885 if test -x / >/dev/null 2>&1; then
20886 as_test_x='test -x'
20888 if ls -dL / >/dev/null 2>&1; then
20895 if test -d "$1"; then
20901 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20902 ???[sx]*):;;*)false;;esac;fi
20906 as_executable_p=$as_test_x
20908 # Sed expression to map a string onto a valid CPP name.
20909 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20911 # Sed expression to map a string onto a valid variable name.
20912 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20917 # Save the log message, to keep $[0] and so on meaningful, and to
20918 # report actual input values of CONFIG_FILES etc. instead of their
20919 # values after options handling.
20921 This file was extended by $as_me, which was
20922 generated by GNU Autoconf 2.61. Invocation command line was
20924 CONFIG_FILES = $CONFIG_FILES
20925 CONFIG_HEADERS = $CONFIG_HEADERS
20926 CONFIG_LINKS = $CONFIG_LINKS
20927 CONFIG_COMMANDS = $CONFIG_COMMANDS
20930 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20935 cat >>$CONFIG_STATUS <<_ACEOF
20936 # Files that config.status was made for.
20937 config_files="$ac_config_files"
20938 config_headers="$ac_config_headers"
20939 config_commands="$ac_config_commands"
20943 cat >>$CONFIG_STATUS <<\_ACEOF
20945 \`$as_me' instantiates files from templates according to the
20946 current configuration.
20948 Usage: $0 [OPTIONS] [FILE]...
20950 -h, --help print this help, then exit
20951 -V, --version print version number and configuration settings, then exit
20952 -q, --quiet do not print progress messages
20953 -d, --debug don't remove temporary files
20954 --recheck update $as_me by reconfiguring in the same conditions
20955 --file=FILE[:TEMPLATE]
20956 instantiate the configuration file FILE
20957 --header=FILE[:TEMPLATE]
20958 instantiate the configuration header FILE
20960 Configuration files:
20963 Configuration headers:
20966 Configuration commands:
20969 Report bugs to <bug-autoconf@gnu.org>."
20972 cat >>$CONFIG_STATUS <<_ACEOF
20975 configured by $0, generated by GNU Autoconf 2.61,
20976 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20978 Copyright (C) 2006 Free Software Foundation, Inc.
20979 This config.status script is free software; the Free Software Foundation
20980 gives unlimited permission to copy, distribute and modify it."
20987 cat >>$CONFIG_STATUS <<\_ACEOF
20988 # If no file are specified by the user, then we need to provide default
20989 # value. By we need to know if files were specified by the user.
20995 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20996 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21007 # Handling of the options.
21008 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21010 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21011 echo "$ac_cs_version"; exit ;;
21012 --debug | --debu | --deb | --de | --d | -d )
21014 --file | --fil | --fi | --f )
21016 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21017 ac_need_defaults=false;;
21018 --header | --heade | --head | --hea )
21020 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21021 ac_need_defaults=false;;
21023 # Conflict between --help and --header
21024 { echo "$as_me: error: ambiguous option: $1
21025 Try \`$0 --help' for more information." >&2
21026 { (exit 1); exit 1; }; };;
21027 --help | --hel | -h )
21028 echo "$ac_cs_usage"; exit ;;
21029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21030 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21033 # This is an error.
21034 -*) { echo "$as_me: error: unrecognized option: $1
21035 Try \`$0 --help' for more information." >&2
21036 { (exit 1); exit 1; }; } ;;
21038 *) ac_config_targets="$ac_config_targets $1"
21039 ac_need_defaults=false ;;
21045 ac_configure_extra_args=
21047 if $ac_cs_silent; then
21049 ac_configure_extra_args="$ac_configure_extra_args --silent"
21053 cat >>$CONFIG_STATUS <<_ACEOF
21054 if \$ac_cs_recheck; then
21055 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21056 CONFIG_SHELL=$SHELL
21057 export CONFIG_SHELL
21058 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21062 cat >>$CONFIG_STATUS <<\_ACEOF
21066 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21067 ## Running $as_me. ##
21073 cat >>$CONFIG_STATUS <<_ACEOF
21077 INTLTOOL_PERL=${INTLTOOL_PERL}
21082 cat >>$CONFIG_STATUS <<\_ACEOF
21084 # Handling of arguments.
21085 for ac_config_target in $ac_config_targets
21087 case $ac_config_target in
21088 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21089 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21090 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
21091 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21092 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
21093 "driver/Makefile") CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
21094 "hacks/Makefile") CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
21095 "hacks/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
21096 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21097 "driver/XScreenSaver.ad") CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
21099 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21100 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21101 { (exit 1); exit 1; }; };;
21106 # If the user did not use the arguments to specify the items to instantiate,
21107 # then the envvar interface is used. Set only those that are not.
21108 # We use the long form for the default assignment because of an extremely
21109 # bizarre bug on SunOS 4.1.3.
21110 if $ac_need_defaults; then
21111 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21112 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21113 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21116 # Have a temporary directory for convenience. Make it in the build tree
21117 # simply because there is no reason against having it here, and in addition,
21118 # creating and moving files from /tmp can sometimes cause problems.
21119 # Hook for its removal unless debugging.
21120 # Note that there is a small window in which the directory will not be cleaned:
21121 # after its creation but before its name has been assigned to `$tmp'.
21125 trap 'exit_status=$?
21126 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21128 trap '{ (exit 1); exit 1; }' 1 2 13 15
21130 # Create a (secure) tmp directory for tmp files.
21133 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21134 test -n "$tmp" && test -d "$tmp"
21137 tmp=./conf$$-$RANDOM
21138 (umask 077 && mkdir "$tmp")
21141 echo "$me: cannot create a temporary directory in ." >&2
21142 { (exit 1); exit 1; }
21146 # Set up the sed scripts for CONFIG_FILES section.
21149 # No need to generate the scripts if there are no CONFIG_FILES.
21150 # This happens for instance when ./config.status config.h
21151 if test -n "$CONFIG_FILES"; then
21158 for ac_last_try in false false false false false :; do
21159 cat >conf$$subs.sed <<_ACEOF
21160 SHELL!$SHELL$ac_delim
21161 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21162 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21163 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21164 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21165 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21166 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21167 exec_prefix!$exec_prefix$ac_delim
21168 prefix!$prefix$ac_delim
21169 program_transform_name!$program_transform_name$ac_delim
21170 bindir!$bindir$ac_delim
21171 sbindir!$sbindir$ac_delim
21172 libexecdir!$libexecdir$ac_delim
21173 datarootdir!$datarootdir$ac_delim
21174 datadir!$datadir$ac_delim
21175 sysconfdir!$sysconfdir$ac_delim
21176 sharedstatedir!$sharedstatedir$ac_delim
21177 localstatedir!$localstatedir$ac_delim
21178 includedir!$includedir$ac_delim
21179 oldincludedir!$oldincludedir$ac_delim
21180 docdir!$docdir$ac_delim
21181 infodir!$infodir$ac_delim
21182 htmldir!$htmldir$ac_delim
21183 dvidir!$dvidir$ac_delim
21184 pdfdir!$pdfdir$ac_delim
21185 psdir!$psdir$ac_delim
21186 libdir!$libdir$ac_delim
21187 localedir!$localedir$ac_delim
21188 mandir!$mandir$ac_delim
21189 DEFS!$DEFS$ac_delim
21190 ECHO_C!$ECHO_C$ac_delim
21191 ECHO_N!$ECHO_N$ac_delim
21192 ECHO_T!$ECHO_T$ac_delim
21193 LIBS!$LIBS$ac_delim
21194 build_alias!$build_alias$ac_delim
21195 host_alias!$host_alias$ac_delim
21196 target_alias!$target_alias$ac_delim
21197 build!$build$ac_delim
21198 build_cpu!$build_cpu$ac_delim
21199 build_vendor!$build_vendor$ac_delim
21200 build_os!$build_os$ac_delim
21201 host!$host$ac_delim
21202 host_cpu!$host_cpu$ac_delim
21203 host_vendor!$host_vendor$ac_delim
21204 host_os!$host_os$ac_delim
21206 CFLAGS!$CFLAGS$ac_delim
21207 LDFLAGS!$LDFLAGS$ac_delim
21208 CPPFLAGS!$CPPFLAGS$ac_delim
21209 ac_ct_CC!$ac_ct_CC$ac_delim
21210 EXEEXT!$EXEEXT$ac_delim
21211 OBJEXT!$OBJEXT$ac_delim
21213 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21214 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21215 INSTALL_DATA!$INSTALL_DATA$ac_delim
21216 SET_MAKE!$SET_MAKE$ac_delim
21217 GREP!$GREP$ac_delim
21218 EGREP!$EGREP$ac_delim
21219 PERL!$PERL$ac_delim
21220 XMKMF!$XMKMF$ac_delim
21221 X_CFLAGS!$X_CFLAGS$ac_delim
21222 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
21223 X_LIBS!$X_LIBS$ac_delim
21224 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
21225 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
21226 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
21227 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
21228 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
21229 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
21230 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
21231 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
21232 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
21233 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
21234 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
21235 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
21236 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
21237 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
21238 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
21239 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
21240 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
21241 RANLIB!$RANLIB$ac_delim
21242 ALLOCA!$ALLOCA$ac_delim
21243 USE_NLS!$USE_NLS$ac_delim
21244 MSGFMT!$MSGFMT$ac_delim
21245 GMSGFMT!$GMSGFMT$ac_delim
21246 XGETTEXT!$XGETTEXT$ac_delim
21247 CATALOGS!$CATALOGS$ac_delim
21248 CATOBJEXT!$CATOBJEXT$ac_delim
21249 DATADIRNAME!$DATADIRNAME$ac_delim
21250 GMOFILES!$GMOFILES$ac_delim
21251 INSTOBJEXT!$INSTOBJEXT$ac_delim
21252 INTLDEPS!$INTLDEPS$ac_delim
21253 INTLLIBS!$INTLLIBS$ac_delim
21254 INTLOBJS!$INTLOBJS$ac_delim
21255 POFILES!$POFILES$ac_delim
21256 POSUB!$POSUB$ac_delim
21259 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21261 elif $ac_last_try; then
21262 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21263 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21264 { (exit 1); exit 1; }; }
21266 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21270 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21271 if test -n "$ac_eof"; then
21272 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21273 ac_eof=`expr $ac_eof + 1`
21276 cat >>$CONFIG_STATUS <<_ACEOF
21277 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21278 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21281 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21282 s/^/s,@/; s/!/@,|#_!!_#|/
21285 s/'"$ac_delim"'$/,g/; t
21287 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21288 ' >>$CONFIG_STATUS <conf$$subs.sed
21289 rm -f conf$$subs.sed
21290 cat >>$CONFIG_STATUS <<_ACEOF
21296 for ac_last_try in false false false false false :; do
21297 cat >conf$$subs.sed <<_ACEOF
21298 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
21299 login_manager_tmp!$login_manager_tmp$ac_delim
21300 pkg_config!$pkg_config$ac_delim
21301 gnome_open_program!$gnome_open_program$ac_delim
21302 gnome_url_show_program!$gnome_url_show_program$ac_delim
21303 INCLUDES!$INCLUDES$ac_delim
21304 PREFERRED_DEMO_PROGRAM!$PREFERRED_DEMO_PROGRAM$ac_delim
21305 ALL_DEMO_PROGRAMS!$ALL_DEMO_PROGRAMS$ac_delim
21306 SAVER_LIBS!$SAVER_LIBS$ac_delim
21307 MOTIF_LIBS!$MOTIF_LIBS$ac_delim
21308 GTK_LIBS!$GTK_LIBS$ac_delim
21309 XML_LIBS!$XML_LIBS$ac_delim
21310 JPEG_LIBS!$JPEG_LIBS$ac_delim
21311 HACK_LIBS!$HACK_LIBS$ac_delim
21312 XPM_LIBS!$XPM_LIBS$ac_delim
21313 PTY_LIBS!$PTY_LIBS$ac_delim
21314 GL_LIBS!$GL_LIBS$ac_delim
21315 GLE_LIBS!$GLE_LIBS$ac_delim
21316 XDPMS_LIBS!$XDPMS_LIBS$ac_delim
21317 XINERAMA_LIBS!$XINERAMA_LIBS$ac_delim
21318 PASSWD_LIBS!$PASSWD_LIBS$ac_delim
21319 INSTALL_SETUID!$INSTALL_SETUID$ac_delim
21320 SETUID_HACKS!$SETUID_HACKS$ac_delim
21321 INSTALL_DIRS!$INSTALL_DIRS$ac_delim
21322 NEED_SETUID!$NEED_SETUID$ac_delim
21323 INSTALL_PAM!$INSTALL_PAM$ac_delim
21324 HAVE_PAM_FAIL_DELAY!$HAVE_PAM_FAIL_DELAY$ac_delim
21325 NEW_LOGIN_COMMAND!$NEW_LOGIN_COMMAND$ac_delim
21326 NEW_LOGIN_COMMAND_P!$NEW_LOGIN_COMMAND_P$ac_delim
21327 DEFAULT_IMAGES_P!$DEFAULT_IMAGES_P$ac_delim
21328 DEFAULT_IMAGE_DIRECTORY!$DEFAULT_IMAGE_DIRECTORY$ac_delim
21329 DEFAULT_TEXT_FILE!$DEFAULT_TEXT_FILE$ac_delim
21330 WITH_BROWSER!$WITH_BROWSER$ac_delim
21331 OBJCC!$OBJCC$ac_delim
21332 EXES_OSX!$EXES_OSX$ac_delim
21333 SCRIPTS_OSX!$SCRIPTS_OSX$ac_delim
21334 MEN_OSX!$MEN_OSX$ac_delim
21335 PASSWD_SRCS!$PASSWD_SRCS$ac_delim
21336 PASSWD_OBJS!$PASSWD_OBJS$ac_delim
21337 XMU_SRCS!$XMU_SRCS$ac_delim
21338 XMU_OBJS!$XMU_OBJS$ac_delim
21339 XMU_LIBS!$XMU_LIBS$ac_delim
21340 SAVER_GL_SRCS!$SAVER_GL_SRCS$ac_delim
21341 SAVER_GL_OBJS!$SAVER_GL_OBJS$ac_delim
21342 SAVER_GL_LIBS!$SAVER_GL_LIBS$ac_delim
21343 LOCK_SRCS!$LOCK_SRCS$ac_delim
21344 LOCK_OBJS!$LOCK_OBJS$ac_delim
21345 JPEG_EXES!$JPEG_EXES$ac_delim
21346 GL_EXES!$GL_EXES$ac_delim
21347 RETIRED_GL_EXES!$RETIRED_GL_EXES$ac_delim
21348 SUID_EXES!$SUID_EXES$ac_delim
21349 GL_UTIL_EXES!$GL_UTIL_EXES$ac_delim
21350 GL_MEN!$GL_MEN$ac_delim
21351 GL_KLUDGE!$GL_KLUDGE$ac_delim
21352 GLE_EXES!$GLE_EXES$ac_delim
21353 GLE_KLUDGE!$GLE_KLUDGE$ac_delim
21354 GNOME24!$GNOME24$ac_delim
21355 GNOME22!$GNOME22$ac_delim
21356 NOGNOME!$NOGNOME$ac_delim
21357 HACKDIR!$HACKDIR$ac_delim
21358 HACKDIR_FULL!$HACKDIR_FULL$ac_delim
21359 GTK_DATADIR!$GTK_DATADIR$ac_delim
21360 PO_DATADIR!$PO_DATADIR$ac_delim
21361 HACK_CONF_DIR!$HACK_CONF_DIR$ac_delim
21362 GTK_EXTRA_OBJS!$GTK_EXTRA_OBJS$ac_delim
21363 APPDEFAULTS!$APPDEFAULTS$ac_delim
21364 DEPEND!$DEPEND$ac_delim
21365 DEPEND_FLAGS!$DEPEND_FLAGS$ac_delim
21366 DEPEND_DEFINES!$DEPEND_DEFINES$ac_delim
21367 LIBOBJS!$LIBOBJS$ac_delim
21368 LTLIBOBJS!$LTLIBOBJS$ac_delim
21371 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
21373 elif $ac_last_try; then
21374 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21375 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21376 { (exit 1); exit 1; }; }
21378 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21382 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21383 if test -n "$ac_eof"; then
21384 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21385 ac_eof=`expr $ac_eof + 1`
21388 cat >>$CONFIG_STATUS <<_ACEOF
21389 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21390 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21393 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21394 s/^/s,@/; s/!/@,|#_!!_#|/
21397 s/'"$ac_delim"'$/,g/; t
21399 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21400 ' >>$CONFIG_STATUS <conf$$subs.sed
21401 rm -f conf$$subs.sed
21402 cat >>$CONFIG_STATUS <<_ACEOF
21409 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21410 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21411 # trailing colons and then remove the whole line if VPATH becomes empty
21412 # (actually we leave an empty line to preserve line numbers).
21413 if test "x$srcdir" = x.; then
21414 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21415 s/:*\$(srcdir):*/:/
21416 s/:*\${srcdir}:*/:/
21418 s/^\([^=]*=[ ]*\):*/\1/
21424 cat >>$CONFIG_STATUS <<\_ACEOF
21425 fi # test -n "$CONFIG_FILES"
21428 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21431 :[FHLC]) ac_mode=$ac_tag; continue;;
21433 case $ac_mode$ac_tag in
21435 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21436 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21437 { (exit 1); exit 1; }; };;
21438 :[FH]-) ac_tag=-:-;;
21439 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21456 -) ac_f="$tmp/stdin";;
21457 *) # Look for the file first in the build tree, then in the source tree
21458 # (if the path is not absolute). The absolute path cannot be DOS-style,
21459 # because $ac_f cannot contain `:'.
21463 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21465 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21466 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21467 { (exit 1); exit 1; }; };;
21469 ac_file_inputs="$ac_file_inputs $ac_f"
21472 # Let's still pretend it is `configure' which instantiates (i.e., don't
21473 # use $as_me), people would be surprised to read:
21474 # /* config.h. Generated by config.status. */
21475 configure_input="Generated from "`IFS=:
21476 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21477 if test x"$ac_file" != x-; then
21478 configure_input="$ac_file. $configure_input"
21479 { echo "$as_me:$LINENO: creating $ac_file" >&5
21480 echo "$as_me: creating $ac_file" >&6;}
21484 *:-:* | *:-) cat >"$tmp/stdin";;
21489 ac_dir=`$as_dirname -- "$ac_file" ||
21490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21491 X"$ac_file" : 'X\(//\)[^/]' \| \
21492 X"$ac_file" : 'X\(//\)$' \| \
21493 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21499 /^X\(\/\/\)[^/].*/{
21514 -*) as_dir=./$as_dir;;
21516 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21520 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21521 *) as_qdir=$as_dir;;
21523 as_dirs="'$as_qdir' $as_dirs"
21524 as_dir=`$as_dirname -- "$as_dir" ||
21525 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21526 X"$as_dir" : 'X\(//\)[^/]' \| \
21527 X"$as_dir" : 'X\(//\)$' \| \
21528 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21534 /^X\(\/\/\)[^/].*/{
21547 test -d "$as_dir" && break
21549 test -z "$as_dirs" || eval "mkdir $as_dirs"
21550 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21551 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21552 { (exit 1); exit 1; }; }; }
21556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21558 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21559 # A ".." for each directory in $ac_dir_suffix.
21560 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21561 case $ac_top_builddir_sub in
21562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21566 ac_abs_top_builddir=$ac_pwd
21567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21568 # for backward compatibility:
21569 ac_top_builddir=$ac_top_build_prefix
21572 .) # We are building in place.
21574 ac_top_srcdir=$ac_top_builddir_sub
21575 ac_abs_top_srcdir=$ac_pwd ;;
21576 [\\/]* | ?:[\\/]* ) # Absolute name.
21577 ac_srcdir=$srcdir$ac_dir_suffix;
21578 ac_top_srcdir=$srcdir
21579 ac_abs_top_srcdir=$srcdir ;;
21580 *) # Relative name.
21581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21582 ac_top_srcdir=$ac_top_build_prefix$srcdir
21583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21595 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21596 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21600 cat >>$CONFIG_STATUS <<\_ACEOF
21601 # If the template does not know about datarootdir, expand it.
21602 # FIXME: This hack should be removed a few years after 2.60.
21603 ac_datarootdir_hack=; ac_datarootdir_seen=
21605 case `sed -n '/datarootdir/ {
21614 ' $ac_file_inputs` in
21615 *datarootdir*) ac_datarootdir_seen=yes;;
21616 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21617 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21618 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21620 cat >>$CONFIG_STATUS <<_ACEOF
21621 ac_datarootdir_hack='
21622 s&@datadir@&$datadir&g
21623 s&@docdir@&$docdir&g
21624 s&@infodir@&$infodir&g
21625 s&@localedir@&$localedir&g
21626 s&@mandir@&$mandir&g
21627 s&\\\${datarootdir}&$datarootdir&g' ;;
21631 # Neutralize VPATH when `$srcdir' = `.'.
21632 # Shell code in configure.ac might set extrasub.
21633 # FIXME: do we really want to maintain this feature?
21634 cat >>$CONFIG_STATUS <<_ACEOF
21638 cat >>$CONFIG_STATUS <<\_ACEOF
21640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21641 s&@configure_input@&$configure_input&;t t
21642 s&@top_builddir@&$ac_top_builddir_sub&;t t
21643 s&@srcdir@&$ac_srcdir&;t t
21644 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21645 s&@top_srcdir@&$ac_top_srcdir&;t t
21646 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21647 s&@builddir@&$ac_builddir&;t t
21648 s&@abs_builddir@&$ac_abs_builddir&;t t
21649 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21650 s&@INSTALL@&$ac_INSTALL&;t t
21651 $ac_datarootdir_hack
21652 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21654 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21655 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21656 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21657 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21658 which seems to be undefined. Please make sure it is defined." >&5
21659 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21660 which seems to be undefined. Please make sure it is defined." >&2;}
21664 -) cat "$tmp/out"; rm -f "$tmp/out";;
21665 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21674 # Transform confdefs.h into a sed script `conftest.defines', that
21675 # substitutes the proper values into config.h.in to produce config.h.
21676 rm -f conftest.defines conftest.tail
21677 # First, append a space to every undef/define line, to ease matching.
21678 echo 's/$/ /' >conftest.defines
21679 # Then, protect against being on the right side of a sed subst, or in
21680 # an unquoted here document, in config.status. If some macros were
21681 # called several times there might be several #defines for the same
21682 # symbol, which is useless. But do not sort them, since the last
21683 # AC_DEFINE must be honored.
21684 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21685 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21686 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21687 # PARAMS is the parameter list in the macro definition--in most cases, it's
21688 # just an empty string.
21689 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21690 ac_dB='\\)[ (].*,\\1define\\2'
21698 s/^[ ]*#[ ]*define[ ][ ]*//
21703 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21704 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21705 ' >>conftest.defines
21707 # Remove the space that was appended to ease matching.
21708 # Then replace #undef with comments. This is necessary, for
21709 # example, in the case of _POSIX_SOURCE, which is predefined and required
21710 # on some systems where configure will not decide to define it.
21711 # (The regexp can be short, since the line contains either #define or #undef.)
21713 s,^[ #]*u.*,/* & */,' >>conftest.defines
21715 # Break up conftest.defines:
21716 ac_max_sed_lines=50
21718 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21719 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21720 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21722 ac_in='$ac_file_inputs'
21723 ac_out='"$tmp/out1"'
21724 ac_nxt='"$tmp/out2"'
21728 # Write a here document:
21729 cat >>$CONFIG_STATUS <<_ACEOF
21730 # First, check the format of the line:
21731 cat >"\$tmp/defines.sed" <<\\CEOF
21732 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21733 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21737 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21739 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21740 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21741 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21742 grep . conftest.tail >/dev/null || break
21743 rm -f conftest.defines
21744 mv conftest.tail conftest.defines
21746 rm -f conftest.defines conftest.tail
21748 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21749 cat >>$CONFIG_STATUS <<\_ACEOF
21750 if test x"$ac_file" != x-; then
21751 echo "/* $configure_input */" >"$tmp/config.h"
21752 cat "$ac_result" >>"$tmp/config.h"
21753 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21754 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21755 echo "$as_me: $ac_file is unchanged" >&6;}
21758 mv "$tmp/config.h" $ac_file
21761 echo "/* $configure_input */"
21767 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21768 echo "$as_me: executing $ac_file commands" >&6;}
21773 case $ac_file$ac_mode in
21776 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
21777 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
21778 rm -f intltool-extract.out
21780 mv -f intltool-extract.out intltool-extract
21782 chmod ugo+x intltool-extract
21783 chmod u+w intltool-extract
21785 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
21786 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
21787 rm -f intltool-merge.out
21789 mv -f intltool-merge.out intltool-merge
21791 chmod ugo+x intltool-merge
21792 chmod u+w intltool-merge
21794 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
21795 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
21796 rm -f intltool-update.out
21798 mv -f intltool-update.out intltool-update
21800 chmod ugo+x intltool-update
21801 chmod u+w intltool-update
21804 "default-2":C) case "$CONFIG_FILES" in *po/Makefile.in*)
21805 rm -f po/stamp-it po/stamp-it.tmp
21807 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
21808 mv po/stamp-it.tmp po/stamp-it
21815 { (exit 0); exit 0; }
21817 chmod +x $CONFIG_STATUS
21818 ac_clean_files=$ac_clean_files_save
21821 # configure is writing to config.log, and then calls config.status.
21822 # config.status does its own redirection, appending to config.log.
21823 # Unfortunately, on DOS this fails, as config.log is still kept open
21824 # by configure, so config.status won't be able to write to it; its
21825 # output is simply discarded. So we exec the FD to /dev/null,
21826 # effectively closing config.log, so it can be properly (re)opened and
21827 # appended to by config.status. When coming back to configure, we
21828 # need to make the FD available again.
21829 if test "$no_create" != yes; then
21831 ac_config_status_args=
21832 test "$silent" = yes &&
21833 ac_config_status_args="$ac_config_status_args --quiet"
21835 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21837 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21838 # would make configure fail if this is the last instruction.
21839 $ac_cs_success || { (exit 1); exit 1; }
21843 ###############################################################################
21845 # Print some warnings at the end.
21847 ###############################################################################
21849 warn_prefix_1=" Warning:"
21850 warn_prefix_2=" Note:"
21851 warn_prefix="$warn_prefix_1"
21854 warnsep=' #################################################################'
21857 if test "$warning" = no ; then
21858 echo '' ; echo "$warnsep" ; echo ''
21865 if test "$warning" = long ; then echo '' ; fi
21868 echo "$warn_prefix $rest"
21875 if test "$was" != no ; then echo '' ; fi
21877 echo "$warn_prefix $rest"
21887 warn_prefix="$warn_prefix_2"
21889 warn_prefix="$warn_prefix_1"
21893 warn_prefix="$warn_prefix_2"
21895 warn_prefix="$warn_prefix_1"
21899 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
21900 warn 'The SGI saver extension was requested, but was not found.'
21903 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
21904 warn 'The XIdle extension was requested, but was not found.'
21907 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
21908 warn 'The XSHM extension was requested, but was not found.'
21911 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
21912 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
21915 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
21916 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
21919 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
21920 warn 'The DPMS extension was requested, but was not found.'
21923 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
21924 warn 'The Xinerama extension was requested, but was not found.'
21927 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
21928 warn 'The XF86VMODE extension was requested, but was not found.'
21931 if test "$with_randr_req" = yes -a "$have_randr" = no ; then
21932 warn 'The RANDR extension was requested, but was not found.'
21935 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
21936 warn "Checking of /proc/interrupts was requested, but it's bogus."
21939 if test "$pkg_config" = false ; then
21940 warnL 'The "pkg-config" program was not found. Without that,'
21941 warn2 "detection of the various GTK libraries won't work."
21943 pkgerr=`$pkg_config --list-all 2>&1 >/dev/null`
21944 if test "x$pkgerr" != "x" ; then
21945 warnL 'The "pkg-config" program produces errors. This often causes'
21946 warn2 "detection of the various GTK libraries to malfunction."
21947 warn2 "The errors are:"
21949 echo "$pkgerr" | sed 's/^/ > /g'
21953 if test "$gtk_halfassed" != no ; then
21954 warnL "GTK version $gtk_halfassed was found, but at least one supporting"
21955 warn2 "library ($gtk_halfassed_lib) was not, so GTK can't be used."
21956 warn2 "Perhaps some of the development packages are not installed?"
21957 if test "$have_gtk" = yes ; then
21958 v="$ac_gtk_version_string"
21959 warn2 "GTK $v is also installed, so it will be used instead."
21960 warn2 "Please read the above output and the \`config.log' file"
21961 warn2 "for more details."
21966 warn2 'Though the Motif front-end to xscreensaver is still'
21967 warn2 'maintained, it is no longer being updated with new'
21968 warn2 'features: all new development on the xscreensaver-demo'
21969 warn2 'program is happening in the GTK version, and not in the'
21970 warn2 'Motif version. It is recommended that you build against'
21971 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
21974 if test "$have_motif" = no -a "$have_gtk" = no; then
21976 if test "$with_motif" = yes; then
21977 warnL "Neither the GTK nor Motif libraries were found; the"
21978 warn2 "\`xscreensaver-demo' program requires one of these."
21982 warnL "The GTK libraries do not seem to be available; the"
21983 warn2 "\`xscreensaver-demo' program requires them."
21985 # warn2 'You can use Motif or Lesstif instead of GTK (use the'
21986 # warn2 "\`--with-motif' option) but that is NOT recommended."
21990 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
21991 warnL "Use of Motif was requested, but it wasn't found;"
21992 warn2 "Gtk will be used instead."
21994 elif test "$jurassic_gtk" = yes ; then
21998 v="$ac_gtk_version_string"
21999 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
22000 warnL "Use of Gtk was requested, but its version number is unknown;"
22001 elif test "$with_gtk_req" = yes ; then
22002 warnL "Use of Gtk was requested, but it is version $v;"
22004 warnL "Gtk was found on this system, but it is version $v;"
22007 warn2 "Gtk $pref_gtk or newer is required."
22009 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
22010 warnL "Use of Gtk was requested, but it wasn't found."
22014 if test "$have_gtk" = yes -a "$have_gdk_pixbuf" = no ; then
22015 warn "GTK is being used, but the GDK-Pixbuf library and/or"
22016 warn2 "headers were not found. That can't be good. Please"
22017 warn2 "install the GDK-Pixbuf development kit and re-configure."
22020 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
22022 preferred_lesstif=0.92
22024 if test "$lesstif_version" = unknown; then
22025 warnL "Unable to determine the LessTif version number!"
22026 warn2 "Make sure you are using version $preferred_lesstif or newer."
22027 warn2 "See <http://www.lesstif.org/>."
22029 elif test \! $lesstif_version -gt 82; then
22030 warnL "LessTif version $lesstif_version_string is being used."
22031 warn2 "LessTif versions 0.82 and earlier are too buggy to"
22032 warn2 "use with XScreenSaver; it is strongly recommended"
22033 warn2 "that you upgrade to at least version $preferred_lesstif!"
22034 warn2 "See <http://www.lesstif.org/>."
22039 if test "$have_motif" = yes -a "$have_gtk" = no ; then
22040 warn 'Motif is being used, and GTK is not.'
22046 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
22047 warnL 'Use of XPM was requested, but it was not found.'
22050 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
22051 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
22054 if test "$have_gdk_pixbuf" = no -o "$gdk_pixbuf_halfassed" = yes || \
22055 test "$have_gdk_pixbuf" = no -a "$have_xpm" = no ; then
22057 if test "$with_gdk_pixbuf_req" = yes ; then
22059 elif test "$with_gdk_pixbuf_req" = no ; then
22060 warnL 'The GDK-Pixbuf library is not being used.'
22062 warnL 'The GDK-Pixbuf library was not found.'
22065 if test "$with_xpm_req" = yes -o "$have_xpm" = yes ; then
22067 elif test "$with_xpm_req" = no ; then
22068 warnL 'The XPM library is not being used.'
22070 warnL 'The XPM library was not found.'
22073 if test "$have_gdk_pixbuf" = no -a "$have_xpm" = yes ; then
22074 warn2 'The XPM library is being used instead.'
22077 if test "$gdk_pixbuf_halfassed" = yes ; then
22079 warn2 'More specifically, we found the headers, but not the'
22080 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
22081 warn2 "system, or something else went wrong. The \`config.log'"
22082 warn2 'file might contain some clues.'
22086 warn2 'Some of the demos will not use images as much as they could.'
22087 warn2 'You should consider installing GDK-Pixbuf and re-running'
22088 warn2 'configure. (GDK-Pixbuf is recommended over XPM, as it'
22089 warn2 'provides support for more image formats.)'
22093 if test "$have_jpeg" = no ; then
22094 if test "$with_jpeg_req" = yes ; then
22095 warnL 'Use of libjpeg was requested, but it was not found.'
22096 elif test "$with_jpeg_req" = no ; then
22097 noteL 'The JPEG library is not being used.'
22099 noteL 'The JPEG library was not found.'
22102 if test "$jpeg_halfassed" = yes ; then
22104 warn2 'More specifically, we found the headers, but not the'
22105 warn2 'library; so either JPEG is half-installed on this'
22106 warn2 "system, or something else went wrong. The \`config.log'"
22107 warn2 'file might contain some clues.'
22111 if test "$have_gdk_pixbuf" = no ; then
22112 warn2 "This means that it won't be possible for the image-manipulating"
22113 warn2 "display modes to load files from disk; and it also means that"
22114 warn2 "the \`webcollage' program will be much slower."
22116 warn2 "This means the \`webcollage' program will be much slower."
22121 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
22122 preferred_mesagl=3.4
22123 mgv="$ac_mesagl_version_string"
22124 pgl="$preferred_mesagl"
22126 if test "$ac_mesagl_version" = unknown; then
22128 # warnL "Unable to determine the MesaGL version number!"
22129 # warn2 "Make sure you are using version $preferred_mesagl or newer."
22131 elif test \! "$ac_mesagl_version" -gt 2006; then
22132 warnL "MesaGL version number is $mgv --"
22133 warn2 "MesaGL 2.6 and earlier have a security bug. It is strongly"
22134 warn2 "recommended that you upgrade to at least version $preferred_mesagl."
22136 elif test \! "$ac_mesagl_version" -gt 3003; then
22137 warnL "MesaGL version number is $mgv --"
22138 warn2 "MesaGL 3.3 and earlier have some bugs; it is recommended"
22139 warn2 "that you upgrade to $pgl or newer."
22143 if test "$have_gl" = no ; then
22144 if test "$with_gl_req" = yes ; then
22145 warnL 'Use of GL was requested, but it was not found.'
22146 elif test "$with_gl_req" = no ; then
22147 noteL 'The OpenGL 3D library is not being used.'
22149 noteL 'The OpenGL 3D library was not found.'
22152 if test "$gl_halfassed" = yes ; then
22154 warn2 'More specifically, we found the headers, but not the'
22155 warn2 'libraries; so either GL is half-installed on this'
22156 warn2 "system, or something else went wrong. The \`config.log'"
22157 warn2 'file might contain some clues.'
22161 warn2 'Those demos which use 3D will not be built or installed.'
22162 warn2 'You might want to consider installing OpenGL and'
22163 warn2 "re-running configure. If your vendor doesn't ship"
22164 warn2 'their own implementation of OpenGL, you can get a free'
22165 warn2 'version at <http://www.mesa3d.org/>. For general OpenGL'
22166 warn2 'info, see <http://www.opengl.org/>.'
22171 if test "$have_gl" = yes -a "$have_gle" = no ; then
22173 # nobody cares about this; don't print the warning unless it was
22174 # requested and not found, or halfway-found.
22175 if test "$with_gle_req" = yes -o "$gle_halfassed" = yes ; then
22177 if test "$with_gle_req" = yes ; then
22178 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
22179 warn2 'it was not found (though the OpenGL library was found, and'
22180 warn2 'is being used.)'
22181 elif test "$with_gle_req" = no ; then
22182 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
22183 warn2 'library is not.'
22185 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
22189 if test "$gle_halfassed" = yes ; then
22191 warn2 'More specifically, we found the headers, but not the'
22192 warn2 'libraries; so either GLE is half-installed on this'
22193 warn2 "system, or something else went wrong. The \`config.log'"
22194 warn2 'file might contain some clues.'
22198 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
22199 warn2 'will not be built or installed. You might want to consider'
22200 warn2 'installing GLE and re-running configure. You can find the'
22201 warn2 'GLE library at <http://www.linas.org/gle/>. For general'
22202 warn2 'OpenGL info, see <http://www.opengl.org/>.'
22208 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
22209 warn 'Use of XReadDisplay was requested, but it was not found.'
22212 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
22213 warn 'Use of Kerberos was requested, but it was not found.'
22216 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
22217 warn 'Use of PAM was requested, but it was not found.'
22220 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
22221 warn 'Use of shadow passwords was requested, but they were not found.'
22224 if test "$ac_macosx" = yes ; then
22225 if test "$enable_locking" = yes ; then
22226 warn "You have specified --enable-locking on MacOS X."
22227 warn2 "THIS DOES NOT WORK! Don't do this!"
22232 # You are in a twisty maze of namespaces and syntaxes, all alike.
22233 # Fuck the skull of Unix.
22235 bindir=`eval eval eval eval eval eval eval echo $bindir`
22236 HACKDIR=`eval eval eval eval eval eval eval echo $HACKDIR`
22237 HACK_CONF_DIR=`eval eval eval eval eval eval eval echo $HACK_CONF_DIR`
22239 # canonicalize slashes.
22240 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
22241 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
22242 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
22245 # Sanity check the hackdir
22246 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
22247 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
22249 { { echo "$as_me:$LINENO: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
22250 There will be an executable installed with that name, so
22251 that can't be the name of a directory as well. Please
22252 re-configure with a different directory name." >&5
22253 echo "$as_me: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
22254 There will be an executable installed with that name, so
22255 that can't be the name of a directory as well. Please
22256 re-configure with a different directory name." >&2;}
22257 { (exit 1); exit 1; }; }
22264 # Now let's warn if there's a previous RPM version already installed.
22265 # But don't bother with this test if we are currently *building* an RPM.
22267 if test -z "$RPM_PACKAGE_VERSION" ; then
22269 rpmnames="xscreensaver xscreensaver-base xscreensaver-extras"
22273 rpmv=`(rpm -qv $rpmnames) 2>/dev/null | \
22274 sed -n 's/^[-a-z]*-\([0-9][0-9]*[.][0-9][0-9a-z]*\)-.*$/\1/p' | \
22278 if test \! -z "$rpmv" ; then
22279 rpmbdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
22280 rpmhdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/popsquares$@\1@p'`
22283 warnL "There is already an installed RPM of xscreensaver $rpmv"
22284 warn2 'on this system. You might want to remove it ("rpm -ve")'
22285 warn2 'before running "make install" in this directory.'
22287 warn2 "Alternately, you could build this version of xscreensaver"
22288 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
22289 warn2 'file is included. Try "rpmbuild -v -ba xscreensaver.spec".'
22290 warn2 "See the RPM documentation for more info."
22293 if test "$rpmbdir" = "$rpmhdir" ; then
22294 warn2 "The RPM version was installed in $rpmbdir/."
22297 warn2 "The RPM version was installed in $rpmbdir/,"
22298 warn2 "with demos in $rpmhdir/."
22303 # Also warn if there's a Debian package installed.
22305 debnames="xscreensaver xscreensaver-data xscreensaver-data-extra"
22307 for dpkg in $debnames ; do
22308 if test -z "$debv"; then
22309 debv=`dpkg -s $dpkg 2>/dev/null | sed -n 's/^Version: \(.*\)$/\1/p'`
22313 if test \! -z "$debv" ; then
22314 debbdir=`dpkg -L $debnames 2>/dev/null | \
22315 sed -n 's@^\(.*/bin/\)xscreensaver$@\1@p'`
22316 debhdir=`dpkg -L $debnames 2>/dev/null | \
22317 sed -n 's@^\(.*/\)popsquares$@\1@p'`
22318 if test -z "$debbdir" ; then debbdir='???'; fi
22319 if test -z "$debhdir" ; then debhdir='???'; fi
22322 warnL "There is already an installed dpkg of xscreensaver"
22323 warn2 "version \"$debv\" on this system."
22325 warn2 "The dpkg was installed in $debbdir,"
22326 warn2 "with demos in $debhdir."
22330 if test "${bindir}" = "${HACKDIR}" ; then
22334 if test "$do_dir_warning" = yes; then
22338 echo ' When you run "make install", the "xscreensaver",'
22339 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
22340 echo " will be installed in ${bindir}/."
22342 echo " The various graphics demos (190+ different executables) will"
22343 echo " be installed in ${HACKDIR}/."
22345 echo " If you would prefer the demos to be installed elsewhere,"
22346 echo " you should re-run configure with the --with-hackdir=DIR"
22347 echo " option. For more information, run \`./configure --help'."
22351 if test "$warning" != no; then
22352 echo '' ; echo "$warnsep" ; echo ''
22355 if test "$do_dir_warning" = no; then
22356 if test "$warning" = no; then
22359 echo "User programs will be installed in ${bindir}/"
22360 echo "Screen savers will be installed in ${HACKDIR}/"
22361 echo "Configuration dialogs will be installed in ${HACK_CONF_DIR}/"
22362 echo "System-wide default settings will be installed in ${APPDEFAULTS}/"