2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="driver/subprocs.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE EGREP PERL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XML_RULE INTLTOOL_CAVES_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL GETTEXT_PACKAGE RANLIB ac_ct_RANLIB ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB MKINSTALLDIRS pkg_config gnome_open_program gnome_url_show_program fortune_tmp INCLUDES PREFERRED_DEMO_PROGRAM ALL_DEMO_PROGRAMS SAVER_LIBS MOTIF_LIBS GTK_LIBS XML_LIBS JPEG_LIBS HACK_LIBS XPM_LIBS PTY_LIBS GL_LIBS GLE_LIBS XDPMS_LIBS PASSWD_LIBS INSTALL_SETUID SETUID_HACKS INSTALL_DIRS NEED_SETUID INSTALL_PAM OBJCC EXES_OSX SCRIPTS_OSX MEN_OSX PASSWD_SRCS PASSWD_OBJS XMU_SRCS XMU_OBJS XMU_LIBS SAVER_GL_SRCS SAVER_GL_OBJS SAVER_GL_LIBS LOCK_SRCS LOCK_OBJS JPEG_EXES GL_EXES GL_UTIL_EXES GL_MEN GL_KLUDGE GLE_EXES GLE_KLUDGE GNOME24 GNOME22 NOGNOME HACKDIR GNOME_DATADIR GLADE_DATADIR PO_DATADIR GNOME_PANELDIR HACK_CONF_DIR GTK_EXTRA_OBJS APPDEFAULTS DEPEND DEPEND_FLAGS DEPEND_DEFINES LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --libdir=DIR object code libraries [EPREFIX/lib]
822 --includedir=DIR C header files [PREFIX/include]
823 --x-includes=DIR X include files are in DIR
824 --x-libraries=DIR X library files are in DIR
825 --mandir=DIR man documentation [PREFIX/man]
831 --x-includes=DIR X include files are in DIR
832 --x-libraries=DIR X library files are in DIR
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
840 if test -n "$ac_init_help"; then
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
849 Screen locking options:
851 --enable-locking Compile in support for locking the display.
852 --disable-locking Do not allow locking at all.
855 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
856 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
857 Installation options:
859 --with-hackdir=DIR Where to install the hundreds of demo executables.
860 Default: `PREFIX/lib/xscreensaver/'
861 --with-configdir=DIR Where to install the data files that describe each
862 of the display modes to the GUI.
863 Default: `GTK_PREFIX/control-center/screensavers/'
864 or `PREFIX/lib/xscreensaver/config/', depending on
865 whether GTK is available.
867 Except where noted, all of the --with options below can also take a
868 directory argument: for example, `--with-motif=/opt/Motif'. That would
869 cause /opt/Motif/include/ to be added to the -I list, and /opt/Motif/lib/
870 to be added to the -L list, assuming those directories exist.
872 By default, support for each of these options will be built in, if the
873 relevant library routines exist. At run time, they will then be used
874 only if the X server being used supports them. Each --with option has
875 a corresponding --without option, to override building support for them
878 Screen blanking and idle-detection options:
880 --with-sgi-ext Include support for the SGI SCREEN_SAVER extension.
881 --with-mit-ext Include support for the MIT-SCREEN-SAVER extension.
882 --with-xidle-ext Include support for the XIDLE extension.
883 --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL extension.
884 --with-dpms-ext Include support for the DPMS extension.
885 --with-xinerama-ext Include support for the XINERAMA extension.
886 --with-xf86vmode-ext Include support for XFree86 virtual screens.
887 --with-xf86gamma-ext Include support for XFree86 gamma fading.
888 --with-randr-ext Include support for the X Resize+Rotate extension.
889 --with-proc-interrupts Include support for consulting the /proc/interrupts
890 file to notice keyboard activity.
891 --with-pam Include support for PAM (Pluggable Auth Modules.)
892 --with-kerberos Include support for Kerberos authentication.
893 --with-shadow Include support for shadow password authentication.
894 --with-passwd-helper Include support for an external password
895 verification helper program.
897 User interface options:
899 --with-gtk Use the Gtk toolkit for the user interface.
900 --with-motif Use the Motif toolkit for the user interface
905 --with-gl Build those demos which depend on OpenGL.
906 --with-gle Build those demos which depend on GLE
907 (the OpenGL "extrusion" library.)
908 --with-pixbuf Include support for the GDK-Pixbuf library in some
909 demos, which will make it possible for them to read
910 GIF, JPEG, and PNG files as well.
911 --with-xpm Include support for XPM files in some demos.
912 (Not needed if Pixbuf is used.)
913 --with-jpeg Include support for the JPEG library.
914 --with-xshm-ext Include support for the Shared Memory extension.
915 --with-xdbe-ext Include support for the DOUBLE-BUFFER extension.
916 --with-readdisplay Include support for the XReadDisplay extension.
918 --with-fortune=PROGRAM Some demos are able to run an external program and
919 display its text; this names the program to use by
920 default (though it can be overridden with X
921 resources.) Default is "/usr/games/fortune".
922 --with-setuid-hacks Allow some demos to be installed `setuid root'
923 (which is needed in order to ping other hosts.)
926 Some influential environment variables:
927 CC C compiler command
928 CFLAGS C compiler flags
929 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
930 nonstandard directory <lib dir>
931 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
932 headers in a nonstandard directory <include dir>
935 Use these variables to override the choices made by `configure' or to help
936 it to find libraries and programs with nonstandard names/locations.
941 if test "$ac_init_help" = "recursive"; then
942 # If there are subdirs, report their specific --help.
944 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
945 test -d $ac_dir || continue
948 if test "$ac_dir" != .; then
949 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
950 # A "../" for each directory in $ac_dir_suffix.
951 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
953 ac_dir_suffix= ac_top_builddir=
957 .) # No --srcdir option. We are building in place.
959 if test -z "$ac_top_builddir"; then
962 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
964 [\\/]* | ?:[\\/]* ) # Absolute path.
965 ac_srcdir=$srcdir$ac_dir_suffix;
966 ac_top_srcdir=$srcdir ;;
968 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
969 ac_top_srcdir=$ac_top_builddir$srcdir ;;
972 # Do not use `cd foo && pwd` to compute absolute paths, because
973 # the directories may not exist.
975 .) ac_abs_builddir="$ac_dir";;
978 .) ac_abs_builddir=`pwd`;;
979 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
980 *) ac_abs_builddir=`pwd`/"$ac_dir";;
983 case $ac_abs_builddir in
984 .) ac_abs_top_builddir=${ac_top_builddir}.;;
986 case ${ac_top_builddir}. in
987 .) ac_abs_top_builddir=$ac_abs_builddir;;
988 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
989 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
992 case $ac_abs_builddir in
993 .) ac_abs_srcdir=$ac_srcdir;;
996 .) ac_abs_srcdir=$ac_abs_builddir;;
997 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
998 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1001 case $ac_abs_builddir in
1002 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1004 case $ac_top_srcdir in
1005 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1007 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1012 # Check for guested configure; otherwise get Cygnus style configure.
1013 if test -f $ac_srcdir/configure.gnu; then
1015 $SHELL $ac_srcdir/configure.gnu --help=recursive
1016 elif test -f $ac_srcdir/configure; then
1018 $SHELL $ac_srcdir/configure --help=recursive
1019 elif test -f $ac_srcdir/configure.ac ||
1020 test -f $ac_srcdir/configure.in; then
1022 $ac_configure --help
1024 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1030 test -n "$ac_init_help" && exit 0
1031 if $ac_init_version; then
1034 Copyright (C) 2003 Free Software Foundation, Inc.
1035 This configure script is free software; the Free Software Foundation
1036 gives unlimited permission to copy, distribute and modify it.
1042 This file contains any messages produced by compilers while
1043 running configure, to aid debugging if configure makes a mistake.
1045 It was created by $as_me, which was
1046 generated by GNU Autoconf 2.59. Invocation command line was
1057 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1058 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1059 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1060 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1061 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1063 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1064 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1066 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1067 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1068 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1069 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1070 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1071 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1072 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1080 test -z "$as_dir" && as_dir=.
1081 echo "PATH: $as_dir"
1096 # Keep a trace of the command line.
1097 # Strip out --no-create and --no-recursion so they do not pile up.
1098 # Strip out --silent because we don't want to record it for future runs.
1099 # Also quote any args containing shell meta-characters.
1100 # Make two passes to allow for proper duplicate-argument suppression.
1105 ac_must_keep_next=false
1111 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1115 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1116 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1119 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1121 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1122 if test $ac_must_keep_next = true; then
1123 ac_must_keep_next=false # Got value, back to normal.
1126 *=* | --config-cache | -C | -disable-* | --disable-* \
1127 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1128 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1129 | -with-* | --with-* | -without-* | --without-* | --x)
1130 case "$ac_configure_args0 " in
1131 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1134 -* ) ac_must_keep_next=true ;;
1137 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1138 # Get rid of the leading space.
1144 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1145 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1147 # When interrupted or exit'd, cleanup temporary files, and complete
1148 # config.log. We remove comments because anyway the quotes in there
1149 # would cause problems or look ugly.
1150 # WARNING: Be sure not to use single quotes in there, as some shells,
1151 # such as our DU 5.0 friend, will then `close' the trap.
1152 trap 'exit_status=$?
1153 # Save into config.log some information that might help in debugging.
1158 ## ---------------- ##
1159 ## Cache variables. ##
1160 ## ---------------- ##
1163 # The following way of writing the cache mishandles newlines in values,
1166 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1169 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1170 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1174 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1181 ## ----------------- ##
1182 ## Output variables. ##
1183 ## ----------------- ##
1186 for ac_var in $ac_subst_vars
1188 eval ac_val=$`echo $ac_var`
1189 echo "$ac_var='"'"'$ac_val'"'"'"
1193 if test -n "$ac_subst_files"; then
1200 for ac_var in $ac_subst_files
1202 eval ac_val=$`echo $ac_var`
1203 echo "$ac_var='"'"'$ac_val'"'"'"
1208 if test -s confdefs.h; then
1215 sed "/^$/d" confdefs.h | sort
1218 test "$ac_signal" != 0 &&
1219 echo "$as_me: caught signal $ac_signal"
1220 echo "$as_me: exit $exit_status"
1222 rm -f core *.core &&
1223 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1226 for ac_signal in 1 2 13 15; do
1227 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1231 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1232 rm -rf conftest* confdefs.h
1233 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1236 # Predefined preprocessor variables.
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_NAME "$PACKAGE_NAME"
1243 cat >>confdefs.h <<_ACEOF
1244 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_STRING "$PACKAGE_STRING"
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1263 # Let the site file select an alternate cache file if it wants to.
1264 # Prefer explicitly selected file to automatically selected ones.
1265 if test -z "$CONFIG_SITE"; then
1266 if test "x$prefix" != xNONE; then
1267 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1269 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1272 for ac_site_file in $CONFIG_SITE; do
1273 if test -r "$ac_site_file"; then
1274 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1275 echo "$as_me: loading site script $ac_site_file" >&6;}
1276 sed 's/^/| /' "$ac_site_file" >&5
1281 if test -r "$cache_file"; then
1282 # Some versions of bash will fail to source /dev/null (special
1283 # files actually), so we avoid doing that.
1284 if test -f "$cache_file"; then
1285 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1286 echo "$as_me: loading cache $cache_file" >&6;}
1288 [\\/]* | ?:[\\/]* ) . $cache_file;;
1289 *) . ./$cache_file;;
1293 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1294 echo "$as_me: creating cache $cache_file" >&6;}
1298 # Check that the precious variables saved in the cache have kept the same
1300 ac_cache_corrupted=false
1301 for ac_var in `(set) 2>&1 |
1302 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1303 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1304 eval ac_new_set=\$ac_env_${ac_var}_set
1305 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1306 eval ac_new_val="\$ac_env_${ac_var}_value"
1307 case $ac_old_set,$ac_new_set in
1309 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1310 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1311 ac_cache_corrupted=: ;;
1313 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1314 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1315 ac_cache_corrupted=: ;;
1318 if test "x$ac_old_val" != "x$ac_new_val"; then
1319 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1320 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1321 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1322 echo "$as_me: former value: $ac_old_val" >&2;}
1323 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1324 echo "$as_me: current value: $ac_new_val" >&2;}
1325 ac_cache_corrupted=:
1328 # Pass precious variables to config.status.
1329 if test "$ac_new_set" = set; then
1331 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1332 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1333 *) ac_arg=$ac_var=$ac_new_val ;;
1335 case " $ac_configure_args " in
1336 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1337 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1341 if $ac_cache_corrupted; then
1342 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1343 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1344 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1345 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1346 { (exit 1); exit 1; }; }
1350 ac_cpp='$CPP $CPPFLAGS'
1351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1373 ac_config_headers="$ac_config_headers config.h"
1376 echo "current directory: `pwd`"
1377 echo "command line was: $0 $@"
1380 # After checking to see that --srcdir is correct (which AC_INIT does)
1381 # check for some random other files that come later in the tar file,
1382 # to make sure everything is here.
1384 for d in driver utils hacks hacks/glx ; do
1385 f=$srcdir/$d/Makefile.in
1386 if test \! -r $f ; then
1388 echo "ERROR: The package is incomplete: $f does not exist."
1389 echo " This probably means that your download was truncated."
1395 ###############################################################################
1397 # Function to figure out how to run the compiler.
1399 ###############################################################################
1404 ###############################################################################
1406 # Functions to figure out how to disable // comments in ANSI C code.
1408 # (With recent gcc, this is done with "-std=c89". With older gcc, this
1409 # is done by passing "-lang-c89" to cpp, by passing "-Wp,-lang-c89" to
1410 # gcc. Old gcc doesn't support -std, and new gcc doesn't support -lang.
1411 # so much for compatibility!)
1413 # UPDATE: apparently there is NO WAY to tell gcc 3.2.2 to require that
1414 # declarations preceed statements, without resorting to "-pedantic".
1415 # This means that there is no way to get gcc3 to issue warnings that
1416 # ensure that your code complies with the ANSI/ISO C89 standard, without
1417 # also drowning in totally useless warnings. Thank you master may I
1420 # So, I give up, let's just use -pedantic.
1422 ###############################################################################
1429 ###############################################################################
1431 # Function to figure out how to turn off Objective C on MacOS X.
1432 # (We have to do this to work around an Apple-specific gcc bug.)
1434 ###############################################################################
1441 ###############################################################################
1443 # Function to figure out how to create directory trees.
1445 ###############################################################################
1450 ###############################################################################
1452 # Function to check whether gettimeofday() exists, and how to call it.
1453 # This may define HAVE_GETTIMEOFDAY and GETTIMEOFDAY_TWO_ARGS.
1455 ###############################################################################
1460 ###############################################################################
1462 # Function to find perl5 (defines PERL and PERL_VERSION.)
1464 ###############################################################################
1466 # M4 sucks!! perl sucks too!!
1468 perl_version_cmd='print $]'
1474 ###############################################################################
1476 # Function to demand "bc". Losers.
1478 ###############################################################################
1482 ###############################################################################
1484 # Functions to check how to do ICMP PING requests.
1486 ###############################################################################
1493 ###############################################################################
1495 # Functions to check for various X11 crap.
1497 ###############################################################################
1499 # Try and find the app-defaults directory.
1500 # It sucks that autoconf doesn't do this already...
1512 # Random special-cases for X on certain pathological OSes.
1513 # You know who you are.
1519 ###############################################################################
1521 # Some utility functions to make checking for X things easier.
1523 ###############################################################################
1525 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
1529 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
1533 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
1538 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
1539 # Use this sparingly; it probably doesn't work very well on X programs.
1543 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
1544 # (But not the -L directories!)
1550 # Usage: HANDLE_X_PATH_ARG([variable_name],
1551 # [--command-line-option],
1552 # [descriptive string])
1554 # All of the --with options take three forms:
1556 # --with-foo (or --with-foo=yes)
1557 # --without-foo (or --with-foo=no)
1560 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
1561 # a directory (string beginning with a slash) it checks to see whether
1562 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
1569 ###############################################################################
1570 ###############################################################################
1572 # End of function definitions. Now start actually executing stuff.
1574 ###############################################################################
1575 ###############################################################################
1577 # random compiler setup
1579 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1580 if test -f $ac_dir/install-sh; then
1582 ac_install_sh="$ac_aux_dir/install-sh -c"
1584 elif test -f $ac_dir/install.sh; then
1586 ac_install_sh="$ac_aux_dir/install.sh -c"
1588 elif test -f $ac_dir/shtool; then
1590 ac_install_sh="$ac_aux_dir/shtool install -c"
1594 if test -z "$ac_aux_dir"; then
1595 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1596 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1597 { (exit 1); exit 1; }; }
1599 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1600 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1601 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1603 # Make sure we can run config.sub.
1604 $ac_config_sub sun4 >/dev/null 2>&1 ||
1605 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1606 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1607 { (exit 1); exit 1; }; }
1609 echo "$as_me:$LINENO: checking build system type" >&5
1610 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1611 if test "${ac_cv_build+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1614 ac_cv_build_alias=$build_alias
1615 test -z "$ac_cv_build_alias" &&
1616 ac_cv_build_alias=`$ac_config_guess`
1617 test -z "$ac_cv_build_alias" &&
1618 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1619 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1620 { (exit 1); exit 1; }; }
1621 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1622 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1623 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1624 { (exit 1); exit 1; }; }
1627 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1628 echo "${ECHO_T}$ac_cv_build" >&6
1630 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1631 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1632 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1635 echo "$as_me:$LINENO: checking host system type" >&5
1636 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1637 if test "${ac_cv_host+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 ac_cv_host_alias=$host_alias
1641 test -z "$ac_cv_host_alias" &&
1642 ac_cv_host_alias=$ac_cv_build_alias
1643 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1644 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1645 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1646 { (exit 1); exit 1; }; }
1649 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1650 echo "${ECHO_T}$ac_cv_host" >&6
1652 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1653 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1654 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1659 ac_cpp='$CPP $CPPFLAGS'
1660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1663 if test -n "$ac_tool_prefix"; then
1664 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1665 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1666 echo "$as_me:$LINENO: checking for $ac_word" >&5
1667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668 if test "${ac_cv_prog_CC+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 if test -n "$CC"; then
1672 ac_cv_prog_CC="$CC" # Let the user override the test.
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678 test -z "$as_dir" && as_dir=.
1679 for ac_exec_ext in '' $ac_executable_extensions; do
1680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 if test -n "$CC"; then
1692 echo "$as_me:$LINENO: result: $CC" >&5
1693 echo "${ECHO_T}$CC" >&6
1695 echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1700 if test -z "$ac_cv_prog_CC"; then
1702 # Extract the first word of "gcc", so it can be a program name with args.
1703 set dummy gcc; ac_word=$2
1704 echo "$as_me:$LINENO: checking for $ac_word" >&5
1705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1706 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1707 echo $ECHO_N "(cached) $ECHO_C" >&6
1709 if test -n "$ac_ct_CC"; then
1710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 test -z "$as_dir" && as_dir=.
1717 for ac_exec_ext in '' $ac_executable_extensions; do
1718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1719 ac_cv_prog_ac_ct_CC="gcc"
1720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1729 if test -n "$ac_ct_CC"; then
1730 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1731 echo "${ECHO_T}$ac_ct_CC" >&6
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1742 if test -z "$CC"; then
1743 if test -n "$ac_tool_prefix"; then
1744 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1745 set dummy ${ac_tool_prefix}cc; ac_word=$2
1746 echo "$as_me:$LINENO: checking for $ac_word" >&5
1747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748 if test "${ac_cv_prog_CC+set}" = set; then
1749 echo $ECHO_N "(cached) $ECHO_C" >&6
1751 if test -n "$CC"; then
1752 ac_cv_prog_CC="$CC" # Let the user override the test.
1754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758 test -z "$as_dir" && as_dir=.
1759 for ac_exec_ext in '' $ac_executable_extensions; do
1760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761 ac_cv_prog_CC="${ac_tool_prefix}cc"
1762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771 if test -n "$CC"; then
1772 echo "$as_me:$LINENO: result: $CC" >&5
1773 echo "${ECHO_T}$CC" >&6
1775 echo "$as_me:$LINENO: result: no" >&5
1776 echo "${ECHO_T}no" >&6
1780 if test -z "$ac_cv_prog_CC"; then
1782 # Extract the first word of "cc", so it can be a program name with args.
1783 set dummy cc; ac_word=$2
1784 echo "$as_me:$LINENO: checking for $ac_word" >&5
1785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 if test -n "$ac_ct_CC"; then
1790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796 test -z "$as_dir" && as_dir=.
1797 for ac_exec_ext in '' $ac_executable_extensions; do
1798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1799 ac_cv_prog_ac_ct_CC="cc"
1800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1808 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1809 if test -n "$ac_ct_CC"; then
1810 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1811 echo "${ECHO_T}$ac_ct_CC" >&6
1813 echo "$as_me:$LINENO: result: no" >&5
1814 echo "${ECHO_T}no" >&6
1823 if test -z "$CC"; then
1824 # Extract the first word of "cc", so it can be a program name with args.
1825 set dummy cc; ac_word=$2
1826 echo "$as_me:$LINENO: checking for $ac_word" >&5
1827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1828 if test "${ac_cv_prog_CC+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1831 if test -n "$CC"; then
1832 ac_cv_prog_CC="$CC" # Let the user override the test.
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1842 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1843 ac_prog_rejected=yes
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 if test $ac_prog_rejected = yes; then
1854 # We found a bogon in the path, so make sure we never use it.
1855 set dummy $ac_cv_prog_CC
1857 if test $# != 0; then
1858 # We chose a different compiler from the bogus one.
1859 # However, it has the same basename, so the bogon will be chosen
1860 # first if we set CC to just the basename; use the full file name.
1862 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1868 if test -n "$CC"; then
1869 echo "$as_me:$LINENO: result: $CC" >&5
1870 echo "${ECHO_T}$CC" >&6
1872 echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1877 if test -z "$CC"; then
1878 if test -n "$ac_tool_prefix"; then
1881 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1882 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_CC+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 if test -n "$CC"; then
1889 ac_cv_prog_CC="$CC" # Let the user override the test.
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 if test -n "$CC"; then
1909 echo "$as_me:$LINENO: result: $CC" >&5
1910 echo "${ECHO_T}$CC" >&6
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1916 test -n "$CC" && break
1919 if test -z "$CC"; then
1923 # Extract the first word of "$ac_prog", so it can be a program name with args.
1924 set dummy $ac_prog; ac_word=$2
1925 echo "$as_me:$LINENO: checking for $ac_word" >&5
1926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1927 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1930 if test -n "$ac_ct_CC"; then
1931 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937 test -z "$as_dir" && as_dir=.
1938 for ac_exec_ext in '' $ac_executable_extensions; do
1939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940 ac_cv_prog_ac_ct_CC="$ac_prog"
1941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1950 if test -n "$ac_ct_CC"; then
1951 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1952 echo "${ECHO_T}$ac_ct_CC" >&6
1954 echo "$as_me:$LINENO: result: no" >&5
1955 echo "${ECHO_T}no" >&6
1958 test -n "$ac_ct_CC" && break
1967 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1968 See \`config.log' for more details." >&5
1969 echo "$as_me: error: no acceptable C compiler found in \$PATH
1970 See \`config.log' for more details." >&2;}
1971 { (exit 1); exit 1; }; }
1973 # Provide some information about the compiler.
1974 echo "$as_me:$LINENO:" \
1975 "checking for C compiler version" >&5
1976 ac_compiler=`set X $ac_compile; echo $2`
1977 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1978 (eval $ac_compiler --version </dev/null >&5) 2>&5
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); }
1982 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1983 (eval $ac_compiler -v </dev/null >&5) 2>&5
1985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986 (exit $ac_status); }
1987 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1988 (eval $ac_compiler -V </dev/null >&5) 2>&5
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }
1993 cat >conftest.$ac_ext <<_ACEOF
1996 cat confdefs.h >>conftest.$ac_ext
1997 cat >>conftest.$ac_ext <<_ACEOF
1998 /* end confdefs.h. */
2008 ac_clean_files_save=$ac_clean_files
2009 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2010 # Try to create an executable without -o first, disregard a.out.
2011 # It will help us diagnose broken compilers, and finding out an intuition
2013 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2014 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2015 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2016 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2017 (eval $ac_link_default) 2>&5
2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020 (exit $ac_status); }; then
2021 # Find the output, starting from the most likely. This scheme is
2022 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2025 # Be careful to initialize this variable, since it used to be cached.
2026 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2028 # b.out is created by i960 compilers.
2029 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2031 test -f "$ac_file" || continue
2033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2036 # This is the source file.
2039 # We found the default executable, but exeext='' is most
2043 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2044 # FIXME: I believe we export ac_cv_exeext for Libtool,
2045 # but it would be cool to find out if it's true. Does anybody
2046 # maintain Libtool? --akim.
2054 echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2057 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2058 See \`config.log' for more details." >&5
2059 echo "$as_me: error: C compiler cannot create executables
2060 See \`config.log' for more details." >&2;}
2061 { (exit 77); exit 77; }; }
2064 ac_exeext=$ac_cv_exeext
2065 echo "$as_me:$LINENO: result: $ac_file" >&5
2066 echo "${ECHO_T}$ac_file" >&6
2068 # Check the compiler produces executables we can run. If not, either
2069 # the compiler is broken, or we cross compile.
2070 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2071 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2072 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2073 # If not cross compiling, check that we can run a simple program.
2074 if test "$cross_compiling" != yes; then
2075 if { ac_try='./$ac_file'
2076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080 (exit $ac_status); }; }; then
2083 if test "$cross_compiling" = maybe; then
2086 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2087 If you meant to cross compile, use \`--host'.
2088 See \`config.log' for more details." >&5
2089 echo "$as_me: error: cannot run C compiled programs.
2090 If you meant to cross compile, use \`--host'.
2091 See \`config.log' for more details." >&2;}
2092 { (exit 1); exit 1; }; }
2096 echo "$as_me:$LINENO: result: yes" >&5
2097 echo "${ECHO_T}yes" >&6
2099 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2100 ac_clean_files=$ac_clean_files_save
2101 # Check the compiler produces executables we can run. If not, either
2102 # the compiler is broken, or we cross compile.
2103 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2104 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2105 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2106 echo "${ECHO_T}$cross_compiling" >&6
2108 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2109 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2111 (eval $ac_link) 2>&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; then
2115 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2116 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2117 # work properly (i.e., refer to `conftest.exe'), while it won't with
2119 for ac_file in conftest.exe conftest conftest.*; do
2120 test -f "$ac_file" || continue
2122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2123 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2130 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2131 See \`config.log' for more details." >&5
2132 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2133 See \`config.log' for more details." >&2;}
2134 { (exit 1); exit 1; }; }
2137 rm -f conftest$ac_cv_exeext
2138 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2139 echo "${ECHO_T}$ac_cv_exeext" >&6
2141 rm -f conftest.$ac_ext
2142 EXEEXT=$ac_cv_exeext
2144 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2145 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2146 if test "${ac_cv_objext+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 cat >conftest.$ac_ext <<_ACEOF
2152 cat confdefs.h >>conftest.$ac_ext
2153 cat >>conftest.$ac_ext <<_ACEOF
2154 /* end confdefs.h. */
2164 rm -f conftest.o conftest.obj
2165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166 (eval $ac_compile) 2>&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; then
2170 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2173 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2178 echo "$as_me: failed program was:" >&5
2179 sed 's/^/| /' conftest.$ac_ext >&5
2181 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2182 See \`config.log' for more details." >&5
2183 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2184 See \`config.log' for more details." >&2;}
2185 { (exit 1); exit 1; }; }
2188 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2190 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2191 echo "${ECHO_T}$ac_cv_objext" >&6
2192 OBJEXT=$ac_cv_objext
2194 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2195 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2196 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 cat >conftest.$ac_ext <<_ACEOF
2202 cat confdefs.h >>conftest.$ac_ext
2203 cat >>conftest.$ac_ext <<_ACEOF
2204 /* end confdefs.h. */
2217 rm -f conftest.$ac_objext
2218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2219 (eval $ac_compile) 2>conftest.er1
2221 grep -v '^ *+' conftest.er1 >conftest.err
2223 cat conftest.err >&5
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); } &&
2226 { ac_try='test -z "$ac_c_werror_flag"
2227 || test ! -s conftest.err'
2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; } &&
2233 { ac_try='test -s conftest.$ac_objext'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; }; then
2241 echo "$as_me: failed program was:" >&5
2242 sed 's/^/| /' conftest.$ac_ext >&5
2246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2247 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2250 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2251 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2252 GCC=`test $ac_compiler_gnu = yes && echo yes`
2253 ac_test_CFLAGS=${CFLAGS+set}
2254 ac_save_CFLAGS=$CFLAGS
2256 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2257 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2258 if test "${ac_cv_prog_cc_g+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 cat >conftest.$ac_ext <<_ACEOF
2264 cat confdefs.h >>conftest.$ac_ext
2265 cat >>conftest.$ac_ext <<_ACEOF
2266 /* end confdefs.h. */
2276 rm -f conftest.$ac_objext
2277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2278 (eval $ac_compile) 2>conftest.er1
2280 grep -v '^ *+' conftest.er1 >conftest.err
2282 cat conftest.err >&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); } &&
2285 { ac_try='test -z "$ac_c_werror_flag"
2286 || test ! -s conftest.err'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; } &&
2292 { ac_try='test -s conftest.$ac_objext'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; }; then
2300 echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2307 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2308 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2309 if test "$ac_test_CFLAGS" = set; then
2310 CFLAGS=$ac_save_CFLAGS
2311 elif test $ac_cv_prog_cc_g = yes; then
2312 if test "$GCC" = yes; then
2318 if test "$GCC" = yes; then
2324 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2325 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2326 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 ac_cv_prog_cc_stdc=no
2331 cat >conftest.$ac_ext <<_ACEOF
2334 cat confdefs.h >>conftest.$ac_ext
2335 cat >>conftest.$ac_ext <<_ACEOF
2336 /* end confdefs.h. */
2339 #include <sys/types.h>
2340 #include <sys/stat.h>
2341 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2342 struct buf { int x; };
2343 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2344 static char *e (p, i)
2350 static char *f (char * (*g) (char **, int), char **p, ...)
2355 s = g (p, va_arg (v,int));
2360 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2361 function prototypes and stuff, but not '\xHH' hex character constants.
2362 These don't provoke an error unfortunately, instead are silently treated
2363 as 'x'. The following induces an error, until -std1 is added to get
2364 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2365 array size at least. It's necessary to write '\x00'==0 to get something
2366 that's true only with -std1. */
2367 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2369 int test (int i, double x);
2370 struct s1 {int (*f) (int a);};
2371 struct s2 {int (*f) (double a);};
2372 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2378 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2383 # Don't try gcc -ansi; that turns off useful extensions and
2384 # breaks some systems' header files.
2385 # AIX -qlanglvl=ansi
2386 # Ultrix and OSF/1 -std1
2387 # HP-UX 10.20 and later -Ae
2388 # HP-UX older versions -Aa -D_HPUX_SOURCE
2389 # SVR4 -Xc -D__EXTENSIONS__
2390 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2392 CC="$ac_save_CC $ac_arg"
2393 rm -f conftest.$ac_objext
2394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395 (eval $ac_compile) 2>conftest.er1
2397 grep -v '^ *+' conftest.er1 >conftest.err
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
2402 { ac_try='test -z "$ac_c_werror_flag"
2403 || test ! -s conftest.err'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try='test -s conftest.$ac_objext'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2415 ac_cv_prog_cc_stdc=$ac_arg
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2422 rm -f conftest.err conftest.$ac_objext
2424 rm -f conftest.$ac_ext conftest.$ac_objext
2429 case "x$ac_cv_prog_cc_stdc" in
2431 echo "$as_me:$LINENO: result: none needed" >&5
2432 echo "${ECHO_T}none needed" >&6 ;;
2434 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2435 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2436 CC="$CC $ac_cv_prog_cc_stdc" ;;
2439 # Some people use a C++ compiler to compile C. Since we use `exit',
2440 # in C++ we need to declare it. In case someone uses the same compiler
2441 # for both compiling C and C++ we need to have the C++ compiler decide
2442 # the declaration of exit, since it's the most demanding environment.
2443 cat >conftest.$ac_ext <<_ACEOF
2448 rm -f conftest.$ac_objext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450 (eval $ac_compile) 2>conftest.er1
2452 grep -v '^ *+' conftest.er1 >conftest.err
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
2457 { ac_try='test -z "$ac_c_werror_flag"
2458 || test ! -s conftest.err'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; } &&
2464 { ac_try='test -s conftest.$ac_objext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2470 for ac_declaration in \
2472 'extern "C" void std::exit (int) throw (); using std::exit;' \
2473 'extern "C" void std::exit (int); using std::exit;' \
2474 'extern "C" void exit (int) throw ();' \
2475 'extern "C" void exit (int);' \
2478 cat >conftest.$ac_ext <<_ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2494 rm -f conftest.$ac_objext
2495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496 (eval $ac_compile) 2>conftest.er1
2498 grep -v '^ *+' conftest.er1 >conftest.err
2500 cat conftest.err >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } &&
2503 { ac_try='test -z "$ac_c_werror_flag"
2504 || test ! -s conftest.err'
2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; } &&
2510 { ac_try='test -s conftest.$ac_objext'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; }; then
2518 echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2524 cat >conftest.$ac_ext <<_ACEOF
2527 cat confdefs.h >>conftest.$ac_ext
2528 cat >>conftest.$ac_ext <<_ACEOF
2529 /* end confdefs.h. */
2539 rm -f conftest.$ac_objext
2540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2541 (eval $ac_compile) 2>conftest.er1
2543 grep -v '^ *+' conftest.er1 >conftest.err
2545 cat conftest.err >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); } &&
2548 { ac_try='test -z "$ac_c_werror_flag"
2549 || test ! -s conftest.err'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; } &&
2555 { ac_try='test -s conftest.$ac_objext'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; }; then
2563 echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2570 if test -n "$ac_declaration"; then
2571 echo '#ifdef __cplusplus' >>confdefs.h
2572 echo $ac_declaration >>confdefs.h
2573 echo '#endif' >>confdefs.h
2577 echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2583 ac_cpp='$CPP $CPPFLAGS'
2584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2589 if test -z "$GCC"; then
2591 echo "$as_me:$LINENO: checking how to request ANSI compilation" >&5
2592 echo $ECHO_N "checking how to request ANSI compilation... $ECHO_C" >&6
2595 echo "$as_me:$LINENO: result: HPUX: adding -Ae" >&5
2596 echo "${ECHO_T}HPUX: adding -Ae" >&6
2600 echo "$as_me:$LINENO: result: AIX: adding -qlanglvl=ansi -qhalt=e" >&5
2601 echo "${ECHO_T}AIX: adding -qlanglvl=ansi -qhalt=e" >&6
2602 CC="$CC -qlanglvl=ansi -qhalt=e"
2605 echo "$as_me:$LINENO: result: DEC: adding -std1 -ieee" >&5
2606 echo "${ECHO_T}DEC: adding -std1 -ieee" >&6
2610 echo "$as_me:$LINENO: result: no idea" >&5
2611 echo "${ECHO_T}no idea" >&6
2618 echo "$as_me:$LINENO: result: Solaris: adding -D__EXTENSIONS__" >&5
2619 echo "${ECHO_T}Solaris: adding -D__EXTENSIONS__" >&6
2620 CC="$CC -D__EXTENSIONS__"
2627 echo "$as_me:$LINENO: checking whether the compiler works on ANSI C" >&5
2628 echo $ECHO_N "checking whether the compiler works on ANSI C... $ECHO_C" >&6
2629 if test "$cross_compiling" = yes; then
2630 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2631 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2632 { (exit 1); exit 1; }; }
2634 cat >conftest.$ac_ext <<_ACEOF
2637 cat confdefs.h >>conftest.$ac_ext
2638 cat >>conftest.$ac_ext <<_ACEOF
2639 /* end confdefs.h. */
2640 main(int ac, char **av) { return 0; }
2642 rm -f conftest$ac_exeext
2643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2644 (eval $ac_link) 2>&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); }; }; then
2653 echo "$as_me:$LINENO: result: yes" >&5
2654 echo "${ECHO_T}yes" >&6
2656 echo "$as_me: program exited with status $ac_status" >&5
2657 echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2661 echo "$as_me:$LINENO: result: no" >&5
2662 echo "${ECHO_T}no" >&6
2663 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2664 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2665 { (exit 1); exit 1; }; }
2667 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2670 if test -n "$GCC"; then
2671 echo "$as_me:$LINENO: result: Turning on gcc compiler warnings." >&5
2672 echo "${ECHO_T}Turning on gcc compiler warnings." >&6
2673 CC="$CC -pedantic -Wall -Wstrict-prototypes -Wnested-externs"
2674 OBJCC="$OBJCC -Wall"
2675 # supposedly gcc 3.4 will have "-Wdeclaration-after-statement"
2676 # and then perhaps we can do without -pedantic?
2679 *-irix5* |*-irix6.0-3* )
2680 echo "$as_me:$LINENO: result: Turning on SGI compiler warnings." >&5
2681 echo "${ECHO_T}Turning on SGI compiler warnings." >&6
2682 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
2685 # if test -z "$GCC"; then
2686 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
2687 # CC="$CC -migrate -w0 -verbose -warnprotos"
2693 if test -n "$GCC"; then
2694 if test -n "$GCC"; then
2695 echo "$as_me:$LINENO: checking whether gcc accepts -std" >&5
2696 echo $ECHO_N "checking whether gcc accepts -std... $ECHO_C" >&6
2697 if test "${ac_cv_gcc_accepts_std+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 if ( ( gcc -E -std=c89 - </dev/null >/dev/null ) 2>&1 | \
2701 grep unrecognized >/dev/null ); then
2702 ac_cv_gcc_accepts_std=no
2704 ac_cv_gcc_accepts_std=yes
2707 echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_std" >&5
2708 echo "${ECHO_T}$ac_cv_gcc_accepts_std" >&6
2709 ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
2712 echo "$as_me:$LINENO: result: Disabling C++ comments in ANSI C code." >&5
2713 echo "${ECHO_T}Disabling C++ comments in ANSI C code." >&6
2715 # The reason that // comments are banned from xscreensaver is that gcc is
2716 # basically the only compiler in the world that supports them in C code.
2717 # All other vendors support them only in their C++ compilers, not in their
2718 # ANSI C compilers. This means that it's a portability problem: every time
2719 # these comments have snuck into the xscreensaver source code, I've gotten
2720 # complaints about it the next day. So we turn off support for them in gcc
2721 # as well to prevent them from accidentially slipping in.
2723 if test "$ac_gcc_accepts_std" = yes ; then
2725 # -std=c89 defines __STRICT_ANSI__, which we don't want.
2726 # (That appears to be the only additional preprocessor symbol
2727 # it defines, in addition to the syntax changes it makes.)
2729 # -std=gnu89 is no good, because // comments were a GNU extension
2730 # before they were in the ANSI C 99 spec... (gcc 2.96 permits //
2731 # with -std=gnu89 but not with -std=c89.)
2733 CC="$CC -std=c89 -U__STRICT_ANSI__"
2736 CC="$CC -Wp,-lang-c89"
2740 if test -n "$GCC"; then
2741 if test -n "$GCC"; then
2742 echo "$as_me:$LINENO: checking whether gcc accepts -no-cpp-precomp" >&5
2743 echo $ECHO_N "checking whether gcc accepts -no-cpp-precomp... $ECHO_C" >&6
2744 if test "${ac_cv_gcc_accepts_no_cpp_precomp+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 if ( ( gcc -E -no-cpp-precomp - </dev/null >/dev/null ) 2>&1 | \
2748 grep unrecognized >/dev/null ); then
2749 ac_cv_gcc_accepts_no_cpp_precomp=no
2751 ac_cv_gcc_accepts_no_cpp_precomp=yes
2754 echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_cpp_precomp" >&5
2755 echo "${ECHO_T}$ac_cv_gcc_accepts_no_cpp_precomp" >&6
2756 ac_gcc_accepts_no_cpp_precomp="$ac_cv_gcc_accepts_no_cpp_precomp"
2759 if test "$ac_gcc_accepts_no_cpp_precomp" = yes ; then
2760 echo "$as_me:$LINENO: result: Disabling Objective C extensions in ANSI C code." >&5
2761 echo "${ECHO_T}Disabling Objective C extensions in ANSI C code." >&6
2762 CC="$CC -no-cpp-precomp"
2767 ac_cpp='$CPP $CPPFLAGS'
2768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2771 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2772 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2773 # On Suns, sometimes $CPP names a directory.
2774 if test -n "$CPP" && test -d "$CPP"; then
2777 if test -z "$CPP"; then
2778 if test "${ac_cv_prog_CPP+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 # Double quotes because CPP needs to be expanded
2782 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2785 for ac_c_preproc_warn_flag in '' yes
2787 # Use a header file that comes with gcc, so configuring glibc
2788 # with a fresh cross-compiler works.
2789 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2790 # <limits.h> exists even on freestanding compilers.
2791 # On the NeXT, cc -E runs the code through the compiler's parser,
2792 # not just through cpp. "Syntax error" is here to catch this case.
2793 cat >conftest.$ac_ext <<_ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2800 # include <limits.h>
2802 # include <assert.h>
2806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2809 grep -v '^ *+' conftest.er1 >conftest.err
2811 cat conftest.err >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } >/dev/null; then
2814 if test -s conftest.err; then
2815 ac_cpp_err=$ac_c_preproc_warn_flag
2816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2823 if test -z "$ac_cpp_err"; then
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2829 # Broken: fails on valid input.
2832 rm -f conftest.err conftest.$ac_ext
2834 # OK, works on sane cases. Now check whether non-existent headers
2835 # can be detected and how.
2836 cat >conftest.$ac_ext <<_ACEOF
2839 cat confdefs.h >>conftest.$ac_ext
2840 cat >>conftest.$ac_ext <<_ACEOF
2841 /* end confdefs.h. */
2842 #include <ac_nonexistent.h>
2844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2847 grep -v '^ *+' conftest.er1 >conftest.err
2849 cat conftest.err >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } >/dev/null; then
2852 if test -s conftest.err; then
2853 ac_cpp_err=$ac_c_preproc_warn_flag
2854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2861 if test -z "$ac_cpp_err"; then
2862 # Broken: success on invalid input.
2865 echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2868 # Passes both tests.
2872 rm -f conftest.err conftest.$ac_ext
2875 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2876 rm -f conftest.err conftest.$ac_ext
2877 if $ac_preproc_ok; then
2889 echo "$as_me:$LINENO: result: $CPP" >&5
2890 echo "${ECHO_T}$CPP" >&6
2892 for ac_c_preproc_warn_flag in '' yes
2894 # Use a header file that comes with gcc, so configuring glibc
2895 # with a fresh cross-compiler works.
2896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2897 # <limits.h> exists even on freestanding compilers.
2898 # On the NeXT, cc -E runs the code through the compiler's parser,
2899 # not just through cpp. "Syntax error" is here to catch this case.
2900 cat >conftest.$ac_ext <<_ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2907 # include <limits.h>
2909 # include <assert.h>
2913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2916 grep -v '^ *+' conftest.er1 >conftest.err
2918 cat conftest.err >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); } >/dev/null; then
2921 if test -s conftest.err; then
2922 ac_cpp_err=$ac_c_preproc_warn_flag
2923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2930 if test -z "$ac_cpp_err"; then
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2936 # Broken: fails on valid input.
2939 rm -f conftest.err conftest.$ac_ext
2941 # OK, works on sane cases. Now check whether non-existent headers
2942 # can be detected and how.
2943 cat >conftest.$ac_ext <<_ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2949 #include <ac_nonexistent.h>
2951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2954 grep -v '^ *+' conftest.er1 >conftest.err
2956 cat conftest.err >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } >/dev/null; then
2959 if test -s conftest.err; then
2960 ac_cpp_err=$ac_c_preproc_warn_flag
2961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2968 if test -z "$ac_cpp_err"; then
2969 # Broken: success on invalid input.
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2975 # Passes both tests.
2979 rm -f conftest.err conftest.$ac_ext
2982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2983 rm -f conftest.err conftest.$ac_ext
2984 if $ac_preproc_ok; then
2987 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2988 See \`config.log' for more details." >&5
2989 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2990 See \`config.log' for more details." >&2;}
2991 { (exit 1); exit 1; }; }
2995 ac_cpp='$CPP $CPPFLAGS'
2996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3001 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3002 if test "${ac_cv_c_const+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 cat >conftest.$ac_ext <<_ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3015 /* FIXME: Include the comments suggested by Paul. */
3017 /* Ultrix mips cc rejects this. */
3018 typedef int charset[2];
3020 /* SunOS 4.1.1 cc rejects this. */
3021 char const *const *ccp;
3023 /* NEC SVR4.0.2 mips cc rejects this. */
3024 struct point {int x, y;};
3025 static struct point const zero = {0,0};
3026 /* AIX XL C 1.02.0.0 rejects this.
3027 It does not let you subtract one const X* pointer from another in
3028 an arm of an if-expression whose if-part is not a constant
3030 const char *g = "string";
3031 ccp = &g + (g ? g-g : 0);
3032 /* HPUX 7.0 cc rejects these. */
3035 ccp = (char const *const *) p;
3036 { /* SCO 3.2v4 cc rejects this. */
3038 char const *s = 0 ? (char *) 0 : (char const *) 0;
3042 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3044 const int *foo = &x[0];
3047 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3048 typedef const int *iptr;
3052 { /* AIX XL C 1.02.0.0 rejects this saying
3053 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3054 struct s { int j; const int *ap[3]; };
3055 struct s *b; b->j = 5;
3057 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3066 rm -f conftest.$ac_objext
3067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068 (eval $ac_compile) 2>conftest.er1
3070 grep -v '^ *+' conftest.er1 >conftest.err
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } &&
3075 { ac_try='test -z "$ac_c_werror_flag"
3076 || test ! -s conftest.err'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; } &&
3082 { ac_try='test -s conftest.$ac_objext'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3097 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3098 echo "${ECHO_T}$ac_cv_c_const" >&6
3099 if test $ac_cv_c_const = no; then
3101 cat >>confdefs.h <<\_ACEOF
3107 echo "$as_me:$LINENO: checking for inline" >&5
3108 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3109 if test "${ac_cv_c_inline+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 for ac_kw in inline __inline__ __inline; do
3114 cat >conftest.$ac_ext <<_ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3122 static $ac_kw foo_t static_foo () {return 0; }
3123 $ac_kw foo_t foo () {return 0; }
3127 rm -f conftest.$ac_objext
3128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3129 (eval $ac_compile) 2>conftest.er1
3131 grep -v '^ *+' conftest.er1 >conftest.err
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 { ac_try='test -z "$ac_c_werror_flag"
3137 || test ! -s conftest.err'
3138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; } &&
3143 { ac_try='test -s conftest.$ac_objext'
3144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3149 ac_cv_c_inline=$ac_kw; break
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3159 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3160 echo "${ECHO_T}$ac_cv_c_inline" >&6
3163 case $ac_cv_c_inline in
3166 case $ac_cv_c_inline in
3168 *) ac_val=$ac_cv_c_inline;;
3170 cat >>confdefs.h <<_ACEOF
3172 #define inline $ac_val
3179 ac_bc_result=`echo 6+9 | bc 2>/dev/null`
3180 echo "$as_me:$LINENO: checking for bc" >&5
3181 echo $ECHO_N "checking for bc... $ECHO_C" >&6
3182 if test "$ac_bc_result" = "15" ; then
3183 echo "$as_me:$LINENO: result: yes" >&5
3184 echo "${ECHO_T}yes" >&6
3186 echo "$as_me:$LINENO: result: no" >&5
3187 echo "${ECHO_T}no" >&6
3189 { { echo "$as_me:$LINENO: error: Your system doesn't have \"bc\", which has been a standard
3190 part of Unix since the 1970s. Come back when your vendor
3191 has grown a clue." >&5
3192 echo "$as_me: error: Your system doesn't have \"bc\", which has been a standard
3193 part of Unix since the 1970s. Come back when your vendor
3194 has grown a clue." >&2;}
3195 { (exit 1); exit 1; }; }
3199 # stuff for Makefiles
3200 # Find a good install program. We prefer a C program (faster),
3201 # so one script is as good as another. But avoid the broken or
3202 # incompatible versions:
3203 # SysV /etc/install, /usr/sbin/install
3204 # SunOS /usr/etc/install
3205 # IRIX /sbin/install
3207 # AmigaOS /C/install, which installs bootblocks on floppy discs
3208 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3209 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3210 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3211 # OS/2's system install, which has a completely different semantic
3212 # ./install, which can be erroneously created by make from ./install.sh.
3213 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3214 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3215 if test -z "$INSTALL"; then
3216 if test "${ac_cv_path_install+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 test -z "$as_dir" && as_dir=.
3224 # Account for people who put trailing slashes in PATH elements.
3226 ./ | .// | /cC/* | \
3227 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3228 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3231 # OSF1 and SCO ODT 3.0 have their own names for install.
3232 # Don't use installbsd from OSF since it installs stuff as root
3234 for ac_prog in ginstall scoinst install; do
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3237 if test $ac_prog = install &&
3238 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3239 # AIX install. It has an incompatible calling convention.
3241 elif test $ac_prog = install &&
3242 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3243 # program-specific install script used by HP pwplus--don't use.
3246 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3258 if test "${ac_cv_path_install+set}" = set; then
3259 INSTALL=$ac_cv_path_install
3261 # As a last resort, use the slow shell script. We don't cache a
3262 # path for INSTALL within a source directory, because that will
3263 # break other packages using the cache if that directory is
3264 # removed, or if the path is relative.
3265 INSTALL=$ac_install_sh
3268 echo "$as_me:$LINENO: result: $INSTALL" >&5
3269 echo "${ECHO_T}$INSTALL" >&6
3271 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3272 # It thinks the first close brace ends the variable substitution.
3273 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3275 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3277 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3279 echo "$as_me:$LINENO: checking whether \"\${INSTALL} -d\" creates intermediate directories" >&5
3280 echo $ECHO_N "checking whether \"\${INSTALL} -d\" creates intermediate directories... $ECHO_C" >&6
3281 if test "${ac_cv_install_d_creates_dirs+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 ac_cv_install_d_creates_dirs=no
3286 if mkdir conftestdir; then
3287 cd conftestdir 2>/dev/null
3288 ${INSTALL} -d `pwd`/dir1/dir2 >/dev/null 2>&1
3289 if test -d dir1/dir2/. ; then
3290 ac_cv_install_d_creates_dirs=yes
3297 echo "$as_me:$LINENO: result: $ac_cv_install_d_creates_dirs" >&5
3298 echo "${ECHO_T}$ac_cv_install_d_creates_dirs" >&6
3300 if test "$ac_cv_install_d_creates_dirs" = no ; then
3301 echo "$as_me:$LINENO: checking whether \"mkdir -p\" creates intermediate directories" >&5
3302 echo $ECHO_N "checking whether \"mkdir -p\" creates intermediate directories... $ECHO_C" >&6
3303 if test "${ac_cv_mkdir_p_creates_dirs+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 ac_cv_mkdir_p_creates_dirs=no
3308 if mkdir conftestdir; then
3309 cd conftestdir 2>/dev/null
3310 mkdir -p dir1/dir2 >/dev/null 2>&1
3311 if test -d dir1/dir2/. ; then
3312 ac_cv_mkdir_p_creates_dirs=yes
3319 echo "$as_me:$LINENO: result: $ac_cv_mkdir_p_creates_dirs" >&5
3320 echo "${ECHO_T}$ac_cv_mkdir_p_creates_dirs" >&6
3323 if test "$ac_cv_install_d_creates_dirs" = yes ; then
3324 INSTALL_DIRS='${INSTALL} -d'
3325 elif test "$ac_cv_mkdir_p_creates_dirs" = yes ; then
3326 INSTALL_DIRS='mkdir -p'
3329 INSTALL_DIRS='${INSTALL} -d'
3332 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3333 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3334 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3335 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 cat >conftest.make <<\_ACEOF
3340 @echo 'ac_maketemp="$(MAKE)"'
3342 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3343 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3344 if test -n "$ac_maketemp"; then
3345 eval ac_cv_prog_make_${ac_make}_set=yes
3347 eval ac_cv_prog_make_${ac_make}_set=no
3351 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3352 echo "$as_me:$LINENO: result: yes" >&5
3353 echo "${ECHO_T}yes" >&6
3356 echo "$as_me:$LINENO: result: no" >&5
3357 echo "${ECHO_T}no" >&6
3358 SET_MAKE="MAKE=${MAKE-make}"
3362 # By default, autoconf sets INSTALL_SCRIPT to '${INSTALL_PROGRAM}'.
3363 # That's wrong: it should be set to '${INSTALL}', so that one can
3364 # implement the "install-strip" target properly (strip executables,
3365 # but do not try to strip scripts.)
3367 INSTALL_SCRIPT='${INSTALL}'
3371 echo "$as_me:$LINENO: checking for egrep" >&5
3372 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3373 if test "${ac_cv_prog_egrep+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3377 then ac_cv_prog_egrep='grep -E'
3378 else ac_cv_prog_egrep='egrep'
3381 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3382 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3383 EGREP=$ac_cv_prog_egrep
3386 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3387 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3388 if test "${ac_cv_header_stdc+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3391 cat >conftest.$ac_ext <<_ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3410 rm -f conftest.$ac_objext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412 (eval $ac_compile) 2>conftest.er1
3414 grep -v '^ *+' conftest.er1 >conftest.err
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try='test -z "$ac_c_werror_flag"
3420 || test ! -s conftest.err'
3421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); }; } &&
3426 { ac_try='test -s conftest.$ac_objext'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; }; then
3432 ac_cv_header_stdc=yes
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3437 ac_cv_header_stdc=no
3439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3441 if test $ac_cv_header_stdc = yes; then
3442 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3443 cat >conftest.$ac_ext <<_ACEOF
3446 cat confdefs.h >>conftest.$ac_ext
3447 cat >>conftest.$ac_ext <<_ACEOF
3448 /* end confdefs.h. */
3452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3453 $EGREP "memchr" >/dev/null 2>&1; then
3456 ac_cv_header_stdc=no
3462 if test $ac_cv_header_stdc = yes; then
3463 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3464 cat >conftest.$ac_ext <<_ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3474 $EGREP "free" >/dev/null 2>&1; then
3477 ac_cv_header_stdc=no
3483 if test $ac_cv_header_stdc = yes; then
3484 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3485 if test "$cross_compiling" = yes; then
3488 cat >conftest.$ac_ext <<_ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3495 #if ((' ' & 0x0FF) == 0x020)
3496 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3497 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3499 # define ISLOWER(c) \
3500 (('a' <= (c) && (c) <= 'i') \
3501 || ('j' <= (c) && (c) <= 'r') \
3502 || ('s' <= (c) && (c) <= 'z'))
3503 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3506 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3511 for (i = 0; i < 256; i++)
3512 if (XOR (islower (i), ISLOWER (i))
3513 || toupper (i) != TOUPPER (i))
3518 rm -f conftest$ac_exeext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3520 (eval $ac_link) 2>&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3531 echo "$as_me: program exited with status $ac_status" >&5
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3536 ac_cv_header_stdc=no
3538 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3542 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3543 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3544 if test $ac_cv_header_stdc = yes; then
3546 cat >>confdefs.h <<\_ACEOF
3547 #define STDC_HEADERS 1
3552 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3562 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3563 inttypes.h stdint.h unistd.h
3565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3566 echo "$as_me:$LINENO: checking for $ac_header" >&5
3567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 cat >conftest.$ac_ext <<_ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3577 $ac_includes_default
3579 #include <$ac_header>
3581 rm -f conftest.$ac_objext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583 (eval $ac_compile) 2>conftest.er1
3585 grep -v '^ *+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } &&
3590 { ac_try='test -z "$ac_c_werror_flag"
3591 || test ! -s conftest.err'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; } &&
3597 { ac_try='test -s conftest.$ac_objext'
3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; }; then
3603 eval "$as_ac_Header=yes"
3605 echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3608 eval "$as_ac_Header=no"
3610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3615 cat >>confdefs.h <<_ACEOF
3616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3625 for ac_header in unistd.h
3627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3629 echo "$as_me:$LINENO: checking for $ac_header" >&5
3630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3637 # Is the header compilable?
3638 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3640 cat >conftest.$ac_ext <<_ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3646 $ac_includes_default
3647 #include <$ac_header>
3649 rm -f conftest.$ac_objext
3650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3651 (eval $ac_compile) 2>conftest.er1
3653 grep -v '^ *+' conftest.er1 >conftest.err
3655 cat conftest.err >&5
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); } &&
3658 { ac_try='test -z "$ac_c_werror_flag"
3659 || test ! -s conftest.err'
3660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; } &&
3665 { ac_try='test -s conftest.$ac_objext'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; }; then
3671 ac_header_compiler=yes
3673 echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 ac_header_compiler=no
3678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3680 echo "${ECHO_T}$ac_header_compiler" >&6
3682 # Is the header present?
3683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3685 cat >conftest.$ac_ext <<_ACEOF
3688 cat confdefs.h >>conftest.$ac_ext
3689 cat >>conftest.$ac_ext <<_ACEOF
3690 /* end confdefs.h. */
3691 #include <$ac_header>
3693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3696 grep -v '^ *+' conftest.er1 >conftest.err
3698 cat conftest.err >&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } >/dev/null; then
3701 if test -s conftest.err; then
3702 ac_cpp_err=$ac_c_preproc_warn_flag
3703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3710 if test -z "$ac_cpp_err"; then
3711 ac_header_preproc=yes
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3716 ac_header_preproc=no
3718 rm -f conftest.err conftest.$ac_ext
3719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3720 echo "${ECHO_T}$ac_header_preproc" >&6
3722 # So? What about this header?
3723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3729 ac_header_preproc=yes
3732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3735 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3739 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3746 ## ------------------------------------------ ##
3747 ## Report this to the AC_PACKAGE_NAME lists. ##
3748 ## ------------------------------------------ ##
3751 sed "s/^/$as_me: WARNING: /" >&2
3754 echo "$as_me:$LINENO: checking for $ac_header" >&5
3755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 eval "$as_ac_Header=\$ac_header_preproc"
3761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3766 cat >>confdefs.h <<_ACEOF
3767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3774 echo "$as_me:$LINENO: checking for mode_t" >&5
3775 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
3776 if test "${ac_cv_type_mode_t+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 cat >conftest.$ac_ext <<_ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3785 $ac_includes_default
3791 if (sizeof (mode_t))
3797 rm -f conftest.$ac_objext
3798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3799 (eval $ac_compile) 2>conftest.er1
3801 grep -v '^ *+' conftest.er1 >conftest.err
3803 cat conftest.err >&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } &&
3806 { ac_try='test -z "$ac_c_werror_flag"
3807 || test ! -s conftest.err'
3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; } &&
3813 { ac_try='test -s conftest.$ac_objext'
3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 ac_cv_type_mode_t=yes
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 ac_cv_type_mode_t=no
3826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3828 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
3829 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
3830 if test $ac_cv_type_mode_t = yes; then
3834 cat >>confdefs.h <<_ACEOF
3840 echo "$as_me:$LINENO: checking for pid_t" >&5
3841 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3842 if test "${ac_cv_type_pid_t+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 cat >conftest.$ac_ext <<_ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3851 $ac_includes_default
3863 rm -f conftest.$ac_objext
3864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3865 (eval $ac_compile) 2>conftest.er1
3867 grep -v '^ *+' conftest.er1 >conftest.err
3869 cat conftest.err >&5
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); } &&
3872 { ac_try='test -z "$ac_c_werror_flag"
3873 || test ! -s conftest.err'
3874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; } &&
3879 { ac_try='test -s conftest.$ac_objext'
3880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
3885 ac_cv_type_pid_t=yes
3887 echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3894 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3895 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3896 if test $ac_cv_type_pid_t = yes; then
3900 cat >>confdefs.h <<_ACEOF
3906 echo "$as_me:$LINENO: checking for size_t" >&5
3907 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3908 if test "${ac_cv_type_size_t+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3911 cat >conftest.$ac_ext <<_ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h. */
3917 $ac_includes_default
3923 if (sizeof (size_t))
3929 rm -f conftest.$ac_objext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3931 (eval $ac_compile) 2>conftest.er1
3933 grep -v '^ *+' conftest.er1 >conftest.err
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } &&
3938 { ac_try='test -z "$ac_c_werror_flag"
3939 || test ! -s conftest.err'
3940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; } &&
3945 { ac_try='test -s conftest.$ac_objext'
3946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3951 ac_cv_type_size_t=yes
3953 echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3956 ac_cv_type_size_t=no
3958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3960 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3961 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3962 if test $ac_cv_type_size_t = yes; then
3966 cat >>confdefs.h <<_ACEOF
3967 #define size_t unsigned
3972 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3973 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3974 if test "${ac_cv_type_signal+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 cat >conftest.$ac_ext <<_ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3983 #include <sys/types.h>
3989 extern "C" void (*signal (int, void (*)(int)))(int);
3991 void (*signal ()) ();
4002 rm -f conftest.$ac_objext
4003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4004 (eval $ac_compile) 2>conftest.er1
4006 grep -v '^ *+' conftest.er1 >conftest.err
4008 cat conftest.err >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } &&
4011 { ac_try='test -z "$ac_c_werror_flag"
4012 || test ! -s conftest.err'
4013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; } &&
4018 { ac_try='test -s conftest.$ac_objext'
4019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4024 ac_cv_type_signal=void
4026 echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4029 ac_cv_type_signal=int
4031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4033 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4034 echo "${ECHO_T}$ac_cv_type_signal" >&6
4036 cat >>confdefs.h <<_ACEOF
4037 #define RETSIGTYPE $ac_cv_type_signal
4041 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4042 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4043 if test "${ac_cv_header_time+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 cat >conftest.$ac_ext <<_ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4052 #include <sys/types.h>
4053 #include <sys/time.h>
4059 if ((struct tm *) 0)
4065 rm -f conftest.$ac_objext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4067 (eval $ac_compile) 2>conftest.er1
4069 grep -v '^ *+' conftest.er1 >conftest.err
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
4074 { ac_try='test -z "$ac_c_werror_flag"
4075 || test ! -s conftest.err'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; } &&
4081 { ac_try='test -s conftest.$ac_objext'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4087 ac_cv_header_time=yes
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4092 ac_cv_header_time=no
4094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4096 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4097 echo "${ECHO_T}$ac_cv_header_time" >&6
4098 if test $ac_cv_header_time = yes; then
4100 cat >>confdefs.h <<\_ACEOF
4101 #define TIME_WITH_SYS_TIME 1
4106 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4107 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4108 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 cat >conftest.$ac_ext <<_ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4117 #include <sys/types.h>
4118 #include <sys/wait.h>
4120 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4123 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4131 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4136 rm -f conftest.$ac_objext
4137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4138 (eval $ac_compile) 2>conftest.er1
4140 grep -v '^ *+' conftest.er1 >conftest.err
4142 cat conftest.err >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } &&
4145 { ac_try='test -z "$ac_c_werror_flag"
4146 || test ! -s conftest.err'
4147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; } &&
4152 { ac_try='test -s conftest.$ac_objext'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; }; then
4158 ac_cv_header_sys_wait_h=yes
4160 echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 ac_cv_header_sys_wait_h=no
4165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4167 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4168 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4169 if test $ac_cv_header_sys_wait_h = yes; then
4171 cat >>confdefs.h <<\_ACEOF
4172 #define HAVE_SYS_WAIT_H 1
4183 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4184 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4185 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4186 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 cat >conftest.$ac_ext <<_ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 #include <sys/types.h>
4208 rm -f conftest.$ac_objext
4209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4210 (eval $ac_compile) 2>conftest.er1
4212 grep -v '^ *+' conftest.er1 >conftest.err
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try='test -z "$ac_c_werror_flag"
4218 || test ! -s conftest.err'
4219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; } &&
4224 { ac_try='test -s conftest.$ac_objext'
4225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 eval "$as_ac_Header=yes"
4232 echo "$as_me: failed program was:" >&5
4233 sed 's/^/| /' conftest.$ac_ext >&5
4235 eval "$as_ac_Header=no"
4237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4242 cat >>confdefs.h <<_ACEOF
4243 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4246 ac_header_dirent=$ac_hdr; break
4250 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4251 if test $ac_header_dirent = dirent.h; then
4252 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4253 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4254 if test "${ac_cv_search_opendir+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 ac_func_search_save_LIBS=$LIBS
4258 ac_cv_search_opendir=no
4259 cat >conftest.$ac_ext <<_ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4266 /* Override any gcc2 internal prototype to avoid an error. */
4270 /* We use char because int might match the return type of a gcc2
4271 builtin and then its argument prototype would still apply. */
4281 rm -f conftest.$ac_objext conftest$ac_exeext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4283 (eval $ac_link) 2>conftest.er1
4285 grep -v '^ *+' conftest.er1 >conftest.err
4287 cat conftest.err >&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } &&
4290 { ac_try='test -z "$ac_c_werror_flag"
4291 || test ! -s conftest.err'
4292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; } &&
4297 { ac_try='test -s conftest$ac_exeext'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4303 ac_cv_search_opendir="none required"
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4309 rm -f conftest.err conftest.$ac_objext \
4310 conftest$ac_exeext conftest.$ac_ext
4311 if test "$ac_cv_search_opendir" = no; then
4312 for ac_lib in dir; do
4313 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4314 cat >conftest.$ac_ext <<_ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4321 /* Override any gcc2 internal prototype to avoid an error. */
4325 /* We use char because int might match the return type of a gcc2
4326 builtin and then its argument prototype would still apply. */
4336 rm -f conftest.$ac_objext conftest$ac_exeext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4338 (eval $ac_link) 2>conftest.er1
4340 grep -v '^ *+' conftest.er1 >conftest.err
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag"
4346 || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try='test -s conftest$ac_exeext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 ac_cv_search_opendir="-l$ac_lib"
4361 echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4365 rm -f conftest.err conftest.$ac_objext \
4366 conftest$ac_exeext conftest.$ac_ext
4369 LIBS=$ac_func_search_save_LIBS
4371 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4372 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4373 if test "$ac_cv_search_opendir" != no; then
4374 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4379 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4380 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4381 if test "${ac_cv_search_opendir+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 ac_func_search_save_LIBS=$LIBS
4385 ac_cv_search_opendir=no
4386 cat >conftest.$ac_ext <<_ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h. */
4393 /* Override any gcc2 internal prototype to avoid an error. */
4397 /* We use char because int might match the return type of a gcc2
4398 builtin and then its argument prototype would still apply. */
4408 rm -f conftest.$ac_objext conftest$ac_exeext
4409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4410 (eval $ac_link) 2>conftest.er1
4412 grep -v '^ *+' conftest.er1 >conftest.err
4414 cat conftest.err >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } &&
4417 { ac_try='test -z "$ac_c_werror_flag"
4418 || test ! -s conftest.err'
4419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); }; } &&
4424 { ac_try='test -s conftest$ac_exeext'
4425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; }; then
4430 ac_cv_search_opendir="none required"
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4436 rm -f conftest.err conftest.$ac_objext \
4437 conftest$ac_exeext conftest.$ac_ext
4438 if test "$ac_cv_search_opendir" = no; then
4440 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4441 cat >conftest.$ac_ext <<_ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4448 /* Override any gcc2 internal prototype to avoid an error. */
4452 /* We use char because int might match the return type of a gcc2
4453 builtin and then its argument prototype would still apply. */
4463 rm -f conftest.$ac_objext conftest$ac_exeext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4465 (eval $ac_link) 2>conftest.er1
4467 grep -v '^ *+' conftest.er1 >conftest.err
4469 cat conftest.err >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } &&
4472 { ac_try='test -z "$ac_c_werror_flag"
4473 || test ! -s conftest.err'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; } &&
4479 { ac_try='test -s conftest$ac_exeext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4485 ac_cv_search_opendir="-l$ac_lib"
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4492 rm -f conftest.err conftest.$ac_objext \
4493 conftest$ac_exeext conftest.$ac_ext
4496 LIBS=$ac_func_search_save_LIBS
4498 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4499 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4500 if test "$ac_cv_search_opendir" != no; then
4501 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4507 echo "$as_me:$LINENO: checking how to call gettimeofday" >&5
4508 echo $ECHO_N "checking how to call gettimeofday... $ECHO_C" >&6
4509 if test "${ac_cv_gettimeofday_args+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 cat >conftest.$ac_ext <<_ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h. */
4519 #include <sys/time.h>
4523 struct timeval tv; struct timezone tzp;
4524 gettimeofday(&tv, &tzp);
4529 rm -f conftest.$ac_objext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4531 (eval $ac_compile) 2>conftest.er1
4533 grep -v '^ *+' conftest.er1 >conftest.err
4535 cat conftest.err >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try='test -z "$ac_c_werror_flag"
4539 || test ! -s conftest.err'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; } &&
4545 { ac_try='test -s conftest.$ac_objext'
4546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; }; then
4551 ac_gettimeofday_args=2
4553 echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4556 cat >conftest.$ac_ext <<_ACEOF
4559 cat confdefs.h >>conftest.$ac_ext
4560 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h. */
4563 #include <sys/time.h>
4567 struct timeval tv; gettimeofday(&tv);
4572 rm -f conftest.$ac_objext
4573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4574 (eval $ac_compile) 2>conftest.er1
4576 grep -v '^ *+' conftest.er1 >conftest.err
4578 cat conftest.err >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); } &&
4581 { ac_try='test -z "$ac_c_werror_flag"
4582 || test ! -s conftest.err'
4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; } &&
4588 { ac_try='test -s conftest.$ac_objext'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; }; then
4594 ac_gettimeofday_args=1
4596 echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4599 ac_gettimeofday_args=0
4601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4604 ac_cv_gettimeofday_args=$ac_gettimeofday_args
4607 ac_gettimeofday_args=$ac_cv_gettimeofday_args
4608 if test "$ac_gettimeofday_args" = 1 ; then
4609 cat >>confdefs.h <<\_ACEOF
4610 #define HAVE_GETTIMEOFDAY 1
4613 echo "$as_me:$LINENO: result: one argument" >&5
4614 echo "${ECHO_T}one argument" >&6
4615 elif test "$ac_gettimeofday_args" = 2 ; then
4616 cat >>confdefs.h <<\_ACEOF
4617 #define HAVE_GETTIMEOFDAY 1
4620 cat >>confdefs.h <<\_ACEOF
4621 #define GETTIMEOFDAY_TWO_ARGS 1
4624 echo "$as_me:$LINENO: result: two arguments" >&5
4625 echo "${ECHO_T}two arguments" >&6
4627 echo "$as_me:$LINENO: result: unknown" >&5
4628 echo "${ECHO_T}unknown" >&6
4640 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv sbrk
4642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4643 echo "$as_me:$LINENO: checking for $ac_func" >&5
4644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4645 if eval "test \"\${$as_ac_var+set}\" = set"; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 cat >conftest.$ac_ext <<_ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4656 #define $ac_func innocuous_$ac_func
4658 /* System header to define __stub macros and hopefully few prototypes,
4659 which can conflict with char $ac_func (); below.
4660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4661 <limits.h> exists even on freestanding compilers. */
4664 # include <limits.h>
4666 # include <assert.h>
4671 /* Override any gcc2 internal prototype to avoid an error. */
4676 /* We use char because int might match the return type of a gcc2
4677 builtin and then its argument prototype would still apply. */
4679 /* The GNU C library defines this for functions which it implements
4680 to always fail with ENOSYS. Some functions are actually named
4681 something starting with __ and the normal name is an alias. */
4682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4685 char (*f) () = $ac_func;
4694 return f != $ac_func;
4699 rm -f conftest.$ac_objext conftest$ac_exeext
4700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4701 (eval $ac_link) 2>conftest.er1
4703 grep -v '^ *+' conftest.er1 >conftest.err
4705 cat conftest.err >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } &&
4708 { ac_try='test -z "$ac_c_werror_flag"
4709 || test ! -s conftest.err'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; } &&
4715 { ac_try='test -s conftest$ac_exeext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 eval "$as_ac_var=yes"
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4726 eval "$as_ac_var=no"
4728 rm -f conftest.err conftest.$ac_objext \
4729 conftest$ac_exeext conftest.$ac_ext
4731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4732 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4733 if test `eval echo '${'$as_ac_var'}'` = yes; then
4734 cat >>confdefs.h <<_ACEOF
4735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4745 for ac_func in sigaction syslog realpath setrlimit
4747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4748 echo "$as_me:$LINENO: checking for $ac_func" >&5
4749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4750 if eval "test \"\${$as_ac_var+set}\" = set"; then
4751 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 cat >conftest.$ac_ext <<_ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4761 #define $ac_func innocuous_$ac_func
4763 /* System header to define __stub macros and hopefully few prototypes,
4764 which can conflict with char $ac_func (); below.
4765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4766 <limits.h> exists even on freestanding compilers. */
4769 # include <limits.h>
4771 # include <assert.h>
4776 /* Override any gcc2 internal prototype to avoid an error. */
4781 /* We use char because int might match the return type of a gcc2
4782 builtin and then its argument prototype would still apply. */
4784 /* The GNU C library defines this for functions which it implements
4785 to always fail with ENOSYS. Some functions are actually named
4786 something starting with __ and the normal name is an alias. */
4787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4790 char (*f) () = $ac_func;
4799 return f != $ac_func;
4804 rm -f conftest.$ac_objext conftest$ac_exeext
4805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4806 (eval $ac_link) 2>conftest.er1
4808 grep -v '^ *+' conftest.er1 >conftest.err
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } &&
4813 { ac_try='test -z "$ac_c_werror_flag"
4814 || test ! -s conftest.err'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; } &&
4820 { ac_try='test -s conftest$ac_exeext'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; }; then
4826 eval "$as_ac_var=yes"
4828 echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4831 eval "$as_ac_var=no"
4833 rm -f conftest.err conftest.$ac_objext \
4834 conftest$ac_exeext conftest.$ac_ext
4836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4838 if test `eval echo '${'$as_ac_var'}'` = yes; then
4839 cat >>confdefs.h <<_ACEOF
4840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4846 echo "$as_me:$LINENO: checking for struct icmp" >&5
4847 echo $ECHO_N "checking for struct icmp... $ECHO_C" >&6
4848 if test "${ac_cv_have_icmp+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 cat >conftest.$ac_ext <<_ACEOF
4854 cat confdefs.h >>conftest.$ac_ext
4855 cat >>conftest.$ac_ext <<_ACEOF
4856 /* end confdefs.h. */
4864 #include <sys/types.h>
4865 #include <sys/time.h>
4866 #include <sys/ipc.h>
4867 #include <sys/shm.h>
4868 #include <sys/socket.h>
4869 #include <netinet/in_systm.h>
4870 #include <netinet/in.h>
4871 #include <netinet/ip.h>
4872 #include <netinet/ip_icmp.h>
4873 #include <netinet/udp.h>
4874 #include <arpa/inet.h>
4881 struct sockaddr_in si;
4883 i.icmp_type = ICMP_ECHO;
4888 si.sin_family = AF_INET;
4889 #if defined(__DECC) || defined(_IP_VHL)
4899 rm -f conftest.$ac_objext
4900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4901 (eval $ac_compile) 2>conftest.er1
4903 grep -v '^ *+' conftest.er1 >conftest.err
4905 cat conftest.err >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } &&
4908 { ac_try='test -z "$ac_c_werror_flag"
4909 || test ! -s conftest.err'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; } &&
4915 { ac_try='test -s conftest.$ac_objext'
4916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920 (exit $ac_status); }; }; then
4923 echo "$as_me: failed program was:" >&5
4924 sed 's/^/| /' conftest.$ac_ext >&5
4928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4930 echo "$as_me:$LINENO: result: $ac_cv_have_icmp" >&5
4931 echo "${ECHO_T}$ac_cv_have_icmp" >&6
4932 if test "$ac_cv_have_icmp" = yes ; then
4933 cat >>confdefs.h <<\_ACEOF
4938 echo "$as_me:$LINENO: checking for struct icmphdr" >&5
4939 echo $ECHO_N "checking for struct icmphdr... $ECHO_C" >&6
4940 if test "${ac_cv_have_icmphdr+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 cat >conftest.$ac_ext <<_ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4956 #include <sys/types.h>
4957 #include <sys/time.h>
4958 #include <sys/ipc.h>
4959 #include <sys/shm.h>
4960 #include <sys/socket.h>
4961 #include <netinet/in_systm.h>
4962 #include <netinet/in.h>
4963 #include <netinet/ip.h>
4964 #include <netinet/ip_icmp.h>
4965 #include <netinet/udp.h>
4966 #include <arpa/inet.h>
4973 struct sockaddr_in si;
4979 i.un.echo.sequence = 0;
4980 si.sin_family = AF_INET;
4986 rm -f conftest.$ac_objext
4987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4988 (eval $ac_compile) 2>conftest.er1
4990 grep -v '^ *+' conftest.er1 >conftest.err
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } &&
4995 { ac_try='test -z "$ac_c_werror_flag"
4996 || test ! -s conftest.err'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; } &&
5002 { ac_try='test -s conftest.$ac_objext'
5003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; }; then
5008 ac_cv_have_icmphdr=yes
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5013 ac_cv_have_icmphdr=no
5015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5017 echo "$as_me:$LINENO: result: $ac_cv_have_icmphdr" >&5
5018 echo "${ECHO_T}$ac_cv_have_icmphdr" >&6
5019 if test "$ac_cv_have_icmphdr" = yes ; then
5020 cat >>confdefs.h <<\_ACEOF
5021 #define HAVE_ICMPHDR 1
5027 for ac_header in crypt.h sys/select.h
5029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5031 echo "$as_me:$LINENO: checking for $ac_header" >&5
5032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5037 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5039 # Is the header compilable?
5040 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5042 cat >conftest.$ac_ext <<_ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5048 $ac_includes_default
5049 #include <$ac_header>
5051 rm -f conftest.$ac_objext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5053 (eval $ac_compile) 2>conftest.er1
5055 grep -v '^ *+' conftest.er1 >conftest.err
5057 cat conftest.err >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } &&
5060 { ac_try='test -z "$ac_c_werror_flag"
5061 || test ! -s conftest.err'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; } &&
5067 { ac_try='test -s conftest.$ac_objext'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5073 ac_header_compiler=yes
5075 echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5078 ac_header_compiler=no
5080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5081 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5082 echo "${ECHO_T}$ac_header_compiler" >&6
5084 # Is the header present?
5085 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5087 cat >conftest.$ac_ext <<_ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5093 #include <$ac_header>
5095 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5098 grep -v '^ *+' conftest.er1 >conftest.err
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } >/dev/null; then
5103 if test -s conftest.err; then
5104 ac_cpp_err=$ac_c_preproc_warn_flag
5105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5112 if test -z "$ac_cpp_err"; then
5113 ac_header_preproc=yes
5115 echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5118 ac_header_preproc=no
5120 rm -f conftest.err conftest.$ac_ext
5121 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5122 echo "${ECHO_T}$ac_header_preproc" >&6
5124 # So? What about this header?
5125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5131 ac_header_preproc=yes
5134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5148 ## ------------------------------------------ ##
5149 ## Report this to the AC_PACKAGE_NAME lists. ##
5150 ## ------------------------------------------ ##
5153 sed "s/^/$as_me: WARNING: /" >&2
5156 echo "$as_me:$LINENO: checking for $ac_header" >&5
5157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 eval "$as_ac_Header=\$ac_header_preproc"
5163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5168 cat >>confdefs.h <<_ACEOF
5169 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5176 for ac_prog in perl5 perl
5178 # Extract the first word of "$ac_prog", so it can be a program name with args.
5179 set dummy $ac_prog; ac_word=$2
5180 echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182 if test "${ac_cv_path_PERL+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 PERL=$ac_cv_path_PERL
5209 if test -n "$PERL"; then
5210 echo "$as_me:$LINENO: result: $PERL" >&5
5211 echo "${ECHO_T}$PERL" >&6
5213 echo "$as_me:$LINENO: result: no" >&5
5214 echo "${ECHO_T}no" >&6
5217 test -n "$PERL" && break
5220 if test -z "$PERL" ; then
5223 echo "$as_me:$LINENO: checking perl version" >&5
5224 echo $ECHO_N "checking perl version... $ECHO_C" >&6
5225 if test "${ac_cv_perl_version+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 ac_cv_perl_version=`$PERL -e "$perl_version_cmd"`
5230 echo "$as_me:$LINENO: result: $ac_cv_perl_version" >&5
5231 echo "${ECHO_T}$ac_cv_perl_version" >&6
5232 PERL_VERSION=$ac_cv_perl_version
5236 if test -z "$PERL" ; then
5237 # don't let it be blank...
5241 echo "$as_me:$LINENO: checking for X" >&5
5242 echo $ECHO_N "checking for X... $ECHO_C" >&6
5245 # Check whether --with-x or --without-x was given.
5246 if test "${with_x+set}" = set; then
5250 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5251 if test "x$with_x" = xno; then
5252 # The user explicitly disabled X.
5255 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5256 # Both variables are already set.
5259 if test "${ac_cv_have_x+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 # One or both of the vars are not set, and there is no cached value.
5263 ac_x_includes=no ac_x_libraries=no
5265 if mkdir conftest.dir; then
5267 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5268 cat >Imakefile <<'_ACEOF'
5270 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5272 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5273 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5274 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5275 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5276 for ac_extension in a so sl; do
5277 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5278 test -f $ac_im_libdir/libX11.$ac_extension; then
5279 ac_im_usrlibdir=$ac_im_libdir; break
5282 # Screen out bogus values from the imake configuration. They are
5283 # bogus both because they are the default anyway, and because
5284 # using them would break gcc on systems where it needs fixed includes.
5285 case $ac_im_incroot in
5287 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5289 case $ac_im_usrlibdir in
5291 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5298 # Standard set of common directories for X headers.
5299 # Check X11 before X11Rn because it is often a symlink to the current release.
5311 /usr/local/X11/include
5312 /usr/local/X11R6/include
5313 /usr/local/X11R5/include
5314 /usr/local/X11R4/include
5316 /usr/local/include/X11
5317 /usr/local/include/X11R6
5318 /usr/local/include/X11R5
5319 /usr/local/include/X11R4
5323 /usr/XFree86/include/X11
5327 /usr/unsupported/include
5329 /usr/local/x11r5/include
5330 /usr/lpp/Xamples/include
5332 /usr/openwin/include
5333 /usr/openwin/share/include'
5335 if test "$ac_x_includes" = no; then
5336 # Guess where to find include files, by looking for Intrinsic.h.
5337 # First, try using that file with no special directory specified.
5338 cat >conftest.$ac_ext <<_ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5344 #include <X11/Intrinsic.h>
5346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5349 grep -v '^ *+' conftest.er1 >conftest.err
5351 cat conftest.err >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); } >/dev/null; then
5354 if test -s conftest.err; then
5355 ac_cpp_err=$ac_c_preproc_warn_flag
5356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5363 if test -z "$ac_cpp_err"; then
5364 # We can compile using X headers with no special include directory.
5367 echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5370 for ac_dir in $ac_x_header_dirs; do
5371 if test -r "$ac_dir/X11/Intrinsic.h"; then
5372 ac_x_includes=$ac_dir
5377 rm -f conftest.err conftest.$ac_ext
5378 fi # $ac_x_includes = no
5380 if test "$ac_x_libraries" = no; then
5381 # Check for the libraries.
5382 # See if we find them without any special options.
5383 # Don't add to $LIBS permanently.
5386 cat >conftest.$ac_ext <<_ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 #include <X11/Intrinsic.h>
5401 rm -f conftest.$ac_objext conftest$ac_exeext
5402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5403 (eval $ac_link) 2>conftest.er1
5405 grep -v '^ *+' conftest.er1 >conftest.err
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } &&
5410 { ac_try='test -z "$ac_c_werror_flag"
5411 || test ! -s conftest.err'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; } &&
5417 { ac_try='test -s conftest$ac_exeext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5424 # We can link X programs with no special library path.
5427 echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.$ac_ext >&5
5431 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5433 # Don't even attempt the hair of trying to link an X program!
5434 for ac_extension in a so sl; do
5435 if test -r $ac_dir/libXt.$ac_extension; then
5436 ac_x_libraries=$ac_dir
5442 rm -f conftest.err conftest.$ac_objext \
5443 conftest$ac_exeext conftest.$ac_ext
5444 fi # $ac_x_libraries = no
5446 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5447 # Didn't find X anywhere. Cache the known absence of X.
5448 ac_cv_have_x="have_x=no"
5450 # Record where we found X for the cache.
5451 ac_cv_have_x="have_x=yes \
5452 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5457 eval "$ac_cv_have_x"
5460 if test "$have_x" != yes; then
5461 echo "$as_me:$LINENO: result: $have_x" >&5
5462 echo "${ECHO_T}$have_x" >&6
5465 # If each of the values was on the command line, it overrides each guess.
5466 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5467 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5468 # Update the cache value to reflect the command line values.
5469 ac_cv_have_x="have_x=yes \
5470 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5471 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5472 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5475 if test "$no_x" = yes; then
5476 # Not all programs may use this symbol, but it does not hurt to define it.
5478 cat >>confdefs.h <<\_ACEOF
5479 #define X_DISPLAY_MISSING 1
5482 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5484 if test -n "$x_includes"; then
5485 X_CFLAGS="$X_CFLAGS -I$x_includes"
5488 # It would also be nice to do this for all -L options, not just this one.
5489 if test -n "$x_libraries"; then
5490 X_LIBS="$X_LIBS -L$x_libraries"
5491 # For Solaris; some versions of Sun CC require a space after -R and
5492 # others require no space. Words are not sufficient . . . .
5493 case `(uname -sr) 2>/dev/null` in
5495 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5496 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5497 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5498 cat >conftest.$ac_ext <<_ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5513 rm -f conftest.$ac_objext conftest$ac_exeext
5514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5515 (eval $ac_link) 2>conftest.er1
5517 grep -v '^ *+' conftest.er1 >conftest.err
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } &&
5522 { ac_try='test -z "$ac_c_werror_flag"
5523 || test ! -s conftest.err'
5524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; } &&
5529 { ac_try='test -s conftest$ac_exeext'
5530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); }; }; then
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5542 rm -f conftest.err conftest.$ac_objext \
5543 conftest$ac_exeext conftest.$ac_ext
5544 if test $ac_R_nospace = yes; then
5545 echo "$as_me:$LINENO: result: no" >&5
5546 echo "${ECHO_T}no" >&6
5547 X_LIBS="$X_LIBS -R$x_libraries"
5549 LIBS="$ac_xsave_LIBS -R $x_libraries"
5550 cat >conftest.$ac_ext <<_ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5565 rm -f conftest.$ac_objext conftest$ac_exeext
5566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5567 (eval $ac_link) 2>conftest.er1
5569 grep -v '^ *+' conftest.er1 >conftest.err
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } &&
5574 { ac_try='test -z "$ac_c_werror_flag"
5575 || test ! -s conftest.err'
5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; } &&
5581 { ac_try='test -s conftest$ac_exeext'
5582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; }; then
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5594 rm -f conftest.err conftest.$ac_objext \
5595 conftest$ac_exeext conftest.$ac_ext
5596 if test $ac_R_space = yes; then
5597 echo "$as_me:$LINENO: result: yes" >&5
5598 echo "${ECHO_T}yes" >&6
5599 X_LIBS="$X_LIBS -R $x_libraries"
5601 echo "$as_me:$LINENO: result: neither works" >&5
5602 echo "${ECHO_T}neither works" >&6
5609 # Check for system-dependent libraries X programs must link with.
5610 # Do this before checking for the system-independent R6 libraries
5611 # (-lICE), since we may need -lsocket or whatever for X linking.
5613 if test "$ISC" = yes; then
5614 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5616 # Martyn Johnson says this is needed for Ultrix, if the X
5617 # libraries were built with DECnet support. And Karl Berry says
5618 # the Alpha needs dnet_stub (dnet does not exist).
5619 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5620 cat >conftest.$ac_ext <<_ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5627 /* Override any gcc2 internal prototype to avoid an error. */
5631 /* We use char because int might match the return type of a gcc2
5632 builtin and then its argument prototype would still apply. */
5633 char XOpenDisplay ();
5642 rm -f conftest.$ac_objext conftest$ac_exeext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5644 (eval $ac_link) 2>conftest.er1
5646 grep -v '^ *+' conftest.er1 >conftest.err
5648 cat conftest.err >&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } &&
5651 { ac_try='test -z "$ac_c_werror_flag"
5652 || test ! -s conftest.err'
5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); }; } &&
5658 { ac_try='test -s conftest$ac_exeext'
5659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; }; then
5666 echo "$as_me: failed program was:" >&5
5667 sed 's/^/| /' conftest.$ac_ext >&5
5669 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5670 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5671 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 ac_check_lib_save_LIBS=$LIBS
5676 cat >conftest.$ac_ext <<_ACEOF
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5683 /* Override any gcc2 internal prototype to avoid an error. */
5687 /* We use char because int might match the return type of a gcc2
5688 builtin and then its argument prototype would still apply. */
5698 rm -f conftest.$ac_objext conftest$ac_exeext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700 (eval $ac_link) 2>conftest.er1
5702 grep -v '^ *+' conftest.er1 >conftest.err
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } &&
5707 { ac_try='test -z "$ac_c_werror_flag"
5708 || test ! -s conftest.err'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; } &&
5714 { ac_try='test -s conftest$ac_exeext'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; }; then
5720 ac_cv_lib_dnet_dnet_ntoa=yes
5722 echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5725 ac_cv_lib_dnet_dnet_ntoa=no
5727 rm -f conftest.err conftest.$ac_objext \
5728 conftest$ac_exeext conftest.$ac_ext
5729 LIBS=$ac_check_lib_save_LIBS
5731 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5732 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5733 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5734 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5737 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5738 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5739 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5740 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 ac_check_lib_save_LIBS=$LIBS
5744 LIBS="-ldnet_stub $LIBS"
5745 cat >conftest.$ac_ext <<_ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5752 /* Override any gcc2 internal prototype to avoid an error. */
5756 /* We use char because int might match the return type of a gcc2
5757 builtin and then its argument prototype would still apply. */
5767 rm -f conftest.$ac_objext conftest$ac_exeext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5769 (eval $ac_link) 2>conftest.er1
5771 grep -v '^ *+' conftest.er1 >conftest.err
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try='test -z "$ac_c_werror_flag"
5777 || test ! -s conftest.err'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; } &&
5783 { ac_try='test -s conftest$ac_exeext'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5789 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5794 ac_cv_lib_dnet_stub_dnet_ntoa=no
5796 rm -f conftest.err conftest.$ac_objext \
5797 conftest$ac_exeext conftest.$ac_ext
5798 LIBS=$ac_check_lib_save_LIBS
5800 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5801 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5802 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5803 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5808 rm -f conftest.err conftest.$ac_objext \
5809 conftest$ac_exeext conftest.$ac_ext
5810 LIBS="$ac_xsave_LIBS"
5812 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5813 # to get the SysV transport functions.
5814 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5816 # The nsl library prevents programs from opening the X display
5817 # on Irix 5.2, according to T.E. Dickey.
5818 # The functions gethostbyname, getservbyname, and inet_addr are
5819 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5820 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5821 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5822 if test "${ac_cv_func_gethostbyname+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 cat >conftest.$ac_ext <<_ACEOF
5828 cat confdefs.h >>conftest.$ac_ext
5829 cat >>conftest.$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5831 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5833 #define gethostbyname innocuous_gethostbyname
5835 /* System header to define __stub macros and hopefully few prototypes,
5836 which can conflict with char gethostbyname (); below.
5837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5838 <limits.h> exists even on freestanding compilers. */
5841 # include <limits.h>
5843 # include <assert.h>
5846 #undef gethostbyname
5848 /* Override any gcc2 internal prototype to avoid an error. */
5853 /* We use char because int might match the return type of a gcc2
5854 builtin and then its argument prototype would still apply. */
5855 char gethostbyname ();
5856 /* The GNU C library defines this for functions which it implements
5857 to always fail with ENOSYS. Some functions are actually named
5858 something starting with __ and the normal name is an alias. */
5859 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5862 char (*f) () = gethostbyname;
5871 return f != gethostbyname;
5876 rm -f conftest.$ac_objext conftest$ac_exeext
5877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5878 (eval $ac_link) 2>conftest.er1
5880 grep -v '^ *+' conftest.er1 >conftest.err
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } &&
5885 { ac_try='test -z "$ac_c_werror_flag"
5886 || test ! -s conftest.err'
5887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; } &&
5892 { ac_try='test -s conftest$ac_exeext'
5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; }; then
5898 ac_cv_func_gethostbyname=yes
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5903 ac_cv_func_gethostbyname=no
5905 rm -f conftest.err conftest.$ac_objext \
5906 conftest$ac_exeext conftest.$ac_ext
5908 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5909 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5911 if test $ac_cv_func_gethostbyname = no; then
5912 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5913 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5914 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 ac_check_lib_save_LIBS=$LIBS
5919 cat >conftest.$ac_ext <<_ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5926 /* Override any gcc2 internal prototype to avoid an error. */
5930 /* We use char because int might match the return type of a gcc2
5931 builtin and then its argument prototype would still apply. */
5932 char gethostbyname ();
5941 rm -f conftest.$ac_objext conftest$ac_exeext
5942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5943 (eval $ac_link) 2>conftest.er1
5945 grep -v '^ *+' conftest.er1 >conftest.err
5947 cat conftest.err >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } &&
5950 { ac_try='test -z "$ac_c_werror_flag"
5951 || test ! -s conftest.err'
5952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); }; } &&
5957 { ac_try='test -s conftest$ac_exeext'
5958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); }; }; then
5963 ac_cv_lib_nsl_gethostbyname=yes
5965 echo "$as_me: failed program was:" >&5
5966 sed 's/^/| /' conftest.$ac_ext >&5
5968 ac_cv_lib_nsl_gethostbyname=no
5970 rm -f conftest.err conftest.$ac_objext \
5971 conftest$ac_exeext conftest.$ac_ext
5972 LIBS=$ac_check_lib_save_LIBS
5974 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5975 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5976 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5977 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5980 if test $ac_cv_lib_nsl_gethostbyname = no; then
5981 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5982 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5983 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 ac_check_lib_save_LIBS=$LIBS
5988 cat >conftest.$ac_ext <<_ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5995 /* Override any gcc2 internal prototype to avoid an error. */
5999 /* We use char because int might match the return type of a gcc2
6000 builtin and then its argument prototype would still apply. */
6001 char gethostbyname ();
6010 rm -f conftest.$ac_objext conftest$ac_exeext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6012 (eval $ac_link) 2>conftest.er1
6014 grep -v '^ *+' conftest.er1 >conftest.err
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } &&
6019 { ac_try='test -z "$ac_c_werror_flag"
6020 || test ! -s conftest.err'
6021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }; } &&
6026 { ac_try='test -s conftest$ac_exeext'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; }; then
6032 ac_cv_lib_bsd_gethostbyname=yes
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6037 ac_cv_lib_bsd_gethostbyname=no
6039 rm -f conftest.err conftest.$ac_objext \
6040 conftest$ac_exeext conftest.$ac_ext
6041 LIBS=$ac_check_lib_save_LIBS
6043 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6044 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6045 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6046 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6052 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6053 # socket/setsockopt and other routines are undefined under SCO ODT
6054 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6055 # on later versions), says Simon Leinen: it contains gethostby*
6056 # variants that don't use the name server (or something). -lsocket
6057 # must be given before -lnsl if both are needed. We assume that
6058 # if connect needs -lnsl, so does gethostbyname.
6059 echo "$as_me:$LINENO: checking for connect" >&5
6060 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6061 if test "${ac_cv_func_connect+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 cat >conftest.$ac_ext <<_ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6072 #define connect innocuous_connect
6074 /* System header to define __stub macros and hopefully few prototypes,
6075 which can conflict with char connect (); below.
6076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6077 <limits.h> exists even on freestanding compilers. */
6080 # include <limits.h>
6082 # include <assert.h>
6087 /* Override any gcc2 internal prototype to avoid an error. */
6092 /* We use char because int might match the return type of a gcc2
6093 builtin and then its argument prototype would still apply. */
6095 /* The GNU C library defines this for functions which it implements
6096 to always fail with ENOSYS. Some functions are actually named
6097 something starting with __ and the normal name is an alias. */
6098 #if defined (__stub_connect) || defined (__stub___connect)
6101 char (*f) () = connect;
6110 return f != connect;
6115 rm -f conftest.$ac_objext conftest$ac_exeext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6117 (eval $ac_link) 2>conftest.er1
6119 grep -v '^ *+' conftest.er1 >conftest.err
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -z "$ac_c_werror_flag"
6125 || test ! -s conftest.err'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; } &&
6131 { ac_try='test -s conftest$ac_exeext'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; }; then
6137 ac_cv_func_connect=yes
6139 echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6142 ac_cv_func_connect=no
6144 rm -f conftest.err conftest.$ac_objext \
6145 conftest$ac_exeext conftest.$ac_ext
6147 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6148 echo "${ECHO_T}$ac_cv_func_connect" >&6
6150 if test $ac_cv_func_connect = no; then
6151 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6152 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6153 if test "${ac_cv_lib_socket_connect+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 ac_check_lib_save_LIBS=$LIBS
6157 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6158 cat >conftest.$ac_ext <<_ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h. */
6165 /* Override any gcc2 internal prototype to avoid an error. */
6169 /* We use char because int might match the return type of a gcc2
6170 builtin and then its argument prototype would still apply. */
6180 rm -f conftest.$ac_objext conftest$ac_exeext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6182 (eval $ac_link) 2>conftest.er1
6184 grep -v '^ *+' conftest.er1 >conftest.err
6186 cat conftest.err >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } &&
6189 { ac_try='test -z "$ac_c_werror_flag"
6190 || test ! -s conftest.err'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; } &&
6196 { ac_try='test -s conftest$ac_exeext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 ac_cv_lib_socket_connect=yes
6204 echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6207 ac_cv_lib_socket_connect=no
6209 rm -f conftest.err conftest.$ac_objext \
6210 conftest$ac_exeext conftest.$ac_ext
6211 LIBS=$ac_check_lib_save_LIBS
6213 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6214 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6215 if test $ac_cv_lib_socket_connect = yes; then
6216 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6221 # Guillermo Gomez says -lposix is necessary on A/UX.
6222 echo "$as_me:$LINENO: checking for remove" >&5
6223 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6224 if test "${ac_cv_func_remove+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 cat >conftest.$ac_ext <<_ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6233 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6235 #define remove innocuous_remove
6237 /* System header to define __stub macros and hopefully few prototypes,
6238 which can conflict with char remove (); below.
6239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6240 <limits.h> exists even on freestanding compilers. */
6243 # include <limits.h>
6245 # include <assert.h>
6250 /* Override any gcc2 internal prototype to avoid an error. */
6255 /* We use char because int might match the return type of a gcc2
6256 builtin and then its argument prototype would still apply. */
6258 /* The GNU C library defines this for functions which it implements
6259 to always fail with ENOSYS. Some functions are actually named
6260 something starting with __ and the normal name is an alias. */
6261 #if defined (__stub_remove) || defined (__stub___remove)
6264 char (*f) () = remove;
6278 rm -f conftest.$ac_objext conftest$ac_exeext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6280 (eval $ac_link) 2>conftest.er1
6282 grep -v '^ *+' conftest.er1 >conftest.err
6284 cat conftest.err >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } &&
6287 { ac_try='test -z "$ac_c_werror_flag"
6288 || test ! -s conftest.err'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; } &&
6294 { ac_try='test -s conftest$ac_exeext'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
6300 ac_cv_func_remove=yes
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6305 ac_cv_func_remove=no
6307 rm -f conftest.err conftest.$ac_objext \
6308 conftest$ac_exeext conftest.$ac_ext
6310 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6311 echo "${ECHO_T}$ac_cv_func_remove" >&6
6313 if test $ac_cv_func_remove = no; then
6314 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6315 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6316 if test "${ac_cv_lib_posix_remove+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 ac_check_lib_save_LIBS=$LIBS
6320 LIBS="-lposix $LIBS"
6321 cat >conftest.$ac_ext <<_ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6328 /* Override any gcc2 internal prototype to avoid an error. */
6332 /* We use char because int might match the return type of a gcc2
6333 builtin and then its argument prototype would still apply. */
6343 rm -f conftest.$ac_objext conftest$ac_exeext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6345 (eval $ac_link) 2>conftest.er1
6347 grep -v '^ *+' conftest.er1 >conftest.err
6349 cat conftest.err >&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } &&
6352 { ac_try='test -z "$ac_c_werror_flag"
6353 || test ! -s conftest.err'
6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; } &&
6359 { ac_try='test -s conftest$ac_exeext'
6360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); }; }; then
6365 ac_cv_lib_posix_remove=yes
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6370 ac_cv_lib_posix_remove=no
6372 rm -f conftest.err conftest.$ac_objext \
6373 conftest$ac_exeext conftest.$ac_ext
6374 LIBS=$ac_check_lib_save_LIBS
6376 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6377 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6378 if test $ac_cv_lib_posix_remove = yes; then
6379 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6384 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6385 echo "$as_me:$LINENO: checking for shmat" >&5
6386 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6387 if test "${ac_cv_func_shmat+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 cat >conftest.$ac_ext <<_ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6398 #define shmat innocuous_shmat
6400 /* System header to define __stub macros and hopefully few prototypes,
6401 which can conflict with char shmat (); below.
6402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6403 <limits.h> exists even on freestanding compilers. */
6406 # include <limits.h>
6408 # include <assert.h>
6413 /* Override any gcc2 internal prototype to avoid an error. */
6418 /* We use char because int might match the return type of a gcc2
6419 builtin and then its argument prototype would still apply. */
6421 /* The GNU C library defines this for functions which it implements
6422 to always fail with ENOSYS. Some functions are actually named
6423 something starting with __ and the normal name is an alias. */
6424 #if defined (__stub_shmat) || defined (__stub___shmat)
6427 char (*f) () = shmat;
6441 rm -f conftest.$ac_objext conftest$ac_exeext
6442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6443 (eval $ac_link) 2>conftest.er1
6445 grep -v '^ *+' conftest.er1 >conftest.err
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } &&
6450 { ac_try='test -z "$ac_c_werror_flag"
6451 || test ! -s conftest.err'
6452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; } &&
6457 { ac_try='test -s conftest$ac_exeext'
6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; }; then
6463 ac_cv_func_shmat=yes
6465 echo "$as_me: failed program was:" >&5
6466 sed 's/^/| /' conftest.$ac_ext >&5
6470 rm -f conftest.err conftest.$ac_objext \
6471 conftest$ac_exeext conftest.$ac_ext
6473 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6474 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6476 if test $ac_cv_func_shmat = no; then
6477 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6478 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6479 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 ac_check_lib_save_LIBS=$LIBS
6484 cat >conftest.$ac_ext <<_ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6491 /* Override any gcc2 internal prototype to avoid an error. */
6495 /* We use char because int might match the return type of a gcc2
6496 builtin and then its argument prototype would still apply. */
6506 rm -f conftest.$ac_objext conftest$ac_exeext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6508 (eval $ac_link) 2>conftest.er1
6510 grep -v '^ *+' conftest.er1 >conftest.err
6512 cat conftest.err >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try='test -z "$ac_c_werror_flag"
6516 || test ! -s conftest.err'
6517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; } &&
6522 { ac_try='test -s conftest$ac_exeext'
6523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); }; }; then
6528 ac_cv_lib_ipc_shmat=yes
6530 echo "$as_me: failed program was:" >&5
6531 sed 's/^/| /' conftest.$ac_ext >&5
6533 ac_cv_lib_ipc_shmat=no
6535 rm -f conftest.err conftest.$ac_objext \
6536 conftest$ac_exeext conftest.$ac_ext
6537 LIBS=$ac_check_lib_save_LIBS
6539 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6540 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6541 if test $ac_cv_lib_ipc_shmat = yes; then
6542 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6548 # Check for libraries that X11R6 Xt/Xaw programs need.
6549 ac_save_LDFLAGS=$LDFLAGS
6550 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6551 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6552 # check for ICE first), but we must link in the order -lSM -lICE or
6553 # we get undefined symbols. So assume we have SM if we have ICE.
6554 # These have to be linked with before -lX11, unlike the other
6555 # libraries we check for below, so use a different variable.
6556 # John Interrante, Karl Berry
6557 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6558 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6559 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 ac_check_lib_save_LIBS=$LIBS
6563 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6564 cat >conftest.$ac_ext <<_ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6571 /* Override any gcc2 internal prototype to avoid an error. */
6575 /* We use char because int might match the return type of a gcc2
6576 builtin and then its argument prototype would still apply. */
6577 char IceConnectionNumber ();
6581 IceConnectionNumber ();
6586 rm -f conftest.$ac_objext conftest$ac_exeext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6588 (eval $ac_link) 2>conftest.er1
6590 grep -v '^ *+' conftest.er1 >conftest.err
6592 cat conftest.err >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } &&
6595 { ac_try='test -z "$ac_c_werror_flag"
6596 || test ! -s conftest.err'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; } &&
6602 { ac_try='test -s conftest$ac_exeext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 ac_cv_lib_ICE_IceConnectionNumber=yes
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6613 ac_cv_lib_ICE_IceConnectionNumber=no
6615 rm -f conftest.err conftest.$ac_objext \
6616 conftest$ac_exeext conftest.$ac_ext
6617 LIBS=$ac_check_lib_save_LIBS
6619 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6620 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6621 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6622 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6625 LDFLAGS=$ac_save_LDFLAGS
6630 if test "$have_x" != yes; then
6631 { { echo "$as_me:$LINENO: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&5
6632 echo "$as_me: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&2;}
6633 { (exit 1); exit 1; }; }
6637 echo "$as_me:$LINENO: checking for X app-defaults directory" >&5
6638 echo $ECHO_N "checking for X app-defaults directory... $ECHO_C" >&6
6639 if test "${ac_cv_x_app_defaults+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 if mkdir conftestdir; then
6645 cd conftestdir 2>/dev/null
6646 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6647 cat > Imakefile <<'EOF'
6649 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
6651 if (xmkmf) >/dev/null 2>&1 && test -f Makefile; then
6652 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
6653 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6658 if test x"$ac_x_app_defaults" = x; then
6660 # Look for the directory under a standard set of common directories.
6661 # Check X11 before X11Rn because it's often a symlink to the current release.
6663 /usr/X11/lib/app-defaults \
6664 /usr/X11R6/lib/app-defaults \
6665 /usr/X11R6/lib/X11/app-defaults \
6666 /usr/X11R5/lib/app-defaults \
6667 /usr/X11R5/lib/X11/app-defaults \
6668 /usr/X11R4/lib/app-defaults \
6669 /usr/X11R4/lib/X11/app-defaults \
6671 /usr/lib/X11/app-defaults \
6672 /usr/lib/X11R6/app-defaults \
6673 /usr/lib/X11R5/app-defaults \
6674 /usr/lib/X11R4/app-defaults \
6676 /usr/local/X11/lib/app-defaults \
6677 /usr/local/X11R6/lib/app-defaults \
6678 /usr/local/X11R5/lib/app-defaults \
6679 /usr/local/X11R4/lib/app-defaults \
6681 /usr/local/lib/X11/app-defaults \
6682 /usr/local/lib/X11R6/app-defaults \
6683 /usr/local/lib/X11R6/X11/app-defaults \
6684 /usr/local/lib/X11R5/app-defaults \
6685 /usr/local/lib/X11R5/X11/app-defaults \
6686 /usr/local/lib/X11R4/app-defaults \
6687 /usr/local/lib/X11R4/X11/app-defaults \
6689 /usr/X386/lib/X11/app-defaults \
6690 /usr/x386/lib/X11/app-defaults \
6691 /usr/XFree86/lib/X11/app-defaults \
6693 /usr/lib/X11/app-defaults \
6694 /usr/local/lib/X11/app-defaults \
6695 /usr/unsupported/lib/X11/app-defaults \
6696 /usr/athena/lib/X11/app-defaults \
6697 /usr/local/x11r5/lib/X11/app-defaults \
6698 /usr/lpp/Xamples/lib/X11/app-defaults \
6699 /lib/usr/lib/X11/app-defaults \
6701 /usr/openwin/lib/app-defaults \
6702 /usr/openwin/lib/X11/app-defaults \
6703 /usr/openwin/share/lib/app-defaults \
6704 /usr/openwin/share/lib/X11/app-defaults \
6706 /X11R6/lib/app-defaults \
6707 /X11R5/lib/app-defaults \
6708 /X11R4/lib/app-defaults \
6711 if test -d "$ac_dir"; then
6712 ac_x_app_defaults=$ac_dir
6718 if test x"$ac_x_app_defaults" = x; then
6719 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
6721 # Record where we found app-defaults for the cache.
6722 ac_cv_x_app_defaults="$ac_x_app_defaults"
6725 echo "$as_me:$LINENO: result: $ac_cv_x_app_defaults" >&5
6726 echo "${ECHO_T}$ac_cv_x_app_defaults" >&6
6727 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
6731 # The following arcana was gleaned from conversations with
6732 # Eric Schwartz <erics@col.hp.com>:
6734 # On HPUX 10.x, the parts of X that HP considers "standard" live in
6735 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
6736 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
6737 # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
6738 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
6739 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
6740 # you don't need any -I or -L arguments.
6742 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
6743 # are the same division as 10.x. However, there are no symlinks to
6744 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
6745 # arguments are always necessary.
6747 # However, X11R6 was available on HPUX 9.x as a patch: if that
6748 # patch was installed, then all of X11R6 went in to
6749 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
6751 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
6752 # whether R5 was available as a patch; R6 undoubtedly was not.)
6754 # So. We try and use the highest numbered pair of
6755 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
6756 # that are available. We do not mix and match different versions
6759 # Question I still don't know the answer to: (do you?)
6761 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
6762 # /usr/contrib/X11R6/ could be installed as a patch, what was in
6763 # that contrib directory? Did it contain so-called "standard"
6764 # X11R6, or did it include Xaw and Xmu as well? If the former,
6765 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
6766 # be a situation where one had to reach into the R5 headers and
6767 # libs to find Xmu? That is, must both R6 and R5 directories
6768 # be on the -I and -L lists in that case?
6770 for version in X11R6 X11R5 X11R4 ; do
6771 # if either pair of directories exists...
6772 if test -d /usr/include/$version || test -d /usr/contrib/$version/include
6774 # if contrib exists, use it...
6775 if test -d /usr/contrib/$version/include ; then
6776 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
6777 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
6779 # if the "standard" one exists, use it.
6780 if test -d /usr/include/$version ; then
6781 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
6782 X_LIBS="$X_LIBS -L/usr/lib/$version"
6784 # since at least one of the pair exists, go no farther.
6789 # Now find Motif. Thanks for not making xmkmf find this by
6790 # default, you losers.
6792 if test -d /usr/include/Motif2.1 ; then
6793 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
6794 X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
6795 elif test -d /usr/include/Motif1.2 ; then
6796 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
6797 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
6798 elif test -d /usr/include/Motif1.1 ; then
6799 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
6800 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
6803 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
6805 if test -d /opt/graphics/OpenGL/include ; then
6806 # HP-UX 10.20 puts it here
6807 X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
6808 X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
6809 elif test -d /opt/Mesa/lib ; then
6810 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
6811 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
6815 if test -d /opt/xpm/lib/X11 ; then
6816 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
6817 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
6820 # On HPUX, default to installing in /opt/xscreensaver/ instead of
6821 # in /usr/local/, unless there is already an xscreensaver in
6822 # /usr/local/bin/. This can be overridden with the --prefix arg
6823 # to configure. I'm not sure this is the right thing to do, but
6824 # Richard Lloyd says so...
6826 if test \! -x /usr/local/bin/xscreensaver ; then
6827 ac_default_prefix=/opt/xscreensaver
6833 # Thanks for not making xmkmf find this by default, pinheads.
6834 # And thanks for moving things around again, too. Is this
6835 # really the standard location now? What happened to the
6836 # joke that this kind of thing went in /opt?
6837 # cthomp says "answer: CDE (Common Disorganized Environment)"
6839 if test -f /usr/dt/include/Xm/Xm.h ; then
6840 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
6841 MOTIF_LIBS="$MOTIF_LIBS -L/usr/dt/lib -R/usr/dt/lib"
6843 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
6844 echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
6845 echo $ECHO_N "checking for regcmp in -lgen... $ECHO_C" >&6
6846 if test "${ac_cv_lib_gen_regcmp+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 ac_check_lib_save_LIBS=$LIBS
6851 cat >conftest.$ac_ext <<_ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6858 /* Override any gcc2 internal prototype to avoid an error. */
6862 /* We use char because int might match the return type of a gcc2
6863 builtin and then its argument prototype would still apply. */
6873 rm -f conftest.$ac_objext conftest$ac_exeext
6874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6875 (eval $ac_link) 2>conftest.er1
6877 grep -v '^ *+' conftest.er1 >conftest.err
6879 cat conftest.err >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } &&
6882 { ac_try='test -z "$ac_c_werror_flag"
6883 || test ! -s conftest.err'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; } &&
6889 { ac_try='test -s conftest$ac_exeext'
6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 ac_cv_lib_gen_regcmp=yes
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6900 ac_cv_lib_gen_regcmp=no
6902 rm -f conftest.err conftest.$ac_objext \
6903 conftest$ac_exeext conftest.$ac_ext
6904 LIBS=$ac_check_lib_save_LIBS
6906 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5
6907 echo "${ECHO_T}$ac_cv_lib_gen_regcmp" >&6
6908 if test $ac_cv_lib_gen_regcmp = yes; then
6909 MOTIF_LIBS="$MOTIF_LIBS -lgen"
6917 # On MacOS X (10.x with "fink"), many things are under /sw/.
6919 if test -d /sw/include ; then
6920 X_CFLAGS="-I/sw/include $X_CFLAGS"
6921 X_LIBS="-L/sw/lib $X_LIBS"
6925 echo "$as_me:$LINENO: checking for XPointer" >&5
6926 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
6927 if test "${ac_cv_xpointer+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 ac_save_CPPFLAGS="$CPPFLAGS"
6932 if test \! -z "$includedir" ; then
6933 CPPFLAGS="$CPPFLAGS -I$includedir"
6935 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6936 cat >conftest.$ac_ext <<_ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 #include <X11/Xlib.h>
6946 XPointer foo = (XPointer) 0;
6951 rm -f conftest.$ac_objext
6952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6953 (eval $ac_compile) 2>conftest.er1
6955 grep -v '^ *+' conftest.er1 >conftest.err
6957 cat conftest.err >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } &&
6960 { ac_try='test -z "$ac_c_werror_flag"
6961 || test ! -s conftest.err'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; } &&
6967 { ac_try='test -s conftest.$ac_objext'
6968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972 (exit $ac_status); }; }; then
6975 echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6981 CPPFLAGS="$ac_save_CPPFLAGS"
6983 echo "$as_me:$LINENO: result: $ac_cv_xpointer" >&5
6984 echo "${ECHO_T}$ac_cv_xpointer" >&6
6985 if test "$ac_cv_xpointer" != yes; then
6986 cat >>confdefs.h <<\_ACEOF
6987 #define XPointer char*
6992 echo "$as_me:$LINENO: checking whether this is MacOS X" >&5
6993 echo $ECHO_N "checking whether this is MacOS X... $ECHO_C" >&6
7000 echo "$as_me:$LINENO: result: $ac_macosx" >&5
7001 echo "${ECHO_T}$ac_macosx" >&6
7005 ###############################################################################
7009 ###############################################################################
7014 echo "$as_me:$LINENO: checking for intltool >= " >&5
7015 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
7017 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
7018 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < intltool-update.in`
7020 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < intltool-update.in`
7023 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
7024 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
7025 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
7027 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5
7028 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6
7033 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'
7034 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'
7035 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'
7036 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
7037 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'
7038 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'
7039 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'
7040 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'
7041 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'
7042 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'
7043 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'
7057 # Use the tools built into the package, not the ones that are installed.
7059 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
7060 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
7061 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
7067 # Extract the first word of "perl", so it can be a program name with args.
7068 set dummy perl; ac_word=$2
7069 echo "$as_me:$LINENO: checking for $ac_word" >&5
7070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7071 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 case $INTLTOOL_PERL in
7076 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
7087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
7098 if test -n "$INTLTOOL_PERL"; then
7099 echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
7100 echo "${ECHO_T}$INTLTOOL_PERL" >&6
7102 echo "$as_me:$LINENO: result: no" >&5
7103 echo "${ECHO_T}no" >&6
7106 if test -z "$INTLTOOL_PERL"; then
7107 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
7108 echo "$as_me: error: perl not found; required for intltool" >&2;}
7109 { (exit 1); exit 1; }; }
7111 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
7112 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
7113 echo "$as_me: error: perl 5.x required for intltool" >&2;}
7114 { (exit 1); exit 1; }; }
7117 # Remove file type tags (using []) from po/POTFILES.
7125 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
7127 ac_config_commands="$ac_config_commands default-1"
7131 GETTEXT_PACKAGE=xscreensaver
7132 cat >>confdefs.h <<_ACEOF
7133 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
7136 cat >>confdefs.h <<_ACEOF
7137 #define PACKAGE "$GETTEXT_PACKAGE"
7142 ALL_LINGUAS="ca da de es et fi fr hu it ja ko nl no pl pt pt_BR ru sk sv vi wa zh_CN zh_TW"
7143 if test -n "$ac_tool_prefix"; then
7144 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7145 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7146 echo "$as_me:$LINENO: checking for $ac_word" >&5
7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7148 if test "${ac_cv_prog_RANLIB+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 if test -n "$RANLIB"; then
7152 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 RANLIB=$ac_cv_prog_RANLIB
7171 if test -n "$RANLIB"; then
7172 echo "$as_me:$LINENO: result: $RANLIB" >&5
7173 echo "${ECHO_T}$RANLIB" >&6
7175 echo "$as_me:$LINENO: result: no" >&5
7176 echo "${ECHO_T}no" >&6
7180 if test -z "$ac_cv_prog_RANLIB"; then
7181 ac_ct_RANLIB=$RANLIB
7182 # Extract the first word of "ranlib", so it can be a program name with args.
7183 set dummy ranlib; ac_word=$2
7184 echo "$as_me:$LINENO: checking for $ac_word" >&5
7185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7186 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 if test -n "$ac_ct_RANLIB"; then
7190 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 test -z "$as_dir" && as_dir=.
7197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199 ac_cv_prog_ac_ct_RANLIB="ranlib"
7200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7209 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7210 if test -n "$ac_ct_RANLIB"; then
7211 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7212 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7214 echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6
7218 RANLIB=$ac_ct_RANLIB
7220 RANLIB="$ac_cv_prog_RANLIB"
7223 echo "$as_me:$LINENO: checking for off_t" >&5
7224 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7225 if test "${ac_cv_type_off_t+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 cat >conftest.$ac_ext <<_ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7234 $ac_includes_default
7246 rm -f conftest.$ac_objext
7247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7248 (eval $ac_compile) 2>conftest.er1
7250 grep -v '^ *+' conftest.er1 >conftest.err
7252 cat conftest.err >&5
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); } &&
7255 { ac_try='test -z "$ac_c_werror_flag"
7256 || test ! -s conftest.err'
7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); }; } &&
7262 { ac_try='test -s conftest.$ac_objext'
7263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; }; then
7268 ac_cv_type_off_t=yes
7270 echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.$ac_ext >&5
7275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7277 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7278 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7279 if test $ac_cv_type_off_t = yes; then
7283 cat >>confdefs.h <<_ACEOF
7289 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7290 # for constant arguments. Useless!
7291 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7292 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7293 if test "${ac_cv_working_alloca_h+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 cat >conftest.$ac_ext <<_ACEOF
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h. */
7306 char *p = (char *) alloca (2 * sizeof (int));
7311 rm -f conftest.$ac_objext conftest$ac_exeext
7312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7313 (eval $ac_link) 2>conftest.er1
7315 grep -v '^ *+' conftest.er1 >conftest.err
7317 cat conftest.err >&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); } &&
7320 { ac_try='test -z "$ac_c_werror_flag"
7321 || test ! -s conftest.err'
7322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); }; } &&
7327 { ac_try='test -s conftest$ac_exeext'
7328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }; }; then
7333 ac_cv_working_alloca_h=yes
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7338 ac_cv_working_alloca_h=no
7340 rm -f conftest.err conftest.$ac_objext \
7341 conftest$ac_exeext conftest.$ac_ext
7343 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7344 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7345 if test $ac_cv_working_alloca_h = yes; then
7347 cat >>confdefs.h <<\_ACEOF
7348 #define HAVE_ALLOCA_H 1
7353 echo "$as_me:$LINENO: checking for alloca" >&5
7354 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7355 if test "${ac_cv_func_alloca_works+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 cat >conftest.$ac_ext <<_ACEOF
7361 cat confdefs.h >>conftest.$ac_ext
7362 cat >>conftest.$ac_ext <<_ACEOF
7363 /* end confdefs.h. */
7365 # define alloca __builtin_alloca
7368 # include <malloc.h>
7369 # define alloca _alloca
7372 # include <alloca.h>
7377 # ifndef alloca /* predefined by HP cc +Olibcalls */
7388 char *p = (char *) alloca (1);
7393 rm -f conftest.$ac_objext conftest$ac_exeext
7394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7395 (eval $ac_link) 2>conftest.er1
7397 grep -v '^ *+' conftest.er1 >conftest.err
7399 cat conftest.err >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } &&
7402 { ac_try='test -z "$ac_c_werror_flag"
7403 || test ! -s conftest.err'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; } &&
7409 { ac_try='test -s conftest$ac_exeext'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; }; then
7415 ac_cv_func_alloca_works=yes
7417 echo "$as_me: failed program was:" >&5
7418 sed 's/^/| /' conftest.$ac_ext >&5
7420 ac_cv_func_alloca_works=no
7422 rm -f conftest.err conftest.$ac_objext \
7423 conftest$ac_exeext conftest.$ac_ext
7425 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7426 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7428 if test $ac_cv_func_alloca_works = yes; then
7430 cat >>confdefs.h <<\_ACEOF
7431 #define HAVE_ALLOCA 1
7435 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7436 # that cause trouble. Some versions do not even contain alloca or
7437 # contain a buggy version. If you still want to use their alloca,
7438 # use ar to extract alloca.o from them instead of compiling alloca.c.
7440 ALLOCA=alloca.$ac_objext
7442 cat >>confdefs.h <<\_ACEOF
7447 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7448 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7449 if test "${ac_cv_os_cray+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 cat >conftest.$ac_ext <<_ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7458 #if defined(CRAY) && ! defined(CRAY2)
7465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7466 $EGREP "webecray" >/dev/null 2>&1; then
7474 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7475 echo "${ECHO_T}$ac_cv_os_cray" >&6
7476 if test $ac_cv_os_cray = yes; then
7477 for ac_func in _getb67 GETB67 getb67; do
7478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7479 echo "$as_me:$LINENO: checking for $ac_func" >&5
7480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7481 if eval "test \"\${$as_ac_var+set}\" = set"; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 cat >conftest.$ac_ext <<_ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7492 #define $ac_func innocuous_$ac_func
7494 /* System header to define __stub macros and hopefully few prototypes,
7495 which can conflict with char $ac_func (); below.
7496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7497 <limits.h> exists even on freestanding compilers. */
7500 # include <limits.h>
7502 # include <assert.h>
7507 /* Override any gcc2 internal prototype to avoid an error. */
7512 /* We use char because int might match the return type of a gcc2
7513 builtin and then its argument prototype would still apply. */
7515 /* The GNU C library defines this for functions which it implements
7516 to always fail with ENOSYS. Some functions are actually named
7517 something starting with __ and the normal name is an alias. */
7518 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7521 char (*f) () = $ac_func;
7530 return f != $ac_func;
7535 rm -f conftest.$ac_objext conftest$ac_exeext
7536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7537 (eval $ac_link) 2>conftest.er1
7539 grep -v '^ *+' conftest.er1 >conftest.err
7541 cat conftest.err >&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); } &&
7544 { ac_try='test -z "$ac_c_werror_flag"
7545 || test ! -s conftest.err'
7546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); }; } &&
7551 { ac_try='test -s conftest$ac_exeext'
7552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); }; }; then
7557 eval "$as_ac_var=yes"
7559 echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7562 eval "$as_ac_var=no"
7564 rm -f conftest.err conftest.$ac_objext \
7565 conftest$ac_exeext conftest.$ac_ext
7567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7568 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7569 if test `eval echo '${'$as_ac_var'}'` = yes; then
7571 cat >>confdefs.h <<_ACEOF
7572 #define CRAY_STACKSEG_END $ac_func
7581 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7582 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7583 if test "${ac_cv_c_stack_direction+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 if test "$cross_compiling" = yes; then
7587 ac_cv_c_stack_direction=0
7589 cat >conftest.$ac_ext <<_ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h. */
7596 find_stack_direction ()
7598 static char *addr = 0;
7603 return find_stack_direction ();
7606 return (&dummy > addr) ? 1 : -1;
7612 exit (find_stack_direction () < 0);
7615 rm -f conftest$ac_exeext
7616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7617 (eval $ac_link) 2>&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
7626 ac_cv_c_stack_direction=1
7628 echo "$as_me: program exited with status $ac_status" >&5
7629 echo "$as_me: failed program was:" >&5
7630 sed 's/^/| /' conftest.$ac_ext >&5
7633 ac_cv_c_stack_direction=-1
7635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7638 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7639 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7641 cat >>confdefs.h <<_ACEOF
7642 #define STACK_DIRECTION $ac_cv_c_stack_direction
7650 for ac_header in stdlib.h unistd.h
7652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7654 echo "$as_me:$LINENO: checking for $ac_header" >&5
7655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7662 # Is the header compilable?
7663 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7665 cat >conftest.$ac_ext <<_ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 $ac_includes_default
7672 #include <$ac_header>
7674 rm -f conftest.$ac_objext
7675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7676 (eval $ac_compile) 2>conftest.er1
7678 grep -v '^ *+' conftest.er1 >conftest.err
7680 cat conftest.err >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
7683 { ac_try='test -z "$ac_c_werror_flag"
7684 || test ! -s conftest.err'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; } &&
7690 { ac_try='test -s conftest.$ac_objext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_header_compiler=yes
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7701 ac_header_compiler=no
7703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7704 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7705 echo "${ECHO_T}$ac_header_compiler" >&6
7707 # Is the header present?
7708 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7710 cat >conftest.$ac_ext <<_ACEOF
7713 cat confdefs.h >>conftest.$ac_ext
7714 cat >>conftest.$ac_ext <<_ACEOF
7715 /* end confdefs.h. */
7716 #include <$ac_header>
7718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7721 grep -v '^ *+' conftest.er1 >conftest.err
7723 cat conftest.err >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } >/dev/null; then
7726 if test -s conftest.err; then
7727 ac_cpp_err=$ac_c_preproc_warn_flag
7728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7735 if test -z "$ac_cpp_err"; then
7736 ac_header_preproc=yes
7738 echo "$as_me: failed program was:" >&5
7739 sed 's/^/| /' conftest.$ac_ext >&5
7741 ac_header_preproc=no
7743 rm -f conftest.err conftest.$ac_ext
7744 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7745 echo "${ECHO_T}$ac_header_preproc" >&6
7747 # So? What about this header?
7748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7754 ac_header_preproc=yes
7757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7771 ## ------------------------------------------ ##
7772 ## Report this to the AC_PACKAGE_NAME lists. ##
7773 ## ------------------------------------------ ##
7776 sed "s/^/$as_me: WARNING: /" >&2
7779 echo "$as_me:$LINENO: checking for $ac_header" >&5
7780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 eval "$as_ac_Header=\$ac_header_preproc"
7786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7791 cat >>confdefs.h <<_ACEOF
7792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7800 for ac_func in getpagesize
7802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7803 echo "$as_me:$LINENO: checking for $ac_func" >&5
7804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7805 if eval "test \"\${$as_ac_var+set}\" = set"; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7808 cat >conftest.$ac_ext <<_ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h. */
7814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7816 #define $ac_func innocuous_$ac_func
7818 /* System header to define __stub macros and hopefully few prototypes,
7819 which can conflict with char $ac_func (); below.
7820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7821 <limits.h> exists even on freestanding compilers. */
7824 # include <limits.h>
7826 # include <assert.h>
7831 /* Override any gcc2 internal prototype to avoid an error. */
7836 /* We use char because int might match the return type of a gcc2
7837 builtin and then its argument prototype would still apply. */
7839 /* The GNU C library defines this for functions which it implements
7840 to always fail with ENOSYS. Some functions are actually named
7841 something starting with __ and the normal name is an alias. */
7842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7845 char (*f) () = $ac_func;
7854 return f != $ac_func;
7859 rm -f conftest.$ac_objext conftest$ac_exeext
7860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7861 (eval $ac_link) 2>conftest.er1
7863 grep -v '^ *+' conftest.er1 >conftest.err
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } &&
7868 { ac_try='test -z "$ac_c_werror_flag"
7869 || test ! -s conftest.err'
7870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; } &&
7875 { ac_try='test -s conftest$ac_exeext'
7876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; }; then
7881 eval "$as_ac_var=yes"
7883 echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7886 eval "$as_ac_var=no"
7888 rm -f conftest.err conftest.$ac_objext \
7889 conftest$ac_exeext conftest.$ac_ext
7891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7893 if test `eval echo '${'$as_ac_var'}'` = yes; then
7894 cat >>confdefs.h <<_ACEOF
7895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7901 echo "$as_me:$LINENO: checking for working mmap" >&5
7902 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7903 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7906 if test "$cross_compiling" = yes; then
7907 ac_cv_func_mmap_fixed_mapped=no
7909 cat >conftest.$ac_ext <<_ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7915 $ac_includes_default
7916 /* malloc might have been renamed as rpl_malloc. */
7919 /* Thanks to Mike Haertel and Jim Avera for this test.
7920 Here is a matrix of mmap possibilities:
7921 mmap private not fixed
7922 mmap private fixed at somewhere currently unmapped
7923 mmap private fixed at somewhere already mapped
7924 mmap shared not fixed
7925 mmap shared fixed at somewhere currently unmapped
7926 mmap shared fixed at somewhere already mapped
7927 For private mappings, we should verify that changes cannot be read()
7928 back from the file, nor mmap's back from the file at a different
7929 address. (There have been systems where private was not correctly
7930 implemented like the infamous i386 svr4.0, and systems where the
7931 VM page cache was not coherent with the file system buffer cache
7932 like early versions of FreeBSD and possibly contemporary NetBSD.)
7933 For shared mappings, we should conversely verify that changes get
7934 propagated back to all the places they're supposed to be.
7936 Grep wants private fixed already mapped.
7937 The main things grep needs to know about mmap are:
7938 * does it exist and is it safe to write into the mmap'd area
7939 * how to use it (BSD variants) */
7942 #include <sys/mman.h>
7944 #if !STDC_HEADERS && !HAVE_STDLIB_H
7948 /* This mess was copied from the GNU getpagesize.h. */
7949 #if !HAVE_GETPAGESIZE
7950 /* Assume that all systems that can run configure have sys/param.h. */
7951 # if !HAVE_SYS_PARAM_H
7952 # define HAVE_SYS_PARAM_H 1
7955 # ifdef _SC_PAGESIZE
7956 # define getpagesize() sysconf(_SC_PAGESIZE)
7957 # else /* no _SC_PAGESIZE */
7958 # if HAVE_SYS_PARAM_H
7959 # include <sys/param.h>
7960 # ifdef EXEC_PAGESIZE
7961 # define getpagesize() EXEC_PAGESIZE
7962 # else /* no EXEC_PAGESIZE */
7964 # define getpagesize() NBPG * CLSIZE
7967 # endif /* no CLSIZE */
7968 # else /* no NBPG */
7970 # define getpagesize() NBPC
7971 # else /* no NBPC */
7973 # define getpagesize() PAGESIZE
7974 # endif /* PAGESIZE */
7975 # endif /* no NBPC */
7976 # endif /* no NBPG */
7977 # endif /* no EXEC_PAGESIZE */
7978 # else /* no HAVE_SYS_PARAM_H */
7979 # define getpagesize() 8192 /* punt totally */
7980 # endif /* no HAVE_SYS_PARAM_H */
7981 # endif /* no _SC_PAGESIZE */
7983 #endif /* no HAVE_GETPAGESIZE */
7988 char *data, *data2, *data3;
7992 pagesize = getpagesize ();
7994 /* First, make a file with some known garbage in it. */
7995 data = (char *) malloc (pagesize);
7998 for (i = 0; i < pagesize; ++i)
7999 *(data + i) = rand ();
8001 fd = creat ("conftest.mmap", 0600);
8004 if (write (fd, data, pagesize) != pagesize)
8008 /* Next, try to mmap the file at a fixed address which already has
8009 something else allocated at it. If we can, also make sure that
8010 we see the same garbage. */
8011 fd = open ("conftest.mmap", O_RDWR);
8014 data2 = (char *) malloc (2 * pagesize);
8017 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8018 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8019 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8021 for (i = 0; i < pagesize; ++i)
8022 if (*(data + i) != *(data2 + i))
8025 /* Finally, make sure that changes to the mapped area do not
8026 percolate back to the file as seen by read(). (This is a bug on
8027 some variants of i386 svr4.0.) */
8028 for (i = 0; i < pagesize; ++i)
8029 *(data2 + i) = *(data2 + i) + 1;
8030 data3 = (char *) malloc (pagesize);
8033 if (read (fd, data3, pagesize) != pagesize)
8035 for (i = 0; i < pagesize; ++i)
8036 if (*(data + i) != *(data3 + i))
8042 rm -f conftest$ac_exeext
8043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8044 (eval $ac_link) 2>&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
8053 ac_cv_func_mmap_fixed_mapped=yes
8055 echo "$as_me: program exited with status $ac_status" >&5
8056 echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8060 ac_cv_func_mmap_fixed_mapped=no
8062 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8065 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8066 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8067 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8069 cat >>confdefs.h <<\_ACEOF
8085 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
8086 unistd.h sys/param.h
8088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8090 echo "$as_me:$LINENO: checking for $ac_header" >&5
8091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8098 # Is the header compilable?
8099 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8101 cat >conftest.$ac_ext <<_ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8107 $ac_includes_default
8108 #include <$ac_header>
8110 rm -f conftest.$ac_objext
8111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8112 (eval $ac_compile) 2>conftest.er1
8114 grep -v '^ *+' conftest.er1 >conftest.err
8116 cat conftest.err >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); } &&
8119 { ac_try='test -z "$ac_c_werror_flag"
8120 || test ! -s conftest.err'
8121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); }; } &&
8126 { ac_try='test -s conftest.$ac_objext'
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
8132 ac_header_compiler=yes
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8137 ac_header_compiler=no
8139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8140 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8141 echo "${ECHO_T}$ac_header_compiler" >&6
8143 # Is the header present?
8144 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8146 cat >conftest.$ac_ext <<_ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8152 #include <$ac_header>
8154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8157 grep -v '^ *+' conftest.er1 >conftest.err
8159 cat conftest.err >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } >/dev/null; then
8162 if test -s conftest.err; then
8163 ac_cpp_err=$ac_c_preproc_warn_flag
8164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8171 if test -z "$ac_cpp_err"; then
8172 ac_header_preproc=yes
8174 echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8177 ac_header_preproc=no
8179 rm -f conftest.err conftest.$ac_ext
8180 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8181 echo "${ECHO_T}$ac_header_preproc" >&6
8183 # So? What about this header?
8184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8186 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8187 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8190 ac_header_preproc=yes
8193 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8194 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8195 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8196 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8198 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8200 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8204 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8207 ## ------------------------------------------ ##
8208 ## Report this to the AC_PACKAGE_NAME lists. ##
8209 ## ------------------------------------------ ##
8212 sed "s/^/$as_me: WARNING: /" >&2
8215 echo "$as_me:$LINENO: checking for $ac_header" >&5
8216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 eval "$as_ac_Header=\$ac_header_preproc"
8222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8227 cat >>confdefs.h <<_ACEOF
8228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8246 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
8247 strdup __argz_count __argz_stringify __argz_next
8249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8250 echo "$as_me:$LINENO: checking for $ac_func" >&5
8251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8252 if eval "test \"\${$as_ac_var+set}\" = set"; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8255 cat >conftest.$ac_ext <<_ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h. */
8261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8263 #define $ac_func innocuous_$ac_func
8265 /* System header to define __stub macros and hopefully few prototypes,
8266 which can conflict with char $ac_func (); below.
8267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8268 <limits.h> exists even on freestanding compilers. */
8271 # include <limits.h>
8273 # include <assert.h>
8278 /* Override any gcc2 internal prototype to avoid an error. */
8283 /* We use char because int might match the return type of a gcc2
8284 builtin and then its argument prototype would still apply. */
8286 /* The GNU C library defines this for functions which it implements
8287 to always fail with ENOSYS. Some functions are actually named
8288 something starting with __ and the normal name is an alias. */
8289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8292 char (*f) () = $ac_func;
8301 return f != $ac_func;
8306 rm -f conftest.$ac_objext conftest$ac_exeext
8307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8308 (eval $ac_link) 2>conftest.er1
8310 grep -v '^ *+' conftest.er1 >conftest.err
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } &&
8315 { ac_try='test -z "$ac_c_werror_flag"
8316 || test ! -s conftest.err'
8317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; } &&
8322 { ac_try='test -s conftest$ac_exeext'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; }; then
8328 eval "$as_ac_var=yes"
8330 echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8333 eval "$as_ac_var=no"
8335 rm -f conftest.err conftest.$ac_objext \
8336 conftest$ac_exeext conftest.$ac_ext
8338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8339 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8340 if test `eval echo '${'$as_ac_var'}'` = yes; then
8341 cat >>confdefs.h <<_ACEOF
8342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8349 if test $ac_cv_header_locale_h = yes; then
8350 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8351 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8352 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 cat >conftest.$ac_ext <<_ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8370 rm -f conftest.$ac_objext conftest$ac_exeext
8371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372 (eval $ac_link) 2>conftest.er1
8374 grep -v '^ *+' conftest.er1 >conftest.err
8376 cat conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } &&
8379 { ac_try='test -z "$ac_c_werror_flag"
8380 || test ! -s conftest.err'
8381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; } &&
8386 { ac_try='test -s conftest$ac_exeext'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; }; then
8392 am_cv_val_LC_MESSAGES=yes
8394 echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.$ac_ext >&5
8397 am_cv_val_LC_MESSAGES=no
8399 rm -f conftest.err conftest.$ac_objext \
8400 conftest$ac_exeext conftest.$ac_ext
8402 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8403 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8404 if test $am_cv_val_LC_MESSAGES = yes; then
8406 cat >>confdefs.h <<\_ACEOF
8407 #define HAVE_LC_MESSAGES 1
8415 nls_cv_force_use_gnu_gettext="no"
8417 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8418 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8420 nls_cv_header_libgt=
8423 if test "${ac_cv_header_libintl_h+set}" = set; then
8424 echo "$as_me:$LINENO: checking for libintl.h" >&5
8425 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8426 if test "${ac_cv_header_libintl_h+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8430 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8432 # Is the header compilable?
8433 echo "$as_me:$LINENO: checking libintl.h usability" >&5
8434 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8435 cat >conftest.$ac_ext <<_ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8441 $ac_includes_default
8442 #include <libintl.h>
8444 rm -f conftest.$ac_objext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8446 (eval $ac_compile) 2>conftest.er1
8448 grep -v '^ *+' conftest.er1 >conftest.err
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } &&
8453 { ac_try='test -z "$ac_c_werror_flag"
8454 || test ! -s conftest.err'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; } &&
8460 { ac_try='test -s conftest.$ac_objext'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 ac_header_compiler=yes
8468 echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8471 ac_header_compiler=no
8473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8475 echo "${ECHO_T}$ac_header_compiler" >&6
8477 # Is the header present?
8478 echo "$as_me:$LINENO: checking libintl.h presence" >&5
8479 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8480 cat >conftest.$ac_ext <<_ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8486 #include <libintl.h>
8488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8491 grep -v '^ *+' conftest.er1 >conftest.err
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } >/dev/null; then
8496 if test -s conftest.err; then
8497 ac_cpp_err=$ac_c_preproc_warn_flag
8498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8505 if test -z "$ac_cpp_err"; then
8506 ac_header_preproc=yes
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8511 ac_header_preproc=no
8513 rm -f conftest.err conftest.$ac_ext
8514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8515 echo "${ECHO_T}$ac_header_preproc" >&6
8517 # So? What about this header?
8518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8520 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8521 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8522 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
8523 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
8524 ac_header_preproc=yes
8527 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8528 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
8529 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8530 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8531 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
8532 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
8533 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
8534 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8535 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8536 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8537 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
8538 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
8541 ## ------------------------------------------ ##
8542 ## Report this to the AC_PACKAGE_NAME lists. ##
8543 ## ------------------------------------------ ##
8546 sed "s/^/$as_me: WARNING: /" >&2
8549 echo "$as_me:$LINENO: checking for libintl.h" >&5
8550 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8551 if test "${ac_cv_header_libintl_h+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 ac_cv_header_libintl_h=$ac_header_preproc
8556 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8557 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8560 if test $ac_cv_header_libintl_h = yes; then
8561 echo "$as_me:$LINENO: checking for dgettext in libc" >&5
8562 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
8563 if test "${gt_cv_func_dgettext_libc+set}" = set; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
8566 cat >conftest.$ac_ext <<_ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8572 #include <libintl.h>
8576 return (int) dgettext ("","")
8581 rm -f conftest.$ac_objext conftest$ac_exeext
8582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8583 (eval $ac_link) 2>conftest.er1
8585 grep -v '^ *+' conftest.er1 >conftest.err
8587 cat conftest.err >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } &&
8590 { ac_try='test -z "$ac_c_werror_flag"
8591 || test ! -s conftest.err'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; } &&
8597 { ac_try='test -s conftest$ac_exeext'
8598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); }; }; then
8603 gt_cv_func_dgettext_libc=yes
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8608 gt_cv_func_dgettext_libc=no
8610 rm -f conftest.err conftest.$ac_objext \
8611 conftest$ac_exeext conftest.$ac_ext
8613 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
8614 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
8616 if test "$gt_cv_func_dgettext_libc" != "yes"; then
8617 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8618 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8619 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 ac_check_lib_save_LIBS=$LIBS
8624 cat >conftest.$ac_ext <<_ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h. */
8631 /* Override any gcc2 internal prototype to avoid an error. */
8635 /* We use char because int might match the return type of a gcc2
8636 builtin and then its argument prototype would still apply. */
8637 char bindtextdomain ();
8646 rm -f conftest.$ac_objext conftest$ac_exeext
8647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8648 (eval $ac_link) 2>conftest.er1
8650 grep -v '^ *+' conftest.er1 >conftest.err
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try='test -z "$ac_c_werror_flag"
8656 || test ! -s conftest.err'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; } &&
8662 { ac_try='test -s conftest$ac_exeext'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; }; then
8668 ac_cv_lib_intl_bindtextdomain=yes
8670 echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8673 ac_cv_lib_intl_bindtextdomain=no
8675 rm -f conftest.err conftest.$ac_objext \
8676 conftest$ac_exeext conftest.$ac_ext
8677 LIBS=$ac_check_lib_save_LIBS
8679 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8680 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8681 if test $ac_cv_lib_intl_bindtextdomain = yes; then
8682 echo "$as_me:$LINENO: checking for dgettext in libintl" >&5
8683 echo $ECHO_N "checking for dgettext in libintl... $ECHO_C" >&6
8684 if test "${gt_cv_func_dgettext_libintl+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
8688 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
8689 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 ac_check_lib_save_LIBS=$LIBS
8694 cat >conftest.$ac_ext <<_ACEOF
8697 cat confdefs.h >>conftest.$ac_ext
8698 cat >>conftest.$ac_ext <<_ACEOF
8699 /* end confdefs.h. */
8701 /* Override any gcc2 internal prototype to avoid an error. */
8705 /* We use char because int might match the return type of a gcc2
8706 builtin and then its argument prototype would still apply. */
8716 rm -f conftest.$ac_objext conftest$ac_exeext
8717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8718 (eval $ac_link) 2>conftest.er1
8720 grep -v '^ *+' conftest.er1 >conftest.err
8722 cat conftest.err >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); } &&
8725 { ac_try='test -z "$ac_c_werror_flag"
8726 || test ! -s conftest.err'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; } &&
8732 { ac_try='test -s conftest$ac_exeext'
8733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); }; }; then
8738 ac_cv_lib_intl_dgettext=yes
8740 echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8743 ac_cv_lib_intl_dgettext=no
8745 rm -f conftest.err conftest.$ac_objext \
8746 conftest$ac_exeext conftest.$ac_ext
8747 LIBS=$ac_check_lib_save_LIBS
8749 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
8750 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
8751 if test $ac_cv_lib_intl_dgettext = yes; then
8752 gt_cv_func_dgettext_libintl=yes
8754 gt_cv_func_dgettext_libintl=no
8758 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libintl" >&5
8759 echo "${ECHO_T}$gt_cv_func_dgettext_libintl" >&6
8764 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8765 LIBS="$LIBS -lintl";
8768 if test "$gt_cv_func_dgettext_libc" = "yes" \
8769 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8771 cat >>confdefs.h <<\_ACEOF
8772 #define HAVE_GETTEXT 1
8775 # Extract the first word of "msgfmt", so it can be a program name with args.
8776 set dummy msgfmt; ac_word=$2
8777 echo "$as_me:$LINENO: checking for $ac_word" >&5
8778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8779 if test "${ac_cv_path_MSGFMT+set}" = set; then
8780 echo $ECHO_N "(cached) $ECHO_C" >&6
8784 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8788 for ac_dir in $PATH; do
8789 test -z "$ac_dir" && ac_dir=.
8790 if test -f $ac_dir/$ac_word; then
8791 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8792 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8798 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8802 MSGFMT="$ac_cv_path_MSGFMT"
8803 if test -n "$MSGFMT"; then
8804 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8805 echo "${ECHO_T}$MSGFMT" >&6
8807 echo "$as_me:$LINENO: result: no" >&5
8808 echo "${ECHO_T}no" >&6
8810 if test "$MSGFMT" != "no"; then
8812 for ac_func in dcgettext
8814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8815 echo "$as_me:$LINENO: checking for $ac_func" >&5
8816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8817 if eval "test \"\${$as_ac_var+set}\" = set"; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8820 cat >conftest.$ac_ext <<_ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8828 #define $ac_func innocuous_$ac_func
8830 /* System header to define __stub macros and hopefully few prototypes,
8831 which can conflict with char $ac_func (); below.
8832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8833 <limits.h> exists even on freestanding compilers. */
8836 # include <limits.h>
8838 # include <assert.h>
8843 /* Override any gcc2 internal prototype to avoid an error. */
8848 /* We use char because int might match the return type of a gcc2
8849 builtin and then its argument prototype would still apply. */
8851 /* The GNU C library defines this for functions which it implements
8852 to always fail with ENOSYS. Some functions are actually named
8853 something starting with __ and the normal name is an alias. */
8854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8857 char (*f) () = $ac_func;
8866 return f != $ac_func;
8871 rm -f conftest.$ac_objext conftest$ac_exeext
8872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8873 (eval $ac_link) 2>conftest.er1
8875 grep -v '^ *+' conftest.er1 >conftest.err
8877 cat conftest.err >&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } &&
8880 { ac_try='test -z "$ac_c_werror_flag"
8881 || test ! -s conftest.err'
8882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }; } &&
8887 { ac_try='test -s conftest$ac_exeext'
8888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); }; }; then
8893 eval "$as_ac_var=yes"
8895 echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8898 eval "$as_ac_var=no"
8900 rm -f conftest.err conftest.$ac_objext \
8901 conftest$ac_exeext conftest.$ac_ext
8903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8905 if test `eval echo '${'$as_ac_var'}'` = yes; then
8906 cat >>confdefs.h <<_ACEOF
8907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8913 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8914 set dummy gmsgfmt; ac_word=$2
8915 echo "$as_me:$LINENO: checking for $ac_word" >&5
8916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8917 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929 test -z "$as_dir" && as_dir=.
8930 for ac_exec_ext in '' $ac_executable_extensions; do
8931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8932 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8939 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8943 GMSGFMT=$ac_cv_path_GMSGFMT
8945 if test -n "$GMSGFMT"; then
8946 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8947 echo "${ECHO_T}$GMSGFMT" >&6
8949 echo "$as_me:$LINENO: result: no" >&5
8950 echo "${ECHO_T}no" >&6
8953 # Extract the first word of "xgettext", so it can be a program name with args.
8954 set dummy xgettext; ac_word=$2
8955 echo "$as_me:$LINENO: checking for $ac_word" >&5
8956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8957 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8962 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8966 for ac_dir in $PATH; do
8967 test -z "$ac_dir" && ac_dir=.
8968 if test -f $ac_dir/$ac_word; then
8969 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8970 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8976 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8980 XGETTEXT="$ac_cv_path_XGETTEXT"
8981 if test -n "$XGETTEXT"; then
8982 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8983 echo "${ECHO_T}$XGETTEXT" >&6
8985 echo "$as_me:$LINENO: result: no" >&5
8986 echo "${ECHO_T}no" >&6
8989 cat >conftest.$ac_ext <<_ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h. */
8999 extern int _nl_msg_cat_cntr;
9000 return _nl_msg_cat_cntr
9005 rm -f conftest.$ac_objext conftest$ac_exeext
9006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9007 (eval $ac_link) 2>conftest.er1
9009 grep -v '^ *+' conftest.er1 >conftest.err
9011 cat conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } &&
9014 { ac_try='test -z "$ac_c_werror_flag"
9015 || test ! -s conftest.err'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; } &&
9021 { ac_try='test -s conftest$ac_exeext'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9030 echo "$as_me: failed program was:" >&5
9031 sed 's/^/| /' conftest.$ac_ext >&5
9036 rm -f conftest.err conftest.$ac_objext \
9037 conftest$ac_exeext conftest.$ac_ext
9042 # Added by Martin Baulig 12/15/98 for libc5 systems
9043 if test "$gt_cv_func_dgettext_libc" != "yes" \
9044 && test "$gt_cv_func_dgettext_libintl" = "yes"; then
9046 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
9053 if test "$CATOBJEXT" = "NONE"; then
9054 nls_cv_use_gnu_gettext=yes
9058 if test "$nls_cv_use_gnu_gettext" != "yes"; then
9060 cat >>confdefs.h <<\_ACEOF
9061 #define ENABLE_NLS 1
9068 if test "$XGETTEXT" != ":"; then
9069 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9072 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
9073 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
9078 # We need to process the po/ directory.
9081 ac_config_commands="$ac_config_commands default-2"
9084 for lang in $ALL_LINGUAS; do
9085 GMOFILES="$GMOFILES $lang.gmo"
9086 POFILES="$POFILES $lang.po"
9101 if test "x$CATOBJEXT" != "x"; then
9102 if test "x$ALL_LINGUAS" = "x"; then
9105 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9106 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9108 for lang in ${LINGUAS=$ALL_LINGUAS}; do
9109 case "$ALL_LINGUAS" in
9110 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
9113 LINGUAS=$NEW_LINGUAS
9114 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9115 echo "${ECHO_T}$LINGUAS" >&6
9118 if test -n "$LINGUAS"; then
9119 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9123 test -d po || mkdir po
9124 if test "$CATOBJEXT" = ".cat"; then
9125 if test "${ac_cv_header_linux_version_h+set}" = set; then
9126 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9127 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9128 if test "${ac_cv_header_linux_version_h+set}" = set; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9131 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9132 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9134 # Is the header compilable?
9135 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
9136 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
9137 cat >conftest.$ac_ext <<_ACEOF
9140 cat confdefs.h >>conftest.$ac_ext
9141 cat >>conftest.$ac_ext <<_ACEOF
9142 /* end confdefs.h. */
9143 $ac_includes_default
9144 #include <linux/version.h>
9146 rm -f conftest.$ac_objext
9147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9148 (eval $ac_compile) 2>conftest.er1
9150 grep -v '^ *+' conftest.er1 >conftest.err
9152 cat conftest.err >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } &&
9155 { ac_try='test -z "$ac_c_werror_flag"
9156 || test ! -s conftest.err'
9157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); }; } &&
9162 { ac_try='test -s conftest.$ac_objext'
9163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); }; }; then
9168 ac_header_compiler=yes
9170 echo "$as_me: failed program was:" >&5
9171 sed 's/^/| /' conftest.$ac_ext >&5
9173 ac_header_compiler=no
9175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9177 echo "${ECHO_T}$ac_header_compiler" >&6
9179 # Is the header present?
9180 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
9181 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
9182 cat >conftest.$ac_ext <<_ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9188 #include <linux/version.h>
9190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9193 grep -v '^ *+' conftest.er1 >conftest.err
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } >/dev/null; then
9198 if test -s conftest.err; then
9199 ac_cpp_err=$ac_c_preproc_warn_flag
9200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9207 if test -z "$ac_cpp_err"; then
9208 ac_header_preproc=yes
9210 echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9213 ac_header_preproc=no
9215 rm -f conftest.err conftest.$ac_ext
9216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9217 echo "${ECHO_T}$ac_header_preproc" >&6
9219 # So? What about this header?
9220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9222 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9223 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9224 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
9225 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
9226 ac_header_preproc=yes
9229 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
9230 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
9231 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
9232 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
9234 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
9235 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
9236 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
9237 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
9238 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
9239 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
9240 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
9243 ## ------------------------------------------ ##
9244 ## Report this to the AC_PACKAGE_NAME lists. ##
9245 ## ------------------------------------------ ##
9248 sed "s/^/$as_me: WARNING: /" >&2
9251 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9252 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9253 if test "${ac_cv_header_linux_version_h+set}" = set; then
9254 echo $ECHO_N "(cached) $ECHO_C" >&6
9256 ac_cv_header_linux_version_h=$ac_header_preproc
9258 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9259 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9262 if test $ac_cv_header_linux_version_h = yes; then
9270 sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
9275 # jwz: fuck this! it puts hardcoded pathnames into the generated Makefiles!
9277 # if test -n "$ac_aux_dir"; then
9278 # MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
9280 if test -z "$MKINSTALLDIRS"; then
9281 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
9284 # jwz: you know what, screw it. Let's just use the version that I
9285 # already computed in configure.in, instead of this version that came
9286 # with the i18n crud, ok?
9287 MKINSTALLDIRS="$INSTALL_DIRS"
9292 test -d po || mkdir po
9293 if test "x$srcdir" != "x."; then
9294 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
9295 posrcprefix="$srcdir/"
9297 posrcprefix="../$srcdir/"
9303 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
9304 < $srcdir/po/POTFILES.in > po/POTFILES
9306 MKINSTALLDIRS="$INSTALL_DIRS"
9309 ###############################################################################
9311 # Check for -lXmu (some fucked up vendors don't ship it...)
9313 ###############################################################################
9317 ac_save_CPPFLAGS="$CPPFLAGS"
9318 if test \! -z "$includedir" ; then
9319 CPPFLAGS="$CPPFLAGS -I$includedir"
9321 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9322 echo "$as_me:$LINENO: checking for X11/Xmu/Error.h" >&5
9323 echo $ECHO_N "checking for X11/Xmu/Error.h... $ECHO_C" >&6
9324 if test "${ac_cv_header_X11_Xmu_Error_h+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 cat >conftest.$ac_ext <<_ACEOF
9330 cat confdefs.h >>conftest.$ac_ext
9331 cat >>conftest.$ac_ext <<_ACEOF
9332 /* end confdefs.h. */
9335 #include <X11/Intrinsic.h>
9337 #include <X11/Xmu/Error.h>
9339 rm -f conftest.$ac_objext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9341 (eval $ac_compile) 2>conftest.er1
9343 grep -v '^ *+' conftest.er1 >conftest.err
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } &&
9348 { ac_try='test -z "$ac_c_werror_flag"
9349 || test ! -s conftest.err'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; } &&
9355 { ac_try='test -s conftest.$ac_objext'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9361 ac_cv_header_X11_Xmu_Error_h=yes
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9366 ac_cv_header_X11_Xmu_Error_h=no
9368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9370 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xmu_Error_h" >&5
9371 echo "${ECHO_T}$ac_cv_header_X11_Xmu_Error_h" >&6
9372 if test $ac_cv_header_X11_Xmu_Error_h = yes; then
9377 CPPFLAGS="$ac_save_CPPFLAGS"
9378 if test "$have_xmu" = no ; then
9379 XMU_SRCS='$(UTILS_SRC)/xmu.c'
9380 XMU_OBJS='$(UTILS_BIN)/xmu.o'
9386 cat >>confdefs.h <<\_ACEOF
9393 ###############################################################################
9395 # Check for the SunOS 4.1.x _get_wmShellWidgetClass bug.
9396 # See comp.windows.x FAQ question 124. The right fix is to
9397 # get OpenWindows 3.0 patches 100512-02 and 100573-03.
9399 ###############################################################################
9401 if test "$have_xmu" = yes ; then
9404 echo "$as_me:$LINENO: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
9405 echo $ECHO_N "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug... $ECHO_C" >&6
9406 if test "${ac_cv_sunos_xmu_bug+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9409 ac_save_LDFLAGS="$LDFLAGS"
9410 if test \! -z "$x_libraries" ; then
9411 LDFLAGS="$LDFLAGS -L$x_libraries"
9413 # Note: this trick never works! (Generally.)
9414 # We're only getting away with using AC_TRY_LINK
9415 # with X libraries because we know it's SunOS.
9416 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
9417 cat >conftest.$ac_ext <<_ACEOF
9420 cat confdefs.h >>conftest.$ac_ext
9421 cat >>conftest.$ac_ext <<_ACEOF
9422 /* end confdefs.h. */
9432 rm -f conftest.$ac_objext conftest$ac_exeext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9434 (eval $ac_link) 2>conftest.er1
9436 grep -v '^ *+' conftest.er1 >conftest.err
9438 cat conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } &&
9441 { ac_try='test -z "$ac_c_werror_flag"
9442 || test ! -s conftest.err'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; } &&
9448 { ac_try='test -s conftest$ac_exeext'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; }; then
9454 ac_cv_sunos_xmu_bug=no
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9459 ac_cv_sunos_xmu_bug=yes
9461 rm -f conftest.err conftest.$ac_objext \
9462 conftest$ac_exeext conftest.$ac_ext
9463 LDFLAGS="$ac_save_LDFLAGS"
9465 echo "$as_me:$LINENO: result: $ac_cv_sunos_xmu_bug" >&5
9466 echo "${ECHO_T}$ac_cv_sunos_xmu_bug" >&6
9467 if test "$ac_cv_sunos_xmu_bug" = yes ; then
9468 echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
9469 echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
9470 if test "${ac_cv_ld_static+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 ac_save_LDFLAGS="$LDFLAGS"
9474 LDFLAGS="$LDFLAGS -static"
9475 cat >conftest.$ac_ext <<_ACEOF
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h. */
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9492 (eval $ac_link) 2>conftest.er1
9494 grep -v '^ *+' conftest.er1 >conftest.err
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } &&
9499 { ac_try='test -z "$ac_c_werror_flag"
9500 || test ! -s conftest.err'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; } &&
9506 { ac_try='test -s conftest$ac_exeext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9514 echo "$as_me: failed program was:" >&5
9515 sed 's/^/| /' conftest.$ac_ext >&5
9519 rm -f conftest.err conftest.$ac_objext \
9520 conftest$ac_exeext conftest.$ac_ext
9521 LDFLAGS="$ac_save_LDFLAGS"
9523 echo "$as_me:$LINENO: result: $ac_cv_ld_static" >&5
9524 echo "${ECHO_T}$ac_cv_ld_static" >&6
9525 if test "$ac_cv_ld_static" = yes ; then
9526 LDFLAGS="$LDFLAGS -static"
9528 LDFLAGS="$LDFLAGS -Bstatic"
9536 ###############################################################################
9538 # Handle the --with-hackdir option
9540 ###############################################################################
9543 with_hackdir_req=unspecified
9545 # Check whether --with-hackdir or --without-hackdir was given.
9546 if test "${with_hackdir+set}" = set; then
9547 withval="$with_hackdir"
9548 with_hackdir="$withval"; with_hackdir_req="$withval"
9553 if test x"$with_hackdir" = xyes; then
9554 HACKDIR='${exec_prefix}/lib/xscreensaver'
9555 elif test x"$with_hackdir" = xno; then
9558 # there must be a better way than this...
9559 if test -z "`echo $with_hackdir | sed 's@^/.*@@'`" ; then
9561 HACKDIR=$with_hackdir
9564 HACKDIR="\${exec_prefix}$with_hackdir"
9568 # canonicalize slashes.
9569 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
9571 # This option used to be called --enable-subdir; make sure that is no longer
9572 # used, since configure brain-damagedly ignores unknown --enable options.
9575 # Check whether --enable-subdir or --disable-subdir was given.
9576 if test "${enable_subdir+set}" = set; then
9577 enableval="$enable_subdir"
9580 if test -n "$obsolete_enable"; then
9581 echo "error: the --enable-subdir option has been replaced with"
9582 echo " the new --with-hackdir option; see \`configure --help'"
9583 echo " for more information."
9588 ###############################################################################
9590 # Handle the --with-configdir option
9592 ###############################################################################
9595 with_configdir_req=unspecified
9597 # Check whether --with-configdir or --without-configdir was given.
9598 if test "${with_configdir+set}" = set; then
9599 withval="$with_configdir"
9600 with_configdir="$withval"; with_configdir_req="$withval"
9605 if test x"$with_configdir" = xyes; then
9606 # filled in later...
9608 elif test x"$with_configdir" = xno; then
9609 echo "error: must be yes, or a pathname: --with-configdir=$with_configdir"
9612 # there must be a better way than this...
9613 if test -z "`echo $with_configdir | sed 's@^/.*@@'`" ; then
9615 HACK_CONF_DIR=$with_configdir
9618 HACK_CONF_DIR="\${exec_prefix}$with_configdir"
9625 ###############################################################################
9627 # Check for the SGI SCREEN_SAVER server extension.
9629 ###############################################################################
9632 with_sgi_req=unspecified
9634 # Check whether --with-sgi-ext or --without-sgi-ext was given.
9635 if test "${with_sgi_ext+set}" = set; then
9636 withval="$with_sgi_ext"
9637 with_sgi="$withval"; with_sgi_req="$withval"
9648 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER headers" >&5
9649 echo $ECHO_N "checking for SGI SCREEN_SAVER headers... $ECHO_C" >&6
9652 X_CFLAGS="-I$d $X_CFLAGS"
9653 echo "$as_me:$LINENO: result: $d" >&5
9654 echo "${ECHO_T}$d" >&6
9656 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9657 echo "${ECHO_T}not found ($d: no such directory)" >&6
9660 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER libs" >&5
9661 echo $ECHO_N "checking for SGI SCREEN_SAVER libs... $ECHO_C" >&6
9664 X_LIBS="-L$d $X_LIBS"
9665 echo "$as_me:$LINENO: result: $d" >&5
9666 echo "${ECHO_T}$d" >&6
9668 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9669 echo "${ECHO_T}not found ($d: no such directory)" >&6
9672 # replace the directory string with "yes".
9674 with_sgi=$with_sgi_req
9679 echo "error: argument to --with-sgi-ext must be \"yes\", \"no\", or a directory."
9680 echo " If it is a directory, then \`DIR/include' will be added to"
9681 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9687 if test "$with_sgi" = yes; then
9689 ac_save_CPPFLAGS="$CPPFLAGS"
9690 if test \! -z "$includedir" ; then
9691 CPPFLAGS="$CPPFLAGS -I$includedir"
9693 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9694 echo "$as_me:$LINENO: checking for X11/extensions/XScreenSaver.h" >&5
9695 echo $ECHO_N "checking for X11/extensions/XScreenSaver.h... $ECHO_C" >&6
9696 if test "${ac_cv_header_X11_extensions_XScreenSaver_h+set}" = set; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9699 cat >conftest.$ac_ext <<_ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9705 #include <X11/Xlib.h>
9707 #include <X11/extensions/XScreenSaver.h>
9709 rm -f conftest.$ac_objext
9710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9711 (eval $ac_compile) 2>conftest.er1
9713 grep -v '^ *+' conftest.er1 >conftest.err
9715 cat conftest.err >&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } &&
9718 { ac_try='test -z "$ac_c_werror_flag"
9719 || test ! -s conftest.err'
9720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; } &&
9725 { ac_try='test -s conftest.$ac_objext'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; }; then
9731 ac_cv_header_X11_extensions_XScreenSaver_h=yes
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9736 ac_cv_header_X11_extensions_XScreenSaver_h=no
9738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9740 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XScreenSaver_h" >&5
9741 echo "${ECHO_T}$ac_cv_header_X11_extensions_XScreenSaver_h" >&6
9742 if test $ac_cv_header_X11_extensions_XScreenSaver_h = yes; then
9744 cat >>confdefs.h <<\_ACEOF
9745 #define HAVE_SGI_SAVER_EXTENSION 1
9751 CPPFLAGS="$ac_save_CPPFLAGS"
9753 elif test "$with_sgi" != no; then
9754 echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
9759 ###############################################################################
9761 # Check for the MIT-SCREEN-SAVER server extension.
9763 ###############################################################################
9766 with_mit_req=unspecified
9768 # Check whether --with-mit-ext or --without-mit-ext was given.
9769 if test "${with_mit_ext+set}" = set; then
9770 withval="$with_mit_ext"
9771 with_mit="$withval"; with_mit_req="$withval"
9782 echo "$as_me:$LINENO: checking for MIT-SCREEN-SAVER headers" >&5
9783 echo $ECHO_N "checking for MIT-SCREEN-SAVER headers... $ECHO_C" >&6
9786 X_CFLAGS="-I$d $X_CFLAGS"
9787 echo "$as_me:$LINENO: result: $d" >&5
9788 echo "${ECHO_T}$d" >&6
9790 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9791 echo "${ECHO_T}not found ($d: no such directory)" >&6
9794 echo "$as_me:$LINENO: checking for MIT-SCREEN-SAVER libs" >&5
9795 echo $ECHO_N "checking for MIT-SCREEN-SAVER libs... $ECHO_C" >&6
9798 X_LIBS="-L$d $X_LIBS"
9799 echo "$as_me:$LINENO: result: $d" >&5
9800 echo "${ECHO_T}$d" >&6
9802 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9803 echo "${ECHO_T}not found ($d: no such directory)" >&6
9806 # replace the directory string with "yes".
9808 with_mit=$with_mit_req
9813 echo "error: argument to --with-mit-ext must be \"yes\", \"no\", or a directory."
9814 echo " If it is a directory, then \`DIR/include' will be added to"
9815 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9821 if test "$with_mit" = yes; then
9823 ac_save_CPPFLAGS="$CPPFLAGS"
9824 if test \! -z "$includedir" ; then
9825 CPPFLAGS="$CPPFLAGS -I$includedir"
9827 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9828 echo "$as_me:$LINENO: checking for X11/extensions/scrnsaver.h" >&5
9829 echo $ECHO_N "checking for X11/extensions/scrnsaver.h... $ECHO_C" >&6
9830 if test "${ac_cv_header_X11_extensions_scrnsaver_h+set}" = set; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9833 cat >conftest.$ac_ext <<_ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9839 #include <X11/Xlib.h>
9841 #include <X11/extensions/scrnsaver.h>
9843 rm -f conftest.$ac_objext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9845 (eval $ac_compile) 2>conftest.er1
9847 grep -v '^ *+' conftest.er1 >conftest.err
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
9852 { ac_try='test -z "$ac_c_werror_flag"
9853 || test ! -s conftest.err'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; } &&
9859 { ac_try='test -s conftest.$ac_objext'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9865 ac_cv_header_X11_extensions_scrnsaver_h=yes
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9870 ac_cv_header_X11_extensions_scrnsaver_h=no
9872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9874 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_scrnsaver_h" >&5
9875 echo "${ECHO_T}$ac_cv_header_X11_extensions_scrnsaver_h" >&6
9876 if test $ac_cv_header_X11_extensions_scrnsaver_h = yes; then
9881 CPPFLAGS="$ac_save_CPPFLAGS"
9883 # Now check to see if it's really in the library; XF86Free-3.3 ships
9884 # scrnsaver.h, but doesn't include the code in libXext.a, the idiots!
9886 if test "$have_mit" = yes; then
9888 ac_save_CPPFLAGS="$CPPFLAGS"
9889 ac_save_LDFLAGS="$LDFLAGS"
9890 # ac_save_LIBS="$LIBS"
9892 if test \! -z "$includedir" ; then
9893 CPPFLAGS="$CPPFLAGS -I$includedir"
9895 # note: $X_CFLAGS includes $x_includes
9896 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9898 if test \! -z "$libdir" ; then
9899 LDFLAGS="$LDFLAGS -L$libdir"
9901 # note: $X_LIBS includes $x_libraries
9902 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9904 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXext" >&5
9905 echo $ECHO_N "checking for XScreenSaverRegister in -lXext... $ECHO_C" >&6
9906 if test "${ac_cv_lib_Xext_XScreenSaverRegister+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9909 ac_check_lib_save_LIBS=$LIBS
9910 LIBS="-lXext -lm $LIBS"
9911 cat >conftest.$ac_ext <<_ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h. */
9918 /* Override any gcc2 internal prototype to avoid an error. */
9922 /* We use char because int might match the return type of a gcc2
9923 builtin and then its argument prototype would still apply. */
9924 char XScreenSaverRegister ();
9928 XScreenSaverRegister ();
9933 rm -f conftest.$ac_objext conftest$ac_exeext
9934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9935 (eval $ac_link) 2>conftest.er1
9937 grep -v '^ *+' conftest.er1 >conftest.err
9939 cat conftest.err >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } &&
9942 { ac_try='test -z "$ac_c_werror_flag"
9943 || test ! -s conftest.err'
9944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; } &&
9949 { ac_try='test -s conftest$ac_exeext'
9950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; }; then
9955 ac_cv_lib_Xext_XScreenSaverRegister=yes
9957 echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9960 ac_cv_lib_Xext_XScreenSaverRegister=no
9962 rm -f conftest.err conftest.$ac_objext \
9963 conftest$ac_exeext conftest.$ac_ext
9964 LIBS=$ac_check_lib_save_LIBS
9966 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XScreenSaverRegister" >&5
9967 echo "${ECHO_T}$ac_cv_lib_Xext_XScreenSaverRegister" >&6
9968 if test $ac_cv_lib_Xext_XScreenSaverRegister = yes; then
9974 CPPFLAGS="$ac_save_CPPFLAGS"
9975 LDFLAGS="$ac_save_LDFLAGS"
9976 # LIBS="$ac_save_LIBS"
9979 if test "$have_mit" = no; then
9980 # Fuck! Looks like XF86Free-3.3 actually puts it in XExExt instead
9981 # of in Xext. Thank you master, may I have another.
9983 ac_save_CPPFLAGS="$CPPFLAGS"
9984 ac_save_LDFLAGS="$LDFLAGS"
9985 # ac_save_LIBS="$LIBS"
9987 if test \! -z "$includedir" ; then
9988 CPPFLAGS="$CPPFLAGS -I$includedir"
9990 # note: $X_CFLAGS includes $x_includes
9991 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9993 if test \! -z "$libdir" ; then
9994 LDFLAGS="$LDFLAGS -L$libdir"
9996 # note: $X_LIBS includes $x_libraries
9997 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9999 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXExExt" >&5
10000 echo $ECHO_N "checking for XScreenSaverRegister in -lXExExt... $ECHO_C" >&6
10001 if test "${ac_cv_lib_XExExt_XScreenSaverRegister+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10004 ac_check_lib_save_LIBS=$LIBS
10005 LIBS="-lXExExt -lX11 -lXext -lm $LIBS"
10006 cat >conftest.$ac_ext <<_ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10013 /* Override any gcc2 internal prototype to avoid an error. */
10017 /* We use char because int might match the return type of a gcc2
10018 builtin and then its argument prototype would still apply. */
10019 char XScreenSaverRegister ();
10023 XScreenSaverRegister ();
10028 rm -f conftest.$ac_objext conftest$ac_exeext
10029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10030 (eval $ac_link) 2>conftest.er1
10032 grep -v '^ *+' conftest.er1 >conftest.err
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } &&
10037 { ac_try='test -z "$ac_c_werror_flag"
10038 || test ! -s conftest.err'
10039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040 (eval $ac_try) 2>&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; } &&
10044 { ac_try='test -s conftest$ac_exeext'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; }; then
10050 ac_cv_lib_XExExt_XScreenSaverRegister=yes
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 ac_cv_lib_XExExt_XScreenSaverRegister=no
10057 rm -f conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
10059 LIBS=$ac_check_lib_save_LIBS
10061 echo "$as_me:$LINENO: result: $ac_cv_lib_XExExt_XScreenSaverRegister" >&5
10062 echo "${ECHO_T}$ac_cv_lib_XExExt_XScreenSaverRegister" >&6
10063 if test $ac_cv_lib_XExExt_XScreenSaverRegister = yes; then
10064 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXExExt"
10069 CPPFLAGS="$ac_save_CPPFLAGS"
10070 LDFLAGS="$ac_save_LDFLAGS"
10071 # LIBS="$ac_save_LIBS"
10075 if test "$have_mit" = no; then
10076 # Double fuck! Looks like some versions of XFree86 (whichever version
10077 # it is that comes with RedHat Linux 2.0 -- I can't find a version
10078 # number) put this garbage in Xss instead of Xext. Thank you master,
10079 # may I have another.
10081 ac_save_CPPFLAGS="$CPPFLAGS"
10082 ac_save_LDFLAGS="$LDFLAGS"
10083 # ac_save_LIBS="$LIBS"
10085 if test \! -z "$includedir" ; then
10086 CPPFLAGS="$CPPFLAGS -I$includedir"
10088 # note: $X_CFLAGS includes $x_includes
10089 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10091 if test \! -z "$libdir" ; then
10092 LDFLAGS="$LDFLAGS -L$libdir"
10094 # note: $X_LIBS includes $x_libraries
10095 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10097 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXss" >&5
10098 echo $ECHO_N "checking for XScreenSaverRegister in -lXss... $ECHO_C" >&6
10099 if test "${ac_cv_lib_Xss_XScreenSaverRegister+set}" = set; then
10100 echo $ECHO_N "(cached) $ECHO_C" >&6
10102 ac_check_lib_save_LIBS=$LIBS
10103 LIBS="-lXss -lX11 -lXext -lm $LIBS"
10104 cat >conftest.$ac_ext <<_ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10111 /* Override any gcc2 internal prototype to avoid an error. */
10115 /* We use char because int might match the return type of a gcc2
10116 builtin and then its argument prototype would still apply. */
10117 char XScreenSaverRegister ();
10121 XScreenSaverRegister ();
10126 rm -f conftest.$ac_objext conftest$ac_exeext
10127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10128 (eval $ac_link) 2>conftest.er1
10130 grep -v '^ *+' conftest.er1 >conftest.err
10132 cat conftest.err >&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } &&
10135 { ac_try='test -z "$ac_c_werror_flag"
10136 || test ! -s conftest.err'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; } &&
10142 { ac_try='test -s conftest$ac_exeext'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; }; then
10148 ac_cv_lib_Xss_XScreenSaverRegister=yes
10150 echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10153 ac_cv_lib_Xss_XScreenSaverRegister=no
10155 rm -f conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
10157 LIBS=$ac_check_lib_save_LIBS
10159 echo "$as_me:$LINENO: result: $ac_cv_lib_Xss_XScreenSaverRegister" >&5
10160 echo "${ECHO_T}$ac_cv_lib_Xss_XScreenSaverRegister" >&6
10161 if test $ac_cv_lib_Xss_XScreenSaverRegister = yes; then
10162 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXss"
10167 CPPFLAGS="$ac_save_CPPFLAGS"
10168 LDFLAGS="$ac_save_LDFLAGS"
10169 # LIBS="$ac_save_LIBS"
10173 if test "$have_mit" = yes; then
10174 cat >>confdefs.h <<\_ACEOF
10175 #define HAVE_MIT_SAVER_EXTENSION 1
10182 elif test "$with_mit" != no; then
10183 echo "error: must be yes or no: --with-mit-ext=$with_mit"
10188 ###############################################################################
10190 # Check for the XIDLE server extension.
10192 ###############################################################################
10195 with_xidle_req=unspecified
10197 # Check whether --with-xidle-ext or --without-xidle-ext was given.
10198 if test "${with_xidle_ext+set}" = set; then
10199 withval="$with_xidle_ext"
10200 with_xidle="$withval"; with_xidle_req="$withval"
10206 case "$with_xidle" in
10211 echo "$as_me:$LINENO: checking for XIDLE headers" >&5
10212 echo $ECHO_N "checking for XIDLE headers... $ECHO_C" >&6
10213 d=$with_xidle/include
10214 if test -d $d; then
10215 X_CFLAGS="-I$d $X_CFLAGS"
10216 echo "$as_me:$LINENO: result: $d" >&5
10217 echo "${ECHO_T}$d" >&6
10219 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10220 echo "${ECHO_T}not found ($d: no such directory)" >&6
10223 echo "$as_me:$LINENO: checking for XIDLE libs" >&5
10224 echo $ECHO_N "checking for XIDLE libs... $ECHO_C" >&6
10226 if test -d $d; then
10227 X_LIBS="-L$d $X_LIBS"
10228 echo "$as_me:$LINENO: result: $d" >&5
10229 echo "${ECHO_T}$d" >&6
10231 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10232 echo "${ECHO_T}not found ($d: no such directory)" >&6
10235 # replace the directory string with "yes".
10236 with_xidle_req="yes"
10237 with_xidle=$with_xidle_req
10242 echo "error: argument to --with-xidle-ext must be \"yes\", \"no\", or a directory."
10243 echo " If it is a directory, then \`DIR/include' will be added to"
10244 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10250 if test "$with_xidle" = yes; then
10252 ac_save_CPPFLAGS="$CPPFLAGS"
10253 if test \! -z "$includedir" ; then
10254 CPPFLAGS="$CPPFLAGS -I$includedir"
10256 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10257 echo "$as_me:$LINENO: checking for X11/extensions/xidle.h" >&5
10258 echo $ECHO_N "checking for X11/extensions/xidle.h... $ECHO_C" >&6
10259 if test "${ac_cv_header_X11_extensions_xidle_h+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 cat >conftest.$ac_ext <<_ACEOF
10265 cat confdefs.h >>conftest.$ac_ext
10266 cat >>conftest.$ac_ext <<_ACEOF
10267 /* end confdefs.h. */
10268 #include <X11/Xlib.h>
10270 #include <X11/extensions/xidle.h>
10272 rm -f conftest.$ac_objext
10273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10274 (eval $ac_compile) 2>conftest.er1
10276 grep -v '^ *+' conftest.er1 >conftest.err
10278 cat conftest.err >&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } &&
10281 { ac_try='test -z "$ac_c_werror_flag"
10282 || test ! -s conftest.err'
10283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10284 (eval $ac_try) 2>&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }; } &&
10288 { ac_try='test -s conftest.$ac_objext'
10289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10290 (eval $ac_try) 2>&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); }; }; then
10294 ac_cv_header_X11_extensions_xidle_h=yes
10296 echo "$as_me: failed program was:" >&5
10297 sed 's/^/| /' conftest.$ac_ext >&5
10299 ac_cv_header_X11_extensions_xidle_h=no
10301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10303 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xidle_h" >&5
10304 echo "${ECHO_T}$ac_cv_header_X11_extensions_xidle_h" >&6
10305 if test $ac_cv_header_X11_extensions_xidle_h = yes; then
10307 cat >>confdefs.h <<\_ACEOF
10308 #define HAVE_XIDLE_EXTENSION 1
10314 CPPFLAGS="$ac_save_CPPFLAGS"
10315 elif test "$with_xidle" != no; then
10316 echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
10321 ###############################################################################
10323 # Check for the SGI-VIDEO-CONTROL server extension.
10325 ###############################################################################
10328 with_sgivc_req=unspecified
10330 # Check whether --with-sgivc-ext or --without-sgivc-ext was given.
10331 if test "${with_sgivc_ext+set}" = set; then
10332 withval="$with_sgivc_ext"
10333 with_sgivc="$withval"; with_sgivc_req="$withval"
10339 case "$with_sgivc" in
10344 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL headers" >&5
10345 echo $ECHO_N "checking for SGI-VIDEO-CONTROL headers... $ECHO_C" >&6
10346 d=$with_sgivc/include
10347 if test -d $d; then
10348 X_CFLAGS="-I$d $X_CFLAGS"
10349 echo "$as_me:$LINENO: result: $d" >&5
10350 echo "${ECHO_T}$d" >&6
10352 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10353 echo "${ECHO_T}not found ($d: no such directory)" >&6
10356 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL libs" >&5
10357 echo $ECHO_N "checking for SGI-VIDEO-CONTROL libs... $ECHO_C" >&6
10359 if test -d $d; then
10360 X_LIBS="-L$d $X_LIBS"
10361 echo "$as_me:$LINENO: result: $d" >&5
10362 echo "${ECHO_T}$d" >&6
10364 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10365 echo "${ECHO_T}not found ($d: no such directory)" >&6
10368 # replace the directory string with "yes".
10369 with_sgivc_req="yes"
10370 with_sgivc=$with_sgivc_req
10375 echo "error: argument to --with-sgivc-ext must be \"yes\", \"no\", or a directory."
10376 echo " If it is a directory, then \`DIR/include' will be added to"
10377 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10383 if test "$with_sgivc" = yes; then
10385 # first check for XSGIvc.h
10387 ac_save_CPPFLAGS="$CPPFLAGS"
10388 if test \! -z "$includedir" ; then
10389 CPPFLAGS="$CPPFLAGS -I$includedir"
10391 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10392 echo "$as_me:$LINENO: checking for X11/extensions/XSGIvc.h" >&5
10393 echo $ECHO_N "checking for X11/extensions/XSGIvc.h... $ECHO_C" >&6
10394 if test "${ac_cv_header_X11_extensions_XSGIvc_h+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
10397 cat >conftest.$ac_ext <<_ACEOF
10400 cat confdefs.h >>conftest.$ac_ext
10401 cat >>conftest.$ac_ext <<_ACEOF
10402 /* end confdefs.h. */
10403 #include <X11/Xlib.h>
10405 #include <X11/extensions/XSGIvc.h>
10407 rm -f conftest.$ac_objext
10408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10409 (eval $ac_compile) 2>conftest.er1
10411 grep -v '^ *+' conftest.er1 >conftest.err
10413 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } &&
10416 { ac_try='test -z "$ac_c_werror_flag"
10417 || test ! -s conftest.err'
10418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; } &&
10423 { ac_try='test -s conftest.$ac_objext'
10424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425 (eval $ac_try) 2>&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; }; then
10429 ac_cv_header_X11_extensions_XSGIvc_h=yes
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10434 ac_cv_header_X11_extensions_XSGIvc_h=no
10436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10438 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XSGIvc_h" >&5
10439 echo "${ECHO_T}$ac_cv_header_X11_extensions_XSGIvc_h" >&6
10440 if test $ac_cv_header_X11_extensions_XSGIvc_h = yes; then
10445 CPPFLAGS="$ac_save_CPPFLAGS"
10447 # if that succeeded, then check for the -lXsgivc
10448 if test "$have_sgivc" = yes; then
10451 ac_save_CPPFLAGS="$CPPFLAGS"
10452 ac_save_LDFLAGS="$LDFLAGS"
10453 # ac_save_LIBS="$LIBS"
10455 if test \! -z "$includedir" ; then
10456 CPPFLAGS="$CPPFLAGS -I$includedir"
10458 # note: $X_CFLAGS includes $x_includes
10459 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10461 if test \! -z "$libdir" ; then
10462 LDFLAGS="$LDFLAGS -L$libdir"
10464 # note: $X_LIBS includes $x_libraries
10465 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10467 echo "$as_me:$LINENO: checking for XSGIvcQueryGammaMap in -lXsgivc" >&5
10468 echo $ECHO_N "checking for XSGIvcQueryGammaMap in -lXsgivc... $ECHO_C" >&6
10469 if test "${ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 ac_check_lib_save_LIBS=$LIBS
10473 LIBS="-lXsgivc -lXext -lX11 $LIBS"
10474 cat >conftest.$ac_ext <<_ACEOF
10477 cat confdefs.h >>conftest.$ac_ext
10478 cat >>conftest.$ac_ext <<_ACEOF
10479 /* end confdefs.h. */
10481 /* Override any gcc2 internal prototype to avoid an error. */
10485 /* We use char because int might match the return type of a gcc2
10486 builtin and then its argument prototype would still apply. */
10487 char XSGIvcQueryGammaMap ();
10491 XSGIvcQueryGammaMap ();
10496 rm -f conftest.$ac_objext conftest$ac_exeext
10497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10498 (eval $ac_link) 2>conftest.er1
10500 grep -v '^ *+' conftest.er1 >conftest.err
10502 cat conftest.err >&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } &&
10505 { ac_try='test -z "$ac_c_werror_flag"
10506 || test ! -s conftest.err'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; } &&
10512 { ac_try='test -s conftest$ac_exeext'
10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514 (eval $ac_try) 2>&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; }; then
10518 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=yes
10520 echo "$as_me: failed program was:" >&5
10521 sed 's/^/| /' conftest.$ac_ext >&5
10523 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=no
10525 rm -f conftest.err conftest.$ac_objext \
10526 conftest$ac_exeext conftest.$ac_ext
10527 LIBS=$ac_check_lib_save_LIBS
10529 echo "$as_me:$LINENO: result: $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&5
10530 echo "${ECHO_T}$ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&6
10531 if test $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap = yes; then
10532 have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"
10537 CPPFLAGS="$ac_save_CPPFLAGS"
10538 LDFLAGS="$ac_save_LDFLAGS"
10539 # LIBS="$ac_save_LIBS"
10543 # if that succeeded, then we've really got it.
10544 if test "$have_sgivc" = yes; then
10545 cat >>confdefs.h <<\_ACEOF
10546 #define HAVE_SGI_VC_EXTENSION 1
10551 elif test "$with_sgivc" != no; then
10552 echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
10557 ###############################################################################
10559 # Check for the DPMS server extension.
10561 ###############################################################################
10564 with_dpms_req=unspecified
10566 # Check whether --with-dpms-ext or --without-dpms-ext was given.
10567 if test "${with_dpms_ext+set}" = set; then
10568 withval="$with_dpms_ext"
10569 with_dpms="$withval"; with_dpms_req="$withval"
10575 case "$with_dpms" in
10580 echo "$as_me:$LINENO: checking for DPMS headers" >&5
10581 echo $ECHO_N "checking for DPMS headers... $ECHO_C" >&6
10582 d=$with_dpms/include
10583 if test -d $d; then
10584 X_CFLAGS="-I$d $X_CFLAGS"
10585 echo "$as_me:$LINENO: result: $d" >&5
10586 echo "${ECHO_T}$d" >&6
10588 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10589 echo "${ECHO_T}not found ($d: no such directory)" >&6
10592 echo "$as_me:$LINENO: checking for DPMS libs" >&5
10593 echo $ECHO_N "checking for DPMS libs... $ECHO_C" >&6
10595 if test -d $d; then
10596 X_LIBS="-L$d $X_LIBS"
10597 echo "$as_me:$LINENO: result: $d" >&5
10598 echo "${ECHO_T}$d" >&6
10600 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10601 echo "${ECHO_T}not found ($d: no such directory)" >&6
10604 # replace the directory string with "yes".
10605 with_dpms_req="yes"
10606 with_dpms=$with_dpms_req
10611 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
10612 echo " If it is a directory, then \`DIR/include' will be added to"
10613 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10619 if test "$with_dpms" = yes; then
10621 # first check for dpms.h
10623 ac_save_CPPFLAGS="$CPPFLAGS"
10624 if test \! -z "$includedir" ; then
10625 CPPFLAGS="$CPPFLAGS -I$includedir"
10627 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10628 echo "$as_me:$LINENO: checking for X11/extensions/dpms.h" >&5
10629 echo $ECHO_N "checking for X11/extensions/dpms.h... $ECHO_C" >&6
10630 if test "${ac_cv_header_X11_extensions_dpms_h+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10633 cat >conftest.$ac_ext <<_ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10639 #include <X11/Xlib.h>
10640 #include <X11/Xmd.h>
10642 #include <X11/extensions/dpms.h>
10644 rm -f conftest.$ac_objext
10645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10646 (eval $ac_compile) 2>conftest.er1
10648 grep -v '^ *+' conftest.er1 >conftest.err
10650 cat conftest.err >&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } &&
10653 { ac_try='test -z "$ac_c_werror_flag"
10654 || test ! -s conftest.err'
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; } &&
10660 { ac_try='test -s conftest.$ac_objext'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; }; then
10666 ac_cv_header_X11_extensions_dpms_h=yes
10668 echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10671 ac_cv_header_X11_extensions_dpms_h=no
10673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10675 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_dpms_h" >&5
10676 echo "${ECHO_T}$ac_cv_header_X11_extensions_dpms_h" >&6
10677 if test $ac_cv_header_X11_extensions_dpms_h = yes; then
10682 CPPFLAGS="$ac_save_CPPFLAGS"
10684 # if that succeeded, then check for the DPMS code in the libraries
10685 if test "$have_dpms" = yes; then
10687 # first look in -lXext (this is where it is with XFree86 4.0)
10690 ac_save_CPPFLAGS="$CPPFLAGS"
10691 ac_save_LDFLAGS="$LDFLAGS"
10692 # ac_save_LIBS="$LIBS"
10694 if test \! -z "$includedir" ; then
10695 CPPFLAGS="$CPPFLAGS -I$includedir"
10697 # note: $X_CFLAGS includes $x_includes
10698 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10700 if test \! -z "$libdir" ; then
10701 LDFLAGS="$LDFLAGS -L$libdir"
10703 # note: $X_LIBS includes $x_libraries
10704 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10706 echo "$as_me:$LINENO: checking for DPMSInfo in -lXext" >&5
10707 echo $ECHO_N "checking for DPMSInfo in -lXext... $ECHO_C" >&6
10708 if test "${ac_cv_lib_Xext_DPMSInfo+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10711 ac_check_lib_save_LIBS=$LIBS
10712 LIBS="-lXext -lXext -lX11 $LIBS"
10713 cat >conftest.$ac_ext <<_ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h. */
10720 /* Override any gcc2 internal prototype to avoid an error. */
10724 /* We use char because int might match the return type of a gcc2
10725 builtin and then its argument prototype would still apply. */
10735 rm -f conftest.$ac_objext conftest$ac_exeext
10736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10737 (eval $ac_link) 2>conftest.er1
10739 grep -v '^ *+' conftest.er1 >conftest.err
10741 cat conftest.err >&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } &&
10744 { ac_try='test -z "$ac_c_werror_flag"
10745 || test ! -s conftest.err'
10746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747 (eval $ac_try) 2>&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; } &&
10751 { ac_try='test -s conftest$ac_exeext'
10752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753 (eval $ac_try) 2>&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); }; }; then
10757 ac_cv_lib_Xext_DPMSInfo=yes
10759 echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10762 ac_cv_lib_Xext_DPMSInfo=no
10764 rm -f conftest.err conftest.$ac_objext \
10765 conftest$ac_exeext conftest.$ac_ext
10766 LIBS=$ac_check_lib_save_LIBS
10768 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_DPMSInfo" >&5
10769 echo "${ECHO_T}$ac_cv_lib_Xext_DPMSInfo" >&6
10770 if test $ac_cv_lib_Xext_DPMSInfo = yes; then
10776 CPPFLAGS="$ac_save_CPPFLAGS"
10777 LDFLAGS="$ac_save_LDFLAGS"
10778 # LIBS="$ac_save_LIBS"
10781 # if that failed, look in -lXdpms (this is where it was in XFree86 3.x)
10782 if test "$have_dpms" = no; then
10784 ac_save_CPPFLAGS="$CPPFLAGS"
10785 ac_save_LDFLAGS="$LDFLAGS"
10786 # ac_save_LIBS="$LIBS"
10788 if test \! -z "$includedir" ; then
10789 CPPFLAGS="$CPPFLAGS -I$includedir"
10791 # note: $X_CFLAGS includes $x_includes
10792 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10794 if test \! -z "$libdir" ; then
10795 LDFLAGS="$LDFLAGS -L$libdir"
10797 # note: $X_LIBS includes $x_libraries
10798 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10800 echo "$as_me:$LINENO: checking for DPMSInfo in -lXdpms" >&5
10801 echo $ECHO_N "checking for DPMSInfo in -lXdpms... $ECHO_C" >&6
10802 if test "${ac_cv_lib_Xdpms_DPMSInfo+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10805 ac_check_lib_save_LIBS=$LIBS
10806 LIBS="-lXdpms -lXext -lX11 $LIBS"
10807 cat >conftest.$ac_ext <<_ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10814 /* Override any gcc2 internal prototype to avoid an error. */
10818 /* We use char because int might match the return type of a gcc2
10819 builtin and then its argument prototype would still apply. */
10829 rm -f conftest.$ac_objext conftest$ac_exeext
10830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10831 (eval $ac_link) 2>conftest.er1
10833 grep -v '^ *+' conftest.er1 >conftest.err
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } &&
10838 { ac_try='test -z "$ac_c_werror_flag"
10839 || test ! -s conftest.err'
10840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841 (eval $ac_try) 2>&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); }; } &&
10845 { ac_try='test -s conftest$ac_exeext'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; }; then
10851 ac_cv_lib_Xdpms_DPMSInfo=yes
10853 echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10856 ac_cv_lib_Xdpms_DPMSInfo=no
10858 rm -f conftest.err conftest.$ac_objext \
10859 conftest$ac_exeext conftest.$ac_ext
10860 LIBS=$ac_check_lib_save_LIBS
10862 echo "$as_me:$LINENO: result: $ac_cv_lib_Xdpms_DPMSInfo" >&5
10863 echo "${ECHO_T}$ac_cv_lib_Xdpms_DPMSInfo" >&6
10864 if test $ac_cv_lib_Xdpms_DPMSInfo = yes; then
10865 have_dpms=yes; XDPMS_LIBS="-lXdpms"
10870 CPPFLAGS="$ac_save_CPPFLAGS"
10871 LDFLAGS="$ac_save_LDFLAGS"
10872 # LIBS="$ac_save_LIBS"
10878 # if that succeeded, then we've really got it.
10879 if test "$have_dpms" = yes; then
10880 cat >>confdefs.h <<\_ACEOF
10881 #define HAVE_DPMS_EXTENSION 1
10886 elif test "$with_dpms" != no; then
10887 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
10892 ###############################################################################
10894 # Check for the XINERAMA server extension.
10896 ###############################################################################
10899 with_xinerama_req=unspecified
10901 # Check whether --with-xinerama-ext or --without-xinerama-ext was given.
10902 if test "${with_xinerama_ext+set}" = set; then
10903 withval="$with_xinerama_ext"
10904 with_xinerama="$withval"; with_xinerama_req="$withval"
10910 case "$with_xinerama" in
10915 echo "$as_me:$LINENO: checking for XINERAMA headers" >&5
10916 echo $ECHO_N "checking for XINERAMA headers... $ECHO_C" >&6
10917 d=$with_xinerama/include
10918 if test -d $d; then
10919 X_CFLAGS="-I$d $X_CFLAGS"
10920 echo "$as_me:$LINENO: result: $d" >&5
10921 echo "${ECHO_T}$d" >&6
10923 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10924 echo "${ECHO_T}not found ($d: no such directory)" >&6
10927 echo "$as_me:$LINENO: checking for XINERAMA libs" >&5
10928 echo $ECHO_N "checking for XINERAMA libs... $ECHO_C" >&6
10929 d=$with_xinerama/lib
10930 if test -d $d; then
10931 X_LIBS="-L$d $X_LIBS"
10932 echo "$as_me:$LINENO: result: $d" >&5
10933 echo "${ECHO_T}$d" >&6
10935 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10936 echo "${ECHO_T}not found ($d: no such directory)" >&6
10939 # replace the directory string with "yes".
10940 with_xinerama_req="yes"
10941 with_xinerama=$with_xinerama_req
10946 echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
10947 echo " If it is a directory, then \`DIR/include' will be added to"
10948 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10954 if test "$with_xinerama" = yes; then
10956 # first check for Xinerama.h
10958 ac_save_CPPFLAGS="$CPPFLAGS"
10959 if test \! -z "$includedir" ; then
10960 CPPFLAGS="$CPPFLAGS -I$includedir"
10962 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10963 echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
10964 echo $ECHO_N "checking for X11/extensions/Xinerama.h... $ECHO_C" >&6
10965 if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10968 cat >conftest.$ac_ext <<_ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h. */
10974 #include <X11/Xlib.h>
10976 #include <X11/extensions/Xinerama.h>
10978 rm -f conftest.$ac_objext
10979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10980 (eval $ac_compile) 2>conftest.er1
10982 grep -v '^ *+' conftest.er1 >conftest.err
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } &&
10987 { ac_try='test -z "$ac_c_werror_flag"
10988 || test ! -s conftest.err'
10989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990 (eval $ac_try) 2>&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; } &&
10994 { ac_try='test -s conftest.$ac_objext'
10995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996 (eval $ac_try) 2>&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); }; }; then
11000 ac_cv_header_X11_extensions_Xinerama_h=yes
11002 echo "$as_me: failed program was:" >&5
11003 sed 's/^/| /' conftest.$ac_ext >&5
11005 ac_cv_header_X11_extensions_Xinerama_h=no
11007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11009 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
11010 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xinerama_h" >&6
11011 if test $ac_cv_header_X11_extensions_Xinerama_h = yes; then
11016 CPPFLAGS="$ac_save_CPPFLAGS"
11018 # if that succeeded, then check for the XINERAMA code in the libraries
11019 if test "$have_xinerama" = yes; then
11021 # first look in -lXext
11024 ac_save_CPPFLAGS="$CPPFLAGS"
11025 ac_save_LDFLAGS="$LDFLAGS"
11026 # ac_save_LIBS="$LIBS"
11028 if test \! -z "$includedir" ; then
11029 CPPFLAGS="$CPPFLAGS -I$includedir"
11031 # note: $X_CFLAGS includes $x_includes
11032 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11034 if test \! -z "$libdir" ; then
11035 LDFLAGS="$LDFLAGS -L$libdir"
11037 # note: $X_LIBS includes $x_libraries
11038 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11040 echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXext" >&5
11041 echo $ECHO_N "checking for XineramaQueryScreens in -lXext... $ECHO_C" >&6
11042 if test "${ac_cv_lib_Xext_XineramaQueryScreens+set}" = set; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11045 ac_check_lib_save_LIBS=$LIBS
11046 LIBS="-lXext -lXext -lX11 $LIBS"
11047 cat >conftest.$ac_ext <<_ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h. */
11054 /* Override any gcc2 internal prototype to avoid an error. */
11058 /* We use char because int might match the return type of a gcc2
11059 builtin and then its argument prototype would still apply. */
11060 char XineramaQueryScreens ();
11064 XineramaQueryScreens ();
11069 rm -f conftest.$ac_objext conftest$ac_exeext
11070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11071 (eval $ac_link) 2>conftest.er1
11073 grep -v '^ *+' conftest.er1 >conftest.err
11075 cat conftest.err >&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } &&
11078 { ac_try='test -z "$ac_c_werror_flag"
11079 || test ! -s conftest.err'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; } &&
11085 { ac_try='test -s conftest$ac_exeext'
11086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11087 (eval $ac_try) 2>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; }; then
11091 ac_cv_lib_Xext_XineramaQueryScreens=yes
11093 echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11096 ac_cv_lib_Xext_XineramaQueryScreens=no
11098 rm -f conftest.err conftest.$ac_objext \
11099 conftest$ac_exeext conftest.$ac_ext
11100 LIBS=$ac_check_lib_save_LIBS
11102 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XineramaQueryScreens" >&5
11103 echo "${ECHO_T}$ac_cv_lib_Xext_XineramaQueryScreens" >&6
11104 if test $ac_cv_lib_Xext_XineramaQueryScreens = yes; then
11110 CPPFLAGS="$ac_save_CPPFLAGS"
11111 LDFLAGS="$ac_save_LDFLAGS"
11112 # LIBS="$ac_save_LIBS"
11115 # if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
11116 if test "$have_xinerama" = no; then
11118 ac_save_CPPFLAGS="$CPPFLAGS"
11119 ac_save_LDFLAGS="$LDFLAGS"
11120 # ac_save_LIBS="$LIBS"
11122 if test \! -z "$includedir" ; then
11123 CPPFLAGS="$CPPFLAGS -I$includedir"
11125 # note: $X_CFLAGS includes $x_includes
11126 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11128 if test \! -z "$libdir" ; then
11129 LDFLAGS="$LDFLAGS -L$libdir"
11131 # note: $X_LIBS includes $x_libraries
11132 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11134 echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
11135 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6
11136 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 ac_check_lib_save_LIBS=$LIBS
11140 LIBS="-lXinerama -lXext -lX11 $LIBS"
11141 cat >conftest.$ac_ext <<_ACEOF
11144 cat confdefs.h >>conftest.$ac_ext
11145 cat >>conftest.$ac_ext <<_ACEOF
11146 /* end confdefs.h. */
11148 /* Override any gcc2 internal prototype to avoid an error. */
11152 /* We use char because int might match the return type of a gcc2
11153 builtin and then its argument prototype would still apply. */
11154 char XineramaQueryScreens ();
11158 XineramaQueryScreens ();
11163 rm -f conftest.$ac_objext conftest$ac_exeext
11164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11165 (eval $ac_link) 2>conftest.er1
11167 grep -v '^ *+' conftest.er1 >conftest.err
11169 cat conftest.err >&5
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); } &&
11172 { ac_try='test -z "$ac_c_werror_flag"
11173 || test ! -s conftest.err'
11174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175 (eval $ac_try) 2>&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; } &&
11179 { ac_try='test -s conftest$ac_exeext'
11180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181 (eval $ac_try) 2>&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; }; then
11185 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
11187 echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11190 ac_cv_lib_Xinerama_XineramaQueryScreens=no
11192 rm -f conftest.err conftest.$ac_objext \
11193 conftest$ac_exeext conftest.$ac_ext
11194 LIBS=$ac_check_lib_save_LIBS
11196 echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
11197 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6
11198 if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
11199 have_xinerama=yes; SAVER_LIBS="$SAVER_LIBS -lXinerama"
11204 CPPFLAGS="$ac_save_CPPFLAGS"
11205 LDFLAGS="$ac_save_LDFLAGS"
11206 # LIBS="$ac_save_LIBS"
11211 # if that succeeded, then we've really got it.
11212 if test "$have_xinerama" = yes; then
11213 cat >>confdefs.h <<\_ACEOF
11214 #define HAVE_XINERAMA 1
11219 elif test "$with_xinerama" != no; then
11220 echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
11225 ###############################################################################
11227 # Check for the XF86VMODE server extension (for virtual screens.)
11229 ###############################################################################
11232 with_xf86vmode_req=unspecified
11234 # Check whether --with-xf86vmode-ext or --without-xf86vmode-ext was given.
11235 if test "${with_xf86vmode_ext+set}" = set; then
11236 withval="$with_xf86vmode_ext"
11237 with_xf86vmode="$withval"; with_xf86vmode_req="$withval"
11243 case "$with_xf86vmode" in
11248 echo "$as_me:$LINENO: checking for xf86vmode headers" >&5
11249 echo $ECHO_N "checking for xf86vmode headers... $ECHO_C" >&6
11250 d=$with_xf86vmode/include
11251 if test -d $d; then
11252 X_CFLAGS="-I$d $X_CFLAGS"
11253 echo "$as_me:$LINENO: result: $d" >&5
11254 echo "${ECHO_T}$d" >&6
11256 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11257 echo "${ECHO_T}not found ($d: no such directory)" >&6
11260 echo "$as_me:$LINENO: checking for xf86vmode libs" >&5
11261 echo $ECHO_N "checking for xf86vmode libs... $ECHO_C" >&6
11262 d=$with_xf86vmode/lib
11263 if test -d $d; then
11264 X_LIBS="-L$d $X_LIBS"
11265 echo "$as_me:$LINENO: result: $d" >&5
11266 echo "${ECHO_T}$d" >&6
11268 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11269 echo "${ECHO_T}not found ($d: no such directory)" >&6
11272 # replace the directory string with "yes".
11273 with_xf86vmode_req="yes"
11274 with_xf86vmode=$with_xf86vmode_req
11279 echo "error: argument to --with-xf86vmode-ext must be \"yes\", \"no\", or a directory."
11280 echo " If it is a directory, then \`DIR/include' will be added to"
11281 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11289 if test "$with_xf86vmode" = yes; then
11291 # first check for xf86vmode.h
11293 ac_save_CPPFLAGS="$CPPFLAGS"
11294 if test \! -z "$includedir" ; then
11295 CPPFLAGS="$CPPFLAGS -I$includedir"
11297 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11298 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
11299 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
11300 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11303 cat >conftest.$ac_ext <<_ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h. */
11309 #include <X11/Xlib.h>
11311 #include <X11/extensions/xf86vmode.h>
11313 rm -f conftest.$ac_objext
11314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11315 (eval $ac_compile) 2>conftest.er1
11317 grep -v '^ *+' conftest.er1 >conftest.err
11319 cat conftest.err >&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } &&
11322 { ac_try='test -z "$ac_c_werror_flag"
11323 || test ! -s conftest.err'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; } &&
11329 { ac_try='test -s conftest.$ac_objext'
11330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331 (eval $ac_try) 2>&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; }; then
11335 ac_cv_header_X11_extensions_xf86vmode_h=yes
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 ac_cv_header_X11_extensions_xf86vmode_h=no
11342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11344 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
11345 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
11346 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
11351 CPPFLAGS="$ac_save_CPPFLAGS"
11353 # if that succeeded, then check for the -lXxf86vm
11354 if test "$have_xf86vmode" = yes; then
11357 ac_save_CPPFLAGS="$CPPFLAGS"
11358 ac_save_LDFLAGS="$LDFLAGS"
11359 # ac_save_LIBS="$LIBS"
11361 if test \! -z "$includedir" ; then
11362 CPPFLAGS="$CPPFLAGS -I$includedir"
11364 # note: $X_CFLAGS includes $x_includes
11365 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11367 if test \! -z "$libdir" ; then
11368 LDFLAGS="$LDFLAGS -L$libdir"
11370 # note: $X_LIBS includes $x_libraries
11371 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11373 echo "$as_me:$LINENO: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
11374 echo $ECHO_N "checking for XF86VidModeGetViewPort in -lXxf86vm... $ECHO_C" >&6
11375 if test "${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+set}" = set; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11378 ac_check_lib_save_LIBS=$LIBS
11379 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11380 cat >conftest.$ac_ext <<_ACEOF
11383 cat confdefs.h >>conftest.$ac_ext
11384 cat >>conftest.$ac_ext <<_ACEOF
11385 /* end confdefs.h. */
11387 /* Override any gcc2 internal prototype to avoid an error. */
11391 /* We use char because int might match the return type of a gcc2
11392 builtin and then its argument prototype would still apply. */
11393 char XF86VidModeGetViewPort ();
11397 XF86VidModeGetViewPort ();
11402 rm -f conftest.$ac_objext conftest$ac_exeext
11403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11404 (eval $ac_link) 2>conftest.er1
11406 grep -v '^ *+' conftest.er1 >conftest.err
11408 cat conftest.err >&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } &&
11411 { ac_try='test -z "$ac_c_werror_flag"
11412 || test ! -s conftest.err'
11413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; } &&
11418 { ac_try='test -s conftest$ac_exeext'
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; }; then
11424 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
11426 echo "$as_me: failed program was:" >&5
11427 sed 's/^/| /' conftest.$ac_ext >&5
11429 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=no
11431 rm -f conftest.err conftest.$ac_objext \
11432 conftest$ac_exeext conftest.$ac_ext
11433 LIBS=$ac_check_lib_save_LIBS
11435 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&5
11436 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6
11437 if test $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort = yes; then
11438 have_xf86vmode=yes;
11439 VIDMODE_LIBS="-lXxf86vm";
11440 SAVER_LIBS="$SAVER_LIBS $VIDMODE_LIBS"
11445 CPPFLAGS="$ac_save_CPPFLAGS"
11446 LDFLAGS="$ac_save_LDFLAGS"
11447 # LIBS="$ac_save_LIBS"
11451 # if that succeeded, then we've really got it.
11452 if test "$have_xf86vmode" = yes; then
11453 cat >>confdefs.h <<\_ACEOF
11454 #define HAVE_XF86VMODE 1
11459 elif test "$with_xf86vmode" != no; then
11460 echo "error: must be yes or no: --with-xf86vmode-ext=$with_xf86vmode"
11465 ###############################################################################
11467 # Check for the XF86VMODE server extension (for gamma fading.)
11469 ###############################################################################
11472 have_xf86gamma_ramp=no
11473 with_xf86gamma_req=unspecified
11475 # Check whether --with-xf86gamma-ext or --without-xf86gamma-ext was given.
11476 if test "${with_xf86gamma_ext+set}" = set; then
11477 withval="$with_xf86gamma_ext"
11478 with_xf86gamma="$withval"; with_xf86gamma_req="$withval"
11484 case "$with_xf86gamma" in
11489 echo "$as_me:$LINENO: checking for xf86gamma headers" >&5
11490 echo $ECHO_N "checking for xf86gamma headers... $ECHO_C" >&6
11491 d=$with_xf86gamma/include
11492 if test -d $d; then
11493 X_CFLAGS="-I$d $X_CFLAGS"
11494 echo "$as_me:$LINENO: result: $d" >&5
11495 echo "${ECHO_T}$d" >&6
11497 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11498 echo "${ECHO_T}not found ($d: no such directory)" >&6
11501 echo "$as_me:$LINENO: checking for xf86gamma libs" >&5
11502 echo $ECHO_N "checking for xf86gamma libs... $ECHO_C" >&6
11503 d=$with_xf86gamma/lib
11504 if test -d $d; then
11505 X_LIBS="-L$d $X_LIBS"
11506 echo "$as_me:$LINENO: result: $d" >&5
11507 echo "${ECHO_T}$d" >&6
11509 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11510 echo "${ECHO_T}not found ($d: no such directory)" >&6
11513 # replace the directory string with "yes".
11514 with_xf86gamma_req="yes"
11515 with_xf86gamma=$with_xf86gamma_req
11520 echo "error: argument to --with-xf86gamma-ext must be \"yes\", \"no\", or a directory."
11521 echo " If it is a directory, then \`DIR/include' will be added to"
11522 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11528 if test "$with_xf86gamma" = yes; then
11530 # first check for xf86vmode.h, if we haven't already
11531 if test "$have_xf86vmode" = yes; then
11535 ac_save_CPPFLAGS="$CPPFLAGS"
11536 if test \! -z "$includedir" ; then
11537 CPPFLAGS="$CPPFLAGS -I$includedir"
11539 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11540 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
11541 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
11542 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
11543 echo $ECHO_N "(cached) $ECHO_C" >&6
11545 cat >conftest.$ac_ext <<_ACEOF
11548 cat confdefs.h >>conftest.$ac_ext
11549 cat >>conftest.$ac_ext <<_ACEOF
11550 /* end confdefs.h. */
11551 #include <X11/Xlib.h>
11553 #include <X11/extensions/xf86vmode.h>
11555 rm -f conftest.$ac_objext
11556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11557 (eval $ac_compile) 2>conftest.er1
11559 grep -v '^ *+' conftest.er1 >conftest.err
11561 cat conftest.err >&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } &&
11564 { ac_try='test -z "$ac_c_werror_flag"
11565 || test ! -s conftest.err'
11566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; } &&
11571 { ac_try='test -s conftest.$ac_objext'
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; }; then
11577 ac_cv_header_X11_extensions_xf86vmode_h=yes
11579 echo "$as_me: failed program was:" >&5
11580 sed 's/^/| /' conftest.$ac_ext >&5
11582 ac_cv_header_X11_extensions_xf86vmode_h=no
11584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11586 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
11587 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
11588 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
11593 CPPFLAGS="$ac_save_CPPFLAGS"
11596 # if that succeeded, then check for the -lXxf86vm
11597 if test "$have_xf86gamma" = yes; then
11600 ac_save_CPPFLAGS="$CPPFLAGS"
11601 ac_save_LDFLAGS="$LDFLAGS"
11602 # ac_save_LIBS="$LIBS"
11604 if test \! -z "$includedir" ; then
11605 CPPFLAGS="$CPPFLAGS -I$includedir"
11607 # note: $X_CFLAGS includes $x_includes
11608 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11610 if test \! -z "$libdir" ; then
11611 LDFLAGS="$LDFLAGS -L$libdir"
11613 # note: $X_LIBS includes $x_libraries
11614 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11616 echo "$as_me:$LINENO: checking for XF86VidModeSetGamma in -lXxf86vm" >&5
11617 echo $ECHO_N "checking for XF86VidModeSetGamma in -lXxf86vm... $ECHO_C" >&6
11618 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGamma+set}" = set; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11621 ac_check_lib_save_LIBS=$LIBS
11622 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11623 cat >conftest.$ac_ext <<_ACEOF
11626 cat confdefs.h >>conftest.$ac_ext
11627 cat >>conftest.$ac_ext <<_ACEOF
11628 /* end confdefs.h. */
11630 /* Override any gcc2 internal prototype to avoid an error. */
11634 /* We use char because int might match the return type of a gcc2
11635 builtin and then its argument prototype would still apply. */
11636 char XF86VidModeSetGamma ();
11640 XF86VidModeSetGamma ();
11645 rm -f conftest.$ac_objext conftest$ac_exeext
11646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11647 (eval $ac_link) 2>conftest.er1
11649 grep -v '^ *+' conftest.er1 >conftest.err
11651 cat conftest.err >&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } &&
11654 { ac_try='test -z "$ac_c_werror_flag"
11655 || test ! -s conftest.err'
11656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; } &&
11661 { ac_try='test -s conftest$ac_exeext'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; }; then
11667 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=yes
11669 echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.$ac_ext >&5
11672 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=no
11674 rm -f conftest.err conftest.$ac_objext \
11675 conftest$ac_exeext conftest.$ac_ext
11676 LIBS=$ac_check_lib_save_LIBS
11678 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&5
11679 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&6
11680 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma = yes; then
11686 CPPFLAGS="$ac_save_CPPFLAGS"
11687 LDFLAGS="$ac_save_LDFLAGS"
11688 # LIBS="$ac_save_LIBS"
11692 # check for the Ramp versions of the functions too.
11693 if test "$have_xf86gamma" = yes; then
11694 have_xf86gamma_ramp=no
11696 ac_save_CPPFLAGS="$CPPFLAGS"
11697 ac_save_LDFLAGS="$LDFLAGS"
11698 # ac_save_LIBS="$LIBS"
11700 if test \! -z "$includedir" ; then
11701 CPPFLAGS="$CPPFLAGS -I$includedir"
11703 # note: $X_CFLAGS includes $x_includes
11704 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11706 if test \! -z "$libdir" ; then
11707 LDFLAGS="$LDFLAGS -L$libdir"
11709 # note: $X_LIBS includes $x_libraries
11710 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11712 echo "$as_me:$LINENO: checking for XF86VidModeSetGammaRamp in -lXxf86vm" >&5
11713 echo $ECHO_N "checking for XF86VidModeSetGammaRamp in -lXxf86vm... $ECHO_C" >&6
11714 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp+set}" = set; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11717 ac_check_lib_save_LIBS=$LIBS
11718 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11719 cat >conftest.$ac_ext <<_ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h. */
11726 /* Override any gcc2 internal prototype to avoid an error. */
11730 /* We use char because int might match the return type of a gcc2
11731 builtin and then its argument prototype would still apply. */
11732 char XF86VidModeSetGammaRamp ();
11736 XF86VidModeSetGammaRamp ();
11741 rm -f conftest.$ac_objext conftest$ac_exeext
11742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11743 (eval $ac_link) 2>conftest.er1
11745 grep -v '^ *+' conftest.er1 >conftest.err
11747 cat conftest.err >&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } &&
11750 { ac_try='test -z "$ac_c_werror_flag"
11751 || test ! -s conftest.err'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; } &&
11757 { ac_try='test -s conftest$ac_exeext'
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; }; then
11763 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=yes
11765 echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11768 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=no
11770 rm -f conftest.err conftest.$ac_objext \
11771 conftest$ac_exeext conftest.$ac_ext
11772 LIBS=$ac_check_lib_save_LIBS
11774 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&5
11775 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&6
11776 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp = yes; then
11777 have_xf86gamma_ramp=yes
11782 CPPFLAGS="$ac_save_CPPFLAGS"
11783 LDFLAGS="$ac_save_LDFLAGS"
11784 # LIBS="$ac_save_LIBS"
11788 # if those tests succeeded, then we've really got the functions.
11789 if test "$have_xf86gamma" = yes; then
11790 cat >>confdefs.h <<\_ACEOF
11791 #define HAVE_XF86VMODE_GAMMA 1
11796 if test "$have_xf86gamma_ramp" = yes; then
11797 cat >>confdefs.h <<\_ACEOF
11798 #define HAVE_XF86VMODE_GAMMA_RAMP 1
11803 # pull in the lib, if we haven't already
11804 if test "$have_xf86gamma" = yes -a "$have_xf86vmode" = no; then
11805 SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
11808 elif test "$with_xf86gamma" != no; then
11809 echo "error: must be yes or no: --with-xf86gamma-ext=$with_xf86vmode"
11814 ###############################################################################
11816 # Check for the RANDR (Resize and Rotate) server extension.
11818 # We need this to detect when the resolution of the desktop
11819 # has changed out from under us (this is a newer, different
11820 # mechanism than the XF86VMODE virtual viewports.)
11822 ###############################################################################
11825 with_randr_req=unspecified
11827 # Check whether --with-randr-ext or --without-randr-ext was given.
11828 if test "${with_randr_ext+set}" = set; then
11829 withval="$with_randr_ext"
11830 with_randr="$withval"; with_randr_req="$withval"
11836 case "$with_randr" in
11841 echo "$as_me:$LINENO: checking for RANDR headers" >&5
11842 echo $ECHO_N "checking for RANDR headers... $ECHO_C" >&6
11843 d=$with_randr/include
11844 if test -d $d; then
11845 X_CFLAGS="-I$d $X_CFLAGS"
11846 echo "$as_me:$LINENO: result: $d" >&5
11847 echo "${ECHO_T}$d" >&6
11849 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11850 echo "${ECHO_T}not found ($d: no such directory)" >&6
11853 echo "$as_me:$LINENO: checking for RANDR libs" >&5
11854 echo $ECHO_N "checking for RANDR libs... $ECHO_C" >&6
11856 if test -d $d; then
11857 X_LIBS="-L$d $X_LIBS"
11858 echo "$as_me:$LINENO: result: $d" >&5
11859 echo "${ECHO_T}$d" >&6
11861 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11862 echo "${ECHO_T}not found ($d: no such directory)" >&6
11865 # replace the directory string with "yes".
11866 with_randr_req="yes"
11867 with_randr=$with_randr_req
11872 echo "error: argument to --with-randr-ext must be \"yes\", \"no\", or a directory."
11873 echo " If it is a directory, then \`DIR/include' will be added to"
11874 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11880 if test "$with_randr" = yes; then
11882 # first check for Randr.h
11884 ac_save_CPPFLAGS="$CPPFLAGS"
11885 if test \! -z "$includedir" ; then
11886 CPPFLAGS="$CPPFLAGS -I$includedir"
11888 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11889 echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
11890 echo $ECHO_N "checking for X11/extensions/Xrandr.h... $ECHO_C" >&6
11891 if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 cat >conftest.$ac_ext <<_ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h. */
11900 #include <X11/Xlib.h>
11902 #include <X11/extensions/Xrandr.h>
11904 rm -f conftest.$ac_objext
11905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11906 (eval $ac_compile) 2>conftest.er1
11908 grep -v '^ *+' conftest.er1 >conftest.err
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try='test -z "$ac_c_werror_flag"
11914 || test ! -s conftest.err'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; } &&
11920 { ac_try='test -s conftest.$ac_objext'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; }; then
11926 ac_cv_header_X11_extensions_Xrandr_h=yes
11928 echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11931 ac_cv_header_X11_extensions_Xrandr_h=no
11933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11935 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
11936 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrandr_h" >&6
11937 if test $ac_cv_header_X11_extensions_Xrandr_h = yes; then
11942 CPPFLAGS="$ac_save_CPPFLAGS"
11944 # if that succeeded, then check for the XRR code in the libraries
11945 if test "$have_randr" = yes; then
11947 # RANDR probably needs -lXrender
11950 ac_save_CPPFLAGS="$CPPFLAGS"
11951 ac_save_LDFLAGS="$LDFLAGS"
11952 # ac_save_LIBS="$LIBS"
11954 if test \! -z "$includedir" ; then
11955 CPPFLAGS="$CPPFLAGS -I$includedir"
11957 # note: $X_CFLAGS includes $x_includes
11958 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11960 if test \! -z "$libdir" ; then
11961 LDFLAGS="$LDFLAGS -L$libdir"
11963 # note: $X_LIBS includes $x_libraries
11964 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11966 echo "$as_me:$LINENO: checking for XRenderSetSubpixelOrder in -lXrender" >&5
11967 echo $ECHO_N "checking for XRenderSetSubpixelOrder in -lXrender... $ECHO_C" >&6
11968 if test "${ac_cv_lib_Xrender_XRenderSetSubpixelOrder+set}" = set; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
11971 ac_check_lib_save_LIBS=$LIBS
11972 LIBS="-lXrender -lXext -lX11 $LIBS"
11973 cat >conftest.$ac_ext <<_ACEOF
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h. */
11980 /* Override any gcc2 internal prototype to avoid an error. */
11984 /* We use char because int might match the return type of a gcc2
11985 builtin and then its argument prototype would still apply. */
11986 char XRenderSetSubpixelOrder ();
11990 XRenderSetSubpixelOrder ();
11995 rm -f conftest.$ac_objext conftest$ac_exeext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11997 (eval $ac_link) 2>conftest.er1
11999 grep -v '^ *+' conftest.er1 >conftest.err
12001 cat conftest.err >&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } &&
12004 { ac_try='test -z "$ac_c_werror_flag"
12005 || test ! -s conftest.err'
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; } &&
12011 { ac_try='test -s conftest$ac_exeext'
12012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013 (eval $ac_try) 2>&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; }; then
12017 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=yes
12019 echo "$as_me: failed program was:" >&5
12020 sed 's/^/| /' conftest.$ac_ext >&5
12022 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=no
12024 rm -f conftest.err conftest.$ac_objext \
12025 conftest$ac_exeext conftest.$ac_ext
12026 LIBS=$ac_check_lib_save_LIBS
12028 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&5
12029 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&6
12030 if test $ac_cv_lib_Xrender_XRenderSetSubpixelOrder = yes; then
12031 xrender_libs="-lXrender"
12036 CPPFLAGS="$ac_save_CPPFLAGS"
12037 LDFLAGS="$ac_save_LDFLAGS"
12038 # LIBS="$ac_save_LIBS"
12041 # first look for RANDR in -lXext
12044 ac_save_CPPFLAGS="$CPPFLAGS"
12045 ac_save_LDFLAGS="$LDFLAGS"
12046 # ac_save_LIBS="$LIBS"
12048 if test \! -z "$includedir" ; then
12049 CPPFLAGS="$CPPFLAGS -I$includedir"
12051 # note: $X_CFLAGS includes $x_includes
12052 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12054 if test \! -z "$libdir" ; then
12055 LDFLAGS="$LDFLAGS -L$libdir"
12057 # note: $X_LIBS includes $x_libraries
12058 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12060 echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXext" >&5
12061 echo $ECHO_N "checking for XRRGetScreenInfo in -lXext... $ECHO_C" >&6
12062 if test "${ac_cv_lib_Xext_XRRGetScreenInfo+set}" = set; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12065 ac_check_lib_save_LIBS=$LIBS
12066 LIBS="-lXext $xrender_libs -lXext -lX11 $LIBS"
12067 cat >conftest.$ac_ext <<_ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12074 /* Override any gcc2 internal prototype to avoid an error. */
12078 /* We use char because int might match the return type of a gcc2
12079 builtin and then its argument prototype would still apply. */
12080 char XRRGetScreenInfo ();
12084 XRRGetScreenInfo ();
12089 rm -f conftest.$ac_objext conftest$ac_exeext
12090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12091 (eval $ac_link) 2>conftest.er1
12093 grep -v '^ *+' conftest.er1 >conftest.err
12095 cat conftest.err >&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); } &&
12098 { ac_try='test -z "$ac_c_werror_flag"
12099 || test ! -s conftest.err'
12100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12101 (eval $ac_try) 2>&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; } &&
12105 { ac_try='test -s conftest$ac_exeext'
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; }; then
12111 ac_cv_lib_Xext_XRRGetScreenInfo=yes
12113 echo "$as_me: failed program was:" >&5
12114 sed 's/^/| /' conftest.$ac_ext >&5
12116 ac_cv_lib_Xext_XRRGetScreenInfo=no
12118 rm -f conftest.err conftest.$ac_objext \
12119 conftest$ac_exeext conftest.$ac_ext
12120 LIBS=$ac_check_lib_save_LIBS
12122 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XRRGetScreenInfo" >&5
12123 echo "${ECHO_T}$ac_cv_lib_Xext_XRRGetScreenInfo" >&6
12124 if test $ac_cv_lib_Xext_XRRGetScreenInfo = yes; then
12125 have_randr=yes; SAVER_LIBS="$SAVER_LIBS $xrender_libs"
12130 CPPFLAGS="$ac_save_CPPFLAGS"
12131 LDFLAGS="$ac_save_LDFLAGS"
12132 # LIBS="$ac_save_LIBS"
12135 # if that failed, look in -lXrandr
12136 if test "$have_randr" = no; then
12138 ac_save_CPPFLAGS="$CPPFLAGS"
12139 ac_save_LDFLAGS="$LDFLAGS"
12140 # ac_save_LIBS="$LIBS"
12142 if test \! -z "$includedir" ; then
12143 CPPFLAGS="$CPPFLAGS -I$includedir"
12145 # note: $X_CFLAGS includes $x_includes
12146 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12148 if test \! -z "$libdir" ; then
12149 LDFLAGS="$LDFLAGS -L$libdir"
12151 # note: $X_LIBS includes $x_libraries
12152 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12154 echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXrandr" >&5
12155 echo $ECHO_N "checking for XRRGetScreenInfo in -lXrandr... $ECHO_C" >&6
12156 if test "${ac_cv_lib_Xrandr_XRRGetScreenInfo+set}" = set; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12159 ac_check_lib_save_LIBS=$LIBS
12160 LIBS="-lXrandr $xrender_libs -lXext -lX11 $LIBS"
12161 cat >conftest.$ac_ext <<_ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h. */
12168 /* Override any gcc2 internal prototype to avoid an error. */
12172 /* We use char because int might match the return type of a gcc2
12173 builtin and then its argument prototype would still apply. */
12174 char XRRGetScreenInfo ();
12178 XRRGetScreenInfo ();
12183 rm -f conftest.$ac_objext conftest$ac_exeext
12184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12185 (eval $ac_link) 2>conftest.er1
12187 grep -v '^ *+' conftest.er1 >conftest.err
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } &&
12192 { ac_try='test -z "$ac_c_werror_flag"
12193 || test ! -s conftest.err'
12194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195 (eval $ac_try) 2>&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; } &&
12199 { ac_try='test -s conftest$ac_exeext'
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; }; then
12205 ac_cv_lib_Xrandr_XRRGetScreenInfo=yes
12207 echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12210 ac_cv_lib_Xrandr_XRRGetScreenInfo=no
12212 rm -f conftest.err conftest.$ac_objext \
12213 conftest$ac_exeext conftest.$ac_ext
12214 LIBS=$ac_check_lib_save_LIBS
12216 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRGetScreenInfo" >&5
12217 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRGetScreenInfo" >&6
12218 if test $ac_cv_lib_Xrandr_XRRGetScreenInfo = yes; then
12219 have_randr=yes; SAVER_LIBS="$SAVER_LIBS -lXrandr $xrender_libs"
12224 CPPFLAGS="$ac_save_CPPFLAGS"
12225 LDFLAGS="$ac_save_LDFLAGS"
12226 # LIBS="$ac_save_LIBS"
12231 # if that succeeded, then we've really got it.
12232 if test "$have_randr" = yes; then
12233 cat >>confdefs.h <<\_ACEOF
12234 #define HAVE_RANDR 1
12239 elif test "$with_randr" != no; then
12240 echo "error: must be yes or no: --with-randr-ext=$with_randr"
12245 ###############################################################################
12247 # Check for XF86MiscSetGrabKeysState (but only bother if we are already
12248 # using other XF86 stuff.)
12250 ###############################################################################
12252 have_xf86miscsetgrabkeysstate=no
12253 if test "$have_xf86gamma" = yes -o "$have_xf86vmode" = yes; then
12255 ac_save_CPPFLAGS="$CPPFLAGS"
12256 ac_save_LDFLAGS="$LDFLAGS"
12257 # ac_save_LIBS="$LIBS"
12259 if test \! -z "$includedir" ; then
12260 CPPFLAGS="$CPPFLAGS -I$includedir"
12262 # note: $X_CFLAGS includes $x_includes
12263 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12265 if test \! -z "$libdir" ; then
12266 LDFLAGS="$LDFLAGS -L$libdir"
12268 # note: $X_LIBS includes $x_libraries
12269 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12271 echo "$as_me:$LINENO: checking for XF86MiscSetGrabKeysState in -lXxf86misc" >&5
12272 echo $ECHO_N "checking for XF86MiscSetGrabKeysState in -lXxf86misc... $ECHO_C" >&6
12273 if test "${ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState+set}" = set; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12276 ac_check_lib_save_LIBS=$LIBS
12277 LIBS="-lXxf86misc -lXext -lX11 $LIBS"
12278 cat >conftest.$ac_ext <<_ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12285 /* Override any gcc2 internal prototype to avoid an error. */
12289 /* We use char because int might match the return type of a gcc2
12290 builtin and then its argument prototype would still apply. */
12291 char XF86MiscSetGrabKeysState ();
12295 XF86MiscSetGrabKeysState ();
12300 rm -f conftest.$ac_objext conftest$ac_exeext
12301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12302 (eval $ac_link) 2>conftest.er1
12304 grep -v '^ *+' conftest.er1 >conftest.err
12306 cat conftest.err >&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); } &&
12309 { ac_try='test -z "$ac_c_werror_flag"
12310 || test ! -s conftest.err'
12311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312 (eval $ac_try) 2>&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; } &&
12316 { ac_try='test -s conftest$ac_exeext'
12317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12318 (eval $ac_try) 2>&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); }; }; then
12322 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=yes
12324 echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12327 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=no
12329 rm -f conftest.err conftest.$ac_objext \
12330 conftest$ac_exeext conftest.$ac_ext
12331 LIBS=$ac_check_lib_save_LIBS
12333 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&5
12334 echo "${ECHO_T}$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&6
12335 if test $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState = yes; then
12336 have_xf86miscsetgrabkeysstate=yes
12341 CPPFLAGS="$ac_save_CPPFLAGS"
12342 LDFLAGS="$ac_save_LDFLAGS"
12343 # LIBS="$ac_save_LIBS"
12345 if test "$have_xf86miscsetgrabkeysstate" = yes ; then
12346 SAVER_LIBS="$SAVER_LIBS -lXxf86misc"
12347 cat >>confdefs.h <<\_ACEOF
12348 #define HAVE_XF86MISCSETGRABKEYSSTATE 1
12355 ###############################################################################
12357 # Check for HP XHPDisableReset and XHPEnableReset.
12359 ###############################################################################
12361 echo "$as_me:$LINENO: checking for XHPDisableReset in X11/XHPlib.h" >&5
12362 echo $ECHO_N "checking for XHPDisableReset in X11/XHPlib.h... $ECHO_C" >&6
12364 ac_save_CPPFLAGS="$CPPFLAGS"
12365 if test \! -z "$includedir" ; then
12366 CPPFLAGS="$CPPFLAGS -I$includedir"
12368 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12369 cat >conftest.$ac_ext <<_ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12375 #include <X11/XHPlib.h>
12378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12379 $EGREP "XHPDisableReset" >/dev/null 2>&1; then
12380 cat >>confdefs.h <<\_ACEOF
12381 #define HAVE_XHPDISABLERESET 1
12384 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
12385 echo "$as_me:$LINENO: result: yes" >&5
12386 echo "${ECHO_T}yes" >&6
12388 echo "$as_me:$LINENO: result: no" >&5
12389 echo "${ECHO_T}no" >&6
12393 CPPFLAGS="$ac_save_CPPFLAGS"
12396 ###############################################################################
12398 # Check for /proc/interrupts.
12400 ###############################################################################
12402 have_proc_interrupts=no
12403 with_proc_interrupts_req=unspecified
12405 # Check whether --with-proc-interrupts or --without-proc-interrupts was given.
12406 if test "${with_proc_interrupts+set}" = set; then
12407 withval="$with_proc_interrupts"
12408 with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
12410 with_proc_interrupts=yes
12413 if test "$with_proc_interrupts" = yes; then
12415 echo "$as_me:$LINENO: checking whether /proc/interrupts contains keyboard data" >&5
12416 echo $ECHO_N "checking whether /proc/interrupts contains keyboard data... $ECHO_C" >&6
12417 if test "${ac_cv_have_proc_interrupts+set}" = set; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 ac_cv_have_proc_interrupts=no
12421 if grep 'keyboard\|i8042' /proc/interrupts >/dev/null 2>&1 ; then
12422 ac_cv_have_proc_interrupts=yes
12426 echo "$as_me:$LINENO: result: $ac_cv_have_proc_interrupts" >&5
12427 echo "${ECHO_T}$ac_cv_have_proc_interrupts" >&6
12428 have_proc_interrupts=$ac_cv_have_proc_interrupts
12430 if test "$have_proc_interrupts" = yes; then
12431 cat >>confdefs.h <<\_ACEOF
12432 #define HAVE_PROC_INTERRUPTS 1
12437 elif test "$with_proc_interrupts" != no; then
12438 echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
12443 ###############################################################################
12445 # The --enable-locking option
12447 ###############################################################################
12449 # Check whether --enable-locking or --disable-locking was given.
12450 if test "${enable_locking+set}" = set; then
12451 enableval="$enable_locking"
12452 enable_locking="$enableval"
12456 if test "$enable_locking" = yes; then
12458 elif test "$enable_locking" = no; then
12459 cat >>confdefs.h <<\_ACEOF
12460 #define NO_LOCKING 1
12464 echo "error: must be yes or no: --enable-locking=$enable_locking"
12468 # We can't lock on MacOS X, so don't even bother compiling in support for it.
12470 if test "$ac_macosx" = yes; then
12471 if test "$enable_locking" = yes; then
12472 echo "$as_me:$LINENO: result: locking disabled: it doesn't work on MacOS X" >&5
12473 echo "${ECHO_T}locking disabled: it doesn't work on MacOS X" >&6
12475 cat >>confdefs.h <<\_ACEOF
12476 #define NO_LOCKING 1
12483 ###############################################################################
12485 # The --enable-vt-locking option
12487 ###############################################################################
12489 #ac_vt_lockswitch=no
12490 #AC_ARG_ENABLE(vt-locking,[
12491 # --enable-vt-locking Compile in support for locking Virtual Terminals.
12492 # This is the default if the system supports it, and
12493 # if locking support is included (--enable-locking.)
12494 # --disable-vt-locking Do not allow locking of VTs, even if locking is
12496 # [enable_vt_locking="$enableval"],[enable_vt_locking=yes])
12497 #if test "$enable_vt_locking" = yes; then
12499 # AC_CACHE_CHECK([for the VT_LOCKSWITCH ioctl], ac_cv_vt_lockswitch,
12500 # [AC_TRY_COMPILE([#include <fcntl.h>
12501 # #include <sys/ioctl.h>
12502 # #include <sys/vt.h>],
12503 # [int x = VT_LOCKSWITCH; int y = VT_UNLOCKSWITCH;],
12504 # [ac_cv_vt_lockswitch=yes],
12505 # [ac_cv_vt_lockswitch=no])])
12506 # ac_vt_lockswitch=$ac_cv_vt_lockswitch
12508 #elif test "$enable_vt_locking" = no; then
12511 # echo "error: must be yes or no: --enable-vt-locking=$enable_vt_locking"
12515 #if test "$ac_vt_lockswitch" = yes; then
12516 # AC_DEFINE(HAVE_VT_LOCKSWITCH)
12517 # # the VT_LOCKSWITCH ioctl can only be used when running as root.
12518 # # #### but it doesn't work yet, so don't worry about that for now.
12523 ###############################################################################
12527 ###############################################################################
12531 # Solaris systems tend to come with PAM misconfigured.
12532 # Don't build it by default, even if the headers exist.
12533 with_pam_default=no
12536 # Default to building PAM support on all other systems, if it exists.
12537 with_pam_default=yes
12542 with_pam_req=unspecified
12545 # Check whether --with-pam or --without-pam was given.
12546 if test "${with_pam+set}" = set; then
12547 withval="$with_pam"
12548 with_pam="$withval"; with_pam_req="$withval"
12550 with_pam=$with_pam_default
12554 case "$with_pam" in
12559 echo "$as_me:$LINENO: checking for PAM headers" >&5
12560 echo $ECHO_N "checking for PAM headers... $ECHO_C" >&6
12561 d=$with_pam/include
12562 if test -d $d; then
12563 X_CFLAGS="-I$d $X_CFLAGS"
12564 echo "$as_me:$LINENO: result: $d" >&5
12565 echo "${ECHO_T}$d" >&6
12567 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12568 echo "${ECHO_T}not found ($d: no such directory)" >&6
12571 echo "$as_me:$LINENO: checking for PAM libs" >&5
12572 echo $ECHO_N "checking for PAM libs... $ECHO_C" >&6
12574 if test -d $d; then
12575 X_LIBS="-L$d $X_LIBS"
12576 echo "$as_me:$LINENO: result: $d" >&5
12577 echo "${ECHO_T}$d" >&6
12579 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12580 echo "${ECHO_T}not found ($d: no such directory)" >&6
12583 # replace the directory string with "yes".
12585 with_pam=$with_pam_req
12590 echo "error: argument to --with-pam must be \"yes\", \"no\", or a directory."
12591 echo " If it is a directory, then \`DIR/include' will be added to"
12592 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12598 if test "$enable_locking" = yes -a "$with_pam" = yes; then
12599 echo "$as_me:$LINENO: checking for PAM" >&5
12600 echo $ECHO_N "checking for PAM... $ECHO_C" >&6
12601 if test "${ac_cv_pam+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12605 ac_save_CPPFLAGS="$CPPFLAGS"
12606 if test \! -z "$includedir" ; then
12607 CPPFLAGS="$CPPFLAGS -I$includedir"
12609 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12610 cat >conftest.$ac_ext <<_ACEOF
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12616 #include <security/pam_appl.h>
12625 rm -f conftest.$ac_objext
12626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12627 (eval $ac_compile) 2>conftest.er1
12629 grep -v '^ *+' conftest.er1 >conftest.err
12631 cat conftest.err >&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try='test -z "$ac_c_werror_flag"
12635 || test ! -s conftest.err'
12636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637 (eval $ac_try) 2>&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; } &&
12641 { ac_try='test -s conftest.$ac_objext'
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
12649 echo "$as_me: failed program was:" >&5
12650 sed 's/^/| /' conftest.$ac_ext >&5
12654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12655 CPPFLAGS="$ac_save_CPPFLAGS"
12657 echo "$as_me:$LINENO: result: $ac_cv_pam" >&5
12658 echo "${ECHO_T}$ac_cv_pam" >&6
12659 if test "$ac_cv_pam" = yes ; then
12661 cat >>confdefs.h <<\_ACEOF
12665 PASSWD_LIBS="${PASSWD_LIBS} -lpam"
12667 # libpam typically requires dlopen and dlsym. On FreeBSD,
12668 # those are in libc. On Linux and Solaris, they're in libdl.
12669 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12670 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12671 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12674 ac_check_lib_save_LIBS=$LIBS
12676 cat >conftest.$ac_ext <<_ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12683 /* Override any gcc2 internal prototype to avoid an error. */
12687 /* We use char because int might match the return type of a gcc2
12688 builtin and then its argument prototype would still apply. */
12698 rm -f conftest.$ac_objext conftest$ac_exeext
12699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12700 (eval $ac_link) 2>conftest.er1
12702 grep -v '^ *+' conftest.er1 >conftest.err
12704 cat conftest.err >&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } &&
12707 { ac_try='test -z "$ac_c_werror_flag"
12708 || test ! -s conftest.err'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; } &&
12714 { ac_try='test -s conftest$ac_exeext'
12715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716 (eval $ac_try) 2>&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; }; then
12720 ac_cv_lib_dl_dlopen=yes
12722 echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.$ac_ext >&5
12725 ac_cv_lib_dl_dlopen=no
12727 rm -f conftest.err conftest.$ac_objext \
12728 conftest$ac_exeext conftest.$ac_ext
12729 LIBS=$ac_check_lib_save_LIBS
12731 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12732 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12733 if test $ac_cv_lib_dl_dlopen = yes; then
12734 PASSWD_LIBS="${PASSWD_LIBS} -ldl"
12738 # On Linux, sigtimedwait() is in libc; on Solaris, it's in librt.
12740 echo "$as_me:$LINENO: checking for sigtimedwait in -lc" >&5
12741 echo $ECHO_N "checking for sigtimedwait in -lc... $ECHO_C" >&6
12742 if test "${ac_cv_lib_c_sigtimedwait+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12745 ac_check_lib_save_LIBS=$LIBS
12747 cat >conftest.$ac_ext <<_ACEOF
12750 cat confdefs.h >>conftest.$ac_ext
12751 cat >>conftest.$ac_ext <<_ACEOF
12752 /* end confdefs.h. */
12754 /* Override any gcc2 internal prototype to avoid an error. */
12758 /* We use char because int might match the return type of a gcc2
12759 builtin and then its argument prototype would still apply. */
12760 char sigtimedwait ();
12769 rm -f conftest.$ac_objext conftest$ac_exeext
12770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12771 (eval $ac_link) 2>conftest.er1
12773 grep -v '^ *+' conftest.er1 >conftest.err
12775 cat conftest.err >&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } &&
12778 { ac_try='test -z "$ac_c_werror_flag"
12779 || test ! -s conftest.err'
12780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12781 (eval $ac_try) 2>&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); }; } &&
12785 { ac_try='test -s conftest$ac_exeext'
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; }; then
12791 ac_cv_lib_c_sigtimedwait=yes
12793 echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12796 ac_cv_lib_c_sigtimedwait=no
12798 rm -f conftest.err conftest.$ac_objext \
12799 conftest$ac_exeext conftest.$ac_ext
12800 LIBS=$ac_check_lib_save_LIBS
12802 echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigtimedwait" >&5
12803 echo "${ECHO_T}$ac_cv_lib_c_sigtimedwait" >&6
12804 if test $ac_cv_lib_c_sigtimedwait = yes; then
12808 if test "$have_timedwait" = no ; then
12809 echo "$as_me:$LINENO: checking for sigtimedwait in -lrt" >&5
12810 echo $ECHO_N "checking for sigtimedwait in -lrt... $ECHO_C" >&6
12811 if test "${ac_cv_lib_rt_sigtimedwait+set}" = set; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12814 ac_check_lib_save_LIBS=$LIBS
12816 cat >conftest.$ac_ext <<_ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12823 /* Override any gcc2 internal prototype to avoid an error. */
12827 /* We use char because int might match the return type of a gcc2
12828 builtin and then its argument prototype would still apply. */
12829 char sigtimedwait ();
12838 rm -f conftest.$ac_objext conftest$ac_exeext
12839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12840 (eval $ac_link) 2>conftest.er1
12842 grep -v '^ *+' conftest.er1 >conftest.err
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } &&
12847 { ac_try='test -z "$ac_c_werror_flag"
12848 || test ! -s conftest.err'
12849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850 (eval $ac_try) 2>&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; } &&
12854 { ac_try='test -s conftest$ac_exeext'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; }; then
12860 ac_cv_lib_rt_sigtimedwait=yes
12862 echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12865 ac_cv_lib_rt_sigtimedwait=no
12867 rm -f conftest.err conftest.$ac_objext \
12868 conftest$ac_exeext conftest.$ac_ext
12869 LIBS=$ac_check_lib_save_LIBS
12871 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sigtimedwait" >&5
12872 echo "${ECHO_T}$ac_cv_lib_rt_sigtimedwait" >&6
12873 if test $ac_cv_lib_rt_sigtimedwait = yes; then
12874 PASSWD_LIBS="${PASSWD_LIBS} -lrt"
12879 echo "$as_me:$LINENO: checking how to call pam_strerror" >&5
12880 echo $ECHO_N "checking how to call pam_strerror... $ECHO_C" >&6
12881 if test "${ac_cv_pam_strerror_args+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 cat >conftest.$ac_ext <<_ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12891 #include <stdlib.h>
12892 #include <security/pam_appl.h>
12896 pam_handle_t *pamh = 0;
12897 char *s = pam_strerror(pamh, PAM_SUCCESS);
12902 rm -f conftest.$ac_objext
12903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12904 (eval $ac_compile) 2>conftest.er1
12906 grep -v '^ *+' conftest.er1 >conftest.err
12908 cat conftest.err >&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } &&
12911 { ac_try='test -z "$ac_c_werror_flag"
12912 || test ! -s conftest.err'
12913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914 (eval $ac_try) 2>&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; } &&
12918 { ac_try='test -s conftest.$ac_objext'
12919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920 (eval $ac_try) 2>&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; }; then
12924 ac_pam_strerror_args=2
12926 echo "$as_me: failed program was:" >&5
12927 sed 's/^/| /' conftest.$ac_ext >&5
12929 cat >conftest.$ac_ext <<_ACEOF
12932 cat confdefs.h >>conftest.$ac_ext
12933 cat >>conftest.$ac_ext <<_ACEOF
12934 /* end confdefs.h. */
12936 #include <stdlib.h>
12937 #include <security/pam_appl.h>
12942 pam_strerror(PAM_SUCCESS);
12947 rm -f conftest.$ac_objext
12948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12949 (eval $ac_compile) 2>conftest.er1
12951 grep -v '^ *+' conftest.er1 >conftest.err
12953 cat conftest.err >&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); } &&
12956 { ac_try='test -z "$ac_c_werror_flag"
12957 || test ! -s conftest.err'
12958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12959 (eval $ac_try) 2>&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; } &&
12963 { ac_try='test -s conftest.$ac_objext'
12964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12965 (eval $ac_try) 2>&5
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); }; }; then
12969 ac_pam_strerror_args=1
12971 echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12974 ac_pam_strerror_args=0
12976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12979 ac_cv_pam_strerror_args=$ac_pam_strerror_args
12982 ac_pam_strerror_args=$ac_cv_pam_strerror_args
12983 if test "$ac_pam_strerror_args" = 1 ; then
12984 echo "$as_me:$LINENO: result: one argument" >&5
12985 echo "${ECHO_T}one argument" >&6
12986 elif test "$ac_pam_strerror_args" = 2 ; then
12987 cat >>confdefs.h <<\_ACEOF
12988 #define PAM_STRERROR_TWO_ARGS 1
12991 echo "$as_me:$LINENO: result: two arguments" >&5
12992 echo "${ECHO_T}two arguments" >&6
12994 echo "$as_me:$LINENO: result: unknown" >&5
12995 echo "${ECHO_T}unknown" >&6
13001 ###############################################################################
13003 # Check for Kerberos.
13005 ###############################################################################
13009 with_kerberos_req=unspecified
13012 # Check whether --with-kerberos or --without-kerberos was given.
13013 if test "${with_kerberos+set}" = set; then
13014 withval="$with_kerberos"
13015 with_kerberos="$withval"; with_kerberos_req="$withval"
13021 case "$with_kerberos" in
13026 echo "$as_me:$LINENO: checking for Kerberos headers" >&5
13027 echo $ECHO_N "checking for Kerberos headers... $ECHO_C" >&6
13028 d=$with_kerberos/include
13029 if test -d $d; then
13030 X_CFLAGS="-I$d $X_CFLAGS"
13031 echo "$as_me:$LINENO: result: $d" >&5
13032 echo "${ECHO_T}$d" >&6
13034 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13035 echo "${ECHO_T}not found ($d: no such directory)" >&6
13038 echo "$as_me:$LINENO: checking for Kerberos libs" >&5
13039 echo $ECHO_N "checking for Kerberos libs... $ECHO_C" >&6
13040 d=$with_kerberos/lib
13041 if test -d $d; then
13042 X_LIBS="-L$d $X_LIBS"
13043 echo "$as_me:$LINENO: result: $d" >&5
13044 echo "${ECHO_T}$d" >&6
13046 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13047 echo "${ECHO_T}not found ($d: no such directory)" >&6
13050 # replace the directory string with "yes".
13051 with_kerberos_req="yes"
13052 with_kerberos=$with_kerberos_req
13057 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
13058 echo " If it is a directory, then \`DIR/include' will be added to"
13059 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13065 if test "$enable_locking" = yes -a "$with_kerberos" = yes; then
13066 echo "$as_me:$LINENO: checking for Kerberos 4" >&5
13067 echo $ECHO_N "checking for Kerberos 4... $ECHO_C" >&6
13068 if test "${ac_cv_kerberos+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13072 ac_save_CPPFLAGS="$CPPFLAGS"
13073 if test \! -z "$includedir" ; then
13074 CPPFLAGS="$CPPFLAGS -I$includedir"
13076 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13077 cat >conftest.$ac_ext <<_ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h. */
13092 rm -f conftest.$ac_objext
13093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13094 (eval $ac_compile) 2>conftest.er1
13096 grep -v '^ *+' conftest.er1 >conftest.err
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } &&
13101 { ac_try='test -z "$ac_c_werror_flag"
13102 || test ! -s conftest.err'
13103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13104 (eval $ac_try) 2>&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); }; } &&
13108 { ac_try='test -s conftest.$ac_objext'
13109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13110 (eval $ac_try) 2>&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }; }; then
13116 echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.$ac_ext >&5
13121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13122 CPPFLAGS="$ac_save_CPPFLAGS"
13124 echo "$as_me:$LINENO: result: $ac_cv_kerberos" >&5
13125 echo "${ECHO_T}$ac_cv_kerberos" >&6
13126 echo "$as_me:$LINENO: checking for Kerberos 5" >&5
13127 echo $ECHO_N "checking for Kerberos 5... $ECHO_C" >&6
13128 if test "${ac_cv_kerberos5+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 ac_save_CPPFLAGS="$CPPFLAGS"
13133 if test \! -z "$includedir" ; then
13134 CPPFLAGS="$CPPFLAGS -I$includedir"
13136 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13137 cat >conftest.$ac_ext <<_ACEOF
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h. */
13143 #include <kerberosIV/krb.h>
13152 rm -f conftest.$ac_objext
13153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13154 (eval $ac_compile) 2>conftest.er1
13156 grep -v '^ *+' conftest.er1 >conftest.err
13158 cat conftest.err >&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } &&
13161 { ac_try='test -z "$ac_c_werror_flag"
13162 || test ! -s conftest.err'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; } &&
13168 { ac_try='test -s conftest.$ac_objext'
13169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170 (eval $ac_try) 2>&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; }; then
13174 ac_cv_kerberos5=yes
13176 echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13182 CPPFLAGS="$ac_save_CPPFLAGS"
13184 echo "$as_me:$LINENO: result: $ac_cv_kerberos5" >&5
13185 echo "${ECHO_T}$ac_cv_kerberos5" >&6
13187 if test "$ac_cv_kerberos" = yes ; then
13189 cat >>confdefs.h <<\_ACEOF
13190 #define HAVE_KERBEROS 1
13195 if test "$ac_cv_kerberos5" = yes ; then
13197 # Andrew Snare <ajs@pigpond.com> wrote:
13199 # You were assuming that if kerberosV (krb5) was found, then kerberosIV
13200 # (krb4) was also available. This turns out not to be the case with
13201 # mit-krb-1.2.7; apparently backwards-compatibility with KerberosIV
13204 # So, disable kerberosV support if libkrb4 can't be found.
13205 # This is not the best solution, but it makes the compile not fail.
13208 ac_save_CPPFLAGS="$CPPFLAGS"
13209 ac_save_LDFLAGS="$LDFLAGS"
13210 # ac_save_LIBS="$LIBS"
13212 if test \! -z "$includedir" ; then
13213 CPPFLAGS="$CPPFLAGS -I$includedir"
13215 # note: $X_CFLAGS includes $x_includes
13216 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13218 if test \! -z "$libdir" ; then
13219 LDFLAGS="$LDFLAGS -L$libdir"
13221 # note: $X_LIBS includes $x_libraries
13222 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13224 echo "$as_me:$LINENO: checking for krb_get_tf_realm in -lkrb4" >&5
13225 echo $ECHO_N "checking for krb_get_tf_realm in -lkrb4... $ECHO_C" >&6
13226 if test "${ac_cv_lib_krb4_krb_get_tf_realm+set}" = set; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13229 ac_check_lib_save_LIBS=$LIBS
13230 LIBS="-lkrb4 $LIBS"
13231 cat >conftest.$ac_ext <<_ACEOF
13234 cat confdefs.h >>conftest.$ac_ext
13235 cat >>conftest.$ac_ext <<_ACEOF
13236 /* end confdefs.h. */
13238 /* Override any gcc2 internal prototype to avoid an error. */
13242 /* We use char because int might match the return type of a gcc2
13243 builtin and then its argument prototype would still apply. */
13244 char krb_get_tf_realm ();
13248 krb_get_tf_realm ();
13253 rm -f conftest.$ac_objext conftest$ac_exeext
13254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13255 (eval $ac_link) 2>conftest.er1
13257 grep -v '^ *+' conftest.er1 >conftest.err
13259 cat conftest.err >&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } &&
13262 { ac_try='test -z "$ac_c_werror_flag"
13263 || test ! -s conftest.err'
13264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; } &&
13269 { ac_try='test -s conftest$ac_exeext'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13275 ac_cv_lib_krb4_krb_get_tf_realm=yes
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13280 ac_cv_lib_krb4_krb_get_tf_realm=no
13282 rm -f conftest.err conftest.$ac_objext \
13283 conftest$ac_exeext conftest.$ac_ext
13284 LIBS=$ac_check_lib_save_LIBS
13286 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_tf_realm" >&5
13287 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_tf_realm" >&6
13288 if test $ac_cv_lib_krb4_krb_get_tf_realm = yes; then
13294 CPPFLAGS="$ac_save_CPPFLAGS"
13295 LDFLAGS="$ac_save_LDFLAGS"
13296 # LIBS="$ac_save_LIBS"
13298 if test "$have_kerberos" = yes ; then
13300 cat >>confdefs.h <<\_ACEOF
13301 #define HAVE_KERBEROS 1
13304 cat >>confdefs.h <<\_ACEOF
13305 #define HAVE_KERBEROS5 1
13310 { echo "$as_me:$LINENO: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&5
13311 echo "$as_me: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&2;}
13316 if test "$have_kerberos5" = yes ; then
13317 # from Matt Knopp <mhat@infocalypse.netlag.com>
13318 # (who got it from amu@mit.edu)
13320 PASSWD_LIBS="$PASSWD_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
13322 # jwz: MacOS X uses -lkrb5, but not -lcrypt
13324 ac_save_CPPFLAGS="$CPPFLAGS"
13325 ac_save_LDFLAGS="$LDFLAGS"
13326 # ac_save_LIBS="$LIBS"
13328 if test \! -z "$includedir" ; then
13329 CPPFLAGS="$CPPFLAGS -I$includedir"
13331 # note: $X_CFLAGS includes $x_includes
13332 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13334 if test \! -z "$libdir" ; then
13335 LDFLAGS="$LDFLAGS -L$libdir"
13337 # note: $X_LIBS includes $x_libraries
13338 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13340 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
13341 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
13342 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
13343 echo $ECHO_N "(cached) $ECHO_C" >&6
13345 ac_check_lib_save_LIBS=$LIBS
13346 LIBS="-lcrypt $LIBS"
13347 cat >conftest.$ac_ext <<_ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h. */
13354 /* Override any gcc2 internal prototype to avoid an error. */
13358 /* We use char because int might match the return type of a gcc2
13359 builtin and then its argument prototype would still apply. */
13369 rm -f conftest.$ac_objext conftest$ac_exeext
13370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13371 (eval $ac_link) 2>conftest.er1
13373 grep -v '^ *+' conftest.er1 >conftest.err
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } &&
13378 { ac_try='test -z "$ac_c_werror_flag"
13379 || test ! -s conftest.err'
13380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381 (eval $ac_try) 2>&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }; } &&
13385 { ac_try='test -s conftest$ac_exeext'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 ac_cv_lib_crypt_crypt=yes
13393 echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13396 ac_cv_lib_crypt_crypt=no
13398 rm -f conftest.err conftest.$ac_objext \
13399 conftest$ac_exeext conftest.$ac_ext
13400 LIBS=$ac_check_lib_save_LIBS
13402 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
13403 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
13404 if test $ac_cv_lib_crypt_crypt = yes; then
13405 PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
13408 CPPFLAGS="$ac_save_CPPFLAGS"
13409 LDFLAGS="$ac_save_LDFLAGS"
13410 # LIBS="$ac_save_LIBS"
13413 elif test "$have_kerberos" = yes ; then
13414 # from Tim Showalter <tjs@psaux.com> for FreeBSD 4.2
13415 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
13418 if test "$have_kerberos" = yes ; then
13419 echo "$as_me:$LINENO: checking for res_search" >&5
13420 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
13421 if test "${ac_cv_func_res_search+set}" = set; then
13422 echo $ECHO_N "(cached) $ECHO_C" >&6
13424 cat >conftest.$ac_ext <<_ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13430 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
13431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13432 #define res_search innocuous_res_search
13434 /* System header to define __stub macros and hopefully few prototypes,
13435 which can conflict with char res_search (); below.
13436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13437 <limits.h> exists even on freestanding compilers. */
13440 # include <limits.h>
13442 # include <assert.h>
13447 /* Override any gcc2 internal prototype to avoid an error. */
13452 /* We use char because int might match the return type of a gcc2
13453 builtin and then its argument prototype would still apply. */
13454 char res_search ();
13455 /* The GNU C library defines this for functions which it implements
13456 to always fail with ENOSYS. Some functions are actually named
13457 something starting with __ and the normal name is an alias. */
13458 #if defined (__stub_res_search) || defined (__stub___res_search)
13461 char (*f) () = res_search;
13470 return f != res_search;
13475 rm -f conftest.$ac_objext conftest$ac_exeext
13476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13477 (eval $ac_link) 2>conftest.er1
13479 grep -v '^ *+' conftest.er1 >conftest.err
13481 cat conftest.err >&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } &&
13484 { ac_try='test -z "$ac_c_werror_flag"
13485 || test ! -s conftest.err'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; } &&
13491 { ac_try='test -s conftest$ac_exeext'
13492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493 (eval $ac_try) 2>&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); }; }; then
13497 ac_cv_func_res_search=yes
13499 echo "$as_me: failed program was:" >&5
13500 sed 's/^/| /' conftest.$ac_ext >&5
13502 ac_cv_func_res_search=no
13504 rm -f conftest.err conftest.$ac_objext \
13505 conftest$ac_exeext conftest.$ac_ext
13507 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
13508 echo "${ECHO_T}$ac_cv_func_res_search" >&6
13509 if test $ac_cv_func_res_search = yes; then
13512 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
13513 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
13514 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13517 ac_check_lib_save_LIBS=$LIBS
13518 LIBS="-lresolv $LIBS"
13519 cat >conftest.$ac_ext <<_ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h. */
13526 /* Override any gcc2 internal prototype to avoid an error. */
13530 /* We use char because int might match the return type of a gcc2
13531 builtin and then its argument prototype would still apply. */
13532 char res_search ();
13541 rm -f conftest.$ac_objext conftest$ac_exeext
13542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13543 (eval $ac_link) 2>conftest.er1
13545 grep -v '^ *+' conftest.er1 >conftest.err
13547 cat conftest.err >&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); } &&
13550 { ac_try='test -z "$ac_c_werror_flag"
13551 || test ! -s conftest.err'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; } &&
13557 { ac_try='test -s conftest$ac_exeext'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; }; then
13563 ac_cv_lib_resolv_res_search=yes
13565 echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13568 ac_cv_lib_resolv_res_search=no
13570 rm -f conftest.err conftest.$ac_objext \
13571 conftest$ac_exeext conftest.$ac_ext
13572 LIBS=$ac_check_lib_save_LIBS
13574 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
13575 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
13576 if test $ac_cv_lib_resolv_res_search = yes; then
13577 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
13579 { echo "$as_me:$LINENO: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&5
13580 echo "$as_me: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&2;}
13590 ###############################################################################
13592 # Check for the nine billion variants of shadow passwords...
13594 ###############################################################################
13599 with_shadow_req=unspecified
13602 # Check whether --with-shadow or --without-shadow was given.
13603 if test "${with_shadow+set}" = set; then
13604 withval="$with_shadow"
13605 with_shadow="$withval"; with_shadow_req="$withval"
13611 case "$with_shadow" in
13616 echo "$as_me:$LINENO: checking for shadow password headers" >&5
13617 echo $ECHO_N "checking for shadow password headers... $ECHO_C" >&6
13618 d=$with_shadow/include
13619 if test -d $d; then
13620 X_CFLAGS="-I$d $X_CFLAGS"
13621 echo "$as_me:$LINENO: result: $d" >&5
13622 echo "${ECHO_T}$d" >&6
13624 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13625 echo "${ECHO_T}not found ($d: no such directory)" >&6
13628 echo "$as_me:$LINENO: checking for shadow password libs" >&5
13629 echo $ECHO_N "checking for shadow password libs... $ECHO_C" >&6
13631 if test -d $d; then
13632 X_LIBS="-L$d $X_LIBS"
13633 echo "$as_me:$LINENO: result: $d" >&5
13634 echo "${ECHO_T}$d" >&6
13636 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13637 echo "${ECHO_T}not found ($d: no such directory)" >&6
13640 # replace the directory string with "yes".
13641 with_shadow_req="yes"
13642 with_shadow=$with_shadow_req
13647 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
13648 echo " If it is a directory, then \`DIR/include' will be added to"
13649 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13655 if test "$enable_locking" = no ; then
13661 ###############################################################################
13663 # Check for Sun "adjunct" passwords.
13665 ###############################################################################
13667 if test "$with_shadow" = yes ; then
13668 echo "$as_me:$LINENO: checking for Sun-style shadow passwords" >&5
13669 echo $ECHO_N "checking for Sun-style shadow passwords... $ECHO_C" >&6
13670 if test "${ac_cv_sun_adjunct+set}" = set; then
13671 echo $ECHO_N "(cached) $ECHO_C" >&6
13674 ac_save_CPPFLAGS="$CPPFLAGS"
13675 if test \! -z "$includedir" ; then
13676 CPPFLAGS="$CPPFLAGS -I$includedir"
13678 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13679 cat >conftest.$ac_ext <<_ACEOF
13682 cat confdefs.h >>conftest.$ac_ext
13683 cat >>conftest.$ac_ext <<_ACEOF
13684 /* end confdefs.h. */
13685 #include <stdlib.h>
13686 #include <unistd.h>
13687 #include <sys/types.h>
13688 #include <sys/label.h>
13689 #include <sys/audit.h>
13690 #include <pwdadj.h>
13694 struct passwd_adjunct *p = getpwanam("nobody");
13695 const char *pw = p->pwa_passwd;
13700 rm -f conftest.$ac_objext
13701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13702 (eval $ac_compile) 2>conftest.er1
13704 grep -v '^ *+' conftest.er1 >conftest.err
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
13709 { ac_try='test -z "$ac_c_werror_flag"
13710 || test ! -s conftest.err'
13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; } &&
13716 { ac_try='test -s conftest.$ac_objext'
13717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13718 (eval $ac_try) 2>&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; }; then
13722 ac_cv_sun_adjunct=yes
13724 echo "$as_me: failed program was:" >&5
13725 sed 's/^/| /' conftest.$ac_ext >&5
13727 ac_cv_sun_adjunct=no
13729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13730 CPPFLAGS="$ac_save_CPPFLAGS"
13732 echo "$as_me:$LINENO: result: $ac_cv_sun_adjunct" >&5
13733 echo "${ECHO_T}$ac_cv_sun_adjunct" >&6
13734 if test "$ac_cv_sun_adjunct" = yes; then
13735 have_shadow_adjunct=yes
13742 ###############################################################################
13744 # Check for DEC and SCO so-called "enhanced" security.
13746 ###############################################################################
13748 if test "$with_shadow" = yes ; then
13749 echo "$as_me:$LINENO: checking for DEC-style shadow passwords" >&5
13750 echo $ECHO_N "checking for DEC-style shadow passwords... $ECHO_C" >&6
13751 if test "${ac_cv_enhanced_passwd+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 ac_save_CPPFLAGS="$CPPFLAGS"
13756 if test \! -z "$includedir" ; then
13757 CPPFLAGS="$CPPFLAGS -I$includedir"
13759 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13760 cat >conftest.$ac_ext <<_ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13766 #include <stdlib.h>
13767 #include <unistd.h>
13768 #include <sys/types.h>
13770 #include <sys/security.h>
13775 struct pr_passwd *p;
13777 set_auth_parameters(0, 0);
13778 check_auth_parameters();
13779 p = getprpwnam("nobody");
13780 pw = p->ufld.fd_encrypt;
13785 rm -f conftest.$ac_objext
13786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13787 (eval $ac_compile) 2>conftest.er1
13789 grep -v '^ *+' conftest.er1 >conftest.err
13791 cat conftest.err >&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); } &&
13794 { ac_try='test -z "$ac_c_werror_flag"
13795 || test ! -s conftest.err'
13796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13797 (eval $ac_try) 2>&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); }; } &&
13801 { ac_try='test -s conftest.$ac_objext'
13802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803 (eval $ac_try) 2>&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); }; }; then
13807 ac_cv_enhanced_passwd=yes
13809 echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.$ac_ext >&5
13812 ac_cv_enhanced_passwd=no
13814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13815 CPPFLAGS="$ac_save_CPPFLAGS"
13817 echo "$as_me:$LINENO: result: $ac_cv_enhanced_passwd" >&5
13818 echo "${ECHO_T}$ac_cv_enhanced_passwd" >&6
13819 if test $ac_cv_enhanced_passwd = yes; then
13820 have_shadow_enhanced=yes
13824 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
13825 # (I'm told it needs -lcurses too, but I don't understand why.)
13826 # But on DEC, it's in -lsecurity.
13828 echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
13829 echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
13830 if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
13831 echo $ECHO_N "(cached) $ECHO_C" >&6
13833 ac_check_lib_save_LIBS=$LIBS
13834 LIBS="-lprot -lx $LIBS"
13835 cat >conftest.$ac_ext <<_ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h. */
13842 /* Override any gcc2 internal prototype to avoid an error. */
13846 /* We use char because int might match the return type of a gcc2
13847 builtin and then its argument prototype would still apply. */
13848 char getprpwnam ();
13857 rm -f conftest.$ac_objext conftest$ac_exeext
13858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13859 (eval $ac_link) 2>conftest.er1
13861 grep -v '^ *+' conftest.er1 >conftest.err
13863 cat conftest.err >&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); } &&
13866 { ac_try='test -z "$ac_c_werror_flag"
13867 || test ! -s conftest.err'
13868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869 (eval $ac_try) 2>&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; } &&
13873 { ac_try='test -s conftest$ac_exeext'
13874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875 (eval $ac_try) 2>&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); }; }; then
13879 ac_cv_lib_prot_getprpwnam=yes
13881 echo "$as_me: failed program was:" >&5
13882 sed 's/^/| /' conftest.$ac_ext >&5
13884 ac_cv_lib_prot_getprpwnam=no
13886 rm -f conftest.err conftest.$ac_objext \
13887 conftest$ac_exeext conftest.$ac_ext
13888 LIBS=$ac_check_lib_save_LIBS
13890 echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
13891 echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
13892 if test $ac_cv_lib_prot_getprpwnam = yes; then
13893 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
13895 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
13896 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
13897 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13900 ac_check_lib_save_LIBS=$LIBS
13901 LIBS="-lsecurity $LIBS"
13902 cat >conftest.$ac_ext <<_ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h. */
13909 /* Override any gcc2 internal prototype to avoid an error. */
13913 /* We use char because int might match the return type of a gcc2
13914 builtin and then its argument prototype would still apply. */
13915 char getprpwnam ();
13924 rm -f conftest.$ac_objext conftest$ac_exeext
13925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13926 (eval $ac_link) 2>conftest.er1
13928 grep -v '^ *+' conftest.er1 >conftest.err
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try='test -z "$ac_c_werror_flag"
13934 || test ! -s conftest.err'
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; } &&
13940 { ac_try='test -s conftest$ac_exeext'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; then
13946 ac_cv_lib_security_getprpwnam=yes
13948 echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13951 ac_cv_lib_security_getprpwnam=no
13953 rm -f conftest.err conftest.$ac_objext \
13954 conftest$ac_exeext conftest.$ac_ext
13955 LIBS=$ac_check_lib_save_LIBS
13957 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
13958 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
13959 if test $ac_cv_lib_security_getprpwnam = yes; then
13960 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
13968 ###############################################################################
13970 # Check for HP's entry in the "Not Invented Here" Sweepstakes.
13972 ###############################################################################
13974 if test "$with_shadow" = yes ; then
13975 echo "$as_me:$LINENO: checking for HP-style shadow passwords" >&5
13976 echo $ECHO_N "checking for HP-style shadow passwords... $ECHO_C" >&6
13977 if test "${ac_cv_hpux_passwd+set}" = set; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13981 ac_save_CPPFLAGS="$CPPFLAGS"
13982 if test \! -z "$includedir" ; then
13983 CPPFLAGS="$CPPFLAGS -I$includedir"
13985 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13986 cat >conftest.$ac_ext <<_ACEOF
13989 cat confdefs.h >>conftest.$ac_ext
13990 cat >>conftest.$ac_ext <<_ACEOF
13991 /* end confdefs.h. */
13992 #include <stdlib.h>
13993 #include <unistd.h>
13994 #include <sys/types.h>
13996 #include <hpsecurity.h>
14001 struct s_passwd *p = getspwnam("nobody");
14002 const char *pw = p->pw_passwd;
14007 rm -f conftest.$ac_objext
14008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14009 (eval $ac_compile) 2>conftest.er1
14011 grep -v '^ *+' conftest.er1 >conftest.err
14013 cat conftest.err >&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } &&
14016 { ac_try='test -z "$ac_c_werror_flag"
14017 || test ! -s conftest.err'
14018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; } &&
14023 { ac_try='test -s conftest.$ac_objext'
14024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; }; then
14029 ac_cv_hpux_passwd=yes
14031 echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.$ac_ext >&5
14034 ac_cv_hpux_passwd=no
14036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14037 CPPFLAGS="$ac_save_CPPFLAGS"
14039 echo "$as_me:$LINENO: result: $ac_cv_hpux_passwd" >&5
14040 echo "${ECHO_T}$ac_cv_hpux_passwd" >&6
14041 if test "$ac_cv_hpux_passwd" = yes; then
14042 have_shadow_hpux=yes
14046 # on HPUX, bigcrypt is in -lsec
14047 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
14048 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
14049 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
14050 echo $ECHO_N "(cached) $ECHO_C" >&6
14052 ac_check_lib_save_LIBS=$LIBS
14054 cat >conftest.$ac_ext <<_ACEOF
14057 cat confdefs.h >>conftest.$ac_ext
14058 cat >>conftest.$ac_ext <<_ACEOF
14059 /* end confdefs.h. */
14061 /* Override any gcc2 internal prototype to avoid an error. */
14065 /* We use char because int might match the return type of a gcc2
14066 builtin and then its argument prototype would still apply. */
14076 rm -f conftest.$ac_objext conftest$ac_exeext
14077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14078 (eval $ac_link) 2>conftest.er1
14080 grep -v '^ *+' conftest.er1 >conftest.err
14082 cat conftest.err >&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } &&
14085 { ac_try='test -z "$ac_c_werror_flag"
14086 || test ! -s conftest.err'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; } &&
14092 { ac_try='test -s conftest$ac_exeext'
14093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14094 (eval $ac_try) 2>&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); }; }; then
14098 ac_cv_lib_sec_bigcrypt=yes
14100 echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.$ac_ext >&5
14103 ac_cv_lib_sec_bigcrypt=no
14105 rm -f conftest.err conftest.$ac_objext \
14106 conftest$ac_exeext conftest.$ac_ext
14107 LIBS=$ac_check_lib_save_LIBS
14109 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
14110 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
14111 if test $ac_cv_lib_sec_bigcrypt = yes; then
14112 PASSWD_LIBS="$PASSWD_LIBS -lsec"
14119 ###############################################################################
14121 # Check for FreeBSD-style shadow passwords.
14123 # On FreeBSD, getpwnam() and friends work just like on non-shadow-
14124 # password systems -- except you only get stuff in the pw_passwd field
14125 # if the running program is setuid. So, guess that we've got this
14126 # lossage to contend with if /etc/master.passwd exists, and default to
14127 # a setuid installation.
14129 ###############################################################################
14131 if test "$with_shadow" = yes ; then
14132 echo "$as_me:$LINENO: checking for FreeBSD-style shadow passwords" >&5
14133 echo $ECHO_N "checking for FreeBSD-style shadow passwords... $ECHO_C" >&6
14134 if test "${ac_cv_master_passwd+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 if test -f /etc/master.passwd ; then
14138 ac_cv_master_passwd=yes
14140 ac_cv_master_passwd=no
14143 echo "$as_me:$LINENO: result: $ac_cv_master_passwd" >&5
14144 echo "${ECHO_T}$ac_cv_master_passwd" >&6
14145 if test "$ac_cv_master_passwd" = yes; then
14151 ###############################################################################
14153 # Check for traditional (ha!) shadow passwords.
14155 ###############################################################################
14157 if test "$with_shadow" = yes ; then
14158 echo "$as_me:$LINENO: checking for generic shadow passwords" >&5
14159 echo $ECHO_N "checking for generic shadow passwords... $ECHO_C" >&6
14160 if test "${ac_cv_shadow+set}" = set; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14164 ac_save_CPPFLAGS="$CPPFLAGS"
14165 if test \! -z "$includedir" ; then
14166 CPPFLAGS="$CPPFLAGS -I$includedir"
14168 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14169 cat >conftest.$ac_ext <<_ACEOF
14172 cat confdefs.h >>conftest.$ac_ext
14173 cat >>conftest.$ac_ext <<_ACEOF
14174 /* end confdefs.h. */
14175 #include <stdlib.h>
14176 #include <unistd.h>
14177 #include <sys/types.h>
14179 #include <shadow.h>
14183 struct spwd *p = getspnam("nobody");
14184 const char *pw = p->sp_pwdp;
14189 rm -f conftest.$ac_objext
14190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14191 (eval $ac_compile) 2>conftest.er1
14193 grep -v '^ *+' conftest.er1 >conftest.err
14195 cat conftest.err >&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } &&
14198 { ac_try='test -z "$ac_c_werror_flag"
14199 || test ! -s conftest.err'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; } &&
14205 { ac_try='test -s conftest.$ac_objext'
14206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207 (eval $ac_try) 2>&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; }; then
14213 echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14219 CPPFLAGS="$ac_save_CPPFLAGS"
14221 echo "$as_me:$LINENO: result: $ac_cv_shadow" >&5
14222 echo "${ECHO_T}$ac_cv_shadow" >&6
14223 if test "$ac_cv_shadow" = yes; then
14227 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
14229 echo "$as_me:$LINENO: checking for getspnam in -lc" >&5
14230 echo $ECHO_N "checking for getspnam in -lc... $ECHO_C" >&6
14231 if test "${ac_cv_lib_c_getspnam+set}" = set; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
14234 ac_check_lib_save_LIBS=$LIBS
14236 cat >conftest.$ac_ext <<_ACEOF
14239 cat confdefs.h >>conftest.$ac_ext
14240 cat >>conftest.$ac_ext <<_ACEOF
14241 /* end confdefs.h. */
14243 /* Override any gcc2 internal prototype to avoid an error. */
14247 /* We use char because int might match the return type of a gcc2
14248 builtin and then its argument prototype would still apply. */
14258 rm -f conftest.$ac_objext conftest$ac_exeext
14259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14260 (eval $ac_link) 2>conftest.er1
14262 grep -v '^ *+' conftest.er1 >conftest.err
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } &&
14267 { ac_try='test -z "$ac_c_werror_flag"
14268 || test ! -s conftest.err'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; } &&
14274 { ac_try='test -s conftest$ac_exeext'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }; then
14280 ac_cv_lib_c_getspnam=yes
14282 echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14285 ac_cv_lib_c_getspnam=no
14287 rm -f conftest.err conftest.$ac_objext \
14288 conftest$ac_exeext conftest.$ac_ext
14289 LIBS=$ac_check_lib_save_LIBS
14291 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getspnam" >&5
14292 echo "${ECHO_T}$ac_cv_lib_c_getspnam" >&6
14293 if test $ac_cv_lib_c_getspnam = yes; then
14297 if test "$have_getspnam" = no ; then
14298 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
14299 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
14300 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14303 ac_check_lib_save_LIBS=$LIBS
14305 cat >conftest.$ac_ext <<_ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14312 /* Override any gcc2 internal prototype to avoid an error. */
14316 /* We use char because int might match the return type of a gcc2
14317 builtin and then its argument prototype would still apply. */
14327 rm -f conftest.$ac_objext conftest$ac_exeext
14328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14329 (eval $ac_link) 2>conftest.er1
14331 grep -v '^ *+' conftest.er1 >conftest.err
14333 cat conftest.err >&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); } &&
14336 { ac_try='test -z "$ac_c_werror_flag"
14337 || test ! -s conftest.err'
14338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339 (eval $ac_try) 2>&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; } &&
14343 { ac_try='test -s conftest$ac_exeext'
14344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14345 (eval $ac_try) 2>&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); }; }; then
14349 ac_cv_lib_gen_getspnam=yes
14351 echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14354 ac_cv_lib_gen_getspnam=no
14356 rm -f conftest.err conftest.$ac_objext \
14357 conftest$ac_exeext conftest.$ac_ext
14358 LIBS=$ac_check_lib_save_LIBS
14360 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
14361 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
14362 if test $ac_cv_lib_gen_getspnam = yes; then
14363 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
14371 ###############################################################################
14373 # Check for other libraries needed for non-shadow passwords.
14375 ###############################################################################
14377 if test "$enable_locking" = yes ; then
14379 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
14381 echo "$as_me:$LINENO: checking for crypt in -lc" >&5
14382 echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
14383 if test "${ac_cv_lib_c_crypt+set}" = set; then
14384 echo $ECHO_N "(cached) $ECHO_C" >&6
14386 ac_check_lib_save_LIBS=$LIBS
14388 cat >conftest.$ac_ext <<_ACEOF
14391 cat confdefs.h >>conftest.$ac_ext
14392 cat >>conftest.$ac_ext <<_ACEOF
14393 /* end confdefs.h. */
14395 /* Override any gcc2 internal prototype to avoid an error. */
14399 /* We use char because int might match the return type of a gcc2
14400 builtin and then its argument prototype would still apply. */
14410 rm -f conftest.$ac_objext conftest$ac_exeext
14411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14412 (eval $ac_link) 2>conftest.er1
14414 grep -v '^ *+' conftest.er1 >conftest.err
14416 cat conftest.err >&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); } &&
14419 { ac_try='test -z "$ac_c_werror_flag"
14420 || test ! -s conftest.err'
14421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422 (eval $ac_try) 2>&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); }; } &&
14426 { ac_try='test -s conftest$ac_exeext'
14427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428 (eval $ac_try) 2>&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); }; }; then
14432 ac_cv_lib_c_crypt=yes
14434 echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.$ac_ext >&5
14437 ac_cv_lib_c_crypt=no
14439 rm -f conftest.err conftest.$ac_objext \
14440 conftest$ac_exeext conftest.$ac_ext
14441 LIBS=$ac_check_lib_save_LIBS
14443 echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
14444 echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
14445 if test $ac_cv_lib_c_crypt = yes; then
14449 if test "$have_crypt" = no ; then
14450 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
14451 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
14452 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14455 ac_check_lib_save_LIBS=$LIBS
14456 LIBS="-lcrypt $LIBS"
14457 cat >conftest.$ac_ext <<_ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14464 /* Override any gcc2 internal prototype to avoid an error. */
14468 /* We use char because int might match the return type of a gcc2
14469 builtin and then its argument prototype would still apply. */
14479 rm -f conftest.$ac_objext conftest$ac_exeext
14480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14481 (eval $ac_link) 2>conftest.er1
14483 grep -v '^ *+' conftest.er1 >conftest.err
14485 cat conftest.err >&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } &&
14488 { ac_try='test -z "$ac_c_werror_flag"
14489 || test ! -s conftest.err'
14490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14491 (eval $ac_try) 2>&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }; } &&
14495 { ac_try='test -s conftest$ac_exeext'
14496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497 (eval $ac_try) 2>&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; }; then
14501 ac_cv_lib_crypt_crypt=yes
14503 echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14506 ac_cv_lib_crypt_crypt=no
14508 rm -f conftest.err conftest.$ac_objext \
14509 conftest$ac_exeext conftest.$ac_ext
14510 LIBS=$ac_check_lib_save_LIBS
14512 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
14513 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
14514 if test $ac_cv_lib_crypt_crypt = yes; then
14515 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
14522 # Most of the above shadow mechanisms will have set need_setuid to yes,
14523 # if they were found. But, on some systems, we need setuid even when
14524 # using plain old vanilla passwords.
14526 if test "$enable_locking" = yes ; then
14528 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
14535 if test "$have_shadow_adjunct" = yes ; then
14536 cat >>confdefs.h <<\_ACEOF
14537 #define HAVE_ADJUNCT_PASSWD 1
14540 elif test "$have_shadow_enhanced" = yes ; then
14541 cat >>confdefs.h <<\_ACEOF
14542 #define HAVE_ENHANCED_PASSWD 1
14545 elif test "$have_shadow_hpux" = yes ; then
14546 cat >>confdefs.h <<\_ACEOF
14547 #define HAVE_HPUX_PASSWD 1
14550 elif test "$have_shadow" = yes ; then
14551 cat >>confdefs.h <<\_ACEOF
14552 #define HAVE_SHADOW_PASSWD 1
14558 ###############################################################################
14560 # Check for external password helper
14561 # On SuSE, instead of having xscreensaver be a setuid program, they
14562 # fork an external program that takes the password on stdin, and
14563 # returns true if that password is a valid one. Then only that
14564 # smaller program needs to be setuid.
14566 # (Note that this external program is not a GUI: the GUI is still
14567 # all in xscreensaver itself; the external program just does auth.)
14569 ###############################################################################
14571 have_passwd_helper=no
14572 with_passwd_helper_req=unspecified
14575 # Check whether --with-passwd-helper or --without-passwd-helper was given.
14576 if test "${with_passwd_helper+set}" = set; then
14577 withval="$with_passwd_helper"
14578 with_passwd_helper="$withval"; with_passwd_helper_req="$withval"
14580 with_passwd_helper=no
14582 # no HANDLE_X_PATH_ARG for this one
14584 if test "$enable_locking" = no ; then
14585 with_passwd_helper_req=no
14586 with_passwd_helper=no
14589 case "$with_passwd_helper" in
14592 cat >>confdefs.h <<_ACEOF
14593 #define PASSWD_HELPER_PROGRAM "$with_passwd_helper"
14596 have_passwd_helper=yes;;
14598 echo "error: --with-passwd-helper needs full pathname of helper (not '$with_passwd_helper')." >&2
14603 ###############################################################################
14605 # Check for -lgtk (and Gnome stuff)
14607 ###############################################################################
14610 with_gtk_req=unspecified
14612 # Check whether --with-gtk or --without-gtk was given.
14613 if test "${with_gtk+set}" = set; then
14614 withval="$with_gtk"
14615 with_gtk="$withval"; with_gtk_req="$withval"
14620 # if --with-gtk=/directory/ was specified, remember that directory so that
14621 # we can also look for the `gtk-config' program in that directory.
14622 case "$with_gtk" in
14624 gtk_dir="$with_gtk"
14632 case "$with_gtk" in
14637 echo "$as_me:$LINENO: checking for Gtk headers" >&5
14638 echo $ECHO_N "checking for Gtk headers... $ECHO_C" >&6
14639 d=$with_gtk/include
14640 if test -d $d; then
14641 X_CFLAGS="-I$d $X_CFLAGS"
14642 echo "$as_me:$LINENO: result: $d" >&5
14643 echo "${ECHO_T}$d" >&6
14645 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14646 echo "${ECHO_T}not found ($d: no such directory)" >&6
14649 echo "$as_me:$LINENO: checking for Gtk libs" >&5
14650 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
14652 if test -d $d; then
14653 X_LIBS="-L$d $X_LIBS"
14654 echo "$as_me:$LINENO: result: $d" >&5
14655 echo "${ECHO_T}$d" >&6
14657 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14658 echo "${ECHO_T}not found ($d: no such directory)" >&6
14661 # replace the directory string with "yes".
14663 with_gtk=$with_gtk_req
14668 echo "error: argument to --with-gtk must be \"yes\", \"no\", or a directory."
14669 echo " If it is a directory, then \`DIR/include' will be added to"
14670 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14676 if test "$with_gtk" != yes -a "$with_gtk" != no ; then
14677 echo "error: must be yes or no: --with-gtk=$with_gtk"
14682 parse_gtk_version_string() {
14685 maj=`echo $ac_gtk_version_string | sed -n 's/\..*//p'`
14686 min=`echo $ac_gtk_version_string | sed -n 's/[^.]*\.\([^.]*\).*/\1/p'`
14688 ac_gtk_version=`echo "$maj * 1000 + $min" | bc`
14689 if test -z "$ac_gtk_version"; then
14690 ac_gtk_version=unknown
14691 ac_gtk_version_string=unknown
14695 # Find pkg-config... (need this for both gtk and gdk_pixbuf.)
14696 # if the user specified --with-gtk=/foo/ then look there.
14699 if test ! -z "$gtk_dir"; then
14700 # canonicalize slashes.
14701 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
14702 gtk_path="$foo:$gtk_path"
14705 for ac_prog in pkg-config
14707 # Extract the first word of "$ac_prog", so it can be a program name with args.
14708 set dummy $ac_prog; ac_word=$2
14709 echo "$as_me:$LINENO: checking for $ac_word" >&5
14710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14711 if test "${ac_cv_path_pkg_config+set}" = set; then
14712 echo $ECHO_N "(cached) $ECHO_C" >&6
14714 case $pkg_config in
14716 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path.
14719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14720 for as_dir in $gtk_path
14723 test -z "$as_dir" && as_dir=.
14724 for ac_exec_ext in '' $ac_executable_extensions; do
14725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14726 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext"
14727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14736 pkg_config=$ac_cv_path_pkg_config
14738 if test -n "$pkg_config"; then
14739 echo "$as_me:$LINENO: result: $pkg_config" >&5
14740 echo "${ECHO_T}$pkg_config" >&6
14742 echo "$as_me:$LINENO: result: no" >&5
14743 echo "${ECHO_T}no" >&6
14746 test -n "$pkg_config" && break
14750 if test -z "$pkg_config" ; then
14751 { echo "$as_me:$LINENO: WARNING: pkg-config not found!" >&5
14752 echo "$as_me: WARNING: pkg-config not found!" >&2;}
14757 # Utility function for running pkg-config-based tests...
14760 pkg_check_version() {
14761 if test "$ok" = yes ; then
14764 echo "$as_me:$LINENO: checking for $req" >&5
14765 echo $ECHO_N "checking for $req... $ECHO_C" >&6
14766 if $pkg_config --exists "$req" ; then
14767 vers=`$pkg_config --modversion "$req"`
14768 if $pkg_config --exists "$req >= $min" ; then
14769 echo "$as_me:$LINENO: result: $vers" >&5
14770 echo "${ECHO_T}$vers" >&6
14774 echo "$as_me:$LINENO: result: $vers (wanted >= $min)" >&5
14775 echo "${ECHO_T}$vers (wanted >= $min)" >&6
14780 echo "$as_me:$LINENO: result: no" >&5
14781 echo "${ECHO_T}no" >&6
14792 if test "$with_gtk" = yes; then
14796 pkg_check_version gtk+-2.0 2.0.1 ; ac_gtk_version_string="$vers"
14797 pkg_check_version gmodule-2.0 2.0.0
14798 pkg_check_version libxml-2.0 2.4.6
14799 pkg_check_version libglade-2.0 1.99.0
14800 pkg_check_version gdk-pixbuf-2.0 2.0.0
14801 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
14804 if test "$have_gtk" = no; then
14805 if test -n "$ac_gtk_version_string" ; then
14806 gtk_halfassed="$ac_gtk_version_string"
14807 gtk_halfassed_lib="$req"
14811 if test "$have_gtk" = yes; then
14812 parse_gtk_version_string
14816 if test "$have_gtk" = yes; then
14817 echo "$as_me:$LINENO: checking for Gtk includes" >&5
14818 echo $ECHO_N "checking for Gtk includes... $ECHO_C" >&6
14819 if test "${ac_cv_gtk_config_cflags+set}" = set; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14822 ac_cv_gtk_config_cflags=`$pkg_config --cflags $pkgs`
14824 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
14825 echo "${ECHO_T}$ac_cv_gtk_config_cflags" >&6
14826 echo "$as_me:$LINENO: checking for Gtk libs" >&5
14827 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
14828 if test "${ac_cv_gtk_config_libs+set}" = set; then
14829 echo $ECHO_N "(cached) $ECHO_C" >&6
14831 ac_cv_gtk_config_libs=`$pkg_config --libs $pkgs`
14833 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
14834 echo "${ECHO_T}$ac_cv_gtk_config_libs" >&6
14836 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
14837 ac_gtk_config_libs=$ac_cv_gtk_config_libs
14841 GNOME_PANELDIR='$(GNOME_PANELDIR2)'
14842 if test "$have_gtk" = yes; then
14843 GNOME_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
14844 GNOME_DATADIR="$GNOME_DATADIR/share"
14847 if test "$have_gtk" = yes; then
14848 INCLUDES="$INCLUDES $ac_gtk_config_cflags"
14849 GTK_LIBS="$GTK_LIBS $ac_gtk_config_libs"
14850 cat >>confdefs.h <<\_ACEOF
14854 cat >>confdefs.h <<\_ACEOF
14855 #define HAVE_GTK2 1
14858 cat >>confdefs.h <<\_ACEOF
14867 # Check for the various Gnome help and URL loading programs.
14869 if test "$have_gtk" = yes; then
14870 for ac_prog in gnome-open
14872 # Extract the first word of "$ac_prog", so it can be a program name with args.
14873 set dummy $ac_prog; ac_word=$2
14874 echo "$as_me:$LINENO: checking for $ac_word" >&5
14875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14876 if test "${ac_cv_prog_gnome_open_program+set}" = set; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 if test -n "$gnome_open_program"; then
14880 ac_cv_prog_gnome_open_program="$gnome_open_program" # Let the user override the test.
14882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14883 for as_dir in $PATH
14886 test -z "$as_dir" && as_dir=.
14887 for ac_exec_ext in '' $ac_executable_extensions; do
14888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14889 ac_cv_prog_gnome_open_program="$ac_prog"
14890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14898 gnome_open_program=$ac_cv_prog_gnome_open_program
14899 if test -n "$gnome_open_program"; then
14900 echo "$as_me:$LINENO: result: $gnome_open_program" >&5
14901 echo "${ECHO_T}$gnome_open_program" >&6
14903 echo "$as_me:$LINENO: result: no" >&5
14904 echo "${ECHO_T}no" >&6
14907 test -n "$gnome_open_program" && break
14910 for ac_prog in gnome-url-show
14912 # Extract the first word of "$ac_prog", so it can be a program name with args.
14913 set dummy $ac_prog; ac_word=$2
14914 echo "$as_me:$LINENO: checking for $ac_word" >&5
14915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14916 if test "${ac_cv_prog_gnome_url_show_program+set}" = set; then
14917 echo $ECHO_N "(cached) $ECHO_C" >&6
14919 if test -n "$gnome_url_show_program"; then
14920 ac_cv_prog_gnome_url_show_program="$gnome_url_show_program" # Let the user override the test.
14922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14923 for as_dir in $PATH
14926 test -z "$as_dir" && as_dir=.
14927 for ac_exec_ext in '' $ac_executable_extensions; do
14928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14929 ac_cv_prog_gnome_url_show_program="$ac_prog"
14930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14938 gnome_url_show_program=$ac_cv_prog_gnome_url_show_program
14939 if test -n "$gnome_url_show_program"; then
14940 echo "$as_me:$LINENO: result: $gnome_url_show_program" >&5
14941 echo "${ECHO_T}$gnome_url_show_program" >&6
14943 echo "$as_me:$LINENO: result: no" >&5
14944 echo "${ECHO_T}no" >&6
14947 test -n "$gnome_url_show_program" && break
14953 ###############################################################################
14957 ###############################################################################
14960 with_motif_req=unspecified
14962 # Check whether --with-motif or --without-motif was given.
14963 if test "${with_motif+set}" = set; then
14964 withval="$with_motif"
14965 with_motif="$withval"; with_motif_req="$withval"
14971 case "$with_motif" in
14976 echo "$as_me:$LINENO: checking for Motif headers" >&5
14977 echo $ECHO_N "checking for Motif headers... $ECHO_C" >&6
14978 d=$with_motif/include
14979 if test -d $d; then
14980 X_CFLAGS="-I$d $X_CFLAGS"
14981 echo "$as_me:$LINENO: result: $d" >&5
14982 echo "${ECHO_T}$d" >&6
14984 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14985 echo "${ECHO_T}not found ($d: no such directory)" >&6
14988 echo "$as_me:$LINENO: checking for Motif libs" >&5
14989 echo $ECHO_N "checking for Motif libs... $ECHO_C" >&6
14991 if test -d $d; then
14992 X_LIBS="-L$d $X_LIBS"
14993 echo "$as_me:$LINENO: result: $d" >&5
14994 echo "${ECHO_T}$d" >&6
14996 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14997 echo "${ECHO_T}not found ($d: no such directory)" >&6
15000 # replace the directory string with "yes".
15001 with_motif_req="yes"
15002 with_motif=$with_motif_req
15007 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
15008 echo " If it is a directory, then \`DIR/include' will be added to"
15009 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15015 if test "$with_motif" != yes -a "$with_motif" != no ; then
15016 echo "error: must be yes or no: --with-motif=$with_motif"
15020 if test "$with_motif" = yes; then
15023 ac_save_CPPFLAGS="$CPPFLAGS"
15024 if test \! -z "$includedir" ; then
15025 CPPFLAGS="$CPPFLAGS -I$includedir"
15027 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15028 echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
15029 echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6
15030 if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15033 cat >conftest.$ac_ext <<_ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h. */
15039 #include <stdlib.h>
15041 #include <X11/Intrinsic.h>
15045 rm -f conftest.$ac_objext
15046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15047 (eval $ac_compile) 2>conftest.er1
15049 grep -v '^ *+' conftest.er1 >conftest.err
15051 cat conftest.err >&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } &&
15054 { ac_try='test -z "$ac_c_werror_flag"
15055 || test ! -s conftest.err'
15056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057 (eval $ac_try) 2>&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; } &&
15061 { ac_try='test -s conftest.$ac_objext'
15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; }; then
15067 ac_cv_header_Xm_Xm_h=yes
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072 ac_cv_header_Xm_Xm_h=no
15074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15076 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
15077 echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6
15078 if test $ac_cv_header_Xm_Xm_h = yes; then
15080 cat >>confdefs.h <<\_ACEOF
15081 #define HAVE_MOTIF 1
15084 MOTIF_LIBS="$MOTIF_LIBS -lXm"
15088 CPPFLAGS="$ac_save_CPPFLAGS"
15092 if test "$have_motif" = yes; then
15094 ac_save_CPPFLAGS="$CPPFLAGS"
15095 if test \! -z "$includedir" ; then
15096 CPPFLAGS="$CPPFLAGS -I$includedir"
15098 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15099 echo "$as_me:$LINENO: checking for Xm/ComboBox.h" >&5
15100 echo $ECHO_N "checking for Xm/ComboBox.h... $ECHO_C" >&6
15101 if test "${ac_cv_header_Xm_ComboBox_h+set}" = set; then
15102 echo $ECHO_N "(cached) $ECHO_C" >&6
15104 cat >conftest.$ac_ext <<_ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h. */
15110 #include <stdlib.h>
15112 #include <X11/Intrinsic.h>
15114 #include <Xm/ComboBox.h>
15116 rm -f conftest.$ac_objext
15117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15118 (eval $ac_compile) 2>conftest.er1
15120 grep -v '^ *+' conftest.er1 >conftest.err
15122 cat conftest.err >&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } &&
15125 { ac_try='test -z "$ac_c_werror_flag"
15126 || test ! -s conftest.err'
15127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15128 (eval $ac_try) 2>&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; } &&
15132 { ac_try='test -s conftest.$ac_objext'
15133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; }; then
15138 ac_cv_header_Xm_ComboBox_h=yes
15140 echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.$ac_ext >&5
15143 ac_cv_header_Xm_ComboBox_h=no
15145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15147 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_ComboBox_h" >&5
15148 echo "${ECHO_T}$ac_cv_header_Xm_ComboBox_h" >&6
15149 if test $ac_cv_header_Xm_ComboBox_h = yes; then
15150 cat >>confdefs.h <<\_ACEOF
15151 #define HAVE_XMCOMBOBOX 1
15157 CPPFLAGS="$ac_save_CPPFLAGS"
15161 ###############################################################################
15163 # Checking whether Motif is really Lesstif.
15165 ###############################################################################
15168 if test "$have_motif" = yes ; then
15169 echo "$as_me:$LINENO: checking whether Motif is really LessTif" >&5
15170 echo $ECHO_N "checking whether Motif is really LessTif... $ECHO_C" >&6
15171 if test "${ac_cv_have_lesstif+set}" = set; then
15172 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 ac_save_CPPFLAGS="$CPPFLAGS"
15176 if test \! -z "$includedir" ; then
15177 CPPFLAGS="$CPPFLAGS -I$includedir"
15179 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15180 cat >conftest.$ac_ext <<_ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h. */
15190 long vers = LesstifVersion;
15195 rm -f conftest.$ac_objext
15196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15197 (eval $ac_compile) 2>conftest.er1
15199 grep -v '^ *+' conftest.er1 >conftest.err
15201 cat conftest.err >&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); } &&
15204 { ac_try='test -z "$ac_c_werror_flag"
15205 || test ! -s conftest.err'
15206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207 (eval $ac_try) 2>&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); }; } &&
15211 { ac_try='test -s conftest.$ac_objext'
15212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15213 (eval $ac_try) 2>&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); }; }; then
15217 ac_cv_have_lesstif=yes
15219 echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15222 ac_cv_have_lesstif=no
15224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15225 CPPFLAGS="$ac_save_CPPFLAGS"
15227 echo "$as_me:$LINENO: result: $ac_cv_have_lesstif" >&5
15228 echo "${ECHO_T}$ac_cv_have_lesstif" >&6
15229 have_lesstif=$ac_cv_have_lesstif
15233 lesstif_version=unknown
15234 lesstif_version_string=unknown
15236 if test "$have_lesstif" = yes ; then
15238 echo unknown > conftest-lt
15239 echo "$as_me:$LINENO: checking LessTif version number" >&5
15240 echo $ECHO_N "checking LessTif version number... $ECHO_C" >&6
15241 if test "${ac_cv_lesstif_version_string+set}" = set; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15245 ac_save_CPPFLAGS="$CPPFLAGS"
15246 if test \! -z "$includedir" ; then
15247 CPPFLAGS="$CPPFLAGS -I$includedir"
15249 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15250 if test "$cross_compiling" = yes; then
15251 ac_cv_lesstif_version=unknown
15252 ac_cv_lesstif_version_string=unknown
15254 cat >conftest.$ac_ext <<_ACEOF
15257 cat confdefs.h >>conftest.$ac_ext
15258 cat >>conftest.$ac_ext <<_ACEOF
15259 /* end confdefs.h. */
15263 FILE *f = fopen("conftest-lt", "w");
15265 fprintf(f, "%d %d.%d\n", LesstifVersion,
15266 LESSTIF_VERSION, LESSTIF_REVISION);
15271 rm -f conftest$ac_exeext
15272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15273 (eval $ac_link) 2>&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
15282 ltv=`cat conftest-lt`
15283 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
15284 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
15286 echo "$as_me: program exited with status $ac_status" >&5
15287 echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15290 ( exit $ac_status )
15291 ac_cv_lesstif_version=unknown
15292 ac_cv_lesstif_version_string=unknown
15294 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15296 CPPFLAGS="$ac_save_CPPFLAGS"
15298 echo "$as_me:$LINENO: result: $ac_cv_lesstif_version_string" >&5
15299 echo "${ECHO_T}$ac_cv_lesstif_version_string" >&6
15301 lesstif_version=$ac_cv_lesstif_version
15302 lesstif_version_string=$ac_cv_lesstif_version_string
15307 if test "$have_motif" = yes ; then
15309 echo unknown > conftest-mt
15310 echo "$as_me:$LINENO: checking Motif version number" >&5
15311 echo $ECHO_N "checking Motif version number... $ECHO_C" >&6
15312 if test "${ac_cv_motif_version_string+set}" = set; then
15313 echo $ECHO_N "(cached) $ECHO_C" >&6
15316 ac_save_CPPFLAGS="$CPPFLAGS"
15317 if test \! -z "$includedir" ; then
15318 CPPFLAGS="$CPPFLAGS -I$includedir"
15320 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15321 if test "$cross_compiling" = yes; then
15322 ac_cv_motif_version=unknown
15323 ac_cv_motif_version_string=unknown
15325 cat >conftest.$ac_ext <<_ACEOF
15328 cat confdefs.h >>conftest.$ac_ext
15329 cat >>conftest.$ac_ext <<_ACEOF
15330 /* end confdefs.h. */
15334 FILE *f = fopen("conftest-mt", "w");
15336 fprintf(f, "%d %d.%d\n", XmVersion,
15337 XmVERSION, XmREVISION);
15342 rm -f conftest$ac_exeext
15343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15344 (eval $ac_link) 2>&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15349 (eval $ac_try) 2>&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); }; }; then
15353 mtv=`cat conftest-mt`
15354 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
15355 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
15357 echo "$as_me: program exited with status $ac_status" >&5
15358 echo "$as_me: failed program was:" >&5
15359 sed 's/^/| /' conftest.$ac_ext >&5
15361 ( exit $ac_status )
15362 ac_cv_motif_version=unknown
15363 ac_cv_motif_version_string=unknown
15365 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15367 CPPFLAGS="$ac_save_CPPFLAGS"
15369 echo "$as_me:$LINENO: result: $ac_cv_motif_version_string" >&5
15370 echo "${ECHO_T}$ac_cv_motif_version_string" >&6
15372 motif_version=$ac_cv_motif_version
15373 motif_version_string=$ac_cv_motif_version_string
15378 ###############################################################################
15380 # Checking whether Motif requires -lXpm.
15382 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
15383 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
15384 # of the library whether to build the XPM code into libXm, or whether
15385 # to rely on an external libXm. So the only way to tell whether XPM is
15386 # a link-time requirement is to examine libXm.a, which is very
15387 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
15388 # always link against XPM if the XPM lib exists (and this will be a
15389 # no-op if libXm happens to already have the XPM code in it.)
15391 ###############################################################################
15393 motif_requires_xpm=no
15394 if test "$have_motif" = yes ; then
15395 echo "$as_me:$LINENO: checking whether Motif requires XPM" >&5
15396 echo $ECHO_N "checking whether Motif requires XPM... $ECHO_C" >&6
15397 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
15399 motif_requires_xpm=yes
15400 echo "$as_me:$LINENO: result: maybe" >&5
15401 echo "${ECHO_T}maybe" >&6
15403 echo "$as_me:$LINENO: result: no" >&5
15404 echo "${ECHO_T}no" >&6
15409 ###############################################################################
15411 # Checking whether Motif requires -lXp.
15413 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
15414 # Extension". Why this extension isn't in -lXext with all the others,
15417 ###############################################################################
15420 if test "$have_motif" = yes ; then
15423 ac_save_CPPFLAGS="$CPPFLAGS"
15424 ac_save_LDFLAGS="$LDFLAGS"
15425 # ac_save_LIBS="$LIBS"
15427 if test \! -z "$includedir" ; then
15428 CPPFLAGS="$CPPFLAGS -I$includedir"
15430 # note: $X_CFLAGS includes $x_includes
15431 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15433 if test \! -z "$libdir" ; then
15434 LDFLAGS="$LDFLAGS -L$libdir"
15436 # note: $X_LIBS includes $x_libraries
15437 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15439 echo "$as_me:$LINENO: checking for XpQueryExtension in -lXp" >&5
15440 echo $ECHO_N "checking for XpQueryExtension in -lXp... $ECHO_C" >&6
15441 if test "${ac_cv_lib_Xp_XpQueryExtension+set}" = set; then
15442 echo $ECHO_N "(cached) $ECHO_C" >&6
15444 ac_check_lib_save_LIBS=$LIBS
15445 LIBS="-lXp -lX11 -lXext -lm $LIBS"
15446 cat >conftest.$ac_ext <<_ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h. */
15453 /* Override any gcc2 internal prototype to avoid an error. */
15457 /* We use char because int might match the return type of a gcc2
15458 builtin and then its argument prototype would still apply. */
15459 char XpQueryExtension ();
15463 XpQueryExtension ();
15468 rm -f conftest.$ac_objext conftest$ac_exeext
15469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15470 (eval $ac_link) 2>conftest.er1
15472 grep -v '^ *+' conftest.er1 >conftest.err
15474 cat conftest.err >&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); } &&
15477 { ac_try='test -z "$ac_c_werror_flag"
15478 || test ! -s conftest.err'
15479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15480 (eval $ac_try) 2>&5
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); }; } &&
15484 { ac_try='test -s conftest$ac_exeext'
15485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15486 (eval $ac_try) 2>&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); }; }; then
15490 ac_cv_lib_Xp_XpQueryExtension=yes
15492 echo "$as_me: failed program was:" >&5
15493 sed 's/^/| /' conftest.$ac_ext >&5
15495 ac_cv_lib_Xp_XpQueryExtension=no
15497 rm -f conftest.err conftest.$ac_objext \
15498 conftest$ac_exeext conftest.$ac_ext
15499 LIBS=$ac_check_lib_save_LIBS
15501 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
15502 echo "${ECHO_T}$ac_cv_lib_Xp_XpQueryExtension" >&6
15503 if test $ac_cv_lib_Xp_XpQueryExtension = yes; then
15504 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
15509 CPPFLAGS="$ac_save_CPPFLAGS"
15510 LDFLAGS="$ac_save_LDFLAGS"
15511 # LIBS="$ac_save_LIBS"
15516 ###############################################################################
15518 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
15520 ###############################################################################
15523 if test "$have_motif" = yes ; then
15525 ac_save_CPPFLAGS="$CPPFLAGS"
15526 ac_save_LDFLAGS="$LDFLAGS"
15527 # ac_save_LIBS="$LIBS"
15529 if test \! -z "$includedir" ; then
15530 CPPFLAGS="$CPPFLAGS -I$includedir"
15532 # note: $X_CFLAGS includes $x_includes
15533 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15535 if test \! -z "$libdir" ; then
15536 LDFLAGS="$LDFLAGS -L$libdir"
15538 # note: $X_LIBS includes $x_libraries
15539 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15541 echo "$as_me:$LINENO: checking for _Xsetlocale in -lXintl" >&5
15542 echo $ECHO_N "checking for _Xsetlocale in -lXintl... $ECHO_C" >&6
15543 if test "${ac_cv_lib_Xintl__Xsetlocale+set}" = set; then
15544 echo $ECHO_N "(cached) $ECHO_C" >&6
15546 ac_check_lib_save_LIBS=$LIBS
15547 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
15548 cat >conftest.$ac_ext <<_ACEOF
15551 cat confdefs.h >>conftest.$ac_ext
15552 cat >>conftest.$ac_ext <<_ACEOF
15553 /* end confdefs.h. */
15555 /* Override any gcc2 internal prototype to avoid an error. */
15559 /* We use char because int might match the return type of a gcc2
15560 builtin and then its argument prototype would still apply. */
15561 char _Xsetlocale ();
15570 rm -f conftest.$ac_objext conftest$ac_exeext
15571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15572 (eval $ac_link) 2>conftest.er1
15574 grep -v '^ *+' conftest.er1 >conftest.err
15576 cat conftest.err >&5
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); } &&
15579 { ac_try='test -z "$ac_c_werror_flag"
15580 || test ! -s conftest.err'
15581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582 (eval $ac_try) 2>&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); }; } &&
15586 { ac_try='test -s conftest$ac_exeext'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; }; then
15592 ac_cv_lib_Xintl__Xsetlocale=yes
15594 echo "$as_me: failed program was:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15597 ac_cv_lib_Xintl__Xsetlocale=no
15599 rm -f conftest.err conftest.$ac_objext \
15600 conftest$ac_exeext conftest.$ac_ext
15601 LIBS=$ac_check_lib_save_LIBS
15603 echo "$as_me:$LINENO: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
15604 echo "${ECHO_T}$ac_cv_lib_Xintl__Xsetlocale" >&6
15605 if test $ac_cv_lib_Xintl__Xsetlocale = yes; then
15611 CPPFLAGS="$ac_save_CPPFLAGS"
15612 LDFLAGS="$ac_save_LDFLAGS"
15613 # LIBS="$ac_save_LIBS"
15615 if test "$have_xintl" = yes; then
15616 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
15621 ###############################################################################
15623 # Check for -lGL or -lMesaGL.
15625 ###############################################################################
15629 with_gl_req=unspecified
15632 # Check whether --with-gl or --without-gl was given.
15633 if test "${with_gl+set}" = set; then
15635 with_gl="$withval"; with_gl_req="$withval"
15646 echo "$as_me:$LINENO: checking for GL headers" >&5
15647 echo $ECHO_N "checking for GL headers... $ECHO_C" >&6
15649 if test -d $d; then
15650 X_CFLAGS="-I$d $X_CFLAGS"
15651 echo "$as_me:$LINENO: result: $d" >&5
15652 echo "${ECHO_T}$d" >&6
15654 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15655 echo "${ECHO_T}not found ($d: no such directory)" >&6
15658 echo "$as_me:$LINENO: checking for GL libs" >&5
15659 echo $ECHO_N "checking for GL libs... $ECHO_C" >&6
15661 if test -d $d; then
15662 X_LIBS="-L$d $X_LIBS"
15663 echo "$as_me:$LINENO: result: $d" >&5
15664 echo "${ECHO_T}$d" >&6
15666 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15667 echo "${ECHO_T}not found ($d: no such directory)" >&6
15670 # replace the directory string with "yes".
15672 with_gl=$with_gl_req
15677 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
15678 echo " If it is a directory, then \`DIR/include' will be added to"
15679 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15685 ac_mesagl_version=unknown
15686 ac_mesagl_version_string=unknown
15688 if test "$with_gl" = yes; then
15690 ac_save_CPPFLAGS="$CPPFLAGS"
15691 if test \! -z "$includedir" ; then
15692 CPPFLAGS="$CPPFLAGS -I$includedir"
15694 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15695 if test "${ac_cv_header_GL_gl_h+set}" = set; then
15696 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
15697 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
15698 if test "${ac_cv_header_GL_gl_h+set}" = set; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15701 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
15702 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
15704 # Is the header compilable?
15705 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
15706 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
15707 cat >conftest.$ac_ext <<_ACEOF
15710 cat confdefs.h >>conftest.$ac_ext
15711 cat >>conftest.$ac_ext <<_ACEOF
15712 /* end confdefs.h. */
15713 $ac_includes_default
15716 rm -f conftest.$ac_objext
15717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15718 (eval $ac_compile) 2>conftest.er1
15720 grep -v '^ *+' conftest.er1 >conftest.err
15722 cat conftest.err >&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } &&
15725 { ac_try='test -z "$ac_c_werror_flag"
15726 || test ! -s conftest.err'
15727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15728 (eval $ac_try) 2>&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; } &&
15732 { ac_try='test -s conftest.$ac_objext'
15733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734 (eval $ac_try) 2>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; }; then
15738 ac_header_compiler=yes
15740 echo "$as_me: failed program was:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15743 ac_header_compiler=no
15745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15747 echo "${ECHO_T}$ac_header_compiler" >&6
15749 # Is the header present?
15750 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
15751 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
15752 cat >conftest.$ac_ext <<_ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15763 grep -v '^ *+' conftest.er1 >conftest.err
15765 cat conftest.err >&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } >/dev/null; then
15768 if test -s conftest.err; then
15769 ac_cpp_err=$ac_c_preproc_warn_flag
15770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15777 if test -z "$ac_cpp_err"; then
15778 ac_header_preproc=yes
15780 echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15783 ac_header_preproc=no
15785 rm -f conftest.err conftest.$ac_ext
15786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15787 echo "${ECHO_T}$ac_header_preproc" >&6
15789 # So? What about this header?
15790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15792 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15793 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15794 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
15795 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
15796 ac_header_preproc=yes
15799 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
15800 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
15801 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
15802 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
15803 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
15804 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
15805 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
15806 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
15807 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
15808 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
15809 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
15810 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
15813 ## ------------------------------------------ ##
15814 ## Report this to the AC_PACKAGE_NAME lists. ##
15815 ## ------------------------------------------ ##
15818 sed "s/^/$as_me: WARNING: /" >&2
15821 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
15822 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
15823 if test "${ac_cv_header_GL_gl_h+set}" = set; then
15824 echo $ECHO_N "(cached) $ECHO_C" >&6
15826 ac_cv_header_GL_gl_h=$ac_header_preproc
15828 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
15829 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
15832 if test $ac_cv_header_GL_gl_h = yes; then
15839 CPPFLAGS="$ac_save_CPPFLAGS"
15840 if test "$have_gl" = yes ; then
15842 ac_save_CPPFLAGS="$CPPFLAGS"
15843 if test \! -z "$includedir" ; then
15844 CPPFLAGS="$CPPFLAGS -I$includedir"
15846 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15847 echo "$as_me:$LINENO: checking for GL/glx.h" >&5
15848 echo $ECHO_N "checking for GL/glx.h... $ECHO_C" >&6
15849 if test "${ac_cv_header_GL_glx_h+set}" = set; then
15850 echo $ECHO_N "(cached) $ECHO_C" >&6
15852 cat >conftest.$ac_ext <<_ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h. */
15860 #include <GL/glx.h>
15862 rm -f conftest.$ac_objext
15863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15864 (eval $ac_compile) 2>conftest.er1
15866 grep -v '^ *+' conftest.er1 >conftest.err
15868 cat conftest.err >&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); } &&
15871 { ac_try='test -z "$ac_c_werror_flag"
15872 || test ! -s conftest.err'
15873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874 (eval $ac_try) 2>&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; } &&
15878 { ac_try='test -s conftest.$ac_objext'
15879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15880 (eval $ac_try) 2>&5
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; }; then
15884 ac_cv_header_GL_glx_h=yes
15886 echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15889 ac_cv_header_GL_glx_h=no
15891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15893 echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5
15894 echo "${ECHO_T}$ac_cv_header_GL_glx_h" >&6
15895 if test $ac_cv_header_GL_glx_h = yes; then
15902 CPPFLAGS="$ac_save_CPPFLAGS"
15905 # If we have the headers, try and figure out which vendor it's from.
15907 if test "$have_gl" = yes ; then
15909 # We need to know whether it's MesaGL so that we know which libraries
15912 echo "$as_me:$LINENO: checking whether GL is really MesaGL" >&5
15913 echo $ECHO_N "checking whether GL is really MesaGL... $ECHO_C" >&6
15914 if test "${ac_cv_have_mesa_gl+set}" = set; then
15915 echo $ECHO_N "(cached) $ECHO_C" >&6
15917 ac_cv_have_mesa_gl=no
15919 ac_save_CPPFLAGS="$CPPFLAGS"
15920 if test \! -z "$includedir" ; then
15921 CPPFLAGS="$CPPFLAGS -I$includedir"
15923 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15924 cat >conftest.$ac_ext <<_ACEOF
15927 cat confdefs.h >>conftest.$ac_ext
15928 cat >>conftest.$ac_ext <<_ACEOF
15929 /* end confdefs.h. */
15930 #include <GL/glx.h>
15933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15934 $EGREP "Mesa|MESA" >/dev/null 2>&1; then
15935 ac_cv_have_mesa_gl=yes
15939 CPPFLAGS="$ac_save_CPPFLAGS"
15942 echo "$as_me:$LINENO: result: $ac_cv_have_mesa_gl" >&5
15943 echo "${ECHO_T}$ac_cv_have_mesa_gl" >&6
15944 ac_have_mesa_gl=$ac_cv_have_mesa_gl
15951 # Some versions of MesaGL are compiled to require -lpthread.
15952 # So if the Mesa headers exist, and -lpthread exists, then always
15953 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
15955 if test "$ac_have_mesa_gl" = yes; then
15956 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
15957 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
15958 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
15959 echo $ECHO_N "(cached) $ECHO_C" >&6
15961 ac_check_lib_save_LIBS=$LIBS
15962 LIBS="-lpthread $LIBS"
15963 cat >conftest.$ac_ext <<_ACEOF
15966 cat confdefs.h >>conftest.$ac_ext
15967 cat >>conftest.$ac_ext <<_ACEOF
15968 /* end confdefs.h. */
15970 /* Override any gcc2 internal prototype to avoid an error. */
15974 /* We use char because int might match the return type of a gcc2
15975 builtin and then its argument prototype would still apply. */
15976 char pthread_create ();
15985 rm -f conftest.$ac_objext conftest$ac_exeext
15986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15987 (eval $ac_link) 2>conftest.er1
15989 grep -v '^ *+' conftest.er1 >conftest.err
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } &&
15994 { ac_try='test -z "$ac_c_werror_flag"
15995 || test ! -s conftest.err'
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; } &&
16001 { ac_try='test -s conftest$ac_exeext'
16002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003 (eval $ac_try) 2>&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; }; then
16007 ac_cv_lib_pthread_pthread_create=yes
16009 echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16012 ac_cv_lib_pthread_pthread_create=no
16014 rm -f conftest.err conftest.$ac_objext \
16015 conftest$ac_exeext conftest.$ac_ext
16016 LIBS=$ac_check_lib_save_LIBS
16018 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
16019 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
16020 if test $ac_cv_lib_pthread_pthread_create = yes; then
16021 GL_LIBS="-lpthread"
16027 # If we have Mesa headers, check to see if we can link against -lMesaGL.
16028 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
16029 # Else, warn that GL is busted. (We have the headers, but no libs.)
16032 if test "$ac_have_mesa_gl" = yes ; then
16034 ac_save_CPPFLAGS="$CPPFLAGS"
16035 ac_save_LDFLAGS="$LDFLAGS"
16036 # ac_save_LIBS="$LIBS"
16038 if test \! -z "$includedir" ; then
16039 CPPFLAGS="$CPPFLAGS -I$includedir"
16041 # note: $X_CFLAGS includes $x_includes
16042 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16044 if test \! -z "$libdir" ; then
16045 LDFLAGS="$LDFLAGS -L$libdir"
16047 # note: $X_LIBS includes $x_libraries
16048 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16050 echo "$as_me:$LINENO: checking for glXCreateContext in -lMesaGL" >&5
16051 echo $ECHO_N "checking for glXCreateContext in -lMesaGL... $ECHO_C" >&6
16052 if test "${ac_cv_lib_MesaGL_glXCreateContext+set}" = set; then
16053 echo $ECHO_N "(cached) $ECHO_C" >&6
16055 ac_check_lib_save_LIBS=$LIBS
16056 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
16057 cat >conftest.$ac_ext <<_ACEOF
16060 cat confdefs.h >>conftest.$ac_ext
16061 cat >>conftest.$ac_ext <<_ACEOF
16062 /* end confdefs.h. */
16064 /* Override any gcc2 internal prototype to avoid an error. */
16068 /* We use char because int might match the return type of a gcc2
16069 builtin and then its argument prototype would still apply. */
16070 char glXCreateContext ();
16074 glXCreateContext ();
16079 rm -f conftest.$ac_objext conftest$ac_exeext
16080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16081 (eval $ac_link) 2>conftest.er1
16083 grep -v '^ *+' conftest.er1 >conftest.err
16085 cat conftest.err >&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); } &&
16088 { ac_try='test -z "$ac_c_werror_flag"
16089 || test ! -s conftest.err'
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; } &&
16095 { ac_try='test -s conftest$ac_exeext'
16096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16097 (eval $ac_try) 2>&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); }; }; then
16101 ac_cv_lib_MesaGL_glXCreateContext=yes
16103 echo "$as_me: failed program was:" >&5
16104 sed 's/^/| /' conftest.$ac_ext >&5
16106 ac_cv_lib_MesaGL_glXCreateContext=no
16108 rm -f conftest.err conftest.$ac_objext \
16109 conftest$ac_exeext conftest.$ac_ext
16110 LIBS=$ac_check_lib_save_LIBS
16112 echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
16113 echo "${ECHO_T}$ac_cv_lib_MesaGL_glXCreateContext" >&6
16114 if test $ac_cv_lib_MesaGL_glXCreateContext = yes; then
16116 GL_LIBS="-lMesaGL -lMesaGLU $VIDMODE_LIBS $GL_LIBS"
16119 CPPFLAGS="$ac_save_CPPFLAGS"
16120 LDFLAGS="$ac_save_LDFLAGS"
16121 # LIBS="$ac_save_LIBS"
16125 if test "$gl_lib_1" = "" ; then
16127 ac_save_CPPFLAGS="$CPPFLAGS"
16128 ac_save_LDFLAGS="$LDFLAGS"
16129 # ac_save_LIBS="$LIBS"
16131 if test \! -z "$includedir" ; then
16132 CPPFLAGS="$CPPFLAGS -I$includedir"
16134 # note: $X_CFLAGS includes $x_includes
16135 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16137 if test \! -z "$libdir" ; then
16138 LDFLAGS="$LDFLAGS -L$libdir"
16140 # note: $X_LIBS includes $x_libraries
16141 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16143 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
16144 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
16145 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16148 ac_check_lib_save_LIBS=$LIBS
16149 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
16150 cat >conftest.$ac_ext <<_ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16157 /* Override any gcc2 internal prototype to avoid an error. */
16161 /* We use char because int might match the return type of a gcc2
16162 builtin and then its argument prototype would still apply. */
16163 char glXCreateContext ();
16167 glXCreateContext ();
16172 rm -f conftest.$ac_objext conftest$ac_exeext
16173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16174 (eval $ac_link) 2>conftest.er1
16176 grep -v '^ *+' conftest.er1 >conftest.err
16178 cat conftest.err >&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } &&
16181 { ac_try='test -z "$ac_c_werror_flag"
16182 || test ! -s conftest.err'
16183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16184 (eval $ac_try) 2>&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); }; } &&
16188 { ac_try='test -s conftest$ac_exeext'
16189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16190 (eval $ac_try) 2>&5
16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16193 (exit $ac_status); }; }; then
16194 ac_cv_lib_GL_glXCreateContext=yes
16196 echo "$as_me: failed program was:" >&5
16197 sed 's/^/| /' conftest.$ac_ext >&5
16199 ac_cv_lib_GL_glXCreateContext=no
16201 rm -f conftest.err conftest.$ac_objext \
16202 conftest$ac_exeext conftest.$ac_ext
16203 LIBS=$ac_check_lib_save_LIBS
16205 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
16206 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
16207 if test $ac_cv_lib_GL_glXCreateContext = yes; then
16209 GL_LIBS="-lGL -lGLU $VIDMODE_LIBS $GL_LIBS"
16212 CPPFLAGS="$ac_save_CPPFLAGS"
16213 LDFLAGS="$ac_save_LDFLAGS"
16214 # LIBS="$ac_save_LIBS"
16218 if test "$gl_lib_1" = "" ; then
16219 # we have headers, but no libs -- bail.
16224 # linking works -- we can build the GL hacks.
16225 cat >>confdefs.h <<\_ACEOF
16229 if test "$ac_have_mesa_gl" = yes ; then
16230 cat >>confdefs.h <<\_ACEOF
16231 #define HAVE_MESA_GL 1
16239 # Now that we know we have GL headers and libs, do some more GL testing.
16242 if test "$have_gl" = yes ; then
16243 # If it's MesaGL, we'd like to issue a warning if the version number
16244 # is less than or equal to 2.6, because that version had a security bug.
16246 if test "$ac_have_mesa_gl" = yes; then
16248 echo "$as_me:$LINENO: checking MesaGL version number" >&5
16249 echo $ECHO_N "checking MesaGL version number... $ECHO_C" >&6
16250 if test "${ac_cv_mesagl_version_string+set}" = set; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16253 cat > conftest.$ac_ext <<EOF
16254 #line 16260 "configure"
16255 #include "confdefs.h"
16257 #ifndef MESA_MAJOR_VERSION
16258 # include <GL/xmesa.h>
16259 # ifdef XMESA_MAJOR_VERSION
16260 /* Around Mesa 3.2, they took out the Mesa version number, so instead,
16261 we have to check the XMesa version number (the number of the X protocol
16262 support, which seems to be the same as the Mesa version number.)
16264 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
16265 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
16267 /* Oh great. Some time after 3.4, they took out the xmesa.h header file,
16268 so we have no way of telling what version of Mesa this is at all.
16269 So, we'll guess that the osmesa version (the "offscreen protocol")
16270 is less than or equal to the real mesa version number. Except that
16271 if OSmesa is 3.3, assume at least Mesa 3.4, since OSmesa was 3.3 in
16272 Mesa 3.4. And Mesa 3.3 had xmesa.h. What a complete load of shit!
16274 # include <GL/osmesa.h>
16275 # define MESA_MAJOR_VERSION OSMESA_MAJOR_VERSION
16276 # define MESA_MINOR_VERSION OSMESA_MINOR_VERSION or newer, probably?
16277 # if OSMESA_MAJOR_VERSION == 3 && OSMESA_MINOR_VERSION == 3
16278 # undef MESA_MINOR_VERSION
16279 # define MESA_MINOR_VERSION 4 or newer, probably?
16283 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
16286 ac_save_CPPFLAGS="$CPPFLAGS"
16287 if test \! -z "$includedir" ; then
16288 CPPFLAGS="$CPPFLAGS -I$includedir"
16290 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16292 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | grep configure:`
16296 mglv=`echo "$mglv" | sed -n \
16297 's/^configure: *\([0-9][0-9]*\) *\([0-9].*\)$/\1.\2/p'`
16300 rm -f conftest.$ac_ext
16302 CPPFLAGS="$ac_save_CPPFLAGS"
16304 if test "$mglv" = ""; then
16305 ac_mesagl_version=unknown
16306 ac_mesagl_version_string=unknown
16308 ac_mesagl_version_string="$mglv"
16311 maj=`echo "$mglv" | sed -n 's/^\([0-9][0-9]*\)\..*$/\1/p'`
16312 min=`echo "$mglv" | sed -n 's/^.*\.\([0-9][0-9]*\).*$/\1/p'`
16314 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
16315 if test -z "$ac_mesagl_version"; then
16316 ac_mesagl_version=unknown
16317 ac_mesagl_version_string=unknown
16320 ac_cv_mesagl_version=$ac_mesagl_version
16321 ac_cv_mesagl_version_string=$ac_mesagl_version_string
16324 echo "$as_me:$LINENO: result: $ac_cv_mesagl_version_string" >&5
16325 echo "${ECHO_T}$ac_cv_mesagl_version_string" >&6
16326 ac_mesagl_version=$ac_cv_mesagl_version
16327 ac_mesagl_version_string=$ac_cv_mesagl_version_string
16331 # Check for OpenGL 1.1 features.
16334 ac_save_CPPFLAGS="$CPPFLAGS"
16335 ac_save_LDFLAGS="$LDFLAGS"
16336 # ac_save_LIBS="$LIBS"
16338 if test \! -z "$includedir" ; then
16339 CPPFLAGS="$CPPFLAGS -I$includedir"
16341 # note: $X_CFLAGS includes $x_includes
16342 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16344 if test \! -z "$libdir" ; then
16345 LDFLAGS="$LDFLAGS -L$libdir"
16347 # note: $X_LIBS includes $x_libraries
16348 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16350 as_ac_Lib=`echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
16351 echo "$as_me:$LINENO: checking for glBindTexture in -l$gl_lib_1" >&5
16352 echo $ECHO_N "checking for glBindTexture in -l$gl_lib_1... $ECHO_C" >&6
16353 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16354 echo $ECHO_N "(cached) $ECHO_C" >&6
16356 ac_check_lib_save_LIBS=$LIBS
16357 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
16358 cat >conftest.$ac_ext <<_ACEOF
16361 cat confdefs.h >>conftest.$ac_ext
16362 cat >>conftest.$ac_ext <<_ACEOF
16363 /* end confdefs.h. */
16365 /* Override any gcc2 internal prototype to avoid an error. */
16369 /* We use char because int might match the return type of a gcc2
16370 builtin and then its argument prototype would still apply. */
16371 char glBindTexture ();
16380 rm -f conftest.$ac_objext conftest$ac_exeext
16381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16382 (eval $ac_link) 2>conftest.er1
16384 grep -v '^ *+' conftest.er1 >conftest.err
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
16389 { ac_try='test -z "$ac_c_werror_flag"
16390 || test ! -s conftest.err'
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; } &&
16396 { ac_try='test -s conftest$ac_exeext'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 eval "$as_ac_Lib=yes"
16404 echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16407 eval "$as_ac_Lib=no"
16409 rm -f conftest.err conftest.$ac_objext \
16410 conftest$ac_exeext conftest.$ac_ext
16411 LIBS=$ac_check_lib_save_LIBS
16413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16414 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16415 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16416 cat >>confdefs.h <<\_ACEOF
16417 #define HAVE_GLBINDTEXTURE 1
16424 CPPFLAGS="$ac_save_CPPFLAGS"
16425 LDFLAGS="$ac_save_LDFLAGS"
16426 # LIBS="$ac_save_LIBS"
16430 elif test "$with_gl" != no; then
16431 echo "error: must be yes or no: --with-gl=$with_gl"
16436 ###############################################################################
16440 ###############################################################################
16443 with_gle_req=unspecified
16446 # Check whether --with-gle or --without-gle was given.
16447 if test "${with_gle+set}" = set; then
16448 withval="$with_gle"
16449 with_gle="$withval"; with_gle_req="$withval"
16455 case "$with_gle" in
16460 echo "$as_me:$LINENO: checking for GLE headers" >&5
16461 echo $ECHO_N "checking for GLE headers... $ECHO_C" >&6
16462 d=$with_gle/include
16463 if test -d $d; then
16464 X_CFLAGS="-I$d $X_CFLAGS"
16465 echo "$as_me:$LINENO: result: $d" >&5
16466 echo "${ECHO_T}$d" >&6
16468 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16469 echo "${ECHO_T}not found ($d: no such directory)" >&6
16472 echo "$as_me:$LINENO: checking for GLE libs" >&5
16473 echo $ECHO_N "checking for GLE libs... $ECHO_C" >&6
16475 if test -d $d; then
16476 X_LIBS="-L$d $X_LIBS"
16477 echo "$as_me:$LINENO: result: $d" >&5
16478 echo "${ECHO_T}$d" >&6
16480 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16481 echo "${ECHO_T}not found ($d: no such directory)" >&6
16484 # replace the directory string with "yes".
16486 with_gle=$with_gle_req
16491 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
16492 echo " If it is a directory, then \`DIR/include' will be added to"
16493 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16501 if test "$have_gl" = no ; then
16503 elif test "$with_gle" = yes; then
16506 ac_save_CPPFLAGS="$CPPFLAGS"
16507 if test \! -z "$includedir" ; then
16508 CPPFLAGS="$CPPFLAGS -I$includedir"
16510 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16511 echo "$as_me:$LINENO: checking for GL/gle.h" >&5
16512 echo $ECHO_N "checking for GL/gle.h... $ECHO_C" >&6
16513 if test "${ac_cv_header_GL_gle_h+set}" = set; then
16514 echo $ECHO_N "(cached) $ECHO_C" >&6
16516 cat >conftest.$ac_ext <<_ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h. */
16524 #include <GL/gle.h>
16526 rm -f conftest.$ac_objext
16527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16528 (eval $ac_compile) 2>conftest.er1
16530 grep -v '^ *+' conftest.er1 >conftest.err
16532 cat conftest.err >&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } &&
16535 { ac_try='test -z "$ac_c_werror_flag"
16536 || test ! -s conftest.err'
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; } &&
16542 { ac_try='test -s conftest.$ac_objext'
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16548 ac_cv_header_GL_gle_h=yes
16550 echo "$as_me: failed program was:" >&5
16551 sed 's/^/| /' conftest.$ac_ext >&5
16553 ac_cv_header_GL_gle_h=no
16555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16557 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gle_h" >&5
16558 echo "${ECHO_T}$ac_cv_header_GL_gle_h" >&6
16559 if test $ac_cv_header_GL_gle_h = yes; then
16566 CPPFLAGS="$ac_save_CPPFLAGS"
16567 if test "$have_gle3" = yes ; then
16571 ac_save_CPPFLAGS="$CPPFLAGS"
16572 if test \! -z "$includedir" ; then
16573 CPPFLAGS="$CPPFLAGS -I$includedir"
16575 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16576 echo "$as_me:$LINENO: checking for GL/gutil.h" >&5
16577 echo $ECHO_N "checking for GL/gutil.h... $ECHO_C" >&6
16578 if test "${ac_cv_header_GL_gutil_h+set}" = set; then
16579 echo $ECHO_N "(cached) $ECHO_C" >&6
16581 cat >conftest.$ac_ext <<_ACEOF
16584 cat confdefs.h >>conftest.$ac_ext
16585 cat >>conftest.$ac_ext <<_ACEOF
16586 /* end confdefs.h. */
16589 #include <GL/gutil.h>
16591 rm -f conftest.$ac_objext
16592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16593 (eval $ac_compile) 2>conftest.er1
16595 grep -v '^ *+' conftest.er1 >conftest.err
16597 cat conftest.err >&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); } &&
16600 { ac_try='test -z "$ac_c_werror_flag"
16601 || test ! -s conftest.err'
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; } &&
16607 { ac_try='test -s conftest.$ac_objext'
16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; }; then
16613 ac_cv_header_GL_gutil_h=yes
16615 echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16618 ac_cv_header_GL_gutil_h=no
16620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16622 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gutil_h" >&5
16623 echo "${ECHO_T}$ac_cv_header_GL_gutil_h" >&6
16624 if test $ac_cv_header_GL_gutil_h = yes; then
16631 CPPFLAGS="$ac_save_CPPFLAGS"
16632 if test "$have_gle" = yes ; then
16634 ac_save_CPPFLAGS="$CPPFLAGS"
16635 if test \! -z "$includedir" ; then
16636 CPPFLAGS="$CPPFLAGS -I$includedir"
16638 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16639 echo "$as_me:$LINENO: checking for GL/tube.h" >&5
16640 echo $ECHO_N "checking for GL/tube.h... $ECHO_C" >&6
16641 if test "${ac_cv_header_GL_tube_h+set}" = set; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 cat >conftest.$ac_ext <<_ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h. */
16652 #include <GL/tube.h>
16654 rm -f conftest.$ac_objext
16655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16656 (eval $ac_compile) 2>conftest.er1
16658 grep -v '^ *+' conftest.er1 >conftest.err
16660 cat conftest.err >&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } &&
16663 { ac_try='test -z "$ac_c_werror_flag"
16664 || test ! -s conftest.err'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; } &&
16670 { ac_try='test -s conftest.$ac_objext'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 ac_cv_header_GL_tube_h=yes
16678 echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16681 ac_cv_header_GL_tube_h=no
16683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16685 echo "$as_me:$LINENO: result: $ac_cv_header_GL_tube_h" >&5
16686 echo "${ECHO_T}$ac_cv_header_GL_tube_h" >&6
16687 if test $ac_cv_header_GL_tube_h = yes; then
16694 CPPFLAGS="$ac_save_CPPFLAGS"
16698 if test "$have_gle" = yes ; then
16702 ac_save_CPPFLAGS="$CPPFLAGS"
16703 ac_save_LDFLAGS="$LDFLAGS"
16704 # ac_save_LIBS="$LIBS"
16706 if test \! -z "$includedir" ; then
16707 CPPFLAGS="$CPPFLAGS -I$includedir"
16709 # note: $X_CFLAGS includes $x_includes
16710 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16712 if test \! -z "$libdir" ; then
16713 LDFLAGS="$LDFLAGS -L$libdir"
16715 # note: $X_LIBS includes $x_libraries
16716 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16718 echo "$as_me:$LINENO: checking for gleCreateGC in -lgle" >&5
16719 echo $ECHO_N "checking for gleCreateGC in -lgle... $ECHO_C" >&6
16720 if test "${ac_cv_lib_gle_gleCreateGC+set}" = set; then
16721 echo $ECHO_N "(cached) $ECHO_C" >&6
16723 ac_check_lib_save_LIBS=$LIBS
16724 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
16725 cat >conftest.$ac_ext <<_ACEOF
16728 cat confdefs.h >>conftest.$ac_ext
16729 cat >>conftest.$ac_ext <<_ACEOF
16730 /* end confdefs.h. */
16732 /* Override any gcc2 internal prototype to avoid an error. */
16736 /* We use char because int might match the return type of a gcc2
16737 builtin and then its argument prototype would still apply. */
16738 char gleCreateGC ();
16747 rm -f conftest.$ac_objext conftest$ac_exeext
16748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16749 (eval $ac_link) 2>conftest.er1
16751 grep -v '^ *+' conftest.er1 >conftest.err
16753 cat conftest.err >&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); } &&
16756 { ac_try='test -z "$ac_c_werror_flag"
16757 || test ! -s conftest.err'
16758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16759 (eval $ac_try) 2>&5
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); }; } &&
16763 { ac_try='test -s conftest$ac_exeext'
16764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16765 (eval $ac_try) 2>&5
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; }; then
16769 ac_cv_lib_gle_gleCreateGC=yes
16771 echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16774 ac_cv_lib_gle_gleCreateGC=no
16776 rm -f conftest.err conftest.$ac_objext \
16777 conftest$ac_exeext conftest.$ac_ext
16778 LIBS=$ac_check_lib_save_LIBS
16780 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_gleCreateGC" >&5
16781 echo "${ECHO_T}$ac_cv_lib_gle_gleCreateGC" >&6
16782 if test $ac_cv_lib_gle_gleCreateGC = yes; then
16783 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
16786 CPPFLAGS="$ac_save_CPPFLAGS"
16787 LDFLAGS="$ac_save_LDFLAGS"
16788 # LIBS="$ac_save_LIBS"
16791 if test "$have_gle" = yes ; then
16795 # sometimes the libmatrix stuff is included in libgle. look there first.
16797 # I don't get it. For some reason, this test passes on SGI, as if
16798 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
16799 # Yet the link is succeeding. Why???
16801 # AC_CHECK_X_LIB(gle, uview_direction_d,
16802 # [have_gle=yes; gle_halfassed=no],
16803 # [], $GL_LIBS -lX11 -lXext -lm)
16805 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
16807 if test "$have_gle3" = yes ; then
16809 ac_save_CPPFLAGS="$CPPFLAGS"
16810 ac_save_LDFLAGS="$LDFLAGS"
16811 # ac_save_LIBS="$LIBS"
16813 if test \! -z "$includedir" ; then
16814 CPPFLAGS="$CPPFLAGS -I$includedir"
16816 # note: $X_CFLAGS includes $x_includes
16817 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16819 if test \! -z "$libdir" ; then
16820 LDFLAGS="$LDFLAGS -L$libdir"
16822 # note: $X_LIBS includes $x_libraries
16823 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16825 echo "$as_me:$LINENO: checking for uview_direction in -lgle" >&5
16826 echo $ECHO_N "checking for uview_direction in -lgle... $ECHO_C" >&6
16827 if test "${ac_cv_lib_gle_uview_direction+set}" = set; then
16828 echo $ECHO_N "(cached) $ECHO_C" >&6
16830 ac_check_lib_save_LIBS=$LIBS
16831 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
16832 cat >conftest.$ac_ext <<_ACEOF
16835 cat confdefs.h >>conftest.$ac_ext
16836 cat >>conftest.$ac_ext <<_ACEOF
16837 /* end confdefs.h. */
16839 /* Override any gcc2 internal prototype to avoid an error. */
16843 /* We use char because int might match the return type of a gcc2
16844 builtin and then its argument prototype would still apply. */
16845 char uview_direction ();
16849 uview_direction ();
16854 rm -f conftest.$ac_objext conftest$ac_exeext
16855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16856 (eval $ac_link) 2>conftest.er1
16858 grep -v '^ *+' conftest.er1 >conftest.err
16860 cat conftest.err >&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); } &&
16863 { ac_try='test -z "$ac_c_werror_flag"
16864 || test ! -s conftest.err'
16865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16866 (eval $ac_try) 2>&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; } &&
16870 { ac_try='test -s conftest$ac_exeext'
16871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872 (eval $ac_try) 2>&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); }; }; then
16876 ac_cv_lib_gle_uview_direction=yes
16878 echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.$ac_ext >&5
16881 ac_cv_lib_gle_uview_direction=no
16883 rm -f conftest.err conftest.$ac_objext \
16884 conftest$ac_exeext conftest.$ac_ext
16885 LIBS=$ac_check_lib_save_LIBS
16887 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_uview_direction" >&5
16888 echo "${ECHO_T}$ac_cv_lib_gle_uview_direction" >&6
16889 if test $ac_cv_lib_gle_uview_direction = yes; then
16890 have_gle=yes; gle_halfassed=no
16893 CPPFLAGS="$ac_save_CPPFLAGS"
16894 LDFLAGS="$ac_save_LDFLAGS"
16895 # LIBS="$ac_save_LIBS"
16898 # if it wasn't in libgle, then look in libmatrix.
16899 if test "$have_gle" = no ; then
16901 ac_save_CPPFLAGS="$CPPFLAGS"
16902 ac_save_LDFLAGS="$LDFLAGS"
16903 # ac_save_LIBS="$LIBS"
16905 if test \! -z "$includedir" ; then
16906 CPPFLAGS="$CPPFLAGS -I$includedir"
16908 # note: $X_CFLAGS includes $x_includes
16909 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16911 if test \! -z "$libdir" ; then
16912 LDFLAGS="$LDFLAGS -L$libdir"
16914 # note: $X_LIBS includes $x_libraries
16915 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16917 echo "$as_me:$LINENO: checking for uview_direction_d in -lmatrix" >&5
16918 echo $ECHO_N "checking for uview_direction_d in -lmatrix... $ECHO_C" >&6
16919 if test "${ac_cv_lib_matrix_uview_direction_d+set}" = set; then
16920 echo $ECHO_N "(cached) $ECHO_C" >&6
16922 ac_check_lib_save_LIBS=$LIBS
16923 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
16924 cat >conftest.$ac_ext <<_ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h. */
16931 /* Override any gcc2 internal prototype to avoid an error. */
16935 /* We use char because int might match the return type of a gcc2
16936 builtin and then its argument prototype would still apply. */
16937 char uview_direction_d ();
16941 uview_direction_d ();
16946 rm -f conftest.$ac_objext conftest$ac_exeext
16947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16948 (eval $ac_link) 2>conftest.er1
16950 grep -v '^ *+' conftest.er1 >conftest.err
16952 cat conftest.err >&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); } &&
16955 { ac_try='test -z "$ac_c_werror_flag"
16956 || test ! -s conftest.err'
16957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958 (eval $ac_try) 2>&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); }; } &&
16962 { ac_try='test -s conftest$ac_exeext'
16963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964 (eval $ac_try) 2>&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; }; then
16968 ac_cv_lib_matrix_uview_direction_d=yes
16970 echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16973 ac_cv_lib_matrix_uview_direction_d=no
16975 rm -f conftest.err conftest.$ac_objext \
16976 conftest$ac_exeext conftest.$ac_ext
16977 LIBS=$ac_check_lib_save_LIBS
16979 echo "$as_me:$LINENO: result: $ac_cv_lib_matrix_uview_direction_d" >&5
16980 echo "${ECHO_T}$ac_cv_lib_matrix_uview_direction_d" >&6
16981 if test $ac_cv_lib_matrix_uview_direction_d = yes; then
16982 have_gle=yes; gle_halfassed=no;
16983 GLE_LIBS="$GLE_LIBS -lmatrix"
16986 CPPFLAGS="$ac_save_CPPFLAGS"
16987 LDFLAGS="$ac_save_LDFLAGS"
16988 # LIBS="$ac_save_LIBS"
16993 if test "$have_gle" = yes ; then
16994 cat >>confdefs.h <<\_ACEOF
16998 if test "$have_gle3" = yes ; then
16999 cat >>confdefs.h <<\_ACEOF
17000 #define HAVE_GLE3 1
17006 elif test "$with_gle" != no; then
17007 echo "error: must be yes or no: --with-gle=$with_gle"
17013 ###############################################################################
17015 # Check for -lgdk_pixbuf.
17016 # These tests are for gdk_pixbuf usage of the hacks,
17017 # not xscreensaver-demo (thus we have to test again to get
17018 # the libraries right: don't want to pull in all of GTK
17021 ###############################################################################
17024 with_gdk_pixbuf_req=unspecified
17026 # Check whether --with-pixbuf or --without-pixbuf was given.
17027 if test "${with_pixbuf+set}" = set; then
17028 withval="$with_pixbuf"
17029 with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
17031 with_gdk_pixbuf=yes
17034 # if --with-pixbuf=/directory/ was specified, remember that directory so that
17035 # we can also look for the `gdk-pixbuf-config' program in that directory.
17036 case "$with_gdk_pixbuf" in
17038 gdk_pixbuf_dir="$with_gdk_pixbuf"
17046 case "$with_gdk_pixbuf" in
17051 echo "$as_me:$LINENO: checking for GDK_PIXBUF headers" >&5
17052 echo $ECHO_N "checking for GDK_PIXBUF headers... $ECHO_C" >&6
17053 d=$with_gdk_pixbuf/include
17054 if test -d $d; then
17055 X_CFLAGS="-I$d $X_CFLAGS"
17056 echo "$as_me:$LINENO: result: $d" >&5
17057 echo "${ECHO_T}$d" >&6
17059 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17060 echo "${ECHO_T}not found ($d: no such directory)" >&6
17063 echo "$as_me:$LINENO: checking for GDK_PIXBUF libs" >&5
17064 echo $ECHO_N "checking for GDK_PIXBUF libs... $ECHO_C" >&6
17065 d=$with_gdk_pixbuf/lib
17066 if test -d $d; then
17067 X_LIBS="-L$d $X_LIBS"
17068 echo "$as_me:$LINENO: result: $d" >&5
17069 echo "${ECHO_T}$d" >&6
17071 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17072 echo "${ECHO_T}not found ($d: no such directory)" >&6
17075 # replace the directory string with "yes".
17076 with_gdk_pixbuf_req="yes"
17077 with_gdk_pixbuf=$with_gdk_pixbuf_req
17082 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
17083 echo " If it is a directory, then \`DIR/include' will be added to"
17084 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17090 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
17091 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
17095 if test "$with_gdk_pixbuf" = yes; then
17101 pkg_check_version gdk-pixbuf-2.0 2.0.0
17102 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
17103 have_gdk_pixbuf="$ok"
17105 if test "$have_gdk_pixbuf" = yes; then
17106 echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
17107 echo $ECHO_N "checking for gdk-pixbuf includes... $ECHO_C" >&6
17108 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
17109 echo $ECHO_N "(cached) $ECHO_C" >&6
17111 ac_cv_gdk_pixbuf_config_cflags=`$pkg_config --cflags $pkgs`
17113 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
17114 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_cflags" >&6
17115 echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
17116 echo $ECHO_N "checking for gdk-pixbuf libs... $ECHO_C" >&6
17117 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17120 ac_cv_gdk_pixbuf_config_libs=`$pkg_config --libs $pkgs`
17122 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
17123 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_libs" >&6
17125 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
17126 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
17129 if test "$have_gdk_pixbuf" = yes; then
17131 # we appear to have pixbuf; check for headers/libs to be sure.
17133 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
17134 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
17138 # check for header A...
17140 ac_save_CPPFLAGS="$CPPFLAGS"
17141 if test \! -z "$includedir" ; then
17142 CPPFLAGS="$CPPFLAGS -I$includedir"
17144 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17145 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17146 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
17147 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
17148 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
17152 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
17154 # Is the header compilable?
17155 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h usability" >&5
17156 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h usability... $ECHO_C" >&6
17157 cat >conftest.$ac_ext <<_ACEOF
17160 cat confdefs.h >>conftest.$ac_ext
17161 cat >>conftest.$ac_ext <<_ACEOF
17162 /* end confdefs.h. */
17163 $ac_includes_default
17164 #include <gdk-pixbuf/gdk-pixbuf.h>
17166 rm -f conftest.$ac_objext
17167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17168 (eval $ac_compile) 2>conftest.er1
17170 grep -v '^ *+' conftest.er1 >conftest.err
17172 cat conftest.err >&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); } &&
17175 { ac_try='test -z "$ac_c_werror_flag"
17176 || test ! -s conftest.err'
17177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17178 (eval $ac_try) 2>&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; } &&
17182 { ac_try='test -s conftest.$ac_objext'
17183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17184 (eval $ac_try) 2>&5
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; }; then
17188 ac_header_compiler=yes
17190 echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17193 ac_header_compiler=no
17195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17196 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17197 echo "${ECHO_T}$ac_header_compiler" >&6
17199 # Is the header present?
17200 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h presence" >&5
17201 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h presence... $ECHO_C" >&6
17202 cat >conftest.$ac_ext <<_ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17208 #include <gdk-pixbuf/gdk-pixbuf.h>
17210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17213 grep -v '^ *+' conftest.er1 >conftest.err
17215 cat conftest.err >&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } >/dev/null; then
17218 if test -s conftest.err; then
17219 ac_cpp_err=$ac_c_preproc_warn_flag
17220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17227 if test -z "$ac_cpp_err"; then
17228 ac_header_preproc=yes
17230 echo "$as_me: failed program was:" >&5
17231 sed 's/^/| /' conftest.$ac_ext >&5
17233 ac_header_preproc=no
17235 rm -f conftest.err conftest.$ac_ext
17236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17237 echo "${ECHO_T}$ac_header_preproc" >&6
17239 # So? What about this header?
17240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17242 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&5
17243 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17244 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&5
17245 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&2;}
17246 ac_header_preproc=yes
17249 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&5
17250 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&2;}
17251 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&5
17252 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&2;}
17253 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&5
17254 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&2;}
17255 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&5
17256 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&2;}
17257 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
17258 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;}
17259 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&5
17260 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&2;}
17263 ## ------------------------------------------ ##
17264 ## Report this to the AC_PACKAGE_NAME lists. ##
17265 ## ------------------------------------------ ##
17268 sed "s/^/$as_me: WARNING: /" >&2
17271 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
17272 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
17273 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17274 echo $ECHO_N "(cached) $ECHO_C" >&6
17276 ac_cv_header_gdk_pixbuf_gdk_pixbuf_h=$ac_header_preproc
17278 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
17279 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
17282 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h = yes; then
17283 have_gdk_pixbuf=yes
17287 CPPFLAGS="$ac_save_CPPFLAGS"
17289 # if that worked, check for header B...
17290 if test "$have_gdk_pixbuf" = yes; then
17292 gdk_pixbuf_halfassed=yes
17294 ac_save_CPPFLAGS="$CPPFLAGS"
17295 if test \! -z "$includedir" ; then
17296 CPPFLAGS="$CPPFLAGS -I$includedir"
17298 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17299 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17300 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
17301 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17302 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17305 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
17306 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
17308 # Is the header compilable?
17309 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h usability" >&5
17310 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
17311 cat >conftest.$ac_ext <<_ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h. */
17317 $ac_includes_default
17318 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
17320 rm -f conftest.$ac_objext
17321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17322 (eval $ac_compile) 2>conftest.er1
17324 grep -v '^ *+' conftest.er1 >conftest.err
17326 cat conftest.err >&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); } &&
17329 { ac_try='test -z "$ac_c_werror_flag"
17330 || test ! -s conftest.err'
17331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; } &&
17336 { ac_try='test -s conftest.$ac_objext'
17337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17338 (eval $ac_try) 2>&5
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); }; }; then
17342 ac_header_compiler=yes
17344 echo "$as_me: failed program was:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17347 ac_header_compiler=no
17349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17351 echo "${ECHO_T}$ac_header_compiler" >&6
17353 # Is the header present?
17354 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h presence" >&5
17355 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
17356 cat >conftest.$ac_ext <<_ACEOF
17359 cat confdefs.h >>conftest.$ac_ext
17360 cat >>conftest.$ac_ext <<_ACEOF
17361 /* end confdefs.h. */
17362 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
17364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17367 grep -v '^ *+' conftest.er1 >conftest.err
17369 cat conftest.err >&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } >/dev/null; then
17372 if test -s conftest.err; then
17373 ac_cpp_err=$ac_c_preproc_warn_flag
17374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17381 if test -z "$ac_cpp_err"; then
17382 ac_header_preproc=yes
17384 echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17387 ac_header_preproc=no
17389 rm -f conftest.err conftest.$ac_ext
17390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17391 echo "${ECHO_T}$ac_header_preproc" >&6
17393 # So? What about this header?
17394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17396 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17397 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17398 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
17399 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
17400 ac_header_preproc=yes
17403 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
17404 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
17405 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
17406 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
17407 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
17408 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
17409 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
17410 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17411 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
17412 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
17413 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
17414 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
17417 ## ------------------------------------------ ##
17418 ## Report this to the AC_PACKAGE_NAME lists. ##
17419 ## ------------------------------------------ ##
17422 sed "s/^/$as_me: WARNING: /" >&2
17425 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
17426 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17427 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17428 echo $ECHO_N "(cached) $ECHO_C" >&6
17430 ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h=$ac_header_preproc
17432 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
17433 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
17436 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h = yes; then
17437 have_gdk_pixbuf=yes
17438 gdk_pixbuf_halfassed=no
17442 CPPFLAGS="$ac_save_CPPFLAGS"
17444 # yay, it has a new name in Gtk 2.x...
17445 if test "$have_gdk_pixbuf" = no; then
17447 gdk_pixbuf_halfassed=yes
17449 ac_save_CPPFLAGS="$CPPFLAGS"
17450 if test \! -z "$includedir" ; then
17451 CPPFLAGS="$CPPFLAGS -I$includedir"
17453 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17454 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17455 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
17456 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17457 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17458 echo $ECHO_N "(cached) $ECHO_C" >&6
17460 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
17461 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
17463 # Is the header compilable?
17464 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability" >&5
17465 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
17466 cat >conftest.$ac_ext <<_ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h. */
17472 $ac_includes_default
17473 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
17475 rm -f conftest.$ac_objext
17476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17477 (eval $ac_compile) 2>conftest.er1
17479 grep -v '^ *+' conftest.er1 >conftest.err
17481 cat conftest.err >&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); } &&
17484 { ac_try='test -z "$ac_c_werror_flag"
17485 || test ! -s conftest.err'
17486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; } &&
17491 { ac_try='test -s conftest.$ac_objext'
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; }; then
17497 ac_header_compiler=yes
17499 echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17502 ac_header_compiler=no
17504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17505 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17506 echo "${ECHO_T}$ac_header_compiler" >&6
17508 # Is the header present?
17509 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence" >&5
17510 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
17511 cat >conftest.$ac_ext <<_ACEOF
17514 cat confdefs.h >>conftest.$ac_ext
17515 cat >>conftest.$ac_ext <<_ACEOF
17516 /* end confdefs.h. */
17517 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
17519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17522 grep -v '^ *+' conftest.er1 >conftest.err
17524 cat conftest.err >&5
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); } >/dev/null; then
17527 if test -s conftest.err; then
17528 ac_cpp_err=$ac_c_preproc_warn_flag
17529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17536 if test -z "$ac_cpp_err"; then
17537 ac_header_preproc=yes
17539 echo "$as_me: failed program was:" >&5
17540 sed 's/^/| /' conftest.$ac_ext >&5
17542 ac_header_preproc=no
17544 rm -f conftest.err conftest.$ac_ext
17545 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17546 echo "${ECHO_T}$ac_header_preproc" >&6
17548 # So? What about this header?
17549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17551 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17552 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17553 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
17554 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
17555 ac_header_preproc=yes
17558 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
17559 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
17560 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
17561 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
17562 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
17563 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
17564 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
17565 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17566 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
17567 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
17568 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
17569 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
17572 ## ------------------------------------------ ##
17573 ## Report this to the AC_PACKAGE_NAME lists. ##
17574 ## ------------------------------------------ ##
17577 sed "s/^/$as_me: WARNING: /" >&2
17580 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
17581 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17582 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17583 echo $ECHO_N "(cached) $ECHO_C" >&6
17585 ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h=$ac_header_preproc
17587 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
17588 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
17591 if test $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h = yes; then
17592 have_gdk_pixbuf=yes
17593 gdk_pixbuf_halfassed=no
17597 CPPFLAGS="$ac_save_CPPFLAGS"
17600 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
17603 if test "$have_gdk_pixbuf" = yes; then
17604 # we have the headers, now check for the libraries
17606 gdk_pixbuf_halfassed=yes
17608 echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability..." >&5
17609 echo "${ECHO_T}checking for gdk_pixbuf usability..." >&6
17613 ac_save_CPPFLAGS="$CPPFLAGS"
17614 ac_save_LDFLAGS="$LDFLAGS"
17615 # ac_save_LIBS="$LIBS"
17617 if test \! -z "$includedir" ; then
17618 CPPFLAGS="$CPPFLAGS -I$includedir"
17620 # note: $X_CFLAGS includes $x_includes
17621 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17623 if test \! -z "$libdir" ; then
17624 LDFLAGS="$LDFLAGS -L$libdir"
17626 # note: $X_LIBS includes $x_libraries
17627 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17629 echo "$as_me:$LINENO: checking for gdk_pixbuf_new_from_file in -lc" >&5
17630 echo $ECHO_N "checking for gdk_pixbuf_new_from_file in -lc... $ECHO_C" >&6
17631 if test "${ac_cv_lib_c_gdk_pixbuf_new_from_file+set}" = set; then
17632 echo $ECHO_N "(cached) $ECHO_C" >&6
17634 ac_check_lib_save_LIBS=$LIBS
17635 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
17636 cat >conftest.$ac_ext <<_ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h. */
17643 /* Override any gcc2 internal prototype to avoid an error. */
17647 /* We use char because int might match the return type of a gcc2
17648 builtin and then its argument prototype would still apply. */
17649 char gdk_pixbuf_new_from_file ();
17653 gdk_pixbuf_new_from_file ();
17658 rm -f conftest.$ac_objext conftest$ac_exeext
17659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17660 (eval $ac_link) 2>conftest.er1
17662 grep -v '^ *+' conftest.er1 >conftest.err
17664 cat conftest.err >&5
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); } &&
17667 { ac_try='test -z "$ac_c_werror_flag"
17668 || test ! -s conftest.err'
17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; } &&
17674 { ac_try='test -s conftest$ac_exeext'
17675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17676 (eval $ac_try) 2>&5
17678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); }; }; then
17680 ac_cv_lib_c_gdk_pixbuf_new_from_file=yes
17682 echo "$as_me: failed program was:" >&5
17683 sed 's/^/| /' conftest.$ac_ext >&5
17685 ac_cv_lib_c_gdk_pixbuf_new_from_file=no
17687 rm -f conftest.err conftest.$ac_objext \
17688 conftest$ac_exeext conftest.$ac_ext
17689 LIBS=$ac_check_lib_save_LIBS
17691 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_new_from_file" >&5
17692 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_new_from_file" >&6
17693 if test $ac_cv_lib_c_gdk_pixbuf_new_from_file = yes; then
17694 have_gdk_pixbuf=yes
17697 CPPFLAGS="$ac_save_CPPFLAGS"
17698 LDFLAGS="$ac_save_LDFLAGS"
17699 # LIBS="$ac_save_LIBS"
17702 if test "$have_gdk_pixbuf" = yes; then
17705 ac_save_CPPFLAGS="$CPPFLAGS"
17706 ac_save_LDFLAGS="$LDFLAGS"
17707 # ac_save_LIBS="$LIBS"
17709 if test \! -z "$includedir" ; then
17710 CPPFLAGS="$CPPFLAGS -I$includedir"
17712 # note: $X_CFLAGS includes $x_includes
17713 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17715 if test \! -z "$libdir" ; then
17716 LDFLAGS="$LDFLAGS -L$libdir"
17718 # note: $X_LIBS includes $x_libraries
17719 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17721 echo "$as_me:$LINENO: checking for gdk_pixbuf_xlib_init in -lc" >&5
17722 echo $ECHO_N "checking for gdk_pixbuf_xlib_init in -lc... $ECHO_C" >&6
17723 if test "${ac_cv_lib_c_gdk_pixbuf_xlib_init+set}" = set; then
17724 echo $ECHO_N "(cached) $ECHO_C" >&6
17726 ac_check_lib_save_LIBS=$LIBS
17727 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
17728 cat >conftest.$ac_ext <<_ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h. */
17735 /* Override any gcc2 internal prototype to avoid an error. */
17739 /* We use char because int might match the return type of a gcc2
17740 builtin and then its argument prototype would still apply. */
17741 char gdk_pixbuf_xlib_init ();
17745 gdk_pixbuf_xlib_init ();
17750 rm -f conftest.$ac_objext conftest$ac_exeext
17751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17752 (eval $ac_link) 2>conftest.er1
17754 grep -v '^ *+' conftest.er1 >conftest.err
17756 cat conftest.err >&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } &&
17759 { ac_try='test -z "$ac_c_werror_flag"
17760 || test ! -s conftest.err'
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; } &&
17766 { ac_try='test -s conftest$ac_exeext'
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; }; then
17772 ac_cv_lib_c_gdk_pixbuf_xlib_init=yes
17774 echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17777 ac_cv_lib_c_gdk_pixbuf_xlib_init=no
17779 rm -f conftest.err conftest.$ac_objext \
17780 conftest$ac_exeext conftest.$ac_ext
17781 LIBS=$ac_check_lib_save_LIBS
17783 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_xlib_init" >&5
17784 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_xlib_init" >&6
17785 if test $ac_cv_lib_c_gdk_pixbuf_xlib_init = yes; then
17786 have_gdk_pixbuf=yes
17787 gdk_pixbuf_halfassed=no
17790 CPPFLAGS="$ac_save_CPPFLAGS"
17791 LDFLAGS="$ac_save_LDFLAGS"
17792 # LIBS="$ac_save_LIBS"
17797 if test "$have_gdk_pixbuf" = yes; then
17798 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
17799 XPM_LIBS="$ac_gdk_pixbuf_config_libs"
17800 cat >>confdefs.h <<\_ACEOF
17801 #define HAVE_GDK_PIXBUF 1
17805 echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability... no" >&5
17806 echo "${ECHO_T}checking for gdk_pixbuf usability... no" >&6
17811 ###############################################################################
17815 ###############################################################################
17818 with_xpm_req=unspecified
17820 # Check whether --with-xpm or --without-xpm was given.
17821 if test "${with_xpm+set}" = set; then
17822 withval="$with_xpm"
17823 with_xpm="$withval"; with_xpm_req="$withval"
17829 case "$with_xpm" in
17834 echo "$as_me:$LINENO: checking for XPM headers" >&5
17835 echo $ECHO_N "checking for XPM headers... $ECHO_C" >&6
17836 d=$with_xpm/include
17837 if test -d $d; then
17838 X_CFLAGS="-I$d $X_CFLAGS"
17839 echo "$as_me:$LINENO: result: $d" >&5
17840 echo "${ECHO_T}$d" >&6
17842 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17843 echo "${ECHO_T}not found ($d: no such directory)" >&6
17846 echo "$as_me:$LINENO: checking for XPM libs" >&5
17847 echo $ECHO_N "checking for XPM libs... $ECHO_C" >&6
17849 if test -d $d; then
17850 X_LIBS="-L$d $X_LIBS"
17851 echo "$as_me:$LINENO: result: $d" >&5
17852 echo "${ECHO_T}$d" >&6
17854 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17855 echo "${ECHO_T}not found ($d: no such directory)" >&6
17858 # replace the directory string with "yes".
17860 with_xpm=$with_xpm_req
17865 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
17866 echo " If it is a directory, then \`DIR/include' will be added to"
17867 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17873 if test "$with_xpm" = yes; then
17875 ac_save_CPPFLAGS="$CPPFLAGS"
17876 if test \! -z "$includedir" ; then
17877 CPPFLAGS="$CPPFLAGS -I$includedir"
17879 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17880 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
17881 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
17882 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17883 echo $ECHO_N "(cached) $ECHO_C" >&6
17885 cat >conftest.$ac_ext <<_ACEOF
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h. */
17891 #include <X11/Xlib.h>
17893 #include <X11/xpm.h>
17895 rm -f conftest.$ac_objext
17896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17897 (eval $ac_compile) 2>conftest.er1
17899 grep -v '^ *+' conftest.er1 >conftest.err
17901 cat conftest.err >&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); } &&
17904 { ac_try='test -z "$ac_c_werror_flag"
17905 || test ! -s conftest.err'
17906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907 (eval $ac_try) 2>&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); }; } &&
17911 { ac_try='test -s conftest.$ac_objext'
17912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17913 (eval $ac_try) 2>&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; }; then
17917 ac_cv_header_X11_xpm_h=yes
17919 echo "$as_me: failed program was:" >&5
17920 sed 's/^/| /' conftest.$ac_ext >&5
17922 ac_cv_header_X11_xpm_h=no
17924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17926 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
17927 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
17928 if test $ac_cv_header_X11_xpm_h = yes; then
17930 cat >>confdefs.h <<\_ACEOF
17934 XPM_LIBS="-lXpm $XPM_LIBS"
17938 CPPFLAGS="$ac_save_CPPFLAGS"
17939 elif test "$with_xpm" != no; then
17940 echo "error: must be yes or no: --with-xpm=$with_xpm"
17944 # See comment near $motif_requires_xpm, above.
17945 # Need to do this here, after both Motif and XPM have been checked for.
17947 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
17948 if test "$motif_requires_xpm" = yes ; then
17949 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
17954 ###############################################################################
17958 ###############################################################################
17961 with_jpeg_req=unspecified
17964 # Check whether --with-jpeg or --without-jpeg was given.
17965 if test "${with_jpeg+set}" = set; then
17966 withval="$with_jpeg"
17967 with_jpeg="$withval"; with_jpeg_req="$withval"
17973 case "$with_jpeg" in
17978 echo "$as_me:$LINENO: checking for JPEG headers" >&5
17979 echo $ECHO_N "checking for JPEG headers... $ECHO_C" >&6
17980 d=$with_jpeg/include
17981 if test -d $d; then
17982 X_CFLAGS="-I$d $X_CFLAGS"
17983 echo "$as_me:$LINENO: result: $d" >&5
17984 echo "${ECHO_T}$d" >&6
17986 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17987 echo "${ECHO_T}not found ($d: no such directory)" >&6
17990 echo "$as_me:$LINENO: checking for JPEG libs" >&5
17991 echo $ECHO_N "checking for JPEG libs... $ECHO_C" >&6
17993 if test -d $d; then
17994 X_LIBS="-L$d $X_LIBS"
17995 echo "$as_me:$LINENO: result: $d" >&5
17996 echo "${ECHO_T}$d" >&6
17998 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17999 echo "${ECHO_T}not found ($d: no such directory)" >&6
18002 # replace the directory string with "yes".
18003 with_jpeg_req="yes"
18004 with_jpeg=$with_jpeg_req
18009 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
18010 echo " If it is a directory, then \`DIR/include' will be added to"
18011 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18017 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
18018 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
18022 if test "$with_jpeg" = yes; then
18026 ac_save_CPPFLAGS="$CPPFLAGS"
18027 if test \! -z "$includedir" ; then
18028 CPPFLAGS="$CPPFLAGS -I$includedir"
18030 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18031 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18032 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18033 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18034 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18035 echo $ECHO_N "(cached) $ECHO_C" >&6
18037 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18038 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
18040 # Is the header compilable?
18041 echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
18042 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
18043 cat >conftest.$ac_ext <<_ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18049 $ac_includes_default
18050 #include <jpeglib.h>
18052 rm -f conftest.$ac_objext
18053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18054 (eval $ac_compile) 2>conftest.er1
18056 grep -v '^ *+' conftest.er1 >conftest.err
18058 cat conftest.err >&5
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); } &&
18061 { ac_try='test -z "$ac_c_werror_flag"
18062 || test ! -s conftest.err'
18063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064 (eval $ac_try) 2>&5
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); }; } &&
18068 { ac_try='test -s conftest.$ac_objext'
18069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070 (eval $ac_try) 2>&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }; }; then
18074 ac_header_compiler=yes
18076 echo "$as_me: failed program was:" >&5
18077 sed 's/^/| /' conftest.$ac_ext >&5
18079 ac_header_compiler=no
18081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18083 echo "${ECHO_T}$ac_header_compiler" >&6
18085 # Is the header present?
18086 echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
18087 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
18088 cat >conftest.$ac_ext <<_ACEOF
18091 cat confdefs.h >>conftest.$ac_ext
18092 cat >>conftest.$ac_ext <<_ACEOF
18093 /* end confdefs.h. */
18094 #include <jpeglib.h>
18096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18099 grep -v '^ *+' conftest.er1 >conftest.err
18101 cat conftest.err >&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } >/dev/null; then
18104 if test -s conftest.err; then
18105 ac_cpp_err=$ac_c_preproc_warn_flag
18106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18113 if test -z "$ac_cpp_err"; then
18114 ac_header_preproc=yes
18116 echo "$as_me: failed program was:" >&5
18117 sed 's/^/| /' conftest.$ac_ext >&5
18119 ac_header_preproc=no
18121 rm -f conftest.err conftest.$ac_ext
18122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18123 echo "${ECHO_T}$ac_header_preproc" >&6
18125 # So? What about this header?
18126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18128 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18129 echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18130 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
18131 echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
18132 ac_header_preproc=yes
18135 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
18136 echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
18137 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
18138 echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
18139 { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
18140 echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
18141 { echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
18142 echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18143 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
18144 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
18145 { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
18146 echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
18149 ## ------------------------------------------ ##
18150 ## Report this to the AC_PACKAGE_NAME lists. ##
18151 ## ------------------------------------------ ##
18154 sed "s/^/$as_me: WARNING: /" >&2
18157 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18158 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18159 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18160 echo $ECHO_N "(cached) $ECHO_C" >&6
18162 ac_cv_header_jpeglib_h=$ac_header_preproc
18164 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18165 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
18168 if test $ac_cv_header_jpeglib_h = yes; then
18173 CPPFLAGS="$ac_save_CPPFLAGS"
18175 if test "$have_jpeg" = yes; then
18176 # we have the header, now check for the library
18180 ac_save_CPPFLAGS="$CPPFLAGS"
18181 ac_save_LDFLAGS="$LDFLAGS"
18182 # ac_save_LIBS="$LIBS"
18184 if test \! -z "$includedir" ; then
18185 CPPFLAGS="$CPPFLAGS -I$includedir"
18187 # note: $X_CFLAGS includes $x_includes
18188 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18190 if test \! -z "$libdir" ; then
18191 LDFLAGS="$LDFLAGS -L$libdir"
18193 # note: $X_LIBS includes $x_libraries
18194 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18196 echo "$as_me:$LINENO: checking for jpeg_start_compress in -ljpeg" >&5
18197 echo $ECHO_N "checking for jpeg_start_compress in -ljpeg... $ECHO_C" >&6
18198 if test "${ac_cv_lib_jpeg_jpeg_start_compress+set}" = set; then
18199 echo $ECHO_N "(cached) $ECHO_C" >&6
18201 ac_check_lib_save_LIBS=$LIBS
18202 LIBS="-ljpeg $LIBS"
18203 cat >conftest.$ac_ext <<_ACEOF
18206 cat confdefs.h >>conftest.$ac_ext
18207 cat >>conftest.$ac_ext <<_ACEOF
18208 /* end confdefs.h. */
18210 /* Override any gcc2 internal prototype to avoid an error. */
18214 /* We use char because int might match the return type of a gcc2
18215 builtin and then its argument prototype would still apply. */
18216 char jpeg_start_compress ();
18220 jpeg_start_compress ();
18225 rm -f conftest.$ac_objext conftest$ac_exeext
18226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18227 (eval $ac_link) 2>conftest.er1
18229 grep -v '^ *+' conftest.er1 >conftest.err
18231 cat conftest.err >&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } &&
18234 { ac_try='test -z "$ac_c_werror_flag"
18235 || test ! -s conftest.err'
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; } &&
18241 { ac_try='test -s conftest$ac_exeext'
18242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243 (eval $ac_try) 2>&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; }; then
18247 ac_cv_lib_jpeg_jpeg_start_compress=yes
18249 echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18252 ac_cv_lib_jpeg_jpeg_start_compress=no
18254 rm -f conftest.err conftest.$ac_objext \
18255 conftest$ac_exeext conftest.$ac_ext
18256 LIBS=$ac_check_lib_save_LIBS
18258 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
18259 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_compress" >&6
18260 if test $ac_cv_lib_jpeg_jpeg_start_compress = yes; then
18264 cat >>confdefs.h <<\_ACEOF
18265 #define HAVE_JPEGLIB 1
18270 CPPFLAGS="$ac_save_CPPFLAGS"
18271 LDFLAGS="$ac_save_LDFLAGS"
18272 # LIBS="$ac_save_LIBS"
18278 ###############################################################################
18280 # Check for pty support for 'phosphor'
18282 ###############################################################################
18287 for ac_header in pty.h util.h
18289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18291 echo "$as_me:$LINENO: checking for $ac_header" >&5
18292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18294 echo $ECHO_N "(cached) $ECHO_C" >&6
18296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18299 # Is the header compilable?
18300 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18302 cat >conftest.$ac_ext <<_ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h. */
18308 $ac_includes_default
18309 #include <$ac_header>
18311 rm -f conftest.$ac_objext
18312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18313 (eval $ac_compile) 2>conftest.er1
18315 grep -v '^ *+' conftest.er1 >conftest.err
18317 cat conftest.err >&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } &&
18320 { ac_try='test -z "$ac_c_werror_flag"
18321 || test ! -s conftest.err'
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; } &&
18327 { ac_try='test -s conftest.$ac_objext'
18328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18329 (eval $ac_try) 2>&5
18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); }; }; then
18333 ac_header_compiler=yes
18335 echo "$as_me: failed program was:" >&5
18336 sed 's/^/| /' conftest.$ac_ext >&5
18338 ac_header_compiler=no
18340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18342 echo "${ECHO_T}$ac_header_compiler" >&6
18344 # Is the header present?
18345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18347 cat >conftest.$ac_ext <<_ACEOF
18350 cat confdefs.h >>conftest.$ac_ext
18351 cat >>conftest.$ac_ext <<_ACEOF
18352 /* end confdefs.h. */
18353 #include <$ac_header>
18355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18358 grep -v '^ *+' conftest.er1 >conftest.err
18360 cat conftest.err >&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); } >/dev/null; then
18363 if test -s conftest.err; then
18364 ac_cpp_err=$ac_c_preproc_warn_flag
18365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18372 if test -z "$ac_cpp_err"; then
18373 ac_header_preproc=yes
18375 echo "$as_me: failed program was:" >&5
18376 sed 's/^/| /' conftest.$ac_ext >&5
18378 ac_header_preproc=no
18380 rm -f conftest.err conftest.$ac_ext
18381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18382 echo "${ECHO_T}$ac_header_preproc" >&6
18384 # So? What about this header?
18385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18391 ac_header_preproc=yes
18394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18401 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18408 ## ------------------------------------------ ##
18409 ## Report this to the AC_PACKAGE_NAME lists. ##
18410 ## ------------------------------------------ ##
18413 sed "s/^/$as_me: WARNING: /" >&2
18416 echo "$as_me:$LINENO: checking for $ac_header" >&5
18417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18419 echo $ECHO_N "(cached) $ECHO_C" >&6
18421 eval "$as_ac_Header=\$ac_header_preproc"
18423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18428 cat >>confdefs.h <<_ACEOF
18429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18437 ac_save_CPPFLAGS="$CPPFLAGS"
18438 ac_save_LDFLAGS="$LDFLAGS"
18439 # ac_save_LIBS="$LIBS"
18441 if test \! -z "$includedir" ; then
18442 CPPFLAGS="$CPPFLAGS -I$includedir"
18444 # note: $X_CFLAGS includes $x_includes
18445 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18447 if test \! -z "$libdir" ; then
18448 LDFLAGS="$LDFLAGS -L$libdir"
18450 # note: $X_LIBS includes $x_libraries
18451 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18453 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18454 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
18455 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18456 echo $ECHO_N "(cached) $ECHO_C" >&6
18458 ac_check_lib_save_LIBS=$LIBS
18459 LIBS="-lutil $LIBS"
18460 cat >conftest.$ac_ext <<_ACEOF
18463 cat confdefs.h >>conftest.$ac_ext
18464 cat >>conftest.$ac_ext <<_ACEOF
18465 /* end confdefs.h. */
18467 /* Override any gcc2 internal prototype to avoid an error. */
18471 /* We use char because int might match the return type of a gcc2
18472 builtin and then its argument prototype would still apply. */
18482 rm -f conftest.$ac_objext conftest$ac_exeext
18483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18484 (eval $ac_link) 2>conftest.er1
18486 grep -v '^ *+' conftest.er1 >conftest.err
18488 cat conftest.err >&5
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); } &&
18491 { ac_try='test -z "$ac_c_werror_flag"
18492 || test ! -s conftest.err'
18493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494 (eval $ac_try) 2>&5
18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497 (exit $ac_status); }; } &&
18498 { ac_try='test -s conftest$ac_exeext'
18499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18500 (eval $ac_try) 2>&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); }; }; then
18504 ac_cv_lib_util_forkpty=yes
18506 echo "$as_me: failed program was:" >&5
18507 sed 's/^/| /' conftest.$ac_ext >&5
18509 ac_cv_lib_util_forkpty=no
18511 rm -f conftest.err conftest.$ac_objext \
18512 conftest$ac_exeext conftest.$ac_ext
18513 LIBS=$ac_check_lib_save_LIBS
18515 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18516 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
18517 if test $ac_cv_lib_util_forkpty = yes; then
18519 cat >>confdefs.h <<\_ACEOF
18520 #define HAVE_FORKPTY 1
18525 CPPFLAGS="$ac_save_CPPFLAGS"
18526 LDFLAGS="$ac_save_LDFLAGS"
18527 # LIBS="$ac_save_LIBS"
18531 ###############################################################################
18533 # Check for the XSHM server extension.
18535 ###############################################################################
18538 with_xshm_req=unspecified
18540 # Check whether --with-xshm-ext or --without-xshm-ext was given.
18541 if test "${with_xshm_ext+set}" = set; then
18542 withval="$with_xshm_ext"
18543 with_xshm="$withval"; with_xshm_req="$withval"
18549 case "$with_xshm" in
18554 echo "$as_me:$LINENO: checking for XSHM headers" >&5
18555 echo $ECHO_N "checking for XSHM headers... $ECHO_C" >&6
18556 d=$with_xshm/include
18557 if test -d $d; then
18558 X_CFLAGS="-I$d $X_CFLAGS"
18559 echo "$as_me:$LINENO: result: $d" >&5
18560 echo "${ECHO_T}$d" >&6
18562 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18563 echo "${ECHO_T}not found ($d: no such directory)" >&6
18566 echo "$as_me:$LINENO: checking for XSHM libs" >&5
18567 echo $ECHO_N "checking for XSHM libs... $ECHO_C" >&6
18569 if test -d $d; then
18570 X_LIBS="-L$d $X_LIBS"
18571 echo "$as_me:$LINENO: result: $d" >&5
18572 echo "${ECHO_T}$d" >&6
18574 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18575 echo "${ECHO_T}not found ($d: no such directory)" >&6
18578 # replace the directory string with "yes".
18579 with_xshm_req="yes"
18580 with_xshm=$with_xshm_req
18585 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
18586 echo " If it is a directory, then \`DIR/include' will be added to"
18587 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18593 if test "$with_xshm" = yes; then
18595 # first check for Xshm.h.
18597 ac_save_CPPFLAGS="$CPPFLAGS"
18598 if test \! -z "$includedir" ; then
18599 CPPFLAGS="$CPPFLAGS -I$includedir"
18601 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18602 echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5
18603 echo $ECHO_N "checking for X11/extensions/XShm.h... $ECHO_C" >&6
18604 if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
18605 echo $ECHO_N "(cached) $ECHO_C" >&6
18607 cat >conftest.$ac_ext <<_ACEOF
18610 cat confdefs.h >>conftest.$ac_ext
18611 cat >>conftest.$ac_ext <<_ACEOF
18612 /* end confdefs.h. */
18613 #include <X11/Xlib.h>
18615 #include <X11/extensions/XShm.h>
18617 rm -f conftest.$ac_objext
18618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18619 (eval $ac_compile) 2>conftest.er1
18621 grep -v '^ *+' conftest.er1 >conftest.err
18623 cat conftest.err >&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); } &&
18626 { ac_try='test -z "$ac_c_werror_flag"
18627 || test ! -s conftest.err'
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } &&
18633 { ac_try='test -s conftest.$ac_objext'
18634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635 (eval $ac_try) 2>&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; }; then
18639 ac_cv_header_X11_extensions_XShm_h=yes
18641 echo "$as_me: failed program was:" >&5
18642 sed 's/^/| /' conftest.$ac_ext >&5
18644 ac_cv_header_X11_extensions_XShm_h=no
18646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18648 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5
18649 echo "${ECHO_T}$ac_cv_header_X11_extensions_XShm_h" >&6
18650 if test $ac_cv_header_X11_extensions_XShm_h = yes; then
18655 CPPFLAGS="$ac_save_CPPFLAGS"
18657 # if that succeeded, then check for sys/ipc.h.
18658 if test "$have_xshm" = yes; then
18661 ac_save_CPPFLAGS="$CPPFLAGS"
18662 if test \! -z "$includedir" ; then
18663 CPPFLAGS="$CPPFLAGS -I$includedir"
18665 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18666 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
18667 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
18668 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
18669 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
18670 echo $ECHO_N "(cached) $ECHO_C" >&6
18672 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
18673 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
18675 # Is the header compilable?
18676 echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
18677 echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6
18678 cat >conftest.$ac_ext <<_ACEOF
18681 cat confdefs.h >>conftest.$ac_ext
18682 cat >>conftest.$ac_ext <<_ACEOF
18683 /* end confdefs.h. */
18684 $ac_includes_default
18685 #include <sys/ipc.h>
18687 rm -f conftest.$ac_objext
18688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18689 (eval $ac_compile) 2>conftest.er1
18691 grep -v '^ *+' conftest.er1 >conftest.err
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } &&
18696 { ac_try='test -z "$ac_c_werror_flag"
18697 || test ! -s conftest.err'
18698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699 (eval $ac_try) 2>&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; } &&
18703 { ac_try='test -s conftest.$ac_objext'
18704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705 (eval $ac_try) 2>&5
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); }; }; then
18709 ac_header_compiler=yes
18711 echo "$as_me: failed program was:" >&5
18712 sed 's/^/| /' conftest.$ac_ext >&5
18714 ac_header_compiler=no
18716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18717 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18718 echo "${ECHO_T}$ac_header_compiler" >&6
18720 # Is the header present?
18721 echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
18722 echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6
18723 cat >conftest.$ac_ext <<_ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h. */
18729 #include <sys/ipc.h>
18731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18734 grep -v '^ *+' conftest.er1 >conftest.err
18736 cat conftest.err >&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); } >/dev/null; then
18739 if test -s conftest.err; then
18740 ac_cpp_err=$ac_c_preproc_warn_flag
18741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18748 if test -z "$ac_cpp_err"; then
18749 ac_header_preproc=yes
18751 echo "$as_me: failed program was:" >&5
18752 sed 's/^/| /' conftest.$ac_ext >&5
18754 ac_header_preproc=no
18756 rm -f conftest.err conftest.$ac_ext
18757 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18758 echo "${ECHO_T}$ac_header_preproc" >&6
18760 # So? What about this header?
18761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18763 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
18764 echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18765 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the compiler's result" >&5
18766 echo "$as_me: WARNING: sys/ipc.h: proceeding with the compiler's result" >&2;}
18767 ac_header_preproc=yes
18770 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
18771 echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
18772 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
18773 echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
18774 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: see the Autoconf documentation" >&5
18775 echo "$as_me: WARNING: sys/ipc.h: see the Autoconf documentation" >&2;}
18776 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&5
18777 echo "$as_me: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&2;}
18778 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
18779 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
18780 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&5
18781 echo "$as_me: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&2;}
18784 ## ------------------------------------------ ##
18785 ## Report this to the AC_PACKAGE_NAME lists. ##
18786 ## ------------------------------------------ ##
18789 sed "s/^/$as_me: WARNING: /" >&2
18792 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
18793 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
18794 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
18795 echo $ECHO_N "(cached) $ECHO_C" >&6
18797 ac_cv_header_sys_ipc_h=$ac_header_preproc
18799 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
18800 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
18803 if test $ac_cv_header_sys_ipc_h = yes; then
18808 CPPFLAGS="$ac_save_CPPFLAGS"
18811 # if that succeeded, then check for sys/shm.h.
18812 if test "$have_xshm" = yes; then
18815 ac_save_CPPFLAGS="$CPPFLAGS"
18816 if test \! -z "$includedir" ; then
18817 CPPFLAGS="$CPPFLAGS -I$includedir"
18819 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18820 if test "${ac_cv_header_sys_shm_h+set}" = set; then
18821 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
18822 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
18823 if test "${ac_cv_header_sys_shm_h+set}" = set; then
18824 echo $ECHO_N "(cached) $ECHO_C" >&6
18826 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
18827 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
18829 # Is the header compilable?
18830 echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
18831 echo $ECHO_N "checking sys/shm.h usability... $ECHO_C" >&6
18832 cat >conftest.$ac_ext <<_ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18838 $ac_includes_default
18839 #include <sys/shm.h>
18841 rm -f conftest.$ac_objext
18842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18843 (eval $ac_compile) 2>conftest.er1
18845 grep -v '^ *+' conftest.er1 >conftest.err
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } &&
18850 { ac_try='test -z "$ac_c_werror_flag"
18851 || test ! -s conftest.err'
18852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853 (eval $ac_try) 2>&5
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; } &&
18857 { ac_try='test -s conftest.$ac_objext'
18858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859 (eval $ac_try) 2>&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; }; then
18863 ac_header_compiler=yes
18865 echo "$as_me: failed program was:" >&5
18866 sed 's/^/| /' conftest.$ac_ext >&5
18868 ac_header_compiler=no
18870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18872 echo "${ECHO_T}$ac_header_compiler" >&6
18874 # Is the header present?
18875 echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
18876 echo $ECHO_N "checking sys/shm.h presence... $ECHO_C" >&6
18877 cat >conftest.$ac_ext <<_ACEOF
18880 cat confdefs.h >>conftest.$ac_ext
18881 cat >>conftest.$ac_ext <<_ACEOF
18882 /* end confdefs.h. */
18883 #include <sys/shm.h>
18885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18888 grep -v '^ *+' conftest.er1 >conftest.err
18890 cat conftest.err >&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); } >/dev/null; then
18893 if test -s conftest.err; then
18894 ac_cpp_err=$ac_c_preproc_warn_flag
18895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18902 if test -z "$ac_cpp_err"; then
18903 ac_header_preproc=yes
18905 echo "$as_me: failed program was:" >&5
18906 sed 's/^/| /' conftest.$ac_ext >&5
18908 ac_header_preproc=no
18910 rm -f conftest.err conftest.$ac_ext
18911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18912 echo "${ECHO_T}$ac_header_preproc" >&6
18914 # So? What about this header?
18915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18917 { echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18918 echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18919 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the compiler's result" >&5
18920 echo "$as_me: WARNING: sys/shm.h: proceeding with the compiler's result" >&2;}
18921 ac_header_preproc=yes
18924 { echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
18925 echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
18926 { echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
18927 echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
18928 { echo "$as_me:$LINENO: WARNING: sys/shm.h: see the Autoconf documentation" >&5
18929 echo "$as_me: WARNING: sys/shm.h: see the Autoconf documentation" >&2;}
18930 { echo "$as_me:$LINENO: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&5
18931 echo "$as_me: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18932 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
18933 echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
18934 { echo "$as_me:$LINENO: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&5
18935 echo "$as_me: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&2;}
18938 ## ------------------------------------------ ##
18939 ## Report this to the AC_PACKAGE_NAME lists. ##
18940 ## ------------------------------------------ ##
18943 sed "s/^/$as_me: WARNING: /" >&2
18946 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
18947 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
18948 if test "${ac_cv_header_sys_shm_h+set}" = set; then
18949 echo $ECHO_N "(cached) $ECHO_C" >&6
18951 ac_cv_header_sys_shm_h=$ac_header_preproc
18953 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
18954 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
18957 if test $ac_cv_header_sys_shm_h = yes; then
18962 CPPFLAGS="$ac_save_CPPFLAGS"
18965 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
18966 # to exist, but the library code to not exist. And even better, the library
18967 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
18968 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
18969 # that's not quite right, but close enough.)
18973 if `uname -v` -eq 3 ; then
18976 ac_save_CPPFLAGS="$CPPFLAGS"
18977 ac_save_LDFLAGS="$LDFLAGS"
18978 # ac_save_LIBS="$LIBS"
18980 if test \! -z "$includedir" ; then
18981 CPPFLAGS="$CPPFLAGS -I$includedir"
18983 # note: $X_CFLAGS includes $x_includes
18984 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18986 if test \! -z "$libdir" ; then
18987 LDFLAGS="$LDFLAGS -L$libdir"
18989 # note: $X_LIBS includes $x_libraries
18990 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18992 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXextSam" >&5
18993 echo $ECHO_N "checking for XShmQueryExtension in -lXextSam... $ECHO_C" >&6
18994 if test "${ac_cv_lib_XextSam_XShmQueryExtension+set}" = set; then
18995 echo $ECHO_N "(cached) $ECHO_C" >&6
18997 ac_check_lib_save_LIBS=$LIBS
18998 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
18999 cat >conftest.$ac_ext <<_ACEOF
19002 cat confdefs.h >>conftest.$ac_ext
19003 cat >>conftest.$ac_ext <<_ACEOF
19004 /* end confdefs.h. */
19006 /* Override any gcc2 internal prototype to avoid an error. */
19010 /* We use char because int might match the return type of a gcc2
19011 builtin and then its argument prototype would still apply. */
19012 char XShmQueryExtension ();
19016 XShmQueryExtension ();
19021 rm -f conftest.$ac_objext conftest$ac_exeext
19022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19023 (eval $ac_link) 2>conftest.er1
19025 grep -v '^ *+' conftest.er1 >conftest.err
19027 cat conftest.err >&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } &&
19030 { ac_try='test -z "$ac_c_werror_flag"
19031 || test ! -s conftest.err'
19032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19033 (eval $ac_try) 2>&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; } &&
19037 { ac_try='test -s conftest$ac_exeext'
19038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19039 (eval $ac_try) 2>&5
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; }; then
19043 ac_cv_lib_XextSam_XShmQueryExtension=yes
19045 echo "$as_me: failed program was:" >&5
19046 sed 's/^/| /' conftest.$ac_ext >&5
19048 ac_cv_lib_XextSam_XShmQueryExtension=no
19050 rm -f conftest.err conftest.$ac_objext \
19051 conftest$ac_exeext conftest.$ac_ext
19052 LIBS=$ac_check_lib_save_LIBS
19054 echo "$as_me:$LINENO: result: $ac_cv_lib_XextSam_XShmQueryExtension" >&5
19055 echo "${ECHO_T}$ac_cv_lib_XextSam_XShmQueryExtension" >&6
19056 if test $ac_cv_lib_XextSam_XShmQueryExtension = yes; then
19057 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
19062 CPPFLAGS="$ac_save_CPPFLAGS"
19063 LDFLAGS="$ac_save_LDFLAGS"
19064 # LIBS="$ac_save_LIBS"
19070 # if that succeeded, then we've really got it.
19071 if test "$have_xshm" = yes; then
19072 cat >>confdefs.h <<\_ACEOF
19073 #define HAVE_XSHM_EXTENSION 1
19078 elif test "$with_xshm" != no; then
19079 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
19084 ###############################################################################
19086 # Check for the DOUBLE-BUFFER server extension.
19088 ###############################################################################
19091 with_xdbe_req=unspecified
19093 # Check whether --with-xdbe-ext or --without-xdbe-ext was given.
19094 if test "${with_xdbe_ext+set}" = set; then
19095 withval="$with_xdbe_ext"
19096 with_xdbe="$withval"; with_xdbe_req="$withval"
19102 case "$with_xdbe" in
19107 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER headers" >&5
19108 echo $ECHO_N "checking for DOUBLE-BUFFER headers... $ECHO_C" >&6
19109 d=$with_xdbe/include
19110 if test -d $d; then
19111 X_CFLAGS="-I$d $X_CFLAGS"
19112 echo "$as_me:$LINENO: result: $d" >&5
19113 echo "${ECHO_T}$d" >&6
19115 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19116 echo "${ECHO_T}not found ($d: no such directory)" >&6
19119 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER libs" >&5
19120 echo $ECHO_N "checking for DOUBLE-BUFFER libs... $ECHO_C" >&6
19122 if test -d $d; then
19123 X_LIBS="-L$d $X_LIBS"
19124 echo "$as_me:$LINENO: result: $d" >&5
19125 echo "${ECHO_T}$d" >&6
19127 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19128 echo "${ECHO_T}not found ($d: no such directory)" >&6
19131 # replace the directory string with "yes".
19132 with_xdbe_req="yes"
19133 with_xdbe=$with_xdbe_req
19138 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
19139 echo " If it is a directory, then \`DIR/include' will be added to"
19140 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19146 if test "$with_xdbe" = yes; then
19149 ac_save_CPPFLAGS="$CPPFLAGS"
19150 if test \! -z "$includedir" ; then
19151 CPPFLAGS="$CPPFLAGS -I$includedir"
19153 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19154 echo "$as_me:$LINENO: checking for X11/extensions/Xdbe.h" >&5
19155 echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6
19156 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
19157 echo $ECHO_N "(cached) $ECHO_C" >&6
19159 cat >conftest.$ac_ext <<_ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h. */
19165 #include <X11/Xlib.h>
19167 #include <X11/extensions/Xdbe.h>
19169 rm -f conftest.$ac_objext
19170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19171 (eval $ac_compile) 2>conftest.er1
19173 grep -v '^ *+' conftest.er1 >conftest.err
19175 cat conftest.err >&5
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); } &&
19178 { ac_try='test -z "$ac_c_werror_flag"
19179 || test ! -s conftest.err'
19180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19181 (eval $ac_try) 2>&5
19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184 (exit $ac_status); }; } &&
19185 { ac_try='test -s conftest.$ac_objext'
19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; }; then
19191 ac_cv_header_X11_extensions_Xdbe_h=yes
19193 echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19196 ac_cv_header_X11_extensions_Xdbe_h=no
19198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19200 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
19201 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6
19202 if test $ac_cv_header_X11_extensions_Xdbe_h = yes; then
19207 CPPFLAGS="$ac_save_CPPFLAGS"
19208 if test "$have_xdbe" = yes; then
19209 cat >>confdefs.h <<\_ACEOF
19210 #define HAVE_DOUBLE_BUFFER_EXTENSION 1
19215 elif test "$with_xdbe" != no; then
19216 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
19221 ###############################################################################
19223 # Check for the SGI XReadDisplay server extension.
19225 # Note: this has to be down here, rather than up with the other server
19226 # extension tests, so that the output of `configure --help' is in the
19227 # right order. Arrgh!
19229 ###############################################################################
19231 have_readdisplay=no
19232 with_readdisplay_req=unspecified
19234 # Check whether --with-readdisplay or --without-readdisplay was given.
19235 if test "${with_readdisplay+set}" = set; then
19236 withval="$with_readdisplay"
19237 with_readdisplay="$withval"; with_readdisplay_req="$withval"
19239 with_readdisplay=yes
19243 case "$with_readdisplay" in
19248 echo "$as_me:$LINENO: checking for XReadDisplay headers" >&5
19249 echo $ECHO_N "checking for XReadDisplay headers... $ECHO_C" >&6
19250 d=$with_readdisplay/include
19251 if test -d $d; then
19252 X_CFLAGS="-I$d $X_CFLAGS"
19253 echo "$as_me:$LINENO: result: $d" >&5
19254 echo "${ECHO_T}$d" >&6
19256 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19257 echo "${ECHO_T}not found ($d: no such directory)" >&6
19260 echo "$as_me:$LINENO: checking for XReadDisplay libs" >&5
19261 echo $ECHO_N "checking for XReadDisplay libs... $ECHO_C" >&6
19262 d=$with_readdisplay/lib
19263 if test -d $d; then
19264 X_LIBS="-L$d $X_LIBS"
19265 echo "$as_me:$LINENO: result: $d" >&5
19266 echo "${ECHO_T}$d" >&6
19268 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19269 echo "${ECHO_T}not found ($d: no such directory)" >&6
19272 # replace the directory string with "yes".
19273 with_readdisplay_req="yes"
19274 with_readdisplay=$with_readdisplay_req
19279 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
19280 echo " If it is a directory, then \`DIR/include' will be added to"
19281 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19287 if test "$with_readdisplay" = yes; then
19289 ac_save_CPPFLAGS="$CPPFLAGS"
19290 if test \! -z "$includedir" ; then
19291 CPPFLAGS="$CPPFLAGS -I$includedir"
19293 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19294 echo "$as_me:$LINENO: checking for X11/extensions/readdisplay.h" >&5
19295 echo $ECHO_N "checking for X11/extensions/readdisplay.h... $ECHO_C" >&6
19296 if test "${ac_cv_header_X11_extensions_readdisplay_h+set}" = set; then
19297 echo $ECHO_N "(cached) $ECHO_C" >&6
19299 cat >conftest.$ac_ext <<_ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h. */
19305 #include <X11/Xlib.h>
19307 #include <X11/extensions/readdisplay.h>
19309 rm -f conftest.$ac_objext
19310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19311 (eval $ac_compile) 2>conftest.er1
19313 grep -v '^ *+' conftest.er1 >conftest.err
19315 cat conftest.err >&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); } &&
19318 { ac_try='test -z "$ac_c_werror_flag"
19319 || test ! -s conftest.err'
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; } &&
19325 { ac_try='test -s conftest.$ac_objext'
19326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19327 (eval $ac_try) 2>&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; }; then
19331 ac_cv_header_X11_extensions_readdisplay_h=yes
19333 echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.$ac_ext >&5
19336 ac_cv_header_X11_extensions_readdisplay_h=no
19338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19340 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_readdisplay_h" >&5
19341 echo "${ECHO_T}$ac_cv_header_X11_extensions_readdisplay_h" >&6
19342 if test $ac_cv_header_X11_extensions_readdisplay_h = yes; then
19343 cat >>confdefs.h <<\_ACEOF
19344 #define HAVE_READ_DISPLAY_EXTENSION 1
19350 CPPFLAGS="$ac_save_CPPFLAGS"
19351 elif test "$with_readdisplay" != no; then
19352 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
19357 ###############################################################################
19359 # Check for a program to generate random text.
19361 # Zippy is funnier than the idiocy generally spat out by `fortune',
19362 # so first see if "fortune zippy" works. Else, use plain "fortune".
19364 # We used to dig around in Emacs to look for the "yow" program, but
19365 # most people who have Emacs also have "fortune zippy", so nevermind.
19367 ###############################################################################
19369 with_fortune_req=""
19371 # Check whether --with-fortune or --without-fortune was given.
19372 if test "${with_fortune+set}" = set; then
19373 withval="$with_fortune"
19374 with_fortune_req="$withval"; with_fortune="$withval"
19379 if test "$with_fortune" = no || test "$with_fortune" = yes ; then
19381 with_fortune_req=""
19384 if test -n "$with_fortune_req" ; then
19385 ac_cv_fortune_program=""
19386 case "$with_fortune_req" in
19389 set dummy $with_fortune_req ; fortune_tmp=$2
19390 echo "$as_me:$LINENO: checking for $fortune_tmp" >&5
19391 echo $ECHO_N "checking for $fortune_tmp... $ECHO_C" >&6
19392 if test -x "$fortune_tmp" ; then
19393 echo "$as_me:$LINENO: result: yes" >&5
19394 echo "${ECHO_T}yes" >&6
19396 echo "$as_me:$LINENO: result: no" >&5
19397 echo "${ECHO_T}no" >&6
19402 set dummy $with_fortune_req ; fortune_tmp=$2
19404 unset ac_cv_path_fortune_tmp
19405 # Extract the first word of "$fortune_tmp", so it can be a program name with args.
19406 set dummy $fortune_tmp; ac_word=$2
19407 echo "$as_me:$LINENO: checking for $ac_word" >&5
19408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19409 if test "${ac_cv_path_fortune_tmp+set}" = set; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
19412 case $fortune_tmp in
19414 ac_cv_path_fortune_tmp="$fortune_tmp" # Let the user override the test with a path.
19417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19418 for as_dir in $PATH
19421 test -z "$as_dir" && as_dir=.
19422 for ac_exec_ext in '' $ac_executable_extensions; do
19423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19424 ac_cv_path_fortune_tmp="$as_dir/$ac_word$ac_exec_ext"
19425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19434 fortune_tmp=$ac_cv_path_fortune_tmp
19436 if test -n "$fortune_tmp"; then
19437 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
19438 echo "${ECHO_T}$fortune_tmp" >&6
19440 echo "$as_me:$LINENO: result: no" >&5
19441 echo "${ECHO_T}no" >&6
19444 if test -z "$fortune_tmp" ; then
19449 ac_cv_fortune_program="$with_fortune"
19451 elif test -n "$ac_cv_fortune_program"; then
19452 echo "$as_me:$LINENO: result: checking for fortune... (cached) $ac_cv_fortune_program" >&5
19453 echo "${ECHO_T}checking for fortune... (cached) $ac_cv_fortune_program" >&6
19456 unset ac_cv_path_fortune_tmp
19459 if test -z "$ac_cv_fortune_program" ; then
19461 # first look for fortune in /usr/games/ (and use absolute path)
19462 for ac_prog in fortune
19464 # Extract the first word of "$ac_prog", so it can be a program name with args.
19465 set dummy $ac_prog; ac_word=$2
19466 echo "$as_me:$LINENO: checking for $ac_word" >&5
19467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19468 if test "${ac_cv_path_fortune_tmp+set}" = set; then
19469 echo $ECHO_N "(cached) $ECHO_C" >&6
19471 case $fortune_tmp in
19473 ac_cv_path_fortune_tmp="$fortune_tmp" # Let the user override the test with a path.
19476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19477 for as_dir in "/usr/games"
19480 test -z "$as_dir" && as_dir=.
19481 for ac_exec_ext in '' $ac_executable_extensions; do
19482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19483 ac_cv_path_fortune_tmp="$as_dir/$ac_word$ac_exec_ext"
19484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19493 fortune_tmp=$ac_cv_path_fortune_tmp
19495 if test -n "$fortune_tmp"; then
19496 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
19497 echo "${ECHO_T}$fortune_tmp" >&6
19499 echo "$as_me:$LINENO: result: no" >&5
19500 echo "${ECHO_T}no" >&6
19503 test -n "$fortune_tmp" && break
19507 # if it's not there, look on $PATH (and don't use absolute path)
19508 if test -z "$fortune_tmp" ; then
19509 for ac_prog in fortune
19511 # Extract the first word of "$ac_prog", so it can be a program name with args.
19512 set dummy $ac_prog; ac_word=$2
19513 echo "$as_me:$LINENO: checking for $ac_word" >&5
19514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19515 if test "${ac_cv_prog_fortune_tmp+set}" = set; then
19516 echo $ECHO_N "(cached) $ECHO_C" >&6
19518 if test -n "$fortune_tmp"; then
19519 ac_cv_prog_fortune_tmp="$fortune_tmp" # Let the user override the test.
19521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19522 for as_dir in $PATH
19525 test -z "$as_dir" && as_dir=.
19526 for ac_exec_ext in '' $ac_executable_extensions; do
19527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19528 ac_cv_prog_fortune_tmp="$ac_prog"
19529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19537 fortune_tmp=$ac_cv_prog_fortune_tmp
19538 if test -n "$fortune_tmp"; then
19539 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
19540 echo "${ECHO_T}$fortune_tmp" >&6
19542 echo "$as_me:$LINENO: result: no" >&5
19543 echo "${ECHO_T}no" >&6
19546 test -n "$fortune_tmp" && break
19551 # if we didn't find anything, then just assume /usr/games/
19552 if test -z "$fortune_tmp" ; then
19553 fortune_tmp="/usr/games/fortune"
19556 ac_cv_fortune_program="$fortune_tmp"
19558 # now check to see whether "fortune zippy" works.
19560 fortune_tmp="$fortune_tmp zippy"
19561 echo "$as_me:$LINENO: checking for zippy quotes" >&5
19562 echo $ECHO_N "checking for zippy quotes... $ECHO_C" >&6
19563 if ( $fortune_tmp >/dev/null 2>&1 ); then
19564 ac_cv_fortune_program="$fortune_tmp"
19565 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
19566 echo "${ECHO_T}$fortune_tmp" >&6
19568 echo "$as_me:$LINENO: result: no" >&5
19569 echo "${ECHO_T}no" >&6
19574 unset ac_cv_path_fortune_tmp
19577 cat >>confdefs.h <<_ACEOF
19578 #define FORTUNE_PROGRAM "$ac_cv_fortune_program"
19583 ###############################################################################
19585 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
19586 # This should be safe, but let's give people the option.
19588 ###############################################################################
19590 setuid_hacks_default=no
19591 setuid_hacks="$setuid_hacks_default"
19593 # Check whether --with-setuid-hacks or --without-setuid-hacks was given.
19594 if test "${with_setuid_hacks+set}" = set; then
19595 withval="$with_setuid_hacks"
19596 setuid_hacks="$withval"
19598 setuid_hacks="$setuid_hacks_default"
19602 case "$setuid_hacks" in
19607 echo "$as_me:$LINENO: checking for setuid hacks headers" >&5
19608 echo $ECHO_N "checking for setuid hacks headers... $ECHO_C" >&6
19609 d=$setuid_hacks/include
19610 if test -d $d; then
19611 X_CFLAGS="-I$d $X_CFLAGS"
19612 echo "$as_me:$LINENO: result: $d" >&5
19613 echo "${ECHO_T}$d" >&6
19615 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19616 echo "${ECHO_T}not found ($d: no such directory)" >&6
19619 echo "$as_me:$LINENO: checking for setuid hacks libs" >&5
19620 echo $ECHO_N "checking for setuid hacks libs... $ECHO_C" >&6
19621 d=$setuid_hacks/lib
19622 if test -d $d; then
19623 X_LIBS="-L$d $X_LIBS"
19624 echo "$as_me:$LINENO: result: $d" >&5
19625 echo "${ECHO_T}$d" >&6
19627 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19628 echo "${ECHO_T}not found ($d: no such directory)" >&6
19631 # replace the directory string with "yes".
19632 setuid_hacks_req="yes"
19633 setuid_hacks=$setuid_hacks_req
19638 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
19639 echo " If it is a directory, then \`DIR/include' will be added to"
19640 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19646 if test "$setuid_hacks" = yes; then
19648 elif test "$setuid_hacks" != no; then
19649 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
19654 ###############################################################################
19656 # Done testing. Now, set up the various -I and -L variables,
19657 # and decide which GUI program to build by default.
19659 ###############################################################################
19666 if test \! -z "$includedir" ; then
19667 INCLUDES="$INCLUDES -I$includedir"
19670 if test \! -z "$libdir" ; then
19671 LDFLAGS="$LDFLAGS -L$libdir"
19675 PREFERRED_DEMO_PROGRAM=''
19677 if test "$have_motif" = yes; then
19678 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
19679 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
19681 if test "$have_gtk" = yes; then
19682 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
19683 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
19687 if test "$have_kerberos" = yes; then
19688 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
19689 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
19691 if test "$have_pam" = yes; then
19692 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
19693 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
19694 INSTALL_PAM="install-pam"
19696 if test "$have_passwd_helper" = yes; then
19697 PASSWD_SRCS="$PASSWD_SRCS \$(PWHELPER_SRCS)"
19698 PASSWD_OBJS="$PASSWD_OBJS \$(PWHELPER_OBJS)"
19700 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
19701 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
19704 if test "$enable_locking" = yes; then
19705 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
19706 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
19708 LOCK_SRCS='$(NOLOCK_SRCS_1)'
19709 LOCK_OBJS='$(NOLOCK_OBJS_1)'
19712 if test "$ac_macosx" = yes; then
19713 EXES_OSX='$(EXES_OSX)'
19714 SCRIPTS_OSX='$(SCRIPTS_OSX)'
19715 MEN_OSX='$(MEN_OSX)'
19723 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
19725 if test "$need_setuid" = yes; then
19731 if test "$setuid_hacks" = yes; then
19738 if test "$have_gl" = yes; then
19739 GL_EXES='$(GL_EXES)'
19740 GL_UTIL_EXES='$(GL_UTIL_EXES)'
19742 GL_KLUDGE="${tab} "
19744 GL_KLUDGE="-${tab} "
19747 if test "$have_gle" = yes; then
19748 GLE_EXES='$(GLE_EXES)'
19749 GLE_KLUDGE="${tab} "
19751 GLE_KLUDGE="-${tab} "
19754 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
19755 JPEG_EXES='$(JPEG_EXES)'
19759 # Another substitution in the XScreenSaver.ad.in file:
19761 if test "$gnome_open_program" != ''; then
19765 elif test "$gnome_url_show_program" != ''; then
19776 # Now that we know whether we have Gnome, we can decide where the XML
19777 # config files get installed.
19779 if test -z "$HACK_CONF_DIR" ; then
19780 if test -n "$GNOME_DATADIR" ; then
19781 HACK_CONF_DIR='${GNOME_DATADIR}/control-center/screensavers'
19783 HACK_CONF_DIR='${prefix}/lib/xscreensaver/config'
19789 # After computing $HACK_CONF_DIR, make sure $GLADE_DATADIR has a value
19790 # so that we know where to install the Gtk pixmaps.
19792 # It should usually be "/usr/share/pixmaps/", but we can't just use
19793 # "$(prefix)/share/pixmaps" because that would usually result in
19794 # "/usr/X11R6/share/pixmaps/", which is wrong. It needs to be the
19795 # Gtk prefix, not the overall prefix.
19797 if test -n "$GNOME_DATADIR" ; then
19798 GLADE_DATADIR='$(GNOME_DATADIR)/xscreensaver'
19799 elif test "$have_gtk" = yes; then
19800 GLADE_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
19801 GLADE_DATADIR="$GLADE_DATADIR/share/xscreensaver"
19807 # Set PO_DATADIR to something sensible.
19809 echo "$as_me:$LINENO: checking for locale directory" >&5
19810 echo $ECHO_N "checking for locale directory... $ECHO_C" >&6
19811 if test -n "$GNOME_DATADIR" ; then
19812 PO_DATADIR="$GNOME_DATADIR"
19813 elif test "$have_gtk" = yes; then
19814 PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
19815 PO_DATADIR="$PO_DATADIR/share"
19818 if test -z "$PO_DATADIR" ; then
19820 # #### Total fucking kludge --
19821 # Map /build/prefix/usr/X11R6/share/ to /build/prefix/usr/share/
19822 # but of course we need to expand all the nested variables to do that...
19830 PO_DATADIR=`echo $dd | sed 's@/X11R6/@/@'`
19833 echo "$as_me:$LINENO: result: $PO_DATADIR/locale" >&5
19834 echo "${ECHO_T}$PO_DATADIR/locale" >&6
19837 # canonicalize slashes.
19838 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
19840 # gcc 3.0 likes to issue this warning for every file:
19842 # cc1: warning: changing search order for system directory "/usr/local/include"
19843 # cc1: warning: as it has already been specified as a non-system directory
19845 # Yay. We can only avoid that by deleting "-I${prefix}/include" from the list.
19846 # Which *should* be totally redundant, and thus an ok thing to delete?
19848 INCLUDES=`echo "$INCLUDES" | sed 's@ -I${prefix}/include@@g;'`
19851 ###############################################################################
19853 # Perform substitutions and write Makefiles.
19855 ###############################################################################
19912 APPDEFAULTS=$ac_x_app_defaults
19920 ac_config_files="$ac_config_files Makefile utils/Makefile driver/Makefile hacks/Makefile hacks/glx/Makefile po/Makefile.in driver/XScreenSaver.ad"
19921 cat >confcache <<\_ACEOF
19922 # This file is a shell script that caches the results of configure
19923 # tests run on this system so they can be shared between configure
19924 # scripts and configure runs, see configure's option --config-cache.
19925 # It is not useful on other systems. If it contains results you don't
19926 # want to keep, you may remove or edit it.
19928 # config.status only pays attention to the cache file if you give it
19929 # the --recheck option to rerun configure.
19931 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19932 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19933 # following values.
19937 # The following way of writing the cache mishandles newlines in values,
19938 # but we know of no workaround that is simple, portable, and efficient.
19939 # So, don't put newlines in cache variables' values.
19940 # Ultrix sh set writes to stderr and can't be redirected directly,
19941 # and sets the high bit in the cache file unless we assign to the vars.
19944 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19946 # `set' does not quote correctly, so add quotes (double-quote
19947 # substitution turns \\\\ into \\, and sed turns \\ into \).
19950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19953 # `set' quotes correctly as required by POSIX, so do not add quotes.
19955 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19962 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19964 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19966 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19967 if test -w $cache_file; then
19968 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19969 cat confcache >$cache_file
19971 echo "not updating unwritable cache $cache_file"
19976 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19977 # Let make expand exec_prefix.
19978 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19980 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19981 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19982 # trailing colons and then remove the whole line if VPATH becomes empty
19983 # (actually we leave an empty line to preserve line numbers).
19984 if test "x$srcdir" = x.; then
19985 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19986 s/:*\$(srcdir):*/:/;
19987 s/:*\${srcdir}:*/:/;
19989 s/^\([^=]*=[ ]*\):*/\1/;
19995 DEFS=-DHAVE_CONFIG_H
19999 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20000 # 1. Remove the extension, and $U if already installed.
20001 ac_i=`echo "$ac_i" |
20002 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20004 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20005 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20007 LIBOBJS=$ac_libobjs
20009 LTLIBOBJS=$ac_ltlibobjs
20014 mv -f po/POTFILES po/POTFILES.tmp
20015 sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
20016 rm -f po/POTFILES.tmp
20020 : ${CONFIG_STATUS=./config.status}
20021 ac_clean_files_save=$ac_clean_files
20022 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20023 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20024 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20025 cat >$CONFIG_STATUS <<_ACEOF
20027 # Generated by $as_me.
20028 # Run this file to recreate the current configuration.
20029 # Compiler output produced by configure, useful for debugging
20030 # configure, is in config.log if it exists.
20033 ac_cs_recheck=false
20035 SHELL=\${CONFIG_SHELL-$SHELL}
20038 cat >>$CONFIG_STATUS <<\_ACEOF
20039 ## --------------------- ##
20040 ## M4sh Initialization. ##
20041 ## --------------------- ##
20043 # Be Bourne compatible
20044 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20047 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20048 # is contrary to our usage. Disable this feature.
20049 alias -g '${1+"$@"}'='"$@"'
20050 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20053 DUALCASE=1; export DUALCASE # for MKS sh
20055 # Support unset when possible.
20056 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20063 # Work around bugs in pre-3.0 UWIN ksh.
20064 $as_unset ENV MAIL MAILPATH
20071 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20072 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20073 LC_TELEPHONE LC_TIME
20075 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20076 eval $as_var=C; export $as_var
20082 # Required to use basename.
20083 if expr a : '\(a\)' >/dev/null 2>&1; then
20089 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20090 as_basename=basename
20096 # Name of the executable.
20097 as_me=`$as_basename "$0" ||
20098 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20099 X"$0" : 'X\(//\)$' \| \
20100 X"$0" : 'X\(/\)$' \| \
20101 . : '\(.\)' 2>/dev/null ||
20103 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20104 /^X\/\(\/\/\)$/{ s//\1/; q; }
20105 /^X\/\(\/\).*/{ s//\1/; q; }
20109 # PATH needs CR, and LINENO needs CR and PATH.
20110 # Avoid depending upon Character Ranges.
20111 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20112 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20113 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20114 as_cr_digits='0123456789'
20115 as_cr_alnum=$as_cr_Letters$as_cr_digits
20117 # The user is always right.
20118 if test "${PATH_SEPARATOR+set}" != set; then
20119 echo "#! /bin/sh" >conf$$.sh
20120 echo "exit 0" >>conf$$.sh
20122 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20131 as_lineno_1=$LINENO
20132 as_lineno_2=$LINENO
20133 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20134 test "x$as_lineno_1" != "x$as_lineno_2" &&
20135 test "x$as_lineno_3" = "x$as_lineno_2" || {
20136 # Find who we are. Look in the path if we contain no path at all
20139 *[\\/]* ) as_myself=$0 ;;
20140 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20141 for as_dir in $PATH
20144 test -z "$as_dir" && as_dir=.
20145 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20150 # We did not find ourselves, most probably we were run as `sh COMMAND'
20151 # in which case we are not to be found in the path.
20152 if test "x$as_myself" = x; then
20155 if test ! -f "$as_myself"; then
20156 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20157 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20158 { (exit 1); exit 1; }; }
20160 case $CONFIG_SHELL in
20162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20163 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20166 test -z "$as_dir" && as_dir=.
20167 for as_base in sh bash ksh sh5; do
20170 if ("$as_dir/$as_base" -c '
20171 as_lineno_1=$LINENO
20172 as_lineno_2=$LINENO
20173 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20174 test "x$as_lineno_1" != "x$as_lineno_2" &&
20175 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20176 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20177 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20178 CONFIG_SHELL=$as_dir/$as_base
20179 export CONFIG_SHELL
20180 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20188 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20189 # uniformly replaced by the line number. The first 'sed' inserts a
20190 # line-number line before each line; the second 'sed' does the real
20191 # work. The second script uses 'N' to pair each line-number line
20192 # with the numbered line, and appends trailing '-' during
20193 # substitution so that $LINENO is not a special case at line end.
20194 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20195 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20196 sed '=' <$as_myself |
20201 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20204 s,^['$as_cr_digits']*\n,,
20205 ' >$as_me.lineno &&
20206 chmod +x $as_me.lineno ||
20207 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20208 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20209 { (exit 1); exit 1; }; }
20211 # Don't try to exec as it changes $[0], causing all sort of problems
20212 # (the dirname of $[0] is not the place where we might find the
20213 # original and so on. Autoconf is especially sensible to this).
20215 # Exit status is that of the last command.
20220 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20221 *c*,-n*) ECHO_N= ECHO_C='
20223 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20224 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20227 if expr a : '\(a\)' >/dev/null 2>&1; then
20233 rm -f conf$$ conf$$.exe conf$$.file
20235 if ln -s conf$$.file conf$$ 2>/dev/null; then
20236 # We could just check for DJGPP; but this test a) works b) is more generic
20237 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20238 if test -f conf$$.exe; then
20239 # Don't use ln at all; we don't have any links
20244 elif ln conf$$.file conf$$ 2>/dev/null; then
20249 rm -f conf$$ conf$$.exe conf$$.file
20251 if mkdir -p . 2>/dev/null; then
20254 test -d ./-p && rmdir ./-p
20258 as_executable_p="test -f"
20260 # Sed expression to map a string onto a valid CPP name.
20261 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20263 # Sed expression to map a string onto a valid variable name.
20264 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20268 # We need space, tab and new line, in precisely that order.
20278 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20279 # report actual input values of CONFIG_FILES etc. instead of their
20280 # values after options handling. Logging --version etc. is OK.
20284 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20285 ## Running $as_me. ##
20290 This file was extended by $as_me, which was
20291 generated by GNU Autoconf 2.59. Invocation command line was
20293 CONFIG_FILES = $CONFIG_FILES
20294 CONFIG_HEADERS = $CONFIG_HEADERS
20295 CONFIG_LINKS = $CONFIG_LINKS
20296 CONFIG_COMMANDS = $CONFIG_COMMANDS
20300 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20304 # Files that config.status was made for.
20305 if test -n "$ac_config_files"; then
20306 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20309 if test -n "$ac_config_headers"; then
20310 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20313 if test -n "$ac_config_links"; then
20314 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20317 if test -n "$ac_config_commands"; then
20318 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20321 cat >>$CONFIG_STATUS <<\_ACEOF
20324 \`$as_me' instantiates files from templates according to the
20325 current configuration.
20327 Usage: $0 [OPTIONS] [FILE]...
20329 -h, --help print this help, then exit
20330 -V, --version print version number, then exit
20331 -q, --quiet do not print progress messages
20332 -d, --debug don't remove temporary files
20333 --recheck update $as_me by reconfiguring in the same conditions
20334 --file=FILE[:TEMPLATE]
20335 instantiate the configuration file FILE
20336 --header=FILE[:TEMPLATE]
20337 instantiate the configuration header FILE
20339 Configuration files:
20342 Configuration headers:
20345 Configuration commands:
20348 Report bugs to <bug-autoconf@gnu.org>."
20351 cat >>$CONFIG_STATUS <<_ACEOF
20354 configured by $0, generated by GNU Autoconf 2.59,
20355 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20357 Copyright (C) 2003 Free Software Foundation, Inc.
20358 This config.status script is free software; the Free Software Foundation
20359 gives unlimited permission to copy, distribute and modify it."
20364 cat >>$CONFIG_STATUS <<\_ACEOF
20365 # If no file are specified by the user, then we need to provide default
20366 # value. By we need to know if files were specified by the user.
20372 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20373 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20381 *) # This is not an option, so the user has probably given explicit
20384 ac_need_defaults=false;;
20388 # Handling of the options.
20390 cat >>$CONFIG_STATUS <<\_ACEOF
20391 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20393 --version | --vers* | -V )
20394 echo "$ac_cs_version"; exit 0 ;;
20396 # Conflict between --help and --header
20397 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20398 Try \`$0 --help' for more information." >&5
20399 echo "$as_me: error: ambiguous option: $1
20400 Try \`$0 --help' for more information." >&2;}
20401 { (exit 1); exit 1; }; };;
20402 --help | --hel | -h )
20403 echo "$ac_cs_usage"; exit 0 ;;
20404 --debug | --d* | -d )
20406 --file | --fil | --fi | --f )
20408 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20409 ac_need_defaults=false;;
20410 --header | --heade | --head | --hea )
20412 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20413 ac_need_defaults=false;;
20414 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20415 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20418 # This is an error.
20419 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20420 Try \`$0 --help' for more information." >&5
20421 echo "$as_me: error: unrecognized option: $1
20422 Try \`$0 --help' for more information." >&2;}
20423 { (exit 1); exit 1; }; } ;;
20425 *) ac_config_targets="$ac_config_targets $1" ;;
20431 ac_configure_extra_args=
20433 if $ac_cs_silent; then
20435 ac_configure_extra_args="$ac_configure_extra_args --silent"
20439 cat >>$CONFIG_STATUS <<_ACEOF
20440 if \$ac_cs_recheck; then
20441 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20442 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20447 cat >>$CONFIG_STATUS <<_ACEOF
20449 # INIT-COMMANDS section.
20452 INTLTOOL_PERL=${INTLTOOL_PERL}
20459 cat >>$CONFIG_STATUS <<\_ACEOF
20460 for ac_config_target in $ac_config_targets
20462 case "$ac_config_target" in
20463 # Handling of arguments.
20464 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20465 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20466 "driver/Makefile" ) CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
20467 "hacks/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
20468 "hacks/glx/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
20469 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20470 "driver/XScreenSaver.ad" ) CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
20471 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20472 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
20473 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20474 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20475 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20476 { (exit 1); exit 1; }; };;
20480 # If the user did not use the arguments to specify the items to instantiate,
20481 # then the envvar interface is used. Set only those that are not.
20482 # We use the long form for the default assignment because of an extremely
20483 # bizarre bug on SunOS 4.1.3.
20484 if $ac_need_defaults; then
20485 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20486 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20487 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20490 # Have a temporary directory for convenience. Make it in the build tree
20491 # simply because there is no reason to put it here, and in addition,
20492 # creating and moving files from /tmp can sometimes cause problems.
20493 # Create a temporary directory, and hook for its removal unless debugging.
20496 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20497 trap '{ (exit 1); exit 1; }' 1 2 13 15
20500 # Create a (secure) tmp directory for tmp files.
20503 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20504 test -n "$tmp" && test -d "$tmp"
20507 tmp=./confstat$$-$RANDOM
20508 (umask 077 && mkdir $tmp)
20511 echo "$me: cannot create a temporary directory in ." >&2
20512 { (exit 1); exit 1; }
20517 cat >>$CONFIG_STATUS <<_ACEOF
20520 # CONFIG_FILES section.
20523 # No need to generate the scripts if there are no CONFIG_FILES.
20524 # This happens for instance when ./config.status config.h
20525 if test -n "\$CONFIG_FILES"; then
20526 # Protect against being on the right side of a sed subst in config.status.
20527 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20528 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20529 s,@SHELL@,$SHELL,;t t
20530 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20531 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20532 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20533 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20534 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20535 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20536 s,@exec_prefix@,$exec_prefix,;t t
20537 s,@prefix@,$prefix,;t t
20538 s,@program_transform_name@,$program_transform_name,;t t
20539 s,@bindir@,$bindir,;t t
20540 s,@sbindir@,$sbindir,;t t
20541 s,@libexecdir@,$libexecdir,;t t
20542 s,@datadir@,$datadir,;t t
20543 s,@sysconfdir@,$sysconfdir,;t t
20544 s,@sharedstatedir@,$sharedstatedir,;t t
20545 s,@localstatedir@,$localstatedir,;t t
20546 s,@libdir@,$libdir,;t t
20547 s,@includedir@,$includedir,;t t
20548 s,@oldincludedir@,$oldincludedir,;t t
20549 s,@infodir@,$infodir,;t t
20550 s,@mandir@,$mandir,;t t
20551 s,@build_alias@,$build_alias,;t t
20552 s,@host_alias@,$host_alias,;t t
20553 s,@target_alias@,$target_alias,;t t
20554 s,@DEFS@,$DEFS,;t t
20555 s,@ECHO_C@,$ECHO_C,;t t
20556 s,@ECHO_N@,$ECHO_N,;t t
20557 s,@ECHO_T@,$ECHO_T,;t t
20558 s,@LIBS@,$LIBS,;t t
20559 s,@build@,$build,;t t
20560 s,@build_cpu@,$build_cpu,;t t
20561 s,@build_vendor@,$build_vendor,;t t
20562 s,@build_os@,$build_os,;t t
20563 s,@host@,$host,;t t
20564 s,@host_cpu@,$host_cpu,;t t
20565 s,@host_vendor@,$host_vendor,;t t
20566 s,@host_os@,$host_os,;t t
20568 s,@CFLAGS@,$CFLAGS,;t t
20569 s,@LDFLAGS@,$LDFLAGS,;t t
20570 s,@CPPFLAGS@,$CPPFLAGS,;t t
20571 s,@ac_ct_CC@,$ac_ct_CC,;t t
20572 s,@EXEEXT@,$EXEEXT,;t t
20573 s,@OBJEXT@,$OBJEXT,;t t
20575 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20576 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20577 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20578 s,@SET_MAKE@,$SET_MAKE,;t t
20579 s,@EGREP@,$EGREP,;t t
20580 s,@PERL@,$PERL,;t t
20581 s,@X_CFLAGS@,$X_CFLAGS,;t t
20582 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20583 s,@X_LIBS@,$X_LIBS,;t t
20584 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20585 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
20586 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
20587 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
20588 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
20589 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
20590 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
20591 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
20592 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
20593 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
20594 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
20595 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
20596 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
20597 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
20598 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
20599 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
20600 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
20601 s,@RANLIB@,$RANLIB,;t t
20602 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20603 s,@ALLOCA@,$ALLOCA,;t t
20604 s,@USE_NLS@,$USE_NLS,;t t
20605 s,@MSGFMT@,$MSGFMT,;t t
20606 s,@GMSGFMT@,$GMSGFMT,;t t
20607 s,@XGETTEXT@,$XGETTEXT,;t t
20608 s,@CATALOGS@,$CATALOGS,;t t
20609 s,@CATOBJEXT@,$CATOBJEXT,;t t
20610 s,@DATADIRNAME@,$DATADIRNAME,;t t
20611 s,@GMOFILES@,$GMOFILES,;t t
20612 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20613 s,@INTLDEPS@,$INTLDEPS,;t t
20614 s,@INTLLIBS@,$INTLLIBS,;t t
20615 s,@INTLOBJS@,$INTLOBJS,;t t
20616 s,@POFILES@,$POFILES,;t t
20617 s,@POSUB@,$POSUB,;t t
20618 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20619 s,@pkg_config@,$pkg_config,;t t
20620 s,@gnome_open_program@,$gnome_open_program,;t t
20621 s,@gnome_url_show_program@,$gnome_url_show_program,;t t
20622 s,@fortune_tmp@,$fortune_tmp,;t t
20623 s,@INCLUDES@,$INCLUDES,;t t
20624 s,@PREFERRED_DEMO_PROGRAM@,$PREFERRED_DEMO_PROGRAM,;t t
20625 s,@ALL_DEMO_PROGRAMS@,$ALL_DEMO_PROGRAMS,;t t
20626 s,@SAVER_LIBS@,$SAVER_LIBS,;t t
20627 s,@MOTIF_LIBS@,$MOTIF_LIBS,;t t
20628 s,@GTK_LIBS@,$GTK_LIBS,;t t
20629 s,@XML_LIBS@,$XML_LIBS,;t t
20630 s,@JPEG_LIBS@,$JPEG_LIBS,;t t
20631 s,@HACK_LIBS@,$HACK_LIBS,;t t
20632 s,@XPM_LIBS@,$XPM_LIBS,;t t
20633 s,@PTY_LIBS@,$PTY_LIBS,;t t
20634 s,@GL_LIBS@,$GL_LIBS,;t t
20635 s,@GLE_LIBS@,$GLE_LIBS,;t t
20636 s,@XDPMS_LIBS@,$XDPMS_LIBS,;t t
20637 s,@PASSWD_LIBS@,$PASSWD_LIBS,;t t
20638 s,@INSTALL_SETUID@,$INSTALL_SETUID,;t t
20639 s,@SETUID_HACKS@,$SETUID_HACKS,;t t
20640 s,@INSTALL_DIRS@,$INSTALL_DIRS,;t t
20641 s,@NEED_SETUID@,$NEED_SETUID,;t t
20642 s,@INSTALL_PAM@,$INSTALL_PAM,;t t
20643 s,@OBJCC@,$OBJCC,;t t
20644 s,@EXES_OSX@,$EXES_OSX,;t t
20645 s,@SCRIPTS_OSX@,$SCRIPTS_OSX,;t t
20646 s,@MEN_OSX@,$MEN_OSX,;t t
20647 s,@PASSWD_SRCS@,$PASSWD_SRCS,;t t
20648 s,@PASSWD_OBJS@,$PASSWD_OBJS,;t t
20649 s,@XMU_SRCS@,$XMU_SRCS,;t t
20650 s,@XMU_OBJS@,$XMU_OBJS,;t t
20651 s,@XMU_LIBS@,$XMU_LIBS,;t t
20652 s,@SAVER_GL_SRCS@,$SAVER_GL_SRCS,;t t
20653 s,@SAVER_GL_OBJS@,$SAVER_GL_OBJS,;t t
20654 s,@SAVER_GL_LIBS@,$SAVER_GL_LIBS,;t t
20655 s,@LOCK_SRCS@,$LOCK_SRCS,;t t
20656 s,@LOCK_OBJS@,$LOCK_OBJS,;t t
20657 s,@JPEG_EXES@,$JPEG_EXES,;t t
20658 s,@GL_EXES@,$GL_EXES,;t t
20659 s,@GL_UTIL_EXES@,$GL_UTIL_EXES,;t t
20660 s,@GL_MEN@,$GL_MEN,;t t
20661 s,@GL_KLUDGE@,$GL_KLUDGE,;t t
20662 s,@GLE_EXES@,$GLE_EXES,;t t
20663 s,@GLE_KLUDGE@,$GLE_KLUDGE,;t t
20664 s,@GNOME24@,$GNOME24,;t t
20665 s,@GNOME22@,$GNOME22,;t t
20666 s,@NOGNOME@,$NOGNOME,;t t
20667 s,@HACKDIR@,$HACKDIR,;t t
20668 s,@GNOME_DATADIR@,$GNOME_DATADIR,;t t
20669 s,@GLADE_DATADIR@,$GLADE_DATADIR,;t t
20670 s,@PO_DATADIR@,$PO_DATADIR,;t t
20671 s,@GNOME_PANELDIR@,$GNOME_PANELDIR,;t t
20672 s,@HACK_CONF_DIR@,$HACK_CONF_DIR,;t t
20673 s,@GTK_EXTRA_OBJS@,$GTK_EXTRA_OBJS,;t t
20674 s,@APPDEFAULTS@,$APPDEFAULTS,;t t
20675 s,@DEPEND@,$DEPEND,;t t
20676 s,@DEPEND_FLAGS@,$DEPEND_FLAGS,;t t
20677 s,@DEPEND_DEFINES@,$DEPEND_DEFINES,;t t
20678 s,@LIBOBJS@,$LIBOBJS,;t t
20679 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20684 cat >>$CONFIG_STATUS <<\_ACEOF
20685 # Split the substitutions into bite-sized pieces for seds with
20686 # small command number limits, like on Digital OSF/1 and HP-UX.
20687 ac_max_sed_lines=48
20688 ac_sed_frag=1 # Number of current file.
20689 ac_beg=1 # First line for current file.
20690 ac_end=$ac_max_sed_lines # Line after last line for current file.
20693 while $ac_more_lines; do
20694 if test $ac_beg -gt 1; then
20695 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20697 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20699 if test ! -s $tmp/subs.frag; then
20700 ac_more_lines=false
20702 # The purpose of the label and of the branching condition is to
20703 # speed up the sed processing (if there are no `@' at all, there
20704 # is no need to browse any of the substitutions).
20705 # These are the two extra sed commands mentioned above.
20707 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20708 if test -z "$ac_sed_cmds"; then
20709 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20711 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20713 ac_sed_frag=`expr $ac_sed_frag + 1`
20715 ac_end=`expr $ac_end + $ac_max_sed_lines`
20718 if test -z "$ac_sed_cmds"; then
20721 fi # test -n "$CONFIG_FILES"
20724 cat >>$CONFIG_STATUS <<\_ACEOF
20725 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20726 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20728 - | *:- | *:-:* ) # input from stdin
20730 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20731 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20732 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20733 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20734 * ) ac_file_in=$ac_file.in ;;
20737 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20738 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20739 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20740 X"$ac_file" : 'X\(//\)[^/]' \| \
20741 X"$ac_file" : 'X\(//\)$' \| \
20742 X"$ac_file" : 'X\(/\)' \| \
20743 . : '\(.\)' 2>/dev/null ||
20745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20746 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20747 /^X\(\/\/\)$/{ s//\1/; q; }
20748 /^X\(\/\).*/{ s//\1/; q; }
20750 { if $as_mkdir_p; then
20755 while test ! -d "$as_dir"; do
20756 as_dirs="$as_dir $as_dirs"
20757 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20758 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20759 X"$as_dir" : 'X\(//\)[^/]' \| \
20760 X"$as_dir" : 'X\(//\)$' \| \
20761 X"$as_dir" : 'X\(/\)' \| \
20762 . : '\(.\)' 2>/dev/null ||
20764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20765 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20766 /^X\(\/\/\)$/{ s//\1/; q; }
20767 /^X\(\/\).*/{ s//\1/; q; }
20770 test ! -n "$as_dirs" || mkdir $as_dirs
20771 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20772 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20773 { (exit 1); exit 1; }; }; }
20777 if test "$ac_dir" != .; then
20778 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20779 # A "../" for each directory in $ac_dir_suffix.
20780 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20782 ac_dir_suffix= ac_top_builddir=
20786 .) # No --srcdir option. We are building in place.
20788 if test -z "$ac_top_builddir"; then
20791 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20793 [\\/]* | ?:[\\/]* ) # Absolute path.
20794 ac_srcdir=$srcdir$ac_dir_suffix;
20795 ac_top_srcdir=$srcdir ;;
20796 *) # Relative path.
20797 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20798 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20801 # Do not use `cd foo && pwd` to compute absolute paths, because
20802 # the directories may not exist.
20804 .) ac_abs_builddir="$ac_dir";;
20807 .) ac_abs_builddir=`pwd`;;
20808 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20809 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20812 case $ac_abs_builddir in
20813 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20815 case ${ac_top_builddir}. in
20816 .) ac_abs_top_builddir=$ac_abs_builddir;;
20817 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20818 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20821 case $ac_abs_builddir in
20822 .) ac_abs_srcdir=$ac_srcdir;;
20825 .) ac_abs_srcdir=$ac_abs_builddir;;
20826 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20827 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20830 case $ac_abs_builddir in
20831 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20833 case $ac_top_srcdir in
20834 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20835 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20836 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20842 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20843 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20846 if test x"$ac_file" != x-; then
20847 { echo "$as_me:$LINENO: creating $ac_file" >&5
20848 echo "$as_me: creating $ac_file" >&6;}
20851 # Let's still pretend it is `configure' which instantiates (i.e., don't
20852 # use $as_me), people would be surprised to read:
20853 # /* config.h. Generated by config.status. */
20854 if test x"$ac_file" = x-; then
20857 configure_input="$ac_file. "
20859 configure_input=$configure_input"Generated from `echo $ac_file_in |
20860 sed 's,.*/,,'` by configure."
20862 # First look for the input files in the build tree, otherwise in the
20864 ac_file_inputs=`IFS=:
20865 for f in $ac_file_in; do
20867 -) echo $tmp/stdin ;;
20869 # Absolute (can't be DOS-style, as IFS=:)
20870 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20871 echo "$as_me: error: cannot find input file: $f" >&2;}
20872 { (exit 1); exit 1; }; }
20875 if test -f "$f"; then
20878 elif test -f "$srcdir/$f"; then
20883 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20884 echo "$as_me: error: cannot find input file: $f" >&2;}
20885 { (exit 1); exit 1; }; }
20888 done` || { (exit 1); exit 1; }
20890 cat >>$CONFIG_STATUS <<_ACEOF
20894 cat >>$CONFIG_STATUS <<\_ACEOF
20896 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20897 s,@configure_input@,$configure_input,;t t
20898 s,@srcdir@,$ac_srcdir,;t t
20899 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20900 s,@top_srcdir@,$ac_top_srcdir,;t t
20901 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20902 s,@builddir@,$ac_builddir,;t t
20903 s,@abs_builddir@,$ac_abs_builddir,;t t
20904 s,@top_builddir@,$ac_top_builddir,;t t
20905 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20906 s,@INSTALL@,$ac_INSTALL,;t t
20907 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20909 if test x"$ac_file" != x-; then
20910 mv $tmp/out $ac_file
20918 cat >>$CONFIG_STATUS <<\_ACEOF
20921 # CONFIG_HEADER section.
20924 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20925 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20927 # ac_d sets the value in "#define NAME VALUE" lines.
20928 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20929 ac_dB='[ ].*$,\1#\2'
20932 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20933 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20934 ac_uB='$,\1#\2define\3'
20938 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20939 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20941 - | *:- | *:-:* ) # input from stdin
20943 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20944 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20945 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20946 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20947 * ) ac_file_in=$ac_file.in ;;
20950 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20951 echo "$as_me: creating $ac_file" >&6;}
20953 # First look for the input files in the build tree, otherwise in the
20955 ac_file_inputs=`IFS=:
20956 for f in $ac_file_in; do
20958 -) echo $tmp/stdin ;;
20960 # Absolute (can't be DOS-style, as IFS=:)
20961 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20962 echo "$as_me: error: cannot find input file: $f" >&2;}
20963 { (exit 1); exit 1; }; }
20964 # Do quote $f, to prevent DOS paths from being IFS'd.
20967 if test -f "$f"; then
20970 elif test -f "$srcdir/$f"; then
20975 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20976 echo "$as_me: error: cannot find input file: $f" >&2;}
20977 { (exit 1); exit 1; }; }
20980 done` || { (exit 1); exit 1; }
20981 # Remove the trailing spaces.
20982 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20986 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20987 # `conftest.undefs', that substitutes the proper values into
20988 # config.h.in to produce config.h. The first handles `#define'
20989 # templates, and the second `#undef' templates.
20990 # And first: Protect against being on the right side of a sed subst in
20991 # config.status. Protect against being in an unquoted here document
20992 # in config.status.
20993 rm -f conftest.defines conftest.undefs
20994 # Using a here document instead of a string reduces the quoting nightmare.
20995 # Putting comments in sed scripts is not portable.
20997 # `end' is used to avoid that the second main sed command (meant for
20998 # 0-ary CPP macros) applies to n-ary macro definitions.
20999 # See the Autoconf documentation for `clear'.
21000 cat >confdef2sed.sed <<\_ACEOF
21005 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21007 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21010 # If some macros were called several times there might be several times
21011 # the same #defines, which is useless. Nevertheless, we may not want to
21012 # sort them, since we want the *last* AC-DEFINE to be honored.
21013 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21014 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21015 rm -f confdef2sed.sed
21017 # This sed command replaces #undef with comments. This is necessary, for
21018 # example, in the case of _POSIX_SOURCE, which is predefined and required
21019 # on some systems where configure will not decide to define it.
21020 cat >>conftest.undefs <<\_ACEOF
21021 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21024 # Break up conftest.defines because some shells have a limit on the size
21025 # of here documents, and old seds have small limits too (100 cmds).
21026 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21027 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21028 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21029 echo ' :' >>$CONFIG_STATUS
21030 rm -f conftest.tail
21031 while grep . conftest.defines >/dev/null
21033 # Write a limited-size here document to $tmp/defines.sed.
21034 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21035 # Speed up: don't consider the non `#define' lines.
21036 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21037 # Work around the forget-to-reset-the-flag bug.
21038 echo 't clr' >>$CONFIG_STATUS
21039 echo ': clr' >>$CONFIG_STATUS
21040 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21042 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21044 mv $tmp/out $tmp/in
21046 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21047 rm -f conftest.defines
21048 mv conftest.tail conftest.defines
21050 rm -f conftest.defines
21051 echo ' fi # grep' >>$CONFIG_STATUS
21052 echo >>$CONFIG_STATUS
21054 # Break up conftest.undefs because some shells have a limit on the size
21055 # of here documents, and old seds have small limits too (100 cmds).
21056 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21057 rm -f conftest.tail
21058 while grep . conftest.undefs >/dev/null
21060 # Write a limited-size here document to $tmp/undefs.sed.
21061 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21062 # Speed up: don't consider the non `#undef'
21063 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21064 # Work around the forget-to-reset-the-flag bug.
21065 echo 't clr' >>$CONFIG_STATUS
21066 echo ': clr' >>$CONFIG_STATUS
21067 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21069 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21071 mv $tmp/out $tmp/in
21073 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21074 rm -f conftest.undefs
21075 mv conftest.tail conftest.undefs
21077 rm -f conftest.undefs
21079 cat >>$CONFIG_STATUS <<\_ACEOF
21080 # Let's still pretend it is `configure' which instantiates (i.e., don't
21081 # use $as_me), people would be surprised to read:
21082 # /* config.h. Generated by config.status. */
21083 if test x"$ac_file" = x-; then
21084 echo "/* Generated by configure. */" >$tmp/config.h
21086 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21088 cat $tmp/in >>$tmp/config.h
21090 if test x"$ac_file" != x-; then
21091 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21092 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21093 echo "$as_me: $ac_file is unchanged" >&6;}
21095 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21096 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21097 X"$ac_file" : 'X\(//\)[^/]' \| \
21098 X"$ac_file" : 'X\(//\)$' \| \
21099 X"$ac_file" : 'X\(/\)' \| \
21100 . : '\(.\)' 2>/dev/null ||
21102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21103 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21104 /^X\(\/\/\)$/{ s//\1/; q; }
21105 /^X\(\/\).*/{ s//\1/; q; }
21107 { if $as_mkdir_p; then
21112 while test ! -d "$as_dir"; do
21113 as_dirs="$as_dir $as_dirs"
21114 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21115 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21116 X"$as_dir" : 'X\(//\)[^/]' \| \
21117 X"$as_dir" : 'X\(//\)$' \| \
21118 X"$as_dir" : 'X\(/\)' \| \
21119 . : '\(.\)' 2>/dev/null ||
21121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21122 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21123 /^X\(\/\/\)$/{ s//\1/; q; }
21124 /^X\(\/\).*/{ s//\1/; q; }
21127 test ! -n "$as_dirs" || mkdir $as_dirs
21128 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21129 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21130 { (exit 1); exit 1; }; }; }
21133 mv $tmp/config.h $ac_file
21137 rm -f $tmp/config.h
21141 cat >>$CONFIG_STATUS <<\_ACEOF
21144 # CONFIG_COMMANDS section.
21146 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21147 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21148 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21149 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21150 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21151 X"$ac_dest" : 'X\(//\)[^/]' \| \
21152 X"$ac_dest" : 'X\(//\)$' \| \
21153 X"$ac_dest" : 'X\(/\)' \| \
21154 . : '\(.\)' 2>/dev/null ||
21156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21158 /^X\(\/\/\)$/{ s//\1/; q; }
21159 /^X\(\/\).*/{ s//\1/; q; }
21161 { if $as_mkdir_p; then
21166 while test ! -d "$as_dir"; do
21167 as_dirs="$as_dir $as_dirs"
21168 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21169 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21170 X"$as_dir" : 'X\(//\)[^/]' \| \
21171 X"$as_dir" : 'X\(//\)$' \| \
21172 X"$as_dir" : 'X\(/\)' \| \
21173 . : '\(.\)' 2>/dev/null ||
21175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21176 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21177 /^X\(\/\/\)$/{ s//\1/; q; }
21178 /^X\(\/\).*/{ s//\1/; q; }
21181 test ! -n "$as_dirs" || mkdir $as_dirs
21182 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21183 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21184 { (exit 1); exit 1; }; }; }
21188 if test "$ac_dir" != .; then
21189 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21190 # A "../" for each directory in $ac_dir_suffix.
21191 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21193 ac_dir_suffix= ac_top_builddir=
21197 .) # No --srcdir option. We are building in place.
21199 if test -z "$ac_top_builddir"; then
21202 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21204 [\\/]* | ?:[\\/]* ) # Absolute path.
21205 ac_srcdir=$srcdir$ac_dir_suffix;
21206 ac_top_srcdir=$srcdir ;;
21207 *) # Relative path.
21208 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21209 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21212 # Do not use `cd foo && pwd` to compute absolute paths, because
21213 # the directories may not exist.
21215 .) ac_abs_builddir="$ac_dir";;
21218 .) ac_abs_builddir=`pwd`;;
21219 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21220 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21223 case $ac_abs_builddir in
21224 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21226 case ${ac_top_builddir}. in
21227 .) ac_abs_top_builddir=$ac_abs_builddir;;
21228 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21229 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21232 case $ac_abs_builddir in
21233 .) ac_abs_srcdir=$ac_srcdir;;
21236 .) ac_abs_srcdir=$ac_abs_builddir;;
21237 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21238 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21241 case $ac_abs_builddir in
21242 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21244 case $ac_top_srcdir in
21245 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21246 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21247 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21252 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21253 echo "$as_me: executing $ac_dest commands" >&6;}
21257 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
21258 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
21259 rm -f intltool-extract.out
21261 mv -f intltool-extract.out intltool-extract
21263 chmod ugo+x intltool-extract
21264 chmod u+w intltool-extract
21266 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
21267 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
21268 rm -f intltool-merge.out
21270 mv -f intltool-merge.out intltool-merge
21272 chmod ugo+x intltool-merge
21273 chmod u+w intltool-merge
21275 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
21276 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
21277 rm -f intltool-update.out
21279 mv -f intltool-update.out intltool-update
21281 chmod ugo+x intltool-update
21282 chmod u+w intltool-update
21285 default-2 ) case "$CONFIG_FILES" in *po/Makefile.in*)
21286 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
21292 cat >>$CONFIG_STATUS <<\_ACEOF
21294 { (exit 0); exit 0; }
21296 chmod +x $CONFIG_STATUS
21297 ac_clean_files=$ac_clean_files_save
21300 # configure is writing to config.log, and then calls config.status.
21301 # config.status does its own redirection, appending to config.log.
21302 # Unfortunately, on DOS this fails, as config.log is still kept open
21303 # by configure, so config.status won't be able to write to it; its
21304 # output is simply discarded. So we exec the FD to /dev/null,
21305 # effectively closing config.log, so it can be properly (re)opened and
21306 # appended to by config.status. When coming back to configure, we
21307 # need to make the FD available again.
21308 if test "$no_create" != yes; then
21310 ac_config_status_args=
21311 test "$silent" = yes &&
21312 ac_config_status_args="$ac_config_status_args --quiet"
21314 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21316 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21317 # would make configure fail if this is the last instruction.
21318 $ac_cs_success || { (exit 1); exit 1; }
21322 ###############################################################################
21324 # Print some warnings at the end.
21326 ###############################################################################
21328 warn_prefix_1=" Warning:"
21329 warn_prefix_2=" Note:"
21330 warn_prefix="$warn_prefix_1"
21333 warnsep=' #################################################################'
21336 if test "$warning" = no ; then
21337 echo '' ; echo "$warnsep" ; echo ''
21344 if test "$warning" = long ; then echo '' ; fi
21347 echo "$warn_prefix $rest"
21354 if test "$was" != no ; then echo '' ; fi
21356 echo "$warn_prefix $rest"
21366 warn_prefix="$warn_prefix_2"
21368 warn_prefix="$warn_prefix_1"
21372 warn_prefix="$warn_prefix_2"
21374 warn_prefix="$warn_prefix_1"
21378 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
21379 warn 'The SGI saver extension was requested, but was not found.'
21382 if test "$with_mit_req" = yes -a "$have_mit" = no ; then
21383 warn 'The MIT saver extension was requested, but was not found.'
21386 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
21387 warn 'The XIdle extension was requested, but was not found.'
21390 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
21391 warn 'The XSHM extension was requested, but was not found.'
21394 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
21395 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
21398 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
21399 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
21402 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
21403 warn 'The DPMS extension was requested, but was not found.'
21406 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
21407 warn 'The Xinerama extension was requested, but was not found.'
21410 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
21411 warn 'The XF86VMODE extension was requested, but was not found.'
21414 if test "$with_randr_req" = yes -a "$have_randr" = no ; then
21415 warn 'The RANDR extension was requested, but was not found.'
21418 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
21419 warn "Checking of /proc/interrupts was requested, but it's bogus."
21422 if test "$pkg_config" = false ; then
21423 warnL 'The "pkg-config" program was not found. Without that,'
21424 warn2 "detection of the various GTK libraries won't work."
21426 pkgerr=`$pkg_config --list-all 2>&1 >/dev/null`
21427 if test "x$pkgerr" != "x" ; then
21428 warnL 'The "pkg-config" program produces errors. This often causes'
21429 warn2 "detection of the various GTK libraries to malfunction."
21430 warn2 "The errors are:"
21432 echo "$pkgerr" | sed 's/^/ > /g'
21436 if test "$gtk_halfassed" != no ; then
21437 warnL "GTK version $gtk_halfassed was found, but at least one supporting"
21438 warn2 "library ($gtk_halfassed_lib) was not, so GTK can't be used."
21439 warn2 "Perhaps some of the development packages are not installed?"
21440 if test "$have_gtk" = yes ; then
21441 v="$ac_gtk_version_string"
21442 warn2 "GTK $v is also installed, so it will be used instead."
21443 warn2 "Please read the above output and the \`config.log' file"
21444 warn2 "for more details."
21449 warn2 'Though the Motif front-end to xscreensaver is still'
21450 warn2 'maintained, it is no longer being updated with new'
21451 warn2 'features: all new development on the xscreensaver-demo'
21452 warn2 'program is happening in the GTK version, and not in the'
21453 warn2 'Motif version. It is recommended that you build against'
21454 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
21457 if test "$have_motif" = no -a "$have_gtk" = no; then
21459 if test "$with_motif" = yes; then
21460 warnL "Neither the GTK nor Motif libraries were found; the"
21461 warn2 "\`xscreensaver-demo' program requires one of these."
21465 warnL "The GTK libraries do not seem to be available; the"
21466 warn2 "\`xscreensaver-demo' program requires them."
21468 # warn2 'You can use Motif or Lesstif instead of GTK (use the'
21469 # warn2 "\`--with-motif' option) but that is NOT recommended."
21473 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
21474 warnL "Use of Motif was requested, but it wasn't found;"
21475 warn2 "Gtk will be used instead."
21477 elif test "$jurassic_gtk" = yes ; then
21481 v="$ac_gtk_version_string"
21482 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
21483 warnL "Use of Gtk was requested, but its version number is unknown;"
21484 elif test "$with_gtk_req" = yes ; then
21485 warnL "Use of Gtk was requested, but it is version $v;"
21487 warnL "Gtk was found on this system, but it is version $v;"
21490 warn2 "Gtk $pref_gtk or newer is required."
21492 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
21493 warnL "Use of Gtk was requested, but it wasn't found."
21497 if test "$have_gtk" = yes -a "$have_gdk_pixbuf" = no ; then
21498 warn "GTK is being used, but the GDK-Pixbuf library and/or"
21499 warn2 "headers were not found. That can't be good. Please"
21500 warn2 "install the GDK-Pixbuf development kit and re-configure."
21503 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
21505 preferred_lesstif=0.92
21507 if test "$lesstif_version" = unknown; then
21508 warnL "Unable to determine the LessTif version number!"
21509 warn2 "Make sure you are using version $preferred_lesstif or newer."
21510 warn2 "See <http://www.lesstif.org/>."
21512 elif test \! $lesstif_version -gt 82; then
21513 warnL "LessTif version $lesstif_version_string is being used."
21514 warn2 "LessTif versions 0.82 and earlier are too buggy to"
21515 warn2 "use with XScreenSaver; it is strongly recommended"
21516 warn2 "that you upgrade to at least version $preferred_lesstif!"
21517 warn2 "See <http://www.lesstif.org/>."
21522 if test "$have_motif" = yes -a "$have_gtk" = no ; then
21523 warn 'Motif is being used, and GTK is not.'
21529 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
21530 warnL 'Use of XPM was requested, but it was not found.'
21533 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
21534 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
21537 if test "$have_gdk_pixbuf" = no -o "$gdk_pixbuf_halfassed" = yes || \
21538 test "$have_gdk_pixbuf" = no -a "$have_xpm" = no ; then
21540 if test "$with_gdk_pixbuf_req" = yes ; then
21542 elif test "$with_gdk_pixbuf_req" = no ; then
21543 warnL 'The GDK-Pixbuf library is not being used.'
21545 warnL 'The GDK-Pixbuf library was not found.'
21548 if test "$with_xpm_req" = yes -o "$have_xpm" = yes ; then
21550 elif test "$with_xpm_req" = no ; then
21551 warnL 'The XPM library is not being used.'
21553 warnL 'The XPM library was not found.'
21556 if test "$have_gdk_pixbuf" = no -a "$have_xpm" = yes ; then
21557 warn2 'The XPM library is being used instead.'
21560 if test "$gdk_pixbuf_halfassed" = yes ; then
21562 warn2 'More specifically, we found the headers, but not the'
21563 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
21564 warn2 "system, or something else went wrong. The \`config.log'"
21565 warn2 'file might contain some clues.'
21569 warn2 'Some of the demos will not use images as much as they could.'
21570 warn2 'You should consider installing GDK-Pixbuf and re-running'
21571 warn2 'configure. (GDK-Pixbuf is recommended over XPM, as it'
21572 warn2 'provides support for more image formats.)'
21576 if test "$have_jpeg" = no ; then
21577 if test "$with_jpeg_req" = yes ; then
21578 warnL 'Use of libjpeg was requested, but it was not found.'
21579 elif test "$with_jpeg_req" = no ; then
21580 noteL 'The JPEG library is not being used.'
21582 noteL 'The JPEG library was not found.'
21585 if test "$jpeg_halfassed" = yes ; then
21587 warn2 'More specifically, we found the headers, but not the'
21588 warn2 'library; so either JPEG is half-installed on this'
21589 warn2 "system, or something else went wrong. The \`config.log'"
21590 warn2 'file might contain some clues.'
21594 if test "$have_gdk_pixbuf" = no ; then
21595 warn2 "This means that it won't be possible for the image-manipulating"
21596 warn2 "display modes to load files from disk; and it also means that"
21597 warn2 "the \`webcollage' program will be much slower."
21599 warn2 "This means the \`webcollage' program will be much slower."
21604 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
21605 preferred_mesagl=3.4
21606 mgv="$ac_mesagl_version_string"
21607 pgl="$preferred_mesagl"
21609 if test "$ac_mesagl_version" = unknown; then
21610 warnL "Unable to determine the MesaGL version number!"
21611 warn2 "Make sure you are using version $preferred_mesagl or newer."
21613 elif test \! "$ac_mesagl_version" -gt 2006; then
21614 warnL "MesaGL version number is $mgv --"
21615 warn2 "MesaGL 2.6 and earlier have a security bug. It is strongly"
21616 warn2 "recommended that you upgrade to at least version $preferred_mesagl."
21618 elif test \! "$ac_mesagl_version" -gt 3003; then
21619 warnL "MesaGL version number is $mgv --"
21620 warn2 "MesaGL 3.3 and earlier have some bugs; it is recommended"
21621 warn2 "that you upgrade to $pgl or newer."
21625 if test "$have_gl" = no ; then
21626 if test "$with_gl_req" = yes ; then
21627 warnL 'Use of GL was requested, but it was not found.'
21628 elif test "$with_gl_req" = no ; then
21629 noteL 'The OpenGL 3D library is not being used.'
21631 noteL 'The OpenGL 3D library was not found.'
21634 if test "$gl_halfassed" = yes ; then
21636 warn2 'More specifically, we found the headers, but not the'
21637 warn2 'libraries; so either GL is half-installed on this'
21638 warn2 "system, or something else went wrong. The \`config.log'"
21639 warn2 'file might contain some clues.'
21643 warn2 'Those demos which use 3D will not be built or installed.'
21644 warn2 'You might want to consider installing OpenGL and'
21645 warn2 "re-running configure. If your vendor doesn't ship"
21646 warn2 'their own implementation of OpenGL, you can get a free'
21647 warn2 'version at <http://www.mesa3d.org/>. For general OpenGL'
21648 warn2 'info, see <http://www.opengl.org/>.'
21653 if test "$have_gl" = yes -a "$have_gle" = no ; then
21655 # nobody cares about this; don't print the warning unless it was
21656 # requested and not found, or halfway-found.
21657 if test "$with_gle_req" = yes -o "$gle_halfassed" = yes ; then
21659 if test "$with_gle_req" = yes ; then
21660 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
21661 warn2 'it was not found (though the OpenGL library was found, and'
21662 warn2 'is being used.)'
21663 elif test "$with_gle_req" = no ; then
21664 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
21665 warn2 'library is not.'
21667 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
21671 if test "$gle_halfassed" = yes ; then
21673 warn2 'More specifically, we found the headers, but not the'
21674 warn2 'libraries; so either GLE is half-installed on this'
21675 warn2 "system, or something else went wrong. The \`config.log'"
21676 warn2 'file might contain some clues.'
21680 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
21681 warn2 'will not be built or installed. You might want to consider'
21682 warn2 'installing GLE and re-running configure. You can find the'
21683 warn2 'GLE library at <http://www.linas.org/gle/>. For general'
21684 warn2 'OpenGL info, see <http://www.opengl.org/>.'
21690 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
21691 warn 'Use of XReadDisplay was requested, but it was not found.'
21694 if test -n "$with_fortune_req"; then
21695 if test "$with_fortune_req" != "$ac_cv_fortune_program" ; then
21696 warnL "$with_fortune_req was requested as the Fortune program,"
21697 warn2 "but was not found. The default will be used instead."
21701 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
21702 warn 'Use of Kerberos was requested, but it was not found.'
21705 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
21706 warn 'Use of PAM was requested, but it was not found.'
21709 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
21710 warn 'Use of shadow passwords was requested, but they were not found.'
21714 # You are in a twisty maze of namespaces and syntaxes, all alike.
21715 # Fuck the skull of Unix.
21717 eval bindir=${bindir}
21718 eval bindir=${bindir}
21719 eval bindir=${bindir}
21720 eval bindir=${bindir}
21721 eval bindir=${bindir}
21722 eval bindir=${bindir}
21723 eval HACKDIR=${HACKDIR}
21724 eval HACKDIR=${HACKDIR}
21725 eval HACKDIR=${HACKDIR}
21726 eval HACKDIR=${HACKDIR}
21727 eval HACKDIR=${HACKDIR}
21728 eval HACKDIR=${HACKDIR}
21729 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21730 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21731 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21732 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21733 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21734 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21736 # canonicalize slashes.
21737 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
21738 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
21739 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
21742 # Sanity check the hackdir
21743 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
21744 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
21746 { { echo "$as_me:$LINENO: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
21747 There will be an executable installed with that name, so
21748 that can't be the name of a directory as well. Please
21749 re-configure with a different directory name." >&5
21750 echo "$as_me: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
21751 There will be an executable installed with that name, so
21752 that can't be the name of a directory as well. Please
21753 re-configure with a different directory name." >&2;}
21754 { (exit 1); exit 1; }; }
21761 # Now let's see if there's a previous RPM version already installed. Blargh!
21765 rpmv=`(rpm -qv xscreensaver) 2>/dev/null | \
21766 sed -n 's/^xscreensaver-\([0-9][0-9]*[.][0-9][0-9]*\)-.*$/\1/p'`
21769 if test \! -z "$rpmv" ; then
21770 rpmbdir=`rpm -ql xscreensaver | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
21771 rpmhdir=`rpm -ql xscreensaver | sed -n 's@^\(.*\)/attraction$@\1@p'`
21774 warnL "There is already an installed RPM of xscreensaver $rpmv"
21775 warn2 "on this system. You might want to remove it (with"
21776 warn2 '"rpm -ve xscreensaver") before running "make install"'
21777 warn2 "from this directory."
21779 warn2 "Alternately, you could build this version of xscreensaver"
21780 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
21781 warn2 'file is included. Try "rpmbuild -v -ba xscreensaver.spec".'
21782 warn2 "See the RPM documentation for more info."
21785 if test "$rpmbdir" = "$rpmhdir" ; then
21786 warn2 "The RPM version was installed in $rpmbdir/."
21789 warn2 "The RPM version was installed in $rpmbdir/,"
21790 warn2 "with demos in $rpmhdir/."
21795 if test "${bindir}" = "${HACKDIR}" ; then
21799 if test "$do_dir_warning" = yes; then
21803 echo ' When you run "make install", the "xscreensaver",'
21804 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
21805 echo " will be installed in ${bindir}/."
21807 echo " The various graphics demos (190+ different executables) will"
21808 echo " be installed in ${HACKDIR}/."
21810 echo " If you would prefer the demos to be installed elsewhere,"
21811 echo " you should re-run configure with the --with-hackdir=DIR"
21812 echo " option. For more information, run \`./configure --help'."
21816 if test "$warning" != no; then
21817 echo '' ; echo "$warnsep" ; echo ''
21820 if test "$do_dir_warning" = no; then
21821 if test "$warning" = no; then
21824 echo "User programs will be installed in ${bindir}/"
21825 echo "Screen savers will be installed in ${HACKDIR}/"
21826 echo "Configuration will be installed in ${HACK_CONF_DIR}/"