2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="driver/subprocs.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_subst_vars='LTLIBOBJS
681 DEFAULT_IMAGE_DIRECTORY
685 COMMENT_PAM_CHECK_ACCOUNT
706 PREFERRED_DEMO_PROGRAM
708 gnome_url_show_program
737 INTLTOOL_SOUNDLIST_RULE
743 INTLTOOL_DIRECTORY_RULE
744 INTLTOOL_DESKTOP_RULE
800 program_transform_name
812 enable_option_checking
829 with_pam_service_name
830 enable_pam_check_account_type
851 ac_precious_vars='build_alias
863 # Initialize some variables set by options.
865 ac_init_version=false
866 ac_unrecognized_opts=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
877 program_transform_name=s,x,x,
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE}'
902 infodir='${datarootdir}/info'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\$ac_option
923 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 # Accept the important Cygnus configure options, so we can diagnose typos.
929 case $ac_dashdash$ac_option in
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 -build | --build | --buil | --bui | --bu)
939 ac_prev=build_alias ;;
940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941 build_alias=$ac_optarg ;;
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948 cache_file=$ac_optarg ;;
951 cache_file=config.cache ;;
953 -datadir | --datadir | --datadi | --datad)
955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
956 datadir=$ac_optarg ;;
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
965 -disable-* | --disable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
970 { (exit 1); exit 1; }; }
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
980 eval enable_$ac_useropt=no ;;
982 -docdir | --docdir | --docdi | --doc | --do)
984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992 -enable-* | --enable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
997 { (exit 1); exit 1; }; }
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1002 "enable_$ac_useropt"
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038 htmldir=$ac_optarg ;;
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1052 -libdir | --libdir | --libdi | --libd)
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1143 -psdir | --psdir | --psdi | --psd | --ps)
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156 sbindir=$ac_optarg ;;
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167 sharedstatedir=$ac_optarg ;;
1169 -site | --site | --sit)
1171 -site=* | --site=* | --sit=*)
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1212 eval with_$ac_useropt=\$ac_optarg ;;
1214 -without-* | --without-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1229 eval with_$ac_useropt=no ;;
1232 # Obsolete; use --with-x.
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1249 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251 { (exit 1); exit 1; }; }
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259 { (exit 1); exit 1; }; }
1260 eval $ac_envvar=\$ac_optarg
1261 export $ac_envvar ;;
1264 # FIXME: should be removed in autoconf 3.0.
1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274 if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1277 { (exit 1); exit 1; }; }
1280 if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1283 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1284 { (exit 1); exit 1; }; } ;;
1285 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289 # Check all directory arguments for consistency.
1290 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291 datadir sysconfdir sharedstatedir localstatedir includedir \
1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293 libdir localedir mandir
1295 eval ac_val=\$$ac_var
1296 # Remove trailing slashes.
1299 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300 eval $ac_var=\$ac_val;;
1302 # Be sure to have absolute directory names.
1304 [\\/$]* | ?:[\\/]* ) continue;;
1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308 { (exit 1); exit 1; }; }
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1316 target=$target_alias
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320 if test "x$build_alias" = x; then
1321 cross_compiling=maybe
1322 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323 If a cross compiler is detected then cross compile mode will be used." >&2
1324 elif test "x$build_alias" != "x$host_alias"; then
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332 test "$silent" = yes && exec 6>/dev/null
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1339 { (exit 1); exit 1; }; }
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1342 { (exit 1); exit 1; }; }
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 $as_echo X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1377 ac_srcdir_defaulted=no
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382 { (exit 1); exit 1; }; }
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1387 { (exit 1); exit 1; }; }
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 # Report the --help message.
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1413 \`configure' configures this package to adapt to many kinds of systems.
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1420 Defaults for the options are specified in brackets.
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1446 For better control, use the options below.
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --libdir=DIR object code libraries [EPREFIX/lib]
1452 --includedir=DIR C header files [PREFIX/include]
1453 --x-includes=DIR X include files are in DIR
1454 --x-libraries=DIR X library files are in DIR
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1458 --mandir=DIR man documentation [DATAROOTDIR/man]
1459 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1460 --htmldir=DIR html documentation [DOCDIR]
1461 --dvidir=DIR dvi documentation [DOCDIR]
1462 --pdfdir=DIR pdf documentation [DOCDIR]
1463 --psdir=DIR ps documentation [DOCDIR]
1469 --x-includes=DIR X include files are in DIR
1470 --x-libraries=DIR X library files are in DIR
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1478 if test -n "$ac_init_help"; then
1483 --disable-option-checking ignore unrecognized --enable/--with options
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --disable-largefile omit support for large files
1488 Screen locking options:
1489 --enable-locking Compile in support for locking the display.
1490 --disable-locking Do not allow locking at all.
1492 --enable-root-passwd Allow root passwd to unlock screen.
1493 --disable-root-passwd Do not allow that.
1494 --enable-pam-check-account-type
1495 Whether PAM should check the result of account
1496 modules when authenticating. Only do this if you
1497 have account configured properly on your system.
1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 Installation options:
1505 --with-hackdir=DIR Where to install the hundreds of demo executables.
1506 Default: `PREFIX/libexec/xscreensaver/'
1507 --with-configdir=DIR Where to install the data files that describe each
1508 of the display modes to the GUI.
1509 Default: `PREFIX/share/xscreensaver/config/'
1510 --with-x-app-defaults=DIR
1511 Where to install xscreensaver configuration file.
1513 --with-dpms-ext Include support for the DPMS extension.
1514 --with-xinerama-ext Include support for the XINERAMA extension.
1515 --with-xinput-ext Include support for the XInput extension.
1516 --with-xf86vmode-ext Include support for XFree86 virtual screens.
1517 --with-xf86gamma-ext Include support for XFree86 gamma fading.
1518 --with-randr-ext Include support for the X Resize+Rotate extension.
1519 --with-proc-interrupts Include support for consulting the /proc/interrupts
1520 file to notice keyboard activity.
1521 --with-pam Include support for PAM (Pluggable Auth Modules.)
1522 --with-pam-service-name NAME arg is the name of the PAM service that
1523 xscreensaver will authenticate as.
1524 --with-kerberos Include support for Kerberos authentication.
1525 --with-shadow Include support for shadow password authentication.
1526 --with-passwd-helper Include support for an external password
1527 verification helper program.
1528 --with-login-manager Put a "New Login" button on the unlock dialog that
1529 runs a login manager like gdmflexiserver or kdmctl.
1531 User interface options:
1533 --with-gtk Use the Gtk toolkit for the user interface.
1534 --with-motif Use the Motif toolkit for the user interface
1535 (no longer supported.)
1539 --with-gl Build those demos which depend on OpenGL.
1540 --with-gle Build those demos which depend on GLE
1541 (the OpenGL "extrusion" library.)
1542 --with-gles Target OpenGL ES 1.x API instead of OpenGL 1.3.
1543 --with-pixbuf Include support for the GDK-Pixbuf library in some
1544 demos, which will make it possible for them to read
1545 GIF, JPEG, and PNG files as well.
1546 --with-xpm Include support for XPM files in some demos.
1547 (Not needed if Pixbuf is used.)
1548 --with-jpeg Include support for the JPEG library.
1549 --with-xshm-ext Include support for the Shared Memory extension.
1550 --with-xdbe-ext Include support for the DOUBLE-BUFFER extension.
1551 --with-readdisplay Include support for the XReadDisplay extension.
1552 --with-image-directory Arg is the default directory from which some demos
1553 will choose random images to display.
1554 --with-text-file=FILE By default, some demos may display this file.
1555 --with-browser=BROWSER Specify the web browser used to show the help URL.
1556 --with-setuid-hacks Allow some demos to be installed `setuid root'
1557 (which is needed in order to ping other hosts.)
1560 Some influential environment variables:
1561 CC C compiler command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
1565 LIBS libraries to pass to the linker, e.g. -l<library>
1566 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567 you have headers in a nonstandard directory <include dir>
1569 XMKMF Path to xmkmf, Makefile generator for X Window System
1571 Use these variables to override the choices made by `configure' or to help
1572 it to find libraries and programs with nonstandard names/locations.
1578 if test "$ac_init_help" = "recursive"; then
1579 # If there are subdirs, report their specific --help.
1580 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581 test -d "$ac_dir" ||
1582 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1590 # A ".." for each directory in $ac_dir_suffix.
1591 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592 case $ac_top_builddir_sub in
1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1603 .) # We are building in place.
1605 ac_top_srcdir=$ac_top_builddir_sub
1606 ac_abs_top_srcdir=$ac_pwd ;;
1607 [\\/]* | ?:[\\/]* ) # Absolute name.
1608 ac_srcdir=$srcdir$ac_dir_suffix;
1609 ac_top_srcdir=$srcdir
1610 ac_abs_top_srcdir=$srcdir ;;
1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613 ac_top_srcdir=$ac_top_build_prefix$srcdir
1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618 cd "$ac_dir" || { ac_status=$?; continue; }
1619 # Check for guested configure.
1620 if test -f "$ac_srcdir/configure.gnu"; then
1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623 elif test -f "$ac_srcdir/configure"; then
1625 $SHELL "$ac_srcdir/configure" --help=recursive
1627 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629 cd "$ac_pwd" || { ac_status=$?; break; }
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1637 generated by GNU Autoconf 2.63
1639 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1640 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1641 This configure script is free software; the Free Software Foundation
1642 gives unlimited permission to copy, distribute and modify it.
1646 cat >config.log <<_ACEOF
1647 This file contains any messages produced by compilers while
1648 running configure, to aid debugging if configure makes a mistake.
1650 It was created by $as_me, which was
1651 generated by GNU Autoconf 2.63. Invocation command line was
1663 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1664 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1665 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1666 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1667 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1669 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1670 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1672 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1673 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1674 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1675 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1676 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1677 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1678 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 test -z "$as_dir" && as_dir=.
1687 $as_echo "PATH: $as_dir"
1703 # Keep a trace of the command line.
1704 # Strip out --no-create and --no-recursion so they do not pile up.
1705 # Strip out --silent because we don't want to record it for future runs.
1706 # Also quote any args containing shell meta-characters.
1707 # Make two passes to allow for proper duplicate-argument suppression.
1711 ac_must_keep_next=false
1717 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1718 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1719 | -silent | --silent | --silen | --sile | --sil)
1722 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1725 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1727 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1728 if test $ac_must_keep_next = true; then
1729 ac_must_keep_next=false # Got value, back to normal.
1732 *=* | --config-cache | -C | -disable-* | --disable-* \
1733 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1734 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1735 | -with-* | --with-* | -without-* | --without-* | --x)
1736 case "$ac_configure_args0 " in
1737 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1740 -* ) ac_must_keep_next=true ;;
1743 ac_configure_args="$ac_configure_args '$ac_arg'"
1748 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1749 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1751 # When interrupted or exit'd, cleanup temporary files, and complete
1752 # config.log. We remove comments because anyway the quotes in there
1753 # would cause problems or look ugly.
1754 # WARNING: Use '\'' to represent an apostrophe within the trap.
1755 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1756 trap 'exit_status=$?
1757 # Save into config.log some information that might help in debugging.
1762 ## ---------------- ##
1763 ## Cache variables. ##
1764 ## ---------------- ##
1767 # The following way of writing the cache mishandles newlines in values,
1769 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1770 eval ac_val=\$$ac_var
1774 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1775 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1778 _ | IFS | as_nl) ;; #(
1779 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1780 *) $as_unset $ac_var ;;
1785 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1786 *${as_nl}ac_space=\ *)
1788 "s/'\''/'\''\\\\'\'''\''/g;
1789 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1792 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1800 ## ----------------- ##
1801 ## Output variables. ##
1802 ## ----------------- ##
1805 for ac_var in $ac_subst_vars
1807 eval ac_val=\$$ac_var
1809 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1811 $as_echo "$ac_var='\''$ac_val'\''"
1815 if test -n "$ac_subst_files"; then
1817 ## ------------------- ##
1818 ## File substitutions. ##
1819 ## ------------------- ##
1822 for ac_var in $ac_subst_files
1824 eval ac_val=\$$ac_var
1826 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828 $as_echo "$ac_var='\''$ac_val'\''"
1833 if test -s confdefs.h; then
1843 test "$ac_signal" != 0 &&
1844 $as_echo "$as_me: caught signal $ac_signal"
1845 $as_echo "$as_me: exit $exit_status"
1847 rm -f core *.core core.conftest.* &&
1848 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1851 for ac_signal in 1 2 13 15; do
1852 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1856 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1857 rm -f -r conftest* confdefs.h
1859 # Predefined preprocessor variables.
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_NAME "$PACKAGE_NAME"
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_STRING "$PACKAGE_STRING"
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1886 # Let the site file select an alternate cache file if it wants to.
1887 # Prefer an explicitly selected file to automatically selected ones.
1890 if test -n "$CONFIG_SITE"; then
1891 ac_site_file1=$CONFIG_SITE
1892 elif test "x$prefix" != xNONE; then
1893 ac_site_file1=$prefix/share/config.site
1894 ac_site_file2=$prefix/etc/config.site
1896 ac_site_file1=$ac_default_prefix/share/config.site
1897 ac_site_file2=$ac_default_prefix/etc/config.site
1899 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1901 test "x$ac_site_file" = xNONE && continue
1902 if test -r "$ac_site_file"; then
1903 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1904 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1905 sed 's/^/| /' "$ac_site_file" >&5
1910 if test -r "$cache_file"; then
1911 # Some versions of bash will fail to source /dev/null (special
1912 # files actually), so we avoid doing that.
1913 if test -f "$cache_file"; then
1914 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1915 $as_echo "$as_me: loading cache $cache_file" >&6;}
1917 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1918 *) . "./$cache_file";;
1922 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1923 $as_echo "$as_me: creating cache $cache_file" >&6;}
1927 # Check that the precious variables saved in the cache have kept the same
1929 ac_cache_corrupted=false
1930 for ac_var in $ac_precious_vars; do
1931 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1932 eval ac_new_set=\$ac_env_${ac_var}_set
1933 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1934 eval ac_new_val=\$ac_env_${ac_var}_value
1935 case $ac_old_set,$ac_new_set in
1937 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1938 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1939 ac_cache_corrupted=: ;;
1941 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1942 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1943 ac_cache_corrupted=: ;;
1946 if test "x$ac_old_val" != "x$ac_new_val"; then
1947 # differences in whitespace do not lead to failure.
1948 ac_old_val_w=`echo x $ac_old_val`
1949 ac_new_val_w=`echo x $ac_new_val`
1950 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1951 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1952 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1953 ac_cache_corrupted=:
1955 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1956 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1957 eval $ac_var=\$ac_old_val
1959 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1960 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1961 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1962 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1965 # Pass precious variables to config.status.
1966 if test "$ac_new_set" = set; then
1968 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1969 *) ac_arg=$ac_var=$ac_new_val ;;
1971 case " $ac_configure_args " in
1972 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1973 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1977 if $ac_cache_corrupted; then
1978 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1980 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1981 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1982 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1983 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1984 { (exit 1); exit 1; }; }
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010 ac_config_headers="$ac_config_headers config.h"
2013 echo "current directory: `pwd`"
2014 echo "command line was: $0 $@"
2016 ###############################################################################
2020 ###############################################################################
2031 # This only ever existed in X11R4 and X11R5.
2032 #AH_TEMPLATE([HAVE_XIDLE_EXTENSION],
2033 # [Define this if you have the XIDLE extension installed. If you
2034 # have the XIDLE extension, this is recommended. (You have this
2035 # extension if the file /usr/include/X11/extensions/xidle.h
2036 # exists.) Turning on this flag lets XScreenSaver work better with
2037 # servers which support this extension; but it will still work
2038 # with servers which do not suport it, so it's a good idea to
2039 # compile in support for it if you can.])
2041 # Using this extension will crash your X server and make fading not work.
2042 #AH_TEMPLATE([HAVE_MIT_SAVER_EXTENSION],
2043 # [Define this if you have the MIT-SCREEN-SAVER extension
2044 # installed. See the caveats about this extension, above.
2045 # (It's available if /usr/include/X11/extensions/scrnsaver.h
2048 # This only ever existed on SGI hardware.
2049 #AH_TEMPLATE([HAVE_SGI_SAVER_EXTENSION],
2050 # [Define this if you have the SGI SCREEN_SAVER extension. This is
2051 # standard on Irix systems, and not available elsewhere.])
2053 # This only ever existed on SGI hardware.
2054 #AH_TEMPLATE([HAVE_SGI_VC_EXTENSION],
2055 # [Define this if you have the SGI-VIDEO-CONTROL extension. This
2056 # is standard on Irix systems, and not available elsewhere.])
2225 # After checking to see that --srcdir is correct (which AC_INIT does)
2226 # check for some random other files that come later in the tar file,
2227 # to make sure everything is here.
2229 for d in driver utils hacks hacks/glx ; do
2230 f=$srcdir/$d/Makefile.in
2231 if test \! -r $f ; then
2233 echo "ERROR: The package is incomplete: $f does not exist."
2234 echo " This probably means that your download was truncated."
2240 ###############################################################################
2242 # Function to figure out how to run the compiler.
2244 ###############################################################################
2249 ###############################################################################
2251 # Check for availability of various gcc command-line options.
2253 ###############################################################################
2261 # Need to disable Objective C extensions in ANSI C on MacOS X to work
2262 # around an Apple-specific gcc bug.
2266 ###############################################################################
2268 # Function to figure out how to disable // comments in ANSI C code.
2270 # (With recent gcc, this is done with "-std=c89". With older gcc, this
2271 # is done by passing "-lang-c89" to cpp, by passing "-Wp,-lang-c89" to
2272 # gcc. Old gcc doesn't support -std, and new gcc doesn't support -lang.
2273 # so much for compatibility!)
2275 # UPDATE: apparently there is NO WAY to tell gcc 3.2.2 to require that
2276 # declarations preceed statements, without resorting to "-pedantic".
2277 # This means that there is no way to get gcc3 to issue warnings that
2278 # ensure that your code complies with the ANSI/ISO C89 standard, without
2279 # also drowning in totally useless warnings. Thank you master may I
2282 # So, I give up, let's just use -pedantic.
2284 ###############################################################################
2291 ###############################################################################
2293 # Function to figure out how to create directory trees.
2295 ###############################################################################
2300 ###############################################################################
2302 # Function to check whether gettimeofday() exists, and how to call it.
2303 # This may define HAVE_GETTIMEOFDAY and GETTIMEOFDAY_TWO_ARGS.
2305 ###############################################################################
2310 ###############################################################################
2312 # Function to find perl5 (defines PERL and PERL_VERSION.)
2314 ###############################################################################
2316 # M4 sucks!! perl sucks too!!
2318 perl_version_cmd='print $]'
2324 ###############################################################################
2326 # Function to demand "bc". Losers.
2328 ###############################################################################
2332 ###############################################################################
2334 # Functions to check how to do ICMP PING requests.
2336 ###############################################################################
2343 ###############################################################################
2345 # Functions to check for various X11 crap.
2347 ###############################################################################
2349 # Try and find the app-defaults directory.
2350 # It sucks that autoconf doesn't do this already...
2354 ###############################################################################
2356 # Handle the --with-x-app-defaults option HERE
2358 ###############################################################################
2361 # Check whether --with-x-app-defaults was given.
2362 if test "${with_x_app_defaults+set}" = set; then
2363 withval=$with_x_app_defaults; ac_cv_x_app_defaults="$withval"
2365 eval ac_x_app_defaults="$withval"
2378 # Random special-cases for X on certain pathological OSes.
2379 # You know who you are.
2386 ###############################################################################
2388 # Some utility functions to make checking for X things easier.
2390 ###############################################################################
2392 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
2396 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
2400 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
2405 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
2406 # Use this sparingly; it probably doesn't work very well on X programs.
2410 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
2411 # (But not the -L directories!)
2417 # Usage: HANDLE_X_PATH_ARG([variable_name],
2418 # [--command-line-option],
2419 # [descriptive string])
2421 # All of the --with options take three forms:
2423 # --with-foo (or --with-foo=yes)
2424 # --without-foo (or --with-foo=no)
2427 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
2428 # a directory (string beginning with a slash) it checks to see whether
2429 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
2436 ###############################################################################
2437 ###############################################################################
2439 # End of function definitions. Now start actually executing stuff.
2441 ###############################################################################
2442 ###############################################################################
2444 # WTF! autoconf emits this *way* too late. Do it earlier.
2445 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2446 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2449 # random compiler setup
2451 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2452 if test -f "$ac_dir/install-sh"; then
2454 ac_install_sh="$ac_aux_dir/install-sh -c"
2456 elif test -f "$ac_dir/install.sh"; then
2458 ac_install_sh="$ac_aux_dir/install.sh -c"
2460 elif test -f "$ac_dir/shtool"; then
2462 ac_install_sh="$ac_aux_dir/shtool install -c"
2466 if test -z "$ac_aux_dir"; then
2467 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2468 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2469 { (exit 1); exit 1; }; }
2472 # These three variables are undocumented and unsupported,
2473 # and are intended to be withdrawn in a future Autoconf release.
2474 # They can cause serious problems if a builder's source tree is in a directory
2475 # whose full name contains unusual characters.
2476 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2477 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2478 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2481 # Make sure we can run config.sub.
2482 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2483 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2484 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2485 { (exit 1); exit 1; }; }
2487 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2488 $as_echo_n "checking build system type... " >&6; }
2489 if test "${ac_cv_build+set}" = set; then
2490 $as_echo_n "(cached) " >&6
2492 ac_build_alias=$build_alias
2493 test "x$ac_build_alias" = x &&
2494 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2495 test "x$ac_build_alias" = x &&
2496 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2497 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2498 { (exit 1); exit 1; }; }
2499 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2500 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2501 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2502 { (exit 1); exit 1; }; }
2505 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2506 $as_echo "$ac_cv_build" >&6; }
2507 case $ac_cv_build in
2509 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2510 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2511 { (exit 1); exit 1; }; };;
2514 ac_save_IFS=$IFS; IFS='-'
2520 # Remember, the first character of IFS is used to create $*,
2521 # except with old shells:
2524 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2527 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2528 $as_echo_n "checking host system type... " >&6; }
2529 if test "${ac_cv_host+set}" = set; then
2530 $as_echo_n "(cached) " >&6
2532 if test "x$host_alias" = x; then
2533 ac_cv_host=$ac_cv_build
2535 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2536 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2537 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2538 { (exit 1); exit 1; }; }
2542 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2543 $as_echo "$ac_cv_host" >&6; }
2546 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2547 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2548 { (exit 1); exit 1; }; };;
2551 ac_save_IFS=$IFS; IFS='-'
2557 # Remember, the first character of IFS is used to create $*,
2558 # except with old shells:
2561 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2566 ac_cpp='$CPP $CPPFLAGS'
2567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2570 if test -n "$ac_tool_prefix"; then
2571 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2572 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2573 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2574 $as_echo_n "checking for $ac_word... " >&6; }
2575 if test "${ac_cv_prog_CC+set}" = set; then
2576 $as_echo_n "(cached) " >&6
2578 if test -n "$CC"; then
2579 ac_cv_prog_CC="$CC" # Let the user override the test.
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2588 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2589 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 if test -n "$CC"; then
2600 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2601 $as_echo "$CC" >&6; }
2603 { $as_echo "$as_me:$LINENO: result: no" >&5
2604 $as_echo "no" >&6; }
2609 if test -z "$ac_cv_prog_CC"; then
2611 # Extract the first word of "gcc", so it can be a program name with args.
2612 set dummy gcc; ac_word=$2
2613 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2616 $as_echo_n "(cached) " >&6
2618 if test -n "$ac_ct_CC"; then
2619 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2628 ac_cv_prog_ac_ct_CC="gcc"
2629 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2639 if test -n "$ac_ct_CC"; then
2640 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2641 $as_echo "$ac_ct_CC" >&6; }
2643 { $as_echo "$as_me:$LINENO: result: no" >&5
2644 $as_echo "no" >&6; }
2647 if test "x$ac_ct_CC" = x; then
2650 case $cross_compiling:$ac_tool_warned in
2652 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2654 ac_tool_warned=yes ;;
2662 if test -z "$CC"; then
2663 if test -n "$ac_tool_prefix"; then
2664 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2665 set dummy ${ac_tool_prefix}cc; ac_word=$2
2666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2667 $as_echo_n "checking for $ac_word... " >&6; }
2668 if test "${ac_cv_prog_CC+set}" = set; then
2669 $as_echo_n "(cached) " >&6
2671 if test -n "$CC"; then
2672 ac_cv_prog_CC="$CC" # Let the user override the test.
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 test -z "$as_dir" && as_dir=.
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2681 ac_cv_prog_CC="${ac_tool_prefix}cc"
2682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 if test -n "$CC"; then
2693 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2694 $as_echo "$CC" >&6; }
2696 { $as_echo "$as_me:$LINENO: result: no" >&5
2697 $as_echo "no" >&6; }
2703 if test -z "$CC"; then
2704 # Extract the first word of "cc", so it can be a program name with args.
2705 set dummy cc; ac_word=$2
2706 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if test "${ac_cv_prog_CC+set}" = set; then
2709 $as_echo_n "(cached) " >&6
2711 if test -n "$CC"; then
2712 ac_cv_prog_CC="$CC" # Let the user override the test.
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2723 ac_prog_rejected=yes
2727 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 if test $ac_prog_rejected = yes; then
2735 # We found a bogon in the path, so make sure we never use it.
2736 set dummy $ac_cv_prog_CC
2738 if test $# != 0; then
2739 # We chose a different compiler from the bogus one.
2740 # However, it has the same basename, so the bogon will be chosen
2741 # first if we set CC to just the basename; use the full file name.
2743 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2749 if test -n "$CC"; then
2750 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2751 $as_echo "$CC" >&6; }
2753 { $as_echo "$as_me:$LINENO: result: no" >&5
2754 $as_echo "no" >&6; }
2759 if test -z "$CC"; then
2760 if test -n "$ac_tool_prefix"; then
2761 for ac_prog in cl.exe
2763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2764 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2765 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2766 $as_echo_n "checking for $ac_word... " >&6; }
2767 if test "${ac_cv_prog_CC+set}" = set; then
2768 $as_echo_n "(cached) " >&6
2770 if test -n "$CC"; then
2771 ac_cv_prog_CC="$CC" # Let the user override the test.
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2780 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2781 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 if test -n "$CC"; then
2792 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2793 $as_echo "$CC" >&6; }
2795 { $as_echo "$as_me:$LINENO: result: no" >&5
2796 $as_echo "no" >&6; }
2800 test -n "$CC" && break
2803 if test -z "$CC"; then
2805 for ac_prog in cl.exe
2807 # Extract the first word of "$ac_prog", so it can be a program name with args.
2808 set dummy $ac_prog; ac_word=$2
2809 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2812 $as_echo_n "(cached) " >&6
2814 if test -n "$ac_ct_CC"; then
2815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824 ac_cv_prog_ac_ct_CC="$ac_prog"
2825 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2835 if test -n "$ac_ct_CC"; then
2836 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2837 $as_echo "$ac_ct_CC" >&6; }
2839 { $as_echo "$as_me:$LINENO: result: no" >&5
2840 $as_echo "no" >&6; }
2844 test -n "$ac_ct_CC" && break
2847 if test "x$ac_ct_CC" = x; then
2850 case $cross_compiling:$ac_tool_warned in
2852 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2854 ac_tool_warned=yes ;;
2863 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2865 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2866 See \`config.log' for more details." >&5
2867 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2868 See \`config.log' for more details." >&2;}
2869 { (exit 1); exit 1; }; }; }
2871 # Provide some information about the compiler.
2872 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2875 { (ac_try="$ac_compiler --version >&5"
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2881 $as_echo "$ac_try_echo") >&5
2882 (eval "$ac_compiler --version >&5") 2>&5
2884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }
2886 { (ac_try="$ac_compiler -v >&5"
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2892 $as_echo "$ac_try_echo") >&5
2893 (eval "$ac_compiler -v >&5") 2>&5
2895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }
2897 { (ac_try="$ac_compiler -V >&5"
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2903 $as_echo "$ac_try_echo") >&5
2904 (eval "$ac_compiler -V >&5") 2>&5
2906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }
2909 cat >conftest.$ac_ext <<_ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2924 ac_clean_files_save=$ac_clean_files
2925 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2926 # Try to create an executable without -o first, disregard a.out.
2927 # It will help us diagnose broken compilers, and finding out an intuition
2929 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2930 $as_echo_n "checking for C compiler default output file name... " >&6; }
2931 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2933 # The possible output files:
2934 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2937 for ac_file in $ac_files
2940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2941 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2946 if { (ac_try="$ac_link_default"
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2952 $as_echo "$ac_try_echo") >&5
2953 (eval "$ac_link_default") 2>&5
2955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; then
2957 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2958 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2959 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2960 # so that the user can short-circuit this test for compilers unknown to
2962 for ac_file in $ac_files ''
2964 test -f "$ac_file" || continue
2966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2969 # We found the default executable, but exeext='' is most
2973 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2975 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2977 # We set ac_cv_exeext here because the later test for it is not
2978 # safe: cross compilers may not add the suffix if given an `-o'
2979 # argument, so we may need to know it at that point already.
2980 # Even if this section looks crufty: it has the advantage of
2987 test "$ac_cv_exeext" = no && ac_cv_exeext=
2993 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2994 $as_echo "$ac_file" >&6; }
2995 if test -z "$ac_file"; then
2996 $as_echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2999 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3001 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3002 See \`config.log' for more details." >&5
3003 $as_echo "$as_me: error: C compiler cannot create executables
3004 See \`config.log' for more details." >&2;}
3005 { (exit 77); exit 77; }; }; }
3008 ac_exeext=$ac_cv_exeext
3010 # Check that the compiler produces executables we can run. If not, either
3011 # the compiler is broken, or we cross compile.
3012 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3013 $as_echo_n "checking whether the C compiler works... " >&6; }
3014 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3015 # If not cross compiling, check that we can run a simple program.
3016 if test "$cross_compiling" != yes; then
3017 if { ac_try='./$ac_file'
3018 { (case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3023 $as_echo "$ac_try_echo") >&5
3024 (eval "$ac_try") 2>&5
3026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
3030 if test "$cross_compiling" = maybe; then
3033 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3035 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3036 If you meant to cross compile, use \`--host'.
3037 See \`config.log' for more details." >&5
3038 $as_echo "$as_me: error: cannot run C compiled programs.
3039 If you meant to cross compile, use \`--host'.
3040 See \`config.log' for more details." >&2;}
3041 { (exit 1); exit 1; }; }; }
3045 { $as_echo "$as_me:$LINENO: result: yes" >&5
3046 $as_echo "yes" >&6; }
3048 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3049 ac_clean_files=$ac_clean_files_save
3050 # Check that the compiler produces executables we can run. If not, either
3051 # the compiler is broken, or we cross compile.
3052 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3053 $as_echo_n "checking whether we are cross compiling... " >&6; }
3054 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3055 $as_echo "$cross_compiling" >&6; }
3057 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3058 $as_echo_n "checking for suffix of executables... " >&6; }
3059 if { (ac_try="$ac_link"
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3065 $as_echo "$ac_try_echo") >&5
3066 (eval "$ac_link") 2>&5
3068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; then
3070 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3071 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3072 # work properly (i.e., refer to `conftest.exe'), while it won't with
3074 for ac_file in conftest.exe conftest conftest.*; do
3075 test -f "$ac_file" || continue
3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3078 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3084 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3087 See \`config.log' for more details." >&5
3088 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3089 See \`config.log' for more details." >&2;}
3090 { (exit 1); exit 1; }; }; }
3093 rm -rf conftest$ac_cv_exeext
3094 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3095 $as_echo "$ac_cv_exeext" >&6; }
3097 rm -rf conftest.$ac_ext
3098 EXEEXT=$ac_cv_exeext
3100 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3101 $as_echo_n "checking for suffix of object files... " >&6; }
3102 if test "${ac_cv_objext+set}" = set; then
3103 $as_echo_n "(cached) " >&6
3105 cat >conftest.$ac_ext <<_ACEOF
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h. */
3120 rm -rf conftest.o conftest.obj
3121 if { (ac_try="$ac_compile"
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3127 $as_echo "$ac_try_echo") >&5
3128 (eval "$ac_compile") 2>&5
3130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; then
3132 for ac_file in conftest.o conftest.obj conftest.*; do
3133 test -f "$ac_file" || continue;
3135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3136 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3141 $as_echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3144 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3147 See \`config.log' for more details." >&5
3148 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3149 See \`config.log' for more details." >&2;}
3150 { (exit 1); exit 1; }; }; }
3153 rm -rf conftest.$ac_cv_objext conftest.$ac_ext
3155 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3156 $as_echo "$ac_cv_objext" >&6; }
3157 OBJEXT=$ac_cv_objext
3159 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3160 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3161 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3162 $as_echo_n "(cached) " >&6
3164 cat >conftest.$ac_ext <<_ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3182 rm -rf conftest.$ac_objext
3183 if { (ac_try="$ac_compile"
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3189 $as_echo "$ac_try_echo") >&5
3190 (eval "$ac_compile") 2>conftest.er1
3192 grep -v '^ *+' conftest.er1 >conftest.err
3194 cat conftest.err >&5
3195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } && {
3197 test -z "$ac_c_werror_flag" ||
3198 test ! -s conftest.err
3199 } && test -s conftest.$ac_objext; then
3202 $as_echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3212 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3213 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3214 if test $ac_compiler_gnu = yes; then
3219 ac_test_CFLAGS=${CFLAGS+set}
3220 ac_save_CFLAGS=$CFLAGS
3221 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3222 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3223 if test "${ac_cv_prog_cc_g+set}" = set; then
3224 $as_echo_n "(cached) " >&6
3226 ac_save_c_werror_flag=$ac_c_werror_flag
3227 ac_c_werror_flag=yes
3230 cat >conftest.$ac_ext <<_ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3245 rm -rf conftest.$ac_objext
3246 if { (ac_try="$ac_compile"
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3252 $as_echo "$ac_try_echo") >&5
3253 (eval "$ac_compile") 2>conftest.er1
3255 grep -v '^ *+' conftest.er1 >conftest.err
3257 cat conftest.err >&5
3258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } && {
3260 test -z "$ac_c_werror_flag" ||
3261 test ! -s conftest.err
3262 } && test -s conftest.$ac_objext; then
3265 $as_echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3269 cat >conftest.$ac_ext <<_ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3284 rm -rf conftest.$ac_objext
3285 if { (ac_try="$ac_compile"
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3291 $as_echo "$ac_try_echo") >&5
3292 (eval "$ac_compile") 2>conftest.er1
3294 grep -v '^ *+' conftest.er1 >conftest.err
3296 cat conftest.err >&5
3297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } && {
3299 test -z "$ac_c_werror_flag" ||
3300 test ! -s conftest.err
3301 } && test -s conftest.$ac_objext; then
3304 $as_echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 ac_c_werror_flag=$ac_save_c_werror_flag
3309 cat >conftest.$ac_ext <<_ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3324 rm -rf conftest.$ac_objext
3325 if { (ac_try="$ac_compile"
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3331 $as_echo "$ac_try_echo") >&5
3332 (eval "$ac_compile") 2>conftest.er1
3334 grep -v '^ *+' conftest.er1 >conftest.err
3336 cat conftest.err >&5
3337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } && {
3339 test -z "$ac_c_werror_flag" ||
3340 test ! -s conftest.err
3341 } && test -s conftest.$ac_objext; then
3344 $as_echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357 ac_c_werror_flag=$ac_save_c_werror_flag
3359 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3360 $as_echo "$ac_cv_prog_cc_g" >&6; }
3361 if test "$ac_test_CFLAGS" = set; then
3362 CFLAGS=$ac_save_CFLAGS
3363 elif test $ac_cv_prog_cc_g = yes; then
3364 if test "$GCC" = yes; then
3370 if test "$GCC" = yes; then
3376 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3377 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3378 if test "${ac_cv_prog_cc_c89+set}" = set; then
3379 $as_echo_n "(cached) " >&6
3381 ac_cv_prog_cc_c89=no
3383 cat >conftest.$ac_ext <<_ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3391 #include <sys/types.h>
3392 #include <sys/stat.h>
3393 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3394 struct buf { int x; };
3395 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3396 static char *e (p, i)
3402 static char *f (char * (*g) (char **, int), char **p, ...)
3407 s = g (p, va_arg (v,int));
3412 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3413 function prototypes and stuff, but not '\xHH' hex character constants.
3414 These don't provoke an error unfortunately, instead are silently treated
3415 as 'x'. The following induces an error, until -std is added to get
3416 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3417 array size at least. It's necessary to write '\x00'==0 to get something
3418 that's true only with -std. */
3419 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3421 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3422 inside strings and character constants. */
3424 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3426 int test (int i, double x);
3427 struct s1 {int (*f) (int a);};
3428 struct s2 {int (*f) (double a);};
3429 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3435 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3440 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3441 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3443 CC="$ac_save_CC $ac_arg"
3444 rm -rf conftest.$ac_objext
3445 if { (ac_try="$ac_compile"
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3451 $as_echo "$ac_try_echo") >&5
3452 (eval "$ac_compile") 2>conftest.er1
3454 grep -v '^ *+' conftest.er1 >conftest.err
3456 cat conftest.err >&5
3457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } && {
3459 test -z "$ac_c_werror_flag" ||
3460 test ! -s conftest.err
3461 } && test -s conftest.$ac_objext; then
3462 ac_cv_prog_cc_c89=$ac_arg
3464 $as_echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3470 rm -f core conftest.err conftest.$ac_objext
3471 test "x$ac_cv_prog_cc_c89" != "xno" && break
3473 rm -rf conftest.$ac_ext
3478 case "x$ac_cv_prog_cc_c89" in
3480 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3481 $as_echo "none needed" >&6; } ;;
3483 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3484 $as_echo "unsupported" >&6; } ;;
3486 CC="$CC $ac_cv_prog_cc_c89"
3487 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3488 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499 if test -z "$GCC"; then
3501 { $as_echo "$as_me:$LINENO: checking how to request ANSI compilation" >&5
3502 $as_echo_n "checking how to request ANSI compilation... " >&6; }
3505 { $as_echo "$as_me:$LINENO: result: HPUX: adding -Ae" >&5
3506 $as_echo "HPUX: adding -Ae" >&6; }
3510 { $as_echo "$as_me:$LINENO: result: AIX: adding -qlanglvl=ansi -qhalt=e" >&5
3511 $as_echo "AIX: adding -qlanglvl=ansi -qhalt=e" >&6; }
3512 CC="$CC -qlanglvl=ansi -qhalt=e"
3515 { $as_echo "$as_me:$LINENO: result: DEC: adding -std1 -ieee" >&5
3516 $as_echo "DEC: adding -std1 -ieee" >&6; }
3520 { $as_echo "$as_me:$LINENO: result: no idea" >&5
3521 $as_echo "no idea" >&6; }
3528 { $as_echo "$as_me:$LINENO: result: Solaris: adding -D__EXTENSIONS__" >&5
3529 $as_echo "Solaris: adding -D__EXTENSIONS__" >&6; }
3530 CC="$CC -D__EXTENSIONS__"
3537 { $as_echo "$as_me:$LINENO: checking whether the compiler works on ANSI C" >&5
3538 $as_echo_n "checking whether the compiler works on ANSI C... " >&6; }
3539 if test "$cross_compiling" = yes; then
3540 { { $as_echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
3541 $as_echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
3542 { (exit 1); exit 1; }; }
3544 cat >conftest.$ac_ext <<_ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3550 main(int ac, char **av) { return 0; }
3552 rm -rf conftest$ac_exeext
3553 if { (ac_try="$ac_link"
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3559 $as_echo "$ac_try_echo") >&5
3560 (eval "$ac_link") 2>&5
3562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3564 { (case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3569 $as_echo "$ac_try_echo") >&5
3570 (eval "$ac_try") 2>&5
3572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; }; then
3574 { $as_echo "$as_me:$LINENO: result: yes" >&5
3575 $as_echo "yes" >&6; }
3577 $as_echo "$as_me: program exited with status $ac_status" >&5
3578 $as_echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3582 { $as_echo "$as_me:$LINENO: result: no" >&5
3583 $as_echo "no" >&6; }
3584 { { $as_echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
3585 $as_echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
3586 { (exit 1); exit 1; }; }
3588 rm -rf conftest.dSYM
3589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3594 if test -n "$GCC"; then
3595 { $as_echo "$as_me:$LINENO: result: Turning on gcc compiler warnings." >&5
3596 $as_echo "Turning on gcc compiler warnings." >&6; }
3597 CC="$CC -pedantic -Wall -Wstrict-prototypes -Wnested-externs -Wmissing-prototypes"
3598 OBJCC="$OBJCC -Wall"
3599 # As of gcc 3.4, we have "-Wdeclaration-after-statement"
3600 # and so perhaps now we can do without -pedantic?
3603 *-irix5* |*-irix6.0-3* )
3604 { $as_echo "$as_me:$LINENO: result: Turning on SGI compiler warnings." >&5
3605 $as_echo "Turning on SGI compiler warnings." >&6; }
3606 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
3609 # if test -z "$GCC"; then
3610 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
3611 # CC="$CC -migrate -w0 -verbose -warnprotos"
3617 if test -n "$GCC"; then
3618 { $as_echo "$as_me:$LINENO: checking whether gcc accepts -Wno-overlength-strings" >&5
3619 $as_echo_n "checking whether gcc accepts -Wno-overlength-strings... " >&6; }
3620 if test "${ac_cv_gcc_accepts_no_overlength+set}" = set; then
3621 $as_echo_n "(cached) " >&6
3623 rm -rf conftest.$ac_ext
3624 touch conftest.$ac_ext
3625 if ( ( gcc -c -Wno-overlength-strings conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3626 grep unrecognized >/dev/null ); then
3627 ac_cv_gcc_accepts_no_overlength=no
3629 ac_cv_gcc_accepts_no_overlength=yes
3630 CC="$CC -Wno-overlength-strings"
3633 { $as_echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_overlength" >&5
3634 $as_echo "$ac_cv_gcc_accepts_no_overlength" >&6; }
3635 ac_gcc_accepts_no_overlength="$ac_cv_gcc_accepts_no_overlength"
3638 if test -n "$GCC"; then
3639 { $as_echo "$as_me:$LINENO: checking whether gcc accepts -Wdeclaration-after-statement" >&5
3640 $as_echo_n "checking whether gcc accepts -Wdeclaration-after-statement... " >&6; }
3641 if test "${ac_cv_gcc_accepts_no_decl_after+set}" = set; then
3642 $as_echo_n "(cached) " >&6
3644 rm -rf conftest.$ac_ext
3645 touch conftest.$ac_ext
3646 if ( ( gcc -c -Wdeclaration-after-statement conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3647 grep unrecognized >/dev/null ); then
3648 ac_cv_gcc_accepts_no_decl_after=no
3650 ac_cv_gcc_accepts_no_decl_after=yes
3651 CC="$CC -Wdeclaration-after-statement"
3654 { $as_echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_decl_after" >&5
3655 $as_echo "$ac_cv_gcc_accepts_no_decl_after" >&6; }
3656 ac_gcc_accepts_no_decl_after="$ac_cv_gcc_accepts_no_decl_after"
3659 if test -n "$GCC"; then
3660 { $as_echo "$as_me:$LINENO: checking whether gcc accepts -no-cpp-precomp" >&5
3661 $as_echo_n "checking whether gcc accepts -no-cpp-precomp... " >&6; }
3662 if test "${ac_cv_gcc_accepts_no_cpp_precomp+set}" = set; then
3663 $as_echo_n "(cached) " >&6
3665 rm -rf conftest.$ac_ext
3666 touch conftest.$ac_ext
3667 if ( ( gcc -c -no-cpp-precomp conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3668 grep unrecognized >/dev/null ); then
3669 ac_cv_gcc_accepts_no_cpp_precomp=no
3671 ac_cv_gcc_accepts_no_cpp_precomp=yes
3672 CC="$CC -no-cpp-precomp"
3675 { $as_echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_cpp_precomp" >&5
3676 $as_echo "$ac_cv_gcc_accepts_no_cpp_precomp" >&6; }
3677 ac_gcc_accepts_no_cpp_precomp="$ac_cv_gcc_accepts_no_cpp_precomp"
3680 if test -n "$GCC"; then
3684 # Fucking Apple let // comments sneak into OpenGL headers, so
3685 # we *must* allow // comments when compiling on Mac OS 10.6! FUCK!
3688 if test -n "$GCC"; then
3689 { $as_echo "$as_me:$LINENO: checking whether gcc accepts -std=c89" >&5
3690 $as_echo_n "checking whether gcc accepts -std=c89... " >&6; }
3691 if test "${ac_cv_gcc_accepts_std+set}" = set; then
3692 $as_echo_n "(cached) " >&6
3694 rm -rf conftest.$ac_ext
3695 touch conftest.$ac_ext
3696 if ( ( gcc -c -std=c89 conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3697 grep unrecognized >/dev/null ); then
3698 ac_cv_gcc_accepts_std=no
3700 ac_cv_gcc_accepts_std=yes
3704 { $as_echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_std" >&5
3705 $as_echo "$ac_cv_gcc_accepts_std" >&6; }
3706 ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
3712 { $as_echo "$as_me:$LINENO: result: Disabling C++ comments in ANSI C code." >&5
3713 $as_echo "Disabling C++ comments in ANSI C code." >&6; }
3715 # The reason that // comments are banned from xscreensaver is that gcc is
3716 # basically the only compiler in the world that supports them in C code.
3717 # All other vendors support them only in their C++ compilers, not in their
3718 # ANSI C compilers. This means that it's a portability problem: every time
3719 # these comments have snuck into the xscreensaver source code, I've gotten
3720 # complaints about it the next day. So we turn off support for them in gcc
3721 # as well to prevent them from accidentially slipping in.
3723 if test "$ac_gcc_accepts_std" = yes ; then
3725 # -std=c89 defines __STRICT_ANSI__, which we don't want.
3726 # (That appears to be the only additional preprocessor symbol
3727 # it defines, in addition to the syntax changes it makes.)
3729 # -std=gnu89 is no good, because // comments were a GNU extension
3730 # before they were in the ANSI C 99 spec... (gcc 2.96 permits //
3731 # with -std=gnu89 but not with -std=c89.)
3733 # $CC already contains "-std=c89" via AC_GCC_ACCEPTS_STD
3734 CC="$CC -U__STRICT_ANSI__"
3737 # CC="$CC -Wp,-lang-c89"
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3747 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3748 # On Suns, sometimes $CPP names a directory.
3749 if test -n "$CPP" && test -d "$CPP"; then
3752 if test -z "$CPP"; then
3753 if test "${ac_cv_prog_CPP+set}" = set; then
3754 $as_echo_n "(cached) " >&6
3756 # Double quotes because CPP needs to be expanded
3757 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3760 for ac_c_preproc_warn_flag in '' yes
3762 # Use a header file that comes with gcc, so configuring glibc
3763 # with a fresh cross-compiler works.
3764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3765 # <limits.h> exists even on freestanding compilers.
3766 # On the NeXT, cc -E runs the code through the compiler's parser,
3767 # not just through cpp. "Syntax error" is here to catch this case.
3768 cat >conftest.$ac_ext <<_ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3775 # include <limits.h>
3777 # include <assert.h>
3781 if { (ac_try="$ac_cpp conftest.$ac_ext"
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3787 $as_echo "$ac_try_echo") >&5
3788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3790 grep -v '^ *+' conftest.er1 >conftest.err
3792 cat conftest.err >&5
3793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } >/dev/null && {
3795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3796 test ! -s conftest.err
3800 $as_echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3803 # Broken: fails on valid input.
3807 rm -rf conftest.err conftest.$ac_ext
3809 # OK, works on sane cases. Now check whether nonexistent headers
3810 # can be detected and how.
3811 cat >conftest.$ac_ext <<_ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3817 #include <ac_nonexistent.h>
3819 if { (ac_try="$ac_cpp conftest.$ac_ext"
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3825 $as_echo "$ac_try_echo") >&5
3826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3828 grep -v '^ *+' conftest.er1 >conftest.err
3830 cat conftest.err >&5
3831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } >/dev/null && {
3833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3834 test ! -s conftest.err
3836 # Broken: success on invalid input.
3839 $as_echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3842 # Passes both tests.
3847 rm -rf conftest.err conftest.$ac_ext
3850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3851 rm -rf conftest.err conftest.$ac_ext
3852 if $ac_preproc_ok; then
3864 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3865 $as_echo "$CPP" >&6; }
3867 for ac_c_preproc_warn_flag in '' yes
3869 # Use a header file that comes with gcc, so configuring glibc
3870 # with a fresh cross-compiler works.
3871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3872 # <limits.h> exists even on freestanding compilers.
3873 # On the NeXT, cc -E runs the code through the compiler's parser,
3874 # not just through cpp. "Syntax error" is here to catch this case.
3875 cat >conftest.$ac_ext <<_ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h. */
3882 # include <limits.h>
3884 # include <assert.h>
3888 if { (ac_try="$ac_cpp conftest.$ac_ext"
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3894 $as_echo "$ac_try_echo") >&5
3895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3897 grep -v '^ *+' conftest.er1 >conftest.err
3899 cat conftest.err >&5
3900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } >/dev/null && {
3902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3903 test ! -s conftest.err
3907 $as_echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3910 # Broken: fails on valid input.
3914 rm -rf conftest.err conftest.$ac_ext
3916 # OK, works on sane cases. Now check whether nonexistent headers
3917 # can be detected and how.
3918 cat >conftest.$ac_ext <<_ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3924 #include <ac_nonexistent.h>
3926 if { (ac_try="$ac_cpp conftest.$ac_ext"
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3932 $as_echo "$ac_try_echo") >&5
3933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3935 grep -v '^ *+' conftest.er1 >conftest.err
3937 cat conftest.err >&5
3938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } >/dev/null && {
3940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3941 test ! -s conftest.err
3943 # Broken: success on invalid input.
3946 $as_echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 # Passes both tests.
3954 rm -rf conftest.err conftest.$ac_ext
3957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3958 rm -rf conftest.err conftest.$ac_ext
3959 if $ac_preproc_ok; then
3962 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3964 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3965 See \`config.log' for more details." >&5
3966 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3967 See \`config.log' for more details." >&2;}
3968 { (exit 1); exit 1; }; }; }
3972 ac_cpp='$CPP $CPPFLAGS'
3973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3978 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3979 if test "${ac_cv_c_const+set}" = set; then
3980 $as_echo_n "(cached) " >&6
3982 cat >conftest.$ac_ext <<_ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3992 /* FIXME: Include the comments suggested by Paul. */
3994 /* Ultrix mips cc rejects this. */
3995 typedef int charset[2];
3997 /* SunOS 4.1.1 cc rejects this. */
3998 char const *const *pcpcc;
4000 /* NEC SVR4.0.2 mips cc rejects this. */
4001 struct point {int x, y;};
4002 static struct point const zero = {0,0};
4003 /* AIX XL C 1.02.0.0 rejects this.
4004 It does not let you subtract one const X* pointer from another in
4005 an arm of an if-expression whose if-part is not a constant
4007 const char *g = "string";
4008 pcpcc = &g + (g ? g-g : 0);
4009 /* HPUX 7.0 cc rejects these. */
4011 ppc = (char**) pcpcc;
4012 pcpcc = (char const *const *) ppc;
4013 { /* SCO 3.2v4 cc rejects this. */
4015 char const *s = 0 ? (char *) 0 : (char const *) 0;
4020 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4022 const int *foo = &x[0];
4025 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4026 typedef const int *iptr;
4030 { /* AIX XL C 1.02.0.0 rejects this saying
4031 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4032 struct s { int j; const int *ap[3]; };
4033 struct s *b; b->j = 5;
4035 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4039 return !cs[0] && !zero.x;
4046 rm -rf conftest.$ac_objext
4047 if { (ac_try="$ac_compile"
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4053 $as_echo "$ac_try_echo") >&5
4054 (eval "$ac_compile") 2>conftest.er1
4056 grep -v '^ *+' conftest.er1 >conftest.err
4058 cat conftest.err >&5
4059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); } && {
4061 test -z "$ac_c_werror_flag" ||
4062 test ! -s conftest.err
4063 } && test -s conftest.$ac_objext; then
4066 $as_echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4075 $as_echo "$ac_cv_c_const" >&6; }
4076 if test $ac_cv_c_const = no; then
4078 cat >>confdefs.h <<\_ACEOF
4084 { $as_echo "$as_me:$LINENO: checking for inline" >&5
4085 $as_echo_n "checking for inline... " >&6; }
4086 if test "${ac_cv_c_inline+set}" = set; then
4087 $as_echo_n "(cached) " >&6
4090 for ac_kw in inline __inline__ __inline; do
4091 cat >conftest.$ac_ext <<_ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4099 static $ac_kw foo_t static_foo () {return 0; }
4100 $ac_kw foo_t foo () {return 0; }
4104 rm -rf conftest.$ac_objext
4105 if { (ac_try="$ac_compile"
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4111 $as_echo "$ac_try_echo") >&5
4112 (eval "$ac_compile") 2>conftest.er1
4114 grep -v '^ *+' conftest.er1 >conftest.err
4116 cat conftest.err >&5
4117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } && {
4119 test -z "$ac_c_werror_flag" ||
4120 test ! -s conftest.err
4121 } && test -s conftest.$ac_objext; then
4122 ac_cv_c_inline=$ac_kw
4124 $as_echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 test "$ac_cv_c_inline" != no && break
4135 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4136 $as_echo "$ac_cv_c_inline" >&6; }
4139 case $ac_cv_c_inline in
4142 case $ac_cv_c_inline in
4144 *) ac_val=$ac_cv_c_inline;;
4146 cat >>confdefs.h <<_ACEOF
4148 #define inline $ac_val
4155 ac_bc_result=`echo 6+9 | bc 2>/dev/null`
4156 { $as_echo "$as_me:$LINENO: checking for bc" >&5
4157 $as_echo_n "checking for bc... " >&6; }
4158 if test "$ac_bc_result" = "15" ; then
4159 { $as_echo "$as_me:$LINENO: result: yes" >&5
4160 $as_echo "yes" >&6; }
4162 { $as_echo "$as_me:$LINENO: result: no" >&5
4163 $as_echo "no" >&6; }
4165 { { $as_echo "$as_me:$LINENO: error: Your system doesn't have \"bc\", which has been a standard
4166 part of Unix since the 1970s. Come back when your vendor
4167 has grown a clue." >&5
4168 $as_echo "$as_me: error: Your system doesn't have \"bc\", which has been a standard
4169 part of Unix since the 1970s. Come back when your vendor
4170 has grown a clue." >&2;}
4171 { (exit 1); exit 1; }; }
4175 # stuff for Makefiles
4176 # Find a good install program. We prefer a C program (faster),
4177 # so one script is as good as another. But avoid the broken or
4178 # incompatible versions:
4179 # SysV /etc/install, /usr/sbin/install
4180 # SunOS /usr/etc/install
4181 # IRIX /sbin/install
4183 # AmigaOS /C/install, which installs bootblocks on floppy discs
4184 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4185 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4186 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4187 # OS/2's system install, which has a completely different semantic
4188 # ./install, which can be erroneously created by make from ./install.sh.
4189 # Reject install programs that cannot install multiple files.
4190 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4191 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4192 if test -z "$INSTALL"; then
4193 if test "${ac_cv_path_install+set}" = set; then
4194 $as_echo_n "(cached) " >&6
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 test -z "$as_dir" && as_dir=.
4201 # Account for people who put trailing slashes in PATH elements.
4203 ./ | .// | /cC/* | \
4204 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4205 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4208 # OSF1 and SCO ODT 3.0 have their own names for install.
4209 # Don't use installbsd from OSF since it installs stuff as root
4211 for ac_prog in ginstall scoinst install; do
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4214 if test $ac_prog = install &&
4215 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4216 # AIX install. It has an incompatible calling convention.
4218 elif test $ac_prog = install &&
4219 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4220 # program-specific install script used by HP pwplus--don't use.
4223 rm -rf conftest.one conftest.two conftest.dir
4224 echo one > conftest.one
4225 echo two > conftest.two
4227 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4228 test -s conftest.one && test -s conftest.two &&
4229 test -s conftest.dir/conftest.one &&
4230 test -s conftest.dir/conftest.two
4232 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4245 rm -rf conftest.one conftest.two conftest.dir
4248 if test "${ac_cv_path_install+set}" = set; then
4249 INSTALL=$ac_cv_path_install
4251 # As a last resort, use the slow shell script. Don't cache a
4252 # value for INSTALL within a source directory, because that will
4253 # break other packages using the cache if that directory is
4254 # removed, or if the value is a relative name.
4255 INSTALL=$ac_install_sh
4258 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4259 $as_echo "$INSTALL" >&6; }
4261 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4262 # It thinks the first close brace ends the variable substitution.
4263 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4265 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4267 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4269 { $as_echo "$as_me:$LINENO: checking whether \"\${INSTALL} -d\" creates intermediate directories" >&5
4270 $as_echo_n "checking whether \"\${INSTALL} -d\" creates intermediate directories... " >&6; }
4271 if test "${ac_cv_install_d_creates_dirs+set}" = set; then
4272 $as_echo_n "(cached) " >&6
4274 ac_cv_install_d_creates_dirs=no
4276 if mkdir conftestdir; then
4277 cd conftestdir 2>/dev/null
4278 ${INSTALL} -d `pwd`/dir1/dir2 >/dev/null 2>&1
4279 if test -d dir1/dir2/. ; then
4280 ac_cv_install_d_creates_dirs=yes
4287 { $as_echo "$as_me:$LINENO: result: $ac_cv_install_d_creates_dirs" >&5
4288 $as_echo "$ac_cv_install_d_creates_dirs" >&6; }
4290 if test "$ac_cv_install_d_creates_dirs" = no ; then
4291 { $as_echo "$as_me:$LINENO: checking whether \"mkdir -p\" creates intermediate directories" >&5
4292 $as_echo_n "checking whether \"mkdir -p\" creates intermediate directories... " >&6; }
4293 if test "${ac_cv_mkdir_p_creates_dirs+set}" = set; then
4294 $as_echo_n "(cached) " >&6
4296 ac_cv_mkdir_p_creates_dirs=no
4298 if mkdir conftestdir; then
4299 cd conftestdir 2>/dev/null
4300 mkdir -p dir1/dir2 >/dev/null 2>&1
4301 if test -d dir1/dir2/. ; then
4302 ac_cv_mkdir_p_creates_dirs=yes
4309 { $as_echo "$as_me:$LINENO: result: $ac_cv_mkdir_p_creates_dirs" >&5
4310 $as_echo "$ac_cv_mkdir_p_creates_dirs" >&6; }
4313 if test "$ac_cv_install_d_creates_dirs" = yes ; then
4314 INSTALL_DIRS='${INSTALL} -d'
4315 elif test "$ac_cv_mkdir_p_creates_dirs" = yes ; then
4316 INSTALL_DIRS='mkdir -p'
4319 INSTALL_DIRS='${INSTALL} -d'
4322 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4323 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4325 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4326 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4327 $as_echo_n "(cached) " >&6
4329 cat >conftest.make <<\_ACEOF
4332 @echo '@@@%%%=$(MAKE)=@@@%%%'
4334 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4335 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4337 eval ac_cv_prog_make_${ac_make}_set=yes;;
4339 eval ac_cv_prog_make_${ac_make}_set=no;;
4341 rm -rf conftest.make
4343 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4344 { $as_echo "$as_me:$LINENO: result: yes" >&5
4345 $as_echo "yes" >&6; }
4348 { $as_echo "$as_me:$LINENO: result: no" >&5
4349 $as_echo "no" >&6; }
4350 SET_MAKE="MAKE=${MAKE-make}"
4354 # By default, autoconf sets INSTALL_SCRIPT to '${INSTALL_PROGRAM}'.
4355 # That's wrong: it should be set to '${INSTALL}', so that one can
4356 # implement the "install-strip" target properly (strip executables,
4357 # but do not try to strip scripts.)
4359 INSTALL_SCRIPT='${INSTALL}'
4363 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4364 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4365 if test "${ac_cv_path_GREP+set}" = set; then
4366 $as_echo_n "(cached) " >&6
4368 if test -z "$GREP"; then
4369 ac_path_GREP_found=false
4370 # Loop through the user's path and test for each of PROGNAME-LIST
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4375 test -z "$as_dir" && as_dir=.
4376 for ac_prog in grep ggrep; do
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4379 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4380 # Check for GNU ac_path_GREP and select it if it is found.
4381 # Check for GNU $ac_path_GREP
4382 case `"$ac_path_GREP" --version 2>&1` in
4384 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4387 $as_echo_n 0123456789 >"conftest.in"
4390 cat "conftest.in" "conftest.in" >"conftest.tmp"
4391 mv "conftest.tmp" "conftest.in"
4392 cp "conftest.in" "conftest.nl"
4393 $as_echo 'GREP' >> "conftest.nl"
4394 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4395 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4396 ac_count=`expr $ac_count + 1`
4397 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4398 # Best one so far, save it but keep looking for a better one
4399 ac_cv_path_GREP="$ac_path_GREP"
4400 ac_path_GREP_max=$ac_count
4402 # 10*(2^10) chars as input seems more than enough
4403 test $ac_count -gt 10 && break
4405 rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
4408 $ac_path_GREP_found && break 3
4413 if test -z "$ac_cv_path_GREP"; then
4414 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4415 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4416 { (exit 1); exit 1; }; }
4419 ac_cv_path_GREP=$GREP
4423 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4424 $as_echo "$ac_cv_path_GREP" >&6; }
4425 GREP="$ac_cv_path_GREP"
4428 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4429 $as_echo_n "checking for egrep... " >&6; }
4430 if test "${ac_cv_path_EGREP+set}" = set; then
4431 $as_echo_n "(cached) " >&6
4433 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4434 then ac_cv_path_EGREP="$GREP -E"
4436 if test -z "$EGREP"; then
4437 ac_path_EGREP_found=false
4438 # Loop through the user's path and test for each of PROGNAME-LIST
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4443 test -z "$as_dir" && as_dir=.
4444 for ac_prog in egrep; do
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4447 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4448 # Check for GNU ac_path_EGREP and select it if it is found.
4449 # Check for GNU $ac_path_EGREP
4450 case `"$ac_path_EGREP" --version 2>&1` in
4452 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4455 $as_echo_n 0123456789 >"conftest.in"
4458 cat "conftest.in" "conftest.in" >"conftest.tmp"
4459 mv "conftest.tmp" "conftest.in"
4460 cp "conftest.in" "conftest.nl"
4461 $as_echo 'EGREP' >> "conftest.nl"
4462 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4463 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4464 ac_count=`expr $ac_count + 1`
4465 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4466 # Best one so far, save it but keep looking for a better one
4467 ac_cv_path_EGREP="$ac_path_EGREP"
4468 ac_path_EGREP_max=$ac_count
4470 # 10*(2^10) chars as input seems more than enough
4471 test $ac_count -gt 10 && break
4473 rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
4476 $ac_path_EGREP_found && break 3
4481 if test -z "$ac_cv_path_EGREP"; then
4482 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4483 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4484 { (exit 1); exit 1; }; }
4487 ac_cv_path_EGREP=$EGREP
4492 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4493 $as_echo "$ac_cv_path_EGREP" >&6; }
4494 EGREP="$ac_cv_path_EGREP"
4497 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4498 $as_echo_n "checking for ANSI C header files... " >&6; }
4499 if test "${ac_cv_header_stdc+set}" = set; then
4500 $as_echo_n "(cached) " >&6
4502 cat >conftest.$ac_ext <<_ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4521 rm -rf conftest.$ac_objext
4522 if { (ac_try="$ac_compile"
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4528 $as_echo "$ac_try_echo") >&5
4529 (eval "$ac_compile") 2>conftest.er1
4531 grep -v '^ *+' conftest.er1 >conftest.err
4533 cat conftest.err >&5
4534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } && {
4536 test -z "$ac_c_werror_flag" ||
4537 test ! -s conftest.err
4538 } && test -s conftest.$ac_objext; then
4539 ac_cv_header_stdc=yes
4541 $as_echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4544 ac_cv_header_stdc=no
4547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549 if test $ac_cv_header_stdc = yes; then
4550 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4551 cat >conftest.$ac_ext <<_ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4561 $EGREP "memchr" >/dev/null 2>&1; then
4564 ac_cv_header_stdc=no
4570 if test $ac_cv_header_stdc = yes; then
4571 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4572 cat >conftest.$ac_ext <<_ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4582 $EGREP "free" >/dev/null 2>&1; then
4585 ac_cv_header_stdc=no
4591 if test $ac_cv_header_stdc = yes; then
4592 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4593 if test "$cross_compiling" = yes; then
4596 cat >conftest.$ac_ext <<_ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4604 #if ((' ' & 0x0FF) == 0x020)
4605 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4606 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4608 # define ISLOWER(c) \
4609 (('a' <= (c) && (c) <= 'i') \
4610 || ('j' <= (c) && (c) <= 'r') \
4611 || ('s' <= (c) && (c) <= 'z'))
4612 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4615 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4620 for (i = 0; i < 256; i++)
4621 if (XOR (islower (i), ISLOWER (i))
4622 || toupper (i) != TOUPPER (i))
4627 rm -rf conftest$ac_exeext
4628 if { (ac_try="$ac_link"
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4634 $as_echo "$ac_try_echo") >&5
4635 (eval "$ac_link") 2>&5
4637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4639 { (case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4644 $as_echo "$ac_try_echo") >&5
4645 (eval "$ac_try") 2>&5
4647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); }; }; then
4651 $as_echo "$as_me: program exited with status $ac_status" >&5
4652 $as_echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4656 ac_cv_header_stdc=no
4658 rm -rf conftest.dSYM
4659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4665 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4666 $as_echo "$ac_cv_header_stdc" >&6; }
4667 if test $ac_cv_header_stdc = yes; then
4669 cat >>confdefs.h <<\_ACEOF
4670 #define STDC_HEADERS 1
4675 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4685 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4686 inttypes.h stdint.h unistd.h
4688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4689 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4690 $as_echo_n "checking for $ac_header... " >&6; }
4691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4692 $as_echo_n "(cached) " >&6
4694 cat >conftest.$ac_ext <<_ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h. */
4700 $ac_includes_default
4702 #include <$ac_header>
4704 rm -rf conftest.$ac_objext
4705 if { (ac_try="$ac_compile"
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4711 $as_echo "$ac_try_echo") >&5
4712 (eval "$ac_compile") 2>conftest.er1
4714 grep -v '^ *+' conftest.er1 >conftest.err
4716 cat conftest.err >&5
4717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } && {
4719 test -z "$ac_c_werror_flag" ||
4720 test ! -s conftest.err
4721 } && test -s conftest.$ac_objext; then
4722 eval "$as_ac_Header=yes"
4724 $as_echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4727 eval "$as_ac_Header=no"
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732 ac_res=`eval 'as_val=${'$as_ac_Header'}
4733 $as_echo "$as_val"'`
4734 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4735 $as_echo "$ac_res" >&6; }
4736 as_val=`eval 'as_val=${'$as_ac_Header'}
4737 $as_echo "$as_val"'`
4738 if test "x$as_val" = x""yes; then
4739 cat >>confdefs.h <<_ACEOF
4740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4749 for ac_header in unistd.h
4751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4753 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4754 $as_echo_n "checking for $ac_header... " >&6; }
4755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4756 $as_echo_n "(cached) " >&6
4758 ac_res=`eval 'as_val=${'$as_ac_Header'}
4759 $as_echo "$as_val"'`
4760 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4761 $as_echo "$ac_res" >&6; }
4763 # Is the header compilable?
4764 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4765 $as_echo_n "checking $ac_header usability... " >&6; }
4766 cat >conftest.$ac_ext <<_ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 $ac_includes_default
4773 #include <$ac_header>
4775 rm -rf conftest.$ac_objext
4776 if { (ac_try="$ac_compile"
4778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4779 *) ac_try_echo=$ac_try;;
4781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4782 $as_echo "$ac_try_echo") >&5
4783 (eval "$ac_compile") 2>conftest.er1
4785 grep -v '^ *+' conftest.er1 >conftest.err
4787 cat conftest.err >&5
4788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } && {
4790 test -z "$ac_c_werror_flag" ||
4791 test ! -s conftest.err
4792 } && test -s conftest.$ac_objext; then
4793 ac_header_compiler=yes
4795 $as_echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4798 ac_header_compiler=no
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4803 $as_echo "$ac_header_compiler" >&6; }
4805 # Is the header present?
4806 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4807 $as_echo_n "checking $ac_header presence... " >&6; }
4808 cat >conftest.$ac_ext <<_ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4814 #include <$ac_header>
4816 if { (ac_try="$ac_cpp conftest.$ac_ext"
4818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819 *) ac_try_echo=$ac_try;;
4821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4822 $as_echo "$ac_try_echo") >&5
4823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4825 grep -v '^ *+' conftest.er1 >conftest.err
4827 cat conftest.err >&5
4828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } >/dev/null && {
4830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4831 test ! -s conftest.err
4833 ac_header_preproc=yes
4835 $as_echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.$ac_ext >&5
4838 ac_header_preproc=no
4841 rm -rf conftest.err conftest.$ac_ext
4842 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4843 $as_echo "$ac_header_preproc" >&6; }
4845 # So? What about this header?
4846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4849 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4851 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4852 ac_header_preproc=yes
4855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4856 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4858 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4860 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4862 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4864 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4866 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4870 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4871 $as_echo_n "checking for $ac_header... " >&6; }
4872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4873 $as_echo_n "(cached) " >&6
4875 eval "$as_ac_Header=\$ac_header_preproc"
4877 ac_res=`eval 'as_val=${'$as_ac_Header'}
4878 $as_echo "$as_val"'`
4879 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4880 $as_echo "$ac_res" >&6; }
4883 as_val=`eval 'as_val=${'$as_ac_Header'}
4884 $as_echo "$as_val"'`
4885 if test "x$as_val" = x""yes; then
4886 cat >>confdefs.h <<_ACEOF
4887 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4894 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
4895 $as_echo_n "checking for mode_t... " >&6; }
4896 if test "${ac_cv_type_mode_t+set}" = set; then
4897 $as_echo_n "(cached) " >&6
4899 ac_cv_type_mode_t=no
4900 cat >conftest.$ac_ext <<_ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4906 $ac_includes_default
4910 if (sizeof (mode_t))
4916 rm -rf conftest.$ac_objext
4917 if { (ac_try="$ac_compile"
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4923 $as_echo "$ac_try_echo") >&5
4924 (eval "$ac_compile") 2>conftest.er1
4926 grep -v '^ *+' conftest.er1 >conftest.err
4928 cat conftest.err >&5
4929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); } && {
4931 test -z "$ac_c_werror_flag" ||
4932 test ! -s conftest.err
4933 } && test -s conftest.$ac_objext; then
4934 cat >conftest.$ac_ext <<_ACEOF
4937 cat confdefs.h >>conftest.$ac_ext
4938 cat >>conftest.$ac_ext <<_ACEOF
4939 /* end confdefs.h. */
4940 $ac_includes_default
4944 if (sizeof ((mode_t)))
4950 rm -rf conftest.$ac_objext
4951 if { (ac_try="$ac_compile"
4953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954 *) ac_try_echo=$ac_try;;
4956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4957 $as_echo "$ac_try_echo") >&5
4958 (eval "$ac_compile") 2>conftest.er1
4960 grep -v '^ *+' conftest.er1 >conftest.err
4962 cat conftest.err >&5
4963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } && {
4965 test -z "$ac_c_werror_flag" ||
4966 test ! -s conftest.err
4967 } && test -s conftest.$ac_objext; then
4970 $as_echo "$as_me: failed program was:" >&5
4971 sed 's/^/| /' conftest.$ac_ext >&5
4973 ac_cv_type_mode_t=yes
4976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4978 $as_echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4987 $as_echo "$ac_cv_type_mode_t" >&6; }
4988 if test "x$ac_cv_type_mode_t" = x""yes; then
4992 cat >>confdefs.h <<_ACEOF
4998 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
4999 $as_echo_n "checking for pid_t... " >&6; }
5000 if test "${ac_cv_type_pid_t+set}" = set; then
5001 $as_echo_n "(cached) " >&6
5004 cat >conftest.$ac_ext <<_ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5010 $ac_includes_default
5020 rm -rf conftest.$ac_objext
5021 if { (ac_try="$ac_compile"
5023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024 *) ac_try_echo=$ac_try;;
5026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5027 $as_echo "$ac_try_echo") >&5
5028 (eval "$ac_compile") 2>conftest.er1
5030 grep -v '^ *+' conftest.er1 >conftest.err
5032 cat conftest.err >&5
5033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } && {
5035 test -z "$ac_c_werror_flag" ||
5036 test ! -s conftest.err
5037 } && test -s conftest.$ac_objext; then
5038 cat >conftest.$ac_ext <<_ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5044 $ac_includes_default
5048 if (sizeof ((pid_t)))
5054 rm -rf conftest.$ac_objext
5055 if { (ac_try="$ac_compile"
5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5061 $as_echo "$ac_try_echo") >&5
5062 (eval "$ac_compile") 2>conftest.er1
5064 grep -v '^ *+' conftest.er1 >conftest.err
5066 cat conftest.err >&5
5067 $as_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
5074 $as_echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5077 ac_cv_type_pid_t=yes
5080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082 $as_echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5090 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5091 $as_echo "$ac_cv_type_pid_t" >&6; }
5092 if test "x$ac_cv_type_pid_t" = x""yes; then
5096 cat >>confdefs.h <<_ACEOF
5102 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5103 $as_echo_n "checking for size_t... " >&6; }
5104 if test "${ac_cv_type_size_t+set}" = set; then
5105 $as_echo_n "(cached) " >&6
5107 ac_cv_type_size_t=no
5108 cat >conftest.$ac_ext <<_ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114 $ac_includes_default
5118 if (sizeof (size_t))
5124 rm -rf conftest.$ac_objext
5125 if { (ac_try="$ac_compile"
5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5131 $as_echo "$ac_try_echo") >&5
5132 (eval "$ac_compile") 2>conftest.er1
5134 grep -v '^ *+' conftest.er1 >conftest.err
5136 cat conftest.err >&5
5137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } && {
5139 test -z "$ac_c_werror_flag" ||
5140 test ! -s conftest.err
5141 } && test -s conftest.$ac_objext; then
5142 cat >conftest.$ac_ext <<_ACEOF
5145 cat confdefs.h >>conftest.$ac_ext
5146 cat >>conftest.$ac_ext <<_ACEOF
5147 /* end confdefs.h. */
5148 $ac_includes_default
5152 if (sizeof ((size_t)))
5158 rm -rf conftest.$ac_objext
5159 if { (ac_try="$ac_compile"
5161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162 *) ac_try_echo=$ac_try;;
5164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5165 $as_echo "$ac_try_echo") >&5
5166 (eval "$ac_compile") 2>conftest.er1
5168 grep -v '^ *+' conftest.er1 >conftest.err
5170 cat conftest.err >&5
5171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } && {
5173 test -z "$ac_c_werror_flag" ||
5174 test ! -s conftest.err
5175 } && test -s conftest.$ac_objext; then
5178 $as_echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5181 ac_cv_type_size_t=yes
5184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186 $as_echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5194 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5195 $as_echo "$ac_cv_type_size_t" >&6; }
5196 if test "x$ac_cv_type_size_t" = x""yes; then
5200 cat >>confdefs.h <<_ACEOF
5201 #define size_t unsigned int
5206 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5207 $as_echo_n "checking return type of signal handlers... " >&6; }
5208 if test "${ac_cv_type_signal+set}" = set; then
5209 $as_echo_n "(cached) " >&6
5211 cat >conftest.$ac_ext <<_ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h. */
5217 #include <sys/types.h>
5223 return *(signal (0, 0)) (0) == 1;
5228 rm -rf conftest.$ac_objext
5229 if { (ac_try="$ac_compile"
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5235 $as_echo "$ac_try_echo") >&5
5236 (eval "$ac_compile") 2>conftest.er1
5238 grep -v '^ *+' conftest.er1 >conftest.err
5240 cat conftest.err >&5
5241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } && {
5243 test -z "$ac_c_werror_flag" ||
5244 test ! -s conftest.err
5245 } && test -s conftest.$ac_objext; then
5246 ac_cv_type_signal=int
5248 $as_echo "$as_me: failed program was:" >&5
5249 sed 's/^/| /' conftest.$ac_ext >&5
5251 ac_cv_type_signal=void
5254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5256 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5257 $as_echo "$ac_cv_type_signal" >&6; }
5259 cat >>confdefs.h <<_ACEOF
5260 #define RETSIGTYPE $ac_cv_type_signal
5264 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5265 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5266 if test "${ac_cv_header_time+set}" = set; then
5267 $as_echo_n "(cached) " >&6
5269 cat >conftest.$ac_ext <<_ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h. */
5275 #include <sys/types.h>
5276 #include <sys/time.h>
5282 if ((struct tm *) 0)
5288 rm -rf conftest.$ac_objext
5289 if { (ac_try="$ac_compile"
5291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5295 $as_echo "$ac_try_echo") >&5
5296 (eval "$ac_compile") 2>conftest.er1
5298 grep -v '^ *+' conftest.er1 >conftest.err
5300 cat conftest.err >&5
5301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } && {
5303 test -z "$ac_c_werror_flag" ||
5304 test ! -s conftest.err
5305 } && test -s conftest.$ac_objext; then
5306 ac_cv_header_time=yes
5308 $as_echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5311 ac_cv_header_time=no
5314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5317 $as_echo "$ac_cv_header_time" >&6; }
5318 if test $ac_cv_header_time = yes; then
5320 cat >>confdefs.h <<\_ACEOF
5321 #define TIME_WITH_SYS_TIME 1
5326 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5327 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5328 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5329 $as_echo_n "(cached) " >&6
5331 cat >conftest.$ac_ext <<_ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5337 #include <sys/types.h>
5338 #include <sys/wait.h>
5340 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5343 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5351 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5356 rm -rf conftest.$ac_objext
5357 if { (ac_try="$ac_compile"
5359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360 *) ac_try_echo=$ac_try;;
5362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5363 $as_echo "$ac_try_echo") >&5
5364 (eval "$ac_compile") 2>conftest.er1
5366 grep -v '^ *+' conftest.er1 >conftest.err
5368 cat conftest.err >&5
5369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } && {
5371 test -z "$ac_c_werror_flag" ||
5372 test ! -s conftest.err
5373 } && test -s conftest.$ac_objext; then
5374 ac_cv_header_sys_wait_h=yes
5376 $as_echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5379 ac_cv_header_sys_wait_h=no
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5385 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5386 if test $ac_cv_header_sys_wait_h = yes; then
5388 cat >>confdefs.h <<\_ACEOF
5389 #define HAVE_SYS_WAIT_H 1
5400 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5401 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5402 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5403 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5405 $as_echo_n "(cached) " >&6
5407 cat >conftest.$ac_ext <<_ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5413 #include <sys/types.h>
5425 rm -rf conftest.$ac_objext
5426 if { (ac_try="$ac_compile"
5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429 *) ac_try_echo=$ac_try;;
5431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5432 $as_echo "$ac_try_echo") >&5
5433 (eval "$ac_compile") 2>conftest.er1
5435 grep -v '^ *+' conftest.er1 >conftest.err
5437 cat conftest.err >&5
5438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } && {
5440 test -z "$ac_c_werror_flag" ||
5441 test ! -s conftest.err
5442 } && test -s conftest.$ac_objext; then
5443 eval "$as_ac_Header=yes"
5445 $as_echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5448 eval "$as_ac_Header=no"
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5453 ac_res=`eval 'as_val=${'$as_ac_Header'}
5454 $as_echo "$as_val"'`
5455 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5456 $as_echo "$ac_res" >&6; }
5457 as_val=`eval 'as_val=${'$as_ac_Header'}
5458 $as_echo "$as_val"'`
5459 if test "x$as_val" = x""yes; then
5460 cat >>confdefs.h <<_ACEOF
5461 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5464 ac_header_dirent=$ac_hdr; break
5468 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5469 if test $ac_header_dirent = dirent.h; then
5470 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5471 $as_echo_n "checking for library containing opendir... " >&6; }
5472 if test "${ac_cv_search_opendir+set}" = set; then
5473 $as_echo_n "(cached) " >&6
5475 ac_func_search_save_LIBS=$LIBS
5476 cat >conftest.$ac_ext <<_ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5483 /* Override any GCC internal prototype to avoid an error.
5484 Use char because int might match the return type of a GCC
5485 builtin and then its argument prototype would still apply. */
5498 for ac_lib in '' dir; do
5499 if test -z "$ac_lib"; then
5500 ac_res="none required"
5503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5505 rm -rf conftest.$ac_objext conftest$ac_exeext
5506 if { (ac_try="$ac_link"
5508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509 *) ac_try_echo=$ac_try;;
5511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5512 $as_echo "$ac_try_echo") >&5
5513 (eval "$ac_link") 2>conftest.er1
5515 grep -v '^ *+' conftest.er1 >conftest.err
5517 cat conftest.err >&5
5518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } && {
5520 test -z "$ac_c_werror_flag" ||
5521 test ! -s conftest.err
5522 } && test -s conftest$ac_exeext && {
5523 test "$cross_compiling" = yes ||
5524 $as_test_x conftest$ac_exeext
5526 ac_cv_search_opendir=$ac_res
5528 $as_echo "$as_me: failed program was:" >&5
5529 sed 's/^/| /' conftest.$ac_ext >&5
5534 rm -rf conftest.dSYM
5535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5537 if test "${ac_cv_search_opendir+set}" = set; then
5541 if test "${ac_cv_search_opendir+set}" = set; then
5544 ac_cv_search_opendir=no
5547 LIBS=$ac_func_search_save_LIBS
5549 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5550 $as_echo "$ac_cv_search_opendir" >&6; }
5551 ac_res=$ac_cv_search_opendir
5552 if test "$ac_res" != no; then
5553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5558 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5559 $as_echo_n "checking for library containing opendir... " >&6; }
5560 if test "${ac_cv_search_opendir+set}" = set; then
5561 $as_echo_n "(cached) " >&6
5563 ac_func_search_save_LIBS=$LIBS
5564 cat >conftest.$ac_ext <<_ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5571 /* Override any GCC internal prototype to avoid an error.
5572 Use char because int might match the return type of a GCC
5573 builtin and then its argument prototype would still apply. */
5586 for ac_lib in '' x; do
5587 if test -z "$ac_lib"; then
5588 ac_res="none required"
5591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5593 rm -rf conftest.$ac_objext conftest$ac_exeext
5594 if { (ac_try="$ac_link"
5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597 *) ac_try_echo=$ac_try;;
5599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5600 $as_echo "$ac_try_echo") >&5
5601 (eval "$ac_link") 2>conftest.er1
5603 grep -v '^ *+' conftest.er1 >conftest.err
5605 cat conftest.err >&5
5606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } && {
5608 test -z "$ac_c_werror_flag" ||
5609 test ! -s conftest.err
5610 } && test -s conftest$ac_exeext && {
5611 test "$cross_compiling" = yes ||
5612 $as_test_x conftest$ac_exeext
5614 ac_cv_search_opendir=$ac_res
5616 $as_echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5622 rm -rf conftest.dSYM
5623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5625 if test "${ac_cv_search_opendir+set}" = set; then
5629 if test "${ac_cv_search_opendir+set}" = set; then
5632 ac_cv_search_opendir=no
5635 LIBS=$ac_func_search_save_LIBS
5637 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5638 $as_echo "$ac_cv_search_opendir" >&6; }
5639 ac_res=$ac_cv_search_opendir
5640 if test "$ac_res" != no; then
5641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5647 { $as_echo "$as_me:$LINENO: checking how to call gettimeofday" >&5
5648 $as_echo_n "checking how to call gettimeofday... " >&6; }
5649 if test "${ac_cv_gettimeofday_args+set}" = set; then
5650 $as_echo_n "(cached) " >&6
5652 cat >conftest.$ac_ext <<_ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5659 #include <sys/time.h>
5663 struct timeval tv; struct timezone tzp;
5664 gettimeofday(&tv, &tzp);
5669 rm -rf conftest.$ac_objext
5670 if { (ac_try="$ac_compile"
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5676 $as_echo "$ac_try_echo") >&5
5677 (eval "$ac_compile") 2>conftest.er1
5679 grep -v '^ *+' conftest.er1 >conftest.err
5681 cat conftest.err >&5
5682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } && {
5684 test -z "$ac_c_werror_flag" ||
5685 test ! -s conftest.err
5686 } && test -s conftest.$ac_objext; then
5687 ac_gettimeofday_args=2
5689 $as_echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5692 cat >conftest.$ac_ext <<_ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5699 #include <sys/time.h>
5703 struct timeval tv; gettimeofday(&tv);
5708 rm -rf conftest.$ac_objext
5709 if { (ac_try="$ac_compile"
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5715 $as_echo "$ac_try_echo") >&5
5716 (eval "$ac_compile") 2>conftest.er1
5718 grep -v '^ *+' conftest.er1 >conftest.err
5720 cat conftest.err >&5
5721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } && {
5723 test -z "$ac_c_werror_flag" ||
5724 test ! -s conftest.err
5725 } && test -s conftest.$ac_objext; then
5726 ac_gettimeofday_args=1
5728 $as_echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5731 ac_gettimeofday_args=0
5734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738 ac_cv_gettimeofday_args=$ac_gettimeofday_args
5741 ac_gettimeofday_args=$ac_cv_gettimeofday_args
5742 if test "$ac_gettimeofday_args" = 1 ; then
5743 cat >>confdefs.h <<\_ACEOF
5744 #define HAVE_GETTIMEOFDAY 1
5747 { $as_echo "$as_me:$LINENO: result: one argument" >&5
5748 $as_echo "one argument" >&6; }
5749 elif test "$ac_gettimeofday_args" = 2 ; then
5750 cat >>confdefs.h <<\_ACEOF
5751 #define HAVE_GETTIMEOFDAY 1
5754 cat >>confdefs.h <<\_ACEOF
5755 #define GETTIMEOFDAY_TWO_ARGS 1
5758 { $as_echo "$as_me:$LINENO: result: two arguments" >&5
5759 $as_echo "two arguments" >&6; }
5761 { $as_echo "$as_me:$LINENO: result: unknown" >&5
5762 $as_echo "unknown" >&6; }
5765 # Check whether --enable-largefile was given.
5766 if test "${enable_largefile+set}" = set; then
5767 enableval=$enable_largefile;
5770 if test "$enable_largefile" != no; then
5772 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5773 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5774 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5775 $as_echo_n "(cached) " >&6
5777 ac_cv_sys_largefile_CC=no
5778 if test "$GCC" != yes; then
5781 # IRIX 6.2 and later do not support large files by default,
5782 # so use the C compiler's -n32 option if that helps.
5783 cat >conftest.$ac_ext <<_ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 #include <sys/types.h>
5790 /* Check that off_t can represent 2**63 - 1 correctly.
5791 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5792 since some C++ compilers masquerading as C compilers
5793 incorrectly reject 9223372036854775807. */
5794 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5795 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5796 && LARGE_OFF_T % 2147483647 == 1)
5806 rm -rf conftest.$ac_objext
5807 if { (ac_try="$ac_compile"
5809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5810 *) ac_try_echo=$ac_try;;
5812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5813 $as_echo "$ac_try_echo") >&5
5814 (eval "$ac_compile") 2>conftest.er1
5816 grep -v '^ *+' conftest.er1 >conftest.err
5818 cat conftest.err >&5
5819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } && {
5821 test -z "$ac_c_werror_flag" ||
5822 test ! -s conftest.err
5823 } && test -s conftest.$ac_objext; then
5826 $as_echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5832 rm -f core conftest.err conftest.$ac_objext
5834 rm -rf conftest.$ac_objext
5835 if { (ac_try="$ac_compile"
5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5841 $as_echo "$ac_try_echo") >&5
5842 (eval "$ac_compile") 2>conftest.er1
5844 grep -v '^ *+' conftest.er1 >conftest.err
5846 cat conftest.err >&5
5847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } && {
5849 test -z "$ac_c_werror_flag" ||
5850 test ! -s conftest.err
5851 } && test -s conftest.$ac_objext; then
5852 ac_cv_sys_largefile_CC=' -n32'; break
5854 $as_echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5860 rm -f core conftest.err conftest.$ac_objext
5864 rm -rf conftest.$ac_ext
5867 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5868 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5869 if test "$ac_cv_sys_largefile_CC" != no; then
5870 CC=$CC$ac_cv_sys_largefile_CC
5873 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5874 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5875 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5876 $as_echo_n "(cached) " >&6
5879 cat >conftest.$ac_ext <<_ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885 #include <sys/types.h>
5886 /* Check that off_t can represent 2**63 - 1 correctly.
5887 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5888 since some C++ compilers masquerading as C compilers
5889 incorrectly reject 9223372036854775807. */
5890 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5891 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5892 && LARGE_OFF_T % 2147483647 == 1)
5902 rm -rf conftest.$ac_objext
5903 if { (ac_try="$ac_compile"
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5909 $as_echo "$ac_try_echo") >&5
5910 (eval "$ac_compile") 2>conftest.er1
5912 grep -v '^ *+' conftest.er1 >conftest.err
5914 cat conftest.err >&5
5915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } && {
5917 test -z "$ac_c_werror_flag" ||
5918 test ! -s conftest.err
5919 } && test -s conftest.$ac_objext; then
5920 ac_cv_sys_file_offset_bits=no; break
5922 $as_echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5929 cat >conftest.$ac_ext <<_ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5935 #define _FILE_OFFSET_BITS 64
5936 #include <sys/types.h>
5937 /* Check that off_t can represent 2**63 - 1 correctly.
5938 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5939 since some C++ compilers masquerading as C compilers
5940 incorrectly reject 9223372036854775807. */
5941 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5942 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5943 && LARGE_OFF_T % 2147483647 == 1)
5953 rm -rf conftest.$ac_objext
5954 if { (ac_try="$ac_compile"
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5960 $as_echo "$ac_try_echo") >&5
5961 (eval "$ac_compile") 2>conftest.er1
5963 grep -v '^ *+' conftest.er1 >conftest.err
5965 cat conftest.err >&5
5966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } && {
5968 test -z "$ac_c_werror_flag" ||
5969 test ! -s conftest.err
5970 } && test -s conftest.$ac_objext; then
5971 ac_cv_sys_file_offset_bits=64; break
5973 $as_echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980 ac_cv_sys_file_offset_bits=unknown
5984 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5985 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5986 case $ac_cv_sys_file_offset_bits in #(
5989 cat >>confdefs.h <<_ACEOF
5990 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5995 if test $ac_cv_sys_file_offset_bits = unknown; then
5996 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5997 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5998 if test "${ac_cv_sys_large_files+set}" = set; then
5999 $as_echo_n "(cached) " >&6
6002 cat >conftest.$ac_ext <<_ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6008 #include <sys/types.h>
6009 /* Check that off_t can represent 2**63 - 1 correctly.
6010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6011 since some C++ compilers masquerading as C compilers
6012 incorrectly reject 9223372036854775807. */
6013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6015 && LARGE_OFF_T % 2147483647 == 1)
6025 rm -rf conftest.$ac_objext
6026 if { (ac_try="$ac_compile"
6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029 *) ac_try_echo=$ac_try;;
6031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6032 $as_echo "$ac_try_echo") >&5
6033 (eval "$ac_compile") 2>conftest.er1
6035 grep -v '^ *+' conftest.er1 >conftest.err
6037 cat conftest.err >&5
6038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } && {
6040 test -z "$ac_c_werror_flag" ||
6041 test ! -s conftest.err
6042 } && test -s conftest.$ac_objext; then
6043 ac_cv_sys_large_files=no; break
6045 $as_echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 cat >conftest.$ac_ext <<_ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6058 #define _LARGE_FILES 1
6059 #include <sys/types.h>
6060 /* Check that off_t can represent 2**63 - 1 correctly.
6061 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6062 since some C++ compilers masquerading as C compilers
6063 incorrectly reject 9223372036854775807. */
6064 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6065 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6066 && LARGE_OFF_T % 2147483647 == 1)
6076 rm -rf conftest.$ac_objext
6077 if { (ac_try="$ac_compile"
6079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6080 *) ac_try_echo=$ac_try;;
6082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6083 $as_echo "$ac_try_echo") >&5
6084 (eval "$ac_compile") 2>conftest.er1
6086 grep -v '^ *+' conftest.er1 >conftest.err
6088 cat conftest.err >&5
6089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } && {
6091 test -z "$ac_c_werror_flag" ||
6092 test ! -s conftest.err
6093 } && test -s conftest.$ac_objext; then
6094 ac_cv_sys_large_files=1; break
6096 $as_echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103 ac_cv_sys_large_files=unknown
6107 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6108 $as_echo "$ac_cv_sys_large_files" >&6; }
6109 case $ac_cv_sys_large_files in #(
6112 cat >>confdefs.h <<_ACEOF
6113 #define _LARGE_FILES $ac_cv_sys_large_files
6130 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv sbrk
6132 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6133 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6134 $as_echo_n "checking for $ac_func... " >&6; }
6135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6136 $as_echo_n "(cached) " >&6
6138 cat >conftest.$ac_ext <<_ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6146 #define $ac_func innocuous_$ac_func
6148 /* System header to define __stub macros and hopefully few prototypes,
6149 which can conflict with char $ac_func (); below.
6150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6151 <limits.h> exists even on freestanding compilers. */
6154 # include <limits.h>
6156 # include <assert.h>
6161 /* Override any GCC internal prototype to avoid an error.
6162 Use char because int might match the return type of a GCC
6163 builtin and then its argument prototype would still apply. */
6168 /* The GNU C library defines this for functions which it implements
6169 to always fail with ENOSYS. Some functions are actually named
6170 something starting with __ and the normal name is an alias. */
6171 #if defined __stub_$ac_func || defined __stub___$ac_func
6183 rm -rf conftest.$ac_objext conftest$ac_exeext
6184 if { (ac_try="$ac_link"
6186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6187 *) ac_try_echo=$ac_try;;
6189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6190 $as_echo "$ac_try_echo") >&5
6191 (eval "$ac_link") 2>conftest.er1
6193 grep -v '^ *+' conftest.er1 >conftest.err
6195 cat conftest.err >&5
6196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } && {
6198 test -z "$ac_c_werror_flag" ||
6199 test ! -s conftest.err
6200 } && test -s conftest$ac_exeext && {
6201 test "$cross_compiling" = yes ||
6202 $as_test_x conftest$ac_exeext
6204 eval "$as_ac_var=yes"
6206 $as_echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6209 eval "$as_ac_var=no"
6212 rm -rf conftest.dSYM
6213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6214 conftest$ac_exeext conftest.$ac_ext
6216 ac_res=`eval 'as_val=${'$as_ac_var'}
6217 $as_echo "$as_val"'`
6218 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6219 $as_echo "$ac_res" >&6; }
6220 as_val=`eval 'as_val=${'$as_ac_var'}
6221 $as_echo "$as_val"'`
6222 if test "x$as_val" = x""yes; then
6223 cat >>confdefs.h <<_ACEOF
6224 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6234 for ac_func in sigaction syslog realpath setrlimit
6236 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6237 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6238 $as_echo_n "checking for $ac_func... " >&6; }
6239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6240 $as_echo_n "(cached) " >&6
6242 cat >conftest.$ac_ext <<_ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6250 #define $ac_func innocuous_$ac_func
6252 /* System header to define __stub macros and hopefully few prototypes,
6253 which can conflict with char $ac_func (); below.
6254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6255 <limits.h> exists even on freestanding compilers. */
6258 # include <limits.h>
6260 # include <assert.h>
6265 /* Override any GCC internal prototype to avoid an error.
6266 Use char because int might match the return type of a GCC
6267 builtin and then its argument prototype would still apply. */
6272 /* The GNU C library defines this for functions which it implements
6273 to always fail with ENOSYS. Some functions are actually named
6274 something starting with __ and the normal name is an alias. */
6275 #if defined __stub_$ac_func || defined __stub___$ac_func
6287 rm -rf conftest.$ac_objext conftest$ac_exeext
6288 if { (ac_try="$ac_link"
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6294 $as_echo "$ac_try_echo") >&5
6295 (eval "$ac_link") 2>conftest.er1
6297 grep -v '^ *+' conftest.er1 >conftest.err
6299 cat conftest.err >&5
6300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } && {
6302 test -z "$ac_c_werror_flag" ||
6303 test ! -s conftest.err
6304 } && test -s conftest$ac_exeext && {
6305 test "$cross_compiling" = yes ||
6306 $as_test_x conftest$ac_exeext
6308 eval "$as_ac_var=yes"
6310 $as_echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6313 eval "$as_ac_var=no"
6316 rm -rf conftest.dSYM
6317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6318 conftest$ac_exeext conftest.$ac_ext
6320 ac_res=`eval 'as_val=${'$as_ac_var'}
6321 $as_echo "$as_val"'`
6322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6323 $as_echo "$ac_res" >&6; }
6324 as_val=`eval 'as_val=${'$as_ac_var'}
6325 $as_echo "$as_val"'`
6326 if test "x$as_val" = x""yes; then
6327 cat >>confdefs.h <<_ACEOF
6328 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6335 for ac_func in setlocale
6337 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6338 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6339 $as_echo_n "checking for $ac_func... " >&6; }
6340 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6341 $as_echo_n "(cached) " >&6
6343 cat >conftest.$ac_ext <<_ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6351 #define $ac_func innocuous_$ac_func
6353 /* System header to define __stub macros and hopefully few prototypes,
6354 which can conflict with char $ac_func (); below.
6355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6356 <limits.h> exists even on freestanding compilers. */
6359 # include <limits.h>
6361 # include <assert.h>
6366 /* Override any GCC internal prototype to avoid an error.
6367 Use char because int might match the return type of a GCC
6368 builtin and then its argument prototype would still apply. */
6373 /* The GNU C library defines this for functions which it implements
6374 to always fail with ENOSYS. Some functions are actually named
6375 something starting with __ and the normal name is an alias. */
6376 #if defined __stub_$ac_func || defined __stub___$ac_func
6388 rm -rf conftest.$ac_objext conftest$ac_exeext
6389 if { (ac_try="$ac_link"
6391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6392 *) ac_try_echo=$ac_try;;
6394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6395 $as_echo "$ac_try_echo") >&5
6396 (eval "$ac_link") 2>conftest.er1
6398 grep -v '^ *+' conftest.er1 >conftest.err
6400 cat conftest.err >&5
6401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } && {
6403 test -z "$ac_c_werror_flag" ||
6404 test ! -s conftest.err
6405 } && test -s conftest$ac_exeext && {
6406 test "$cross_compiling" = yes ||
6407 $as_test_x conftest$ac_exeext
6409 eval "$as_ac_var=yes"
6411 $as_echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6414 eval "$as_ac_var=no"
6417 rm -rf conftest.dSYM
6418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6419 conftest$ac_exeext conftest.$ac_ext
6421 ac_res=`eval 'as_val=${'$as_ac_var'}
6422 $as_echo "$as_val"'`
6423 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6424 $as_echo "$ac_res" >&6; }
6425 as_val=`eval 'as_val=${'$as_ac_var'}
6426 $as_echo "$as_val"'`
6427 if test "x$as_val" = x""yes; then
6428 cat >>confdefs.h <<_ACEOF
6429 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6435 { $as_echo "$as_me:$LINENO: checking for struct icmp" >&5
6436 $as_echo_n "checking for struct icmp... " >&6; }
6437 if test "${ac_cv_have_icmp+set}" = set; then
6438 $as_echo_n "(cached) " >&6
6440 cat >conftest.$ac_ext <<_ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6453 #include <sys/types.h>
6454 #include <sys/time.h>
6455 #include <sys/ipc.h>
6456 #include <sys/shm.h>
6457 #include <sys/socket.h>
6458 #include <netinet/in_systm.h>
6459 #include <netinet/in.h>
6460 #include <netinet/ip.h>
6461 #include <netinet/ip_icmp.h>
6462 #include <netinet/udp.h>
6463 #include <arpa/inet.h>
6470 struct sockaddr_in si;
6472 i.icmp_type = ICMP_ECHO;
6477 si.sin_family = AF_INET;
6478 #if defined(__DECC) || defined(_IP_VHL)
6488 rm -rf conftest.$ac_objext
6489 if { (ac_try="$ac_compile"
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6495 $as_echo "$ac_try_echo") >&5
6496 (eval "$ac_compile") 2>conftest.er1
6498 grep -v '^ *+' conftest.er1 >conftest.err
6500 cat conftest.err >&5
6501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } && {
6503 test -z "$ac_c_werror_flag" ||
6504 test ! -s conftest.err
6505 } && test -s conftest.$ac_objext; then
6508 $as_echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_icmp" >&5
6517 $as_echo "$ac_cv_have_icmp" >&6; }
6518 if test "$ac_cv_have_icmp" = yes ; then
6519 cat >>confdefs.h <<\_ACEOF
6524 { $as_echo "$as_me:$LINENO: checking for struct icmphdr" >&5
6525 $as_echo_n "checking for struct icmphdr... " >&6; }
6526 if test "${ac_cv_have_icmphdr+set}" = set; then
6527 $as_echo_n "(cached) " >&6
6529 cat >conftest.$ac_ext <<_ACEOF
6532 cat confdefs.h >>conftest.$ac_ext
6533 cat >>conftest.$ac_ext <<_ACEOF
6534 /* end confdefs.h. */
6542 #include <sys/types.h>
6543 #include <sys/time.h>
6544 #include <sys/ipc.h>
6545 #include <sys/shm.h>
6546 #include <sys/socket.h>
6547 #include <netinet/in_systm.h>
6548 #include <netinet/in.h>
6549 #include <netinet/ip.h>
6550 #include <netinet/ip_icmp.h>
6551 #include <netinet/udp.h>
6552 #include <arpa/inet.h>
6559 struct sockaddr_in si;
6565 i.un.echo.sequence = 0;
6566 si.sin_family = AF_INET;
6572 rm -rf conftest.$ac_objext
6573 if { (ac_try="$ac_compile"
6575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576 *) ac_try_echo=$ac_try;;
6578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6579 $as_echo "$ac_try_echo") >&5
6580 (eval "$ac_compile") 2>conftest.er1
6582 grep -v '^ *+' conftest.er1 >conftest.err
6584 cat conftest.err >&5
6585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } && {
6587 test -z "$ac_c_werror_flag" ||
6588 test ! -s conftest.err
6589 } && test -s conftest.$ac_objext; then
6590 ac_cv_have_icmphdr=yes
6592 $as_echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.$ac_ext >&5
6595 ac_cv_have_icmphdr=no
6598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_icmphdr" >&5
6601 $as_echo "$ac_cv_have_icmphdr" >&6; }
6602 if test "$ac_cv_have_icmphdr" = yes ; then
6603 cat >>confdefs.h <<\_ACEOF
6604 #define HAVE_ICMPHDR 1
6608 { $as_echo "$as_me:$LINENO: checking for getifaddrs" >&5
6609 $as_echo_n "checking for getifaddrs... " >&6; }
6610 if test "${ac_cv_have_getifaddrs+set}" = set; then
6611 $as_echo_n "(cached) " >&6
6613 cat >conftest.$ac_ext <<_ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6621 #include <arpa/inet.h>
6622 #include <ifaddrs.h>
6626 struct ifaddrs *ifa;
6629 ifa->ifa_addr->sa_family = 0;
6634 rm -rf conftest.$ac_objext
6635 if { (ac_try="$ac_compile"
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6641 $as_echo "$ac_try_echo") >&5
6642 (eval "$ac_compile") 2>conftest.er1
6644 grep -v '^ *+' conftest.er1 >conftest.err
6646 cat conftest.err >&5
6647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } && {
6649 test -z "$ac_c_werror_flag" ||
6650 test ! -s conftest.err
6651 } && test -s conftest.$ac_objext; then
6652 ac_cv_have_getifaddrs=yes
6654 $as_echo "$as_me: failed program was:" >&5
6655 sed 's/^/| /' conftest.$ac_ext >&5
6657 ac_cv_have_getifaddrs=no
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_getifaddrs" >&5
6663 $as_echo "$ac_cv_have_getifaddrs" >&6; }
6664 if test "$ac_cv_have_getifaddrs" = yes ; then
6665 cat >>confdefs.h <<\_ACEOF
6666 #define HAVE_GETIFADDRS 1
6672 for ac_header in crypt.h sys/select.h
6674 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6676 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6677 $as_echo_n "checking for $ac_header... " >&6; }
6678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6679 $as_echo_n "(cached) " >&6
6681 ac_res=`eval 'as_val=${'$as_ac_Header'}
6682 $as_echo "$as_val"'`
6683 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6684 $as_echo "$ac_res" >&6; }
6686 # Is the header compilable?
6687 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6688 $as_echo_n "checking $ac_header usability... " >&6; }
6689 cat >conftest.$ac_ext <<_ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 $ac_includes_default
6696 #include <$ac_header>
6698 rm -rf conftest.$ac_objext
6699 if { (ac_try="$ac_compile"
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6705 $as_echo "$ac_try_echo") >&5
6706 (eval "$ac_compile") 2>conftest.er1
6708 grep -v '^ *+' conftest.er1 >conftest.err
6710 cat conftest.err >&5
6711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } && {
6713 test -z "$ac_c_werror_flag" ||
6714 test ! -s conftest.err
6715 } && test -s conftest.$ac_objext; then
6716 ac_header_compiler=yes
6718 $as_echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6721 ac_header_compiler=no
6724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6726 $as_echo "$ac_header_compiler" >&6; }
6728 # Is the header present?
6729 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6730 $as_echo_n "checking $ac_header presence... " >&6; }
6731 cat >conftest.$ac_ext <<_ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 #include <$ac_header>
6739 if { (ac_try="$ac_cpp conftest.$ac_ext"
6741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6742 *) ac_try_echo=$ac_try;;
6744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6745 $as_echo "$ac_try_echo") >&5
6746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6748 grep -v '^ *+' conftest.er1 >conftest.err
6750 cat conftest.err >&5
6751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } >/dev/null && {
6753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6754 test ! -s conftest.err
6756 ac_header_preproc=yes
6758 $as_echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.$ac_ext >&5
6761 ac_header_preproc=no
6764 rm -rf conftest.err conftest.$ac_ext
6765 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6766 $as_echo "$ac_header_preproc" >&6; }
6768 # So? What about this header?
6769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6772 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6774 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6775 ac_header_preproc=yes
6778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6779 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6781 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6783 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6785 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6787 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6789 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6793 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6794 $as_echo_n "checking for $ac_header... " >&6; }
6795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6796 $as_echo_n "(cached) " >&6
6798 eval "$as_ac_Header=\$ac_header_preproc"
6800 ac_res=`eval 'as_val=${'$as_ac_Header'}
6801 $as_echo "$as_val"'`
6802 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6803 $as_echo "$ac_res" >&6; }
6806 as_val=`eval 'as_val=${'$as_ac_Header'}
6807 $as_echo "$as_val"'`
6808 if test "x$as_val" = x""yes; then
6809 cat >>confdefs.h <<_ACEOF
6810 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6817 for ac_prog in perl5 perl
6819 # Extract the first word of "$ac_prog", so it can be a program name with args.
6820 set dummy $ac_prog; ac_word=$2
6821 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if test "${ac_cv_path_PERL+set}" = set; then
6824 $as_echo_n "(cached) " >&6
6828 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6838 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6839 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 PERL=$ac_cv_path_PERL
6850 if test -n "$PERL"; then
6851 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6852 $as_echo "$PERL" >&6; }
6854 { $as_echo "$as_me:$LINENO: result: no" >&5
6855 $as_echo "no" >&6; }
6859 test -n "$PERL" && break
6862 if test -z "$PERL" ; then
6865 { $as_echo "$as_me:$LINENO: checking perl version" >&5
6866 $as_echo_n "checking perl version... " >&6; }
6867 if test "${ac_cv_perl_version+set}" = set; then
6868 $as_echo_n "(cached) " >&6
6870 ac_cv_perl_version=`$PERL -e "$perl_version_cmd"`
6872 { $as_echo "$as_me:$LINENO: result: $ac_cv_perl_version" >&5
6873 $as_echo "$ac_cv_perl_version" >&6; }
6874 PERL_VERSION=$ac_cv_perl_version
6878 if test -z "$PERL" ; then
6879 # don't let it be blank...
6883 { $as_echo "$as_me:$LINENO: checking for X" >&5
6884 $as_echo_n "checking for X... " >&6; }
6887 # Check whether --with-x was given.
6888 if test "${with_x+set}" = set; then
6892 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6893 if test "x$with_x" = xno; then
6894 # The user explicitly disabled X.
6897 case $x_includes,$x_libraries in #(
6898 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
6899 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
6900 { (exit 1); exit 1; }; };; #(
6901 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6902 $as_echo_n "(cached) " >&6
6904 # One or both of the vars are not set, and there is no cached value.
6905 ac_x_includes=no ac_x_libraries=no
6906 rm -f -r conftest.dir
6907 if mkdir conftest.dir; then
6909 cat >Imakefile <<'_ACEOF'
6911 @echo incroot='${INCROOT}'
6913 @echo usrlibdir='${USRLIBDIR}'
6915 @echo libdir='${LIBDIR}'
6917 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6918 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6919 for ac_var in incroot usrlibdir libdir; do
6920 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6922 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6923 for ac_extension in a so sl dylib la dll; do
6924 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6925 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6926 ac_im_usrlibdir=$ac_im_libdir; break
6929 # Screen out bogus values from the imake configuration. They are
6930 # bogus both because they are the default anyway, and because
6931 # using them would break gcc on systems where it needs fixed includes.
6932 case $ac_im_incroot in
6933 /usr/include) ac_x_includes= ;;
6934 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6936 case $ac_im_usrlibdir in
6937 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6938 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6942 rm -f -r conftest.dir
6945 # Standard set of common directories for X headers.
6946 # Check X11 before X11Rn because it is often a symlink to the current release.
6958 /usr/local/X11/include
6959 /usr/local/X11R6/include
6960 /usr/local/X11R5/include
6961 /usr/local/X11R4/include
6963 /usr/local/include/X11
6964 /usr/local/include/X11R6
6965 /usr/local/include/X11R5
6966 /usr/local/include/X11R4
6970 /usr/XFree86/include/X11
6974 /usr/unsupported/include
6976 /usr/local/x11r5/include
6977 /usr/lpp/Xamples/include
6979 /usr/openwin/include
6980 /usr/openwin/share/include'
6982 if test "$ac_x_includes" = no; then
6983 # Guess where to find include files, by looking for Xlib.h.
6984 # First, try using that file with no special directory specified.
6985 cat >conftest.$ac_ext <<_ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
6991 #include <X11/Xlib.h>
6993 if { (ac_try="$ac_cpp conftest.$ac_ext"
6995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6996 *) ac_try_echo=$ac_try;;
6998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6999 $as_echo "$ac_try_echo") >&5
7000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7002 grep -v '^ *+' conftest.er1 >conftest.err
7004 cat conftest.err >&5
7005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } >/dev/null && {
7007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7008 test ! -s conftest.err
7010 # We can compile using X headers with no special include directory.
7013 $as_echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7016 for ac_dir in $ac_x_header_dirs; do
7017 if test -r "$ac_dir/X11/Xlib.h"; then
7018 ac_x_includes=$ac_dir
7024 rm -rf conftest.err conftest.$ac_ext
7025 fi # $ac_x_includes = no
7027 if test "$ac_x_libraries" = no; then
7028 # Check for the libraries.
7029 # See if we find them without any special options.
7030 # Don't add to $LIBS permanently.
7033 cat >conftest.$ac_ext <<_ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h. */
7039 #include <X11/Xlib.h>
7048 rm -rf conftest.$ac_objext conftest$ac_exeext
7049 if { (ac_try="$ac_link"
7051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7052 *) ac_try_echo=$ac_try;;
7054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7055 $as_echo "$ac_try_echo") >&5
7056 (eval "$ac_link") 2>conftest.er1
7058 grep -v '^ *+' conftest.er1 >conftest.err
7060 cat conftest.err >&5
7061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } && {
7063 test -z "$ac_c_werror_flag" ||
7064 test ! -s conftest.err
7065 } && test -s conftest$ac_exeext && {
7066 test "$cross_compiling" = yes ||
7067 $as_test_x conftest$ac_exeext
7070 # We can link X programs with no special library path.
7073 $as_echo "$as_me: failed program was:" >&5
7074 sed 's/^/| /' conftest.$ac_ext >&5
7077 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7079 # Don't even attempt the hair of trying to link an X program!
7080 for ac_extension in a so sl dylib la dll; do
7081 if test -r "$ac_dir/libX11.$ac_extension"; then
7082 ac_x_libraries=$ac_dir
7089 rm -rf conftest.dSYM
7090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7091 conftest$ac_exeext conftest.$ac_ext
7092 fi # $ac_x_libraries = no
7094 case $ac_x_includes,$ac_x_libraries in #(
7096 # Didn't find X, or a directory has "'" in its name.
7097 ac_cv_have_x="have_x=no";; #(
7099 # Record where we found X for the cache.
7100 ac_cv_have_x="have_x=yes\
7101 ac_x_includes='$ac_x_includes'\
7102 ac_x_libraries='$ac_x_libraries'"
7108 eval "$ac_cv_have_x"
7111 if test "$have_x" != yes; then
7112 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
7113 $as_echo "$have_x" >&6; }
7116 # If each of the values was on the command line, it overrides each guess.
7117 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7118 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7119 # Update the cache value to reflect the command line values.
7120 ac_cv_have_x="have_x=yes\
7121 ac_x_includes='$x_includes'\
7122 ac_x_libraries='$x_libraries'"
7123 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7124 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7127 if test "$no_x" = yes; then
7128 # Not all programs may use this symbol, but it does not hurt to define it.
7130 cat >>confdefs.h <<\_ACEOF
7131 #define X_DISPLAY_MISSING 1
7134 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7136 if test -n "$x_includes"; then
7137 X_CFLAGS="$X_CFLAGS -I$x_includes"
7140 # It would also be nice to do this for all -L options, not just this one.
7141 if test -n "$x_libraries"; then
7142 X_LIBS="$X_LIBS -L$x_libraries"
7143 # For Solaris; some versions of Sun CC require a space after -R and
7144 # others require no space. Words are not sufficient . . . .
7145 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7146 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7147 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7148 ac_xsave_c_werror_flag=$ac_c_werror_flag
7149 ac_c_werror_flag=yes
7150 cat >conftest.$ac_ext <<_ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7165 rm -rf conftest.$ac_objext conftest$ac_exeext
7166 if { (ac_try="$ac_link"
7168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7169 *) ac_try_echo=$ac_try;;
7171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7172 $as_echo "$ac_try_echo") >&5
7173 (eval "$ac_link") 2>conftest.er1
7175 grep -v '^ *+' conftest.er1 >conftest.err
7177 cat conftest.err >&5
7178 $as_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 test "$cross_compiling" = yes ||
7184 $as_test_x conftest$ac_exeext
7186 { $as_echo "$as_me:$LINENO: result: no" >&5
7187 $as_echo "no" >&6; }
7188 X_LIBS="$X_LIBS -R$x_libraries"
7190 $as_echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7193 LIBS="$ac_xsave_LIBS -R $x_libraries"
7194 cat >conftest.$ac_ext <<_ACEOF
7197 cat confdefs.h >>conftest.$ac_ext
7198 cat >>conftest.$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7209 rm -rf conftest.$ac_objext conftest$ac_exeext
7210 if { (ac_try="$ac_link"
7212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7213 *) ac_try_echo=$ac_try;;
7215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7216 $as_echo "$ac_try_echo") >&5
7217 (eval "$ac_link") 2>conftest.er1
7219 grep -v '^ *+' conftest.er1 >conftest.err
7221 cat conftest.err >&5
7222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } && {
7224 test -z "$ac_c_werror_flag" ||
7225 test ! -s conftest.err
7226 } && test -s conftest$ac_exeext && {
7227 test "$cross_compiling" = yes ||
7228 $as_test_x conftest$ac_exeext
7230 { $as_echo "$as_me:$LINENO: result: yes" >&5
7231 $as_echo "yes" >&6; }
7232 X_LIBS="$X_LIBS -R $x_libraries"
7234 $as_echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7237 { $as_echo "$as_me:$LINENO: result: neither works" >&5
7238 $as_echo "neither works" >&6; }
7241 rm -rf conftest.dSYM
7242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7243 conftest$ac_exeext conftest.$ac_ext
7246 rm -rf conftest.dSYM
7247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7248 conftest$ac_exeext conftest.$ac_ext
7249 ac_c_werror_flag=$ac_xsave_c_werror_flag
7253 # Check for system-dependent libraries X programs must link with.
7254 # Do this before checking for the system-independent R6 libraries
7255 # (-lICE), since we may need -lsocket or whatever for X linking.
7257 if test "$ISC" = yes; then
7258 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7260 # Martyn Johnson says this is needed for Ultrix, if the X
7261 # libraries were built with DECnet support. And Karl Berry says
7262 # the Alpha needs dnet_stub (dnet does not exist).
7263 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7264 cat >conftest.$ac_ext <<_ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7271 /* Override any GCC internal prototype to avoid an error.
7272 Use char because int might match the return type of a GCC
7273 builtin and then its argument prototype would still apply. */
7277 char XOpenDisplay ();
7281 return XOpenDisplay ();
7286 rm -rf conftest.$ac_objext conftest$ac_exeext
7287 if { (ac_try="$ac_link"
7289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7290 *) ac_try_echo=$ac_try;;
7292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7293 $as_echo "$ac_try_echo") >&5
7294 (eval "$ac_link") 2>conftest.er1
7296 grep -v '^ *+' conftest.er1 >conftest.err
7298 cat conftest.err >&5
7299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest$ac_exeext && {
7304 test "$cross_compiling" = yes ||
7305 $as_test_x conftest$ac_exeext
7309 $as_echo "$as_me: failed program was:" >&5
7310 sed 's/^/| /' conftest.$ac_ext >&5
7312 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7313 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7314 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7315 $as_echo_n "(cached) " >&6
7317 ac_check_lib_save_LIBS=$LIBS
7319 cat >conftest.$ac_ext <<_ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7326 /* Override any GCC internal prototype to avoid an error.
7327 Use char because int might match the return type of a GCC
7328 builtin and then its argument prototype would still apply. */
7336 return dnet_ntoa ();
7341 rm -rf conftest.$ac_objext conftest$ac_exeext
7342 if { (ac_try="$ac_link"
7344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7345 *) ac_try_echo=$ac_try;;
7347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7348 $as_echo "$ac_try_echo") >&5
7349 (eval "$ac_link") 2>conftest.er1
7351 grep -v '^ *+' conftest.er1 >conftest.err
7353 cat conftest.err >&5
7354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } && {
7356 test -z "$ac_c_werror_flag" ||
7357 test ! -s conftest.err
7358 } && test -s conftest$ac_exeext && {
7359 test "$cross_compiling" = yes ||
7360 $as_test_x conftest$ac_exeext
7362 ac_cv_lib_dnet_dnet_ntoa=yes
7364 $as_echo "$as_me: failed program was:" >&5
7365 sed 's/^/| /' conftest.$ac_ext >&5
7367 ac_cv_lib_dnet_dnet_ntoa=no
7370 rm -rf conftest.dSYM
7371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7372 conftest$ac_exeext conftest.$ac_ext
7373 LIBS=$ac_check_lib_save_LIBS
7375 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7376 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7377 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
7378 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7381 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7382 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7383 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7384 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7385 $as_echo_n "(cached) " >&6
7387 ac_check_lib_save_LIBS=$LIBS
7388 LIBS="-ldnet_stub $LIBS"
7389 cat >conftest.$ac_ext <<_ACEOF
7392 cat confdefs.h >>conftest.$ac_ext
7393 cat >>conftest.$ac_ext <<_ACEOF
7394 /* end confdefs.h. */
7396 /* Override any GCC internal prototype to avoid an error.
7397 Use char because int might match the return type of a GCC
7398 builtin and then its argument prototype would still apply. */
7406 return dnet_ntoa ();
7411 rm -rf conftest.$ac_objext conftest$ac_exeext
7412 if { (ac_try="$ac_link"
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7418 $as_echo "$ac_try_echo") >&5
7419 (eval "$ac_link") 2>conftest.er1
7421 grep -v '^ *+' conftest.er1 >conftest.err
7423 cat conftest.err >&5
7424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } && {
7426 test -z "$ac_c_werror_flag" ||
7427 test ! -s conftest.err
7428 } && test -s conftest$ac_exeext && {
7429 test "$cross_compiling" = yes ||
7430 $as_test_x conftest$ac_exeext
7432 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7434 $as_echo "$as_me: failed program was:" >&5
7435 sed 's/^/| /' conftest.$ac_ext >&5
7437 ac_cv_lib_dnet_stub_dnet_ntoa=no
7440 rm -rf conftest.dSYM
7441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7442 conftest$ac_exeext conftest.$ac_ext
7443 LIBS=$ac_check_lib_save_LIBS
7445 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7446 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7447 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
7448 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7454 rm -rf conftest.dSYM
7455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7456 conftest$ac_exeext conftest.$ac_ext
7457 LIBS="$ac_xsave_LIBS"
7459 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7460 # to get the SysV transport functions.
7461 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7463 # The nsl library prevents programs from opening the X display
7464 # on Irix 5.2, according to T.E. Dickey.
7465 # The functions gethostbyname, getservbyname, and inet_addr are
7466 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7467 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
7468 $as_echo_n "checking for gethostbyname... " >&6; }
7469 if test "${ac_cv_func_gethostbyname+set}" = set; then
7470 $as_echo_n "(cached) " >&6
7472 cat >conftest.$ac_ext <<_ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7478 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7480 #define gethostbyname innocuous_gethostbyname
7482 /* System header to define __stub macros and hopefully few prototypes,
7483 which can conflict with char gethostbyname (); below.
7484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7485 <limits.h> exists even on freestanding compilers. */
7488 # include <limits.h>
7490 # include <assert.h>
7493 #undef gethostbyname
7495 /* Override any GCC internal prototype to avoid an error.
7496 Use char because int might match the return type of a GCC
7497 builtin and then its argument prototype would still apply. */
7501 char gethostbyname ();
7502 /* The GNU C library defines this for functions which it implements
7503 to always fail with ENOSYS. Some functions are actually named
7504 something starting with __ and the normal name is an alias. */
7505 #if defined __stub_gethostbyname || defined __stub___gethostbyname
7512 return gethostbyname ();
7517 rm -rf conftest.$ac_objext conftest$ac_exeext
7518 if { (ac_try="$ac_link"
7520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7521 *) ac_try_echo=$ac_try;;
7523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7524 $as_echo "$ac_try_echo") >&5
7525 (eval "$ac_link") 2>conftest.er1
7527 grep -v '^ *+' conftest.er1 >conftest.err
7529 cat conftest.err >&5
7530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } && {
7532 test -z "$ac_c_werror_flag" ||
7533 test ! -s conftest.err
7534 } && test -s conftest$ac_exeext && {
7535 test "$cross_compiling" = yes ||
7536 $as_test_x conftest$ac_exeext
7538 ac_cv_func_gethostbyname=yes
7540 $as_echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7543 ac_cv_func_gethostbyname=no
7546 rm -rf conftest.dSYM
7547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7548 conftest$ac_exeext conftest.$ac_ext
7550 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7551 $as_echo "$ac_cv_func_gethostbyname" >&6; }
7553 if test $ac_cv_func_gethostbyname = no; then
7554 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7555 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7556 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7557 $as_echo_n "(cached) " >&6
7559 ac_check_lib_save_LIBS=$LIBS
7561 cat >conftest.$ac_ext <<_ACEOF
7564 cat confdefs.h >>conftest.$ac_ext
7565 cat >>conftest.$ac_ext <<_ACEOF
7566 /* end confdefs.h. */
7568 /* Override any GCC internal prototype to avoid an error.
7569 Use char because int might match the return type of a GCC
7570 builtin and then its argument prototype would still apply. */
7574 char gethostbyname ();
7578 return gethostbyname ();
7583 rm -rf conftest.$ac_objext conftest$ac_exeext
7584 if { (ac_try="$ac_link"
7586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7587 *) ac_try_echo=$ac_try;;
7589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7590 $as_echo "$ac_try_echo") >&5
7591 (eval "$ac_link") 2>conftest.er1
7593 grep -v '^ *+' conftest.er1 >conftest.err
7595 cat conftest.err >&5
7596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } && {
7598 test -z "$ac_c_werror_flag" ||
7599 test ! -s conftest.err
7600 } && test -s conftest$ac_exeext && {
7601 test "$cross_compiling" = yes ||
7602 $as_test_x conftest$ac_exeext
7604 ac_cv_lib_nsl_gethostbyname=yes
7606 $as_echo "$as_me: failed program was:" >&5
7607 sed 's/^/| /' conftest.$ac_ext >&5
7609 ac_cv_lib_nsl_gethostbyname=no
7612 rm -rf conftest.dSYM
7613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7614 conftest$ac_exeext conftest.$ac_ext
7615 LIBS=$ac_check_lib_save_LIBS
7617 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7618 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7619 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
7620 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7623 if test $ac_cv_lib_nsl_gethostbyname = no; then
7624 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7625 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7626 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7627 $as_echo_n "(cached) " >&6
7629 ac_check_lib_save_LIBS=$LIBS
7631 cat >conftest.$ac_ext <<_ACEOF
7634 cat confdefs.h >>conftest.$ac_ext
7635 cat >>conftest.$ac_ext <<_ACEOF
7636 /* end confdefs.h. */
7638 /* Override any GCC internal prototype to avoid an error.
7639 Use char because int might match the return type of a GCC
7640 builtin and then its argument prototype would still apply. */
7644 char gethostbyname ();
7648 return gethostbyname ();
7653 rm -rf conftest.$ac_objext conftest$ac_exeext
7654 if { (ac_try="$ac_link"
7656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7657 *) ac_try_echo=$ac_try;;
7659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7660 $as_echo "$ac_try_echo") >&5
7661 (eval "$ac_link") 2>conftest.er1
7663 grep -v '^ *+' conftest.er1 >conftest.err
7665 cat conftest.err >&5
7666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); } && {
7668 test -z "$ac_c_werror_flag" ||
7669 test ! -s conftest.err
7670 } && test -s conftest$ac_exeext && {
7671 test "$cross_compiling" = yes ||
7672 $as_test_x conftest$ac_exeext
7674 ac_cv_lib_bsd_gethostbyname=yes
7676 $as_echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7679 ac_cv_lib_bsd_gethostbyname=no
7682 rm -rf conftest.dSYM
7683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7684 conftest$ac_exeext conftest.$ac_ext
7685 LIBS=$ac_check_lib_save_LIBS
7687 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7688 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7689 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
7690 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7696 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7697 # socket/setsockopt and other routines are undefined under SCO ODT
7698 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7699 # on later versions), says Simon Leinen: it contains gethostby*
7700 # variants that don't use the name server (or something). -lsocket
7701 # must be given before -lnsl if both are needed. We assume that
7702 # if connect needs -lnsl, so does gethostbyname.
7703 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7704 $as_echo_n "checking for connect... " >&6; }
7705 if test "${ac_cv_func_connect+set}" = set; then
7706 $as_echo_n "(cached) " >&6
7708 cat >conftest.$ac_ext <<_ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7714 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7716 #define connect innocuous_connect
7718 /* System header to define __stub macros and hopefully few prototypes,
7719 which can conflict with char connect (); below.
7720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7721 <limits.h> exists even on freestanding compilers. */
7724 # include <limits.h>
7726 # include <assert.h>
7731 /* Override any GCC internal prototype to avoid an error.
7732 Use char because int might match the return type of a GCC
7733 builtin and then its argument prototype would still apply. */
7738 /* The GNU C library defines this for functions which it implements
7739 to always fail with ENOSYS. Some functions are actually named
7740 something starting with __ and the normal name is an alias. */
7741 #if defined __stub_connect || defined __stub___connect
7753 rm -rf conftest.$ac_objext conftest$ac_exeext
7754 if { (ac_try="$ac_link"
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7760 $as_echo "$ac_try_echo") >&5
7761 (eval "$ac_link") 2>conftest.er1
7763 grep -v '^ *+' conftest.er1 >conftest.err
7765 cat conftest.err >&5
7766 $as_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_exeext && {
7771 test "$cross_compiling" = yes ||
7772 $as_test_x conftest$ac_exeext
7774 ac_cv_func_connect=yes
7776 $as_echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7779 ac_cv_func_connect=no
7782 rm -rf conftest.dSYM
7783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7784 conftest$ac_exeext conftest.$ac_ext
7786 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7787 $as_echo "$ac_cv_func_connect" >&6; }
7789 if test $ac_cv_func_connect = no; then
7790 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7791 $as_echo_n "checking for connect in -lsocket... " >&6; }
7792 if test "${ac_cv_lib_socket_connect+set}" = set; then
7793 $as_echo_n "(cached) " >&6
7795 ac_check_lib_save_LIBS=$LIBS
7796 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7797 cat >conftest.$ac_ext <<_ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h. */
7804 /* Override any GCC internal prototype to avoid an error.
7805 Use char because int might match the return type of a GCC
7806 builtin and then its argument prototype would still apply. */
7819 rm -rf conftest.$ac_objext conftest$ac_exeext
7820 if { (ac_try="$ac_link"
7822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823 *) ac_try_echo=$ac_try;;
7825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7826 $as_echo "$ac_try_echo") >&5
7827 (eval "$ac_link") 2>conftest.er1
7829 grep -v '^ *+' conftest.er1 >conftest.err
7831 cat conftest.err >&5
7832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } && {
7834 test -z "$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7836 } && test -s conftest$ac_exeext && {
7837 test "$cross_compiling" = yes ||
7838 $as_test_x conftest$ac_exeext
7840 ac_cv_lib_socket_connect=yes
7842 $as_echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7845 ac_cv_lib_socket_connect=no
7848 rm -rf conftest.dSYM
7849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7850 conftest$ac_exeext conftest.$ac_ext
7851 LIBS=$ac_check_lib_save_LIBS
7853 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7854 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7855 if test "x$ac_cv_lib_socket_connect" = x""yes; then
7856 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7861 # Guillermo Gomez says -lposix is necessary on A/UX.
7862 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7863 $as_echo_n "checking for remove... " >&6; }
7864 if test "${ac_cv_func_remove+set}" = set; then
7865 $as_echo_n "(cached) " >&6
7867 cat >conftest.$ac_ext <<_ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h. */
7873 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7875 #define remove innocuous_remove
7877 /* System header to define __stub macros and hopefully few prototypes,
7878 which can conflict with char remove (); below.
7879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7880 <limits.h> exists even on freestanding compilers. */
7883 # include <limits.h>
7885 # include <assert.h>
7890 /* Override any GCC internal prototype to avoid an error.
7891 Use char because int might match the return type of a GCC
7892 builtin and then its argument prototype would still apply. */
7897 /* The GNU C library defines this for functions which it implements
7898 to always fail with ENOSYS. Some functions are actually named
7899 something starting with __ and the normal name is an alias. */
7900 #if defined __stub_remove || defined __stub___remove
7912 rm -rf conftest.$ac_objext conftest$ac_exeext
7913 if { (ac_try="$ac_link"
7915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916 *) ac_try_echo=$ac_try;;
7918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7919 $as_echo "$ac_try_echo") >&5
7920 (eval "$ac_link") 2>conftest.er1
7922 grep -v '^ *+' conftest.er1 >conftest.err
7924 cat conftest.err >&5
7925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } && {
7927 test -z "$ac_c_werror_flag" ||
7928 test ! -s conftest.err
7929 } && test -s conftest$ac_exeext && {
7930 test "$cross_compiling" = yes ||
7931 $as_test_x conftest$ac_exeext
7933 ac_cv_func_remove=yes
7935 $as_echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7938 ac_cv_func_remove=no
7941 rm -rf conftest.dSYM
7942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7943 conftest$ac_exeext conftest.$ac_ext
7945 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7946 $as_echo "$ac_cv_func_remove" >&6; }
7948 if test $ac_cv_func_remove = no; then
7949 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7950 $as_echo_n "checking for remove in -lposix... " >&6; }
7951 if test "${ac_cv_lib_posix_remove+set}" = set; then
7952 $as_echo_n "(cached) " >&6
7954 ac_check_lib_save_LIBS=$LIBS
7955 LIBS="-lposix $LIBS"
7956 cat >conftest.$ac_ext <<_ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7963 /* Override any GCC internal prototype to avoid an error.
7964 Use char because int might match the return type of a GCC
7965 builtin and then its argument prototype would still apply. */
7978 rm -rf conftest.$ac_objext conftest$ac_exeext
7979 if { (ac_try="$ac_link"
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7985 $as_echo "$ac_try_echo") >&5
7986 (eval "$ac_link") 2>conftest.er1
7988 grep -v '^ *+' conftest.er1 >conftest.err
7990 cat conftest.err >&5
7991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); } && {
7993 test -z "$ac_c_werror_flag" ||
7994 test ! -s conftest.err
7995 } && test -s conftest$ac_exeext && {
7996 test "$cross_compiling" = yes ||
7997 $as_test_x conftest$ac_exeext
7999 ac_cv_lib_posix_remove=yes
8001 $as_echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.$ac_ext >&5
8004 ac_cv_lib_posix_remove=no
8007 rm -rf conftest.dSYM
8008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8009 conftest$ac_exeext conftest.$ac_ext
8010 LIBS=$ac_check_lib_save_LIBS
8012 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8013 $as_echo "$ac_cv_lib_posix_remove" >&6; }
8014 if test "x$ac_cv_lib_posix_remove" = x""yes; then
8015 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8020 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8021 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
8022 $as_echo_n "checking for shmat... " >&6; }
8023 if test "${ac_cv_func_shmat+set}" = set; then
8024 $as_echo_n "(cached) " >&6
8026 cat >conftest.$ac_ext <<_ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8032 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8034 #define shmat innocuous_shmat
8036 /* System header to define __stub macros and hopefully few prototypes,
8037 which can conflict with char shmat (); below.
8038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8039 <limits.h> exists even on freestanding compilers. */
8042 # include <limits.h>
8044 # include <assert.h>
8049 /* Override any GCC internal prototype to avoid an error.
8050 Use char because int might match the return type of a GCC
8051 builtin and then its argument prototype would still apply. */
8056 /* The GNU C library defines this for functions which it implements
8057 to always fail with ENOSYS. Some functions are actually named
8058 something starting with __ and the normal name is an alias. */
8059 #if defined __stub_shmat || defined __stub___shmat
8071 rm -rf conftest.$ac_objext conftest$ac_exeext
8072 if { (ac_try="$ac_link"
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8078 $as_echo "$ac_try_echo") >&5
8079 (eval "$ac_link") 2>conftest.er1
8081 grep -v '^ *+' conftest.er1 >conftest.err
8083 cat conftest.err >&5
8084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } && {
8086 test -z "$ac_c_werror_flag" ||
8087 test ! -s conftest.err
8088 } && test -s conftest$ac_exeext && {
8089 test "$cross_compiling" = yes ||
8090 $as_test_x conftest$ac_exeext
8092 ac_cv_func_shmat=yes
8094 $as_echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8100 rm -rf conftest.dSYM
8101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8102 conftest$ac_exeext conftest.$ac_ext
8104 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8105 $as_echo "$ac_cv_func_shmat" >&6; }
8107 if test $ac_cv_func_shmat = no; then
8108 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8109 $as_echo_n "checking for shmat in -lipc... " >&6; }
8110 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8111 $as_echo_n "(cached) " >&6
8113 ac_check_lib_save_LIBS=$LIBS
8115 cat >conftest.$ac_ext <<_ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8122 /* Override any GCC internal prototype to avoid an error.
8123 Use char because int might match the return type of a GCC
8124 builtin and then its argument prototype would still apply. */
8137 rm -rf conftest.$ac_objext conftest$ac_exeext
8138 if { (ac_try="$ac_link"
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8144 $as_echo "$ac_try_echo") >&5
8145 (eval "$ac_link") 2>conftest.er1
8147 grep -v '^ *+' conftest.er1 >conftest.err
8149 cat conftest.err >&5
8150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } && {
8152 test -z "$ac_c_werror_flag" ||
8153 test ! -s conftest.err
8154 } && test -s conftest$ac_exeext && {
8155 test "$cross_compiling" = yes ||
8156 $as_test_x conftest$ac_exeext
8158 ac_cv_lib_ipc_shmat=yes
8160 $as_echo "$as_me: failed program was:" >&5
8161 sed 's/^/| /' conftest.$ac_ext >&5
8163 ac_cv_lib_ipc_shmat=no
8166 rm -rf conftest.dSYM
8167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8168 conftest$ac_exeext conftest.$ac_ext
8169 LIBS=$ac_check_lib_save_LIBS
8171 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8172 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8173 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
8174 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8180 # Check for libraries that X11R6 Xt/Xaw programs need.
8181 ac_save_LDFLAGS=$LDFLAGS
8182 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8183 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8184 # check for ICE first), but we must link in the order -lSM -lICE or
8185 # we get undefined symbols. So assume we have SM if we have ICE.
8186 # These have to be linked with before -lX11, unlike the other
8187 # libraries we check for below, so use a different variable.
8188 # John Interrante, Karl Berry
8189 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8190 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8191 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8192 $as_echo_n "(cached) " >&6
8194 ac_check_lib_save_LIBS=$LIBS
8195 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8196 cat >conftest.$ac_ext <<_ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8203 /* Override any GCC internal prototype to avoid an error.
8204 Use char because int might match the return type of a GCC
8205 builtin and then its argument prototype would still apply. */
8209 char IceConnectionNumber ();
8213 return IceConnectionNumber ();
8218 rm -rf conftest.$ac_objext conftest$ac_exeext
8219 if { (ac_try="$ac_link"
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8225 $as_echo "$ac_try_echo") >&5
8226 (eval "$ac_link") 2>conftest.er1
8228 grep -v '^ *+' conftest.er1 >conftest.err
8230 cat conftest.err >&5
8231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); } && {
8233 test -z "$ac_c_werror_flag" ||
8234 test ! -s conftest.err
8235 } && test -s conftest$ac_exeext && {
8236 test "$cross_compiling" = yes ||
8237 $as_test_x conftest$ac_exeext
8239 ac_cv_lib_ICE_IceConnectionNumber=yes
8241 $as_echo "$as_me: failed program was:" >&5
8242 sed 's/^/| /' conftest.$ac_ext >&5
8244 ac_cv_lib_ICE_IceConnectionNumber=no
8247 rm -rf conftest.dSYM
8248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8249 conftest$ac_exeext conftest.$ac_ext
8250 LIBS=$ac_check_lib_save_LIBS
8252 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8253 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8254 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
8255 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8258 LDFLAGS=$ac_save_LDFLAGS
8263 if test "$have_x" != yes; then
8264 { { $as_echo "$as_me:$LINENO: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&5
8265 $as_echo "$as_me: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&2;}
8266 { (exit 1); exit 1; }; }
8270 { $as_echo "$as_me:$LINENO: checking for X app-defaults directory" >&5
8271 $as_echo_n "checking for X app-defaults directory... " >&6; }
8272 if test "${ac_cv_x_app_defaults+set}" = set; then
8273 $as_echo_n "(cached) " >&6
8277 if mkdir conftestdir; then
8278 cd conftestdir 2>/dev/null
8279 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8280 cat > Imakefile <<'EOF'
8282 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
8284 if (xmkmf) >/dev/null 2>&1 && test -f Makefile; then
8285 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
8286 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8291 if test x"$ac_x_app_defaults" = x; then
8293 # Look for the directory under a standard set of common directories.
8294 # Check X11 before X11Rn because it's often a symlink to the current release.
8296 /usr/X11/lib/app-defaults \
8297 /usr/X11R6/lib/app-defaults \
8298 /usr/X11R6/lib/X11/app-defaults \
8299 /usr/X11R5/lib/app-defaults \
8300 /usr/X11R5/lib/X11/app-defaults \
8301 /usr/X11R4/lib/app-defaults \
8302 /usr/X11R4/lib/X11/app-defaults \
8304 /usr/lib/X11/app-defaults \
8305 /usr/lib/X11R6/app-defaults \
8306 /usr/lib/X11R5/app-defaults \
8307 /usr/lib/X11R4/app-defaults \
8309 /usr/local/X11/lib/app-defaults \
8310 /usr/local/X11R6/lib/app-defaults \
8311 /usr/local/X11R5/lib/app-defaults \
8312 /usr/local/X11R4/lib/app-defaults \
8314 /usr/local/lib/X11/app-defaults \
8315 /usr/local/lib/X11R6/app-defaults \
8316 /usr/local/lib/X11R6/X11/app-defaults \
8317 /usr/local/lib/X11R5/app-defaults \
8318 /usr/local/lib/X11R5/X11/app-defaults \
8319 /usr/local/lib/X11R4/app-defaults \
8320 /usr/local/lib/X11R4/X11/app-defaults \
8322 /usr/X386/lib/X11/app-defaults \
8323 /usr/x386/lib/X11/app-defaults \
8324 /usr/XFree86/lib/X11/app-defaults \
8326 /usr/lib/X11/app-defaults \
8327 /usr/local/lib/X11/app-defaults \
8328 /usr/unsupported/lib/X11/app-defaults \
8329 /usr/athena/lib/X11/app-defaults \
8330 /usr/local/x11r5/lib/X11/app-defaults \
8331 /usr/lpp/Xamples/lib/X11/app-defaults \
8332 /lib/usr/lib/X11/app-defaults \
8334 /usr/openwin/lib/app-defaults \
8335 /usr/openwin/lib/X11/app-defaults \
8336 /usr/openwin/share/lib/app-defaults \
8337 /usr/openwin/share/lib/X11/app-defaults \
8339 /X11R6/lib/app-defaults \
8340 /X11R5/lib/app-defaults \
8341 /X11R4/lib/app-defaults \
8344 if test -d "$ac_dir"; then
8345 ac_x_app_defaults=$ac_dir
8351 if test x"$ac_x_app_defaults" = x; then
8352 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
8354 # Record where we found app-defaults for the cache.
8355 ac_cv_x_app_defaults="$ac_x_app_defaults"
8358 { $as_echo "$as_me:$LINENO: result: $ac_cv_x_app_defaults" >&5
8359 $as_echo "$ac_cv_x_app_defaults" >&6; }
8360 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
8364 # The following arcana was gleaned from conversations with
8365 # Eric Schwartz <erics@col.hp.com>:
8367 # On HPUX 10.x, the parts of X that HP considers "standard" live in
8368 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
8369 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
8370 # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
8371 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
8372 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
8373 # you don't need any -I or -L arguments.
8375 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
8376 # are the same division as 10.x. However, there are no symlinks to
8377 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
8378 # arguments are always necessary.
8380 # However, X11R6 was available on HPUX 9.x as a patch: if that
8381 # patch was installed, then all of X11R6 went in to
8382 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
8384 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
8385 # whether R5 was available as a patch; R6 undoubtedly was not.)
8387 # So. We try and use the highest numbered pair of
8388 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
8389 # that are available. We do not mix and match different versions
8392 # Question I still don't know the answer to: (do you?)
8394 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
8395 # /usr/contrib/X11R6/ could be installed as a patch, what was in
8396 # that contrib directory? Did it contain so-called "standard"
8397 # X11R6, or did it include Xaw and Xmu as well? If the former,
8398 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
8399 # be a situation where one had to reach into the R5 headers and
8400 # libs to find Xmu? That is, must both R6 and R5 directories
8401 # be on the -I and -L lists in that case?
8403 for version in X11R6 X11R5 X11R4 ; do
8404 # if either pair of directories exists...
8405 if test -d /usr/include/$version || test -d /usr/contrib/$version/include
8407 # if contrib exists, use it...
8408 if test -d /usr/contrib/$version/include ; then
8409 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
8410 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
8412 # if the "standard" one exists, use it.
8413 if test -d /usr/include/$version ; then
8414 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
8415 X_LIBS="$X_LIBS -L/usr/lib/$version"
8417 # since at least one of the pair exists, go no farther.
8422 # Now find Motif. Thanks for not making xmkmf find this by
8423 # default, you losers.
8425 if test -d /usr/include/Motif2.1 ; then
8426 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
8427 X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
8428 elif test -d /usr/include/Motif1.2 ; then
8429 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
8430 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
8431 elif test -d /usr/include/Motif1.1 ; then
8432 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
8433 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
8436 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
8438 if test -d /opt/graphics/OpenGL/include ; then
8439 # HP-UX 10.20 puts it here
8440 X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
8441 X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
8442 elif test -d /opt/Mesa/lib ; then
8443 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
8444 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
8448 if test -d /opt/xpm/lib/X11 ; then
8449 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
8450 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
8453 # On HPUX, default to installing in /opt/xscreensaver/ instead of
8454 # in /usr/local/, unless there is already an xscreensaver in
8455 # /usr/local/bin/. This can be overridden with the --prefix arg
8456 # to configure. I'm not sure this is the right thing to do, but
8457 # Richard Lloyd says so...
8459 if test \! -x /usr/local/bin/xscreensaver ; then
8460 ac_default_prefix=/opt/xscreensaver
8466 # Thanks for not making xmkmf find this by default, pinheads.
8467 # And thanks for moving things around again, too. Is this
8468 # really the standard location now? What happened to the
8469 # joke that this kind of thing went in /opt?
8470 # cthomp says "answer: CDE (Common Disorganized Environment)"
8472 if test -f /usr/dt/include/Xm/Xm.h ; then
8473 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
8474 MOTIF_LIBS="$MOTIF_LIBS -L/usr/dt/lib -R/usr/dt/lib"
8476 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
8477 { $as_echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
8478 $as_echo_n "checking for regcmp in -lgen... " >&6; }
8479 if test "${ac_cv_lib_gen_regcmp+set}" = set; then
8480 $as_echo_n "(cached) " >&6
8482 ac_check_lib_save_LIBS=$LIBS
8484 cat >conftest.$ac_ext <<_ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8491 /* Override any GCC internal prototype to avoid an error.
8492 Use char because int might match the return type of a GCC
8493 builtin and then its argument prototype would still apply. */
8506 rm -rf conftest.$ac_objext conftest$ac_exeext
8507 if { (ac_try="$ac_link"
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8513 $as_echo "$ac_try_echo") >&5
8514 (eval "$ac_link") 2>conftest.er1
8516 grep -v '^ *+' conftest.er1 >conftest.err
8518 cat conftest.err >&5
8519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } && {
8521 test -z "$ac_c_werror_flag" ||
8522 test ! -s conftest.err
8523 } && test -s conftest$ac_exeext && {
8524 test "$cross_compiling" = yes ||
8525 $as_test_x conftest$ac_exeext
8527 ac_cv_lib_gen_regcmp=yes
8529 $as_echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8532 ac_cv_lib_gen_regcmp=no
8535 rm -rf conftest.dSYM
8536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8537 conftest$ac_exeext conftest.$ac_ext
8538 LIBS=$ac_check_lib_save_LIBS
8540 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5
8541 $as_echo "$ac_cv_lib_gen_regcmp" >&6; }
8542 if test "x$ac_cv_lib_gen_regcmp" = x""yes; then
8543 MOTIF_LIBS="$MOTIF_LIBS -lgen"
8551 # On MacOS X (10.x with "fink"), many things are under /sw/.
8553 if test -d /sw/include ; then
8554 X_CFLAGS="-I/sw/include $X_CFLAGS"
8555 X_LIBS="-L/sw/lib $X_LIBS"
8559 { $as_echo "$as_me:$LINENO: checking for XPointer" >&5
8560 $as_echo_n "checking for XPointer... " >&6; }
8561 if test "${ac_cv_xpointer+set}" = set; then
8562 $as_echo_n "(cached) " >&6
8565 ac_save_CPPFLAGS="$CPPFLAGS"
8566 if test \! -z "$includedir" ; then
8567 CPPFLAGS="$CPPFLAGS -I$includedir"
8569 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8570 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8571 cat >conftest.$ac_ext <<_ACEOF
8574 cat confdefs.h >>conftest.$ac_ext
8575 cat >>conftest.$ac_ext <<_ACEOF
8576 /* end confdefs.h. */
8577 #include <X11/Xlib.h>
8581 XPointer foo = (XPointer) 0;
8586 rm -rf conftest.$ac_objext
8587 if { (ac_try="$ac_compile"
8589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590 *) ac_try_echo=$ac_try;;
8592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8593 $as_echo "$ac_try_echo") >&5
8594 (eval "$ac_compile") 2>conftest.er1
8596 grep -v '^ *+' conftest.er1 >conftest.err
8598 cat conftest.err >&5
8599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); } && {
8601 test -z "$ac_c_werror_flag" ||
8602 test ! -s conftest.err
8603 } && test -s conftest.$ac_objext; then
8606 $as_echo "$as_me: failed program was:" >&5
8607 sed 's/^/| /' conftest.$ac_ext >&5
8612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8613 CPPFLAGS="$ac_save_CPPFLAGS"
8615 { $as_echo "$as_me:$LINENO: result: $ac_cv_xpointer" >&5
8616 $as_echo "$ac_cv_xpointer" >&6; }
8617 if test "$ac_cv_xpointer" != yes; then
8618 cat >>confdefs.h <<\_ACEOF
8619 #define XPointer char*
8624 { $as_echo "$as_me:$LINENO: checking whether this is MacOS X" >&5
8625 $as_echo_n "checking whether this is MacOS X... " >&6; }
8632 { $as_echo "$as_me:$LINENO: result: $ac_macosx" >&5
8633 $as_echo "$ac_macosx" >&6; }
8636 ###############################################################################
8640 ###############################################################################
8645 { $as_echo "$as_me:$LINENO: checking for intltool >= " >&5
8646 $as_echo_n "checking for intltool >= ... " >&6; }
8648 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
8649 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < intltool-update.in`
8651 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < intltool-update.in`
8654 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
8655 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
8656 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
8658 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5
8659 $as_echo "$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6; }
8664 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'
8665 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'
8666 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'
8667 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
8668 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'
8669 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'
8670 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'
8671 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'
8672 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'
8673 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'
8674 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'
8688 # Use the tools built into the package, not the ones that are installed.
8690 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
8691 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
8692 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
8698 # Extract the first word of "perl", so it can be a program name with args.
8699 set dummy perl; ac_word=$2
8700 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8701 $as_echo_n "checking for $ac_word... " >&6; }
8702 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
8703 $as_echo_n "(cached) " >&6
8705 case $INTLTOOL_PERL in
8707 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
8710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714 test -z "$as_dir" && as_dir=.
8715 for ac_exec_ext in '' $ac_executable_extensions; do
8716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8717 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
8718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8728 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
8729 if test -n "$INTLTOOL_PERL"; then
8730 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
8731 $as_echo "$INTLTOOL_PERL" >&6; }
8733 { $as_echo "$as_me:$LINENO: result: no" >&5
8734 $as_echo "no" >&6; }
8738 if test -z "$INTLTOOL_PERL"; then
8739 { { $as_echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
8740 $as_echo "$as_me: error: perl not found; required for intltool" >&2;}
8741 { (exit 1); exit 1; }; }
8743 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
8744 { { $as_echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
8745 $as_echo "$as_me: error: perl 5.x required for intltool" >&2;}
8746 { (exit 1); exit 1; }; }
8749 # Remove file type tags (using []) from po/POTFILES.
8757 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
8759 ac_config_commands="$ac_config_commands default-1"
8763 GETTEXT_PACKAGE=xscreensaver
8765 cat >>confdefs.h <<_ACEOF
8766 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
8770 cat >>confdefs.h <<_ACEOF
8771 #define PACKAGE "$GETTEXT_PACKAGE"
8776 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"
8777 if test -n "$ac_tool_prefix"; then
8778 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8779 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8780 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8781 $as_echo_n "checking for $ac_word... " >&6; }
8782 if test "${ac_cv_prog_RANLIB+set}" = set; then
8783 $as_echo_n "(cached) " >&6
8785 if test -n "$RANLIB"; then
8786 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
8794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8795 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8796 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8805 RANLIB=$ac_cv_prog_RANLIB
8806 if test -n "$RANLIB"; then
8807 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
8808 $as_echo "$RANLIB" >&6; }
8810 { $as_echo "$as_me:$LINENO: result: no" >&5
8811 $as_echo "no" >&6; }
8816 if test -z "$ac_cv_prog_RANLIB"; then
8817 ac_ct_RANLIB=$RANLIB
8818 # Extract the first word of "ranlib", so it can be a program name with args.
8819 set dummy ranlib; ac_word=$2
8820 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8821 $as_echo_n "checking for $ac_word... " >&6; }
8822 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8823 $as_echo_n "(cached) " >&6
8825 if test -n "$ac_ct_RANLIB"; then
8826 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 test -z "$as_dir" && as_dir=.
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8835 ac_cv_prog_ac_ct_RANLIB="ranlib"
8836 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8846 if test -n "$ac_ct_RANLIB"; then
8847 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8848 $as_echo "$ac_ct_RANLIB" >&6; }
8850 { $as_echo "$as_me:$LINENO: result: no" >&5
8851 $as_echo "no" >&6; }
8854 if test "x$ac_ct_RANLIB" = x; then
8857 case $cross_compiling:$ac_tool_warned in
8859 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8861 ac_tool_warned=yes ;;
8863 RANLIB=$ac_ct_RANLIB
8866 RANLIB="$ac_cv_prog_RANLIB"
8869 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
8870 $as_echo_n "checking for off_t... " >&6; }
8871 if test "${ac_cv_type_off_t+set}" = set; then
8872 $as_echo_n "(cached) " >&6
8875 cat >conftest.$ac_ext <<_ACEOF
8878 cat confdefs.h >>conftest.$ac_ext
8879 cat >>conftest.$ac_ext <<_ACEOF
8880 /* end confdefs.h. */
8881 $ac_includes_default
8891 rm -rf conftest.$ac_objext
8892 if { (ac_try="$ac_compile"
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8898 $as_echo "$ac_try_echo") >&5
8899 (eval "$ac_compile") 2>conftest.er1
8901 grep -v '^ *+' conftest.er1 >conftest.err
8903 cat conftest.err >&5
8904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } && {
8906 test -z "$ac_c_werror_flag" ||
8907 test ! -s conftest.err
8908 } && test -s conftest.$ac_objext; then
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
8919 if (sizeof ((off_t)))
8925 rm -rf conftest.$ac_objext
8926 if { (ac_try="$ac_compile"
8928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8932 $as_echo "$ac_try_echo") >&5
8933 (eval "$ac_compile") 2>conftest.er1
8935 grep -v '^ *+' conftest.er1 >conftest.err
8937 cat conftest.err >&5
8938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } && {
8940 test -z "$ac_c_werror_flag" ||
8941 test ! -s conftest.err
8942 } && test -s conftest.$ac_objext; then
8945 $as_echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8948 ac_cv_type_off_t=yes
8951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8953 $as_echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8961 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8962 $as_echo "$ac_cv_type_off_t" >&6; }
8963 if test "x$ac_cv_type_off_t" = x""yes; then
8967 cat >>confdefs.h <<_ACEOF
8968 #define off_t long int
8973 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8974 # for constant arguments. Useless!
8975 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
8976 $as_echo_n "checking for working alloca.h... " >&6; }
8977 if test "${ac_cv_working_alloca_h+set}" = set; then
8978 $as_echo_n "(cached) " >&6
8980 cat >conftest.$ac_ext <<_ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8990 char *p = (char *) alloca (2 * sizeof (int));
8996 rm -rf conftest.$ac_objext conftest$ac_exeext
8997 if { (ac_try="$ac_link"
8999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9000 *) ac_try_echo=$ac_try;;
9002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9003 $as_echo "$ac_try_echo") >&5
9004 (eval "$ac_link") 2>conftest.er1
9006 grep -v '^ *+' conftest.er1 >conftest.err
9008 cat conftest.err >&5
9009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } && {
9011 test -z "$ac_c_werror_flag" ||
9012 test ! -s conftest.err
9013 } && test -s conftest$ac_exeext && {
9014 test "$cross_compiling" = yes ||
9015 $as_test_x conftest$ac_exeext
9017 ac_cv_working_alloca_h=yes
9019 $as_echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9022 ac_cv_working_alloca_h=no
9025 rm -rf conftest.dSYM
9026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9027 conftest$ac_exeext conftest.$ac_ext
9029 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9030 $as_echo "$ac_cv_working_alloca_h" >&6; }
9031 if test $ac_cv_working_alloca_h = yes; then
9033 cat >>confdefs.h <<\_ACEOF
9034 #define HAVE_ALLOCA_H 1
9039 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
9040 $as_echo_n "checking for alloca... " >&6; }
9041 if test "${ac_cv_func_alloca_works+set}" = set; then
9042 $as_echo_n "(cached) " >&6
9044 cat >conftest.$ac_ext <<_ACEOF
9047 cat confdefs.h >>conftest.$ac_ext
9048 cat >>conftest.$ac_ext <<_ACEOF
9049 /* end confdefs.h. */
9051 # define alloca __builtin_alloca
9054 # include <malloc.h>
9055 # define alloca _alloca
9057 # ifdef HAVE_ALLOCA_H
9058 # include <alloca.h>
9063 # ifndef alloca /* predefined by HP cc +Olibcalls */
9074 char *p = (char *) alloca (1);
9080 rm -rf conftest.$ac_objext conftest$ac_exeext
9081 if { (ac_try="$ac_link"
9083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9084 *) ac_try_echo=$ac_try;;
9086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9087 $as_echo "$ac_try_echo") >&5
9088 (eval "$ac_link") 2>conftest.er1
9090 grep -v '^ *+' conftest.er1 >conftest.err
9092 cat conftest.err >&5
9093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); } && {
9095 test -z "$ac_c_werror_flag" ||
9096 test ! -s conftest.err
9097 } && test -s conftest$ac_exeext && {
9098 test "$cross_compiling" = yes ||
9099 $as_test_x conftest$ac_exeext
9101 ac_cv_func_alloca_works=yes
9103 $as_echo "$as_me: failed program was:" >&5
9104 sed 's/^/| /' conftest.$ac_ext >&5
9106 ac_cv_func_alloca_works=no
9109 rm -rf conftest.dSYM
9110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9111 conftest$ac_exeext conftest.$ac_ext
9113 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9114 $as_echo "$ac_cv_func_alloca_works" >&6; }
9116 if test $ac_cv_func_alloca_works = yes; then
9118 cat >>confdefs.h <<\_ACEOF
9119 #define HAVE_ALLOCA 1
9123 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9124 # that cause trouble. Some versions do not even contain alloca or
9125 # contain a buggy version. If you still want to use their alloca,
9126 # use ar to extract alloca.o from them instead of compiling alloca.c.
9128 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9130 cat >>confdefs.h <<\_ACEOF
9135 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9136 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9137 if test "${ac_cv_os_cray+set}" = set; then
9138 $as_echo_n "(cached) " >&6
9140 cat >conftest.$ac_ext <<_ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146 #if defined CRAY && ! defined CRAY2
9153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9154 $EGREP "webecray" >/dev/null 2>&1; then
9162 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9163 $as_echo "$ac_cv_os_cray" >&6; }
9164 if test $ac_cv_os_cray = yes; then
9165 for ac_func in _getb67 GETB67 getb67; do
9166 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9167 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9168 $as_echo_n "checking for $ac_func... " >&6; }
9169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9170 $as_echo_n "(cached) " >&6
9172 cat >conftest.$ac_ext <<_ACEOF
9175 cat confdefs.h >>conftest.$ac_ext
9176 cat >>conftest.$ac_ext <<_ACEOF
9177 /* end confdefs.h. */
9178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9180 #define $ac_func innocuous_$ac_func
9182 /* System header to define __stub macros and hopefully few prototypes,
9183 which can conflict with char $ac_func (); below.
9184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9185 <limits.h> exists even on freestanding compilers. */
9188 # include <limits.h>
9190 # include <assert.h>
9195 /* Override any GCC internal prototype to avoid an error.
9196 Use char because int might match the return type of a GCC
9197 builtin and then its argument prototype would still apply. */
9202 /* The GNU C library defines this for functions which it implements
9203 to always fail with ENOSYS. Some functions are actually named
9204 something starting with __ and the normal name is an alias. */
9205 #if defined __stub_$ac_func || defined __stub___$ac_func
9217 rm -rf conftest.$ac_objext conftest$ac_exeext
9218 if { (ac_try="$ac_link"
9220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9221 *) ac_try_echo=$ac_try;;
9223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9224 $as_echo "$ac_try_echo") >&5
9225 (eval "$ac_link") 2>conftest.er1
9227 grep -v '^ *+' conftest.er1 >conftest.err
9229 cat conftest.err >&5
9230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } && {
9232 test -z "$ac_c_werror_flag" ||
9233 test ! -s conftest.err
9234 } && test -s conftest$ac_exeext && {
9235 test "$cross_compiling" = yes ||
9236 $as_test_x conftest$ac_exeext
9238 eval "$as_ac_var=yes"
9240 $as_echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9243 eval "$as_ac_var=no"
9246 rm -rf conftest.dSYM
9247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9248 conftest$ac_exeext conftest.$ac_ext
9250 ac_res=`eval 'as_val=${'$as_ac_var'}
9251 $as_echo "$as_val"'`
9252 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9253 $as_echo "$ac_res" >&6; }
9254 as_val=`eval 'as_val=${'$as_ac_var'}
9255 $as_echo "$as_val"'`
9256 if test "x$as_val" = x""yes; then
9258 cat >>confdefs.h <<_ACEOF
9259 #define CRAY_STACKSEG_END $ac_func
9268 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9269 $as_echo_n "checking stack direction for C alloca... " >&6; }
9270 if test "${ac_cv_c_stack_direction+set}" = set; then
9271 $as_echo_n "(cached) " >&6
9273 if test "$cross_compiling" = yes; then
9274 ac_cv_c_stack_direction=0
9276 cat >conftest.$ac_ext <<_ACEOF
9279 cat confdefs.h >>conftest.$ac_ext
9280 cat >>conftest.$ac_ext <<_ACEOF
9281 /* end confdefs.h. */
9282 $ac_includes_default
9284 find_stack_direction ()
9286 static char *addr = 0;
9291 return find_stack_direction ();
9294 return (&dummy > addr) ? 1 : -1;
9300 return find_stack_direction () < 0;
9303 rm -rf conftest$ac_exeext
9304 if { (ac_try="$ac_link"
9306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307 *) ac_try_echo=$ac_try;;
9309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9310 $as_echo "$ac_try_echo") >&5
9311 (eval "$ac_link") 2>&5
9313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9315 { (case "(($ac_try" in
9316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9317 *) ac_try_echo=$ac_try;;
9319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9320 $as_echo "$ac_try_echo") >&5
9321 (eval "$ac_try") 2>&5
9323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; }; then
9325 ac_cv_c_stack_direction=1
9327 $as_echo "$as_me: program exited with status $ac_status" >&5
9328 $as_echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9332 ac_cv_c_stack_direction=-1
9334 rm -rf conftest.dSYM
9335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9340 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9341 $as_echo "$ac_cv_c_stack_direction" >&6; }
9343 cat >>confdefs.h <<_ACEOF
9344 #define STACK_DIRECTION $ac_cv_c_stack_direction
9352 for ac_header in stdlib.h unistd.h
9354 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9356 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9357 $as_echo_n "checking for $ac_header... " >&6; }
9358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9359 $as_echo_n "(cached) " >&6
9361 ac_res=`eval 'as_val=${'$as_ac_Header'}
9362 $as_echo "$as_val"'`
9363 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9364 $as_echo "$ac_res" >&6; }
9366 # Is the header compilable?
9367 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9368 $as_echo_n "checking $ac_header usability... " >&6; }
9369 cat >conftest.$ac_ext <<_ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 $ac_includes_default
9376 #include <$ac_header>
9378 rm -rf conftest.$ac_objext
9379 if { (ac_try="$ac_compile"
9381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9382 *) ac_try_echo=$ac_try;;
9384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9385 $as_echo "$ac_try_echo") >&5
9386 (eval "$ac_compile") 2>conftest.er1
9388 grep -v '^ *+' conftest.er1 >conftest.err
9390 cat conftest.err >&5
9391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } && {
9393 test -z "$ac_c_werror_flag" ||
9394 test ! -s conftest.err
9395 } && test -s conftest.$ac_objext; then
9396 ac_header_compiler=yes
9398 $as_echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9401 ac_header_compiler=no
9404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9405 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9406 $as_echo "$ac_header_compiler" >&6; }
9408 # Is the header present?
9409 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9410 $as_echo_n "checking $ac_header presence... " >&6; }
9411 cat >conftest.$ac_ext <<_ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h. */
9417 #include <$ac_header>
9419 if { (ac_try="$ac_cpp conftest.$ac_ext"
9421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9422 *) ac_try_echo=$ac_try;;
9424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9425 $as_echo "$ac_try_echo") >&5
9426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9428 grep -v '^ *+' conftest.er1 >conftest.err
9430 cat conftest.err >&5
9431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } >/dev/null && {
9433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9434 test ! -s conftest.err
9436 ac_header_preproc=yes
9438 $as_echo "$as_me: failed program was:" >&5
9439 sed 's/^/| /' conftest.$ac_ext >&5
9441 ac_header_preproc=no
9444 rm -rf conftest.err conftest.$ac_ext
9445 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9446 $as_echo "$ac_header_preproc" >&6; }
9448 # So? What about this header?
9449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9452 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9454 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9455 ac_header_preproc=yes
9458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9459 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9461 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9463 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9465 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9467 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9469 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9473 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9474 $as_echo_n "checking for $ac_header... " >&6; }
9475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9476 $as_echo_n "(cached) " >&6
9478 eval "$as_ac_Header=\$ac_header_preproc"
9480 ac_res=`eval 'as_val=${'$as_ac_Header'}
9481 $as_echo "$as_val"'`
9482 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9483 $as_echo "$ac_res" >&6; }
9486 as_val=`eval 'as_val=${'$as_ac_Header'}
9487 $as_echo "$as_val"'`
9488 if test "x$as_val" = x""yes; then
9489 cat >>confdefs.h <<_ACEOF
9490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9498 for ac_func in getpagesize
9500 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9501 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9502 $as_echo_n "checking for $ac_func... " >&6; }
9503 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9504 $as_echo_n "(cached) " >&6
9506 cat >conftest.$ac_ext <<_ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h. */
9512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9514 #define $ac_func innocuous_$ac_func
9516 /* System header to define __stub macros and hopefully few prototypes,
9517 which can conflict with char $ac_func (); below.
9518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9519 <limits.h> exists even on freestanding compilers. */
9522 # include <limits.h>
9524 # include <assert.h>
9529 /* Override any GCC internal prototype to avoid an error.
9530 Use char because int might match the return type of a GCC
9531 builtin and then its argument prototype would still apply. */
9536 /* The GNU C library defines this for functions which it implements
9537 to always fail with ENOSYS. Some functions are actually named
9538 something starting with __ and the normal name is an alias. */
9539 #if defined __stub_$ac_func || defined __stub___$ac_func
9551 rm -rf conftest.$ac_objext conftest$ac_exeext
9552 if { (ac_try="$ac_link"
9554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555 *) ac_try_echo=$ac_try;;
9557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9558 $as_echo "$ac_try_echo") >&5
9559 (eval "$ac_link") 2>conftest.er1
9561 grep -v '^ *+' conftest.er1 >conftest.err
9563 cat conftest.err >&5
9564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } && {
9566 test -z "$ac_c_werror_flag" ||
9567 test ! -s conftest.err
9568 } && test -s conftest$ac_exeext && {
9569 test "$cross_compiling" = yes ||
9570 $as_test_x conftest$ac_exeext
9572 eval "$as_ac_var=yes"
9574 $as_echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9577 eval "$as_ac_var=no"
9580 rm -rf conftest.dSYM
9581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9582 conftest$ac_exeext conftest.$ac_ext
9584 ac_res=`eval 'as_val=${'$as_ac_var'}
9585 $as_echo "$as_val"'`
9586 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9587 $as_echo "$ac_res" >&6; }
9588 as_val=`eval 'as_val=${'$as_ac_var'}
9589 $as_echo "$as_val"'`
9590 if test "x$as_val" = x""yes; then
9591 cat >>confdefs.h <<_ACEOF
9592 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9598 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
9599 $as_echo_n "checking for working mmap... " >&6; }
9600 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9601 $as_echo_n "(cached) " >&6
9603 if test "$cross_compiling" = yes; then
9604 ac_cv_func_mmap_fixed_mapped=no
9606 cat >conftest.$ac_ext <<_ACEOF
9609 cat confdefs.h >>conftest.$ac_ext
9610 cat >>conftest.$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9612 $ac_includes_default
9613 /* malloc might have been renamed as rpl_malloc. */
9616 /* Thanks to Mike Haertel and Jim Avera for this test.
9617 Here is a matrix of mmap possibilities:
9618 mmap private not fixed
9619 mmap private fixed at somewhere currently unmapped
9620 mmap private fixed at somewhere already mapped
9621 mmap shared not fixed
9622 mmap shared fixed at somewhere currently unmapped
9623 mmap shared fixed at somewhere already mapped
9624 For private mappings, we should verify that changes cannot be read()
9625 back from the file, nor mmap's back from the file at a different
9626 address. (There have been systems where private was not correctly
9627 implemented like the infamous i386 svr4.0, and systems where the
9628 VM page cache was not coherent with the file system buffer cache
9629 like early versions of FreeBSD and possibly contemporary NetBSD.)
9630 For shared mappings, we should conversely verify that changes get
9631 propagated back to all the places they're supposed to be.
9633 Grep wants private fixed already mapped.
9634 The main things grep needs to know about mmap are:
9635 * does it exist and is it safe to write into the mmap'd area
9636 * how to use it (BSD variants) */
9639 #include <sys/mman.h>
9641 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9645 /* This mess was copied from the GNU getpagesize.h. */
9646 #ifndef HAVE_GETPAGESIZE
9647 /* Assume that all systems that can run configure have sys/param.h. */
9648 # ifndef HAVE_SYS_PARAM_H
9649 # define HAVE_SYS_PARAM_H 1
9652 # ifdef _SC_PAGESIZE
9653 # define getpagesize() sysconf(_SC_PAGESIZE)
9654 # else /* no _SC_PAGESIZE */
9655 # ifdef HAVE_SYS_PARAM_H
9656 # include <sys/param.h>
9657 # ifdef EXEC_PAGESIZE
9658 # define getpagesize() EXEC_PAGESIZE
9659 # else /* no EXEC_PAGESIZE */
9661 # define getpagesize() NBPG * CLSIZE
9664 # endif /* no CLSIZE */
9665 # else /* no NBPG */
9667 # define getpagesize() NBPC
9668 # else /* no NBPC */
9670 # define getpagesize() PAGESIZE
9671 # endif /* PAGESIZE */
9672 # endif /* no NBPC */
9673 # endif /* no NBPG */
9674 # endif /* no EXEC_PAGESIZE */
9675 # else /* no HAVE_SYS_PARAM_H */
9676 # define getpagesize() 8192 /* punt totally */
9677 # endif /* no HAVE_SYS_PARAM_H */
9678 # endif /* no _SC_PAGESIZE */
9680 #endif /* no HAVE_GETPAGESIZE */
9685 char *data, *data2, *data3;
9689 pagesize = getpagesize ();
9691 /* First, make a file with some known garbage in it. */
9692 data = (char *) malloc (pagesize);
9695 for (i = 0; i < pagesize; ++i)
9696 *(data + i) = rand ();
9698 fd = creat ("conftest.mmap", 0600);
9701 if (write (fd, data, pagesize) != pagesize)
9705 /* Next, try to mmap the file at a fixed address which already has
9706 something else allocated at it. If we can, also make sure that
9707 we see the same garbage. */
9708 fd = open ("conftest.mmap", O_RDWR);
9711 data2 = (char *) malloc (2 * pagesize);
9714 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9715 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9716 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9718 for (i = 0; i < pagesize; ++i)
9719 if (*(data + i) != *(data2 + i))
9722 /* Finally, make sure that changes to the mapped area do not
9723 percolate back to the file as seen by read(). (This is a bug on
9724 some variants of i386 svr4.0.) */
9725 for (i = 0; i < pagesize; ++i)
9726 *(data2 + i) = *(data2 + i) + 1;
9727 data3 = (char *) malloc (pagesize);
9730 if (read (fd, data3, pagesize) != pagesize)
9732 for (i = 0; i < pagesize; ++i)
9733 if (*(data + i) != *(data3 + i))
9739 rm -rf conftest$ac_exeext
9740 if { (ac_try="$ac_link"
9742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743 *) ac_try_echo=$ac_try;;
9745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9746 $as_echo "$ac_try_echo") >&5
9747 (eval "$ac_link") 2>&5
9749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9751 { (case "(($ac_try" in
9752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753 *) ac_try_echo=$ac_try;;
9755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9756 $as_echo "$ac_try_echo") >&5
9757 (eval "$ac_try") 2>&5
9759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
9761 ac_cv_func_mmap_fixed_mapped=yes
9763 $as_echo "$as_me: program exited with status $ac_status" >&5
9764 $as_echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9768 ac_cv_func_mmap_fixed_mapped=no
9770 rm -rf conftest.dSYM
9771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9776 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9777 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9778 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9780 cat >>confdefs.h <<\_ACEOF
9785 rm -rf conftest.mmap
9796 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
9797 unistd.h sys/param.h
9799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9801 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9802 $as_echo_n "checking for $ac_header... " >&6; }
9803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9804 $as_echo_n "(cached) " >&6
9806 ac_res=`eval 'as_val=${'$as_ac_Header'}
9807 $as_echo "$as_val"'`
9808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9809 $as_echo "$ac_res" >&6; }
9811 # Is the header compilable?
9812 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9813 $as_echo_n "checking $ac_header usability... " >&6; }
9814 cat >conftest.$ac_ext <<_ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9820 $ac_includes_default
9821 #include <$ac_header>
9823 rm -rf conftest.$ac_objext
9824 if { (ac_try="$ac_compile"
9826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9827 *) ac_try_echo=$ac_try;;
9829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9830 $as_echo "$ac_try_echo") >&5
9831 (eval "$ac_compile") 2>conftest.er1
9833 grep -v '^ *+' conftest.er1 >conftest.err
9835 cat conftest.err >&5
9836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } && {
9838 test -z "$ac_c_werror_flag" ||
9839 test ! -s conftest.err
9840 } && test -s conftest.$ac_objext; then
9841 ac_header_compiler=yes
9843 $as_echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9846 ac_header_compiler=no
9849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9850 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9851 $as_echo "$ac_header_compiler" >&6; }
9853 # Is the header present?
9854 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9855 $as_echo_n "checking $ac_header presence... " >&6; }
9856 cat >conftest.$ac_ext <<_ACEOF
9859 cat confdefs.h >>conftest.$ac_ext
9860 cat >>conftest.$ac_ext <<_ACEOF
9861 /* end confdefs.h. */
9862 #include <$ac_header>
9864 if { (ac_try="$ac_cpp conftest.$ac_ext"
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9870 $as_echo "$ac_try_echo") >&5
9871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9873 grep -v '^ *+' conftest.er1 >conftest.err
9875 cat conftest.err >&5
9876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } >/dev/null && {
9878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9879 test ! -s conftest.err
9881 ac_header_preproc=yes
9883 $as_echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9886 ac_header_preproc=no
9889 rm -rf conftest.err conftest.$ac_ext
9890 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9891 $as_echo "$ac_header_preproc" >&6; }
9893 # So? What about this header?
9894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9897 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9899 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9900 ac_header_preproc=yes
9903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9904 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9906 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9908 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9910 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9912 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9914 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9918 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9919 $as_echo_n "checking for $ac_header... " >&6; }
9920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9921 $as_echo_n "(cached) " >&6
9923 eval "$as_ac_Header=\$ac_header_preproc"
9925 ac_res=`eval 'as_val=${'$as_ac_Header'}
9926 $as_echo "$as_val"'`
9927 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9928 $as_echo "$ac_res" >&6; }
9931 as_val=`eval 'as_val=${'$as_ac_Header'}
9932 $as_echo "$as_val"'`
9933 if test "x$as_val" = x""yes; then
9934 cat >>confdefs.h <<_ACEOF
9935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9953 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
9954 strdup __argz_count __argz_stringify __argz_next
9956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9957 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9958 $as_echo_n "checking for $ac_func... " >&6; }
9959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9960 $as_echo_n "(cached) " >&6
9962 cat >conftest.$ac_ext <<_ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9967 /* end confdefs.h. */
9968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9970 #define $ac_func innocuous_$ac_func
9972 /* System header to define __stub macros and hopefully few prototypes,
9973 which can conflict with char $ac_func (); below.
9974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9975 <limits.h> exists even on freestanding compilers. */
9978 # include <limits.h>
9980 # include <assert.h>
9985 /* Override any GCC internal prototype to avoid an error.
9986 Use char because int might match the return type of a GCC
9987 builtin and then its argument prototype would still apply. */
9992 /* The GNU C library defines this for functions which it implements
9993 to always fail with ENOSYS. Some functions are actually named
9994 something starting with __ and the normal name is an alias. */
9995 #if defined __stub_$ac_func || defined __stub___$ac_func
10002 return $ac_func ();
10007 rm -rf conftest.$ac_objext conftest$ac_exeext
10008 if { (ac_try="$ac_link"
10009 case "(($ac_try" in
10010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10011 *) ac_try_echo=$ac_try;;
10013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10014 $as_echo "$ac_try_echo") >&5
10015 (eval "$ac_link") 2>conftest.er1
10017 grep -v '^ *+' conftest.er1 >conftest.err
10018 rm -rf conftest.er1
10019 cat conftest.err >&5
10020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } && {
10022 test -z "$ac_c_werror_flag" ||
10023 test ! -s conftest.err
10024 } && test -s conftest$ac_exeext && {
10025 test "$cross_compiling" = yes ||
10026 $as_test_x conftest$ac_exeext
10028 eval "$as_ac_var=yes"
10030 $as_echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10033 eval "$as_ac_var=no"
10036 rm -rf conftest.dSYM
10037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10038 conftest$ac_exeext conftest.$ac_ext
10040 ac_res=`eval 'as_val=${'$as_ac_var'}
10041 $as_echo "$as_val"'`
10042 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10043 $as_echo "$ac_res" >&6; }
10044 as_val=`eval 'as_val=${'$as_ac_var'}
10045 $as_echo "$as_val"'`
10046 if test "x$as_val" = x""yes; then
10047 cat >>confdefs.h <<_ACEOF
10048 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10055 if test $ac_cv_header_locale_h = yes; then
10056 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10057 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10058 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10059 $as_echo_n "(cached) " >&6
10061 cat >conftest.$ac_ext <<_ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10067 #include <locale.h>
10076 rm -rf conftest.$ac_objext conftest$ac_exeext
10077 if { (ac_try="$ac_link"
10078 case "(($ac_try" in
10079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080 *) ac_try_echo=$ac_try;;
10082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10083 $as_echo "$ac_try_echo") >&5
10084 (eval "$ac_link") 2>conftest.er1
10086 grep -v '^ *+' conftest.er1 >conftest.err
10087 rm -rf conftest.er1
10088 cat conftest.err >&5
10089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); } && {
10091 test -z "$ac_c_werror_flag" ||
10092 test ! -s conftest.err
10093 } && test -s conftest$ac_exeext && {
10094 test "$cross_compiling" = yes ||
10095 $as_test_x conftest$ac_exeext
10097 am_cv_val_LC_MESSAGES=yes
10099 $as_echo "$as_me: failed program was:" >&5
10100 sed 's/^/| /' conftest.$ac_ext >&5
10102 am_cv_val_LC_MESSAGES=no
10105 rm -rf conftest.dSYM
10106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10107 conftest$ac_exeext conftest.$ac_ext
10109 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10110 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10111 if test $am_cv_val_LC_MESSAGES = yes; then
10113 cat >>confdefs.h <<\_ACEOF
10114 #define HAVE_LC_MESSAGES 1
10122 nls_cv_force_use_gnu_gettext="no"
10124 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10125 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10126 nls_cv_header_intl=
10127 nls_cv_header_libgt=
10130 if test "${ac_cv_header_libintl_h+set}" = set; then
10131 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
10132 $as_echo_n "checking for libintl.h... " >&6; }
10133 if test "${ac_cv_header_libintl_h+set}" = set; then
10134 $as_echo_n "(cached) " >&6
10136 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
10137 $as_echo "$ac_cv_header_libintl_h" >&6; }
10139 # Is the header compilable?
10140 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
10141 $as_echo_n "checking libintl.h usability... " >&6; }
10142 cat >conftest.$ac_ext <<_ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10148 $ac_includes_default
10149 #include <libintl.h>
10151 rm -rf conftest.$ac_objext
10152 if { (ac_try="$ac_compile"
10153 case "(($ac_try" in
10154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10155 *) ac_try_echo=$ac_try;;
10157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10158 $as_echo "$ac_try_echo") >&5
10159 (eval "$ac_compile") 2>conftest.er1
10161 grep -v '^ *+' conftest.er1 >conftest.err
10162 rm -rf conftest.er1
10163 cat conftest.err >&5
10164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } && {
10166 test -z "$ac_c_werror_flag" ||
10167 test ! -s conftest.err
10168 } && test -s conftest.$ac_objext; then
10169 ac_header_compiler=yes
10171 $as_echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10174 ac_header_compiler=no
10177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10178 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10179 $as_echo "$ac_header_compiler" >&6; }
10181 # Is the header present?
10182 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
10183 $as_echo_n "checking libintl.h presence... " >&6; }
10184 cat >conftest.$ac_ext <<_ACEOF
10187 cat confdefs.h >>conftest.$ac_ext
10188 cat >>conftest.$ac_ext <<_ACEOF
10189 /* end confdefs.h. */
10190 #include <libintl.h>
10192 if { (ac_try="$ac_cpp conftest.$ac_ext"
10193 case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10198 $as_echo "$ac_try_echo") >&5
10199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10201 grep -v '^ *+' conftest.er1 >conftest.err
10202 rm -rf conftest.er1
10203 cat conftest.err >&5
10204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); } >/dev/null && {
10206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10207 test ! -s conftest.err
10209 ac_header_preproc=yes
10211 $as_echo "$as_me: failed program was:" >&5
10212 sed 's/^/| /' conftest.$ac_ext >&5
10214 ac_header_preproc=no
10217 rm -rf conftest.err conftest.$ac_ext
10218 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10219 $as_echo "$ac_header_preproc" >&6; }
10221 # So? What about this header?
10222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10224 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10225 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10226 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
10227 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
10228 ac_header_preproc=yes
10231 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
10232 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
10233 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
10234 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
10235 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
10236 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
10237 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
10238 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
10239 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
10240 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
10241 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
10242 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
10246 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
10247 $as_echo_n "checking for libintl.h... " >&6; }
10248 if test "${ac_cv_header_libintl_h+set}" = set; then
10249 $as_echo_n "(cached) " >&6
10251 ac_cv_header_libintl_h=$ac_header_preproc
10253 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
10254 $as_echo "$ac_cv_header_libintl_h" >&6; }
10257 if test "x$ac_cv_header_libintl_h" = x""yes; then
10258 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
10259 $as_echo_n "checking for dgettext in libc... " >&6; }
10260 if test "${gt_cv_func_dgettext_libc+set}" = set; then
10261 $as_echo_n "(cached) " >&6
10263 cat >conftest.$ac_ext <<_ACEOF
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h. */
10269 #include <libintl.h>
10273 return (int) dgettext ("","")
10278 rm -rf conftest.$ac_objext conftest$ac_exeext
10279 if { (ac_try="$ac_link"
10280 case "(($ac_try" in
10281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282 *) ac_try_echo=$ac_try;;
10284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10285 $as_echo "$ac_try_echo") >&5
10286 (eval "$ac_link") 2>conftest.er1
10288 grep -v '^ *+' conftest.er1 >conftest.err
10289 rm -rf conftest.er1
10290 cat conftest.err >&5
10291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } && {
10293 test -z "$ac_c_werror_flag" ||
10294 test ! -s conftest.err
10295 } && test -s conftest$ac_exeext && {
10296 test "$cross_compiling" = yes ||
10297 $as_test_x conftest$ac_exeext
10299 gt_cv_func_dgettext_libc=yes
10301 $as_echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10304 gt_cv_func_dgettext_libc=no
10307 rm -rf conftest.dSYM
10308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10309 conftest$ac_exeext conftest.$ac_ext
10311 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
10312 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
10314 if test "$gt_cv_func_dgettext_libc" != "yes"; then
10315 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
10316 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
10317 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
10318 $as_echo_n "(cached) " >&6
10320 ac_check_lib_save_LIBS=$LIBS
10321 LIBS="-lintl $LIBS"
10322 cat >conftest.$ac_ext <<_ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10329 /* Override any GCC internal prototype to avoid an error.
10330 Use char because int might match the return type of a GCC
10331 builtin and then its argument prototype would still apply. */
10335 char bindtextdomain ();
10339 return bindtextdomain ();
10344 rm -rf conftest.$ac_objext conftest$ac_exeext
10345 if { (ac_try="$ac_link"
10346 case "(($ac_try" in
10347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10348 *) ac_try_echo=$ac_try;;
10350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10351 $as_echo "$ac_try_echo") >&5
10352 (eval "$ac_link") 2>conftest.er1
10354 grep -v '^ *+' conftest.er1 >conftest.err
10355 rm -rf conftest.er1
10356 cat conftest.err >&5
10357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } && {
10359 test -z "$ac_c_werror_flag" ||
10360 test ! -s conftest.err
10361 } && test -s conftest$ac_exeext && {
10362 test "$cross_compiling" = yes ||
10363 $as_test_x conftest$ac_exeext
10365 ac_cv_lib_intl_bindtextdomain=yes
10367 $as_echo "$as_me: failed program was:" >&5
10368 sed 's/^/| /' conftest.$ac_ext >&5
10370 ac_cv_lib_intl_bindtextdomain=no
10373 rm -rf conftest.dSYM
10374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10375 conftest$ac_exeext conftest.$ac_ext
10376 LIBS=$ac_check_lib_save_LIBS
10378 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
10379 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
10380 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
10381 { $as_echo "$as_me:$LINENO: checking for dgettext in libintl" >&5
10382 $as_echo_n "checking for dgettext in libintl... " >&6; }
10383 if test "${gt_cv_func_dgettext_libintl+set}" = set; then
10384 $as_echo_n "(cached) " >&6
10386 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
10387 $as_echo_n "checking for dgettext in -lintl... " >&6; }
10388 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
10389 $as_echo_n "(cached) " >&6
10391 ac_check_lib_save_LIBS=$LIBS
10392 LIBS="-lintl $LIBS"
10393 cat >conftest.$ac_ext <<_ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10400 /* Override any GCC internal prototype to avoid an error.
10401 Use char because int might match the return type of a GCC
10402 builtin and then its argument prototype would still apply. */
10410 return dgettext ();
10415 rm -rf conftest.$ac_objext conftest$ac_exeext
10416 if { (ac_try="$ac_link"
10417 case "(($ac_try" in
10418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10419 *) ac_try_echo=$ac_try;;
10421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10422 $as_echo "$ac_try_echo") >&5
10423 (eval "$ac_link") 2>conftest.er1
10425 grep -v '^ *+' conftest.er1 >conftest.err
10426 rm -rf conftest.er1
10427 cat conftest.err >&5
10428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } && {
10430 test -z "$ac_c_werror_flag" ||
10431 test ! -s conftest.err
10432 } && test -s conftest$ac_exeext && {
10433 test "$cross_compiling" = yes ||
10434 $as_test_x conftest$ac_exeext
10436 ac_cv_lib_intl_dgettext=yes
10438 $as_echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.$ac_ext >&5
10441 ac_cv_lib_intl_dgettext=no
10444 rm -rf conftest.dSYM
10445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10446 conftest$ac_exeext conftest.$ac_ext
10447 LIBS=$ac_check_lib_save_LIBS
10449 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
10450 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
10451 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
10452 gt_cv_func_dgettext_libintl=yes
10454 gt_cv_func_dgettext_libintl=no
10458 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libintl" >&5
10459 $as_echo "$gt_cv_func_dgettext_libintl" >&6; }
10464 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
10465 LIBS="$LIBS -lintl";
10468 if test "$gt_cv_func_dgettext_libc" = "yes" \
10469 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
10471 cat >>confdefs.h <<\_ACEOF
10472 #define HAVE_GETTEXT 1
10475 # Extract the first word of "msgfmt", so it can be a program name with args.
10476 set dummy msgfmt; ac_word=$2
10477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10478 $as_echo_n "checking for $ac_word... " >&6; }
10479 if test "${ac_cv_path_MSGFMT+set}" = set; then
10480 $as_echo_n "(cached) " >&6
10484 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10488 for ac_dir in $PATH; do
10489 test -z "$ac_dir" && ac_dir=.
10490 if test -f $ac_dir/$ac_word; then
10491 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
10492 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
10498 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
10502 MSGFMT="$ac_cv_path_MSGFMT"
10503 if test -n "$MSGFMT"; then
10504 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10505 $as_echo "$MSGFMT" >&6; }
10507 { $as_echo "$as_me:$LINENO: result: no" >&5
10508 $as_echo "no" >&6; }
10510 if test "$MSGFMT" != "no"; then
10512 for ac_func in dcgettext
10514 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10515 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10516 $as_echo_n "checking for $ac_func... " >&6; }
10517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10518 $as_echo_n "(cached) " >&6
10520 cat >conftest.$ac_ext <<_ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h. */
10526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10528 #define $ac_func innocuous_$ac_func
10530 /* System header to define __stub macros and hopefully few prototypes,
10531 which can conflict with char $ac_func (); below.
10532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10533 <limits.h> exists even on freestanding compilers. */
10536 # include <limits.h>
10538 # include <assert.h>
10543 /* Override any GCC internal prototype to avoid an error.
10544 Use char because int might match the return type of a GCC
10545 builtin and then its argument prototype would still apply. */
10550 /* The GNU C library defines this for functions which it implements
10551 to always fail with ENOSYS. Some functions are actually named
10552 something starting with __ and the normal name is an alias. */
10553 #if defined __stub_$ac_func || defined __stub___$ac_func
10560 return $ac_func ();
10565 rm -rf conftest.$ac_objext conftest$ac_exeext
10566 if { (ac_try="$ac_link"
10567 case "(($ac_try" in
10568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10572 $as_echo "$ac_try_echo") >&5
10573 (eval "$ac_link") 2>conftest.er1
10575 grep -v '^ *+' conftest.er1 >conftest.err
10576 rm -rf conftest.er1
10577 cat conftest.err >&5
10578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } && {
10580 test -z "$ac_c_werror_flag" ||
10581 test ! -s conftest.err
10582 } && test -s conftest$ac_exeext && {
10583 test "$cross_compiling" = yes ||
10584 $as_test_x conftest$ac_exeext
10586 eval "$as_ac_var=yes"
10588 $as_echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10591 eval "$as_ac_var=no"
10594 rm -rf conftest.dSYM
10595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10596 conftest$ac_exeext conftest.$ac_ext
10598 ac_res=`eval 'as_val=${'$as_ac_var'}
10599 $as_echo "$as_val"'`
10600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10601 $as_echo "$ac_res" >&6; }
10602 as_val=`eval 'as_val=${'$as_ac_var'}
10603 $as_echo "$as_val"'`
10604 if test "x$as_val" = x""yes; then
10605 cat >>confdefs.h <<_ACEOF
10606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10612 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10613 set dummy gmsgfmt; ac_word=$2
10614 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10615 $as_echo_n "checking for $ac_word... " >&6; }
10616 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10617 $as_echo_n "(cached) " >&6
10621 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625 for as_dir in $PATH
10628 test -z "$as_dir" && as_dir=.
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10631 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10632 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10639 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10643 GMSGFMT=$ac_cv_path_GMSGFMT
10644 if test -n "$GMSGFMT"; then
10645 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10646 $as_echo "$GMSGFMT" >&6; }
10648 { $as_echo "$as_me:$LINENO: result: no" >&5
10649 $as_echo "no" >&6; }
10653 # Extract the first word of "xgettext", so it can be a program name with args.
10654 set dummy xgettext; ac_word=$2
10655 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10656 $as_echo_n "checking for $ac_word... " >&6; }
10657 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10658 $as_echo_n "(cached) " >&6
10660 case "$XGETTEXT" in
10662 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10666 for ac_dir in $PATH; do
10667 test -z "$ac_dir" && ac_dir=.
10668 if test -f $ac_dir/$ac_word; then
10669 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
10670 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
10676 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10680 XGETTEXT="$ac_cv_path_XGETTEXT"
10681 if test -n "$XGETTEXT"; then
10682 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10683 $as_echo "$XGETTEXT" >&6; }
10685 { $as_echo "$as_me:$LINENO: result: no" >&5
10686 $as_echo "no" >&6; }
10689 cat >conftest.$ac_ext <<_ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10699 extern int _nl_msg_cat_cntr;
10700 return _nl_msg_cat_cntr
10705 rm -rf conftest.$ac_objext conftest$ac_exeext
10706 if { (ac_try="$ac_link"
10707 case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10712 $as_echo "$ac_try_echo") >&5
10713 (eval "$ac_link") 2>conftest.er1
10715 grep -v '^ *+' conftest.er1 >conftest.err
10716 rm -rf conftest.er1
10717 cat conftest.err >&5
10718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } && {
10720 test -z "$ac_c_werror_flag" ||
10721 test ! -s conftest.err
10722 } && test -s conftest$ac_exeext && {
10723 test "$cross_compiling" = yes ||
10724 $as_test_x conftest$ac_exeext
10729 $as_echo "$as_me: failed program was:" >&5
10730 sed 's/^/| /' conftest.$ac_ext >&5
10736 rm -rf conftest.dSYM
10737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10738 conftest$ac_exeext conftest.$ac_ext
10743 # Added by Martin Baulig 12/15/98 for libc5 systems
10744 if test "$gt_cv_func_dgettext_libc" != "yes" \
10745 && test "$gt_cv_func_dgettext_libintl" = "yes"; then
10747 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
10754 if test "$CATOBJEXT" = "NONE"; then
10755 nls_cv_use_gnu_gettext=yes
10759 if test "$nls_cv_use_gnu_gettext" != "yes"; then
10761 cat >>confdefs.h <<\_ACEOF
10762 #define ENABLE_NLS 1
10769 if test "$XGETTEXT" != ":"; then
10770 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
10773 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10774 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
10779 # We need to process the po/ directory.
10782 ac_config_commands="$ac_config_commands default-2"
10785 for lang in $ALL_LINGUAS; do
10786 GMOFILES="$GMOFILES $lang.gmo"
10787 POFILES="$POFILES $lang.po"
10802 if test "x$CATOBJEXT" != "x"; then
10803 if test "x$ALL_LINGUAS" = "x"; then
10806 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10807 $as_echo_n "checking for catalogs to be installed... " >&6; }
10809 for lang in ${LINGUAS=$ALL_LINGUAS}; do
10810 case "$ALL_LINGUAS" in
10811 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
10814 LINGUAS=$NEW_LINGUAS
10815 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
10816 $as_echo "$LINGUAS" >&6; }
10819 if test -n "$LINGUAS"; then
10820 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
10824 test -d po || mkdir po
10825 if test "$CATOBJEXT" = ".cat"; then
10826 if test "${ac_cv_header_linux_version_h+set}" = set; then
10827 { $as_echo "$as_me:$LINENO: checking for linux/version.h" >&5
10828 $as_echo_n "checking for linux/version.h... " >&6; }
10829 if test "${ac_cv_header_linux_version_h+set}" = set; then
10830 $as_echo_n "(cached) " >&6
10832 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
10833 $as_echo "$ac_cv_header_linux_version_h" >&6; }
10835 # Is the header compilable?
10836 { $as_echo "$as_me:$LINENO: checking linux/version.h usability" >&5
10837 $as_echo_n "checking linux/version.h usability... " >&6; }
10838 cat >conftest.$ac_ext <<_ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10844 $ac_includes_default
10845 #include <linux/version.h>
10847 rm -rf conftest.$ac_objext
10848 if { (ac_try="$ac_compile"
10849 case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10854 $as_echo "$ac_try_echo") >&5
10855 (eval "$ac_compile") 2>conftest.er1
10857 grep -v '^ *+' conftest.er1 >conftest.err
10858 rm -rf conftest.er1
10859 cat conftest.err >&5
10860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); } && {
10862 test -z "$ac_c_werror_flag" ||
10863 test ! -s conftest.err
10864 } && test -s conftest.$ac_objext; then
10865 ac_header_compiler=yes
10867 $as_echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.$ac_ext >&5
10870 ac_header_compiler=no
10873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10874 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10875 $as_echo "$ac_header_compiler" >&6; }
10877 # Is the header present?
10878 { $as_echo "$as_me:$LINENO: checking linux/version.h presence" >&5
10879 $as_echo_n "checking linux/version.h presence... " >&6; }
10880 cat >conftest.$ac_ext <<_ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10886 #include <linux/version.h>
10888 if { (ac_try="$ac_cpp conftest.$ac_ext"
10889 case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10894 $as_echo "$ac_try_echo") >&5
10895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10897 grep -v '^ *+' conftest.er1 >conftest.err
10898 rm -rf conftest.er1
10899 cat conftest.err >&5
10900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } >/dev/null && {
10902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10903 test ! -s conftest.err
10905 ac_header_preproc=yes
10907 $as_echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10910 ac_header_preproc=no
10913 rm -rf conftest.err conftest.$ac_ext
10914 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10915 $as_echo "$ac_header_preproc" >&6; }
10917 # So? What about this header?
10918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10920 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
10921 $as_echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10922 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
10923 $as_echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
10924 ac_header_preproc=yes
10927 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
10928 $as_echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
10929 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
10930 $as_echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
10931 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
10932 $as_echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
10933 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
10934 $as_echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
10935 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
10936 $as_echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
10937 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
10938 $as_echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
10942 { $as_echo "$as_me:$LINENO: checking for linux/version.h" >&5
10943 $as_echo_n "checking for linux/version.h... " >&6; }
10944 if test "${ac_cv_header_linux_version_h+set}" = set; then
10945 $as_echo_n "(cached) " >&6
10947 ac_cv_header_linux_version_h=$ac_header_preproc
10949 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
10950 $as_echo "$ac_cv_header_linux_version_h" >&6; }
10953 if test "x$ac_cv_header_linux_version_h" = x""yes; then
10961 sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
10966 # jwz: fuck this! it puts hardcoded pathnames into the generated Makefiles!
10968 # if test -n "$ac_aux_dir"; then
10969 # MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
10971 if test -z "$MKINSTALLDIRS"; then
10972 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10975 # jwz: you know what, screw it. Let's just use the version that I
10976 # already computed in configure.in, instead of this version that came
10977 # with the i18n crud, ok?
10978 MKINSTALLDIRS="$INSTALL_DIRS"
10983 test -d po || mkdir po
10984 if test "x$srcdir" != "x."; then
10985 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
10986 posrcprefix="$srcdir/"
10988 posrcprefix="../$srcdir/"
10994 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
10995 < $srcdir/po/POTFILES.in > po/POTFILES
10997 MKINSTALLDIRS="$INSTALL_DIRS"
11000 ###############################################################################
11002 # Check for -lXmu (some fucked up vendors don't ship it...)
11004 ###############################################################################
11008 ac_save_CPPFLAGS="$CPPFLAGS"
11009 if test \! -z "$includedir" ; then
11010 CPPFLAGS="$CPPFLAGS -I$includedir"
11012 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11013 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11014 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Error.h" >&5
11015 $as_echo_n "checking for X11/Xmu/Error.h... " >&6; }
11016 if test "${ac_cv_header_X11_Xmu_Error_h+set}" = set; then
11017 $as_echo_n "(cached) " >&6
11019 cat >conftest.$ac_ext <<_ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 #include <stdlib.h>
11027 #include <X11/Intrinsic.h>
11029 #include <X11/Xmu/Error.h>
11031 rm -rf conftest.$ac_objext
11032 if { (ac_try="$ac_compile"
11033 case "(($ac_try" in
11034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035 *) ac_try_echo=$ac_try;;
11037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11038 $as_echo "$ac_try_echo") >&5
11039 (eval "$ac_compile") 2>conftest.er1
11041 grep -v '^ *+' conftest.er1 >conftest.err
11042 rm -rf conftest.er1
11043 cat conftest.err >&5
11044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); } && {
11046 test -z "$ac_c_werror_flag" ||
11047 test ! -s conftest.err
11048 } && test -s conftest.$ac_objext; then
11049 ac_cv_header_X11_Xmu_Error_h=yes
11051 $as_echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11054 ac_cv_header_X11_Xmu_Error_h=no
11057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11059 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xmu_Error_h" >&5
11060 $as_echo "$ac_cv_header_X11_Xmu_Error_h" >&6; }
11061 if test "x$ac_cv_header_X11_Xmu_Error_h" = x""yes; then
11066 CPPFLAGS="$ac_save_CPPFLAGS"
11067 if test "$have_xmu" = no ; then
11068 XMU_SRCS='$(UTILS_SRC)/xmu.c'
11069 XMU_OBJS='$(UTILS_BIN)/xmu.o'
11075 cat >>confdefs.h <<\_ACEOF
11082 ###############################################################################
11084 # Check for the SunOS 4.1.x _get_wmShellWidgetClass bug.
11085 # See comp.windows.x FAQ question 124. The right fix is to
11086 # get OpenWindows 3.0 patches 100512-02 and 100573-03.
11088 ###############################################################################
11090 if test "$have_xmu" = yes ; then
11093 { $as_echo "$as_me:$LINENO: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
11094 $as_echo_n "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug... " >&6; }
11095 if test "${ac_cv_sunos_xmu_bug+set}" = set; then
11096 $as_echo_n "(cached) " >&6
11098 ac_save_LDFLAGS="$LDFLAGS"
11099 if test \! -z "$x_libraries" ; then
11100 LDFLAGS="$LDFLAGS -L$x_libraries"
11102 # Note: this trick never works! (Generally.)
11103 # We're only getting away with using AC_TRY_LINK
11104 # with X libraries because we know it's SunOS.
11105 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
11106 cat >conftest.$ac_ext <<_ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11121 rm -rf conftest.$ac_objext conftest$ac_exeext
11122 if { (ac_try="$ac_link"
11123 case "(($ac_try" in
11124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11125 *) ac_try_echo=$ac_try;;
11127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11128 $as_echo "$ac_try_echo") >&5
11129 (eval "$ac_link") 2>conftest.er1
11131 grep -v '^ *+' conftest.er1 >conftest.err
11132 rm -rf conftest.er1
11133 cat conftest.err >&5
11134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } && {
11136 test -z "$ac_c_werror_flag" ||
11137 test ! -s conftest.err
11138 } && test -s conftest$ac_exeext && {
11139 test "$cross_compiling" = yes ||
11140 $as_test_x conftest$ac_exeext
11142 ac_cv_sunos_xmu_bug=no
11144 $as_echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11147 ac_cv_sunos_xmu_bug=yes
11150 rm -rf conftest.dSYM
11151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11152 conftest$ac_exeext conftest.$ac_ext
11153 LDFLAGS="$ac_save_LDFLAGS"
11155 { $as_echo "$as_me:$LINENO: result: $ac_cv_sunos_xmu_bug" >&5
11156 $as_echo "$ac_cv_sunos_xmu_bug" >&6; }
11157 if test "$ac_cv_sunos_xmu_bug" = yes ; then
11158 { $as_echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
11159 $as_echo_n "checking whether the compiler understands -static... " >&6; }
11160 if test "${ac_cv_ld_static+set}" = set; then
11161 $as_echo_n "(cached) " >&6
11163 ac_save_LDFLAGS="$LDFLAGS"
11164 LDFLAGS="$LDFLAGS -static"
11165 cat >conftest.$ac_ext <<_ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h. */
11180 rm -rf conftest.$ac_objext conftest$ac_exeext
11181 if { (ac_try="$ac_link"
11182 case "(($ac_try" in
11183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11187 $as_echo "$ac_try_echo") >&5
11188 (eval "$ac_link") 2>conftest.er1
11190 grep -v '^ *+' conftest.er1 >conftest.err
11191 rm -rf conftest.er1
11192 cat conftest.err >&5
11193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } && {
11195 test -z "$ac_c_werror_flag" ||
11196 test ! -s conftest.err
11197 } && test -s conftest$ac_exeext && {
11198 test "$cross_compiling" = yes ||
11199 $as_test_x conftest$ac_exeext
11201 ac_cv_ld_static=yes
11203 $as_echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11209 rm -rf conftest.dSYM
11210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11211 conftest$ac_exeext conftest.$ac_ext
11212 LDFLAGS="$ac_save_LDFLAGS"
11214 { $as_echo "$as_me:$LINENO: result: $ac_cv_ld_static" >&5
11215 $as_echo "$ac_cv_ld_static" >&6; }
11216 if test "$ac_cv_ld_static" = yes ; then
11217 LDFLAGS="$LDFLAGS -static"
11219 LDFLAGS="$LDFLAGS -Bstatic"
11227 ###############################################################################
11229 # Handle the --with-hackdir option
11231 ###############################################################################
11234 with_hackdir_req=unspecified
11236 # Check whether --with-hackdir was given.
11237 if test "${with_hackdir+set}" = set; then
11238 withval=$with_hackdir; with_hackdir="$withval"; with_hackdir_req="$withval"
11244 if test x"$with_hackdir" = xyes; then
11245 HACKDIR='${libexecdir}/xscreensaver'
11246 elif test x"$with_hackdir" = xno; then
11247 HACKDIR='${bindir}'
11249 HACKDIR=$with_hackdir
11252 # canonicalize slashes.
11253 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
11255 # Expand HACKDIR as HACKDIR_FULL
11256 HACKDIR_FULL=`eval eval eval eval eval eval eval eval eval echo $HACKDIR`
11258 # This option used to be called --enable-subdir; make sure that is no longer
11259 # used, since configure brain-damagedly ignores unknown --enable options.
11262 # Check whether --enable-subdir was given.
11263 if test "${enable_subdir+set}" = set; then
11264 enableval=$enable_subdir; obsolete_enable=yes
11267 if test -n "$obsolete_enable"; then
11268 echo "error: the --enable-subdir option has been replaced with"
11269 echo " the new --with-hackdir option; see \`configure --help'"
11270 echo " for more information."
11275 ###############################################################################
11277 # Handle the --with-configdir option
11278 # Help for --with-x-app-defaults option added.
11280 ###############################################################################
11283 with_configdir_req=unspecified
11285 # Check whether --with-configdir was given.
11286 if test "${with_configdir+set}" = set; then
11287 withval=$with_configdir; with_configdir="$withval"; with_configdir_req="$withval"
11293 if test x"$with_configdir" = xyes; then
11294 HACK_CONF_DIR='${datadir}/xscreensaver/config'
11295 elif test x"$with_configdir" = xno; then
11296 echo "error: must be yes, or a pathname: --with-configdir=$with_configdir"
11299 # there must be a better way than this...
11300 if test -z "`echo $with_configdir | sed 's@^/.*@@'`" ; then
11302 HACK_CONF_DIR=$with_configdir
11305 HACK_CONF_DIR="\${exec_prefix}$with_configdir"
11312 ###############################################################################
11314 # Check for the SGI SCREEN_SAVER server extension.
11316 ###############################################################################
11319 #with_sgi_req=unspecified
11320 #AC_ARG_WITH(sgi-ext,
11321 #[Except where noted, all of the --with options below can also take a
11322 #directory argument: for example, `--with-motif=/opt/Motif'. That would
11323 #cause /opt/Motif/include/ to be added to the -I list, and /opt/Motif/lib/
11324 #to be added to the -L list, assuming those directories exist.
11326 #By default, support for each of these options will be built in, if the
11327 #relevant library routines exist. At run time, they will then be used
11328 #only if the X server being used supports them. Each --with option has
11329 #a corresponding --without option, to override building support for them
11332 #Screen blanking and idle-detection options:
11334 # --with-sgi-ext Include support for the SGI SCREEN_SAVER extension.],
11335 # [with_sgi="$withval"; with_sgi_req="$withval"],[with_sgi=yes])
11337 #HANDLE_X_PATH_ARG(with_sgi, --with-sgi-ext, SGI SCREEN_SAVER)
11339 #if test "$with_sgi" = yes; then
11340 # AC_CHECK_X_HEADER(X11/extensions/XScreenSaver.h,
11342 # AC_DEFINE(HAVE_SGI_SAVER_EXTENSION)],,
11343 # [#include <X11/Xlib.h>])
11345 #elif test "$with_sgi" != no; then
11346 # echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
11351 ###############################################################################
11353 # Check for the XIDLE server extension.
11355 ###############################################################################
11358 #with_xidle_req=unspecified
11359 #AC_ARG_WITH(xidle-ext,
11360 #[ --with-xidle-ext Include support for the XIDLE extension.],
11361 # [with_xidle="$withval"; with_xidle_req="$withval"],[with_xidle=yes])
11363 #HANDLE_X_PATH_ARG(with_xidle, --with-xidle-ext, XIDLE)
11365 #if test "$with_xidle" = yes; then
11366 # AC_CHECK_X_HEADER(X11/extensions/xidle.h,
11368 # AC_DEFINE(HAVE_XIDLE_EXTENSION)],,
11369 # [#include <X11/Xlib.h>])
11370 #elif test "$with_xidle" != no; then
11371 # echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
11376 ###############################################################################
11378 # Check for the SGI-VIDEO-CONTROL server extension.
11380 ###############################################################################
11383 #with_sgivc_req=unspecified
11384 #AC_ARG_WITH(sgivc-ext,
11385 #[ --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL extension.],
11386 # [with_sgivc="$withval"; with_sgivc_req="$withval"],[with_sgivc=yes])
11388 #HANDLE_X_PATH_ARG(with_sgivc, --with-sgivc-ext, SGI-VIDEO-CONTROL)
11390 #if test "$with_sgivc" = yes; then
11392 # # first check for XSGIvc.h
11393 # AC_CHECK_X_HEADER(X11/extensions/XSGIvc.h, [have_sgivc=yes],,
11394 # [#include <X11/Xlib.h>])
11396 # # if that succeeded, then check for the -lXsgivc
11397 # if test "$have_sgivc" = yes; then
11399 # AC_CHECK_X_LIB(Xsgivc, XSGIvcQueryGammaMap,
11400 # [have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"], [true],
11404 # # if that succeeded, then we've really got it.
11405 # if test "$have_sgivc" = yes; then
11406 # AC_DEFINE(HAVE_SGI_VC_EXTENSION)
11409 #elif test "$with_sgivc" != no; then
11410 # echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
11415 ###############################################################################
11417 # Check for the DPMS server extension.
11419 ###############################################################################
11422 with_dpms_req=unspecified
11424 # Check whether --with-dpms-ext was given.
11425 if test "${with_dpms_ext+set}" = set; then
11426 withval=$with_dpms_ext; with_dpms="$withval"; with_dpms_req="$withval"
11433 case "$with_dpms" in
11438 { $as_echo "$as_me:$LINENO: checking for DPMS headers" >&5
11439 $as_echo_n "checking for DPMS headers... " >&6; }
11440 d=$with_dpms/include
11441 if test -d $d; then
11442 X_CFLAGS="-I$d $X_CFLAGS"
11443 { $as_echo "$as_me:$LINENO: result: $d" >&5
11444 $as_echo "$d" >&6; }
11446 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11447 $as_echo "not found ($d: no such directory)" >&6; }
11450 { $as_echo "$as_me:$LINENO: checking for DPMS libs" >&5
11451 $as_echo_n "checking for DPMS libs... " >&6; }
11453 if test -d $d; then
11454 X_LIBS="-L$d $X_LIBS"
11455 { $as_echo "$as_me:$LINENO: result: $d" >&5
11456 $as_echo "$d" >&6; }
11458 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11459 $as_echo "not found ($d: no such directory)" >&6; }
11462 # replace the directory string with "yes".
11463 with_dpms_req="yes"
11464 with_dpms=$with_dpms_req
11469 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
11470 echo " If it is a directory, then \`DIR/include' will be added to"
11471 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11477 if test "$with_dpms" = yes; then
11479 # first check for dpms.h
11481 ac_save_CPPFLAGS="$CPPFLAGS"
11482 if test \! -z "$includedir" ; then
11483 CPPFLAGS="$CPPFLAGS -I$includedir"
11485 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11486 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11487 { $as_echo "$as_me:$LINENO: checking for X11/extensions/dpms.h" >&5
11488 $as_echo_n "checking for X11/extensions/dpms.h... " >&6; }
11489 if test "${ac_cv_header_X11_extensions_dpms_h+set}" = set; then
11490 $as_echo_n "(cached) " >&6
11492 cat >conftest.$ac_ext <<_ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11498 #include <X11/Xlib.h>
11499 #include <X11/Xmd.h>
11501 #include <X11/extensions/dpms.h>
11503 rm -rf conftest.$ac_objext
11504 if { (ac_try="$ac_compile"
11505 case "(($ac_try" in
11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11510 $as_echo "$ac_try_echo") >&5
11511 (eval "$ac_compile") 2>conftest.er1
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -rf conftest.er1
11515 cat conftest.err >&5
11516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } && {
11518 test -z "$ac_c_werror_flag" ||
11519 test ! -s conftest.err
11520 } && test -s conftest.$ac_objext; then
11521 ac_cv_header_X11_extensions_dpms_h=yes
11523 $as_echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11526 ac_cv_header_X11_extensions_dpms_h=no
11529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11531 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_dpms_h" >&5
11532 $as_echo "$ac_cv_header_X11_extensions_dpms_h" >&6; }
11533 if test "x$ac_cv_header_X11_extensions_dpms_h" = x""yes; then
11538 CPPFLAGS="$ac_save_CPPFLAGS"
11540 # if that succeeded, then check for the DPMS code in the libraries
11541 if test "$have_dpms" = yes; then
11543 # first look in -lXext (this is where it is with XFree86 4.0)
11546 ac_save_CPPFLAGS="$CPPFLAGS"
11547 ac_save_LDFLAGS="$LDFLAGS"
11548 # ac_save_LIBS="$LIBS"
11550 if test \! -z "$includedir" ; then
11551 CPPFLAGS="$CPPFLAGS -I$includedir"
11553 # note: $X_CFLAGS includes $x_includes
11554 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11556 if test \! -z "$libdir" ; then
11557 LDFLAGS="$LDFLAGS -L$libdir"
11559 # note: $X_LIBS includes $x_libraries
11560 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11562 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11563 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11564 { $as_echo "$as_me:$LINENO: checking for DPMSInfo in -lXext" >&5
11565 $as_echo_n "checking for DPMSInfo in -lXext... " >&6; }
11566 if test "${ac_cv_lib_Xext_DPMSInfo+set}" = set; then
11567 $as_echo_n "(cached) " >&6
11569 ac_check_lib_save_LIBS=$LIBS
11570 LIBS="-lXext -lXext -lX11 $LIBS"
11571 cat >conftest.$ac_ext <<_ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11578 /* Override any GCC internal prototype to avoid an error.
11579 Use char because int might match the return type of a GCC
11580 builtin and then its argument prototype would still apply. */
11588 return DPMSInfo ();
11593 rm -rf conftest.$ac_objext conftest$ac_exeext
11594 if { (ac_try="$ac_link"
11595 case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11600 $as_echo "$ac_try_echo") >&5
11601 (eval "$ac_link") 2>conftest.er1
11603 grep -v '^ *+' conftest.er1 >conftest.err
11604 rm -rf conftest.er1
11605 cat conftest.err >&5
11606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } && {
11608 test -z "$ac_c_werror_flag" ||
11609 test ! -s conftest.err
11610 } && test -s conftest$ac_exeext && {
11611 test "$cross_compiling" = yes ||
11612 $as_test_x conftest$ac_exeext
11614 ac_cv_lib_Xext_DPMSInfo=yes
11616 $as_echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.$ac_ext >&5
11619 ac_cv_lib_Xext_DPMSInfo=no
11622 rm -rf conftest.dSYM
11623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11624 conftest$ac_exeext conftest.$ac_ext
11625 LIBS=$ac_check_lib_save_LIBS
11627 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_DPMSInfo" >&5
11628 $as_echo "$ac_cv_lib_Xext_DPMSInfo" >&6; }
11629 if test "x$ac_cv_lib_Xext_DPMSInfo" = x""yes; then
11635 CPPFLAGS="$ac_save_CPPFLAGS"
11636 LDFLAGS="$ac_save_LDFLAGS"
11637 # LIBS="$ac_save_LIBS"
11640 # if that failed, look in -lXdpms (this is where it was in XFree86 3.x)
11641 if test "$have_dpms" = no; then
11643 ac_save_CPPFLAGS="$CPPFLAGS"
11644 ac_save_LDFLAGS="$LDFLAGS"
11645 # ac_save_LIBS="$LIBS"
11647 if test \! -z "$includedir" ; then
11648 CPPFLAGS="$CPPFLAGS -I$includedir"
11650 # note: $X_CFLAGS includes $x_includes
11651 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11653 if test \! -z "$libdir" ; then
11654 LDFLAGS="$LDFLAGS -L$libdir"
11656 # note: $X_LIBS includes $x_libraries
11657 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11659 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11660 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11661 { $as_echo "$as_me:$LINENO: checking for DPMSInfo in -lXdpms" >&5
11662 $as_echo_n "checking for DPMSInfo in -lXdpms... " >&6; }
11663 if test "${ac_cv_lib_Xdpms_DPMSInfo+set}" = set; then
11664 $as_echo_n "(cached) " >&6
11666 ac_check_lib_save_LIBS=$LIBS
11667 LIBS="-lXdpms -lXext -lX11 $LIBS"
11668 cat >conftest.$ac_ext <<_ACEOF
11671 cat confdefs.h >>conftest.$ac_ext
11672 cat >>conftest.$ac_ext <<_ACEOF
11673 /* end confdefs.h. */
11675 /* Override any GCC internal prototype to avoid an error.
11676 Use char because int might match the return type of a GCC
11677 builtin and then its argument prototype would still apply. */
11685 return DPMSInfo ();
11690 rm -rf conftest.$ac_objext conftest$ac_exeext
11691 if { (ac_try="$ac_link"
11692 case "(($ac_try" in
11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11697 $as_echo "$ac_try_echo") >&5
11698 (eval "$ac_link") 2>conftest.er1
11700 grep -v '^ *+' conftest.er1 >conftest.err
11701 rm -rf conftest.er1
11702 cat conftest.err >&5
11703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } && {
11705 test -z "$ac_c_werror_flag" ||
11706 test ! -s conftest.err
11707 } && test -s conftest$ac_exeext && {
11708 test "$cross_compiling" = yes ||
11709 $as_test_x conftest$ac_exeext
11711 ac_cv_lib_Xdpms_DPMSInfo=yes
11713 $as_echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11716 ac_cv_lib_Xdpms_DPMSInfo=no
11719 rm -rf conftest.dSYM
11720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11721 conftest$ac_exeext conftest.$ac_ext
11722 LIBS=$ac_check_lib_save_LIBS
11724 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdpms_DPMSInfo" >&5
11725 $as_echo "$ac_cv_lib_Xdpms_DPMSInfo" >&6; }
11726 if test "x$ac_cv_lib_Xdpms_DPMSInfo" = x""yes; then
11727 have_dpms=yes; XDPMS_LIBS="-lXdpms"
11732 CPPFLAGS="$ac_save_CPPFLAGS"
11733 LDFLAGS="$ac_save_LDFLAGS"
11734 # LIBS="$ac_save_LIBS"
11740 # if that succeeded, then we've really got it.
11741 if test "$have_dpms" = yes; then
11742 cat >>confdefs.h <<\_ACEOF
11743 #define HAVE_DPMS_EXTENSION 1
11748 elif test "$with_dpms" != no; then
11749 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
11754 ###############################################################################
11756 # Check for the XINERAMA server extension.
11758 ###############################################################################
11761 with_xinerama_req=unspecified
11763 # Check whether --with-xinerama-ext was given.
11764 if test "${with_xinerama_ext+set}" = set; then
11765 withval=$with_xinerama_ext; with_xinerama="$withval"; with_xinerama_req="$withval"
11772 case "$with_xinerama" in
11777 { $as_echo "$as_me:$LINENO: checking for XINERAMA headers" >&5
11778 $as_echo_n "checking for XINERAMA headers... " >&6; }
11779 d=$with_xinerama/include
11780 if test -d $d; then
11781 X_CFLAGS="-I$d $X_CFLAGS"
11782 { $as_echo "$as_me:$LINENO: result: $d" >&5
11783 $as_echo "$d" >&6; }
11785 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11786 $as_echo "not found ($d: no such directory)" >&6; }
11789 { $as_echo "$as_me:$LINENO: checking for XINERAMA libs" >&5
11790 $as_echo_n "checking for XINERAMA libs... " >&6; }
11791 d=$with_xinerama/lib
11792 if test -d $d; then
11793 X_LIBS="-L$d $X_LIBS"
11794 { $as_echo "$as_me:$LINENO: result: $d" >&5
11795 $as_echo "$d" >&6; }
11797 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11798 $as_echo "not found ($d: no such directory)" >&6; }
11801 # replace the directory string with "yes".
11802 with_xinerama_req="yes"
11803 with_xinerama=$with_xinerama_req
11808 echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
11809 echo " If it is a directory, then \`DIR/include' will be added to"
11810 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11816 if test "$with_xinerama" = yes; then
11818 # first check for Xinerama.h
11820 ac_save_CPPFLAGS="$CPPFLAGS"
11821 if test \! -z "$includedir" ; then
11822 CPPFLAGS="$CPPFLAGS -I$includedir"
11824 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11825 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11826 { $as_echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
11827 $as_echo_n "checking for X11/extensions/Xinerama.h... " >&6; }
11828 if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
11829 $as_echo_n "(cached) " >&6
11831 cat >conftest.$ac_ext <<_ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h. */
11837 #include <X11/Xlib.h>
11839 #include <X11/extensions/Xinerama.h>
11841 rm -rf conftest.$ac_objext
11842 if { (ac_try="$ac_compile"
11843 case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11848 $as_echo "$ac_try_echo") >&5
11849 (eval "$ac_compile") 2>conftest.er1
11851 grep -v '^ *+' conftest.er1 >conftest.err
11852 rm -rf conftest.er1
11853 cat conftest.err >&5
11854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } && {
11856 test -z "$ac_c_werror_flag" ||
11857 test ! -s conftest.err
11858 } && test -s conftest.$ac_objext; then
11859 ac_cv_header_X11_extensions_Xinerama_h=yes
11861 $as_echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11864 ac_cv_header_X11_extensions_Xinerama_h=no
11867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11869 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
11870 $as_echo "$ac_cv_header_X11_extensions_Xinerama_h" >&6; }
11871 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x""yes; then
11876 CPPFLAGS="$ac_save_CPPFLAGS"
11878 # if that succeeded, then check for the XINERAMA code in the libraries
11879 if test "$have_xinerama" = yes; then
11881 # first look in -lXext
11884 ac_save_CPPFLAGS="$CPPFLAGS"
11885 ac_save_LDFLAGS="$LDFLAGS"
11886 # ac_save_LIBS="$LIBS"
11888 if test \! -z "$includedir" ; then
11889 CPPFLAGS="$CPPFLAGS -I$includedir"
11891 # note: $X_CFLAGS includes $x_includes
11892 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11894 if test \! -z "$libdir" ; then
11895 LDFLAGS="$LDFLAGS -L$libdir"
11897 # note: $X_LIBS includes $x_libraries
11898 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11900 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11901 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11902 { $as_echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXext" >&5
11903 $as_echo_n "checking for XineramaQueryScreens in -lXext... " >&6; }
11904 if test "${ac_cv_lib_Xext_XineramaQueryScreens+set}" = set; then
11905 $as_echo_n "(cached) " >&6
11907 ac_check_lib_save_LIBS=$LIBS
11908 LIBS="-lXext -lXext -lX11 $LIBS"
11909 cat >conftest.$ac_ext <<_ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h. */
11916 /* Override any GCC internal prototype to avoid an error.
11917 Use char because int might match the return type of a GCC
11918 builtin and then its argument prototype would still apply. */
11922 char XineramaQueryScreens ();
11926 return XineramaQueryScreens ();
11931 rm -rf conftest.$ac_objext conftest$ac_exeext
11932 if { (ac_try="$ac_link"
11933 case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11938 $as_echo "$ac_try_echo") >&5
11939 (eval "$ac_link") 2>conftest.er1
11941 grep -v '^ *+' conftest.er1 >conftest.err
11942 rm -rf conftest.er1
11943 cat conftest.err >&5
11944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } && {
11946 test -z "$ac_c_werror_flag" ||
11947 test ! -s conftest.err
11948 } && test -s conftest$ac_exeext && {
11949 test "$cross_compiling" = yes ||
11950 $as_test_x conftest$ac_exeext
11952 ac_cv_lib_Xext_XineramaQueryScreens=yes
11954 $as_echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 ac_cv_lib_Xext_XineramaQueryScreens=no
11960 rm -rf conftest.dSYM
11961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11962 conftest$ac_exeext conftest.$ac_ext
11963 LIBS=$ac_check_lib_save_LIBS
11965 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XineramaQueryScreens" >&5
11966 $as_echo "$ac_cv_lib_Xext_XineramaQueryScreens" >&6; }
11967 if test "x$ac_cv_lib_Xext_XineramaQueryScreens" = x""yes; then
11973 CPPFLAGS="$ac_save_CPPFLAGS"
11974 LDFLAGS="$ac_save_LDFLAGS"
11975 # LIBS="$ac_save_LIBS"
11978 # if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
11979 if test "$have_xinerama" = no; then
11981 ac_save_CPPFLAGS="$CPPFLAGS"
11982 ac_save_LDFLAGS="$LDFLAGS"
11983 # ac_save_LIBS="$LIBS"
11985 if test \! -z "$includedir" ; then
11986 CPPFLAGS="$CPPFLAGS -I$includedir"
11988 # note: $X_CFLAGS includes $x_includes
11989 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11991 if test \! -z "$libdir" ; then
11992 LDFLAGS="$LDFLAGS -L$libdir"
11994 # note: $X_LIBS includes $x_libraries
11995 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11997 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11998 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11999 { $as_echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
12000 $as_echo_n "checking for XineramaQueryScreens in -lXinerama... " >&6; }
12001 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
12002 $as_echo_n "(cached) " >&6
12004 ac_check_lib_save_LIBS=$LIBS
12005 LIBS="-lXinerama -lXext -lX11 $LIBS"
12006 cat >conftest.$ac_ext <<_ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h. */
12013 /* Override any GCC internal prototype to avoid an error.
12014 Use char because int might match the return type of a GCC
12015 builtin and then its argument prototype would still apply. */
12019 char XineramaQueryScreens ();
12023 return XineramaQueryScreens ();
12028 rm -rf conftest.$ac_objext conftest$ac_exeext
12029 if { (ac_try="$ac_link"
12030 case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12035 $as_echo "$ac_try_echo") >&5
12036 (eval "$ac_link") 2>conftest.er1
12038 grep -v '^ *+' conftest.er1 >conftest.err
12039 rm -rf conftest.er1
12040 cat conftest.err >&5
12041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } && {
12043 test -z "$ac_c_werror_flag" ||
12044 test ! -s conftest.err
12045 } && test -s conftest$ac_exeext && {
12046 test "$cross_compiling" = yes ||
12047 $as_test_x conftest$ac_exeext
12049 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
12051 $as_echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12054 ac_cv_lib_Xinerama_XineramaQueryScreens=no
12057 rm -rf conftest.dSYM
12058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12059 conftest$ac_exeext conftest.$ac_ext
12060 LIBS=$ac_check_lib_save_LIBS
12062 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
12063 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
12064 if test "x$ac_cv_lib_Xinerama_XineramaQueryScreens" = x""yes; then
12065 have_xinerama=yes; XINERAMA_LIBS="-lXinerama"
12070 CPPFLAGS="$ac_save_CPPFLAGS"
12071 LDFLAGS="$ac_save_LDFLAGS"
12072 # LIBS="$ac_save_LIBS"
12077 # if that succeeded, then we've really got it.
12078 if test "$have_xinerama" = yes; then
12079 cat >>confdefs.h <<\_ACEOF
12080 #define HAVE_XINERAMA 1
12085 elif test "$with_xinerama" != no; then
12086 echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
12091 ###############################################################################
12093 # Check for the XINPUT server extension.
12095 ###############################################################################
12098 with_xinput_req=unspecified
12100 # Check whether --with-xinput-ext was given.
12101 if test "${with_xinput_ext+set}" = set; then
12102 withval=$with_xinput_ext; with_xinput="$withval"; with_xinput_req="$withval"
12109 case "$with_xinput" in
12114 { $as_echo "$as_me:$LINENO: checking for XINPUT headers" >&5
12115 $as_echo_n "checking for XINPUT headers... " >&6; }
12116 d=$with_xinput/include
12117 if test -d $d; then
12118 X_CFLAGS="-I$d $X_CFLAGS"
12119 { $as_echo "$as_me:$LINENO: result: $d" >&5
12120 $as_echo "$d" >&6; }
12122 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12123 $as_echo "not found ($d: no such directory)" >&6; }
12126 { $as_echo "$as_me:$LINENO: checking for XINPUT libs" >&5
12127 $as_echo_n "checking for XINPUT libs... " >&6; }
12129 if test -d $d; then
12130 X_LIBS="-L$d $X_LIBS"
12131 { $as_echo "$as_me:$LINENO: result: $d" >&5
12132 $as_echo "$d" >&6; }
12134 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12135 $as_echo "not found ($d: no such directory)" >&6; }
12138 # replace the directory string with "yes".
12139 with_xinput_req="yes"
12140 with_xinput=$with_xinput_req
12145 echo "error: argument to --with-xinput-ext must be \"yes\", \"no\", or a directory."
12146 echo " If it is a directory, then \`DIR/include' will be added to"
12147 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12153 if test "$with_xinput" = yes; then
12155 # first check for Xinput.h
12157 ac_save_CPPFLAGS="$CPPFLAGS"
12158 if test \! -z "$includedir" ; then
12159 CPPFLAGS="$CPPFLAGS -I$includedir"
12161 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12162 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12163 { $as_echo "$as_me:$LINENO: checking for X11/extensions/XInput.h" >&5
12164 $as_echo_n "checking for X11/extensions/XInput.h... " >&6; }
12165 if test "${ac_cv_header_X11_extensions_XInput_h+set}" = set; then
12166 $as_echo_n "(cached) " >&6
12168 cat >conftest.$ac_ext <<_ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 #include <X11/Xlib.h>
12176 #include <X11/extensions/XInput.h>
12178 rm -rf conftest.$ac_objext
12179 if { (ac_try="$ac_compile"
12180 case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12185 $as_echo "$ac_try_echo") >&5
12186 (eval "$ac_compile") 2>conftest.er1
12188 grep -v '^ *+' conftest.er1 >conftest.err
12189 rm -rf conftest.er1
12190 cat conftest.err >&5
12191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } && {
12193 test -z "$ac_c_werror_flag" ||
12194 test ! -s conftest.err
12195 } && test -s conftest.$ac_objext; then
12196 ac_cv_header_X11_extensions_XInput_h=yes
12198 $as_echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12201 ac_cv_header_X11_extensions_XInput_h=no
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12206 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XInput_h" >&5
12207 $as_echo "$ac_cv_header_X11_extensions_XInput_h" >&6; }
12208 if test "x$ac_cv_header_X11_extensions_XInput_h" = x""yes; then
12213 CPPFLAGS="$ac_save_CPPFLAGS"
12215 # if that succeeded, then check for libXi
12216 if test "$have_xinput" = yes; then
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 { $as_echo "$as_me:$LINENO: checking for XListInputDevices in -lXi" >&5
12238 $as_echo_n "checking for XListInputDevices in -lXi... " >&6; }
12239 if test "${ac_cv_lib_Xi_XListInputDevices+set}" = set; then
12240 $as_echo_n "(cached) " >&6
12242 ac_check_lib_save_LIBS=$LIBS
12243 LIBS="-lXi -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 XListInputDevices ();
12261 return XListInputDevices ();
12266 rm -rf 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12273 $as_echo "$ac_try_echo") >&5
12274 (eval "$ac_link") 2>conftest.er1
12276 grep -v '^ *+' conftest.er1 >conftest.err
12277 rm -rf conftest.er1
12278 cat conftest.err >&5
12279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } && {
12281 test -z "$ac_c_werror_flag" ||
12282 test ! -s conftest.err
12283 } && test -s conftest$ac_exeext && {
12284 test "$cross_compiling" = yes ||
12285 $as_test_x conftest$ac_exeext
12287 ac_cv_lib_Xi_XListInputDevices=yes
12289 $as_echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.$ac_ext >&5
12292 ac_cv_lib_Xi_XListInputDevices=no
12295 rm -rf conftest.dSYM
12296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12297 conftest$ac_exeext conftest.$ac_ext
12298 LIBS=$ac_check_lib_save_LIBS
12300 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xi_XListInputDevices" >&5
12301 $as_echo "$ac_cv_lib_Xi_XListInputDevices" >&6; }
12302 if test "x$ac_cv_lib_Xi_XListInputDevices" = x""yes; then
12303 have_xinput=yes; SAVER_LIBS="$SAVER_LIBS -lXi"
12308 CPPFLAGS="$ac_save_CPPFLAGS"
12309 LDFLAGS="$ac_save_LDFLAGS"
12310 # LIBS="$ac_save_LIBS"
12314 # if that succeeded, then we've really got it.
12315 if test "$have_xinput" = yes; then
12316 cat >>confdefs.h <<\_ACEOF
12317 #define HAVE_XINPUT 1
12322 elif test "$with_xinput" != no; then
12323 echo "error: must be yes or no: --with-xinput-ext=$with_xinput"
12328 ###############################################################################
12330 # Check for the XF86VMODE server extension (for virtual screens.)
12332 ###############################################################################
12335 with_xf86vmode_req=unspecified
12337 # Check whether --with-xf86vmode-ext was given.
12338 if test "${with_xf86vmode_ext+set}" = set; then
12339 withval=$with_xf86vmode_ext; with_xf86vmode="$withval"; with_xf86vmode_req="$withval"
12346 case "$with_xf86vmode" in
12351 { $as_echo "$as_me:$LINENO: checking for xf86vmode headers" >&5
12352 $as_echo_n "checking for xf86vmode headers... " >&6; }
12353 d=$with_xf86vmode/include
12354 if test -d $d; then
12355 X_CFLAGS="-I$d $X_CFLAGS"
12356 { $as_echo "$as_me:$LINENO: result: $d" >&5
12357 $as_echo "$d" >&6; }
12359 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12360 $as_echo "not found ($d: no such directory)" >&6; }
12363 { $as_echo "$as_me:$LINENO: checking for xf86vmode libs" >&5
12364 $as_echo_n "checking for xf86vmode libs... " >&6; }
12365 d=$with_xf86vmode/lib
12366 if test -d $d; then
12367 X_LIBS="-L$d $X_LIBS"
12368 { $as_echo "$as_me:$LINENO: result: $d" >&5
12369 $as_echo "$d" >&6; }
12371 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12372 $as_echo "not found ($d: no such directory)" >&6; }
12375 # replace the directory string with "yes".
12376 with_xf86vmode_req="yes"
12377 with_xf86vmode=$with_xf86vmode_req
12382 echo "error: argument to --with-xf86vmode-ext must be \"yes\", \"no\", or a directory."
12383 echo " If it is a directory, then \`DIR/include' will be added to"
12384 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12392 if test "$with_xf86vmode" = yes; then
12394 # first check for xf86vmode.h
12396 ac_save_CPPFLAGS="$CPPFLAGS"
12397 if test \! -z "$includedir" ; then
12398 CPPFLAGS="$CPPFLAGS -I$includedir"
12400 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12401 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12402 { $as_echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
12403 $as_echo_n "checking for X11/extensions/xf86vmode.h... " >&6; }
12404 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
12405 $as_echo_n "(cached) " >&6
12407 cat >conftest.$ac_ext <<_ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 #include <X11/Xlib.h>
12415 #include <X11/extensions/xf86vmode.h>
12417 rm -rf conftest.$ac_objext
12418 if { (ac_try="$ac_compile"
12419 case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12424 $as_echo "$ac_try_echo") >&5
12425 (eval "$ac_compile") 2>conftest.er1
12427 grep -v '^ *+' conftest.er1 >conftest.err
12428 rm -rf conftest.er1
12429 cat conftest.err >&5
12430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } && {
12432 test -z "$ac_c_werror_flag" ||
12433 test ! -s conftest.err
12434 } && test -s conftest.$ac_objext; then
12435 ac_cv_header_X11_extensions_xf86vmode_h=yes
12437 $as_echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12440 ac_cv_header_X11_extensions_xf86vmode_h=no
12443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12445 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
12446 $as_echo "$ac_cv_header_X11_extensions_xf86vmode_h" >&6; }
12447 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = x""yes; then
12452 CPPFLAGS="$ac_save_CPPFLAGS"
12454 # if that succeeded, then check for the -lXxf86vm
12455 if test "$have_xf86vmode" = yes; then
12458 ac_save_CPPFLAGS="$CPPFLAGS"
12459 ac_save_LDFLAGS="$LDFLAGS"
12460 # ac_save_LIBS="$LIBS"
12462 if test \! -z "$includedir" ; then
12463 CPPFLAGS="$CPPFLAGS -I$includedir"
12465 # note: $X_CFLAGS includes $x_includes
12466 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12468 if test \! -z "$libdir" ; then
12469 LDFLAGS="$LDFLAGS -L$libdir"
12471 # note: $X_LIBS includes $x_libraries
12472 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12474 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12475 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12476 { $as_echo "$as_me:$LINENO: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
12477 $as_echo_n "checking for XF86VidModeGetViewPort in -lXxf86vm... " >&6; }
12478 if test "${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+set}" = set; then
12479 $as_echo_n "(cached) " >&6
12481 ac_check_lib_save_LIBS=$LIBS
12482 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
12483 cat >conftest.$ac_ext <<_ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h. */
12490 /* Override any GCC internal prototype to avoid an error.
12491 Use char because int might match the return type of a GCC
12492 builtin and then its argument prototype would still apply. */
12496 char XF86VidModeGetViewPort ();
12500 return XF86VidModeGetViewPort ();
12505 rm -rf conftest.$ac_objext conftest$ac_exeext
12506 if { (ac_try="$ac_link"
12507 case "(($ac_try" in
12508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12509 *) ac_try_echo=$ac_try;;
12511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12512 $as_echo "$ac_try_echo") >&5
12513 (eval "$ac_link") 2>conftest.er1
12515 grep -v '^ *+' conftest.er1 >conftest.err
12516 rm -rf conftest.er1
12517 cat conftest.err >&5
12518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } && {
12520 test -z "$ac_c_werror_flag" ||
12521 test ! -s conftest.err
12522 } && test -s conftest$ac_exeext && {
12523 test "$cross_compiling" = yes ||
12524 $as_test_x conftest$ac_exeext
12526 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
12528 $as_echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12531 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=no
12534 rm -rf conftest.dSYM
12535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12536 conftest$ac_exeext conftest.$ac_ext
12537 LIBS=$ac_check_lib_save_LIBS
12539 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&5
12540 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6; }
12541 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" = x""yes; then
12542 have_xf86vmode=yes;
12543 VIDMODE_LIBS="-lXxf86vm";
12544 SAVER_LIBS="$SAVER_LIBS $VIDMODE_LIBS"
12549 CPPFLAGS="$ac_save_CPPFLAGS"
12550 LDFLAGS="$ac_save_LDFLAGS"
12551 # LIBS="$ac_save_LIBS"
12555 # if that succeeded, then we've really got it.
12556 if test "$have_xf86vmode" = yes; then
12557 cat >>confdefs.h <<\_ACEOF
12558 #define HAVE_XF86VMODE 1
12563 elif test "$with_xf86vmode" != no; then
12564 echo "error: must be yes or no: --with-xf86vmode-ext=$with_xf86vmode"
12569 ###############################################################################
12571 # Check for the XF86VMODE server extension (for gamma fading.)
12573 ###############################################################################
12576 have_xf86gamma_ramp=no
12577 with_xf86gamma_req=unspecified
12579 # Check whether --with-xf86gamma-ext was given.
12580 if test "${with_xf86gamma_ext+set}" = set; then
12581 withval=$with_xf86gamma_ext; with_xf86gamma="$withval"; with_xf86gamma_req="$withval"
12588 case "$with_xf86gamma" in
12593 { $as_echo "$as_me:$LINENO: checking for xf86gamma headers" >&5
12594 $as_echo_n "checking for xf86gamma headers... " >&6; }
12595 d=$with_xf86gamma/include
12596 if test -d $d; then
12597 X_CFLAGS="-I$d $X_CFLAGS"
12598 { $as_echo "$as_me:$LINENO: result: $d" >&5
12599 $as_echo "$d" >&6; }
12601 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12602 $as_echo "not found ($d: no such directory)" >&6; }
12605 { $as_echo "$as_me:$LINENO: checking for xf86gamma libs" >&5
12606 $as_echo_n "checking for xf86gamma libs... " >&6; }
12607 d=$with_xf86gamma/lib
12608 if test -d $d; then
12609 X_LIBS="-L$d $X_LIBS"
12610 { $as_echo "$as_me:$LINENO: result: $d" >&5
12611 $as_echo "$d" >&6; }
12613 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12614 $as_echo "not found ($d: no such directory)" >&6; }
12617 # replace the directory string with "yes".
12618 with_xf86gamma_req="yes"
12619 with_xf86gamma=$with_xf86gamma_req
12624 echo "error: argument to --with-xf86gamma-ext must be \"yes\", \"no\", or a directory."
12625 echo " If it is a directory, then \`DIR/include' will be added to"
12626 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12632 if test "$with_xf86gamma" = yes; then
12634 # first check for xf86vmode.h, if we haven't already
12635 if test "$have_xf86vmode" = yes; then
12639 ac_save_CPPFLAGS="$CPPFLAGS"
12640 if test \! -z "$includedir" ; then
12641 CPPFLAGS="$CPPFLAGS -I$includedir"
12643 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12644 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12645 { $as_echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
12646 $as_echo_n "checking for X11/extensions/xf86vmode.h... " >&6; }
12647 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
12648 $as_echo_n "(cached) " >&6
12650 cat >conftest.$ac_ext <<_ACEOF
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h. */
12656 #include <X11/Xlib.h>
12658 #include <X11/extensions/xf86vmode.h>
12660 rm -rf conftest.$ac_objext
12661 if { (ac_try="$ac_compile"
12662 case "(($ac_try" in
12663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664 *) ac_try_echo=$ac_try;;
12666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12667 $as_echo "$ac_try_echo") >&5
12668 (eval "$ac_compile") 2>conftest.er1
12670 grep -v '^ *+' conftest.er1 >conftest.err
12671 rm -rf conftest.er1
12672 cat conftest.err >&5
12673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } && {
12675 test -z "$ac_c_werror_flag" ||
12676 test ! -s conftest.err
12677 } && test -s conftest.$ac_objext; then
12678 ac_cv_header_X11_extensions_xf86vmode_h=yes
12680 $as_echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12683 ac_cv_header_X11_extensions_xf86vmode_h=no
12686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12688 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
12689 $as_echo "$ac_cv_header_X11_extensions_xf86vmode_h" >&6; }
12690 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = x""yes; then
12695 CPPFLAGS="$ac_save_CPPFLAGS"
12698 # if that succeeded, then check for the -lXxf86vm
12699 if test "$have_xf86gamma" = yes; then
12702 ac_save_CPPFLAGS="$CPPFLAGS"
12703 ac_save_LDFLAGS="$LDFLAGS"
12704 # ac_save_LIBS="$LIBS"
12706 if test \! -z "$includedir" ; then
12707 CPPFLAGS="$CPPFLAGS -I$includedir"
12709 # note: $X_CFLAGS includes $x_includes
12710 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12712 if test \! -z "$libdir" ; then
12713 LDFLAGS="$LDFLAGS -L$libdir"
12715 # note: $X_LIBS includes $x_libraries
12716 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12718 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12719 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12720 { $as_echo "$as_me:$LINENO: checking for XF86VidModeSetGamma in -lXxf86vm" >&5
12721 $as_echo_n "checking for XF86VidModeSetGamma in -lXxf86vm... " >&6; }
12722 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGamma+set}" = set; then
12723 $as_echo_n "(cached) " >&6
12725 ac_check_lib_save_LIBS=$LIBS
12726 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
12727 cat >conftest.$ac_ext <<_ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12734 /* Override any GCC internal prototype to avoid an error.
12735 Use char because int might match the return type of a GCC
12736 builtin and then its argument prototype would still apply. */
12740 char XF86VidModeSetGamma ();
12744 return XF86VidModeSetGamma ();
12749 rm -rf conftest.$ac_objext conftest$ac_exeext
12750 if { (ac_try="$ac_link"
12751 case "(($ac_try" in
12752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753 *) ac_try_echo=$ac_try;;
12755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12756 $as_echo "$ac_try_echo") >&5
12757 (eval "$ac_link") 2>conftest.er1
12759 grep -v '^ *+' conftest.er1 >conftest.err
12760 rm -rf conftest.er1
12761 cat conftest.err >&5
12762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } && {
12764 test -z "$ac_c_werror_flag" ||
12765 test ! -s conftest.err
12766 } && test -s conftest$ac_exeext && {
12767 test "$cross_compiling" = yes ||
12768 $as_test_x conftest$ac_exeext
12770 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=yes
12772 $as_echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12775 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=no
12778 rm -rf conftest.dSYM
12779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12780 conftest$ac_exeext conftest.$ac_ext
12781 LIBS=$ac_check_lib_save_LIBS
12783 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&5
12784 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&6; }
12785 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" = x""yes; then
12791 CPPFLAGS="$ac_save_CPPFLAGS"
12792 LDFLAGS="$ac_save_LDFLAGS"
12793 # LIBS="$ac_save_LIBS"
12797 # check for the Ramp versions of the functions too.
12798 if test "$have_xf86gamma" = yes; then
12799 have_xf86gamma_ramp=no
12801 ac_save_CPPFLAGS="$CPPFLAGS"
12802 ac_save_LDFLAGS="$LDFLAGS"
12803 # ac_save_LIBS="$LIBS"
12805 if test \! -z "$includedir" ; then
12806 CPPFLAGS="$CPPFLAGS -I$includedir"
12808 # note: $X_CFLAGS includes $x_includes
12809 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12811 if test \! -z "$libdir" ; then
12812 LDFLAGS="$LDFLAGS -L$libdir"
12814 # note: $X_LIBS includes $x_libraries
12815 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12817 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12818 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12819 { $as_echo "$as_me:$LINENO: checking for XF86VidModeSetGammaRamp in -lXxf86vm" >&5
12820 $as_echo_n "checking for XF86VidModeSetGammaRamp in -lXxf86vm... " >&6; }
12821 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp+set}" = set; then
12822 $as_echo_n "(cached) " >&6
12824 ac_check_lib_save_LIBS=$LIBS
12825 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
12826 cat >conftest.$ac_ext <<_ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h. */
12833 /* Override any GCC internal prototype to avoid an error.
12834 Use char because int might match the return type of a GCC
12835 builtin and then its argument prototype would still apply. */
12839 char XF86VidModeSetGammaRamp ();
12843 return XF86VidModeSetGammaRamp ();
12848 rm -rf conftest.$ac_objext conftest$ac_exeext
12849 if { (ac_try="$ac_link"
12850 case "(($ac_try" in
12851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852 *) ac_try_echo=$ac_try;;
12854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12855 $as_echo "$ac_try_echo") >&5
12856 (eval "$ac_link") 2>conftest.er1
12858 grep -v '^ *+' conftest.er1 >conftest.err
12859 rm -rf conftest.er1
12860 cat conftest.err >&5
12861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); } && {
12863 test -z "$ac_c_werror_flag" ||
12864 test ! -s conftest.err
12865 } && test -s conftest$ac_exeext && {
12866 test "$cross_compiling" = yes ||
12867 $as_test_x conftest$ac_exeext
12869 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=yes
12871 $as_echo "$as_me: failed program was:" >&5
12872 sed 's/^/| /' conftest.$ac_ext >&5
12874 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=no
12877 rm -rf conftest.dSYM
12878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12879 conftest$ac_exeext conftest.$ac_ext
12880 LIBS=$ac_check_lib_save_LIBS
12882 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&5
12883 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&6; }
12884 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" = x""yes; then
12885 have_xf86gamma_ramp=yes
12890 CPPFLAGS="$ac_save_CPPFLAGS"
12891 LDFLAGS="$ac_save_LDFLAGS"
12892 # LIBS="$ac_save_LIBS"
12896 # if those tests succeeded, then we've really got the functions.
12897 if test "$have_xf86gamma" = yes; then
12898 cat >>confdefs.h <<\_ACEOF
12899 #define HAVE_XF86VMODE_GAMMA 1
12904 if test "$have_xf86gamma_ramp" = yes; then
12905 cat >>confdefs.h <<\_ACEOF
12906 #define HAVE_XF86VMODE_GAMMA_RAMP 1
12911 # pull in the lib, if we haven't already
12912 if test "$have_xf86gamma" = yes -a "$have_xf86vmode" = no; then
12913 SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
12916 elif test "$with_xf86gamma" != no; then
12917 echo "error: must be yes or no: --with-xf86gamma-ext=$with_xf86vmode"
12922 ###############################################################################
12924 # Check for the RANDR (Resize and Rotate) server extension.
12926 # We need this to detect when the resolution of the desktop
12927 # has changed out from under us (this is a newer, different
12928 # mechanism than the XF86VMODE virtual viewports.)
12930 ###############################################################################
12933 with_randr_req=unspecified
12935 # Check whether --with-randr-ext was given.
12936 if test "${with_randr_ext+set}" = set; then
12937 withval=$with_randr_ext; with_randr="$withval"; with_randr_req="$withval"
12944 case "$with_randr" in
12949 { $as_echo "$as_me:$LINENO: checking for RANDR headers" >&5
12950 $as_echo_n "checking for RANDR headers... " >&6; }
12951 d=$with_randr/include
12952 if test -d $d; then
12953 X_CFLAGS="-I$d $X_CFLAGS"
12954 { $as_echo "$as_me:$LINENO: result: $d" >&5
12955 $as_echo "$d" >&6; }
12957 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12958 $as_echo "not found ($d: no such directory)" >&6; }
12961 { $as_echo "$as_me:$LINENO: checking for RANDR libs" >&5
12962 $as_echo_n "checking for RANDR libs... " >&6; }
12964 if test -d $d; then
12965 X_LIBS="-L$d $X_LIBS"
12966 { $as_echo "$as_me:$LINENO: result: $d" >&5
12967 $as_echo "$d" >&6; }
12969 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12970 $as_echo "not found ($d: no such directory)" >&6; }
12973 # replace the directory string with "yes".
12974 with_randr_req="yes"
12975 with_randr=$with_randr_req
12980 echo "error: argument to --with-randr-ext must be \"yes\", \"no\", or a directory."
12981 echo " If it is a directory, then \`DIR/include' will be added to"
12982 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12988 if test "$with_randr" = yes; then
12990 # first check for Xrandr.h
12992 ac_save_CPPFLAGS="$CPPFLAGS"
12993 if test \! -z "$includedir" ; then
12994 CPPFLAGS="$CPPFLAGS -I$includedir"
12996 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12997 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12998 { $as_echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
12999 $as_echo_n "checking for X11/extensions/Xrandr.h... " >&6; }
13000 if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
13001 $as_echo_n "(cached) " >&6
13003 cat >conftest.$ac_ext <<_ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13009 #include <X11/Xlib.h>
13011 #include <X11/extensions/Xrandr.h>
13013 rm -rf conftest.$ac_objext
13014 if { (ac_try="$ac_compile"
13015 case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13020 $as_echo "$ac_try_echo") >&5
13021 (eval "$ac_compile") 2>conftest.er1
13023 grep -v '^ *+' conftest.er1 >conftest.err
13024 rm -rf conftest.er1
13025 cat conftest.err >&5
13026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); } && {
13028 test -z "$ac_c_werror_flag" ||
13029 test ! -s conftest.err
13030 } && test -s conftest.$ac_objext; then
13031 ac_cv_header_X11_extensions_Xrandr_h=yes
13033 $as_echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13036 ac_cv_header_X11_extensions_Xrandr_h=no
13039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13041 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
13042 $as_echo "$ac_cv_header_X11_extensions_Xrandr_h" >&6; }
13043 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x""yes; then
13048 CPPFLAGS="$ac_save_CPPFLAGS"
13050 # if that succeeded, then check for the XRR code in the libraries
13051 if test "$have_randr" = yes; then
13053 # RANDR probably needs -lXrender
13056 ac_save_CPPFLAGS="$CPPFLAGS"
13057 ac_save_LDFLAGS="$LDFLAGS"
13058 # ac_save_LIBS="$LIBS"
13060 if test \! -z "$includedir" ; then
13061 CPPFLAGS="$CPPFLAGS -I$includedir"
13063 # note: $X_CFLAGS includes $x_includes
13064 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13066 if test \! -z "$libdir" ; then
13067 LDFLAGS="$LDFLAGS -L$libdir"
13069 # note: $X_LIBS includes $x_libraries
13070 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13072 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13073 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13074 { $as_echo "$as_me:$LINENO: checking for XRenderSetSubpixelOrder in -lXrender" >&5
13075 $as_echo_n "checking for XRenderSetSubpixelOrder in -lXrender... " >&6; }
13076 if test "${ac_cv_lib_Xrender_XRenderSetSubpixelOrder+set}" = set; then
13077 $as_echo_n "(cached) " >&6
13079 ac_check_lib_save_LIBS=$LIBS
13080 LIBS="-lXrender -lXext -lX11 $LIBS"
13081 cat >conftest.$ac_ext <<_ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h. */
13088 /* Override any GCC internal prototype to avoid an error.
13089 Use char because int might match the return type of a GCC
13090 builtin and then its argument prototype would still apply. */
13094 char XRenderSetSubpixelOrder ();
13098 return XRenderSetSubpixelOrder ();
13103 rm -rf conftest.$ac_objext conftest$ac_exeext
13104 if { (ac_try="$ac_link"
13105 case "(($ac_try" in
13106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107 *) ac_try_echo=$ac_try;;
13109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13110 $as_echo "$ac_try_echo") >&5
13111 (eval "$ac_link") 2>conftest.er1
13113 grep -v '^ *+' conftest.er1 >conftest.err
13114 rm -rf conftest.er1
13115 cat conftest.err >&5
13116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } && {
13118 test -z "$ac_c_werror_flag" ||
13119 test ! -s conftest.err
13120 } && test -s conftest$ac_exeext && {
13121 test "$cross_compiling" = yes ||
13122 $as_test_x conftest$ac_exeext
13124 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=yes
13126 $as_echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13129 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=no
13132 rm -rf conftest.dSYM
13133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13134 conftest$ac_exeext conftest.$ac_ext
13135 LIBS=$ac_check_lib_save_LIBS
13137 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&5
13138 $as_echo "$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&6; }
13139 if test "x$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" = x""yes; then
13140 xrender_libs="-lXrender"
13145 CPPFLAGS="$ac_save_CPPFLAGS"
13146 LDFLAGS="$ac_save_LDFLAGS"
13147 # LIBS="$ac_save_LIBS"
13150 # first look for RANDR in -lXext
13153 ac_save_CPPFLAGS="$CPPFLAGS"
13154 ac_save_LDFLAGS="$LDFLAGS"
13155 # ac_save_LIBS="$LIBS"
13157 if test \! -z "$includedir" ; then
13158 CPPFLAGS="$CPPFLAGS -I$includedir"
13160 # note: $X_CFLAGS includes $x_includes
13161 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13163 if test \! -z "$libdir" ; then
13164 LDFLAGS="$LDFLAGS -L$libdir"
13166 # note: $X_LIBS includes $x_libraries
13167 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13169 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13170 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13171 { $as_echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXext" >&5
13172 $as_echo_n "checking for XRRGetScreenInfo in -lXext... " >&6; }
13173 if test "${ac_cv_lib_Xext_XRRGetScreenInfo+set}" = set; then
13174 $as_echo_n "(cached) " >&6
13176 ac_check_lib_save_LIBS=$LIBS
13177 LIBS="-lXext $xrender_libs -lXext -lX11 $LIBS"
13178 cat >conftest.$ac_ext <<_ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h. */
13185 /* Override any GCC internal prototype to avoid an error.
13186 Use char because int might match the return type of a GCC
13187 builtin and then its argument prototype would still apply. */
13191 char XRRGetScreenInfo ();
13195 return XRRGetScreenInfo ();
13200 rm -rf conftest.$ac_objext conftest$ac_exeext
13201 if { (ac_try="$ac_link"
13202 case "(($ac_try" in
13203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204 *) ac_try_echo=$ac_try;;
13206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13207 $as_echo "$ac_try_echo") >&5
13208 (eval "$ac_link") 2>conftest.er1
13210 grep -v '^ *+' conftest.er1 >conftest.err
13211 rm -rf conftest.er1
13212 cat conftest.err >&5
13213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); } && {
13215 test -z "$ac_c_werror_flag" ||
13216 test ! -s conftest.err
13217 } && test -s conftest$ac_exeext && {
13218 test "$cross_compiling" = yes ||
13219 $as_test_x conftest$ac_exeext
13221 ac_cv_lib_Xext_XRRGetScreenInfo=yes
13223 $as_echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13226 ac_cv_lib_Xext_XRRGetScreenInfo=no
13229 rm -rf conftest.dSYM
13230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13231 conftest$ac_exeext conftest.$ac_ext
13232 LIBS=$ac_check_lib_save_LIBS
13234 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XRRGetScreenInfo" >&5
13235 $as_echo "$ac_cv_lib_Xext_XRRGetScreenInfo" >&6; }
13236 if test "x$ac_cv_lib_Xext_XRRGetScreenInfo" = x""yes; then
13237 have_randr=yes; SAVER_LIBS="$SAVER_LIBS $xrender_libs"
13242 CPPFLAGS="$ac_save_CPPFLAGS"
13243 LDFLAGS="$ac_save_LDFLAGS"
13244 # LIBS="$ac_save_LIBS"
13247 # if that failed, look in -lXrandr
13248 if test "$have_randr" = no; then
13250 ac_save_CPPFLAGS="$CPPFLAGS"
13251 ac_save_LDFLAGS="$LDFLAGS"
13252 # ac_save_LIBS="$LIBS"
13254 if test \! -z "$includedir" ; then
13255 CPPFLAGS="$CPPFLAGS -I$includedir"
13257 # note: $X_CFLAGS includes $x_includes
13258 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13260 if test \! -z "$libdir" ; then
13261 LDFLAGS="$LDFLAGS -L$libdir"
13263 # note: $X_LIBS includes $x_libraries
13264 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13266 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13267 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13268 { $as_echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXrandr" >&5
13269 $as_echo_n "checking for XRRGetScreenInfo in -lXrandr... " >&6; }
13270 if test "${ac_cv_lib_Xrandr_XRRGetScreenInfo+set}" = set; then
13271 $as_echo_n "(cached) " >&6
13273 ac_check_lib_save_LIBS=$LIBS
13274 LIBS="-lXrandr $xrender_libs -lXext -lX11 $LIBS"
13275 cat >conftest.$ac_ext <<_ACEOF
13278 cat confdefs.h >>conftest.$ac_ext
13279 cat >>conftest.$ac_ext <<_ACEOF
13280 /* end confdefs.h. */
13282 /* Override any GCC internal prototype to avoid an error.
13283 Use char because int might match the return type of a GCC
13284 builtin and then its argument prototype would still apply. */
13288 char XRRGetScreenInfo ();
13292 return XRRGetScreenInfo ();
13297 rm -rf conftest.$ac_objext conftest$ac_exeext
13298 if { (ac_try="$ac_link"
13299 case "(($ac_try" in
13300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13301 *) ac_try_echo=$ac_try;;
13303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13304 $as_echo "$ac_try_echo") >&5
13305 (eval "$ac_link") 2>conftest.er1
13307 grep -v '^ *+' conftest.er1 >conftest.err
13308 rm -rf conftest.er1
13309 cat conftest.err >&5
13310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } && {
13312 test -z "$ac_c_werror_flag" ||
13313 test ! -s conftest.err
13314 } && test -s conftest$ac_exeext && {
13315 test "$cross_compiling" = yes ||
13316 $as_test_x conftest$ac_exeext
13318 ac_cv_lib_Xrandr_XRRGetScreenInfo=yes
13320 $as_echo "$as_me: failed program was:" >&5
13321 sed 's/^/| /' conftest.$ac_ext >&5
13323 ac_cv_lib_Xrandr_XRRGetScreenInfo=no
13326 rm -rf conftest.dSYM
13327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13328 conftest$ac_exeext conftest.$ac_ext
13329 LIBS=$ac_check_lib_save_LIBS
13331 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRGetScreenInfo" >&5
13332 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenInfo" >&6; }
13333 if test "x$ac_cv_lib_Xrandr_XRRGetScreenInfo" = x""yes; then
13334 have_randr=yes; SAVER_LIBS="$SAVER_LIBS -lXrandr $xrender_libs"
13339 CPPFLAGS="$ac_save_CPPFLAGS"
13340 LDFLAGS="$ac_save_LDFLAGS"
13341 # LIBS="$ac_save_LIBS"
13346 # if that succeeded, then we've really got it.
13347 if test "$have_randr" = yes; then
13348 cat >>confdefs.h <<\_ACEOF
13349 #define HAVE_RANDR 1
13353 # Now check for version 1.2 in the same libs.
13354 # Try to compile, since on MacOS 10.5.7, headers are older than libs!
13355 { $as_echo "$as_me:$LINENO: checking for XRRGetScreenResources" >&5
13356 $as_echo_n "checking for XRRGetScreenResources... " >&6; }
13357 if test "${ac_cv_randr_12+set}" = set; then
13358 $as_echo_n "(cached) " >&6
13362 ac_save_CPPFLAGS="$CPPFLAGS"
13363 if test \! -z "$includedir" ; then
13364 CPPFLAGS="$CPPFLAGS -I$includedir"
13366 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13367 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13368 cat >conftest.$ac_ext <<_ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 #include <stdlib.h>
13375 #include <X11/Xlib.h>
13376 #include <X11/extensions/Xrandr.h>
13380 XRRScreenResources *res =
13381 XRRGetScreenResources (0, 0);
13386 rm -rf conftest.$ac_objext
13387 if { (ac_try="$ac_compile"
13388 case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13393 $as_echo "$ac_try_echo") >&5
13394 (eval "$ac_compile") 2>conftest.er1
13396 grep -v '^ *+' conftest.er1 >conftest.err
13397 rm -rf conftest.er1
13398 cat conftest.err >&5
13399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } && {
13401 test -z "$ac_c_werror_flag" ||
13402 test ! -s conftest.err
13403 } && test -s conftest.$ac_objext; then
13406 $as_echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13413 CPPFLAGS="$ac_save_CPPFLAGS"
13415 { $as_echo "$as_me:$LINENO: result: $ac_cv_randr_12" >&5
13416 $as_echo "$ac_cv_randr_12" >&6; }
13417 if test "$ac_cv_randr_12" = yes ; then
13418 cat >>confdefs.h <<\_ACEOF
13419 #define HAVE_RANDR_12 1
13423 # AC_CHECK_X_LIB(c, XRRGetOutputInfo, [AC_DEFINE(HAVE_RANDR_12)],
13424 # [true], $SAVER_LIBS)
13428 elif test "$with_randr" != no; then
13429 echo "error: must be yes or no: --with-randr-ext=$with_randr"
13434 ###############################################################################
13436 # Check for XF86MiscSetGrabKeysState (but only bother if we are already
13437 # using other XF86 stuff.)
13439 ###############################################################################
13441 have_xf86miscsetgrabkeysstate=no
13442 if test "$have_xf86gamma" = yes -o "$have_xf86vmode" = yes; then
13444 ac_save_CPPFLAGS="$CPPFLAGS"
13445 ac_save_LDFLAGS="$LDFLAGS"
13446 # ac_save_LIBS="$LIBS"
13448 if test \! -z "$includedir" ; then
13449 CPPFLAGS="$CPPFLAGS -I$includedir"
13451 # note: $X_CFLAGS includes $x_includes
13452 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13454 if test \! -z "$libdir" ; then
13455 LDFLAGS="$LDFLAGS -L$libdir"
13457 # note: $X_LIBS includes $x_libraries
13458 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13460 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13461 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13462 { $as_echo "$as_me:$LINENO: checking for XF86MiscSetGrabKeysState in -lXxf86misc" >&5
13463 $as_echo_n "checking for XF86MiscSetGrabKeysState in -lXxf86misc... " >&6; }
13464 if test "${ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState+set}" = set; then
13465 $as_echo_n "(cached) " >&6
13467 ac_check_lib_save_LIBS=$LIBS
13468 LIBS="-lXxf86misc -lXext -lX11 $LIBS"
13469 cat >conftest.$ac_ext <<_ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h. */
13476 /* Override any GCC internal prototype to avoid an error.
13477 Use char because int might match the return type of a GCC
13478 builtin and then its argument prototype would still apply. */
13482 char XF86MiscSetGrabKeysState ();
13486 return XF86MiscSetGrabKeysState ();
13491 rm -rf conftest.$ac_objext conftest$ac_exeext
13492 if { (ac_try="$ac_link"
13493 case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13498 $as_echo "$ac_try_echo") >&5
13499 (eval "$ac_link") 2>conftest.er1
13501 grep -v '^ *+' conftest.er1 >conftest.err
13502 rm -rf conftest.er1
13503 cat conftest.err >&5
13504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } && {
13506 test -z "$ac_c_werror_flag" ||
13507 test ! -s conftest.err
13508 } && test -s conftest$ac_exeext && {
13509 test "$cross_compiling" = yes ||
13510 $as_test_x conftest$ac_exeext
13512 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=yes
13514 $as_echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13517 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=no
13520 rm -rf conftest.dSYM
13521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13522 conftest$ac_exeext conftest.$ac_ext
13523 LIBS=$ac_check_lib_save_LIBS
13525 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&5
13526 $as_echo "$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&6; }
13527 if test "x$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" = x""yes; then
13528 have_xf86miscsetgrabkeysstate=yes
13533 CPPFLAGS="$ac_save_CPPFLAGS"
13534 LDFLAGS="$ac_save_LDFLAGS"
13535 # LIBS="$ac_save_LIBS"
13537 if test "$have_xf86miscsetgrabkeysstate" = yes ; then
13538 SAVER_LIBS="$SAVER_LIBS -lXxf86misc"
13539 cat >>confdefs.h <<\_ACEOF
13540 #define HAVE_XF86MISCSETGRABKEYSSTATE 1
13547 ###############################################################################
13549 # Check for HP XHPDisableReset and XHPEnableReset.
13551 ###############################################################################
13553 { $as_echo "$as_me:$LINENO: checking for XHPDisableReset in X11/XHPlib.h" >&5
13554 $as_echo_n "checking for XHPDisableReset in X11/XHPlib.h... " >&6; }
13556 ac_save_CPPFLAGS="$CPPFLAGS"
13557 if test \! -z "$includedir" ; then
13558 CPPFLAGS="$CPPFLAGS -I$includedir"
13560 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13561 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13562 cat >conftest.$ac_ext <<_ACEOF
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h. */
13568 #include <X11/XHPlib.h>
13571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13572 $EGREP "XHPDisableReset" >/dev/null 2>&1; then
13573 cat >>confdefs.h <<\_ACEOF
13574 #define HAVE_XHPDISABLERESET 1
13577 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
13578 { $as_echo "$as_me:$LINENO: result: yes" >&5
13579 $as_echo "yes" >&6; }
13581 { $as_echo "$as_me:$LINENO: result: no" >&5
13582 $as_echo "no" >&6; }
13586 CPPFLAGS="$ac_save_CPPFLAGS"
13589 ###############################################################################
13591 # Check for /proc/interrupts.
13593 ###############################################################################
13595 have_proc_interrupts=no
13596 with_proc_interrupts_req=unspecified
13598 # Check whether --with-proc-interrupts was given.
13599 if test "${with_proc_interrupts+set}" = set; then
13600 withval=$with_proc_interrupts; with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
13602 with_proc_interrupts=yes
13606 if test "$with_proc_interrupts" = yes; then
13608 # Note that we may be building in an environment (e.g. Debian buildd chroot)
13609 # without a proper /proc filesystem. If /proc/interrupts exists, then we'll
13610 # check that it has the bits we need, but otherwise we'll just go on faith.
13612 have_proc_interrupts=yes
13614 if test -f /proc/interrupts; then
13615 { $as_echo "$as_me:$LINENO: checking whether /proc/interrupts contains keyboard data" >&5
13616 $as_echo_n "checking whether /proc/interrupts contains keyboard data... " >&6; }
13617 if test "${ac_cv_have_proc_interrupts+set}" = set; then
13618 $as_echo_n "(cached) " >&6
13620 ac_cv_have_proc_interrupts=no
13621 if grep 'keyboard\|i8042' /proc/interrupts >/dev/null 2>&1 ; then
13622 ac_cv_have_proc_interrupts=yes
13626 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_proc_interrupts" >&5
13627 $as_echo "$ac_cv_have_proc_interrupts" >&6; }
13628 have_proc_interrupts=$ac_cv_have_proc_interrupts
13631 if test "$have_proc_interrupts" = yes; then
13632 cat >>confdefs.h <<\_ACEOF
13633 #define HAVE_PROC_INTERRUPTS 1
13638 elif test "$with_proc_interrupts" != no; then
13639 echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
13644 ###############################################################################
13646 # The --enable-locking option
13648 ###############################################################################
13650 # Check whether --enable-locking was given.
13651 if test "${enable_locking+set}" = set; then
13652 enableval=$enable_locking; enable_locking="$enableval"
13654 if test "$ac_macosx" = yes; then
13655 # We can't lock on MacOS X, so default to not compiling in support for it.
13656 # But allow --enable-locking to override that, so I can debug Linux locking
13664 if test "$enable_locking" = yes; then
13666 elif test "$enable_locking" = no; then
13667 cat >>confdefs.h <<\_ACEOF
13668 #define NO_LOCKING 1
13672 echo "error: must be yes or no: --enable-locking=$enable_locking"
13677 ###############################################################################
13679 # Whether to allow root password to unblank.
13681 ###############################################################################
13682 # Check whether --enable-root-passwd was given.
13683 if test "${enable_root_passwd+set}" = set; then
13684 enableval=$enable_root_passwd; enable_root_passwd="$enableval"
13686 enable_root_passwd=yes
13689 if test "$enable_root_passwd" = yes; then
13690 cat >>confdefs.h <<\_ACEOF
13691 #define ALLOW_ROOT_PASSWD 1
13695 elif test "$enable_root_passwd" != no; then
13696 echo "error: must be yes or no: --enable-root-passwd=$enable_root_passwd"
13700 ###############################################################################
13704 ###############################################################################
13708 # Solaris systems tend to come with PAM misconfigured.
13709 # Don't build it by default, even if the headers exist.
13710 with_pam_default=no
13713 # Default to building PAM support on all other systems, if it exists.
13714 with_pam_default=yes
13719 with_pam_req=unspecified
13722 # Check whether --with-pam was given.
13723 if test "${with_pam+set}" = set; then
13724 withval=$with_pam; with_pam="$withval"; with_pam_req="$withval"
13726 with_pam=$with_pam_default
13731 # Check whether --with-pam_service_name was given.
13732 if test "${with_pam_service_name+set}" = set; then
13733 withval=$with_pam_service_name; pam_service_name="$withval"
13735 pam_service_name="xscreensaver"
13739 # Check whether --enable-pam-check-account-type was given.
13740 if test "${enable_pam_check_account_type+set}" = set; then
13741 enableval=$enable_pam_check_account_type; enable_pam_check_account_type="$enableval"
13743 enable_pam_check_account_type=no
13746 if test "$enable_pam_check_account_type" = yes ; then
13747 cat >>confdefs.h <<\_ACEOF
13748 #define PAM_CHECK_ACCOUNT_TYPE 1
13752 elif test "$enable_pam_check_account_type" != no ; then
13753 echo "error: must be yes or no: --enable-pam-check-account-type=$enable_pam_check_account_type"
13758 case "$with_pam" in
13763 { $as_echo "$as_me:$LINENO: checking for PAM headers" >&5
13764 $as_echo_n "checking for PAM headers... " >&6; }
13765 d=$with_pam/include
13766 if test -d $d; then
13767 X_CFLAGS="-I$d $X_CFLAGS"
13768 { $as_echo "$as_me:$LINENO: result: $d" >&5
13769 $as_echo "$d" >&6; }
13771 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13772 $as_echo "not found ($d: no such directory)" >&6; }
13775 { $as_echo "$as_me:$LINENO: checking for PAM libs" >&5
13776 $as_echo_n "checking for PAM libs... " >&6; }
13778 if test -d $d; then
13779 X_LIBS="-L$d $X_LIBS"
13780 { $as_echo "$as_me:$LINENO: result: $d" >&5
13781 $as_echo "$d" >&6; }
13783 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13784 $as_echo "not found ($d: no such directory)" >&6; }
13787 # replace the directory string with "yes".
13789 with_pam=$with_pam_req
13794 echo "error: argument to --with-pam must be \"yes\", \"no\", or a directory."
13795 echo " If it is a directory, then \`DIR/include' will be added to"
13796 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13802 if test "$enable_locking" = yes -a "$with_pam" = yes; then
13803 { $as_echo "$as_me:$LINENO: checking for PAM" >&5
13804 $as_echo_n "checking for PAM... " >&6; }
13805 if test "${ac_cv_pam+set}" = set; then
13806 $as_echo_n "(cached) " >&6
13809 ac_save_CPPFLAGS="$CPPFLAGS"
13810 if test \! -z "$includedir" ; then
13811 CPPFLAGS="$CPPFLAGS -I$includedir"
13813 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13814 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13815 cat >conftest.$ac_ext <<_ACEOF
13818 cat confdefs.h >>conftest.$ac_ext
13819 cat >>conftest.$ac_ext <<_ACEOF
13820 /* end confdefs.h. */
13821 #include <security/pam_appl.h>
13830 rm -rf conftest.$ac_objext
13831 if { (ac_try="$ac_compile"
13832 case "(($ac_try" in
13833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834 *) ac_try_echo=$ac_try;;
13836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13837 $as_echo "$ac_try_echo") >&5
13838 (eval "$ac_compile") 2>conftest.er1
13840 grep -v '^ *+' conftest.er1 >conftest.err
13841 rm -rf conftest.er1
13842 cat conftest.err >&5
13843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } && {
13845 test -z "$ac_c_werror_flag" ||
13846 test ! -s conftest.err
13847 } && test -s conftest.$ac_objext; then
13850 $as_echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13857 CPPFLAGS="$ac_save_CPPFLAGS"
13859 { $as_echo "$as_me:$LINENO: result: $ac_cv_pam" >&5
13860 $as_echo "$ac_cv_pam" >&6; }
13861 if test "$ac_cv_pam" = yes ; then
13863 cat >>confdefs.h <<\_ACEOF
13867 cat >>confdefs.h <<_ACEOF
13868 #define PAM_SERVICE_NAME "$pam_service_name"
13872 PASSWD_LIBS="${PASSWD_LIBS} -lpam"
13874 # libpam typically requires dlopen and dlsym. On FreeBSD,
13875 # those are in libc. On Linux and Solaris, they're in libdl.
13876 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13877 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13878 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13879 $as_echo_n "(cached) " >&6
13881 ac_check_lib_save_LIBS=$LIBS
13883 cat >conftest.$ac_ext <<_ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h. */
13890 /* Override any GCC internal prototype to avoid an error.
13891 Use char because int might match the return type of a GCC
13892 builtin and then its argument prototype would still apply. */
13905 rm -rf conftest.$ac_objext conftest$ac_exeext
13906 if { (ac_try="$ac_link"
13907 case "(($ac_try" in
13908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13909 *) ac_try_echo=$ac_try;;
13911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13912 $as_echo "$ac_try_echo") >&5
13913 (eval "$ac_link") 2>conftest.er1
13915 grep -v '^ *+' conftest.er1 >conftest.err
13916 rm -rf conftest.er1
13917 cat conftest.err >&5
13918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); } && {
13920 test -z "$ac_c_werror_flag" ||
13921 test ! -s conftest.err
13922 } && test -s conftest$ac_exeext && {
13923 test "$cross_compiling" = yes ||
13924 $as_test_x conftest$ac_exeext
13926 ac_cv_lib_dl_dlopen=yes
13928 $as_echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.$ac_ext >&5
13931 ac_cv_lib_dl_dlopen=no
13934 rm -rf conftest.dSYM
13935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13936 conftest$ac_exeext conftest.$ac_ext
13937 LIBS=$ac_check_lib_save_LIBS
13939 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13940 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13941 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
13942 PASSWD_LIBS="${PASSWD_LIBS} -ldl"
13946 # On Linux, sigtimedwait() is in libc; on Solaris, it's in librt.
13948 { $as_echo "$as_me:$LINENO: checking for sigtimedwait in -lc" >&5
13949 $as_echo_n "checking for sigtimedwait in -lc... " >&6; }
13950 if test "${ac_cv_lib_c_sigtimedwait+set}" = set; then
13951 $as_echo_n "(cached) " >&6
13953 ac_check_lib_save_LIBS=$LIBS
13955 cat >conftest.$ac_ext <<_ACEOF
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h. */
13962 /* Override any GCC internal prototype to avoid an error.
13963 Use char because int might match the return type of a GCC
13964 builtin and then its argument prototype would still apply. */
13968 char sigtimedwait ();
13972 return sigtimedwait ();
13977 rm -rf conftest.$ac_objext conftest$ac_exeext
13978 if { (ac_try="$ac_link"
13979 case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13984 $as_echo "$ac_try_echo") >&5
13985 (eval "$ac_link") 2>conftest.er1
13987 grep -v '^ *+' conftest.er1 >conftest.err
13988 rm -rf conftest.er1
13989 cat conftest.err >&5
13990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); } && {
13992 test -z "$ac_c_werror_flag" ||
13993 test ! -s conftest.err
13994 } && test -s conftest$ac_exeext && {
13995 test "$cross_compiling" = yes ||
13996 $as_test_x conftest$ac_exeext
13998 ac_cv_lib_c_sigtimedwait=yes
14000 $as_echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14003 ac_cv_lib_c_sigtimedwait=no
14006 rm -rf conftest.dSYM
14007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14008 conftest$ac_exeext conftest.$ac_ext
14009 LIBS=$ac_check_lib_save_LIBS
14011 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigtimedwait" >&5
14012 $as_echo "$ac_cv_lib_c_sigtimedwait" >&6; }
14013 if test "x$ac_cv_lib_c_sigtimedwait" = x""yes; then
14015 cat >>confdefs.h <<\_ACEOF
14016 #define HAVE_SIGTIMEDWAIT 1
14021 if test "$have_timedwait" = no ; then
14022 { $as_echo "$as_me:$LINENO: checking for sigtimedwait in -lrt" >&5
14023 $as_echo_n "checking for sigtimedwait in -lrt... " >&6; }
14024 if test "${ac_cv_lib_rt_sigtimedwait+set}" = set; then
14025 $as_echo_n "(cached) " >&6
14027 ac_check_lib_save_LIBS=$LIBS
14029 cat >conftest.$ac_ext <<_ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h. */
14036 /* Override any GCC internal prototype to avoid an error.
14037 Use char because int might match the return type of a GCC
14038 builtin and then its argument prototype would still apply. */
14042 char sigtimedwait ();
14046 return sigtimedwait ();
14051 rm -rf conftest.$ac_objext conftest$ac_exeext
14052 if { (ac_try="$ac_link"
14053 case "(($ac_try" in
14054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14055 *) ac_try_echo=$ac_try;;
14057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14058 $as_echo "$ac_try_echo") >&5
14059 (eval "$ac_link") 2>conftest.er1
14061 grep -v '^ *+' conftest.er1 >conftest.err
14062 rm -rf conftest.er1
14063 cat conftest.err >&5
14064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } && {
14066 test -z "$ac_c_werror_flag" ||
14067 test ! -s conftest.err
14068 } && test -s conftest$ac_exeext && {
14069 test "$cross_compiling" = yes ||
14070 $as_test_x conftest$ac_exeext
14072 ac_cv_lib_rt_sigtimedwait=yes
14074 $as_echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14077 ac_cv_lib_rt_sigtimedwait=no
14080 rm -rf conftest.dSYM
14081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14082 conftest$ac_exeext conftest.$ac_ext
14083 LIBS=$ac_check_lib_save_LIBS
14085 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sigtimedwait" >&5
14086 $as_echo "$ac_cv_lib_rt_sigtimedwait" >&6; }
14087 if test "x$ac_cv_lib_rt_sigtimedwait" = x""yes; then
14089 cat >>confdefs.h <<\_ACEOF
14090 #define HAVE_SIGTIMEDWAIT 1
14093 PASSWD_LIBS="${PASSWD_LIBS} -lrt"
14098 { $as_echo "$as_me:$LINENO: checking how to call pam_strerror" >&5
14099 $as_echo_n "checking how to call pam_strerror... " >&6; }
14100 if test "${ac_cv_pam_strerror_args+set}" = set; then
14101 $as_echo_n "(cached) " >&6
14104 ac_save_CPPFLAGS="$CPPFLAGS"
14105 if test \! -z "$includedir" ; then
14106 CPPFLAGS="$CPPFLAGS -I$includedir"
14108 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14109 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14110 cat >conftest.$ac_ext <<_ACEOF
14113 cat confdefs.h >>conftest.$ac_ext
14114 cat >>conftest.$ac_ext <<_ACEOF
14115 /* end confdefs.h. */
14117 #include <stdlib.h>
14118 #include <security/pam_appl.h>
14122 pam_handle_t *pamh = 0;
14123 char *s = pam_strerror(pamh, PAM_SUCCESS);
14128 rm -rf conftest.$ac_objext
14129 if { (ac_try="$ac_compile"
14130 case "(($ac_try" in
14131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132 *) ac_try_echo=$ac_try;;
14134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14135 $as_echo "$ac_try_echo") >&5
14136 (eval "$ac_compile") 2>conftest.er1
14138 grep -v '^ *+' conftest.er1 >conftest.err
14139 rm -rf conftest.er1
14140 cat conftest.err >&5
14141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } && {
14143 test -z "$ac_c_werror_flag" ||
14144 test ! -s conftest.err
14145 } && test -s conftest.$ac_objext; then
14146 ac_pam_strerror_args=2
14148 $as_echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.$ac_ext >&5
14152 ac_save_CPPFLAGS="$CPPFLAGS"
14153 if test \! -z "$includedir" ; then
14154 CPPFLAGS="$CPPFLAGS -I$includedir"
14156 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14157 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14158 cat >conftest.$ac_ext <<_ACEOF
14161 cat confdefs.h >>conftest.$ac_ext
14162 cat >>conftest.$ac_ext <<_ACEOF
14163 /* end confdefs.h. */
14165 #include <stdlib.h>
14166 #include <security/pam_appl.h>
14171 pam_strerror(PAM_SUCCESS);
14176 rm -rf 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14183 $as_echo "$ac_try_echo") >&5
14184 (eval "$ac_compile") 2>conftest.er1
14186 grep -v '^ *+' conftest.er1 >conftest.err
14187 rm -rf conftest.er1
14188 cat conftest.err >&5
14189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } && {
14191 test -z "$ac_c_werror_flag" ||
14192 test ! -s conftest.err
14193 } && test -s conftest.$ac_objext; then
14194 ac_pam_strerror_args=1
14196 $as_echo "$as_me: failed program was:" >&5
14197 sed 's/^/| /' conftest.$ac_ext >&5
14199 ac_pam_strerror_args=0
14202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14203 CPPFLAGS="$ac_save_CPPFLAGS"
14206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14207 CPPFLAGS="$ac_save_CPPFLAGS"
14208 ac_cv_pam_strerror_args=$ac_pam_strerror_args
14211 ac_pam_strerror_args=$ac_cv_pam_strerror_args
14212 if test "$ac_pam_strerror_args" = 1 ; then
14213 { $as_echo "$as_me:$LINENO: result: one argument" >&5
14214 $as_echo "one argument" >&6; }
14215 elif test "$ac_pam_strerror_args" = 2 ; then
14216 cat >>confdefs.h <<\_ACEOF
14217 #define PAM_STRERROR_TWO_ARGS 1
14220 { $as_echo "$as_me:$LINENO: result: two arguments" >&5
14221 $as_echo "two arguments" >&6; }
14223 { $as_echo "$as_me:$LINENO: result: unknown" >&5
14224 $as_echo "unknown" >&6; }
14227 # Check pam_fail_delay
14228 { $as_echo "$as_me:$LINENO: checking pam_fail_delay in -lpam" >&5
14229 $as_echo_n "checking pam_fail_delay in -lpam... " >&6; }
14230 if test "${ac_cv_pam_fail_delay+set}" = set; then
14231 $as_echo_n "(cached) " >&6
14233 ac_save_LDFLAGS="$LDFLAGS"
14235 cat >conftest.$ac_ext <<_ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14241 #include <security/pam_appl.h>
14245 pam_handle_t *pamh = 0;
14246 unsigned int usec = 1;
14247 int status = pam_fail_delay (pamh, usec);
14252 rm -rf conftest.$ac_objext conftest$ac_exeext
14253 if { (ac_try="$ac_link"
14254 case "(($ac_try" in
14255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14256 *) ac_try_echo=$ac_try;;
14258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14259 $as_echo "$ac_try_echo") >&5
14260 (eval "$ac_link") 2>conftest.er1
14262 grep -v '^ *+' conftest.er1 >conftest.err
14263 rm -rf conftest.er1
14264 cat conftest.err >&5
14265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } && {
14267 test -z "$ac_c_werror_flag" ||
14268 test ! -s conftest.err
14269 } && test -s conftest$ac_exeext && {
14270 test "$cross_compiling" = yes ||
14271 $as_test_x conftest$ac_exeext
14273 ac_pam_fail_delay=yes
14275 $as_echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.$ac_ext >&5
14278 ac_pam_fail_delay=no
14281 rm -rf conftest.dSYM
14282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14283 conftest$ac_exeext conftest.$ac_ext
14284 ac_cv_pam_fail_delay=$ac_pam_fail_delay,
14285 LDFLAGS=$ac_save_LDFLAGS
14289 if test "$ac_pam_fail_delay" = yes ; then
14290 { $as_echo "$as_me:$LINENO: result: yes" >&5
14291 $as_echo "yes" >&6; }
14292 cat >>confdefs.h <<\_ACEOF
14293 #define HAVE_PAM_FAIL_DELAY 1
14297 { $as_echo "$as_me:$LINENO: result: no" >&5
14298 $as_echo "no" >&6; }
14305 ###############################################################################
14307 # Check for Kerberos.
14309 ###############################################################################
14313 with_kerberos_req=unspecified
14316 # Check whether --with-kerberos was given.
14317 if test "${with_kerberos+set}" = set; then
14318 withval=$with_kerberos; with_kerberos="$withval"; with_kerberos_req="$withval"
14325 case "$with_kerberos" in
14330 { $as_echo "$as_me:$LINENO: checking for Kerberos headers" >&5
14331 $as_echo_n "checking for Kerberos headers... " >&6; }
14332 d=$with_kerberos/include
14333 if test -d $d; then
14334 X_CFLAGS="-I$d $X_CFLAGS"
14335 { $as_echo "$as_me:$LINENO: result: $d" >&5
14336 $as_echo "$d" >&6; }
14338 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14339 $as_echo "not found ($d: no such directory)" >&6; }
14342 { $as_echo "$as_me:$LINENO: checking for Kerberos libs" >&5
14343 $as_echo_n "checking for Kerberos libs... " >&6; }
14344 d=$with_kerberos/lib
14345 if test -d $d; then
14346 X_LIBS="-L$d $X_LIBS"
14347 { $as_echo "$as_me:$LINENO: result: $d" >&5
14348 $as_echo "$d" >&6; }
14350 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14351 $as_echo "not found ($d: no such directory)" >&6; }
14354 # replace the directory string with "yes".
14355 with_kerberos_req="yes"
14356 with_kerberos=$with_kerberos_req
14361 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
14362 echo " If it is a directory, then \`DIR/include' will be added to"
14363 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14369 if test "$enable_locking" = yes -a "$with_kerberos" = yes; then
14370 { $as_echo "$as_me:$LINENO: checking for Kerberos 4" >&5
14371 $as_echo_n "checking for Kerberos 4... " >&6; }
14372 if test "${ac_cv_kerberos+set}" = set; then
14373 $as_echo_n "(cached) " >&6
14376 ac_save_CPPFLAGS="$CPPFLAGS"
14377 if test \! -z "$includedir" ; then
14378 CPPFLAGS="$CPPFLAGS -I$includedir"
14380 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14381 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14382 cat >conftest.$ac_ext <<_ACEOF
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h. */
14397 rm -rf conftest.$ac_objext
14398 if { (ac_try="$ac_compile"
14399 case "(($ac_try" in
14400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401 *) ac_try_echo=$ac_try;;
14403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14404 $as_echo "$ac_try_echo") >&5
14405 (eval "$ac_compile") 2>conftest.er1
14407 grep -v '^ *+' conftest.er1 >conftest.err
14408 rm -rf conftest.er1
14409 cat conftest.err >&5
14410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } && {
14412 test -z "$ac_c_werror_flag" ||
14413 test ! -s conftest.err
14414 } && test -s conftest.$ac_objext; then
14417 $as_echo "$as_me: failed program was:" >&5
14418 sed 's/^/| /' conftest.$ac_ext >&5
14423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14424 CPPFLAGS="$ac_save_CPPFLAGS"
14426 { $as_echo "$as_me:$LINENO: result: $ac_cv_kerberos" >&5
14427 $as_echo "$ac_cv_kerberos" >&6; }
14428 { $as_echo "$as_me:$LINENO: checking for Kerberos 5" >&5
14429 $as_echo_n "checking for Kerberos 5... " >&6; }
14430 if test "${ac_cv_kerberos5+set}" = set; then
14431 $as_echo_n "(cached) " >&6
14434 ac_save_CPPFLAGS="$CPPFLAGS"
14435 if test \! -z "$includedir" ; then
14436 CPPFLAGS="$CPPFLAGS -I$includedir"
14438 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14439 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14440 cat >conftest.$ac_ext <<_ACEOF
14443 cat confdefs.h >>conftest.$ac_ext
14444 cat >>conftest.$ac_ext <<_ACEOF
14445 /* end confdefs.h. */
14446 #include <kerberosIV/krb.h>
14455 rm -rf conftest.$ac_objext
14456 if { (ac_try="$ac_compile"
14457 case "(($ac_try" in
14458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459 *) ac_try_echo=$ac_try;;
14461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14462 $as_echo "$ac_try_echo") >&5
14463 (eval "$ac_compile") 2>conftest.er1
14465 grep -v '^ *+' conftest.er1 >conftest.err
14466 rm -rf conftest.er1
14467 cat conftest.err >&5
14468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } && {
14470 test -z "$ac_c_werror_flag" ||
14471 test ! -s conftest.err
14472 } && test -s conftest.$ac_objext; then
14473 ac_cv_kerberos5=yes
14475 $as_echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14482 CPPFLAGS="$ac_save_CPPFLAGS"
14484 { $as_echo "$as_me:$LINENO: result: $ac_cv_kerberos5" >&5
14485 $as_echo "$ac_cv_kerberos5" >&6; }
14487 if test "$ac_cv_kerberos" = yes ; then
14489 cat >>confdefs.h <<\_ACEOF
14490 #define HAVE_KERBEROS 1
14495 if test "$ac_cv_kerberos5" = yes ; then
14497 # Andrew Snare <ajs@pigpond.com> wrote:
14499 # You were assuming that if kerberosV (krb5) was found, then kerberosIV
14500 # (krb4) was also available. This turns out not to be the case with
14501 # mit-krb-1.2.7; apparently backwards-compatibility with KerberosIV
14504 # So, disable kerberosV support if libkrb4 can't be found.
14505 # This is not the best solution, but it makes the compile not fail.
14508 ac_save_CPPFLAGS="$CPPFLAGS"
14509 ac_save_LDFLAGS="$LDFLAGS"
14510 # ac_save_LIBS="$LIBS"
14512 if test \! -z "$includedir" ; then
14513 CPPFLAGS="$CPPFLAGS -I$includedir"
14515 # note: $X_CFLAGS includes $x_includes
14516 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14518 if test \! -z "$libdir" ; then
14519 LDFLAGS="$LDFLAGS -L$libdir"
14521 # note: $X_LIBS includes $x_libraries
14522 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14524 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14525 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14526 { $as_echo "$as_me:$LINENO: checking for krb_get_tf_realm in -lkrb4" >&5
14527 $as_echo_n "checking for krb_get_tf_realm in -lkrb4... " >&6; }
14528 if test "${ac_cv_lib_krb4_krb_get_tf_realm+set}" = set; then
14529 $as_echo_n "(cached) " >&6
14531 ac_check_lib_save_LIBS=$LIBS
14532 LIBS="-lkrb4 $LIBS"
14533 cat >conftest.$ac_ext <<_ACEOF
14536 cat confdefs.h >>conftest.$ac_ext
14537 cat >>conftest.$ac_ext <<_ACEOF
14538 /* end confdefs.h. */
14540 /* Override any GCC internal prototype to avoid an error.
14541 Use char because int might match the return type of a GCC
14542 builtin and then its argument prototype would still apply. */
14546 char krb_get_tf_realm ();
14550 return krb_get_tf_realm ();
14555 rm -rf conftest.$ac_objext conftest$ac_exeext
14556 if { (ac_try="$ac_link"
14557 case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14562 $as_echo "$ac_try_echo") >&5
14563 (eval "$ac_link") 2>conftest.er1
14565 grep -v '^ *+' conftest.er1 >conftest.err
14566 rm -rf conftest.er1
14567 cat conftest.err >&5
14568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); } && {
14570 test -z "$ac_c_werror_flag" ||
14571 test ! -s conftest.err
14572 } && test -s conftest$ac_exeext && {
14573 test "$cross_compiling" = yes ||
14574 $as_test_x conftest$ac_exeext
14576 ac_cv_lib_krb4_krb_get_tf_realm=yes
14578 $as_echo "$as_me: failed program was:" >&5
14579 sed 's/^/| /' conftest.$ac_ext >&5
14581 ac_cv_lib_krb4_krb_get_tf_realm=no
14584 rm -rf conftest.dSYM
14585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14586 conftest$ac_exeext conftest.$ac_ext
14587 LIBS=$ac_check_lib_save_LIBS
14589 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_tf_realm" >&5
14590 $as_echo "$ac_cv_lib_krb4_krb_get_tf_realm" >&6; }
14591 if test "x$ac_cv_lib_krb4_krb_get_tf_realm" = x""yes; then
14597 CPPFLAGS="$ac_save_CPPFLAGS"
14598 LDFLAGS="$ac_save_LDFLAGS"
14599 # LIBS="$ac_save_LIBS"
14601 if test "$have_kerberos" = yes ; then
14603 cat >>confdefs.h <<\_ACEOF
14604 #define HAVE_KERBEROS 1
14607 cat >>confdefs.h <<\_ACEOF
14608 #define HAVE_KERBEROS5 1
14613 { $as_echo "$as_me:$LINENO: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&5
14614 $as_echo "$as_me: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&2;}
14619 if test "$have_kerberos5" = yes ; then
14620 # from Matt Knopp <mhat@infocalypse.netlag.com>
14621 # (who got it from amu@mit.edu)
14623 PASSWD_LIBS="$PASSWD_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
14625 # jwz: MacOS X uses -lkrb5, but not -lcrypt
14627 ac_save_CPPFLAGS="$CPPFLAGS"
14628 ac_save_LDFLAGS="$LDFLAGS"
14629 # ac_save_LIBS="$LIBS"
14631 if test \! -z "$includedir" ; then
14632 CPPFLAGS="$CPPFLAGS -I$includedir"
14634 # note: $X_CFLAGS includes $x_includes
14635 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14637 if test \! -z "$libdir" ; then
14638 LDFLAGS="$LDFLAGS -L$libdir"
14640 # note: $X_LIBS includes $x_libraries
14641 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14643 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14644 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14645 { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
14646 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
14647 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
14648 $as_echo_n "(cached) " >&6
14650 ac_check_lib_save_LIBS=$LIBS
14651 LIBS="-lcrypt $LIBS"
14652 cat >conftest.$ac_ext <<_ACEOF
14655 cat confdefs.h >>conftest.$ac_ext
14656 cat >>conftest.$ac_ext <<_ACEOF
14657 /* end confdefs.h. */
14659 /* Override any GCC internal prototype to avoid an error.
14660 Use char because int might match the return type of a GCC
14661 builtin and then its argument prototype would still apply. */
14674 rm -rf conftest.$ac_objext conftest$ac_exeext
14675 if { (ac_try="$ac_link"
14676 case "(($ac_try" in
14677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14678 *) ac_try_echo=$ac_try;;
14680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14681 $as_echo "$ac_try_echo") >&5
14682 (eval "$ac_link") 2>conftest.er1
14684 grep -v '^ *+' conftest.er1 >conftest.err
14685 rm -rf conftest.er1
14686 cat conftest.err >&5
14687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); } && {
14689 test -z "$ac_c_werror_flag" ||
14690 test ! -s conftest.err
14691 } && test -s conftest$ac_exeext && {
14692 test "$cross_compiling" = yes ||
14693 $as_test_x conftest$ac_exeext
14695 ac_cv_lib_crypt_crypt=yes
14697 $as_echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.$ac_ext >&5
14700 ac_cv_lib_crypt_crypt=no
14703 rm -rf conftest.dSYM
14704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14705 conftest$ac_exeext conftest.$ac_ext
14706 LIBS=$ac_check_lib_save_LIBS
14708 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
14709 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
14710 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
14711 PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
14714 CPPFLAGS="$ac_save_CPPFLAGS"
14715 LDFLAGS="$ac_save_LDFLAGS"
14716 # LIBS="$ac_save_LIBS"
14719 elif test "$have_kerberos" = yes ; then
14720 # from Tim Showalter <tjs@psaux.com> for FreeBSD 4.2
14721 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
14724 if test "$have_kerberos" = yes ; then
14725 { $as_echo "$as_me:$LINENO: checking for res_search" >&5
14726 $as_echo_n "checking for res_search... " >&6; }
14727 if test "${ac_cv_func_res_search+set}" = set; then
14728 $as_echo_n "(cached) " >&6
14730 cat >conftest.$ac_ext <<_ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h. */
14736 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
14737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14738 #define res_search innocuous_res_search
14740 /* System header to define __stub macros and hopefully few prototypes,
14741 which can conflict with char res_search (); below.
14742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14743 <limits.h> exists even on freestanding compilers. */
14746 # include <limits.h>
14748 # include <assert.h>
14753 /* Override any GCC internal prototype to avoid an error.
14754 Use char because int might match the return type of a GCC
14755 builtin and then its argument prototype would still apply. */
14759 char res_search ();
14760 /* The GNU C library defines this for functions which it implements
14761 to always fail with ENOSYS. Some functions are actually named
14762 something starting with __ and the normal name is an alias. */
14763 #if defined __stub_res_search || defined __stub___res_search
14770 return res_search ();
14775 rm -rf conftest.$ac_objext conftest$ac_exeext
14776 if { (ac_try="$ac_link"
14777 case "(($ac_try" in
14778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14779 *) ac_try_echo=$ac_try;;
14781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14782 $as_echo "$ac_try_echo") >&5
14783 (eval "$ac_link") 2>conftest.er1
14785 grep -v '^ *+' conftest.er1 >conftest.err
14786 rm -rf conftest.er1
14787 cat conftest.err >&5
14788 $as_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 test "$cross_compiling" = yes ||
14794 $as_test_x conftest$ac_exeext
14796 ac_cv_func_res_search=yes
14798 $as_echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14801 ac_cv_func_res_search=no
14804 rm -rf conftest.dSYM
14805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14806 conftest$ac_exeext conftest.$ac_ext
14808 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
14809 $as_echo "$ac_cv_func_res_search" >&6; }
14810 if test "x$ac_cv_func_res_search" = x""yes; then
14813 { $as_echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
14814 $as_echo_n "checking for res_search in -lresolv... " >&6; }
14815 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
14816 $as_echo_n "(cached) " >&6
14818 ac_check_lib_save_LIBS=$LIBS
14819 LIBS="-lresolv $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. */
14833 char res_search ();
14837 return res_search ();
14842 rm -rf 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14849 $as_echo "$ac_try_echo") >&5
14850 (eval "$ac_link") 2>conftest.er1
14852 grep -v '^ *+' conftest.er1 >conftest.err
14853 rm -rf conftest.er1
14854 cat conftest.err >&5
14855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } && {
14857 test -z "$ac_c_werror_flag" ||
14858 test ! -s conftest.err
14859 } && test -s conftest$ac_exeext && {
14860 test "$cross_compiling" = yes ||
14861 $as_test_x conftest$ac_exeext
14863 ac_cv_lib_resolv_res_search=yes
14865 $as_echo "$as_me: failed program was:" >&5
14866 sed 's/^/| /' conftest.$ac_ext >&5
14868 ac_cv_lib_resolv_res_search=no
14871 rm -rf conftest.dSYM
14872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14873 conftest$ac_exeext conftest.$ac_ext
14874 LIBS=$ac_check_lib_save_LIBS
14876 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
14877 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
14878 if test "x$ac_cv_lib_resolv_res_search" = x""yes; then
14879 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
14881 { $as_echo "$as_me:$LINENO: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&5
14882 $as_echo "$as_me: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&2;}
14892 ###############################################################################
14894 # Check for the nine billion variants of shadow passwords...
14896 ###############################################################################
14901 with_shadow_req=unspecified
14904 # Check whether --with-shadow was given.
14905 if test "${with_shadow+set}" = set; then
14906 withval=$with_shadow; with_shadow="$withval"; with_shadow_req="$withval"
14913 case "$with_shadow" in
14918 { $as_echo "$as_me:$LINENO: checking for shadow password headers" >&5
14919 $as_echo_n "checking for shadow password headers... " >&6; }
14920 d=$with_shadow/include
14921 if test -d $d; then
14922 X_CFLAGS="-I$d $X_CFLAGS"
14923 { $as_echo "$as_me:$LINENO: result: $d" >&5
14924 $as_echo "$d" >&6; }
14926 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14927 $as_echo "not found ($d: no such directory)" >&6; }
14930 { $as_echo "$as_me:$LINENO: checking for shadow password libs" >&5
14931 $as_echo_n "checking for shadow password libs... " >&6; }
14933 if test -d $d; then
14934 X_LIBS="-L$d $X_LIBS"
14935 { $as_echo "$as_me:$LINENO: result: $d" >&5
14936 $as_echo "$d" >&6; }
14938 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14939 $as_echo "not found ($d: no such directory)" >&6; }
14942 # replace the directory string with "yes".
14943 with_shadow_req="yes"
14944 with_shadow=$with_shadow_req
14949 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
14950 echo " If it is a directory, then \`DIR/include' will be added to"
14951 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14957 if test "$enable_locking" = no ; then
14963 ###############################################################################
14965 # Check for Sun "adjunct" passwords.
14967 ###############################################################################
14969 if test "$with_shadow" = yes ; then
14970 { $as_echo "$as_me:$LINENO: checking for Sun-style shadow passwords" >&5
14971 $as_echo_n "checking for Sun-style shadow passwords... " >&6; }
14972 if test "${ac_cv_sun_adjunct+set}" = set; then
14973 $as_echo_n "(cached) " >&6
14976 ac_save_CPPFLAGS="$CPPFLAGS"
14977 if test \! -z "$includedir" ; then
14978 CPPFLAGS="$CPPFLAGS -I$includedir"
14980 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14981 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14982 cat >conftest.$ac_ext <<_ACEOF
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h. */
14988 #include <stdlib.h>
14989 #include <unistd.h>
14990 #include <sys/types.h>
14991 #include <sys/label.h>
14992 #include <sys/audit.h>
14993 #include <pwdadj.h>
14997 struct passwd_adjunct *p = getpwanam("nobody");
14998 const char *pw = p->pwa_passwd;
15003 rm -rf conftest.$ac_objext
15004 if { (ac_try="$ac_compile"
15005 case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15010 $as_echo "$ac_try_echo") >&5
15011 (eval "$ac_compile") 2>conftest.er1
15013 grep -v '^ *+' conftest.er1 >conftest.err
15014 rm -rf conftest.er1
15015 cat conftest.err >&5
15016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); } && {
15018 test -z "$ac_c_werror_flag" ||
15019 test ! -s conftest.err
15020 } && test -s conftest.$ac_objext; then
15021 ac_cv_sun_adjunct=yes
15023 $as_echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15026 ac_cv_sun_adjunct=no
15029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15030 CPPFLAGS="$ac_save_CPPFLAGS"
15032 { $as_echo "$as_me:$LINENO: result: $ac_cv_sun_adjunct" >&5
15033 $as_echo "$ac_cv_sun_adjunct" >&6; }
15034 if test "$ac_cv_sun_adjunct" = yes; then
15035 have_shadow_adjunct=yes
15042 ###############################################################################
15044 # Check for DEC and SCO so-called "enhanced" security.
15046 ###############################################################################
15048 if test "$with_shadow" = yes ; then
15049 { $as_echo "$as_me:$LINENO: checking for DEC-style shadow passwords" >&5
15050 $as_echo_n "checking for DEC-style shadow passwords... " >&6; }
15051 if test "${ac_cv_enhanced_passwd+set}" = set; then
15052 $as_echo_n "(cached) " >&6
15055 ac_save_CPPFLAGS="$CPPFLAGS"
15056 if test \! -z "$includedir" ; then
15057 CPPFLAGS="$CPPFLAGS -I$includedir"
15059 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15060 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15061 cat >conftest.$ac_ext <<_ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15067 #include <stdlib.h>
15068 #include <unistd.h>
15069 #include <sys/types.h>
15071 #include <sys/security.h>
15076 struct pr_passwd *p;
15078 set_auth_parameters(0, 0);
15079 check_auth_parameters();
15080 p = getprpwnam("nobody");
15081 pw = p->ufld.fd_encrypt;
15086 rm -rf conftest.$ac_objext
15087 if { (ac_try="$ac_compile"
15088 case "(($ac_try" in
15089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090 *) ac_try_echo=$ac_try;;
15092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15093 $as_echo "$ac_try_echo") >&5
15094 (eval "$ac_compile") 2>conftest.er1
15096 grep -v '^ *+' conftest.er1 >conftest.err
15097 rm -rf conftest.er1
15098 cat conftest.err >&5
15099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } && {
15101 test -z "$ac_c_werror_flag" ||
15102 test ! -s conftest.err
15103 } && test -s conftest.$ac_objext; then
15104 ac_cv_enhanced_passwd=yes
15106 $as_echo "$as_me: failed program was:" >&5
15107 sed 's/^/| /' conftest.$ac_ext >&5
15109 ac_cv_enhanced_passwd=no
15112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15113 CPPFLAGS="$ac_save_CPPFLAGS"
15115 { $as_echo "$as_me:$LINENO: result: $ac_cv_enhanced_passwd" >&5
15116 $as_echo "$ac_cv_enhanced_passwd" >&6; }
15117 if test $ac_cv_enhanced_passwd = yes; then
15118 have_shadow_enhanced=yes
15122 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
15123 # (I'm told it needs -lcurses too, but I don't understand why.)
15124 # But on DEC, it's in -lsecurity.
15126 { $as_echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
15127 $as_echo_n "checking for getprpwnam in -lprot... " >&6; }
15128 if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
15129 $as_echo_n "(cached) " >&6
15131 ac_check_lib_save_LIBS=$LIBS
15132 LIBS="-lprot -lx $LIBS"
15133 cat >conftest.$ac_ext <<_ACEOF
15136 cat confdefs.h >>conftest.$ac_ext
15137 cat >>conftest.$ac_ext <<_ACEOF
15138 /* end confdefs.h. */
15140 /* Override any GCC internal prototype to avoid an error.
15141 Use char because int might match the return type of a GCC
15142 builtin and then its argument prototype would still apply. */
15146 char getprpwnam ();
15150 return getprpwnam ();
15155 rm -rf conftest.$ac_objext conftest$ac_exeext
15156 if { (ac_try="$ac_link"
15157 case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15162 $as_echo "$ac_try_echo") >&5
15163 (eval "$ac_link") 2>conftest.er1
15165 grep -v '^ *+' conftest.er1 >conftest.err
15166 rm -rf conftest.er1
15167 cat conftest.err >&5
15168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } && {
15170 test -z "$ac_c_werror_flag" ||
15171 test ! -s conftest.err
15172 } && test -s conftest$ac_exeext && {
15173 test "$cross_compiling" = yes ||
15174 $as_test_x conftest$ac_exeext
15176 ac_cv_lib_prot_getprpwnam=yes
15178 $as_echo "$as_me: failed program was:" >&5
15179 sed 's/^/| /' conftest.$ac_ext >&5
15181 ac_cv_lib_prot_getprpwnam=no
15184 rm -rf conftest.dSYM
15185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15186 conftest$ac_exeext conftest.$ac_ext
15187 LIBS=$ac_check_lib_save_LIBS
15189 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
15190 $as_echo "$ac_cv_lib_prot_getprpwnam" >&6; }
15191 if test "x$ac_cv_lib_prot_getprpwnam" = x""yes; then
15192 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
15194 { $as_echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
15195 $as_echo_n "checking for getprpwnam in -lsecurity... " >&6; }
15196 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
15197 $as_echo_n "(cached) " >&6
15199 ac_check_lib_save_LIBS=$LIBS
15200 LIBS="-lsecurity $LIBS"
15201 cat >conftest.$ac_ext <<_ACEOF
15204 cat confdefs.h >>conftest.$ac_ext
15205 cat >>conftest.$ac_ext <<_ACEOF
15206 /* end confdefs.h. */
15208 /* Override any GCC internal prototype to avoid an error.
15209 Use char because int might match the return type of a GCC
15210 builtin and then its argument prototype would still apply. */
15214 char getprpwnam ();
15218 return getprpwnam ();
15223 rm -rf conftest.$ac_objext conftest$ac_exeext
15224 if { (ac_try="$ac_link"
15225 case "(($ac_try" in
15226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227 *) ac_try_echo=$ac_try;;
15229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15230 $as_echo "$ac_try_echo") >&5
15231 (eval "$ac_link") 2>conftest.er1
15233 grep -v '^ *+' conftest.er1 >conftest.err
15234 rm -rf conftest.er1
15235 cat conftest.err >&5
15236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); } && {
15238 test -z "$ac_c_werror_flag" ||
15239 test ! -s conftest.err
15240 } && test -s conftest$ac_exeext && {
15241 test "$cross_compiling" = yes ||
15242 $as_test_x conftest$ac_exeext
15244 ac_cv_lib_security_getprpwnam=yes
15246 $as_echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15249 ac_cv_lib_security_getprpwnam=no
15252 rm -rf conftest.dSYM
15253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15254 conftest$ac_exeext conftest.$ac_ext
15255 LIBS=$ac_check_lib_save_LIBS
15257 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
15258 $as_echo "$ac_cv_lib_security_getprpwnam" >&6; }
15259 if test "x$ac_cv_lib_security_getprpwnam" = x""yes; then
15260 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
15268 ###############################################################################
15270 # Check for HP's entry in the "Not Invented Here" Sweepstakes.
15272 ###############################################################################
15274 if test "$with_shadow" = yes ; then
15275 { $as_echo "$as_me:$LINENO: checking for HP-style shadow passwords" >&5
15276 $as_echo_n "checking for HP-style shadow passwords... " >&6; }
15277 if test "${ac_cv_hpux_passwd+set}" = set; then
15278 $as_echo_n "(cached) " >&6
15281 ac_save_CPPFLAGS="$CPPFLAGS"
15282 if test \! -z "$includedir" ; then
15283 CPPFLAGS="$CPPFLAGS -I$includedir"
15285 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15286 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15287 cat >conftest.$ac_ext <<_ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15293 #include <stdlib.h>
15294 #include <unistd.h>
15295 #include <sys/types.h>
15297 #include <hpsecurity.h>
15302 struct s_passwd *p = getspwnam("nobody");
15303 const char *pw = p->pw_passwd;
15308 rm -rf conftest.$ac_objext
15309 if { (ac_try="$ac_compile"
15310 case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15315 $as_echo "$ac_try_echo") >&5
15316 (eval "$ac_compile") 2>conftest.er1
15318 grep -v '^ *+' conftest.er1 >conftest.err
15319 rm -rf conftest.er1
15320 cat conftest.err >&5
15321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } && {
15323 test -z "$ac_c_werror_flag" ||
15324 test ! -s conftest.err
15325 } && test -s conftest.$ac_objext; then
15326 ac_cv_hpux_passwd=yes
15328 $as_echo "$as_me: failed program was:" >&5
15329 sed 's/^/| /' conftest.$ac_ext >&5
15331 ac_cv_hpux_passwd=no
15334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15335 CPPFLAGS="$ac_save_CPPFLAGS"
15337 { $as_echo "$as_me:$LINENO: result: $ac_cv_hpux_passwd" >&5
15338 $as_echo "$ac_cv_hpux_passwd" >&6; }
15339 if test "$ac_cv_hpux_passwd" = yes; then
15340 have_shadow_hpux=yes
15344 # on HPUX, bigcrypt is in -lsec
15345 { $as_echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
15346 $as_echo_n "checking for bigcrypt in -lsec... " >&6; }
15347 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
15348 $as_echo_n "(cached) " >&6
15350 ac_check_lib_save_LIBS=$LIBS
15352 cat >conftest.$ac_ext <<_ACEOF
15355 cat confdefs.h >>conftest.$ac_ext
15356 cat >>conftest.$ac_ext <<_ACEOF
15357 /* end confdefs.h. */
15359 /* Override any GCC internal prototype to avoid an error.
15360 Use char because int might match the return type of a GCC
15361 builtin and then its argument prototype would still apply. */
15369 return bigcrypt ();
15374 rm -rf conftest.$ac_objext conftest$ac_exeext
15375 if { (ac_try="$ac_link"
15376 case "(($ac_try" in
15377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378 *) ac_try_echo=$ac_try;;
15380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15381 $as_echo "$ac_try_echo") >&5
15382 (eval "$ac_link") 2>conftest.er1
15384 grep -v '^ *+' conftest.er1 >conftest.err
15385 rm -rf conftest.er1
15386 cat conftest.err >&5
15387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); } && {
15389 test -z "$ac_c_werror_flag" ||
15390 test ! -s conftest.err
15391 } && test -s conftest$ac_exeext && {
15392 test "$cross_compiling" = yes ||
15393 $as_test_x conftest$ac_exeext
15395 ac_cv_lib_sec_bigcrypt=yes
15397 $as_echo "$as_me: failed program was:" >&5
15398 sed 's/^/| /' conftest.$ac_ext >&5
15400 ac_cv_lib_sec_bigcrypt=no
15403 rm -rf conftest.dSYM
15404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15405 conftest$ac_exeext conftest.$ac_ext
15406 LIBS=$ac_check_lib_save_LIBS
15408 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
15409 $as_echo "$ac_cv_lib_sec_bigcrypt" >&6; }
15410 if test "x$ac_cv_lib_sec_bigcrypt" = x""yes; then
15411 PASSWD_LIBS="$PASSWD_LIBS -lsec"
15418 ###############################################################################
15420 # Check for FreeBSD-style shadow passwords.
15422 # On FreeBSD, getpwnam() and friends work just like on non-shadow-
15423 # password systems -- except you only get stuff in the pw_passwd field
15424 # if the running program is setuid. So, guess that we've got this
15425 # lossage to contend with if /etc/master.passwd exists, and default to
15426 # a setuid installation.
15428 ###############################################################################
15430 if test "$with_shadow" = yes ; then
15431 { $as_echo "$as_me:$LINENO: checking for FreeBSD-style shadow passwords" >&5
15432 $as_echo_n "checking for FreeBSD-style shadow passwords... " >&6; }
15433 if test "${ac_cv_master_passwd+set}" = set; then
15434 $as_echo_n "(cached) " >&6
15436 if test -f /etc/master.passwd ; then
15437 ac_cv_master_passwd=yes
15439 ac_cv_master_passwd=no
15442 { $as_echo "$as_me:$LINENO: result: $ac_cv_master_passwd" >&5
15443 $as_echo "$ac_cv_master_passwd" >&6; }
15444 if test "$ac_cv_master_passwd" = yes; then
15450 ###############################################################################
15452 # Check for traditional (ha!) shadow passwords.
15454 ###############################################################################
15456 if test "$with_shadow" = yes ; then
15457 { $as_echo "$as_me:$LINENO: checking for generic shadow passwords" >&5
15458 $as_echo_n "checking for generic shadow passwords... " >&6; }
15459 if test "${ac_cv_shadow+set}" = set; then
15460 $as_echo_n "(cached) " >&6
15463 ac_save_CPPFLAGS="$CPPFLAGS"
15464 if test \! -z "$includedir" ; then
15465 CPPFLAGS="$CPPFLAGS -I$includedir"
15467 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15468 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15469 cat >conftest.$ac_ext <<_ACEOF
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h. */
15475 #include <stdlib.h>
15476 #include <unistd.h>
15477 #include <sys/types.h>
15479 #include <shadow.h>
15483 struct spwd *p = getspnam("nobody");
15484 const char *pw = p->sp_pwdp;
15489 rm -rf conftest.$ac_objext
15490 if { (ac_try="$ac_compile"
15491 case "(($ac_try" in
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15496 $as_echo "$ac_try_echo") >&5
15497 (eval "$ac_compile") 2>conftest.er1
15499 grep -v '^ *+' conftest.er1 >conftest.err
15500 rm -rf conftest.er1
15501 cat conftest.err >&5
15502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); } && {
15504 test -z "$ac_c_werror_flag" ||
15505 test ! -s conftest.err
15506 } && test -s conftest.$ac_objext; then
15509 $as_echo "$as_me: failed program was:" >&5
15510 sed 's/^/| /' conftest.$ac_ext >&5
15515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15516 CPPFLAGS="$ac_save_CPPFLAGS"
15518 { $as_echo "$as_me:$LINENO: result: $ac_cv_shadow" >&5
15519 $as_echo "$ac_cv_shadow" >&6; }
15520 if test "$ac_cv_shadow" = yes; then
15524 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
15526 { $as_echo "$as_me:$LINENO: checking for getspnam in -lc" >&5
15527 $as_echo_n "checking for getspnam in -lc... " >&6; }
15528 if test "${ac_cv_lib_c_getspnam+set}" = set; then
15529 $as_echo_n "(cached) " >&6
15531 ac_check_lib_save_LIBS=$LIBS
15533 cat >conftest.$ac_ext <<_ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h. */
15540 /* Override any GCC internal prototype to avoid an error.
15541 Use char because int might match the return type of a GCC
15542 builtin and then its argument prototype would still apply. */
15550 return getspnam ();
15555 rm -rf conftest.$ac_objext conftest$ac_exeext
15556 if { (ac_try="$ac_link"
15557 case "(($ac_try" in
15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559 *) ac_try_echo=$ac_try;;
15561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15562 $as_echo "$ac_try_echo") >&5
15563 (eval "$ac_link") 2>conftest.er1
15565 grep -v '^ *+' conftest.er1 >conftest.err
15566 rm -rf conftest.er1
15567 cat conftest.err >&5
15568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); } && {
15570 test -z "$ac_c_werror_flag" ||
15571 test ! -s conftest.err
15572 } && test -s conftest$ac_exeext && {
15573 test "$cross_compiling" = yes ||
15574 $as_test_x conftest$ac_exeext
15576 ac_cv_lib_c_getspnam=yes
15578 $as_echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15581 ac_cv_lib_c_getspnam=no
15584 rm -rf conftest.dSYM
15585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15586 conftest$ac_exeext conftest.$ac_ext
15587 LIBS=$ac_check_lib_save_LIBS
15589 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getspnam" >&5
15590 $as_echo "$ac_cv_lib_c_getspnam" >&6; }
15591 if test "x$ac_cv_lib_c_getspnam" = x""yes; then
15595 if test "$have_getspnam" = no ; then
15596 { $as_echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
15597 $as_echo_n "checking for getspnam in -lgen... " >&6; }
15598 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
15599 $as_echo_n "(cached) " >&6
15601 ac_check_lib_save_LIBS=$LIBS
15603 cat >conftest.$ac_ext <<_ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15610 /* Override any GCC internal prototype to avoid an error.
15611 Use char because int might match the return type of a GCC
15612 builtin and then its argument prototype would still apply. */
15620 return getspnam ();
15625 rm -rf conftest.$ac_objext conftest$ac_exeext
15626 if { (ac_try="$ac_link"
15627 case "(($ac_try" in
15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15632 $as_echo "$ac_try_echo") >&5
15633 (eval "$ac_link") 2>conftest.er1
15635 grep -v '^ *+' conftest.er1 >conftest.err
15636 rm -rf conftest.er1
15637 cat conftest.err >&5
15638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } && {
15640 test -z "$ac_c_werror_flag" ||
15641 test ! -s conftest.err
15642 } && test -s conftest$ac_exeext && {
15643 test "$cross_compiling" = yes ||
15644 $as_test_x conftest$ac_exeext
15646 ac_cv_lib_gen_getspnam=yes
15648 $as_echo "$as_me: failed program was:" >&5
15649 sed 's/^/| /' conftest.$ac_ext >&5
15651 ac_cv_lib_gen_getspnam=no
15654 rm -rf conftest.dSYM
15655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15656 conftest$ac_exeext conftest.$ac_ext
15657 LIBS=$ac_check_lib_save_LIBS
15659 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
15660 $as_echo "$ac_cv_lib_gen_getspnam" >&6; }
15661 if test "x$ac_cv_lib_gen_getspnam" = x""yes; then
15662 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
15670 ###############################################################################
15672 # Check for other libraries needed for non-shadow passwords.
15674 ###############################################################################
15676 if test "$enable_locking" = yes ; then
15678 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
15680 { $as_echo "$as_me:$LINENO: checking for crypt in -lc" >&5
15681 $as_echo_n "checking for crypt in -lc... " >&6; }
15682 if test "${ac_cv_lib_c_crypt+set}" = set; then
15683 $as_echo_n "(cached) " >&6
15685 ac_check_lib_save_LIBS=$LIBS
15687 cat >conftest.$ac_ext <<_ACEOF
15690 cat confdefs.h >>conftest.$ac_ext
15691 cat >>conftest.$ac_ext <<_ACEOF
15692 /* end confdefs.h. */
15694 /* Override any GCC internal prototype to avoid an error.
15695 Use char because int might match the return type of a GCC
15696 builtin and then its argument prototype would still apply. */
15709 rm -rf conftest.$ac_objext conftest$ac_exeext
15710 if { (ac_try="$ac_link"
15711 case "(($ac_try" in
15712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713 *) ac_try_echo=$ac_try;;
15715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15716 $as_echo "$ac_try_echo") >&5
15717 (eval "$ac_link") 2>conftest.er1
15719 grep -v '^ *+' conftest.er1 >conftest.err
15720 rm -rf conftest.er1
15721 cat conftest.err >&5
15722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } && {
15724 test -z "$ac_c_werror_flag" ||
15725 test ! -s conftest.err
15726 } && test -s conftest$ac_exeext && {
15727 test "$cross_compiling" = yes ||
15728 $as_test_x conftest$ac_exeext
15730 ac_cv_lib_c_crypt=yes
15732 $as_echo "$as_me: failed program was:" >&5
15733 sed 's/^/| /' conftest.$ac_ext >&5
15735 ac_cv_lib_c_crypt=no
15738 rm -rf conftest.dSYM
15739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15740 conftest$ac_exeext conftest.$ac_ext
15741 LIBS=$ac_check_lib_save_LIBS
15743 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
15744 $as_echo "$ac_cv_lib_c_crypt" >&6; }
15745 if test "x$ac_cv_lib_c_crypt" = x""yes; then
15749 if test "$have_crypt" = no ; then
15750 { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
15751 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
15752 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
15753 $as_echo_n "(cached) " >&6
15755 ac_check_lib_save_LIBS=$LIBS
15756 LIBS="-lcrypt $LIBS"
15757 cat >conftest.$ac_ext <<_ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15764 /* Override any GCC internal prototype to avoid an error.
15765 Use char because int might match the return type of a GCC
15766 builtin and then its argument prototype would still apply. */
15779 rm -rf conftest.$ac_objext conftest$ac_exeext
15780 if { (ac_try="$ac_link"
15781 case "(($ac_try" in
15782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783 *) ac_try_echo=$ac_try;;
15785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15786 $as_echo "$ac_try_echo") >&5
15787 (eval "$ac_link") 2>conftest.er1
15789 grep -v '^ *+' conftest.er1 >conftest.err
15790 rm -rf conftest.er1
15791 cat conftest.err >&5
15792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); } && {
15794 test -z "$ac_c_werror_flag" ||
15795 test ! -s conftest.err
15796 } && test -s conftest$ac_exeext && {
15797 test "$cross_compiling" = yes ||
15798 $as_test_x conftest$ac_exeext
15800 ac_cv_lib_crypt_crypt=yes
15802 $as_echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805 ac_cv_lib_crypt_crypt=no
15808 rm -rf conftest.dSYM
15809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15810 conftest$ac_exeext conftest.$ac_ext
15811 LIBS=$ac_check_lib_save_LIBS
15813 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
15814 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
15815 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
15816 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
15823 # Most of the above shadow mechanisms will have set need_setuid to yes,
15824 # if they were found. But, on some systems, we need setuid even when
15825 # using plain old vanilla passwords.
15827 if test "$enable_locking" = yes ; then
15829 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
15836 if test "$have_shadow_adjunct" = yes ; then
15837 cat >>confdefs.h <<\_ACEOF
15838 #define HAVE_ADJUNCT_PASSWD 1
15841 elif test "$have_shadow_enhanced" = yes ; then
15842 cat >>confdefs.h <<\_ACEOF
15843 #define HAVE_ENHANCED_PASSWD 1
15846 elif test "$have_shadow_hpux" = yes ; then
15847 cat >>confdefs.h <<\_ACEOF
15848 #define HAVE_HPUX_PASSWD 1
15851 elif test "$have_shadow" = yes ; then
15852 cat >>confdefs.h <<\_ACEOF
15853 #define HAVE_SHADOW_PASSWD 1
15859 ###############################################################################
15861 # Check for external password helper
15862 # On SuSE, instead of having xscreensaver be a setuid program, they
15863 # fork an external program that takes the password on stdin, and
15864 # returns true if that password is a valid one. Then only that
15865 # smaller program needs to be setuid.
15867 # (Note that this external program is not a GUI: the GUI is still
15868 # all in xscreensaver itself; the external program just does auth.)
15870 ###############################################################################
15872 have_passwd_helper=no
15873 with_passwd_helper_req=unspecified
15876 # Check whether --with-passwd-helper was given.
15877 if test "${with_passwd_helper+set}" = set; then
15878 withval=$with_passwd_helper; with_passwd_helper="$withval"; with_passwd_helper_req="$withval"
15880 with_passwd_helper=no
15883 # no HANDLE_X_PATH_ARG for this one
15885 if test "$enable_locking" = no ; then
15886 with_passwd_helper_req=no
15887 with_passwd_helper=no
15890 case "$with_passwd_helper" in
15893 cat >>confdefs.h <<_ACEOF
15894 #define PASSWD_HELPER_PROGRAM "$with_passwd_helper"
15897 have_passwd_helper=yes;;
15899 echo "error: --with-passwd-helper needs full pathname of helper (not '$with_passwd_helper')." >&2
15904 ###############################################################################
15906 # Check for a login manager for a "New Login" button on the lock dialog.
15907 # Usually this will be "/usr/bin/gdmflexiserver".
15909 ###############################################################################
15911 with_login_manager_req=unspecified
15912 default_login_manager_1='gdmflexiserver -ls'
15913 default_login_manager_2='kdmctl reserve'
15916 # Check whether --with-login-manager was given.
15917 if test "${with_login_manager+set}" = set; then
15918 withval=$with_login_manager; with_login_manager="$withval"; with_login_manager_req="$withval"
15920 with_login_manager=yes
15923 # no HANDLE_X_PATH_ARG for this one
15925 if test "$enable_locking" = no ; then
15926 with_login_manager_req=no
15927 with_login_manager=no
15930 case "$with_login_manager_req" in
15932 with_login_manager=""
15936 # Try both defaults, use the one that exists.
15938 set dummy $default_login_manager_1 ; login_manager_tmp=$2
15939 unset ac_cv_path_login_manager_tmp # don't cache
15940 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
15941 set dummy $login_manager_tmp; ac_word=$2
15942 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15943 $as_echo_n "checking for $ac_word... " >&6; }
15944 if test "${ac_cv_path_login_manager_tmp+set}" = set; then
15945 $as_echo_n "(cached) " >&6
15947 case $login_manager_tmp in
15949 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
15952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15953 for as_dir in $PATH
15956 test -z "$as_dir" && as_dir=.
15957 for ac_exec_ext in '' $ac_executable_extensions; do
15958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15959 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
15960 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15970 login_manager_tmp=$ac_cv_path_login_manager_tmp
15971 if test -n "$login_manager_tmp"; then
15972 { $as_echo "$as_me:$LINENO: result: $login_manager_tmp" >&5
15973 $as_echo "$login_manager_tmp" >&6; }
15975 { $as_echo "$as_me:$LINENO: result: no" >&5
15976 $as_echo "no" >&6; }
15980 if test ! -z "$login_manager_tmp" ; then
15981 with_login_manager="$default_login_manager_1"
15983 set dummy $default_login_manager_2 ; login_manager_tmp=$2
15984 unset ac_cv_path_login_manager_tmp # don't cache
15985 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
15986 set dummy $login_manager_tmp; ac_word=$2
15987 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15988 $as_echo_n "checking for $ac_word... " >&6; }
15989 if test "${ac_cv_path_login_manager_tmp+set}" = set; then
15990 $as_echo_n "(cached) " >&6
15992 case $login_manager_tmp in
15994 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
15997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15998 for as_dir in $PATH
16001 test -z "$as_dir" && as_dir=.
16002 for ac_exec_ext in '' $ac_executable_extensions; do
16003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16004 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
16005 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16015 login_manager_tmp=$ac_cv_path_login_manager_tmp
16016 if test -n "$login_manager_tmp"; then
16017 { $as_echo "$as_me:$LINENO: result: $login_manager_tmp" >&5
16018 $as_echo "$login_manager_tmp" >&6; }
16020 { $as_echo "$as_me:$LINENO: result: no" >&5
16021 $as_echo "no" >&6; }
16025 if test ! -z "$login_manager_tmp" ; then
16026 with_login_manager="$default_login_manager_2"
16028 with_login_manager=""
16034 # absolute path specified on cmd line
16035 set dummy $with_login_manager_req ; login_manager_tmp=$2
16036 { $as_echo "$as_me:$LINENO: checking for $login_manager_tmp" >&5
16037 $as_echo_n "checking for $login_manager_tmp... " >&6; }
16038 if test -x "$login_manager_tmp" ; then
16039 { $as_echo "$as_me:$LINENO: result: yes" >&5
16040 $as_echo "yes" >&6; }
16042 { $as_echo "$as_me:$LINENO: result: no" >&5
16043 $as_echo "no" >&6; }
16044 with_login_manager=""
16049 # relative path specified on cmd line
16050 set dummy $with_login_manager_req ; login_manager_tmp=$2
16051 unset ac_cv_path_login_manager_tmp # don't cache
16052 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
16053 set dummy $login_manager_tmp; ac_word=$2
16054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16055 $as_echo_n "checking for $ac_word... " >&6; }
16056 if test "${ac_cv_path_login_manager_tmp+set}" = set; then
16057 $as_echo_n "(cached) " >&6
16059 case $login_manager_tmp in
16061 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
16064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16065 for as_dir in $PATH
16068 test -z "$as_dir" && as_dir=.
16069 for ac_exec_ext in '' $ac_executable_extensions; do
16070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16071 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
16072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16082 login_manager_tmp=$ac_cv_path_login_manager_tmp
16083 if test -n "$login_manager_tmp"; then
16084 { $as_echo "$as_me:$LINENO: result: $login_manager_tmp" >&5
16085 $as_echo "$login_manager_tmp" >&6; }
16087 { $as_echo "$as_me:$LINENO: result: no" >&5
16088 $as_echo "no" >&6; }
16092 if test -z "$login_manager_tmp" ; then
16093 with_login_manager=""
16095 with_login_manager="$login_manager_tmp"
16099 ac_cv_login_manager_program="$with_login_manager"
16101 NEW_LOGIN_COMMAND_P=''
16102 NEW_LOGIN_COMMAND="$ac_cv_login_manager_program"
16104 { $as_echo "$as_me:$LINENO: checking for login manager" >&5
16105 $as_echo_n "checking for login manager... " >&6; }
16106 if test -z "$NEW_LOGIN_COMMAND" ; then
16107 NEW_LOGIN_COMMAND="$default_login_manager_1"
16108 NEW_LOGIN_COMMAND_P='! '
16109 { $as_echo "$as_me:$LINENO: result: $NEW_LOGIN_COMMAND (disabled)" >&5
16110 $as_echo "$NEW_LOGIN_COMMAND (disabled)" >&6; }
16112 { $as_echo "$as_me:$LINENO: result: $NEW_LOGIN_COMMAND" >&5
16113 $as_echo "$NEW_LOGIN_COMMAND" >&6; }
16117 ###############################################################################
16119 # Check for -lgtk (and Gnome stuff)
16121 ###############################################################################
16124 with_gtk_req=unspecified
16126 # Check whether --with-gtk was given.
16127 if test "${with_gtk+set}" = set; then
16128 withval=$with_gtk; with_gtk="$withval"; with_gtk_req="$withval"
16134 # if --with-gtk=/directory/ was specified, remember that directory so that
16135 # we can also look for the `gtk-config' program in that directory.
16136 case "$with_gtk" in
16138 gtk_dir="$with_gtk"
16146 case "$with_gtk" in
16151 { $as_echo "$as_me:$LINENO: checking for Gtk headers" >&5
16152 $as_echo_n "checking for Gtk headers... " >&6; }
16153 d=$with_gtk/include
16154 if test -d $d; then
16155 X_CFLAGS="-I$d $X_CFLAGS"
16156 { $as_echo "$as_me:$LINENO: result: $d" >&5
16157 $as_echo "$d" >&6; }
16159 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16160 $as_echo "not found ($d: no such directory)" >&6; }
16163 { $as_echo "$as_me:$LINENO: checking for Gtk libs" >&5
16164 $as_echo_n "checking for Gtk libs... " >&6; }
16166 if test -d $d; then
16167 X_LIBS="-L$d $X_LIBS"
16168 { $as_echo "$as_me:$LINENO: result: $d" >&5
16169 $as_echo "$d" >&6; }
16171 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16172 $as_echo "not found ($d: no such directory)" >&6; }
16175 # replace the directory string with "yes".
16177 with_gtk=$with_gtk_req
16182 echo "error: argument to --with-gtk must be \"yes\", \"no\", or a directory."
16183 echo " If it is a directory, then \`DIR/include' will be added to"
16184 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16190 if test "$with_gtk" != yes -a "$with_gtk" != no ; then
16191 echo "error: must be yes or no: --with-gtk=$with_gtk"
16196 parse_gtk_version_string() {
16199 maj=`echo $ac_gtk_version_string | sed -n 's/\..*//p'`
16200 min=`echo $ac_gtk_version_string | sed -n 's/[^.]*\.\([^.]*\).*/\1/p'`
16202 ac_gtk_version=`echo "$maj * 1000 + $min" | bc`
16203 if test -z "$ac_gtk_version"; then
16204 ac_gtk_version=unknown
16205 ac_gtk_version_string=unknown
16209 # Find pkg-config... (need this for both gtk and gdk_pixbuf.)
16210 # if the user specified --with-gtk=/foo/ then look there.
16213 if test ! -z "$gtk_dir"; then
16214 # canonicalize slashes.
16215 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
16216 gtk_path="$foo:$gtk_path"
16219 for ac_prog in pkg-config
16221 # Extract the first word of "$ac_prog", so it can be a program name with args.
16222 set dummy $ac_prog; ac_word=$2
16223 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16224 $as_echo_n "checking for $ac_word... " >&6; }
16225 if test "${ac_cv_path_pkg_config+set}" = set; then
16226 $as_echo_n "(cached) " >&6
16228 case $pkg_config in
16230 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path.
16233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16234 for as_dir in $gtk_path
16237 test -z "$as_dir" && as_dir=.
16238 for ac_exec_ext in '' $ac_executable_extensions; do
16239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16240 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext"
16241 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16251 pkg_config=$ac_cv_path_pkg_config
16252 if test -n "$pkg_config"; then
16253 { $as_echo "$as_me:$LINENO: result: $pkg_config" >&5
16254 $as_echo "$pkg_config" >&6; }
16256 { $as_echo "$as_me:$LINENO: result: no" >&5
16257 $as_echo "no" >&6; }
16261 test -n "$pkg_config" && break
16265 if test -z "$pkg_config" ; then
16266 { $as_echo "$as_me:$LINENO: WARNING: pkg-config not found!" >&5
16267 $as_echo "$as_me: WARNING: pkg-config not found!" >&2;}
16272 # Utility function for running pkg-config-based tests...
16275 pkg_check_version() {
16276 if test "$ok" = yes ; then
16279 { $as_echo "$as_me:$LINENO: checking for $req" >&5
16280 $as_echo_n "checking for $req... " >&6; }
16281 if $pkg_config --exists "$req" ; then
16282 vers=`$pkg_config --modversion "$req"`
16283 if $pkg_config --exists "$req >= $min" ; then
16284 { $as_echo "$as_me:$LINENO: result: $vers" >&5
16285 $as_echo "$vers" >&6; }
16289 { $as_echo "$as_me:$LINENO: result: $vers (wanted >= $min)" >&5
16290 $as_echo "$vers (wanted >= $min)" >&6; }
16295 { $as_echo "$as_me:$LINENO: result: no" >&5
16296 $as_echo "no" >&6; }
16307 if test "$with_gtk" = yes; then
16311 pkg_check_version gtk+-2.0 2.0.1 ; ac_gtk_version_string="$vers"
16312 pkg_check_version gmodule-2.0 2.0.0
16313 pkg_check_version libxml-2.0 2.4.6
16314 pkg_check_version libglade-2.0 1.99.0
16315 pkg_check_version gdk-pixbuf-2.0 2.0.0
16316 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
16319 if test "$have_gtk" = no; then
16320 if test -n "$ac_gtk_version_string" ; then
16321 gtk_halfassed="$ac_gtk_version_string"
16322 gtk_halfassed_lib="$req"
16326 if test "$have_gtk" = yes; then
16327 parse_gtk_version_string
16331 if test "$have_gtk" = yes; then
16332 { $as_echo "$as_me:$LINENO: checking for Gtk includes" >&5
16333 $as_echo_n "checking for Gtk includes... " >&6; }
16334 if test "${ac_cv_gtk_config_cflags+set}" = set; then
16335 $as_echo_n "(cached) " >&6
16337 ac_cv_gtk_config_cflags=`$pkg_config --cflags $pkgs`
16339 { $as_echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
16340 $as_echo "$ac_cv_gtk_config_cflags" >&6; }
16341 { $as_echo "$as_me:$LINENO: checking for Gtk libs" >&5
16342 $as_echo_n "checking for Gtk libs... " >&6; }
16343 if test "${ac_cv_gtk_config_libs+set}" = set; then
16344 $as_echo_n "(cached) " >&6
16346 ac_cv_gtk_config_libs=`$pkg_config --libs $pkgs`
16348 { $as_echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
16349 $as_echo "$ac_cv_gtk_config_libs" >&6; }
16352 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
16353 ac_gtk_config_libs=$ac_cv_gtk_config_libs
16357 if test "$have_gtk" = yes; then
16358 GTK_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
16359 GTK_DATADIR="$GTK_DATADIR/share"
16362 if test "$have_gtk" = yes; then
16363 INCLUDES="$INCLUDES $ac_gtk_config_cflags"
16364 GTK_LIBS="$GTK_LIBS $ac_gtk_config_libs"
16365 cat >>confdefs.h <<\_ACEOF
16369 cat >>confdefs.h <<\_ACEOF
16370 #define HAVE_GTK2 1
16373 cat >>confdefs.h <<\_ACEOF
16382 # Check for the various Gnome help and URL loading programs.
16384 WITH_BROWSER=gnome-open
16385 if test "$have_gtk" = yes; then
16386 for ac_prog in gnome-open
16388 # Extract the first word of "$ac_prog", so it can be a program name with args.
16389 set dummy $ac_prog; ac_word=$2
16390 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16391 $as_echo_n "checking for $ac_word... " >&6; }
16392 if test "${ac_cv_prog_gnome_open_program+set}" = set; then
16393 $as_echo_n "(cached) " >&6
16395 if test -n "$gnome_open_program"; then
16396 ac_cv_prog_gnome_open_program="$gnome_open_program" # Let the user override the test.
16398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16399 for as_dir in $PATH
16402 test -z "$as_dir" && as_dir=.
16403 for ac_exec_ext in '' $ac_executable_extensions; do
16404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16405 ac_cv_prog_gnome_open_program="$ac_prog"
16406 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16415 gnome_open_program=$ac_cv_prog_gnome_open_program
16416 if test -n "$gnome_open_program"; then
16417 { $as_echo "$as_me:$LINENO: result: $gnome_open_program" >&5
16418 $as_echo "$gnome_open_program" >&6; }
16420 { $as_echo "$as_me:$LINENO: result: no" >&5
16421 $as_echo "no" >&6; }
16425 test -n "$gnome_open_program" && break
16428 for ac_prog in gnome-url-show
16430 # Extract the first word of "$ac_prog", so it can be a program name with args.
16431 set dummy $ac_prog; ac_word=$2
16432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16433 $as_echo_n "checking for $ac_word... " >&6; }
16434 if test "${ac_cv_prog_gnome_url_show_program+set}" = set; then
16435 $as_echo_n "(cached) " >&6
16437 if test -n "$gnome_url_show_program"; then
16438 ac_cv_prog_gnome_url_show_program="$gnome_url_show_program" # Let the user override the test.
16440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16441 for as_dir in $PATH
16444 test -z "$as_dir" && as_dir=.
16445 for ac_exec_ext in '' $ac_executable_extensions; do
16446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16447 ac_cv_prog_gnome_url_show_program="$ac_prog"
16448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16457 gnome_url_show_program=$ac_cv_prog_gnome_url_show_program
16458 if test -n "$gnome_url_show_program"; then
16459 { $as_echo "$as_me:$LINENO: result: $gnome_url_show_program" >&5
16460 $as_echo "$gnome_url_show_program" >&6; }
16462 { $as_echo "$as_me:$LINENO: result: no" >&5
16463 $as_echo "no" >&6; }
16467 test -n "$gnome_url_show_program" && break
16473 ###############################################################################
16477 ###############################################################################
16480 with_motif_req=unspecified
16482 # Check whether --with-motif was given.
16483 if test "${with_motif+set}" = set; then
16484 withval=$with_motif; with_motif="$withval"; with_motif_req="$withval"
16491 case "$with_motif" in
16496 { $as_echo "$as_me:$LINENO: checking for Motif headers" >&5
16497 $as_echo_n "checking for Motif headers... " >&6; }
16498 d=$with_motif/include
16499 if test -d $d; then
16500 X_CFLAGS="-I$d $X_CFLAGS"
16501 { $as_echo "$as_me:$LINENO: result: $d" >&5
16502 $as_echo "$d" >&6; }
16504 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16505 $as_echo "not found ($d: no such directory)" >&6; }
16508 { $as_echo "$as_me:$LINENO: checking for Motif libs" >&5
16509 $as_echo_n "checking for Motif libs... " >&6; }
16511 if test -d $d; then
16512 X_LIBS="-L$d $X_LIBS"
16513 { $as_echo "$as_me:$LINENO: result: $d" >&5
16514 $as_echo "$d" >&6; }
16516 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16517 $as_echo "not found ($d: no such directory)" >&6; }
16520 # replace the directory string with "yes".
16521 with_motif_req="yes"
16522 with_motif=$with_motif_req
16527 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
16528 echo " If it is a directory, then \`DIR/include' will be added to"
16529 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16535 if test "$with_motif" != yes -a "$with_motif" != no ; then
16536 echo "error: must be yes or no: --with-motif=$with_motif"
16540 if test "$with_motif" = yes; then
16543 ac_save_CPPFLAGS="$CPPFLAGS"
16544 if test \! -z "$includedir" ; then
16545 CPPFLAGS="$CPPFLAGS -I$includedir"
16547 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16548 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16549 { $as_echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
16550 $as_echo_n "checking for Xm/Xm.h... " >&6; }
16551 if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
16552 $as_echo_n "(cached) " >&6
16554 cat >conftest.$ac_ext <<_ACEOF
16557 cat confdefs.h >>conftest.$ac_ext
16558 cat >>conftest.$ac_ext <<_ACEOF
16559 /* end confdefs.h. */
16560 #include <stdlib.h>
16562 #include <X11/Intrinsic.h>
16566 rm -rf conftest.$ac_objext
16567 if { (ac_try="$ac_compile"
16568 case "(($ac_try" in
16569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570 *) ac_try_echo=$ac_try;;
16572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16573 $as_echo "$ac_try_echo") >&5
16574 (eval "$ac_compile") 2>conftest.er1
16576 grep -v '^ *+' conftest.er1 >conftest.err
16577 rm -rf conftest.er1
16578 cat conftest.err >&5
16579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } && {
16581 test -z "$ac_c_werror_flag" ||
16582 test ! -s conftest.err
16583 } && test -s conftest.$ac_objext; then
16584 ac_cv_header_Xm_Xm_h=yes
16586 $as_echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16589 ac_cv_header_Xm_Xm_h=no
16592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16594 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
16595 $as_echo "$ac_cv_header_Xm_Xm_h" >&6; }
16596 if test "x$ac_cv_header_Xm_Xm_h" = x""yes; then
16598 cat >>confdefs.h <<\_ACEOF
16599 #define HAVE_MOTIF 1
16602 MOTIF_LIBS="$MOTIF_LIBS -lXm"
16606 CPPFLAGS="$ac_save_CPPFLAGS"
16610 if test "$have_motif" = yes; then
16612 ac_save_CPPFLAGS="$CPPFLAGS"
16613 if test \! -z "$includedir" ; then
16614 CPPFLAGS="$CPPFLAGS -I$includedir"
16616 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16617 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16618 { $as_echo "$as_me:$LINENO: checking for Xm/ComboBox.h" >&5
16619 $as_echo_n "checking for Xm/ComboBox.h... " >&6; }
16620 if test "${ac_cv_header_Xm_ComboBox_h+set}" = set; then
16621 $as_echo_n "(cached) " >&6
16623 cat >conftest.$ac_ext <<_ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h. */
16629 #include <stdlib.h>
16631 #include <X11/Intrinsic.h>
16633 #include <Xm/ComboBox.h>
16635 rm -rf conftest.$ac_objext
16636 if { (ac_try="$ac_compile"
16637 case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16642 $as_echo "$ac_try_echo") >&5
16643 (eval "$ac_compile") 2>conftest.er1
16645 grep -v '^ *+' conftest.er1 >conftest.err
16646 rm -rf conftest.er1
16647 cat conftest.err >&5
16648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } && {
16650 test -z "$ac_c_werror_flag" ||
16651 test ! -s conftest.err
16652 } && test -s conftest.$ac_objext; then
16653 ac_cv_header_Xm_ComboBox_h=yes
16655 $as_echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16658 ac_cv_header_Xm_ComboBox_h=no
16661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16663 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Xm_ComboBox_h" >&5
16664 $as_echo "$ac_cv_header_Xm_ComboBox_h" >&6; }
16665 if test "x$ac_cv_header_Xm_ComboBox_h" = x""yes; then
16666 cat >>confdefs.h <<\_ACEOF
16667 #define HAVE_XMCOMBOBOX 1
16673 CPPFLAGS="$ac_save_CPPFLAGS"
16677 ###############################################################################
16679 # Checking whether Motif is really Lesstif.
16681 ###############################################################################
16684 if test "$have_motif" = yes ; then
16685 { $as_echo "$as_me:$LINENO: checking whether Motif is really LessTif" >&5
16686 $as_echo_n "checking whether Motif is really LessTif... " >&6; }
16687 if test "${ac_cv_have_lesstif+set}" = set; then
16688 $as_echo_n "(cached) " >&6
16691 ac_save_CPPFLAGS="$CPPFLAGS"
16692 if test \! -z "$includedir" ; then
16693 CPPFLAGS="$CPPFLAGS -I$includedir"
16695 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16696 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16697 cat >conftest.$ac_ext <<_ACEOF
16700 cat confdefs.h >>conftest.$ac_ext
16701 cat >>conftest.$ac_ext <<_ACEOF
16702 /* end confdefs.h. */
16707 long vers = LesstifVersion;
16712 rm -rf conftest.$ac_objext
16713 if { (ac_try="$ac_compile"
16714 case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16719 $as_echo "$ac_try_echo") >&5
16720 (eval "$ac_compile") 2>conftest.er1
16722 grep -v '^ *+' conftest.er1 >conftest.err
16723 rm -rf conftest.er1
16724 cat conftest.err >&5
16725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } && {
16727 test -z "$ac_c_werror_flag" ||
16728 test ! -s conftest.err
16729 } && test -s conftest.$ac_objext; then
16730 ac_cv_have_lesstif=yes
16732 $as_echo "$as_me: failed program was:" >&5
16733 sed 's/^/| /' conftest.$ac_ext >&5
16735 ac_cv_have_lesstif=no
16738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16739 CPPFLAGS="$ac_save_CPPFLAGS"
16741 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_lesstif" >&5
16742 $as_echo "$ac_cv_have_lesstif" >&6; }
16743 have_lesstif=$ac_cv_have_lesstif
16747 lesstif_version=unknown
16748 lesstif_version_string=unknown
16750 if test "$have_lesstif" = yes ; then
16752 echo unknown > conftest-lt
16753 { $as_echo "$as_me:$LINENO: checking LessTif version number" >&5
16754 $as_echo_n "checking LessTif version number... " >&6; }
16755 if test "${ac_cv_lesstif_version_string+set}" = set; then
16756 $as_echo_n "(cached) " >&6
16759 ac_save_CPPFLAGS="$CPPFLAGS"
16760 if test \! -z "$includedir" ; then
16761 CPPFLAGS="$CPPFLAGS -I$includedir"
16763 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16764 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16765 if test "$cross_compiling" = yes; then
16766 ac_cv_lesstif_version=unknown
16767 ac_cv_lesstif_version_string=unknown
16769 cat >conftest.$ac_ext <<_ACEOF
16772 cat confdefs.h >>conftest.$ac_ext
16773 cat >>conftest.$ac_ext <<_ACEOF
16774 /* end confdefs.h. */
16778 FILE *f = fopen("conftest-lt", "w");
16780 fprintf(f, "%d %d.%d\n", LesstifVersion,
16781 LESSTIF_VERSION, LESSTIF_REVISION);
16786 rm -rf conftest$ac_exeext
16787 if { (ac_try="$ac_link"
16788 case "(($ac_try" in
16789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16790 *) ac_try_echo=$ac_try;;
16792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16793 $as_echo "$ac_try_echo") >&5
16794 (eval "$ac_link") 2>&5
16796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16798 { (case "(($ac_try" in
16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16803 $as_echo "$ac_try_echo") >&5
16804 (eval "$ac_try") 2>&5
16806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; }; then
16808 ltv=`cat conftest-lt`
16809 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
16810 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
16812 $as_echo "$as_me: program exited with status $ac_status" >&5
16813 $as_echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16816 ( exit $ac_status )
16817 ac_cv_lesstif_version=unknown
16818 ac_cv_lesstif_version_string=unknown
16820 rm -rf conftest.dSYM
16821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16825 CPPFLAGS="$ac_save_CPPFLAGS"
16827 { $as_echo "$as_me:$LINENO: result: $ac_cv_lesstif_version_string" >&5
16828 $as_echo "$ac_cv_lesstif_version_string" >&6; }
16830 lesstif_version=$ac_cv_lesstif_version
16831 lesstif_version_string=$ac_cv_lesstif_version_string
16836 if test "$have_motif" = yes ; then
16838 echo unknown > conftest-mt
16839 { $as_echo "$as_me:$LINENO: checking Motif version number" >&5
16840 $as_echo_n "checking Motif version number... " >&6; }
16841 if test "${ac_cv_motif_version_string+set}" = set; then
16842 $as_echo_n "(cached) " >&6
16845 ac_save_CPPFLAGS="$CPPFLAGS"
16846 if test \! -z "$includedir" ; then
16847 CPPFLAGS="$CPPFLAGS -I$includedir"
16849 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16850 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16851 if test "$cross_compiling" = yes; then
16852 ac_cv_motif_version=unknown
16853 ac_cv_motif_version_string=unknown
16855 cat >conftest.$ac_ext <<_ACEOF
16858 cat confdefs.h >>conftest.$ac_ext
16859 cat >>conftest.$ac_ext <<_ACEOF
16860 /* end confdefs.h. */
16864 FILE *f = fopen("conftest-mt", "w");
16866 fprintf(f, "%d %d.%d\n", XmVersion,
16867 XmVERSION, XmREVISION);
16872 rm -rf conftest$ac_exeext
16873 if { (ac_try="$ac_link"
16874 case "(($ac_try" in
16875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876 *) ac_try_echo=$ac_try;;
16878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16879 $as_echo "$ac_try_echo") >&5
16880 (eval "$ac_link") 2>&5
16882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16884 { (case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16889 $as_echo "$ac_try_echo") >&5
16890 (eval "$ac_try") 2>&5
16892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); }; }; then
16894 mtv=`cat conftest-mt`
16895 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
16896 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
16898 $as_echo "$as_me: program exited with status $ac_status" >&5
16899 $as_echo "$as_me: failed program was:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16902 ( exit $ac_status )
16903 ac_cv_motif_version=unknown
16904 ac_cv_motif_version_string=unknown
16906 rm -rf conftest.dSYM
16907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16911 CPPFLAGS="$ac_save_CPPFLAGS"
16913 { $as_echo "$as_me:$LINENO: result: $ac_cv_motif_version_string" >&5
16914 $as_echo "$ac_cv_motif_version_string" >&6; }
16916 motif_version=$ac_cv_motif_version
16917 motif_version_string=$ac_cv_motif_version_string
16922 ###############################################################################
16924 # Checking whether Motif requires -lXpm.
16926 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
16927 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
16928 # of the library whether to build the XPM code into libXm, or whether
16929 # to rely on an external libXm. So the only way to tell whether XPM is
16930 # a link-time requirement is to examine libXm.a, which is very
16931 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
16932 # always link against XPM if the XPM lib exists (and this will be a
16933 # no-op if libXm happens to already have the XPM code in it.)
16935 ###############################################################################
16937 motif_requires_xpm=no
16938 if test "$have_motif" = yes ; then
16939 { $as_echo "$as_me:$LINENO: checking whether Motif requires XPM" >&5
16940 $as_echo_n "checking whether Motif requires XPM... " >&6; }
16941 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
16943 motif_requires_xpm=yes
16944 { $as_echo "$as_me:$LINENO: result: maybe" >&5
16945 $as_echo "maybe" >&6; }
16947 { $as_echo "$as_me:$LINENO: result: no" >&5
16948 $as_echo "no" >&6; }
16953 ###############################################################################
16955 # Checking whether Motif requires -lXp.
16957 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
16958 # Extension". Why this extension isn't in -lXext with all the others,
16961 ###############################################################################
16964 if test "$have_motif" = yes ; then
16967 ac_save_CPPFLAGS="$CPPFLAGS"
16968 ac_save_LDFLAGS="$LDFLAGS"
16969 # ac_save_LIBS="$LIBS"
16971 if test \! -z "$includedir" ; then
16972 CPPFLAGS="$CPPFLAGS -I$includedir"
16974 # note: $X_CFLAGS includes $x_includes
16975 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16977 if test \! -z "$libdir" ; then
16978 LDFLAGS="$LDFLAGS -L$libdir"
16980 # note: $X_LIBS includes $x_libraries
16981 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16983 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16984 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
16985 { $as_echo "$as_me:$LINENO: checking for XpQueryExtension in -lXp" >&5
16986 $as_echo_n "checking for XpQueryExtension in -lXp... " >&6; }
16987 if test "${ac_cv_lib_Xp_XpQueryExtension+set}" = set; then
16988 $as_echo_n "(cached) " >&6
16990 ac_check_lib_save_LIBS=$LIBS
16991 LIBS="-lXp -lX11 -lXext -lm $LIBS"
16992 cat >conftest.$ac_ext <<_ACEOF
16995 cat confdefs.h >>conftest.$ac_ext
16996 cat >>conftest.$ac_ext <<_ACEOF
16997 /* end confdefs.h. */
16999 /* Override any GCC internal prototype to avoid an error.
17000 Use char because int might match the return type of a GCC
17001 builtin and then its argument prototype would still apply. */
17005 char XpQueryExtension ();
17009 return XpQueryExtension ();
17014 rm -rf conftest.$ac_objext conftest$ac_exeext
17015 if { (ac_try="$ac_link"
17016 case "(($ac_try" in
17017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018 *) ac_try_echo=$ac_try;;
17020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17021 $as_echo "$ac_try_echo") >&5
17022 (eval "$ac_link") 2>conftest.er1
17024 grep -v '^ *+' conftest.er1 >conftest.err
17025 rm -rf conftest.er1
17026 cat conftest.err >&5
17027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); } && {
17029 test -z "$ac_c_werror_flag" ||
17030 test ! -s conftest.err
17031 } && test -s conftest$ac_exeext && {
17032 test "$cross_compiling" = yes ||
17033 $as_test_x conftest$ac_exeext
17035 ac_cv_lib_Xp_XpQueryExtension=yes
17037 $as_echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17040 ac_cv_lib_Xp_XpQueryExtension=no
17043 rm -rf conftest.dSYM
17044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17045 conftest$ac_exeext conftest.$ac_ext
17046 LIBS=$ac_check_lib_save_LIBS
17048 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
17049 $as_echo "$ac_cv_lib_Xp_XpQueryExtension" >&6; }
17050 if test "x$ac_cv_lib_Xp_XpQueryExtension" = x""yes; then
17051 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
17056 CPPFLAGS="$ac_save_CPPFLAGS"
17057 LDFLAGS="$ac_save_LDFLAGS"
17058 # LIBS="$ac_save_LIBS"
17063 ###############################################################################
17065 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
17067 ###############################################################################
17070 if test "$have_motif" = yes ; then
17072 ac_save_CPPFLAGS="$CPPFLAGS"
17073 ac_save_LDFLAGS="$LDFLAGS"
17074 # ac_save_LIBS="$LIBS"
17076 if test \! -z "$includedir" ; then
17077 CPPFLAGS="$CPPFLAGS -I$includedir"
17079 # note: $X_CFLAGS includes $x_includes
17080 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17082 if test \! -z "$libdir" ; then
17083 LDFLAGS="$LDFLAGS -L$libdir"
17085 # note: $X_LIBS includes $x_libraries
17086 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17088 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17089 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17090 { $as_echo "$as_me:$LINENO: checking for _Xsetlocale in -lXintl" >&5
17091 $as_echo_n "checking for _Xsetlocale in -lXintl... " >&6; }
17092 if test "${ac_cv_lib_Xintl__Xsetlocale+set}" = set; then
17093 $as_echo_n "(cached) " >&6
17095 ac_check_lib_save_LIBS=$LIBS
17096 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
17097 cat >conftest.$ac_ext <<_ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h. */
17104 /* Override any GCC internal prototype to avoid an error.
17105 Use char because int might match the return type of a GCC
17106 builtin and then its argument prototype would still apply. */
17110 char _Xsetlocale ();
17114 return _Xsetlocale ();
17119 rm -rf conftest.$ac_objext conftest$ac_exeext
17120 if { (ac_try="$ac_link"
17121 case "(($ac_try" in
17122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123 *) ac_try_echo=$ac_try;;
17125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17126 $as_echo "$ac_try_echo") >&5
17127 (eval "$ac_link") 2>conftest.er1
17129 grep -v '^ *+' conftest.er1 >conftest.err
17130 rm -rf conftest.er1
17131 cat conftest.err >&5
17132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } && {
17134 test -z "$ac_c_werror_flag" ||
17135 test ! -s conftest.err
17136 } && test -s conftest$ac_exeext && {
17137 test "$cross_compiling" = yes ||
17138 $as_test_x conftest$ac_exeext
17140 ac_cv_lib_Xintl__Xsetlocale=yes
17142 $as_echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17145 ac_cv_lib_Xintl__Xsetlocale=no
17148 rm -rf conftest.dSYM
17149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17150 conftest$ac_exeext conftest.$ac_ext
17151 LIBS=$ac_check_lib_save_LIBS
17153 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
17154 $as_echo "$ac_cv_lib_Xintl__Xsetlocale" >&6; }
17155 if test "x$ac_cv_lib_Xintl__Xsetlocale" = x""yes; then
17161 CPPFLAGS="$ac_save_CPPFLAGS"
17162 LDFLAGS="$ac_save_LDFLAGS"
17163 # LIBS="$ac_save_LIBS"
17165 if test "$have_xintl" = yes; then
17166 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
17171 ###############################################################################
17173 # Check for -lGL or -lMesaGL.
17175 ###############################################################################
17179 with_gl_req=unspecified
17182 # Check whether --with-gl was given.
17183 if test "${with_gl+set}" = set; then
17184 withval=$with_gl; with_gl="$withval"; with_gl_req="$withval"
17196 { $as_echo "$as_me:$LINENO: checking for GL headers" >&5
17197 $as_echo_n "checking for GL headers... " >&6; }
17199 if test -d $d; then
17200 X_CFLAGS="-I$d $X_CFLAGS"
17201 { $as_echo "$as_me:$LINENO: result: $d" >&5
17202 $as_echo "$d" >&6; }
17204 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17205 $as_echo "not found ($d: no such directory)" >&6; }
17208 { $as_echo "$as_me:$LINENO: checking for GL libs" >&5
17209 $as_echo_n "checking for GL libs... " >&6; }
17211 if test -d $d; then
17212 X_LIBS="-L$d $X_LIBS"
17213 { $as_echo "$as_me:$LINENO: result: $d" >&5
17214 $as_echo "$d" >&6; }
17216 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17217 $as_echo "not found ($d: no such directory)" >&6; }
17220 # replace the directory string with "yes".
17222 with_gl=$with_gl_req
17227 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
17228 echo " If it is a directory, then \`DIR/include' will be added to"
17229 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17235 ac_mesagl_version=unknown
17236 ac_mesagl_version_string=unknown
17238 if test "$with_gl" = yes; then
17240 ac_save_CPPFLAGS="$CPPFLAGS"
17241 if test \! -z "$includedir" ; then
17242 CPPFLAGS="$CPPFLAGS -I$includedir"
17244 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17245 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17246 if test "${ac_cv_header_GL_gl_h+set}" = set; then
17247 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
17248 $as_echo_n "checking for GL/gl.h... " >&6; }
17249 if test "${ac_cv_header_GL_gl_h+set}" = set; then
17250 $as_echo_n "(cached) " >&6
17252 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
17253 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
17255 # Is the header compilable?
17256 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
17257 $as_echo_n "checking GL/gl.h usability... " >&6; }
17258 cat >conftest.$ac_ext <<_ACEOF
17261 cat confdefs.h >>conftest.$ac_ext
17262 cat >>conftest.$ac_ext <<_ACEOF
17263 /* end confdefs.h. */
17264 $ac_includes_default
17267 rm -rf conftest.$ac_objext
17268 if { (ac_try="$ac_compile"
17269 case "(($ac_try" in
17270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17274 $as_echo "$ac_try_echo") >&5
17275 (eval "$ac_compile") 2>conftest.er1
17277 grep -v '^ *+' conftest.er1 >conftest.err
17278 rm -rf conftest.er1
17279 cat conftest.err >&5
17280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); } && {
17282 test -z "$ac_c_werror_flag" ||
17283 test ! -s conftest.err
17284 } && test -s conftest.$ac_objext; then
17285 ac_header_compiler=yes
17287 $as_echo "$as_me: failed program was:" >&5
17288 sed 's/^/| /' conftest.$ac_ext >&5
17290 ac_header_compiler=no
17293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17294 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17295 $as_echo "$ac_header_compiler" >&6; }
17297 # Is the header present?
17298 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
17299 $as_echo_n "checking GL/gl.h presence... " >&6; }
17300 cat >conftest.$ac_ext <<_ACEOF
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h. */
17308 if { (ac_try="$ac_cpp conftest.$ac_ext"
17309 case "(($ac_try" in
17310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17311 *) ac_try_echo=$ac_try;;
17313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17314 $as_echo "$ac_try_echo") >&5
17315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17317 grep -v '^ *+' conftest.er1 >conftest.err
17318 rm -rf conftest.er1
17319 cat conftest.err >&5
17320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } >/dev/null && {
17322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17323 test ! -s conftest.err
17325 ac_header_preproc=yes
17327 $as_echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17330 ac_header_preproc=no
17333 rm -rf conftest.err conftest.$ac_ext
17334 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17335 $as_echo "$ac_header_preproc" >&6; }
17337 # So? What about this header?
17338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17340 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17341 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17342 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
17343 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
17344 ac_header_preproc=yes
17347 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
17348 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
17349 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
17350 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
17351 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
17352 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
17353 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
17354 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
17355 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
17356 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
17357 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
17358 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
17362 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
17363 $as_echo_n "checking for GL/gl.h... " >&6; }
17364 if test "${ac_cv_header_GL_gl_h+set}" = set; then
17365 $as_echo_n "(cached) " >&6
17367 ac_cv_header_GL_gl_h=$ac_header_preproc
17369 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
17370 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
17373 if test "x$ac_cv_header_GL_gl_h" = x""yes; then
17380 CPPFLAGS="$ac_save_CPPFLAGS"
17381 if test "$have_gl" = yes ; then
17383 ac_save_CPPFLAGS="$CPPFLAGS"
17384 if test \! -z "$includedir" ; then
17385 CPPFLAGS="$CPPFLAGS -I$includedir"
17387 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17388 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17389 { $as_echo "$as_me:$LINENO: checking for GL/glx.h" >&5
17390 $as_echo_n "checking for GL/glx.h... " >&6; }
17391 if test "${ac_cv_header_GL_glx_h+set}" = set; then
17392 $as_echo_n "(cached) " >&6
17394 cat >conftest.$ac_ext <<_ACEOF
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h. */
17402 #include <GL/glx.h>
17404 rm -rf conftest.$ac_objext
17405 if { (ac_try="$ac_compile"
17406 case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17411 $as_echo "$ac_try_echo") >&5
17412 (eval "$ac_compile") 2>conftest.er1
17414 grep -v '^ *+' conftest.er1 >conftest.err
17415 rm -rf conftest.er1
17416 cat conftest.err >&5
17417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); } && {
17419 test -z "$ac_c_werror_flag" ||
17420 test ! -s conftest.err
17421 } && test -s conftest.$ac_objext; then
17422 ac_cv_header_GL_glx_h=yes
17424 $as_echo "$as_me: failed program was:" >&5
17425 sed 's/^/| /' conftest.$ac_ext >&5
17427 ac_cv_header_GL_glx_h=no
17430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17432 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5
17433 $as_echo "$ac_cv_header_GL_glx_h" >&6; }
17434 if test "x$ac_cv_header_GL_glx_h" = x""yes; then
17441 CPPFLAGS="$ac_save_CPPFLAGS"
17444 # If we have the headers, try and figure out which vendor it's from.
17446 if test "$have_gl" = yes ; then
17448 # We need to know whether it's MesaGL so that we know which libraries
17451 { $as_echo "$as_me:$LINENO: checking whether GL is really MesaGL" >&5
17452 $as_echo_n "checking whether GL is really MesaGL... " >&6; }
17453 if test "${ac_cv_have_mesa_gl+set}" = set; then
17454 $as_echo_n "(cached) " >&6
17456 ac_cv_have_mesa_gl=no
17457 if test "$ac_macosx" = no; then
17458 # WTF! MacOS 10.5.0 ships the Mesa GL headers!
17459 # It's not really Mesa, is it?
17461 ac_save_CPPFLAGS="$CPPFLAGS"
17462 if test \! -z "$includedir" ; then
17463 CPPFLAGS="$CPPFLAGS -I$includedir"
17465 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17466 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17467 cat >conftest.$ac_ext <<_ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17473 #include <GL/glx.h>
17476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17477 $EGREP "Mesa|MESA" >/dev/null 2>&1; then
17478 ac_cv_have_mesa_gl=yes
17482 CPPFLAGS="$ac_save_CPPFLAGS"
17485 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_mesa_gl" >&5
17486 $as_echo "$ac_cv_have_mesa_gl" >&6; }
17487 ac_have_mesa_gl=$ac_cv_have_mesa_gl
17492 if test "$ac_macosx" = yes; then
17494 # Without these, every link against libGL gets a bunch of useless
17497 osx_crud="-bind_at_load -multiply_defined suppress"
17498 { $as_echo "$as_me:$LINENO: result: adding \"$osx_crud\" to GL_LIBS" >&5
17499 $as_echo "adding \"$osx_crud\" to GL_LIBS" >&6; }
17500 GL_LIBS="$GL_LIBS $osx_crud"
17503 # New lossage in 10.5.0: without this, we get:
17504 # ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
17506 osx_crud="/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
17507 osx_crud="-Wl,-dylib_file,${osx_crud}:${osx_crud}"
17509 { $as_echo "$as_me:$LINENO: result: adding \"$osx_crud\" to GL_LIBS" >&5
17510 $as_echo "adding \"$osx_crud\" to GL_LIBS" >&6; }
17511 GL_LIBS="$GL_LIBS $osx_crud"
17514 # New lossage in 10.6.8: we can't allow -L/opt/local/lib to be in the
17515 # link line, or at runtime XQueryExtension gets a segv due to some kind
17516 # of library version skew. Libs must come from /usr/X11/lib even if
17517 # $prefix and/or $exec_prefix are set to /opt/local/.
17519 { $as_echo "$as_me:$LINENO: result: omitting \"$libdir\" from LDFLAGS" >&5
17520 $as_echo "omitting \"$libdir\" from LDFLAGS" >&6; }
17526 # Some versions of MesaGL are compiled to require -lpthread.
17527 # So if the Mesa headers exist, and -lpthread exists, then always
17528 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
17530 if test "$ac_have_mesa_gl" = yes; then
17531 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17532 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17533 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17534 $as_echo_n "(cached) " >&6
17536 ac_check_lib_save_LIBS=$LIBS
17537 LIBS="-lpthread $LIBS"
17538 cat >conftest.$ac_ext <<_ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h. */
17545 /* Override any GCC internal prototype to avoid an error.
17546 Use char because int might match the return type of a GCC
17547 builtin and then its argument prototype would still apply. */
17551 char pthread_create ();
17555 return pthread_create ();
17560 rm -rf conftest.$ac_objext conftest$ac_exeext
17561 if { (ac_try="$ac_link"
17562 case "(($ac_try" in
17563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564 *) ac_try_echo=$ac_try;;
17566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17567 $as_echo "$ac_try_echo") >&5
17568 (eval "$ac_link") 2>conftest.er1
17570 grep -v '^ *+' conftest.er1 >conftest.err
17571 rm -rf conftest.er1
17572 cat conftest.err >&5
17573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } && {
17575 test -z "$ac_c_werror_flag" ||
17576 test ! -s conftest.err
17577 } && test -s conftest$ac_exeext && {
17578 test "$cross_compiling" = yes ||
17579 $as_test_x conftest$ac_exeext
17581 ac_cv_lib_pthread_pthread_create=yes
17583 $as_echo "$as_me: failed program was:" >&5
17584 sed 's/^/| /' conftest.$ac_ext >&5
17586 ac_cv_lib_pthread_pthread_create=no
17589 rm -rf conftest.dSYM
17590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17591 conftest$ac_exeext conftest.$ac_ext
17592 LIBS=$ac_check_lib_save_LIBS
17594 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17595 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17596 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
17597 GL_LIBS="-lpthread"
17603 # If we have Mesa headers, check to see if we can link against -lMesaGL.
17604 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
17605 # Else, warn that GL is busted. (We have the headers, but no libs.)
17608 if test "$ac_have_mesa_gl" = yes ; then
17610 ac_save_CPPFLAGS="$CPPFLAGS"
17611 ac_save_LDFLAGS="$LDFLAGS"
17612 # ac_save_LIBS="$LIBS"
17614 if test \! -z "$includedir" ; then
17615 CPPFLAGS="$CPPFLAGS -I$includedir"
17617 # note: $X_CFLAGS includes $x_includes
17618 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17620 if test \! -z "$libdir" ; then
17621 LDFLAGS="$LDFLAGS -L$libdir"
17623 # note: $X_LIBS includes $x_libraries
17624 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17626 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17627 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17628 { $as_echo "$as_me:$LINENO: checking for glXCreateContext in -lMesaGL" >&5
17629 $as_echo_n "checking for glXCreateContext in -lMesaGL... " >&6; }
17630 if test "${ac_cv_lib_MesaGL_glXCreateContext+set}" = set; then
17631 $as_echo_n "(cached) " >&6
17633 ac_check_lib_save_LIBS=$LIBS
17634 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
17635 cat >conftest.$ac_ext <<_ACEOF
17638 cat confdefs.h >>conftest.$ac_ext
17639 cat >>conftest.$ac_ext <<_ACEOF
17640 /* end confdefs.h. */
17642 /* Override any GCC internal prototype to avoid an error.
17643 Use char because int might match the return type of a GCC
17644 builtin and then its argument prototype would still apply. */
17648 char glXCreateContext ();
17652 return glXCreateContext ();
17657 rm -rf conftest.$ac_objext conftest$ac_exeext
17658 if { (ac_try="$ac_link"
17659 case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17664 $as_echo "$ac_try_echo") >&5
17665 (eval "$ac_link") 2>conftest.er1
17667 grep -v '^ *+' conftest.er1 >conftest.err
17668 rm -rf conftest.er1
17669 cat conftest.err >&5
17670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } && {
17672 test -z "$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17674 } && test -s conftest$ac_exeext && {
17675 test "$cross_compiling" = yes ||
17676 $as_test_x conftest$ac_exeext
17678 ac_cv_lib_MesaGL_glXCreateContext=yes
17680 $as_echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17683 ac_cv_lib_MesaGL_glXCreateContext=no
17686 rm -rf conftest.dSYM
17687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17688 conftest$ac_exeext conftest.$ac_ext
17689 LIBS=$ac_check_lib_save_LIBS
17691 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
17692 $as_echo "$ac_cv_lib_MesaGL_glXCreateContext" >&6; }
17693 if test "x$ac_cv_lib_MesaGL_glXCreateContext" = x""yes; then
17695 GL_LIBS="-lMesaGL -lMesaGLU $VIDMODE_LIBS $GL_LIBS"
17698 CPPFLAGS="$ac_save_CPPFLAGS"
17699 LDFLAGS="$ac_save_LDFLAGS"
17700 # LIBS="$ac_save_LIBS"
17704 if test "$gl_lib_1" = "" ; then
17706 ac_save_CPPFLAGS="$CPPFLAGS"
17707 ac_save_LDFLAGS="$LDFLAGS"
17708 # ac_save_LIBS="$LIBS"
17710 if test \! -z "$includedir" ; then
17711 CPPFLAGS="$CPPFLAGS -I$includedir"
17713 # note: $X_CFLAGS includes $x_includes
17714 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17716 if test \! -z "$libdir" ; then
17717 LDFLAGS="$LDFLAGS -L$libdir"
17719 # note: $X_LIBS includes $x_libraries
17720 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17722 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17723 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17724 { $as_echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
17725 $as_echo_n "checking for glXCreateContext in -lGL... " >&6; }
17726 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
17727 $as_echo_n "(cached) " >&6
17729 ac_check_lib_save_LIBS=$LIBS
17730 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
17731 cat >conftest.$ac_ext <<_ACEOF
17734 cat confdefs.h >>conftest.$ac_ext
17735 cat >>conftest.$ac_ext <<_ACEOF
17736 /* end confdefs.h. */
17738 /* Override any GCC internal prototype to avoid an error.
17739 Use char because int might match the return type of a GCC
17740 builtin and then its argument prototype would still apply. */
17744 char glXCreateContext ();
17748 return glXCreateContext ();
17753 rm -rf conftest.$ac_objext conftest$ac_exeext
17754 if { (ac_try="$ac_link"
17755 case "(($ac_try" in
17756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757 *) ac_try_echo=$ac_try;;
17759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17760 $as_echo "$ac_try_echo") >&5
17761 (eval "$ac_link") 2>conftest.er1
17763 grep -v '^ *+' conftest.er1 >conftest.err
17764 rm -rf conftest.er1
17765 cat conftest.err >&5
17766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } && {
17768 test -z "$ac_c_werror_flag" ||
17769 test ! -s conftest.err
17770 } && test -s conftest$ac_exeext && {
17771 test "$cross_compiling" = yes ||
17772 $as_test_x conftest$ac_exeext
17774 ac_cv_lib_GL_glXCreateContext=yes
17776 $as_echo "$as_me: failed program was:" >&5
17777 sed 's/^/| /' conftest.$ac_ext >&5
17779 ac_cv_lib_GL_glXCreateContext=no
17782 rm -rf conftest.dSYM
17783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17784 conftest$ac_exeext conftest.$ac_ext
17785 LIBS=$ac_check_lib_save_LIBS
17787 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
17788 $as_echo "$ac_cv_lib_GL_glXCreateContext" >&6; }
17789 if test "x$ac_cv_lib_GL_glXCreateContext" = x""yes; then
17791 GL_LIBS="-lGL -lGLU $VIDMODE_LIBS $GL_LIBS"
17794 CPPFLAGS="$ac_save_CPPFLAGS"
17795 LDFLAGS="$ac_save_LDFLAGS"
17796 # LIBS="$ac_save_LIBS"
17800 if test "$gl_lib_1" = "" ; then
17801 # we have headers, but no libs -- bail.
17806 # linking works -- we can build the GL hacks.
17807 cat >>confdefs.h <<\_ACEOF
17811 if test "$ac_have_mesa_gl" = yes ; then
17812 cat >>confdefs.h <<\_ACEOF
17813 #define HAVE_MESA_GL 1
17821 # Now that we know we have GL headers and libs, do some more GL testing.
17824 if test "$have_gl" = yes ; then
17825 # If it's MesaGL, we'd like to issue a warning if the version number
17826 # is less than or equal to 2.6, because that version had a security bug.
17828 if test "$ac_have_mesa_gl" = yes; then
17830 { $as_echo "$as_me:$LINENO: checking MesaGL version number" >&5
17831 $as_echo_n "checking MesaGL version number... " >&6; }
17832 if test "${ac_cv_mesagl_version_string+set}" = set; then
17833 $as_echo_n "(cached) " >&6
17835 cat > conftest.$ac_ext <<EOF
17836 #line 17840 "configure"
17837 #include "confdefs.h"
17839 #ifndef MESA_MAJOR_VERSION
17840 # include <GL/xmesa.h>
17841 # ifdef XMESA_MAJOR_VERSION
17842 /* Around Mesa 3.2, they took out the Mesa version number, so instead,
17843 we have to check the XMesa version number (the number of the X protocol
17844 support, which seems to be the same as the Mesa version number.)
17846 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
17847 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
17849 /* Oh great. Some time after 3.4, they took out the xmesa.h header file,
17850 so we have no way of telling what version of Mesa this is at all.
17851 So, we'll guess that the osmesa version (the "offscreen protocol")
17852 is less than or equal to the real mesa version number. Except that
17853 if OSmesa is 3.3, assume at least Mesa 3.4, since OSmesa was 3.3 in
17854 Mesa 3.4. And Mesa 3.3 had xmesa.h. What a complete load of shit!
17856 # include <GL/osmesa.h>
17857 # define MESA_MAJOR_VERSION OSMESA_MAJOR_VERSION
17858 # define MESA_MINOR_VERSION OSMESA_MINOR_VERSION or newer, probably?
17859 # if OSMESA_MAJOR_VERSION == 3 && OSMESA_MINOR_VERSION == 3
17860 # undef MESA_MINOR_VERSION
17861 # define MESA_MINOR_VERSION 4 or newer, probably?
17865 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
17868 ac_save_CPPFLAGS="$CPPFLAGS"
17869 if test \! -z "$includedir" ; then
17870 CPPFLAGS="$CPPFLAGS -I$includedir"
17872 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17874 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | grep configure:`
17878 mglv=`echo "$mglv" | sed -n \
17879 's/^configure: *\([0-9][0-9]*\) *\([0-9].*\)$/\1.\2/p'`
17882 rm -rf conftest.$ac_ext
17884 CPPFLAGS="$ac_save_CPPFLAGS"
17886 if test "$mglv" = ""; then
17887 ac_mesagl_version=unknown
17888 ac_mesagl_version_string=unknown
17890 ac_mesagl_version_string="$mglv"
17893 maj=`echo "$mglv" | sed -n 's/^\([0-9][0-9]*\)\..*$/\1/p'`
17894 min=`echo "$mglv" | sed -n 's/^.*\.\([0-9][0-9]*\).*$/\1/p'`
17896 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
17897 if test -z "$ac_mesagl_version"; then
17898 ac_mesagl_version=unknown
17899 ac_mesagl_version_string=unknown
17902 ac_cv_mesagl_version=$ac_mesagl_version
17903 ac_cv_mesagl_version_string=$ac_mesagl_version_string
17906 { $as_echo "$as_me:$LINENO: result: $ac_cv_mesagl_version_string" >&5
17907 $as_echo "$ac_cv_mesagl_version_string" >&6; }
17908 ac_mesagl_version=$ac_cv_mesagl_version
17909 ac_mesagl_version_string=$ac_cv_mesagl_version_string
17913 # Check for OpenGL 1.1 features.
17916 ac_save_CPPFLAGS="$CPPFLAGS"
17917 ac_save_LDFLAGS="$LDFLAGS"
17918 # ac_save_LIBS="$LIBS"
17920 if test \! -z "$includedir" ; then
17921 CPPFLAGS="$CPPFLAGS -I$includedir"
17923 # note: $X_CFLAGS includes $x_includes
17924 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17926 if test \! -z "$libdir" ; then
17927 LDFLAGS="$LDFLAGS -L$libdir"
17929 # note: $X_LIBS includes $x_libraries
17930 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17932 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17933 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17934 as_ac_Lib=`$as_echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
17935 { $as_echo "$as_me:$LINENO: checking for glBindTexture in -l$gl_lib_1" >&5
17936 $as_echo_n "checking for glBindTexture in -l$gl_lib_1... " >&6; }
17937 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
17938 $as_echo_n "(cached) " >&6
17940 ac_check_lib_save_LIBS=$LIBS
17941 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
17942 cat >conftest.$ac_ext <<_ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h. */
17949 /* Override any GCC internal prototype to avoid an error.
17950 Use char because int might match the return type of a GCC
17951 builtin and then its argument prototype would still apply. */
17955 char glBindTexture ();
17959 return glBindTexture ();
17964 rm -rf conftest.$ac_objext conftest$ac_exeext
17965 if { (ac_try="$ac_link"
17966 case "(($ac_try" in
17967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17968 *) ac_try_echo=$ac_try;;
17970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17971 $as_echo "$ac_try_echo") >&5
17972 (eval "$ac_link") 2>conftest.er1
17974 grep -v '^ *+' conftest.er1 >conftest.err
17975 rm -rf conftest.er1
17976 cat conftest.err >&5
17977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); } && {
17979 test -z "$ac_c_werror_flag" ||
17980 test ! -s conftest.err
17981 } && test -s conftest$ac_exeext && {
17982 test "$cross_compiling" = yes ||
17983 $as_test_x conftest$ac_exeext
17985 eval "$as_ac_Lib=yes"
17987 $as_echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17990 eval "$as_ac_Lib=no"
17993 rm -rf conftest.dSYM
17994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17995 conftest$ac_exeext conftest.$ac_ext
17996 LIBS=$ac_check_lib_save_LIBS
17998 ac_res=`eval 'as_val=${'$as_ac_Lib'}
17999 $as_echo "$as_val"'`
18000 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18001 $as_echo "$ac_res" >&6; }
18002 as_val=`eval 'as_val=${'$as_ac_Lib'}
18003 $as_echo "$as_val"'`
18004 if test "x$as_val" = x""yes; then
18005 cat >>confdefs.h <<\_ACEOF
18006 #define HAVE_GLBINDTEXTURE 1
18013 CPPFLAGS="$ac_save_CPPFLAGS"
18014 LDFLAGS="$ac_save_LDFLAGS"
18015 # LIBS="$ac_save_LIBS"
18019 elif test "$with_gl" != no; then
18020 echo "error: must be yes or no: --with-gl=$with_gl"
18025 ###############################################################################
18029 ###############################################################################
18032 with_gle_req=unspecified
18035 # Check whether --with-gle was given.
18036 if test "${with_gle+set}" = set; then
18037 withval=$with_gle; with_gle="$withval"; with_gle_req="$withval"
18044 case "$with_gle" in
18049 { $as_echo "$as_me:$LINENO: checking for GLE headers" >&5
18050 $as_echo_n "checking for GLE headers... " >&6; }
18051 d=$with_gle/include
18052 if test -d $d; then
18053 X_CFLAGS="-I$d $X_CFLAGS"
18054 { $as_echo "$as_me:$LINENO: result: $d" >&5
18055 $as_echo "$d" >&6; }
18057 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18058 $as_echo "not found ($d: no such directory)" >&6; }
18061 { $as_echo "$as_me:$LINENO: checking for GLE libs" >&5
18062 $as_echo_n "checking for GLE libs... " >&6; }
18064 if test -d $d; then
18065 X_LIBS="-L$d $X_LIBS"
18066 { $as_echo "$as_me:$LINENO: result: $d" >&5
18067 $as_echo "$d" >&6; }
18069 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18070 $as_echo "not found ($d: no such directory)" >&6; }
18073 # replace the directory string with "yes".
18075 with_gle=$with_gle_req
18080 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
18081 echo " If it is a directory, then \`DIR/include' will be added to"
18082 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18090 if test "$have_gl" = no ; then
18092 elif test "$with_gle" = yes; then
18095 ac_save_CPPFLAGS="$CPPFLAGS"
18096 if test \! -z "$includedir" ; then
18097 CPPFLAGS="$CPPFLAGS -I$includedir"
18099 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18100 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18101 { $as_echo "$as_me:$LINENO: checking for GL/gle.h" >&5
18102 $as_echo_n "checking for GL/gle.h... " >&6; }
18103 if test "${ac_cv_header_GL_gle_h+set}" = set; then
18104 $as_echo_n "(cached) " >&6
18106 cat >conftest.$ac_ext <<_ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h. */
18114 #include <GL/gle.h>
18116 rm -rf conftest.$ac_objext
18117 if { (ac_try="$ac_compile"
18118 case "(($ac_try" in
18119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18120 *) ac_try_echo=$ac_try;;
18122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18123 $as_echo "$ac_try_echo") >&5
18124 (eval "$ac_compile") 2>conftest.er1
18126 grep -v '^ *+' conftest.er1 >conftest.err
18127 rm -rf conftest.er1
18128 cat conftest.err >&5
18129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } && {
18131 test -z "$ac_c_werror_flag" ||
18132 test ! -s conftest.err
18133 } && test -s conftest.$ac_objext; then
18134 ac_cv_header_GL_gle_h=yes
18136 $as_echo "$as_me: failed program was:" >&5
18137 sed 's/^/| /' conftest.$ac_ext >&5
18139 ac_cv_header_GL_gle_h=no
18142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18144 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gle_h" >&5
18145 $as_echo "$ac_cv_header_GL_gle_h" >&6; }
18146 if test "x$ac_cv_header_GL_gle_h" = x""yes; then
18153 CPPFLAGS="$ac_save_CPPFLAGS"
18154 if test "$have_gle3" = yes ; then
18158 ac_save_CPPFLAGS="$CPPFLAGS"
18159 if test \! -z "$includedir" ; then
18160 CPPFLAGS="$CPPFLAGS -I$includedir"
18162 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18163 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18164 { $as_echo "$as_me:$LINENO: checking for GL/gutil.h" >&5
18165 $as_echo_n "checking for GL/gutil.h... " >&6; }
18166 if test "${ac_cv_header_GL_gutil_h+set}" = set; then
18167 $as_echo_n "(cached) " >&6
18169 cat >conftest.$ac_ext <<_ACEOF
18172 cat confdefs.h >>conftest.$ac_ext
18173 cat >>conftest.$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18177 #include <GL/gutil.h>
18179 rm -rf conftest.$ac_objext
18180 if { (ac_try="$ac_compile"
18181 case "(($ac_try" in
18182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183 *) ac_try_echo=$ac_try;;
18185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18186 $as_echo "$ac_try_echo") >&5
18187 (eval "$ac_compile") 2>conftest.er1
18189 grep -v '^ *+' conftest.er1 >conftest.err
18190 rm -rf conftest.er1
18191 cat conftest.err >&5
18192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } && {
18194 test -z "$ac_c_werror_flag" ||
18195 test ! -s conftest.err
18196 } && test -s conftest.$ac_objext; then
18197 ac_cv_header_GL_gutil_h=yes
18199 $as_echo "$as_me: failed program was:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18202 ac_cv_header_GL_gutil_h=no
18205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18207 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gutil_h" >&5
18208 $as_echo "$ac_cv_header_GL_gutil_h" >&6; }
18209 if test "x$ac_cv_header_GL_gutil_h" = x""yes; then
18216 CPPFLAGS="$ac_save_CPPFLAGS"
18217 if test "$have_gle" = yes ; then
18219 ac_save_CPPFLAGS="$CPPFLAGS"
18220 if test \! -z "$includedir" ; then
18221 CPPFLAGS="$CPPFLAGS -I$includedir"
18223 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18224 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18225 { $as_echo "$as_me:$LINENO: checking for GL/tube.h" >&5
18226 $as_echo_n "checking for GL/tube.h... " >&6; }
18227 if test "${ac_cv_header_GL_tube_h+set}" = set; then
18228 $as_echo_n "(cached) " >&6
18230 cat >conftest.$ac_ext <<_ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h. */
18238 #include <GL/tube.h>
18240 rm -rf conftest.$ac_objext
18241 if { (ac_try="$ac_compile"
18242 case "(($ac_try" in
18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244 *) ac_try_echo=$ac_try;;
18246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18247 $as_echo "$ac_try_echo") >&5
18248 (eval "$ac_compile") 2>conftest.er1
18250 grep -v '^ *+' conftest.er1 >conftest.err
18251 rm -rf conftest.er1
18252 cat conftest.err >&5
18253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } && {
18255 test -z "$ac_c_werror_flag" ||
18256 test ! -s conftest.err
18257 } && test -s conftest.$ac_objext; then
18258 ac_cv_header_GL_tube_h=yes
18260 $as_echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18263 ac_cv_header_GL_tube_h=no
18266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18268 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_tube_h" >&5
18269 $as_echo "$ac_cv_header_GL_tube_h" >&6; }
18270 if test "x$ac_cv_header_GL_tube_h" = x""yes; then
18277 CPPFLAGS="$ac_save_CPPFLAGS"
18281 if test "$have_gle" = yes ; then
18285 ac_save_CPPFLAGS="$CPPFLAGS"
18286 ac_save_LDFLAGS="$LDFLAGS"
18287 # ac_save_LIBS="$LIBS"
18289 if test \! -z "$includedir" ; then
18290 CPPFLAGS="$CPPFLAGS -I$includedir"
18292 # note: $X_CFLAGS includes $x_includes
18293 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18295 if test \! -z "$libdir" ; then
18296 LDFLAGS="$LDFLAGS -L$libdir"
18298 # note: $X_LIBS includes $x_libraries
18299 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18301 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18302 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18303 { $as_echo "$as_me:$LINENO: checking for gleCreateGC in -lgle" >&5
18304 $as_echo_n "checking for gleCreateGC in -lgle... " >&6; }
18305 if test "${ac_cv_lib_gle_gleCreateGC+set}" = set; then
18306 $as_echo_n "(cached) " >&6
18308 ac_check_lib_save_LIBS=$LIBS
18309 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
18310 cat >conftest.$ac_ext <<_ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18317 /* Override any GCC internal prototype to avoid an error.
18318 Use char because int might match the return type of a GCC
18319 builtin and then its argument prototype would still apply. */
18323 char gleCreateGC ();
18327 return gleCreateGC ();
18332 rm -rf conftest.$ac_objext conftest$ac_exeext
18333 if { (ac_try="$ac_link"
18334 case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18339 $as_echo "$ac_try_echo") >&5
18340 (eval "$ac_link") 2>conftest.er1
18342 grep -v '^ *+' conftest.er1 >conftest.err
18343 rm -rf conftest.er1
18344 cat conftest.err >&5
18345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } && {
18347 test -z "$ac_c_werror_flag" ||
18348 test ! -s conftest.err
18349 } && test -s conftest$ac_exeext && {
18350 test "$cross_compiling" = yes ||
18351 $as_test_x conftest$ac_exeext
18353 ac_cv_lib_gle_gleCreateGC=yes
18355 $as_echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18358 ac_cv_lib_gle_gleCreateGC=no
18361 rm -rf conftest.dSYM
18362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18363 conftest$ac_exeext conftest.$ac_ext
18364 LIBS=$ac_check_lib_save_LIBS
18366 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gle_gleCreateGC" >&5
18367 $as_echo "$ac_cv_lib_gle_gleCreateGC" >&6; }
18368 if test "x$ac_cv_lib_gle_gleCreateGC" = x""yes; then
18369 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
18372 CPPFLAGS="$ac_save_CPPFLAGS"
18373 LDFLAGS="$ac_save_LDFLAGS"
18374 # LIBS="$ac_save_LIBS"
18377 if test "$have_gle" = yes ; then
18381 # sometimes the libmatrix stuff is included in libgle. look there first.
18383 # I don't get it. For some reason, this test passes on SGI, as if
18384 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
18385 # Yet the link is succeeding. Why???
18387 # AC_CHECK_X_LIB(gle, uview_direction_d,
18388 # [have_gle=yes; gle_halfassed=no],
18389 # [], $GL_LIBS -lX11 -lXext -lm)
18391 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
18393 if test "$have_gle3" = yes ; then
18395 ac_save_CPPFLAGS="$CPPFLAGS"
18396 ac_save_LDFLAGS="$LDFLAGS"
18397 # ac_save_LIBS="$LIBS"
18399 if test \! -z "$includedir" ; then
18400 CPPFLAGS="$CPPFLAGS -I$includedir"
18402 # note: $X_CFLAGS includes $x_includes
18403 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18405 if test \! -z "$libdir" ; then
18406 LDFLAGS="$LDFLAGS -L$libdir"
18408 # note: $X_LIBS includes $x_libraries
18409 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18411 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18412 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18413 { $as_echo "$as_me:$LINENO: checking for uview_direction in -lgle" >&5
18414 $as_echo_n "checking for uview_direction in -lgle... " >&6; }
18415 if test "${ac_cv_lib_gle_uview_direction+set}" = set; then
18416 $as_echo_n "(cached) " >&6
18418 ac_check_lib_save_LIBS=$LIBS
18419 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
18420 cat >conftest.$ac_ext <<_ACEOF
18423 cat confdefs.h >>conftest.$ac_ext
18424 cat >>conftest.$ac_ext <<_ACEOF
18425 /* end confdefs.h. */
18427 /* Override any GCC internal prototype to avoid an error.
18428 Use char because int might match the return type of a GCC
18429 builtin and then its argument prototype would still apply. */
18433 char uview_direction ();
18437 return uview_direction ();
18442 rm -rf conftest.$ac_objext conftest$ac_exeext
18443 if { (ac_try="$ac_link"
18444 case "(($ac_try" in
18445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446 *) ac_try_echo=$ac_try;;
18448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18449 $as_echo "$ac_try_echo") >&5
18450 (eval "$ac_link") 2>conftest.er1
18452 grep -v '^ *+' conftest.er1 >conftest.err
18453 rm -rf conftest.er1
18454 cat conftest.err >&5
18455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } && {
18457 test -z "$ac_c_werror_flag" ||
18458 test ! -s conftest.err
18459 } && test -s conftest$ac_exeext && {
18460 test "$cross_compiling" = yes ||
18461 $as_test_x conftest$ac_exeext
18463 ac_cv_lib_gle_uview_direction=yes
18465 $as_echo "$as_me: failed program was:" >&5
18466 sed 's/^/| /' conftest.$ac_ext >&5
18468 ac_cv_lib_gle_uview_direction=no
18471 rm -rf conftest.dSYM
18472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18473 conftest$ac_exeext conftest.$ac_ext
18474 LIBS=$ac_check_lib_save_LIBS
18476 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gle_uview_direction" >&5
18477 $as_echo "$ac_cv_lib_gle_uview_direction" >&6; }
18478 if test "x$ac_cv_lib_gle_uview_direction" = x""yes; then
18479 have_gle=yes; gle_halfassed=no
18482 CPPFLAGS="$ac_save_CPPFLAGS"
18483 LDFLAGS="$ac_save_LDFLAGS"
18484 # LIBS="$ac_save_LIBS"
18487 # if it wasn't in libgle, then look in libmatrix.
18488 if test "$have_gle" = no ; then
18490 ac_save_CPPFLAGS="$CPPFLAGS"
18491 ac_save_LDFLAGS="$LDFLAGS"
18492 # ac_save_LIBS="$LIBS"
18494 if test \! -z "$includedir" ; then
18495 CPPFLAGS="$CPPFLAGS -I$includedir"
18497 # note: $X_CFLAGS includes $x_includes
18498 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18500 if test \! -z "$libdir" ; then
18501 LDFLAGS="$LDFLAGS -L$libdir"
18503 # note: $X_LIBS includes $x_libraries
18504 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18506 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18507 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18508 { $as_echo "$as_me:$LINENO: checking for uview_direction_d in -lmatrix" >&5
18509 $as_echo_n "checking for uview_direction_d in -lmatrix... " >&6; }
18510 if test "${ac_cv_lib_matrix_uview_direction_d+set}" = set; then
18511 $as_echo_n "(cached) " >&6
18513 ac_check_lib_save_LIBS=$LIBS
18514 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
18515 cat >conftest.$ac_ext <<_ACEOF
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h. */
18522 /* Override any GCC internal prototype to avoid an error.
18523 Use char because int might match the return type of a GCC
18524 builtin and then its argument prototype would still apply. */
18528 char uview_direction_d ();
18532 return uview_direction_d ();
18537 rm -rf conftest.$ac_objext conftest$ac_exeext
18538 if { (ac_try="$ac_link"
18539 case "(($ac_try" in
18540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18544 $as_echo "$ac_try_echo") >&5
18545 (eval "$ac_link") 2>conftest.er1
18547 grep -v '^ *+' conftest.er1 >conftest.err
18548 rm -rf conftest.er1
18549 cat conftest.err >&5
18550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); } && {
18552 test -z "$ac_c_werror_flag" ||
18553 test ! -s conftest.err
18554 } && test -s conftest$ac_exeext && {
18555 test "$cross_compiling" = yes ||
18556 $as_test_x conftest$ac_exeext
18558 ac_cv_lib_matrix_uview_direction_d=yes
18560 $as_echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18563 ac_cv_lib_matrix_uview_direction_d=no
18566 rm -rf conftest.dSYM
18567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18568 conftest$ac_exeext conftest.$ac_ext
18569 LIBS=$ac_check_lib_save_LIBS
18571 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_matrix_uview_direction_d" >&5
18572 $as_echo "$ac_cv_lib_matrix_uview_direction_d" >&6; }
18573 if test "x$ac_cv_lib_matrix_uview_direction_d" = x""yes; then
18574 have_gle=yes; gle_halfassed=no;
18575 GLE_LIBS="$GLE_LIBS -lmatrix"
18578 CPPFLAGS="$ac_save_CPPFLAGS"
18579 LDFLAGS="$ac_save_LDFLAGS"
18580 # LIBS="$ac_save_LIBS"
18585 if test "$have_gle" = yes ; then
18586 cat >>confdefs.h <<\_ACEOF
18590 if test "$have_gle3" = yes ; then
18591 cat >>confdefs.h <<\_ACEOF
18592 #define HAVE_GLE3 1
18598 elif test "$with_gle" != no; then
18599 echo "error: must be yes or no: --with-gle=$with_gle"
18605 ###############################################################################
18607 # Handle --with-gles
18609 ###############################################################################
18611 with_gles_req=unspecified
18613 # Check whether --with-gles was given.
18614 if test "${with_gles+set}" = set; then
18615 withval=$with_gles; with_gles="$withval"; with_gles_req="$withval"
18622 case "$with_gles" in
18627 { $as_echo "$as_me:$LINENO: checking for JWZGLES headers" >&5
18628 $as_echo_n "checking for JWZGLES headers... " >&6; }
18629 d=$with_gles/include
18630 if test -d $d; then
18631 X_CFLAGS="-I$d $X_CFLAGS"
18632 { $as_echo "$as_me:$LINENO: result: $d" >&5
18633 $as_echo "$d" >&6; }
18635 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18636 $as_echo "not found ($d: no such directory)" >&6; }
18639 { $as_echo "$as_me:$LINENO: checking for JWZGLES libs" >&5
18640 $as_echo_n "checking for JWZGLES libs... " >&6; }
18642 if test -d $d; then
18643 X_LIBS="-L$d $X_LIBS"
18644 { $as_echo "$as_me:$LINENO: result: $d" >&5
18645 $as_echo "$d" >&6; }
18647 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18648 $as_echo "not found ($d: no such directory)" >&6; }
18651 # replace the directory string with "yes".
18652 with_gles_req="yes"
18653 with_gles=$with_gles_req
18658 echo "error: argument to --with-gles must be \"yes\", \"no\", or a directory."
18659 echo " If it is a directory, then \`DIR/include' will be added to"
18660 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18666 if test "$with_gles" = yes; then
18668 cat >>confdefs.h <<\_ACEOF
18669 #define HAVE_JWZGLES 1
18672 JWZGLES_OBJS="jwzgles.o"
18673 { $as_echo "$as_me:$LINENO: result: using OpenGL ES compatiblity shim" >&5
18674 $as_echo "using OpenGL ES compatiblity shim" >&6; }
18675 elif test "$with_gles" != no; then
18676 echo "error: must be yes or no: --with-gles=$with_xpm"
18680 # May want to phase out glBitmap even in a non-GLES world.
18682 if test "$have_gles" = yes; then
18683 GLFPS_OBJS="fps-gl.o glxfonts.o texfont.o"
18686 cat >>confdefs.h <<\_ACEOF
18687 #define HAVE_GLBITMAP 1
18690 GLFPS_OBJS="fps-gl.o glxfonts.o"
18691 GLFONT_OBJS="texfont.o"
18695 ###############################################################################
18697 # Check for -lgdk_pixbuf.
18698 # These tests are for gdk_pixbuf usage of the hacks,
18699 # not xscreensaver-demo (thus we have to test again to get
18700 # the libraries right: don't want to pull in all of GTK
18703 ###############################################################################
18706 with_gdk_pixbuf_req=unspecified
18708 # Check whether --with-pixbuf was given.
18709 if test "${with_pixbuf+set}" = set; then
18710 withval=$with_pixbuf; with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
18712 with_gdk_pixbuf=yes
18716 # if --with-pixbuf=/directory/ was specified, remember that directory so that
18717 # we can also look for the `gdk-pixbuf-config' program in that directory.
18718 case "$with_gdk_pixbuf" in
18720 gdk_pixbuf_dir="$with_gdk_pixbuf"
18728 case "$with_gdk_pixbuf" in
18733 { $as_echo "$as_me:$LINENO: checking for GDK_PIXBUF headers" >&5
18734 $as_echo_n "checking for GDK_PIXBUF headers... " >&6; }
18735 d=$with_gdk_pixbuf/include
18736 if test -d $d; then
18737 X_CFLAGS="-I$d $X_CFLAGS"
18738 { $as_echo "$as_me:$LINENO: result: $d" >&5
18739 $as_echo "$d" >&6; }
18741 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18742 $as_echo "not found ($d: no such directory)" >&6; }
18745 { $as_echo "$as_me:$LINENO: checking for GDK_PIXBUF libs" >&5
18746 $as_echo_n "checking for GDK_PIXBUF libs... " >&6; }
18747 d=$with_gdk_pixbuf/lib
18748 if test -d $d; then
18749 X_LIBS="-L$d $X_LIBS"
18750 { $as_echo "$as_me:$LINENO: result: $d" >&5
18751 $as_echo "$d" >&6; }
18753 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18754 $as_echo "not found ($d: no such directory)" >&6; }
18757 # replace the directory string with "yes".
18758 with_gdk_pixbuf_req="yes"
18759 with_gdk_pixbuf=$with_gdk_pixbuf_req
18764 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
18765 echo " If it is a directory, then \`DIR/include' will be added to"
18766 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18772 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
18773 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
18777 if test "$with_gdk_pixbuf" = yes; then
18783 pkg_check_version gdk-pixbuf-2.0 2.0.0
18784 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
18785 have_gdk_pixbuf="$ok"
18787 if test "$have_gdk_pixbuf" = yes; then
18788 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
18789 $as_echo_n "checking for gdk-pixbuf includes... " >&6; }
18790 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
18791 $as_echo_n "(cached) " >&6
18793 ac_cv_gdk_pixbuf_config_cflags=`$pkg_config --cflags $pkgs`
18795 { $as_echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
18796 $as_echo "$ac_cv_gdk_pixbuf_config_cflags" >&6; }
18797 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
18798 $as_echo_n "checking for gdk-pixbuf libs... " >&6; }
18799 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
18800 $as_echo_n "(cached) " >&6
18802 ac_cv_gdk_pixbuf_config_libs=`$pkg_config --libs $pkgs`
18804 { $as_echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
18805 $as_echo "$ac_cv_gdk_pixbuf_config_libs" >&6; }
18808 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
18809 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
18812 if test "$have_gdk_pixbuf" = yes; then
18814 # we appear to have pixbuf; check for headers/libs to be sure.
18816 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
18817 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
18821 # check for header A...
18823 ac_save_CPPFLAGS="$CPPFLAGS"
18824 if test \! -z "$includedir" ; then
18825 CPPFLAGS="$CPPFLAGS -I$includedir"
18827 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18828 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18829 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
18830 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
18831 $as_echo_n "checking for gdk-pixbuf/gdk-pixbuf.h... " >&6; }
18832 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
18833 $as_echo_n "(cached) " >&6
18835 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
18836 $as_echo "$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6; }
18838 # Is the header compilable?
18839 { $as_echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h usability" >&5
18840 $as_echo_n "checking gdk-pixbuf/gdk-pixbuf.h usability... " >&6; }
18841 cat >conftest.$ac_ext <<_ACEOF
18844 cat confdefs.h >>conftest.$ac_ext
18845 cat >>conftest.$ac_ext <<_ACEOF
18846 /* end confdefs.h. */
18847 $ac_includes_default
18848 #include <gdk-pixbuf/gdk-pixbuf.h>
18850 rm -rf conftest.$ac_objext
18851 if { (ac_try="$ac_compile"
18852 case "(($ac_try" in
18853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18854 *) ac_try_echo=$ac_try;;
18856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18857 $as_echo "$ac_try_echo") >&5
18858 (eval "$ac_compile") 2>conftest.er1
18860 grep -v '^ *+' conftest.er1 >conftest.err
18861 rm -rf conftest.er1
18862 cat conftest.err >&5
18863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } && {
18865 test -z "$ac_c_werror_flag" ||
18866 test ! -s conftest.err
18867 } && test -s conftest.$ac_objext; then
18868 ac_header_compiler=yes
18870 $as_echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18873 ac_header_compiler=no
18876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18877 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18878 $as_echo "$ac_header_compiler" >&6; }
18880 # Is the header present?
18881 { $as_echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h presence" >&5
18882 $as_echo_n "checking gdk-pixbuf/gdk-pixbuf.h presence... " >&6; }
18883 cat >conftest.$ac_ext <<_ACEOF
18886 cat confdefs.h >>conftest.$ac_ext
18887 cat >>conftest.$ac_ext <<_ACEOF
18888 /* end confdefs.h. */
18889 #include <gdk-pixbuf/gdk-pixbuf.h>
18891 if { (ac_try="$ac_cpp conftest.$ac_ext"
18892 case "(($ac_try" in
18893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894 *) ac_try_echo=$ac_try;;
18896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18897 $as_echo "$ac_try_echo") >&5
18898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18900 grep -v '^ *+' conftest.er1 >conftest.err
18901 rm -rf conftest.er1
18902 cat conftest.err >&5
18903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } >/dev/null && {
18905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18906 test ! -s conftest.err
18908 ac_header_preproc=yes
18910 $as_echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18913 ac_header_preproc=no
18916 rm -rf conftest.err conftest.$ac_ext
18917 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18918 $as_echo "$ac_header_preproc" >&6; }
18920 # So? What about this header?
18921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18923 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&5
18924 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18925 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&5
18926 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&2;}
18927 ac_header_preproc=yes
18930 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&5
18931 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&2;}
18932 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&5
18933 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&2;}
18934 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&5
18935 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&2;}
18936 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&5
18937 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&2;}
18938 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
18939 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;}
18940 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&5
18941 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&2;}
18945 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
18946 $as_echo_n "checking for gdk-pixbuf/gdk-pixbuf.h... " >&6; }
18947 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
18948 $as_echo_n "(cached) " >&6
18950 ac_cv_header_gdk_pixbuf_gdk_pixbuf_h=$ac_header_preproc
18952 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
18953 $as_echo "$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6; }
18956 if test "x$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" = x""yes; then
18957 have_gdk_pixbuf=yes
18961 CPPFLAGS="$ac_save_CPPFLAGS"
18963 # if that worked, check for header B...
18964 if test "$have_gdk_pixbuf" = yes; then
18966 gdk_pixbuf_halfassed=yes
18968 ac_save_CPPFLAGS="$CPPFLAGS"
18969 if test \! -z "$includedir" ; then
18970 CPPFLAGS="$CPPFLAGS -I$includedir"
18972 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18973 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18974 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
18975 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
18976 $as_echo_n "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... " >&6; }
18977 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
18978 $as_echo_n "(cached) " >&6
18980 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
18981 $as_echo "$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6; }
18983 # Is the header compilable?
18984 { $as_echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h usability" >&5
18985 $as_echo_n "checking gdk-pixbuf/gdk-pixbuf-xlib.h usability... " >&6; }
18986 cat >conftest.$ac_ext <<_ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h. */
18992 $ac_includes_default
18993 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
18995 rm -rf conftest.$ac_objext
18996 if { (ac_try="$ac_compile"
18997 case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19002 $as_echo "$ac_try_echo") >&5
19003 (eval "$ac_compile") 2>conftest.er1
19005 grep -v '^ *+' conftest.er1 >conftest.err
19006 rm -rf conftest.er1
19007 cat conftest.err >&5
19008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); } && {
19010 test -z "$ac_c_werror_flag" ||
19011 test ! -s conftest.err
19012 } && test -s conftest.$ac_objext; then
19013 ac_header_compiler=yes
19015 $as_echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19018 ac_header_compiler=no
19021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19022 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19023 $as_echo "$ac_header_compiler" >&6; }
19025 # Is the header present?
19026 { $as_echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h presence" >&5
19027 $as_echo_n "checking gdk-pixbuf/gdk-pixbuf-xlib.h presence... " >&6; }
19028 cat >conftest.$ac_ext <<_ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19034 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
19036 if { (ac_try="$ac_cpp conftest.$ac_ext"
19037 case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19042 $as_echo "$ac_try_echo") >&5
19043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19045 grep -v '^ *+' conftest.er1 >conftest.err
19046 rm -rf conftest.er1
19047 cat conftest.err >&5
19048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); } >/dev/null && {
19050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19051 test ! -s conftest.err
19053 ac_header_preproc=yes
19055 $as_echo "$as_me: failed program was:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19058 ac_header_preproc=no
19061 rm -rf conftest.err conftest.$ac_ext
19062 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19063 $as_echo "$ac_header_preproc" >&6; }
19065 # So? What about this header?
19066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19068 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19069 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19070 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
19071 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
19072 ac_header_preproc=yes
19075 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
19076 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
19077 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
19078 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
19079 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
19080 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
19081 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
19082 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
19083 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
19084 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
19085 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
19086 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
19090 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
19091 $as_echo_n "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... " >&6; }
19092 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
19093 $as_echo_n "(cached) " >&6
19095 ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h=$ac_header_preproc
19097 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
19098 $as_echo "$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6; }
19101 if test "x$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" = x""yes; then
19102 have_gdk_pixbuf=yes
19103 gdk_pixbuf_halfassed=no
19107 CPPFLAGS="$ac_save_CPPFLAGS"
19109 # yay, it has a new name in Gtk 2.x...
19110 if test "$have_gdk_pixbuf" = no; then
19112 gdk_pixbuf_halfassed=yes
19114 ac_save_CPPFLAGS="$CPPFLAGS"
19115 if test \! -z "$includedir" ; then
19116 CPPFLAGS="$CPPFLAGS -I$includedir"
19118 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19119 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19120 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
19121 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
19122 $as_echo_n "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... " >&6; }
19123 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
19124 $as_echo_n "(cached) " >&6
19126 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
19127 $as_echo "$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6; }
19129 # Is the header compilable?
19130 { $as_echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability" >&5
19131 $as_echo_n "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability... " >&6; }
19132 cat >conftest.$ac_ext <<_ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h. */
19138 $ac_includes_default
19139 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
19141 rm -rf conftest.$ac_objext
19142 if { (ac_try="$ac_compile"
19143 case "(($ac_try" in
19144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19145 *) ac_try_echo=$ac_try;;
19147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19148 $as_echo "$ac_try_echo") >&5
19149 (eval "$ac_compile") 2>conftest.er1
19151 grep -v '^ *+' conftest.er1 >conftest.err
19152 rm -rf conftest.er1
19153 cat conftest.err >&5
19154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); } && {
19156 test -z "$ac_c_werror_flag" ||
19157 test ! -s conftest.err
19158 } && test -s conftest.$ac_objext; then
19159 ac_header_compiler=yes
19161 $as_echo "$as_me: failed program was:" >&5
19162 sed 's/^/| /' conftest.$ac_ext >&5
19164 ac_header_compiler=no
19167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19168 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19169 $as_echo "$ac_header_compiler" >&6; }
19171 # Is the header present?
19172 { $as_echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence" >&5
19173 $as_echo_n "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence... " >&6; }
19174 cat >conftest.$ac_ext <<_ACEOF
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h. */
19180 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
19182 if { (ac_try="$ac_cpp conftest.$ac_ext"
19183 case "(($ac_try" in
19184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185 *) ac_try_echo=$ac_try;;
19187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19188 $as_echo "$ac_try_echo") >&5
19189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19191 grep -v '^ *+' conftest.er1 >conftest.err
19192 rm -rf conftest.er1
19193 cat conftest.err >&5
19194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } >/dev/null && {
19196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19197 test ! -s conftest.err
19199 ac_header_preproc=yes
19201 $as_echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19204 ac_header_preproc=no
19207 rm -rf conftest.err conftest.$ac_ext
19208 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19209 $as_echo "$ac_header_preproc" >&6; }
19211 # So? What about this header?
19212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19214 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19215 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19216 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
19217 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
19218 ac_header_preproc=yes
19221 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
19222 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
19223 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
19224 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
19225 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
19226 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
19227 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
19228 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
19229 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
19230 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
19231 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
19232 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
19236 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
19237 $as_echo_n "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... " >&6; }
19238 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
19239 $as_echo_n "(cached) " >&6
19241 ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h=$ac_header_preproc
19243 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
19244 $as_echo "$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6; }
19247 if test "x$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" = x""yes; then
19248 have_gdk_pixbuf=yes
19249 gdk_pixbuf_halfassed=no
19253 CPPFLAGS="$ac_save_CPPFLAGS"
19256 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
19259 if test "$have_gdk_pixbuf" = yes; then
19260 # we have the headers, now check for the libraries
19262 gdk_pixbuf_halfassed=yes
19264 { $as_echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability..." >&5
19265 $as_echo "checking for gdk_pixbuf usability..." >&6; }
19269 ac_save_CPPFLAGS="$CPPFLAGS"
19270 ac_save_LDFLAGS="$LDFLAGS"
19271 # ac_save_LIBS="$LIBS"
19273 if test \! -z "$includedir" ; then
19274 CPPFLAGS="$CPPFLAGS -I$includedir"
19276 # note: $X_CFLAGS includes $x_includes
19277 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19279 if test \! -z "$libdir" ; then
19280 LDFLAGS="$LDFLAGS -L$libdir"
19282 # note: $X_LIBS includes $x_libraries
19283 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19285 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19286 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
19287 { $as_echo "$as_me:$LINENO: checking for gdk_pixbuf_new_from_file in -lc" >&5
19288 $as_echo_n "checking for gdk_pixbuf_new_from_file in -lc... " >&6; }
19289 if test "${ac_cv_lib_c_gdk_pixbuf_new_from_file+set}" = set; then
19290 $as_echo_n "(cached) " >&6
19292 ac_check_lib_save_LIBS=$LIBS
19293 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
19294 cat >conftest.$ac_ext <<_ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19301 /* Override any GCC internal prototype to avoid an error.
19302 Use char because int might match the return type of a GCC
19303 builtin and then its argument prototype would still apply. */
19307 char gdk_pixbuf_new_from_file ();
19311 return gdk_pixbuf_new_from_file ();
19316 rm -rf conftest.$ac_objext conftest$ac_exeext
19317 if { (ac_try="$ac_link"
19318 case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19323 $as_echo "$ac_try_echo") >&5
19324 (eval "$ac_link") 2>conftest.er1
19326 grep -v '^ *+' conftest.er1 >conftest.err
19327 rm -rf conftest.er1
19328 cat conftest.err >&5
19329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } && {
19331 test -z "$ac_c_werror_flag" ||
19332 test ! -s conftest.err
19333 } && test -s conftest$ac_exeext && {
19334 test "$cross_compiling" = yes ||
19335 $as_test_x conftest$ac_exeext
19337 ac_cv_lib_c_gdk_pixbuf_new_from_file=yes
19339 $as_echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19342 ac_cv_lib_c_gdk_pixbuf_new_from_file=no
19345 rm -rf conftest.dSYM
19346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19347 conftest$ac_exeext conftest.$ac_ext
19348 LIBS=$ac_check_lib_save_LIBS
19350 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_new_from_file" >&5
19351 $as_echo "$ac_cv_lib_c_gdk_pixbuf_new_from_file" >&6; }
19352 if test "x$ac_cv_lib_c_gdk_pixbuf_new_from_file" = x""yes; then
19353 have_gdk_pixbuf=yes
19356 CPPFLAGS="$ac_save_CPPFLAGS"
19357 LDFLAGS="$ac_save_LDFLAGS"
19358 # LIBS="$ac_save_LIBS"
19361 if test "$have_gdk_pixbuf" = yes; then
19364 ac_save_CPPFLAGS="$CPPFLAGS"
19365 ac_save_LDFLAGS="$LDFLAGS"
19366 # ac_save_LIBS="$LIBS"
19368 if test \! -z "$includedir" ; then
19369 CPPFLAGS="$CPPFLAGS -I$includedir"
19371 # note: $X_CFLAGS includes $x_includes
19372 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19374 if test \! -z "$libdir" ; then
19375 LDFLAGS="$LDFLAGS -L$libdir"
19377 # note: $X_LIBS includes $x_libraries
19378 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19380 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19381 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
19382 { $as_echo "$as_me:$LINENO: checking for gdk_pixbuf_xlib_init in -lc" >&5
19383 $as_echo_n "checking for gdk_pixbuf_xlib_init in -lc... " >&6; }
19384 if test "${ac_cv_lib_c_gdk_pixbuf_xlib_init+set}" = set; then
19385 $as_echo_n "(cached) " >&6
19387 ac_check_lib_save_LIBS=$LIBS
19388 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
19389 cat >conftest.$ac_ext <<_ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19396 /* Override any GCC internal prototype to avoid an error.
19397 Use char because int might match the return type of a GCC
19398 builtin and then its argument prototype would still apply. */
19402 char gdk_pixbuf_xlib_init ();
19406 return gdk_pixbuf_xlib_init ();
19411 rm -rf conftest.$ac_objext conftest$ac_exeext
19412 if { (ac_try="$ac_link"
19413 case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19418 $as_echo "$ac_try_echo") >&5
19419 (eval "$ac_link") 2>conftest.er1
19421 grep -v '^ *+' conftest.er1 >conftest.err
19422 rm -rf conftest.er1
19423 cat conftest.err >&5
19424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); } && {
19426 test -z "$ac_c_werror_flag" ||
19427 test ! -s conftest.err
19428 } && test -s conftest$ac_exeext && {
19429 test "$cross_compiling" = yes ||
19430 $as_test_x conftest$ac_exeext
19432 ac_cv_lib_c_gdk_pixbuf_xlib_init=yes
19434 $as_echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19437 ac_cv_lib_c_gdk_pixbuf_xlib_init=no
19440 rm -rf conftest.dSYM
19441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19442 conftest$ac_exeext conftest.$ac_ext
19443 LIBS=$ac_check_lib_save_LIBS
19445 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_xlib_init" >&5
19446 $as_echo "$ac_cv_lib_c_gdk_pixbuf_xlib_init" >&6; }
19447 if test "x$ac_cv_lib_c_gdk_pixbuf_xlib_init" = x""yes; then
19448 have_gdk_pixbuf=yes
19449 gdk_pixbuf_halfassed=no
19452 CPPFLAGS="$ac_save_CPPFLAGS"
19453 LDFLAGS="$ac_save_LDFLAGS"
19454 # LIBS="$ac_save_LIBS"
19459 if test "$have_gdk_pixbuf" = yes; then
19460 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
19461 XPM_LIBS="$ac_gdk_pixbuf_config_libs"
19462 cat >>confdefs.h <<\_ACEOF
19463 #define HAVE_GDK_PIXBUF 1
19467 { $as_echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability... no" >&5
19468 $as_echo "checking for gdk_pixbuf usability... no" >&6; }
19471 if test "$have_gdk_pixbuf" = yes; then
19473 ac_save_CPPFLAGS="$CPPFLAGS"
19474 ac_save_LDFLAGS="$LDFLAGS"
19475 # ac_save_LIBS="$LIBS"
19477 if test \! -z "$includedir" ; then
19478 CPPFLAGS="$CPPFLAGS -I$includedir"
19480 # note: $X_CFLAGS includes $x_includes
19481 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19483 if test \! -z "$libdir" ; then
19484 LDFLAGS="$LDFLAGS -L$libdir"
19486 # note: $X_LIBS includes $x_libraries
19487 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19489 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19490 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
19491 { $as_echo "$as_me:$LINENO: checking for gdk_pixbuf_apply_embedded_orientation in -lc" >&5
19492 $as_echo_n "checking for gdk_pixbuf_apply_embedded_orientation in -lc... " >&6; }
19493 if test "${ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation+set}" = set; then
19494 $as_echo_n "(cached) " >&6
19496 ac_check_lib_save_LIBS=$LIBS
19497 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
19498 cat >conftest.$ac_ext <<_ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h. */
19505 /* Override any GCC internal prototype to avoid an error.
19506 Use char because int might match the return type of a GCC
19507 builtin and then its argument prototype would still apply. */
19511 char gdk_pixbuf_apply_embedded_orientation ();
19515 return gdk_pixbuf_apply_embedded_orientation ();
19520 rm -rf conftest.$ac_objext conftest$ac_exeext
19521 if { (ac_try="$ac_link"
19522 case "(($ac_try" in
19523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524 *) ac_try_echo=$ac_try;;
19526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19527 $as_echo "$ac_try_echo") >&5
19528 (eval "$ac_link") 2>conftest.er1
19530 grep -v '^ *+' conftest.er1 >conftest.err
19531 rm -rf conftest.er1
19532 cat conftest.err >&5
19533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); } && {
19535 test -z "$ac_c_werror_flag" ||
19536 test ! -s conftest.err
19537 } && test -s conftest$ac_exeext && {
19538 test "$cross_compiling" = yes ||
19539 $as_test_x conftest$ac_exeext
19541 ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation=yes
19543 $as_echo "$as_me: failed program was:" >&5
19544 sed 's/^/| /' conftest.$ac_ext >&5
19546 ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation=no
19549 rm -rf conftest.dSYM
19550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19551 conftest$ac_exeext conftest.$ac_ext
19552 LIBS=$ac_check_lib_save_LIBS
19554 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" >&5
19555 $as_echo "$ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" >&6; }
19556 if test "x$ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" = x""yes; then
19557 cat >>confdefs.h <<\_ACEOF
19558 #define HAVE_GDK_PIXBUF_APPLY_EMBEDDED_ORIENTATION 1
19563 CPPFLAGS="$ac_save_CPPFLAGS"
19564 LDFLAGS="$ac_save_LDFLAGS"
19565 # LIBS="$ac_save_LIBS"
19571 ###############################################################################
19575 ###############################################################################
19578 with_xpm_req=unspecified
19580 # Check whether --with-xpm was given.
19581 if test "${with_xpm+set}" = set; then
19582 withval=$with_xpm; with_xpm="$withval"; with_xpm_req="$withval"
19589 case "$with_xpm" in
19594 { $as_echo "$as_me:$LINENO: checking for XPM headers" >&5
19595 $as_echo_n "checking for XPM headers... " >&6; }
19596 d=$with_xpm/include
19597 if test -d $d; then
19598 X_CFLAGS="-I$d $X_CFLAGS"
19599 { $as_echo "$as_me:$LINENO: result: $d" >&5
19600 $as_echo "$d" >&6; }
19602 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19603 $as_echo "not found ($d: no such directory)" >&6; }
19606 { $as_echo "$as_me:$LINENO: checking for XPM libs" >&5
19607 $as_echo_n "checking for XPM libs... " >&6; }
19609 if test -d $d; then
19610 X_LIBS="-L$d $X_LIBS"
19611 { $as_echo "$as_me:$LINENO: result: $d" >&5
19612 $as_echo "$d" >&6; }
19614 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19615 $as_echo "not found ($d: no such directory)" >&6; }
19618 # replace the directory string with "yes".
19620 with_xpm=$with_xpm_req
19625 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
19626 echo " If it is a directory, then \`DIR/include' will be added to"
19627 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19633 if test "$with_xpm" = yes; then
19635 ac_save_CPPFLAGS="$CPPFLAGS"
19636 if test \! -z "$includedir" ; then
19637 CPPFLAGS="$CPPFLAGS -I$includedir"
19639 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19640 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19641 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
19642 $as_echo_n "checking for X11/xpm.h... " >&6; }
19643 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
19644 $as_echo_n "(cached) " >&6
19646 cat >conftest.$ac_ext <<_ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19652 #include <X11/Xlib.h>
19654 #include <X11/xpm.h>
19656 rm -rf conftest.$ac_objext
19657 if { (ac_try="$ac_compile"
19658 case "(($ac_try" in
19659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660 *) ac_try_echo=$ac_try;;
19662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19663 $as_echo "$ac_try_echo") >&5
19664 (eval "$ac_compile") 2>conftest.er1
19666 grep -v '^ *+' conftest.er1 >conftest.err
19667 rm -rf conftest.er1
19668 cat conftest.err >&5
19669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } && {
19671 test -z "$ac_c_werror_flag" ||
19672 test ! -s conftest.err
19673 } && test -s conftest.$ac_objext; then
19674 ac_cv_header_X11_xpm_h=yes
19676 $as_echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19679 ac_cv_header_X11_xpm_h=no
19682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19684 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
19685 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
19686 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then
19688 cat >>confdefs.h <<\_ACEOF
19692 XPM_LIBS="-lXpm $XPM_LIBS"
19696 CPPFLAGS="$ac_save_CPPFLAGS"
19697 elif test "$with_xpm" != no; then
19698 echo "error: must be yes or no: --with-xpm=$with_xpm"
19702 # See comment near $motif_requires_xpm, above.
19703 # Need to do this here, after both Motif and XPM have been checked for.
19705 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
19706 if test "$motif_requires_xpm" = yes ; then
19707 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
19711 if test "$XPM_LIBS" = "" ; then
19712 XPM_LIBS=$(MINIXPM)
19716 ###############################################################################
19720 ###############################################################################
19723 with_jpeg_req=unspecified
19726 # Check whether --with-jpeg was given.
19727 if test "${with_jpeg+set}" = set; then
19728 withval=$with_jpeg; with_jpeg="$withval"; with_jpeg_req="$withval"
19735 case "$with_jpeg" in
19740 { $as_echo "$as_me:$LINENO: checking for JPEG headers" >&5
19741 $as_echo_n "checking for JPEG headers... " >&6; }
19742 d=$with_jpeg/include
19743 if test -d $d; then
19744 X_CFLAGS="-I$d $X_CFLAGS"
19745 { $as_echo "$as_me:$LINENO: result: $d" >&5
19746 $as_echo "$d" >&6; }
19748 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19749 $as_echo "not found ($d: no such directory)" >&6; }
19752 { $as_echo "$as_me:$LINENO: checking for JPEG libs" >&5
19753 $as_echo_n "checking for JPEG libs... " >&6; }
19755 if test -d $d; then
19756 X_LIBS="-L$d $X_LIBS"
19757 { $as_echo "$as_me:$LINENO: result: $d" >&5
19758 $as_echo "$d" >&6; }
19760 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19761 $as_echo "not found ($d: no such directory)" >&6; }
19764 # replace the directory string with "yes".
19765 with_jpeg_req="yes"
19766 with_jpeg=$with_jpeg_req
19771 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
19772 echo " If it is a directory, then \`DIR/include' will be added to"
19773 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19779 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
19780 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
19784 if test "$with_jpeg" = yes; then
19788 ac_save_CPPFLAGS="$CPPFLAGS"
19789 if test \! -z "$includedir" ; then
19790 CPPFLAGS="$CPPFLAGS -I$includedir"
19792 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19793 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19794 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19795 { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19796 $as_echo_n "checking for jpeglib.h... " >&6; }
19797 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19798 $as_echo_n "(cached) " >&6
19800 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19801 $as_echo "$ac_cv_header_jpeglib_h" >&6; }
19803 # Is the header compilable?
19804 { $as_echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
19805 $as_echo_n "checking jpeglib.h usability... " >&6; }
19806 cat >conftest.$ac_ext <<_ACEOF
19809 cat confdefs.h >>conftest.$ac_ext
19810 cat >>conftest.$ac_ext <<_ACEOF
19811 /* end confdefs.h. */
19812 $ac_includes_default
19813 #include <jpeglib.h>
19815 rm -rf conftest.$ac_objext
19816 if { (ac_try="$ac_compile"
19817 case "(($ac_try" in
19818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819 *) ac_try_echo=$ac_try;;
19821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19822 $as_echo "$ac_try_echo") >&5
19823 (eval "$ac_compile") 2>conftest.er1
19825 grep -v '^ *+' conftest.er1 >conftest.err
19826 rm -rf conftest.er1
19827 cat conftest.err >&5
19828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); } && {
19830 test -z "$ac_c_werror_flag" ||
19831 test ! -s conftest.err
19832 } && test -s conftest.$ac_objext; then
19833 ac_header_compiler=yes
19835 $as_echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19838 ac_header_compiler=no
19841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19843 $as_echo "$ac_header_compiler" >&6; }
19845 # Is the header present?
19846 { $as_echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
19847 $as_echo_n "checking jpeglib.h presence... " >&6; }
19848 cat >conftest.$ac_ext <<_ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19854 #include <jpeglib.h>
19856 if { (ac_try="$ac_cpp conftest.$ac_ext"
19857 case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19862 $as_echo "$ac_try_echo") >&5
19863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19865 grep -v '^ *+' conftest.er1 >conftest.err
19866 rm -rf conftest.er1
19867 cat conftest.err >&5
19868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } >/dev/null && {
19870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19871 test ! -s conftest.err
19873 ac_header_preproc=yes
19875 $as_echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19878 ac_header_preproc=no
19881 rm -rf conftest.err conftest.$ac_ext
19882 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19883 $as_echo "$ac_header_preproc" >&6; }
19885 # So? What about this header?
19886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19888 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19889 $as_echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19890 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
19891 $as_echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
19892 ac_header_preproc=yes
19895 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
19896 $as_echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
19897 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
19898 $as_echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
19899 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
19900 $as_echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
19901 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
19902 $as_echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
19903 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
19904 $as_echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
19905 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
19906 $as_echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
19910 { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19911 $as_echo_n "checking for jpeglib.h... " >&6; }
19912 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19913 $as_echo_n "(cached) " >&6
19915 ac_cv_header_jpeglib_h=$ac_header_preproc
19917 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19918 $as_echo "$ac_cv_header_jpeglib_h" >&6; }
19921 if test "x$ac_cv_header_jpeglib_h" = x""yes; then
19926 CPPFLAGS="$ac_save_CPPFLAGS"
19928 if test "$have_jpeg" = yes; then
19929 # we have the header, now check for the library
19933 ac_save_CPPFLAGS="$CPPFLAGS"
19934 ac_save_LDFLAGS="$LDFLAGS"
19935 # ac_save_LIBS="$LIBS"
19937 if test \! -z "$includedir" ; then
19938 CPPFLAGS="$CPPFLAGS -I$includedir"
19940 # note: $X_CFLAGS includes $x_includes
19941 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19943 if test \! -z "$libdir" ; then
19944 LDFLAGS="$LDFLAGS -L$libdir"
19946 # note: $X_LIBS includes $x_libraries
19947 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19949 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19950 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
19951 { $as_echo "$as_me:$LINENO: checking for jpeg_start_compress in -ljpeg" >&5
19952 $as_echo_n "checking for jpeg_start_compress in -ljpeg... " >&6; }
19953 if test "${ac_cv_lib_jpeg_jpeg_start_compress+set}" = set; then
19954 $as_echo_n "(cached) " >&6
19956 ac_check_lib_save_LIBS=$LIBS
19957 LIBS="-ljpeg $LIBS"
19958 cat >conftest.$ac_ext <<_ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h. */
19965 /* Override any GCC internal prototype to avoid an error.
19966 Use char because int might match the return type of a GCC
19967 builtin and then its argument prototype would still apply. */
19971 char jpeg_start_compress ();
19975 return jpeg_start_compress ();
19980 rm -rf conftest.$ac_objext conftest$ac_exeext
19981 if { (ac_try="$ac_link"
19982 case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19987 $as_echo "$ac_try_echo") >&5
19988 (eval "$ac_link") 2>conftest.er1
19990 grep -v '^ *+' conftest.er1 >conftest.err
19991 rm -rf conftest.er1
19992 cat conftest.err >&5
19993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } && {
19995 test -z "$ac_c_werror_flag" ||
19996 test ! -s conftest.err
19997 } && test -s conftest$ac_exeext && {
19998 test "$cross_compiling" = yes ||
19999 $as_test_x conftest$ac_exeext
20001 ac_cv_lib_jpeg_jpeg_start_compress=yes
20003 $as_echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20006 ac_cv_lib_jpeg_jpeg_start_compress=no
20009 rm -rf conftest.dSYM
20010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20011 conftest$ac_exeext conftest.$ac_ext
20012 LIBS=$ac_check_lib_save_LIBS
20014 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
20015 $as_echo "$ac_cv_lib_jpeg_jpeg_start_compress" >&6; }
20016 if test "x$ac_cv_lib_jpeg_jpeg_start_compress" = x""yes; then
20020 cat >>confdefs.h <<\_ACEOF
20021 #define HAVE_JPEGLIB 1
20026 CPPFLAGS="$ac_save_CPPFLAGS"
20027 LDFLAGS="$ac_save_LDFLAGS"
20028 # LIBS="$ac_save_LIBS"
20034 ###############################################################################
20036 # Check for pty support: this allows 'phosphor' and 'apple2'
20037 # to run curses-based programs, or be used as terminal windows.
20039 ###############################################################################
20044 for ac_header in pty.h util.h
20046 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20048 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20049 $as_echo_n "checking for $ac_header... " >&6; }
20050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20051 $as_echo_n "(cached) " >&6
20053 ac_res=`eval 'as_val=${'$as_ac_Header'}
20054 $as_echo "$as_val"'`
20055 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20056 $as_echo "$ac_res" >&6; }
20058 # Is the header compilable?
20059 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20060 $as_echo_n "checking $ac_header usability... " >&6; }
20061 cat >conftest.$ac_ext <<_ACEOF
20064 cat confdefs.h >>conftest.$ac_ext
20065 cat >>conftest.$ac_ext <<_ACEOF
20066 /* end confdefs.h. */
20067 $ac_includes_default
20068 #include <$ac_header>
20070 rm -rf conftest.$ac_objext
20071 if { (ac_try="$ac_compile"
20072 case "(($ac_try" in
20073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074 *) ac_try_echo=$ac_try;;
20076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20077 $as_echo "$ac_try_echo") >&5
20078 (eval "$ac_compile") 2>conftest.er1
20080 grep -v '^ *+' conftest.er1 >conftest.err
20081 rm -rf conftest.er1
20082 cat conftest.err >&5
20083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); } && {
20085 test -z "$ac_c_werror_flag" ||
20086 test ! -s conftest.err
20087 } && test -s conftest.$ac_objext; then
20088 ac_header_compiler=yes
20090 $as_echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20093 ac_header_compiler=no
20096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20097 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20098 $as_echo "$ac_header_compiler" >&6; }
20100 # Is the header present?
20101 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20102 $as_echo_n "checking $ac_header presence... " >&6; }
20103 cat >conftest.$ac_ext <<_ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20109 #include <$ac_header>
20111 if { (ac_try="$ac_cpp conftest.$ac_ext"
20112 case "(($ac_try" in
20113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20114 *) ac_try_echo=$ac_try;;
20116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20117 $as_echo "$ac_try_echo") >&5
20118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20120 grep -v '^ *+' conftest.er1 >conftest.err
20121 rm -rf conftest.er1
20122 cat conftest.err >&5
20123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } >/dev/null && {
20125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20126 test ! -s conftest.err
20128 ac_header_preproc=yes
20130 $as_echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20133 ac_header_preproc=no
20136 rm -rf conftest.err conftest.$ac_ext
20137 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20138 $as_echo "$ac_header_preproc" >&6; }
20140 # So? What about this header?
20141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20144 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20146 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20147 ac_header_preproc=yes
20150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20151 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20153 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20155 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20157 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20159 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20161 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20165 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20166 $as_echo_n "checking for $ac_header... " >&6; }
20167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20168 $as_echo_n "(cached) " >&6
20170 eval "$as_ac_Header=\$ac_header_preproc"
20172 ac_res=`eval 'as_val=${'$as_ac_Header'}
20173 $as_echo "$as_val"'`
20174 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20175 $as_echo "$ac_res" >&6; }
20178 as_val=`eval 'as_val=${'$as_ac_Header'}
20179 $as_echo "$as_val"'`
20180 if test "x$as_val" = x""yes; then
20181 cat >>confdefs.h <<_ACEOF
20182 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20190 ac_save_CPPFLAGS="$CPPFLAGS"
20191 ac_save_LDFLAGS="$LDFLAGS"
20192 # ac_save_LIBS="$LIBS"
20194 if test \! -z "$includedir" ; then
20195 CPPFLAGS="$CPPFLAGS -I$includedir"
20197 # note: $X_CFLAGS includes $x_includes
20198 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20200 if test \! -z "$libdir" ; then
20201 LDFLAGS="$LDFLAGS -L$libdir"
20203 # note: $X_LIBS includes $x_libraries
20204 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
20206 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
20207 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
20208 { $as_echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
20209 $as_echo_n "checking for forkpty in -lutil... " >&6; }
20210 if test "${ac_cv_lib_util_forkpty+set}" = set; then
20211 $as_echo_n "(cached) " >&6
20213 ac_check_lib_save_LIBS=$LIBS
20214 LIBS="-lutil $LIBS"
20215 cat >conftest.$ac_ext <<_ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h. */
20222 /* Override any GCC internal prototype to avoid an error.
20223 Use char because int might match the return type of a GCC
20224 builtin and then its argument prototype would still apply. */
20237 rm -rf conftest.$ac_objext conftest$ac_exeext
20238 if { (ac_try="$ac_link"
20239 case "(($ac_try" in
20240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241 *) ac_try_echo=$ac_try;;
20243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20244 $as_echo "$ac_try_echo") >&5
20245 (eval "$ac_link") 2>conftest.er1
20247 grep -v '^ *+' conftest.er1 >conftest.err
20248 rm -rf conftest.er1
20249 cat conftest.err >&5
20250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); } && {
20252 test -z "$ac_c_werror_flag" ||
20253 test ! -s conftest.err
20254 } && test -s conftest$ac_exeext && {
20255 test "$cross_compiling" = yes ||
20256 $as_test_x conftest$ac_exeext
20258 ac_cv_lib_util_forkpty=yes
20260 $as_echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20263 ac_cv_lib_util_forkpty=no
20266 rm -rf conftest.dSYM
20267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20268 conftest$ac_exeext conftest.$ac_ext
20269 LIBS=$ac_check_lib_save_LIBS
20271 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
20272 $as_echo "$ac_cv_lib_util_forkpty" >&6; }
20273 if test "x$ac_cv_lib_util_forkpty" = x""yes; then
20275 ac_have_forkpty=yes
20276 cat >>confdefs.h <<\_ACEOF
20277 #define HAVE_FORKPTY 1
20282 CPPFLAGS="$ac_save_CPPFLAGS"
20283 LDFLAGS="$ac_save_LDFLAGS"
20284 # LIBS="$ac_save_LIBS"
20287 if test "$ac_have_forkpty" != yes ; then
20288 # we don't need (or have) -lutil on MacOS 10.4.2...
20290 ac_save_CPPFLAGS="$CPPFLAGS"
20291 ac_save_LDFLAGS="$LDFLAGS"
20292 # ac_save_LIBS="$LIBS"
20294 if test \! -z "$includedir" ; then
20295 CPPFLAGS="$CPPFLAGS -I$includedir"
20297 # note: $X_CFLAGS includes $x_includes
20298 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20300 if test \! -z "$libdir" ; then
20301 LDFLAGS="$LDFLAGS -L$libdir"
20303 # note: $X_LIBS includes $x_libraries
20304 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
20306 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
20307 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
20308 { $as_echo "$as_me:$LINENO: checking for forkpty in -lc" >&5
20309 $as_echo_n "checking for forkpty in -lc... " >&6; }
20310 if test "${ac_cv_lib_c_forkpty+set}" = set; then
20311 $as_echo_n "(cached) " >&6
20313 ac_check_lib_save_LIBS=$LIBS
20315 cat >conftest.$ac_ext <<_ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20322 /* Override any GCC internal prototype to avoid an error.
20323 Use char because int might match the return type of a GCC
20324 builtin and then its argument prototype would still apply. */
20337 rm -rf conftest.$ac_objext conftest$ac_exeext
20338 if { (ac_try="$ac_link"
20339 case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20344 $as_echo "$ac_try_echo") >&5
20345 (eval "$ac_link") 2>conftest.er1
20347 grep -v '^ *+' conftest.er1 >conftest.err
20348 rm -rf conftest.er1
20349 cat conftest.err >&5
20350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); } && {
20352 test -z "$ac_c_werror_flag" ||
20353 test ! -s conftest.err
20354 } && test -s conftest$ac_exeext && {
20355 test "$cross_compiling" = yes ||
20356 $as_test_x conftest$ac_exeext
20358 ac_cv_lib_c_forkpty=yes
20360 $as_echo "$as_me: failed program was:" >&5
20361 sed 's/^/| /' conftest.$ac_ext >&5
20363 ac_cv_lib_c_forkpty=no
20366 rm -rf conftest.dSYM
20367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20368 conftest$ac_exeext conftest.$ac_ext
20369 LIBS=$ac_check_lib_save_LIBS
20371 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_forkpty" >&5
20372 $as_echo "$ac_cv_lib_c_forkpty" >&6; }
20373 if test "x$ac_cv_lib_c_forkpty" = x""yes; then
20375 cat >>confdefs.h <<\_ACEOF
20376 #define HAVE_FORKPTY 1
20381 CPPFLAGS="$ac_save_CPPFLAGS"
20382 LDFLAGS="$ac_save_LDFLAGS"
20383 # LIBS="$ac_save_LIBS"
20387 ###############################################################################
20389 # Check for the XSHM server extension.
20391 ###############################################################################
20394 with_xshm_req=unspecified
20396 # Check whether --with-xshm-ext was given.
20397 if test "${with_xshm_ext+set}" = set; then
20398 withval=$with_xshm_ext; with_xshm="$withval"; with_xshm_req="$withval"
20405 case "$with_xshm" in
20410 { $as_echo "$as_me:$LINENO: checking for XSHM headers" >&5
20411 $as_echo_n "checking for XSHM headers... " >&6; }
20412 d=$with_xshm/include
20413 if test -d $d; then
20414 X_CFLAGS="-I$d $X_CFLAGS"
20415 { $as_echo "$as_me:$LINENO: result: $d" >&5
20416 $as_echo "$d" >&6; }
20418 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20419 $as_echo "not found ($d: no such directory)" >&6; }
20422 { $as_echo "$as_me:$LINENO: checking for XSHM libs" >&5
20423 $as_echo_n "checking for XSHM libs... " >&6; }
20425 if test -d $d; then
20426 X_LIBS="-L$d $X_LIBS"
20427 { $as_echo "$as_me:$LINENO: result: $d" >&5
20428 $as_echo "$d" >&6; }
20430 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20431 $as_echo "not found ($d: no such directory)" >&6; }
20434 # replace the directory string with "yes".
20435 with_xshm_req="yes"
20436 with_xshm=$with_xshm_req
20441 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
20442 echo " If it is a directory, then \`DIR/include' will be added to"
20443 echo " the -I list, and \`DIR/lib' will be added to the -L list."
20449 if test "$with_xshm" = yes; then
20451 # first check for Xshm.h.
20453 ac_save_CPPFLAGS="$CPPFLAGS"
20454 if test \! -z "$includedir" ; then
20455 CPPFLAGS="$CPPFLAGS -I$includedir"
20457 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20458 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
20459 { $as_echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5
20460 $as_echo_n "checking for X11/extensions/XShm.h... " >&6; }
20461 if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
20462 $as_echo_n "(cached) " >&6
20464 cat >conftest.$ac_ext <<_ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h. */
20470 #include <X11/Xlib.h>
20472 #include <X11/extensions/XShm.h>
20474 rm -rf conftest.$ac_objext
20475 if { (ac_try="$ac_compile"
20476 case "(($ac_try" in
20477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478 *) ac_try_echo=$ac_try;;
20480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20481 $as_echo "$ac_try_echo") >&5
20482 (eval "$ac_compile") 2>conftest.er1
20484 grep -v '^ *+' conftest.er1 >conftest.err
20485 rm -rf conftest.er1
20486 cat conftest.err >&5
20487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } && {
20489 test -z "$ac_c_werror_flag" ||
20490 test ! -s conftest.err
20491 } && test -s conftest.$ac_objext; then
20492 ac_cv_header_X11_extensions_XShm_h=yes
20494 $as_echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20497 ac_cv_header_X11_extensions_XShm_h=no
20500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20502 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5
20503 $as_echo "$ac_cv_header_X11_extensions_XShm_h" >&6; }
20504 if test "x$ac_cv_header_X11_extensions_XShm_h" = x""yes; then
20509 CPPFLAGS="$ac_save_CPPFLAGS"
20511 # if that succeeded, then check for sys/ipc.h.
20512 if test "$have_xshm" = yes; then
20515 ac_save_CPPFLAGS="$CPPFLAGS"
20516 if test \! -z "$includedir" ; then
20517 CPPFLAGS="$CPPFLAGS -I$includedir"
20519 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20520 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
20521 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
20522 { $as_echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
20523 $as_echo_n "checking for sys/ipc.h... " >&6; }
20524 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
20525 $as_echo_n "(cached) " >&6
20527 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
20528 $as_echo "$ac_cv_header_sys_ipc_h" >&6; }
20530 # Is the header compilable?
20531 { $as_echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
20532 $as_echo_n "checking sys/ipc.h usability... " >&6; }
20533 cat >conftest.$ac_ext <<_ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h. */
20539 $ac_includes_default
20540 #include <sys/ipc.h>
20542 rm -rf conftest.$ac_objext
20543 if { (ac_try="$ac_compile"
20544 case "(($ac_try" in
20545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546 *) ac_try_echo=$ac_try;;
20548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20549 $as_echo "$ac_try_echo") >&5
20550 (eval "$ac_compile") 2>conftest.er1
20552 grep -v '^ *+' conftest.er1 >conftest.err
20553 rm -rf conftest.er1
20554 cat conftest.err >&5
20555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } && {
20557 test -z "$ac_c_werror_flag" ||
20558 test ! -s conftest.err
20559 } && test -s conftest.$ac_objext; then
20560 ac_header_compiler=yes
20562 $as_echo "$as_me: failed program was:" >&5
20563 sed 's/^/| /' conftest.$ac_ext >&5
20565 ac_header_compiler=no
20568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20569 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20570 $as_echo "$ac_header_compiler" >&6; }
20572 # Is the header present?
20573 { $as_echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
20574 $as_echo_n "checking sys/ipc.h presence... " >&6; }
20575 cat >conftest.$ac_ext <<_ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20581 #include <sys/ipc.h>
20583 if { (ac_try="$ac_cpp conftest.$ac_ext"
20584 case "(($ac_try" in
20585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20586 *) ac_try_echo=$ac_try;;
20588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20589 $as_echo "$ac_try_echo") >&5
20590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20592 grep -v '^ *+' conftest.er1 >conftest.err
20593 rm -rf conftest.er1
20594 cat conftest.err >&5
20595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); } >/dev/null && {
20597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20598 test ! -s conftest.err
20600 ac_header_preproc=yes
20602 $as_echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.$ac_ext >&5
20605 ac_header_preproc=no
20608 rm -rf conftest.err conftest.$ac_ext
20609 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20610 $as_echo "$ac_header_preproc" >&6; }
20612 # So? What about this header?
20613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20615 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
20616 $as_echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20617 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the compiler's result" >&5
20618 $as_echo "$as_me: WARNING: sys/ipc.h: proceeding with the compiler's result" >&2;}
20619 ac_header_preproc=yes
20622 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
20623 $as_echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
20624 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
20625 $as_echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
20626 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: see the Autoconf documentation" >&5
20627 $as_echo "$as_me: WARNING: sys/ipc.h: see the Autoconf documentation" >&2;}
20628 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&5
20629 $as_echo "$as_me: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&2;}
20630 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
20631 $as_echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
20632 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&5
20633 $as_echo "$as_me: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&2;}
20637 { $as_echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
20638 $as_echo_n "checking for sys/ipc.h... " >&6; }
20639 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
20640 $as_echo_n "(cached) " >&6
20642 ac_cv_header_sys_ipc_h=$ac_header_preproc
20644 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
20645 $as_echo "$ac_cv_header_sys_ipc_h" >&6; }
20648 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then
20653 CPPFLAGS="$ac_save_CPPFLAGS"
20656 # if that succeeded, then check for sys/shm.h.
20657 if test "$have_xshm" = yes; then
20660 ac_save_CPPFLAGS="$CPPFLAGS"
20661 if test \! -z "$includedir" ; then
20662 CPPFLAGS="$CPPFLAGS -I$includedir"
20664 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20665 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
20666 if test "${ac_cv_header_sys_shm_h+set}" = set; then
20667 { $as_echo "$as_me:$LINENO: checking for sys/shm.h" >&5
20668 $as_echo_n "checking for sys/shm.h... " >&6; }
20669 if test "${ac_cv_header_sys_shm_h+set}" = set; then
20670 $as_echo_n "(cached) " >&6
20672 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
20673 $as_echo "$ac_cv_header_sys_shm_h" >&6; }
20675 # Is the header compilable?
20676 { $as_echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
20677 $as_echo_n "checking sys/shm.h usability... " >&6; }
20678 cat >conftest.$ac_ext <<_ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20684 $ac_includes_default
20685 #include <sys/shm.h>
20687 rm -rf conftest.$ac_objext
20688 if { (ac_try="$ac_compile"
20689 case "(($ac_try" in
20690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20691 *) ac_try_echo=$ac_try;;
20693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20694 $as_echo "$ac_try_echo") >&5
20695 (eval "$ac_compile") 2>conftest.er1
20697 grep -v '^ *+' conftest.er1 >conftest.err
20698 rm -rf conftest.er1
20699 cat conftest.err >&5
20700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } && {
20702 test -z "$ac_c_werror_flag" ||
20703 test ! -s conftest.err
20704 } && test -s conftest.$ac_objext; then
20705 ac_header_compiler=yes
20707 $as_echo "$as_me: failed program was:" >&5
20708 sed 's/^/| /' conftest.$ac_ext >&5
20710 ac_header_compiler=no
20713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20714 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20715 $as_echo "$ac_header_compiler" >&6; }
20717 # Is the header present?
20718 { $as_echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
20719 $as_echo_n "checking sys/shm.h presence... " >&6; }
20720 cat >conftest.$ac_ext <<_ACEOF
20723 cat confdefs.h >>conftest.$ac_ext
20724 cat >>conftest.$ac_ext <<_ACEOF
20725 /* end confdefs.h. */
20726 #include <sys/shm.h>
20728 if { (ac_try="$ac_cpp conftest.$ac_ext"
20729 case "(($ac_try" in
20730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20731 *) ac_try_echo=$ac_try;;
20733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20734 $as_echo "$ac_try_echo") >&5
20735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20737 grep -v '^ *+' conftest.er1 >conftest.err
20738 rm -rf conftest.er1
20739 cat conftest.err >&5
20740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); } >/dev/null && {
20742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20743 test ! -s conftest.err
20745 ac_header_preproc=yes
20747 $as_echo "$as_me: failed program was:" >&5
20748 sed 's/^/| /' conftest.$ac_ext >&5
20750 ac_header_preproc=no
20753 rm -rf conftest.err conftest.$ac_ext
20754 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20755 $as_echo "$ac_header_preproc" >&6; }
20757 # So? What about this header?
20758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20760 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
20761 $as_echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20762 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the compiler's result" >&5
20763 $as_echo "$as_me: WARNING: sys/shm.h: proceeding with the compiler's result" >&2;}
20764 ac_header_preproc=yes
20767 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
20768 $as_echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
20769 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
20770 $as_echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
20771 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: see the Autoconf documentation" >&5
20772 $as_echo "$as_me: WARNING: sys/shm.h: see the Autoconf documentation" >&2;}
20773 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&5
20774 $as_echo "$as_me: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&2;}
20775 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
20776 $as_echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
20777 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&5
20778 $as_echo "$as_me: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&2;}
20782 { $as_echo "$as_me:$LINENO: checking for sys/shm.h" >&5
20783 $as_echo_n "checking for sys/shm.h... " >&6; }
20784 if test "${ac_cv_header_sys_shm_h+set}" = set; then
20785 $as_echo_n "(cached) " >&6
20787 ac_cv_header_sys_shm_h=$ac_header_preproc
20789 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
20790 $as_echo "$ac_cv_header_sys_shm_h" >&6; }
20793 if test "x$ac_cv_header_sys_shm_h" = x""yes; then
20798 CPPFLAGS="$ac_save_CPPFLAGS"
20801 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
20802 # to exist, but the library code to not exist. And even better, the library
20803 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
20804 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
20805 # that's not quite right, but close enough.)
20809 if `uname -v` -eq 3 ; then
20812 ac_save_CPPFLAGS="$CPPFLAGS"
20813 ac_save_LDFLAGS="$LDFLAGS"
20814 # ac_save_LIBS="$LIBS"
20816 if test \! -z "$includedir" ; then
20817 CPPFLAGS="$CPPFLAGS -I$includedir"
20819 # note: $X_CFLAGS includes $x_includes
20820 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20822 if test \! -z "$libdir" ; then
20823 LDFLAGS="$LDFLAGS -L$libdir"
20825 # note: $X_LIBS includes $x_libraries
20826 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
20828 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
20829 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
20830 { $as_echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXextSam" >&5
20831 $as_echo_n "checking for XShmQueryExtension in -lXextSam... " >&6; }
20832 if test "${ac_cv_lib_XextSam_XShmQueryExtension+set}" = set; then
20833 $as_echo_n "(cached) " >&6
20835 ac_check_lib_save_LIBS=$LIBS
20836 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
20837 cat >conftest.$ac_ext <<_ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h. */
20844 /* Override any GCC internal prototype to avoid an error.
20845 Use char because int might match the return type of a GCC
20846 builtin and then its argument prototype would still apply. */
20850 char XShmQueryExtension ();
20854 return XShmQueryExtension ();
20859 rm -rf conftest.$ac_objext conftest$ac_exeext
20860 if { (ac_try="$ac_link"
20861 case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20866 $as_echo "$ac_try_echo") >&5
20867 (eval "$ac_link") 2>conftest.er1
20869 grep -v '^ *+' conftest.er1 >conftest.err
20870 rm -rf conftest.er1
20871 cat conftest.err >&5
20872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); } && {
20874 test -z "$ac_c_werror_flag" ||
20875 test ! -s conftest.err
20876 } && test -s conftest$ac_exeext && {
20877 test "$cross_compiling" = yes ||
20878 $as_test_x conftest$ac_exeext
20880 ac_cv_lib_XextSam_XShmQueryExtension=yes
20882 $as_echo "$as_me: failed program was:" >&5
20883 sed 's/^/| /' conftest.$ac_ext >&5
20885 ac_cv_lib_XextSam_XShmQueryExtension=no
20888 rm -rf conftest.dSYM
20889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20890 conftest$ac_exeext conftest.$ac_ext
20891 LIBS=$ac_check_lib_save_LIBS
20893 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_XextSam_XShmQueryExtension" >&5
20894 $as_echo "$ac_cv_lib_XextSam_XShmQueryExtension" >&6; }
20895 if test "x$ac_cv_lib_XextSam_XShmQueryExtension" = x""yes; then
20896 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
20901 CPPFLAGS="$ac_save_CPPFLAGS"
20902 LDFLAGS="$ac_save_LDFLAGS"
20903 # LIBS="$ac_save_LIBS"
20909 # if that succeeded, then we've really got it.
20910 if test "$have_xshm" = yes; then
20911 cat >>confdefs.h <<\_ACEOF
20912 #define HAVE_XSHM_EXTENSION 1
20917 elif test "$with_xshm" != no; then
20918 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
20923 ###############################################################################
20925 # Check for the DOUBLE-BUFFER server extension.
20927 ###############################################################################
20930 with_xdbe_req=unspecified
20932 # Check whether --with-xdbe-ext was given.
20933 if test "${with_xdbe_ext+set}" = set; then
20934 withval=$with_xdbe_ext; with_xdbe="$withval"; with_xdbe_req="$withval"
20941 case "$with_xdbe" in
20946 { $as_echo "$as_me:$LINENO: checking for DOUBLE-BUFFER headers" >&5
20947 $as_echo_n "checking for DOUBLE-BUFFER headers... " >&6; }
20948 d=$with_xdbe/include
20949 if test -d $d; then
20950 X_CFLAGS="-I$d $X_CFLAGS"
20951 { $as_echo "$as_me:$LINENO: result: $d" >&5
20952 $as_echo "$d" >&6; }
20954 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20955 $as_echo "not found ($d: no such directory)" >&6; }
20958 { $as_echo "$as_me:$LINENO: checking for DOUBLE-BUFFER libs" >&5
20959 $as_echo_n "checking for DOUBLE-BUFFER libs... " >&6; }
20961 if test -d $d; then
20962 X_LIBS="-L$d $X_LIBS"
20963 { $as_echo "$as_me:$LINENO: result: $d" >&5
20964 $as_echo "$d" >&6; }
20966 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20967 $as_echo "not found ($d: no such directory)" >&6; }
20970 # replace the directory string with "yes".
20971 with_xdbe_req="yes"
20972 with_xdbe=$with_xdbe_req
20977 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
20978 echo " If it is a directory, then \`DIR/include' will be added to"
20979 echo " the -I list, and \`DIR/lib' will be added to the -L list."
20985 if test "$with_xdbe" = yes; then
20988 ac_save_CPPFLAGS="$CPPFLAGS"
20989 if test \! -z "$includedir" ; then
20990 CPPFLAGS="$CPPFLAGS -I$includedir"
20992 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20993 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
20994 { $as_echo "$as_me:$LINENO: checking for X11/extensions/Xdbe.h" >&5
20995 $as_echo_n "checking for X11/extensions/Xdbe.h... " >&6; }
20996 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
20997 $as_echo_n "(cached) " >&6
20999 cat >conftest.$ac_ext <<_ACEOF
21002 cat confdefs.h >>conftest.$ac_ext
21003 cat >>conftest.$ac_ext <<_ACEOF
21004 /* end confdefs.h. */
21005 #include <X11/Xlib.h>
21007 #include <X11/extensions/Xdbe.h>
21009 rm -rf conftest.$ac_objext
21010 if { (ac_try="$ac_compile"
21011 case "(($ac_try" in
21012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013 *) ac_try_echo=$ac_try;;
21015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21016 $as_echo "$ac_try_echo") >&5
21017 (eval "$ac_compile") 2>conftest.er1
21019 grep -v '^ *+' conftest.er1 >conftest.err
21020 rm -rf conftest.er1
21021 cat conftest.err >&5
21022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); } && {
21024 test -z "$ac_c_werror_flag" ||
21025 test ! -s conftest.err
21026 } && test -s conftest.$ac_objext; then
21027 ac_cv_header_X11_extensions_Xdbe_h=yes
21029 $as_echo "$as_me: failed program was:" >&5
21030 sed 's/^/| /' conftest.$ac_ext >&5
21032 ac_cv_header_X11_extensions_Xdbe_h=no
21035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21037 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
21038 $as_echo "$ac_cv_header_X11_extensions_Xdbe_h" >&6; }
21039 if test "x$ac_cv_header_X11_extensions_Xdbe_h" = x""yes; then
21044 CPPFLAGS="$ac_save_CPPFLAGS"
21045 if test "$have_xdbe" = yes; then
21046 cat >>confdefs.h <<\_ACEOF
21047 #define HAVE_DOUBLE_BUFFER_EXTENSION 1
21052 elif test "$with_xdbe" != no; then
21053 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
21058 ###############################################################################
21060 # Check for the SGI XReadDisplay server extension.
21062 # Note: this has to be down here, rather than up with the other server
21063 # extension tests, so that the output of `configure --help' is in the
21064 # right order. Arrgh!
21066 ###############################################################################
21068 have_readdisplay=no
21069 with_readdisplay_req=unspecified
21071 # Check whether --with-readdisplay was given.
21072 if test "${with_readdisplay+set}" = set; then
21073 withval=$with_readdisplay; with_readdisplay="$withval"; with_readdisplay_req="$withval"
21075 with_readdisplay=yes
21080 case "$with_readdisplay" in
21085 { $as_echo "$as_me:$LINENO: checking for XReadDisplay headers" >&5
21086 $as_echo_n "checking for XReadDisplay headers... " >&6; }
21087 d=$with_readdisplay/include
21088 if test -d $d; then
21089 X_CFLAGS="-I$d $X_CFLAGS"
21090 { $as_echo "$as_me:$LINENO: result: $d" >&5
21091 $as_echo "$d" >&6; }
21093 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
21094 $as_echo "not found ($d: no such directory)" >&6; }
21097 { $as_echo "$as_me:$LINENO: checking for XReadDisplay libs" >&5
21098 $as_echo_n "checking for XReadDisplay libs... " >&6; }
21099 d=$with_readdisplay/lib
21100 if test -d $d; then
21101 X_LIBS="-L$d $X_LIBS"
21102 { $as_echo "$as_me:$LINENO: result: $d" >&5
21103 $as_echo "$d" >&6; }
21105 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
21106 $as_echo "not found ($d: no such directory)" >&6; }
21109 # replace the directory string with "yes".
21110 with_readdisplay_req="yes"
21111 with_readdisplay=$with_readdisplay_req
21116 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
21117 echo " If it is a directory, then \`DIR/include' will be added to"
21118 echo " the -I list, and \`DIR/lib' will be added to the -L list."
21124 if test "$with_readdisplay" = yes; then
21126 ac_save_CPPFLAGS="$CPPFLAGS"
21127 if test \! -z "$includedir" ; then
21128 CPPFLAGS="$CPPFLAGS -I$includedir"
21130 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
21131 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
21132 { $as_echo "$as_me:$LINENO: checking for X11/extensions/readdisplay.h" >&5
21133 $as_echo_n "checking for X11/extensions/readdisplay.h... " >&6; }
21134 if test "${ac_cv_header_X11_extensions_readdisplay_h+set}" = set; then
21135 $as_echo_n "(cached) " >&6
21137 cat >conftest.$ac_ext <<_ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h. */
21143 #include <X11/Xlib.h>
21145 #include <X11/extensions/readdisplay.h>
21147 rm -rf conftest.$ac_objext
21148 if { (ac_try="$ac_compile"
21149 case "(($ac_try" in
21150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151 *) ac_try_echo=$ac_try;;
21153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21154 $as_echo "$ac_try_echo") >&5
21155 (eval "$ac_compile") 2>conftest.er1
21157 grep -v '^ *+' conftest.er1 >conftest.err
21158 rm -rf conftest.er1
21159 cat conftest.err >&5
21160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); } && {
21162 test -z "$ac_c_werror_flag" ||
21163 test ! -s conftest.err
21164 } && test -s conftest.$ac_objext; then
21165 ac_cv_header_X11_extensions_readdisplay_h=yes
21167 $as_echo "$as_me: failed program was:" >&5
21168 sed 's/^/| /' conftest.$ac_ext >&5
21170 ac_cv_header_X11_extensions_readdisplay_h=no
21173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21175 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_readdisplay_h" >&5
21176 $as_echo "$ac_cv_header_X11_extensions_readdisplay_h" >&6; }
21177 if test "x$ac_cv_header_X11_extensions_readdisplay_h" = x""yes; then
21178 cat >>confdefs.h <<\_ACEOF
21179 #define HAVE_READ_DISPLAY_EXTENSION 1
21185 CPPFLAGS="$ac_save_CPPFLAGS"
21186 elif test "$with_readdisplay" != no; then
21187 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
21192 ###############################################################################
21194 # Check for a directory full of images to use as the default value
21195 # of the "imageDirectory" preference.
21197 ###############################################################################
21200 with_imagedir_req=unspecified
21203 # Check whether --with-image-directory was given.
21204 if test "${with_image_directory+set}" = set; then
21205 withval=$with_image_directory; with_imagedir="$withval"; with_imagedir_req="$withval"
21210 # no HANDLE_X_PATH_ARG for this one
21212 case "$with_imagedir" in
21215 { $as_echo "$as_me:$LINENO: checking for image directory $with_imagedir" >&5
21216 $as_echo_n "checking for image directory $with_imagedir... " >&6; }
21217 if test -d "$with_imagedir" ; then
21218 { $as_echo "$as_me:$LINENO: result: yes" >&5
21219 $as_echo "yes" >&6; }
21221 { $as_echo "$as_me:$LINENO: result: no" >&5
21222 $as_echo "no" >&6; }
21229 #### Could use some more defaults here...
21231 "/usr/share/backgrounds/images/" \
21232 "/usr/share/wallpapers/" \
21233 "/Library/Desktop Pictures/" \
21235 if test -z "$with_imagedir"; then
21236 { $as_echo "$as_me:$LINENO: checking for image directory $dd" >&5
21237 $as_echo_n "checking for image directory $dd... " >&6; }
21238 if test -d "$dd" ; then
21239 { $as_echo "$as_me:$LINENO: result: yes" >&5
21240 $as_echo "yes" >&6; }
21241 with_imagedir="$dd"
21243 { $as_echo "$as_me:$LINENO: result: no" >&5
21244 $as_echo "no" >&6; }
21255 echo "error: must be an absolute path: --with-image-directory=$with_imagedir_req"
21259 ac_cv_imagedir="$with_imagedir"
21261 DEFAULT_IMAGES_P='True'
21262 DEFAULT_IMAGE_DIRECTORY="$ac_cv_imagedir"
21264 if test -z "$DEFAULT_IMAGE_DIRECTORY" ; then
21265 DEFAULT_IMAGES_P='False'
21269 ###############################################################################
21271 # Pick a text file to use as the default of the "textFile" preference.
21272 # Any old file will do, but preferably one that will make interesting
21273 # shapes when displayed by "starwars" and "fontglide".
21275 ###############################################################################
21278 with_textfile_req=unspecified
21281 # Check whether --with-text-file was given.
21282 if test "${with_text_file+set}" = set; then
21283 withval=$with_text_file; with_textfile="$withval"; with_textfile_req="$withval"
21288 # no HANDLE_X_PATH_ARG for this one
21290 case "$with_textfile" in
21293 { $as_echo "$as_me:$LINENO: checking for text file $with_textfile" >&5
21294 $as_echo_n "checking for text file $with_textfile... " >&6; }
21295 if test -f "$with_textfile" ; then
21296 { $as_echo "$as_me:$LINENO: result: yes" >&5
21297 $as_echo "yes" >&6; }
21299 { $as_echo "$as_me:$LINENO: result: no" >&5
21300 $as_echo "no" >&6; }
21307 #### Could use some more defaults here...
21309 "/usr/X11R6/lib/X11/doc/README" \
21310 "/usr/share/doc/xserver-common/copyright" \
21311 "/usr/share/doc/xserver-xorg-core/copyright" \
21312 "/usr/X11R6/README" \
21313 "/usr/share/doc/libX11*/COPYING" \
21314 "/usr/X11/share/X11/doc/README*" \
21315 "/usr/share/doc/debian/debian-manifesto" \
21317 if test -z "$with_textfile"; then
21318 { $as_echo "$as_me:$LINENO: checking for text file $f" >&5
21319 $as_echo_n "checking for text file $f... " >&6; }
21320 f=`/bin/ls $f 2>&- | head -1`
21321 if test -f "$f" ; then
21322 { $as_echo "$as_me:$LINENO: result: yes" >&5
21323 $as_echo "yes" >&6; }
21326 { $as_echo "$as_me:$LINENO: result: no" >&5
21327 $as_echo "no" >&6; }
21338 echo "error: must be an absolute path: --with-text-file=$with_textfile_req"
21342 ac_cv_textfile="$with_textfile"
21344 DEFAULT_TEXT_FILE="$ac_cv_textfile"
21347 ###############################################################################
21349 # Check the browser to see help URL
21351 ###############################################################################
21354 with_browser_req=unspecified
21357 # Check whether --with-browser was given.
21358 if test "${with_browser+set}" = set; then
21359 withval=$with_browser; with_browser="$withval"; with_browser_req="$withval"
21364 # no HANDLE_X_PATH_ARG for this one
21366 case "$with_browser" in
21370 WITH_BROWSER=$with_browser
21371 gnome_open_program=$with_browser
21372 { $as_echo "$as_me:$LINENO: checking for browser $with_browser" >&5
21373 $as_echo_n "checking for browser $with_browser... " >&6; }
21374 with_browser_fullpath=`which $with_browser 2>/dev/null`
21375 case $with_browser_fullpath in
21377 { $as_echo "$as_me:$LINENO: result: yes" >&5
21378 $as_echo "yes" >&6; }
21382 { $as_echo "$as_me:$LINENO: result: no" >&5
21383 $as_echo "no" >&6; }
21384 # Only warning: we don't want to install all packages for the
21385 # dependency of the browser in building stage...
21386 echo "WARNING: browser not found: --with-browser=$with_browser"
21391 ac_cv_browser="$with_browser"
21393 ###############################################################################
21395 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
21396 # This should be safe, but let's give people the option.
21398 ###############################################################################
21400 setuid_hacks_default=no
21401 setuid_hacks="$setuid_hacks_default"
21403 # Check whether --with-setuid-hacks was given.
21404 if test "${with_setuid_hacks+set}" = set; then
21405 withval=$with_setuid_hacks; setuid_hacks="$withval"
21407 setuid_hacks="$setuid_hacks_default"
21412 case "$setuid_hacks" in
21417 { $as_echo "$as_me:$LINENO: checking for setuid hacks headers" >&5
21418 $as_echo_n "checking for setuid hacks headers... " >&6; }
21419 d=$setuid_hacks/include
21420 if test -d $d; then
21421 X_CFLAGS="-I$d $X_CFLAGS"
21422 { $as_echo "$as_me:$LINENO: result: $d" >&5
21423 $as_echo "$d" >&6; }
21425 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
21426 $as_echo "not found ($d: no such directory)" >&6; }
21429 { $as_echo "$as_me:$LINENO: checking for setuid hacks libs" >&5
21430 $as_echo_n "checking for setuid hacks libs... " >&6; }
21431 d=$setuid_hacks/lib
21432 if test -d $d; then
21433 X_LIBS="-L$d $X_LIBS"
21434 { $as_echo "$as_me:$LINENO: result: $d" >&5
21435 $as_echo "$d" >&6; }
21437 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
21438 $as_echo "not found ($d: no such directory)" >&6; }
21441 # replace the directory string with "yes".
21442 setuid_hacks_req="yes"
21443 setuid_hacks=$setuid_hacks_req
21448 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
21449 echo " If it is a directory, then \`DIR/include' will be added to"
21450 echo " the -I list, and \`DIR/lib' will be added to the -L list."
21456 if test "$setuid_hacks" = yes; then
21458 elif test "$setuid_hacks" != no; then
21459 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
21464 ###############################################################################
21466 # Done testing. Now, set up the various -I and -L variables,
21467 # and decide which GUI program to build by default.
21469 ###############################################################################
21476 if test \! -z "$includedir" ; then
21477 INCLUDES="$INCLUDES -I$includedir"
21480 if test \! -z "$libdir" ; then
21481 LDFLAGS="$LDFLAGS -L$libdir"
21485 PREFERRED_DEMO_PROGRAM=''
21487 if test "$have_motif" = yes; then
21488 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
21489 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
21491 if test "$have_gtk" = yes; then
21492 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
21493 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
21497 if test "$have_kerberos" = yes; then
21498 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
21499 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
21501 if test "$have_pam" = yes; then
21502 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
21503 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
21504 INSTALL_PAM="install-pam"
21506 if test "$enable_pam_check_account_type" = yes; then
21507 COMMENT_PAM_CHECK_ACCOUNT=""
21509 COMMENT_PAM_CHECK_ACCOUNT="#"
21511 if test "$have_passwd_helper" = yes; then
21512 PASSWD_SRCS="$PASSWD_SRCS \$(PWHELPER_SRCS)"
21513 PASSWD_OBJS="$PASSWD_OBJS \$(PWHELPER_OBJS)"
21515 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
21516 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
21519 if test "$enable_locking" = yes; then
21520 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
21521 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
21523 LOCK_SRCS='$(NOLOCK_SRCS_1)'
21524 LOCK_OBJS='$(NOLOCK_OBJS_1)'
21527 if test "$ac_macosx" = yes; then
21528 EXES_OSX='$(EXES_OSX)'
21529 SCRIPTS_OSX='$(SCRIPTS_OSX)'
21530 MEN_OSX='$(MEN_OSX)'
21538 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
21540 if test "$need_setuid" = yes; then
21546 if test "$setuid_hacks" = yes; then
21553 if test "$have_gl" = yes; then
21554 GL_EXES='$(GL_EXES)'
21555 SUID_EXES='$(SUID_EXES)'
21556 RETIRED_GL_EXES='$(RETIRED_GL_EXES)'
21557 GL_UTIL_EXES='$(GL_UTIL_EXES)'
21564 if test "$have_gle" = yes; then
21565 GLE_EXES='$(GLE_EXES)'
21571 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
21572 JPEG_EXES='$(JPEG_EXES)'
21576 # Another substitution in the XScreenSaver.ad.in file:
21578 if test "$gnome_open_program" != ''; then
21582 elif test "$gnome_url_show_program" != ''; then
21593 # Set PO_DATADIR to something sensible.
21595 { $as_echo "$as_me:$LINENO: checking for locale directory" >&5
21596 $as_echo_n "checking for locale directory... " >&6; }
21597 if test -n "$GTK_DATADIR" ; then
21598 PO_DATADIR="$GTK_DATADIR"
21599 elif test "$have_gtk" = yes; then
21600 PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
21601 PO_DATADIR="$PO_DATADIR/share"
21604 if test -z "$PO_DATADIR" ; then
21606 # #### Total fucking kludge --
21607 # Map /build/prefix/usr/X11R6/share/ to /build/prefix/usr/share/
21608 # but of course we need to expand all the nested variables to do that...
21610 dd=`eval eval eval eval eval eval eval eval eval eval eval echo $datadir`
21611 PO_DATADIR=`echo $dd | sed 's@/X11R6/@/@'`
21614 { $as_echo "$as_me:$LINENO: result: $PO_DATADIR/locale" >&5
21615 $as_echo "$PO_DATADIR/locale" >&6; }
21618 # canonicalize slashes.
21619 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
21621 # gcc 3.0 likes to issue this warning for every file:
21623 # cc1: warning: changing search order for system directory "/usr/local/include"
21624 # cc1: warning: as it has already been specified as a non-system directory
21626 # Yay. We can only avoid that by deleting "-I${prefix}/include" from the list.
21627 # Which *should* be totally redundant, and thus an ok thing to delete?
21629 INCLUDES=`echo "$INCLUDES" | sed 's@ -I${prefix}/include@@g;'`
21632 ###############################################################################
21634 # Perform substitutions and write Makefiles.
21636 ###############################################################################
21706 APPDEFAULTS=$ac_x_app_defaults
21714 ac_config_files="$ac_config_files Makefile utils/Makefile driver/Makefile driver/xscreensaver.pam hacks/Makefile hacks/glx/Makefile po/Makefile.in driver/XScreenSaver.ad"
21716 cat >confcache <<\_ACEOF
21717 # This file is a shell script that caches the results of configure
21718 # tests run on this system so they can be shared between configure
21719 # scripts and configure runs, see configure's option --config-cache.
21720 # It is not useful on other systems. If it contains results you don't
21721 # want to keep, you may remove or edit it.
21723 # config.status only pays attention to the cache file if you give it
21724 # the --recheck option to rerun configure.
21726 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21727 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21728 # following values.
21732 # The following way of writing the cache mishandles newlines in values,
21733 # but we know of no workaround that is simple, portable, and efficient.
21734 # So, we kill variables containing newlines.
21735 # Ultrix sh set writes to stderr and can't be redirected directly,
21736 # and sets the high bit in the cache file unless we assign to the vars.
21738 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21739 eval ac_val=\$$ac_var
21743 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21744 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21747 _ | IFS | as_nl) ;; #(
21748 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21749 *) $as_unset $ac_var ;;
21755 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21756 *${as_nl}ac_space=\ *)
21757 # `set' does not quote correctly, so add quotes (double-quote
21758 # substitution turns \\\\ into \\, and sed turns \\ into \).
21761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21764 # `set' quotes correctly as required by POSIX, so do not add quotes.
21765 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21774 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21776 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21778 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21779 if test -w "$cache_file"; then
21780 test "x$cache_file" != "x/dev/null" &&
21781 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21782 $as_echo "$as_me: updating cache $cache_file" >&6;}
21783 cat confcache >$cache_file
21785 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21786 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21791 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21792 # Let make expand exec_prefix.
21793 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21795 DEFS=-DHAVE_CONFIG_H
21799 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21800 # 1. Remove the extension, and $U if already installed.
21801 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21802 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21803 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21804 # will be set to the directory where LIBOBJS objects are built.
21805 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21806 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21808 LIBOBJS=$ac_libobjs
21810 LTLIBOBJS=$ac_ltlibobjs
21815 mv -f po/POTFILES po/POTFILES.tmp
21816 sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
21817 rm -f po/POTFILES.tmp
21821 : ${CONFIG_STATUS=./config.status}
21823 ac_clean_files_save=$ac_clean_files
21824 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21825 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21826 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21827 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21829 # Generated by $as_me.
21830 # Run this file to recreate the current configuration.
21831 # Compiler output produced by configure, useful for debugging
21832 # configure, is in config.log if it exists.
21835 ac_cs_recheck=false
21837 SHELL=\${CONFIG_SHELL-$SHELL}
21840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21841 ## --------------------- ##
21842 ## M4sh Initialization. ##
21843 ## --------------------- ##
21845 # Be more Bourne compatible
21846 DUALCASE=1; export DUALCASE # for MKS sh
21847 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21850 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21851 # is contrary to our usage. Disable this feature.
21852 alias -g '${1+"$@"}'='"$@"'
21853 setopt NO_GLOB_SUBST
21855 case `(set -o) 2>/dev/null` in
21856 *posix*) set -o posix ;;
21865 # Avoid depending upon Character Ranges.
21866 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21867 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21868 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21869 as_cr_digits='0123456789'
21870 as_cr_alnum=$as_cr_Letters$as_cr_digits
21875 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21876 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21877 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21878 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21879 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21880 as_echo='printf %s\n'
21881 as_echo_n='printf %s'
21883 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21884 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21885 as_echo_n='/usr/ucb/echo -n'
21887 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21888 as_echo_n_body='eval
21892 expr "X$arg" : "X\\(.*\\)$as_nl";
21893 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21895 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21897 export as_echo_n_body
21898 as_echo_n='sh -c $as_echo_n_body as_echo'
21900 export as_echo_body
21901 as_echo='sh -c $as_echo_body as_echo'
21904 # The user is always right.
21905 if test "${PATH_SEPARATOR+set}" != set; then
21907 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21908 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21913 # Support unset when possible.
21914 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21922 # We need space, tab and new line, in precisely that order. Quoting is
21923 # there to prevent editors from complaining about space-tab.
21924 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21925 # splitting by setting IFS to empty value.)
21928 # Find who we are. Look in the path if we contain no directory separator.
21930 *[\\/]* ) as_myself=$0 ;;
21931 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21932 for as_dir in $PATH
21935 test -z "$as_dir" && as_dir=.
21936 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21942 # We did not find ourselves, most probably we were run as `sh COMMAND'
21943 # in which case we are not to be found in the path.
21944 if test "x$as_myself" = x; then
21947 if test ! -f "$as_myself"; then
21948 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21949 { (exit 1); exit 1; }
21952 # Work around bugs in pre-3.0 UWIN ksh.
21953 for as_var in ENV MAIL MAILPATH
21954 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21966 # Required to use basename.
21967 if expr a : '\(a\)' >/dev/null 2>&1 &&
21968 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21974 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21975 as_basename=basename
21981 # Name of the executable.
21982 as_me=`$as_basename -- "$0" ||
21983 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21984 X"$0" : 'X\(//\)$' \| \
21985 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21987 sed '/^.*\/\([^/][^/]*\)\/*$/{
22006 as_lineno_1=$LINENO
22007 as_lineno_2=$LINENO
22008 test "x$as_lineno_1" != "x$as_lineno_2" &&
22009 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22011 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22012 # uniformly replaced by the line number. The first 'sed' inserts a
22013 # line-number line after each line using $LINENO; the second 'sed'
22014 # does the real work. The second script uses 'N' to pair each
22015 # line-number line with the line containing $LINENO, and appends
22016 # trailing '-' during substitution so that $LINENO is not a special
22017 # case at line end.
22018 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22019 # scripts with optimization help from Paolo Bonzini. Blame Lee
22020 # E. McMahon (1931-1989) for sed's syntax. :-)
22032 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22035 ' >$as_me.lineno &&
22036 chmod +x "$as_me.lineno" ||
22037 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22038 { (exit 1); exit 1; }; }
22040 # Don't try to exec as it changes $[0], causing all sort of problems
22041 # (the dirname of $[0] is not the place where we might find the
22042 # original and so on. Autoconf is especially sensitive to this).
22043 . "./$as_me.lineno"
22044 # Exit status is that of the last command.
22049 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22055 ECHO_C= ECHO_N= ECHO_T=
22056 case `echo -n x` in
22058 case `echo 'x\c'` in
22059 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22065 if expr a : '\(a\)' >/dev/null 2>&1 &&
22066 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22072 rm -f conf$$ conf$$.exe conf$$.file
22073 if test -d conf$$.dir; then
22074 rm -f conf$$.dir/conf$$.file
22077 mkdir conf$$.dir 2>/dev/null
22079 if (echo >conf$$.file) 2>/dev/null; then
22080 if ln -s conf$$.file conf$$ 2>/dev/null; then
22082 # ... but there are two gotchas:
22083 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22084 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22085 # In both cases, we have to default to `cp -p'.
22086 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22088 elif ln conf$$.file conf$$ 2>/dev/null; then
22096 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22097 rmdir conf$$.dir 2>/dev/null
22099 if mkdir -p . 2>/dev/null; then
22102 test -d ./-p && rmdir ./-p
22106 if test -x / >/dev/null 2>&1; then
22107 as_test_x='test -x'
22109 if ls -dL / >/dev/null 2>&1; then
22116 if test -d "$1"; then
22122 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22123 ???[sx]*):;;*)false;;esac;fi
22127 as_executable_p=$as_test_x
22129 # Sed expression to map a string onto a valid CPP name.
22130 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22132 # Sed expression to map a string onto a valid variable name.
22133 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22138 # Save the log message, to keep $[0] and so on meaningful, and to
22139 # report actual input values of CONFIG_FILES etc. instead of their
22140 # values after options handling.
22142 This file was extended by $as_me, which was
22143 generated by GNU Autoconf 2.63. Invocation command line was
22145 CONFIG_FILES = $CONFIG_FILES
22146 CONFIG_HEADERS = $CONFIG_HEADERS
22147 CONFIG_LINKS = $CONFIG_LINKS
22148 CONFIG_COMMANDS = $CONFIG_COMMANDS
22151 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22156 case $ac_config_files in *"
22157 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22160 case $ac_config_headers in *"
22161 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22166 # Files that config.status was made for.
22167 config_files="$ac_config_files"
22168 config_headers="$ac_config_headers"
22169 config_commands="$ac_config_commands"
22173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22175 \`$as_me' instantiates files from templates according to the
22176 current configuration.
22178 Usage: $0 [OPTION]... [FILE]...
22180 -h, --help print this help, then exit
22181 -V, --version print version number and configuration settings, then exit
22182 -q, --quiet, --silent
22183 do not print progress messages
22184 -d, --debug don't remove temporary files
22185 --recheck update $as_me by reconfiguring in the same conditions
22186 --file=FILE[:TEMPLATE]
22187 instantiate the configuration file FILE
22188 --header=FILE[:TEMPLATE]
22189 instantiate the configuration header FILE
22191 Configuration files:
22194 Configuration headers:
22197 Configuration commands:
22200 Report bugs to <bug-autoconf@gnu.org>."
22203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22206 configured by $0, generated by GNU Autoconf 2.63,
22207 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22209 Copyright (C) 2008 Free Software Foundation, Inc.
22210 This config.status script is free software; the Free Software Foundation
22211 gives unlimited permission to copy, distribute and modify it."
22216 test -n "\$AWK" || AWK=awk
22219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22220 # The default lists apply if the user does not specify any file.
22226 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22227 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22238 # Handling of the options.
22239 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22241 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22242 $as_echo "$ac_cs_version"; exit ;;
22243 --debug | --debu | --deb | --de | --d | -d )
22245 --file | --fil | --fi | --f )
22248 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22250 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22251 ac_need_defaults=false;;
22252 --header | --heade | --head | --hea )
22255 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22257 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22258 ac_need_defaults=false;;
22260 # Conflict between --help and --header
22261 { $as_echo "$as_me: error: ambiguous option: $1
22262 Try \`$0 --help' for more information." >&2
22263 { (exit 1); exit 1; }; };;
22264 --help | --hel | -h )
22265 $as_echo "$ac_cs_usage"; exit ;;
22266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22267 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22270 # This is an error.
22271 -*) { $as_echo "$as_me: error: unrecognized option: $1
22272 Try \`$0 --help' for more information." >&2
22273 { (exit 1); exit 1; }; } ;;
22275 *) ac_config_targets="$ac_config_targets $1"
22276 ac_need_defaults=false ;;
22282 ac_configure_extra_args=
22284 if $ac_cs_silent; then
22286 ac_configure_extra_args="$ac_configure_extra_args --silent"
22290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22291 if \$ac_cs_recheck; then
22292 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22294 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22295 CONFIG_SHELL='$SHELL'
22296 export CONFIG_SHELL
22301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22305 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22306 ## Running $as_me. ##
22312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22316 INTLTOOL_PERL=${INTLTOOL_PERL}
22321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22323 # Handling of arguments.
22324 for ac_config_target in $ac_config_targets
22326 case $ac_config_target in
22327 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22328 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
22329 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
22330 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22331 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
22332 "driver/Makefile") CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
22333 "driver/xscreensaver.pam") CONFIG_FILES="$CONFIG_FILES driver/xscreensaver.pam" ;;
22334 "hacks/Makefile") CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
22335 "hacks/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
22336 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22337 "driver/XScreenSaver.ad") CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
22339 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22340 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22341 { (exit 1); exit 1; }; };;
22346 # If the user did not use the arguments to specify the items to instantiate,
22347 # then the envvar interface is used. Set only those that are not.
22348 # We use the long form for the default assignment because of an extremely
22349 # bizarre bug on SunOS 4.1.3.
22350 if $ac_need_defaults; then
22351 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22352 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22353 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22356 # Have a temporary directory for convenience. Make it in the build tree
22357 # simply because there is no reason against having it here, and in addition,
22358 # creating and moving files from /tmp can sometimes cause problems.
22359 # Hook for its removal unless debugging.
22360 # Note that there is a small window in which the directory will not be cleaned:
22361 # after its creation but before its name has been assigned to `$tmp'.
22365 trap 'exit_status=$?
22366 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22368 trap '{ (exit 1); exit 1; }' 1 2 13 15
22370 # Create a (secure) tmp directory for tmp files.
22373 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22374 test -n "$tmp" && test -d "$tmp"
22377 tmp=./conf$$-$RANDOM
22378 (umask 077 && mkdir "$tmp")
22381 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22382 { (exit 1); exit 1; }
22385 # Set up the scripts for CONFIG_FILES section.
22386 # No need to generate them if there are no CONFIG_FILES.
22387 # This happens for instance with `./config.status config.h'.
22388 if test -n "$CONFIG_FILES"; then
22392 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22393 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22396 ac_cs_awk_cr=$ac_cr
22399 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22404 echo "cat >conf$$subs.awk <<_ACEOF" &&
22405 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22407 } >conf$$subs.sh ||
22408 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22409 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22410 { (exit 1); exit 1; }; }
22411 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22413 for ac_last_try in false false false false false :; do
22414 . ./conf$$subs.sh ||
22415 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22416 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22417 { (exit 1); exit 1; }; }
22419 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22420 if test $ac_delim_n = $ac_delim_num; then
22422 elif $ac_last_try; then
22423 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22424 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22425 { (exit 1); exit 1; }; }
22427 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22430 rm -f conf$$subs.sh
22432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22433 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22437 s/^/S["/; s/!.*/"]=/
22447 s/\(.\{148\}\).*/\1/
22449 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22454 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22461 s/\(.\{148\}\).*/\1/
22463 s/["\\]/\\&/g; s/^/"/; s/$/"/
22467 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22472 ' <conf$$subs.awk | sed '
22477 ' >>$CONFIG_STATUS || ac_write_fail=1
22478 rm -f conf$$subs.awk
22479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22481 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22482 for (key in S) S_is_set[key] = 1
22488 nfields = split(line, field, "@")
22490 len = length(field[1])
22491 for (i = 2; i < nfields; i++) {
22493 keylen = length(key)
22494 if (S_is_set[key]) {
22496 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22497 len += length(value) + length(field[++i])
22508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22509 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22510 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22513 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22514 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22515 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22516 { (exit 1); exit 1; }; }
22519 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22520 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22521 # trailing colons and then remove the whole line if VPATH becomes empty
22522 # (actually we leave an empty line to preserve line numbers).
22523 if test "x$srcdir" = x.; then
22524 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22525 s/:*\$(srcdir):*/:/
22526 s/:*\${srcdir}:*/:/
22528 s/^\([^=]*=[ ]*\):*/\1/
22534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22535 fi # test -n "$CONFIG_FILES"
22537 # Set up the scripts for CONFIG_HEADERS section.
22538 # No need to generate them if there are no CONFIG_HEADERS.
22539 # This happens for instance with `./config.status Makefile'.
22540 if test -n "$CONFIG_HEADERS"; then
22541 cat >"$tmp/defines.awk" <<\_ACAWK ||
22545 # Transform confdefs.h into an awk script `defines.awk', embedded as
22546 # here-document in config.status, that substitutes the proper values into
22547 # config.h.in to produce config.h.
22549 # Create a delimiter string that does not exist in confdefs.h, to ease
22550 # handling of long lines.
22552 for ac_last_try in false false :; do
22553 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22554 if test -z "$ac_t"; then
22556 elif $ac_last_try; then
22557 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22558 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22559 { (exit 1); exit 1; }; }
22561 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22565 # For the awk script, D is an array of macro values keyed by name,
22566 # likewise P contains macro parameters if any. Preserve backslash
22567 # newline sequences.
22569 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22571 s/.\{148\}/&'"$ac_delim"'/g
22574 s/^[ ]*#[ ]*define[ ][ ]*/ /
22581 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22583 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22587 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22588 D["\1"]=" \3\\\\\\n"\\/p
22590 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22595 s/.\{148\}/&'"$ac_delim"'/g
22600 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22603 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22605 ' <confdefs.h | sed '
22606 s/'"$ac_delim"'/"\\\
22607 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22610 for (key in D) D_is_set[key] = 1
22613 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22615 split(line, arg, " ")
22616 if (arg[1] == "#") {
22620 defundef = substr(arg[1], 2)
22623 split(mac1, mac2, "(") #)
22625 prefix = substr(line, 1, index(line, defundef) - 1)
22626 if (D_is_set[macro]) {
22627 # Preserve the white space surrounding the "#".
22628 print prefix "define", macro P[macro] D[macro]
22631 # Replace #undef with comments. This is necessary, for example,
22632 # in the case of _POSIX_SOURCE, which is predefined and required
22633 # on some systems where configure will not decide to define it.
22634 if (defundef == "undef") {
22635 print "/*", prefix defundef, macro, "*/"
22643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22644 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22645 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22646 { (exit 1); exit 1; }; }
22647 fi # test -n "$CONFIG_HEADERS"
22650 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22655 :[FHLC]) ac_mode=$ac_tag; continue;;
22657 case $ac_mode$ac_tag in
22659 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22660 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22661 { (exit 1); exit 1; }; };;
22662 :[FH]-) ac_tag=-:-;;
22663 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22680 -) ac_f="$tmp/stdin";;
22681 *) # Look for the file first in the build tree, then in the source tree
22682 # (if the path is not absolute). The absolute path cannot be DOS-style,
22683 # because $ac_f cannot contain `:'.
22687 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22689 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22690 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22691 { (exit 1); exit 1; }; };;
22693 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22694 ac_file_inputs="$ac_file_inputs '$ac_f'"
22697 # Let's still pretend it is `configure' which instantiates (i.e., don't
22698 # use $as_me), people would be surprised to read:
22699 # /* config.h. Generated by config.status. */
22700 configure_input='Generated from '`
22701 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22703 if test x"$ac_file" != x-; then
22704 configure_input="$ac_file. $configure_input"
22705 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22706 $as_echo "$as_me: creating $ac_file" >&6;}
22708 # Neutralize special characters interpreted by sed in replacement strings.
22709 case $configure_input in #(
22710 *\&* | *\|* | *\\* )
22711 ac_sed_conf_input=`$as_echo "$configure_input" |
22712 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22713 *) ac_sed_conf_input=$configure_input;;
22717 *:-:* | *:-) cat >"$tmp/stdin" \
22718 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22719 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22720 { (exit 1); exit 1; }; } ;;
22725 ac_dir=`$as_dirname -- "$ac_file" ||
22726 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22727 X"$ac_file" : 'X\(//\)[^/]' \| \
22728 X"$ac_file" : 'X\(//\)$' \| \
22729 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22730 $as_echo X"$ac_file" |
22731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22735 /^X\(\/\/\)[^/].*/{
22750 -*) as_dir=./$as_dir;;
22752 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22756 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22757 *) as_qdir=$as_dir;;
22759 as_dirs="'$as_qdir' $as_dirs"
22760 as_dir=`$as_dirname -- "$as_dir" ||
22761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22762 X"$as_dir" : 'X\(//\)[^/]' \| \
22763 X"$as_dir" : 'X\(//\)$' \| \
22764 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22765 $as_echo X"$as_dir" |
22766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22770 /^X\(\/\/\)[^/].*/{
22783 test -d "$as_dir" && break
22785 test -z "$as_dirs" || eval "mkdir $as_dirs"
22786 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22787 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22788 { (exit 1); exit 1; }; }; }
22792 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22794 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22795 # A ".." for each directory in $ac_dir_suffix.
22796 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22797 case $ac_top_builddir_sub in
22798 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22799 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22802 ac_abs_top_builddir=$ac_pwd
22803 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22804 # for backward compatibility:
22805 ac_top_builddir=$ac_top_build_prefix
22808 .) # We are building in place.
22810 ac_top_srcdir=$ac_top_builddir_sub
22811 ac_abs_top_srcdir=$ac_pwd ;;
22812 [\\/]* | ?:[\\/]* ) # Absolute name.
22813 ac_srcdir=$srcdir$ac_dir_suffix;
22814 ac_top_srcdir=$srcdir
22815 ac_abs_top_srcdir=$srcdir ;;
22816 *) # Relative name.
22817 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22818 ac_top_srcdir=$ac_top_build_prefix$srcdir
22819 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22821 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22831 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22832 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22837 # If the template does not know about datarootdir, expand it.
22838 # FIXME: This hack should be removed a few years after 2.60.
22839 ac_datarootdir_hack=; ac_datarootdir_seen=
22852 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22853 *datarootdir*) ac_datarootdir_seen=yes;;
22854 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22855 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22856 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22859 ac_datarootdir_hack='
22860 s&@datadir@&$datadir&g
22861 s&@docdir@&$docdir&g
22862 s&@infodir@&$infodir&g
22863 s&@localedir@&$localedir&g
22864 s&@mandir@&$mandir&g
22865 s&\\\${datarootdir}&$datarootdir&g' ;;
22869 # Neutralize VPATH when `$srcdir' = `.'.
22870 # Shell code in configure.ac might set extrasub.
22871 # FIXME: do we really want to maintain this feature?
22872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22873 ac_sed_extra="$ac_vpsub
22876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22879 s|@configure_input@|$ac_sed_conf_input|;t t
22880 s&@top_builddir@&$ac_top_builddir_sub&;t t
22881 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22882 s&@srcdir@&$ac_srcdir&;t t
22883 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22884 s&@top_srcdir@&$ac_top_srcdir&;t t
22885 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22886 s&@builddir@&$ac_builddir&;t t
22887 s&@abs_builddir@&$ac_abs_builddir&;t t
22888 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22889 s&@INSTALL@&$ac_INSTALL&;t t
22890 $ac_datarootdir_hack
22892 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22893 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22894 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22895 { (exit 1); exit 1; }; }
22897 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22898 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22899 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22900 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22901 which seems to be undefined. Please make sure it is defined." >&5
22902 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22903 which seems to be undefined. Please make sure it is defined." >&2;}
22907 -) cat "$tmp/out" && rm -f "$tmp/out";;
22908 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22910 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22911 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22912 { (exit 1); exit 1; }; }
22918 if test x"$ac_file" != x-; then
22920 $as_echo "/* $configure_input */" \
22921 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22922 } >"$tmp/config.h" \
22923 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22924 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22925 { (exit 1); exit 1; }; }
22926 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22927 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22928 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22931 mv "$tmp/config.h" "$ac_file" \
22932 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22933 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22934 { (exit 1); exit 1; }; }
22937 $as_echo "/* $configure_input */" \
22938 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22939 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22940 $as_echo "$as_me: error: could not create -" >&2;}
22941 { (exit 1); exit 1; }; }
22945 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22946 $as_echo "$as_me: executing $ac_file commands" >&6;}
22951 case $ac_file$ac_mode in
22954 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
22955 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
22956 rm -f intltool-extract.out
22958 mv -f intltool-extract.out intltool-extract
22960 chmod ugo+x intltool-extract
22961 chmod u+w intltool-extract
22963 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
22964 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
22965 rm -f intltool-merge.out
22967 mv -f intltool-merge.out intltool-merge
22969 chmod ugo+x intltool-merge
22970 chmod u+w intltool-merge
22972 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
22973 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
22974 rm -f intltool-update.out
22976 mv -f intltool-update.out intltool-update
22978 chmod ugo+x intltool-update
22979 chmod u+w intltool-update
22982 "default-2":C) case "$CONFIG_FILES" in *po/Makefile.in*)
22983 rm -f po/stamp-it po/stamp-it.tmp
22985 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
22986 mv po/stamp-it.tmp po/stamp-it
22993 { (exit 0); exit 0; }
22995 chmod +x $CONFIG_STATUS
22996 ac_clean_files=$ac_clean_files_save
22998 test $ac_write_fail = 0 ||
22999 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23000 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23001 { (exit 1); exit 1; }; }
23004 # configure is writing to config.log, and then calls config.status.
23005 # config.status does its own redirection, appending to config.log.
23006 # Unfortunately, on DOS this fails, as config.log is still kept open
23007 # by configure, so config.status won't be able to write to it; its
23008 # output is simply discarded. So we exec the FD to /dev/null,
23009 # effectively closing config.log, so it can be properly (re)opened and
23010 # appended to by config.status. When coming back to configure, we
23011 # need to make the FD available again.
23012 if test "$no_create" != yes; then
23014 ac_config_status_args=
23015 test "$silent" = yes &&
23016 ac_config_status_args="$ac_config_status_args --quiet"
23018 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23020 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23021 # would make configure fail if this is the last instruction.
23022 $ac_cs_success || { (exit 1); exit 1; }
23024 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23025 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23026 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23030 ###############################################################################
23032 # Print some warnings at the end.
23034 ###############################################################################
23036 warn_prefix_1=" Warning:"
23037 warn_prefix_2=" Note:"
23038 warn_prefix="$warn_prefix_1"
23041 warnsep=' #################################################################'
23044 if test "$warning" = no ; then
23045 echo '' ; echo "$warnsep" ; echo ''
23052 if test "$warning" = long ; then echo '' ; fi
23055 echo "$warn_prefix $rest"
23062 if test "$was" != no ; then echo '' ; fi
23064 echo "$warn_prefix $rest"
23074 warn_prefix="$warn_prefix_2"
23076 warn_prefix="$warn_prefix_1"
23080 warn_prefix="$warn_prefix_2"
23082 warn_prefix="$warn_prefix_1"
23086 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
23087 warn 'The SGI saver extension was requested, but was not found.'
23090 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
23091 warn 'The XIdle extension was requested, but was not found.'
23094 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
23095 warn 'The XSHM extension was requested, but was not found.'
23098 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
23099 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
23102 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
23103 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
23106 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
23107 warn 'The DPMS extension was requested, but was not found.'
23110 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
23111 warn 'The Xinerama extension was requested, but was not found.'
23114 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
23115 warn 'The XF86VMODE extension was requested, but was not found.'
23118 if test "$with_randr_req" = yes -a "$have_randr" = no ; then
23119 warn 'The RANDR extension was requested, but was not found.'
23122 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
23123 warn "Checking of /proc/interrupts was requested, but it's bogus."
23126 if test "$pkg_config" = false ; then
23127 warnL 'The "pkg-config" program was not found. Without that,'
23128 warn2 "detection of the various GTK libraries won't work."
23130 pkgerr=`$pkg_config --list-all 2>&1 >/dev/null`
23131 if test "x$pkgerr" != "x" ; then
23132 warnL 'The "pkg-config" program produces errors. This often causes'
23133 warn2 "detection of the various GTK libraries to malfunction."
23134 warn2 "The errors are:"
23136 echo "$pkgerr" | sed 's/^/ > /g'
23140 if test "$gtk_halfassed" != no ; then
23141 warnL "GTK version $gtk_halfassed was found, but at least one supporting"
23142 warn2 "library ($gtk_halfassed_lib) was not, so GTK can't be used."
23143 warn2 "Perhaps some of the development packages are not installed?"
23144 if test "$have_gtk" = yes ; then
23145 v="$ac_gtk_version_string"
23146 warn2 "GTK $v is also installed, so it will be used instead."
23147 warn2 "Please read the above output and the \`config.log' file"
23148 warn2 "for more details."
23153 warn2 'Though the Motif front-end to xscreensaver is still'
23154 warn2 'maintained, it is no longer being updated with new'
23155 warn2 'features: all new development on the xscreensaver-demo'
23156 warn2 'program is happening in the GTK version, and not in the'
23157 warn2 'Motif version. It is recommended that you build against'
23158 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
23161 if test "$have_motif" = no -a "$have_gtk" = no; then
23163 if test "$with_motif" = yes; then
23164 warnL "Neither the GTK nor Motif libraries were found; the"
23165 warn2 "\`xscreensaver-demo' program requires one of these."
23169 warnL "The GTK libraries do not seem to be available; the"
23170 warn2 "\`xscreensaver-demo' program requires them."
23172 # warn2 'You can use Motif or Lesstif instead of GTK (use the'
23173 # warn2 "\`--with-motif' option) but that is NOT recommended."
23177 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
23178 warnL "Use of Motif was requested, but it wasn't found;"
23179 warn2 "Gtk will be used instead."
23181 elif test "$jurassic_gtk" = yes ; then
23185 v="$ac_gtk_version_string"
23186 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
23187 warnL "Use of Gtk was requested, but its version number is unknown;"
23188 elif test "$with_gtk_req" = yes ; then
23189 warnL "Use of Gtk was requested, but it is version $v;"
23191 warnL "Gtk was found on this system, but it is version $v;"
23194 warn2 "Gtk $pref_gtk or newer is required."
23196 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
23197 warnL "Use of Gtk was requested, but it wasn't found."
23201 if test "$have_gtk" = yes -a "$have_gdk_pixbuf" = no ; then
23202 warn "GTK is being used, but the GDK-Pixbuf library and/or"
23203 warn2 "headers were not found. That can't be good. Please"
23204 warn2 "install the GDK-Pixbuf development kit and re-configure."
23207 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
23209 preferred_lesstif=0.92
23211 if test "$lesstif_version" = unknown; then
23212 warnL "Unable to determine the LessTif version number!"
23213 warn2 "Make sure you are using version $preferred_lesstif or newer."
23214 warn2 "See <http://www.lesstif.org/>."
23216 elif test \! $lesstif_version -gt 82; then
23217 warnL "LessTif version $lesstif_version_string is being used."
23218 warn2 "LessTif versions 0.82 and earlier are too buggy to"
23219 warn2 "use with XScreenSaver; it is strongly recommended"
23220 warn2 "that you upgrade to at least version $preferred_lesstif!"
23221 warn2 "See <http://www.lesstif.org/>."
23226 if test "$have_motif" = yes -a "$have_gtk" = no ; then
23227 warn 'Motif is being used, and GTK is not.'
23233 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
23234 warnL 'Use of XPM was requested, but it was not found.'
23237 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
23238 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
23241 if test "$have_gdk_pixbuf" = no -o "$gdk_pixbuf_halfassed" = yes || \
23242 test "$have_gdk_pixbuf" = no -a "$have_xpm" = no ; then
23244 if test "$with_gdk_pixbuf_req" = yes ; then
23246 elif test "$with_gdk_pixbuf_req" = no ; then
23247 warnL 'The GDK-Pixbuf library is not being used.'
23249 warnL 'The GDK-Pixbuf library was not found.'
23252 if test "$with_xpm_req" = yes -o "$have_xpm" = yes ; then
23254 elif test "$with_xpm_req" = no ; then
23255 warnL 'The XPM library is not being used.'
23257 warnL 'The XPM library was not found.'
23260 if test "$have_gdk_pixbuf" = no -a "$have_xpm" = yes ; then
23261 warn2 'The XPM library is being used instead.'
23264 if test "$gdk_pixbuf_halfassed" = yes ; then
23266 warn2 'More specifically, we found the headers, but not the'
23267 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
23268 warn2 "system, or something else went wrong. The \`config.log'"
23269 warn2 'file might contain some clues.'
23273 warn2 'Some of the demos will not use images as much as they could.'
23274 warn2 'You should consider installing GDK-Pixbuf and re-running'
23275 warn2 'configure. (GDK-Pixbuf is recommended over XPM, as it'
23276 warn2 'provides support for more image formats.)'
23280 if test "$have_jpeg" = no ; then
23281 if test "$with_jpeg_req" = yes ; then
23282 warnL 'Use of libjpeg was requested, but it was not found.'
23283 elif test "$with_jpeg_req" = no ; then
23284 noteL 'The JPEG library is not being used.'
23286 noteL 'The JPEG library was not found.'
23289 if test "$jpeg_halfassed" = yes ; then
23291 warn2 'More specifically, we found the headers, but not the'
23292 warn2 'library; so either JPEG is half-installed on this'
23293 warn2 "system, or something else went wrong. The \`config.log'"
23294 warn2 'file might contain some clues.'
23298 if test "$have_gdk_pixbuf" = no ; then
23299 warn2 "This means that it won't be possible for the image-manipulating"
23300 warn2 "display modes to load files from disk; and it also means that"
23301 warn2 "the \`webcollage' program will be much slower."
23303 warn2 "This means the \`webcollage' program will be much slower."
23308 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
23309 preferred_mesagl=3.4
23310 mgv="$ac_mesagl_version_string"
23311 pgl="$preferred_mesagl"
23313 if test "$ac_mesagl_version" = unknown; then
23315 # warnL "Unable to determine the MesaGL version number!"
23316 # warn2 "Make sure you are using version $preferred_mesagl or newer."
23318 elif test \! "$ac_mesagl_version" -gt 2006; then
23319 warnL "MesaGL version number is $mgv --"
23320 warn2 "MesaGL 2.6 and earlier have a security bug. It is strongly"
23321 warn2 "recommended that you upgrade to at least version $preferred_mesagl."
23323 elif test \! "$ac_mesagl_version" -gt 3003; then
23324 warnL "MesaGL version number is $mgv --"
23325 warn2 "MesaGL 3.3 and earlier have some bugs; it is recommended"
23326 warn2 "that you upgrade to $pgl or newer."
23330 if test "$have_gl" = no ; then
23331 if test "$with_gl_req" = yes ; then
23332 warnL 'Use of GL was requested, but it was not found.'
23333 elif test "$with_gl_req" = no ; then
23334 noteL 'The OpenGL 3D library is not being used.'
23336 noteL 'The OpenGL 3D library was not found.'
23339 if test "$gl_halfassed" = yes ; then
23341 warn2 'More specifically, we found the headers, but not the'
23342 warn2 'libraries; so either GL is half-installed on this'
23343 warn2 "system, or something else went wrong. The \`config.log'"
23344 warn2 'file might contain some clues.'
23348 warn2 'Those demos which use 3D will not be built or installed.'
23349 warn2 'You might want to consider installing OpenGL and'
23350 warn2 "re-running configure. If your vendor doesn't ship"
23351 warn2 'their own implementation of OpenGL, you can get a free'
23352 warn2 'version at <http://www.mesa3d.org/>. For general OpenGL'
23353 warn2 'info, see <http://www.opengl.org/>.'
23358 if test "$have_gl" = yes -a "$have_gle" = no ; then
23360 # nobody cares about this; don't print the warning unless it was
23361 # requested and not found, or halfway-found.
23362 if test "$with_gle_req" = yes -o "$gle_halfassed" = yes ; then
23364 if test "$with_gle_req" = yes ; then
23365 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
23366 warn2 'it was not found (though the OpenGL library was found, and'
23367 warn2 'is being used.)'
23368 elif test "$with_gle_req" = no ; then
23369 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
23370 warn2 'library is not.'
23372 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
23376 if test "$gle_halfassed" = yes ; then
23378 warn2 'More specifically, we found the headers, but not the'
23379 warn2 'libraries; so either GLE is half-installed on this'
23380 warn2 "system, or something else went wrong. The \`config.log'"
23381 warn2 'file might contain some clues.'
23385 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
23386 warn2 'will not be built or installed. You might want to consider'
23387 warn2 'installing GLE and re-running configure. You can find the'
23388 warn2 'GLE library at <http://www.linas.org/gle/>. For general'
23389 warn2 'OpenGL info, see <http://www.opengl.org/>.'
23395 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
23396 warn 'Use of XReadDisplay was requested, but it was not found.'
23399 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
23400 warn 'Use of Kerberos was requested, but it was not found.'
23403 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
23404 warn 'Use of PAM was requested, but it was not found.'
23407 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
23408 warn 'Use of shadow passwords was requested, but they were not found.'
23411 if test "$ac_macosx" = yes ; then
23412 if test "$enable_locking" = yes ; then
23413 warn "You have specified --enable-locking on MacOS X."
23414 warn2 "THIS DOES NOT WORK! Don't do this!"
23419 # You are in a twisty maze of namespaces and syntaxes, all alike.
23420 # Fuck the skull of Unix.
23422 bindir=`eval eval eval eval eval eval eval echo $bindir`
23423 HACKDIR=`eval eval eval eval eval eval eval echo $HACKDIR`
23424 HACK_CONF_DIR=`eval eval eval eval eval eval eval echo $HACK_CONF_DIR`
23426 # canonicalize slashes.
23427 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
23428 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
23429 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
23432 # Sanity check the hackdir
23433 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
23434 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
23436 { { $as_echo "$as_me:$LINENO: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
23437 There will be an executable installed with that name, so
23438 that can't be the name of a directory as well. Please
23439 re-configure with a different directory name." >&5
23440 $as_echo "$as_me: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
23441 There will be an executable installed with that name, so
23442 that can't be the name of a directory as well. Please
23443 re-configure with a different directory name." >&2;}
23444 { (exit 1); exit 1; }; }
23451 # Now let's warn if there's a previous RPM version already installed.
23452 # But don't bother with this test if we are currently *building* an RPM.
23454 if test -z "$RPM_PACKAGE_VERSION" ; then
23456 rpmnames="xscreensaver xscreensaver-base xscreensaver-extras"
23460 rpmv=`(rpm -qv $rpmnames) 2>/dev/null | \
23461 sed -n 's/^[-a-z]*-\([0-9][0-9]*[.][0-9][0-9a-z]*\)-.*$/\1/p' | \
23465 if test \! -z "$rpmv" ; then
23466 rpmbdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
23467 rpmhdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/popsquares$@\1@p'`
23470 warnL "There is already an installed RPM of xscreensaver $rpmv"
23471 warn2 'on this system. You might want to remove it ("rpm -ve")'
23472 warn2 'before running "make install" in this directory.'
23474 warn2 "Alternately, you could build this version of xscreensaver"
23475 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
23476 warn2 'file is included. Try "rpmbuild -v -ba xscreensaver.spec".'
23477 warn2 "See the RPM documentation for more info."
23480 if test "$rpmbdir" = "$rpmhdir" ; then
23481 warn2 "The RPM version was installed in $rpmbdir/."
23484 warn2 "The RPM version was installed in $rpmbdir/,"
23485 warn2 "with demos in $rpmhdir/."
23490 # Also warn if there's a Debian package installed.
23492 debnames="xscreensaver xscreensaver-data xscreensaver-data-extra"
23494 for dpkg in $debnames ; do
23495 if test -z "$debv"; then
23496 debv=`dpkg -s $dpkg 2>/dev/null | sed -n 's/^Version: \(.*\)$/\1/p'`
23500 if test \! -z "$debv" ; then
23501 debbdir=`dpkg -L $debnames 2>/dev/null | \
23502 sed -n 's@^\(.*/bin/\)xscreensaver$@\1@p'`
23503 debhdir=`dpkg -L $debnames 2>/dev/null | \
23504 sed -n 's@^\(.*/\)popsquares$@\1@p'`
23505 if test -z "$debbdir" ; then debbdir='???'; fi
23506 if test -z "$debhdir" ; then debhdir='???'; fi
23509 warnL "There is already an installed dpkg of xscreensaver"
23510 warn2 "version \"$debv\" on this system."
23512 warn2 "The dpkg was installed in $debbdir,"
23513 warn2 "with demos in $debhdir."
23517 if test "${bindir}" = "${HACKDIR}" ; then
23521 if test "$do_dir_warning" = yes; then
23525 echo ' When you run "make install", the "xscreensaver",'
23526 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
23527 echo " will be installed in ${bindir}/."
23529 echo " The various graphics demos (190+ different executables) will"
23530 echo " be installed in ${HACKDIR}/."
23532 echo " If you would prefer the demos to be installed elsewhere,"
23533 echo " you should re-run configure with the --with-hackdir=DIR"
23534 echo " option. For more information, run \`./configure --help'."
23538 if test "$warning" != no; then
23539 echo '' ; echo "$warnsep" ; echo ''
23542 if test "$do_dir_warning" = no; then
23543 if test "$warning" = no; then
23546 echo "User programs will be installed in ${bindir}/"
23547 echo "Screen savers will be installed in ${HACKDIR}/"
23548 echo "Configuration dialogs will be installed in ${HACK_CONF_DIR}/"
23549 echo "System-wide default settings will be installed in ${APPDEFAULTS}/"