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
678 DEFAULT_IMAGE_DIRECTORY
702 PREFERRED_DEMO_PROGRAM
704 gnome_url_show_program
733 INTLTOOL_SOUNDLIST_RULE
739 INTLTOOL_DIRECTORY_RULE
740 INTLTOOL_DESKTOP_RULE
796 program_transform_name
808 enable_option_checking
824 with_pam_service_name
844 ac_precious_vars='build_alias
856 # Initialize some variables set by options.
858 ac_init_version=false
859 ac_unrecognized_opts=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
870 program_transform_name=s,x,x,
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE}'
895 infodir='${datarootdir}/info'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
916 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 # Accept the important Cygnus configure options, so we can diagnose typos.
922 case $ac_dashdash$ac_option in
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
944 cache_file=config.cache ;;
946 -datadir | --datadir | --datadi | --datad)
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
963 { (exit 1); exit 1; }; }
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
973 eval enable_$ac_useropt=no ;;
975 -docdir | --docdir | --docdi | --doc | --do)
977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985 -enable-* | --enable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
990 { (exit 1); exit 1; }; }
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
1000 eval enable_$ac_useropt=\$ac_optarg ;;
1002 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1003 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1004 | --exec | --exe | --ex)
1005 ac_prev=exec_prefix ;;
1006 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1007 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1008 | --exec=* | --exe=* | --ex=*)
1009 exec_prefix=$ac_optarg ;;
1011 -gas | --gas | --ga | --g)
1012 # Obsolete; use --with-gas.
1015 -help | --help | --hel | --he | -h)
1016 ac_init_help=long ;;
1017 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1018 ac_init_help=recursive ;;
1019 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1020 ac_init_help=short ;;
1022 -host | --host | --hos | --ho)
1023 ac_prev=host_alias ;;
1024 -host=* | --host=* | --hos=* | --ho=*)
1025 host_alias=$ac_optarg ;;
1027 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1029 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1031 htmldir=$ac_optarg ;;
1033 -includedir | --includedir | --includedi | --included | --include \
1034 | --includ | --inclu | --incl | --inc)
1035 ac_prev=includedir ;;
1036 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1037 | --includ=* | --inclu=* | --incl=* | --inc=*)
1038 includedir=$ac_optarg ;;
1040 -infodir | --infodir | --infodi | --infod | --info | --inf)
1042 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1043 infodir=$ac_optarg ;;
1045 -libdir | --libdir | --libdi | --libd)
1047 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1048 libdir=$ac_optarg ;;
1050 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1051 | --libexe | --libex | --libe)
1052 ac_prev=libexecdir ;;
1053 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1054 | --libexe=* | --libex=* | --libe=*)
1055 libexecdir=$ac_optarg ;;
1057 -localedir | --localedir | --localedi | --localed | --locale)
1058 ac_prev=localedir ;;
1059 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1060 localedir=$ac_optarg ;;
1062 -localstatedir | --localstatedir | --localstatedi | --localstated \
1063 | --localstate | --localstat | --localsta | --localst | --locals)
1064 ac_prev=localstatedir ;;
1065 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1066 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1067 localstatedir=$ac_optarg ;;
1069 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1071 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1072 mandir=$ac_optarg ;;
1074 -nfp | --nfp | --nf)
1075 # Obsolete; use --without-fp.
1078 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1079 | --no-cr | --no-c | -n)
1082 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1083 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1086 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1087 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1088 | --oldin | --oldi | --old | --ol | --o)
1089 ac_prev=oldincludedir ;;
1090 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1091 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1092 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1093 oldincludedir=$ac_optarg ;;
1095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1098 prefix=$ac_optarg ;;
1100 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1101 | --program-pre | --program-pr | --program-p)
1102 ac_prev=program_prefix ;;
1103 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1104 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1105 program_prefix=$ac_optarg ;;
1107 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1108 | --program-suf | --program-su | --program-s)
1109 ac_prev=program_suffix ;;
1110 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1111 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1112 program_suffix=$ac_optarg ;;
1114 -program-transform-name | --program-transform-name \
1115 | --program-transform-nam | --program-transform-na \
1116 | --program-transform-n | --program-transform- \
1117 | --program-transform | --program-transfor \
1118 | --program-transfo | --program-transf \
1119 | --program-trans | --program-tran \
1120 | --progr-tra | --program-tr | --program-t)
1121 ac_prev=program_transform_name ;;
1122 -program-transform-name=* | --program-transform-name=* \
1123 | --program-transform-nam=* | --program-transform-na=* \
1124 | --program-transform-n=* | --program-transform-=* \
1125 | --program-transform=* | --program-transfor=* \
1126 | --program-transfo=* | --program-transf=* \
1127 | --program-trans=* | --program-tran=* \
1128 | --progr-tra=* | --program-tr=* | --program-t=*)
1129 program_transform_name=$ac_optarg ;;
1131 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1133 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1134 pdfdir=$ac_optarg ;;
1136 -psdir | --psdir | --psdi | --psd | --ps)
1138 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1142 | -silent | --silent | --silen | --sile | --sil)
1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1149 sbindir=$ac_optarg ;;
1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1153 | --sharedst | --shareds | --shared | --share | --shar \
1155 ac_prev=sharedstatedir ;;
1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1160 sharedstatedir=$ac_optarg ;;
1162 -site | --site | --sit)
1164 -site=* | --site=* | --sit=*)
1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1170 srcdir=$ac_optarg ;;
1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1173 | --syscon | --sysco | --sysc | --sys | --sy)
1174 ac_prev=sysconfdir ;;
1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1177 sysconfdir=$ac_optarg ;;
1179 -target | --target | --targe | --targ | --tar | --ta | --t)
1180 ac_prev=target_alias ;;
1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1182 target_alias=$ac_optarg ;;
1184 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 -version | --version | --versio | --versi | --vers | -V)
1188 ac_init_version=: ;;
1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1195 { (exit 1); exit 1; }; }
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1205 eval with_$ac_useropt=\$ac_optarg ;;
1207 -without-* | --without-*)
1208 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1212 { (exit 1); exit 1; }; }
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1222 eval with_$ac_useropt=no ;;
1225 # Obsolete; use --with-x.
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1242 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1243 Try \`$0 --help' for more information." >&2
1244 { (exit 1); exit 1; }; }
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1251 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1252 { (exit 1); exit 1; }; }
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1257 # FIXME: should be removed in autoconf 3.0.
1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267 if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1270 { (exit 1); exit 1; }; }
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1276 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1277 { (exit 1); exit 1; }; } ;;
1278 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 # Check all directory arguments for consistency.
1283 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
1288 eval ac_val=\$$ac_var
1289 # Remove trailing slashes.
1292 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1293 eval $ac_var=\$ac_val;;
1295 # Be sure to have absolute directory names.
1297 [\\/$]* | ?:[\\/]* ) continue;;
1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1300 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1301 { (exit 1); exit 1; }; }
1304 # There might be people who depend on the old broken behavior: `$host'
1305 # used to hold the argument of --host etc.
1306 # FIXME: To remove some day.
1309 target=$target_alias
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
1315 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1316 If a cross compiler is detected then cross compile mode will be used." >&2
1317 elif test "x$build_alias" != "x$host_alias"; then
1323 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325 test "$silent" = yes && exec 6>/dev/null
1328 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di=`ls -di .` &&
1330 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1332 { (exit 1); exit 1; }; }
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1335 { (exit 1); exit 1; }; }
1338 # Find the source files, if location was not specified.
1339 if test -z "$srcdir"; then
1340 ac_srcdir_defaulted=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir=`$as_dirname -- "$as_myself" ||
1343 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$as_myself" : 'X\(//\)[^/]' \| \
1345 X"$as_myself" : 'X\(//\)$' \| \
1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347 $as_echo X"$as_myself" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1370 ac_srcdir_defaulted=no
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1375 { (exit 1); exit 1; }; }
1377 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1379 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1380 { (exit 1); exit 1; }; }
1382 # When building in place, set srcdir=.
1383 if test "$ac_abs_confdir" = "$ac_pwd"; then
1386 # Remove unnecessary trailing slashes from srcdir.
1387 # Double slashes in file names in object file debugging info
1388 # mess up M-x gdb in Emacs.
1390 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392 for ac_var in $ac_precious_vars; do
1393 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_env_${ac_var}_value=\$${ac_var}
1395 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1400 # Report the --help message.
1402 if test "$ac_init_help" = "long"; then
1403 # Omit some internal or obsolete options to make the list less imposing.
1404 # This message is too long to be a string in the A/UX 3.1 sh.
1406 \`configure' configures this package to adapt to many kinds of systems.
1408 Usage: $0 [OPTION]... [VAR=VALUE]...
1410 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411 VAR=VALUE. See below for descriptions of some of the useful variables.
1413 Defaults for the options are specified in brackets.
1418 -h, --help display this help and exit
1419 --help=short display options specific to this package
1420 --help=recursive display the short help of all the included packages
1421 -V, --version display version information and exit
1422 -q, --quiet, --silent do not print \`checking...' messages
1423 --cache-file=FILE cache test results in FILE [disabled]
1424 -C, --config-cache alias for \`--cache-file=config.cache'
1425 -n, --no-create do not create output files
1426 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1428 Installation directories:
1429 --prefix=PREFIX install architecture-independent files in PREFIX
1430 [$ac_default_prefix]
1431 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1434 By default, \`make install' will install all the files in
1435 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1436 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437 for instance \`--prefix=\$HOME'.
1439 For better control, use the options below.
1441 Fine tuning of the installation directories:
1442 --bindir=DIR user executables [EPREFIX/bin]
1443 --libexecdir=DIR program executables [EPREFIX/libexec]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --x-includes=DIR X include files are in DIR
1447 --x-libraries=DIR X library files are in DIR
1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1462 --x-includes=DIR X include files are in DIR
1463 --x-libraries=DIR X library files are in DIR
1466 --build=BUILD configure for building on BUILD [guessed]
1467 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1471 if test -n "$ac_init_help"; then
1476 --disable-option-checking ignore unrecognized --enable/--with options
1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 Screen locking options:
1481 --enable-locking Compile in support for locking the display.
1482 --disable-locking Do not allow locking at all.
1484 --enable-root-passwd Allow root passwd to unlock screen.
1485 --disable-root-passwd Do not allow that.
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 Installation options:
1493 --with-hackdir=DIR Where to install the hundreds of demo executables.
1494 Default: `PREFIX/libexec/xscreensaver/'
1495 --with-configdir=DIR Where to install the data files that describe each
1496 of the display modes to the GUI.
1497 Default: `PREFIX/share/xscreensaver/config/'
1498 --with-x-app-defaults=DIR
1499 Where to install xscreensaver configuration file.
1501 --with-dpms-ext Include support for the DPMS extension.
1502 --with-xinerama-ext Include support for the XINERAMA extension.
1503 --with-xinput-ext Include support for the XInput extension.
1504 --with-xf86vmode-ext Include support for XFree86 virtual screens.
1505 --with-xf86gamma-ext Include support for XFree86 gamma fading.
1506 --with-randr-ext Include support for the X Resize+Rotate extension.
1507 --with-proc-interrupts Include support for consulting the /proc/interrupts
1508 file to notice keyboard activity.
1509 --with-pam Include support for PAM (Pluggable Auth Modules.)
1510 --with-pam-service-name NAME arg is the name of the PAM service that
1511 xscreensaver will authenticate as.
1512 --with-kerberos Include support for Kerberos authentication.
1513 --with-shadow Include support for shadow password authentication.
1514 --with-passwd-helper Include support for an external password
1515 verification helper program.
1516 --with-login-manager Put a "New Login" button on the unlock dialog that
1517 runs a login manager like gdmflexiserver or kdmctl.
1519 User interface options:
1521 --with-gtk Use the Gtk toolkit for the user interface.
1522 --with-motif Use the Motif toolkit for the user interface
1523 (no longer supported.)
1527 --with-gl Build those demos which depend on OpenGL.
1528 --with-gle Build those demos which depend on GLE
1529 (the OpenGL "extrusion" library.)
1530 --with-pixbuf Include support for the GDK-Pixbuf library in some
1531 demos, which will make it possible for them to read
1532 GIF, JPEG, and PNG files as well.
1533 --with-xpm Include support for XPM files in some demos.
1534 (Not needed if Pixbuf is used.)
1535 --with-jpeg Include support for the JPEG library.
1536 --with-xshm-ext Include support for the Shared Memory extension.
1537 --with-xdbe-ext Include support for the DOUBLE-BUFFER extension.
1538 --with-readdisplay Include support for the XReadDisplay extension.
1539 --with-image-directory Arg is the default directory from which some demos
1540 will choose random images to display.
1541 --with-text-file=FILE By default, some demos may display this file.
1542 --with-browser=BROWSER Specify the web browser used to show the help URL.
1543 --with-setuid-hacks Allow some demos to be installed `setuid root'
1544 (which is needed in order to ping other hosts.)
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1556 XMKMF Path to xmkmf, Makefile generator for X Window System
1558 Use these variables to override the choices made by `configure' or to help
1559 it to find libraries and programs with nonstandard names/locations.
1565 if test "$ac_init_help" = "recursive"; then
1566 # If there are subdirs, report their specific --help.
1567 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1568 test -d "$ac_dir" ||
1569 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1577 # A ".." for each directory in $ac_dir_suffix.
1578 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1579 case $ac_top_builddir_sub in
1580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584 ac_abs_top_builddir=$ac_pwd
1585 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1586 # for backward compatibility:
1587 ac_top_builddir=$ac_top_build_prefix
1590 .) # We are building in place.
1592 ac_top_srcdir=$ac_top_builddir_sub
1593 ac_abs_top_srcdir=$ac_pwd ;;
1594 [\\/]* | ?:[\\/]* ) # Absolute name.
1595 ac_srcdir=$srcdir$ac_dir_suffix;
1596 ac_top_srcdir=$srcdir
1597 ac_abs_top_srcdir=$srcdir ;;
1599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1600 ac_top_srcdir=$ac_top_build_prefix$srcdir
1601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605 cd "$ac_dir" || { ac_status=$?; continue; }
1606 # Check for guested configure.
1607 if test -f "$ac_srcdir/configure.gnu"; then
1609 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610 elif test -f "$ac_srcdir/configure"; then
1612 $SHELL "$ac_srcdir/configure" --help=recursive
1614 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616 cd "$ac_pwd" || { ac_status=$?; break; }
1620 test -n "$ac_init_help" && exit $ac_status
1621 if $ac_init_version; then
1624 generated by GNU Autoconf 2.63
1626 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1627 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1628 This configure script is free software; the Free Software Foundation
1629 gives unlimited permission to copy, distribute and modify it.
1633 cat >config.log <<_ACEOF
1634 This file contains any messages produced by compilers while
1635 running configure, to aid debugging if configure makes a mistake.
1637 It was created by $as_me, which was
1638 generated by GNU Autoconf 2.63. Invocation command line was
1650 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1651 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1652 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1653 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1654 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1656 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1657 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1659 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1660 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1661 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1662 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1663 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1664 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1665 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 test -z "$as_dir" && as_dir=.
1674 $as_echo "PATH: $as_dir"
1690 # Keep a trace of the command line.
1691 # Strip out --no-create and --no-recursion so they do not pile up.
1692 # Strip out --silent because we don't want to record it for future runs.
1693 # Also quote any args containing shell meta-characters.
1694 # Make two passes to allow for proper duplicate-argument suppression.
1698 ac_must_keep_next=false
1704 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1706 | -silent | --silent | --silen | --sile | --sil)
1709 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1712 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1714 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1715 if test $ac_must_keep_next = true; then
1716 ac_must_keep_next=false # Got value, back to normal.
1719 *=* | --config-cache | -C | -disable-* | --disable-* \
1720 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1721 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1722 | -with-* | --with-* | -without-* | --without-* | --x)
1723 case "$ac_configure_args0 " in
1724 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1727 -* ) ac_must_keep_next=true ;;
1730 ac_configure_args="$ac_configure_args '$ac_arg'"
1735 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1736 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1738 # When interrupted or exit'd, cleanup temporary files, and complete
1739 # config.log. We remove comments because anyway the quotes in there
1740 # would cause problems or look ugly.
1741 # WARNING: Use '\'' to represent an apostrophe within the trap.
1742 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1743 trap 'exit_status=$?
1744 # Save into config.log some information that might help in debugging.
1749 ## ---------------- ##
1750 ## Cache variables. ##
1751 ## ---------------- ##
1754 # The following way of writing the cache mishandles newlines in values,
1756 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1757 eval ac_val=\$$ac_var
1761 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1762 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1765 _ | IFS | as_nl) ;; #(
1766 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1767 *) $as_unset $ac_var ;;
1772 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1773 *${as_nl}ac_space=\ *)
1775 "s/'\''/'\''\\\\'\'''\''/g;
1776 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1779 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1787 ## ----------------- ##
1788 ## Output variables. ##
1789 ## ----------------- ##
1792 for ac_var in $ac_subst_vars
1794 eval ac_val=\$$ac_var
1796 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1798 $as_echo "$ac_var='\''$ac_val'\''"
1802 if test -n "$ac_subst_files"; then
1804 ## ------------------- ##
1805 ## File substitutions. ##
1806 ## ------------------- ##
1809 for ac_var in $ac_subst_files
1811 eval ac_val=\$$ac_var
1813 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1815 $as_echo "$ac_var='\''$ac_val'\''"
1820 if test -s confdefs.h; then
1830 test "$ac_signal" != 0 &&
1831 $as_echo "$as_me: caught signal $ac_signal"
1832 $as_echo "$as_me: exit $exit_status"
1834 rm -f core *.core core.conftest.* &&
1835 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1838 for ac_signal in 1 2 13 15; do
1839 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1843 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1844 rm -f -r conftest* confdefs.h
1846 # Predefined preprocessor variables.
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_NAME "$PACKAGE_NAME"
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_STRING "$PACKAGE_STRING"
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1873 # Let the site file select an alternate cache file if it wants to.
1874 # Prefer an explicitly selected file to automatically selected ones.
1877 if test -n "$CONFIG_SITE"; then
1878 ac_site_file1=$CONFIG_SITE
1879 elif test "x$prefix" != xNONE; then
1880 ac_site_file1=$prefix/share/config.site
1881 ac_site_file2=$prefix/etc/config.site
1883 ac_site_file1=$ac_default_prefix/share/config.site
1884 ac_site_file2=$ac_default_prefix/etc/config.site
1886 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1888 test "x$ac_site_file" = xNONE && continue
1889 if test -r "$ac_site_file"; then
1890 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1891 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1892 sed 's/^/| /' "$ac_site_file" >&5
1897 if test -r "$cache_file"; then
1898 # Some versions of bash will fail to source /dev/null (special
1899 # files actually), so we avoid doing that.
1900 if test -f "$cache_file"; then
1901 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1902 $as_echo "$as_me: loading cache $cache_file" >&6;}
1904 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1905 *) . "./$cache_file";;
1909 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1910 $as_echo "$as_me: creating cache $cache_file" >&6;}
1914 # Check that the precious variables saved in the cache have kept the same
1916 ac_cache_corrupted=false
1917 for ac_var in $ac_precious_vars; do
1918 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1919 eval ac_new_set=\$ac_env_${ac_var}_set
1920 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1921 eval ac_new_val=\$ac_env_${ac_var}_value
1922 case $ac_old_set,$ac_new_set in
1924 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1925 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1926 ac_cache_corrupted=: ;;
1928 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1929 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1930 ac_cache_corrupted=: ;;
1933 if test "x$ac_old_val" != "x$ac_new_val"; then
1934 # differences in whitespace do not lead to failure.
1935 ac_old_val_w=`echo x $ac_old_val`
1936 ac_new_val_w=`echo x $ac_new_val`
1937 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1938 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1939 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1940 ac_cache_corrupted=:
1942 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1943 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1944 eval $ac_var=\$ac_old_val
1946 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1947 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1948 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1949 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1952 # Pass precious variables to config.status.
1953 if test "$ac_new_set" = set; then
1955 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 *) ac_arg=$ac_var=$ac_new_val ;;
1958 case " $ac_configure_args " in
1959 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1960 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1964 if $ac_cache_corrupted; then
1965 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1967 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1968 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1969 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1970 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1971 { (exit 1); exit 1; }; }
1991 ac_cpp='$CPP $CPPFLAGS'
1992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997 ac_config_headers="$ac_config_headers config.h"
2000 echo "current directory: `pwd`"
2001 echo "command line was: $0 $@"
2003 ###############################################################################
2007 ###############################################################################
2018 # This only ever existed in X11R4 and X11R5.
2019 #AH_TEMPLATE([HAVE_XIDLE_EXTENSION],
2020 # [Define this if you have the XIDLE extension installed. If you
2021 # have the XIDLE extension, this is recommended. (You have this
2022 # extension if the file /usr/include/X11/extensions/xidle.h
2023 # exists.) Turning on this flag lets XScreenSaver work better with
2024 # servers which support this extension; but it will still work
2025 # with servers which do not suport it, so it's a good idea to
2026 # compile in support for it if you can.])
2028 # Using this extension will crash your X server and make fading not work.
2029 #AH_TEMPLATE([HAVE_MIT_SAVER_EXTENSION],
2030 # [Define this if you have the MIT-SCREEN-SAVER extension
2031 # installed. See the caveats about this extension, above.
2032 # (It's available if /usr/include/X11/extensions/scrnsaver.h
2035 # This only ever existed on SGI hardware.
2036 #AH_TEMPLATE([HAVE_SGI_SAVER_EXTENSION],
2037 # [Define this if you have the SGI SCREEN_SAVER extension. This is
2038 # standard on Irix systems, and not available elsewhere.])
2040 # This only ever existed on SGI hardware.
2041 #AH_TEMPLATE([HAVE_SGI_VC_EXTENSION],
2042 # [Define this if you have the SGI-VIDEO-CONTROL extension. This
2043 # is standard on Irix systems, and not available elsewhere.])
2200 # After checking to see that --srcdir is correct (which AC_INIT does)
2201 # check for some random other files that come later in the tar file,
2202 # to make sure everything is here.
2204 for d in driver utils hacks hacks/glx ; do
2205 f=$srcdir/$d/Makefile.in
2206 if test \! -r $f ; then
2208 echo "ERROR: The package is incomplete: $f does not exist."
2209 echo " This probably means that your download was truncated."
2215 ###############################################################################
2217 # Function to figure out how to run the compiler.
2219 ###############################################################################
2224 ###############################################################################
2226 # Check for availability of various gcc command-line options.
2228 ###############################################################################
2236 # Need to disable Objective C extensions in ANSI C on MacOS X to work
2237 # around an Apple-specific gcc bug.
2241 ###############################################################################
2243 # Function to figure out how to disable // comments in ANSI C code.
2245 # (With recent gcc, this is done with "-std=c89". With older gcc, this
2246 # is done by passing "-lang-c89" to cpp, by passing "-Wp,-lang-c89" to
2247 # gcc. Old gcc doesn't support -std, and new gcc doesn't support -lang.
2248 # so much for compatibility!)
2250 # UPDATE: apparently there is NO WAY to tell gcc 3.2.2 to require that
2251 # declarations preceed statements, without resorting to "-pedantic".
2252 # This means that there is no way to get gcc3 to issue warnings that
2253 # ensure that your code complies with the ANSI/ISO C89 standard, without
2254 # also drowning in totally useless warnings. Thank you master may I
2257 # So, I give up, let's just use -pedantic.
2259 ###############################################################################
2266 ###############################################################################
2268 # Function to figure out how to create directory trees.
2270 ###############################################################################
2275 ###############################################################################
2277 # Function to check whether gettimeofday() exists, and how to call it.
2278 # This may define HAVE_GETTIMEOFDAY and GETTIMEOFDAY_TWO_ARGS.
2280 ###############################################################################
2285 ###############################################################################
2287 # Function to find perl5 (defines PERL and PERL_VERSION.)
2289 ###############################################################################
2291 # M4 sucks!! perl sucks too!!
2293 perl_version_cmd='print $]'
2299 ###############################################################################
2301 # Function to demand "bc". Losers.
2303 ###############################################################################
2307 ###############################################################################
2309 # Functions to check how to do ICMP PING requests.
2311 ###############################################################################
2318 ###############################################################################
2320 # Functions to check for various X11 crap.
2322 ###############################################################################
2324 # Try and find the app-defaults directory.
2325 # It sucks that autoconf doesn't do this already...
2329 ###############################################################################
2331 # Handle the --with-x-app-defaults option HERE
2333 ###############################################################################
2336 # Check whether --with-x-app-defaults was given.
2337 if test "${with_x_app_defaults+set}" = set; then
2338 withval=$with_x_app_defaults; ac_cv_x_app_defaults="$withval"
2340 eval ac_x_app_defaults="$withval"
2353 # Random special-cases for X on certain pathological OSes.
2354 # You know who you are.
2360 ###############################################################################
2362 # Some utility functions to make checking for X things easier.
2364 ###############################################################################
2366 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
2370 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
2374 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
2379 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
2380 # Use this sparingly; it probably doesn't work very well on X programs.
2384 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
2385 # (But not the -L directories!)
2391 # Usage: HANDLE_X_PATH_ARG([variable_name],
2392 # [--command-line-option],
2393 # [descriptive string])
2395 # All of the --with options take three forms:
2397 # --with-foo (or --with-foo=yes)
2398 # --without-foo (or --with-foo=no)
2401 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
2402 # a directory (string beginning with a slash) it checks to see whether
2403 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
2410 ###############################################################################
2411 ###############################################################################
2413 # End of function definitions. Now start actually executing stuff.
2415 ###############################################################################
2416 ###############################################################################
2418 # WTF! autoconf emits this *way* too late. Do it earlier.
2419 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2420 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2423 # random compiler setup
2425 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2426 if test -f "$ac_dir/install-sh"; then
2428 ac_install_sh="$ac_aux_dir/install-sh -c"
2430 elif test -f "$ac_dir/install.sh"; then
2432 ac_install_sh="$ac_aux_dir/install.sh -c"
2434 elif test -f "$ac_dir/shtool"; then
2436 ac_install_sh="$ac_aux_dir/shtool install -c"
2440 if test -z "$ac_aux_dir"; then
2441 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2442 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2443 { (exit 1); exit 1; }; }
2446 # These three variables are undocumented and unsupported,
2447 # and are intended to be withdrawn in a future Autoconf release.
2448 # They can cause serious problems if a builder's source tree is in a directory
2449 # whose full name contains unusual characters.
2450 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2451 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2452 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2455 # Make sure we can run config.sub.
2456 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2457 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2458 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2459 { (exit 1); exit 1; }; }
2461 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2462 $as_echo_n "checking build system type... " >&6; }
2463 if test "${ac_cv_build+set}" = set; then
2464 $as_echo_n "(cached) " >&6
2466 ac_build_alias=$build_alias
2467 test "x$ac_build_alias" = x &&
2468 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2469 test "x$ac_build_alias" = x &&
2470 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2471 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2472 { (exit 1); exit 1; }; }
2473 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2474 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2475 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2476 { (exit 1); exit 1; }; }
2479 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2480 $as_echo "$ac_cv_build" >&6; }
2481 case $ac_cv_build in
2483 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2484 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2485 { (exit 1); exit 1; }; };;
2488 ac_save_IFS=$IFS; IFS='-'
2494 # Remember, the first character of IFS is used to create $*,
2495 # except with old shells:
2498 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2501 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2502 $as_echo_n "checking host system type... " >&6; }
2503 if test "${ac_cv_host+set}" = set; then
2504 $as_echo_n "(cached) " >&6
2506 if test "x$host_alias" = x; then
2507 ac_cv_host=$ac_cv_build
2509 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2510 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2511 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2512 { (exit 1); exit 1; }; }
2516 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2517 $as_echo "$ac_cv_host" >&6; }
2520 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2521 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2522 { (exit 1); exit 1; }; };;
2525 ac_save_IFS=$IFS; IFS='-'
2531 # Remember, the first character of IFS is used to create $*,
2532 # except with old shells:
2535 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2540 ac_cpp='$CPP $CPPFLAGS'
2541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544 if test -n "$ac_tool_prefix"; then
2545 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2546 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2547 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2548 $as_echo_n "checking for $ac_word... " >&6; }
2549 if test "${ac_cv_prog_CC+set}" = set; then
2550 $as_echo_n "(cached) " >&6
2552 if test -n "$CC"; then
2553 ac_cv_prog_CC="$CC" # Let the user override the test.
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2562 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2563 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 if test -n "$CC"; then
2574 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2575 $as_echo "$CC" >&6; }
2577 { $as_echo "$as_me:$LINENO: result: no" >&5
2578 $as_echo "no" >&6; }
2583 if test -z "$ac_cv_prog_CC"; then
2585 # Extract the first word of "gcc", so it can be a program name with args.
2586 set dummy gcc; ac_word=$2
2587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2588 $as_echo_n "checking for $ac_word... " >&6; }
2589 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2590 $as_echo_n "(cached) " >&6
2592 if test -n "$ac_ct_CC"; then
2593 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602 ac_cv_prog_ac_ct_CC="gcc"
2603 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2613 if test -n "$ac_ct_CC"; then
2614 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2615 $as_echo "$ac_ct_CC" >&6; }
2617 { $as_echo "$as_me:$LINENO: result: no" >&5
2618 $as_echo "no" >&6; }
2621 if test "x$ac_ct_CC" = x; then
2624 case $cross_compiling:$ac_tool_warned in
2626 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2628 ac_tool_warned=yes ;;
2636 if test -z "$CC"; then
2637 if test -n "$ac_tool_prefix"; then
2638 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2639 set dummy ${ac_tool_prefix}cc; ac_word=$2
2640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if test "${ac_cv_prog_CC+set}" = set; then
2643 $as_echo_n "(cached) " >&6
2645 if test -n "$CC"; then
2646 ac_cv_prog_CC="$CC" # Let the user override the test.
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_CC="${ac_tool_prefix}cc"
2656 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 if test -n "$CC"; then
2667 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2668 $as_echo "$CC" >&6; }
2670 { $as_echo "$as_me:$LINENO: result: no" >&5
2671 $as_echo "no" >&6; }
2677 if test -z "$CC"; then
2678 # Extract the first word of "cc", so it can be a program name with args.
2679 set dummy cc; ac_word=$2
2680 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if test "${ac_cv_prog_CC+set}" = set; then
2683 $as_echo_n "(cached) " >&6
2685 if test -n "$CC"; then
2686 ac_cv_prog_CC="$CC" # Let the user override the test.
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2697 ac_prog_rejected=yes
2701 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 if test $ac_prog_rejected = yes; then
2709 # We found a bogon in the path, so make sure we never use it.
2710 set dummy $ac_cv_prog_CC
2712 if test $# != 0; then
2713 # We chose a different compiler from the bogus one.
2714 # However, it has the same basename, so the bogon will be chosen
2715 # first if we set CC to just the basename; use the full file name.
2717 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2723 if test -n "$CC"; then
2724 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2725 $as_echo "$CC" >&6; }
2727 { $as_echo "$as_me:$LINENO: result: no" >&5
2728 $as_echo "no" >&6; }
2733 if test -z "$CC"; then
2734 if test -n "$ac_tool_prefix"; then
2735 for ac_prog in cl.exe
2737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2738 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2739 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if test "${ac_cv_prog_CC+set}" = set; then
2742 $as_echo_n "(cached) " >&6
2744 if test -n "$CC"; then
2745 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2755 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 if test -n "$CC"; then
2766 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2767 $as_echo "$CC" >&6; }
2769 { $as_echo "$as_me:$LINENO: result: no" >&5
2770 $as_echo "no" >&6; }
2774 test -n "$CC" && break
2777 if test -z "$CC"; then
2779 for ac_prog in cl.exe
2781 # Extract the first word of "$ac_prog", so it can be a program name with args.
2782 set dummy $ac_prog; ac_word=$2
2783 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2784 $as_echo_n "checking for $ac_word... " >&6; }
2785 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2786 $as_echo_n "(cached) " >&6
2788 if test -n "$ac_ct_CC"; then
2789 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798 ac_cv_prog_ac_ct_CC="$ac_prog"
2799 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2809 if test -n "$ac_ct_CC"; then
2810 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2811 $as_echo "$ac_ct_CC" >&6; }
2813 { $as_echo "$as_me:$LINENO: result: no" >&5
2814 $as_echo "no" >&6; }
2818 test -n "$ac_ct_CC" && break
2821 if test "x$ac_ct_CC" = x; then
2824 case $cross_compiling:$ac_tool_warned in
2826 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2828 ac_tool_warned=yes ;;
2837 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2839 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2840 See \`config.log' for more details." >&5
2841 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2842 See \`config.log' for more details." >&2;}
2843 { (exit 1); exit 1; }; }; }
2845 # Provide some information about the compiler.
2846 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2849 { (ac_try="$ac_compiler --version >&5"
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2855 $as_echo "$ac_try_echo") >&5
2856 (eval "$ac_compiler --version >&5") 2>&5
2858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }
2860 { (ac_try="$ac_compiler -v >&5"
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2866 $as_echo "$ac_try_echo") >&5
2867 (eval "$ac_compiler -v >&5") 2>&5
2869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }
2871 { (ac_try="$ac_compiler -V >&5"
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2877 $as_echo "$ac_try_echo") >&5
2878 (eval "$ac_compiler -V >&5") 2>&5
2880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }
2883 cat >conftest.$ac_ext <<_ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2898 ac_clean_files_save=$ac_clean_files
2899 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2900 # Try to create an executable without -o first, disregard a.out.
2901 # It will help us diagnose broken compilers, and finding out an intuition
2903 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2904 $as_echo_n "checking for C compiler default output file name... " >&6; }
2905 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2907 # The possible output files:
2908 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2911 for ac_file in $ac_files
2914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2915 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2920 if { (ac_try="$ac_link_default"
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2926 $as_echo "$ac_try_echo") >&5
2927 (eval "$ac_link_default") 2>&5
2929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; then
2931 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2932 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2933 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2934 # so that the user can short-circuit this test for compilers unknown to
2936 for ac_file in $ac_files ''
2938 test -f "$ac_file" || continue
2940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2943 # We found the default executable, but exeext='' is most
2947 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2949 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2951 # We set ac_cv_exeext here because the later test for it is not
2952 # safe: cross compilers may not add the suffix if given an `-o'
2953 # argument, so we may need to know it at that point already.
2954 # Even if this section looks crufty: it has the advantage of
2961 test "$ac_cv_exeext" = no && ac_cv_exeext=
2967 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2968 $as_echo "$ac_file" >&6; }
2969 if test -z "$ac_file"; then
2970 $as_echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2973 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2975 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2976 See \`config.log' for more details." >&5
2977 $as_echo "$as_me: error: C compiler cannot create executables
2978 See \`config.log' for more details." >&2;}
2979 { (exit 77); exit 77; }; }; }
2982 ac_exeext=$ac_cv_exeext
2984 # Check that the compiler produces executables we can run. If not, either
2985 # the compiler is broken, or we cross compile.
2986 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2987 $as_echo_n "checking whether the C compiler works... " >&6; }
2988 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2989 # If not cross compiling, check that we can run a simple program.
2990 if test "$cross_compiling" != yes; then
2991 if { ac_try='./$ac_file'
2992 { (case "(($ac_try" in
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2997 $as_echo "$ac_try_echo") >&5
2998 (eval "$ac_try") 2>&5
3000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; }; then
3004 if test "$cross_compiling" = maybe; then
3007 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3010 If you meant to cross compile, use \`--host'.
3011 See \`config.log' for more details." >&5
3012 $as_echo "$as_me: error: cannot run C compiled programs.
3013 If you meant to cross compile, use \`--host'.
3014 See \`config.log' for more details." >&2;}
3015 { (exit 1); exit 1; }; }; }
3019 { $as_echo "$as_me:$LINENO: result: yes" >&5
3020 $as_echo "yes" >&6; }
3022 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3023 ac_clean_files=$ac_clean_files_save
3024 # Check that the compiler produces executables we can run. If not, either
3025 # the compiler is broken, or we cross compile.
3026 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3027 $as_echo_n "checking whether we are cross compiling... " >&6; }
3028 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3029 $as_echo "$cross_compiling" >&6; }
3031 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3032 $as_echo_n "checking for suffix of executables... " >&6; }
3033 if { (ac_try="$ac_link"
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3039 $as_echo "$ac_try_echo") >&5
3040 (eval "$ac_link") 2>&5
3042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; then
3044 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3045 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3046 # work properly (i.e., refer to `conftest.exe'), while it won't with
3048 for ac_file in conftest.exe conftest conftest.*; do
3049 test -f "$ac_file" || continue
3051 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3052 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3058 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3060 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3061 See \`config.log' for more details." >&5
3062 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3063 See \`config.log' for more details." >&2;}
3064 { (exit 1); exit 1; }; }; }
3067 rm -rf conftest$ac_cv_exeext
3068 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3069 $as_echo "$ac_cv_exeext" >&6; }
3071 rm -rf conftest.$ac_ext
3072 EXEEXT=$ac_cv_exeext
3074 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3075 $as_echo_n "checking for suffix of object files... " >&6; }
3076 if test "${ac_cv_objext+set}" = set; then
3077 $as_echo_n "(cached) " >&6
3079 cat >conftest.$ac_ext <<_ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3094 rm -rf conftest.o conftest.obj
3095 if { (ac_try="$ac_compile"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3101 $as_echo "$ac_try_echo") >&5
3102 (eval "$ac_compile") 2>&5
3104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; then
3106 for ac_file in conftest.o conftest.obj conftest.*; do
3107 test -f "$ac_file" || continue;
3109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3110 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3115 $as_echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3120 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3121 See \`config.log' for more details." >&5
3122 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3123 See \`config.log' for more details." >&2;}
3124 { (exit 1); exit 1; }; }; }
3127 rm -rf conftest.$ac_cv_objext conftest.$ac_ext
3129 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3130 $as_echo "$ac_cv_objext" >&6; }
3131 OBJEXT=$ac_cv_objext
3133 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3134 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3135 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3136 $as_echo_n "(cached) " >&6
3138 cat >conftest.$ac_ext <<_ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3156 rm -rf conftest.$ac_objext
3157 if { (ac_try="$ac_compile"
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3163 $as_echo "$ac_try_echo") >&5
3164 (eval "$ac_compile") 2>conftest.er1
3166 grep -v '^ *+' conftest.er1 >conftest.err
3168 cat conftest.err >&5
3169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } && {
3171 test -z "$ac_c_werror_flag" ||
3172 test ! -s conftest.err
3173 } && test -s conftest.$ac_objext; then
3176 $as_echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3183 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3186 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3187 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3188 if test $ac_compiler_gnu = yes; then
3193 ac_test_CFLAGS=${CFLAGS+set}
3194 ac_save_CFLAGS=$CFLAGS
3195 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3196 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3197 if test "${ac_cv_prog_cc_g+set}" = set; then
3198 $as_echo_n "(cached) " >&6
3200 ac_save_c_werror_flag=$ac_c_werror_flag
3201 ac_c_werror_flag=yes
3204 cat >conftest.$ac_ext <<_ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3219 rm -rf conftest.$ac_objext
3220 if { (ac_try="$ac_compile"
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3226 $as_echo "$ac_try_echo") >&5
3227 (eval "$ac_compile") 2>conftest.er1
3229 grep -v '^ *+' conftest.er1 >conftest.err
3231 cat conftest.err >&5
3232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } && {
3234 test -z "$ac_c_werror_flag" ||
3235 test ! -s conftest.err
3236 } && test -s conftest.$ac_objext; then
3239 $as_echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3243 cat >conftest.$ac_ext <<_ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3258 rm -rf conftest.$ac_objext
3259 if { (ac_try="$ac_compile"
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3265 $as_echo "$ac_try_echo") >&5
3266 (eval "$ac_compile") 2>conftest.er1
3268 grep -v '^ *+' conftest.er1 >conftest.err
3270 cat conftest.err >&5
3271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } && {
3273 test -z "$ac_c_werror_flag" ||
3274 test ! -s conftest.err
3275 } && test -s conftest.$ac_objext; then
3278 $as_echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3281 ac_c_werror_flag=$ac_save_c_werror_flag
3283 cat >conftest.$ac_ext <<_ACEOF
3286 cat confdefs.h >>conftest.$ac_ext
3287 cat >>conftest.$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3298 rm -rf conftest.$ac_objext
3299 if { (ac_try="$ac_compile"
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3305 $as_echo "$ac_try_echo") >&5
3306 (eval "$ac_compile") 2>conftest.er1
3308 grep -v '^ *+' conftest.er1 >conftest.err
3310 cat conftest.err >&5
3311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } && {
3313 test -z "$ac_c_werror_flag" ||
3314 test ! -s conftest.err
3315 } && test -s conftest.$ac_objext; then
3318 $as_echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 ac_c_werror_flag=$ac_save_c_werror_flag
3333 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3334 $as_echo "$ac_cv_prog_cc_g" >&6; }
3335 if test "$ac_test_CFLAGS" = set; then
3336 CFLAGS=$ac_save_CFLAGS
3337 elif test $ac_cv_prog_cc_g = yes; then
3338 if test "$GCC" = yes; then
3344 if test "$GCC" = yes; then
3350 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3351 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3352 if test "${ac_cv_prog_cc_c89+set}" = set; then
3353 $as_echo_n "(cached) " >&6
3355 ac_cv_prog_cc_c89=no
3357 cat >conftest.$ac_ext <<_ACEOF
3360 cat confdefs.h >>conftest.$ac_ext
3361 cat >>conftest.$ac_ext <<_ACEOF
3362 /* end confdefs.h. */
3365 #include <sys/types.h>
3366 #include <sys/stat.h>
3367 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3368 struct buf { int x; };
3369 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3370 static char *e (p, i)
3376 static char *f (char * (*g) (char **, int), char **p, ...)
3381 s = g (p, va_arg (v,int));
3386 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3387 function prototypes and stuff, but not '\xHH' hex character constants.
3388 These don't provoke an error unfortunately, instead are silently treated
3389 as 'x'. The following induces an error, until -std is added to get
3390 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3391 array size at least. It's necessary to write '\x00'==0 to get something
3392 that's true only with -std. */
3393 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3395 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3396 inside strings and character constants. */
3398 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3400 int test (int i, double x);
3401 struct s1 {int (*f) (int a);};
3402 struct s2 {int (*f) (double a);};
3403 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3409 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3414 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3415 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3417 CC="$ac_save_CC $ac_arg"
3418 rm -rf conftest.$ac_objext
3419 if { (ac_try="$ac_compile"
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3425 $as_echo "$ac_try_echo") >&5
3426 (eval "$ac_compile") 2>conftest.er1
3428 grep -v '^ *+' conftest.er1 >conftest.err
3430 cat conftest.err >&5
3431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } && {
3433 test -z "$ac_c_werror_flag" ||
3434 test ! -s conftest.err
3435 } && test -s conftest.$ac_objext; then
3436 ac_cv_prog_cc_c89=$ac_arg
3438 $as_echo "$as_me: failed program was:" >&5
3439 sed 's/^/| /' conftest.$ac_ext >&5
3444 rm -f core conftest.err conftest.$ac_objext
3445 test "x$ac_cv_prog_cc_c89" != "xno" && break
3447 rm -rf conftest.$ac_ext
3452 case "x$ac_cv_prog_cc_c89" in
3454 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3455 $as_echo "none needed" >&6; } ;;
3457 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3458 $as_echo "unsupported" >&6; } ;;
3460 CC="$CC $ac_cv_prog_cc_c89"
3461 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3462 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3467 ac_cpp='$CPP $CPPFLAGS'
3468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473 if test -z "$GCC"; then
3475 { $as_echo "$as_me:$LINENO: checking how to request ANSI compilation" >&5
3476 $as_echo_n "checking how to request ANSI compilation... " >&6; }
3479 { $as_echo "$as_me:$LINENO: result: HPUX: adding -Ae" >&5
3480 $as_echo "HPUX: adding -Ae" >&6; }
3484 { $as_echo "$as_me:$LINENO: result: AIX: adding -qlanglvl=ansi -qhalt=e" >&5
3485 $as_echo "AIX: adding -qlanglvl=ansi -qhalt=e" >&6; }
3486 CC="$CC -qlanglvl=ansi -qhalt=e"
3489 { $as_echo "$as_me:$LINENO: result: DEC: adding -std1 -ieee" >&5
3490 $as_echo "DEC: adding -std1 -ieee" >&6; }
3494 { $as_echo "$as_me:$LINENO: result: no idea" >&5
3495 $as_echo "no idea" >&6; }
3502 { $as_echo "$as_me:$LINENO: result: Solaris: adding -D__EXTENSIONS__" >&5
3503 $as_echo "Solaris: adding -D__EXTENSIONS__" >&6; }
3504 CC="$CC -D__EXTENSIONS__"
3511 { $as_echo "$as_me:$LINENO: checking whether the compiler works on ANSI C" >&5
3512 $as_echo_n "checking whether the compiler works on ANSI C... " >&6; }
3513 if test "$cross_compiling" = yes; then
3514 { { $as_echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
3515 $as_echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
3516 { (exit 1); exit 1; }; }
3518 cat >conftest.$ac_ext <<_ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 main(int ac, char **av) { return 0; }
3526 rm -rf conftest$ac_exeext
3527 if { (ac_try="$ac_link"
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3533 $as_echo "$ac_try_echo") >&5
3534 (eval "$ac_link") 2>&5
3536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3538 { (case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3543 $as_echo "$ac_try_echo") >&5
3544 (eval "$ac_try") 2>&5
3546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; }; then
3548 { $as_echo "$as_me:$LINENO: result: yes" >&5
3549 $as_echo "yes" >&6; }
3551 $as_echo "$as_me: program exited with status $ac_status" >&5
3552 $as_echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3556 { $as_echo "$as_me:$LINENO: result: no" >&5
3557 $as_echo "no" >&6; }
3558 { { $as_echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
3559 $as_echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
3560 { (exit 1); exit 1; }; }
3562 rm -rf conftest.dSYM
3563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3568 if test -n "$GCC"; then
3569 { $as_echo "$as_me:$LINENO: result: Turning on gcc compiler warnings." >&5
3570 $as_echo "Turning on gcc compiler warnings." >&6; }
3571 CC="$CC -pedantic -Wall -Wstrict-prototypes -Wnested-externs -Wmissing-prototypes"
3572 OBJCC="$OBJCC -Wall"
3573 # As of gcc 3.4, we have "-Wdeclaration-after-statement"
3574 # and so perhaps now we can do without -pedantic?
3577 *-irix5* |*-irix6.0-3* )
3578 { $as_echo "$as_me:$LINENO: result: Turning on SGI compiler warnings." >&5
3579 $as_echo "Turning on SGI compiler warnings." >&6; }
3580 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
3583 # if test -z "$GCC"; then
3584 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
3585 # CC="$CC -migrate -w0 -verbose -warnprotos"
3591 if test -n "$GCC"; then
3592 { $as_echo "$as_me:$LINENO: checking whether gcc accepts -Wno-overlength-strings" >&5
3593 $as_echo_n "checking whether gcc accepts -Wno-overlength-strings... " >&6; }
3594 if test "${ac_cv_gcc_accepts_no_overlength+set}" = set; then
3595 $as_echo_n "(cached) " >&6
3597 rm -rf conftest.$ac_ext
3598 touch conftest.$ac_ext
3599 if ( ( gcc -c -Wno-overlength-strings conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3600 grep unrecognized >/dev/null ); then
3601 ac_cv_gcc_accepts_no_overlength=no
3603 ac_cv_gcc_accepts_no_overlength=yes
3604 CC="$CC -Wno-overlength-strings"
3607 { $as_echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_overlength" >&5
3608 $as_echo "$ac_cv_gcc_accepts_no_overlength" >&6; }
3609 ac_gcc_accepts_no_overlength="$ac_cv_gcc_accepts_no_overlength"
3612 if test -n "$GCC"; then
3613 { $as_echo "$as_me:$LINENO: checking whether gcc accepts -Wdeclaration-after-statement" >&5
3614 $as_echo_n "checking whether gcc accepts -Wdeclaration-after-statement... " >&6; }
3615 if test "${ac_cv_gcc_accepts_no_decl_after+set}" = set; then
3616 $as_echo_n "(cached) " >&6
3618 rm -rf conftest.$ac_ext
3619 touch conftest.$ac_ext
3620 if ( ( gcc -c -Wdeclaration-after-statement conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3621 grep unrecognized >/dev/null ); then
3622 ac_cv_gcc_accepts_no_decl_after=no
3624 ac_cv_gcc_accepts_no_decl_after=yes
3625 CC="$CC -Wdeclaration-after-statement"
3628 { $as_echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_decl_after" >&5
3629 $as_echo "$ac_cv_gcc_accepts_no_decl_after" >&6; }
3630 ac_gcc_accepts_no_decl_after="$ac_cv_gcc_accepts_no_decl_after"
3633 if test -n "$GCC"; then
3634 { $as_echo "$as_me:$LINENO: checking whether gcc accepts -no-cpp-precomp" >&5
3635 $as_echo_n "checking whether gcc accepts -no-cpp-precomp... " >&6; }
3636 if test "${ac_cv_gcc_accepts_no_cpp_precomp+set}" = set; then
3637 $as_echo_n "(cached) " >&6
3639 rm -rf conftest.$ac_ext
3640 touch conftest.$ac_ext
3641 if ( ( gcc -c -no-cpp-precomp conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3642 grep unrecognized >/dev/null ); then
3643 ac_cv_gcc_accepts_no_cpp_precomp=no
3645 ac_cv_gcc_accepts_no_cpp_precomp=yes
3646 CC="$CC -no-cpp-precomp"
3649 { $as_echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_cpp_precomp" >&5
3650 $as_echo "$ac_cv_gcc_accepts_no_cpp_precomp" >&6; }
3651 ac_gcc_accepts_no_cpp_precomp="$ac_cv_gcc_accepts_no_cpp_precomp"
3654 if test -n "$GCC"; then
3658 # Fucking Apple let // comments sneak into OpenGL headers, so
3659 # we *must* allow // comments when compiling on Mac OS 10.6! FUCK!
3662 if test -n "$GCC"; then
3663 { $as_echo "$as_me:$LINENO: checking whether gcc accepts -std=c89" >&5
3664 $as_echo_n "checking whether gcc accepts -std=c89... " >&6; }
3665 if test "${ac_cv_gcc_accepts_std+set}" = set; then
3666 $as_echo_n "(cached) " >&6
3668 rm -rf conftest.$ac_ext
3669 touch conftest.$ac_ext
3670 if ( ( gcc -c -std=c89 conftest.$ac_ext -o/dev/null >/dev/null ) 2>&1 | \
3671 grep unrecognized >/dev/null ); then
3672 ac_cv_gcc_accepts_std=no
3674 ac_cv_gcc_accepts_std=yes
3678 { $as_echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_std" >&5
3679 $as_echo "$ac_cv_gcc_accepts_std" >&6; }
3680 ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
3686 { $as_echo "$as_me:$LINENO: result: Disabling C++ comments in ANSI C code." >&5
3687 $as_echo "Disabling C++ comments in ANSI C code." >&6; }
3689 # The reason that // comments are banned from xscreensaver is that gcc is
3690 # basically the only compiler in the world that supports them in C code.
3691 # All other vendors support them only in their C++ compilers, not in their
3692 # ANSI C compilers. This means that it's a portability problem: every time
3693 # these comments have snuck into the xscreensaver source code, I've gotten
3694 # complaints about it the next day. So we turn off support for them in gcc
3695 # as well to prevent them from accidentially slipping in.
3697 if test "$ac_gcc_accepts_std" = yes ; then
3699 # -std=c89 defines __STRICT_ANSI__, which we don't want.
3700 # (That appears to be the only additional preprocessor symbol
3701 # it defines, in addition to the syntax changes it makes.)
3703 # -std=gnu89 is no good, because // comments were a GNU extension
3704 # before they were in the ANSI C 99 spec... (gcc 2.96 permits //
3705 # with -std=gnu89 but not with -std=c89.)
3707 # $CC already contains "-std=c89" via AC_GCC_ACCEPTS_STD
3708 CC="$CC -U__STRICT_ANSI__"
3711 # CC="$CC -Wp,-lang-c89"
3716 ac_cpp='$CPP $CPPFLAGS'
3717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3721 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3722 # On Suns, sometimes $CPP names a directory.
3723 if test -n "$CPP" && test -d "$CPP"; then
3726 if test -z "$CPP"; then
3727 if test "${ac_cv_prog_CPP+set}" = set; then
3728 $as_echo_n "(cached) " >&6
3730 # Double quotes because CPP needs to be expanded
3731 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3734 for ac_c_preproc_warn_flag in '' yes
3736 # Use a header file that comes with gcc, so configuring glibc
3737 # with a fresh cross-compiler works.
3738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3739 # <limits.h> exists even on freestanding compilers.
3740 # On the NeXT, cc -E runs the code through the compiler's parser,
3741 # not just through cpp. "Syntax error" is here to catch this case.
3742 cat >conftest.$ac_ext <<_ACEOF
3745 cat confdefs.h >>conftest.$ac_ext
3746 cat >>conftest.$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3749 # include <limits.h>
3751 # include <assert.h>
3755 if { (ac_try="$ac_cpp conftest.$ac_ext"
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3761 $as_echo "$ac_try_echo") >&5
3762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3764 grep -v '^ *+' conftest.er1 >conftest.err
3766 cat conftest.err >&5
3767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } >/dev/null && {
3769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3770 test ! -s conftest.err
3774 $as_echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3777 # Broken: fails on valid input.
3781 rm -rf conftest.err conftest.$ac_ext
3783 # OK, works on sane cases. Now check whether nonexistent headers
3784 # can be detected and how.
3785 cat >conftest.$ac_ext <<_ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h. */
3791 #include <ac_nonexistent.h>
3793 if { (ac_try="$ac_cpp conftest.$ac_ext"
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3799 $as_echo "$ac_try_echo") >&5
3800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3802 grep -v '^ *+' conftest.er1 >conftest.err
3804 cat conftest.err >&5
3805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } >/dev/null && {
3807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3808 test ! -s conftest.err
3810 # Broken: success on invalid input.
3813 $as_echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3816 # Passes both tests.
3821 rm -rf conftest.err conftest.$ac_ext
3824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3825 rm -rf conftest.err conftest.$ac_ext
3826 if $ac_preproc_ok; then
3838 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3839 $as_echo "$CPP" >&6; }
3841 for ac_c_preproc_warn_flag in '' yes
3843 # Use a header file that comes with gcc, so configuring glibc
3844 # with a fresh cross-compiler works.
3845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3846 # <limits.h> exists even on freestanding compilers.
3847 # On the NeXT, cc -E runs the code through the compiler's parser,
3848 # not just through cpp. "Syntax error" is here to catch this case.
3849 cat >conftest.$ac_ext <<_ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3856 # include <limits.h>
3858 # include <assert.h>
3862 if { (ac_try="$ac_cpp conftest.$ac_ext"
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3868 $as_echo "$ac_try_echo") >&5
3869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3871 grep -v '^ *+' conftest.er1 >conftest.err
3873 cat conftest.err >&5
3874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } >/dev/null && {
3876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3877 test ! -s conftest.err
3881 $as_echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3884 # Broken: fails on valid input.
3888 rm -rf conftest.err conftest.$ac_ext
3890 # OK, works on sane cases. Now check whether nonexistent headers
3891 # can be detected and how.
3892 cat >conftest.$ac_ext <<_ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3898 #include <ac_nonexistent.h>
3900 if { (ac_try="$ac_cpp conftest.$ac_ext"
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3906 $as_echo "$ac_try_echo") >&5
3907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3909 grep -v '^ *+' conftest.er1 >conftest.err
3911 cat conftest.err >&5
3912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } >/dev/null && {
3914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3915 test ! -s conftest.err
3917 # Broken: success on invalid input.
3920 $as_echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3923 # Passes both tests.
3928 rm -rf conftest.err conftest.$ac_ext
3931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3932 rm -rf conftest.err conftest.$ac_ext
3933 if $ac_preproc_ok; then
3936 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3939 See \`config.log' for more details." >&5
3940 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3941 See \`config.log' for more details." >&2;}
3942 { (exit 1); exit 1; }; }; }
3946 ac_cpp='$CPP $CPPFLAGS'
3947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3952 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3953 if test "${ac_cv_c_const+set}" = set; then
3954 $as_echo_n "(cached) " >&6
3956 cat >conftest.$ac_ext <<_ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3966 /* FIXME: Include the comments suggested by Paul. */
3968 /* Ultrix mips cc rejects this. */
3969 typedef int charset[2];
3971 /* SunOS 4.1.1 cc rejects this. */
3972 char const *const *pcpcc;
3974 /* NEC SVR4.0.2 mips cc rejects this. */
3975 struct point {int x, y;};
3976 static struct point const zero = {0,0};
3977 /* AIX XL C 1.02.0.0 rejects this.
3978 It does not let you subtract one const X* pointer from another in
3979 an arm of an if-expression whose if-part is not a constant
3981 const char *g = "string";
3982 pcpcc = &g + (g ? g-g : 0);
3983 /* HPUX 7.0 cc rejects these. */
3985 ppc = (char**) pcpcc;
3986 pcpcc = (char const *const *) ppc;
3987 { /* SCO 3.2v4 cc rejects this. */
3989 char const *s = 0 ? (char *) 0 : (char const *) 0;
3994 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3996 const int *foo = &x[0];
3999 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4000 typedef const int *iptr;
4004 { /* AIX XL C 1.02.0.0 rejects this saying
4005 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4006 struct s { int j; const int *ap[3]; };
4007 struct s *b; b->j = 5;
4009 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4013 return !cs[0] && !zero.x;
4020 rm -rf conftest.$ac_objext
4021 if { (ac_try="$ac_compile"
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4027 $as_echo "$ac_try_echo") >&5
4028 (eval "$ac_compile") 2>conftest.er1
4030 grep -v '^ *+' conftest.er1 >conftest.err
4032 cat conftest.err >&5
4033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } && {
4035 test -z "$ac_c_werror_flag" ||
4036 test ! -s conftest.err
4037 } && test -s conftest.$ac_objext; then
4040 $as_echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4049 $as_echo "$ac_cv_c_const" >&6; }
4050 if test $ac_cv_c_const = no; then
4052 cat >>confdefs.h <<\_ACEOF
4058 { $as_echo "$as_me:$LINENO: checking for inline" >&5
4059 $as_echo_n "checking for inline... " >&6; }
4060 if test "${ac_cv_c_inline+set}" = set; then
4061 $as_echo_n "(cached) " >&6
4064 for ac_kw in inline __inline__ __inline; do
4065 cat >conftest.$ac_ext <<_ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4073 static $ac_kw foo_t static_foo () {return 0; }
4074 $ac_kw foo_t foo () {return 0; }
4078 rm -rf conftest.$ac_objext
4079 if { (ac_try="$ac_compile"
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4085 $as_echo "$ac_try_echo") >&5
4086 (eval "$ac_compile") 2>conftest.er1
4088 grep -v '^ *+' conftest.er1 >conftest.err
4090 cat conftest.err >&5
4091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } && {
4093 test -z "$ac_c_werror_flag" ||
4094 test ! -s conftest.err
4095 } && test -s conftest.$ac_objext; then
4096 ac_cv_c_inline=$ac_kw
4098 $as_echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 test "$ac_cv_c_inline" != no && break
4109 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4110 $as_echo "$ac_cv_c_inline" >&6; }
4113 case $ac_cv_c_inline in
4116 case $ac_cv_c_inline in
4118 *) ac_val=$ac_cv_c_inline;;
4120 cat >>confdefs.h <<_ACEOF
4122 #define inline $ac_val
4129 ac_bc_result=`echo 6+9 | bc 2>/dev/null`
4130 { $as_echo "$as_me:$LINENO: checking for bc" >&5
4131 $as_echo_n "checking for bc... " >&6; }
4132 if test "$ac_bc_result" = "15" ; then
4133 { $as_echo "$as_me:$LINENO: result: yes" >&5
4134 $as_echo "yes" >&6; }
4136 { $as_echo "$as_me:$LINENO: result: no" >&5
4137 $as_echo "no" >&6; }
4139 { { $as_echo "$as_me:$LINENO: error: Your system doesn't have \"bc\", which has been a standard
4140 part of Unix since the 1970s. Come back when your vendor
4141 has grown a clue." >&5
4142 $as_echo "$as_me: error: Your system doesn't have \"bc\", which has been a standard
4143 part of Unix since the 1970s. Come back when your vendor
4144 has grown a clue." >&2;}
4145 { (exit 1); exit 1; }; }
4149 # stuff for Makefiles
4150 # Find a good install program. We prefer a C program (faster),
4151 # so one script is as good as another. But avoid the broken or
4152 # incompatible versions:
4153 # SysV /etc/install, /usr/sbin/install
4154 # SunOS /usr/etc/install
4155 # IRIX /sbin/install
4157 # AmigaOS /C/install, which installs bootblocks on floppy discs
4158 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4159 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4160 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4161 # OS/2's system install, which has a completely different semantic
4162 # ./install, which can be erroneously created by make from ./install.sh.
4163 # Reject install programs that cannot install multiple files.
4164 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4165 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4166 if test -z "$INSTALL"; then
4167 if test "${ac_cv_path_install+set}" = set; then
4168 $as_echo_n "(cached) " >&6
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 test -z "$as_dir" && as_dir=.
4175 # Account for people who put trailing slashes in PATH elements.
4177 ./ | .// | /cC/* | \
4178 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4179 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4182 # OSF1 and SCO ODT 3.0 have their own names for install.
4183 # Don't use installbsd from OSF since it installs stuff as root
4185 for ac_prog in ginstall scoinst install; do
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4188 if test $ac_prog = install &&
4189 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4190 # AIX install. It has an incompatible calling convention.
4192 elif test $ac_prog = install &&
4193 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4194 # program-specific install script used by HP pwplus--don't use.
4197 rm -rf conftest.one conftest.two conftest.dir
4198 echo one > conftest.one
4199 echo two > conftest.two
4201 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4202 test -s conftest.one && test -s conftest.two &&
4203 test -s conftest.dir/conftest.one &&
4204 test -s conftest.dir/conftest.two
4206 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4219 rm -rf conftest.one conftest.two conftest.dir
4222 if test "${ac_cv_path_install+set}" = set; then
4223 INSTALL=$ac_cv_path_install
4225 # As a last resort, use the slow shell script. Don't cache a
4226 # value for INSTALL within a source directory, because that will
4227 # break other packages using the cache if that directory is
4228 # removed, or if the value is a relative name.
4229 INSTALL=$ac_install_sh
4232 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4233 $as_echo "$INSTALL" >&6; }
4235 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4236 # It thinks the first close brace ends the variable substitution.
4237 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4239 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4241 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4243 { $as_echo "$as_me:$LINENO: checking whether \"\${INSTALL} -d\" creates intermediate directories" >&5
4244 $as_echo_n "checking whether \"\${INSTALL} -d\" creates intermediate directories... " >&6; }
4245 if test "${ac_cv_install_d_creates_dirs+set}" = set; then
4246 $as_echo_n "(cached) " >&6
4248 ac_cv_install_d_creates_dirs=no
4250 if mkdir conftestdir; then
4251 cd conftestdir 2>/dev/null
4252 ${INSTALL} -d `pwd`/dir1/dir2 >/dev/null 2>&1
4253 if test -d dir1/dir2/. ; then
4254 ac_cv_install_d_creates_dirs=yes
4261 { $as_echo "$as_me:$LINENO: result: $ac_cv_install_d_creates_dirs" >&5
4262 $as_echo "$ac_cv_install_d_creates_dirs" >&6; }
4264 if test "$ac_cv_install_d_creates_dirs" = no ; then
4265 { $as_echo "$as_me:$LINENO: checking whether \"mkdir -p\" creates intermediate directories" >&5
4266 $as_echo_n "checking whether \"mkdir -p\" creates intermediate directories... " >&6; }
4267 if test "${ac_cv_mkdir_p_creates_dirs+set}" = set; then
4268 $as_echo_n "(cached) " >&6
4270 ac_cv_mkdir_p_creates_dirs=no
4272 if mkdir conftestdir; then
4273 cd conftestdir 2>/dev/null
4274 mkdir -p dir1/dir2 >/dev/null 2>&1
4275 if test -d dir1/dir2/. ; then
4276 ac_cv_mkdir_p_creates_dirs=yes
4283 { $as_echo "$as_me:$LINENO: result: $ac_cv_mkdir_p_creates_dirs" >&5
4284 $as_echo "$ac_cv_mkdir_p_creates_dirs" >&6; }
4287 if test "$ac_cv_install_d_creates_dirs" = yes ; then
4288 INSTALL_DIRS='${INSTALL} -d'
4289 elif test "$ac_cv_mkdir_p_creates_dirs" = yes ; then
4290 INSTALL_DIRS='mkdir -p'
4293 INSTALL_DIRS='${INSTALL} -d'
4296 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4297 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4299 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4300 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4301 $as_echo_n "(cached) " >&6
4303 cat >conftest.make <<\_ACEOF
4306 @echo '@@@%%%=$(MAKE)=@@@%%%'
4308 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4309 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4311 eval ac_cv_prog_make_${ac_make}_set=yes;;
4313 eval ac_cv_prog_make_${ac_make}_set=no;;
4315 rm -rf conftest.make
4317 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4318 { $as_echo "$as_me:$LINENO: result: yes" >&5
4319 $as_echo "yes" >&6; }
4322 { $as_echo "$as_me:$LINENO: result: no" >&5
4323 $as_echo "no" >&6; }
4324 SET_MAKE="MAKE=${MAKE-make}"
4328 # By default, autoconf sets INSTALL_SCRIPT to '${INSTALL_PROGRAM}'.
4329 # That's wrong: it should be set to '${INSTALL}', so that one can
4330 # implement the "install-strip" target properly (strip executables,
4331 # but do not try to strip scripts.)
4333 INSTALL_SCRIPT='${INSTALL}'
4337 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4338 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4339 if test "${ac_cv_path_GREP+set}" = set; then
4340 $as_echo_n "(cached) " >&6
4342 if test -z "$GREP"; then
4343 ac_path_GREP_found=false
4344 # Loop through the user's path and test for each of PROGNAME-LIST
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4349 test -z "$as_dir" && as_dir=.
4350 for ac_prog in grep ggrep; do
4351 for ac_exec_ext in '' $ac_executable_extensions; do
4352 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4353 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4354 # Check for GNU ac_path_GREP and select it if it is found.
4355 # Check for GNU $ac_path_GREP
4356 case `"$ac_path_GREP" --version 2>&1` in
4358 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4361 $as_echo_n 0123456789 >"conftest.in"
4364 cat "conftest.in" "conftest.in" >"conftest.tmp"
4365 mv "conftest.tmp" "conftest.in"
4366 cp "conftest.in" "conftest.nl"
4367 $as_echo 'GREP' >> "conftest.nl"
4368 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4369 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4370 ac_count=`expr $ac_count + 1`
4371 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4372 # Best one so far, save it but keep looking for a better one
4373 ac_cv_path_GREP="$ac_path_GREP"
4374 ac_path_GREP_max=$ac_count
4376 # 10*(2^10) chars as input seems more than enough
4377 test $ac_count -gt 10 && break
4379 rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
4382 $ac_path_GREP_found && break 3
4387 if test -z "$ac_cv_path_GREP"; then
4388 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4389 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4390 { (exit 1); exit 1; }; }
4393 ac_cv_path_GREP=$GREP
4397 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4398 $as_echo "$ac_cv_path_GREP" >&6; }
4399 GREP="$ac_cv_path_GREP"
4402 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4403 $as_echo_n "checking for egrep... " >&6; }
4404 if test "${ac_cv_path_EGREP+set}" = set; then
4405 $as_echo_n "(cached) " >&6
4407 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4408 then ac_cv_path_EGREP="$GREP -E"
4410 if test -z "$EGREP"; then
4411 ac_path_EGREP_found=false
4412 # Loop through the user's path and test for each of PROGNAME-LIST
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4417 test -z "$as_dir" && as_dir=.
4418 for ac_prog in egrep; do
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4421 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4422 # Check for GNU ac_path_EGREP and select it if it is found.
4423 # Check for GNU $ac_path_EGREP
4424 case `"$ac_path_EGREP" --version 2>&1` in
4426 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4429 $as_echo_n 0123456789 >"conftest.in"
4432 cat "conftest.in" "conftest.in" >"conftest.tmp"
4433 mv "conftest.tmp" "conftest.in"
4434 cp "conftest.in" "conftest.nl"
4435 $as_echo 'EGREP' >> "conftest.nl"
4436 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4437 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4438 ac_count=`expr $ac_count + 1`
4439 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4440 # Best one so far, save it but keep looking for a better one
4441 ac_cv_path_EGREP="$ac_path_EGREP"
4442 ac_path_EGREP_max=$ac_count
4444 # 10*(2^10) chars as input seems more than enough
4445 test $ac_count -gt 10 && break
4447 rm -rf conftest.in conftest.tmp conftest.nl conftest.out;;
4450 $ac_path_EGREP_found && break 3
4455 if test -z "$ac_cv_path_EGREP"; then
4456 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4457 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4458 { (exit 1); exit 1; }; }
4461 ac_cv_path_EGREP=$EGREP
4466 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4467 $as_echo "$ac_cv_path_EGREP" >&6; }
4468 EGREP="$ac_cv_path_EGREP"
4471 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4472 $as_echo_n "checking for ANSI C header files... " >&6; }
4473 if test "${ac_cv_header_stdc+set}" = set; then
4474 $as_echo_n "(cached) " >&6
4476 cat >conftest.$ac_ext <<_ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4495 rm -rf conftest.$ac_objext
4496 if { (ac_try="$ac_compile"
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4502 $as_echo "$ac_try_echo") >&5
4503 (eval "$ac_compile") 2>conftest.er1
4505 grep -v '^ *+' conftest.er1 >conftest.err
4507 cat conftest.err >&5
4508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } && {
4510 test -z "$ac_c_werror_flag" ||
4511 test ! -s conftest.err
4512 } && test -s conftest.$ac_objext; then
4513 ac_cv_header_stdc=yes
4515 $as_echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4518 ac_cv_header_stdc=no
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4523 if test $ac_cv_header_stdc = yes; then
4524 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4525 cat >conftest.$ac_ext <<_ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4535 $EGREP "memchr" >/dev/null 2>&1; then
4538 ac_cv_header_stdc=no
4544 if test $ac_cv_header_stdc = yes; then
4545 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4546 cat >conftest.$ac_ext <<_ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4556 $EGREP "free" >/dev/null 2>&1; then
4559 ac_cv_header_stdc=no
4565 if test $ac_cv_header_stdc = yes; then
4566 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4567 if test "$cross_compiling" = yes; then
4570 cat >conftest.$ac_ext <<_ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h. */
4578 #if ((' ' & 0x0FF) == 0x020)
4579 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4580 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4582 # define ISLOWER(c) \
4583 (('a' <= (c) && (c) <= 'i') \
4584 || ('j' <= (c) && (c) <= 'r') \
4585 || ('s' <= (c) && (c) <= 'z'))
4586 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4589 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4594 for (i = 0; i < 256; i++)
4595 if (XOR (islower (i), ISLOWER (i))
4596 || toupper (i) != TOUPPER (i))
4601 rm -rf conftest$ac_exeext
4602 if { (ac_try="$ac_link"
4604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605 *) ac_try_echo=$ac_try;;
4607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4608 $as_echo "$ac_try_echo") >&5
4609 (eval "$ac_link") 2>&5
4611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4613 { (case "(($ac_try" in
4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615 *) ac_try_echo=$ac_try;;
4617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4618 $as_echo "$ac_try_echo") >&5
4619 (eval "$ac_try") 2>&5
4621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4625 $as_echo "$as_me: program exited with status $ac_status" >&5
4626 $as_echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4630 ac_cv_header_stdc=no
4632 rm -rf conftest.dSYM
4633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4639 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4640 $as_echo "$ac_cv_header_stdc" >&6; }
4641 if test $ac_cv_header_stdc = yes; then
4643 cat >>confdefs.h <<\_ACEOF
4644 #define STDC_HEADERS 1
4649 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4659 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4660 inttypes.h stdint.h unistd.h
4662 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4663 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4664 $as_echo_n "checking for $ac_header... " >&6; }
4665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4666 $as_echo_n "(cached) " >&6
4668 cat >conftest.$ac_ext <<_ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 $ac_includes_default
4676 #include <$ac_header>
4678 rm -rf conftest.$ac_objext
4679 if { (ac_try="$ac_compile"
4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4685 $as_echo "$ac_try_echo") >&5
4686 (eval "$ac_compile") 2>conftest.er1
4688 grep -v '^ *+' conftest.er1 >conftest.err
4690 cat conftest.err >&5
4691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } && {
4693 test -z "$ac_c_werror_flag" ||
4694 test ! -s conftest.err
4695 } && test -s conftest.$ac_objext; then
4696 eval "$as_ac_Header=yes"
4698 $as_echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4701 eval "$as_ac_Header=no"
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 ac_res=`eval 'as_val=${'$as_ac_Header'}
4707 $as_echo "$as_val"'`
4708 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4709 $as_echo "$ac_res" >&6; }
4710 as_val=`eval 'as_val=${'$as_ac_Header'}
4711 $as_echo "$as_val"'`
4712 if test "x$as_val" = x""yes; then
4713 cat >>confdefs.h <<_ACEOF
4714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4723 for ac_header in unistd.h
4725 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4727 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4728 $as_echo_n "checking for $ac_header... " >&6; }
4729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4730 $as_echo_n "(cached) " >&6
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; }
4737 # Is the header compilable?
4738 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4739 $as_echo_n "checking $ac_header usability... " >&6; }
4740 cat >conftest.$ac_ext <<_ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4746 $ac_includes_default
4747 #include <$ac_header>
4749 rm -rf conftest.$ac_objext
4750 if { (ac_try="$ac_compile"
4752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753 *) ac_try_echo=$ac_try;;
4755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4756 $as_echo "$ac_try_echo") >&5
4757 (eval "$ac_compile") 2>conftest.er1
4759 grep -v '^ *+' conftest.er1 >conftest.err
4761 cat conftest.err >&5
4762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } && {
4764 test -z "$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4766 } && test -s conftest.$ac_objext; then
4767 ac_header_compiler=yes
4769 $as_echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4772 ac_header_compiler=no
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4777 $as_echo "$ac_header_compiler" >&6; }
4779 # Is the header present?
4780 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4781 $as_echo_n "checking $ac_header presence... " >&6; }
4782 cat >conftest.$ac_ext <<_ACEOF
4785 cat confdefs.h >>conftest.$ac_ext
4786 cat >>conftest.$ac_ext <<_ACEOF
4787 /* end confdefs.h. */
4788 #include <$ac_header>
4790 if { (ac_try="$ac_cpp conftest.$ac_ext"
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4796 $as_echo "$ac_try_echo") >&5
4797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4799 grep -v '^ *+' conftest.er1 >conftest.err
4801 cat conftest.err >&5
4802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } >/dev/null && {
4804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4805 test ! -s conftest.err
4807 ac_header_preproc=yes
4809 $as_echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4812 ac_header_preproc=no
4815 rm -rf conftest.err conftest.$ac_ext
4816 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4817 $as_echo "$ac_header_preproc" >&6; }
4819 # So? What about this header?
4820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4823 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4825 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4826 ac_header_preproc=yes
4829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4830 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4832 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4834 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4836 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4838 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4840 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4844 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4845 $as_echo_n "checking for $ac_header... " >&6; }
4846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4847 $as_echo_n "(cached) " >&6
4849 eval "$as_ac_Header=\$ac_header_preproc"
4851 ac_res=`eval 'as_val=${'$as_ac_Header'}
4852 $as_echo "$as_val"'`
4853 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4854 $as_echo "$ac_res" >&6; }
4857 as_val=`eval 'as_val=${'$as_ac_Header'}
4858 $as_echo "$as_val"'`
4859 if test "x$as_val" = x""yes; then
4860 cat >>confdefs.h <<_ACEOF
4861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4868 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
4869 $as_echo_n "checking for mode_t... " >&6; }
4870 if test "${ac_cv_type_mode_t+set}" = set; then
4871 $as_echo_n "(cached) " >&6
4873 ac_cv_type_mode_t=no
4874 cat >conftest.$ac_ext <<_ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4880 $ac_includes_default
4884 if (sizeof (mode_t))
4890 rm -rf conftest.$ac_objext
4891 if { (ac_try="$ac_compile"
4893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894 *) ac_try_echo=$ac_try;;
4896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4897 $as_echo "$ac_try_echo") >&5
4898 (eval "$ac_compile") 2>conftest.er1
4900 grep -v '^ *+' conftest.er1 >conftest.err
4902 cat conftest.err >&5
4903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } && {
4905 test -z "$ac_c_werror_flag" ||
4906 test ! -s conftest.err
4907 } && test -s conftest.$ac_objext; then
4908 cat >conftest.$ac_ext <<_ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4914 $ac_includes_default
4918 if (sizeof ((mode_t)))
4924 rm -rf conftest.$ac_objext
4925 if { (ac_try="$ac_compile"
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4931 $as_echo "$ac_try_echo") >&5
4932 (eval "$ac_compile") 2>conftest.er1
4934 grep -v '^ *+' conftest.er1 >conftest.err
4936 cat conftest.err >&5
4937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } && {
4939 test -z "$ac_c_werror_flag" ||
4940 test ! -s conftest.err
4941 } && test -s conftest.$ac_objext; then
4944 $as_echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4947 ac_cv_type_mode_t=yes
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 $as_echo "$as_me: failed program was:" >&5
4953 sed 's/^/| /' conftest.$ac_ext >&5
4958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4961 $as_echo "$ac_cv_type_mode_t" >&6; }
4962 if test "x$ac_cv_type_mode_t" = x""yes; then
4966 cat >>confdefs.h <<_ACEOF
4972 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
4973 $as_echo_n "checking for pid_t... " >&6; }
4974 if test "${ac_cv_type_pid_t+set}" = set; then
4975 $as_echo_n "(cached) " >&6
4978 cat >conftest.$ac_ext <<_ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4984 $ac_includes_default
4994 rm -rf conftest.$ac_objext
4995 if { (ac_try="$ac_compile"
4997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4998 *) ac_try_echo=$ac_try;;
5000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5001 $as_echo "$ac_try_echo") >&5
5002 (eval "$ac_compile") 2>conftest.er1
5004 grep -v '^ *+' conftest.er1 >conftest.err
5006 cat conftest.err >&5
5007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } && {
5009 test -z "$ac_c_werror_flag" ||
5010 test ! -s conftest.err
5011 } && test -s conftest.$ac_objext; then
5012 cat >conftest.$ac_ext <<_ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5018 $ac_includes_default
5022 if (sizeof ((pid_t)))
5028 rm -rf conftest.$ac_objext
5029 if { (ac_try="$ac_compile"
5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032 *) ac_try_echo=$ac_try;;
5034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5035 $as_echo "$ac_try_echo") >&5
5036 (eval "$ac_compile") 2>conftest.er1
5038 grep -v '^ *+' conftest.er1 >conftest.err
5040 cat conftest.err >&5
5041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } && {
5043 test -z "$ac_c_werror_flag" ||
5044 test ! -s conftest.err
5045 } && test -s conftest.$ac_objext; then
5048 $as_echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5051 ac_cv_type_pid_t=yes
5054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5056 $as_echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5065 $as_echo "$ac_cv_type_pid_t" >&6; }
5066 if test "x$ac_cv_type_pid_t" = x""yes; then
5070 cat >>confdefs.h <<_ACEOF
5076 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5077 $as_echo_n "checking for size_t... " >&6; }
5078 if test "${ac_cv_type_size_t+set}" = set; then
5079 $as_echo_n "(cached) " >&6
5081 ac_cv_type_size_t=no
5082 cat >conftest.$ac_ext <<_ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h. */
5088 $ac_includes_default
5092 if (sizeof (size_t))
5098 rm -rf conftest.$ac_objext
5099 if { (ac_try="$ac_compile"
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5105 $as_echo "$ac_try_echo") >&5
5106 (eval "$ac_compile") 2>conftest.er1
5108 grep -v '^ *+' conftest.er1 >conftest.err
5110 cat conftest.err >&5
5111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } && {
5113 test -z "$ac_c_werror_flag" ||
5114 test ! -s conftest.err
5115 } && test -s conftest.$ac_objext; then
5116 cat >conftest.$ac_ext <<_ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 $ac_includes_default
5126 if (sizeof ((size_t)))
5132 rm -rf conftest.$ac_objext
5133 if { (ac_try="$ac_compile"
5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136 *) ac_try_echo=$ac_try;;
5138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5139 $as_echo "$ac_try_echo") >&5
5140 (eval "$ac_compile") 2>conftest.er1
5142 grep -v '^ *+' conftest.er1 >conftest.err
5144 cat conftest.err >&5
5145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } && {
5147 test -z "$ac_c_werror_flag" ||
5148 test ! -s conftest.err
5149 } && test -s conftest.$ac_objext; then
5152 $as_echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5155 ac_cv_type_size_t=yes
5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160 $as_echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5169 $as_echo "$ac_cv_type_size_t" >&6; }
5170 if test "x$ac_cv_type_size_t" = x""yes; then
5174 cat >>confdefs.h <<_ACEOF
5175 #define size_t unsigned int
5180 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5181 $as_echo_n "checking return type of signal handlers... " >&6; }
5182 if test "${ac_cv_type_signal+set}" = set; then
5183 $as_echo_n "(cached) " >&6
5185 cat >conftest.$ac_ext <<_ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5191 #include <sys/types.h>
5197 return *(signal (0, 0)) (0) == 1;
5202 rm -rf conftest.$ac_objext
5203 if { (ac_try="$ac_compile"
5205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5209 $as_echo "$ac_try_echo") >&5
5210 (eval "$ac_compile") 2>conftest.er1
5212 grep -v '^ *+' conftest.er1 >conftest.err
5214 cat conftest.err >&5
5215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } && {
5217 test -z "$ac_c_werror_flag" ||
5218 test ! -s conftest.err
5219 } && test -s conftest.$ac_objext; then
5220 ac_cv_type_signal=int
5222 $as_echo "$as_me: failed program was:" >&5
5223 sed 's/^/| /' conftest.$ac_ext >&5
5225 ac_cv_type_signal=void
5228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5231 $as_echo "$ac_cv_type_signal" >&6; }
5233 cat >>confdefs.h <<_ACEOF
5234 #define RETSIGTYPE $ac_cv_type_signal
5238 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5239 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5240 if test "${ac_cv_header_time+set}" = set; then
5241 $as_echo_n "(cached) " >&6
5243 cat >conftest.$ac_ext <<_ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5249 #include <sys/types.h>
5250 #include <sys/time.h>
5256 if ((struct tm *) 0)
5262 rm -rf conftest.$ac_objext
5263 if { (ac_try="$ac_compile"
5265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266 *) ac_try_echo=$ac_try;;
5268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5269 $as_echo "$ac_try_echo") >&5
5270 (eval "$ac_compile") 2>conftest.er1
5272 grep -v '^ *+' conftest.er1 >conftest.err
5274 cat conftest.err >&5
5275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } && {
5277 test -z "$ac_c_werror_flag" ||
5278 test ! -s conftest.err
5279 } && test -s conftest.$ac_objext; then
5280 ac_cv_header_time=yes
5282 $as_echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5285 ac_cv_header_time=no
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5291 $as_echo "$ac_cv_header_time" >&6; }
5292 if test $ac_cv_header_time = yes; then
5294 cat >>confdefs.h <<\_ACEOF
5295 #define TIME_WITH_SYS_TIME 1
5300 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5301 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5302 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5303 $as_echo_n "(cached) " >&6
5305 cat >conftest.$ac_ext <<_ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5311 #include <sys/types.h>
5312 #include <sys/wait.h>
5314 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5317 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5325 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5330 rm -rf conftest.$ac_objext
5331 if { (ac_try="$ac_compile"
5333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5334 *) ac_try_echo=$ac_try;;
5336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5337 $as_echo "$ac_try_echo") >&5
5338 (eval "$ac_compile") 2>conftest.er1
5340 grep -v '^ *+' conftest.er1 >conftest.err
5342 cat conftest.err >&5
5343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } && {
5345 test -z "$ac_c_werror_flag" ||
5346 test ! -s conftest.err
5347 } && test -s conftest.$ac_objext; then
5348 ac_cv_header_sys_wait_h=yes
5350 $as_echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 ac_cv_header_sys_wait_h=no
5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5359 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5360 if test $ac_cv_header_sys_wait_h = yes; then
5362 cat >>confdefs.h <<\_ACEOF
5363 #define HAVE_SYS_WAIT_H 1
5374 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5375 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5376 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5377 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5379 $as_echo_n "(cached) " >&6
5381 cat >conftest.$ac_ext <<_ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 #include <sys/types.h>
5399 rm -rf conftest.$ac_objext
5400 if { (ac_try="$ac_compile"
5402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5403 *) ac_try_echo=$ac_try;;
5405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5406 $as_echo "$ac_try_echo") >&5
5407 (eval "$ac_compile") 2>conftest.er1
5409 grep -v '^ *+' conftest.er1 >conftest.err
5411 cat conftest.err >&5
5412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } && {
5414 test -z "$ac_c_werror_flag" ||
5415 test ! -s conftest.err
5416 } && test -s conftest.$ac_objext; then
5417 eval "$as_ac_Header=yes"
5419 $as_echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5422 eval "$as_ac_Header=no"
5425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427 ac_res=`eval 'as_val=${'$as_ac_Header'}
5428 $as_echo "$as_val"'`
5429 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5430 $as_echo "$ac_res" >&6; }
5431 as_val=`eval 'as_val=${'$as_ac_Header'}
5432 $as_echo "$as_val"'`
5433 if test "x$as_val" = x""yes; then
5434 cat >>confdefs.h <<_ACEOF
5435 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5438 ac_header_dirent=$ac_hdr; break
5442 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5443 if test $ac_header_dirent = dirent.h; then
5444 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5445 $as_echo_n "checking for library containing opendir... " >&6; }
5446 if test "${ac_cv_search_opendir+set}" = set; then
5447 $as_echo_n "(cached) " >&6
5449 ac_func_search_save_LIBS=$LIBS
5450 cat >conftest.$ac_ext <<_ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h. */
5457 /* Override any GCC internal prototype to avoid an error.
5458 Use char because int might match the return type of a GCC
5459 builtin and then its argument prototype would still apply. */
5472 for ac_lib in '' dir; do
5473 if test -z "$ac_lib"; then
5474 ac_res="none required"
5477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5479 rm -rf conftest.$ac_objext conftest$ac_exeext
5480 if { (ac_try="$ac_link"
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5486 $as_echo "$ac_try_echo") >&5
5487 (eval "$ac_link") 2>conftest.er1
5489 grep -v '^ *+' conftest.er1 >conftest.err
5491 cat conftest.err >&5
5492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); } && {
5494 test -z "$ac_c_werror_flag" ||
5495 test ! -s conftest.err
5496 } && test -s conftest$ac_exeext && {
5497 test "$cross_compiling" = yes ||
5498 $as_test_x conftest$ac_exeext
5500 ac_cv_search_opendir=$ac_res
5502 $as_echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5508 rm -rf conftest.dSYM
5509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5511 if test "${ac_cv_search_opendir+set}" = set; then
5515 if test "${ac_cv_search_opendir+set}" = set; then
5518 ac_cv_search_opendir=no
5521 LIBS=$ac_func_search_save_LIBS
5523 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5524 $as_echo "$ac_cv_search_opendir" >&6; }
5525 ac_res=$ac_cv_search_opendir
5526 if test "$ac_res" != no; then
5527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5532 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5533 $as_echo_n "checking for library containing opendir... " >&6; }
5534 if test "${ac_cv_search_opendir+set}" = set; then
5535 $as_echo_n "(cached) " >&6
5537 ac_func_search_save_LIBS=$LIBS
5538 cat >conftest.$ac_ext <<_ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5545 /* Override any GCC internal prototype to avoid an error.
5546 Use char because int might match the return type of a GCC
5547 builtin and then its argument prototype would still apply. */
5560 for ac_lib in '' x; do
5561 if test -z "$ac_lib"; then
5562 ac_res="none required"
5565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5567 rm -rf conftest.$ac_objext conftest$ac_exeext
5568 if { (ac_try="$ac_link"
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5574 $as_echo "$ac_try_echo") >&5
5575 (eval "$ac_link") 2>conftest.er1
5577 grep -v '^ *+' conftest.er1 >conftest.err
5579 cat conftest.err >&5
5580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } && {
5582 test -z "$ac_c_werror_flag" ||
5583 test ! -s conftest.err
5584 } && test -s conftest$ac_exeext && {
5585 test "$cross_compiling" = yes ||
5586 $as_test_x conftest$ac_exeext
5588 ac_cv_search_opendir=$ac_res
5590 $as_echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5596 rm -rf conftest.dSYM
5597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5599 if test "${ac_cv_search_opendir+set}" = set; then
5603 if test "${ac_cv_search_opendir+set}" = set; then
5606 ac_cv_search_opendir=no
5609 LIBS=$ac_func_search_save_LIBS
5611 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5612 $as_echo "$ac_cv_search_opendir" >&6; }
5613 ac_res=$ac_cv_search_opendir
5614 if test "$ac_res" != no; then
5615 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5621 { $as_echo "$as_me:$LINENO: checking how to call gettimeofday" >&5
5622 $as_echo_n "checking how to call gettimeofday... " >&6; }
5623 if test "${ac_cv_gettimeofday_args+set}" = set; then
5624 $as_echo_n "(cached) " >&6
5626 cat >conftest.$ac_ext <<_ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5633 #include <sys/time.h>
5637 struct timeval tv; struct timezone tzp;
5638 gettimeofday(&tv, &tzp);
5643 rm -rf conftest.$ac_objext
5644 if { (ac_try="$ac_compile"
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5650 $as_echo "$ac_try_echo") >&5
5651 (eval "$ac_compile") 2>conftest.er1
5653 grep -v '^ *+' conftest.er1 >conftest.err
5655 cat conftest.err >&5
5656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } && {
5658 test -z "$ac_c_werror_flag" ||
5659 test ! -s conftest.err
5660 } && test -s conftest.$ac_objext; then
5661 ac_gettimeofday_args=2
5663 $as_echo "$as_me: failed program was:" >&5
5664 sed 's/^/| /' conftest.$ac_ext >&5
5666 cat >conftest.$ac_ext <<_ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5673 #include <sys/time.h>
5677 struct timeval tv; gettimeofday(&tv);
5682 rm -rf conftest.$ac_objext
5683 if { (ac_try="$ac_compile"
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5689 $as_echo "$ac_try_echo") >&5
5690 (eval "$ac_compile") 2>conftest.er1
5692 grep -v '^ *+' conftest.er1 >conftest.err
5694 cat conftest.err >&5
5695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && {
5697 test -z "$ac_c_werror_flag" ||
5698 test ! -s conftest.err
5699 } && test -s conftest.$ac_objext; then
5700 ac_gettimeofday_args=1
5702 $as_echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5705 ac_gettimeofday_args=0
5708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 ac_cv_gettimeofday_args=$ac_gettimeofday_args
5715 ac_gettimeofday_args=$ac_cv_gettimeofday_args
5716 if test "$ac_gettimeofday_args" = 1 ; then
5717 cat >>confdefs.h <<\_ACEOF
5718 #define HAVE_GETTIMEOFDAY 1
5721 { $as_echo "$as_me:$LINENO: result: one argument" >&5
5722 $as_echo "one argument" >&6; }
5723 elif test "$ac_gettimeofday_args" = 2 ; then
5724 cat >>confdefs.h <<\_ACEOF
5725 #define HAVE_GETTIMEOFDAY 1
5728 cat >>confdefs.h <<\_ACEOF
5729 #define GETTIMEOFDAY_TWO_ARGS 1
5732 { $as_echo "$as_me:$LINENO: result: two arguments" >&5
5733 $as_echo "two arguments" >&6; }
5735 { $as_echo "$as_me:$LINENO: result: unknown" >&5
5736 $as_echo "unknown" >&6; }
5748 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv sbrk
5750 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5751 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5752 $as_echo_n "checking for $ac_func... " >&6; }
5753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5754 $as_echo_n "(cached) " >&6
5756 cat >conftest.$ac_ext <<_ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5764 #define $ac_func innocuous_$ac_func
5766 /* System header to define __stub macros and hopefully few prototypes,
5767 which can conflict with char $ac_func (); below.
5768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5769 <limits.h> exists even on freestanding compilers. */
5772 # include <limits.h>
5774 # include <assert.h>
5779 /* Override any GCC internal prototype to avoid an error.
5780 Use char because int might match the return type of a GCC
5781 builtin and then its argument prototype would still apply. */
5786 /* The GNU C library defines this for functions which it implements
5787 to always fail with ENOSYS. Some functions are actually named
5788 something starting with __ and the normal name is an alias. */
5789 #if defined __stub_$ac_func || defined __stub___$ac_func
5801 rm -rf conftest.$ac_objext conftest$ac_exeext
5802 if { (ac_try="$ac_link"
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5808 $as_echo "$ac_try_echo") >&5
5809 (eval "$ac_link") 2>conftest.er1
5811 grep -v '^ *+' conftest.er1 >conftest.err
5813 cat conftest.err >&5
5814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } && {
5816 test -z "$ac_c_werror_flag" ||
5817 test ! -s conftest.err
5818 } && test -s conftest$ac_exeext && {
5819 test "$cross_compiling" = yes ||
5820 $as_test_x conftest$ac_exeext
5822 eval "$as_ac_var=yes"
5824 $as_echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5827 eval "$as_ac_var=no"
5830 rm -rf conftest.dSYM
5831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5832 conftest$ac_exeext conftest.$ac_ext
5834 ac_res=`eval 'as_val=${'$as_ac_var'}
5835 $as_echo "$as_val"'`
5836 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5837 $as_echo "$ac_res" >&6; }
5838 as_val=`eval 'as_val=${'$as_ac_var'}
5839 $as_echo "$as_val"'`
5840 if test "x$as_val" = x""yes; then
5841 cat >>confdefs.h <<_ACEOF
5842 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5852 for ac_func in sigaction syslog realpath setrlimit
5854 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5855 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5856 $as_echo_n "checking for $ac_func... " >&6; }
5857 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5858 $as_echo_n "(cached) " >&6
5860 cat >conftest.$ac_ext <<_ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h. */
5866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5868 #define $ac_func innocuous_$ac_func
5870 /* System header to define __stub macros and hopefully few prototypes,
5871 which can conflict with char $ac_func (); below.
5872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5873 <limits.h> exists even on freestanding compilers. */
5876 # include <limits.h>
5878 # include <assert.h>
5883 /* Override any GCC internal prototype to avoid an error.
5884 Use char because int might match the return type of a GCC
5885 builtin and then its argument prototype would still apply. */
5890 /* The GNU C library defines this for functions which it implements
5891 to always fail with ENOSYS. Some functions are actually named
5892 something starting with __ and the normal name is an alias. */
5893 #if defined __stub_$ac_func || defined __stub___$ac_func
5905 rm -rf conftest.$ac_objext conftest$ac_exeext
5906 if { (ac_try="$ac_link"
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5912 $as_echo "$ac_try_echo") >&5
5913 (eval "$ac_link") 2>conftest.er1
5915 grep -v '^ *+' conftest.er1 >conftest.err
5917 cat conftest.err >&5
5918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } && {
5920 test -z "$ac_c_werror_flag" ||
5921 test ! -s conftest.err
5922 } && test -s conftest$ac_exeext && {
5923 test "$cross_compiling" = yes ||
5924 $as_test_x conftest$ac_exeext
5926 eval "$as_ac_var=yes"
5928 $as_echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5931 eval "$as_ac_var=no"
5934 rm -rf conftest.dSYM
5935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5936 conftest$ac_exeext conftest.$ac_ext
5938 ac_res=`eval 'as_val=${'$as_ac_var'}
5939 $as_echo "$as_val"'`
5940 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5941 $as_echo "$ac_res" >&6; }
5942 as_val=`eval 'as_val=${'$as_ac_var'}
5943 $as_echo "$as_val"'`
5944 if test "x$as_val" = x""yes; then
5945 cat >>confdefs.h <<_ACEOF
5946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5953 for ac_func in setlocale
5955 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5956 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5957 $as_echo_n "checking for $ac_func... " >&6; }
5958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5959 $as_echo_n "(cached) " >&6
5961 cat >conftest.$ac_ext <<_ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5969 #define $ac_func innocuous_$ac_func
5971 /* System header to define __stub macros and hopefully few prototypes,
5972 which can conflict with char $ac_func (); below.
5973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5974 <limits.h> exists even on freestanding compilers. */
5977 # include <limits.h>
5979 # include <assert.h>
5984 /* Override any GCC internal prototype to avoid an error.
5985 Use char because int might match the return type of a GCC
5986 builtin and then its argument prototype would still apply. */
5991 /* The GNU C library defines this for functions which it implements
5992 to always fail with ENOSYS. Some functions are actually named
5993 something starting with __ and the normal name is an alias. */
5994 #if defined __stub_$ac_func || defined __stub___$ac_func
6006 rm -rf conftest.$ac_objext conftest$ac_exeext
6007 if { (ac_try="$ac_link"
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6013 $as_echo "$ac_try_echo") >&5
6014 (eval "$ac_link") 2>conftest.er1
6016 grep -v '^ *+' conftest.er1 >conftest.err
6018 cat conftest.err >&5
6019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } && {
6021 test -z "$ac_c_werror_flag" ||
6022 test ! -s conftest.err
6023 } && test -s conftest$ac_exeext && {
6024 test "$cross_compiling" = yes ||
6025 $as_test_x conftest$ac_exeext
6027 eval "$as_ac_var=yes"
6029 $as_echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.$ac_ext >&5
6032 eval "$as_ac_var=no"
6035 rm -rf conftest.dSYM
6036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6037 conftest$ac_exeext conftest.$ac_ext
6039 ac_res=`eval 'as_val=${'$as_ac_var'}
6040 $as_echo "$as_val"'`
6041 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6042 $as_echo "$ac_res" >&6; }
6043 as_val=`eval 'as_val=${'$as_ac_var'}
6044 $as_echo "$as_val"'`
6045 if test "x$as_val" = x""yes; then
6046 cat >>confdefs.h <<_ACEOF
6047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6053 { $as_echo "$as_me:$LINENO: checking for struct icmp" >&5
6054 $as_echo_n "checking for struct icmp... " >&6; }
6055 if test "${ac_cv_have_icmp+set}" = set; then
6056 $as_echo_n "(cached) " >&6
6058 cat >conftest.$ac_ext <<_ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6071 #include <sys/types.h>
6072 #include <sys/time.h>
6073 #include <sys/ipc.h>
6074 #include <sys/shm.h>
6075 #include <sys/socket.h>
6076 #include <netinet/in_systm.h>
6077 #include <netinet/in.h>
6078 #include <netinet/ip.h>
6079 #include <netinet/ip_icmp.h>
6080 #include <netinet/udp.h>
6081 #include <arpa/inet.h>
6088 struct sockaddr_in si;
6090 i.icmp_type = ICMP_ECHO;
6095 si.sin_family = AF_INET;
6096 #if defined(__DECC) || defined(_IP_VHL)
6106 rm -rf conftest.$ac_objext
6107 if { (ac_try="$ac_compile"
6109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110 *) ac_try_echo=$ac_try;;
6112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6113 $as_echo "$ac_try_echo") >&5
6114 (eval "$ac_compile") 2>conftest.er1
6116 grep -v '^ *+' conftest.er1 >conftest.err
6118 cat conftest.err >&5
6119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } && {
6121 test -z "$ac_c_werror_flag" ||
6122 test ! -s conftest.err
6123 } && test -s conftest.$ac_objext; then
6126 $as_echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_icmp" >&5
6135 $as_echo "$ac_cv_have_icmp" >&6; }
6136 if test "$ac_cv_have_icmp" = yes ; then
6137 cat >>confdefs.h <<\_ACEOF
6142 { $as_echo "$as_me:$LINENO: checking for struct icmphdr" >&5
6143 $as_echo_n "checking for struct icmphdr... " >&6; }
6144 if test "${ac_cv_have_icmphdr+set}" = set; then
6145 $as_echo_n "(cached) " >&6
6147 cat >conftest.$ac_ext <<_ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6160 #include <sys/types.h>
6161 #include <sys/time.h>
6162 #include <sys/ipc.h>
6163 #include <sys/shm.h>
6164 #include <sys/socket.h>
6165 #include <netinet/in_systm.h>
6166 #include <netinet/in.h>
6167 #include <netinet/ip.h>
6168 #include <netinet/ip_icmp.h>
6169 #include <netinet/udp.h>
6170 #include <arpa/inet.h>
6177 struct sockaddr_in si;
6183 i.un.echo.sequence = 0;
6184 si.sin_family = AF_INET;
6190 rm -rf conftest.$ac_objext
6191 if { (ac_try="$ac_compile"
6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 *) ac_try_echo=$ac_try;;
6196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6197 $as_echo "$ac_try_echo") >&5
6198 (eval "$ac_compile") 2>conftest.er1
6200 grep -v '^ *+' conftest.er1 >conftest.err
6202 cat conftest.err >&5
6203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } && {
6205 test -z "$ac_c_werror_flag" ||
6206 test ! -s conftest.err
6207 } && test -s conftest.$ac_objext; then
6208 ac_cv_have_icmphdr=yes
6210 $as_echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6213 ac_cv_have_icmphdr=no
6216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6218 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_icmphdr" >&5
6219 $as_echo "$ac_cv_have_icmphdr" >&6; }
6220 if test "$ac_cv_have_icmphdr" = yes ; then
6221 cat >>confdefs.h <<\_ACEOF
6222 #define HAVE_ICMPHDR 1
6228 for ac_header in crypt.h sys/select.h
6230 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6232 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6233 $as_echo_n "checking for $ac_header... " >&6; }
6234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6235 $as_echo_n "(cached) " >&6
6237 ac_res=`eval 'as_val=${'$as_ac_Header'}
6238 $as_echo "$as_val"'`
6239 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6240 $as_echo "$ac_res" >&6; }
6242 # Is the header compilable?
6243 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6244 $as_echo_n "checking $ac_header usability... " >&6; }
6245 cat >conftest.$ac_ext <<_ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6251 $ac_includes_default
6252 #include <$ac_header>
6254 rm -rf conftest.$ac_objext
6255 if { (ac_try="$ac_compile"
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6261 $as_echo "$ac_try_echo") >&5
6262 (eval "$ac_compile") 2>conftest.er1
6264 grep -v '^ *+' conftest.er1 >conftest.err
6266 cat conftest.err >&5
6267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } && {
6269 test -z "$ac_c_werror_flag" ||
6270 test ! -s conftest.err
6271 } && test -s conftest.$ac_objext; then
6272 ac_header_compiler=yes
6274 $as_echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6277 ac_header_compiler=no
6280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6282 $as_echo "$ac_header_compiler" >&6; }
6284 # Is the header present?
6285 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6286 $as_echo_n "checking $ac_header presence... " >&6; }
6287 cat >conftest.$ac_ext <<_ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6293 #include <$ac_header>
6295 if { (ac_try="$ac_cpp conftest.$ac_ext"
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6301 $as_echo "$ac_try_echo") >&5
6302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6304 grep -v '^ *+' conftest.er1 >conftest.err
6306 cat conftest.err >&5
6307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } >/dev/null && {
6309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6310 test ! -s conftest.err
6312 ac_header_preproc=yes
6314 $as_echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6317 ac_header_preproc=no
6320 rm -rf conftest.err conftest.$ac_ext
6321 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6322 $as_echo "$ac_header_preproc" >&6; }
6324 # So? What about this header?
6325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6328 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6330 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6331 ac_header_preproc=yes
6334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6335 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6337 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6339 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6341 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6343 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6345 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6349 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6350 $as_echo_n "checking for $ac_header... " >&6; }
6351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6352 $as_echo_n "(cached) " >&6
6354 eval "$as_ac_Header=\$ac_header_preproc"
6356 ac_res=`eval 'as_val=${'$as_ac_Header'}
6357 $as_echo "$as_val"'`
6358 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6359 $as_echo "$ac_res" >&6; }
6362 as_val=`eval 'as_val=${'$as_ac_Header'}
6363 $as_echo "$as_val"'`
6364 if test "x$as_val" = x""yes; then
6365 cat >>confdefs.h <<_ACEOF
6366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6373 for ac_prog in perl5 perl
6375 # Extract the first word of "$ac_prog", so it can be a program name with args.
6376 set dummy $ac_prog; ac_word=$2
6377 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6378 $as_echo_n "checking for $ac_word... " >&6; }
6379 if test "${ac_cv_path_PERL+set}" = set; then
6380 $as_echo_n "(cached) " >&6
6384 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 PERL=$ac_cv_path_PERL
6406 if test -n "$PERL"; then
6407 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6408 $as_echo "$PERL" >&6; }
6410 { $as_echo "$as_me:$LINENO: result: no" >&5
6411 $as_echo "no" >&6; }
6415 test -n "$PERL" && break
6418 if test -z "$PERL" ; then
6421 { $as_echo "$as_me:$LINENO: checking perl version" >&5
6422 $as_echo_n "checking perl version... " >&6; }
6423 if test "${ac_cv_perl_version+set}" = set; then
6424 $as_echo_n "(cached) " >&6
6426 ac_cv_perl_version=`$PERL -e "$perl_version_cmd"`
6428 { $as_echo "$as_me:$LINENO: result: $ac_cv_perl_version" >&5
6429 $as_echo "$ac_cv_perl_version" >&6; }
6430 PERL_VERSION=$ac_cv_perl_version
6434 if test -z "$PERL" ; then
6435 # don't let it be blank...
6439 { $as_echo "$as_me:$LINENO: checking for X" >&5
6440 $as_echo_n "checking for X... " >&6; }
6443 # Check whether --with-x was given.
6444 if test "${with_x+set}" = set; then
6448 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6449 if test "x$with_x" = xno; then
6450 # The user explicitly disabled X.
6453 case $x_includes,$x_libraries in #(
6454 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
6455 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
6456 { (exit 1); exit 1; }; };; #(
6457 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6458 $as_echo_n "(cached) " >&6
6460 # One or both of the vars are not set, and there is no cached value.
6461 ac_x_includes=no ac_x_libraries=no
6462 rm -f -r conftest.dir
6463 if mkdir conftest.dir; then
6465 cat >Imakefile <<'_ACEOF'
6467 @echo incroot='${INCROOT}'
6469 @echo usrlibdir='${USRLIBDIR}'
6471 @echo libdir='${LIBDIR}'
6473 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6474 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6475 for ac_var in incroot usrlibdir libdir; do
6476 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6478 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6479 for ac_extension in a so sl dylib la dll; do
6480 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6481 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6482 ac_im_usrlibdir=$ac_im_libdir; break
6485 # Screen out bogus values from the imake configuration. They are
6486 # bogus both because they are the default anyway, and because
6487 # using them would break gcc on systems where it needs fixed includes.
6488 case $ac_im_incroot in
6489 /usr/include) ac_x_includes= ;;
6490 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6492 case $ac_im_usrlibdir in
6493 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6494 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6498 rm -f -r conftest.dir
6501 # Standard set of common directories for X headers.
6502 # Check X11 before X11Rn because it is often a symlink to the current release.
6514 /usr/local/X11/include
6515 /usr/local/X11R6/include
6516 /usr/local/X11R5/include
6517 /usr/local/X11R4/include
6519 /usr/local/include/X11
6520 /usr/local/include/X11R6
6521 /usr/local/include/X11R5
6522 /usr/local/include/X11R4
6526 /usr/XFree86/include/X11
6530 /usr/unsupported/include
6532 /usr/local/x11r5/include
6533 /usr/lpp/Xamples/include
6535 /usr/openwin/include
6536 /usr/openwin/share/include'
6538 if test "$ac_x_includes" = no; then
6539 # Guess where to find include files, by looking for Xlib.h.
6540 # First, try using that file with no special directory specified.
6541 cat >conftest.$ac_ext <<_ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h. */
6547 #include <X11/Xlib.h>
6549 if { (ac_try="$ac_cpp conftest.$ac_ext"
6551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6552 *) ac_try_echo=$ac_try;;
6554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6555 $as_echo "$ac_try_echo") >&5
6556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6558 grep -v '^ *+' conftest.er1 >conftest.err
6560 cat conftest.err >&5
6561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } >/dev/null && {
6563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6564 test ! -s conftest.err
6566 # We can compile using X headers with no special include directory.
6569 $as_echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.$ac_ext >&5
6572 for ac_dir in $ac_x_header_dirs; do
6573 if test -r "$ac_dir/X11/Xlib.h"; then
6574 ac_x_includes=$ac_dir
6580 rm -rf conftest.err conftest.$ac_ext
6581 fi # $ac_x_includes = no
6583 if test "$ac_x_libraries" = no; then
6584 # Check for the libraries.
6585 # See if we find them without any special options.
6586 # Don't add to $LIBS permanently.
6589 cat >conftest.$ac_ext <<_ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6595 #include <X11/Xlib.h>
6604 rm -rf conftest.$ac_objext conftest$ac_exeext
6605 if { (ac_try="$ac_link"
6607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6608 *) ac_try_echo=$ac_try;;
6610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6611 $as_echo "$ac_try_echo") >&5
6612 (eval "$ac_link") 2>conftest.er1
6614 grep -v '^ *+' conftest.er1 >conftest.err
6616 cat conftest.err >&5
6617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } && {
6619 test -z "$ac_c_werror_flag" ||
6620 test ! -s conftest.err
6621 } && test -s conftest$ac_exeext && {
6622 test "$cross_compiling" = yes ||
6623 $as_test_x conftest$ac_exeext
6626 # We can link X programs with no special library path.
6629 $as_echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6633 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6635 # Don't even attempt the hair of trying to link an X program!
6636 for ac_extension in a so sl dylib la dll; do
6637 if test -r "$ac_dir/libX11.$ac_extension"; then
6638 ac_x_libraries=$ac_dir
6645 rm -rf conftest.dSYM
6646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6647 conftest$ac_exeext conftest.$ac_ext
6648 fi # $ac_x_libraries = no
6650 case $ac_x_includes,$ac_x_libraries in #(
6652 # Didn't find X, or a directory has "'" in its name.
6653 ac_cv_have_x="have_x=no";; #(
6655 # Record where we found X for the cache.
6656 ac_cv_have_x="have_x=yes\
6657 ac_x_includes='$ac_x_includes'\
6658 ac_x_libraries='$ac_x_libraries'"
6664 eval "$ac_cv_have_x"
6667 if test "$have_x" != yes; then
6668 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6669 $as_echo "$have_x" >&6; }
6672 # If each of the values was on the command line, it overrides each guess.
6673 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6674 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6675 # Update the cache value to reflect the command line values.
6676 ac_cv_have_x="have_x=yes\
6677 ac_x_includes='$x_includes'\
6678 ac_x_libraries='$x_libraries'"
6679 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6680 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6683 if test "$no_x" = yes; then
6684 # Not all programs may use this symbol, but it does not hurt to define it.
6686 cat >>confdefs.h <<\_ACEOF
6687 #define X_DISPLAY_MISSING 1
6690 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6692 if test -n "$x_includes"; then
6693 X_CFLAGS="$X_CFLAGS -I$x_includes"
6696 # It would also be nice to do this for all -L options, not just this one.
6697 if test -n "$x_libraries"; then
6698 X_LIBS="$X_LIBS -L$x_libraries"
6699 # For Solaris; some versions of Sun CC require a space after -R and
6700 # others require no space. Words are not sufficient . . . .
6701 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6702 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6703 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6704 ac_xsave_c_werror_flag=$ac_c_werror_flag
6705 ac_c_werror_flag=yes
6706 cat >conftest.$ac_ext <<_ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6721 rm -rf conftest.$ac_objext conftest$ac_exeext
6722 if { (ac_try="$ac_link"
6724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6725 *) ac_try_echo=$ac_try;;
6727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6728 $as_echo "$ac_try_echo") >&5
6729 (eval "$ac_link") 2>conftest.er1
6731 grep -v '^ *+' conftest.er1 >conftest.err
6733 cat conftest.err >&5
6734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } && {
6736 test -z "$ac_c_werror_flag" ||
6737 test ! -s conftest.err
6738 } && test -s conftest$ac_exeext && {
6739 test "$cross_compiling" = yes ||
6740 $as_test_x conftest$ac_exeext
6742 { $as_echo "$as_me:$LINENO: result: no" >&5
6743 $as_echo "no" >&6; }
6744 X_LIBS="$X_LIBS -R$x_libraries"
6746 $as_echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.$ac_ext >&5
6749 LIBS="$ac_xsave_LIBS -R $x_libraries"
6750 cat >conftest.$ac_ext <<_ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h. */
6765 rm -rf conftest.$ac_objext conftest$ac_exeext
6766 if { (ac_try="$ac_link"
6768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769 *) ac_try_echo=$ac_try;;
6771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6772 $as_echo "$ac_try_echo") >&5
6773 (eval "$ac_link") 2>conftest.er1
6775 grep -v '^ *+' conftest.er1 >conftest.err
6777 cat conftest.err >&5
6778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } && {
6780 test -z "$ac_c_werror_flag" ||
6781 test ! -s conftest.err
6782 } && test -s conftest$ac_exeext && {
6783 test "$cross_compiling" = yes ||
6784 $as_test_x conftest$ac_exeext
6786 { $as_echo "$as_me:$LINENO: result: yes" >&5
6787 $as_echo "yes" >&6; }
6788 X_LIBS="$X_LIBS -R $x_libraries"
6790 $as_echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.$ac_ext >&5
6793 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6794 $as_echo "neither works" >&6; }
6797 rm -rf conftest.dSYM
6798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6799 conftest$ac_exeext conftest.$ac_ext
6802 rm -rf conftest.dSYM
6803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6804 conftest$ac_exeext conftest.$ac_ext
6805 ac_c_werror_flag=$ac_xsave_c_werror_flag
6809 # Check for system-dependent libraries X programs must link with.
6810 # Do this before checking for the system-independent R6 libraries
6811 # (-lICE), since we may need -lsocket or whatever for X linking.
6813 if test "$ISC" = yes; then
6814 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6816 # Martyn Johnson says this is needed for Ultrix, if the X
6817 # libraries were built with DECnet support. And Karl Berry says
6818 # the Alpha needs dnet_stub (dnet does not exist).
6819 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6820 cat >conftest.$ac_ext <<_ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6827 /* Override any GCC internal prototype to avoid an error.
6828 Use char because int might match the return type of a GCC
6829 builtin and then its argument prototype would still apply. */
6833 char XOpenDisplay ();
6837 return XOpenDisplay ();
6842 rm -rf conftest.$ac_objext conftest$ac_exeext
6843 if { (ac_try="$ac_link"
6845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6846 *) ac_try_echo=$ac_try;;
6848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6849 $as_echo "$ac_try_echo") >&5
6850 (eval "$ac_link") 2>conftest.er1
6852 grep -v '^ *+' conftest.er1 >conftest.err
6854 cat conftest.err >&5
6855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } && {
6857 test -z "$ac_c_werror_flag" ||
6858 test ! -s conftest.err
6859 } && test -s conftest$ac_exeext && {
6860 test "$cross_compiling" = yes ||
6861 $as_test_x conftest$ac_exeext
6865 $as_echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6868 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6869 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6870 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6871 $as_echo_n "(cached) " >&6
6873 ac_check_lib_save_LIBS=$LIBS
6875 cat >conftest.$ac_ext <<_ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h. */
6882 /* Override any GCC internal prototype to avoid an error.
6883 Use char because int might match the return type of a GCC
6884 builtin and then its argument prototype would still apply. */
6892 return dnet_ntoa ();
6897 rm -rf conftest.$ac_objext conftest$ac_exeext
6898 if { (ac_try="$ac_link"
6900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6901 *) ac_try_echo=$ac_try;;
6903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6904 $as_echo "$ac_try_echo") >&5
6905 (eval "$ac_link") 2>conftest.er1
6907 grep -v '^ *+' conftest.er1 >conftest.err
6909 cat conftest.err >&5
6910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } && {
6912 test -z "$ac_c_werror_flag" ||
6913 test ! -s conftest.err
6914 } && test -s conftest$ac_exeext && {
6915 test "$cross_compiling" = yes ||
6916 $as_test_x conftest$ac_exeext
6918 ac_cv_lib_dnet_dnet_ntoa=yes
6920 $as_echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6923 ac_cv_lib_dnet_dnet_ntoa=no
6926 rm -rf conftest.dSYM
6927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6928 conftest$ac_exeext conftest.$ac_ext
6929 LIBS=$ac_check_lib_save_LIBS
6931 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6932 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6933 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
6934 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6937 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6938 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6939 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6940 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6941 $as_echo_n "(cached) " >&6
6943 ac_check_lib_save_LIBS=$LIBS
6944 LIBS="-ldnet_stub $LIBS"
6945 cat >conftest.$ac_ext <<_ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6952 /* Override any GCC internal prototype to avoid an error.
6953 Use char because int might match the return type of a GCC
6954 builtin and then its argument prototype would still apply. */
6962 return dnet_ntoa ();
6967 rm -rf conftest.$ac_objext conftest$ac_exeext
6968 if { (ac_try="$ac_link"
6970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6971 *) ac_try_echo=$ac_try;;
6973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6974 $as_echo "$ac_try_echo") >&5
6975 (eval "$ac_link") 2>conftest.er1
6977 grep -v '^ *+' conftest.er1 >conftest.err
6979 cat conftest.err >&5
6980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } && {
6982 test -z "$ac_c_werror_flag" ||
6983 test ! -s conftest.err
6984 } && test -s conftest$ac_exeext && {
6985 test "$cross_compiling" = yes ||
6986 $as_test_x conftest$ac_exeext
6988 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6990 $as_echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.$ac_ext >&5
6993 ac_cv_lib_dnet_stub_dnet_ntoa=no
6996 rm -rf conftest.dSYM
6997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6998 conftest$ac_exeext conftest.$ac_ext
6999 LIBS=$ac_check_lib_save_LIBS
7001 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7002 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7003 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
7004 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7010 rm -rf conftest.dSYM
7011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7012 conftest$ac_exeext conftest.$ac_ext
7013 LIBS="$ac_xsave_LIBS"
7015 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7016 # to get the SysV transport functions.
7017 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7019 # The nsl library prevents programs from opening the X display
7020 # on Irix 5.2, according to T.E. Dickey.
7021 # The functions gethostbyname, getservbyname, and inet_addr are
7022 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7023 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
7024 $as_echo_n "checking for gethostbyname... " >&6; }
7025 if test "${ac_cv_func_gethostbyname+set}" = set; then
7026 $as_echo_n "(cached) " >&6
7028 cat >conftest.$ac_ext <<_ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7034 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7036 #define gethostbyname innocuous_gethostbyname
7038 /* System header to define __stub macros and hopefully few prototypes,
7039 which can conflict with char gethostbyname (); below.
7040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7041 <limits.h> exists even on freestanding compilers. */
7044 # include <limits.h>
7046 # include <assert.h>
7049 #undef gethostbyname
7051 /* Override any GCC internal prototype to avoid an error.
7052 Use char because int might match the return type of a GCC
7053 builtin and then its argument prototype would still apply. */
7057 char gethostbyname ();
7058 /* The GNU C library defines this for functions which it implements
7059 to always fail with ENOSYS. Some functions are actually named
7060 something starting with __ and the normal name is an alias. */
7061 #if defined __stub_gethostbyname || defined __stub___gethostbyname
7068 return gethostbyname ();
7073 rm -rf conftest.$ac_objext conftest$ac_exeext
7074 if { (ac_try="$ac_link"
7076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7077 *) ac_try_echo=$ac_try;;
7079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7080 $as_echo "$ac_try_echo") >&5
7081 (eval "$ac_link") 2>conftest.er1
7083 grep -v '^ *+' conftest.er1 >conftest.err
7085 cat conftest.err >&5
7086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); } && {
7088 test -z "$ac_c_werror_flag" ||
7089 test ! -s conftest.err
7090 } && test -s conftest$ac_exeext && {
7091 test "$cross_compiling" = yes ||
7092 $as_test_x conftest$ac_exeext
7094 ac_cv_func_gethostbyname=yes
7096 $as_echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7099 ac_cv_func_gethostbyname=no
7102 rm -rf conftest.dSYM
7103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7104 conftest$ac_exeext conftest.$ac_ext
7106 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7107 $as_echo "$ac_cv_func_gethostbyname" >&6; }
7109 if test $ac_cv_func_gethostbyname = no; then
7110 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7111 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7112 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7113 $as_echo_n "(cached) " >&6
7115 ac_check_lib_save_LIBS=$LIBS
7117 cat >conftest.$ac_ext <<_ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7124 /* Override any GCC internal prototype to avoid an error.
7125 Use char because int might match the return type of a GCC
7126 builtin and then its argument prototype would still apply. */
7130 char gethostbyname ();
7134 return gethostbyname ();
7139 rm -rf conftest.$ac_objext conftest$ac_exeext
7140 if { (ac_try="$ac_link"
7142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7143 *) ac_try_echo=$ac_try;;
7145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7146 $as_echo "$ac_try_echo") >&5
7147 (eval "$ac_link") 2>conftest.er1
7149 grep -v '^ *+' conftest.er1 >conftest.err
7151 cat conftest.err >&5
7152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } && {
7154 test -z "$ac_c_werror_flag" ||
7155 test ! -s conftest.err
7156 } && test -s conftest$ac_exeext && {
7157 test "$cross_compiling" = yes ||
7158 $as_test_x conftest$ac_exeext
7160 ac_cv_lib_nsl_gethostbyname=yes
7162 $as_echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7165 ac_cv_lib_nsl_gethostbyname=no
7168 rm -rf conftest.dSYM
7169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7170 conftest$ac_exeext conftest.$ac_ext
7171 LIBS=$ac_check_lib_save_LIBS
7173 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7174 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7175 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
7176 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7179 if test $ac_cv_lib_nsl_gethostbyname = no; then
7180 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7181 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7182 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7183 $as_echo_n "(cached) " >&6
7185 ac_check_lib_save_LIBS=$LIBS
7187 cat >conftest.$ac_ext <<_ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7194 /* Override any GCC internal prototype to avoid an error.
7195 Use char because int might match the return type of a GCC
7196 builtin and then its argument prototype would still apply. */
7200 char gethostbyname ();
7204 return gethostbyname ();
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 ac_cv_lib_bsd_gethostbyname=yes
7232 $as_echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7235 ac_cv_lib_bsd_gethostbyname=no
7238 rm -rf conftest.dSYM
7239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7240 conftest$ac_exeext conftest.$ac_ext
7241 LIBS=$ac_check_lib_save_LIBS
7243 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7244 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7245 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
7246 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7252 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7253 # socket/setsockopt and other routines are undefined under SCO ODT
7254 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7255 # on later versions), says Simon Leinen: it contains gethostby*
7256 # variants that don't use the name server (or something). -lsocket
7257 # must be given before -lnsl if both are needed. We assume that
7258 # if connect needs -lnsl, so does gethostbyname.
7259 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7260 $as_echo_n "checking for connect... " >&6; }
7261 if test "${ac_cv_func_connect+set}" = set; then
7262 $as_echo_n "(cached) " >&6
7264 cat >conftest.$ac_ext <<_ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7270 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7272 #define connect innocuous_connect
7274 /* System header to define __stub macros and hopefully few prototypes,
7275 which can conflict with char connect (); below.
7276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7277 <limits.h> exists even on freestanding compilers. */
7280 # include <limits.h>
7282 # include <assert.h>
7287 /* Override any GCC internal prototype to avoid an error.
7288 Use char because int might match the return type of a GCC
7289 builtin and then its argument prototype would still apply. */
7294 /* The GNU C library defines this for functions which it implements
7295 to always fail with ENOSYS. Some functions are actually named
7296 something starting with __ and the normal name is an alias. */
7297 #if defined __stub_connect || defined __stub___connect
7309 rm -rf conftest.$ac_objext conftest$ac_exeext
7310 if { (ac_try="$ac_link"
7312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7313 *) ac_try_echo=$ac_try;;
7315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7316 $as_echo "$ac_try_echo") >&5
7317 (eval "$ac_link") 2>conftest.er1
7319 grep -v '^ *+' conftest.er1 >conftest.err
7321 cat conftest.err >&5
7322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } && {
7324 test -z "$ac_c_werror_flag" ||
7325 test ! -s conftest.err
7326 } && test -s conftest$ac_exeext && {
7327 test "$cross_compiling" = yes ||
7328 $as_test_x conftest$ac_exeext
7330 ac_cv_func_connect=yes
7332 $as_echo "$as_me: failed program was:" >&5
7333 sed 's/^/| /' conftest.$ac_ext >&5
7335 ac_cv_func_connect=no
7338 rm -rf conftest.dSYM
7339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7340 conftest$ac_exeext conftest.$ac_ext
7342 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7343 $as_echo "$ac_cv_func_connect" >&6; }
7345 if test $ac_cv_func_connect = no; then
7346 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7347 $as_echo_n "checking for connect in -lsocket... " >&6; }
7348 if test "${ac_cv_lib_socket_connect+set}" = set; then
7349 $as_echo_n "(cached) " >&6
7351 ac_check_lib_save_LIBS=$LIBS
7352 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7353 cat >conftest.$ac_ext <<_ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7360 /* Override any GCC internal prototype to avoid an error.
7361 Use char because int might match the return type of a GCC
7362 builtin and then its argument prototype would still apply. */
7375 rm -rf conftest.$ac_objext conftest$ac_exeext
7376 if { (ac_try="$ac_link"
7378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379 *) ac_try_echo=$ac_try;;
7381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7382 $as_echo "$ac_try_echo") >&5
7383 (eval "$ac_link") 2>conftest.er1
7385 grep -v '^ *+' conftest.er1 >conftest.err
7387 cat conftest.err >&5
7388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest$ac_exeext && {
7393 test "$cross_compiling" = yes ||
7394 $as_test_x conftest$ac_exeext
7396 ac_cv_lib_socket_connect=yes
7398 $as_echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7401 ac_cv_lib_socket_connect=no
7404 rm -rf conftest.dSYM
7405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7406 conftest$ac_exeext conftest.$ac_ext
7407 LIBS=$ac_check_lib_save_LIBS
7409 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7410 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7411 if test "x$ac_cv_lib_socket_connect" = x""yes; then
7412 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7417 # Guillermo Gomez says -lposix is necessary on A/UX.
7418 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7419 $as_echo_n "checking for remove... " >&6; }
7420 if test "${ac_cv_func_remove+set}" = set; then
7421 $as_echo_n "(cached) " >&6
7423 cat >conftest.$ac_ext <<_ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7431 #define remove innocuous_remove
7433 /* System header to define __stub macros and hopefully few prototypes,
7434 which can conflict with char remove (); below.
7435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7436 <limits.h> exists even on freestanding compilers. */
7439 # include <limits.h>
7441 # include <assert.h>
7446 /* Override any GCC internal prototype to avoid an error.
7447 Use char because int might match the return type of a GCC
7448 builtin and then its argument prototype would still apply. */
7453 /* The GNU C library defines this for functions which it implements
7454 to always fail with ENOSYS. Some functions are actually named
7455 something starting with __ and the normal name is an alias. */
7456 #if defined __stub_remove || defined __stub___remove
7468 rm -rf conftest.$ac_objext conftest$ac_exeext
7469 if { (ac_try="$ac_link"
7471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472 *) ac_try_echo=$ac_try;;
7474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7475 $as_echo "$ac_try_echo") >&5
7476 (eval "$ac_link") 2>conftest.er1
7478 grep -v '^ *+' conftest.er1 >conftest.err
7480 cat conftest.err >&5
7481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } && {
7483 test -z "$ac_c_werror_flag" ||
7484 test ! -s conftest.err
7485 } && test -s conftest$ac_exeext && {
7486 test "$cross_compiling" = yes ||
7487 $as_test_x conftest$ac_exeext
7489 ac_cv_func_remove=yes
7491 $as_echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7494 ac_cv_func_remove=no
7497 rm -rf conftest.dSYM
7498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7499 conftest$ac_exeext conftest.$ac_ext
7501 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7502 $as_echo "$ac_cv_func_remove" >&6; }
7504 if test $ac_cv_func_remove = no; then
7505 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7506 $as_echo_n "checking for remove in -lposix... " >&6; }
7507 if test "${ac_cv_lib_posix_remove+set}" = set; then
7508 $as_echo_n "(cached) " >&6
7510 ac_check_lib_save_LIBS=$LIBS
7511 LIBS="-lposix $LIBS"
7512 cat >conftest.$ac_ext <<_ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h. */
7519 /* Override any GCC internal prototype to avoid an error.
7520 Use char because int might match the return type of a GCC
7521 builtin and then its argument prototype would still apply. */
7534 rm -rf conftest.$ac_objext conftest$ac_exeext
7535 if { (ac_try="$ac_link"
7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7541 $as_echo "$ac_try_echo") >&5
7542 (eval "$ac_link") 2>conftest.er1
7544 grep -v '^ *+' conftest.er1 >conftest.err
7546 cat conftest.err >&5
7547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } && {
7549 test -z "$ac_c_werror_flag" ||
7550 test ! -s conftest.err
7551 } && test -s conftest$ac_exeext && {
7552 test "$cross_compiling" = yes ||
7553 $as_test_x conftest$ac_exeext
7555 ac_cv_lib_posix_remove=yes
7557 $as_echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7560 ac_cv_lib_posix_remove=no
7563 rm -rf conftest.dSYM
7564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7565 conftest$ac_exeext conftest.$ac_ext
7566 LIBS=$ac_check_lib_save_LIBS
7568 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7569 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7570 if test "x$ac_cv_lib_posix_remove" = x""yes; then
7571 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7576 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7577 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7578 $as_echo_n "checking for shmat... " >&6; }
7579 if test "${ac_cv_func_shmat+set}" = set; then
7580 $as_echo_n "(cached) " >&6
7582 cat >conftest.$ac_ext <<_ACEOF
7585 cat confdefs.h >>conftest.$ac_ext
7586 cat >>conftest.$ac_ext <<_ACEOF
7587 /* end confdefs.h. */
7588 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7590 #define shmat innocuous_shmat
7592 /* System header to define __stub macros and hopefully few prototypes,
7593 which can conflict with char shmat (); below.
7594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7595 <limits.h> exists even on freestanding compilers. */
7598 # include <limits.h>
7600 # include <assert.h>
7605 /* Override any GCC internal prototype to avoid an error.
7606 Use char because int might match the return type of a GCC
7607 builtin and then its argument prototype would still apply. */
7612 /* The GNU C library defines this for functions which it implements
7613 to always fail with ENOSYS. Some functions are actually named
7614 something starting with __ and the normal name is an alias. */
7615 #if defined __stub_shmat || defined __stub___shmat
7627 rm -rf conftest.$ac_objext conftest$ac_exeext
7628 if { (ac_try="$ac_link"
7630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7631 *) ac_try_echo=$ac_try;;
7633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7634 $as_echo "$ac_try_echo") >&5
7635 (eval "$ac_link") 2>conftest.er1
7637 grep -v '^ *+' conftest.er1 >conftest.err
7639 cat conftest.err >&5
7640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } && {
7642 test -z "$ac_c_werror_flag" ||
7643 test ! -s conftest.err
7644 } && test -s conftest$ac_exeext && {
7645 test "$cross_compiling" = yes ||
7646 $as_test_x conftest$ac_exeext
7648 ac_cv_func_shmat=yes
7650 $as_echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7656 rm -rf conftest.dSYM
7657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7658 conftest$ac_exeext conftest.$ac_ext
7660 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7661 $as_echo "$ac_cv_func_shmat" >&6; }
7663 if test $ac_cv_func_shmat = no; then
7664 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7665 $as_echo_n "checking for shmat in -lipc... " >&6; }
7666 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7667 $as_echo_n "(cached) " >&6
7669 ac_check_lib_save_LIBS=$LIBS
7671 cat >conftest.$ac_ext <<_ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7678 /* Override any GCC internal prototype to avoid an error.
7679 Use char because int might match the return type of a GCC
7680 builtin and then its argument prototype would still apply. */
7693 rm -rf conftest.$ac_objext conftest$ac_exeext
7694 if { (ac_try="$ac_link"
7696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7697 *) ac_try_echo=$ac_try;;
7699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7700 $as_echo "$ac_try_echo") >&5
7701 (eval "$ac_link") 2>conftest.er1
7703 grep -v '^ *+' conftest.er1 >conftest.err
7705 cat conftest.err >&5
7706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } && {
7708 test -z "$ac_c_werror_flag" ||
7709 test ! -s conftest.err
7710 } && test -s conftest$ac_exeext && {
7711 test "$cross_compiling" = yes ||
7712 $as_test_x conftest$ac_exeext
7714 ac_cv_lib_ipc_shmat=yes
7716 $as_echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.$ac_ext >&5
7719 ac_cv_lib_ipc_shmat=no
7722 rm -rf conftest.dSYM
7723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7724 conftest$ac_exeext conftest.$ac_ext
7725 LIBS=$ac_check_lib_save_LIBS
7727 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7728 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7729 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
7730 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7736 # Check for libraries that X11R6 Xt/Xaw programs need.
7737 ac_save_LDFLAGS=$LDFLAGS
7738 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7739 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7740 # check for ICE first), but we must link in the order -lSM -lICE or
7741 # we get undefined symbols. So assume we have SM if we have ICE.
7742 # These have to be linked with before -lX11, unlike the other
7743 # libraries we check for below, so use a different variable.
7744 # John Interrante, Karl Berry
7745 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7746 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7747 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7748 $as_echo_n "(cached) " >&6
7750 ac_check_lib_save_LIBS=$LIBS
7751 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7752 cat >conftest.$ac_ext <<_ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7759 /* Override any GCC internal prototype to avoid an error.
7760 Use char because int might match the return type of a GCC
7761 builtin and then its argument prototype would still apply. */
7765 char IceConnectionNumber ();
7769 return IceConnectionNumber ();
7774 rm -rf conftest.$ac_objext conftest$ac_exeext
7775 if { (ac_try="$ac_link"
7777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7778 *) ac_try_echo=$ac_try;;
7780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7781 $as_echo "$ac_try_echo") >&5
7782 (eval "$ac_link") 2>conftest.er1
7784 grep -v '^ *+' conftest.er1 >conftest.err
7786 cat conftest.err >&5
7787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } && {
7789 test -z "$ac_c_werror_flag" ||
7790 test ! -s conftest.err
7791 } && test -s conftest$ac_exeext && {
7792 test "$cross_compiling" = yes ||
7793 $as_test_x conftest$ac_exeext
7795 ac_cv_lib_ICE_IceConnectionNumber=yes
7797 $as_echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.$ac_ext >&5
7800 ac_cv_lib_ICE_IceConnectionNumber=no
7803 rm -rf conftest.dSYM
7804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7805 conftest$ac_exeext conftest.$ac_ext
7806 LIBS=$ac_check_lib_save_LIBS
7808 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7809 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7810 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
7811 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7814 LDFLAGS=$ac_save_LDFLAGS
7819 if test "$have_x" != yes; then
7820 { { $as_echo "$as_me:$LINENO: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&5
7821 $as_echo "$as_me: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&2;}
7822 { (exit 1); exit 1; }; }
7826 { $as_echo "$as_me:$LINENO: checking for X app-defaults directory" >&5
7827 $as_echo_n "checking for X app-defaults directory... " >&6; }
7828 if test "${ac_cv_x_app_defaults+set}" = set; then
7829 $as_echo_n "(cached) " >&6
7833 if mkdir conftestdir; then
7834 cd conftestdir 2>/dev/null
7835 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7836 cat > Imakefile <<'EOF'
7838 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
7840 if (xmkmf) >/dev/null 2>&1 && test -f Makefile; then
7841 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
7842 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7847 if test x"$ac_x_app_defaults" = x; then
7849 # Look for the directory under a standard set of common directories.
7850 # Check X11 before X11Rn because it's often a symlink to the current release.
7852 /usr/X11/lib/app-defaults \
7853 /usr/X11R6/lib/app-defaults \
7854 /usr/X11R6/lib/X11/app-defaults \
7855 /usr/X11R5/lib/app-defaults \
7856 /usr/X11R5/lib/X11/app-defaults \
7857 /usr/X11R4/lib/app-defaults \
7858 /usr/X11R4/lib/X11/app-defaults \
7860 /usr/lib/X11/app-defaults \
7861 /usr/lib/X11R6/app-defaults \
7862 /usr/lib/X11R5/app-defaults \
7863 /usr/lib/X11R4/app-defaults \
7865 /usr/local/X11/lib/app-defaults \
7866 /usr/local/X11R6/lib/app-defaults \
7867 /usr/local/X11R5/lib/app-defaults \
7868 /usr/local/X11R4/lib/app-defaults \
7870 /usr/local/lib/X11/app-defaults \
7871 /usr/local/lib/X11R6/app-defaults \
7872 /usr/local/lib/X11R6/X11/app-defaults \
7873 /usr/local/lib/X11R5/app-defaults \
7874 /usr/local/lib/X11R5/X11/app-defaults \
7875 /usr/local/lib/X11R4/app-defaults \
7876 /usr/local/lib/X11R4/X11/app-defaults \
7878 /usr/X386/lib/X11/app-defaults \
7879 /usr/x386/lib/X11/app-defaults \
7880 /usr/XFree86/lib/X11/app-defaults \
7882 /usr/lib/X11/app-defaults \
7883 /usr/local/lib/X11/app-defaults \
7884 /usr/unsupported/lib/X11/app-defaults \
7885 /usr/athena/lib/X11/app-defaults \
7886 /usr/local/x11r5/lib/X11/app-defaults \
7887 /usr/lpp/Xamples/lib/X11/app-defaults \
7888 /lib/usr/lib/X11/app-defaults \
7890 /usr/openwin/lib/app-defaults \
7891 /usr/openwin/lib/X11/app-defaults \
7892 /usr/openwin/share/lib/app-defaults \
7893 /usr/openwin/share/lib/X11/app-defaults \
7895 /X11R6/lib/app-defaults \
7896 /X11R5/lib/app-defaults \
7897 /X11R4/lib/app-defaults \
7900 if test -d "$ac_dir"; then
7901 ac_x_app_defaults=$ac_dir
7907 if test x"$ac_x_app_defaults" = x; then
7908 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
7910 # Record where we found app-defaults for the cache.
7911 ac_cv_x_app_defaults="$ac_x_app_defaults"
7914 { $as_echo "$as_me:$LINENO: result: $ac_cv_x_app_defaults" >&5
7915 $as_echo "$ac_cv_x_app_defaults" >&6; }
7916 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
7920 # The following arcana was gleaned from conversations with
7921 # Eric Schwartz <erics@col.hp.com>:
7923 # On HPUX 10.x, the parts of X that HP considers "standard" live in
7924 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
7925 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
7926 # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
7927 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
7928 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
7929 # you don't need any -I or -L arguments.
7931 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
7932 # are the same division as 10.x. However, there are no symlinks to
7933 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
7934 # arguments are always necessary.
7936 # However, X11R6 was available on HPUX 9.x as a patch: if that
7937 # patch was installed, then all of X11R6 went in to
7938 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
7940 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
7941 # whether R5 was available as a patch; R6 undoubtedly was not.)
7943 # So. We try and use the highest numbered pair of
7944 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
7945 # that are available. We do not mix and match different versions
7948 # Question I still don't know the answer to: (do you?)
7950 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
7951 # /usr/contrib/X11R6/ could be installed as a patch, what was in
7952 # that contrib directory? Did it contain so-called "standard"
7953 # X11R6, or did it include Xaw and Xmu as well? If the former,
7954 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
7955 # be a situation where one had to reach into the R5 headers and
7956 # libs to find Xmu? That is, must both R6 and R5 directories
7957 # be on the -I and -L lists in that case?
7959 for version in X11R6 X11R5 X11R4 ; do
7960 # if either pair of directories exists...
7961 if test -d /usr/include/$version || test -d /usr/contrib/$version/include
7963 # if contrib exists, use it...
7964 if test -d /usr/contrib/$version/include ; then
7965 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
7966 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
7968 # if the "standard" one exists, use it.
7969 if test -d /usr/include/$version ; then
7970 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
7971 X_LIBS="$X_LIBS -L/usr/lib/$version"
7973 # since at least one of the pair exists, go no farther.
7978 # Now find Motif. Thanks for not making xmkmf find this by
7979 # default, you losers.
7981 if test -d /usr/include/Motif2.1 ; then
7982 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
7983 X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
7984 elif test -d /usr/include/Motif1.2 ; then
7985 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
7986 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
7987 elif test -d /usr/include/Motif1.1 ; then
7988 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
7989 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
7992 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
7994 if test -d /opt/graphics/OpenGL/include ; then
7995 # HP-UX 10.20 puts it here
7996 X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
7997 X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
7998 elif test -d /opt/Mesa/lib ; then
7999 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
8000 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
8004 if test -d /opt/xpm/lib/X11 ; then
8005 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
8006 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
8009 # On HPUX, default to installing in /opt/xscreensaver/ instead of
8010 # in /usr/local/, unless there is already an xscreensaver in
8011 # /usr/local/bin/. This can be overridden with the --prefix arg
8012 # to configure. I'm not sure this is the right thing to do, but
8013 # Richard Lloyd says so...
8015 if test \! -x /usr/local/bin/xscreensaver ; then
8016 ac_default_prefix=/opt/xscreensaver
8022 # Thanks for not making xmkmf find this by default, pinheads.
8023 # And thanks for moving things around again, too. Is this
8024 # really the standard location now? What happened to the
8025 # joke that this kind of thing went in /opt?
8026 # cthomp says "answer: CDE (Common Disorganized Environment)"
8028 if test -f /usr/dt/include/Xm/Xm.h ; then
8029 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
8030 MOTIF_LIBS="$MOTIF_LIBS -L/usr/dt/lib -R/usr/dt/lib"
8032 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
8033 { $as_echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
8034 $as_echo_n "checking for regcmp in -lgen... " >&6; }
8035 if test "${ac_cv_lib_gen_regcmp+set}" = set; then
8036 $as_echo_n "(cached) " >&6
8038 ac_check_lib_save_LIBS=$LIBS
8040 cat >conftest.$ac_ext <<_ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8047 /* Override any GCC internal prototype to avoid an error.
8048 Use char because int might match the return type of a GCC
8049 builtin and then its argument prototype would still apply. */
8062 rm -rf conftest.$ac_objext conftest$ac_exeext
8063 if { (ac_try="$ac_link"
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8069 $as_echo "$ac_try_echo") >&5
8070 (eval "$ac_link") 2>conftest.er1
8072 grep -v '^ *+' conftest.er1 >conftest.err
8074 cat conftest.err >&5
8075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } && {
8077 test -z "$ac_c_werror_flag" ||
8078 test ! -s conftest.err
8079 } && test -s conftest$ac_exeext && {
8080 test "$cross_compiling" = yes ||
8081 $as_test_x conftest$ac_exeext
8083 ac_cv_lib_gen_regcmp=yes
8085 $as_echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 ac_cv_lib_gen_regcmp=no
8091 rm -rf conftest.dSYM
8092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8093 conftest$ac_exeext conftest.$ac_ext
8094 LIBS=$ac_check_lib_save_LIBS
8096 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5
8097 $as_echo "$ac_cv_lib_gen_regcmp" >&6; }
8098 if test "x$ac_cv_lib_gen_regcmp" = x""yes; then
8099 MOTIF_LIBS="$MOTIF_LIBS -lgen"
8107 # On MacOS X (10.x with "fink"), many things are under /sw/.
8109 if test -d /sw/include ; then
8110 X_CFLAGS="-I/sw/include $X_CFLAGS"
8111 X_LIBS="-L/sw/lib $X_LIBS"
8115 { $as_echo "$as_me:$LINENO: checking for XPointer" >&5
8116 $as_echo_n "checking for XPointer... " >&6; }
8117 if test "${ac_cv_xpointer+set}" = set; then
8118 $as_echo_n "(cached) " >&6
8121 ac_save_CPPFLAGS="$CPPFLAGS"
8122 if test \! -z "$includedir" ; then
8123 CPPFLAGS="$CPPFLAGS -I$includedir"
8125 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8126 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
8127 cat >conftest.$ac_ext <<_ACEOF
8130 cat confdefs.h >>conftest.$ac_ext
8131 cat >>conftest.$ac_ext <<_ACEOF
8132 /* end confdefs.h. */
8133 #include <X11/Xlib.h>
8137 XPointer foo = (XPointer) 0;
8142 rm -rf conftest.$ac_objext
8143 if { (ac_try="$ac_compile"
8145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8146 *) ac_try_echo=$ac_try;;
8148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8149 $as_echo "$ac_try_echo") >&5
8150 (eval "$ac_compile") 2>conftest.er1
8152 grep -v '^ *+' conftest.er1 >conftest.err
8154 cat conftest.err >&5
8155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } && {
8157 test -z "$ac_c_werror_flag" ||
8158 test ! -s conftest.err
8159 } && test -s conftest.$ac_objext; then
8162 $as_echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8169 CPPFLAGS="$ac_save_CPPFLAGS"
8171 { $as_echo "$as_me:$LINENO: result: $ac_cv_xpointer" >&5
8172 $as_echo "$ac_cv_xpointer" >&6; }
8173 if test "$ac_cv_xpointer" != yes; then
8174 cat >>confdefs.h <<\_ACEOF
8175 #define XPointer char*
8180 { $as_echo "$as_me:$LINENO: checking whether this is MacOS X" >&5
8181 $as_echo_n "checking whether this is MacOS X... " >&6; }
8188 { $as_echo "$as_me:$LINENO: result: $ac_macosx" >&5
8189 $as_echo "$ac_macosx" >&6; }
8192 ###############################################################################
8196 ###############################################################################
8201 { $as_echo "$as_me:$LINENO: checking for intltool >= " >&5
8202 $as_echo_n "checking for intltool >= ... " >&6; }
8204 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
8205 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < intltool-update.in`
8207 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < intltool-update.in`
8210 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
8211 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
8212 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
8214 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5
8215 $as_echo "$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6; }
8220 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'
8221 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'
8222 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'
8223 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
8224 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'
8225 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'
8226 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'
8227 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'
8228 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'
8229 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'
8230 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'
8244 # Use the tools built into the package, not the ones that are installed.
8246 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
8247 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
8248 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
8254 # Extract the first word of "perl", so it can be a program name with args.
8255 set dummy perl; ac_word=$2
8256 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8257 $as_echo_n "checking for $ac_word... " >&6; }
8258 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
8259 $as_echo_n "(cached) " >&6
8261 case $INTLTOOL_PERL in
8263 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8273 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
8274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8284 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
8285 if test -n "$INTLTOOL_PERL"; then
8286 { $as_echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
8287 $as_echo "$INTLTOOL_PERL" >&6; }
8289 { $as_echo "$as_me:$LINENO: result: no" >&5
8290 $as_echo "no" >&6; }
8294 if test -z "$INTLTOOL_PERL"; then
8295 { { $as_echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
8296 $as_echo "$as_me: error: perl not found; required for intltool" >&2;}
8297 { (exit 1); exit 1; }; }
8299 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
8300 { { $as_echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
8301 $as_echo "$as_me: error: perl 5.x required for intltool" >&2;}
8302 { (exit 1); exit 1; }; }
8305 # Remove file type tags (using []) from po/POTFILES.
8313 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
8315 ac_config_commands="$ac_config_commands default-1"
8319 GETTEXT_PACKAGE=xscreensaver
8321 cat >>confdefs.h <<_ACEOF
8322 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
8326 cat >>confdefs.h <<_ACEOF
8327 #define PACKAGE "$GETTEXT_PACKAGE"
8332 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"
8333 if test -n "$ac_tool_prefix"; then
8334 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8335 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8336 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8337 $as_echo_n "checking for $ac_word... " >&6; }
8338 if test "${ac_cv_prog_RANLIB+set}" = set; then
8339 $as_echo_n "(cached) " >&6
8341 if test -n "$RANLIB"; then
8342 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 test -z "$as_dir" && as_dir=.
8349 for ac_exec_ext in '' $ac_executable_extensions; do
8350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8351 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8352 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8361 RANLIB=$ac_cv_prog_RANLIB
8362 if test -n "$RANLIB"; then
8363 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
8364 $as_echo "$RANLIB" >&6; }
8366 { $as_echo "$as_me:$LINENO: result: no" >&5
8367 $as_echo "no" >&6; }
8372 if test -z "$ac_cv_prog_RANLIB"; then
8373 ac_ct_RANLIB=$RANLIB
8374 # Extract the first word of "ranlib", so it can be a program name with args.
8375 set dummy ranlib; ac_word=$2
8376 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8377 $as_echo_n "checking for $ac_word... " >&6; }
8378 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8379 $as_echo_n "(cached) " >&6
8381 if test -n "$ac_ct_RANLIB"; then
8382 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 test -z "$as_dir" && as_dir=.
8389 for ac_exec_ext in '' $ac_executable_extensions; do
8390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8391 ac_cv_prog_ac_ct_RANLIB="ranlib"
8392 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8401 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8402 if test -n "$ac_ct_RANLIB"; then
8403 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8404 $as_echo "$ac_ct_RANLIB" >&6; }
8406 { $as_echo "$as_me:$LINENO: result: no" >&5
8407 $as_echo "no" >&6; }
8410 if test "x$ac_ct_RANLIB" = x; then
8413 case $cross_compiling:$ac_tool_warned in
8415 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8417 ac_tool_warned=yes ;;
8419 RANLIB=$ac_ct_RANLIB
8422 RANLIB="$ac_cv_prog_RANLIB"
8425 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
8426 $as_echo_n "checking for off_t... " >&6; }
8427 if test "${ac_cv_type_off_t+set}" = set; then
8428 $as_echo_n "(cached) " >&6
8431 cat >conftest.$ac_ext <<_ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h. */
8437 $ac_includes_default
8447 rm -rf conftest.$ac_objext
8448 if { (ac_try="$ac_compile"
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8454 $as_echo "$ac_try_echo") >&5
8455 (eval "$ac_compile") 2>conftest.er1
8457 grep -v '^ *+' conftest.er1 >conftest.err
8459 cat conftest.err >&5
8460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } && {
8462 test -z "$ac_c_werror_flag" ||
8463 test ! -s conftest.err
8464 } && test -s conftest.$ac_objext; then
8465 cat >conftest.$ac_ext <<_ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8471 $ac_includes_default
8475 if (sizeof ((off_t)))
8481 rm -rf conftest.$ac_objext
8482 if { (ac_try="$ac_compile"
8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485 *) ac_try_echo=$ac_try;;
8487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8488 $as_echo "$ac_try_echo") >&5
8489 (eval "$ac_compile") 2>conftest.er1
8491 grep -v '^ *+' conftest.er1 >conftest.err
8493 cat conftest.err >&5
8494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } && {
8496 test -z "$ac_c_werror_flag" ||
8497 test ! -s conftest.err
8498 } && test -s conftest.$ac_objext; then
8501 $as_echo "$as_me: failed program was:" >&5
8502 sed 's/^/| /' conftest.$ac_ext >&5
8504 ac_cv_type_off_t=yes
8507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8509 $as_echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8517 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8518 $as_echo "$ac_cv_type_off_t" >&6; }
8519 if test "x$ac_cv_type_off_t" = x""yes; then
8523 cat >>confdefs.h <<_ACEOF
8524 #define off_t long int
8529 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8530 # for constant arguments. Useless!
8531 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
8532 $as_echo_n "checking for working alloca.h... " >&6; }
8533 if test "${ac_cv_working_alloca_h+set}" = set; then
8534 $as_echo_n "(cached) " >&6
8536 cat >conftest.$ac_ext <<_ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h. */
8546 char *p = (char *) alloca (2 * sizeof (int));
8552 rm -rf conftest.$ac_objext conftest$ac_exeext
8553 if { (ac_try="$ac_link"
8555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8556 *) ac_try_echo=$ac_try;;
8558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8559 $as_echo "$ac_try_echo") >&5
8560 (eval "$ac_link") 2>conftest.er1
8562 grep -v '^ *+' conftest.er1 >conftest.err
8564 cat conftest.err >&5
8565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } && {
8567 test -z "$ac_c_werror_flag" ||
8568 test ! -s conftest.err
8569 } && test -s conftest$ac_exeext && {
8570 test "$cross_compiling" = yes ||
8571 $as_test_x conftest$ac_exeext
8573 ac_cv_working_alloca_h=yes
8575 $as_echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.$ac_ext >&5
8578 ac_cv_working_alloca_h=no
8581 rm -rf conftest.dSYM
8582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8583 conftest$ac_exeext conftest.$ac_ext
8585 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8586 $as_echo "$ac_cv_working_alloca_h" >&6; }
8587 if test $ac_cv_working_alloca_h = yes; then
8589 cat >>confdefs.h <<\_ACEOF
8590 #define HAVE_ALLOCA_H 1
8595 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
8596 $as_echo_n "checking for alloca... " >&6; }
8597 if test "${ac_cv_func_alloca_works+set}" = set; then
8598 $as_echo_n "(cached) " >&6
8600 cat >conftest.$ac_ext <<_ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h. */
8607 # define alloca __builtin_alloca
8610 # include <malloc.h>
8611 # define alloca _alloca
8613 # ifdef HAVE_ALLOCA_H
8614 # include <alloca.h>
8619 # ifndef alloca /* predefined by HP cc +Olibcalls */
8630 char *p = (char *) alloca (1);
8636 rm -rf conftest.$ac_objext conftest$ac_exeext
8637 if { (ac_try="$ac_link"
8639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640 *) ac_try_echo=$ac_try;;
8642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8643 $as_echo "$ac_try_echo") >&5
8644 (eval "$ac_link") 2>conftest.er1
8646 grep -v '^ *+' conftest.er1 >conftest.err
8648 cat conftest.err >&5
8649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } && {
8651 test -z "$ac_c_werror_flag" ||
8652 test ! -s conftest.err
8653 } && test -s conftest$ac_exeext && {
8654 test "$cross_compiling" = yes ||
8655 $as_test_x conftest$ac_exeext
8657 ac_cv_func_alloca_works=yes
8659 $as_echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8662 ac_cv_func_alloca_works=no
8665 rm -rf conftest.dSYM
8666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8667 conftest$ac_exeext conftest.$ac_ext
8669 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8670 $as_echo "$ac_cv_func_alloca_works" >&6; }
8672 if test $ac_cv_func_alloca_works = yes; then
8674 cat >>confdefs.h <<\_ACEOF
8675 #define HAVE_ALLOCA 1
8679 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8680 # that cause trouble. Some versions do not even contain alloca or
8681 # contain a buggy version. If you still want to use their alloca,
8682 # use ar to extract alloca.o from them instead of compiling alloca.c.
8684 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8686 cat >>confdefs.h <<\_ACEOF
8691 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8692 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8693 if test "${ac_cv_os_cray+set}" = set; then
8694 $as_echo_n "(cached) " >&6
8696 cat >conftest.$ac_ext <<_ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 #if defined CRAY && ! defined CRAY2
8709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8710 $EGREP "webecray" >/dev/null 2>&1; then
8718 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8719 $as_echo "$ac_cv_os_cray" >&6; }
8720 if test $ac_cv_os_cray = yes; then
8721 for ac_func in _getb67 GETB67 getb67; do
8722 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8723 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8724 $as_echo_n "checking for $ac_func... " >&6; }
8725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8726 $as_echo_n "(cached) " >&6
8728 cat >conftest.$ac_ext <<_ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h. */
8734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8736 #define $ac_func innocuous_$ac_func
8738 /* System header to define __stub macros and hopefully few prototypes,
8739 which can conflict with char $ac_func (); below.
8740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8741 <limits.h> exists even on freestanding compilers. */
8744 # include <limits.h>
8746 # include <assert.h>
8751 /* Override any GCC internal prototype to avoid an error.
8752 Use char because int might match the return type of a GCC
8753 builtin and then its argument prototype would still apply. */
8758 /* The GNU C library defines this for functions which it implements
8759 to always fail with ENOSYS. Some functions are actually named
8760 something starting with __ and the normal name is an alias. */
8761 #if defined __stub_$ac_func || defined __stub___$ac_func
8773 rm -rf conftest.$ac_objext conftest$ac_exeext
8774 if { (ac_try="$ac_link"
8776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8777 *) ac_try_echo=$ac_try;;
8779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8780 $as_echo "$ac_try_echo") >&5
8781 (eval "$ac_link") 2>conftest.er1
8783 grep -v '^ *+' conftest.er1 >conftest.err
8785 cat conftest.err >&5
8786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } && {
8788 test -z "$ac_c_werror_flag" ||
8789 test ! -s conftest.err
8790 } && test -s conftest$ac_exeext && {
8791 test "$cross_compiling" = yes ||
8792 $as_test_x conftest$ac_exeext
8794 eval "$as_ac_var=yes"
8796 $as_echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.$ac_ext >&5
8799 eval "$as_ac_var=no"
8802 rm -rf conftest.dSYM
8803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8804 conftest$ac_exeext conftest.$ac_ext
8806 ac_res=`eval 'as_val=${'$as_ac_var'}
8807 $as_echo "$as_val"'`
8808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8809 $as_echo "$ac_res" >&6; }
8810 as_val=`eval 'as_val=${'$as_ac_var'}
8811 $as_echo "$as_val"'`
8812 if test "x$as_val" = x""yes; then
8814 cat >>confdefs.h <<_ACEOF
8815 #define CRAY_STACKSEG_END $ac_func
8824 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8825 $as_echo_n "checking stack direction for C alloca... " >&6; }
8826 if test "${ac_cv_c_stack_direction+set}" = set; then
8827 $as_echo_n "(cached) " >&6
8829 if test "$cross_compiling" = yes; then
8830 ac_cv_c_stack_direction=0
8832 cat >conftest.$ac_ext <<_ACEOF
8835 cat confdefs.h >>conftest.$ac_ext
8836 cat >>conftest.$ac_ext <<_ACEOF
8837 /* end confdefs.h. */
8838 $ac_includes_default
8840 find_stack_direction ()
8842 static char *addr = 0;
8847 return find_stack_direction ();
8850 return (&dummy > addr) ? 1 : -1;
8856 return find_stack_direction () < 0;
8859 rm -rf conftest$ac_exeext
8860 if { (ac_try="$ac_link"
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8866 $as_echo "$ac_try_echo") >&5
8867 (eval "$ac_link") 2>&5
8869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8871 { (case "(($ac_try" in
8872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873 *) ac_try_echo=$ac_try;;
8875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8876 $as_echo "$ac_try_echo") >&5
8877 (eval "$ac_try") 2>&5
8879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 ac_cv_c_stack_direction=1
8883 $as_echo "$as_me: program exited with status $ac_status" >&5
8884 $as_echo "$as_me: failed program was:" >&5
8885 sed 's/^/| /' conftest.$ac_ext >&5
8888 ac_cv_c_stack_direction=-1
8890 rm -rf conftest.dSYM
8891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8896 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8897 $as_echo "$ac_cv_c_stack_direction" >&6; }
8899 cat >>confdefs.h <<_ACEOF
8900 #define STACK_DIRECTION $ac_cv_c_stack_direction
8908 for ac_header in stdlib.h unistd.h
8910 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8912 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8913 $as_echo_n "checking for $ac_header... " >&6; }
8914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8915 $as_echo_n "(cached) " >&6
8917 ac_res=`eval 'as_val=${'$as_ac_Header'}
8918 $as_echo "$as_val"'`
8919 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8920 $as_echo "$ac_res" >&6; }
8922 # Is the header compilable?
8923 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8924 $as_echo_n "checking $ac_header usability... " >&6; }
8925 cat >conftest.$ac_ext <<_ACEOF
8928 cat confdefs.h >>conftest.$ac_ext
8929 cat >>conftest.$ac_ext <<_ACEOF
8930 /* end confdefs.h. */
8931 $ac_includes_default
8932 #include <$ac_header>
8934 rm -rf conftest.$ac_objext
8935 if { (ac_try="$ac_compile"
8937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8938 *) ac_try_echo=$ac_try;;
8940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8941 $as_echo "$ac_try_echo") >&5
8942 (eval "$ac_compile") 2>conftest.er1
8944 grep -v '^ *+' conftest.er1 >conftest.err
8946 cat conftest.err >&5
8947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); } && {
8949 test -z "$ac_c_werror_flag" ||
8950 test ! -s conftest.err
8951 } && test -s conftest.$ac_objext; then
8952 ac_header_compiler=yes
8954 $as_echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8957 ac_header_compiler=no
8960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8961 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8962 $as_echo "$ac_header_compiler" >&6; }
8964 # Is the header present?
8965 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8966 $as_echo_n "checking $ac_header presence... " >&6; }
8967 cat >conftest.$ac_ext <<_ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h. */
8973 #include <$ac_header>
8975 if { (ac_try="$ac_cpp conftest.$ac_ext"
8977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978 *) ac_try_echo=$ac_try;;
8980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8981 $as_echo "$ac_try_echo") >&5
8982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8984 grep -v '^ *+' conftest.er1 >conftest.err
8986 cat conftest.err >&5
8987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } >/dev/null && {
8989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8990 test ! -s conftest.err
8992 ac_header_preproc=yes
8994 $as_echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8997 ac_header_preproc=no
9000 rm -rf conftest.err conftest.$ac_ext
9001 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9002 $as_echo "$ac_header_preproc" >&6; }
9004 # So? What about this header?
9005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9008 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9010 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9011 ac_header_preproc=yes
9014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9015 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9017 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9019 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9021 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9023 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9025 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9029 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9030 $as_echo_n "checking for $ac_header... " >&6; }
9031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9032 $as_echo_n "(cached) " >&6
9034 eval "$as_ac_Header=\$ac_header_preproc"
9036 ac_res=`eval 'as_val=${'$as_ac_Header'}
9037 $as_echo "$as_val"'`
9038 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9039 $as_echo "$ac_res" >&6; }
9042 as_val=`eval 'as_val=${'$as_ac_Header'}
9043 $as_echo "$as_val"'`
9044 if test "x$as_val" = x""yes; then
9045 cat >>confdefs.h <<_ACEOF
9046 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9054 for ac_func in getpagesize
9056 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9057 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9058 $as_echo_n "checking for $ac_func... " >&6; }
9059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9060 $as_echo_n "(cached) " >&6
9062 cat >conftest.$ac_ext <<_ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h. */
9068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9070 #define $ac_func innocuous_$ac_func
9072 /* System header to define __stub macros and hopefully few prototypes,
9073 which can conflict with char $ac_func (); below.
9074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9075 <limits.h> exists even on freestanding compilers. */
9078 # include <limits.h>
9080 # include <assert.h>
9085 /* Override any GCC internal prototype to avoid an error.
9086 Use char because int might match the return type of a GCC
9087 builtin and then its argument prototype would still apply. */
9092 /* The GNU C library defines this for functions which it implements
9093 to always fail with ENOSYS. Some functions are actually named
9094 something starting with __ and the normal name is an alias. */
9095 #if defined __stub_$ac_func || defined __stub___$ac_func
9107 rm -rf conftest.$ac_objext conftest$ac_exeext
9108 if { (ac_try="$ac_link"
9110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111 *) ac_try_echo=$ac_try;;
9113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9114 $as_echo "$ac_try_echo") >&5
9115 (eval "$ac_link") 2>conftest.er1
9117 grep -v '^ *+' conftest.er1 >conftest.err
9119 cat conftest.err >&5
9120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } && {
9122 test -z "$ac_c_werror_flag" ||
9123 test ! -s conftest.err
9124 } && test -s conftest$ac_exeext && {
9125 test "$cross_compiling" = yes ||
9126 $as_test_x conftest$ac_exeext
9128 eval "$as_ac_var=yes"
9130 $as_echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9133 eval "$as_ac_var=no"
9136 rm -rf conftest.dSYM
9137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9138 conftest$ac_exeext conftest.$ac_ext
9140 ac_res=`eval 'as_val=${'$as_ac_var'}
9141 $as_echo "$as_val"'`
9142 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9143 $as_echo "$ac_res" >&6; }
9144 as_val=`eval 'as_val=${'$as_ac_var'}
9145 $as_echo "$as_val"'`
9146 if test "x$as_val" = x""yes; then
9147 cat >>confdefs.h <<_ACEOF
9148 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9154 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
9155 $as_echo_n "checking for working mmap... " >&6; }
9156 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9157 $as_echo_n "(cached) " >&6
9159 if test "$cross_compiling" = yes; then
9160 ac_cv_func_mmap_fixed_mapped=no
9162 cat >conftest.$ac_ext <<_ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9168 $ac_includes_default
9169 /* malloc might have been renamed as rpl_malloc. */
9172 /* Thanks to Mike Haertel and Jim Avera for this test.
9173 Here is a matrix of mmap possibilities:
9174 mmap private not fixed
9175 mmap private fixed at somewhere currently unmapped
9176 mmap private fixed at somewhere already mapped
9177 mmap shared not fixed
9178 mmap shared fixed at somewhere currently unmapped
9179 mmap shared fixed at somewhere already mapped
9180 For private mappings, we should verify that changes cannot be read()
9181 back from the file, nor mmap's back from the file at a different
9182 address. (There have been systems where private was not correctly
9183 implemented like the infamous i386 svr4.0, and systems where the
9184 VM page cache was not coherent with the file system buffer cache
9185 like early versions of FreeBSD and possibly contemporary NetBSD.)
9186 For shared mappings, we should conversely verify that changes get
9187 propagated back to all the places they're supposed to be.
9189 Grep wants private fixed already mapped.
9190 The main things grep needs to know about mmap are:
9191 * does it exist and is it safe to write into the mmap'd area
9192 * how to use it (BSD variants) */
9195 #include <sys/mman.h>
9197 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9201 /* This mess was copied from the GNU getpagesize.h. */
9202 #ifndef HAVE_GETPAGESIZE
9203 /* Assume that all systems that can run configure have sys/param.h. */
9204 # ifndef HAVE_SYS_PARAM_H
9205 # define HAVE_SYS_PARAM_H 1
9208 # ifdef _SC_PAGESIZE
9209 # define getpagesize() sysconf(_SC_PAGESIZE)
9210 # else /* no _SC_PAGESIZE */
9211 # ifdef HAVE_SYS_PARAM_H
9212 # include <sys/param.h>
9213 # ifdef EXEC_PAGESIZE
9214 # define getpagesize() EXEC_PAGESIZE
9215 # else /* no EXEC_PAGESIZE */
9217 # define getpagesize() NBPG * CLSIZE
9220 # endif /* no CLSIZE */
9221 # else /* no NBPG */
9223 # define getpagesize() NBPC
9224 # else /* no NBPC */
9226 # define getpagesize() PAGESIZE
9227 # endif /* PAGESIZE */
9228 # endif /* no NBPC */
9229 # endif /* no NBPG */
9230 # endif /* no EXEC_PAGESIZE */
9231 # else /* no HAVE_SYS_PARAM_H */
9232 # define getpagesize() 8192 /* punt totally */
9233 # endif /* no HAVE_SYS_PARAM_H */
9234 # endif /* no _SC_PAGESIZE */
9236 #endif /* no HAVE_GETPAGESIZE */
9241 char *data, *data2, *data3;
9245 pagesize = getpagesize ();
9247 /* First, make a file with some known garbage in it. */
9248 data = (char *) malloc (pagesize);
9251 for (i = 0; i < pagesize; ++i)
9252 *(data + i) = rand ();
9254 fd = creat ("conftest.mmap", 0600);
9257 if (write (fd, data, pagesize) != pagesize)
9261 /* Next, try to mmap the file at a fixed address which already has
9262 something else allocated at it. If we can, also make sure that
9263 we see the same garbage. */
9264 fd = open ("conftest.mmap", O_RDWR);
9267 data2 = (char *) malloc (2 * pagesize);
9270 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9271 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9272 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9274 for (i = 0; i < pagesize; ++i)
9275 if (*(data + i) != *(data2 + i))
9278 /* Finally, make sure that changes to the mapped area do not
9279 percolate back to the file as seen by read(). (This is a bug on
9280 some variants of i386 svr4.0.) */
9281 for (i = 0; i < pagesize; ++i)
9282 *(data2 + i) = *(data2 + i) + 1;
9283 data3 = (char *) malloc (pagesize);
9286 if (read (fd, data3, pagesize) != pagesize)
9288 for (i = 0; i < pagesize; ++i)
9289 if (*(data + i) != *(data3 + i))
9295 rm -rf conftest$ac_exeext
9296 if { (ac_try="$ac_link"
9298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9299 *) ac_try_echo=$ac_try;;
9301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9302 $as_echo "$ac_try_echo") >&5
9303 (eval "$ac_link") 2>&5
9305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9307 { (case "(($ac_try" in
9308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9309 *) ac_try_echo=$ac_try;;
9311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9312 $as_echo "$ac_try_echo") >&5
9313 (eval "$ac_try") 2>&5
9315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); }; }; then
9317 ac_cv_func_mmap_fixed_mapped=yes
9319 $as_echo "$as_me: program exited with status $ac_status" >&5
9320 $as_echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9324 ac_cv_func_mmap_fixed_mapped=no
9326 rm -rf conftest.dSYM
9327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9332 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9333 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9334 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9336 cat >>confdefs.h <<\_ACEOF
9341 rm -rf conftest.mmap
9352 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
9353 unistd.h sys/param.h
9355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9357 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9358 $as_echo_n "checking for $ac_header... " >&6; }
9359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9360 $as_echo_n "(cached) " >&6
9362 ac_res=`eval 'as_val=${'$as_ac_Header'}
9363 $as_echo "$as_val"'`
9364 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9365 $as_echo "$ac_res" >&6; }
9367 # Is the header compilable?
9368 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9369 $as_echo_n "checking $ac_header usability... " >&6; }
9370 cat >conftest.$ac_ext <<_ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h. */
9376 $ac_includes_default
9377 #include <$ac_header>
9379 rm -rf conftest.$ac_objext
9380 if { (ac_try="$ac_compile"
9382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9383 *) ac_try_echo=$ac_try;;
9385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9386 $as_echo "$ac_try_echo") >&5
9387 (eval "$ac_compile") 2>conftest.er1
9389 grep -v '^ *+' conftest.er1 >conftest.err
9391 cat conftest.err >&5
9392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } && {
9394 test -z "$ac_c_werror_flag" ||
9395 test ! -s conftest.err
9396 } && test -s conftest.$ac_objext; then
9397 ac_header_compiler=yes
9399 $as_echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.$ac_ext >&5
9402 ac_header_compiler=no
9405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9406 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9407 $as_echo "$ac_header_compiler" >&6; }
9409 # Is the header present?
9410 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9411 $as_echo_n "checking $ac_header presence... " >&6; }
9412 cat >conftest.$ac_ext <<_ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9418 #include <$ac_header>
9420 if { (ac_try="$ac_cpp conftest.$ac_ext"
9422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9426 $as_echo "$ac_try_echo") >&5
9427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9429 grep -v '^ *+' conftest.er1 >conftest.err
9431 cat conftest.err >&5
9432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); } >/dev/null && {
9434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9435 test ! -s conftest.err
9437 ac_header_preproc=yes
9439 $as_echo "$as_me: failed program was:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9442 ac_header_preproc=no
9445 rm -rf conftest.err conftest.$ac_ext
9446 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9447 $as_echo "$ac_header_preproc" >&6; }
9449 # So? What about this header?
9450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9453 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9455 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9456 ac_header_preproc=yes
9459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9460 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9462 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9464 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9466 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9468 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9470 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9474 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9475 $as_echo_n "checking for $ac_header... " >&6; }
9476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9477 $as_echo_n "(cached) " >&6
9479 eval "$as_ac_Header=\$ac_header_preproc"
9481 ac_res=`eval 'as_val=${'$as_ac_Header'}
9482 $as_echo "$as_val"'`
9483 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9484 $as_echo "$ac_res" >&6; }
9487 as_val=`eval 'as_val=${'$as_ac_Header'}
9488 $as_echo "$as_val"'`
9489 if test "x$as_val" = x""yes; then
9490 cat >>confdefs.h <<_ACEOF
9491 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9509 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
9510 strdup __argz_count __argz_stringify __argz_next
9512 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9513 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9514 $as_echo_n "checking for $ac_func... " >&6; }
9515 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9516 $as_echo_n "(cached) " >&6
9518 cat >conftest.$ac_ext <<_ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9526 #define $ac_func innocuous_$ac_func
9528 /* System header to define __stub macros and hopefully few prototypes,
9529 which can conflict with char $ac_func (); below.
9530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9531 <limits.h> exists even on freestanding compilers. */
9534 # include <limits.h>
9536 # include <assert.h>
9541 /* Override any GCC internal prototype to avoid an error.
9542 Use char because int might match the return type of a GCC
9543 builtin and then its argument prototype would still apply. */
9548 /* The GNU C library defines this for functions which it implements
9549 to always fail with ENOSYS. Some functions are actually named
9550 something starting with __ and the normal name is an alias. */
9551 #if defined __stub_$ac_func || defined __stub___$ac_func
9563 rm -rf conftest.$ac_objext conftest$ac_exeext
9564 if { (ac_try="$ac_link"
9566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567 *) ac_try_echo=$ac_try;;
9569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9570 $as_echo "$ac_try_echo") >&5
9571 (eval "$ac_link") 2>conftest.er1
9573 grep -v '^ *+' conftest.er1 >conftest.err
9575 cat conftest.err >&5
9576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } && {
9578 test -z "$ac_c_werror_flag" ||
9579 test ! -s conftest.err
9580 } && test -s conftest$ac_exeext && {
9581 test "$cross_compiling" = yes ||
9582 $as_test_x conftest$ac_exeext
9584 eval "$as_ac_var=yes"
9586 $as_echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9589 eval "$as_ac_var=no"
9592 rm -rf conftest.dSYM
9593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9594 conftest$ac_exeext conftest.$ac_ext
9596 ac_res=`eval 'as_val=${'$as_ac_var'}
9597 $as_echo "$as_val"'`
9598 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9599 $as_echo "$ac_res" >&6; }
9600 as_val=`eval 'as_val=${'$as_ac_var'}
9601 $as_echo "$as_val"'`
9602 if test "x$as_val" = x""yes; then
9603 cat >>confdefs.h <<_ACEOF
9604 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9611 if test $ac_cv_header_locale_h = yes; then
9612 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9613 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9614 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9615 $as_echo_n "(cached) " >&6
9617 cat >conftest.$ac_ext <<_ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h. */
9632 rm -rf conftest.$ac_objext conftest$ac_exeext
9633 if { (ac_try="$ac_link"
9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9639 $as_echo "$ac_try_echo") >&5
9640 (eval "$ac_link") 2>conftest.er1
9642 grep -v '^ *+' conftest.er1 >conftest.err
9644 cat conftest.err >&5
9645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); } && {
9647 test -z "$ac_c_werror_flag" ||
9648 test ! -s conftest.err
9649 } && test -s conftest$ac_exeext && {
9650 test "$cross_compiling" = yes ||
9651 $as_test_x conftest$ac_exeext
9653 am_cv_val_LC_MESSAGES=yes
9655 $as_echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9658 am_cv_val_LC_MESSAGES=no
9661 rm -rf conftest.dSYM
9662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9663 conftest$ac_exeext conftest.$ac_ext
9665 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9666 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9667 if test $am_cv_val_LC_MESSAGES = yes; then
9669 cat >>confdefs.h <<\_ACEOF
9670 #define HAVE_LC_MESSAGES 1
9678 nls_cv_force_use_gnu_gettext="no"
9680 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9681 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9683 nls_cv_header_libgt=
9686 if test "${ac_cv_header_libintl_h+set}" = set; then
9687 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
9688 $as_echo_n "checking for libintl.h... " >&6; }
9689 if test "${ac_cv_header_libintl_h+set}" = set; then
9690 $as_echo_n "(cached) " >&6
9692 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9693 $as_echo "$ac_cv_header_libintl_h" >&6; }
9695 # Is the header compilable?
9696 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
9697 $as_echo_n "checking libintl.h usability... " >&6; }
9698 cat >conftest.$ac_ext <<_ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704 $ac_includes_default
9705 #include <libintl.h>
9707 rm -rf conftest.$ac_objext
9708 if { (ac_try="$ac_compile"
9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9714 $as_echo "$ac_try_echo") >&5
9715 (eval "$ac_compile") 2>conftest.er1
9717 grep -v '^ *+' conftest.er1 >conftest.err
9719 cat conftest.err >&5
9720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } && {
9722 test -z "$ac_c_werror_flag" ||
9723 test ! -s conftest.err
9724 } && test -s conftest.$ac_objext; then
9725 ac_header_compiler=yes
9727 $as_echo "$as_me: failed program was:" >&5
9728 sed 's/^/| /' conftest.$ac_ext >&5
9730 ac_header_compiler=no
9733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9734 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9735 $as_echo "$ac_header_compiler" >&6; }
9737 # Is the header present?
9738 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
9739 $as_echo_n "checking libintl.h presence... " >&6; }
9740 cat >conftest.$ac_ext <<_ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h. */
9746 #include <libintl.h>
9748 if { (ac_try="$ac_cpp conftest.$ac_ext"
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9754 $as_echo "$ac_try_echo") >&5
9755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9757 grep -v '^ *+' conftest.er1 >conftest.err
9759 cat conftest.err >&5
9760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } >/dev/null && {
9762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9763 test ! -s conftest.err
9765 ac_header_preproc=yes
9767 $as_echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_header_preproc=no
9773 rm -rf conftest.err conftest.$ac_ext
9774 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9775 $as_echo "$ac_header_preproc" >&6; }
9777 # So? What about this header?
9778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9780 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9781 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9782 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
9783 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
9784 ac_header_preproc=yes
9787 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
9788 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
9789 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
9790 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
9791 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
9792 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
9793 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
9794 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9795 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
9796 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
9797 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
9798 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
9802 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
9803 $as_echo_n "checking for libintl.h... " >&6; }
9804 if test "${ac_cv_header_libintl_h+set}" = set; then
9805 $as_echo_n "(cached) " >&6
9807 ac_cv_header_libintl_h=$ac_header_preproc
9809 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9810 $as_echo "$ac_cv_header_libintl_h" >&6; }
9813 if test "x$ac_cv_header_libintl_h" = x""yes; then
9814 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
9815 $as_echo_n "checking for dgettext in libc... " >&6; }
9816 if test "${gt_cv_func_dgettext_libc+set}" = set; then
9817 $as_echo_n "(cached) " >&6
9819 cat >conftest.$ac_ext <<_ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9825 #include <libintl.h>
9829 return (int) dgettext ("","")
9834 rm -rf conftest.$ac_objext conftest$ac_exeext
9835 if { (ac_try="$ac_link"
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9841 $as_echo "$ac_try_echo") >&5
9842 (eval "$ac_link") 2>conftest.er1
9844 grep -v '^ *+' conftest.er1 >conftest.err
9846 cat conftest.err >&5
9847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } && {
9849 test -z "$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9851 } && test -s conftest$ac_exeext && {
9852 test "$cross_compiling" = yes ||
9853 $as_test_x conftest$ac_exeext
9855 gt_cv_func_dgettext_libc=yes
9857 $as_echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9860 gt_cv_func_dgettext_libc=no
9863 rm -rf conftest.dSYM
9864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9865 conftest$ac_exeext conftest.$ac_ext
9867 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
9868 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
9870 if test "$gt_cv_func_dgettext_libc" != "yes"; then
9871 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
9872 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
9873 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
9874 $as_echo_n "(cached) " >&6
9876 ac_check_lib_save_LIBS=$LIBS
9878 cat >conftest.$ac_ext <<_ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h. */
9885 /* Override any GCC internal prototype to avoid an error.
9886 Use char because int might match the return type of a GCC
9887 builtin and then its argument prototype would still apply. */
9891 char bindtextdomain ();
9895 return bindtextdomain ();
9900 rm -rf conftest.$ac_objext conftest$ac_exeext
9901 if { (ac_try="$ac_link"
9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9907 $as_echo "$ac_try_echo") >&5
9908 (eval "$ac_link") 2>conftest.er1
9910 grep -v '^ *+' conftest.er1 >conftest.err
9912 cat conftest.err >&5
9913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } && {
9915 test -z "$ac_c_werror_flag" ||
9916 test ! -s conftest.err
9917 } && test -s conftest$ac_exeext && {
9918 test "$cross_compiling" = yes ||
9919 $as_test_x conftest$ac_exeext
9921 ac_cv_lib_intl_bindtextdomain=yes
9923 $as_echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9926 ac_cv_lib_intl_bindtextdomain=no
9929 rm -rf conftest.dSYM
9930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9931 conftest$ac_exeext conftest.$ac_ext
9932 LIBS=$ac_check_lib_save_LIBS
9934 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
9935 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
9936 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then
9937 { $as_echo "$as_me:$LINENO: checking for dgettext in libintl" >&5
9938 $as_echo_n "checking for dgettext in libintl... " >&6; }
9939 if test "${gt_cv_func_dgettext_libintl+set}" = set; then
9940 $as_echo_n "(cached) " >&6
9942 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
9943 $as_echo_n "checking for dgettext in -lintl... " >&6; }
9944 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
9945 $as_echo_n "(cached) " >&6
9947 ac_check_lib_save_LIBS=$LIBS
9949 cat >conftest.$ac_ext <<_ACEOF
9952 cat confdefs.h >>conftest.$ac_ext
9953 cat >>conftest.$ac_ext <<_ACEOF
9954 /* end confdefs.h. */
9956 /* Override any GCC internal prototype to avoid an error.
9957 Use char because int might match the return type of a GCC
9958 builtin and then its argument prototype would still apply. */
9971 rm -rf conftest.$ac_objext conftest$ac_exeext
9972 if { (ac_try="$ac_link"
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9978 $as_echo "$ac_try_echo") >&5
9979 (eval "$ac_link") 2>conftest.er1
9981 grep -v '^ *+' conftest.er1 >conftest.err
9983 cat conftest.err >&5
9984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); } && {
9986 test -z "$ac_c_werror_flag" ||
9987 test ! -s conftest.err
9988 } && test -s conftest$ac_exeext && {
9989 test "$cross_compiling" = yes ||
9990 $as_test_x conftest$ac_exeext
9992 ac_cv_lib_intl_dgettext=yes
9994 $as_echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9997 ac_cv_lib_intl_dgettext=no
10000 rm -rf conftest.dSYM
10001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10002 conftest$ac_exeext conftest.$ac_ext
10003 LIBS=$ac_check_lib_save_LIBS
10005 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
10006 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
10007 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
10008 gt_cv_func_dgettext_libintl=yes
10010 gt_cv_func_dgettext_libintl=no
10014 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libintl" >&5
10015 $as_echo "$gt_cv_func_dgettext_libintl" >&6; }
10020 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
10021 LIBS="$LIBS -lintl";
10024 if test "$gt_cv_func_dgettext_libc" = "yes" \
10025 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
10027 cat >>confdefs.h <<\_ACEOF
10028 #define HAVE_GETTEXT 1
10031 # Extract the first word of "msgfmt", so it can be a program name with args.
10032 set dummy msgfmt; ac_word=$2
10033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10034 $as_echo_n "checking for $ac_word... " >&6; }
10035 if test "${ac_cv_path_MSGFMT+set}" = set; then
10036 $as_echo_n "(cached) " >&6
10040 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10043 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10044 for ac_dir in $PATH; do
10045 test -z "$ac_dir" && ac_dir=.
10046 if test -f $ac_dir/$ac_word; then
10047 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
10048 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
10054 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
10058 MSGFMT="$ac_cv_path_MSGFMT"
10059 if test -n "$MSGFMT"; then
10060 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10061 $as_echo "$MSGFMT" >&6; }
10063 { $as_echo "$as_me:$LINENO: result: no" >&5
10064 $as_echo "no" >&6; }
10066 if test "$MSGFMT" != "no"; then
10068 for ac_func in dcgettext
10070 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10071 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10072 $as_echo_n "checking for $ac_func... " >&6; }
10073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10074 $as_echo_n "(cached) " >&6
10076 cat >conftest.$ac_ext <<_ACEOF
10079 cat confdefs.h >>conftest.$ac_ext
10080 cat >>conftest.$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10084 #define $ac_func innocuous_$ac_func
10086 /* System header to define __stub macros and hopefully few prototypes,
10087 which can conflict with char $ac_func (); below.
10088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10089 <limits.h> exists even on freestanding compilers. */
10092 # include <limits.h>
10094 # include <assert.h>
10099 /* Override any GCC internal prototype to avoid an error.
10100 Use char because int might match the return type of a GCC
10101 builtin and then its argument prototype would still apply. */
10106 /* The GNU C library defines this for functions which it implements
10107 to always fail with ENOSYS. Some functions are actually named
10108 something starting with __ and the normal name is an alias. */
10109 #if defined __stub_$ac_func || defined __stub___$ac_func
10116 return $ac_func ();
10121 rm -rf conftest.$ac_objext conftest$ac_exeext
10122 if { (ac_try="$ac_link"
10123 case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10128 $as_echo "$ac_try_echo") >&5
10129 (eval "$ac_link") 2>conftest.er1
10131 grep -v '^ *+' conftest.er1 >conftest.err
10132 rm -rf conftest.er1
10133 cat conftest.err >&5
10134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); } && {
10136 test -z "$ac_c_werror_flag" ||
10137 test ! -s conftest.err
10138 } && test -s conftest$ac_exeext && {
10139 test "$cross_compiling" = yes ||
10140 $as_test_x conftest$ac_exeext
10142 eval "$as_ac_var=yes"
10144 $as_echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10147 eval "$as_ac_var=no"
10150 rm -rf conftest.dSYM
10151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10152 conftest$ac_exeext conftest.$ac_ext
10154 ac_res=`eval 'as_val=${'$as_ac_var'}
10155 $as_echo "$as_val"'`
10156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10157 $as_echo "$ac_res" >&6; }
10158 as_val=`eval 'as_val=${'$as_ac_var'}
10159 $as_echo "$as_val"'`
10160 if test "x$as_val" = x""yes; then
10161 cat >>confdefs.h <<_ACEOF
10162 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10168 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10169 set dummy gmsgfmt; ac_word=$2
10170 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10171 $as_echo_n "checking for $ac_word... " >&6; }
10172 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10173 $as_echo_n "(cached) " >&6
10177 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181 for as_dir in $PATH
10184 test -z "$as_dir" && as_dir=.
10185 for ac_exec_ext in '' $ac_executable_extensions; do
10186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10187 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10188 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10195 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10199 GMSGFMT=$ac_cv_path_GMSGFMT
10200 if test -n "$GMSGFMT"; then
10201 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10202 $as_echo "$GMSGFMT" >&6; }
10204 { $as_echo "$as_me:$LINENO: result: no" >&5
10205 $as_echo "no" >&6; }
10209 # Extract the first word of "xgettext", so it can be a program name with args.
10210 set dummy xgettext; ac_word=$2
10211 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10212 $as_echo_n "checking for $ac_word... " >&6; }
10213 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10214 $as_echo_n "(cached) " >&6
10216 case "$XGETTEXT" in
10218 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10222 for ac_dir in $PATH; do
10223 test -z "$ac_dir" && ac_dir=.
10224 if test -f $ac_dir/$ac_word; then
10225 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
10226 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
10232 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10236 XGETTEXT="$ac_cv_path_XGETTEXT"
10237 if test -n "$XGETTEXT"; then
10238 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10239 $as_echo "$XGETTEXT" >&6; }
10241 { $as_echo "$as_me:$LINENO: result: no" >&5
10242 $as_echo "no" >&6; }
10245 cat >conftest.$ac_ext <<_ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h. */
10255 extern int _nl_msg_cat_cntr;
10256 return _nl_msg_cat_cntr
10261 rm -rf conftest.$ac_objext conftest$ac_exeext
10262 if { (ac_try="$ac_link"
10263 case "(($ac_try" in
10264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265 *) ac_try_echo=$ac_try;;
10267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10268 $as_echo "$ac_try_echo") >&5
10269 (eval "$ac_link") 2>conftest.er1
10271 grep -v '^ *+' conftest.er1 >conftest.err
10272 rm -rf conftest.er1
10273 cat conftest.err >&5
10274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && {
10276 test -z "$ac_c_werror_flag" ||
10277 test ! -s conftest.err
10278 } && test -s conftest$ac_exeext && {
10279 test "$cross_compiling" = yes ||
10280 $as_test_x conftest$ac_exeext
10285 $as_echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10292 rm -rf conftest.dSYM
10293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10294 conftest$ac_exeext conftest.$ac_ext
10299 # Added by Martin Baulig 12/15/98 for libc5 systems
10300 if test "$gt_cv_func_dgettext_libc" != "yes" \
10301 && test "$gt_cv_func_dgettext_libintl" = "yes"; then
10303 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
10310 if test "$CATOBJEXT" = "NONE"; then
10311 nls_cv_use_gnu_gettext=yes
10315 if test "$nls_cv_use_gnu_gettext" != "yes"; then
10317 cat >>confdefs.h <<\_ACEOF
10318 #define ENABLE_NLS 1
10325 if test "$XGETTEXT" != ":"; then
10326 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
10329 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10330 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
10335 # We need to process the po/ directory.
10338 ac_config_commands="$ac_config_commands default-2"
10341 for lang in $ALL_LINGUAS; do
10342 GMOFILES="$GMOFILES $lang.gmo"
10343 POFILES="$POFILES $lang.po"
10358 if test "x$CATOBJEXT" != "x"; then
10359 if test "x$ALL_LINGUAS" = "x"; then
10362 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10363 $as_echo_n "checking for catalogs to be installed... " >&6; }
10365 for lang in ${LINGUAS=$ALL_LINGUAS}; do
10366 case "$ALL_LINGUAS" in
10367 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
10370 LINGUAS=$NEW_LINGUAS
10371 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
10372 $as_echo "$LINGUAS" >&6; }
10375 if test -n "$LINGUAS"; then
10376 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
10380 test -d po || mkdir po
10381 if test "$CATOBJEXT" = ".cat"; then
10382 if test "${ac_cv_header_linux_version_h+set}" = set; then
10383 { $as_echo "$as_me:$LINENO: checking for linux/version.h" >&5
10384 $as_echo_n "checking for linux/version.h... " >&6; }
10385 if test "${ac_cv_header_linux_version_h+set}" = set; then
10386 $as_echo_n "(cached) " >&6
10388 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
10389 $as_echo "$ac_cv_header_linux_version_h" >&6; }
10391 # Is the header compilable?
10392 { $as_echo "$as_me:$LINENO: checking linux/version.h usability" >&5
10393 $as_echo_n "checking linux/version.h usability... " >&6; }
10394 cat >conftest.$ac_ext <<_ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10400 $ac_includes_default
10401 #include <linux/version.h>
10403 rm -rf conftest.$ac_objext
10404 if { (ac_try="$ac_compile"
10405 case "(($ac_try" in
10406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10407 *) ac_try_echo=$ac_try;;
10409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10410 $as_echo "$ac_try_echo") >&5
10411 (eval "$ac_compile") 2>conftest.er1
10413 grep -v '^ *+' conftest.er1 >conftest.err
10414 rm -rf conftest.er1
10415 cat conftest.err >&5
10416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } && {
10418 test -z "$ac_c_werror_flag" ||
10419 test ! -s conftest.err
10420 } && test -s conftest.$ac_objext; then
10421 ac_header_compiler=yes
10423 $as_echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10426 ac_header_compiler=no
10429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10430 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10431 $as_echo "$ac_header_compiler" >&6; }
10433 # Is the header present?
10434 { $as_echo "$as_me:$LINENO: checking linux/version.h presence" >&5
10435 $as_echo_n "checking linux/version.h presence... " >&6; }
10436 cat >conftest.$ac_ext <<_ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10442 #include <linux/version.h>
10444 if { (ac_try="$ac_cpp conftest.$ac_ext"
10445 case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10450 $as_echo "$ac_try_echo") >&5
10451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10453 grep -v '^ *+' conftest.er1 >conftest.err
10454 rm -rf conftest.er1
10455 cat conftest.err >&5
10456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } >/dev/null && {
10458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10459 test ! -s conftest.err
10461 ac_header_preproc=yes
10463 $as_echo "$as_me: failed program was:" >&5
10464 sed 's/^/| /' conftest.$ac_ext >&5
10466 ac_header_preproc=no
10469 rm -rf conftest.err conftest.$ac_ext
10470 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10471 $as_echo "$ac_header_preproc" >&6; }
10473 # So? What about this header?
10474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10476 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
10477 $as_echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10478 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
10479 $as_echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
10480 ac_header_preproc=yes
10483 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
10484 $as_echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
10485 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
10486 $as_echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
10487 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
10488 $as_echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
10489 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
10490 $as_echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
10491 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
10492 $as_echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
10493 { $as_echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
10494 $as_echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
10498 { $as_echo "$as_me:$LINENO: checking for linux/version.h" >&5
10499 $as_echo_n "checking for linux/version.h... " >&6; }
10500 if test "${ac_cv_header_linux_version_h+set}" = set; then
10501 $as_echo_n "(cached) " >&6
10503 ac_cv_header_linux_version_h=$ac_header_preproc
10505 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
10506 $as_echo "$ac_cv_header_linux_version_h" >&6; }
10509 if test "x$ac_cv_header_linux_version_h" = x""yes; then
10517 sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
10522 # jwz: fuck this! it puts hardcoded pathnames into the generated Makefiles!
10524 # if test -n "$ac_aux_dir"; then
10525 # MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
10527 if test -z "$MKINSTALLDIRS"; then
10528 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10531 # jwz: you know what, screw it. Let's just use the version that I
10532 # already computed in configure.in, instead of this version that came
10533 # with the i18n crud, ok?
10534 MKINSTALLDIRS="$INSTALL_DIRS"
10539 test -d po || mkdir po
10540 if test "x$srcdir" != "x."; then
10541 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
10542 posrcprefix="$srcdir/"
10544 posrcprefix="../$srcdir/"
10550 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
10551 < $srcdir/po/POTFILES.in > po/POTFILES
10553 MKINSTALLDIRS="$INSTALL_DIRS"
10556 ###############################################################################
10558 # Check for -lXmu (some fucked up vendors don't ship it...)
10560 ###############################################################################
10564 ac_save_CPPFLAGS="$CPPFLAGS"
10565 if test \! -z "$includedir" ; then
10566 CPPFLAGS="$CPPFLAGS -I$includedir"
10568 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10569 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
10570 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Error.h" >&5
10571 $as_echo_n "checking for X11/Xmu/Error.h... " >&6; }
10572 if test "${ac_cv_header_X11_Xmu_Error_h+set}" = set; then
10573 $as_echo_n "(cached) " >&6
10575 cat >conftest.$ac_ext <<_ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10581 #include <stdlib.h>
10583 #include <X11/Intrinsic.h>
10585 #include <X11/Xmu/Error.h>
10587 rm -rf conftest.$ac_objext
10588 if { (ac_try="$ac_compile"
10589 case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10594 $as_echo "$ac_try_echo") >&5
10595 (eval "$ac_compile") 2>conftest.er1
10597 grep -v '^ *+' conftest.er1 >conftest.err
10598 rm -rf conftest.er1
10599 cat conftest.err >&5
10600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } && {
10602 test -z "$ac_c_werror_flag" ||
10603 test ! -s conftest.err
10604 } && test -s conftest.$ac_objext; then
10605 ac_cv_header_X11_Xmu_Error_h=yes
10607 $as_echo "$as_me: failed program was:" >&5
10608 sed 's/^/| /' conftest.$ac_ext >&5
10610 ac_cv_header_X11_Xmu_Error_h=no
10613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10615 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xmu_Error_h" >&5
10616 $as_echo "$ac_cv_header_X11_Xmu_Error_h" >&6; }
10617 if test "x$ac_cv_header_X11_Xmu_Error_h" = x""yes; then
10622 CPPFLAGS="$ac_save_CPPFLAGS"
10623 if test "$have_xmu" = no ; then
10624 XMU_SRCS='$(UTILS_SRC)/xmu.c'
10625 XMU_OBJS='$(UTILS_BIN)/xmu.o'
10631 cat >>confdefs.h <<\_ACEOF
10638 ###############################################################################
10640 # Check for the SunOS 4.1.x _get_wmShellWidgetClass bug.
10641 # See comp.windows.x FAQ question 124. The right fix is to
10642 # get OpenWindows 3.0 patches 100512-02 and 100573-03.
10644 ###############################################################################
10646 if test "$have_xmu" = yes ; then
10649 { $as_echo "$as_me:$LINENO: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
10650 $as_echo_n "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug... " >&6; }
10651 if test "${ac_cv_sunos_xmu_bug+set}" = set; then
10652 $as_echo_n "(cached) " >&6
10654 ac_save_LDFLAGS="$LDFLAGS"
10655 if test \! -z "$x_libraries" ; then
10656 LDFLAGS="$LDFLAGS -L$x_libraries"
10658 # Note: this trick never works! (Generally.)
10659 # We're only getting away with using AC_TRY_LINK
10660 # with X libraries because we know it's SunOS.
10661 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
10662 cat >conftest.$ac_ext <<_ACEOF
10665 cat confdefs.h >>conftest.$ac_ext
10666 cat >>conftest.$ac_ext <<_ACEOF
10667 /* end confdefs.h. */
10677 rm -rf conftest.$ac_objext conftest$ac_exeext
10678 if { (ac_try="$ac_link"
10679 case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10684 $as_echo "$ac_try_echo") >&5
10685 (eval "$ac_link") 2>conftest.er1
10687 grep -v '^ *+' conftest.er1 >conftest.err
10688 rm -rf conftest.er1
10689 cat conftest.err >&5
10690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } && {
10692 test -z "$ac_c_werror_flag" ||
10693 test ! -s conftest.err
10694 } && test -s conftest$ac_exeext && {
10695 test "$cross_compiling" = yes ||
10696 $as_test_x conftest$ac_exeext
10698 ac_cv_sunos_xmu_bug=no
10700 $as_echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.$ac_ext >&5
10703 ac_cv_sunos_xmu_bug=yes
10706 rm -rf conftest.dSYM
10707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10708 conftest$ac_exeext conftest.$ac_ext
10709 LDFLAGS="$ac_save_LDFLAGS"
10711 { $as_echo "$as_me:$LINENO: result: $ac_cv_sunos_xmu_bug" >&5
10712 $as_echo "$ac_cv_sunos_xmu_bug" >&6; }
10713 if test "$ac_cv_sunos_xmu_bug" = yes ; then
10714 { $as_echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
10715 $as_echo_n "checking whether the compiler understands -static... " >&6; }
10716 if test "${ac_cv_ld_static+set}" = set; then
10717 $as_echo_n "(cached) " >&6
10719 ac_save_LDFLAGS="$LDFLAGS"
10720 LDFLAGS="$LDFLAGS -static"
10721 cat >conftest.$ac_ext <<_ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10736 rm -rf conftest.$ac_objext conftest$ac_exeext
10737 if { (ac_try="$ac_link"
10738 case "(($ac_try" in
10739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740 *) ac_try_echo=$ac_try;;
10742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10743 $as_echo "$ac_try_echo") >&5
10744 (eval "$ac_link") 2>conftest.er1
10746 grep -v '^ *+' conftest.er1 >conftest.err
10747 rm -rf conftest.er1
10748 cat conftest.err >&5
10749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } && {
10751 test -z "$ac_c_werror_flag" ||
10752 test ! -s conftest.err
10753 } && test -s conftest$ac_exeext && {
10754 test "$cross_compiling" = yes ||
10755 $as_test_x conftest$ac_exeext
10757 ac_cv_ld_static=yes
10759 $as_echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10765 rm -rf conftest.dSYM
10766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10767 conftest$ac_exeext conftest.$ac_ext
10768 LDFLAGS="$ac_save_LDFLAGS"
10770 { $as_echo "$as_me:$LINENO: result: $ac_cv_ld_static" >&5
10771 $as_echo "$ac_cv_ld_static" >&6; }
10772 if test "$ac_cv_ld_static" = yes ; then
10773 LDFLAGS="$LDFLAGS -static"
10775 LDFLAGS="$LDFLAGS -Bstatic"
10783 ###############################################################################
10785 # Handle the --with-hackdir option
10787 ###############################################################################
10790 with_hackdir_req=unspecified
10792 # Check whether --with-hackdir was given.
10793 if test "${with_hackdir+set}" = set; then
10794 withval=$with_hackdir; with_hackdir="$withval"; with_hackdir_req="$withval"
10800 if test x"$with_hackdir" = xyes; then
10801 HACKDIR='${libexecdir}/xscreensaver'
10802 elif test x"$with_hackdir" = xno; then
10803 HACKDIR='${bindir}'
10805 HACKDIR=$with_hackdir
10808 # canonicalize slashes.
10809 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
10811 # Expand HACKDIR as HACKDIR_FULL
10812 HACKDIR_FULL=`eval eval eval eval eval eval eval eval eval echo $HACKDIR`
10814 # This option used to be called --enable-subdir; make sure that is no longer
10815 # used, since configure brain-damagedly ignores unknown --enable options.
10818 # Check whether --enable-subdir was given.
10819 if test "${enable_subdir+set}" = set; then
10820 enableval=$enable_subdir; obsolete_enable=yes
10823 if test -n "$obsolete_enable"; then
10824 echo "error: the --enable-subdir option has been replaced with"
10825 echo " the new --with-hackdir option; see \`configure --help'"
10826 echo " for more information."
10831 ###############################################################################
10833 # Handle the --with-configdir option
10834 # Help for --with-x-app-defaults option added.
10836 ###############################################################################
10839 with_configdir_req=unspecified
10841 # Check whether --with-configdir was given.
10842 if test "${with_configdir+set}" = set; then
10843 withval=$with_configdir; with_configdir="$withval"; with_configdir_req="$withval"
10849 if test x"$with_configdir" = xyes; then
10850 HACK_CONF_DIR='${datadir}/xscreensaver/config'
10851 elif test x"$with_configdir" = xno; then
10852 echo "error: must be yes, or a pathname: --with-configdir=$with_configdir"
10855 # there must be a better way than this...
10856 if test -z "`echo $with_configdir | sed 's@^/.*@@'`" ; then
10858 HACK_CONF_DIR=$with_configdir
10861 HACK_CONF_DIR="\${exec_prefix}$with_configdir"
10868 ###############################################################################
10870 # Check for the SGI SCREEN_SAVER server extension.
10872 ###############################################################################
10875 #with_sgi_req=unspecified
10876 #AC_ARG_WITH(sgi-ext,
10877 #[Except where noted, all of the --with options below can also take a
10878 #directory argument: for example, `--with-motif=/opt/Motif'. That would
10879 #cause /opt/Motif/include/ to be added to the -I list, and /opt/Motif/lib/
10880 #to be added to the -L list, assuming those directories exist.
10882 #By default, support for each of these options will be built in, if the
10883 #relevant library routines exist. At run time, they will then be used
10884 #only if the X server being used supports them. Each --with option has
10885 #a corresponding --without option, to override building support for them
10888 #Screen blanking and idle-detection options:
10890 # --with-sgi-ext Include support for the SGI SCREEN_SAVER extension.],
10891 # [with_sgi="$withval"; with_sgi_req="$withval"],[with_sgi=yes])
10893 #HANDLE_X_PATH_ARG(with_sgi, --with-sgi-ext, SGI SCREEN_SAVER)
10895 #if test "$with_sgi" = yes; then
10896 # AC_CHECK_X_HEADER(X11/extensions/XScreenSaver.h,
10898 # AC_DEFINE(HAVE_SGI_SAVER_EXTENSION)],,
10899 # [#include <X11/Xlib.h>])
10901 #elif test "$with_sgi" != no; then
10902 # echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
10907 ###############################################################################
10909 # Check for the XIDLE server extension.
10911 ###############################################################################
10914 #with_xidle_req=unspecified
10915 #AC_ARG_WITH(xidle-ext,
10916 #[ --with-xidle-ext Include support for the XIDLE extension.],
10917 # [with_xidle="$withval"; with_xidle_req="$withval"],[with_xidle=yes])
10919 #HANDLE_X_PATH_ARG(with_xidle, --with-xidle-ext, XIDLE)
10921 #if test "$with_xidle" = yes; then
10922 # AC_CHECK_X_HEADER(X11/extensions/xidle.h,
10924 # AC_DEFINE(HAVE_XIDLE_EXTENSION)],,
10925 # [#include <X11/Xlib.h>])
10926 #elif test "$with_xidle" != no; then
10927 # echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
10932 ###############################################################################
10934 # Check for the SGI-VIDEO-CONTROL server extension.
10936 ###############################################################################
10939 #with_sgivc_req=unspecified
10940 #AC_ARG_WITH(sgivc-ext,
10941 #[ --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL extension.],
10942 # [with_sgivc="$withval"; with_sgivc_req="$withval"],[with_sgivc=yes])
10944 #HANDLE_X_PATH_ARG(with_sgivc, --with-sgivc-ext, SGI-VIDEO-CONTROL)
10946 #if test "$with_sgivc" = yes; then
10948 # # first check for XSGIvc.h
10949 # AC_CHECK_X_HEADER(X11/extensions/XSGIvc.h, [have_sgivc=yes],,
10950 # [#include <X11/Xlib.h>])
10952 # # if that succeeded, then check for the -lXsgivc
10953 # if test "$have_sgivc" = yes; then
10955 # AC_CHECK_X_LIB(Xsgivc, XSGIvcQueryGammaMap,
10956 # [have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"], [true],
10960 # # if that succeeded, then we've really got it.
10961 # if test "$have_sgivc" = yes; then
10962 # AC_DEFINE(HAVE_SGI_VC_EXTENSION)
10965 #elif test "$with_sgivc" != no; then
10966 # echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
10971 ###############################################################################
10973 # Check for the DPMS server extension.
10975 ###############################################################################
10978 with_dpms_req=unspecified
10980 # Check whether --with-dpms-ext was given.
10981 if test "${with_dpms_ext+set}" = set; then
10982 withval=$with_dpms_ext; with_dpms="$withval"; with_dpms_req="$withval"
10989 case "$with_dpms" in
10994 { $as_echo "$as_me:$LINENO: checking for DPMS headers" >&5
10995 $as_echo_n "checking for DPMS headers... " >&6; }
10996 d=$with_dpms/include
10997 if test -d $d; then
10998 X_CFLAGS="-I$d $X_CFLAGS"
10999 { $as_echo "$as_me:$LINENO: result: $d" >&5
11000 $as_echo "$d" >&6; }
11002 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11003 $as_echo "not found ($d: no such directory)" >&6; }
11006 { $as_echo "$as_me:$LINENO: checking for DPMS libs" >&5
11007 $as_echo_n "checking for DPMS libs... " >&6; }
11009 if test -d $d; then
11010 X_LIBS="-L$d $X_LIBS"
11011 { $as_echo "$as_me:$LINENO: result: $d" >&5
11012 $as_echo "$d" >&6; }
11014 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11015 $as_echo "not found ($d: no such directory)" >&6; }
11018 # replace the directory string with "yes".
11019 with_dpms_req="yes"
11020 with_dpms=$with_dpms_req
11025 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
11026 echo " If it is a directory, then \`DIR/include' will be added to"
11027 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11033 if test "$with_dpms" = yes; then
11035 # first check for dpms.h
11037 ac_save_CPPFLAGS="$CPPFLAGS"
11038 if test \! -z "$includedir" ; then
11039 CPPFLAGS="$CPPFLAGS -I$includedir"
11041 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11042 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11043 { $as_echo "$as_me:$LINENO: checking for X11/extensions/dpms.h" >&5
11044 $as_echo_n "checking for X11/extensions/dpms.h... " >&6; }
11045 if test "${ac_cv_header_X11_extensions_dpms_h+set}" = set; then
11046 $as_echo_n "(cached) " >&6
11048 cat >conftest.$ac_ext <<_ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11054 #include <X11/Xlib.h>
11055 #include <X11/Xmd.h>
11057 #include <X11/extensions/dpms.h>
11059 rm -rf conftest.$ac_objext
11060 if { (ac_try="$ac_compile"
11061 case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11066 $as_echo "$ac_try_echo") >&5
11067 (eval "$ac_compile") 2>conftest.er1
11069 grep -v '^ *+' conftest.er1 >conftest.err
11070 rm -rf conftest.er1
11071 cat conftest.err >&5
11072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } && {
11074 test -z "$ac_c_werror_flag" ||
11075 test ! -s conftest.err
11076 } && test -s conftest.$ac_objext; then
11077 ac_cv_header_X11_extensions_dpms_h=yes
11079 $as_echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11082 ac_cv_header_X11_extensions_dpms_h=no
11085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11087 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_dpms_h" >&5
11088 $as_echo "$ac_cv_header_X11_extensions_dpms_h" >&6; }
11089 if test "x$ac_cv_header_X11_extensions_dpms_h" = x""yes; then
11094 CPPFLAGS="$ac_save_CPPFLAGS"
11096 # if that succeeded, then check for the DPMS code in the libraries
11097 if test "$have_dpms" = yes; then
11099 # first look in -lXext (this is where it is with XFree86 4.0)
11102 ac_save_CPPFLAGS="$CPPFLAGS"
11103 ac_save_LDFLAGS="$LDFLAGS"
11104 # ac_save_LIBS="$LIBS"
11106 if test \! -z "$includedir" ; then
11107 CPPFLAGS="$CPPFLAGS -I$includedir"
11109 # note: $X_CFLAGS includes $x_includes
11110 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11112 if test \! -z "$libdir" ; then
11113 LDFLAGS="$LDFLAGS -L$libdir"
11115 # note: $X_LIBS includes $x_libraries
11116 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11118 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11119 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11120 { $as_echo "$as_me:$LINENO: checking for DPMSInfo in -lXext" >&5
11121 $as_echo_n "checking for DPMSInfo in -lXext... " >&6; }
11122 if test "${ac_cv_lib_Xext_DPMSInfo+set}" = set; then
11123 $as_echo_n "(cached) " >&6
11125 ac_check_lib_save_LIBS=$LIBS
11126 LIBS="-lXext -lXext -lX11 $LIBS"
11127 cat >conftest.$ac_ext <<_ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11134 /* Override any GCC internal prototype to avoid an error.
11135 Use char because int might match the return type of a GCC
11136 builtin and then its argument prototype would still apply. */
11144 return DPMSInfo ();
11149 rm -rf conftest.$ac_objext conftest$ac_exeext
11150 if { (ac_try="$ac_link"
11151 case "(($ac_try" in
11152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11156 $as_echo "$ac_try_echo") >&5
11157 (eval "$ac_link") 2>conftest.er1
11159 grep -v '^ *+' conftest.er1 >conftest.err
11160 rm -rf conftest.er1
11161 cat conftest.err >&5
11162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } && {
11164 test -z "$ac_c_werror_flag" ||
11165 test ! -s conftest.err
11166 } && test -s conftest$ac_exeext && {
11167 test "$cross_compiling" = yes ||
11168 $as_test_x conftest$ac_exeext
11170 ac_cv_lib_Xext_DPMSInfo=yes
11172 $as_echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11175 ac_cv_lib_Xext_DPMSInfo=no
11178 rm -rf conftest.dSYM
11179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11180 conftest$ac_exeext conftest.$ac_ext
11181 LIBS=$ac_check_lib_save_LIBS
11183 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_DPMSInfo" >&5
11184 $as_echo "$ac_cv_lib_Xext_DPMSInfo" >&6; }
11185 if test "x$ac_cv_lib_Xext_DPMSInfo" = x""yes; then
11191 CPPFLAGS="$ac_save_CPPFLAGS"
11192 LDFLAGS="$ac_save_LDFLAGS"
11193 # LIBS="$ac_save_LIBS"
11196 # if that failed, look in -lXdpms (this is where it was in XFree86 3.x)
11197 if test "$have_dpms" = no; then
11199 ac_save_CPPFLAGS="$CPPFLAGS"
11200 ac_save_LDFLAGS="$LDFLAGS"
11201 # ac_save_LIBS="$LIBS"
11203 if test \! -z "$includedir" ; then
11204 CPPFLAGS="$CPPFLAGS -I$includedir"
11206 # note: $X_CFLAGS includes $x_includes
11207 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11209 if test \! -z "$libdir" ; then
11210 LDFLAGS="$LDFLAGS -L$libdir"
11212 # note: $X_LIBS includes $x_libraries
11213 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11215 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11216 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11217 { $as_echo "$as_me:$LINENO: checking for DPMSInfo in -lXdpms" >&5
11218 $as_echo_n "checking for DPMSInfo in -lXdpms... " >&6; }
11219 if test "${ac_cv_lib_Xdpms_DPMSInfo+set}" = set; then
11220 $as_echo_n "(cached) " >&6
11222 ac_check_lib_save_LIBS=$LIBS
11223 LIBS="-lXdpms -lXext -lX11 $LIBS"
11224 cat >conftest.$ac_ext <<_ACEOF
11227 cat confdefs.h >>conftest.$ac_ext
11228 cat >>conftest.$ac_ext <<_ACEOF
11229 /* end confdefs.h. */
11231 /* Override any GCC internal prototype to avoid an error.
11232 Use char because int might match the return type of a GCC
11233 builtin and then its argument prototype would still apply. */
11241 return DPMSInfo ();
11246 rm -rf conftest.$ac_objext conftest$ac_exeext
11247 if { (ac_try="$ac_link"
11248 case "(($ac_try" in
11249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250 *) ac_try_echo=$ac_try;;
11252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11253 $as_echo "$ac_try_echo") >&5
11254 (eval "$ac_link") 2>conftest.er1
11256 grep -v '^ *+' conftest.er1 >conftest.err
11257 rm -rf conftest.er1
11258 cat conftest.err >&5
11259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } && {
11261 test -z "$ac_c_werror_flag" ||
11262 test ! -s conftest.err
11263 } && test -s conftest$ac_exeext && {
11264 test "$cross_compiling" = yes ||
11265 $as_test_x conftest$ac_exeext
11267 ac_cv_lib_Xdpms_DPMSInfo=yes
11269 $as_echo "$as_me: failed program was:" >&5
11270 sed 's/^/| /' conftest.$ac_ext >&5
11272 ac_cv_lib_Xdpms_DPMSInfo=no
11275 rm -rf conftest.dSYM
11276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11277 conftest$ac_exeext conftest.$ac_ext
11278 LIBS=$ac_check_lib_save_LIBS
11280 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdpms_DPMSInfo" >&5
11281 $as_echo "$ac_cv_lib_Xdpms_DPMSInfo" >&6; }
11282 if test "x$ac_cv_lib_Xdpms_DPMSInfo" = x""yes; then
11283 have_dpms=yes; XDPMS_LIBS="-lXdpms"
11288 CPPFLAGS="$ac_save_CPPFLAGS"
11289 LDFLAGS="$ac_save_LDFLAGS"
11290 # LIBS="$ac_save_LIBS"
11296 # if that succeeded, then we've really got it.
11297 if test "$have_dpms" = yes; then
11298 cat >>confdefs.h <<\_ACEOF
11299 #define HAVE_DPMS_EXTENSION 1
11304 elif test "$with_dpms" != no; then
11305 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
11310 ###############################################################################
11312 # Check for the XINERAMA server extension.
11314 ###############################################################################
11317 with_xinerama_req=unspecified
11319 # Check whether --with-xinerama-ext was given.
11320 if test "${with_xinerama_ext+set}" = set; then
11321 withval=$with_xinerama_ext; with_xinerama="$withval"; with_xinerama_req="$withval"
11328 case "$with_xinerama" in
11333 { $as_echo "$as_me:$LINENO: checking for XINERAMA headers" >&5
11334 $as_echo_n "checking for XINERAMA headers... " >&6; }
11335 d=$with_xinerama/include
11336 if test -d $d; then
11337 X_CFLAGS="-I$d $X_CFLAGS"
11338 { $as_echo "$as_me:$LINENO: result: $d" >&5
11339 $as_echo "$d" >&6; }
11341 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11342 $as_echo "not found ($d: no such directory)" >&6; }
11345 { $as_echo "$as_me:$LINENO: checking for XINERAMA libs" >&5
11346 $as_echo_n "checking for XINERAMA libs... " >&6; }
11347 d=$with_xinerama/lib
11348 if test -d $d; then
11349 X_LIBS="-L$d $X_LIBS"
11350 { $as_echo "$as_me:$LINENO: result: $d" >&5
11351 $as_echo "$d" >&6; }
11353 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11354 $as_echo "not found ($d: no such directory)" >&6; }
11357 # replace the directory string with "yes".
11358 with_xinerama_req="yes"
11359 with_xinerama=$with_xinerama_req
11364 echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
11365 echo " If it is a directory, then \`DIR/include' will be added to"
11366 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11372 if test "$with_xinerama" = yes; then
11374 # first check for Xinerama.h
11376 ac_save_CPPFLAGS="$CPPFLAGS"
11377 if test \! -z "$includedir" ; then
11378 CPPFLAGS="$CPPFLAGS -I$includedir"
11380 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11381 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11382 { $as_echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
11383 $as_echo_n "checking for X11/extensions/Xinerama.h... " >&6; }
11384 if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
11385 $as_echo_n "(cached) " >&6
11387 cat >conftest.$ac_ext <<_ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h. */
11393 #include <X11/Xlib.h>
11395 #include <X11/extensions/Xinerama.h>
11397 rm -rf conftest.$ac_objext
11398 if { (ac_try="$ac_compile"
11399 case "(($ac_try" in
11400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11401 *) ac_try_echo=$ac_try;;
11403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11404 $as_echo "$ac_try_echo") >&5
11405 (eval "$ac_compile") 2>conftest.er1
11407 grep -v '^ *+' conftest.er1 >conftest.err
11408 rm -rf conftest.er1
11409 cat conftest.err >&5
11410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } && {
11412 test -z "$ac_c_werror_flag" ||
11413 test ! -s conftest.err
11414 } && test -s conftest.$ac_objext; then
11415 ac_cv_header_X11_extensions_Xinerama_h=yes
11417 $as_echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11420 ac_cv_header_X11_extensions_Xinerama_h=no
11423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11425 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
11426 $as_echo "$ac_cv_header_X11_extensions_Xinerama_h" >&6; }
11427 if test "x$ac_cv_header_X11_extensions_Xinerama_h" = x""yes; then
11432 CPPFLAGS="$ac_save_CPPFLAGS"
11434 # if that succeeded, then check for the XINERAMA code in the libraries
11435 if test "$have_xinerama" = yes; then
11437 # first look in -lXext
11440 ac_save_CPPFLAGS="$CPPFLAGS"
11441 ac_save_LDFLAGS="$LDFLAGS"
11442 # ac_save_LIBS="$LIBS"
11444 if test \! -z "$includedir" ; then
11445 CPPFLAGS="$CPPFLAGS -I$includedir"
11447 # note: $X_CFLAGS includes $x_includes
11448 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11450 if test \! -z "$libdir" ; then
11451 LDFLAGS="$LDFLAGS -L$libdir"
11453 # note: $X_LIBS includes $x_libraries
11454 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11456 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11457 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11458 { $as_echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXext" >&5
11459 $as_echo_n "checking for XineramaQueryScreens in -lXext... " >&6; }
11460 if test "${ac_cv_lib_Xext_XineramaQueryScreens+set}" = set; then
11461 $as_echo_n "(cached) " >&6
11463 ac_check_lib_save_LIBS=$LIBS
11464 LIBS="-lXext -lXext -lX11 $LIBS"
11465 cat >conftest.$ac_ext <<_ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11472 /* Override any GCC internal prototype to avoid an error.
11473 Use char because int might match the return type of a GCC
11474 builtin and then its argument prototype would still apply. */
11478 char XineramaQueryScreens ();
11482 return XineramaQueryScreens ();
11487 rm -rf conftest.$ac_objext conftest$ac_exeext
11488 if { (ac_try="$ac_link"
11489 case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11494 $as_echo "$ac_try_echo") >&5
11495 (eval "$ac_link") 2>conftest.er1
11497 grep -v '^ *+' conftest.er1 >conftest.err
11498 rm -rf conftest.er1
11499 cat conftest.err >&5
11500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } && {
11502 test -z "$ac_c_werror_flag" ||
11503 test ! -s conftest.err
11504 } && test -s conftest$ac_exeext && {
11505 test "$cross_compiling" = yes ||
11506 $as_test_x conftest$ac_exeext
11508 ac_cv_lib_Xext_XineramaQueryScreens=yes
11510 $as_echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11513 ac_cv_lib_Xext_XineramaQueryScreens=no
11516 rm -rf conftest.dSYM
11517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11518 conftest$ac_exeext conftest.$ac_ext
11519 LIBS=$ac_check_lib_save_LIBS
11521 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XineramaQueryScreens" >&5
11522 $as_echo "$ac_cv_lib_Xext_XineramaQueryScreens" >&6; }
11523 if test "x$ac_cv_lib_Xext_XineramaQueryScreens" = x""yes; then
11529 CPPFLAGS="$ac_save_CPPFLAGS"
11530 LDFLAGS="$ac_save_LDFLAGS"
11531 # LIBS="$ac_save_LIBS"
11534 # if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
11535 if test "$have_xinerama" = no; then
11537 ac_save_CPPFLAGS="$CPPFLAGS"
11538 ac_save_LDFLAGS="$LDFLAGS"
11539 # ac_save_LIBS="$LIBS"
11541 if test \! -z "$includedir" ; then
11542 CPPFLAGS="$CPPFLAGS -I$includedir"
11544 # note: $X_CFLAGS includes $x_includes
11545 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11547 if test \! -z "$libdir" ; then
11548 LDFLAGS="$LDFLAGS -L$libdir"
11550 # note: $X_LIBS includes $x_libraries
11551 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11553 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11554 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11555 { $as_echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
11556 $as_echo_n "checking for XineramaQueryScreens in -lXinerama... " >&6; }
11557 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
11558 $as_echo_n "(cached) " >&6
11560 ac_check_lib_save_LIBS=$LIBS
11561 LIBS="-lXinerama -lXext -lX11 $LIBS"
11562 cat >conftest.$ac_ext <<_ACEOF
11565 cat confdefs.h >>conftest.$ac_ext
11566 cat >>conftest.$ac_ext <<_ACEOF
11567 /* end confdefs.h. */
11569 /* Override any GCC internal prototype to avoid an error.
11570 Use char because int might match the return type of a GCC
11571 builtin and then its argument prototype would still apply. */
11575 char XineramaQueryScreens ();
11579 return XineramaQueryScreens ();
11584 rm -rf conftest.$ac_objext conftest$ac_exeext
11585 if { (ac_try="$ac_link"
11586 case "(($ac_try" in
11587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11588 *) ac_try_echo=$ac_try;;
11590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11591 $as_echo "$ac_try_echo") >&5
11592 (eval "$ac_link") 2>conftest.er1
11594 grep -v '^ *+' conftest.er1 >conftest.err
11595 rm -rf conftest.er1
11596 cat conftest.err >&5
11597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } && {
11599 test -z "$ac_c_werror_flag" ||
11600 test ! -s conftest.err
11601 } && test -s conftest$ac_exeext && {
11602 test "$cross_compiling" = yes ||
11603 $as_test_x conftest$ac_exeext
11605 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
11607 $as_echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11610 ac_cv_lib_Xinerama_XineramaQueryScreens=no
11613 rm -rf conftest.dSYM
11614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11615 conftest$ac_exeext conftest.$ac_ext
11616 LIBS=$ac_check_lib_save_LIBS
11618 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
11619 $as_echo "$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
11620 if test "x$ac_cv_lib_Xinerama_XineramaQueryScreens" = x""yes; then
11621 have_xinerama=yes; XINERAMA_LIBS="-lXinerama"
11626 CPPFLAGS="$ac_save_CPPFLAGS"
11627 LDFLAGS="$ac_save_LDFLAGS"
11628 # LIBS="$ac_save_LIBS"
11633 # if that succeeded, then we've really got it.
11634 if test "$have_xinerama" = yes; then
11635 cat >>confdefs.h <<\_ACEOF
11636 #define HAVE_XINERAMA 1
11641 elif test "$with_xinerama" != no; then
11642 echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
11647 ###############################################################################
11649 # Check for the XINPUT server extension.
11651 ###############################################################################
11654 with_xinput_req=unspecified
11656 # Check whether --with-xinput-ext was given.
11657 if test "${with_xinput_ext+set}" = set; then
11658 withval=$with_xinput_ext; with_xinput="$withval"; with_xinput_req="$withval"
11665 case "$with_xinput" in
11670 { $as_echo "$as_me:$LINENO: checking for XINPUT headers" >&5
11671 $as_echo_n "checking for XINPUT headers... " >&6; }
11672 d=$with_xinput/include
11673 if test -d $d; then
11674 X_CFLAGS="-I$d $X_CFLAGS"
11675 { $as_echo "$as_me:$LINENO: result: $d" >&5
11676 $as_echo "$d" >&6; }
11678 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11679 $as_echo "not found ($d: no such directory)" >&6; }
11682 { $as_echo "$as_me:$LINENO: checking for XINPUT libs" >&5
11683 $as_echo_n "checking for XINPUT libs... " >&6; }
11685 if test -d $d; then
11686 X_LIBS="-L$d $X_LIBS"
11687 { $as_echo "$as_me:$LINENO: result: $d" >&5
11688 $as_echo "$d" >&6; }
11690 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11691 $as_echo "not found ($d: no such directory)" >&6; }
11694 # replace the directory string with "yes".
11695 with_xinput_req="yes"
11696 with_xinput=$with_xinput_req
11701 echo "error: argument to --with-xinput-ext must be \"yes\", \"no\", or a directory."
11702 echo " If it is a directory, then \`DIR/include' will be added to"
11703 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11709 if test "$with_xinput" = yes; then
11711 # first check for Xinput.h
11713 ac_save_CPPFLAGS="$CPPFLAGS"
11714 if test \! -z "$includedir" ; then
11715 CPPFLAGS="$CPPFLAGS -I$includedir"
11717 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11718 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11719 { $as_echo "$as_me:$LINENO: checking for X11/extensions/XInput.h" >&5
11720 $as_echo_n "checking for X11/extensions/XInput.h... " >&6; }
11721 if test "${ac_cv_header_X11_extensions_XInput_h+set}" = set; then
11722 $as_echo_n "(cached) " >&6
11724 cat >conftest.$ac_ext <<_ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 #include <X11/Xlib.h>
11732 #include <X11/extensions/XInput.h>
11734 rm -rf conftest.$ac_objext
11735 if { (ac_try="$ac_compile"
11736 case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11741 $as_echo "$ac_try_echo") >&5
11742 (eval "$ac_compile") 2>conftest.er1
11744 grep -v '^ *+' conftest.er1 >conftest.err
11745 rm -rf conftest.er1
11746 cat conftest.err >&5
11747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } && {
11749 test -z "$ac_c_werror_flag" ||
11750 test ! -s conftest.err
11751 } && test -s conftest.$ac_objext; then
11752 ac_cv_header_X11_extensions_XInput_h=yes
11754 $as_echo "$as_me: failed program was:" >&5
11755 sed 's/^/| /' conftest.$ac_ext >&5
11757 ac_cv_header_X11_extensions_XInput_h=no
11760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11762 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XInput_h" >&5
11763 $as_echo "$ac_cv_header_X11_extensions_XInput_h" >&6; }
11764 if test "x$ac_cv_header_X11_extensions_XInput_h" = x""yes; then
11769 CPPFLAGS="$ac_save_CPPFLAGS"
11771 # if that succeeded, then check for libXi
11772 if test "$have_xinput" = yes; then
11775 ac_save_CPPFLAGS="$CPPFLAGS"
11776 ac_save_LDFLAGS="$LDFLAGS"
11777 # ac_save_LIBS="$LIBS"
11779 if test \! -z "$includedir" ; then
11780 CPPFLAGS="$CPPFLAGS -I$includedir"
11782 # note: $X_CFLAGS includes $x_includes
11783 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11785 if test \! -z "$libdir" ; then
11786 LDFLAGS="$LDFLAGS -L$libdir"
11788 # note: $X_LIBS includes $x_libraries
11789 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11791 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11792 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
11793 { $as_echo "$as_me:$LINENO: checking for XListInputDevices in -lXi" >&5
11794 $as_echo_n "checking for XListInputDevices in -lXi... " >&6; }
11795 if test "${ac_cv_lib_Xi_XListInputDevices+set}" = set; then
11796 $as_echo_n "(cached) " >&6
11798 ac_check_lib_save_LIBS=$LIBS
11799 LIBS="-lXi -lXext -lX11 $LIBS"
11800 cat >conftest.$ac_ext <<_ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11807 /* Override any GCC internal prototype to avoid an error.
11808 Use char because int might match the return type of a GCC
11809 builtin and then its argument prototype would still apply. */
11813 char XListInputDevices ();
11817 return XListInputDevices ();
11822 rm -rf conftest.$ac_objext conftest$ac_exeext
11823 if { (ac_try="$ac_link"
11824 case "(($ac_try" in
11825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826 *) ac_try_echo=$ac_try;;
11828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11829 $as_echo "$ac_try_echo") >&5
11830 (eval "$ac_link") 2>conftest.er1
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -rf conftest.er1
11834 cat conftest.err >&5
11835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } && {
11837 test -z "$ac_c_werror_flag" ||
11838 test ! -s conftest.err
11839 } && test -s conftest$ac_exeext && {
11840 test "$cross_compiling" = yes ||
11841 $as_test_x conftest$ac_exeext
11843 ac_cv_lib_Xi_XListInputDevices=yes
11845 $as_echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11848 ac_cv_lib_Xi_XListInputDevices=no
11851 rm -rf conftest.dSYM
11852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11853 conftest$ac_exeext conftest.$ac_ext
11854 LIBS=$ac_check_lib_save_LIBS
11856 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xi_XListInputDevices" >&5
11857 $as_echo "$ac_cv_lib_Xi_XListInputDevices" >&6; }
11858 if test "x$ac_cv_lib_Xi_XListInputDevices" = x""yes; then
11859 have_xinput=yes; SAVER_LIBS="$SAVER_LIBS -lXi"
11864 CPPFLAGS="$ac_save_CPPFLAGS"
11865 LDFLAGS="$ac_save_LDFLAGS"
11866 # LIBS="$ac_save_LIBS"
11870 # if that succeeded, then we've really got it.
11871 if test "$have_xinput" = yes; then
11872 cat >>confdefs.h <<\_ACEOF
11873 #define HAVE_XINPUT 1
11878 elif test "$with_xinput" != no; then
11879 echo "error: must be yes or no: --with-xinput-ext=$with_xinput"
11884 ###############################################################################
11886 # Check for the XF86VMODE server extension (for virtual screens.)
11888 ###############################################################################
11891 with_xf86vmode_req=unspecified
11893 # Check whether --with-xf86vmode-ext was given.
11894 if test "${with_xf86vmode_ext+set}" = set; then
11895 withval=$with_xf86vmode_ext; with_xf86vmode="$withval"; with_xf86vmode_req="$withval"
11902 case "$with_xf86vmode" in
11907 { $as_echo "$as_me:$LINENO: checking for xf86vmode headers" >&5
11908 $as_echo_n "checking for xf86vmode headers... " >&6; }
11909 d=$with_xf86vmode/include
11910 if test -d $d; then
11911 X_CFLAGS="-I$d $X_CFLAGS"
11912 { $as_echo "$as_me:$LINENO: result: $d" >&5
11913 $as_echo "$d" >&6; }
11915 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11916 $as_echo "not found ($d: no such directory)" >&6; }
11919 { $as_echo "$as_me:$LINENO: checking for xf86vmode libs" >&5
11920 $as_echo_n "checking for xf86vmode libs... " >&6; }
11921 d=$with_xf86vmode/lib
11922 if test -d $d; then
11923 X_LIBS="-L$d $X_LIBS"
11924 { $as_echo "$as_me:$LINENO: result: $d" >&5
11925 $as_echo "$d" >&6; }
11927 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11928 $as_echo "not found ($d: no such directory)" >&6; }
11931 # replace the directory string with "yes".
11932 with_xf86vmode_req="yes"
11933 with_xf86vmode=$with_xf86vmode_req
11938 echo "error: argument to --with-xf86vmode-ext must be \"yes\", \"no\", or a directory."
11939 echo " If it is a directory, then \`DIR/include' will be added to"
11940 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11948 if test "$with_xf86vmode" = yes; then
11950 # first check for xf86vmode.h
11952 ac_save_CPPFLAGS="$CPPFLAGS"
11953 if test \! -z "$includedir" ; then
11954 CPPFLAGS="$CPPFLAGS -I$includedir"
11956 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11957 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
11958 { $as_echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
11959 $as_echo_n "checking for X11/extensions/xf86vmode.h... " >&6; }
11960 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
11961 $as_echo_n "(cached) " >&6
11963 cat >conftest.$ac_ext <<_ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h. */
11969 #include <X11/Xlib.h>
11971 #include <X11/extensions/xf86vmode.h>
11973 rm -rf conftest.$ac_objext
11974 if { (ac_try="$ac_compile"
11975 case "(($ac_try" in
11976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11977 *) ac_try_echo=$ac_try;;
11979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11980 $as_echo "$ac_try_echo") >&5
11981 (eval "$ac_compile") 2>conftest.er1
11983 grep -v '^ *+' conftest.er1 >conftest.err
11984 rm -rf conftest.er1
11985 cat conftest.err >&5
11986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } && {
11988 test -z "$ac_c_werror_flag" ||
11989 test ! -s conftest.err
11990 } && test -s conftest.$ac_objext; then
11991 ac_cv_header_X11_extensions_xf86vmode_h=yes
11993 $as_echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 ac_cv_header_X11_extensions_xf86vmode_h=no
11999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12001 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
12002 $as_echo "$ac_cv_header_X11_extensions_xf86vmode_h" >&6; }
12003 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = x""yes; then
12008 CPPFLAGS="$ac_save_CPPFLAGS"
12010 # if that succeeded, then check for the -lXxf86vm
12011 if test "$have_xf86vmode" = yes; then
12014 ac_save_CPPFLAGS="$CPPFLAGS"
12015 ac_save_LDFLAGS="$LDFLAGS"
12016 # ac_save_LIBS="$LIBS"
12018 if test \! -z "$includedir" ; then
12019 CPPFLAGS="$CPPFLAGS -I$includedir"
12021 # note: $X_CFLAGS includes $x_includes
12022 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12024 if test \! -z "$libdir" ; then
12025 LDFLAGS="$LDFLAGS -L$libdir"
12027 # note: $X_LIBS includes $x_libraries
12028 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12030 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12031 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12032 { $as_echo "$as_me:$LINENO: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
12033 $as_echo_n "checking for XF86VidModeGetViewPort in -lXxf86vm... " >&6; }
12034 if test "${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+set}" = set; then
12035 $as_echo_n "(cached) " >&6
12037 ac_check_lib_save_LIBS=$LIBS
12038 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
12039 cat >conftest.$ac_ext <<_ACEOF
12042 cat confdefs.h >>conftest.$ac_ext
12043 cat >>conftest.$ac_ext <<_ACEOF
12044 /* end confdefs.h. */
12046 /* Override any GCC internal prototype to avoid an error.
12047 Use char because int might match the return type of a GCC
12048 builtin and then its argument prototype would still apply. */
12052 char XF86VidModeGetViewPort ();
12056 return XF86VidModeGetViewPort ();
12061 rm -rf conftest.$ac_objext conftest$ac_exeext
12062 if { (ac_try="$ac_link"
12063 case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12068 $as_echo "$ac_try_echo") >&5
12069 (eval "$ac_link") 2>conftest.er1
12071 grep -v '^ *+' conftest.er1 >conftest.err
12072 rm -rf conftest.er1
12073 cat conftest.err >&5
12074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } && {
12076 test -z "$ac_c_werror_flag" ||
12077 test ! -s conftest.err
12078 } && test -s conftest$ac_exeext && {
12079 test "$cross_compiling" = yes ||
12080 $as_test_x conftest$ac_exeext
12082 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
12084 $as_echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12087 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=no
12090 rm -rf conftest.dSYM
12091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12092 conftest$ac_exeext conftest.$ac_ext
12093 LIBS=$ac_check_lib_save_LIBS
12095 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&5
12096 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6; }
12097 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" = x""yes; then
12098 have_xf86vmode=yes;
12099 VIDMODE_LIBS="-lXxf86vm";
12100 SAVER_LIBS="$SAVER_LIBS $VIDMODE_LIBS"
12105 CPPFLAGS="$ac_save_CPPFLAGS"
12106 LDFLAGS="$ac_save_LDFLAGS"
12107 # LIBS="$ac_save_LIBS"
12111 # if that succeeded, then we've really got it.
12112 if test "$have_xf86vmode" = yes; then
12113 cat >>confdefs.h <<\_ACEOF
12114 #define HAVE_XF86VMODE 1
12119 elif test "$with_xf86vmode" != no; then
12120 echo "error: must be yes or no: --with-xf86vmode-ext=$with_xf86vmode"
12125 ###############################################################################
12127 # Check for the XF86VMODE server extension (for gamma fading.)
12129 ###############################################################################
12132 have_xf86gamma_ramp=no
12133 with_xf86gamma_req=unspecified
12135 # Check whether --with-xf86gamma-ext was given.
12136 if test "${with_xf86gamma_ext+set}" = set; then
12137 withval=$with_xf86gamma_ext; with_xf86gamma="$withval"; with_xf86gamma_req="$withval"
12144 case "$with_xf86gamma" in
12149 { $as_echo "$as_me:$LINENO: checking for xf86gamma headers" >&5
12150 $as_echo_n "checking for xf86gamma headers... " >&6; }
12151 d=$with_xf86gamma/include
12152 if test -d $d; then
12153 X_CFLAGS="-I$d $X_CFLAGS"
12154 { $as_echo "$as_me:$LINENO: result: $d" >&5
12155 $as_echo "$d" >&6; }
12157 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12158 $as_echo "not found ($d: no such directory)" >&6; }
12161 { $as_echo "$as_me:$LINENO: checking for xf86gamma libs" >&5
12162 $as_echo_n "checking for xf86gamma libs... " >&6; }
12163 d=$with_xf86gamma/lib
12164 if test -d $d; then
12165 X_LIBS="-L$d $X_LIBS"
12166 { $as_echo "$as_me:$LINENO: result: $d" >&5
12167 $as_echo "$d" >&6; }
12169 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12170 $as_echo "not found ($d: no such directory)" >&6; }
12173 # replace the directory string with "yes".
12174 with_xf86gamma_req="yes"
12175 with_xf86gamma=$with_xf86gamma_req
12180 echo "error: argument to --with-xf86gamma-ext must be \"yes\", \"no\", or a directory."
12181 echo " If it is a directory, then \`DIR/include' will be added to"
12182 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12188 if test "$with_xf86gamma" = yes; then
12190 # first check for xf86vmode.h, if we haven't already
12191 if test "$have_xf86vmode" = yes; then
12195 ac_save_CPPFLAGS="$CPPFLAGS"
12196 if test \! -z "$includedir" ; then
12197 CPPFLAGS="$CPPFLAGS -I$includedir"
12199 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12200 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12201 { $as_echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
12202 $as_echo_n "checking for X11/extensions/xf86vmode.h... " >&6; }
12203 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
12204 $as_echo_n "(cached) " >&6
12206 cat >conftest.$ac_ext <<_ACEOF
12209 cat confdefs.h >>conftest.$ac_ext
12210 cat >>conftest.$ac_ext <<_ACEOF
12211 /* end confdefs.h. */
12212 #include <X11/Xlib.h>
12214 #include <X11/extensions/xf86vmode.h>
12216 rm -rf conftest.$ac_objext
12217 if { (ac_try="$ac_compile"
12218 case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12223 $as_echo "$ac_try_echo") >&5
12224 (eval "$ac_compile") 2>conftest.er1
12226 grep -v '^ *+' conftest.er1 >conftest.err
12227 rm -rf conftest.er1
12228 cat conftest.err >&5
12229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); } && {
12231 test -z "$ac_c_werror_flag" ||
12232 test ! -s conftest.err
12233 } && test -s conftest.$ac_objext; then
12234 ac_cv_header_X11_extensions_xf86vmode_h=yes
12236 $as_echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 ac_cv_header_X11_extensions_xf86vmode_h=no
12242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12244 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
12245 $as_echo "$ac_cv_header_X11_extensions_xf86vmode_h" >&6; }
12246 if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = x""yes; then
12251 CPPFLAGS="$ac_save_CPPFLAGS"
12254 # if that succeeded, then check for the -lXxf86vm
12255 if test "$have_xf86gamma" = yes; then
12258 ac_save_CPPFLAGS="$CPPFLAGS"
12259 ac_save_LDFLAGS="$LDFLAGS"
12260 # ac_save_LIBS="$LIBS"
12262 if test \! -z "$includedir" ; then
12263 CPPFLAGS="$CPPFLAGS -I$includedir"
12265 # note: $X_CFLAGS includes $x_includes
12266 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12268 if test \! -z "$libdir" ; then
12269 LDFLAGS="$LDFLAGS -L$libdir"
12271 # note: $X_LIBS includes $x_libraries
12272 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12274 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12275 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12276 { $as_echo "$as_me:$LINENO: checking for XF86VidModeSetGamma in -lXxf86vm" >&5
12277 $as_echo_n "checking for XF86VidModeSetGamma in -lXxf86vm... " >&6; }
12278 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGamma+set}" = set; then
12279 $as_echo_n "(cached) " >&6
12281 ac_check_lib_save_LIBS=$LIBS
12282 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
12283 cat >conftest.$ac_ext <<_ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12290 /* Override any GCC internal prototype to avoid an error.
12291 Use char because int might match the return type of a GCC
12292 builtin and then its argument prototype would still apply. */
12296 char XF86VidModeSetGamma ();
12300 return XF86VidModeSetGamma ();
12305 rm -rf conftest.$ac_objext conftest$ac_exeext
12306 if { (ac_try="$ac_link"
12307 case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12312 $as_echo "$ac_try_echo") >&5
12313 (eval "$ac_link") 2>conftest.er1
12315 grep -v '^ *+' conftest.er1 >conftest.err
12316 rm -rf conftest.er1
12317 cat conftest.err >&5
12318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } && {
12320 test -z "$ac_c_werror_flag" ||
12321 test ! -s conftest.err
12322 } && test -s conftest$ac_exeext && {
12323 test "$cross_compiling" = yes ||
12324 $as_test_x conftest$ac_exeext
12326 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=yes
12328 $as_echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12331 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=no
12334 rm -rf conftest.dSYM
12335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12336 conftest$ac_exeext conftest.$ac_ext
12337 LIBS=$ac_check_lib_save_LIBS
12339 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&5
12340 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&6; }
12341 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" = x""yes; then
12347 CPPFLAGS="$ac_save_CPPFLAGS"
12348 LDFLAGS="$ac_save_LDFLAGS"
12349 # LIBS="$ac_save_LIBS"
12353 # check for the Ramp versions of the functions too.
12354 if test "$have_xf86gamma" = yes; then
12355 have_xf86gamma_ramp=no
12357 ac_save_CPPFLAGS="$CPPFLAGS"
12358 ac_save_LDFLAGS="$LDFLAGS"
12359 # ac_save_LIBS="$LIBS"
12361 if test \! -z "$includedir" ; then
12362 CPPFLAGS="$CPPFLAGS -I$includedir"
12364 # note: $X_CFLAGS includes $x_includes
12365 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12367 if test \! -z "$libdir" ; then
12368 LDFLAGS="$LDFLAGS -L$libdir"
12370 # note: $X_LIBS includes $x_libraries
12371 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12373 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12374 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12375 { $as_echo "$as_me:$LINENO: checking for XF86VidModeSetGammaRamp in -lXxf86vm" >&5
12376 $as_echo_n "checking for XF86VidModeSetGammaRamp in -lXxf86vm... " >&6; }
12377 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp+set}" = set; then
12378 $as_echo_n "(cached) " >&6
12380 ac_check_lib_save_LIBS=$LIBS
12381 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
12382 cat >conftest.$ac_ext <<_ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h. */
12389 /* Override any GCC internal prototype to avoid an error.
12390 Use char because int might match the return type of a GCC
12391 builtin and then its argument prototype would still apply. */
12395 char XF86VidModeSetGammaRamp ();
12399 return XF86VidModeSetGammaRamp ();
12404 rm -rf conftest.$ac_objext conftest$ac_exeext
12405 if { (ac_try="$ac_link"
12406 case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12411 $as_echo "$ac_try_echo") >&5
12412 (eval "$ac_link") 2>conftest.er1
12414 grep -v '^ *+' conftest.er1 >conftest.err
12415 rm -rf conftest.er1
12416 cat conftest.err >&5
12417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } && {
12419 test -z "$ac_c_werror_flag" ||
12420 test ! -s conftest.err
12421 } && test -s conftest$ac_exeext && {
12422 test "$cross_compiling" = yes ||
12423 $as_test_x conftest$ac_exeext
12425 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=yes
12427 $as_echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.$ac_ext >&5
12430 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=no
12433 rm -rf conftest.dSYM
12434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12435 conftest$ac_exeext conftest.$ac_ext
12436 LIBS=$ac_check_lib_save_LIBS
12438 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&5
12439 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&6; }
12440 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" = x""yes; then
12441 have_xf86gamma_ramp=yes
12446 CPPFLAGS="$ac_save_CPPFLAGS"
12447 LDFLAGS="$ac_save_LDFLAGS"
12448 # LIBS="$ac_save_LIBS"
12452 # if those tests succeeded, then we've really got the functions.
12453 if test "$have_xf86gamma" = yes; then
12454 cat >>confdefs.h <<\_ACEOF
12455 #define HAVE_XF86VMODE_GAMMA 1
12460 if test "$have_xf86gamma_ramp" = yes; then
12461 cat >>confdefs.h <<\_ACEOF
12462 #define HAVE_XF86VMODE_GAMMA_RAMP 1
12467 # pull in the lib, if we haven't already
12468 if test "$have_xf86gamma" = yes -a "$have_xf86vmode" = no; then
12469 SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
12472 elif test "$with_xf86gamma" != no; then
12473 echo "error: must be yes or no: --with-xf86gamma-ext=$with_xf86vmode"
12478 ###############################################################################
12480 # Check for the RANDR (Resize and Rotate) server extension.
12482 # We need this to detect when the resolution of the desktop
12483 # has changed out from under us (this is a newer, different
12484 # mechanism than the XF86VMODE virtual viewports.)
12486 ###############################################################################
12489 with_randr_req=unspecified
12491 # Check whether --with-randr-ext was given.
12492 if test "${with_randr_ext+set}" = set; then
12493 withval=$with_randr_ext; with_randr="$withval"; with_randr_req="$withval"
12500 case "$with_randr" in
12505 { $as_echo "$as_me:$LINENO: checking for RANDR headers" >&5
12506 $as_echo_n "checking for RANDR headers... " >&6; }
12507 d=$with_randr/include
12508 if test -d $d; then
12509 X_CFLAGS="-I$d $X_CFLAGS"
12510 { $as_echo "$as_me:$LINENO: result: $d" >&5
12511 $as_echo "$d" >&6; }
12513 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12514 $as_echo "not found ($d: no such directory)" >&6; }
12517 { $as_echo "$as_me:$LINENO: checking for RANDR libs" >&5
12518 $as_echo_n "checking for RANDR libs... " >&6; }
12520 if test -d $d; then
12521 X_LIBS="-L$d $X_LIBS"
12522 { $as_echo "$as_me:$LINENO: result: $d" >&5
12523 $as_echo "$d" >&6; }
12525 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12526 $as_echo "not found ($d: no such directory)" >&6; }
12529 # replace the directory string with "yes".
12530 with_randr_req="yes"
12531 with_randr=$with_randr_req
12536 echo "error: argument to --with-randr-ext must be \"yes\", \"no\", or a directory."
12537 echo " If it is a directory, then \`DIR/include' will be added to"
12538 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12544 if test "$with_randr" = yes; then
12546 # first check for Xrandr.h
12548 ac_save_CPPFLAGS="$CPPFLAGS"
12549 if test \! -z "$includedir" ; then
12550 CPPFLAGS="$CPPFLAGS -I$includedir"
12552 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12553 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12554 { $as_echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
12555 $as_echo_n "checking for X11/extensions/Xrandr.h... " >&6; }
12556 if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
12557 $as_echo_n "(cached) " >&6
12559 cat >conftest.$ac_ext <<_ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12565 #include <X11/Xlib.h>
12567 #include <X11/extensions/Xrandr.h>
12569 rm -rf conftest.$ac_objext
12570 if { (ac_try="$ac_compile"
12571 case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12576 $as_echo "$ac_try_echo") >&5
12577 (eval "$ac_compile") 2>conftest.er1
12579 grep -v '^ *+' conftest.er1 >conftest.err
12580 rm -rf conftest.er1
12581 cat conftest.err >&5
12582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } && {
12584 test -z "$ac_c_werror_flag" ||
12585 test ! -s conftest.err
12586 } && test -s conftest.$ac_objext; then
12587 ac_cv_header_X11_extensions_Xrandr_h=yes
12589 $as_echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12592 ac_cv_header_X11_extensions_Xrandr_h=no
12595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12597 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
12598 $as_echo "$ac_cv_header_X11_extensions_Xrandr_h" >&6; }
12599 if test "x$ac_cv_header_X11_extensions_Xrandr_h" = x""yes; then
12604 CPPFLAGS="$ac_save_CPPFLAGS"
12606 # if that succeeded, then check for the XRR code in the libraries
12607 if test "$have_randr" = yes; then
12609 # RANDR probably needs -lXrender
12612 ac_save_CPPFLAGS="$CPPFLAGS"
12613 ac_save_LDFLAGS="$LDFLAGS"
12614 # ac_save_LIBS="$LIBS"
12616 if test \! -z "$includedir" ; then
12617 CPPFLAGS="$CPPFLAGS -I$includedir"
12619 # note: $X_CFLAGS includes $x_includes
12620 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12622 if test \! -z "$libdir" ; then
12623 LDFLAGS="$LDFLAGS -L$libdir"
12625 # note: $X_LIBS includes $x_libraries
12626 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12628 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12629 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12630 { $as_echo "$as_me:$LINENO: checking for XRenderSetSubpixelOrder in -lXrender" >&5
12631 $as_echo_n "checking for XRenderSetSubpixelOrder in -lXrender... " >&6; }
12632 if test "${ac_cv_lib_Xrender_XRenderSetSubpixelOrder+set}" = set; then
12633 $as_echo_n "(cached) " >&6
12635 ac_check_lib_save_LIBS=$LIBS
12636 LIBS="-lXrender -lXext -lX11 $LIBS"
12637 cat >conftest.$ac_ext <<_ACEOF
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h. */
12644 /* Override any GCC internal prototype to avoid an error.
12645 Use char because int might match the return type of a GCC
12646 builtin and then its argument prototype would still apply. */
12650 char XRenderSetSubpixelOrder ();
12654 return XRenderSetSubpixelOrder ();
12659 rm -rf conftest.$ac_objext conftest$ac_exeext
12660 if { (ac_try="$ac_link"
12661 case "(($ac_try" in
12662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12663 *) ac_try_echo=$ac_try;;
12665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12666 $as_echo "$ac_try_echo") >&5
12667 (eval "$ac_link") 2>conftest.er1
12669 grep -v '^ *+' conftest.er1 >conftest.err
12670 rm -rf conftest.er1
12671 cat conftest.err >&5
12672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } && {
12674 test -z "$ac_c_werror_flag" ||
12675 test ! -s conftest.err
12676 } && test -s conftest$ac_exeext && {
12677 test "$cross_compiling" = yes ||
12678 $as_test_x conftest$ac_exeext
12680 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=yes
12682 $as_echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.$ac_ext >&5
12685 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=no
12688 rm -rf conftest.dSYM
12689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12690 conftest$ac_exeext conftest.$ac_ext
12691 LIBS=$ac_check_lib_save_LIBS
12693 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&5
12694 $as_echo "$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&6; }
12695 if test "x$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" = x""yes; then
12696 xrender_libs="-lXrender"
12701 CPPFLAGS="$ac_save_CPPFLAGS"
12702 LDFLAGS="$ac_save_LDFLAGS"
12703 # LIBS="$ac_save_LIBS"
12706 # first look for RANDR in -lXext
12709 ac_save_CPPFLAGS="$CPPFLAGS"
12710 ac_save_LDFLAGS="$LDFLAGS"
12711 # ac_save_LIBS="$LIBS"
12713 if test \! -z "$includedir" ; then
12714 CPPFLAGS="$CPPFLAGS -I$includedir"
12716 # note: $X_CFLAGS includes $x_includes
12717 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12719 if test \! -z "$libdir" ; then
12720 LDFLAGS="$LDFLAGS -L$libdir"
12722 # note: $X_LIBS includes $x_libraries
12723 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12725 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12726 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12727 { $as_echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXext" >&5
12728 $as_echo_n "checking for XRRGetScreenInfo in -lXext... " >&6; }
12729 if test "${ac_cv_lib_Xext_XRRGetScreenInfo+set}" = set; then
12730 $as_echo_n "(cached) " >&6
12732 ac_check_lib_save_LIBS=$LIBS
12733 LIBS="-lXext $xrender_libs -lXext -lX11 $LIBS"
12734 cat >conftest.$ac_ext <<_ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h. */
12741 /* Override any GCC internal prototype to avoid an error.
12742 Use char because int might match the return type of a GCC
12743 builtin and then its argument prototype would still apply. */
12747 char XRRGetScreenInfo ();
12751 return XRRGetScreenInfo ();
12756 rm -rf conftest.$ac_objext conftest$ac_exeext
12757 if { (ac_try="$ac_link"
12758 case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12763 $as_echo "$ac_try_echo") >&5
12764 (eval "$ac_link") 2>conftest.er1
12766 grep -v '^ *+' conftest.er1 >conftest.err
12767 rm -rf conftest.er1
12768 cat conftest.err >&5
12769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } && {
12771 test -z "$ac_c_werror_flag" ||
12772 test ! -s conftest.err
12773 } && test -s conftest$ac_exeext && {
12774 test "$cross_compiling" = yes ||
12775 $as_test_x conftest$ac_exeext
12777 ac_cv_lib_Xext_XRRGetScreenInfo=yes
12779 $as_echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.$ac_ext >&5
12782 ac_cv_lib_Xext_XRRGetScreenInfo=no
12785 rm -rf conftest.dSYM
12786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12787 conftest$ac_exeext conftest.$ac_ext
12788 LIBS=$ac_check_lib_save_LIBS
12790 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XRRGetScreenInfo" >&5
12791 $as_echo "$ac_cv_lib_Xext_XRRGetScreenInfo" >&6; }
12792 if test "x$ac_cv_lib_Xext_XRRGetScreenInfo" = x""yes; then
12793 have_randr=yes; SAVER_LIBS="$SAVER_LIBS $xrender_libs"
12798 CPPFLAGS="$ac_save_CPPFLAGS"
12799 LDFLAGS="$ac_save_LDFLAGS"
12800 # LIBS="$ac_save_LIBS"
12803 # if that failed, look in -lXrandr
12804 if test "$have_randr" = no; then
12806 ac_save_CPPFLAGS="$CPPFLAGS"
12807 ac_save_LDFLAGS="$LDFLAGS"
12808 # ac_save_LIBS="$LIBS"
12810 if test \! -z "$includedir" ; then
12811 CPPFLAGS="$CPPFLAGS -I$includedir"
12813 # note: $X_CFLAGS includes $x_includes
12814 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12816 if test \! -z "$libdir" ; then
12817 LDFLAGS="$LDFLAGS -L$libdir"
12819 # note: $X_LIBS includes $x_libraries
12820 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12822 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12823 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
12824 { $as_echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXrandr" >&5
12825 $as_echo_n "checking for XRRGetScreenInfo in -lXrandr... " >&6; }
12826 if test "${ac_cv_lib_Xrandr_XRRGetScreenInfo+set}" = set; then
12827 $as_echo_n "(cached) " >&6
12829 ac_check_lib_save_LIBS=$LIBS
12830 LIBS="-lXrandr $xrender_libs -lXext -lX11 $LIBS"
12831 cat >conftest.$ac_ext <<_ACEOF
12834 cat confdefs.h >>conftest.$ac_ext
12835 cat >>conftest.$ac_ext <<_ACEOF
12836 /* end confdefs.h. */
12838 /* Override any GCC internal prototype to avoid an error.
12839 Use char because int might match the return type of a GCC
12840 builtin and then its argument prototype would still apply. */
12844 char XRRGetScreenInfo ();
12848 return XRRGetScreenInfo ();
12853 rm -rf conftest.$ac_objext conftest$ac_exeext
12854 if { (ac_try="$ac_link"
12855 case "(($ac_try" in
12856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857 *) ac_try_echo=$ac_try;;
12859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12860 $as_echo "$ac_try_echo") >&5
12861 (eval "$ac_link") 2>conftest.er1
12863 grep -v '^ *+' conftest.er1 >conftest.err
12864 rm -rf conftest.er1
12865 cat conftest.err >&5
12866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); } && {
12868 test -z "$ac_c_werror_flag" ||
12869 test ! -s conftest.err
12870 } && test -s conftest$ac_exeext && {
12871 test "$cross_compiling" = yes ||
12872 $as_test_x conftest$ac_exeext
12874 ac_cv_lib_Xrandr_XRRGetScreenInfo=yes
12876 $as_echo "$as_me: failed program was:" >&5
12877 sed 's/^/| /' conftest.$ac_ext >&5
12879 ac_cv_lib_Xrandr_XRRGetScreenInfo=no
12882 rm -rf conftest.dSYM
12883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12884 conftest$ac_exeext conftest.$ac_ext
12885 LIBS=$ac_check_lib_save_LIBS
12887 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRGetScreenInfo" >&5
12888 $as_echo "$ac_cv_lib_Xrandr_XRRGetScreenInfo" >&6; }
12889 if test "x$ac_cv_lib_Xrandr_XRRGetScreenInfo" = x""yes; then
12890 have_randr=yes; SAVER_LIBS="$SAVER_LIBS -lXrandr $xrender_libs"
12895 CPPFLAGS="$ac_save_CPPFLAGS"
12896 LDFLAGS="$ac_save_LDFLAGS"
12897 # LIBS="$ac_save_LIBS"
12902 # if that succeeded, then we've really got it.
12903 if test "$have_randr" = yes; then
12904 cat >>confdefs.h <<\_ACEOF
12905 #define HAVE_RANDR 1
12909 # Now check for version 1.2 in the same libs.
12910 # Try to compile, since on MacOS 10.5.7, headers are older than libs!
12911 { $as_echo "$as_me:$LINENO: checking for XRRGetScreenResources" >&5
12912 $as_echo_n "checking for XRRGetScreenResources... " >&6; }
12913 if test "${ac_cv_randr_12+set}" = set; then
12914 $as_echo_n "(cached) " >&6
12918 ac_save_CPPFLAGS="$CPPFLAGS"
12919 if test \! -z "$includedir" ; then
12920 CPPFLAGS="$CPPFLAGS -I$includedir"
12922 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12923 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
12924 cat >conftest.$ac_ext <<_ACEOF
12927 cat confdefs.h >>conftest.$ac_ext
12928 cat >>conftest.$ac_ext <<_ACEOF
12929 /* end confdefs.h. */
12930 #include <stdlib.h>
12931 #include <X11/Xlib.h>
12932 #include <X11/extensions/Xrandr.h>
12936 XRRScreenResources *res =
12937 XRRGetScreenResources (0, 0);
12942 rm -rf conftest.$ac_objext
12943 if { (ac_try="$ac_compile"
12944 case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12949 $as_echo "$ac_try_echo") >&5
12950 (eval "$ac_compile") 2>conftest.er1
12952 grep -v '^ *+' conftest.er1 >conftest.err
12953 rm -rf conftest.er1
12954 cat conftest.err >&5
12955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } && {
12957 test -z "$ac_c_werror_flag" ||
12958 test ! -s conftest.err
12959 } && test -s conftest.$ac_objext; then
12962 $as_echo "$as_me: failed program was:" >&5
12963 sed 's/^/| /' conftest.$ac_ext >&5
12968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12969 CPPFLAGS="$ac_save_CPPFLAGS"
12971 { $as_echo "$as_me:$LINENO: result: $ac_cv_randr_12" >&5
12972 $as_echo "$ac_cv_randr_12" >&6; }
12973 if test "$ac_cv_randr_12" = yes ; then
12974 cat >>confdefs.h <<\_ACEOF
12975 #define HAVE_RANDR_12 1
12979 # AC_CHECK_X_LIB(c, XRRGetOutputInfo, [AC_DEFINE(HAVE_RANDR_12)],
12980 # [true], $SAVER_LIBS)
12984 elif test "$with_randr" != no; then
12985 echo "error: must be yes or no: --with-randr-ext=$with_randr"
12990 ###############################################################################
12992 # Check for XF86MiscSetGrabKeysState (but only bother if we are already
12993 # using other XF86 stuff.)
12995 ###############################################################################
12997 have_xf86miscsetgrabkeysstate=no
12998 if test "$have_xf86gamma" = yes -o "$have_xf86vmode" = yes; then
13000 ac_save_CPPFLAGS="$CPPFLAGS"
13001 ac_save_LDFLAGS="$LDFLAGS"
13002 # ac_save_LIBS="$LIBS"
13004 if test \! -z "$includedir" ; then
13005 CPPFLAGS="$CPPFLAGS -I$includedir"
13007 # note: $X_CFLAGS includes $x_includes
13008 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13010 if test \! -z "$libdir" ; then
13011 LDFLAGS="$LDFLAGS -L$libdir"
13013 # note: $X_LIBS includes $x_libraries
13014 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13016 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13017 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
13018 { $as_echo "$as_me:$LINENO: checking for XF86MiscSetGrabKeysState in -lXxf86misc" >&5
13019 $as_echo_n "checking for XF86MiscSetGrabKeysState in -lXxf86misc... " >&6; }
13020 if test "${ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState+set}" = set; then
13021 $as_echo_n "(cached) " >&6
13023 ac_check_lib_save_LIBS=$LIBS
13024 LIBS="-lXxf86misc -lXext -lX11 $LIBS"
13025 cat >conftest.$ac_ext <<_ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h. */
13032 /* Override any GCC internal prototype to avoid an error.
13033 Use char because int might match the return type of a GCC
13034 builtin and then its argument prototype would still apply. */
13038 char XF86MiscSetGrabKeysState ();
13042 return XF86MiscSetGrabKeysState ();
13047 rm -rf conftest.$ac_objext conftest$ac_exeext
13048 if { (ac_try="$ac_link"
13049 case "(($ac_try" in
13050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13051 *) ac_try_echo=$ac_try;;
13053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13054 $as_echo "$ac_try_echo") >&5
13055 (eval "$ac_link") 2>conftest.er1
13057 grep -v '^ *+' conftest.er1 >conftest.err
13058 rm -rf conftest.er1
13059 cat conftest.err >&5
13060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } && {
13062 test -z "$ac_c_werror_flag" ||
13063 test ! -s conftest.err
13064 } && test -s conftest$ac_exeext && {
13065 test "$cross_compiling" = yes ||
13066 $as_test_x conftest$ac_exeext
13068 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=yes
13070 $as_echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13073 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=no
13076 rm -rf conftest.dSYM
13077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13078 conftest$ac_exeext conftest.$ac_ext
13079 LIBS=$ac_check_lib_save_LIBS
13081 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&5
13082 $as_echo "$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&6; }
13083 if test "x$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" = x""yes; then
13084 have_xf86miscsetgrabkeysstate=yes
13089 CPPFLAGS="$ac_save_CPPFLAGS"
13090 LDFLAGS="$ac_save_LDFLAGS"
13091 # LIBS="$ac_save_LIBS"
13093 if test "$have_xf86miscsetgrabkeysstate" = yes ; then
13094 SAVER_LIBS="$SAVER_LIBS -lXxf86misc"
13095 cat >>confdefs.h <<\_ACEOF
13096 #define HAVE_XF86MISCSETGRABKEYSSTATE 1
13103 ###############################################################################
13105 # Check for HP XHPDisableReset and XHPEnableReset.
13107 ###############################################################################
13109 { $as_echo "$as_me:$LINENO: checking for XHPDisableReset in X11/XHPlib.h" >&5
13110 $as_echo_n "checking for XHPDisableReset in X11/XHPlib.h... " >&6; }
13112 ac_save_CPPFLAGS="$CPPFLAGS"
13113 if test \! -z "$includedir" ; then
13114 CPPFLAGS="$CPPFLAGS -I$includedir"
13116 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13117 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13118 cat >conftest.$ac_ext <<_ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13124 #include <X11/XHPlib.h>
13127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13128 $EGREP "XHPDisableReset" >/dev/null 2>&1; then
13129 cat >>confdefs.h <<\_ACEOF
13130 #define HAVE_XHPDISABLERESET 1
13133 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
13134 { $as_echo "$as_me:$LINENO: result: yes" >&5
13135 $as_echo "yes" >&6; }
13137 { $as_echo "$as_me:$LINENO: result: no" >&5
13138 $as_echo "no" >&6; }
13142 CPPFLAGS="$ac_save_CPPFLAGS"
13145 ###############################################################################
13147 # Check for /proc/interrupts.
13149 ###############################################################################
13151 have_proc_interrupts=no
13152 with_proc_interrupts_req=unspecified
13154 # Check whether --with-proc-interrupts was given.
13155 if test "${with_proc_interrupts+set}" = set; then
13156 withval=$with_proc_interrupts; with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
13158 with_proc_interrupts=yes
13162 if test "$with_proc_interrupts" = yes; then
13164 # Note that we may be building in an environment (e.g. Debian buildd chroot)
13165 # without a proper /proc filesystem. If /proc/interrupts exists, then we'll
13166 # check that it has the bits we need, but otherwise we'll just go on faith.
13168 have_proc_interrupts=yes
13170 if test -f /proc/interrupts; then
13171 { $as_echo "$as_me:$LINENO: checking whether /proc/interrupts contains keyboard data" >&5
13172 $as_echo_n "checking whether /proc/interrupts contains keyboard data... " >&6; }
13173 if test "${ac_cv_have_proc_interrupts+set}" = set; then
13174 $as_echo_n "(cached) " >&6
13176 ac_cv_have_proc_interrupts=no
13177 if grep 'keyboard\|i8042' /proc/interrupts >/dev/null 2>&1 ; then
13178 ac_cv_have_proc_interrupts=yes
13182 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_proc_interrupts" >&5
13183 $as_echo "$ac_cv_have_proc_interrupts" >&6; }
13184 have_proc_interrupts=$ac_cv_have_proc_interrupts
13187 if test "$have_proc_interrupts" = yes; then
13188 cat >>confdefs.h <<\_ACEOF
13189 #define HAVE_PROC_INTERRUPTS 1
13194 elif test "$with_proc_interrupts" != no; then
13195 echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
13200 ###############################################################################
13202 # The --enable-locking option
13204 ###############################################################################
13206 # Check whether --enable-locking was given.
13207 if test "${enable_locking+set}" = set; then
13208 enableval=$enable_locking; enable_locking="$enableval"
13210 if test "$ac_macosx" = yes; then
13211 # We can't lock on MacOS X, so default to not compiling in support for it.
13212 # But allow --enable-locking to override that, so I can debug Linux locking
13220 if test "$enable_locking" = yes; then
13222 elif test "$enable_locking" = no; then
13223 cat >>confdefs.h <<\_ACEOF
13224 #define NO_LOCKING 1
13228 echo "error: must be yes or no: --enable-locking=$enable_locking"
13233 ###############################################################################
13235 # Whether to allow root password to unblank.
13237 ###############################################################################
13238 # Check whether --enable-root-passwd was given.
13239 if test "${enable_root_passwd+set}" = set; then
13240 enableval=$enable_root_passwd; enable_root_passwd="$enableval"
13242 enable_root_passwd=yes
13245 if test "$enable_root_passwd" = yes; then
13246 cat >>confdefs.h <<\_ACEOF
13247 #define ALLOW_ROOT_PASSWD 1
13251 elif test "$enable_root_passwd" != no; then
13252 echo "error: must be yes or no: --enable-root-passwd=$enable_root_passwd"
13256 ###############################################################################
13260 ###############################################################################
13264 # Solaris systems tend to come with PAM misconfigured.
13265 # Don't build it by default, even if the headers exist.
13266 with_pam_default=no
13269 # Default to building PAM support on all other systems, if it exists.
13270 with_pam_default=yes
13275 with_pam_req=unspecified
13278 # Check whether --with-pam was given.
13279 if test "${with_pam+set}" = set; then
13280 withval=$with_pam; with_pam="$withval"; with_pam_req="$withval"
13282 with_pam=$with_pam_default
13287 # Check whether --with-pam_service_name was given.
13288 if test "${with_pam_service_name+set}" = set; then
13289 withval=$with_pam_service_name; pam_service_name="$withval"
13291 pam_service_name="xscreensaver"
13296 case "$with_pam" in
13301 { $as_echo "$as_me:$LINENO: checking for PAM headers" >&5
13302 $as_echo_n "checking for PAM headers... " >&6; }
13303 d=$with_pam/include
13304 if test -d $d; then
13305 X_CFLAGS="-I$d $X_CFLAGS"
13306 { $as_echo "$as_me:$LINENO: result: $d" >&5
13307 $as_echo "$d" >&6; }
13309 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13310 $as_echo "not found ($d: no such directory)" >&6; }
13313 { $as_echo "$as_me:$LINENO: checking for PAM libs" >&5
13314 $as_echo_n "checking for PAM libs... " >&6; }
13316 if test -d $d; then
13317 X_LIBS="-L$d $X_LIBS"
13318 { $as_echo "$as_me:$LINENO: result: $d" >&5
13319 $as_echo "$d" >&6; }
13321 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13322 $as_echo "not found ($d: no such directory)" >&6; }
13325 # replace the directory string with "yes".
13327 with_pam=$with_pam_req
13332 echo "error: argument to --with-pam must be \"yes\", \"no\", or a directory."
13333 echo " If it is a directory, then \`DIR/include' will be added to"
13334 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13340 if test "$enable_locking" = yes -a "$with_pam" = yes; then
13341 { $as_echo "$as_me:$LINENO: checking for PAM" >&5
13342 $as_echo_n "checking for PAM... " >&6; }
13343 if test "${ac_cv_pam+set}" = set; then
13344 $as_echo_n "(cached) " >&6
13347 ac_save_CPPFLAGS="$CPPFLAGS"
13348 if test \! -z "$includedir" ; then
13349 CPPFLAGS="$CPPFLAGS -I$includedir"
13351 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13352 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13353 cat >conftest.$ac_ext <<_ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h. */
13359 #include <security/pam_appl.h>
13368 rm -rf conftest.$ac_objext
13369 if { (ac_try="$ac_compile"
13370 case "(($ac_try" in
13371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372 *) ac_try_echo=$ac_try;;
13374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13375 $as_echo "$ac_try_echo") >&5
13376 (eval "$ac_compile") 2>conftest.er1
13378 grep -v '^ *+' conftest.er1 >conftest.err
13379 rm -rf conftest.er1
13380 cat conftest.err >&5
13381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } && {
13383 test -z "$ac_c_werror_flag" ||
13384 test ! -s conftest.err
13385 } && test -s conftest.$ac_objext; then
13388 $as_echo "$as_me: failed program was:" >&5
13389 sed 's/^/| /' conftest.$ac_ext >&5
13394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13395 CPPFLAGS="$ac_save_CPPFLAGS"
13397 { $as_echo "$as_me:$LINENO: result: $ac_cv_pam" >&5
13398 $as_echo "$ac_cv_pam" >&6; }
13399 if test "$ac_cv_pam" = yes ; then
13401 cat >>confdefs.h <<\_ACEOF
13405 cat >>confdefs.h <<_ACEOF
13406 #define PAM_SERVICE_NAME "$pam_service_name"
13410 PASSWD_LIBS="${PASSWD_LIBS} -lpam"
13412 # libpam typically requires dlopen and dlsym. On FreeBSD,
13413 # those are in libc. On Linux and Solaris, they're in libdl.
13414 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13415 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13416 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13417 $as_echo_n "(cached) " >&6
13419 ac_check_lib_save_LIBS=$LIBS
13421 cat >conftest.$ac_ext <<_ACEOF
13424 cat confdefs.h >>conftest.$ac_ext
13425 cat >>conftest.$ac_ext <<_ACEOF
13426 /* end confdefs.h. */
13428 /* Override any GCC internal prototype to avoid an error.
13429 Use char because int might match the return type of a GCC
13430 builtin and then its argument prototype would still apply. */
13443 rm -rf conftest.$ac_objext conftest$ac_exeext
13444 if { (ac_try="$ac_link"
13445 case "(($ac_try" in
13446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13447 *) ac_try_echo=$ac_try;;
13449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13450 $as_echo "$ac_try_echo") >&5
13451 (eval "$ac_link") 2>conftest.er1
13453 grep -v '^ *+' conftest.er1 >conftest.err
13454 rm -rf conftest.er1
13455 cat conftest.err >&5
13456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } && {
13458 test -z "$ac_c_werror_flag" ||
13459 test ! -s conftest.err
13460 } && test -s conftest$ac_exeext && {
13461 test "$cross_compiling" = yes ||
13462 $as_test_x conftest$ac_exeext
13464 ac_cv_lib_dl_dlopen=yes
13466 $as_echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13469 ac_cv_lib_dl_dlopen=no
13472 rm -rf conftest.dSYM
13473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13474 conftest$ac_exeext conftest.$ac_ext
13475 LIBS=$ac_check_lib_save_LIBS
13477 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13478 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13479 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
13480 PASSWD_LIBS="${PASSWD_LIBS} -ldl"
13484 # On Linux, sigtimedwait() is in libc; on Solaris, it's in librt.
13486 { $as_echo "$as_me:$LINENO: checking for sigtimedwait in -lc" >&5
13487 $as_echo_n "checking for sigtimedwait in -lc... " >&6; }
13488 if test "${ac_cv_lib_c_sigtimedwait+set}" = set; then
13489 $as_echo_n "(cached) " >&6
13491 ac_check_lib_save_LIBS=$LIBS
13493 cat >conftest.$ac_ext <<_ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h. */
13500 /* Override any GCC internal prototype to avoid an error.
13501 Use char because int might match the return type of a GCC
13502 builtin and then its argument prototype would still apply. */
13506 char sigtimedwait ();
13510 return sigtimedwait ();
13515 rm -rf conftest.$ac_objext conftest$ac_exeext
13516 if { (ac_try="$ac_link"
13517 case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13522 $as_echo "$ac_try_echo") >&5
13523 (eval "$ac_link") 2>conftest.er1
13525 grep -v '^ *+' conftest.er1 >conftest.err
13526 rm -rf conftest.er1
13527 cat conftest.err >&5
13528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } && {
13530 test -z "$ac_c_werror_flag" ||
13531 test ! -s conftest.err
13532 } && test -s conftest$ac_exeext && {
13533 test "$cross_compiling" = yes ||
13534 $as_test_x conftest$ac_exeext
13536 ac_cv_lib_c_sigtimedwait=yes
13538 $as_echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13541 ac_cv_lib_c_sigtimedwait=no
13544 rm -rf conftest.dSYM
13545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13546 conftest$ac_exeext conftest.$ac_ext
13547 LIBS=$ac_check_lib_save_LIBS
13549 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigtimedwait" >&5
13550 $as_echo "$ac_cv_lib_c_sigtimedwait" >&6; }
13551 if test "x$ac_cv_lib_c_sigtimedwait" = x""yes; then
13553 cat >>confdefs.h <<\_ACEOF
13554 #define HAVE_SIGTIMEDWAIT 1
13559 if test "$have_timedwait" = no ; then
13560 { $as_echo "$as_me:$LINENO: checking for sigtimedwait in -lrt" >&5
13561 $as_echo_n "checking for sigtimedwait in -lrt... " >&6; }
13562 if test "${ac_cv_lib_rt_sigtimedwait+set}" = set; then
13563 $as_echo_n "(cached) " >&6
13565 ac_check_lib_save_LIBS=$LIBS
13567 cat >conftest.$ac_ext <<_ACEOF
13570 cat confdefs.h >>conftest.$ac_ext
13571 cat >>conftest.$ac_ext <<_ACEOF
13572 /* end confdefs.h. */
13574 /* Override any GCC internal prototype to avoid an error.
13575 Use char because int might match the return type of a GCC
13576 builtin and then its argument prototype would still apply. */
13580 char sigtimedwait ();
13584 return sigtimedwait ();
13589 rm -rf conftest.$ac_objext conftest$ac_exeext
13590 if { (ac_try="$ac_link"
13591 case "(($ac_try" in
13592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593 *) ac_try_echo=$ac_try;;
13595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13596 $as_echo "$ac_try_echo") >&5
13597 (eval "$ac_link") 2>conftest.er1
13599 grep -v '^ *+' conftest.er1 >conftest.err
13600 rm -rf conftest.er1
13601 cat conftest.err >&5
13602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } && {
13604 test -z "$ac_c_werror_flag" ||
13605 test ! -s conftest.err
13606 } && test -s conftest$ac_exeext && {
13607 test "$cross_compiling" = yes ||
13608 $as_test_x conftest$ac_exeext
13610 ac_cv_lib_rt_sigtimedwait=yes
13612 $as_echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.$ac_ext >&5
13615 ac_cv_lib_rt_sigtimedwait=no
13618 rm -rf conftest.dSYM
13619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13620 conftest$ac_exeext conftest.$ac_ext
13621 LIBS=$ac_check_lib_save_LIBS
13623 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sigtimedwait" >&5
13624 $as_echo "$ac_cv_lib_rt_sigtimedwait" >&6; }
13625 if test "x$ac_cv_lib_rt_sigtimedwait" = x""yes; then
13627 cat >>confdefs.h <<\_ACEOF
13628 #define HAVE_SIGTIMEDWAIT 1
13631 PASSWD_LIBS="${PASSWD_LIBS} -lrt"
13636 { $as_echo "$as_me:$LINENO: checking how to call pam_strerror" >&5
13637 $as_echo_n "checking how to call pam_strerror... " >&6; }
13638 if test "${ac_cv_pam_strerror_args+set}" = set; then
13639 $as_echo_n "(cached) " >&6
13642 ac_save_CPPFLAGS="$CPPFLAGS"
13643 if test \! -z "$includedir" ; then
13644 CPPFLAGS="$CPPFLAGS -I$includedir"
13646 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13647 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13648 cat >conftest.$ac_ext <<_ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h. */
13655 #include <stdlib.h>
13656 #include <security/pam_appl.h>
13660 pam_handle_t *pamh = 0;
13661 char *s = pam_strerror(pamh, PAM_SUCCESS);
13666 rm -rf conftest.$ac_objext
13667 if { (ac_try="$ac_compile"
13668 case "(($ac_try" in
13669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670 *) ac_try_echo=$ac_try;;
13672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13673 $as_echo "$ac_try_echo") >&5
13674 (eval "$ac_compile") 2>conftest.er1
13676 grep -v '^ *+' conftest.er1 >conftest.err
13677 rm -rf conftest.er1
13678 cat conftest.err >&5
13679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } && {
13681 test -z "$ac_c_werror_flag" ||
13682 test ! -s conftest.err
13683 } && test -s conftest.$ac_objext; then
13684 ac_pam_strerror_args=2
13686 $as_echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13690 ac_save_CPPFLAGS="$CPPFLAGS"
13691 if test \! -z "$includedir" ; then
13692 CPPFLAGS="$CPPFLAGS -I$includedir"
13694 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13695 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13696 cat >conftest.$ac_ext <<_ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13703 #include <stdlib.h>
13704 #include <security/pam_appl.h>
13709 pam_strerror(PAM_SUCCESS);
13714 rm -rf conftest.$ac_objext
13715 if { (ac_try="$ac_compile"
13716 case "(($ac_try" in
13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13721 $as_echo "$ac_try_echo") >&5
13722 (eval "$ac_compile") 2>conftest.er1
13724 grep -v '^ *+' conftest.er1 >conftest.err
13725 rm -rf conftest.er1
13726 cat conftest.err >&5
13727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } && {
13729 test -z "$ac_c_werror_flag" ||
13730 test ! -s conftest.err
13731 } && test -s conftest.$ac_objext; then
13732 ac_pam_strerror_args=1
13734 $as_echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13737 ac_pam_strerror_args=0
13740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13741 CPPFLAGS="$ac_save_CPPFLAGS"
13744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13745 CPPFLAGS="$ac_save_CPPFLAGS"
13746 ac_cv_pam_strerror_args=$ac_pam_strerror_args
13749 ac_pam_strerror_args=$ac_cv_pam_strerror_args
13750 if test "$ac_pam_strerror_args" = 1 ; then
13751 { $as_echo "$as_me:$LINENO: result: one argument" >&5
13752 $as_echo "one argument" >&6; }
13753 elif test "$ac_pam_strerror_args" = 2 ; then
13754 cat >>confdefs.h <<\_ACEOF
13755 #define PAM_STRERROR_TWO_ARGS 1
13758 { $as_echo "$as_me:$LINENO: result: two arguments" >&5
13759 $as_echo "two arguments" >&6; }
13761 { $as_echo "$as_me:$LINENO: result: unknown" >&5
13762 $as_echo "unknown" >&6; }
13765 # Check pam_fail_delay
13766 { $as_echo "$as_me:$LINENO: checking pam_fail_delay in -lpam" >&5
13767 $as_echo_n "checking pam_fail_delay in -lpam... " >&6; }
13768 if test "${ac_cv_pam_fail_delay+set}" = set; then
13769 $as_echo_n "(cached) " >&6
13771 ac_save_LDFLAGS="$LDFLAGS"
13773 cat >conftest.$ac_ext <<_ACEOF
13776 cat confdefs.h >>conftest.$ac_ext
13777 cat >>conftest.$ac_ext <<_ACEOF
13778 /* end confdefs.h. */
13779 #include <security/pam_appl.h>
13783 pam_handle_t *pamh = 0;
13784 unsigned int usec = 1;
13785 int status = pam_fail_delay (pamh, usec);
13790 rm -rf conftest.$ac_objext conftest$ac_exeext
13791 if { (ac_try="$ac_link"
13792 case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13797 $as_echo "$ac_try_echo") >&5
13798 (eval "$ac_link") 2>conftest.er1
13800 grep -v '^ *+' conftest.er1 >conftest.err
13801 rm -rf conftest.er1
13802 cat conftest.err >&5
13803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } && {
13805 test -z "$ac_c_werror_flag" ||
13806 test ! -s conftest.err
13807 } && test -s conftest$ac_exeext && {
13808 test "$cross_compiling" = yes ||
13809 $as_test_x conftest$ac_exeext
13811 ac_pam_fail_delay=yes
13813 $as_echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.$ac_ext >&5
13816 ac_pam_fail_delay=no
13819 rm -rf conftest.dSYM
13820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13821 conftest$ac_exeext conftest.$ac_ext
13822 ac_cv_pam_fail_delay=$ac_pam_fail_delay,
13823 LDFLAGS=$ac_save_LDFLAGS
13827 if test "$ac_pam_fail_delay" = yes ; then
13828 { $as_echo "$as_me:$LINENO: result: yes" >&5
13829 $as_echo "yes" >&6; }
13830 cat >>confdefs.h <<\_ACEOF
13831 #define HAVE_PAM_FAIL_DELAY 1
13835 { $as_echo "$as_me:$LINENO: result: no" >&5
13836 $as_echo "no" >&6; }
13843 ###############################################################################
13845 # Check for Kerberos.
13847 ###############################################################################
13851 with_kerberos_req=unspecified
13854 # Check whether --with-kerberos was given.
13855 if test "${with_kerberos+set}" = set; then
13856 withval=$with_kerberos; with_kerberos="$withval"; with_kerberos_req="$withval"
13863 case "$with_kerberos" in
13868 { $as_echo "$as_me:$LINENO: checking for Kerberos headers" >&5
13869 $as_echo_n "checking for Kerberos headers... " >&6; }
13870 d=$with_kerberos/include
13871 if test -d $d; then
13872 X_CFLAGS="-I$d $X_CFLAGS"
13873 { $as_echo "$as_me:$LINENO: result: $d" >&5
13874 $as_echo "$d" >&6; }
13876 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13877 $as_echo "not found ($d: no such directory)" >&6; }
13880 { $as_echo "$as_me:$LINENO: checking for Kerberos libs" >&5
13881 $as_echo_n "checking for Kerberos libs... " >&6; }
13882 d=$with_kerberos/lib
13883 if test -d $d; then
13884 X_LIBS="-L$d $X_LIBS"
13885 { $as_echo "$as_me:$LINENO: result: $d" >&5
13886 $as_echo "$d" >&6; }
13888 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13889 $as_echo "not found ($d: no such directory)" >&6; }
13892 # replace the directory string with "yes".
13893 with_kerberos_req="yes"
13894 with_kerberos=$with_kerberos_req
13899 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
13900 echo " If it is a directory, then \`DIR/include' will be added to"
13901 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13907 if test "$enable_locking" = yes -a "$with_kerberos" = yes; then
13908 { $as_echo "$as_me:$LINENO: checking for Kerberos 4" >&5
13909 $as_echo_n "checking for Kerberos 4... " >&6; }
13910 if test "${ac_cv_kerberos+set}" = set; then
13911 $as_echo_n "(cached) " >&6
13914 ac_save_CPPFLAGS="$CPPFLAGS"
13915 if test \! -z "$includedir" ; then
13916 CPPFLAGS="$CPPFLAGS -I$includedir"
13918 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13919 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13920 cat >conftest.$ac_ext <<_ACEOF
13923 cat confdefs.h >>conftest.$ac_ext
13924 cat >>conftest.$ac_ext <<_ACEOF
13925 /* end confdefs.h. */
13935 rm -rf conftest.$ac_objext
13936 if { (ac_try="$ac_compile"
13937 case "(($ac_try" in
13938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939 *) ac_try_echo=$ac_try;;
13941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13942 $as_echo "$ac_try_echo") >&5
13943 (eval "$ac_compile") 2>conftest.er1
13945 grep -v '^ *+' conftest.er1 >conftest.err
13946 rm -rf conftest.er1
13947 cat conftest.err >&5
13948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } && {
13950 test -z "$ac_c_werror_flag" ||
13951 test ! -s conftest.err
13952 } && test -s conftest.$ac_objext; then
13955 $as_echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13962 CPPFLAGS="$ac_save_CPPFLAGS"
13964 { $as_echo "$as_me:$LINENO: result: $ac_cv_kerberos" >&5
13965 $as_echo "$ac_cv_kerberos" >&6; }
13966 { $as_echo "$as_me:$LINENO: checking for Kerberos 5" >&5
13967 $as_echo_n "checking for Kerberos 5... " >&6; }
13968 if test "${ac_cv_kerberos5+set}" = set; then
13969 $as_echo_n "(cached) " >&6
13972 ac_save_CPPFLAGS="$CPPFLAGS"
13973 if test \! -z "$includedir" ; then
13974 CPPFLAGS="$CPPFLAGS -I$includedir"
13976 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13977 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
13978 cat >conftest.$ac_ext <<_ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13984 #include <kerberosIV/krb.h>
13993 rm -rf conftest.$ac_objext
13994 if { (ac_try="$ac_compile"
13995 case "(($ac_try" in
13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997 *) ac_try_echo=$ac_try;;
13999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14000 $as_echo "$ac_try_echo") >&5
14001 (eval "$ac_compile") 2>conftest.er1
14003 grep -v '^ *+' conftest.er1 >conftest.err
14004 rm -rf conftest.er1
14005 cat conftest.err >&5
14006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } && {
14008 test -z "$ac_c_werror_flag" ||
14009 test ! -s conftest.err
14010 } && test -s conftest.$ac_objext; then
14011 ac_cv_kerberos5=yes
14013 $as_echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.$ac_ext >&5
14019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14020 CPPFLAGS="$ac_save_CPPFLAGS"
14022 { $as_echo "$as_me:$LINENO: result: $ac_cv_kerberos5" >&5
14023 $as_echo "$ac_cv_kerberos5" >&6; }
14025 if test "$ac_cv_kerberos" = yes ; then
14027 cat >>confdefs.h <<\_ACEOF
14028 #define HAVE_KERBEROS 1
14033 if test "$ac_cv_kerberos5" = yes ; then
14035 # Andrew Snare <ajs@pigpond.com> wrote:
14037 # You were assuming that if kerberosV (krb5) was found, then kerberosIV
14038 # (krb4) was also available. This turns out not to be the case with
14039 # mit-krb-1.2.7; apparently backwards-compatibility with KerberosIV
14042 # So, disable kerberosV support if libkrb4 can't be found.
14043 # This is not the best solution, but it makes the compile not fail.
14046 ac_save_CPPFLAGS="$CPPFLAGS"
14047 ac_save_LDFLAGS="$LDFLAGS"
14048 # ac_save_LIBS="$LIBS"
14050 if test \! -z "$includedir" ; then
14051 CPPFLAGS="$CPPFLAGS -I$includedir"
14053 # note: $X_CFLAGS includes $x_includes
14054 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14056 if test \! -z "$libdir" ; then
14057 LDFLAGS="$LDFLAGS -L$libdir"
14059 # note: $X_LIBS includes $x_libraries
14060 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14062 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14063 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14064 { $as_echo "$as_me:$LINENO: checking for krb_get_tf_realm in -lkrb4" >&5
14065 $as_echo_n "checking for krb_get_tf_realm in -lkrb4... " >&6; }
14066 if test "${ac_cv_lib_krb4_krb_get_tf_realm+set}" = set; then
14067 $as_echo_n "(cached) " >&6
14069 ac_check_lib_save_LIBS=$LIBS
14070 LIBS="-lkrb4 $LIBS"
14071 cat >conftest.$ac_ext <<_ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h. */
14078 /* Override any GCC internal prototype to avoid an error.
14079 Use char because int might match the return type of a GCC
14080 builtin and then its argument prototype would still apply. */
14084 char krb_get_tf_realm ();
14088 return krb_get_tf_realm ();
14093 rm -rf conftest.$ac_objext conftest$ac_exeext
14094 if { (ac_try="$ac_link"
14095 case "(($ac_try" in
14096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14097 *) ac_try_echo=$ac_try;;
14099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14100 $as_echo "$ac_try_echo") >&5
14101 (eval "$ac_link") 2>conftest.er1
14103 grep -v '^ *+' conftest.er1 >conftest.err
14104 rm -rf conftest.er1
14105 cat conftest.err >&5
14106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } && {
14108 test -z "$ac_c_werror_flag" ||
14109 test ! -s conftest.err
14110 } && test -s conftest$ac_exeext && {
14111 test "$cross_compiling" = yes ||
14112 $as_test_x conftest$ac_exeext
14114 ac_cv_lib_krb4_krb_get_tf_realm=yes
14116 $as_echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14119 ac_cv_lib_krb4_krb_get_tf_realm=no
14122 rm -rf conftest.dSYM
14123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14124 conftest$ac_exeext conftest.$ac_ext
14125 LIBS=$ac_check_lib_save_LIBS
14127 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_tf_realm" >&5
14128 $as_echo "$ac_cv_lib_krb4_krb_get_tf_realm" >&6; }
14129 if test "x$ac_cv_lib_krb4_krb_get_tf_realm" = x""yes; then
14135 CPPFLAGS="$ac_save_CPPFLAGS"
14136 LDFLAGS="$ac_save_LDFLAGS"
14137 # LIBS="$ac_save_LIBS"
14139 if test "$have_kerberos" = yes ; then
14141 cat >>confdefs.h <<\_ACEOF
14142 #define HAVE_KERBEROS 1
14145 cat >>confdefs.h <<\_ACEOF
14146 #define HAVE_KERBEROS5 1
14151 { $as_echo "$as_me:$LINENO: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&5
14152 $as_echo "$as_me: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&2;}
14157 if test "$have_kerberos5" = yes ; then
14158 # from Matt Knopp <mhat@infocalypse.netlag.com>
14159 # (who got it from amu@mit.edu)
14161 PASSWD_LIBS="$PASSWD_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
14163 # jwz: MacOS X uses -lkrb5, but not -lcrypt
14165 ac_save_CPPFLAGS="$CPPFLAGS"
14166 ac_save_LDFLAGS="$LDFLAGS"
14167 # ac_save_LIBS="$LIBS"
14169 if test \! -z "$includedir" ; then
14170 CPPFLAGS="$CPPFLAGS -I$includedir"
14172 # note: $X_CFLAGS includes $x_includes
14173 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14175 if test \! -z "$libdir" ; then
14176 LDFLAGS="$LDFLAGS -L$libdir"
14178 # note: $X_LIBS includes $x_libraries
14179 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14181 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14182 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
14183 { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
14184 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
14185 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
14186 $as_echo_n "(cached) " >&6
14188 ac_check_lib_save_LIBS=$LIBS
14189 LIBS="-lcrypt $LIBS"
14190 cat >conftest.$ac_ext <<_ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14197 /* Override any GCC internal prototype to avoid an error.
14198 Use char because int might match the return type of a GCC
14199 builtin and then its argument prototype would still apply. */
14212 rm -rf conftest.$ac_objext conftest$ac_exeext
14213 if { (ac_try="$ac_link"
14214 case "(($ac_try" in
14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14219 $as_echo "$ac_try_echo") >&5
14220 (eval "$ac_link") 2>conftest.er1
14222 grep -v '^ *+' conftest.er1 >conftest.err
14223 rm -rf conftest.er1
14224 cat conftest.err >&5
14225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); } && {
14227 test -z "$ac_c_werror_flag" ||
14228 test ! -s conftest.err
14229 } && test -s conftest$ac_exeext && {
14230 test "$cross_compiling" = yes ||
14231 $as_test_x conftest$ac_exeext
14233 ac_cv_lib_crypt_crypt=yes
14235 $as_echo "$as_me: failed program was:" >&5
14236 sed 's/^/| /' conftest.$ac_ext >&5
14238 ac_cv_lib_crypt_crypt=no
14241 rm -rf conftest.dSYM
14242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14243 conftest$ac_exeext conftest.$ac_ext
14244 LIBS=$ac_check_lib_save_LIBS
14246 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
14247 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
14248 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
14249 PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
14252 CPPFLAGS="$ac_save_CPPFLAGS"
14253 LDFLAGS="$ac_save_LDFLAGS"
14254 # LIBS="$ac_save_LIBS"
14257 elif test "$have_kerberos" = yes ; then
14258 # from Tim Showalter <tjs@psaux.com> for FreeBSD 4.2
14259 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
14262 if test "$have_kerberos" = yes ; then
14263 { $as_echo "$as_me:$LINENO: checking for res_search" >&5
14264 $as_echo_n "checking for res_search... " >&6; }
14265 if test "${ac_cv_func_res_search+set}" = set; then
14266 $as_echo_n "(cached) " >&6
14268 cat >conftest.$ac_ext <<_ACEOF
14271 cat confdefs.h >>conftest.$ac_ext
14272 cat >>conftest.$ac_ext <<_ACEOF
14273 /* end confdefs.h. */
14274 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
14275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14276 #define res_search innocuous_res_search
14278 /* System header to define __stub macros and hopefully few prototypes,
14279 which can conflict with char res_search (); below.
14280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14281 <limits.h> exists even on freestanding compilers. */
14284 # include <limits.h>
14286 # include <assert.h>
14291 /* Override any GCC internal prototype to avoid an error.
14292 Use char because int might match the return type of a GCC
14293 builtin and then its argument prototype would still apply. */
14297 char res_search ();
14298 /* The GNU C library defines this for functions which it implements
14299 to always fail with ENOSYS. Some functions are actually named
14300 something starting with __ and the normal name is an alias. */
14301 #if defined __stub_res_search || defined __stub___res_search
14308 return res_search ();
14313 rm -rf conftest.$ac_objext conftest$ac_exeext
14314 if { (ac_try="$ac_link"
14315 case "(($ac_try" in
14316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317 *) ac_try_echo=$ac_try;;
14319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14320 $as_echo "$ac_try_echo") >&5
14321 (eval "$ac_link") 2>conftest.er1
14323 grep -v '^ *+' conftest.er1 >conftest.err
14324 rm -rf conftest.er1
14325 cat conftest.err >&5
14326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } && {
14328 test -z "$ac_c_werror_flag" ||
14329 test ! -s conftest.err
14330 } && test -s conftest$ac_exeext && {
14331 test "$cross_compiling" = yes ||
14332 $as_test_x conftest$ac_exeext
14334 ac_cv_func_res_search=yes
14336 $as_echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14339 ac_cv_func_res_search=no
14342 rm -rf conftest.dSYM
14343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14344 conftest$ac_exeext conftest.$ac_ext
14346 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
14347 $as_echo "$ac_cv_func_res_search" >&6; }
14348 if test "x$ac_cv_func_res_search" = x""yes; then
14351 { $as_echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
14352 $as_echo_n "checking for res_search in -lresolv... " >&6; }
14353 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
14354 $as_echo_n "(cached) " >&6
14356 ac_check_lib_save_LIBS=$LIBS
14357 LIBS="-lresolv $LIBS"
14358 cat >conftest.$ac_ext <<_ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h. */
14365 /* Override any GCC internal prototype to avoid an error.
14366 Use char because int might match the return type of a GCC
14367 builtin and then its argument prototype would still apply. */
14371 char res_search ();
14375 return res_search ();
14380 rm -rf conftest.$ac_objext conftest$ac_exeext
14381 if { (ac_try="$ac_link"
14382 case "(($ac_try" in
14383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14384 *) ac_try_echo=$ac_try;;
14386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14387 $as_echo "$ac_try_echo") >&5
14388 (eval "$ac_link") 2>conftest.er1
14390 grep -v '^ *+' conftest.er1 >conftest.err
14391 rm -rf conftest.er1
14392 cat conftest.err >&5
14393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); } && {
14395 test -z "$ac_c_werror_flag" ||
14396 test ! -s conftest.err
14397 } && test -s conftest$ac_exeext && {
14398 test "$cross_compiling" = yes ||
14399 $as_test_x conftest$ac_exeext
14401 ac_cv_lib_resolv_res_search=yes
14403 $as_echo "$as_me: failed program was:" >&5
14404 sed 's/^/| /' conftest.$ac_ext >&5
14406 ac_cv_lib_resolv_res_search=no
14409 rm -rf conftest.dSYM
14410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14411 conftest$ac_exeext conftest.$ac_ext
14412 LIBS=$ac_check_lib_save_LIBS
14414 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
14415 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
14416 if test "x$ac_cv_lib_resolv_res_search" = x""yes; then
14417 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
14419 { $as_echo "$as_me:$LINENO: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&5
14420 $as_echo "$as_me: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&2;}
14430 ###############################################################################
14432 # Check for the nine billion variants of shadow passwords...
14434 ###############################################################################
14439 with_shadow_req=unspecified
14442 # Check whether --with-shadow was given.
14443 if test "${with_shadow+set}" = set; then
14444 withval=$with_shadow; with_shadow="$withval"; with_shadow_req="$withval"
14451 case "$with_shadow" in
14456 { $as_echo "$as_me:$LINENO: checking for shadow password headers" >&5
14457 $as_echo_n "checking for shadow password headers... " >&6; }
14458 d=$with_shadow/include
14459 if test -d $d; then
14460 X_CFLAGS="-I$d $X_CFLAGS"
14461 { $as_echo "$as_me:$LINENO: result: $d" >&5
14462 $as_echo "$d" >&6; }
14464 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14465 $as_echo "not found ($d: no such directory)" >&6; }
14468 { $as_echo "$as_me:$LINENO: checking for shadow password libs" >&5
14469 $as_echo_n "checking for shadow password libs... " >&6; }
14471 if test -d $d; then
14472 X_LIBS="-L$d $X_LIBS"
14473 { $as_echo "$as_me:$LINENO: result: $d" >&5
14474 $as_echo "$d" >&6; }
14476 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14477 $as_echo "not found ($d: no such directory)" >&6; }
14480 # replace the directory string with "yes".
14481 with_shadow_req="yes"
14482 with_shadow=$with_shadow_req
14487 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
14488 echo " If it is a directory, then \`DIR/include' will be added to"
14489 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14495 if test "$enable_locking" = no ; then
14501 ###############################################################################
14503 # Check for Sun "adjunct" passwords.
14505 ###############################################################################
14507 if test "$with_shadow" = yes ; then
14508 { $as_echo "$as_me:$LINENO: checking for Sun-style shadow passwords" >&5
14509 $as_echo_n "checking for Sun-style shadow passwords... " >&6; }
14510 if test "${ac_cv_sun_adjunct+set}" = set; then
14511 $as_echo_n "(cached) " >&6
14514 ac_save_CPPFLAGS="$CPPFLAGS"
14515 if test \! -z "$includedir" ; then
14516 CPPFLAGS="$CPPFLAGS -I$includedir"
14518 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14519 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14520 cat >conftest.$ac_ext <<_ACEOF
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h. */
14526 #include <stdlib.h>
14527 #include <unistd.h>
14528 #include <sys/types.h>
14529 #include <sys/label.h>
14530 #include <sys/audit.h>
14531 #include <pwdadj.h>
14535 struct passwd_adjunct *p = getpwanam("nobody");
14536 const char *pw = p->pwa_passwd;
14541 rm -rf conftest.$ac_objext
14542 if { (ac_try="$ac_compile"
14543 case "(($ac_try" in
14544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545 *) ac_try_echo=$ac_try;;
14547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14548 $as_echo "$ac_try_echo") >&5
14549 (eval "$ac_compile") 2>conftest.er1
14551 grep -v '^ *+' conftest.er1 >conftest.err
14552 rm -rf conftest.er1
14553 cat conftest.err >&5
14554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } && {
14556 test -z "$ac_c_werror_flag" ||
14557 test ! -s conftest.err
14558 } && test -s conftest.$ac_objext; then
14559 ac_cv_sun_adjunct=yes
14561 $as_echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14564 ac_cv_sun_adjunct=no
14567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14568 CPPFLAGS="$ac_save_CPPFLAGS"
14570 { $as_echo "$as_me:$LINENO: result: $ac_cv_sun_adjunct" >&5
14571 $as_echo "$ac_cv_sun_adjunct" >&6; }
14572 if test "$ac_cv_sun_adjunct" = yes; then
14573 have_shadow_adjunct=yes
14580 ###############################################################################
14582 # Check for DEC and SCO so-called "enhanced" security.
14584 ###############################################################################
14586 if test "$with_shadow" = yes ; then
14587 { $as_echo "$as_me:$LINENO: checking for DEC-style shadow passwords" >&5
14588 $as_echo_n "checking for DEC-style shadow passwords... " >&6; }
14589 if test "${ac_cv_enhanced_passwd+set}" = set; then
14590 $as_echo_n "(cached) " >&6
14593 ac_save_CPPFLAGS="$CPPFLAGS"
14594 if test \! -z "$includedir" ; then
14595 CPPFLAGS="$CPPFLAGS -I$includedir"
14597 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14598 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14599 cat >conftest.$ac_ext <<_ACEOF
14602 cat confdefs.h >>conftest.$ac_ext
14603 cat >>conftest.$ac_ext <<_ACEOF
14604 /* end confdefs.h. */
14605 #include <stdlib.h>
14606 #include <unistd.h>
14607 #include <sys/types.h>
14609 #include <sys/security.h>
14614 struct pr_passwd *p;
14616 set_auth_parameters(0, 0);
14617 check_auth_parameters();
14618 p = getprpwnam("nobody");
14619 pw = p->ufld.fd_encrypt;
14624 rm -rf conftest.$ac_objext
14625 if { (ac_try="$ac_compile"
14626 case "(($ac_try" in
14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14631 $as_echo "$ac_try_echo") >&5
14632 (eval "$ac_compile") 2>conftest.er1
14634 grep -v '^ *+' conftest.er1 >conftest.err
14635 rm -rf conftest.er1
14636 cat conftest.err >&5
14637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } && {
14639 test -z "$ac_c_werror_flag" ||
14640 test ! -s conftest.err
14641 } && test -s conftest.$ac_objext; then
14642 ac_cv_enhanced_passwd=yes
14644 $as_echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14647 ac_cv_enhanced_passwd=no
14650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14651 CPPFLAGS="$ac_save_CPPFLAGS"
14653 { $as_echo "$as_me:$LINENO: result: $ac_cv_enhanced_passwd" >&5
14654 $as_echo "$ac_cv_enhanced_passwd" >&6; }
14655 if test $ac_cv_enhanced_passwd = yes; then
14656 have_shadow_enhanced=yes
14660 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
14661 # (I'm told it needs -lcurses too, but I don't understand why.)
14662 # But on DEC, it's in -lsecurity.
14664 { $as_echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
14665 $as_echo_n "checking for getprpwnam in -lprot... " >&6; }
14666 if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
14667 $as_echo_n "(cached) " >&6
14669 ac_check_lib_save_LIBS=$LIBS
14670 LIBS="-lprot -lx $LIBS"
14671 cat >conftest.$ac_ext <<_ACEOF
14674 cat confdefs.h >>conftest.$ac_ext
14675 cat >>conftest.$ac_ext <<_ACEOF
14676 /* end confdefs.h. */
14678 /* Override any GCC internal prototype to avoid an error.
14679 Use char because int might match the return type of a GCC
14680 builtin and then its argument prototype would still apply. */
14684 char getprpwnam ();
14688 return getprpwnam ();
14693 rm -rf conftest.$ac_objext conftest$ac_exeext
14694 if { (ac_try="$ac_link"
14695 case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14700 $as_echo "$ac_try_echo") >&5
14701 (eval "$ac_link") 2>conftest.er1
14703 grep -v '^ *+' conftest.er1 >conftest.err
14704 rm -rf conftest.er1
14705 cat conftest.err >&5
14706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } && {
14708 test -z "$ac_c_werror_flag" ||
14709 test ! -s conftest.err
14710 } && test -s conftest$ac_exeext && {
14711 test "$cross_compiling" = yes ||
14712 $as_test_x conftest$ac_exeext
14714 ac_cv_lib_prot_getprpwnam=yes
14716 $as_echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.$ac_ext >&5
14719 ac_cv_lib_prot_getprpwnam=no
14722 rm -rf conftest.dSYM
14723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14724 conftest$ac_exeext conftest.$ac_ext
14725 LIBS=$ac_check_lib_save_LIBS
14727 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
14728 $as_echo "$ac_cv_lib_prot_getprpwnam" >&6; }
14729 if test "x$ac_cv_lib_prot_getprpwnam" = x""yes; then
14730 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
14732 { $as_echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
14733 $as_echo_n "checking for getprpwnam in -lsecurity... " >&6; }
14734 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
14735 $as_echo_n "(cached) " >&6
14737 ac_check_lib_save_LIBS=$LIBS
14738 LIBS="-lsecurity $LIBS"
14739 cat >conftest.$ac_ext <<_ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h. */
14746 /* Override any GCC internal prototype to avoid an error.
14747 Use char because int might match the return type of a GCC
14748 builtin and then its argument prototype would still apply. */
14752 char getprpwnam ();
14756 return getprpwnam ();
14761 rm -rf conftest.$ac_objext conftest$ac_exeext
14762 if { (ac_try="$ac_link"
14763 case "(($ac_try" in
14764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765 *) ac_try_echo=$ac_try;;
14767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14768 $as_echo "$ac_try_echo") >&5
14769 (eval "$ac_link") 2>conftest.er1
14771 grep -v '^ *+' conftest.er1 >conftest.err
14772 rm -rf conftest.er1
14773 cat conftest.err >&5
14774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); } && {
14776 test -z "$ac_c_werror_flag" ||
14777 test ! -s conftest.err
14778 } && test -s conftest$ac_exeext && {
14779 test "$cross_compiling" = yes ||
14780 $as_test_x conftest$ac_exeext
14782 ac_cv_lib_security_getprpwnam=yes
14784 $as_echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14787 ac_cv_lib_security_getprpwnam=no
14790 rm -rf conftest.dSYM
14791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14792 conftest$ac_exeext conftest.$ac_ext
14793 LIBS=$ac_check_lib_save_LIBS
14795 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
14796 $as_echo "$ac_cv_lib_security_getprpwnam" >&6; }
14797 if test "x$ac_cv_lib_security_getprpwnam" = x""yes; then
14798 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
14806 ###############################################################################
14808 # Check for HP's entry in the "Not Invented Here" Sweepstakes.
14810 ###############################################################################
14812 if test "$with_shadow" = yes ; then
14813 { $as_echo "$as_me:$LINENO: checking for HP-style shadow passwords" >&5
14814 $as_echo_n "checking for HP-style shadow passwords... " >&6; }
14815 if test "${ac_cv_hpux_passwd+set}" = set; then
14816 $as_echo_n "(cached) " >&6
14819 ac_save_CPPFLAGS="$CPPFLAGS"
14820 if test \! -z "$includedir" ; then
14821 CPPFLAGS="$CPPFLAGS -I$includedir"
14823 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14824 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
14825 cat >conftest.$ac_ext <<_ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14831 #include <stdlib.h>
14832 #include <unistd.h>
14833 #include <sys/types.h>
14835 #include <hpsecurity.h>
14840 struct s_passwd *p = getspwnam("nobody");
14841 const char *pw = p->pw_passwd;
14846 rm -rf conftest.$ac_objext
14847 if { (ac_try="$ac_compile"
14848 case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14853 $as_echo "$ac_try_echo") >&5
14854 (eval "$ac_compile") 2>conftest.er1
14856 grep -v '^ *+' conftest.er1 >conftest.err
14857 rm -rf conftest.er1
14858 cat conftest.err >&5
14859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); } && {
14861 test -z "$ac_c_werror_flag" ||
14862 test ! -s conftest.err
14863 } && test -s conftest.$ac_objext; then
14864 ac_cv_hpux_passwd=yes
14866 $as_echo "$as_me: failed program was:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14869 ac_cv_hpux_passwd=no
14872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14873 CPPFLAGS="$ac_save_CPPFLAGS"
14875 { $as_echo "$as_me:$LINENO: result: $ac_cv_hpux_passwd" >&5
14876 $as_echo "$ac_cv_hpux_passwd" >&6; }
14877 if test "$ac_cv_hpux_passwd" = yes; then
14878 have_shadow_hpux=yes
14882 # on HPUX, bigcrypt is in -lsec
14883 { $as_echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
14884 $as_echo_n "checking for bigcrypt in -lsec... " >&6; }
14885 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
14886 $as_echo_n "(cached) " >&6
14888 ac_check_lib_save_LIBS=$LIBS
14890 cat >conftest.$ac_ext <<_ACEOF
14893 cat confdefs.h >>conftest.$ac_ext
14894 cat >>conftest.$ac_ext <<_ACEOF
14895 /* end confdefs.h. */
14897 /* Override any GCC internal prototype to avoid an error.
14898 Use char because int might match the return type of a GCC
14899 builtin and then its argument prototype would still apply. */
14907 return bigcrypt ();
14912 rm -rf conftest.$ac_objext conftest$ac_exeext
14913 if { (ac_try="$ac_link"
14914 case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14919 $as_echo "$ac_try_echo") >&5
14920 (eval "$ac_link") 2>conftest.er1
14922 grep -v '^ *+' conftest.er1 >conftest.err
14923 rm -rf conftest.er1
14924 cat conftest.err >&5
14925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); } && {
14927 test -z "$ac_c_werror_flag" ||
14928 test ! -s conftest.err
14929 } && test -s conftest$ac_exeext && {
14930 test "$cross_compiling" = yes ||
14931 $as_test_x conftest$ac_exeext
14933 ac_cv_lib_sec_bigcrypt=yes
14935 $as_echo "$as_me: failed program was:" >&5
14936 sed 's/^/| /' conftest.$ac_ext >&5
14938 ac_cv_lib_sec_bigcrypt=no
14941 rm -rf conftest.dSYM
14942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14943 conftest$ac_exeext conftest.$ac_ext
14944 LIBS=$ac_check_lib_save_LIBS
14946 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
14947 $as_echo "$ac_cv_lib_sec_bigcrypt" >&6; }
14948 if test "x$ac_cv_lib_sec_bigcrypt" = x""yes; then
14949 PASSWD_LIBS="$PASSWD_LIBS -lsec"
14956 ###############################################################################
14958 # Check for FreeBSD-style shadow passwords.
14960 # On FreeBSD, getpwnam() and friends work just like on non-shadow-
14961 # password systems -- except you only get stuff in the pw_passwd field
14962 # if the running program is setuid. So, guess that we've got this
14963 # lossage to contend with if /etc/master.passwd exists, and default to
14964 # a setuid installation.
14966 ###############################################################################
14968 if test "$with_shadow" = yes ; then
14969 { $as_echo "$as_me:$LINENO: checking for FreeBSD-style shadow passwords" >&5
14970 $as_echo_n "checking for FreeBSD-style shadow passwords... " >&6; }
14971 if test "${ac_cv_master_passwd+set}" = set; then
14972 $as_echo_n "(cached) " >&6
14974 if test -f /etc/master.passwd ; then
14975 ac_cv_master_passwd=yes
14977 ac_cv_master_passwd=no
14980 { $as_echo "$as_me:$LINENO: result: $ac_cv_master_passwd" >&5
14981 $as_echo "$ac_cv_master_passwd" >&6; }
14982 if test "$ac_cv_master_passwd" = yes; then
14988 ###############################################################################
14990 # Check for traditional (ha!) shadow passwords.
14992 ###############################################################################
14994 if test "$with_shadow" = yes ; then
14995 { $as_echo "$as_me:$LINENO: checking for generic shadow passwords" >&5
14996 $as_echo_n "checking for generic shadow passwords... " >&6; }
14997 if test "${ac_cv_shadow+set}" = set; then
14998 $as_echo_n "(cached) " >&6
15001 ac_save_CPPFLAGS="$CPPFLAGS"
15002 if test \! -z "$includedir" ; then
15003 CPPFLAGS="$CPPFLAGS -I$includedir"
15005 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15006 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
15007 cat >conftest.$ac_ext <<_ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h. */
15013 #include <stdlib.h>
15014 #include <unistd.h>
15015 #include <sys/types.h>
15017 #include <shadow.h>
15021 struct spwd *p = getspnam("nobody");
15022 const char *pw = p->sp_pwdp;
15027 rm -rf conftest.$ac_objext
15028 if { (ac_try="$ac_compile"
15029 case "(($ac_try" in
15030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15031 *) ac_try_echo=$ac_try;;
15033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15034 $as_echo "$ac_try_echo") >&5
15035 (eval "$ac_compile") 2>conftest.er1
15037 grep -v '^ *+' conftest.er1 >conftest.err
15038 rm -rf conftest.er1
15039 cat conftest.err >&5
15040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } && {
15042 test -z "$ac_c_werror_flag" ||
15043 test ! -s conftest.err
15044 } && test -s conftest.$ac_objext; then
15047 $as_echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.$ac_ext >&5
15053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15054 CPPFLAGS="$ac_save_CPPFLAGS"
15056 { $as_echo "$as_me:$LINENO: result: $ac_cv_shadow" >&5
15057 $as_echo "$ac_cv_shadow" >&6; }
15058 if test "$ac_cv_shadow" = yes; then
15062 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
15064 { $as_echo "$as_me:$LINENO: checking for getspnam in -lc" >&5
15065 $as_echo_n "checking for getspnam in -lc... " >&6; }
15066 if test "${ac_cv_lib_c_getspnam+set}" = set; then
15067 $as_echo_n "(cached) " >&6
15069 ac_check_lib_save_LIBS=$LIBS
15071 cat >conftest.$ac_ext <<_ACEOF
15074 cat confdefs.h >>conftest.$ac_ext
15075 cat >>conftest.$ac_ext <<_ACEOF
15076 /* end confdefs.h. */
15078 /* Override any GCC internal prototype to avoid an error.
15079 Use char because int might match the return type of a GCC
15080 builtin and then its argument prototype would still apply. */
15088 return getspnam ();
15093 rm -rf conftest.$ac_objext conftest$ac_exeext
15094 if { (ac_try="$ac_link"
15095 case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15100 $as_echo "$ac_try_echo") >&5
15101 (eval "$ac_link") 2>conftest.er1
15103 grep -v '^ *+' conftest.er1 >conftest.err
15104 rm -rf conftest.er1
15105 cat conftest.err >&5
15106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } && {
15108 test -z "$ac_c_werror_flag" ||
15109 test ! -s conftest.err
15110 } && test -s conftest$ac_exeext && {
15111 test "$cross_compiling" = yes ||
15112 $as_test_x conftest$ac_exeext
15114 ac_cv_lib_c_getspnam=yes
15116 $as_echo "$as_me: failed program was:" >&5
15117 sed 's/^/| /' conftest.$ac_ext >&5
15119 ac_cv_lib_c_getspnam=no
15122 rm -rf conftest.dSYM
15123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15124 conftest$ac_exeext conftest.$ac_ext
15125 LIBS=$ac_check_lib_save_LIBS
15127 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getspnam" >&5
15128 $as_echo "$ac_cv_lib_c_getspnam" >&6; }
15129 if test "x$ac_cv_lib_c_getspnam" = x""yes; then
15133 if test "$have_getspnam" = no ; then
15134 { $as_echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
15135 $as_echo_n "checking for getspnam in -lgen... " >&6; }
15136 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
15137 $as_echo_n "(cached) " >&6
15139 ac_check_lib_save_LIBS=$LIBS
15141 cat >conftest.$ac_ext <<_ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h. */
15148 /* Override any GCC internal prototype to avoid an error.
15149 Use char because int might match the return type of a GCC
15150 builtin and then its argument prototype would still apply. */
15158 return getspnam ();
15163 rm -rf conftest.$ac_objext conftest$ac_exeext
15164 if { (ac_try="$ac_link"
15165 case "(($ac_try" in
15166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15167 *) ac_try_echo=$ac_try;;
15169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15170 $as_echo "$ac_try_echo") >&5
15171 (eval "$ac_link") 2>conftest.er1
15173 grep -v '^ *+' conftest.er1 >conftest.err
15174 rm -rf conftest.er1
15175 cat conftest.err >&5
15176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); } && {
15178 test -z "$ac_c_werror_flag" ||
15179 test ! -s conftest.err
15180 } && test -s conftest$ac_exeext && {
15181 test "$cross_compiling" = yes ||
15182 $as_test_x conftest$ac_exeext
15184 ac_cv_lib_gen_getspnam=yes
15186 $as_echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15189 ac_cv_lib_gen_getspnam=no
15192 rm -rf conftest.dSYM
15193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15194 conftest$ac_exeext conftest.$ac_ext
15195 LIBS=$ac_check_lib_save_LIBS
15197 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
15198 $as_echo "$ac_cv_lib_gen_getspnam" >&6; }
15199 if test "x$ac_cv_lib_gen_getspnam" = x""yes; then
15200 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
15208 ###############################################################################
15210 # Check for other libraries needed for non-shadow passwords.
15212 ###############################################################################
15214 if test "$enable_locking" = yes ; then
15216 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
15218 { $as_echo "$as_me:$LINENO: checking for crypt in -lc" >&5
15219 $as_echo_n "checking for crypt in -lc... " >&6; }
15220 if test "${ac_cv_lib_c_crypt+set}" = set; then
15221 $as_echo_n "(cached) " >&6
15223 ac_check_lib_save_LIBS=$LIBS
15225 cat >conftest.$ac_ext <<_ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h. */
15232 /* Override any GCC internal prototype to avoid an error.
15233 Use char because int might match the return type of a GCC
15234 builtin and then its argument prototype would still apply. */
15247 rm -rf conftest.$ac_objext conftest$ac_exeext
15248 if { (ac_try="$ac_link"
15249 case "(($ac_try" in
15250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251 *) ac_try_echo=$ac_try;;
15253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15254 $as_echo "$ac_try_echo") >&5
15255 (eval "$ac_link") 2>conftest.er1
15257 grep -v '^ *+' conftest.er1 >conftest.err
15258 rm -rf conftest.er1
15259 cat conftest.err >&5
15260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } && {
15262 test -z "$ac_c_werror_flag" ||
15263 test ! -s conftest.err
15264 } && test -s conftest$ac_exeext && {
15265 test "$cross_compiling" = yes ||
15266 $as_test_x conftest$ac_exeext
15268 ac_cv_lib_c_crypt=yes
15270 $as_echo "$as_me: failed program was:" >&5
15271 sed 's/^/| /' conftest.$ac_ext >&5
15273 ac_cv_lib_c_crypt=no
15276 rm -rf conftest.dSYM
15277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15278 conftest$ac_exeext conftest.$ac_ext
15279 LIBS=$ac_check_lib_save_LIBS
15281 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
15282 $as_echo "$ac_cv_lib_c_crypt" >&6; }
15283 if test "x$ac_cv_lib_c_crypt" = x""yes; then
15287 if test "$have_crypt" = no ; then
15288 { $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
15289 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
15290 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
15291 $as_echo_n "(cached) " >&6
15293 ac_check_lib_save_LIBS=$LIBS
15294 LIBS="-lcrypt $LIBS"
15295 cat >conftest.$ac_ext <<_ACEOF
15298 cat confdefs.h >>conftest.$ac_ext
15299 cat >>conftest.$ac_ext <<_ACEOF
15300 /* end confdefs.h. */
15302 /* Override any GCC internal prototype to avoid an error.
15303 Use char because int might match the return type of a GCC
15304 builtin and then its argument prototype would still apply. */
15317 rm -rf conftest.$ac_objext conftest$ac_exeext
15318 if { (ac_try="$ac_link"
15319 case "(($ac_try" in
15320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321 *) ac_try_echo=$ac_try;;
15323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15324 $as_echo "$ac_try_echo") >&5
15325 (eval "$ac_link") 2>conftest.er1
15327 grep -v '^ *+' conftest.er1 >conftest.err
15328 rm -rf conftest.er1
15329 cat conftest.err >&5
15330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); } && {
15332 test -z "$ac_c_werror_flag" ||
15333 test ! -s conftest.err
15334 } && test -s conftest$ac_exeext && {
15335 test "$cross_compiling" = yes ||
15336 $as_test_x conftest$ac_exeext
15338 ac_cv_lib_crypt_crypt=yes
15340 $as_echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.$ac_ext >&5
15343 ac_cv_lib_crypt_crypt=no
15346 rm -rf conftest.dSYM
15347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15348 conftest$ac_exeext conftest.$ac_ext
15349 LIBS=$ac_check_lib_save_LIBS
15351 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
15352 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
15353 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then
15354 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
15361 # Most of the above shadow mechanisms will have set need_setuid to yes,
15362 # if they were found. But, on some systems, we need setuid even when
15363 # using plain old vanilla passwords.
15365 if test "$enable_locking" = yes ; then
15367 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
15374 if test "$have_shadow_adjunct" = yes ; then
15375 cat >>confdefs.h <<\_ACEOF
15376 #define HAVE_ADJUNCT_PASSWD 1
15379 elif test "$have_shadow_enhanced" = yes ; then
15380 cat >>confdefs.h <<\_ACEOF
15381 #define HAVE_ENHANCED_PASSWD 1
15384 elif test "$have_shadow_hpux" = yes ; then
15385 cat >>confdefs.h <<\_ACEOF
15386 #define HAVE_HPUX_PASSWD 1
15389 elif test "$have_shadow" = yes ; then
15390 cat >>confdefs.h <<\_ACEOF
15391 #define HAVE_SHADOW_PASSWD 1
15397 ###############################################################################
15399 # Check for external password helper
15400 # On SuSE, instead of having xscreensaver be a setuid program, they
15401 # fork an external program that takes the password on stdin, and
15402 # returns true if that password is a valid one. Then only that
15403 # smaller program needs to be setuid.
15405 # (Note that this external program is not a GUI: the GUI is still
15406 # all in xscreensaver itself; the external program just does auth.)
15408 ###############################################################################
15410 have_passwd_helper=no
15411 with_passwd_helper_req=unspecified
15414 # Check whether --with-passwd-helper was given.
15415 if test "${with_passwd_helper+set}" = set; then
15416 withval=$with_passwd_helper; with_passwd_helper="$withval"; with_passwd_helper_req="$withval"
15418 with_passwd_helper=no
15421 # no HANDLE_X_PATH_ARG for this one
15423 if test "$enable_locking" = no ; then
15424 with_passwd_helper_req=no
15425 with_passwd_helper=no
15428 case "$with_passwd_helper" in
15431 cat >>confdefs.h <<_ACEOF
15432 #define PASSWD_HELPER_PROGRAM "$with_passwd_helper"
15435 have_passwd_helper=yes;;
15437 echo "error: --with-passwd-helper needs full pathname of helper (not '$with_passwd_helper')." >&2
15442 ###############################################################################
15444 # Check for a login manager for a "New Login" button on the lock dialog.
15445 # Usually this will be "/usr/bin/gdmflexiserver".
15447 ###############################################################################
15449 with_login_manager_req=unspecified
15450 default_login_manager_1='gdmflexiserver -ls'
15451 default_login_manager_2='kdmctl reserve'
15454 # Check whether --with-login-manager was given.
15455 if test "${with_login_manager+set}" = set; then
15456 withval=$with_login_manager; with_login_manager="$withval"; with_login_manager_req="$withval"
15458 with_login_manager=yes
15461 # no HANDLE_X_PATH_ARG for this one
15463 if test "$enable_locking" = no ; then
15464 with_login_manager_req=no
15465 with_login_manager=no
15468 case "$with_login_manager_req" in
15470 with_login_manager=""
15474 # Try both defaults, use the one that exists.
15476 set dummy $default_login_manager_1 ; login_manager_tmp=$2
15477 unset ac_cv_path_login_manager_tmp # don't cache
15478 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
15479 set dummy $login_manager_tmp; ac_word=$2
15480 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15481 $as_echo_n "checking for $ac_word... " >&6; }
15482 if test "${ac_cv_path_login_manager_tmp+set}" = set; then
15483 $as_echo_n "(cached) " >&6
15485 case $login_manager_tmp in
15487 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
15490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15491 for as_dir in $PATH
15494 test -z "$as_dir" && as_dir=.
15495 for ac_exec_ext in '' $ac_executable_extensions; do
15496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15497 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
15498 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15508 login_manager_tmp=$ac_cv_path_login_manager_tmp
15509 if test -n "$login_manager_tmp"; then
15510 { $as_echo "$as_me:$LINENO: result: $login_manager_tmp" >&5
15511 $as_echo "$login_manager_tmp" >&6; }
15513 { $as_echo "$as_me:$LINENO: result: no" >&5
15514 $as_echo "no" >&6; }
15518 if test ! -z "$login_manager_tmp" ; then
15519 with_login_manager="$default_login_manager_1"
15521 set dummy $default_login_manager_2 ; login_manager_tmp=$2
15522 unset ac_cv_path_login_manager_tmp # don't cache
15523 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
15524 set dummy $login_manager_tmp; ac_word=$2
15525 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15526 $as_echo_n "checking for $ac_word... " >&6; }
15527 if test "${ac_cv_path_login_manager_tmp+set}" = set; then
15528 $as_echo_n "(cached) " >&6
15530 case $login_manager_tmp in
15532 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
15535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15536 for as_dir in $PATH
15539 test -z "$as_dir" && as_dir=.
15540 for ac_exec_ext in '' $ac_executable_extensions; do
15541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15542 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
15543 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15553 login_manager_tmp=$ac_cv_path_login_manager_tmp
15554 if test -n "$login_manager_tmp"; then
15555 { $as_echo "$as_me:$LINENO: result: $login_manager_tmp" >&5
15556 $as_echo "$login_manager_tmp" >&6; }
15558 { $as_echo "$as_me:$LINENO: result: no" >&5
15559 $as_echo "no" >&6; }
15563 if test ! -z "$login_manager_tmp" ; then
15564 with_login_manager="$default_login_manager_2"
15566 with_login_manager=""
15572 # absolute path specified on cmd line
15573 set dummy $with_login_manager_req ; login_manager_tmp=$2
15574 { $as_echo "$as_me:$LINENO: checking for $login_manager_tmp" >&5
15575 $as_echo_n "checking for $login_manager_tmp... " >&6; }
15576 if test -x "$login_manager_tmp" ; then
15577 { $as_echo "$as_me:$LINENO: result: yes" >&5
15578 $as_echo "yes" >&6; }
15580 { $as_echo "$as_me:$LINENO: result: no" >&5
15581 $as_echo "no" >&6; }
15582 with_login_manager=""
15587 # relative path specified on cmd line
15588 set dummy $with_login_manager_req ; login_manager_tmp=$2
15589 unset ac_cv_path_login_manager_tmp # don't cache
15590 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
15591 set dummy $login_manager_tmp; ac_word=$2
15592 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15593 $as_echo_n "checking for $ac_word... " >&6; }
15594 if test "${ac_cv_path_login_manager_tmp+set}" = set; then
15595 $as_echo_n "(cached) " >&6
15597 case $login_manager_tmp in
15599 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
15602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15603 for as_dir in $PATH
15606 test -z "$as_dir" && as_dir=.
15607 for ac_exec_ext in '' $ac_executable_extensions; do
15608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15609 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
15610 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15620 login_manager_tmp=$ac_cv_path_login_manager_tmp
15621 if test -n "$login_manager_tmp"; then
15622 { $as_echo "$as_me:$LINENO: result: $login_manager_tmp" >&5
15623 $as_echo "$login_manager_tmp" >&6; }
15625 { $as_echo "$as_me:$LINENO: result: no" >&5
15626 $as_echo "no" >&6; }
15630 if test -z "$login_manager_tmp" ; then
15631 with_login_manager=""
15633 with_login_manager="$login_manager_tmp"
15637 ac_cv_login_manager_program="$with_login_manager"
15639 NEW_LOGIN_COMMAND_P=''
15640 NEW_LOGIN_COMMAND="$ac_cv_login_manager_program"
15642 { $as_echo "$as_me:$LINENO: checking for login manager" >&5
15643 $as_echo_n "checking for login manager... " >&6; }
15644 if test -z "$NEW_LOGIN_COMMAND" ; then
15645 NEW_LOGIN_COMMAND="$default_login_manager_1"
15646 NEW_LOGIN_COMMAND_P='! '
15647 { $as_echo "$as_me:$LINENO: result: $NEW_LOGIN_COMMAND (disabled)" >&5
15648 $as_echo "$NEW_LOGIN_COMMAND (disabled)" >&6; }
15650 { $as_echo "$as_me:$LINENO: result: $NEW_LOGIN_COMMAND" >&5
15651 $as_echo "$NEW_LOGIN_COMMAND" >&6; }
15655 ###############################################################################
15657 # Check for -lgtk (and Gnome stuff)
15659 ###############################################################################
15662 with_gtk_req=unspecified
15664 # Check whether --with-gtk was given.
15665 if test "${with_gtk+set}" = set; then
15666 withval=$with_gtk; with_gtk="$withval"; with_gtk_req="$withval"
15672 # if --with-gtk=/directory/ was specified, remember that directory so that
15673 # we can also look for the `gtk-config' program in that directory.
15674 case "$with_gtk" in
15676 gtk_dir="$with_gtk"
15684 case "$with_gtk" in
15689 { $as_echo "$as_me:$LINENO: checking for Gtk headers" >&5
15690 $as_echo_n "checking for Gtk headers... " >&6; }
15691 d=$with_gtk/include
15692 if test -d $d; then
15693 X_CFLAGS="-I$d $X_CFLAGS"
15694 { $as_echo "$as_me:$LINENO: result: $d" >&5
15695 $as_echo "$d" >&6; }
15697 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15698 $as_echo "not found ($d: no such directory)" >&6; }
15701 { $as_echo "$as_me:$LINENO: checking for Gtk libs" >&5
15702 $as_echo_n "checking for Gtk libs... " >&6; }
15704 if test -d $d; then
15705 X_LIBS="-L$d $X_LIBS"
15706 { $as_echo "$as_me:$LINENO: result: $d" >&5
15707 $as_echo "$d" >&6; }
15709 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15710 $as_echo "not found ($d: no such directory)" >&6; }
15713 # replace the directory string with "yes".
15715 with_gtk=$with_gtk_req
15720 echo "error: argument to --with-gtk must be \"yes\", \"no\", or a directory."
15721 echo " If it is a directory, then \`DIR/include' will be added to"
15722 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15728 if test "$with_gtk" != yes -a "$with_gtk" != no ; then
15729 echo "error: must be yes or no: --with-gtk=$with_gtk"
15734 parse_gtk_version_string() {
15737 maj=`echo $ac_gtk_version_string | sed -n 's/\..*//p'`
15738 min=`echo $ac_gtk_version_string | sed -n 's/[^.]*\.\([^.]*\).*/\1/p'`
15740 ac_gtk_version=`echo "$maj * 1000 + $min" | bc`
15741 if test -z "$ac_gtk_version"; then
15742 ac_gtk_version=unknown
15743 ac_gtk_version_string=unknown
15747 # Find pkg-config... (need this for both gtk and gdk_pixbuf.)
15748 # if the user specified --with-gtk=/foo/ then look there.
15751 if test ! -z "$gtk_dir"; then
15752 # canonicalize slashes.
15753 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
15754 gtk_path="$foo:$gtk_path"
15757 for ac_prog in pkg-config
15759 # Extract the first word of "$ac_prog", so it can be a program name with args.
15760 set dummy $ac_prog; ac_word=$2
15761 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15762 $as_echo_n "checking for $ac_word... " >&6; }
15763 if test "${ac_cv_path_pkg_config+set}" = set; then
15764 $as_echo_n "(cached) " >&6
15766 case $pkg_config in
15768 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path.
15771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15772 for as_dir in $gtk_path
15775 test -z "$as_dir" && as_dir=.
15776 for ac_exec_ext in '' $ac_executable_extensions; do
15777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15778 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext"
15779 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15789 pkg_config=$ac_cv_path_pkg_config
15790 if test -n "$pkg_config"; then
15791 { $as_echo "$as_me:$LINENO: result: $pkg_config" >&5
15792 $as_echo "$pkg_config" >&6; }
15794 { $as_echo "$as_me:$LINENO: result: no" >&5
15795 $as_echo "no" >&6; }
15799 test -n "$pkg_config" && break
15803 if test -z "$pkg_config" ; then
15804 { $as_echo "$as_me:$LINENO: WARNING: pkg-config not found!" >&5
15805 $as_echo "$as_me: WARNING: pkg-config not found!" >&2;}
15810 # Utility function for running pkg-config-based tests...
15813 pkg_check_version() {
15814 if test "$ok" = yes ; then
15817 { $as_echo "$as_me:$LINENO: checking for $req" >&5
15818 $as_echo_n "checking for $req... " >&6; }
15819 if $pkg_config --exists "$req" ; then
15820 vers=`$pkg_config --modversion "$req"`
15821 if $pkg_config --exists "$req >= $min" ; then
15822 { $as_echo "$as_me:$LINENO: result: $vers" >&5
15823 $as_echo "$vers" >&6; }
15827 { $as_echo "$as_me:$LINENO: result: $vers (wanted >= $min)" >&5
15828 $as_echo "$vers (wanted >= $min)" >&6; }
15833 { $as_echo "$as_me:$LINENO: result: no" >&5
15834 $as_echo "no" >&6; }
15845 if test "$with_gtk" = yes; then
15849 pkg_check_version gtk+-2.0 2.0.1 ; ac_gtk_version_string="$vers"
15850 pkg_check_version gmodule-2.0 2.0.0
15851 pkg_check_version libxml-2.0 2.4.6
15852 pkg_check_version libglade-2.0 1.99.0
15853 pkg_check_version gdk-pixbuf-2.0 2.0.0
15854 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
15857 if test "$have_gtk" = no; then
15858 if test -n "$ac_gtk_version_string" ; then
15859 gtk_halfassed="$ac_gtk_version_string"
15860 gtk_halfassed_lib="$req"
15864 if test "$have_gtk" = yes; then
15865 parse_gtk_version_string
15869 if test "$have_gtk" = yes; then
15870 { $as_echo "$as_me:$LINENO: checking for Gtk includes" >&5
15871 $as_echo_n "checking for Gtk includes... " >&6; }
15872 if test "${ac_cv_gtk_config_cflags+set}" = set; then
15873 $as_echo_n "(cached) " >&6
15875 ac_cv_gtk_config_cflags=`$pkg_config --cflags $pkgs`
15877 { $as_echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
15878 $as_echo "$ac_cv_gtk_config_cflags" >&6; }
15879 { $as_echo "$as_me:$LINENO: checking for Gtk libs" >&5
15880 $as_echo_n "checking for Gtk libs... " >&6; }
15881 if test "${ac_cv_gtk_config_libs+set}" = set; then
15882 $as_echo_n "(cached) " >&6
15884 ac_cv_gtk_config_libs=`$pkg_config --libs $pkgs`
15886 { $as_echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
15887 $as_echo "$ac_cv_gtk_config_libs" >&6; }
15890 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
15891 ac_gtk_config_libs=$ac_cv_gtk_config_libs
15895 if test "$have_gtk" = yes; then
15896 GTK_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
15897 GTK_DATADIR="$GTK_DATADIR/share"
15900 if test "$have_gtk" = yes; then
15901 INCLUDES="$INCLUDES $ac_gtk_config_cflags"
15902 GTK_LIBS="$GTK_LIBS $ac_gtk_config_libs"
15903 cat >>confdefs.h <<\_ACEOF
15907 cat >>confdefs.h <<\_ACEOF
15908 #define HAVE_GTK2 1
15911 cat >>confdefs.h <<\_ACEOF
15920 # Check for the various Gnome help and URL loading programs.
15922 WITH_BROWSER=gnome-open
15923 if test "$have_gtk" = yes; then
15924 for ac_prog in gnome-open
15926 # Extract the first word of "$ac_prog", so it can be a program name with args.
15927 set dummy $ac_prog; ac_word=$2
15928 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15929 $as_echo_n "checking for $ac_word... " >&6; }
15930 if test "${ac_cv_prog_gnome_open_program+set}" = set; then
15931 $as_echo_n "(cached) " >&6
15933 if test -n "$gnome_open_program"; then
15934 ac_cv_prog_gnome_open_program="$gnome_open_program" # Let the user override the test.
15936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15937 for as_dir in $PATH
15940 test -z "$as_dir" && as_dir=.
15941 for ac_exec_ext in '' $ac_executable_extensions; do
15942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15943 ac_cv_prog_gnome_open_program="$ac_prog"
15944 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15953 gnome_open_program=$ac_cv_prog_gnome_open_program
15954 if test -n "$gnome_open_program"; then
15955 { $as_echo "$as_me:$LINENO: result: $gnome_open_program" >&5
15956 $as_echo "$gnome_open_program" >&6; }
15958 { $as_echo "$as_me:$LINENO: result: no" >&5
15959 $as_echo "no" >&6; }
15963 test -n "$gnome_open_program" && break
15966 for ac_prog in gnome-url-show
15968 # Extract the first word of "$ac_prog", so it can be a program name with args.
15969 set dummy $ac_prog; ac_word=$2
15970 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15971 $as_echo_n "checking for $ac_word... " >&6; }
15972 if test "${ac_cv_prog_gnome_url_show_program+set}" = set; then
15973 $as_echo_n "(cached) " >&6
15975 if test -n "$gnome_url_show_program"; then
15976 ac_cv_prog_gnome_url_show_program="$gnome_url_show_program" # Let the user override the test.
15978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15979 for as_dir in $PATH
15982 test -z "$as_dir" && as_dir=.
15983 for ac_exec_ext in '' $ac_executable_extensions; do
15984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15985 ac_cv_prog_gnome_url_show_program="$ac_prog"
15986 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15995 gnome_url_show_program=$ac_cv_prog_gnome_url_show_program
15996 if test -n "$gnome_url_show_program"; then
15997 { $as_echo "$as_me:$LINENO: result: $gnome_url_show_program" >&5
15998 $as_echo "$gnome_url_show_program" >&6; }
16000 { $as_echo "$as_me:$LINENO: result: no" >&5
16001 $as_echo "no" >&6; }
16005 test -n "$gnome_url_show_program" && break
16011 ###############################################################################
16015 ###############################################################################
16018 with_motif_req=unspecified
16020 # Check whether --with-motif was given.
16021 if test "${with_motif+set}" = set; then
16022 withval=$with_motif; with_motif="$withval"; with_motif_req="$withval"
16029 case "$with_motif" in
16034 { $as_echo "$as_me:$LINENO: checking for Motif headers" >&5
16035 $as_echo_n "checking for Motif headers... " >&6; }
16036 d=$with_motif/include
16037 if test -d $d; then
16038 X_CFLAGS="-I$d $X_CFLAGS"
16039 { $as_echo "$as_me:$LINENO: result: $d" >&5
16040 $as_echo "$d" >&6; }
16042 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16043 $as_echo "not found ($d: no such directory)" >&6; }
16046 { $as_echo "$as_me:$LINENO: checking for Motif libs" >&5
16047 $as_echo_n "checking for Motif libs... " >&6; }
16049 if test -d $d; then
16050 X_LIBS="-L$d $X_LIBS"
16051 { $as_echo "$as_me:$LINENO: result: $d" >&5
16052 $as_echo "$d" >&6; }
16054 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16055 $as_echo "not found ($d: no such directory)" >&6; }
16058 # replace the directory string with "yes".
16059 with_motif_req="yes"
16060 with_motif=$with_motif_req
16065 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
16066 echo " If it is a directory, then \`DIR/include' will be added to"
16067 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16073 if test "$with_motif" != yes -a "$with_motif" != no ; then
16074 echo "error: must be yes or no: --with-motif=$with_motif"
16078 if test "$with_motif" = yes; then
16081 ac_save_CPPFLAGS="$CPPFLAGS"
16082 if test \! -z "$includedir" ; then
16083 CPPFLAGS="$CPPFLAGS -I$includedir"
16085 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16086 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16087 { $as_echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
16088 $as_echo_n "checking for Xm/Xm.h... " >&6; }
16089 if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
16090 $as_echo_n "(cached) " >&6
16092 cat >conftest.$ac_ext <<_ACEOF
16095 cat confdefs.h >>conftest.$ac_ext
16096 cat >>conftest.$ac_ext <<_ACEOF
16097 /* end confdefs.h. */
16098 #include <stdlib.h>
16100 #include <X11/Intrinsic.h>
16104 rm -rf conftest.$ac_objext
16105 if { (ac_try="$ac_compile"
16106 case "(($ac_try" in
16107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16108 *) ac_try_echo=$ac_try;;
16110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16111 $as_echo "$ac_try_echo") >&5
16112 (eval "$ac_compile") 2>conftest.er1
16114 grep -v '^ *+' conftest.er1 >conftest.err
16115 rm -rf conftest.er1
16116 cat conftest.err >&5
16117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); } && {
16119 test -z "$ac_c_werror_flag" ||
16120 test ! -s conftest.err
16121 } && test -s conftest.$ac_objext; then
16122 ac_cv_header_Xm_Xm_h=yes
16124 $as_echo "$as_me: failed program was:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16127 ac_cv_header_Xm_Xm_h=no
16130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16132 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
16133 $as_echo "$ac_cv_header_Xm_Xm_h" >&6; }
16134 if test "x$ac_cv_header_Xm_Xm_h" = x""yes; then
16136 cat >>confdefs.h <<\_ACEOF
16137 #define HAVE_MOTIF 1
16140 MOTIF_LIBS="$MOTIF_LIBS -lXm"
16144 CPPFLAGS="$ac_save_CPPFLAGS"
16148 if test "$have_motif" = yes; then
16150 ac_save_CPPFLAGS="$CPPFLAGS"
16151 if test \! -z "$includedir" ; then
16152 CPPFLAGS="$CPPFLAGS -I$includedir"
16154 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16155 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16156 { $as_echo "$as_me:$LINENO: checking for Xm/ComboBox.h" >&5
16157 $as_echo_n "checking for Xm/ComboBox.h... " >&6; }
16158 if test "${ac_cv_header_Xm_ComboBox_h+set}" = set; then
16159 $as_echo_n "(cached) " >&6
16161 cat >conftest.$ac_ext <<_ACEOF
16164 cat confdefs.h >>conftest.$ac_ext
16165 cat >>conftest.$ac_ext <<_ACEOF
16166 /* end confdefs.h. */
16167 #include <stdlib.h>
16169 #include <X11/Intrinsic.h>
16171 #include <Xm/ComboBox.h>
16173 rm -rf conftest.$ac_objext
16174 if { (ac_try="$ac_compile"
16175 case "(($ac_try" in
16176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16177 *) ac_try_echo=$ac_try;;
16179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16180 $as_echo "$ac_try_echo") >&5
16181 (eval "$ac_compile") 2>conftest.er1
16183 grep -v '^ *+' conftest.er1 >conftest.err
16184 rm -rf conftest.er1
16185 cat conftest.err >&5
16186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); } && {
16188 test -z "$ac_c_werror_flag" ||
16189 test ! -s conftest.err
16190 } && test -s conftest.$ac_objext; then
16191 ac_cv_header_Xm_ComboBox_h=yes
16193 $as_echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16196 ac_cv_header_Xm_ComboBox_h=no
16199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16201 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Xm_ComboBox_h" >&5
16202 $as_echo "$ac_cv_header_Xm_ComboBox_h" >&6; }
16203 if test "x$ac_cv_header_Xm_ComboBox_h" = x""yes; then
16204 cat >>confdefs.h <<\_ACEOF
16205 #define HAVE_XMCOMBOBOX 1
16211 CPPFLAGS="$ac_save_CPPFLAGS"
16215 ###############################################################################
16217 # Checking whether Motif is really Lesstif.
16219 ###############################################################################
16222 if test "$have_motif" = yes ; then
16223 { $as_echo "$as_me:$LINENO: checking whether Motif is really LessTif" >&5
16224 $as_echo_n "checking whether Motif is really LessTif... " >&6; }
16225 if test "${ac_cv_have_lesstif+set}" = set; then
16226 $as_echo_n "(cached) " >&6
16229 ac_save_CPPFLAGS="$CPPFLAGS"
16230 if test \! -z "$includedir" ; then
16231 CPPFLAGS="$CPPFLAGS -I$includedir"
16233 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16234 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16235 cat >conftest.$ac_ext <<_ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h. */
16245 long vers = LesstifVersion;
16250 rm -rf conftest.$ac_objext
16251 if { (ac_try="$ac_compile"
16252 case "(($ac_try" in
16253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254 *) ac_try_echo=$ac_try;;
16256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16257 $as_echo "$ac_try_echo") >&5
16258 (eval "$ac_compile") 2>conftest.er1
16260 grep -v '^ *+' conftest.er1 >conftest.err
16261 rm -rf conftest.er1
16262 cat conftest.err >&5
16263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); } && {
16265 test -z "$ac_c_werror_flag" ||
16266 test ! -s conftest.err
16267 } && test -s conftest.$ac_objext; then
16268 ac_cv_have_lesstif=yes
16270 $as_echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16273 ac_cv_have_lesstif=no
16276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16277 CPPFLAGS="$ac_save_CPPFLAGS"
16279 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_lesstif" >&5
16280 $as_echo "$ac_cv_have_lesstif" >&6; }
16281 have_lesstif=$ac_cv_have_lesstif
16285 lesstif_version=unknown
16286 lesstif_version_string=unknown
16288 if test "$have_lesstif" = yes ; then
16290 echo unknown > conftest-lt
16291 { $as_echo "$as_me:$LINENO: checking LessTif version number" >&5
16292 $as_echo_n "checking LessTif version number... " >&6; }
16293 if test "${ac_cv_lesstif_version_string+set}" = set; then
16294 $as_echo_n "(cached) " >&6
16297 ac_save_CPPFLAGS="$CPPFLAGS"
16298 if test \! -z "$includedir" ; then
16299 CPPFLAGS="$CPPFLAGS -I$includedir"
16301 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16302 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16303 if test "$cross_compiling" = yes; then
16304 ac_cv_lesstif_version=unknown
16305 ac_cv_lesstif_version_string=unknown
16307 cat >conftest.$ac_ext <<_ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h. */
16316 FILE *f = fopen("conftest-lt", "w");
16318 fprintf(f, "%d %d.%d\n", LesstifVersion,
16319 LESSTIF_VERSION, LESSTIF_REVISION);
16324 rm -rf conftest$ac_exeext
16325 if { (ac_try="$ac_link"
16326 case "(($ac_try" in
16327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328 *) ac_try_echo=$ac_try;;
16330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16331 $as_echo "$ac_try_echo") >&5
16332 (eval "$ac_link") 2>&5
16334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16336 { (case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16341 $as_echo "$ac_try_echo") >&5
16342 (eval "$ac_try") 2>&5
16344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; }; then
16346 ltv=`cat conftest-lt`
16347 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
16348 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
16350 $as_echo "$as_me: program exited with status $ac_status" >&5
16351 $as_echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16354 ( exit $ac_status )
16355 ac_cv_lesstif_version=unknown
16356 ac_cv_lesstif_version_string=unknown
16358 rm -rf conftest.dSYM
16359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16363 CPPFLAGS="$ac_save_CPPFLAGS"
16365 { $as_echo "$as_me:$LINENO: result: $ac_cv_lesstif_version_string" >&5
16366 $as_echo "$ac_cv_lesstif_version_string" >&6; }
16368 lesstif_version=$ac_cv_lesstif_version
16369 lesstif_version_string=$ac_cv_lesstif_version_string
16374 if test "$have_motif" = yes ; then
16376 echo unknown > conftest-mt
16377 { $as_echo "$as_me:$LINENO: checking Motif version number" >&5
16378 $as_echo_n "checking Motif version number... " >&6; }
16379 if test "${ac_cv_motif_version_string+set}" = set; then
16380 $as_echo_n "(cached) " >&6
16383 ac_save_CPPFLAGS="$CPPFLAGS"
16384 if test \! -z "$includedir" ; then
16385 CPPFLAGS="$CPPFLAGS -I$includedir"
16387 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16388 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16389 if test "$cross_compiling" = yes; then
16390 ac_cv_motif_version=unknown
16391 ac_cv_motif_version_string=unknown
16393 cat >conftest.$ac_ext <<_ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16402 FILE *f = fopen("conftest-mt", "w");
16404 fprintf(f, "%d %d.%d\n", XmVersion,
16405 XmVERSION, XmREVISION);
16410 rm -rf conftest$ac_exeext
16411 if { (ac_try="$ac_link"
16412 case "(($ac_try" in
16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16417 $as_echo "$ac_try_echo") >&5
16418 (eval "$ac_link") 2>&5
16420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16422 { (case "(($ac_try" in
16423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424 *) ac_try_echo=$ac_try;;
16426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16427 $as_echo "$ac_try_echo") >&5
16428 (eval "$ac_try") 2>&5
16430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; }; then
16432 mtv=`cat conftest-mt`
16433 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
16434 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
16436 $as_echo "$as_me: program exited with status $ac_status" >&5
16437 $as_echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16440 ( exit $ac_status )
16441 ac_cv_motif_version=unknown
16442 ac_cv_motif_version_string=unknown
16444 rm -rf conftest.dSYM
16445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16449 CPPFLAGS="$ac_save_CPPFLAGS"
16451 { $as_echo "$as_me:$LINENO: result: $ac_cv_motif_version_string" >&5
16452 $as_echo "$ac_cv_motif_version_string" >&6; }
16454 motif_version=$ac_cv_motif_version
16455 motif_version_string=$ac_cv_motif_version_string
16460 ###############################################################################
16462 # Checking whether Motif requires -lXpm.
16464 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
16465 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
16466 # of the library whether to build the XPM code into libXm, or whether
16467 # to rely on an external libXm. So the only way to tell whether XPM is
16468 # a link-time requirement is to examine libXm.a, which is very
16469 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
16470 # always link against XPM if the XPM lib exists (and this will be a
16471 # no-op if libXm happens to already have the XPM code in it.)
16473 ###############################################################################
16475 motif_requires_xpm=no
16476 if test "$have_motif" = yes ; then
16477 { $as_echo "$as_me:$LINENO: checking whether Motif requires XPM" >&5
16478 $as_echo_n "checking whether Motif requires XPM... " >&6; }
16479 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
16481 motif_requires_xpm=yes
16482 { $as_echo "$as_me:$LINENO: result: maybe" >&5
16483 $as_echo "maybe" >&6; }
16485 { $as_echo "$as_me:$LINENO: result: no" >&5
16486 $as_echo "no" >&6; }
16491 ###############################################################################
16493 # Checking whether Motif requires -lXp.
16495 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
16496 # Extension". Why this extension isn't in -lXext with all the others,
16499 ###############################################################################
16502 if test "$have_motif" = yes ; then
16505 ac_save_CPPFLAGS="$CPPFLAGS"
16506 ac_save_LDFLAGS="$LDFLAGS"
16507 # ac_save_LIBS="$LIBS"
16509 if test \! -z "$includedir" ; then
16510 CPPFLAGS="$CPPFLAGS -I$includedir"
16512 # note: $X_CFLAGS includes $x_includes
16513 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16515 if test \! -z "$libdir" ; then
16516 LDFLAGS="$LDFLAGS -L$libdir"
16518 # note: $X_LIBS includes $x_libraries
16519 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16521 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16522 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
16523 { $as_echo "$as_me:$LINENO: checking for XpQueryExtension in -lXp" >&5
16524 $as_echo_n "checking for XpQueryExtension in -lXp... " >&6; }
16525 if test "${ac_cv_lib_Xp_XpQueryExtension+set}" = set; then
16526 $as_echo_n "(cached) " >&6
16528 ac_check_lib_save_LIBS=$LIBS
16529 LIBS="-lXp -lX11 -lXext -lm $LIBS"
16530 cat >conftest.$ac_ext <<_ACEOF
16533 cat confdefs.h >>conftest.$ac_ext
16534 cat >>conftest.$ac_ext <<_ACEOF
16535 /* end confdefs.h. */
16537 /* Override any GCC internal prototype to avoid an error.
16538 Use char because int might match the return type of a GCC
16539 builtin and then its argument prototype would still apply. */
16543 char XpQueryExtension ();
16547 return XpQueryExtension ();
16552 rm -rf conftest.$ac_objext conftest$ac_exeext
16553 if { (ac_try="$ac_link"
16554 case "(($ac_try" in
16555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556 *) ac_try_echo=$ac_try;;
16558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16559 $as_echo "$ac_try_echo") >&5
16560 (eval "$ac_link") 2>conftest.er1
16562 grep -v '^ *+' conftest.er1 >conftest.err
16563 rm -rf conftest.er1
16564 cat conftest.err >&5
16565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } && {
16567 test -z "$ac_c_werror_flag" ||
16568 test ! -s conftest.err
16569 } && test -s conftest$ac_exeext && {
16570 test "$cross_compiling" = yes ||
16571 $as_test_x conftest$ac_exeext
16573 ac_cv_lib_Xp_XpQueryExtension=yes
16575 $as_echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16578 ac_cv_lib_Xp_XpQueryExtension=no
16581 rm -rf conftest.dSYM
16582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16583 conftest$ac_exeext conftest.$ac_ext
16584 LIBS=$ac_check_lib_save_LIBS
16586 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
16587 $as_echo "$ac_cv_lib_Xp_XpQueryExtension" >&6; }
16588 if test "x$ac_cv_lib_Xp_XpQueryExtension" = x""yes; then
16589 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
16594 CPPFLAGS="$ac_save_CPPFLAGS"
16595 LDFLAGS="$ac_save_LDFLAGS"
16596 # LIBS="$ac_save_LIBS"
16601 ###############################################################################
16603 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
16605 ###############################################################################
16608 if test "$have_motif" = yes ; then
16610 ac_save_CPPFLAGS="$CPPFLAGS"
16611 ac_save_LDFLAGS="$LDFLAGS"
16612 # ac_save_LIBS="$LIBS"
16614 if test \! -z "$includedir" ; then
16615 CPPFLAGS="$CPPFLAGS -I$includedir"
16617 # note: $X_CFLAGS includes $x_includes
16618 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16620 if test \! -z "$libdir" ; then
16621 LDFLAGS="$LDFLAGS -L$libdir"
16623 # note: $X_LIBS includes $x_libraries
16624 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16626 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16627 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
16628 { $as_echo "$as_me:$LINENO: checking for _Xsetlocale in -lXintl" >&5
16629 $as_echo_n "checking for _Xsetlocale in -lXintl... " >&6; }
16630 if test "${ac_cv_lib_Xintl__Xsetlocale+set}" = set; then
16631 $as_echo_n "(cached) " >&6
16633 ac_check_lib_save_LIBS=$LIBS
16634 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
16635 cat >conftest.$ac_ext <<_ACEOF
16638 cat confdefs.h >>conftest.$ac_ext
16639 cat >>conftest.$ac_ext <<_ACEOF
16640 /* end confdefs.h. */
16642 /* Override any GCC internal prototype to avoid an error.
16643 Use char because int might match the return type of a GCC
16644 builtin and then its argument prototype would still apply. */
16648 char _Xsetlocale ();
16652 return _Xsetlocale ();
16657 rm -rf conftest.$ac_objext conftest$ac_exeext
16658 if { (ac_try="$ac_link"
16659 case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16664 $as_echo "$ac_try_echo") >&5
16665 (eval "$ac_link") 2>conftest.er1
16667 grep -v '^ *+' conftest.er1 >conftest.err
16668 rm -rf conftest.er1
16669 cat conftest.err >&5
16670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } && {
16672 test -z "$ac_c_werror_flag" ||
16673 test ! -s conftest.err
16674 } && test -s conftest$ac_exeext && {
16675 test "$cross_compiling" = yes ||
16676 $as_test_x conftest$ac_exeext
16678 ac_cv_lib_Xintl__Xsetlocale=yes
16680 $as_echo "$as_me: failed program was:" >&5
16681 sed 's/^/| /' conftest.$ac_ext >&5
16683 ac_cv_lib_Xintl__Xsetlocale=no
16686 rm -rf conftest.dSYM
16687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16688 conftest$ac_exeext conftest.$ac_ext
16689 LIBS=$ac_check_lib_save_LIBS
16691 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
16692 $as_echo "$ac_cv_lib_Xintl__Xsetlocale" >&6; }
16693 if test "x$ac_cv_lib_Xintl__Xsetlocale" = x""yes; then
16699 CPPFLAGS="$ac_save_CPPFLAGS"
16700 LDFLAGS="$ac_save_LDFLAGS"
16701 # LIBS="$ac_save_LIBS"
16703 if test "$have_xintl" = yes; then
16704 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
16709 ###############################################################################
16711 # Check for -lGL or -lMesaGL.
16713 ###############################################################################
16717 with_gl_req=unspecified
16720 # Check whether --with-gl was given.
16721 if test "${with_gl+set}" = set; then
16722 withval=$with_gl; with_gl="$withval"; with_gl_req="$withval"
16734 { $as_echo "$as_me:$LINENO: checking for GL headers" >&5
16735 $as_echo_n "checking for GL headers... " >&6; }
16737 if test -d $d; then
16738 X_CFLAGS="-I$d $X_CFLAGS"
16739 { $as_echo "$as_me:$LINENO: result: $d" >&5
16740 $as_echo "$d" >&6; }
16742 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16743 $as_echo "not found ($d: no such directory)" >&6; }
16746 { $as_echo "$as_me:$LINENO: checking for GL libs" >&5
16747 $as_echo_n "checking for GL libs... " >&6; }
16749 if test -d $d; then
16750 X_LIBS="-L$d $X_LIBS"
16751 { $as_echo "$as_me:$LINENO: result: $d" >&5
16752 $as_echo "$d" >&6; }
16754 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16755 $as_echo "not found ($d: no such directory)" >&6; }
16758 # replace the directory string with "yes".
16760 with_gl=$with_gl_req
16765 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
16766 echo " If it is a directory, then \`DIR/include' will be added to"
16767 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16773 ac_mesagl_version=unknown
16774 ac_mesagl_version_string=unknown
16776 if test "$with_gl" = yes; then
16778 ac_save_CPPFLAGS="$CPPFLAGS"
16779 if test \! -z "$includedir" ; then
16780 CPPFLAGS="$CPPFLAGS -I$includedir"
16782 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16783 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16784 if test "${ac_cv_header_GL_gl_h+set}" = set; then
16785 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
16786 $as_echo_n "checking for GL/gl.h... " >&6; }
16787 if test "${ac_cv_header_GL_gl_h+set}" = set; then
16788 $as_echo_n "(cached) " >&6
16790 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
16791 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
16793 # Is the header compilable?
16794 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
16795 $as_echo_n "checking GL/gl.h usability... " >&6; }
16796 cat >conftest.$ac_ext <<_ACEOF
16799 cat confdefs.h >>conftest.$ac_ext
16800 cat >>conftest.$ac_ext <<_ACEOF
16801 /* end confdefs.h. */
16802 $ac_includes_default
16805 rm -rf conftest.$ac_objext
16806 if { (ac_try="$ac_compile"
16807 case "(($ac_try" in
16808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809 *) ac_try_echo=$ac_try;;
16811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16812 $as_echo "$ac_try_echo") >&5
16813 (eval "$ac_compile") 2>conftest.er1
16815 grep -v '^ *+' conftest.er1 >conftest.err
16816 rm -rf conftest.er1
16817 cat conftest.err >&5
16818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } && {
16820 test -z "$ac_c_werror_flag" ||
16821 test ! -s conftest.err
16822 } && test -s conftest.$ac_objext; then
16823 ac_header_compiler=yes
16825 $as_echo "$as_me: failed program was:" >&5
16826 sed 's/^/| /' conftest.$ac_ext >&5
16828 ac_header_compiler=no
16831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16832 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16833 $as_echo "$ac_header_compiler" >&6; }
16835 # Is the header present?
16836 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
16837 $as_echo_n "checking GL/gl.h presence... " >&6; }
16838 cat >conftest.$ac_ext <<_ACEOF
16841 cat confdefs.h >>conftest.$ac_ext
16842 cat >>conftest.$ac_ext <<_ACEOF
16843 /* end confdefs.h. */
16846 if { (ac_try="$ac_cpp conftest.$ac_ext"
16847 case "(($ac_try" in
16848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849 *) ac_try_echo=$ac_try;;
16851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16852 $as_echo "$ac_try_echo") >&5
16853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16855 grep -v '^ *+' conftest.er1 >conftest.err
16856 rm -rf conftest.er1
16857 cat conftest.err >&5
16858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); } >/dev/null && {
16860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16861 test ! -s conftest.err
16863 ac_header_preproc=yes
16865 $as_echo "$as_me: failed program was:" >&5
16866 sed 's/^/| /' conftest.$ac_ext >&5
16868 ac_header_preproc=no
16871 rm -rf conftest.err conftest.$ac_ext
16872 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16873 $as_echo "$ac_header_preproc" >&6; }
16875 # So? What about this header?
16876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16878 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16879 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16880 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
16881 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
16882 ac_header_preproc=yes
16885 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
16886 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
16887 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
16888 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
16889 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
16890 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
16891 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
16892 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16893 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
16894 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
16895 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
16896 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
16900 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
16901 $as_echo_n "checking for GL/gl.h... " >&6; }
16902 if test "${ac_cv_header_GL_gl_h+set}" = set; then
16903 $as_echo_n "(cached) " >&6
16905 ac_cv_header_GL_gl_h=$ac_header_preproc
16907 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
16908 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
16911 if test "x$ac_cv_header_GL_gl_h" = x""yes; then
16918 CPPFLAGS="$ac_save_CPPFLAGS"
16919 if test "$have_gl" = yes ; then
16921 ac_save_CPPFLAGS="$CPPFLAGS"
16922 if test \! -z "$includedir" ; then
16923 CPPFLAGS="$CPPFLAGS -I$includedir"
16925 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16926 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
16927 { $as_echo "$as_me:$LINENO: checking for GL/glx.h" >&5
16928 $as_echo_n "checking for GL/glx.h... " >&6; }
16929 if test "${ac_cv_header_GL_glx_h+set}" = set; then
16930 $as_echo_n "(cached) " >&6
16932 cat >conftest.$ac_ext <<_ACEOF
16935 cat confdefs.h >>conftest.$ac_ext
16936 cat >>conftest.$ac_ext <<_ACEOF
16937 /* end confdefs.h. */
16940 #include <GL/glx.h>
16942 rm -rf conftest.$ac_objext
16943 if { (ac_try="$ac_compile"
16944 case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16949 $as_echo "$ac_try_echo") >&5
16950 (eval "$ac_compile") 2>conftest.er1
16952 grep -v '^ *+' conftest.er1 >conftest.err
16953 rm -rf conftest.er1
16954 cat conftest.err >&5
16955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); } && {
16957 test -z "$ac_c_werror_flag" ||
16958 test ! -s conftest.err
16959 } && test -s conftest.$ac_objext; then
16960 ac_cv_header_GL_glx_h=yes
16962 $as_echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 ac_cv_header_GL_glx_h=no
16968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16970 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5
16971 $as_echo "$ac_cv_header_GL_glx_h" >&6; }
16972 if test "x$ac_cv_header_GL_glx_h" = x""yes; then
16979 CPPFLAGS="$ac_save_CPPFLAGS"
16982 # If we have the headers, try and figure out which vendor it's from.
16984 if test "$have_gl" = yes ; then
16986 # We need to know whether it's MesaGL so that we know which libraries
16989 { $as_echo "$as_me:$LINENO: checking whether GL is really MesaGL" >&5
16990 $as_echo_n "checking whether GL is really MesaGL... " >&6; }
16991 if test "${ac_cv_have_mesa_gl+set}" = set; then
16992 $as_echo_n "(cached) " >&6
16994 ac_cv_have_mesa_gl=no
16995 if test "$ac_macosx" = no; then
16996 # WTF! MacOS 10.5.0 ships the Mesa GL headers!
16997 # It's not really Mesa, is it?
16999 ac_save_CPPFLAGS="$CPPFLAGS"
17000 if test \! -z "$includedir" ; then
17001 CPPFLAGS="$CPPFLAGS -I$includedir"
17003 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17004 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17005 cat >conftest.$ac_ext <<_ACEOF
17008 cat confdefs.h >>conftest.$ac_ext
17009 cat >>conftest.$ac_ext <<_ACEOF
17010 /* end confdefs.h. */
17011 #include <GL/glx.h>
17014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17015 $EGREP "Mesa|MESA" >/dev/null 2>&1; then
17016 ac_cv_have_mesa_gl=yes
17020 CPPFLAGS="$ac_save_CPPFLAGS"
17023 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_mesa_gl" >&5
17024 $as_echo "$ac_cv_have_mesa_gl" >&6; }
17025 ac_have_mesa_gl=$ac_cv_have_mesa_gl
17030 if test "$ac_macosx" = yes; then
17032 # Without these, every link against libGL gets a bunch of useless
17035 osx_crud="-bind_at_load -multiply_defined suppress"
17036 { $as_echo "$as_me:$LINENO: result: adding \"$osx_crud\" to GL_LIBS" >&5
17037 $as_echo "adding \"$osx_crud\" to GL_LIBS" >&6; }
17038 GL_LIBS="$GL_LIBS $osx_crud"
17041 # New lossage in 10.5.0: without this, we get:
17042 # ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib
17044 osx_crud="/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
17045 osx_crud="-Wl,-dylib_file,${osx_crud}:${osx_crud}"
17047 { $as_echo "$as_me:$LINENO: result: adding \"$osx_crud\" to GL_LIBS" >&5
17048 $as_echo "adding \"$osx_crud\" to GL_LIBS" >&6; }
17049 GL_LIBS="$GL_LIBS $osx_crud"
17052 # New lossage in 10.6.8: we can't allow -L/opt/local/lib to be in the
17053 # link line, or at runtime XQueryExtension gets a segv due to some kind
17054 # of library version skew. Libs must come from /usr/X11/lib even if
17055 # $prefix and/or $exec_prefix are set to /opt/local/.
17057 { $as_echo "$as_me:$LINENO: result: omitting \"$libdir\" from LDFLAGS" >&5
17058 $as_echo "omitting \"$libdir\" from LDFLAGS" >&6; }
17064 # Some versions of MesaGL are compiled to require -lpthread.
17065 # So if the Mesa headers exist, and -lpthread exists, then always
17066 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
17068 if test "$ac_have_mesa_gl" = yes; then
17069 { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17070 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17071 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17072 $as_echo_n "(cached) " >&6
17074 ac_check_lib_save_LIBS=$LIBS
17075 LIBS="-lpthread $LIBS"
17076 cat >conftest.$ac_ext <<_ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17083 /* Override any GCC internal prototype to avoid an error.
17084 Use char because int might match the return type of a GCC
17085 builtin and then its argument prototype would still apply. */
17089 char pthread_create ();
17093 return pthread_create ();
17098 rm -rf conftest.$ac_objext conftest$ac_exeext
17099 if { (ac_try="$ac_link"
17100 case "(($ac_try" in
17101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102 *) ac_try_echo=$ac_try;;
17104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17105 $as_echo "$ac_try_echo") >&5
17106 (eval "$ac_link") 2>conftest.er1
17108 grep -v '^ *+' conftest.er1 >conftest.err
17109 rm -rf conftest.er1
17110 cat conftest.err >&5
17111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } && {
17113 test -z "$ac_c_werror_flag" ||
17114 test ! -s conftest.err
17115 } && test -s conftest$ac_exeext && {
17116 test "$cross_compiling" = yes ||
17117 $as_test_x conftest$ac_exeext
17119 ac_cv_lib_pthread_pthread_create=yes
17121 $as_echo "$as_me: failed program was:" >&5
17122 sed 's/^/| /' conftest.$ac_ext >&5
17124 ac_cv_lib_pthread_pthread_create=no
17127 rm -rf conftest.dSYM
17128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17129 conftest$ac_exeext conftest.$ac_ext
17130 LIBS=$ac_check_lib_save_LIBS
17132 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17133 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17134 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
17135 GL_LIBS="-lpthread"
17141 # If we have Mesa headers, check to see if we can link against -lMesaGL.
17142 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
17143 # Else, warn that GL is busted. (We have the headers, but no libs.)
17146 if test "$ac_have_mesa_gl" = yes ; then
17148 ac_save_CPPFLAGS="$CPPFLAGS"
17149 ac_save_LDFLAGS="$LDFLAGS"
17150 # ac_save_LIBS="$LIBS"
17152 if test \! -z "$includedir" ; then
17153 CPPFLAGS="$CPPFLAGS -I$includedir"
17155 # note: $X_CFLAGS includes $x_includes
17156 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17158 if test \! -z "$libdir" ; then
17159 LDFLAGS="$LDFLAGS -L$libdir"
17161 # note: $X_LIBS includes $x_libraries
17162 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17164 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17165 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17166 { $as_echo "$as_me:$LINENO: checking for glXCreateContext in -lMesaGL" >&5
17167 $as_echo_n "checking for glXCreateContext in -lMesaGL... " >&6; }
17168 if test "${ac_cv_lib_MesaGL_glXCreateContext+set}" = set; then
17169 $as_echo_n "(cached) " >&6
17171 ac_check_lib_save_LIBS=$LIBS
17172 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
17173 cat >conftest.$ac_ext <<_ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h. */
17180 /* Override any GCC internal prototype to avoid an error.
17181 Use char because int might match the return type of a GCC
17182 builtin and then its argument prototype would still apply. */
17186 char glXCreateContext ();
17190 return glXCreateContext ();
17195 rm -rf conftest.$ac_objext conftest$ac_exeext
17196 if { (ac_try="$ac_link"
17197 case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17202 $as_echo "$ac_try_echo") >&5
17203 (eval "$ac_link") 2>conftest.er1
17205 grep -v '^ *+' conftest.er1 >conftest.err
17206 rm -rf conftest.er1
17207 cat conftest.err >&5
17208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } && {
17210 test -z "$ac_c_werror_flag" ||
17211 test ! -s conftest.err
17212 } && test -s conftest$ac_exeext && {
17213 test "$cross_compiling" = yes ||
17214 $as_test_x conftest$ac_exeext
17216 ac_cv_lib_MesaGL_glXCreateContext=yes
17218 $as_echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17221 ac_cv_lib_MesaGL_glXCreateContext=no
17224 rm -rf conftest.dSYM
17225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17226 conftest$ac_exeext conftest.$ac_ext
17227 LIBS=$ac_check_lib_save_LIBS
17229 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
17230 $as_echo "$ac_cv_lib_MesaGL_glXCreateContext" >&6; }
17231 if test "x$ac_cv_lib_MesaGL_glXCreateContext" = x""yes; then
17233 GL_LIBS="-lMesaGL -lMesaGLU $VIDMODE_LIBS $GL_LIBS"
17236 CPPFLAGS="$ac_save_CPPFLAGS"
17237 LDFLAGS="$ac_save_LDFLAGS"
17238 # LIBS="$ac_save_LIBS"
17242 if test "$gl_lib_1" = "" ; then
17244 ac_save_CPPFLAGS="$CPPFLAGS"
17245 ac_save_LDFLAGS="$LDFLAGS"
17246 # ac_save_LIBS="$LIBS"
17248 if test \! -z "$includedir" ; then
17249 CPPFLAGS="$CPPFLAGS -I$includedir"
17251 # note: $X_CFLAGS includes $x_includes
17252 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17254 if test \! -z "$libdir" ; then
17255 LDFLAGS="$LDFLAGS -L$libdir"
17257 # note: $X_LIBS includes $x_libraries
17258 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17260 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17261 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17262 { $as_echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
17263 $as_echo_n "checking for glXCreateContext in -lGL... " >&6; }
17264 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
17265 $as_echo_n "(cached) " >&6
17267 ac_check_lib_save_LIBS=$LIBS
17268 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
17269 cat >conftest.$ac_ext <<_ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17276 /* Override any GCC internal prototype to avoid an error.
17277 Use char because int might match the return type of a GCC
17278 builtin and then its argument prototype would still apply. */
17282 char glXCreateContext ();
17286 return glXCreateContext ();
17291 rm -rf conftest.$ac_objext conftest$ac_exeext
17292 if { (ac_try="$ac_link"
17293 case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17298 $as_echo "$ac_try_echo") >&5
17299 (eval "$ac_link") 2>conftest.er1
17301 grep -v '^ *+' conftest.er1 >conftest.err
17302 rm -rf conftest.er1
17303 cat conftest.err >&5
17304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } && {
17306 test -z "$ac_c_werror_flag" ||
17307 test ! -s conftest.err
17308 } && test -s conftest$ac_exeext && {
17309 test "$cross_compiling" = yes ||
17310 $as_test_x conftest$ac_exeext
17312 ac_cv_lib_GL_glXCreateContext=yes
17314 $as_echo "$as_me: failed program was:" >&5
17315 sed 's/^/| /' conftest.$ac_ext >&5
17317 ac_cv_lib_GL_glXCreateContext=no
17320 rm -rf conftest.dSYM
17321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17322 conftest$ac_exeext conftest.$ac_ext
17323 LIBS=$ac_check_lib_save_LIBS
17325 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
17326 $as_echo "$ac_cv_lib_GL_glXCreateContext" >&6; }
17327 if test "x$ac_cv_lib_GL_glXCreateContext" = x""yes; then
17329 GL_LIBS="-lGL -lGLU $VIDMODE_LIBS $GL_LIBS"
17332 CPPFLAGS="$ac_save_CPPFLAGS"
17333 LDFLAGS="$ac_save_LDFLAGS"
17334 # LIBS="$ac_save_LIBS"
17338 if test "$gl_lib_1" = "" ; then
17339 # we have headers, but no libs -- bail.
17344 # linking works -- we can build the GL hacks.
17345 cat >>confdefs.h <<\_ACEOF
17349 if test "$ac_have_mesa_gl" = yes ; then
17350 cat >>confdefs.h <<\_ACEOF
17351 #define HAVE_MESA_GL 1
17359 # Now that we know we have GL headers and libs, do some more GL testing.
17362 if test "$have_gl" = yes ; then
17363 # If it's MesaGL, we'd like to issue a warning if the version number
17364 # is less than or equal to 2.6, because that version had a security bug.
17366 if test "$ac_have_mesa_gl" = yes; then
17368 { $as_echo "$as_me:$LINENO: checking MesaGL version number" >&5
17369 $as_echo_n "checking MesaGL version number... " >&6; }
17370 if test "${ac_cv_mesagl_version_string+set}" = set; then
17371 $as_echo_n "(cached) " >&6
17373 cat > conftest.$ac_ext <<EOF
17374 #line 17378 "configure"
17375 #include "confdefs.h"
17377 #ifndef MESA_MAJOR_VERSION
17378 # include <GL/xmesa.h>
17379 # ifdef XMESA_MAJOR_VERSION
17380 /* Around Mesa 3.2, they took out the Mesa version number, so instead,
17381 we have to check the XMesa version number (the number of the X protocol
17382 support, which seems to be the same as the Mesa version number.)
17384 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
17385 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
17387 /* Oh great. Some time after 3.4, they took out the xmesa.h header file,
17388 so we have no way of telling what version of Mesa this is at all.
17389 So, we'll guess that the osmesa version (the "offscreen protocol")
17390 is less than or equal to the real mesa version number. Except that
17391 if OSmesa is 3.3, assume at least Mesa 3.4, since OSmesa was 3.3 in
17392 Mesa 3.4. And Mesa 3.3 had xmesa.h. What a complete load of shit!
17394 # include <GL/osmesa.h>
17395 # define MESA_MAJOR_VERSION OSMESA_MAJOR_VERSION
17396 # define MESA_MINOR_VERSION OSMESA_MINOR_VERSION or newer, probably?
17397 # if OSMESA_MAJOR_VERSION == 3 && OSMESA_MINOR_VERSION == 3
17398 # undef MESA_MINOR_VERSION
17399 # define MESA_MINOR_VERSION 4 or newer, probably?
17403 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
17406 ac_save_CPPFLAGS="$CPPFLAGS"
17407 if test \! -z "$includedir" ; then
17408 CPPFLAGS="$CPPFLAGS -I$includedir"
17410 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17412 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | grep configure:`
17416 mglv=`echo "$mglv" | sed -n \
17417 's/^configure: *\([0-9][0-9]*\) *\([0-9].*\)$/\1.\2/p'`
17420 rm -rf conftest.$ac_ext
17422 CPPFLAGS="$ac_save_CPPFLAGS"
17424 if test "$mglv" = ""; then
17425 ac_mesagl_version=unknown
17426 ac_mesagl_version_string=unknown
17428 ac_mesagl_version_string="$mglv"
17431 maj=`echo "$mglv" | sed -n 's/^\([0-9][0-9]*\)\..*$/\1/p'`
17432 min=`echo "$mglv" | sed -n 's/^.*\.\([0-9][0-9]*\).*$/\1/p'`
17434 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
17435 if test -z "$ac_mesagl_version"; then
17436 ac_mesagl_version=unknown
17437 ac_mesagl_version_string=unknown
17440 ac_cv_mesagl_version=$ac_mesagl_version
17441 ac_cv_mesagl_version_string=$ac_mesagl_version_string
17444 { $as_echo "$as_me:$LINENO: result: $ac_cv_mesagl_version_string" >&5
17445 $as_echo "$ac_cv_mesagl_version_string" >&6; }
17446 ac_mesagl_version=$ac_cv_mesagl_version
17447 ac_mesagl_version_string=$ac_cv_mesagl_version_string
17451 # Check for OpenGL 1.1 features.
17454 ac_save_CPPFLAGS="$CPPFLAGS"
17455 ac_save_LDFLAGS="$LDFLAGS"
17456 # ac_save_LIBS="$LIBS"
17458 if test \! -z "$includedir" ; then
17459 CPPFLAGS="$CPPFLAGS -I$includedir"
17461 # note: $X_CFLAGS includes $x_includes
17462 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17464 if test \! -z "$libdir" ; then
17465 LDFLAGS="$LDFLAGS -L$libdir"
17467 # note: $X_LIBS includes $x_libraries
17468 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17470 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17471 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17472 as_ac_Lib=`$as_echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
17473 { $as_echo "$as_me:$LINENO: checking for glBindTexture in -l$gl_lib_1" >&5
17474 $as_echo_n "checking for glBindTexture in -l$gl_lib_1... " >&6; }
17475 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
17476 $as_echo_n "(cached) " >&6
17478 ac_check_lib_save_LIBS=$LIBS
17479 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
17480 cat >conftest.$ac_ext <<_ACEOF
17483 cat confdefs.h >>conftest.$ac_ext
17484 cat >>conftest.$ac_ext <<_ACEOF
17485 /* end confdefs.h. */
17487 /* Override any GCC internal prototype to avoid an error.
17488 Use char because int might match the return type of a GCC
17489 builtin and then its argument prototype would still apply. */
17493 char glBindTexture ();
17497 return glBindTexture ();
17502 rm -rf conftest.$ac_objext conftest$ac_exeext
17503 if { (ac_try="$ac_link"
17504 case "(($ac_try" in
17505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17506 *) ac_try_echo=$ac_try;;
17508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17509 $as_echo "$ac_try_echo") >&5
17510 (eval "$ac_link") 2>conftest.er1
17512 grep -v '^ *+' conftest.er1 >conftest.err
17513 rm -rf conftest.er1
17514 cat conftest.err >&5
17515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } && {
17517 test -z "$ac_c_werror_flag" ||
17518 test ! -s conftest.err
17519 } && test -s conftest$ac_exeext && {
17520 test "$cross_compiling" = yes ||
17521 $as_test_x conftest$ac_exeext
17523 eval "$as_ac_Lib=yes"
17525 $as_echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17528 eval "$as_ac_Lib=no"
17531 rm -rf conftest.dSYM
17532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17533 conftest$ac_exeext conftest.$ac_ext
17534 LIBS=$ac_check_lib_save_LIBS
17536 ac_res=`eval 'as_val=${'$as_ac_Lib'}
17537 $as_echo "$as_val"'`
17538 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17539 $as_echo "$ac_res" >&6; }
17540 as_val=`eval 'as_val=${'$as_ac_Lib'}
17541 $as_echo "$as_val"'`
17542 if test "x$as_val" = x""yes; then
17543 cat >>confdefs.h <<\_ACEOF
17544 #define HAVE_GLBINDTEXTURE 1
17551 CPPFLAGS="$ac_save_CPPFLAGS"
17552 LDFLAGS="$ac_save_LDFLAGS"
17553 # LIBS="$ac_save_LIBS"
17557 elif test "$with_gl" != no; then
17558 echo "error: must be yes or no: --with-gl=$with_gl"
17563 ###############################################################################
17567 ###############################################################################
17570 with_gle_req=unspecified
17573 # Check whether --with-gle was given.
17574 if test "${with_gle+set}" = set; then
17575 withval=$with_gle; with_gle="$withval"; with_gle_req="$withval"
17582 case "$with_gle" in
17587 { $as_echo "$as_me:$LINENO: checking for GLE headers" >&5
17588 $as_echo_n "checking for GLE headers... " >&6; }
17589 d=$with_gle/include
17590 if test -d $d; then
17591 X_CFLAGS="-I$d $X_CFLAGS"
17592 { $as_echo "$as_me:$LINENO: result: $d" >&5
17593 $as_echo "$d" >&6; }
17595 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17596 $as_echo "not found ($d: no such directory)" >&6; }
17599 { $as_echo "$as_me:$LINENO: checking for GLE libs" >&5
17600 $as_echo_n "checking for GLE libs... " >&6; }
17602 if test -d $d; then
17603 X_LIBS="-L$d $X_LIBS"
17604 { $as_echo "$as_me:$LINENO: result: $d" >&5
17605 $as_echo "$d" >&6; }
17607 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17608 $as_echo "not found ($d: no such directory)" >&6; }
17611 # replace the directory string with "yes".
17613 with_gle=$with_gle_req
17618 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
17619 echo " If it is a directory, then \`DIR/include' will be added to"
17620 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17628 if test "$have_gl" = no ; then
17630 elif test "$with_gle" = yes; then
17633 ac_save_CPPFLAGS="$CPPFLAGS"
17634 if test \! -z "$includedir" ; then
17635 CPPFLAGS="$CPPFLAGS -I$includedir"
17637 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17638 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17639 { $as_echo "$as_me:$LINENO: checking for GL/gle.h" >&5
17640 $as_echo_n "checking for GL/gle.h... " >&6; }
17641 if test "${ac_cv_header_GL_gle_h+set}" = set; then
17642 $as_echo_n "(cached) " >&6
17644 cat >conftest.$ac_ext <<_ACEOF
17647 cat confdefs.h >>conftest.$ac_ext
17648 cat >>conftest.$ac_ext <<_ACEOF
17649 /* end confdefs.h. */
17652 #include <GL/gle.h>
17654 rm -rf conftest.$ac_objext
17655 if { (ac_try="$ac_compile"
17656 case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17661 $as_echo "$ac_try_echo") >&5
17662 (eval "$ac_compile") 2>conftest.er1
17664 grep -v '^ *+' conftest.er1 >conftest.err
17665 rm -rf conftest.er1
17666 cat conftest.err >&5
17667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } && {
17669 test -z "$ac_c_werror_flag" ||
17670 test ! -s conftest.err
17671 } && test -s conftest.$ac_objext; then
17672 ac_cv_header_GL_gle_h=yes
17674 $as_echo "$as_me: failed program was:" >&5
17675 sed 's/^/| /' conftest.$ac_ext >&5
17677 ac_cv_header_GL_gle_h=no
17680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17682 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gle_h" >&5
17683 $as_echo "$ac_cv_header_GL_gle_h" >&6; }
17684 if test "x$ac_cv_header_GL_gle_h" = x""yes; then
17691 CPPFLAGS="$ac_save_CPPFLAGS"
17692 if test "$have_gle3" = yes ; then
17696 ac_save_CPPFLAGS="$CPPFLAGS"
17697 if test \! -z "$includedir" ; then
17698 CPPFLAGS="$CPPFLAGS -I$includedir"
17700 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17701 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17702 { $as_echo "$as_me:$LINENO: checking for GL/gutil.h" >&5
17703 $as_echo_n "checking for GL/gutil.h... " >&6; }
17704 if test "${ac_cv_header_GL_gutil_h+set}" = set; then
17705 $as_echo_n "(cached) " >&6
17707 cat >conftest.$ac_ext <<_ACEOF
17710 cat confdefs.h >>conftest.$ac_ext
17711 cat >>conftest.$ac_ext <<_ACEOF
17712 /* end confdefs.h. */
17715 #include <GL/gutil.h>
17717 rm -rf conftest.$ac_objext
17718 if { (ac_try="$ac_compile"
17719 case "(($ac_try" in
17720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721 *) ac_try_echo=$ac_try;;
17723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17724 $as_echo "$ac_try_echo") >&5
17725 (eval "$ac_compile") 2>conftest.er1
17727 grep -v '^ *+' conftest.er1 >conftest.err
17728 rm -rf conftest.er1
17729 cat conftest.err >&5
17730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } && {
17732 test -z "$ac_c_werror_flag" ||
17733 test ! -s conftest.err
17734 } && test -s conftest.$ac_objext; then
17735 ac_cv_header_GL_gutil_h=yes
17737 $as_echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17740 ac_cv_header_GL_gutil_h=no
17743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17745 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gutil_h" >&5
17746 $as_echo "$ac_cv_header_GL_gutil_h" >&6; }
17747 if test "x$ac_cv_header_GL_gutil_h" = x""yes; then
17754 CPPFLAGS="$ac_save_CPPFLAGS"
17755 if test "$have_gle" = yes ; then
17757 ac_save_CPPFLAGS="$CPPFLAGS"
17758 if test \! -z "$includedir" ; then
17759 CPPFLAGS="$CPPFLAGS -I$includedir"
17761 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17762 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17763 { $as_echo "$as_me:$LINENO: checking for GL/tube.h" >&5
17764 $as_echo_n "checking for GL/tube.h... " >&6; }
17765 if test "${ac_cv_header_GL_tube_h+set}" = set; then
17766 $as_echo_n "(cached) " >&6
17768 cat >conftest.$ac_ext <<_ACEOF
17771 cat confdefs.h >>conftest.$ac_ext
17772 cat >>conftest.$ac_ext <<_ACEOF
17773 /* end confdefs.h. */
17776 #include <GL/tube.h>
17778 rm -rf conftest.$ac_objext
17779 if { (ac_try="$ac_compile"
17780 case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17785 $as_echo "$ac_try_echo") >&5
17786 (eval "$ac_compile") 2>conftest.er1
17788 grep -v '^ *+' conftest.er1 >conftest.err
17789 rm -rf conftest.er1
17790 cat conftest.err >&5
17791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } && {
17793 test -z "$ac_c_werror_flag" ||
17794 test ! -s conftest.err
17795 } && test -s conftest.$ac_objext; then
17796 ac_cv_header_GL_tube_h=yes
17798 $as_echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17801 ac_cv_header_GL_tube_h=no
17804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17806 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_tube_h" >&5
17807 $as_echo "$ac_cv_header_GL_tube_h" >&6; }
17808 if test "x$ac_cv_header_GL_tube_h" = x""yes; then
17815 CPPFLAGS="$ac_save_CPPFLAGS"
17819 if test "$have_gle" = yes ; then
17823 ac_save_CPPFLAGS="$CPPFLAGS"
17824 ac_save_LDFLAGS="$LDFLAGS"
17825 # ac_save_LIBS="$LIBS"
17827 if test \! -z "$includedir" ; then
17828 CPPFLAGS="$CPPFLAGS -I$includedir"
17830 # note: $X_CFLAGS includes $x_includes
17831 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17833 if test \! -z "$libdir" ; then
17834 LDFLAGS="$LDFLAGS -L$libdir"
17836 # note: $X_LIBS includes $x_libraries
17837 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17839 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17840 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17841 { $as_echo "$as_me:$LINENO: checking for gleCreateGC in -lgle" >&5
17842 $as_echo_n "checking for gleCreateGC in -lgle... " >&6; }
17843 if test "${ac_cv_lib_gle_gleCreateGC+set}" = set; then
17844 $as_echo_n "(cached) " >&6
17846 ac_check_lib_save_LIBS=$LIBS
17847 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
17848 cat >conftest.$ac_ext <<_ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17855 /* Override any GCC internal prototype to avoid an error.
17856 Use char because int might match the return type of a GCC
17857 builtin and then its argument prototype would still apply. */
17861 char gleCreateGC ();
17865 return gleCreateGC ();
17870 rm -rf conftest.$ac_objext conftest$ac_exeext
17871 if { (ac_try="$ac_link"
17872 case "(($ac_try" in
17873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17874 *) ac_try_echo=$ac_try;;
17876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17877 $as_echo "$ac_try_echo") >&5
17878 (eval "$ac_link") 2>conftest.er1
17880 grep -v '^ *+' conftest.er1 >conftest.err
17881 rm -rf conftest.er1
17882 cat conftest.err >&5
17883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } && {
17885 test -z "$ac_c_werror_flag" ||
17886 test ! -s conftest.err
17887 } && test -s conftest$ac_exeext && {
17888 test "$cross_compiling" = yes ||
17889 $as_test_x conftest$ac_exeext
17891 ac_cv_lib_gle_gleCreateGC=yes
17893 $as_echo "$as_me: failed program was:" >&5
17894 sed 's/^/| /' conftest.$ac_ext >&5
17896 ac_cv_lib_gle_gleCreateGC=no
17899 rm -rf conftest.dSYM
17900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17901 conftest$ac_exeext conftest.$ac_ext
17902 LIBS=$ac_check_lib_save_LIBS
17904 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gle_gleCreateGC" >&5
17905 $as_echo "$ac_cv_lib_gle_gleCreateGC" >&6; }
17906 if test "x$ac_cv_lib_gle_gleCreateGC" = x""yes; then
17907 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
17910 CPPFLAGS="$ac_save_CPPFLAGS"
17911 LDFLAGS="$ac_save_LDFLAGS"
17912 # LIBS="$ac_save_LIBS"
17915 if test "$have_gle" = yes ; then
17919 # sometimes the libmatrix stuff is included in libgle. look there first.
17921 # I don't get it. For some reason, this test passes on SGI, as if
17922 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
17923 # Yet the link is succeeding. Why???
17925 # AC_CHECK_X_LIB(gle, uview_direction_d,
17926 # [have_gle=yes; gle_halfassed=no],
17927 # [], $GL_LIBS -lX11 -lXext -lm)
17929 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
17931 if test "$have_gle3" = yes ; then
17933 ac_save_CPPFLAGS="$CPPFLAGS"
17934 ac_save_LDFLAGS="$LDFLAGS"
17935 # ac_save_LIBS="$LIBS"
17937 if test \! -z "$includedir" ; then
17938 CPPFLAGS="$CPPFLAGS -I$includedir"
17940 # note: $X_CFLAGS includes $x_includes
17941 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17943 if test \! -z "$libdir" ; then
17944 LDFLAGS="$LDFLAGS -L$libdir"
17946 # note: $X_LIBS includes $x_libraries
17947 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17949 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
17950 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
17951 { $as_echo "$as_me:$LINENO: checking for uview_direction in -lgle" >&5
17952 $as_echo_n "checking for uview_direction in -lgle... " >&6; }
17953 if test "${ac_cv_lib_gle_uview_direction+set}" = set; then
17954 $as_echo_n "(cached) " >&6
17956 ac_check_lib_save_LIBS=$LIBS
17957 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
17958 cat >conftest.$ac_ext <<_ACEOF
17961 cat confdefs.h >>conftest.$ac_ext
17962 cat >>conftest.$ac_ext <<_ACEOF
17963 /* end confdefs.h. */
17965 /* Override any GCC internal prototype to avoid an error.
17966 Use char because int might match the return type of a GCC
17967 builtin and then its argument prototype would still apply. */
17971 char uview_direction ();
17975 return uview_direction ();
17980 rm -rf conftest.$ac_objext conftest$ac_exeext
17981 if { (ac_try="$ac_link"
17982 case "(($ac_try" in
17983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17984 *) ac_try_echo=$ac_try;;
17986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17987 $as_echo "$ac_try_echo") >&5
17988 (eval "$ac_link") 2>conftest.er1
17990 grep -v '^ *+' conftest.er1 >conftest.err
17991 rm -rf conftest.er1
17992 cat conftest.err >&5
17993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); } && {
17995 test -z "$ac_c_werror_flag" ||
17996 test ! -s conftest.err
17997 } && test -s conftest$ac_exeext && {
17998 test "$cross_compiling" = yes ||
17999 $as_test_x conftest$ac_exeext
18001 ac_cv_lib_gle_uview_direction=yes
18003 $as_echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18006 ac_cv_lib_gle_uview_direction=no
18009 rm -rf conftest.dSYM
18010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18011 conftest$ac_exeext conftest.$ac_ext
18012 LIBS=$ac_check_lib_save_LIBS
18014 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gle_uview_direction" >&5
18015 $as_echo "$ac_cv_lib_gle_uview_direction" >&6; }
18016 if test "x$ac_cv_lib_gle_uview_direction" = x""yes; then
18017 have_gle=yes; gle_halfassed=no
18020 CPPFLAGS="$ac_save_CPPFLAGS"
18021 LDFLAGS="$ac_save_LDFLAGS"
18022 # LIBS="$ac_save_LIBS"
18025 # if it wasn't in libgle, then look in libmatrix.
18026 if test "$have_gle" = no ; then
18028 ac_save_CPPFLAGS="$CPPFLAGS"
18029 ac_save_LDFLAGS="$LDFLAGS"
18030 # ac_save_LIBS="$LIBS"
18032 if test \! -z "$includedir" ; then
18033 CPPFLAGS="$CPPFLAGS -I$includedir"
18035 # note: $X_CFLAGS includes $x_includes
18036 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18038 if test \! -z "$libdir" ; then
18039 LDFLAGS="$LDFLAGS -L$libdir"
18041 # note: $X_LIBS includes $x_libraries
18042 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18044 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18045 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18046 { $as_echo "$as_me:$LINENO: checking for uview_direction_d in -lmatrix" >&5
18047 $as_echo_n "checking for uview_direction_d in -lmatrix... " >&6; }
18048 if test "${ac_cv_lib_matrix_uview_direction_d+set}" = set; then
18049 $as_echo_n "(cached) " >&6
18051 ac_check_lib_save_LIBS=$LIBS
18052 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
18053 cat >conftest.$ac_ext <<_ACEOF
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h. */
18060 /* Override any GCC internal prototype to avoid an error.
18061 Use char because int might match the return type of a GCC
18062 builtin and then its argument prototype would still apply. */
18066 char uview_direction_d ();
18070 return uview_direction_d ();
18075 rm -rf conftest.$ac_objext conftest$ac_exeext
18076 if { (ac_try="$ac_link"
18077 case "(($ac_try" in
18078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18079 *) ac_try_echo=$ac_try;;
18081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18082 $as_echo "$ac_try_echo") >&5
18083 (eval "$ac_link") 2>conftest.er1
18085 grep -v '^ *+' conftest.er1 >conftest.err
18086 rm -rf conftest.er1
18087 cat conftest.err >&5
18088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); } && {
18090 test -z "$ac_c_werror_flag" ||
18091 test ! -s conftest.err
18092 } && test -s conftest$ac_exeext && {
18093 test "$cross_compiling" = yes ||
18094 $as_test_x conftest$ac_exeext
18096 ac_cv_lib_matrix_uview_direction_d=yes
18098 $as_echo "$as_me: failed program was:" >&5
18099 sed 's/^/| /' conftest.$ac_ext >&5
18101 ac_cv_lib_matrix_uview_direction_d=no
18104 rm -rf conftest.dSYM
18105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18106 conftest$ac_exeext conftest.$ac_ext
18107 LIBS=$ac_check_lib_save_LIBS
18109 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_matrix_uview_direction_d" >&5
18110 $as_echo "$ac_cv_lib_matrix_uview_direction_d" >&6; }
18111 if test "x$ac_cv_lib_matrix_uview_direction_d" = x""yes; then
18112 have_gle=yes; gle_halfassed=no;
18113 GLE_LIBS="$GLE_LIBS -lmatrix"
18116 CPPFLAGS="$ac_save_CPPFLAGS"
18117 LDFLAGS="$ac_save_LDFLAGS"
18118 # LIBS="$ac_save_LIBS"
18123 if test "$have_gle" = yes ; then
18124 cat >>confdefs.h <<\_ACEOF
18128 if test "$have_gle3" = yes ; then
18129 cat >>confdefs.h <<\_ACEOF
18130 #define HAVE_GLE3 1
18136 elif test "$with_gle" != no; then
18137 echo "error: must be yes or no: --with-gle=$with_gle"
18143 ###############################################################################
18145 # Check for -lgdk_pixbuf.
18146 # These tests are for gdk_pixbuf usage of the hacks,
18147 # not xscreensaver-demo (thus we have to test again to get
18148 # the libraries right: don't want to pull in all of GTK
18151 ###############################################################################
18154 with_gdk_pixbuf_req=unspecified
18156 # Check whether --with-pixbuf was given.
18157 if test "${with_pixbuf+set}" = set; then
18158 withval=$with_pixbuf; with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
18160 with_gdk_pixbuf=yes
18164 # if --with-pixbuf=/directory/ was specified, remember that directory so that
18165 # we can also look for the `gdk-pixbuf-config' program in that directory.
18166 case "$with_gdk_pixbuf" in
18168 gdk_pixbuf_dir="$with_gdk_pixbuf"
18176 case "$with_gdk_pixbuf" in
18181 { $as_echo "$as_me:$LINENO: checking for GDK_PIXBUF headers" >&5
18182 $as_echo_n "checking for GDK_PIXBUF headers... " >&6; }
18183 d=$with_gdk_pixbuf/include
18184 if test -d $d; then
18185 X_CFLAGS="-I$d $X_CFLAGS"
18186 { $as_echo "$as_me:$LINENO: result: $d" >&5
18187 $as_echo "$d" >&6; }
18189 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18190 $as_echo "not found ($d: no such directory)" >&6; }
18193 { $as_echo "$as_me:$LINENO: checking for GDK_PIXBUF libs" >&5
18194 $as_echo_n "checking for GDK_PIXBUF libs... " >&6; }
18195 d=$with_gdk_pixbuf/lib
18196 if test -d $d; then
18197 X_LIBS="-L$d $X_LIBS"
18198 { $as_echo "$as_me:$LINENO: result: $d" >&5
18199 $as_echo "$d" >&6; }
18201 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18202 $as_echo "not found ($d: no such directory)" >&6; }
18205 # replace the directory string with "yes".
18206 with_gdk_pixbuf_req="yes"
18207 with_gdk_pixbuf=$with_gdk_pixbuf_req
18212 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
18213 echo " If it is a directory, then \`DIR/include' will be added to"
18214 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18220 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
18221 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
18225 if test "$with_gdk_pixbuf" = yes; then
18231 pkg_check_version gdk-pixbuf-2.0 2.0.0
18232 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
18233 have_gdk_pixbuf="$ok"
18235 if test "$have_gdk_pixbuf" = yes; then
18236 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
18237 $as_echo_n "checking for gdk-pixbuf includes... " >&6; }
18238 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
18239 $as_echo_n "(cached) " >&6
18241 ac_cv_gdk_pixbuf_config_cflags=`$pkg_config --cflags $pkgs`
18243 { $as_echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
18244 $as_echo "$ac_cv_gdk_pixbuf_config_cflags" >&6; }
18245 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
18246 $as_echo_n "checking for gdk-pixbuf libs... " >&6; }
18247 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
18248 $as_echo_n "(cached) " >&6
18250 ac_cv_gdk_pixbuf_config_libs=`$pkg_config --libs $pkgs`
18252 { $as_echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
18253 $as_echo "$ac_cv_gdk_pixbuf_config_libs" >&6; }
18256 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
18257 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
18260 if test "$have_gdk_pixbuf" = yes; then
18262 # we appear to have pixbuf; check for headers/libs to be sure.
18264 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
18265 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
18269 # check for header A...
18271 ac_save_CPPFLAGS="$CPPFLAGS"
18272 if test \! -z "$includedir" ; then
18273 CPPFLAGS="$CPPFLAGS -I$includedir"
18275 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18276 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18277 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
18278 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
18279 $as_echo_n "checking for gdk-pixbuf/gdk-pixbuf.h... " >&6; }
18280 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
18281 $as_echo_n "(cached) " >&6
18283 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
18284 $as_echo "$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6; }
18286 # Is the header compilable?
18287 { $as_echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h usability" >&5
18288 $as_echo_n "checking gdk-pixbuf/gdk-pixbuf.h usability... " >&6; }
18289 cat >conftest.$ac_ext <<_ACEOF
18292 cat confdefs.h >>conftest.$ac_ext
18293 cat >>conftest.$ac_ext <<_ACEOF
18294 /* end confdefs.h. */
18295 $ac_includes_default
18296 #include <gdk-pixbuf/gdk-pixbuf.h>
18298 rm -rf conftest.$ac_objext
18299 if { (ac_try="$ac_compile"
18300 case "(($ac_try" in
18301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302 *) ac_try_echo=$ac_try;;
18304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18305 $as_echo "$ac_try_echo") >&5
18306 (eval "$ac_compile") 2>conftest.er1
18308 grep -v '^ *+' conftest.er1 >conftest.err
18309 rm -rf conftest.er1
18310 cat conftest.err >&5
18311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); } && {
18313 test -z "$ac_c_werror_flag" ||
18314 test ! -s conftest.err
18315 } && test -s conftest.$ac_objext; then
18316 ac_header_compiler=yes
18318 $as_echo "$as_me: failed program was:" >&5
18319 sed 's/^/| /' conftest.$ac_ext >&5
18321 ac_header_compiler=no
18324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18325 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18326 $as_echo "$ac_header_compiler" >&6; }
18328 # Is the header present?
18329 { $as_echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h presence" >&5
18330 $as_echo_n "checking gdk-pixbuf/gdk-pixbuf.h presence... " >&6; }
18331 cat >conftest.$ac_ext <<_ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h. */
18337 #include <gdk-pixbuf/gdk-pixbuf.h>
18339 if { (ac_try="$ac_cpp conftest.$ac_ext"
18340 case "(($ac_try" in
18341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18342 *) ac_try_echo=$ac_try;;
18344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18345 $as_echo "$ac_try_echo") >&5
18346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18348 grep -v '^ *+' conftest.er1 >conftest.err
18349 rm -rf conftest.er1
18350 cat conftest.err >&5
18351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); } >/dev/null && {
18353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18354 test ! -s conftest.err
18356 ac_header_preproc=yes
18358 $as_echo "$as_me: failed program was:" >&5
18359 sed 's/^/| /' conftest.$ac_ext >&5
18361 ac_header_preproc=no
18364 rm -rf conftest.err conftest.$ac_ext
18365 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18366 $as_echo "$ac_header_preproc" >&6; }
18368 # So? What about this header?
18369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18371 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&5
18372 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18373 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&5
18374 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&2;}
18375 ac_header_preproc=yes
18378 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&5
18379 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&2;}
18380 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&5
18381 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&2;}
18382 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&5
18383 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&2;}
18384 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&5
18385 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&2;}
18386 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
18387 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;}
18388 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&5
18389 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&2;}
18393 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
18394 $as_echo_n "checking for gdk-pixbuf/gdk-pixbuf.h... " >&6; }
18395 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
18396 $as_echo_n "(cached) " >&6
18398 ac_cv_header_gdk_pixbuf_gdk_pixbuf_h=$ac_header_preproc
18400 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
18401 $as_echo "$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6; }
18404 if test "x$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" = x""yes; then
18405 have_gdk_pixbuf=yes
18409 CPPFLAGS="$ac_save_CPPFLAGS"
18411 # if that worked, check for header B...
18412 if test "$have_gdk_pixbuf" = yes; then
18414 gdk_pixbuf_halfassed=yes
18416 ac_save_CPPFLAGS="$CPPFLAGS"
18417 if test \! -z "$includedir" ; then
18418 CPPFLAGS="$CPPFLAGS -I$includedir"
18420 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18421 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18422 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
18423 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
18424 $as_echo_n "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... " >&6; }
18425 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
18426 $as_echo_n "(cached) " >&6
18428 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
18429 $as_echo "$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6; }
18431 # Is the header compilable?
18432 { $as_echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h usability" >&5
18433 $as_echo_n "checking gdk-pixbuf/gdk-pixbuf-xlib.h usability... " >&6; }
18434 cat >conftest.$ac_ext <<_ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h. */
18440 $ac_includes_default
18441 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
18443 rm -rf conftest.$ac_objext
18444 if { (ac_try="$ac_compile"
18445 case "(($ac_try" in
18446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447 *) ac_try_echo=$ac_try;;
18449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18450 $as_echo "$ac_try_echo") >&5
18451 (eval "$ac_compile") 2>conftest.er1
18453 grep -v '^ *+' conftest.er1 >conftest.err
18454 rm -rf conftest.er1
18455 cat conftest.err >&5
18456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); } && {
18458 test -z "$ac_c_werror_flag" ||
18459 test ! -s conftest.err
18460 } && test -s conftest.$ac_objext; then
18461 ac_header_compiler=yes
18463 $as_echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18466 ac_header_compiler=no
18469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18470 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18471 $as_echo "$ac_header_compiler" >&6; }
18473 # Is the header present?
18474 { $as_echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h presence" >&5
18475 $as_echo_n "checking gdk-pixbuf/gdk-pixbuf-xlib.h presence... " >&6; }
18476 cat >conftest.$ac_ext <<_ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18482 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
18484 if { (ac_try="$ac_cpp conftest.$ac_ext"
18485 case "(($ac_try" in
18486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487 *) ac_try_echo=$ac_try;;
18489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18490 $as_echo "$ac_try_echo") >&5
18491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18493 grep -v '^ *+' conftest.er1 >conftest.err
18494 rm -rf conftest.er1
18495 cat conftest.err >&5
18496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); } >/dev/null && {
18498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18499 test ! -s conftest.err
18501 ac_header_preproc=yes
18503 $as_echo "$as_me: failed program was:" >&5
18504 sed 's/^/| /' conftest.$ac_ext >&5
18506 ac_header_preproc=no
18509 rm -rf conftest.err conftest.$ac_ext
18510 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18511 $as_echo "$ac_header_preproc" >&6; }
18513 # So? What about this header?
18514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18516 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18517 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18518 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
18519 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
18520 ac_header_preproc=yes
18523 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
18524 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
18525 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
18526 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
18527 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
18528 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
18529 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
18530 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18531 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
18532 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
18533 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
18534 $as_echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
18538 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
18539 $as_echo_n "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... " >&6; }
18540 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
18541 $as_echo_n "(cached) " >&6
18543 ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h=$ac_header_preproc
18545 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
18546 $as_echo "$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6; }
18549 if test "x$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" = x""yes; then
18550 have_gdk_pixbuf=yes
18551 gdk_pixbuf_halfassed=no
18555 CPPFLAGS="$ac_save_CPPFLAGS"
18557 # yay, it has a new name in Gtk 2.x...
18558 if test "$have_gdk_pixbuf" = no; then
18560 gdk_pixbuf_halfassed=yes
18562 ac_save_CPPFLAGS="$CPPFLAGS"
18563 if test \! -z "$includedir" ; then
18564 CPPFLAGS="$CPPFLAGS -I$includedir"
18566 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18567 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18568 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
18569 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
18570 $as_echo_n "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... " >&6; }
18571 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
18572 $as_echo_n "(cached) " >&6
18574 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
18575 $as_echo "$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6; }
18577 # Is the header compilable?
18578 { $as_echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability" >&5
18579 $as_echo_n "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability... " >&6; }
18580 cat >conftest.$ac_ext <<_ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h. */
18586 $ac_includes_default
18587 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
18589 rm -rf conftest.$ac_objext
18590 if { (ac_try="$ac_compile"
18591 case "(($ac_try" in
18592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18593 *) ac_try_echo=$ac_try;;
18595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18596 $as_echo "$ac_try_echo") >&5
18597 (eval "$ac_compile") 2>conftest.er1
18599 grep -v '^ *+' conftest.er1 >conftest.err
18600 rm -rf conftest.er1
18601 cat conftest.err >&5
18602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); } && {
18604 test -z "$ac_c_werror_flag" ||
18605 test ! -s conftest.err
18606 } && test -s conftest.$ac_objext; then
18607 ac_header_compiler=yes
18609 $as_echo "$as_me: failed program was:" >&5
18610 sed 's/^/| /' conftest.$ac_ext >&5
18612 ac_header_compiler=no
18615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18616 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18617 $as_echo "$ac_header_compiler" >&6; }
18619 # Is the header present?
18620 { $as_echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence" >&5
18621 $as_echo_n "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence... " >&6; }
18622 cat >conftest.$ac_ext <<_ACEOF
18625 cat confdefs.h >>conftest.$ac_ext
18626 cat >>conftest.$ac_ext <<_ACEOF
18627 /* end confdefs.h. */
18628 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
18630 if { (ac_try="$ac_cpp conftest.$ac_ext"
18631 case "(($ac_try" in
18632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633 *) ac_try_echo=$ac_try;;
18635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18636 $as_echo "$ac_try_echo") >&5
18637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18639 grep -v '^ *+' conftest.er1 >conftest.err
18640 rm -rf conftest.er1
18641 cat conftest.err >&5
18642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); } >/dev/null && {
18644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18645 test ! -s conftest.err
18647 ac_header_preproc=yes
18649 $as_echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.$ac_ext >&5
18652 ac_header_preproc=no
18655 rm -rf conftest.err conftest.$ac_ext
18656 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18657 $as_echo "$ac_header_preproc" >&6; }
18659 # So? What about this header?
18660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18662 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18663 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18664 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
18665 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
18666 ac_header_preproc=yes
18669 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
18670 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
18671 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
18672 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
18673 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
18674 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
18675 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
18676 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18677 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
18678 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
18679 { $as_echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
18680 $as_echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
18684 { $as_echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
18685 $as_echo_n "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... " >&6; }
18686 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
18687 $as_echo_n "(cached) " >&6
18689 ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h=$ac_header_preproc
18691 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
18692 $as_echo "$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6; }
18695 if test "x$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" = x""yes; then
18696 have_gdk_pixbuf=yes
18697 gdk_pixbuf_halfassed=no
18701 CPPFLAGS="$ac_save_CPPFLAGS"
18704 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
18707 if test "$have_gdk_pixbuf" = yes; then
18708 # we have the headers, now check for the libraries
18710 gdk_pixbuf_halfassed=yes
18712 { $as_echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability..." >&5
18713 $as_echo "checking for gdk_pixbuf usability..." >&6; }
18717 ac_save_CPPFLAGS="$CPPFLAGS"
18718 ac_save_LDFLAGS="$LDFLAGS"
18719 # ac_save_LIBS="$LIBS"
18721 if test \! -z "$includedir" ; then
18722 CPPFLAGS="$CPPFLAGS -I$includedir"
18724 # note: $X_CFLAGS includes $x_includes
18725 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18727 if test \! -z "$libdir" ; then
18728 LDFLAGS="$LDFLAGS -L$libdir"
18730 # note: $X_LIBS includes $x_libraries
18731 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18733 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18734 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18735 { $as_echo "$as_me:$LINENO: checking for gdk_pixbuf_new_from_file in -lc" >&5
18736 $as_echo_n "checking for gdk_pixbuf_new_from_file in -lc... " >&6; }
18737 if test "${ac_cv_lib_c_gdk_pixbuf_new_from_file+set}" = set; then
18738 $as_echo_n "(cached) " >&6
18740 ac_check_lib_save_LIBS=$LIBS
18741 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
18742 cat >conftest.$ac_ext <<_ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h. */
18749 /* Override any GCC internal prototype to avoid an error.
18750 Use char because int might match the return type of a GCC
18751 builtin and then its argument prototype would still apply. */
18755 char gdk_pixbuf_new_from_file ();
18759 return gdk_pixbuf_new_from_file ();
18764 rm -rf conftest.$ac_objext conftest$ac_exeext
18765 if { (ac_try="$ac_link"
18766 case "(($ac_try" in
18767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768 *) ac_try_echo=$ac_try;;
18770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18771 $as_echo "$ac_try_echo") >&5
18772 (eval "$ac_link") 2>conftest.er1
18774 grep -v '^ *+' conftest.er1 >conftest.err
18775 rm -rf conftest.er1
18776 cat conftest.err >&5
18777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); } && {
18779 test -z "$ac_c_werror_flag" ||
18780 test ! -s conftest.err
18781 } && test -s conftest$ac_exeext && {
18782 test "$cross_compiling" = yes ||
18783 $as_test_x conftest$ac_exeext
18785 ac_cv_lib_c_gdk_pixbuf_new_from_file=yes
18787 $as_echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18790 ac_cv_lib_c_gdk_pixbuf_new_from_file=no
18793 rm -rf conftest.dSYM
18794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18795 conftest$ac_exeext conftest.$ac_ext
18796 LIBS=$ac_check_lib_save_LIBS
18798 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_new_from_file" >&5
18799 $as_echo "$ac_cv_lib_c_gdk_pixbuf_new_from_file" >&6; }
18800 if test "x$ac_cv_lib_c_gdk_pixbuf_new_from_file" = x""yes; then
18801 have_gdk_pixbuf=yes
18804 CPPFLAGS="$ac_save_CPPFLAGS"
18805 LDFLAGS="$ac_save_LDFLAGS"
18806 # LIBS="$ac_save_LIBS"
18809 if test "$have_gdk_pixbuf" = yes; then
18812 ac_save_CPPFLAGS="$CPPFLAGS"
18813 ac_save_LDFLAGS="$LDFLAGS"
18814 # ac_save_LIBS="$LIBS"
18816 if test \! -z "$includedir" ; then
18817 CPPFLAGS="$CPPFLAGS -I$includedir"
18819 # note: $X_CFLAGS includes $x_includes
18820 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18822 if test \! -z "$libdir" ; then
18823 LDFLAGS="$LDFLAGS -L$libdir"
18825 # note: $X_LIBS includes $x_libraries
18826 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18828 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18829 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18830 { $as_echo "$as_me:$LINENO: checking for gdk_pixbuf_xlib_init in -lc" >&5
18831 $as_echo_n "checking for gdk_pixbuf_xlib_init in -lc... " >&6; }
18832 if test "${ac_cv_lib_c_gdk_pixbuf_xlib_init+set}" = set; then
18833 $as_echo_n "(cached) " >&6
18835 ac_check_lib_save_LIBS=$LIBS
18836 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
18837 cat >conftest.$ac_ext <<_ACEOF
18840 cat confdefs.h >>conftest.$ac_ext
18841 cat >>conftest.$ac_ext <<_ACEOF
18842 /* end confdefs.h. */
18844 /* Override any GCC internal prototype to avoid an error.
18845 Use char because int might match the return type of a GCC
18846 builtin and then its argument prototype would still apply. */
18850 char gdk_pixbuf_xlib_init ();
18854 return gdk_pixbuf_xlib_init ();
18859 rm -rf conftest.$ac_objext conftest$ac_exeext
18860 if { (ac_try="$ac_link"
18861 case "(($ac_try" in
18862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18863 *) ac_try_echo=$ac_try;;
18865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18866 $as_echo "$ac_try_echo") >&5
18867 (eval "$ac_link") 2>conftest.er1
18869 grep -v '^ *+' conftest.er1 >conftest.err
18870 rm -rf conftest.er1
18871 cat conftest.err >&5
18872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); } && {
18874 test -z "$ac_c_werror_flag" ||
18875 test ! -s conftest.err
18876 } && test -s conftest$ac_exeext && {
18877 test "$cross_compiling" = yes ||
18878 $as_test_x conftest$ac_exeext
18880 ac_cv_lib_c_gdk_pixbuf_xlib_init=yes
18882 $as_echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.$ac_ext >&5
18885 ac_cv_lib_c_gdk_pixbuf_xlib_init=no
18888 rm -rf conftest.dSYM
18889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18890 conftest$ac_exeext conftest.$ac_ext
18891 LIBS=$ac_check_lib_save_LIBS
18893 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_xlib_init" >&5
18894 $as_echo "$ac_cv_lib_c_gdk_pixbuf_xlib_init" >&6; }
18895 if test "x$ac_cv_lib_c_gdk_pixbuf_xlib_init" = x""yes; then
18896 have_gdk_pixbuf=yes
18897 gdk_pixbuf_halfassed=no
18900 CPPFLAGS="$ac_save_CPPFLAGS"
18901 LDFLAGS="$ac_save_LDFLAGS"
18902 # LIBS="$ac_save_LIBS"
18907 if test "$have_gdk_pixbuf" = yes; then
18908 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
18909 XPM_LIBS="$ac_gdk_pixbuf_config_libs"
18910 cat >>confdefs.h <<\_ACEOF
18911 #define HAVE_GDK_PIXBUF 1
18915 { $as_echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability... no" >&5
18916 $as_echo "checking for gdk_pixbuf usability... no" >&6; }
18919 if test "$have_gdk_pixbuf" = yes; then
18921 ac_save_CPPFLAGS="$CPPFLAGS"
18922 ac_save_LDFLAGS="$LDFLAGS"
18923 # ac_save_LIBS="$LIBS"
18925 if test \! -z "$includedir" ; then
18926 CPPFLAGS="$CPPFLAGS -I$includedir"
18928 # note: $X_CFLAGS includes $x_includes
18929 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18931 if test \! -z "$libdir" ; then
18932 LDFLAGS="$LDFLAGS -L$libdir"
18934 # note: $X_LIBS includes $x_libraries
18935 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18937 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
18938 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
18939 { $as_echo "$as_me:$LINENO: checking for gdk_pixbuf_apply_embedded_orientation in -lc" >&5
18940 $as_echo_n "checking for gdk_pixbuf_apply_embedded_orientation in -lc... " >&6; }
18941 if test "${ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation+set}" = set; then
18942 $as_echo_n "(cached) " >&6
18944 ac_check_lib_save_LIBS=$LIBS
18945 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
18946 cat >conftest.$ac_ext <<_ACEOF
18949 cat confdefs.h >>conftest.$ac_ext
18950 cat >>conftest.$ac_ext <<_ACEOF
18951 /* end confdefs.h. */
18953 /* Override any GCC internal prototype to avoid an error.
18954 Use char because int might match the return type of a GCC
18955 builtin and then its argument prototype would still apply. */
18959 char gdk_pixbuf_apply_embedded_orientation ();
18963 return gdk_pixbuf_apply_embedded_orientation ();
18968 rm -rf conftest.$ac_objext conftest$ac_exeext
18969 if { (ac_try="$ac_link"
18970 case "(($ac_try" in
18971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972 *) ac_try_echo=$ac_try;;
18974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18975 $as_echo "$ac_try_echo") >&5
18976 (eval "$ac_link") 2>conftest.er1
18978 grep -v '^ *+' conftest.er1 >conftest.err
18979 rm -rf conftest.er1
18980 cat conftest.err >&5
18981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); } && {
18983 test -z "$ac_c_werror_flag" ||
18984 test ! -s conftest.err
18985 } && test -s conftest$ac_exeext && {
18986 test "$cross_compiling" = yes ||
18987 $as_test_x conftest$ac_exeext
18989 ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation=yes
18991 $as_echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18994 ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation=no
18997 rm -rf conftest.dSYM
18998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18999 conftest$ac_exeext conftest.$ac_ext
19000 LIBS=$ac_check_lib_save_LIBS
19002 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" >&5
19003 $as_echo "$ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" >&6; }
19004 if test "x$ac_cv_lib_c_gdk_pixbuf_apply_embedded_orientation" = x""yes; then
19005 cat >>confdefs.h <<\_ACEOF
19006 #define HAVE_GDK_PIXBUF_APPLY_EMBEDDED_ORIENTATION 1
19011 CPPFLAGS="$ac_save_CPPFLAGS"
19012 LDFLAGS="$ac_save_LDFLAGS"
19013 # LIBS="$ac_save_LIBS"
19019 ###############################################################################
19023 ###############################################################################
19026 with_xpm_req=unspecified
19028 # Check whether --with-xpm was given.
19029 if test "${with_xpm+set}" = set; then
19030 withval=$with_xpm; with_xpm="$withval"; with_xpm_req="$withval"
19037 case "$with_xpm" in
19042 { $as_echo "$as_me:$LINENO: checking for XPM headers" >&5
19043 $as_echo_n "checking for XPM headers... " >&6; }
19044 d=$with_xpm/include
19045 if test -d $d; then
19046 X_CFLAGS="-I$d $X_CFLAGS"
19047 { $as_echo "$as_me:$LINENO: result: $d" >&5
19048 $as_echo "$d" >&6; }
19050 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19051 $as_echo "not found ($d: no such directory)" >&6; }
19054 { $as_echo "$as_me:$LINENO: checking for XPM libs" >&5
19055 $as_echo_n "checking for XPM libs... " >&6; }
19057 if test -d $d; then
19058 X_LIBS="-L$d $X_LIBS"
19059 { $as_echo "$as_me:$LINENO: result: $d" >&5
19060 $as_echo "$d" >&6; }
19062 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19063 $as_echo "not found ($d: no such directory)" >&6; }
19066 # replace the directory string with "yes".
19068 with_xpm=$with_xpm_req
19073 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
19074 echo " If it is a directory, then \`DIR/include' will be added to"
19075 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19081 if test "$with_xpm" = yes; then
19083 ac_save_CPPFLAGS="$CPPFLAGS"
19084 if test \! -z "$includedir" ; then
19085 CPPFLAGS="$CPPFLAGS -I$includedir"
19087 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19088 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19089 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
19090 $as_echo_n "checking for X11/xpm.h... " >&6; }
19091 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
19092 $as_echo_n "(cached) " >&6
19094 cat >conftest.$ac_ext <<_ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h. */
19100 #include <X11/Xlib.h>
19102 #include <X11/xpm.h>
19104 rm -rf conftest.$ac_objext
19105 if { (ac_try="$ac_compile"
19106 case "(($ac_try" in
19107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19108 *) ac_try_echo=$ac_try;;
19110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19111 $as_echo "$ac_try_echo") >&5
19112 (eval "$ac_compile") 2>conftest.er1
19114 grep -v '^ *+' conftest.er1 >conftest.err
19115 rm -rf conftest.er1
19116 cat conftest.err >&5
19117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } && {
19119 test -z "$ac_c_werror_flag" ||
19120 test ! -s conftest.err
19121 } && test -s conftest.$ac_objext; then
19122 ac_cv_header_X11_xpm_h=yes
19124 $as_echo "$as_me: failed program was:" >&5
19125 sed 's/^/| /' conftest.$ac_ext >&5
19127 ac_cv_header_X11_xpm_h=no
19130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19132 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
19133 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
19134 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then
19136 cat >>confdefs.h <<\_ACEOF
19140 XPM_LIBS="-lXpm $XPM_LIBS"
19144 CPPFLAGS="$ac_save_CPPFLAGS"
19145 elif test "$with_xpm" != no; then
19146 echo "error: must be yes or no: --with-xpm=$with_xpm"
19150 # See comment near $motif_requires_xpm, above.
19151 # Need to do this here, after both Motif and XPM have been checked for.
19153 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
19154 if test "$motif_requires_xpm" = yes ; then
19155 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
19159 if test "$XPM_LIBS" = "" ; then
19160 XPM_LIBS=$(MINIXPM)
19164 ###############################################################################
19168 ###############################################################################
19171 with_jpeg_req=unspecified
19174 # Check whether --with-jpeg was given.
19175 if test "${with_jpeg+set}" = set; then
19176 withval=$with_jpeg; with_jpeg="$withval"; with_jpeg_req="$withval"
19183 case "$with_jpeg" in
19188 { $as_echo "$as_me:$LINENO: checking for JPEG headers" >&5
19189 $as_echo_n "checking for JPEG headers... " >&6; }
19190 d=$with_jpeg/include
19191 if test -d $d; then
19192 X_CFLAGS="-I$d $X_CFLAGS"
19193 { $as_echo "$as_me:$LINENO: result: $d" >&5
19194 $as_echo "$d" >&6; }
19196 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19197 $as_echo "not found ($d: no such directory)" >&6; }
19200 { $as_echo "$as_me:$LINENO: checking for JPEG libs" >&5
19201 $as_echo_n "checking for JPEG libs... " >&6; }
19203 if test -d $d; then
19204 X_LIBS="-L$d $X_LIBS"
19205 { $as_echo "$as_me:$LINENO: result: $d" >&5
19206 $as_echo "$d" >&6; }
19208 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19209 $as_echo "not found ($d: no such directory)" >&6; }
19212 # replace the directory string with "yes".
19213 with_jpeg_req="yes"
19214 with_jpeg=$with_jpeg_req
19219 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
19220 echo " If it is a directory, then \`DIR/include' will be added to"
19221 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19227 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
19228 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
19232 if test "$with_jpeg" = yes; then
19236 ac_save_CPPFLAGS="$CPPFLAGS"
19237 if test \! -z "$includedir" ; then
19238 CPPFLAGS="$CPPFLAGS -I$includedir"
19240 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19241 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19242 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19243 { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19244 $as_echo_n "checking for jpeglib.h... " >&6; }
19245 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19246 $as_echo_n "(cached) " >&6
19248 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19249 $as_echo "$ac_cv_header_jpeglib_h" >&6; }
19251 # Is the header compilable?
19252 { $as_echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
19253 $as_echo_n "checking jpeglib.h usability... " >&6; }
19254 cat >conftest.$ac_ext <<_ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h. */
19260 $ac_includes_default
19261 #include <jpeglib.h>
19263 rm -rf conftest.$ac_objext
19264 if { (ac_try="$ac_compile"
19265 case "(($ac_try" in
19266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19267 *) ac_try_echo=$ac_try;;
19269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19270 $as_echo "$ac_try_echo") >&5
19271 (eval "$ac_compile") 2>conftest.er1
19273 grep -v '^ *+' conftest.er1 >conftest.err
19274 rm -rf conftest.er1
19275 cat conftest.err >&5
19276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } && {
19278 test -z "$ac_c_werror_flag" ||
19279 test ! -s conftest.err
19280 } && test -s conftest.$ac_objext; then
19281 ac_header_compiler=yes
19283 $as_echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19286 ac_header_compiler=no
19289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19290 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19291 $as_echo "$ac_header_compiler" >&6; }
19293 # Is the header present?
19294 { $as_echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
19295 $as_echo_n "checking jpeglib.h presence... " >&6; }
19296 cat >conftest.$ac_ext <<_ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h. */
19302 #include <jpeglib.h>
19304 if { (ac_try="$ac_cpp conftest.$ac_ext"
19305 case "(($ac_try" in
19306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19307 *) ac_try_echo=$ac_try;;
19309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19310 $as_echo "$ac_try_echo") >&5
19311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19313 grep -v '^ *+' conftest.er1 >conftest.err
19314 rm -rf conftest.er1
19315 cat conftest.err >&5
19316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } >/dev/null && {
19318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19319 test ! -s conftest.err
19321 ac_header_preproc=yes
19323 $as_echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19326 ac_header_preproc=no
19329 rm -rf conftest.err conftest.$ac_ext
19330 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19331 $as_echo "$ac_header_preproc" >&6; }
19333 # So? What about this header?
19334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19336 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19337 $as_echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19338 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
19339 $as_echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
19340 ac_header_preproc=yes
19343 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
19344 $as_echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
19345 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
19346 $as_echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
19347 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
19348 $as_echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
19349 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
19350 $as_echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
19351 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
19352 $as_echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
19353 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
19354 $as_echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
19358 { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19359 $as_echo_n "checking for jpeglib.h... " >&6; }
19360 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19361 $as_echo_n "(cached) " >&6
19363 ac_cv_header_jpeglib_h=$ac_header_preproc
19365 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19366 $as_echo "$ac_cv_header_jpeglib_h" >&6; }
19369 if test "x$ac_cv_header_jpeglib_h" = x""yes; then
19374 CPPFLAGS="$ac_save_CPPFLAGS"
19376 if test "$have_jpeg" = yes; then
19377 # we have the header, now check for the library
19381 ac_save_CPPFLAGS="$CPPFLAGS"
19382 ac_save_LDFLAGS="$LDFLAGS"
19383 # ac_save_LIBS="$LIBS"
19385 if test \! -z "$includedir" ; then
19386 CPPFLAGS="$CPPFLAGS -I$includedir"
19388 # note: $X_CFLAGS includes $x_includes
19389 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19391 if test \! -z "$libdir" ; then
19392 LDFLAGS="$LDFLAGS -L$libdir"
19394 # note: $X_LIBS includes $x_libraries
19395 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19397 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19398 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
19399 { $as_echo "$as_me:$LINENO: checking for jpeg_start_compress in -ljpeg" >&5
19400 $as_echo_n "checking for jpeg_start_compress in -ljpeg... " >&6; }
19401 if test "${ac_cv_lib_jpeg_jpeg_start_compress+set}" = set; then
19402 $as_echo_n "(cached) " >&6
19404 ac_check_lib_save_LIBS=$LIBS
19405 LIBS="-ljpeg $LIBS"
19406 cat >conftest.$ac_ext <<_ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19413 /* Override any GCC internal prototype to avoid an error.
19414 Use char because int might match the return type of a GCC
19415 builtin and then its argument prototype would still apply. */
19419 char jpeg_start_compress ();
19423 return jpeg_start_compress ();
19428 rm -rf conftest.$ac_objext conftest$ac_exeext
19429 if { (ac_try="$ac_link"
19430 case "(($ac_try" in
19431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432 *) ac_try_echo=$ac_try;;
19434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19435 $as_echo "$ac_try_echo") >&5
19436 (eval "$ac_link") 2>conftest.er1
19438 grep -v '^ *+' conftest.er1 >conftest.err
19439 rm -rf conftest.er1
19440 cat conftest.err >&5
19441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); } && {
19443 test -z "$ac_c_werror_flag" ||
19444 test ! -s conftest.err
19445 } && test -s conftest$ac_exeext && {
19446 test "$cross_compiling" = yes ||
19447 $as_test_x conftest$ac_exeext
19449 ac_cv_lib_jpeg_jpeg_start_compress=yes
19451 $as_echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19454 ac_cv_lib_jpeg_jpeg_start_compress=no
19457 rm -rf conftest.dSYM
19458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19459 conftest$ac_exeext conftest.$ac_ext
19460 LIBS=$ac_check_lib_save_LIBS
19462 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
19463 $as_echo "$ac_cv_lib_jpeg_jpeg_start_compress" >&6; }
19464 if test "x$ac_cv_lib_jpeg_jpeg_start_compress" = x""yes; then
19468 cat >>confdefs.h <<\_ACEOF
19469 #define HAVE_JPEGLIB 1
19474 CPPFLAGS="$ac_save_CPPFLAGS"
19475 LDFLAGS="$ac_save_LDFLAGS"
19476 # LIBS="$ac_save_LIBS"
19482 ###############################################################################
19484 # Check for pty support: this allows 'phosphor' and 'apple2'
19485 # to run curses-based programs, or be used as terminal windows.
19487 ###############################################################################
19492 for ac_header in pty.h util.h
19494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19496 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19497 $as_echo_n "checking for $ac_header... " >&6; }
19498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19499 $as_echo_n "(cached) " >&6
19501 ac_res=`eval 'as_val=${'$as_ac_Header'}
19502 $as_echo "$as_val"'`
19503 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19504 $as_echo "$ac_res" >&6; }
19506 # Is the header compilable?
19507 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19508 $as_echo_n "checking $ac_header usability... " >&6; }
19509 cat >conftest.$ac_ext <<_ACEOF
19512 cat confdefs.h >>conftest.$ac_ext
19513 cat >>conftest.$ac_ext <<_ACEOF
19514 /* end confdefs.h. */
19515 $ac_includes_default
19516 #include <$ac_header>
19518 rm -rf conftest.$ac_objext
19519 if { (ac_try="$ac_compile"
19520 case "(($ac_try" in
19521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522 *) ac_try_echo=$ac_try;;
19524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19525 $as_echo "$ac_try_echo") >&5
19526 (eval "$ac_compile") 2>conftest.er1
19528 grep -v '^ *+' conftest.er1 >conftest.err
19529 rm -rf conftest.er1
19530 cat conftest.err >&5
19531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); } && {
19533 test -z "$ac_c_werror_flag" ||
19534 test ! -s conftest.err
19535 } && test -s conftest.$ac_objext; then
19536 ac_header_compiler=yes
19538 $as_echo "$as_me: failed program was:" >&5
19539 sed 's/^/| /' conftest.$ac_ext >&5
19541 ac_header_compiler=no
19544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19545 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19546 $as_echo "$ac_header_compiler" >&6; }
19548 # Is the header present?
19549 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19550 $as_echo_n "checking $ac_header presence... " >&6; }
19551 cat >conftest.$ac_ext <<_ACEOF
19554 cat confdefs.h >>conftest.$ac_ext
19555 cat >>conftest.$ac_ext <<_ACEOF
19556 /* end confdefs.h. */
19557 #include <$ac_header>
19559 if { (ac_try="$ac_cpp conftest.$ac_ext"
19560 case "(($ac_try" in
19561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19562 *) ac_try_echo=$ac_try;;
19564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19565 $as_echo "$ac_try_echo") >&5
19566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19568 grep -v '^ *+' conftest.er1 >conftest.err
19569 rm -rf conftest.er1
19570 cat conftest.err >&5
19571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); } >/dev/null && {
19573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19574 test ! -s conftest.err
19576 ac_header_preproc=yes
19578 $as_echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.$ac_ext >&5
19581 ac_header_preproc=no
19584 rm -rf conftest.err conftest.$ac_ext
19585 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19586 $as_echo "$ac_header_preproc" >&6; }
19588 # So? What about this header?
19589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19592 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19594 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19595 ac_header_preproc=yes
19598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19599 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19601 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19603 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19605 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19607 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19609 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19613 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19614 $as_echo_n "checking for $ac_header... " >&6; }
19615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19616 $as_echo_n "(cached) " >&6
19618 eval "$as_ac_Header=\$ac_header_preproc"
19620 ac_res=`eval 'as_val=${'$as_ac_Header'}
19621 $as_echo "$as_val"'`
19622 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19623 $as_echo "$ac_res" >&6; }
19626 as_val=`eval 'as_val=${'$as_ac_Header'}
19627 $as_echo "$as_val"'`
19628 if test "x$as_val" = x""yes; then
19629 cat >>confdefs.h <<_ACEOF
19630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19638 ac_save_CPPFLAGS="$CPPFLAGS"
19639 ac_save_LDFLAGS="$LDFLAGS"
19640 # ac_save_LIBS="$LIBS"
19642 if test \! -z "$includedir" ; then
19643 CPPFLAGS="$CPPFLAGS -I$includedir"
19645 # note: $X_CFLAGS includes $x_includes
19646 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19648 if test \! -z "$libdir" ; then
19649 LDFLAGS="$LDFLAGS -L$libdir"
19651 # note: $X_LIBS includes $x_libraries
19652 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19654 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19655 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
19656 { $as_echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
19657 $as_echo_n "checking for forkpty in -lutil... " >&6; }
19658 if test "${ac_cv_lib_util_forkpty+set}" = set; then
19659 $as_echo_n "(cached) " >&6
19661 ac_check_lib_save_LIBS=$LIBS
19662 LIBS="-lutil $LIBS"
19663 cat >conftest.$ac_ext <<_ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h. */
19670 /* Override any GCC internal prototype to avoid an error.
19671 Use char because int might match the return type of a GCC
19672 builtin and then its argument prototype would still apply. */
19685 rm -rf conftest.$ac_objext conftest$ac_exeext
19686 if { (ac_try="$ac_link"
19687 case "(($ac_try" in
19688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19689 *) ac_try_echo=$ac_try;;
19691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19692 $as_echo "$ac_try_echo") >&5
19693 (eval "$ac_link") 2>conftest.er1
19695 grep -v '^ *+' conftest.er1 >conftest.err
19696 rm -rf conftest.er1
19697 cat conftest.err >&5
19698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); } && {
19700 test -z "$ac_c_werror_flag" ||
19701 test ! -s conftest.err
19702 } && test -s conftest$ac_exeext && {
19703 test "$cross_compiling" = yes ||
19704 $as_test_x conftest$ac_exeext
19706 ac_cv_lib_util_forkpty=yes
19708 $as_echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19711 ac_cv_lib_util_forkpty=no
19714 rm -rf conftest.dSYM
19715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19716 conftest$ac_exeext conftest.$ac_ext
19717 LIBS=$ac_check_lib_save_LIBS
19719 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
19720 $as_echo "$ac_cv_lib_util_forkpty" >&6; }
19721 if test "x$ac_cv_lib_util_forkpty" = x""yes; then
19723 ac_have_forkpty=yes
19724 cat >>confdefs.h <<\_ACEOF
19725 #define HAVE_FORKPTY 1
19730 CPPFLAGS="$ac_save_CPPFLAGS"
19731 LDFLAGS="$ac_save_LDFLAGS"
19732 # LIBS="$ac_save_LIBS"
19735 if test "$ac_have_forkpty" != yes ; then
19736 # we don't need (or have) -lutil on MacOS 10.4.2...
19738 ac_save_CPPFLAGS="$CPPFLAGS"
19739 ac_save_LDFLAGS="$LDFLAGS"
19740 # ac_save_LIBS="$LIBS"
19742 if test \! -z "$includedir" ; then
19743 CPPFLAGS="$CPPFLAGS -I$includedir"
19745 # note: $X_CFLAGS includes $x_includes
19746 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19748 if test \! -z "$libdir" ; then
19749 LDFLAGS="$LDFLAGS -L$libdir"
19751 # note: $X_LIBS includes $x_libraries
19752 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19754 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19755 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
19756 { $as_echo "$as_me:$LINENO: checking for forkpty in -lc" >&5
19757 $as_echo_n "checking for forkpty in -lc... " >&6; }
19758 if test "${ac_cv_lib_c_forkpty+set}" = set; then
19759 $as_echo_n "(cached) " >&6
19761 ac_check_lib_save_LIBS=$LIBS
19763 cat >conftest.$ac_ext <<_ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19770 /* Override any GCC internal prototype to avoid an error.
19771 Use char because int might match the return type of a GCC
19772 builtin and then its argument prototype would still apply. */
19785 rm -rf conftest.$ac_objext conftest$ac_exeext
19786 if { (ac_try="$ac_link"
19787 case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19792 $as_echo "$ac_try_echo") >&5
19793 (eval "$ac_link") 2>conftest.er1
19795 grep -v '^ *+' conftest.er1 >conftest.err
19796 rm -rf conftest.er1
19797 cat conftest.err >&5
19798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); } && {
19800 test -z "$ac_c_werror_flag" ||
19801 test ! -s conftest.err
19802 } && test -s conftest$ac_exeext && {
19803 test "$cross_compiling" = yes ||
19804 $as_test_x conftest$ac_exeext
19806 ac_cv_lib_c_forkpty=yes
19808 $as_echo "$as_me: failed program was:" >&5
19809 sed 's/^/| /' conftest.$ac_ext >&5
19811 ac_cv_lib_c_forkpty=no
19814 rm -rf conftest.dSYM
19815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19816 conftest$ac_exeext conftest.$ac_ext
19817 LIBS=$ac_check_lib_save_LIBS
19819 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_forkpty" >&5
19820 $as_echo "$ac_cv_lib_c_forkpty" >&6; }
19821 if test "x$ac_cv_lib_c_forkpty" = x""yes; then
19823 cat >>confdefs.h <<\_ACEOF
19824 #define HAVE_FORKPTY 1
19829 CPPFLAGS="$ac_save_CPPFLAGS"
19830 LDFLAGS="$ac_save_LDFLAGS"
19831 # LIBS="$ac_save_LIBS"
19835 ###############################################################################
19837 # Check for the XSHM server extension.
19839 ###############################################################################
19842 with_xshm_req=unspecified
19844 # Check whether --with-xshm-ext was given.
19845 if test "${with_xshm_ext+set}" = set; then
19846 withval=$with_xshm_ext; with_xshm="$withval"; with_xshm_req="$withval"
19853 case "$with_xshm" in
19858 { $as_echo "$as_me:$LINENO: checking for XSHM headers" >&5
19859 $as_echo_n "checking for XSHM headers... " >&6; }
19860 d=$with_xshm/include
19861 if test -d $d; then
19862 X_CFLAGS="-I$d $X_CFLAGS"
19863 { $as_echo "$as_me:$LINENO: result: $d" >&5
19864 $as_echo "$d" >&6; }
19866 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19867 $as_echo "not found ($d: no such directory)" >&6; }
19870 { $as_echo "$as_me:$LINENO: checking for XSHM libs" >&5
19871 $as_echo_n "checking for XSHM libs... " >&6; }
19873 if test -d $d; then
19874 X_LIBS="-L$d $X_LIBS"
19875 { $as_echo "$as_me:$LINENO: result: $d" >&5
19876 $as_echo "$d" >&6; }
19878 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19879 $as_echo "not found ($d: no such directory)" >&6; }
19882 # replace the directory string with "yes".
19883 with_xshm_req="yes"
19884 with_xshm=$with_xshm_req
19889 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
19890 echo " If it is a directory, then \`DIR/include' will be added to"
19891 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19897 if test "$with_xshm" = yes; then
19899 # first check for Xshm.h.
19901 ac_save_CPPFLAGS="$CPPFLAGS"
19902 if test \! -z "$includedir" ; then
19903 CPPFLAGS="$CPPFLAGS -I$includedir"
19905 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19906 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19907 { $as_echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5
19908 $as_echo_n "checking for X11/extensions/XShm.h... " >&6; }
19909 if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
19910 $as_echo_n "(cached) " >&6
19912 cat >conftest.$ac_ext <<_ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h. */
19918 #include <X11/Xlib.h>
19920 #include <X11/extensions/XShm.h>
19922 rm -rf conftest.$ac_objext
19923 if { (ac_try="$ac_compile"
19924 case "(($ac_try" in
19925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19926 *) ac_try_echo=$ac_try;;
19928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19929 $as_echo "$ac_try_echo") >&5
19930 (eval "$ac_compile") 2>conftest.er1
19932 grep -v '^ *+' conftest.er1 >conftest.err
19933 rm -rf conftest.er1
19934 cat conftest.err >&5
19935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); } && {
19937 test -z "$ac_c_werror_flag" ||
19938 test ! -s conftest.err
19939 } && test -s conftest.$ac_objext; then
19940 ac_cv_header_X11_extensions_XShm_h=yes
19942 $as_echo "$as_me: failed program was:" >&5
19943 sed 's/^/| /' conftest.$ac_ext >&5
19945 ac_cv_header_X11_extensions_XShm_h=no
19948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19950 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5
19951 $as_echo "$ac_cv_header_X11_extensions_XShm_h" >&6; }
19952 if test "x$ac_cv_header_X11_extensions_XShm_h" = x""yes; then
19957 CPPFLAGS="$ac_save_CPPFLAGS"
19959 # if that succeeded, then check for sys/ipc.h.
19960 if test "$have_xshm" = yes; then
19963 ac_save_CPPFLAGS="$CPPFLAGS"
19964 if test \! -z "$includedir" ; then
19965 CPPFLAGS="$CPPFLAGS -I$includedir"
19967 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19968 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
19969 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
19970 { $as_echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
19971 $as_echo_n "checking for sys/ipc.h... " >&6; }
19972 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
19973 $as_echo_n "(cached) " >&6
19975 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
19976 $as_echo "$ac_cv_header_sys_ipc_h" >&6; }
19978 # Is the header compilable?
19979 { $as_echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
19980 $as_echo_n "checking sys/ipc.h usability... " >&6; }
19981 cat >conftest.$ac_ext <<_ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h. */
19987 $ac_includes_default
19988 #include <sys/ipc.h>
19990 rm -rf conftest.$ac_objext
19991 if { (ac_try="$ac_compile"
19992 case "(($ac_try" in
19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994 *) ac_try_echo=$ac_try;;
19996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19997 $as_echo "$ac_try_echo") >&5
19998 (eval "$ac_compile") 2>conftest.er1
20000 grep -v '^ *+' conftest.er1 >conftest.err
20001 rm -rf conftest.er1
20002 cat conftest.err >&5
20003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); } && {
20005 test -z "$ac_c_werror_flag" ||
20006 test ! -s conftest.err
20007 } && test -s conftest.$ac_objext; then
20008 ac_header_compiler=yes
20010 $as_echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20013 ac_header_compiler=no
20016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20017 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20018 $as_echo "$ac_header_compiler" >&6; }
20020 # Is the header present?
20021 { $as_echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
20022 $as_echo_n "checking sys/ipc.h presence... " >&6; }
20023 cat >conftest.$ac_ext <<_ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20029 #include <sys/ipc.h>
20031 if { (ac_try="$ac_cpp conftest.$ac_ext"
20032 case "(($ac_try" in
20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034 *) ac_try_echo=$ac_try;;
20036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20037 $as_echo "$ac_try_echo") >&5
20038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20040 grep -v '^ *+' conftest.er1 >conftest.err
20041 rm -rf conftest.er1
20042 cat conftest.err >&5
20043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } >/dev/null && {
20045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20046 test ! -s conftest.err
20048 ac_header_preproc=yes
20050 $as_echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.$ac_ext >&5
20053 ac_header_preproc=no
20056 rm -rf conftest.err conftest.$ac_ext
20057 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20058 $as_echo "$ac_header_preproc" >&6; }
20060 # So? What about this header?
20061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20063 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
20064 $as_echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20065 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the compiler's result" >&5
20066 $as_echo "$as_me: WARNING: sys/ipc.h: proceeding with the compiler's result" >&2;}
20067 ac_header_preproc=yes
20070 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
20071 $as_echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
20072 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
20073 $as_echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
20074 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: see the Autoconf documentation" >&5
20075 $as_echo "$as_me: WARNING: sys/ipc.h: see the Autoconf documentation" >&2;}
20076 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&5
20077 $as_echo "$as_me: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&2;}
20078 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
20079 $as_echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
20080 { $as_echo "$as_me:$LINENO: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&5
20081 $as_echo "$as_me: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&2;}
20085 { $as_echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
20086 $as_echo_n "checking for sys/ipc.h... " >&6; }
20087 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
20088 $as_echo_n "(cached) " >&6
20090 ac_cv_header_sys_ipc_h=$ac_header_preproc
20092 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
20093 $as_echo "$ac_cv_header_sys_ipc_h" >&6; }
20096 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then
20101 CPPFLAGS="$ac_save_CPPFLAGS"
20104 # if that succeeded, then check for sys/shm.h.
20105 if test "$have_xshm" = yes; then
20108 ac_save_CPPFLAGS="$CPPFLAGS"
20109 if test \! -z "$includedir" ; then
20110 CPPFLAGS="$CPPFLAGS -I$includedir"
20112 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20113 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
20114 if test "${ac_cv_header_sys_shm_h+set}" = set; then
20115 { $as_echo "$as_me:$LINENO: checking for sys/shm.h" >&5
20116 $as_echo_n "checking for sys/shm.h... " >&6; }
20117 if test "${ac_cv_header_sys_shm_h+set}" = set; then
20118 $as_echo_n "(cached) " >&6
20120 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
20121 $as_echo "$ac_cv_header_sys_shm_h" >&6; }
20123 # Is the header compilable?
20124 { $as_echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
20125 $as_echo_n "checking sys/shm.h usability... " >&6; }
20126 cat >conftest.$ac_ext <<_ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h. */
20132 $ac_includes_default
20133 #include <sys/shm.h>
20135 rm -rf conftest.$ac_objext
20136 if { (ac_try="$ac_compile"
20137 case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20142 $as_echo "$ac_try_echo") >&5
20143 (eval "$ac_compile") 2>conftest.er1
20145 grep -v '^ *+' conftest.er1 >conftest.err
20146 rm -rf conftest.er1
20147 cat conftest.err >&5
20148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); } && {
20150 test -z "$ac_c_werror_flag" ||
20151 test ! -s conftest.err
20152 } && test -s conftest.$ac_objext; then
20153 ac_header_compiler=yes
20155 $as_echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20158 ac_header_compiler=no
20161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20162 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20163 $as_echo "$ac_header_compiler" >&6; }
20165 # Is the header present?
20166 { $as_echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
20167 $as_echo_n "checking sys/shm.h presence... " >&6; }
20168 cat >conftest.$ac_ext <<_ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h. */
20174 #include <sys/shm.h>
20176 if { (ac_try="$ac_cpp conftest.$ac_ext"
20177 case "(($ac_try" in
20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179 *) ac_try_echo=$ac_try;;
20181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20182 $as_echo "$ac_try_echo") >&5
20183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20185 grep -v '^ *+' conftest.er1 >conftest.err
20186 rm -rf conftest.er1
20187 cat conftest.err >&5
20188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); } >/dev/null && {
20190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20191 test ! -s conftest.err
20193 ac_header_preproc=yes
20195 $as_echo "$as_me: failed program was:" >&5
20196 sed 's/^/| /' conftest.$ac_ext >&5
20198 ac_header_preproc=no
20201 rm -rf conftest.err conftest.$ac_ext
20202 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20203 $as_echo "$ac_header_preproc" >&6; }
20205 # So? What about this header?
20206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20208 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
20209 $as_echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20210 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the compiler's result" >&5
20211 $as_echo "$as_me: WARNING: sys/shm.h: proceeding with the compiler's result" >&2;}
20212 ac_header_preproc=yes
20215 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
20216 $as_echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
20217 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
20218 $as_echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
20219 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: see the Autoconf documentation" >&5
20220 $as_echo "$as_me: WARNING: sys/shm.h: see the Autoconf documentation" >&2;}
20221 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&5
20222 $as_echo "$as_me: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&2;}
20223 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
20224 $as_echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
20225 { $as_echo "$as_me:$LINENO: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&5
20226 $as_echo "$as_me: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&2;}
20230 { $as_echo "$as_me:$LINENO: checking for sys/shm.h" >&5
20231 $as_echo_n "checking for sys/shm.h... " >&6; }
20232 if test "${ac_cv_header_sys_shm_h+set}" = set; then
20233 $as_echo_n "(cached) " >&6
20235 ac_cv_header_sys_shm_h=$ac_header_preproc
20237 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
20238 $as_echo "$ac_cv_header_sys_shm_h" >&6; }
20241 if test "x$ac_cv_header_sys_shm_h" = x""yes; then
20246 CPPFLAGS="$ac_save_CPPFLAGS"
20249 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
20250 # to exist, but the library code to not exist. And even better, the library
20251 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
20252 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
20253 # that's not quite right, but close enough.)
20257 if `uname -v` -eq 3 ; then
20260 ac_save_CPPFLAGS="$CPPFLAGS"
20261 ac_save_LDFLAGS="$LDFLAGS"
20262 # ac_save_LIBS="$LIBS"
20264 if test \! -z "$includedir" ; then
20265 CPPFLAGS="$CPPFLAGS -I$includedir"
20267 # note: $X_CFLAGS includes $x_includes
20268 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20270 if test \! -z "$libdir" ; then
20271 LDFLAGS="$LDFLAGS -L$libdir"
20273 # note: $X_LIBS includes $x_libraries
20274 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
20276 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
20277 LDFLAGS=`eval eval eval eval eval eval eval eval eval echo $LDFLAGS`
20278 { $as_echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXextSam" >&5
20279 $as_echo_n "checking for XShmQueryExtension in -lXextSam... " >&6; }
20280 if test "${ac_cv_lib_XextSam_XShmQueryExtension+set}" = set; then
20281 $as_echo_n "(cached) " >&6
20283 ac_check_lib_save_LIBS=$LIBS
20284 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
20285 cat >conftest.$ac_ext <<_ACEOF
20288 cat confdefs.h >>conftest.$ac_ext
20289 cat >>conftest.$ac_ext <<_ACEOF
20290 /* end confdefs.h. */
20292 /* Override any GCC internal prototype to avoid an error.
20293 Use char because int might match the return type of a GCC
20294 builtin and then its argument prototype would still apply. */
20298 char XShmQueryExtension ();
20302 return XShmQueryExtension ();
20307 rm -rf conftest.$ac_objext conftest$ac_exeext
20308 if { (ac_try="$ac_link"
20309 case "(($ac_try" in
20310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311 *) ac_try_echo=$ac_try;;
20313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20314 $as_echo "$ac_try_echo") >&5
20315 (eval "$ac_link") 2>conftest.er1
20317 grep -v '^ *+' conftest.er1 >conftest.err
20318 rm -rf conftest.er1
20319 cat conftest.err >&5
20320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321 (exit $ac_status); } && {
20322 test -z "$ac_c_werror_flag" ||
20323 test ! -s conftest.err
20324 } && test -s conftest$ac_exeext && {
20325 test "$cross_compiling" = yes ||
20326 $as_test_x conftest$ac_exeext
20328 ac_cv_lib_XextSam_XShmQueryExtension=yes
20330 $as_echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20333 ac_cv_lib_XextSam_XShmQueryExtension=no
20336 rm -rf conftest.dSYM
20337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20338 conftest$ac_exeext conftest.$ac_ext
20339 LIBS=$ac_check_lib_save_LIBS
20341 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_XextSam_XShmQueryExtension" >&5
20342 $as_echo "$ac_cv_lib_XextSam_XShmQueryExtension" >&6; }
20343 if test "x$ac_cv_lib_XextSam_XShmQueryExtension" = x""yes; then
20344 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
20349 CPPFLAGS="$ac_save_CPPFLAGS"
20350 LDFLAGS="$ac_save_LDFLAGS"
20351 # LIBS="$ac_save_LIBS"
20357 # if that succeeded, then we've really got it.
20358 if test "$have_xshm" = yes; then
20359 cat >>confdefs.h <<\_ACEOF
20360 #define HAVE_XSHM_EXTENSION 1
20365 elif test "$with_xshm" != no; then
20366 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
20371 ###############################################################################
20373 # Check for the DOUBLE-BUFFER server extension.
20375 ###############################################################################
20378 with_xdbe_req=unspecified
20380 # Check whether --with-xdbe-ext was given.
20381 if test "${with_xdbe_ext+set}" = set; then
20382 withval=$with_xdbe_ext; with_xdbe="$withval"; with_xdbe_req="$withval"
20389 case "$with_xdbe" in
20394 { $as_echo "$as_me:$LINENO: checking for DOUBLE-BUFFER headers" >&5
20395 $as_echo_n "checking for DOUBLE-BUFFER headers... " >&6; }
20396 d=$with_xdbe/include
20397 if test -d $d; then
20398 X_CFLAGS="-I$d $X_CFLAGS"
20399 { $as_echo "$as_me:$LINENO: result: $d" >&5
20400 $as_echo "$d" >&6; }
20402 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20403 $as_echo "not found ($d: no such directory)" >&6; }
20406 { $as_echo "$as_me:$LINENO: checking for DOUBLE-BUFFER libs" >&5
20407 $as_echo_n "checking for DOUBLE-BUFFER libs... " >&6; }
20409 if test -d $d; then
20410 X_LIBS="-L$d $X_LIBS"
20411 { $as_echo "$as_me:$LINENO: result: $d" >&5
20412 $as_echo "$d" >&6; }
20414 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20415 $as_echo "not found ($d: no such directory)" >&6; }
20418 # replace the directory string with "yes".
20419 with_xdbe_req="yes"
20420 with_xdbe=$with_xdbe_req
20425 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
20426 echo " If it is a directory, then \`DIR/include' will be added to"
20427 echo " the -I list, and \`DIR/lib' will be added to the -L list."
20433 if test "$with_xdbe" = yes; then
20436 ac_save_CPPFLAGS="$CPPFLAGS"
20437 if test \! -z "$includedir" ; then
20438 CPPFLAGS="$CPPFLAGS -I$includedir"
20440 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20441 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
20442 { $as_echo "$as_me:$LINENO: checking for X11/extensions/Xdbe.h" >&5
20443 $as_echo_n "checking for X11/extensions/Xdbe.h... " >&6; }
20444 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
20445 $as_echo_n "(cached) " >&6
20447 cat >conftest.$ac_ext <<_ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h. */
20453 #include <X11/Xlib.h>
20455 #include <X11/extensions/Xdbe.h>
20457 rm -rf conftest.$ac_objext
20458 if { (ac_try="$ac_compile"
20459 case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20464 $as_echo "$ac_try_echo") >&5
20465 (eval "$ac_compile") 2>conftest.er1
20467 grep -v '^ *+' conftest.er1 >conftest.err
20468 rm -rf conftest.er1
20469 cat conftest.err >&5
20470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); } && {
20472 test -z "$ac_c_werror_flag" ||
20473 test ! -s conftest.err
20474 } && test -s conftest.$ac_objext; then
20475 ac_cv_header_X11_extensions_Xdbe_h=yes
20477 $as_echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20480 ac_cv_header_X11_extensions_Xdbe_h=no
20483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20485 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
20486 $as_echo "$ac_cv_header_X11_extensions_Xdbe_h" >&6; }
20487 if test "x$ac_cv_header_X11_extensions_Xdbe_h" = x""yes; then
20492 CPPFLAGS="$ac_save_CPPFLAGS"
20493 if test "$have_xdbe" = yes; then
20494 cat >>confdefs.h <<\_ACEOF
20495 #define HAVE_DOUBLE_BUFFER_EXTENSION 1
20500 elif test "$with_xdbe" != no; then
20501 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
20506 ###############################################################################
20508 # Check for the SGI XReadDisplay server extension.
20510 # Note: this has to be down here, rather than up with the other server
20511 # extension tests, so that the output of `configure --help' is in the
20512 # right order. Arrgh!
20514 ###############################################################################
20516 have_readdisplay=no
20517 with_readdisplay_req=unspecified
20519 # Check whether --with-readdisplay was given.
20520 if test "${with_readdisplay+set}" = set; then
20521 withval=$with_readdisplay; with_readdisplay="$withval"; with_readdisplay_req="$withval"
20523 with_readdisplay=yes
20528 case "$with_readdisplay" in
20533 { $as_echo "$as_me:$LINENO: checking for XReadDisplay headers" >&5
20534 $as_echo_n "checking for XReadDisplay headers... " >&6; }
20535 d=$with_readdisplay/include
20536 if test -d $d; then
20537 X_CFLAGS="-I$d $X_CFLAGS"
20538 { $as_echo "$as_me:$LINENO: result: $d" >&5
20539 $as_echo "$d" >&6; }
20541 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20542 $as_echo "not found ($d: no such directory)" >&6; }
20545 { $as_echo "$as_me:$LINENO: checking for XReadDisplay libs" >&5
20546 $as_echo_n "checking for XReadDisplay libs... " >&6; }
20547 d=$with_readdisplay/lib
20548 if test -d $d; then
20549 X_LIBS="-L$d $X_LIBS"
20550 { $as_echo "$as_me:$LINENO: result: $d" >&5
20551 $as_echo "$d" >&6; }
20553 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20554 $as_echo "not found ($d: no such directory)" >&6; }
20557 # replace the directory string with "yes".
20558 with_readdisplay_req="yes"
20559 with_readdisplay=$with_readdisplay_req
20564 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
20565 echo " If it is a directory, then \`DIR/include' will be added to"
20566 echo " the -I list, and \`DIR/lib' will be added to the -L list."
20572 if test "$with_readdisplay" = yes; then
20574 ac_save_CPPFLAGS="$CPPFLAGS"
20575 if test \! -z "$includedir" ; then
20576 CPPFLAGS="$CPPFLAGS -I$includedir"
20578 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20579 CPPFLAGS=`eval eval eval eval eval eval eval eval eval echo $CPPFLAGS`
20580 { $as_echo "$as_me:$LINENO: checking for X11/extensions/readdisplay.h" >&5
20581 $as_echo_n "checking for X11/extensions/readdisplay.h... " >&6; }
20582 if test "${ac_cv_header_X11_extensions_readdisplay_h+set}" = set; then
20583 $as_echo_n "(cached) " >&6
20585 cat >conftest.$ac_ext <<_ACEOF
20588 cat confdefs.h >>conftest.$ac_ext
20589 cat >>conftest.$ac_ext <<_ACEOF
20590 /* end confdefs.h. */
20591 #include <X11/Xlib.h>
20593 #include <X11/extensions/readdisplay.h>
20595 rm -rf conftest.$ac_objext
20596 if { (ac_try="$ac_compile"
20597 case "(($ac_try" in
20598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20599 *) ac_try_echo=$ac_try;;
20601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20602 $as_echo "$ac_try_echo") >&5
20603 (eval "$ac_compile") 2>conftest.er1
20605 grep -v '^ *+' conftest.er1 >conftest.err
20606 rm -rf conftest.er1
20607 cat conftest.err >&5
20608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); } && {
20610 test -z "$ac_c_werror_flag" ||
20611 test ! -s conftest.err
20612 } && test -s conftest.$ac_objext; then
20613 ac_cv_header_X11_extensions_readdisplay_h=yes
20615 $as_echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20618 ac_cv_header_X11_extensions_readdisplay_h=no
20621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20623 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_readdisplay_h" >&5
20624 $as_echo "$ac_cv_header_X11_extensions_readdisplay_h" >&6; }
20625 if test "x$ac_cv_header_X11_extensions_readdisplay_h" = x""yes; then
20626 cat >>confdefs.h <<\_ACEOF
20627 #define HAVE_READ_DISPLAY_EXTENSION 1
20633 CPPFLAGS="$ac_save_CPPFLAGS"
20634 elif test "$with_readdisplay" != no; then
20635 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
20640 ###############################################################################
20642 # Check for a directory full of images to use as the default value
20643 # of the "imageDirectory" preference.
20645 ###############################################################################
20648 with_imagedir_req=unspecified
20651 # Check whether --with-image-directory was given.
20652 if test "${with_image_directory+set}" = set; then
20653 withval=$with_image_directory; with_imagedir="$withval"; with_imagedir_req="$withval"
20658 # no HANDLE_X_PATH_ARG for this one
20660 case "$with_imagedir" in
20663 { $as_echo "$as_me:$LINENO: checking for image directory $with_imagedir" >&5
20664 $as_echo_n "checking for image directory $with_imagedir... " >&6; }
20665 if test -d "$with_imagedir" ; then
20666 { $as_echo "$as_me:$LINENO: result: yes" >&5
20667 $as_echo "yes" >&6; }
20669 { $as_echo "$as_me:$LINENO: result: no" >&5
20670 $as_echo "no" >&6; }
20677 #### Could use some more defaults here...
20679 "/usr/share/backgrounds/images/" \
20680 "/usr/share/wallpapers/" \
20681 "/Library/Desktop Pictures/" \
20683 if test -z "$with_imagedir"; then
20684 { $as_echo "$as_me:$LINENO: checking for image directory $dd" >&5
20685 $as_echo_n "checking for image directory $dd... " >&6; }
20686 if test -d "$dd" ; then
20687 { $as_echo "$as_me:$LINENO: result: yes" >&5
20688 $as_echo "yes" >&6; }
20689 with_imagedir="$dd"
20691 { $as_echo "$as_me:$LINENO: result: no" >&5
20692 $as_echo "no" >&6; }
20703 echo "error: must be an absolute path: --with-image-directory=$with_imagedir_req"
20707 ac_cv_imagedir="$with_imagedir"
20709 DEFAULT_IMAGES_P='True'
20710 DEFAULT_IMAGE_DIRECTORY="$ac_cv_imagedir"
20712 if test -z "$DEFAULT_IMAGE_DIRECTORY" ; then
20713 DEFAULT_IMAGES_P='False'
20717 ###############################################################################
20719 # Pick a text file to use as the default of the "textFile" preference.
20720 # Any old file will do, but preferably one that will make interesting
20721 # shapes when displayed by "starwars" and "fontglide".
20723 ###############################################################################
20726 with_textfile_req=unspecified
20729 # Check whether --with-text-file was given.
20730 if test "${with_text_file+set}" = set; then
20731 withval=$with_text_file; with_textfile="$withval"; with_textfile_req="$withval"
20736 # no HANDLE_X_PATH_ARG for this one
20738 case "$with_textfile" in
20741 { $as_echo "$as_me:$LINENO: checking for text file $with_textfile" >&5
20742 $as_echo_n "checking for text file $with_textfile... " >&6; }
20743 if test -f "$with_textfile" ; then
20744 { $as_echo "$as_me:$LINENO: result: yes" >&5
20745 $as_echo "yes" >&6; }
20747 { $as_echo "$as_me:$LINENO: result: no" >&5
20748 $as_echo "no" >&6; }
20755 #### Could use some more defaults here...
20757 "/usr/X11R6/lib/X11/doc/README" \
20758 "/usr/share/doc/xserver-common/copyright" \
20759 "/usr/share/doc/xserver-xorg-core/copyright" \
20760 "/usr/X11R6/README" \
20761 "/usr/share/doc/libX11*/COPYING" \
20762 "/usr/X11/share/X11/doc/README*" \
20763 "/usr/share/doc/debian/debian-manifesto" \
20765 if test -z "$with_textfile"; then
20766 { $as_echo "$as_me:$LINENO: checking for text file $f" >&5
20767 $as_echo_n "checking for text file $f... " >&6; }
20768 f=`/bin/ls $f 2>&- | head -1`
20769 if test -f "$f" ; then
20770 { $as_echo "$as_me:$LINENO: result: yes" >&5
20771 $as_echo "yes" >&6; }
20774 { $as_echo "$as_me:$LINENO: result: no" >&5
20775 $as_echo "no" >&6; }
20786 echo "error: must be an absolute path: --with-text-file=$with_textfile_req"
20790 ac_cv_textfile="$with_textfile"
20792 DEFAULT_TEXT_FILE="$ac_cv_textfile"
20795 ###############################################################################
20797 # Check the browser to see help URL
20799 ###############################################################################
20802 with_browser_req=unspecified
20805 # Check whether --with-browser was given.
20806 if test "${with_browser+set}" = set; then
20807 withval=$with_browser; with_browser="$withval"; with_browser_req="$withval"
20812 # no HANDLE_X_PATH_ARG for this one
20814 case "$with_browser" in
20818 WITH_BROWSER=$with_browser
20819 gnome_open_program=$with_browser
20820 { $as_echo "$as_me:$LINENO: checking for browser $with_browser" >&5
20821 $as_echo_n "checking for browser $with_browser... " >&6; }
20822 with_browser_fullpath=`which $with_browser 2>/dev/null`
20823 case $with_browser_fullpath in
20825 { $as_echo "$as_me:$LINENO: result: yes" >&5
20826 $as_echo "yes" >&6; }
20830 { $as_echo "$as_me:$LINENO: result: no" >&5
20831 $as_echo "no" >&6; }
20832 # Only warning: we don't want to install all packages for the
20833 # dependency of the browser in building stage...
20834 echo "WARNING: browser not found: --with-browser=$with_browser"
20839 ac_cv_browser="$with_browser"
20841 ###############################################################################
20843 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
20844 # This should be safe, but let's give people the option.
20846 ###############################################################################
20848 setuid_hacks_default=no
20849 setuid_hacks="$setuid_hacks_default"
20851 # Check whether --with-setuid-hacks was given.
20852 if test "${with_setuid_hacks+set}" = set; then
20853 withval=$with_setuid_hacks; setuid_hacks="$withval"
20855 setuid_hacks="$setuid_hacks_default"
20860 case "$setuid_hacks" in
20865 { $as_echo "$as_me:$LINENO: checking for setuid hacks headers" >&5
20866 $as_echo_n "checking for setuid hacks headers... " >&6; }
20867 d=$setuid_hacks/include
20868 if test -d $d; then
20869 X_CFLAGS="-I$d $X_CFLAGS"
20870 { $as_echo "$as_me:$LINENO: result: $d" >&5
20871 $as_echo "$d" >&6; }
20873 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20874 $as_echo "not found ($d: no such directory)" >&6; }
20877 { $as_echo "$as_me:$LINENO: checking for setuid hacks libs" >&5
20878 $as_echo_n "checking for setuid hacks libs... " >&6; }
20879 d=$setuid_hacks/lib
20880 if test -d $d; then
20881 X_LIBS="-L$d $X_LIBS"
20882 { $as_echo "$as_me:$LINENO: result: $d" >&5
20883 $as_echo "$d" >&6; }
20885 { $as_echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20886 $as_echo "not found ($d: no such directory)" >&6; }
20889 # replace the directory string with "yes".
20890 setuid_hacks_req="yes"
20891 setuid_hacks=$setuid_hacks_req
20896 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
20897 echo " If it is a directory, then \`DIR/include' will be added to"
20898 echo " the -I list, and \`DIR/lib' will be added to the -L list."
20904 if test "$setuid_hacks" = yes; then
20906 elif test "$setuid_hacks" != no; then
20907 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
20912 ###############################################################################
20914 # Done testing. Now, set up the various -I and -L variables,
20915 # and decide which GUI program to build by default.
20917 ###############################################################################
20924 if test \! -z "$includedir" ; then
20925 INCLUDES="$INCLUDES -I$includedir"
20928 if test \! -z "$libdir" ; then
20929 LDFLAGS="$LDFLAGS -L$libdir"
20933 PREFERRED_DEMO_PROGRAM=''
20935 if test "$have_motif" = yes; then
20936 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
20937 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
20939 if test "$have_gtk" = yes; then
20940 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
20941 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
20945 if test "$have_kerberos" = yes; then
20946 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
20947 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
20949 if test "$have_pam" = yes; then
20950 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
20951 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
20952 INSTALL_PAM="install-pam"
20954 if test "$have_passwd_helper" = yes; then
20955 PASSWD_SRCS="$PASSWD_SRCS \$(PWHELPER_SRCS)"
20956 PASSWD_OBJS="$PASSWD_OBJS \$(PWHELPER_OBJS)"
20958 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
20959 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
20962 if test "$enable_locking" = yes; then
20963 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
20964 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
20966 LOCK_SRCS='$(NOLOCK_SRCS_1)'
20967 LOCK_OBJS='$(NOLOCK_OBJS_1)'
20970 if test "$ac_macosx" = yes; then
20971 EXES_OSX='$(EXES_OSX)'
20972 SCRIPTS_OSX='$(SCRIPTS_OSX)'
20973 MEN_OSX='$(MEN_OSX)'
20981 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
20983 if test "$need_setuid" = yes; then
20989 if test "$setuid_hacks" = yes; then
20996 if test "$have_gl" = yes; then
20997 GL_EXES='$(GL_EXES)'
20998 SUID_EXES='$(SUID_EXES)'
20999 RETIRED_GL_EXES='$(RETIRED_GL_EXES)'
21000 GL_UTIL_EXES='$(GL_UTIL_EXES)'
21007 if test "$have_gle" = yes; then
21008 GLE_EXES='$(GLE_EXES)'
21014 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
21015 JPEG_EXES='$(JPEG_EXES)'
21019 # Another substitution in the XScreenSaver.ad.in file:
21021 if test "$gnome_open_program" != ''; then
21025 elif test "$gnome_url_show_program" != ''; then
21036 # Set PO_DATADIR to something sensible.
21038 { $as_echo "$as_me:$LINENO: checking for locale directory" >&5
21039 $as_echo_n "checking for locale directory... " >&6; }
21040 if test -n "$GTK_DATADIR" ; then
21041 PO_DATADIR="$GTK_DATADIR"
21042 elif test "$have_gtk" = yes; then
21043 PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
21044 PO_DATADIR="$PO_DATADIR/share"
21047 if test -z "$PO_DATADIR" ; then
21049 # #### Total fucking kludge --
21050 # Map /build/prefix/usr/X11R6/share/ to /build/prefix/usr/share/
21051 # but of course we need to expand all the nested variables to do that...
21053 dd=`eval eval eval eval eval eval eval eval eval eval eval echo $datadir`
21054 PO_DATADIR=`echo $dd | sed 's@/X11R6/@/@'`
21057 { $as_echo "$as_me:$LINENO: result: $PO_DATADIR/locale" >&5
21058 $as_echo "$PO_DATADIR/locale" >&6; }
21061 # canonicalize slashes.
21062 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
21064 # gcc 3.0 likes to issue this warning for every file:
21066 # cc1: warning: changing search order for system directory "/usr/local/include"
21067 # cc1: warning: as it has already been specified as a non-system directory
21069 # Yay. We can only avoid that by deleting "-I${prefix}/include" from the list.
21070 # Which *should* be totally redundant, and thus an ok thing to delete?
21072 INCLUDES=`echo "$INCLUDES" | sed 's@ -I${prefix}/include@@g;'`
21075 ###############################################################################
21077 # Perform substitutions and write Makefiles.
21079 ###############################################################################
21145 APPDEFAULTS=$ac_x_app_defaults
21153 ac_config_files="$ac_config_files Makefile utils/Makefile driver/Makefile hacks/Makefile hacks/glx/Makefile po/Makefile.in driver/XScreenSaver.ad"
21155 cat >confcache <<\_ACEOF
21156 # This file is a shell script that caches the results of configure
21157 # tests run on this system so they can be shared between configure
21158 # scripts and configure runs, see configure's option --config-cache.
21159 # It is not useful on other systems. If it contains results you don't
21160 # want to keep, you may remove or edit it.
21162 # config.status only pays attention to the cache file if you give it
21163 # the --recheck option to rerun configure.
21165 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21166 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21167 # following values.
21171 # The following way of writing the cache mishandles newlines in values,
21172 # but we know of no workaround that is simple, portable, and efficient.
21173 # So, we kill variables containing newlines.
21174 # Ultrix sh set writes to stderr and can't be redirected directly,
21175 # and sets the high bit in the cache file unless we assign to the vars.
21177 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21178 eval ac_val=\$$ac_var
21182 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21183 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21186 _ | IFS | as_nl) ;; #(
21187 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21188 *) $as_unset $ac_var ;;
21194 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21195 *${as_nl}ac_space=\ *)
21196 # `set' does not quote correctly, so add quotes (double-quote
21197 # substitution turns \\\\ into \\, and sed turns \\ into \).
21200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21203 # `set' quotes correctly as required by POSIX, so do not add quotes.
21204 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21213 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21215 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21217 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21218 if test -w "$cache_file"; then
21219 test "x$cache_file" != "x/dev/null" &&
21220 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21221 $as_echo "$as_me: updating cache $cache_file" >&6;}
21222 cat confcache >$cache_file
21224 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21225 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21230 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21231 # Let make expand exec_prefix.
21232 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21234 DEFS=-DHAVE_CONFIG_H
21238 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21239 # 1. Remove the extension, and $U if already installed.
21240 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21241 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21242 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21243 # will be set to the directory where LIBOBJS objects are built.
21244 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21245 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21247 LIBOBJS=$ac_libobjs
21249 LTLIBOBJS=$ac_ltlibobjs
21254 mv -f po/POTFILES po/POTFILES.tmp
21255 sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
21256 rm -f po/POTFILES.tmp
21260 : ${CONFIG_STATUS=./config.status}
21262 ac_clean_files_save=$ac_clean_files
21263 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21264 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21265 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21266 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21268 # Generated by $as_me.
21269 # Run this file to recreate the current configuration.
21270 # Compiler output produced by configure, useful for debugging
21271 # configure, is in config.log if it exists.
21274 ac_cs_recheck=false
21276 SHELL=\${CONFIG_SHELL-$SHELL}
21279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21280 ## --------------------- ##
21281 ## M4sh Initialization. ##
21282 ## --------------------- ##
21284 # Be more Bourne compatible
21285 DUALCASE=1; export DUALCASE # for MKS sh
21286 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21289 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21290 # is contrary to our usage. Disable this feature.
21291 alias -g '${1+"$@"}'='"$@"'
21292 setopt NO_GLOB_SUBST
21294 case `(set -o) 2>/dev/null` in
21295 *posix*) set -o posix ;;
21304 # Avoid depending upon Character Ranges.
21305 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21306 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21307 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21308 as_cr_digits='0123456789'
21309 as_cr_alnum=$as_cr_Letters$as_cr_digits
21314 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21315 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21316 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21317 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21318 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21319 as_echo='printf %s\n'
21320 as_echo_n='printf %s'
21322 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21323 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21324 as_echo_n='/usr/ucb/echo -n'
21326 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21327 as_echo_n_body='eval
21331 expr "X$arg" : "X\\(.*\\)$as_nl";
21332 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21334 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21336 export as_echo_n_body
21337 as_echo_n='sh -c $as_echo_n_body as_echo'
21339 export as_echo_body
21340 as_echo='sh -c $as_echo_body as_echo'
21343 # The user is always right.
21344 if test "${PATH_SEPARATOR+set}" != set; then
21346 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21347 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21352 # Support unset when possible.
21353 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21361 # We need space, tab and new line, in precisely that order. Quoting is
21362 # there to prevent editors from complaining about space-tab.
21363 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21364 # splitting by setting IFS to empty value.)
21367 # Find who we are. Look in the path if we contain no directory separator.
21369 *[\\/]* ) as_myself=$0 ;;
21370 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21371 for as_dir in $PATH
21374 test -z "$as_dir" && as_dir=.
21375 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21381 # We did not find ourselves, most probably we were run as `sh COMMAND'
21382 # in which case we are not to be found in the path.
21383 if test "x$as_myself" = x; then
21386 if test ! -f "$as_myself"; then
21387 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21388 { (exit 1); exit 1; }
21391 # Work around bugs in pre-3.0 UWIN ksh.
21392 for as_var in ENV MAIL MAILPATH
21393 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21405 # Required to use basename.
21406 if expr a : '\(a\)' >/dev/null 2>&1 &&
21407 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21413 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21414 as_basename=basename
21420 # Name of the executable.
21421 as_me=`$as_basename -- "$0" ||
21422 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21423 X"$0" : 'X\(//\)$' \| \
21424 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21426 sed '/^.*\/\([^/][^/]*\)\/*$/{
21445 as_lineno_1=$LINENO
21446 as_lineno_2=$LINENO
21447 test "x$as_lineno_1" != "x$as_lineno_2" &&
21448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21451 # uniformly replaced by the line number. The first 'sed' inserts a
21452 # line-number line after each line using $LINENO; the second 'sed'
21453 # does the real work. The second script uses 'N' to pair each
21454 # line-number line with the line containing $LINENO, and appends
21455 # trailing '-' during substitution so that $LINENO is not a special
21456 # case at line end.
21457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21458 # scripts with optimization help from Paolo Bonzini. Blame Lee
21459 # E. McMahon (1931-1989) for sed's syntax. :-)
21471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21474 ' >$as_me.lineno &&
21475 chmod +x "$as_me.lineno" ||
21476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21477 { (exit 1); exit 1; }; }
21479 # Don't try to exec as it changes $[0], causing all sort of problems
21480 # (the dirname of $[0] is not the place where we might find the
21481 # original and so on. Autoconf is especially sensitive to this).
21482 . "./$as_me.lineno"
21483 # Exit status is that of the last command.
21488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21494 ECHO_C= ECHO_N= ECHO_T=
21495 case `echo -n x` in
21497 case `echo 'x\c'` in
21498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21504 if expr a : '\(a\)' >/dev/null 2>&1 &&
21505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21511 rm -f conf$$ conf$$.exe conf$$.file
21512 if test -d conf$$.dir; then
21513 rm -f conf$$.dir/conf$$.file
21516 mkdir conf$$.dir 2>/dev/null
21518 if (echo >conf$$.file) 2>/dev/null; then
21519 if ln -s conf$$.file conf$$ 2>/dev/null; then
21521 # ... but there are two gotchas:
21522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21524 # In both cases, we have to default to `cp -p'.
21525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21527 elif ln conf$$.file conf$$ 2>/dev/null; then
21535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21536 rmdir conf$$.dir 2>/dev/null
21538 if mkdir -p . 2>/dev/null; then
21541 test -d ./-p && rmdir ./-p
21545 if test -x / >/dev/null 2>&1; then
21546 as_test_x='test -x'
21548 if ls -dL / >/dev/null 2>&1; then
21555 if test -d "$1"; then
21561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21562 ???[sx]*):;;*)false;;esac;fi
21566 as_executable_p=$as_test_x
21568 # Sed expression to map a string onto a valid CPP name.
21569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21571 # Sed expression to map a string onto a valid variable name.
21572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21577 # Save the log message, to keep $[0] and so on meaningful, and to
21578 # report actual input values of CONFIG_FILES etc. instead of their
21579 # values after options handling.
21581 This file was extended by $as_me, which was
21582 generated by GNU Autoconf 2.63. Invocation command line was
21584 CONFIG_FILES = $CONFIG_FILES
21585 CONFIG_HEADERS = $CONFIG_HEADERS
21586 CONFIG_LINKS = $CONFIG_LINKS
21587 CONFIG_COMMANDS = $CONFIG_COMMANDS
21590 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21595 case $ac_config_files in *"
21596 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21599 case $ac_config_headers in *"
21600 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21605 # Files that config.status was made for.
21606 config_files="$ac_config_files"
21607 config_headers="$ac_config_headers"
21608 config_commands="$ac_config_commands"
21612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21614 \`$as_me' instantiates files from templates according to the
21615 current configuration.
21617 Usage: $0 [OPTION]... [FILE]...
21619 -h, --help print this help, then exit
21620 -V, --version print version number and configuration settings, then exit
21621 -q, --quiet, --silent
21622 do not print progress messages
21623 -d, --debug don't remove temporary files
21624 --recheck update $as_me by reconfiguring in the same conditions
21625 --file=FILE[:TEMPLATE]
21626 instantiate the configuration file FILE
21627 --header=FILE[:TEMPLATE]
21628 instantiate the configuration header FILE
21630 Configuration files:
21633 Configuration headers:
21636 Configuration commands:
21639 Report bugs to <bug-autoconf@gnu.org>."
21642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21645 configured by $0, generated by GNU Autoconf 2.63,
21646 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21648 Copyright (C) 2008 Free Software Foundation, Inc.
21649 This config.status script is free software; the Free Software Foundation
21650 gives unlimited permission to copy, distribute and modify it."
21655 test -n "\$AWK" || AWK=awk
21658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21659 # The default lists apply if the user does not specify any file.
21665 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21666 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21677 # Handling of the options.
21678 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21680 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21681 $as_echo "$ac_cs_version"; exit ;;
21682 --debug | --debu | --deb | --de | --d | -d )
21684 --file | --fil | --fi | --f )
21687 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21689 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21690 ac_need_defaults=false;;
21691 --header | --heade | --head | --hea )
21694 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21696 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21697 ac_need_defaults=false;;
21699 # Conflict between --help and --header
21700 { $as_echo "$as_me: error: ambiguous option: $1
21701 Try \`$0 --help' for more information." >&2
21702 { (exit 1); exit 1; }; };;
21703 --help | --hel | -h )
21704 $as_echo "$ac_cs_usage"; exit ;;
21705 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21706 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21709 # This is an error.
21710 -*) { $as_echo "$as_me: error: unrecognized option: $1
21711 Try \`$0 --help' for more information." >&2
21712 { (exit 1); exit 1; }; } ;;
21714 *) ac_config_targets="$ac_config_targets $1"
21715 ac_need_defaults=false ;;
21721 ac_configure_extra_args=
21723 if $ac_cs_silent; then
21725 ac_configure_extra_args="$ac_configure_extra_args --silent"
21729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21730 if \$ac_cs_recheck; then
21731 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21733 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21734 CONFIG_SHELL='$SHELL'
21735 export CONFIG_SHELL
21740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21744 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21745 ## Running $as_me. ##
21751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21755 INTLTOOL_PERL=${INTLTOOL_PERL}
21760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21762 # Handling of arguments.
21763 for ac_config_target in $ac_config_targets
21765 case $ac_config_target in
21766 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21767 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21768 "default-2") CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
21769 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21770 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
21771 "driver/Makefile") CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
21772 "hacks/Makefile") CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
21773 "hacks/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
21774 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21775 "driver/XScreenSaver.ad") CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
21777 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21778 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21779 { (exit 1); exit 1; }; };;
21784 # If the user did not use the arguments to specify the items to instantiate,
21785 # then the envvar interface is used. Set only those that are not.
21786 # We use the long form for the default assignment because of an extremely
21787 # bizarre bug on SunOS 4.1.3.
21788 if $ac_need_defaults; then
21789 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21790 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21791 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21794 # Have a temporary directory for convenience. Make it in the build tree
21795 # simply because there is no reason against having it here, and in addition,
21796 # creating and moving files from /tmp can sometimes cause problems.
21797 # Hook for its removal unless debugging.
21798 # Note that there is a small window in which the directory will not be cleaned:
21799 # after its creation but before its name has been assigned to `$tmp'.
21803 trap 'exit_status=$?
21804 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21806 trap '{ (exit 1); exit 1; }' 1 2 13 15
21808 # Create a (secure) tmp directory for tmp files.
21811 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21812 test -n "$tmp" && test -d "$tmp"
21815 tmp=./conf$$-$RANDOM
21816 (umask 077 && mkdir "$tmp")
21819 $as_echo "$as_me: cannot create a temporary directory in ." >&2
21820 { (exit 1); exit 1; }
21823 # Set up the scripts for CONFIG_FILES section.
21824 # No need to generate them if there are no CONFIG_FILES.
21825 # This happens for instance with `./config.status config.h'.
21826 if test -n "$CONFIG_FILES"; then
21830 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21831 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21834 ac_cs_awk_cr=$ac_cr
21837 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21842 echo "cat >conf$$subs.awk <<_ACEOF" &&
21843 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21845 } >conf$$subs.sh ||
21846 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21847 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21848 { (exit 1); exit 1; }; }
21849 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21851 for ac_last_try in false false false false false :; do
21852 . ./conf$$subs.sh ||
21853 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21854 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21855 { (exit 1); exit 1; }; }
21857 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21858 if test $ac_delim_n = $ac_delim_num; then
21860 elif $ac_last_try; then
21861 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21862 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21863 { (exit 1); exit 1; }; }
21865 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21868 rm -f conf$$subs.sh
21870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21871 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21875 s/^/S["/; s/!.*/"]=/
21885 s/\(.\{148\}\).*/\1/
21887 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21892 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21899 s/\(.\{148\}\).*/\1/
21901 s/["\\]/\\&/g; s/^/"/; s/$/"/
21905 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21910 ' <conf$$subs.awk | sed '
21915 ' >>$CONFIG_STATUS || ac_write_fail=1
21916 rm -f conf$$subs.awk
21917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21919 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21920 for (key in S) S_is_set[key] = 1
21926 nfields = split(line, field, "@")
21928 len = length(field[1])
21929 for (i = 2; i < nfields; i++) {
21931 keylen = length(key)
21932 if (S_is_set[key]) {
21934 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21935 len += length(value) + length(field[++i])
21946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21947 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21948 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21951 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21952 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21953 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
21954 { (exit 1); exit 1; }; }
21957 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21958 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21959 # trailing colons and then remove the whole line if VPATH becomes empty
21960 # (actually we leave an empty line to preserve line numbers).
21961 if test "x$srcdir" = x.; then
21962 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21963 s/:*\$(srcdir):*/:/
21964 s/:*\${srcdir}:*/:/
21966 s/^\([^=]*=[ ]*\):*/\1/
21972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21973 fi # test -n "$CONFIG_FILES"
21975 # Set up the scripts for CONFIG_HEADERS section.
21976 # No need to generate them if there are no CONFIG_HEADERS.
21977 # This happens for instance with `./config.status Makefile'.
21978 if test -n "$CONFIG_HEADERS"; then
21979 cat >"$tmp/defines.awk" <<\_ACAWK ||
21983 # Transform confdefs.h into an awk script `defines.awk', embedded as
21984 # here-document in config.status, that substitutes the proper values into
21985 # config.h.in to produce config.h.
21987 # Create a delimiter string that does not exist in confdefs.h, to ease
21988 # handling of long lines.
21990 for ac_last_try in false false :; do
21991 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21992 if test -z "$ac_t"; then
21994 elif $ac_last_try; then
21995 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21996 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21997 { (exit 1); exit 1; }; }
21999 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22003 # For the awk script, D is an array of macro values keyed by name,
22004 # likewise P contains macro parameters if any. Preserve backslash
22005 # newline sequences.
22007 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22009 s/.\{148\}/&'"$ac_delim"'/g
22012 s/^[ ]*#[ ]*define[ ][ ]*/ /
22019 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22021 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22025 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22026 D["\1"]=" \3\\\\\\n"\\/p
22028 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22033 s/.\{148\}/&'"$ac_delim"'/g
22038 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22041 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22043 ' <confdefs.h | sed '
22044 s/'"$ac_delim"'/"\\\
22045 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22048 for (key in D) D_is_set[key] = 1
22051 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22053 split(line, arg, " ")
22054 if (arg[1] == "#") {
22058 defundef = substr(arg[1], 2)
22061 split(mac1, mac2, "(") #)
22063 prefix = substr(line, 1, index(line, defundef) - 1)
22064 if (D_is_set[macro]) {
22065 # Preserve the white space surrounding the "#".
22066 print prefix "define", macro P[macro] D[macro]
22069 # Replace #undef with comments. This is necessary, for example,
22070 # in the case of _POSIX_SOURCE, which is predefined and required
22071 # on some systems where configure will not decide to define it.
22072 if (defundef == "undef") {
22073 print "/*", prefix defundef, macro, "*/"
22081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22082 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22083 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22084 { (exit 1); exit 1; }; }
22085 fi # test -n "$CONFIG_HEADERS"
22088 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22093 :[FHLC]) ac_mode=$ac_tag; continue;;
22095 case $ac_mode$ac_tag in
22097 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22098 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22099 { (exit 1); exit 1; }; };;
22100 :[FH]-) ac_tag=-:-;;
22101 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22118 -) ac_f="$tmp/stdin";;
22119 *) # Look for the file first in the build tree, then in the source tree
22120 # (if the path is not absolute). The absolute path cannot be DOS-style,
22121 # because $ac_f cannot contain `:'.
22125 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22127 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22128 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22129 { (exit 1); exit 1; }; };;
22131 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22132 ac_file_inputs="$ac_file_inputs '$ac_f'"
22135 # Let's still pretend it is `configure' which instantiates (i.e., don't
22136 # use $as_me), people would be surprised to read:
22137 # /* config.h. Generated by config.status. */
22138 configure_input='Generated from '`
22139 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22141 if test x"$ac_file" != x-; then
22142 configure_input="$ac_file. $configure_input"
22143 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22144 $as_echo "$as_me: creating $ac_file" >&6;}
22146 # Neutralize special characters interpreted by sed in replacement strings.
22147 case $configure_input in #(
22148 *\&* | *\|* | *\\* )
22149 ac_sed_conf_input=`$as_echo "$configure_input" |
22150 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22151 *) ac_sed_conf_input=$configure_input;;
22155 *:-:* | *:-) cat >"$tmp/stdin" \
22156 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22157 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22158 { (exit 1); exit 1; }; } ;;
22163 ac_dir=`$as_dirname -- "$ac_file" ||
22164 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22165 X"$ac_file" : 'X\(//\)[^/]' \| \
22166 X"$ac_file" : 'X\(//\)$' \| \
22167 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22168 $as_echo X"$ac_file" |
22169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22173 /^X\(\/\/\)[^/].*/{
22188 -*) as_dir=./$as_dir;;
22190 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22194 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22195 *) as_qdir=$as_dir;;
22197 as_dirs="'$as_qdir' $as_dirs"
22198 as_dir=`$as_dirname -- "$as_dir" ||
22199 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22200 X"$as_dir" : 'X\(//\)[^/]' \| \
22201 X"$as_dir" : 'X\(//\)$' \| \
22202 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22203 $as_echo X"$as_dir" |
22204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22208 /^X\(\/\/\)[^/].*/{
22221 test -d "$as_dir" && break
22223 test -z "$as_dirs" || eval "mkdir $as_dirs"
22224 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22225 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22226 { (exit 1); exit 1; }; }; }
22230 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22232 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22233 # A ".." for each directory in $ac_dir_suffix.
22234 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22235 case $ac_top_builddir_sub in
22236 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22237 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22240 ac_abs_top_builddir=$ac_pwd
22241 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22242 # for backward compatibility:
22243 ac_top_builddir=$ac_top_build_prefix
22246 .) # We are building in place.
22248 ac_top_srcdir=$ac_top_builddir_sub
22249 ac_abs_top_srcdir=$ac_pwd ;;
22250 [\\/]* | ?:[\\/]* ) # Absolute name.
22251 ac_srcdir=$srcdir$ac_dir_suffix;
22252 ac_top_srcdir=$srcdir
22253 ac_abs_top_srcdir=$srcdir ;;
22254 *) # Relative name.
22255 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22256 ac_top_srcdir=$ac_top_build_prefix$srcdir
22257 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22259 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22269 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22270 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22275 # If the template does not know about datarootdir, expand it.
22276 # FIXME: This hack should be removed a few years after 2.60.
22277 ac_datarootdir_hack=; ac_datarootdir_seen=
22290 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22291 *datarootdir*) ac_datarootdir_seen=yes;;
22292 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22293 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22294 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22297 ac_datarootdir_hack='
22298 s&@datadir@&$datadir&g
22299 s&@docdir@&$docdir&g
22300 s&@infodir@&$infodir&g
22301 s&@localedir@&$localedir&g
22302 s&@mandir@&$mandir&g
22303 s&\\\${datarootdir}&$datarootdir&g' ;;
22307 # Neutralize VPATH when `$srcdir' = `.'.
22308 # Shell code in configure.ac might set extrasub.
22309 # FIXME: do we really want to maintain this feature?
22310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22311 ac_sed_extra="$ac_vpsub
22314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22316 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22317 s|@configure_input@|$ac_sed_conf_input|;t t
22318 s&@top_builddir@&$ac_top_builddir_sub&;t t
22319 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22320 s&@srcdir@&$ac_srcdir&;t t
22321 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22322 s&@top_srcdir@&$ac_top_srcdir&;t t
22323 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22324 s&@builddir@&$ac_builddir&;t t
22325 s&@abs_builddir@&$ac_abs_builddir&;t t
22326 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22327 s&@INSTALL@&$ac_INSTALL&;t t
22328 $ac_datarootdir_hack
22330 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22331 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22332 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22333 { (exit 1); exit 1; }; }
22335 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22336 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22337 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22338 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22339 which seems to be undefined. Please make sure it is defined." >&5
22340 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22341 which seems to be undefined. Please make sure it is defined." >&2;}
22345 -) cat "$tmp/out" && rm -f "$tmp/out";;
22346 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22348 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22349 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22350 { (exit 1); exit 1; }; }
22356 if test x"$ac_file" != x-; then
22358 $as_echo "/* $configure_input */" \
22359 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22360 } >"$tmp/config.h" \
22361 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22362 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22363 { (exit 1); exit 1; }; }
22364 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22365 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22366 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22369 mv "$tmp/config.h" "$ac_file" \
22370 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22371 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22372 { (exit 1); exit 1; }; }
22375 $as_echo "/* $configure_input */" \
22376 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22377 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22378 $as_echo "$as_me: error: could not create -" >&2;}
22379 { (exit 1); exit 1; }; }
22383 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22384 $as_echo "$as_me: executing $ac_file commands" >&6;}
22389 case $ac_file$ac_mode in
22392 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
22393 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
22394 rm -f intltool-extract.out
22396 mv -f intltool-extract.out intltool-extract
22398 chmod ugo+x intltool-extract
22399 chmod u+w intltool-extract
22401 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
22402 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
22403 rm -f intltool-merge.out
22405 mv -f intltool-merge.out intltool-merge
22407 chmod ugo+x intltool-merge
22408 chmod u+w intltool-merge
22410 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
22411 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
22412 rm -f intltool-update.out
22414 mv -f intltool-update.out intltool-update
22416 chmod ugo+x intltool-update
22417 chmod u+w intltool-update
22420 "default-2":C) case "$CONFIG_FILES" in *po/Makefile.in*)
22421 rm -f po/stamp-it po/stamp-it.tmp
22423 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
22424 mv po/stamp-it.tmp po/stamp-it
22431 { (exit 0); exit 0; }
22433 chmod +x $CONFIG_STATUS
22434 ac_clean_files=$ac_clean_files_save
22436 test $ac_write_fail = 0 ||
22437 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22438 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22439 { (exit 1); exit 1; }; }
22442 # configure is writing to config.log, and then calls config.status.
22443 # config.status does its own redirection, appending to config.log.
22444 # Unfortunately, on DOS this fails, as config.log is still kept open
22445 # by configure, so config.status won't be able to write to it; its
22446 # output is simply discarded. So we exec the FD to /dev/null,
22447 # effectively closing config.log, so it can be properly (re)opened and
22448 # appended to by config.status. When coming back to configure, we
22449 # need to make the FD available again.
22450 if test "$no_create" != yes; then
22452 ac_config_status_args=
22453 test "$silent" = yes &&
22454 ac_config_status_args="$ac_config_status_args --quiet"
22456 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22458 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22459 # would make configure fail if this is the last instruction.
22460 $ac_cs_success || { (exit 1); exit 1; }
22462 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22463 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22464 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22468 ###############################################################################
22470 # Print some warnings at the end.
22472 ###############################################################################
22474 warn_prefix_1=" Warning:"
22475 warn_prefix_2=" Note:"
22476 warn_prefix="$warn_prefix_1"
22479 warnsep=' #################################################################'
22482 if test "$warning" = no ; then
22483 echo '' ; echo "$warnsep" ; echo ''
22490 if test "$warning" = long ; then echo '' ; fi
22493 echo "$warn_prefix $rest"
22500 if test "$was" != no ; then echo '' ; fi
22502 echo "$warn_prefix $rest"
22512 warn_prefix="$warn_prefix_2"
22514 warn_prefix="$warn_prefix_1"
22518 warn_prefix="$warn_prefix_2"
22520 warn_prefix="$warn_prefix_1"
22524 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
22525 warn 'The SGI saver extension was requested, but was not found.'
22528 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
22529 warn 'The XIdle extension was requested, but was not found.'
22532 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
22533 warn 'The XSHM extension was requested, but was not found.'
22536 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
22537 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
22540 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
22541 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
22544 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
22545 warn 'The DPMS extension was requested, but was not found.'
22548 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
22549 warn 'The Xinerama extension was requested, but was not found.'
22552 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
22553 warn 'The XF86VMODE extension was requested, but was not found.'
22556 if test "$with_randr_req" = yes -a "$have_randr" = no ; then
22557 warn 'The RANDR extension was requested, but was not found.'
22560 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
22561 warn "Checking of /proc/interrupts was requested, but it's bogus."
22564 if test "$pkg_config" = false ; then
22565 warnL 'The "pkg-config" program was not found. Without that,'
22566 warn2 "detection of the various GTK libraries won't work."
22568 pkgerr=`$pkg_config --list-all 2>&1 >/dev/null`
22569 if test "x$pkgerr" != "x" ; then
22570 warnL 'The "pkg-config" program produces errors. This often causes'
22571 warn2 "detection of the various GTK libraries to malfunction."
22572 warn2 "The errors are:"
22574 echo "$pkgerr" | sed 's/^/ > /g'
22578 if test "$gtk_halfassed" != no ; then
22579 warnL "GTK version $gtk_halfassed was found, but at least one supporting"
22580 warn2 "library ($gtk_halfassed_lib) was not, so GTK can't be used."
22581 warn2 "Perhaps some of the development packages are not installed?"
22582 if test "$have_gtk" = yes ; then
22583 v="$ac_gtk_version_string"
22584 warn2 "GTK $v is also installed, so it will be used instead."
22585 warn2 "Please read the above output and the \`config.log' file"
22586 warn2 "for more details."
22591 warn2 'Though the Motif front-end to xscreensaver is still'
22592 warn2 'maintained, it is no longer being updated with new'
22593 warn2 'features: all new development on the xscreensaver-demo'
22594 warn2 'program is happening in the GTK version, and not in the'
22595 warn2 'Motif version. It is recommended that you build against'
22596 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
22599 if test "$have_motif" = no -a "$have_gtk" = no; then
22601 if test "$with_motif" = yes; then
22602 warnL "Neither the GTK nor Motif libraries were found; the"
22603 warn2 "\`xscreensaver-demo' program requires one of these."
22607 warnL "The GTK libraries do not seem to be available; the"
22608 warn2 "\`xscreensaver-demo' program requires them."
22610 # warn2 'You can use Motif or Lesstif instead of GTK (use the'
22611 # warn2 "\`--with-motif' option) but that is NOT recommended."
22615 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
22616 warnL "Use of Motif was requested, but it wasn't found;"
22617 warn2 "Gtk will be used instead."
22619 elif test "$jurassic_gtk" = yes ; then
22623 v="$ac_gtk_version_string"
22624 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
22625 warnL "Use of Gtk was requested, but its version number is unknown;"
22626 elif test "$with_gtk_req" = yes ; then
22627 warnL "Use of Gtk was requested, but it is version $v;"
22629 warnL "Gtk was found on this system, but it is version $v;"
22632 warn2 "Gtk $pref_gtk or newer is required."
22634 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
22635 warnL "Use of Gtk was requested, but it wasn't found."
22639 if test "$have_gtk" = yes -a "$have_gdk_pixbuf" = no ; then
22640 warn "GTK is being used, but the GDK-Pixbuf library and/or"
22641 warn2 "headers were not found. That can't be good. Please"
22642 warn2 "install the GDK-Pixbuf development kit and re-configure."
22645 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
22647 preferred_lesstif=0.92
22649 if test "$lesstif_version" = unknown; then
22650 warnL "Unable to determine the LessTif version number!"
22651 warn2 "Make sure you are using version $preferred_lesstif or newer."
22652 warn2 "See <http://www.lesstif.org/>."
22654 elif test \! $lesstif_version -gt 82; then
22655 warnL "LessTif version $lesstif_version_string is being used."
22656 warn2 "LessTif versions 0.82 and earlier are too buggy to"
22657 warn2 "use with XScreenSaver; it is strongly recommended"
22658 warn2 "that you upgrade to at least version $preferred_lesstif!"
22659 warn2 "See <http://www.lesstif.org/>."
22664 if test "$have_motif" = yes -a "$have_gtk" = no ; then
22665 warn 'Motif is being used, and GTK is not.'
22671 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
22672 warnL 'Use of XPM was requested, but it was not found.'
22675 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
22676 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
22679 if test "$have_gdk_pixbuf" = no -o "$gdk_pixbuf_halfassed" = yes || \
22680 test "$have_gdk_pixbuf" = no -a "$have_xpm" = no ; then
22682 if test "$with_gdk_pixbuf_req" = yes ; then
22684 elif test "$with_gdk_pixbuf_req" = no ; then
22685 warnL 'The GDK-Pixbuf library is not being used.'
22687 warnL 'The GDK-Pixbuf library was not found.'
22690 if test "$with_xpm_req" = yes -o "$have_xpm" = yes ; then
22692 elif test "$with_xpm_req" = no ; then
22693 warnL 'The XPM library is not being used.'
22695 warnL 'The XPM library was not found.'
22698 if test "$have_gdk_pixbuf" = no -a "$have_xpm" = yes ; then
22699 warn2 'The XPM library is being used instead.'
22702 if test "$gdk_pixbuf_halfassed" = yes ; then
22704 warn2 'More specifically, we found the headers, but not the'
22705 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
22706 warn2 "system, or something else went wrong. The \`config.log'"
22707 warn2 'file might contain some clues.'
22711 warn2 'Some of the demos will not use images as much as they could.'
22712 warn2 'You should consider installing GDK-Pixbuf and re-running'
22713 warn2 'configure. (GDK-Pixbuf is recommended over XPM, as it'
22714 warn2 'provides support for more image formats.)'
22718 if test "$have_jpeg" = no ; then
22719 if test "$with_jpeg_req" = yes ; then
22720 warnL 'Use of libjpeg was requested, but it was not found.'
22721 elif test "$with_jpeg_req" = no ; then
22722 noteL 'The JPEG library is not being used.'
22724 noteL 'The JPEG library was not found.'
22727 if test "$jpeg_halfassed" = yes ; then
22729 warn2 'More specifically, we found the headers, but not the'
22730 warn2 'library; so either JPEG is half-installed on this'
22731 warn2 "system, or something else went wrong. The \`config.log'"
22732 warn2 'file might contain some clues.'
22736 if test "$have_gdk_pixbuf" = no ; then
22737 warn2 "This means that it won't be possible for the image-manipulating"
22738 warn2 "display modes to load files from disk; and it also means that"
22739 warn2 "the \`webcollage' program will be much slower."
22741 warn2 "This means the \`webcollage' program will be much slower."
22746 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
22747 preferred_mesagl=3.4
22748 mgv="$ac_mesagl_version_string"
22749 pgl="$preferred_mesagl"
22751 if test "$ac_mesagl_version" = unknown; then
22753 # warnL "Unable to determine the MesaGL version number!"
22754 # warn2 "Make sure you are using version $preferred_mesagl or newer."
22756 elif test \! "$ac_mesagl_version" -gt 2006; then
22757 warnL "MesaGL version number is $mgv --"
22758 warn2 "MesaGL 2.6 and earlier have a security bug. It is strongly"
22759 warn2 "recommended that you upgrade to at least version $preferred_mesagl."
22761 elif test \! "$ac_mesagl_version" -gt 3003; then
22762 warnL "MesaGL version number is $mgv --"
22763 warn2 "MesaGL 3.3 and earlier have some bugs; it is recommended"
22764 warn2 "that you upgrade to $pgl or newer."
22768 if test "$have_gl" = no ; then
22769 if test "$with_gl_req" = yes ; then
22770 warnL 'Use of GL was requested, but it was not found.'
22771 elif test "$with_gl_req" = no ; then
22772 noteL 'The OpenGL 3D library is not being used.'
22774 noteL 'The OpenGL 3D library was not found.'
22777 if test "$gl_halfassed" = yes ; then
22779 warn2 'More specifically, we found the headers, but not the'
22780 warn2 'libraries; so either GL is half-installed on this'
22781 warn2 "system, or something else went wrong. The \`config.log'"
22782 warn2 'file might contain some clues.'
22786 warn2 'Those demos which use 3D will not be built or installed.'
22787 warn2 'You might want to consider installing OpenGL and'
22788 warn2 "re-running configure. If your vendor doesn't ship"
22789 warn2 'their own implementation of OpenGL, you can get a free'
22790 warn2 'version at <http://www.mesa3d.org/>. For general OpenGL'
22791 warn2 'info, see <http://www.opengl.org/>.'
22796 if test "$have_gl" = yes -a "$have_gle" = no ; then
22798 # nobody cares about this; don't print the warning unless it was
22799 # requested and not found, or halfway-found.
22800 if test "$with_gle_req" = yes -o "$gle_halfassed" = yes ; then
22802 if test "$with_gle_req" = yes ; then
22803 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
22804 warn2 'it was not found (though the OpenGL library was found, and'
22805 warn2 'is being used.)'
22806 elif test "$with_gle_req" = no ; then
22807 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
22808 warn2 'library is not.'
22810 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
22814 if test "$gle_halfassed" = yes ; then
22816 warn2 'More specifically, we found the headers, but not the'
22817 warn2 'libraries; so either GLE is half-installed on this'
22818 warn2 "system, or something else went wrong. The \`config.log'"
22819 warn2 'file might contain some clues.'
22823 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
22824 warn2 'will not be built or installed. You might want to consider'
22825 warn2 'installing GLE and re-running configure. You can find the'
22826 warn2 'GLE library at <http://www.linas.org/gle/>. For general'
22827 warn2 'OpenGL info, see <http://www.opengl.org/>.'
22833 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
22834 warn 'Use of XReadDisplay was requested, but it was not found.'
22837 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
22838 warn 'Use of Kerberos was requested, but it was not found.'
22841 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
22842 warn 'Use of PAM was requested, but it was not found.'
22845 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
22846 warn 'Use of shadow passwords was requested, but they were not found.'
22849 if test "$ac_macosx" = yes ; then
22850 if test "$enable_locking" = yes ; then
22851 warn "You have specified --enable-locking on MacOS X."
22852 warn2 "THIS DOES NOT WORK! Don't do this!"
22857 # You are in a twisty maze of namespaces and syntaxes, all alike.
22858 # Fuck the skull of Unix.
22860 bindir=`eval eval eval eval eval eval eval echo $bindir`
22861 HACKDIR=`eval eval eval eval eval eval eval echo $HACKDIR`
22862 HACK_CONF_DIR=`eval eval eval eval eval eval eval echo $HACK_CONF_DIR`
22864 # canonicalize slashes.
22865 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
22866 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
22867 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
22870 # Sanity check the hackdir
22871 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
22872 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
22874 { { $as_echo "$as_me:$LINENO: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
22875 There will be an executable installed with that name, so
22876 that can't be the name of a directory as well. Please
22877 re-configure with a different directory name." >&5
22878 $as_echo "$as_me: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
22879 There will be an executable installed with that name, so
22880 that can't be the name of a directory as well. Please
22881 re-configure with a different directory name." >&2;}
22882 { (exit 1); exit 1; }; }
22889 # Now let's warn if there's a previous RPM version already installed.
22890 # But don't bother with this test if we are currently *building* an RPM.
22892 if test -z "$RPM_PACKAGE_VERSION" ; then
22894 rpmnames="xscreensaver xscreensaver-base xscreensaver-extras"
22898 rpmv=`(rpm -qv $rpmnames) 2>/dev/null | \
22899 sed -n 's/^[-a-z]*-\([0-9][0-9]*[.][0-9][0-9a-z]*\)-.*$/\1/p' | \
22903 if test \! -z "$rpmv" ; then
22904 rpmbdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
22905 rpmhdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/popsquares$@\1@p'`
22908 warnL "There is already an installed RPM of xscreensaver $rpmv"
22909 warn2 'on this system. You might want to remove it ("rpm -ve")'
22910 warn2 'before running "make install" in this directory.'
22912 warn2 "Alternately, you could build this version of xscreensaver"
22913 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
22914 warn2 'file is included. Try "rpmbuild -v -ba xscreensaver.spec".'
22915 warn2 "See the RPM documentation for more info."
22918 if test "$rpmbdir" = "$rpmhdir" ; then
22919 warn2 "The RPM version was installed in $rpmbdir/."
22922 warn2 "The RPM version was installed in $rpmbdir/,"
22923 warn2 "with demos in $rpmhdir/."
22928 # Also warn if there's a Debian package installed.
22930 debnames="xscreensaver xscreensaver-data xscreensaver-data-extra"
22932 for dpkg in $debnames ; do
22933 if test -z "$debv"; then
22934 debv=`dpkg -s $dpkg 2>/dev/null | sed -n 's/^Version: \(.*\)$/\1/p'`
22938 if test \! -z "$debv" ; then
22939 debbdir=`dpkg -L $debnames 2>/dev/null | \
22940 sed -n 's@^\(.*/bin/\)xscreensaver$@\1@p'`
22941 debhdir=`dpkg -L $debnames 2>/dev/null | \
22942 sed -n 's@^\(.*/\)popsquares$@\1@p'`
22943 if test -z "$debbdir" ; then debbdir='???'; fi
22944 if test -z "$debhdir" ; then debhdir='???'; fi
22947 warnL "There is already an installed dpkg of xscreensaver"
22948 warn2 "version \"$debv\" on this system."
22950 warn2 "The dpkg was installed in $debbdir,"
22951 warn2 "with demos in $debhdir."
22955 if test "${bindir}" = "${HACKDIR}" ; then
22959 if test "$do_dir_warning" = yes; then
22963 echo ' When you run "make install", the "xscreensaver",'
22964 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
22965 echo " will be installed in ${bindir}/."
22967 echo " The various graphics demos (190+ different executables) will"
22968 echo " be installed in ${HACKDIR}/."
22970 echo " If you would prefer the demos to be installed elsewhere,"
22971 echo " you should re-run configure with the --with-hackdir=DIR"
22972 echo " option. For more information, run \`./configure --help'."
22976 if test "$warning" != no; then
22977 echo '' ; echo "$warnsep" ; echo ''
22980 if test "$do_dir_warning" = no; then
22981 if test "$warning" = no; then
22984 echo "User programs will be installed in ${bindir}/"
22985 echo "Screen savers will be installed in ${HACKDIR}/"
22986 echo "Configuration dialogs will be installed in ${HACK_CONF_DIR}/"
22987 echo "System-wide default settings will be installed in ${APPDEFAULTS}/"