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 have_gnome_help 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 GNOMEHELP_Y GNOMEHELP_N 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 2.0.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 Gnome Help Browser.
14869 if test "$have_gtk" = yes; then
14870 for ac_prog in yelp gnome-help-browser
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_have_gnome_help+set}" = set; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 if test -n "$have_gnome_help"; then
14880 ac_cv_prog_have_gnome_help="$have_gnome_help" # 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_have_gnome_help="$ac_prog"
14890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14898 have_gnome_help=$ac_cv_prog_have_gnome_help
14899 if test -n "$have_gnome_help"; then
14900 echo "$as_me:$LINENO: result: $have_gnome_help" >&5
14901 echo "${ECHO_T}$have_gnome_help" >&6
14903 echo "$as_me:$LINENO: result: no" >&5
14904 echo "${ECHO_T}no" >&6
14907 test -n "$have_gnome_help" && break
14909 test -n "$have_gnome_help" || have_gnome_help="no"
14911 if test "$have_gnome_help" != no; then
14912 have_gnome_help=yes
14917 ###############################################################################
14921 ###############################################################################
14924 with_motif_req=unspecified
14926 # Check whether --with-motif or --without-motif was given.
14927 if test "${with_motif+set}" = set; then
14928 withval="$with_motif"
14929 with_motif="$withval"; with_motif_req="$withval"
14935 case "$with_motif" in
14940 echo "$as_me:$LINENO: checking for Motif headers" >&5
14941 echo $ECHO_N "checking for Motif headers... $ECHO_C" >&6
14942 d=$with_motif/include
14943 if test -d $d; then
14944 X_CFLAGS="-I$d $X_CFLAGS"
14945 echo "$as_me:$LINENO: result: $d" >&5
14946 echo "${ECHO_T}$d" >&6
14948 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14949 echo "${ECHO_T}not found ($d: no such directory)" >&6
14952 echo "$as_me:$LINENO: checking for Motif libs" >&5
14953 echo $ECHO_N "checking for Motif libs... $ECHO_C" >&6
14955 if test -d $d; then
14956 X_LIBS="-L$d $X_LIBS"
14957 echo "$as_me:$LINENO: result: $d" >&5
14958 echo "${ECHO_T}$d" >&6
14960 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14961 echo "${ECHO_T}not found ($d: no such directory)" >&6
14964 # replace the directory string with "yes".
14965 with_motif_req="yes"
14966 with_motif=$with_motif_req
14971 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
14972 echo " If it is a directory, then \`DIR/include' will be added to"
14973 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14979 if test "$with_motif" != yes -a "$with_motif" != no ; then
14980 echo "error: must be yes or no: --with-motif=$with_motif"
14984 if test "$with_motif" = yes; then
14987 ac_save_CPPFLAGS="$CPPFLAGS"
14988 if test \! -z "$includedir" ; then
14989 CPPFLAGS="$CPPFLAGS -I$includedir"
14991 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14992 echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
14993 echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6
14994 if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14997 cat >conftest.$ac_ext <<_ACEOF
15000 cat confdefs.h >>conftest.$ac_ext
15001 cat >>conftest.$ac_ext <<_ACEOF
15002 /* end confdefs.h. */
15003 #include <stdlib.h>
15005 #include <X11/Intrinsic.h>
15009 rm -f conftest.$ac_objext
15010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15011 (eval $ac_compile) 2>conftest.er1
15013 grep -v '^ *+' conftest.er1 >conftest.err
15015 cat conftest.err >&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); } &&
15018 { ac_try='test -z "$ac_c_werror_flag"
15019 || test ! -s conftest.err'
15020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15021 (eval $ac_try) 2>&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); }; } &&
15025 { ac_try='test -s conftest.$ac_objext'
15026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027 (eval $ac_try) 2>&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); }; }; then
15031 ac_cv_header_Xm_Xm_h=yes
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15036 ac_cv_header_Xm_Xm_h=no
15038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15040 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
15041 echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6
15042 if test $ac_cv_header_Xm_Xm_h = yes; then
15044 cat >>confdefs.h <<\_ACEOF
15045 #define HAVE_MOTIF 1
15048 MOTIF_LIBS="$MOTIF_LIBS -lXm"
15052 CPPFLAGS="$ac_save_CPPFLAGS"
15056 if test "$have_motif" = yes; then
15058 ac_save_CPPFLAGS="$CPPFLAGS"
15059 if test \! -z "$includedir" ; then
15060 CPPFLAGS="$CPPFLAGS -I$includedir"
15062 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15063 echo "$as_me:$LINENO: checking for Xm/ComboBox.h" >&5
15064 echo $ECHO_N "checking for Xm/ComboBox.h... $ECHO_C" >&6
15065 if test "${ac_cv_header_Xm_ComboBox_h+set}" = set; then
15066 echo $ECHO_N "(cached) $ECHO_C" >&6
15068 cat >conftest.$ac_ext <<_ACEOF
15071 cat confdefs.h >>conftest.$ac_ext
15072 cat >>conftest.$ac_ext <<_ACEOF
15073 /* end confdefs.h. */
15074 #include <stdlib.h>
15076 #include <X11/Intrinsic.h>
15078 #include <Xm/ComboBox.h>
15080 rm -f conftest.$ac_objext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15082 (eval $ac_compile) 2>conftest.er1
15084 grep -v '^ *+' conftest.er1 >conftest.err
15086 cat conftest.err >&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } &&
15089 { ac_try='test -z "$ac_c_werror_flag"
15090 || test ! -s conftest.err'
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; } &&
15096 { ac_try='test -s conftest.$ac_objext'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15102 ac_cv_header_Xm_ComboBox_h=yes
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15107 ac_cv_header_Xm_ComboBox_h=no
15109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15111 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_ComboBox_h" >&5
15112 echo "${ECHO_T}$ac_cv_header_Xm_ComboBox_h" >&6
15113 if test $ac_cv_header_Xm_ComboBox_h = yes; then
15114 cat >>confdefs.h <<\_ACEOF
15115 #define HAVE_XMCOMBOBOX 1
15121 CPPFLAGS="$ac_save_CPPFLAGS"
15125 ###############################################################################
15127 # Checking whether Motif is really Lesstif.
15129 ###############################################################################
15132 if test "$have_motif" = yes ; then
15133 echo "$as_me:$LINENO: checking whether Motif is really LessTif" >&5
15134 echo $ECHO_N "checking whether Motif is really LessTif... $ECHO_C" >&6
15135 if test "${ac_cv_have_lesstif+set}" = set; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15139 ac_save_CPPFLAGS="$CPPFLAGS"
15140 if test \! -z "$includedir" ; then
15141 CPPFLAGS="$CPPFLAGS -I$includedir"
15143 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15144 cat >conftest.$ac_ext <<_ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h. */
15154 long vers = LesstifVersion;
15159 rm -f conftest.$ac_objext
15160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15161 (eval $ac_compile) 2>conftest.er1
15163 grep -v '^ *+' conftest.er1 >conftest.err
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } &&
15168 { ac_try='test -z "$ac_c_werror_flag"
15169 || test ! -s conftest.err'
15170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15171 (eval $ac_try) 2>&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); }; } &&
15175 { ac_try='test -s conftest.$ac_objext'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; }; then
15181 ac_cv_have_lesstif=yes
15183 echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15186 ac_cv_have_lesstif=no
15188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15189 CPPFLAGS="$ac_save_CPPFLAGS"
15191 echo "$as_me:$LINENO: result: $ac_cv_have_lesstif" >&5
15192 echo "${ECHO_T}$ac_cv_have_lesstif" >&6
15193 have_lesstif=$ac_cv_have_lesstif
15197 lesstif_version=unknown
15198 lesstif_version_string=unknown
15200 if test "$have_lesstif" = yes ; then
15202 echo unknown > conftest-lt
15203 echo "$as_me:$LINENO: checking LessTif version number" >&5
15204 echo $ECHO_N "checking LessTif version number... $ECHO_C" >&6
15205 if test "${ac_cv_lesstif_version_string+set}" = set; then
15206 echo $ECHO_N "(cached) $ECHO_C" >&6
15209 ac_save_CPPFLAGS="$CPPFLAGS"
15210 if test \! -z "$includedir" ; then
15211 CPPFLAGS="$CPPFLAGS -I$includedir"
15213 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15214 if test "$cross_compiling" = yes; then
15215 ac_cv_lesstif_version=unknown
15216 ac_cv_lesstif_version_string=unknown
15218 cat >conftest.$ac_ext <<_ACEOF
15221 cat confdefs.h >>conftest.$ac_ext
15222 cat >>conftest.$ac_ext <<_ACEOF
15223 /* end confdefs.h. */
15227 FILE *f = fopen("conftest-lt", "w");
15229 fprintf(f, "%d %d.%d\n", LesstifVersion,
15230 LESSTIF_VERSION, LESSTIF_REVISION);
15235 rm -f conftest$ac_exeext
15236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15237 (eval $ac_link) 2>&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242 (eval $ac_try) 2>&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; }; then
15246 ltv=`cat conftest-lt`
15247 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
15248 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
15250 echo "$as_me: program exited with status $ac_status" >&5
15251 echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15254 ( exit $ac_status )
15255 ac_cv_lesstif_version=unknown
15256 ac_cv_lesstif_version_string=unknown
15258 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15260 CPPFLAGS="$ac_save_CPPFLAGS"
15262 echo "$as_me:$LINENO: result: $ac_cv_lesstif_version_string" >&5
15263 echo "${ECHO_T}$ac_cv_lesstif_version_string" >&6
15265 lesstif_version=$ac_cv_lesstif_version
15266 lesstif_version_string=$ac_cv_lesstif_version_string
15271 if test "$have_motif" = yes ; then
15273 echo unknown > conftest-mt
15274 echo "$as_me:$LINENO: checking Motif version number" >&5
15275 echo $ECHO_N "checking Motif version number... $ECHO_C" >&6
15276 if test "${ac_cv_motif_version_string+set}" = set; then
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
15280 ac_save_CPPFLAGS="$CPPFLAGS"
15281 if test \! -z "$includedir" ; then
15282 CPPFLAGS="$CPPFLAGS -I$includedir"
15284 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15285 if test "$cross_compiling" = yes; then
15286 ac_cv_motif_version=unknown
15287 ac_cv_motif_version_string=unknown
15289 cat >conftest.$ac_ext <<_ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15298 FILE *f = fopen("conftest-mt", "w");
15300 fprintf(f, "%d %d.%d\n", XmVersion,
15301 XmVERSION, XmREVISION);
15306 rm -f conftest$ac_exeext
15307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15308 (eval $ac_link) 2>&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15313 (eval $ac_try) 2>&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); }; }; then
15317 mtv=`cat conftest-mt`
15318 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
15319 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
15321 echo "$as_me: program exited with status $ac_status" >&5
15322 echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15325 ( exit $ac_status )
15326 ac_cv_motif_version=unknown
15327 ac_cv_motif_version_string=unknown
15329 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15331 CPPFLAGS="$ac_save_CPPFLAGS"
15333 echo "$as_me:$LINENO: result: $ac_cv_motif_version_string" >&5
15334 echo "${ECHO_T}$ac_cv_motif_version_string" >&6
15336 motif_version=$ac_cv_motif_version
15337 motif_version_string=$ac_cv_motif_version_string
15342 ###############################################################################
15344 # Checking whether Motif requires -lXpm.
15346 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
15347 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
15348 # of the library whether to build the XPM code into libXm, or whether
15349 # to rely on an external libXm. So the only way to tell whether XPM is
15350 # a link-time requirement is to examine libXm.a, which is very
15351 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
15352 # always link against XPM if the XPM lib exists (and this will be a
15353 # no-op if libXm happens to already have the XPM code in it.)
15355 ###############################################################################
15357 motif_requires_xpm=no
15358 if test "$have_motif" = yes ; then
15359 echo "$as_me:$LINENO: checking whether Motif requires XPM" >&5
15360 echo $ECHO_N "checking whether Motif requires XPM... $ECHO_C" >&6
15361 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
15363 motif_requires_xpm=yes
15364 echo "$as_me:$LINENO: result: maybe" >&5
15365 echo "${ECHO_T}maybe" >&6
15367 echo "$as_me:$LINENO: result: no" >&5
15368 echo "${ECHO_T}no" >&6
15373 ###############################################################################
15375 # Checking whether Motif requires -lXp.
15377 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
15378 # Extension". Why this extension isn't in -lXext with all the others,
15381 ###############################################################################
15384 if test "$have_motif" = yes ; then
15387 ac_save_CPPFLAGS="$CPPFLAGS"
15388 ac_save_LDFLAGS="$LDFLAGS"
15389 # ac_save_LIBS="$LIBS"
15391 if test \! -z "$includedir" ; then
15392 CPPFLAGS="$CPPFLAGS -I$includedir"
15394 # note: $X_CFLAGS includes $x_includes
15395 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15397 if test \! -z "$libdir" ; then
15398 LDFLAGS="$LDFLAGS -L$libdir"
15400 # note: $X_LIBS includes $x_libraries
15401 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15403 echo "$as_me:$LINENO: checking for XpQueryExtension in -lXp" >&5
15404 echo $ECHO_N "checking for XpQueryExtension in -lXp... $ECHO_C" >&6
15405 if test "${ac_cv_lib_Xp_XpQueryExtension+set}" = set; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15408 ac_check_lib_save_LIBS=$LIBS
15409 LIBS="-lXp -lX11 -lXext -lm $LIBS"
15410 cat >conftest.$ac_ext <<_ACEOF
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h. */
15417 /* Override any gcc2 internal prototype to avoid an error. */
15421 /* We use char because int might match the return type of a gcc2
15422 builtin and then its argument prototype would still apply. */
15423 char XpQueryExtension ();
15427 XpQueryExtension ();
15432 rm -f conftest.$ac_objext conftest$ac_exeext
15433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15434 (eval $ac_link) 2>conftest.er1
15436 grep -v '^ *+' conftest.er1 >conftest.err
15438 cat conftest.err >&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } &&
15441 { ac_try='test -z "$ac_c_werror_flag"
15442 || test ! -s conftest.err'
15443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444 (eval $ac_try) 2>&5
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; } &&
15448 { ac_try='test -s conftest$ac_exeext'
15449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; }; then
15454 ac_cv_lib_Xp_XpQueryExtension=yes
15456 echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15459 ac_cv_lib_Xp_XpQueryExtension=no
15461 rm -f conftest.err conftest.$ac_objext \
15462 conftest$ac_exeext conftest.$ac_ext
15463 LIBS=$ac_check_lib_save_LIBS
15465 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
15466 echo "${ECHO_T}$ac_cv_lib_Xp_XpQueryExtension" >&6
15467 if test $ac_cv_lib_Xp_XpQueryExtension = yes; then
15468 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
15473 CPPFLAGS="$ac_save_CPPFLAGS"
15474 LDFLAGS="$ac_save_LDFLAGS"
15475 # LIBS="$ac_save_LIBS"
15480 ###############################################################################
15482 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
15484 ###############################################################################
15487 if test "$have_motif" = yes ; then
15489 ac_save_CPPFLAGS="$CPPFLAGS"
15490 ac_save_LDFLAGS="$LDFLAGS"
15491 # ac_save_LIBS="$LIBS"
15493 if test \! -z "$includedir" ; then
15494 CPPFLAGS="$CPPFLAGS -I$includedir"
15496 # note: $X_CFLAGS includes $x_includes
15497 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15499 if test \! -z "$libdir" ; then
15500 LDFLAGS="$LDFLAGS -L$libdir"
15502 # note: $X_LIBS includes $x_libraries
15503 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15505 echo "$as_me:$LINENO: checking for _Xsetlocale in -lXintl" >&5
15506 echo $ECHO_N "checking for _Xsetlocale in -lXintl... $ECHO_C" >&6
15507 if test "${ac_cv_lib_Xintl__Xsetlocale+set}" = set; then
15508 echo $ECHO_N "(cached) $ECHO_C" >&6
15510 ac_check_lib_save_LIBS=$LIBS
15511 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
15512 cat >conftest.$ac_ext <<_ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h. */
15519 /* Override any gcc2 internal prototype to avoid an error. */
15523 /* We use char because int might match the return type of a gcc2
15524 builtin and then its argument prototype would still apply. */
15525 char _Xsetlocale ();
15534 rm -f conftest.$ac_objext conftest$ac_exeext
15535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15536 (eval $ac_link) 2>conftest.er1
15538 grep -v '^ *+' conftest.er1 >conftest.err
15540 cat conftest.err >&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); } &&
15543 { ac_try='test -z "$ac_c_werror_flag"
15544 || test ! -s conftest.err'
15545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15546 (eval $ac_try) 2>&5
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; } &&
15550 { ac_try='test -s conftest$ac_exeext'
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }; then
15556 ac_cv_lib_Xintl__Xsetlocale=yes
15558 echo "$as_me: failed program was:" >&5
15559 sed 's/^/| /' conftest.$ac_ext >&5
15561 ac_cv_lib_Xintl__Xsetlocale=no
15563 rm -f conftest.err conftest.$ac_objext \
15564 conftest$ac_exeext conftest.$ac_ext
15565 LIBS=$ac_check_lib_save_LIBS
15567 echo "$as_me:$LINENO: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
15568 echo "${ECHO_T}$ac_cv_lib_Xintl__Xsetlocale" >&6
15569 if test $ac_cv_lib_Xintl__Xsetlocale = yes; then
15575 CPPFLAGS="$ac_save_CPPFLAGS"
15576 LDFLAGS="$ac_save_LDFLAGS"
15577 # LIBS="$ac_save_LIBS"
15579 if test "$have_xintl" = yes; then
15580 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
15585 ###############################################################################
15587 # Check for -lGL or -lMesaGL.
15589 ###############################################################################
15593 with_gl_req=unspecified
15596 # Check whether --with-gl or --without-gl was given.
15597 if test "${with_gl+set}" = set; then
15599 with_gl="$withval"; with_gl_req="$withval"
15610 echo "$as_me:$LINENO: checking for GL headers" >&5
15611 echo $ECHO_N "checking for GL headers... $ECHO_C" >&6
15613 if test -d $d; then
15614 X_CFLAGS="-I$d $X_CFLAGS"
15615 echo "$as_me:$LINENO: result: $d" >&5
15616 echo "${ECHO_T}$d" >&6
15618 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15619 echo "${ECHO_T}not found ($d: no such directory)" >&6
15622 echo "$as_me:$LINENO: checking for GL libs" >&5
15623 echo $ECHO_N "checking for GL libs... $ECHO_C" >&6
15625 if test -d $d; then
15626 X_LIBS="-L$d $X_LIBS"
15627 echo "$as_me:$LINENO: result: $d" >&5
15628 echo "${ECHO_T}$d" >&6
15630 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15631 echo "${ECHO_T}not found ($d: no such directory)" >&6
15634 # replace the directory string with "yes".
15636 with_gl=$with_gl_req
15641 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
15642 echo " If it is a directory, then \`DIR/include' will be added to"
15643 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15649 ac_mesagl_version=unknown
15650 ac_mesagl_version_string=unknown
15652 if test "$with_gl" = yes; then
15654 ac_save_CPPFLAGS="$CPPFLAGS"
15655 if test \! -z "$includedir" ; then
15656 CPPFLAGS="$CPPFLAGS -I$includedir"
15658 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15659 if test "${ac_cv_header_GL_gl_h+set}" = set; then
15660 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
15661 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
15662 if test "${ac_cv_header_GL_gl_h+set}" = set; then
15663 echo $ECHO_N "(cached) $ECHO_C" >&6
15665 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
15666 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
15668 # Is the header compilable?
15669 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
15670 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
15671 cat >conftest.$ac_ext <<_ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15677 $ac_includes_default
15680 rm -f conftest.$ac_objext
15681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15682 (eval $ac_compile) 2>conftest.er1
15684 grep -v '^ *+' conftest.er1 >conftest.err
15686 cat conftest.err >&5
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); } &&
15689 { ac_try='test -z "$ac_c_werror_flag"
15690 || test ! -s conftest.err'
15691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692 (eval $ac_try) 2>&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; } &&
15696 { ac_try='test -s conftest.$ac_objext'
15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; }; then
15702 ac_header_compiler=yes
15704 echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15707 ac_header_compiler=no
15709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15711 echo "${ECHO_T}$ac_header_compiler" >&6
15713 # Is the header present?
15714 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
15715 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
15716 cat >conftest.$ac_ext <<_ACEOF
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h. */
15724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15727 grep -v '^ *+' conftest.er1 >conftest.err
15729 cat conftest.err >&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } >/dev/null; then
15732 if test -s conftest.err; then
15733 ac_cpp_err=$ac_c_preproc_warn_flag
15734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15741 if test -z "$ac_cpp_err"; then
15742 ac_header_preproc=yes
15744 echo "$as_me: failed program was:" >&5
15745 sed 's/^/| /' conftest.$ac_ext >&5
15747 ac_header_preproc=no
15749 rm -f conftest.err conftest.$ac_ext
15750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15751 echo "${ECHO_T}$ac_header_preproc" >&6
15753 # So? What about this header?
15754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15756 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15757 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15758 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
15759 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
15760 ac_header_preproc=yes
15763 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
15764 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
15765 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
15766 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
15767 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
15768 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
15769 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
15770 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
15771 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
15772 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
15773 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
15774 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
15777 ## ------------------------------------------ ##
15778 ## Report this to the AC_PACKAGE_NAME lists. ##
15779 ## ------------------------------------------ ##
15782 sed "s/^/$as_me: WARNING: /" >&2
15785 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
15786 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
15787 if test "${ac_cv_header_GL_gl_h+set}" = set; then
15788 echo $ECHO_N "(cached) $ECHO_C" >&6
15790 ac_cv_header_GL_gl_h=$ac_header_preproc
15792 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
15793 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
15796 if test $ac_cv_header_GL_gl_h = yes; then
15803 CPPFLAGS="$ac_save_CPPFLAGS"
15804 if test "$have_gl" = yes ; then
15806 ac_save_CPPFLAGS="$CPPFLAGS"
15807 if test \! -z "$includedir" ; then
15808 CPPFLAGS="$CPPFLAGS -I$includedir"
15810 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15811 echo "$as_me:$LINENO: checking for GL/glx.h" >&5
15812 echo $ECHO_N "checking for GL/glx.h... $ECHO_C" >&6
15813 if test "${ac_cv_header_GL_glx_h+set}" = set; then
15814 echo $ECHO_N "(cached) $ECHO_C" >&6
15816 cat >conftest.$ac_ext <<_ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15824 #include <GL/glx.h>
15826 rm -f conftest.$ac_objext
15827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15828 (eval $ac_compile) 2>conftest.er1
15830 grep -v '^ *+' conftest.er1 >conftest.err
15832 cat conftest.err >&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } &&
15835 { ac_try='test -z "$ac_c_werror_flag"
15836 || test ! -s conftest.err'
15837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838 (eval $ac_try) 2>&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); }; } &&
15842 { ac_try='test -s conftest.$ac_objext'
15843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844 (eval $ac_try) 2>&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; }; then
15848 ac_cv_header_GL_glx_h=yes
15850 echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15853 ac_cv_header_GL_glx_h=no
15855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15857 echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5
15858 echo "${ECHO_T}$ac_cv_header_GL_glx_h" >&6
15859 if test $ac_cv_header_GL_glx_h = yes; then
15866 CPPFLAGS="$ac_save_CPPFLAGS"
15869 # If we have the headers, try and figure out which vendor it's from.
15871 if test "$have_gl" = yes ; then
15873 # We need to know whether it's MesaGL so that we know which libraries
15876 echo "$as_me:$LINENO: checking whether GL is really MesaGL" >&5
15877 echo $ECHO_N "checking whether GL is really MesaGL... $ECHO_C" >&6
15878 if test "${ac_cv_have_mesa_gl+set}" = set; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15881 ac_cv_have_mesa_gl=no
15883 ac_save_CPPFLAGS="$CPPFLAGS"
15884 if test \! -z "$includedir" ; then
15885 CPPFLAGS="$CPPFLAGS -I$includedir"
15887 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15888 cat >conftest.$ac_ext <<_ACEOF
15891 cat confdefs.h >>conftest.$ac_ext
15892 cat >>conftest.$ac_ext <<_ACEOF
15893 /* end confdefs.h. */
15894 #include <GL/glx.h>
15897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15898 $EGREP "Mesa|MESA" >/dev/null 2>&1; then
15899 ac_cv_have_mesa_gl=yes
15903 CPPFLAGS="$ac_save_CPPFLAGS"
15906 echo "$as_me:$LINENO: result: $ac_cv_have_mesa_gl" >&5
15907 echo "${ECHO_T}$ac_cv_have_mesa_gl" >&6
15908 ac_have_mesa_gl=$ac_cv_have_mesa_gl
15915 # Some versions of MesaGL are compiled to require -lpthread.
15916 # So if the Mesa headers exist, and -lpthread exists, then always
15917 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
15919 if test "$ac_have_mesa_gl" = yes; then
15920 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
15921 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
15922 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15925 ac_check_lib_save_LIBS=$LIBS
15926 LIBS="-lpthread $LIBS"
15927 cat >conftest.$ac_ext <<_ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15934 /* Override any gcc2 internal prototype to avoid an error. */
15938 /* We use char because int might match the return type of a gcc2
15939 builtin and then its argument prototype would still apply. */
15940 char pthread_create ();
15949 rm -f conftest.$ac_objext conftest$ac_exeext
15950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15951 (eval $ac_link) 2>conftest.er1
15953 grep -v '^ *+' conftest.er1 >conftest.err
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } &&
15958 { ac_try='test -z "$ac_c_werror_flag"
15959 || test ! -s conftest.err'
15960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961 (eval $ac_try) 2>&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; } &&
15965 { ac_try='test -s conftest$ac_exeext'
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; }; then
15971 ac_cv_lib_pthread_pthread_create=yes
15973 echo "$as_me: failed program was:" >&5
15974 sed 's/^/| /' conftest.$ac_ext >&5
15976 ac_cv_lib_pthread_pthread_create=no
15978 rm -f conftest.err conftest.$ac_objext \
15979 conftest$ac_exeext conftest.$ac_ext
15980 LIBS=$ac_check_lib_save_LIBS
15982 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
15983 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
15984 if test $ac_cv_lib_pthread_pthread_create = yes; then
15985 GL_LIBS="-lpthread"
15991 # If we have Mesa headers, check to see if we can link against -lMesaGL.
15992 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
15993 # Else, warn that GL is busted. (We have the headers, but no libs.)
15996 if test "$ac_have_mesa_gl" = yes ; then
15998 ac_save_CPPFLAGS="$CPPFLAGS"
15999 ac_save_LDFLAGS="$LDFLAGS"
16000 # ac_save_LIBS="$LIBS"
16002 if test \! -z "$includedir" ; then
16003 CPPFLAGS="$CPPFLAGS -I$includedir"
16005 # note: $X_CFLAGS includes $x_includes
16006 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16008 if test \! -z "$libdir" ; then
16009 LDFLAGS="$LDFLAGS -L$libdir"
16011 # note: $X_LIBS includes $x_libraries
16012 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16014 echo "$as_me:$LINENO: checking for glXCreateContext in -lMesaGL" >&5
16015 echo $ECHO_N "checking for glXCreateContext in -lMesaGL... $ECHO_C" >&6
16016 if test "${ac_cv_lib_MesaGL_glXCreateContext+set}" = set; then
16017 echo $ECHO_N "(cached) $ECHO_C" >&6
16019 ac_check_lib_save_LIBS=$LIBS
16020 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
16021 cat >conftest.$ac_ext <<_ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h. */
16028 /* Override any gcc2 internal prototype to avoid an error. */
16032 /* We use char because int might match the return type of a gcc2
16033 builtin and then its argument prototype would still apply. */
16034 char glXCreateContext ();
16038 glXCreateContext ();
16043 rm -f conftest.$ac_objext conftest$ac_exeext
16044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16045 (eval $ac_link) 2>conftest.er1
16047 grep -v '^ *+' conftest.er1 >conftest.err
16049 cat conftest.err >&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } &&
16052 { ac_try='test -z "$ac_c_werror_flag"
16053 || test ! -s conftest.err'
16054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055 (eval $ac_try) 2>&5
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; } &&
16059 { ac_try='test -s conftest$ac_exeext'
16060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061 (eval $ac_try) 2>&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); }; }; then
16065 ac_cv_lib_MesaGL_glXCreateContext=yes
16067 echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16070 ac_cv_lib_MesaGL_glXCreateContext=no
16072 rm -f conftest.err conftest.$ac_objext \
16073 conftest$ac_exeext conftest.$ac_ext
16074 LIBS=$ac_check_lib_save_LIBS
16076 echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
16077 echo "${ECHO_T}$ac_cv_lib_MesaGL_glXCreateContext" >&6
16078 if test $ac_cv_lib_MesaGL_glXCreateContext = yes; then
16080 GL_LIBS="-lMesaGL -lMesaGLU $VIDMODE_LIBS $GL_LIBS"
16083 CPPFLAGS="$ac_save_CPPFLAGS"
16084 LDFLAGS="$ac_save_LDFLAGS"
16085 # LIBS="$ac_save_LIBS"
16089 if test "$gl_lib_1" = "" ; then
16091 ac_save_CPPFLAGS="$CPPFLAGS"
16092 ac_save_LDFLAGS="$LDFLAGS"
16093 # ac_save_LIBS="$LIBS"
16095 if test \! -z "$includedir" ; then
16096 CPPFLAGS="$CPPFLAGS -I$includedir"
16098 # note: $X_CFLAGS includes $x_includes
16099 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16101 if test \! -z "$libdir" ; then
16102 LDFLAGS="$LDFLAGS -L$libdir"
16104 # note: $X_LIBS includes $x_libraries
16105 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16107 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
16108 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
16109 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
16110 echo $ECHO_N "(cached) $ECHO_C" >&6
16112 ac_check_lib_save_LIBS=$LIBS
16113 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
16114 cat >conftest.$ac_ext <<_ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h. */
16121 /* Override any gcc2 internal prototype to avoid an error. */
16125 /* We use char because int might match the return type of a gcc2
16126 builtin and then its argument prototype would still apply. */
16127 char glXCreateContext ();
16131 glXCreateContext ();
16136 rm -f conftest.$ac_objext conftest$ac_exeext
16137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16138 (eval $ac_link) 2>conftest.er1
16140 grep -v '^ *+' conftest.er1 >conftest.err
16142 cat conftest.err >&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); } &&
16145 { ac_try='test -z "$ac_c_werror_flag"
16146 || test ! -s conftest.err'
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; } &&
16152 { ac_try='test -s conftest$ac_exeext'
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16158 ac_cv_lib_GL_glXCreateContext=yes
16160 echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16163 ac_cv_lib_GL_glXCreateContext=no
16165 rm -f conftest.err conftest.$ac_objext \
16166 conftest$ac_exeext conftest.$ac_ext
16167 LIBS=$ac_check_lib_save_LIBS
16169 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
16170 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
16171 if test $ac_cv_lib_GL_glXCreateContext = yes; then
16173 GL_LIBS="-lGL -lGLU $VIDMODE_LIBS $GL_LIBS"
16176 CPPFLAGS="$ac_save_CPPFLAGS"
16177 LDFLAGS="$ac_save_LDFLAGS"
16178 # LIBS="$ac_save_LIBS"
16182 if test "$gl_lib_1" = "" ; then
16183 # we have headers, but no libs -- bail.
16188 # linking works -- we can build the GL hacks.
16189 cat >>confdefs.h <<\_ACEOF
16193 if test "$ac_have_mesa_gl" = yes ; then
16194 cat >>confdefs.h <<\_ACEOF
16195 #define HAVE_MESA_GL 1
16203 # Now that we know we have GL headers and libs, do some more GL testing.
16206 if test "$have_gl" = yes ; then
16207 # If it's MesaGL, we'd like to issue a warning if the version number
16208 # is less than or equal to 2.6, because that version had a security bug.
16210 if test "$ac_have_mesa_gl" = yes; then
16212 echo "$as_me:$LINENO: checking MesaGL version number" >&5
16213 echo $ECHO_N "checking MesaGL version number... $ECHO_C" >&6
16214 if test "${ac_cv_mesagl_version_string+set}" = set; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 cat > conftest.$ac_ext <<EOF
16218 #line 16224 "configure"
16219 #include "confdefs.h"
16221 #ifndef MESA_MAJOR_VERSION
16222 # include <GL/xmesa.h>
16223 # ifdef XMESA_MAJOR_VERSION
16224 /* Around Mesa 3.2, they took out the Mesa version number, so instead,
16225 we have to check the XMesa version number (the number of the X protocol
16226 support, which seems to be the same as the Mesa version number.)
16228 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
16229 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
16231 /* Oh great. Some time after 3.4, they took out the xmesa.h header file,
16232 so we have no way of telling what version of Mesa this is at all.
16233 So, we'll guess that the osmesa version (the "offscreen protocol")
16234 is less than or equal to the real mesa version number. Except that
16235 if OSmesa is 3.3, assume at least Mesa 3.4, since OSmesa was 3.3 in
16236 Mesa 3.4. And Mesa 3.3 had xmesa.h. What a complete load of shit!
16238 # include <GL/osmesa.h>
16239 # define MESA_MAJOR_VERSION OSMESA_MAJOR_VERSION
16240 # define MESA_MINOR_VERSION OSMESA_MINOR_VERSION or newer, probably?
16241 # if OSMESA_MAJOR_VERSION == 3 && OSMESA_MINOR_VERSION == 3
16242 # undef MESA_MINOR_VERSION
16243 # define MESA_MINOR_VERSION 4 or newer, probably?
16247 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
16250 ac_save_CPPFLAGS="$CPPFLAGS"
16251 if test \! -z "$includedir" ; then
16252 CPPFLAGS="$CPPFLAGS -I$includedir"
16254 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16256 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | grep configure:`
16260 mglv=`echo "$mglv" | sed -n \
16261 's/^configure: *\([0-9][0-9]*\) *\([0-9].*\)$/\1.\2/p'`
16264 rm -f conftest.$ac_ext
16266 CPPFLAGS="$ac_save_CPPFLAGS"
16268 if test "$mglv" = ""; then
16269 ac_mesagl_version=unknown
16270 ac_mesagl_version_string=unknown
16272 ac_mesagl_version_string="$mglv"
16275 maj=`echo "$mglv" | sed -n 's/^\([0-9][0-9]*\)\..*$/\1/p'`
16276 min=`echo "$mglv" | sed -n 's/^.*\.\([0-9][0-9]*\).*$/\1/p'`
16278 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
16279 if test -z "$ac_mesagl_version"; then
16280 ac_mesagl_version=unknown
16281 ac_mesagl_version_string=unknown
16284 ac_cv_mesagl_version=$ac_mesagl_version
16285 ac_cv_mesagl_version_string=$ac_mesagl_version_string
16288 echo "$as_me:$LINENO: result: $ac_cv_mesagl_version_string" >&5
16289 echo "${ECHO_T}$ac_cv_mesagl_version_string" >&6
16290 ac_mesagl_version=$ac_cv_mesagl_version
16291 ac_mesagl_version_string=$ac_cv_mesagl_version_string
16295 # Check for OpenGL 1.1 features.
16298 ac_save_CPPFLAGS="$CPPFLAGS"
16299 ac_save_LDFLAGS="$LDFLAGS"
16300 # ac_save_LIBS="$LIBS"
16302 if test \! -z "$includedir" ; then
16303 CPPFLAGS="$CPPFLAGS -I$includedir"
16305 # note: $X_CFLAGS includes $x_includes
16306 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16308 if test \! -z "$libdir" ; then
16309 LDFLAGS="$LDFLAGS -L$libdir"
16311 # note: $X_LIBS includes $x_libraries
16312 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16314 as_ac_Lib=`echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
16315 echo "$as_me:$LINENO: checking for glBindTexture in -l$gl_lib_1" >&5
16316 echo $ECHO_N "checking for glBindTexture in -l$gl_lib_1... $ECHO_C" >&6
16317 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16318 echo $ECHO_N "(cached) $ECHO_C" >&6
16320 ac_check_lib_save_LIBS=$LIBS
16321 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
16322 cat >conftest.$ac_ext <<_ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h. */
16329 /* Override any gcc2 internal prototype to avoid an error. */
16333 /* We use char because int might match the return type of a gcc2
16334 builtin and then its argument prototype would still apply. */
16335 char glBindTexture ();
16344 rm -f conftest.$ac_objext conftest$ac_exeext
16345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16346 (eval $ac_link) 2>conftest.er1
16348 grep -v '^ *+' conftest.er1 >conftest.err
16350 cat conftest.err >&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } &&
16353 { ac_try='test -z "$ac_c_werror_flag"
16354 || test ! -s conftest.err'
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; } &&
16360 { ac_try='test -s conftest$ac_exeext'
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362 (eval $ac_try) 2>&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; }; then
16366 eval "$as_ac_Lib=yes"
16368 echo "$as_me: failed program was:" >&5
16369 sed 's/^/| /' conftest.$ac_ext >&5
16371 eval "$as_ac_Lib=no"
16373 rm -f conftest.err conftest.$ac_objext \
16374 conftest$ac_exeext conftest.$ac_ext
16375 LIBS=$ac_check_lib_save_LIBS
16377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16378 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16379 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16380 cat >>confdefs.h <<\_ACEOF
16381 #define HAVE_GLBINDTEXTURE 1
16388 CPPFLAGS="$ac_save_CPPFLAGS"
16389 LDFLAGS="$ac_save_LDFLAGS"
16390 # LIBS="$ac_save_LIBS"
16394 elif test "$with_gl" != no; then
16395 echo "error: must be yes or no: --with-gl=$with_gl"
16400 ###############################################################################
16404 ###############################################################################
16407 with_gle_req=unspecified
16410 # Check whether --with-gle or --without-gle was given.
16411 if test "${with_gle+set}" = set; then
16412 withval="$with_gle"
16413 with_gle="$withval"; with_gle_req="$withval"
16419 case "$with_gle" in
16424 echo "$as_me:$LINENO: checking for GLE headers" >&5
16425 echo $ECHO_N "checking for GLE headers... $ECHO_C" >&6
16426 d=$with_gle/include
16427 if test -d $d; then
16428 X_CFLAGS="-I$d $X_CFLAGS"
16429 echo "$as_me:$LINENO: result: $d" >&5
16430 echo "${ECHO_T}$d" >&6
16432 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16433 echo "${ECHO_T}not found ($d: no such directory)" >&6
16436 echo "$as_me:$LINENO: checking for GLE libs" >&5
16437 echo $ECHO_N "checking for GLE libs... $ECHO_C" >&6
16439 if test -d $d; then
16440 X_LIBS="-L$d $X_LIBS"
16441 echo "$as_me:$LINENO: result: $d" >&5
16442 echo "${ECHO_T}$d" >&6
16444 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16445 echo "${ECHO_T}not found ($d: no such directory)" >&6
16448 # replace the directory string with "yes".
16450 with_gle=$with_gle_req
16455 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
16456 echo " If it is a directory, then \`DIR/include' will be added to"
16457 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16465 if test "$have_gl" = no ; then
16467 elif test "$with_gle" = yes; then
16470 ac_save_CPPFLAGS="$CPPFLAGS"
16471 if test \! -z "$includedir" ; then
16472 CPPFLAGS="$CPPFLAGS -I$includedir"
16474 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16475 echo "$as_me:$LINENO: checking for GL/gle.h" >&5
16476 echo $ECHO_N "checking for GL/gle.h... $ECHO_C" >&6
16477 if test "${ac_cv_header_GL_gle_h+set}" = set; then
16478 echo $ECHO_N "(cached) $ECHO_C" >&6
16480 cat >conftest.$ac_ext <<_ACEOF
16483 cat confdefs.h >>conftest.$ac_ext
16484 cat >>conftest.$ac_ext <<_ACEOF
16485 /* end confdefs.h. */
16488 #include <GL/gle.h>
16490 rm -f conftest.$ac_objext
16491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16492 (eval $ac_compile) 2>conftest.er1
16494 grep -v '^ *+' conftest.er1 >conftest.err
16496 cat conftest.err >&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } &&
16499 { ac_try='test -z "$ac_c_werror_flag"
16500 || test ! -s conftest.err'
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; } &&
16506 { ac_try='test -s conftest.$ac_objext'
16507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508 (eval $ac_try) 2>&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); }; }; then
16512 ac_cv_header_GL_gle_h=yes
16514 echo "$as_me: failed program was:" >&5
16515 sed 's/^/| /' conftest.$ac_ext >&5
16517 ac_cv_header_GL_gle_h=no
16519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16521 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gle_h" >&5
16522 echo "${ECHO_T}$ac_cv_header_GL_gle_h" >&6
16523 if test $ac_cv_header_GL_gle_h = yes; then
16530 CPPFLAGS="$ac_save_CPPFLAGS"
16531 if test "$have_gle3" = yes ; then
16535 ac_save_CPPFLAGS="$CPPFLAGS"
16536 if test \! -z "$includedir" ; then
16537 CPPFLAGS="$CPPFLAGS -I$includedir"
16539 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16540 echo "$as_me:$LINENO: checking for GL/gutil.h" >&5
16541 echo $ECHO_N "checking for GL/gutil.h... $ECHO_C" >&6
16542 if test "${ac_cv_header_GL_gutil_h+set}" = set; then
16543 echo $ECHO_N "(cached) $ECHO_C" >&6
16545 cat >conftest.$ac_ext <<_ACEOF
16548 cat confdefs.h >>conftest.$ac_ext
16549 cat >>conftest.$ac_ext <<_ACEOF
16550 /* end confdefs.h. */
16553 #include <GL/gutil.h>
16555 rm -f conftest.$ac_objext
16556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16557 (eval $ac_compile) 2>conftest.er1
16559 grep -v '^ *+' conftest.er1 >conftest.err
16561 cat conftest.err >&5
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); } &&
16564 { ac_try='test -z "$ac_c_werror_flag"
16565 || test ! -s conftest.err'
16566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567 (eval $ac_try) 2>&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; } &&
16571 { ac_try='test -s conftest.$ac_objext'
16572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16573 (eval $ac_try) 2>&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); }; }; then
16577 ac_cv_header_GL_gutil_h=yes
16579 echo "$as_me: failed program was:" >&5
16580 sed 's/^/| /' conftest.$ac_ext >&5
16582 ac_cv_header_GL_gutil_h=no
16584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16586 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gutil_h" >&5
16587 echo "${ECHO_T}$ac_cv_header_GL_gutil_h" >&6
16588 if test $ac_cv_header_GL_gutil_h = yes; then
16595 CPPFLAGS="$ac_save_CPPFLAGS"
16596 if test "$have_gle" = yes ; then
16598 ac_save_CPPFLAGS="$CPPFLAGS"
16599 if test \! -z "$includedir" ; then
16600 CPPFLAGS="$CPPFLAGS -I$includedir"
16602 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16603 echo "$as_me:$LINENO: checking for GL/tube.h" >&5
16604 echo $ECHO_N "checking for GL/tube.h... $ECHO_C" >&6
16605 if test "${ac_cv_header_GL_tube_h+set}" = set; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16608 cat >conftest.$ac_ext <<_ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h. */
16616 #include <GL/tube.h>
16618 rm -f conftest.$ac_objext
16619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16620 (eval $ac_compile) 2>conftest.er1
16622 grep -v '^ *+' conftest.er1 >conftest.err
16624 cat conftest.err >&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); } &&
16627 { ac_try='test -z "$ac_c_werror_flag"
16628 || test ! -s conftest.err'
16629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 (eval $ac_try) 2>&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; } &&
16634 { ac_try='test -s conftest.$ac_objext'
16635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636 (eval $ac_try) 2>&5
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; }; then
16640 ac_cv_header_GL_tube_h=yes
16642 echo "$as_me: failed program was:" >&5
16643 sed 's/^/| /' conftest.$ac_ext >&5
16645 ac_cv_header_GL_tube_h=no
16647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16649 echo "$as_me:$LINENO: result: $ac_cv_header_GL_tube_h" >&5
16650 echo "${ECHO_T}$ac_cv_header_GL_tube_h" >&6
16651 if test $ac_cv_header_GL_tube_h = yes; then
16658 CPPFLAGS="$ac_save_CPPFLAGS"
16662 if test "$have_gle" = yes ; then
16666 ac_save_CPPFLAGS="$CPPFLAGS"
16667 ac_save_LDFLAGS="$LDFLAGS"
16668 # ac_save_LIBS="$LIBS"
16670 if test \! -z "$includedir" ; then
16671 CPPFLAGS="$CPPFLAGS -I$includedir"
16673 # note: $X_CFLAGS includes $x_includes
16674 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16676 if test \! -z "$libdir" ; then
16677 LDFLAGS="$LDFLAGS -L$libdir"
16679 # note: $X_LIBS includes $x_libraries
16680 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16682 echo "$as_me:$LINENO: checking for gleCreateGC in -lgle" >&5
16683 echo $ECHO_N "checking for gleCreateGC in -lgle... $ECHO_C" >&6
16684 if test "${ac_cv_lib_gle_gleCreateGC+set}" = set; then
16685 echo $ECHO_N "(cached) $ECHO_C" >&6
16687 ac_check_lib_save_LIBS=$LIBS
16688 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
16689 cat >conftest.$ac_ext <<_ACEOF
16692 cat confdefs.h >>conftest.$ac_ext
16693 cat >>conftest.$ac_ext <<_ACEOF
16694 /* end confdefs.h. */
16696 /* Override any gcc2 internal prototype to avoid an error. */
16700 /* We use char because int might match the return type of a gcc2
16701 builtin and then its argument prototype would still apply. */
16702 char gleCreateGC ();
16711 rm -f conftest.$ac_objext conftest$ac_exeext
16712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16713 (eval $ac_link) 2>conftest.er1
16715 grep -v '^ *+' conftest.er1 >conftest.err
16717 cat conftest.err >&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } &&
16720 { ac_try='test -z "$ac_c_werror_flag"
16721 || test ! -s conftest.err'
16722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723 (eval $ac_try) 2>&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); }; } &&
16727 { ac_try='test -s conftest$ac_exeext'
16728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729 (eval $ac_try) 2>&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; }; then
16733 ac_cv_lib_gle_gleCreateGC=yes
16735 echo "$as_me: failed program was:" >&5
16736 sed 's/^/| /' conftest.$ac_ext >&5
16738 ac_cv_lib_gle_gleCreateGC=no
16740 rm -f conftest.err conftest.$ac_objext \
16741 conftest$ac_exeext conftest.$ac_ext
16742 LIBS=$ac_check_lib_save_LIBS
16744 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_gleCreateGC" >&5
16745 echo "${ECHO_T}$ac_cv_lib_gle_gleCreateGC" >&6
16746 if test $ac_cv_lib_gle_gleCreateGC = yes; then
16747 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
16750 CPPFLAGS="$ac_save_CPPFLAGS"
16751 LDFLAGS="$ac_save_LDFLAGS"
16752 # LIBS="$ac_save_LIBS"
16755 if test "$have_gle" = yes ; then
16759 # sometimes the libmatrix stuff is included in libgle. look there first.
16761 # I don't get it. For some reason, this test passes on SGI, as if
16762 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
16763 # Yet the link is succeeding. Why???
16765 # AC_CHECK_X_LIB(gle, uview_direction_d,
16766 # [have_gle=yes; gle_halfassed=no],
16767 # [], $GL_LIBS -lX11 -lXext -lm)
16769 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
16771 if test "$have_gle3" = yes ; then
16773 ac_save_CPPFLAGS="$CPPFLAGS"
16774 ac_save_LDFLAGS="$LDFLAGS"
16775 # ac_save_LIBS="$LIBS"
16777 if test \! -z "$includedir" ; then
16778 CPPFLAGS="$CPPFLAGS -I$includedir"
16780 # note: $X_CFLAGS includes $x_includes
16781 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16783 if test \! -z "$libdir" ; then
16784 LDFLAGS="$LDFLAGS -L$libdir"
16786 # note: $X_LIBS includes $x_libraries
16787 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16789 echo "$as_me:$LINENO: checking for uview_direction in -lgle" >&5
16790 echo $ECHO_N "checking for uview_direction in -lgle... $ECHO_C" >&6
16791 if test "${ac_cv_lib_gle_uview_direction+set}" = set; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16794 ac_check_lib_save_LIBS=$LIBS
16795 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
16796 cat >conftest.$ac_ext <<_ACEOF
16799 cat confdefs.h >>conftest.$ac_ext
16800 cat >>conftest.$ac_ext <<_ACEOF
16801 /* end confdefs.h. */
16803 /* Override any gcc2 internal prototype to avoid an error. */
16807 /* We use char because int might match the return type of a gcc2
16808 builtin and then its argument prototype would still apply. */
16809 char uview_direction ();
16813 uview_direction ();
16818 rm -f conftest.$ac_objext conftest$ac_exeext
16819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16820 (eval $ac_link) 2>conftest.er1
16822 grep -v '^ *+' conftest.er1 >conftest.err
16824 cat conftest.err >&5
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); } &&
16827 { ac_try='test -z "$ac_c_werror_flag"
16828 || test ! -s conftest.err'
16829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16830 (eval $ac_try) 2>&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; } &&
16834 { ac_try='test -s conftest$ac_exeext'
16835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16836 (eval $ac_try) 2>&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; }; then
16840 ac_cv_lib_gle_uview_direction=yes
16842 echo "$as_me: failed program was:" >&5
16843 sed 's/^/| /' conftest.$ac_ext >&5
16845 ac_cv_lib_gle_uview_direction=no
16847 rm -f conftest.err conftest.$ac_objext \
16848 conftest$ac_exeext conftest.$ac_ext
16849 LIBS=$ac_check_lib_save_LIBS
16851 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_uview_direction" >&5
16852 echo "${ECHO_T}$ac_cv_lib_gle_uview_direction" >&6
16853 if test $ac_cv_lib_gle_uview_direction = yes; then
16854 have_gle=yes; gle_halfassed=no
16857 CPPFLAGS="$ac_save_CPPFLAGS"
16858 LDFLAGS="$ac_save_LDFLAGS"
16859 # LIBS="$ac_save_LIBS"
16862 # if it wasn't in libgle, then look in libmatrix.
16863 if test "$have_gle" = no ; then
16865 ac_save_CPPFLAGS="$CPPFLAGS"
16866 ac_save_LDFLAGS="$LDFLAGS"
16867 # ac_save_LIBS="$LIBS"
16869 if test \! -z "$includedir" ; then
16870 CPPFLAGS="$CPPFLAGS -I$includedir"
16872 # note: $X_CFLAGS includes $x_includes
16873 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16875 if test \! -z "$libdir" ; then
16876 LDFLAGS="$LDFLAGS -L$libdir"
16878 # note: $X_LIBS includes $x_libraries
16879 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16881 echo "$as_me:$LINENO: checking for uview_direction_d in -lmatrix" >&5
16882 echo $ECHO_N "checking for uview_direction_d in -lmatrix... $ECHO_C" >&6
16883 if test "${ac_cv_lib_matrix_uview_direction_d+set}" = set; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16886 ac_check_lib_save_LIBS=$LIBS
16887 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
16888 cat >conftest.$ac_ext <<_ACEOF
16891 cat confdefs.h >>conftest.$ac_ext
16892 cat >>conftest.$ac_ext <<_ACEOF
16893 /* end confdefs.h. */
16895 /* Override any gcc2 internal prototype to avoid an error. */
16899 /* We use char because int might match the return type of a gcc2
16900 builtin and then its argument prototype would still apply. */
16901 char uview_direction_d ();
16905 uview_direction_d ();
16910 rm -f conftest.$ac_objext conftest$ac_exeext
16911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16912 (eval $ac_link) 2>conftest.er1
16914 grep -v '^ *+' conftest.er1 >conftest.err
16916 cat conftest.err >&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } &&
16919 { ac_try='test -z "$ac_c_werror_flag"
16920 || test ! -s conftest.err'
16921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922 (eval $ac_try) 2>&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; } &&
16926 { ac_try='test -s conftest$ac_exeext'
16927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928 (eval $ac_try) 2>&5
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 ac_cv_lib_matrix_uview_direction_d=yes
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 ac_cv_lib_matrix_uview_direction_d=no
16939 rm -f conftest.err conftest.$ac_objext \
16940 conftest$ac_exeext conftest.$ac_ext
16941 LIBS=$ac_check_lib_save_LIBS
16943 echo "$as_me:$LINENO: result: $ac_cv_lib_matrix_uview_direction_d" >&5
16944 echo "${ECHO_T}$ac_cv_lib_matrix_uview_direction_d" >&6
16945 if test $ac_cv_lib_matrix_uview_direction_d = yes; then
16946 have_gle=yes; gle_halfassed=no;
16947 GLE_LIBS="$GLE_LIBS -lmatrix"
16950 CPPFLAGS="$ac_save_CPPFLAGS"
16951 LDFLAGS="$ac_save_LDFLAGS"
16952 # LIBS="$ac_save_LIBS"
16957 if test "$have_gle" = yes ; then
16958 cat >>confdefs.h <<\_ACEOF
16962 if test "$have_gle3" = yes ; then
16963 cat >>confdefs.h <<\_ACEOF
16964 #define HAVE_GLE3 1
16970 elif test "$with_gle" != no; then
16971 echo "error: must be yes or no: --with-gle=$with_gle"
16977 ###############################################################################
16979 # Check for -lgdk_pixbuf.
16980 # These tests are for gdk_pixbuf usage of the hacks,
16981 # not xscreensaver-demo (thus we have to test again to get
16982 # the libraries right: don't want to pull in all of GTK
16985 ###############################################################################
16988 with_gdk_pixbuf_req=unspecified
16990 # Check whether --with-pixbuf or --without-pixbuf was given.
16991 if test "${with_pixbuf+set}" = set; then
16992 withval="$with_pixbuf"
16993 with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
16995 with_gdk_pixbuf=yes
16998 # if --with-pixbuf=/directory/ was specified, remember that directory so that
16999 # we can also look for the `gdk-pixbuf-config' program in that directory.
17000 case "$with_gdk_pixbuf" in
17002 gdk_pixbuf_dir="$with_gdk_pixbuf"
17010 case "$with_gdk_pixbuf" in
17015 echo "$as_me:$LINENO: checking for GDK_PIXBUF headers" >&5
17016 echo $ECHO_N "checking for GDK_PIXBUF headers... $ECHO_C" >&6
17017 d=$with_gdk_pixbuf/include
17018 if test -d $d; then
17019 X_CFLAGS="-I$d $X_CFLAGS"
17020 echo "$as_me:$LINENO: result: $d" >&5
17021 echo "${ECHO_T}$d" >&6
17023 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17024 echo "${ECHO_T}not found ($d: no such directory)" >&6
17027 echo "$as_me:$LINENO: checking for GDK_PIXBUF libs" >&5
17028 echo $ECHO_N "checking for GDK_PIXBUF libs... $ECHO_C" >&6
17029 d=$with_gdk_pixbuf/lib
17030 if test -d $d; then
17031 X_LIBS="-L$d $X_LIBS"
17032 echo "$as_me:$LINENO: result: $d" >&5
17033 echo "${ECHO_T}$d" >&6
17035 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17036 echo "${ECHO_T}not found ($d: no such directory)" >&6
17039 # replace the directory string with "yes".
17040 with_gdk_pixbuf_req="yes"
17041 with_gdk_pixbuf=$with_gdk_pixbuf_req
17046 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
17047 echo " If it is a directory, then \`DIR/include' will be added to"
17048 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17054 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
17055 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
17059 if test "$with_gdk_pixbuf" = yes; then
17065 pkg_check_version gdk-pixbuf-2.0 2.0.0
17066 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
17067 have_gdk_pixbuf="$ok"
17069 if test "$have_gdk_pixbuf" = yes; then
17070 echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
17071 echo $ECHO_N "checking for gdk-pixbuf includes... $ECHO_C" >&6
17072 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
17075 ac_cv_gdk_pixbuf_config_cflags=`$pkg_config --cflags $pkgs`
17077 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
17078 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_cflags" >&6
17079 echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
17080 echo $ECHO_N "checking for gdk-pixbuf libs... $ECHO_C" >&6
17081 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17084 ac_cv_gdk_pixbuf_config_libs=`$pkg_config --libs $pkgs`
17086 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
17087 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_libs" >&6
17089 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
17090 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
17093 if test "$have_gdk_pixbuf" = yes; then
17095 # we appear to have pixbuf; check for headers/libs to be sure.
17097 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
17098 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
17102 # check for header A...
17104 ac_save_CPPFLAGS="$CPPFLAGS"
17105 if test \! -z "$includedir" ; then
17106 CPPFLAGS="$CPPFLAGS -I$includedir"
17108 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17109 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17110 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
17111 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
17112 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17113 echo $ECHO_N "(cached) $ECHO_C" >&6
17115 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
17116 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
17118 # Is the header compilable?
17119 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h usability" >&5
17120 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h usability... $ECHO_C" >&6
17121 cat >conftest.$ac_ext <<_ACEOF
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h. */
17127 $ac_includes_default
17128 #include <gdk-pixbuf/gdk-pixbuf.h>
17130 rm -f conftest.$ac_objext
17131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17132 (eval $ac_compile) 2>conftest.er1
17134 grep -v '^ *+' conftest.er1 >conftest.err
17136 cat conftest.err >&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); } &&
17139 { ac_try='test -z "$ac_c_werror_flag"
17140 || test ! -s conftest.err'
17141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; } &&
17146 { ac_try='test -s conftest.$ac_objext'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; }; then
17152 ac_header_compiler=yes
17154 echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17157 ac_header_compiler=no
17159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17161 echo "${ECHO_T}$ac_header_compiler" >&6
17163 # Is the header present?
17164 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h presence" >&5
17165 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h presence... $ECHO_C" >&6
17166 cat >conftest.$ac_ext <<_ACEOF
17169 cat confdefs.h >>conftest.$ac_ext
17170 cat >>conftest.$ac_ext <<_ACEOF
17171 /* end confdefs.h. */
17172 #include <gdk-pixbuf/gdk-pixbuf.h>
17174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17177 grep -v '^ *+' conftest.er1 >conftest.err
17179 cat conftest.err >&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); } >/dev/null; then
17182 if test -s conftest.err; then
17183 ac_cpp_err=$ac_c_preproc_warn_flag
17184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17191 if test -z "$ac_cpp_err"; then
17192 ac_header_preproc=yes
17194 echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17197 ac_header_preproc=no
17199 rm -f conftest.err conftest.$ac_ext
17200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17201 echo "${ECHO_T}$ac_header_preproc" >&6
17203 # So? What about this header?
17204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17206 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&5
17207 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17208 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&5
17209 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&2;}
17210 ac_header_preproc=yes
17213 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&5
17214 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&2;}
17215 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&5
17216 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&2;}
17217 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&5
17218 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&2;}
17219 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&5
17220 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&2;}
17221 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
17222 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;}
17223 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&5
17224 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&2;}
17227 ## ------------------------------------------ ##
17228 ## Report this to the AC_PACKAGE_NAME lists. ##
17229 ## ------------------------------------------ ##
17232 sed "s/^/$as_me: WARNING: /" >&2
17235 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
17236 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
17237 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17238 echo $ECHO_N "(cached) $ECHO_C" >&6
17240 ac_cv_header_gdk_pixbuf_gdk_pixbuf_h=$ac_header_preproc
17242 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
17243 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
17246 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h = yes; then
17247 have_gdk_pixbuf=yes
17251 CPPFLAGS="$ac_save_CPPFLAGS"
17253 # if that worked, check for header B...
17254 if test "$have_gdk_pixbuf" = yes; then
17256 gdk_pixbuf_halfassed=yes
17258 ac_save_CPPFLAGS="$CPPFLAGS"
17259 if test \! -z "$includedir" ; then
17260 CPPFLAGS="$CPPFLAGS -I$includedir"
17262 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17263 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17264 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
17265 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17266 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
17270 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
17272 # Is the header compilable?
17273 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h usability" >&5
17274 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
17275 cat >conftest.$ac_ext <<_ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17281 $ac_includes_default
17282 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
17284 rm -f conftest.$ac_objext
17285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17286 (eval $ac_compile) 2>conftest.er1
17288 grep -v '^ *+' conftest.er1 >conftest.err
17290 cat conftest.err >&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } &&
17293 { ac_try='test -z "$ac_c_werror_flag"
17294 || test ! -s conftest.err'
17295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296 (eval $ac_try) 2>&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); }; } &&
17300 { ac_try='test -s conftest.$ac_objext'
17301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302 (eval $ac_try) 2>&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); }; }; then
17306 ac_header_compiler=yes
17308 echo "$as_me: failed program was:" >&5
17309 sed 's/^/| /' conftest.$ac_ext >&5
17311 ac_header_compiler=no
17313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17315 echo "${ECHO_T}$ac_header_compiler" >&6
17317 # Is the header present?
17318 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h presence" >&5
17319 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
17320 cat >conftest.$ac_ext <<_ACEOF
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h. */
17326 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
17328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17331 grep -v '^ *+' conftest.er1 >conftest.err
17333 cat conftest.err >&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } >/dev/null; then
17336 if test -s conftest.err; then
17337 ac_cpp_err=$ac_c_preproc_warn_flag
17338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17345 if test -z "$ac_cpp_err"; then
17346 ac_header_preproc=yes
17348 echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17351 ac_header_preproc=no
17353 rm -f conftest.err conftest.$ac_ext
17354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17355 echo "${ECHO_T}$ac_header_preproc" >&6
17357 # So? What about this header?
17358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17360 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17361 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17362 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
17363 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
17364 ac_header_preproc=yes
17367 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
17368 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
17369 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
17370 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
17371 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
17372 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
17373 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
17374 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17375 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
17376 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
17377 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
17378 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
17381 ## ------------------------------------------ ##
17382 ## Report this to the AC_PACKAGE_NAME lists. ##
17383 ## ------------------------------------------ ##
17386 sed "s/^/$as_me: WARNING: /" >&2
17389 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
17390 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17391 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17392 echo $ECHO_N "(cached) $ECHO_C" >&6
17394 ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h=$ac_header_preproc
17396 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
17397 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
17400 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h = yes; then
17401 have_gdk_pixbuf=yes
17402 gdk_pixbuf_halfassed=no
17406 CPPFLAGS="$ac_save_CPPFLAGS"
17408 # yay, it has a new name in Gtk 2.x...
17409 if test "$have_gdk_pixbuf" = no; then
17411 gdk_pixbuf_halfassed=yes
17413 ac_save_CPPFLAGS="$CPPFLAGS"
17414 if test \! -z "$includedir" ; then
17415 CPPFLAGS="$CPPFLAGS -I$includedir"
17417 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17418 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17419 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
17420 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17421 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17422 echo $ECHO_N "(cached) $ECHO_C" >&6
17424 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
17425 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
17427 # Is the header compilable?
17428 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability" >&5
17429 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
17430 cat >conftest.$ac_ext <<_ACEOF
17433 cat confdefs.h >>conftest.$ac_ext
17434 cat >>conftest.$ac_ext <<_ACEOF
17435 /* end confdefs.h. */
17436 $ac_includes_default
17437 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
17439 rm -f conftest.$ac_objext
17440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17441 (eval $ac_compile) 2>conftest.er1
17443 grep -v '^ *+' conftest.er1 >conftest.err
17445 cat conftest.err >&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } &&
17448 { ac_try='test -z "$ac_c_werror_flag"
17449 || test ! -s conftest.err'
17450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451 (eval $ac_try) 2>&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; } &&
17455 { ac_try='test -s conftest.$ac_objext'
17456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457 (eval $ac_try) 2>&5
17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); }; }; then
17461 ac_header_compiler=yes
17463 echo "$as_me: failed program was:" >&5
17464 sed 's/^/| /' conftest.$ac_ext >&5
17466 ac_header_compiler=no
17468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17470 echo "${ECHO_T}$ac_header_compiler" >&6
17472 # Is the header present?
17473 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence" >&5
17474 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
17475 cat >conftest.$ac_ext <<_ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h. */
17481 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
17483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17486 grep -v '^ *+' conftest.er1 >conftest.err
17488 cat conftest.err >&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } >/dev/null; then
17491 if test -s conftest.err; then
17492 ac_cpp_err=$ac_c_preproc_warn_flag
17493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17500 if test -z "$ac_cpp_err"; then
17501 ac_header_preproc=yes
17503 echo "$as_me: failed program was:" >&5
17504 sed 's/^/| /' conftest.$ac_ext >&5
17506 ac_header_preproc=no
17508 rm -f conftest.err conftest.$ac_ext
17509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17510 echo "${ECHO_T}$ac_header_preproc" >&6
17512 # So? What about this header?
17513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17515 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17516 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17517 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
17518 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
17519 ac_header_preproc=yes
17522 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
17523 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
17524 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
17525 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
17526 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
17527 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
17528 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
17529 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17530 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
17531 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
17532 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
17533 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
17536 ## ------------------------------------------ ##
17537 ## Report this to the AC_PACKAGE_NAME lists. ##
17538 ## ------------------------------------------ ##
17541 sed "s/^/$as_me: WARNING: /" >&2
17544 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
17545 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17546 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17547 echo $ECHO_N "(cached) $ECHO_C" >&6
17549 ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h=$ac_header_preproc
17551 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
17552 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
17555 if test $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h = yes; then
17556 have_gdk_pixbuf=yes
17557 gdk_pixbuf_halfassed=no
17561 CPPFLAGS="$ac_save_CPPFLAGS"
17564 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
17567 if test "$have_gdk_pixbuf" = yes; then
17568 # we have the headers, now check for the libraries
17570 gdk_pixbuf_halfassed=yes
17572 echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability..." >&5
17573 echo "${ECHO_T}checking for gdk_pixbuf usability..." >&6
17577 ac_save_CPPFLAGS="$CPPFLAGS"
17578 ac_save_LDFLAGS="$LDFLAGS"
17579 # ac_save_LIBS="$LIBS"
17581 if test \! -z "$includedir" ; then
17582 CPPFLAGS="$CPPFLAGS -I$includedir"
17584 # note: $X_CFLAGS includes $x_includes
17585 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17587 if test \! -z "$libdir" ; then
17588 LDFLAGS="$LDFLAGS -L$libdir"
17590 # note: $X_LIBS includes $x_libraries
17591 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17593 echo "$as_me:$LINENO: checking for gdk_pixbuf_new_from_file in -lc" >&5
17594 echo $ECHO_N "checking for gdk_pixbuf_new_from_file in -lc... $ECHO_C" >&6
17595 if test "${ac_cv_lib_c_gdk_pixbuf_new_from_file+set}" = set; then
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
17598 ac_check_lib_save_LIBS=$LIBS
17599 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
17600 cat >conftest.$ac_ext <<_ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h. */
17607 /* Override any gcc2 internal prototype to avoid an error. */
17611 /* We use char because int might match the return type of a gcc2
17612 builtin and then its argument prototype would still apply. */
17613 char gdk_pixbuf_new_from_file ();
17617 gdk_pixbuf_new_from_file ();
17622 rm -f conftest.$ac_objext conftest$ac_exeext
17623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17624 (eval $ac_link) 2>conftest.er1
17626 grep -v '^ *+' conftest.er1 >conftest.err
17628 cat conftest.err >&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); } &&
17631 { ac_try='test -z "$ac_c_werror_flag"
17632 || test ! -s conftest.err'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; } &&
17638 { ac_try='test -s conftest$ac_exeext'
17639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17640 (eval $ac_try) 2>&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17644 ac_cv_lib_c_gdk_pixbuf_new_from_file=yes
17646 echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17649 ac_cv_lib_c_gdk_pixbuf_new_from_file=no
17651 rm -f conftest.err conftest.$ac_objext \
17652 conftest$ac_exeext conftest.$ac_ext
17653 LIBS=$ac_check_lib_save_LIBS
17655 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_new_from_file" >&5
17656 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_new_from_file" >&6
17657 if test $ac_cv_lib_c_gdk_pixbuf_new_from_file = yes; then
17658 have_gdk_pixbuf=yes
17661 CPPFLAGS="$ac_save_CPPFLAGS"
17662 LDFLAGS="$ac_save_LDFLAGS"
17663 # LIBS="$ac_save_LIBS"
17666 if test "$have_gdk_pixbuf" = yes; then
17669 ac_save_CPPFLAGS="$CPPFLAGS"
17670 ac_save_LDFLAGS="$LDFLAGS"
17671 # ac_save_LIBS="$LIBS"
17673 if test \! -z "$includedir" ; then
17674 CPPFLAGS="$CPPFLAGS -I$includedir"
17676 # note: $X_CFLAGS includes $x_includes
17677 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17679 if test \! -z "$libdir" ; then
17680 LDFLAGS="$LDFLAGS -L$libdir"
17682 # note: $X_LIBS includes $x_libraries
17683 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17685 echo "$as_me:$LINENO: checking for gdk_pixbuf_xlib_init in -lc" >&5
17686 echo $ECHO_N "checking for gdk_pixbuf_xlib_init in -lc... $ECHO_C" >&6
17687 if test "${ac_cv_lib_c_gdk_pixbuf_xlib_init+set}" = set; then
17688 echo $ECHO_N "(cached) $ECHO_C" >&6
17690 ac_check_lib_save_LIBS=$LIBS
17691 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
17692 cat >conftest.$ac_ext <<_ACEOF
17695 cat confdefs.h >>conftest.$ac_ext
17696 cat >>conftest.$ac_ext <<_ACEOF
17697 /* end confdefs.h. */
17699 /* Override any gcc2 internal prototype to avoid an error. */
17703 /* We use char because int might match the return type of a gcc2
17704 builtin and then its argument prototype would still apply. */
17705 char gdk_pixbuf_xlib_init ();
17709 gdk_pixbuf_xlib_init ();
17714 rm -f conftest.$ac_objext conftest$ac_exeext
17715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17716 (eval $ac_link) 2>conftest.er1
17718 grep -v '^ *+' conftest.er1 >conftest.err
17720 cat conftest.err >&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); } &&
17723 { ac_try='test -z "$ac_c_werror_flag"
17724 || test ! -s conftest.err'
17725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726 (eval $ac_try) 2>&5
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; } &&
17730 { ac_try='test -s conftest$ac_exeext'
17731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17732 (eval $ac_try) 2>&5
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; }; then
17736 ac_cv_lib_c_gdk_pixbuf_xlib_init=yes
17738 echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17741 ac_cv_lib_c_gdk_pixbuf_xlib_init=no
17743 rm -f conftest.err conftest.$ac_objext \
17744 conftest$ac_exeext conftest.$ac_ext
17745 LIBS=$ac_check_lib_save_LIBS
17747 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_xlib_init" >&5
17748 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_xlib_init" >&6
17749 if test $ac_cv_lib_c_gdk_pixbuf_xlib_init = yes; then
17750 have_gdk_pixbuf=yes
17751 gdk_pixbuf_halfassed=no
17754 CPPFLAGS="$ac_save_CPPFLAGS"
17755 LDFLAGS="$ac_save_LDFLAGS"
17756 # LIBS="$ac_save_LIBS"
17761 if test "$have_gdk_pixbuf" = yes; then
17762 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
17763 XPM_LIBS="$ac_gdk_pixbuf_config_libs"
17764 cat >>confdefs.h <<\_ACEOF
17765 #define HAVE_GDK_PIXBUF 1
17769 echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability... no" >&5
17770 echo "${ECHO_T}checking for gdk_pixbuf usability... no" >&6
17775 ###############################################################################
17779 ###############################################################################
17782 with_xpm_req=unspecified
17784 # Check whether --with-xpm or --without-xpm was given.
17785 if test "${with_xpm+set}" = set; then
17786 withval="$with_xpm"
17787 with_xpm="$withval"; with_xpm_req="$withval"
17793 case "$with_xpm" in
17798 echo "$as_me:$LINENO: checking for XPM headers" >&5
17799 echo $ECHO_N "checking for XPM headers... $ECHO_C" >&6
17800 d=$with_xpm/include
17801 if test -d $d; then
17802 X_CFLAGS="-I$d $X_CFLAGS"
17803 echo "$as_me:$LINENO: result: $d" >&5
17804 echo "${ECHO_T}$d" >&6
17806 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17807 echo "${ECHO_T}not found ($d: no such directory)" >&6
17810 echo "$as_me:$LINENO: checking for XPM libs" >&5
17811 echo $ECHO_N "checking for XPM libs... $ECHO_C" >&6
17813 if test -d $d; then
17814 X_LIBS="-L$d $X_LIBS"
17815 echo "$as_me:$LINENO: result: $d" >&5
17816 echo "${ECHO_T}$d" >&6
17818 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17819 echo "${ECHO_T}not found ($d: no such directory)" >&6
17822 # replace the directory string with "yes".
17824 with_xpm=$with_xpm_req
17829 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
17830 echo " If it is a directory, then \`DIR/include' will be added to"
17831 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17837 if test "$with_xpm" = yes; then
17839 ac_save_CPPFLAGS="$CPPFLAGS"
17840 if test \! -z "$includedir" ; then
17841 CPPFLAGS="$CPPFLAGS -I$includedir"
17843 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17844 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
17845 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
17846 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17847 echo $ECHO_N "(cached) $ECHO_C" >&6
17849 cat >conftest.$ac_ext <<_ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h. */
17855 #include <X11/Xlib.h>
17857 #include <X11/xpm.h>
17859 rm -f conftest.$ac_objext
17860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17861 (eval $ac_compile) 2>conftest.er1
17863 grep -v '^ *+' conftest.er1 >conftest.err
17865 cat conftest.err >&5
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } &&
17868 { ac_try='test -z "$ac_c_werror_flag"
17869 || test ! -s conftest.err'
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; } &&
17875 { ac_try='test -s conftest.$ac_objext'
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; }; then
17881 ac_cv_header_X11_xpm_h=yes
17883 echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17886 ac_cv_header_X11_xpm_h=no
17888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17890 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
17891 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
17892 if test $ac_cv_header_X11_xpm_h = yes; then
17894 cat >>confdefs.h <<\_ACEOF
17898 XPM_LIBS="-lXpm $XPM_LIBS"
17902 CPPFLAGS="$ac_save_CPPFLAGS"
17903 elif test "$with_xpm" != no; then
17904 echo "error: must be yes or no: --with-xpm=$with_xpm"
17908 # See comment near $motif_requires_xpm, above.
17909 # Need to do this here, after both Motif and XPM have been checked for.
17911 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
17912 if test "$motif_requires_xpm" = yes ; then
17913 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
17918 ###############################################################################
17922 ###############################################################################
17925 with_jpeg_req=unspecified
17928 # Check whether --with-jpeg or --without-jpeg was given.
17929 if test "${with_jpeg+set}" = set; then
17930 withval="$with_jpeg"
17931 with_jpeg="$withval"; with_jpeg_req="$withval"
17937 case "$with_jpeg" in
17942 echo "$as_me:$LINENO: checking for JPEG headers" >&5
17943 echo $ECHO_N "checking for JPEG headers... $ECHO_C" >&6
17944 d=$with_jpeg/include
17945 if test -d $d; then
17946 X_CFLAGS="-I$d $X_CFLAGS"
17947 echo "$as_me:$LINENO: result: $d" >&5
17948 echo "${ECHO_T}$d" >&6
17950 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17951 echo "${ECHO_T}not found ($d: no such directory)" >&6
17954 echo "$as_me:$LINENO: checking for JPEG libs" >&5
17955 echo $ECHO_N "checking for JPEG libs... $ECHO_C" >&6
17957 if test -d $d; then
17958 X_LIBS="-L$d $X_LIBS"
17959 echo "$as_me:$LINENO: result: $d" >&5
17960 echo "${ECHO_T}$d" >&6
17962 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17963 echo "${ECHO_T}not found ($d: no such directory)" >&6
17966 # replace the directory string with "yes".
17967 with_jpeg_req="yes"
17968 with_jpeg=$with_jpeg_req
17973 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
17974 echo " If it is a directory, then \`DIR/include' will be added to"
17975 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17981 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
17982 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
17986 if test "$with_jpeg" = yes; then
17990 ac_save_CPPFLAGS="$CPPFLAGS"
17991 if test \! -z "$includedir" ; then
17992 CPPFLAGS="$CPPFLAGS -I$includedir"
17994 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17995 if test "${ac_cv_header_jpeglib_h+set}" = set; then
17996 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
17997 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
17998 if test "${ac_cv_header_jpeglib_h+set}" = set; then
17999 echo $ECHO_N "(cached) $ECHO_C" >&6
18001 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18002 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
18004 # Is the header compilable?
18005 echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
18006 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
18007 cat >conftest.$ac_ext <<_ACEOF
18010 cat confdefs.h >>conftest.$ac_ext
18011 cat >>conftest.$ac_ext <<_ACEOF
18012 /* end confdefs.h. */
18013 $ac_includes_default
18014 #include <jpeglib.h>
18016 rm -f conftest.$ac_objext
18017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18018 (eval $ac_compile) 2>conftest.er1
18020 grep -v '^ *+' conftest.er1 >conftest.err
18022 cat conftest.err >&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } &&
18025 { ac_try='test -z "$ac_c_werror_flag"
18026 || test ! -s conftest.err'
18027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028 (eval $ac_try) 2>&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; } &&
18032 { ac_try='test -s conftest.$ac_objext'
18033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18034 (eval $ac_try) 2>&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); }; }; then
18038 ac_header_compiler=yes
18040 echo "$as_me: failed program was:" >&5
18041 sed 's/^/| /' conftest.$ac_ext >&5
18043 ac_header_compiler=no
18045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18047 echo "${ECHO_T}$ac_header_compiler" >&6
18049 # Is the header present?
18050 echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
18051 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
18052 cat >conftest.$ac_ext <<_ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18058 #include <jpeglib.h>
18060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18063 grep -v '^ *+' conftest.er1 >conftest.err
18065 cat conftest.err >&5
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); } >/dev/null; then
18068 if test -s conftest.err; then
18069 ac_cpp_err=$ac_c_preproc_warn_flag
18070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18077 if test -z "$ac_cpp_err"; then
18078 ac_header_preproc=yes
18080 echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18083 ac_header_preproc=no
18085 rm -f conftest.err conftest.$ac_ext
18086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18087 echo "${ECHO_T}$ac_header_preproc" >&6
18089 # So? What about this header?
18090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18092 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18093 echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18094 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
18095 echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
18096 ac_header_preproc=yes
18099 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
18100 echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
18101 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
18102 echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
18103 { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
18104 echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
18105 { echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
18106 echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18107 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
18108 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
18109 { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
18110 echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
18113 ## ------------------------------------------ ##
18114 ## Report this to the AC_PACKAGE_NAME lists. ##
18115 ## ------------------------------------------ ##
18118 sed "s/^/$as_me: WARNING: /" >&2
18121 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18122 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18123 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18124 echo $ECHO_N "(cached) $ECHO_C" >&6
18126 ac_cv_header_jpeglib_h=$ac_header_preproc
18128 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18129 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
18132 if test $ac_cv_header_jpeglib_h = yes; then
18137 CPPFLAGS="$ac_save_CPPFLAGS"
18139 if test "$have_jpeg" = yes; then
18140 # we have the header, now check for the library
18144 ac_save_CPPFLAGS="$CPPFLAGS"
18145 ac_save_LDFLAGS="$LDFLAGS"
18146 # ac_save_LIBS="$LIBS"
18148 if test \! -z "$includedir" ; then
18149 CPPFLAGS="$CPPFLAGS -I$includedir"
18151 # note: $X_CFLAGS includes $x_includes
18152 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18154 if test \! -z "$libdir" ; then
18155 LDFLAGS="$LDFLAGS -L$libdir"
18157 # note: $X_LIBS includes $x_libraries
18158 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18160 echo "$as_me:$LINENO: checking for jpeg_start_compress in -ljpeg" >&5
18161 echo $ECHO_N "checking for jpeg_start_compress in -ljpeg... $ECHO_C" >&6
18162 if test "${ac_cv_lib_jpeg_jpeg_start_compress+set}" = set; then
18163 echo $ECHO_N "(cached) $ECHO_C" >&6
18165 ac_check_lib_save_LIBS=$LIBS
18166 LIBS="-ljpeg $LIBS"
18167 cat >conftest.$ac_ext <<_ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h. */
18174 /* Override any gcc2 internal prototype to avoid an error. */
18178 /* We use char because int might match the return type of a gcc2
18179 builtin and then its argument prototype would still apply. */
18180 char jpeg_start_compress ();
18184 jpeg_start_compress ();
18189 rm -f conftest.$ac_objext conftest$ac_exeext
18190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18191 (eval $ac_link) 2>conftest.er1
18193 grep -v '^ *+' conftest.er1 >conftest.err
18195 cat conftest.err >&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } &&
18198 { ac_try='test -z "$ac_c_werror_flag"
18199 || test ! -s conftest.err'
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; } &&
18205 { ac_try='test -s conftest$ac_exeext'
18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207 (eval $ac_try) 2>&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); }; }; then
18211 ac_cv_lib_jpeg_jpeg_start_compress=yes
18213 echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18216 ac_cv_lib_jpeg_jpeg_start_compress=no
18218 rm -f conftest.err conftest.$ac_objext \
18219 conftest$ac_exeext conftest.$ac_ext
18220 LIBS=$ac_check_lib_save_LIBS
18222 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
18223 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_compress" >&6
18224 if test $ac_cv_lib_jpeg_jpeg_start_compress = yes; then
18228 cat >>confdefs.h <<\_ACEOF
18229 #define HAVE_JPEGLIB 1
18234 CPPFLAGS="$ac_save_CPPFLAGS"
18235 LDFLAGS="$ac_save_LDFLAGS"
18236 # LIBS="$ac_save_LIBS"
18242 ###############################################################################
18244 # Check for pty support for 'phosphor'
18246 ###############################################################################
18251 for ac_header in pty.h util.h
18253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18255 echo "$as_me:$LINENO: checking for $ac_header" >&5
18256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18258 echo $ECHO_N "(cached) $ECHO_C" >&6
18260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18263 # Is the header compilable?
18264 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18266 cat >conftest.$ac_ext <<_ACEOF
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18272 $ac_includes_default
18273 #include <$ac_header>
18275 rm -f conftest.$ac_objext
18276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18277 (eval $ac_compile) 2>conftest.er1
18279 grep -v '^ *+' conftest.er1 >conftest.err
18281 cat conftest.err >&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } &&
18284 { ac_try='test -z "$ac_c_werror_flag"
18285 || test ! -s conftest.err'
18286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287 (eval $ac_try) 2>&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; } &&
18291 { ac_try='test -s conftest.$ac_objext'
18292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293 (eval $ac_try) 2>&5
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; }; then
18297 ac_header_compiler=yes
18299 echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18302 ac_header_compiler=no
18304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18306 echo "${ECHO_T}$ac_header_compiler" >&6
18308 # Is the header present?
18309 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18311 cat >conftest.$ac_ext <<_ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h. */
18317 #include <$ac_header>
18319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18322 grep -v '^ *+' conftest.er1 >conftest.err
18324 cat conftest.err >&5
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); } >/dev/null; then
18327 if test -s conftest.err; then
18328 ac_cpp_err=$ac_c_preproc_warn_flag
18329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18336 if test -z "$ac_cpp_err"; then
18337 ac_header_preproc=yes
18339 echo "$as_me: failed program was:" >&5
18340 sed 's/^/| /' conftest.$ac_ext >&5
18342 ac_header_preproc=no
18344 rm -f conftest.err conftest.$ac_ext
18345 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18346 echo "${ECHO_T}$ac_header_preproc" >&6
18348 # So? What about this header?
18349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18355 ac_header_preproc=yes
18358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18361 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18365 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18372 ## ------------------------------------------ ##
18373 ## Report this to the AC_PACKAGE_NAME lists. ##
18374 ## ------------------------------------------ ##
18377 sed "s/^/$as_me: WARNING: /" >&2
18380 echo "$as_me:$LINENO: checking for $ac_header" >&5
18381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18383 echo $ECHO_N "(cached) $ECHO_C" >&6
18385 eval "$as_ac_Header=\$ac_header_preproc"
18387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18392 cat >>confdefs.h <<_ACEOF
18393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18401 ac_save_CPPFLAGS="$CPPFLAGS"
18402 ac_save_LDFLAGS="$LDFLAGS"
18403 # ac_save_LIBS="$LIBS"
18405 if test \! -z "$includedir" ; then
18406 CPPFLAGS="$CPPFLAGS -I$includedir"
18408 # note: $X_CFLAGS includes $x_includes
18409 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18411 if test \! -z "$libdir" ; then
18412 LDFLAGS="$LDFLAGS -L$libdir"
18414 # note: $X_LIBS includes $x_libraries
18415 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18417 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18418 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
18419 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18420 echo $ECHO_N "(cached) $ECHO_C" >&6
18422 ac_check_lib_save_LIBS=$LIBS
18423 LIBS="-lutil $LIBS"
18424 cat >conftest.$ac_ext <<_ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h. */
18431 /* Override any gcc2 internal prototype to avoid an error. */
18435 /* We use char because int might match the return type of a gcc2
18436 builtin and then its argument prototype would still apply. */
18446 rm -f conftest.$ac_objext conftest$ac_exeext
18447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18448 (eval $ac_link) 2>conftest.er1
18450 grep -v '^ *+' conftest.er1 >conftest.err
18452 cat conftest.err >&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); } &&
18455 { ac_try='test -z "$ac_c_werror_flag"
18456 || test ! -s conftest.err'
18457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18458 (eval $ac_try) 2>&5
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; } &&
18462 { ac_try='test -s conftest$ac_exeext'
18463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18464 (eval $ac_try) 2>&5
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); }; }; then
18468 ac_cv_lib_util_forkpty=yes
18470 echo "$as_me: failed program was:" >&5
18471 sed 's/^/| /' conftest.$ac_ext >&5
18473 ac_cv_lib_util_forkpty=no
18475 rm -f conftest.err conftest.$ac_objext \
18476 conftest$ac_exeext conftest.$ac_ext
18477 LIBS=$ac_check_lib_save_LIBS
18479 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18480 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
18481 if test $ac_cv_lib_util_forkpty = yes; then
18483 cat >>confdefs.h <<\_ACEOF
18484 #define HAVE_FORKPTY 1
18489 CPPFLAGS="$ac_save_CPPFLAGS"
18490 LDFLAGS="$ac_save_LDFLAGS"
18491 # LIBS="$ac_save_LIBS"
18495 ###############################################################################
18497 # Check for the XSHM server extension.
18499 ###############################################################################
18502 with_xshm_req=unspecified
18504 # Check whether --with-xshm-ext or --without-xshm-ext was given.
18505 if test "${with_xshm_ext+set}" = set; then
18506 withval="$with_xshm_ext"
18507 with_xshm="$withval"; with_xshm_req="$withval"
18513 case "$with_xshm" in
18518 echo "$as_me:$LINENO: checking for XSHM headers" >&5
18519 echo $ECHO_N "checking for XSHM headers... $ECHO_C" >&6
18520 d=$with_xshm/include
18521 if test -d $d; then
18522 X_CFLAGS="-I$d $X_CFLAGS"
18523 echo "$as_me:$LINENO: result: $d" >&5
18524 echo "${ECHO_T}$d" >&6
18526 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18527 echo "${ECHO_T}not found ($d: no such directory)" >&6
18530 echo "$as_me:$LINENO: checking for XSHM libs" >&5
18531 echo $ECHO_N "checking for XSHM libs... $ECHO_C" >&6
18533 if test -d $d; then
18534 X_LIBS="-L$d $X_LIBS"
18535 echo "$as_me:$LINENO: result: $d" >&5
18536 echo "${ECHO_T}$d" >&6
18538 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18539 echo "${ECHO_T}not found ($d: no such directory)" >&6
18542 # replace the directory string with "yes".
18543 with_xshm_req="yes"
18544 with_xshm=$with_xshm_req
18549 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
18550 echo " If it is a directory, then \`DIR/include' will be added to"
18551 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18557 if test "$with_xshm" = yes; then
18559 # first check for Xshm.h.
18561 ac_save_CPPFLAGS="$CPPFLAGS"
18562 if test \! -z "$includedir" ; then
18563 CPPFLAGS="$CPPFLAGS -I$includedir"
18565 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18566 echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5
18567 echo $ECHO_N "checking for X11/extensions/XShm.h... $ECHO_C" >&6
18568 if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18571 cat >conftest.$ac_ext <<_ACEOF
18574 cat confdefs.h >>conftest.$ac_ext
18575 cat >>conftest.$ac_ext <<_ACEOF
18576 /* end confdefs.h. */
18577 #include <X11/Xlib.h>
18579 #include <X11/extensions/XShm.h>
18581 rm -f conftest.$ac_objext
18582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18583 (eval $ac_compile) 2>conftest.er1
18585 grep -v '^ *+' conftest.er1 >conftest.err
18587 cat conftest.err >&5
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); } &&
18590 { ac_try='test -z "$ac_c_werror_flag"
18591 || test ! -s conftest.err'
18592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18593 (eval $ac_try) 2>&5
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); }; } &&
18597 { ac_try='test -s conftest.$ac_objext'
18598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599 (eval $ac_try) 2>&5
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; }; then
18603 ac_cv_header_X11_extensions_XShm_h=yes
18605 echo "$as_me: failed program was:" >&5
18606 sed 's/^/| /' conftest.$ac_ext >&5
18608 ac_cv_header_X11_extensions_XShm_h=no
18610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18612 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5
18613 echo "${ECHO_T}$ac_cv_header_X11_extensions_XShm_h" >&6
18614 if test $ac_cv_header_X11_extensions_XShm_h = yes; then
18619 CPPFLAGS="$ac_save_CPPFLAGS"
18621 # if that succeeded, then check for sys/ipc.h.
18622 if test "$have_xshm" = yes; then
18625 ac_save_CPPFLAGS="$CPPFLAGS"
18626 if test \! -z "$includedir" ; then
18627 CPPFLAGS="$CPPFLAGS -I$includedir"
18629 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18630 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
18631 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
18632 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
18633 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
18634 echo $ECHO_N "(cached) $ECHO_C" >&6
18636 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
18637 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
18639 # Is the header compilable?
18640 echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
18641 echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6
18642 cat >conftest.$ac_ext <<_ACEOF
18645 cat confdefs.h >>conftest.$ac_ext
18646 cat >>conftest.$ac_ext <<_ACEOF
18647 /* end confdefs.h. */
18648 $ac_includes_default
18649 #include <sys/ipc.h>
18651 rm -f conftest.$ac_objext
18652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18653 (eval $ac_compile) 2>conftest.er1
18655 grep -v '^ *+' conftest.er1 >conftest.err
18657 cat conftest.err >&5
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); } &&
18660 { ac_try='test -z "$ac_c_werror_flag"
18661 || test ! -s conftest.err'
18662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18663 (eval $ac_try) 2>&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; } &&
18667 { ac_try='test -s conftest.$ac_objext'
18668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669 (eval $ac_try) 2>&5
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; }; then
18673 ac_header_compiler=yes
18675 echo "$as_me: failed program was:" >&5
18676 sed 's/^/| /' conftest.$ac_ext >&5
18678 ac_header_compiler=no
18680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18681 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18682 echo "${ECHO_T}$ac_header_compiler" >&6
18684 # Is the header present?
18685 echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
18686 echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6
18687 cat >conftest.$ac_ext <<_ACEOF
18690 cat confdefs.h >>conftest.$ac_ext
18691 cat >>conftest.$ac_ext <<_ACEOF
18692 /* end confdefs.h. */
18693 #include <sys/ipc.h>
18695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18698 grep -v '^ *+' conftest.er1 >conftest.err
18700 cat conftest.err >&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } >/dev/null; then
18703 if test -s conftest.err; then
18704 ac_cpp_err=$ac_c_preproc_warn_flag
18705 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18712 if test -z "$ac_cpp_err"; then
18713 ac_header_preproc=yes
18715 echo "$as_me: failed program was:" >&5
18716 sed 's/^/| /' conftest.$ac_ext >&5
18718 ac_header_preproc=no
18720 rm -f conftest.err conftest.$ac_ext
18721 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18722 echo "${ECHO_T}$ac_header_preproc" >&6
18724 # So? What about this header?
18725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18727 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
18728 echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18729 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the compiler's result" >&5
18730 echo "$as_me: WARNING: sys/ipc.h: proceeding with the compiler's result" >&2;}
18731 ac_header_preproc=yes
18734 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
18735 echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
18736 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
18737 echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
18738 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: see the Autoconf documentation" >&5
18739 echo "$as_me: WARNING: sys/ipc.h: see the Autoconf documentation" >&2;}
18740 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&5
18741 echo "$as_me: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&2;}
18742 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
18743 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
18744 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&5
18745 echo "$as_me: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&2;}
18748 ## ------------------------------------------ ##
18749 ## Report this to the AC_PACKAGE_NAME lists. ##
18750 ## ------------------------------------------ ##
18753 sed "s/^/$as_me: WARNING: /" >&2
18756 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
18757 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
18758 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
18759 echo $ECHO_N "(cached) $ECHO_C" >&6
18761 ac_cv_header_sys_ipc_h=$ac_header_preproc
18763 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
18764 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
18767 if test $ac_cv_header_sys_ipc_h = yes; then
18772 CPPFLAGS="$ac_save_CPPFLAGS"
18775 # if that succeeded, then check for sys/shm.h.
18776 if test "$have_xshm" = yes; then
18779 ac_save_CPPFLAGS="$CPPFLAGS"
18780 if test \! -z "$includedir" ; then
18781 CPPFLAGS="$CPPFLAGS -I$includedir"
18783 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18784 if test "${ac_cv_header_sys_shm_h+set}" = set; then
18785 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
18786 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
18787 if test "${ac_cv_header_sys_shm_h+set}" = set; then
18788 echo $ECHO_N "(cached) $ECHO_C" >&6
18790 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
18791 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
18793 # Is the header compilable?
18794 echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
18795 echo $ECHO_N "checking sys/shm.h usability... $ECHO_C" >&6
18796 cat >conftest.$ac_ext <<_ACEOF
18799 cat confdefs.h >>conftest.$ac_ext
18800 cat >>conftest.$ac_ext <<_ACEOF
18801 /* end confdefs.h. */
18802 $ac_includes_default
18803 #include <sys/shm.h>
18805 rm -f conftest.$ac_objext
18806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18807 (eval $ac_compile) 2>conftest.er1
18809 grep -v '^ *+' conftest.er1 >conftest.err
18811 cat conftest.err >&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); } &&
18814 { ac_try='test -z "$ac_c_werror_flag"
18815 || test ! -s conftest.err'
18816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817 (eval $ac_try) 2>&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; } &&
18821 { ac_try='test -s conftest.$ac_objext'
18822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18823 (eval $ac_try) 2>&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; }; then
18827 ac_header_compiler=yes
18829 echo "$as_me: failed program was:" >&5
18830 sed 's/^/| /' conftest.$ac_ext >&5
18832 ac_header_compiler=no
18834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18836 echo "${ECHO_T}$ac_header_compiler" >&6
18838 # Is the header present?
18839 echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
18840 echo $ECHO_N "checking sys/shm.h presence... $ECHO_C" >&6
18841 cat >conftest.$ac_ext <<_ACEOF
18844 cat confdefs.h >>conftest.$ac_ext
18845 cat >>conftest.$ac_ext <<_ACEOF
18846 /* end confdefs.h. */
18847 #include <sys/shm.h>
18849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18852 grep -v '^ *+' conftest.er1 >conftest.err
18854 cat conftest.err >&5
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); } >/dev/null; then
18857 if test -s conftest.err; then
18858 ac_cpp_err=$ac_c_preproc_warn_flag
18859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18866 if test -z "$ac_cpp_err"; then
18867 ac_header_preproc=yes
18869 echo "$as_me: failed program was:" >&5
18870 sed 's/^/| /' conftest.$ac_ext >&5
18872 ac_header_preproc=no
18874 rm -f conftest.err conftest.$ac_ext
18875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18876 echo "${ECHO_T}$ac_header_preproc" >&6
18878 # So? What about this header?
18879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18881 { echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18882 echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18883 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the compiler's result" >&5
18884 echo "$as_me: WARNING: sys/shm.h: proceeding with the compiler's result" >&2;}
18885 ac_header_preproc=yes
18888 { echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
18889 echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
18890 { echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
18891 echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
18892 { echo "$as_me:$LINENO: WARNING: sys/shm.h: see the Autoconf documentation" >&5
18893 echo "$as_me: WARNING: sys/shm.h: see the Autoconf documentation" >&2;}
18894 { echo "$as_me:$LINENO: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&5
18895 echo "$as_me: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18896 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
18897 echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
18898 { echo "$as_me:$LINENO: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&5
18899 echo "$as_me: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&2;}
18902 ## ------------------------------------------ ##
18903 ## Report this to the AC_PACKAGE_NAME lists. ##
18904 ## ------------------------------------------ ##
18907 sed "s/^/$as_me: WARNING: /" >&2
18910 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
18911 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
18912 if test "${ac_cv_header_sys_shm_h+set}" = set; then
18913 echo $ECHO_N "(cached) $ECHO_C" >&6
18915 ac_cv_header_sys_shm_h=$ac_header_preproc
18917 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
18918 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
18921 if test $ac_cv_header_sys_shm_h = yes; then
18926 CPPFLAGS="$ac_save_CPPFLAGS"
18929 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
18930 # to exist, but the library code to not exist. And even better, the library
18931 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
18932 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
18933 # that's not quite right, but close enough.)
18937 if `uname -v` -eq 3 ; then
18940 ac_save_CPPFLAGS="$CPPFLAGS"
18941 ac_save_LDFLAGS="$LDFLAGS"
18942 # ac_save_LIBS="$LIBS"
18944 if test \! -z "$includedir" ; then
18945 CPPFLAGS="$CPPFLAGS -I$includedir"
18947 # note: $X_CFLAGS includes $x_includes
18948 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18950 if test \! -z "$libdir" ; then
18951 LDFLAGS="$LDFLAGS -L$libdir"
18953 # note: $X_LIBS includes $x_libraries
18954 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18956 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXextSam" >&5
18957 echo $ECHO_N "checking for XShmQueryExtension in -lXextSam... $ECHO_C" >&6
18958 if test "${ac_cv_lib_XextSam_XShmQueryExtension+set}" = set; then
18959 echo $ECHO_N "(cached) $ECHO_C" >&6
18961 ac_check_lib_save_LIBS=$LIBS
18962 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
18963 cat >conftest.$ac_ext <<_ACEOF
18966 cat confdefs.h >>conftest.$ac_ext
18967 cat >>conftest.$ac_ext <<_ACEOF
18968 /* end confdefs.h. */
18970 /* Override any gcc2 internal prototype to avoid an error. */
18974 /* We use char because int might match the return type of a gcc2
18975 builtin and then its argument prototype would still apply. */
18976 char XShmQueryExtension ();
18980 XShmQueryExtension ();
18985 rm -f conftest.$ac_objext conftest$ac_exeext
18986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18987 (eval $ac_link) 2>conftest.er1
18989 grep -v '^ *+' conftest.er1 >conftest.err
18991 cat conftest.err >&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } &&
18994 { ac_try='test -z "$ac_c_werror_flag"
18995 || test ! -s conftest.err'
18996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997 (eval $ac_try) 2>&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; } &&
19001 { ac_try='test -s conftest$ac_exeext'
19002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003 (eval $ac_try) 2>&5
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; }; then
19007 ac_cv_lib_XextSam_XShmQueryExtension=yes
19009 echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19012 ac_cv_lib_XextSam_XShmQueryExtension=no
19014 rm -f conftest.err conftest.$ac_objext \
19015 conftest$ac_exeext conftest.$ac_ext
19016 LIBS=$ac_check_lib_save_LIBS
19018 echo "$as_me:$LINENO: result: $ac_cv_lib_XextSam_XShmQueryExtension" >&5
19019 echo "${ECHO_T}$ac_cv_lib_XextSam_XShmQueryExtension" >&6
19020 if test $ac_cv_lib_XextSam_XShmQueryExtension = yes; then
19021 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
19026 CPPFLAGS="$ac_save_CPPFLAGS"
19027 LDFLAGS="$ac_save_LDFLAGS"
19028 # LIBS="$ac_save_LIBS"
19034 # if that succeeded, then we've really got it.
19035 if test "$have_xshm" = yes; then
19036 cat >>confdefs.h <<\_ACEOF
19037 #define HAVE_XSHM_EXTENSION 1
19042 elif test "$with_xshm" != no; then
19043 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
19048 ###############################################################################
19050 # Check for the DOUBLE-BUFFER server extension.
19052 ###############################################################################
19055 with_xdbe_req=unspecified
19057 # Check whether --with-xdbe-ext or --without-xdbe-ext was given.
19058 if test "${with_xdbe_ext+set}" = set; then
19059 withval="$with_xdbe_ext"
19060 with_xdbe="$withval"; with_xdbe_req="$withval"
19066 case "$with_xdbe" in
19071 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER headers" >&5
19072 echo $ECHO_N "checking for DOUBLE-BUFFER headers... $ECHO_C" >&6
19073 d=$with_xdbe/include
19074 if test -d $d; then
19075 X_CFLAGS="-I$d $X_CFLAGS"
19076 echo "$as_me:$LINENO: result: $d" >&5
19077 echo "${ECHO_T}$d" >&6
19079 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19080 echo "${ECHO_T}not found ($d: no such directory)" >&6
19083 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER libs" >&5
19084 echo $ECHO_N "checking for DOUBLE-BUFFER libs... $ECHO_C" >&6
19086 if test -d $d; then
19087 X_LIBS="-L$d $X_LIBS"
19088 echo "$as_me:$LINENO: result: $d" >&5
19089 echo "${ECHO_T}$d" >&6
19091 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19092 echo "${ECHO_T}not found ($d: no such directory)" >&6
19095 # replace the directory string with "yes".
19096 with_xdbe_req="yes"
19097 with_xdbe=$with_xdbe_req
19102 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
19103 echo " If it is a directory, then \`DIR/include' will be added to"
19104 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19110 if test "$with_xdbe" = yes; then
19113 ac_save_CPPFLAGS="$CPPFLAGS"
19114 if test \! -z "$includedir" ; then
19115 CPPFLAGS="$CPPFLAGS -I$includedir"
19117 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19118 echo "$as_me:$LINENO: checking for X11/extensions/Xdbe.h" >&5
19119 echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6
19120 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
19121 echo $ECHO_N "(cached) $ECHO_C" >&6
19123 cat >conftest.$ac_ext <<_ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h. */
19129 #include <X11/Xlib.h>
19131 #include <X11/extensions/Xdbe.h>
19133 rm -f conftest.$ac_objext
19134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19135 (eval $ac_compile) 2>conftest.er1
19137 grep -v '^ *+' conftest.er1 >conftest.err
19139 cat conftest.err >&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } &&
19142 { ac_try='test -z "$ac_c_werror_flag"
19143 || test ! -s conftest.err'
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; } &&
19149 { ac_try='test -s conftest.$ac_objext'
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; }; then
19155 ac_cv_header_X11_extensions_Xdbe_h=yes
19157 echo "$as_me: failed program was:" >&5
19158 sed 's/^/| /' conftest.$ac_ext >&5
19160 ac_cv_header_X11_extensions_Xdbe_h=no
19162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19164 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
19165 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6
19166 if test $ac_cv_header_X11_extensions_Xdbe_h = yes; then
19171 CPPFLAGS="$ac_save_CPPFLAGS"
19172 if test "$have_xdbe" = yes; then
19173 cat >>confdefs.h <<\_ACEOF
19174 #define HAVE_DOUBLE_BUFFER_EXTENSION 1
19179 elif test "$with_xdbe" != no; then
19180 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
19185 ###############################################################################
19187 # Check for the SGI XReadDisplay server extension.
19189 # Note: this has to be down here, rather than up with the other server
19190 # extension tests, so that the output of `configure --help' is in the
19191 # right order. Arrgh!
19193 ###############################################################################
19195 have_readdisplay=no
19196 with_readdisplay_req=unspecified
19198 # Check whether --with-readdisplay or --without-readdisplay was given.
19199 if test "${with_readdisplay+set}" = set; then
19200 withval="$with_readdisplay"
19201 with_readdisplay="$withval"; with_readdisplay_req="$withval"
19203 with_readdisplay=yes
19207 case "$with_readdisplay" in
19212 echo "$as_me:$LINENO: checking for XReadDisplay headers" >&5
19213 echo $ECHO_N "checking for XReadDisplay headers... $ECHO_C" >&6
19214 d=$with_readdisplay/include
19215 if test -d $d; then
19216 X_CFLAGS="-I$d $X_CFLAGS"
19217 echo "$as_me:$LINENO: result: $d" >&5
19218 echo "${ECHO_T}$d" >&6
19220 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19221 echo "${ECHO_T}not found ($d: no such directory)" >&6
19224 echo "$as_me:$LINENO: checking for XReadDisplay libs" >&5
19225 echo $ECHO_N "checking for XReadDisplay libs... $ECHO_C" >&6
19226 d=$with_readdisplay/lib
19227 if test -d $d; then
19228 X_LIBS="-L$d $X_LIBS"
19229 echo "$as_me:$LINENO: result: $d" >&5
19230 echo "${ECHO_T}$d" >&6
19232 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19233 echo "${ECHO_T}not found ($d: no such directory)" >&6
19236 # replace the directory string with "yes".
19237 with_readdisplay_req="yes"
19238 with_readdisplay=$with_readdisplay_req
19243 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
19244 echo " If it is a directory, then \`DIR/include' will be added to"
19245 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19251 if test "$with_readdisplay" = yes; then
19253 ac_save_CPPFLAGS="$CPPFLAGS"
19254 if test \! -z "$includedir" ; then
19255 CPPFLAGS="$CPPFLAGS -I$includedir"
19257 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19258 echo "$as_me:$LINENO: checking for X11/extensions/readdisplay.h" >&5
19259 echo $ECHO_N "checking for X11/extensions/readdisplay.h... $ECHO_C" >&6
19260 if test "${ac_cv_header_X11_extensions_readdisplay_h+set}" = set; then
19261 echo $ECHO_N "(cached) $ECHO_C" >&6
19263 cat >conftest.$ac_ext <<_ACEOF
19266 cat confdefs.h >>conftest.$ac_ext
19267 cat >>conftest.$ac_ext <<_ACEOF
19268 /* end confdefs.h. */
19269 #include <X11/Xlib.h>
19271 #include <X11/extensions/readdisplay.h>
19273 rm -f conftest.$ac_objext
19274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19275 (eval $ac_compile) 2>conftest.er1
19277 grep -v '^ *+' conftest.er1 >conftest.err
19279 cat conftest.err >&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); } &&
19282 { ac_try='test -z "$ac_c_werror_flag"
19283 || test ! -s conftest.err'
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; } &&
19289 { ac_try='test -s conftest.$ac_objext'
19290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19291 (eval $ac_try) 2>&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); }; }; then
19295 ac_cv_header_X11_extensions_readdisplay_h=yes
19297 echo "$as_me: failed program was:" >&5
19298 sed 's/^/| /' conftest.$ac_ext >&5
19300 ac_cv_header_X11_extensions_readdisplay_h=no
19302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19304 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_readdisplay_h" >&5
19305 echo "${ECHO_T}$ac_cv_header_X11_extensions_readdisplay_h" >&6
19306 if test $ac_cv_header_X11_extensions_readdisplay_h = yes; then
19307 cat >>confdefs.h <<\_ACEOF
19308 #define HAVE_READ_DISPLAY_EXTENSION 1
19314 CPPFLAGS="$ac_save_CPPFLAGS"
19315 elif test "$with_readdisplay" != no; then
19316 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
19321 ###############################################################################
19323 # Check for a program to generate random text.
19325 # Zippy is funnier than the idiocy generally spat out by `fortune',
19326 # so first see if "fortune zippy" works. Else, use plain "fortune".
19328 # We used to dig around in Emacs to look for the "yow" program, but
19329 # most people who have Emacs also have "fortune zippy", so nevermind.
19331 ###############################################################################
19333 with_fortune_req=""
19335 # Check whether --with-fortune or --without-fortune was given.
19336 if test "${with_fortune+set}" = set; then
19337 withval="$with_fortune"
19338 with_fortune_req="$withval"; with_fortune="$withval"
19343 if test "$with_fortune" = no || test "$with_fortune" = yes ; then
19345 with_fortune_req=""
19348 if test -n "$with_fortune_req" ; then
19349 ac_cv_fortune_program=""
19350 case "$with_fortune_req" in
19353 set dummy $with_fortune_req ; fortune_tmp=$2
19354 echo "$as_me:$LINENO: checking for $fortune_tmp" >&5
19355 echo $ECHO_N "checking for $fortune_tmp... $ECHO_C" >&6
19356 if test -x "$fortune_tmp" ; then
19357 echo "$as_me:$LINENO: result: yes" >&5
19358 echo "${ECHO_T}yes" >&6
19360 echo "$as_me:$LINENO: result: no" >&5
19361 echo "${ECHO_T}no" >&6
19366 set dummy $with_fortune_req ; fortune_tmp=$2
19368 unset ac_cv_path_fortune_tmp
19369 # Extract the first word of "$fortune_tmp", so it can be a program name with args.
19370 set dummy $fortune_tmp; ac_word=$2
19371 echo "$as_me:$LINENO: checking for $ac_word" >&5
19372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19373 if test "${ac_cv_path_fortune_tmp+set}" = set; then
19374 echo $ECHO_N "(cached) $ECHO_C" >&6
19376 case $fortune_tmp in
19378 ac_cv_path_fortune_tmp="$fortune_tmp" # Let the user override the test with a path.
19381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19382 for as_dir in $PATH
19385 test -z "$as_dir" && as_dir=.
19386 for ac_exec_ext in '' $ac_executable_extensions; do
19387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19388 ac_cv_path_fortune_tmp="$as_dir/$ac_word$ac_exec_ext"
19389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19398 fortune_tmp=$ac_cv_path_fortune_tmp
19400 if test -n "$fortune_tmp"; then
19401 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
19402 echo "${ECHO_T}$fortune_tmp" >&6
19404 echo "$as_me:$LINENO: result: no" >&5
19405 echo "${ECHO_T}no" >&6
19408 if test -z "$fortune_tmp" ; then
19413 ac_cv_fortune_program="$with_fortune"
19415 elif test -n "$ac_cv_fortune_program"; then
19416 echo "$as_me:$LINENO: result: checking for fortune... (cached) $ac_cv_fortune_program" >&5
19417 echo "${ECHO_T}checking for fortune... (cached) $ac_cv_fortune_program" >&6
19420 unset ac_cv_path_fortune_tmp
19423 if test -z "$ac_cv_fortune_program" ; then
19425 # first look for fortune in /usr/games/ (and use absolute path)
19426 for ac_prog in fortune
19428 # Extract the first word of "$ac_prog", so it can be a program name with args.
19429 set dummy $ac_prog; ac_word=$2
19430 echo "$as_me:$LINENO: checking for $ac_word" >&5
19431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19432 if test "${ac_cv_path_fortune_tmp+set}" = set; then
19433 echo $ECHO_N "(cached) $ECHO_C" >&6
19435 case $fortune_tmp in
19437 ac_cv_path_fortune_tmp="$fortune_tmp" # Let the user override the test with a path.
19440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19441 for as_dir in "/usr/games"
19444 test -z "$as_dir" && as_dir=.
19445 for ac_exec_ext in '' $ac_executable_extensions; do
19446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19447 ac_cv_path_fortune_tmp="$as_dir/$ac_word$ac_exec_ext"
19448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19457 fortune_tmp=$ac_cv_path_fortune_tmp
19459 if test -n "$fortune_tmp"; then
19460 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
19461 echo "${ECHO_T}$fortune_tmp" >&6
19463 echo "$as_me:$LINENO: result: no" >&5
19464 echo "${ECHO_T}no" >&6
19467 test -n "$fortune_tmp" && break
19471 # if it's not there, look on $PATH (and don't use absolute path)
19472 if test -z "$fortune_tmp" ; then
19473 for ac_prog in fortune
19475 # Extract the first word of "$ac_prog", so it can be a program name with args.
19476 set dummy $ac_prog; ac_word=$2
19477 echo "$as_me:$LINENO: checking for $ac_word" >&5
19478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19479 if test "${ac_cv_prog_fortune_tmp+set}" = set; then
19480 echo $ECHO_N "(cached) $ECHO_C" >&6
19482 if test -n "$fortune_tmp"; then
19483 ac_cv_prog_fortune_tmp="$fortune_tmp" # Let the user override the test.
19485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19486 for as_dir in $PATH
19489 test -z "$as_dir" && as_dir=.
19490 for ac_exec_ext in '' $ac_executable_extensions; do
19491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19492 ac_cv_prog_fortune_tmp="$ac_prog"
19493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19501 fortune_tmp=$ac_cv_prog_fortune_tmp
19502 if test -n "$fortune_tmp"; then
19503 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
19504 echo "${ECHO_T}$fortune_tmp" >&6
19506 echo "$as_me:$LINENO: result: no" >&5
19507 echo "${ECHO_T}no" >&6
19510 test -n "$fortune_tmp" && break
19515 # if we didn't find anything, then just assume /usr/games/
19516 if test -z "$fortune_tmp" ; then
19517 fortune_tmp="/usr/games/fortune"
19520 ac_cv_fortune_program="$fortune_tmp"
19522 # now check to see whether "fortune zippy" works.
19524 fortune_tmp="$fortune_tmp zippy"
19525 echo "$as_me:$LINENO: checking for zippy quotes" >&5
19526 echo $ECHO_N "checking for zippy quotes... $ECHO_C" >&6
19527 if ( $fortune_tmp >/dev/null 2>&1 ); then
19528 ac_cv_fortune_program="$fortune_tmp"
19529 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
19530 echo "${ECHO_T}$fortune_tmp" >&6
19532 echo "$as_me:$LINENO: result: no" >&5
19533 echo "${ECHO_T}no" >&6
19538 unset ac_cv_path_fortune_tmp
19541 cat >>confdefs.h <<_ACEOF
19542 #define FORTUNE_PROGRAM "$ac_cv_fortune_program"
19547 ###############################################################################
19549 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
19550 # This should be safe, but let's give people the option.
19552 ###############################################################################
19554 setuid_hacks_default=no
19555 setuid_hacks="$setuid_hacks_default"
19557 # Check whether --with-setuid-hacks or --without-setuid-hacks was given.
19558 if test "${with_setuid_hacks+set}" = set; then
19559 withval="$with_setuid_hacks"
19560 setuid_hacks="$withval"
19562 setuid_hacks="$setuid_hacks_default"
19566 case "$setuid_hacks" in
19571 echo "$as_me:$LINENO: checking for setuid hacks headers" >&5
19572 echo $ECHO_N "checking for setuid hacks headers... $ECHO_C" >&6
19573 d=$setuid_hacks/include
19574 if test -d $d; then
19575 X_CFLAGS="-I$d $X_CFLAGS"
19576 echo "$as_me:$LINENO: result: $d" >&5
19577 echo "${ECHO_T}$d" >&6
19579 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19580 echo "${ECHO_T}not found ($d: no such directory)" >&6
19583 echo "$as_me:$LINENO: checking for setuid hacks libs" >&5
19584 echo $ECHO_N "checking for setuid hacks libs... $ECHO_C" >&6
19585 d=$setuid_hacks/lib
19586 if test -d $d; then
19587 X_LIBS="-L$d $X_LIBS"
19588 echo "$as_me:$LINENO: result: $d" >&5
19589 echo "${ECHO_T}$d" >&6
19591 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19592 echo "${ECHO_T}not found ($d: no such directory)" >&6
19595 # replace the directory string with "yes".
19596 setuid_hacks_req="yes"
19597 setuid_hacks=$setuid_hacks_req
19602 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
19603 echo " If it is a directory, then \`DIR/include' will be added to"
19604 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19610 if test "$setuid_hacks" = yes; then
19612 elif test "$setuid_hacks" != no; then
19613 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
19618 ###############################################################################
19620 # Done testing. Now, set up the various -I and -L variables,
19621 # and decide which GUI program to build by default.
19623 ###############################################################################
19630 if test \! -z "$includedir" ; then
19631 INCLUDES="$INCLUDES -I$includedir"
19634 if test \! -z "$libdir" ; then
19635 LDFLAGS="$LDFLAGS -L$libdir"
19639 PREFERRED_DEMO_PROGRAM=''
19641 if test "$have_motif" = yes; then
19642 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
19643 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
19645 if test "$have_gtk" = yes; then
19646 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
19647 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
19651 if test "$have_kerberos" = yes; then
19652 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
19653 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
19655 if test "$have_pam" = yes; then
19656 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
19657 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
19658 INSTALL_PAM="install-pam"
19660 if test "$have_passwd_helper" = yes; then
19661 PASSWD_SRCS="$PASSWD_SRCS \$(PWHELPER_SRCS)"
19662 PASSWD_OBJS="$PASSWD_OBJS \$(PWHELPER_OBJS)"
19664 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
19665 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
19668 if test "$enable_locking" = yes; then
19669 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
19670 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
19672 LOCK_SRCS='$(NOLOCK_SRCS_1)'
19673 LOCK_OBJS='$(NOLOCK_OBJS_1)'
19676 if test "$ac_macosx" = yes; then
19677 EXES_OSX='$(EXES_OSX)'
19678 SCRIPTS_OSX='$(SCRIPTS_OSX)'
19679 MEN_OSX='$(MEN_OSX)'
19687 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
19689 if test "$need_setuid" = yes; then
19695 if test "$setuid_hacks" = yes; then
19702 if test "$have_gl" = yes; then
19703 GL_EXES='$(GL_EXES)'
19704 GL_UTIL_EXES='$(GL_UTIL_EXES)'
19706 GL_KLUDGE="${tab} "
19708 GL_KLUDGE="-${tab} "
19711 if test "$have_gle" = yes; then
19712 GLE_EXES='$(GLE_EXES)'
19713 GLE_KLUDGE="${tab} "
19715 GLE_KLUDGE="-${tab} "
19718 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
19719 JPEG_EXES='$(JPEG_EXES)'
19723 # Another substitution in the XScreenSaver.ad.in file:
19725 if test "$have_gnome_help" = yes; then
19734 # Now that we know whether we have Gnome, we can decide where the XML
19735 # config files get installed.
19737 if test -z "$HACK_CONF_DIR" ; then
19738 if test -n "$GNOME_DATADIR" ; then
19739 HACK_CONF_DIR='${GNOME_DATADIR}/control-center/screensavers'
19741 HACK_CONF_DIR='${prefix}/lib/xscreensaver/config'
19747 # After computing $HACK_CONF_DIR, make sure $GLADE_DATADIR has a value
19748 # so that we know where to install the Gtk pixmaps.
19750 # It should usually be "/usr/share/pixmaps/", but we can't just use
19751 # "$(prefix)/share/pixmaps" because that would usually result in
19752 # "/usr/X11R6/share/pixmaps/", which is wrong. It needs to be the
19753 # Gtk prefix, not the overall prefix.
19755 if test -n "$GNOME_DATADIR" ; then
19756 GLADE_DATADIR='$(GNOME_DATADIR)/xscreensaver'
19757 elif test "$have_gtk" = yes; then
19758 GLADE_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
19759 GLADE_DATADIR="$GLADE_DATADIR/share/xscreensaver"
19765 # Set PO_DATADIR to something sensible.
19767 echo "$as_me:$LINENO: checking for locale directory" >&5
19768 echo $ECHO_N "checking for locale directory... $ECHO_C" >&6
19769 if test -n "$GNOME_DATADIR" ; then
19770 PO_DATADIR="$GNOME_DATADIR"
19771 elif test "$have_gtk" = yes; then
19772 PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
19773 PO_DATADIR="$PO_DATADIR/share"
19776 if test -z "$PO_DATADIR" ; then
19778 # #### Total fucking kludge --
19779 # Map /build/prefix/usr/X11R6/share/ to /build/prefix/usr/share/
19780 # but of course we need to expand all the nested variables to do that...
19788 PO_DATADIR=`echo $dd | sed 's@/X11R6/@/@'`
19791 echo "$as_me:$LINENO: result: $PO_DATADIR/locale" >&5
19792 echo "${ECHO_T}$PO_DATADIR/locale" >&6
19795 # canonicalize slashes.
19796 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
19798 # gcc 3.0 likes to issue this warning for every file:
19800 # cc1: warning: changing search order for system directory "/usr/local/include"
19801 # cc1: warning: as it has already been specified as a non-system directory
19803 # Yay. We can only avoid that by deleting "-I${prefix}/include" from the list.
19804 # Which *should* be totally redundant, and thus an ok thing to delete?
19806 INCLUDES=`echo "$INCLUDES" | sed 's@ -I${prefix}/include@@g;'`
19809 ###############################################################################
19811 # Perform substitutions and write Makefiles.
19813 ###############################################################################
19869 APPDEFAULTS=$ac_x_app_defaults
19877 ac_config_files="$ac_config_files Makefile utils/Makefile driver/Makefile hacks/Makefile hacks/glx/Makefile po/Makefile.in driver/XScreenSaver.ad driver/xscreensaver.kss"
19878 cat >confcache <<\_ACEOF
19879 # This file is a shell script that caches the results of configure
19880 # tests run on this system so they can be shared between configure
19881 # scripts and configure runs, see configure's option --config-cache.
19882 # It is not useful on other systems. If it contains results you don't
19883 # want to keep, you may remove or edit it.
19885 # config.status only pays attention to the cache file if you give it
19886 # the --recheck option to rerun configure.
19888 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19889 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19890 # following values.
19894 # The following way of writing the cache mishandles newlines in values,
19895 # but we know of no workaround that is simple, portable, and efficient.
19896 # So, don't put newlines in cache variables' values.
19897 # Ultrix sh set writes to stderr and can't be redirected directly,
19898 # and sets the high bit in the cache file unless we assign to the vars.
19901 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19903 # `set' does not quote correctly, so add quotes (double-quote
19904 # substitution turns \\\\ into \\, and sed turns \\ into \).
19907 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19910 # `set' quotes correctly as required by POSIX, so do not add quotes.
19912 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19919 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19921 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19923 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19924 if test -w $cache_file; then
19925 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19926 cat confcache >$cache_file
19928 echo "not updating unwritable cache $cache_file"
19933 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19934 # Let make expand exec_prefix.
19935 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19937 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19938 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19939 # trailing colons and then remove the whole line if VPATH becomes empty
19940 # (actually we leave an empty line to preserve line numbers).
19941 if test "x$srcdir" = x.; then
19942 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19943 s/:*\$(srcdir):*/:/;
19944 s/:*\${srcdir}:*/:/;
19946 s/^\([^=]*=[ ]*\):*/\1/;
19952 DEFS=-DHAVE_CONFIG_H
19956 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19957 # 1. Remove the extension, and $U if already installed.
19958 ac_i=`echo "$ac_i" |
19959 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19961 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19962 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19964 LIBOBJS=$ac_libobjs
19966 LTLIBOBJS=$ac_ltlibobjs
19971 mv -f po/POTFILES po/POTFILES.tmp
19972 sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
19973 rm -f po/POTFILES.tmp
19977 : ${CONFIG_STATUS=./config.status}
19978 ac_clean_files_save=$ac_clean_files
19979 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19980 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19981 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19982 cat >$CONFIG_STATUS <<_ACEOF
19984 # Generated by $as_me.
19985 # Run this file to recreate the current configuration.
19986 # Compiler output produced by configure, useful for debugging
19987 # configure, is in config.log if it exists.
19990 ac_cs_recheck=false
19992 SHELL=\${CONFIG_SHELL-$SHELL}
19995 cat >>$CONFIG_STATUS <<\_ACEOF
19996 ## --------------------- ##
19997 ## M4sh Initialization. ##
19998 ## --------------------- ##
20000 # Be Bourne compatible
20001 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20004 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20005 # is contrary to our usage. Disable this feature.
20006 alias -g '${1+"$@"}'='"$@"'
20007 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20010 DUALCASE=1; export DUALCASE # for MKS sh
20012 # Support unset when possible.
20013 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20020 # Work around bugs in pre-3.0 UWIN ksh.
20021 $as_unset ENV MAIL MAILPATH
20028 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20029 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20030 LC_TELEPHONE LC_TIME
20032 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20033 eval $as_var=C; export $as_var
20039 # Required to use basename.
20040 if expr a : '\(a\)' >/dev/null 2>&1; then
20046 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20047 as_basename=basename
20053 # Name of the executable.
20054 as_me=`$as_basename "$0" ||
20055 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20056 X"$0" : 'X\(//\)$' \| \
20057 X"$0" : 'X\(/\)$' \| \
20058 . : '\(.\)' 2>/dev/null ||
20060 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20061 /^X\/\(\/\/\)$/{ s//\1/; q; }
20062 /^X\/\(\/\).*/{ s//\1/; q; }
20066 # PATH needs CR, and LINENO needs CR and PATH.
20067 # Avoid depending upon Character Ranges.
20068 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20069 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20070 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20071 as_cr_digits='0123456789'
20072 as_cr_alnum=$as_cr_Letters$as_cr_digits
20074 # The user is always right.
20075 if test "${PATH_SEPARATOR+set}" != set; then
20076 echo "#! /bin/sh" >conf$$.sh
20077 echo "exit 0" >>conf$$.sh
20079 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20088 as_lineno_1=$LINENO
20089 as_lineno_2=$LINENO
20090 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20091 test "x$as_lineno_1" != "x$as_lineno_2" &&
20092 test "x$as_lineno_3" = "x$as_lineno_2" || {
20093 # Find who we are. Look in the path if we contain no path at all
20096 *[\\/]* ) as_myself=$0 ;;
20097 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20098 for as_dir in $PATH
20101 test -z "$as_dir" && as_dir=.
20102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20107 # We did not find ourselves, most probably we were run as `sh COMMAND'
20108 # in which case we are not to be found in the path.
20109 if test "x$as_myself" = x; then
20112 if test ! -f "$as_myself"; then
20113 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20114 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20115 { (exit 1); exit 1; }; }
20117 case $CONFIG_SHELL in
20119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20120 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20123 test -z "$as_dir" && as_dir=.
20124 for as_base in sh bash ksh sh5; do
20127 if ("$as_dir/$as_base" -c '
20128 as_lineno_1=$LINENO
20129 as_lineno_2=$LINENO
20130 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20131 test "x$as_lineno_1" != "x$as_lineno_2" &&
20132 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20133 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20134 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20135 CONFIG_SHELL=$as_dir/$as_base
20136 export CONFIG_SHELL
20137 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20145 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20146 # uniformly replaced by the line number. The first 'sed' inserts a
20147 # line-number line before each line; the second 'sed' does the real
20148 # work. The second script uses 'N' to pair each line-number line
20149 # with the numbered line, and appends trailing '-' during
20150 # substitution so that $LINENO is not a special case at line end.
20151 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20152 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20153 sed '=' <$as_myself |
20158 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20161 s,^['$as_cr_digits']*\n,,
20162 ' >$as_me.lineno &&
20163 chmod +x $as_me.lineno ||
20164 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20165 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20166 { (exit 1); exit 1; }; }
20168 # Don't try to exec as it changes $[0], causing all sort of problems
20169 # (the dirname of $[0] is not the place where we might find the
20170 # original and so on. Autoconf is especially sensible to this).
20172 # Exit status is that of the last command.
20177 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20178 *c*,-n*) ECHO_N= ECHO_C='
20180 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20181 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20184 if expr a : '\(a\)' >/dev/null 2>&1; then
20190 rm -f conf$$ conf$$.exe conf$$.file
20192 if ln -s conf$$.file conf$$ 2>/dev/null; then
20193 # We could just check for DJGPP; but this test a) works b) is more generic
20194 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20195 if test -f conf$$.exe; then
20196 # Don't use ln at all; we don't have any links
20201 elif ln conf$$.file conf$$ 2>/dev/null; then
20206 rm -f conf$$ conf$$.exe conf$$.file
20208 if mkdir -p . 2>/dev/null; then
20211 test -d ./-p && rmdir ./-p
20215 as_executable_p="test -f"
20217 # Sed expression to map a string onto a valid CPP name.
20218 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20220 # Sed expression to map a string onto a valid variable name.
20221 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20225 # We need space, tab and new line, in precisely that order.
20235 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20236 # report actual input values of CONFIG_FILES etc. instead of their
20237 # values after options handling. Logging --version etc. is OK.
20241 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20242 ## Running $as_me. ##
20247 This file was extended by $as_me, which was
20248 generated by GNU Autoconf 2.59. Invocation command line was
20250 CONFIG_FILES = $CONFIG_FILES
20251 CONFIG_HEADERS = $CONFIG_HEADERS
20252 CONFIG_LINKS = $CONFIG_LINKS
20253 CONFIG_COMMANDS = $CONFIG_COMMANDS
20257 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20261 # Files that config.status was made for.
20262 if test -n "$ac_config_files"; then
20263 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20266 if test -n "$ac_config_headers"; then
20267 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20270 if test -n "$ac_config_links"; then
20271 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20274 if test -n "$ac_config_commands"; then
20275 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20278 cat >>$CONFIG_STATUS <<\_ACEOF
20281 \`$as_me' instantiates files from templates according to the
20282 current configuration.
20284 Usage: $0 [OPTIONS] [FILE]...
20286 -h, --help print this help, then exit
20287 -V, --version print version number, then exit
20288 -q, --quiet do not print progress messages
20289 -d, --debug don't remove temporary files
20290 --recheck update $as_me by reconfiguring in the same conditions
20291 --file=FILE[:TEMPLATE]
20292 instantiate the configuration file FILE
20293 --header=FILE[:TEMPLATE]
20294 instantiate the configuration header FILE
20296 Configuration files:
20299 Configuration headers:
20302 Configuration commands:
20305 Report bugs to <bug-autoconf@gnu.org>."
20308 cat >>$CONFIG_STATUS <<_ACEOF
20311 configured by $0, generated by GNU Autoconf 2.59,
20312 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20314 Copyright (C) 2003 Free Software Foundation, Inc.
20315 This config.status script is free software; the Free Software Foundation
20316 gives unlimited permission to copy, distribute and modify it."
20321 cat >>$CONFIG_STATUS <<\_ACEOF
20322 # If no file are specified by the user, then we need to provide default
20323 # value. By we need to know if files were specified by the user.
20329 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20330 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20338 *) # This is not an option, so the user has probably given explicit
20341 ac_need_defaults=false;;
20345 # Handling of the options.
20347 cat >>$CONFIG_STATUS <<\_ACEOF
20348 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20350 --version | --vers* | -V )
20351 echo "$ac_cs_version"; exit 0 ;;
20353 # Conflict between --help and --header
20354 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20355 Try \`$0 --help' for more information." >&5
20356 echo "$as_me: error: ambiguous option: $1
20357 Try \`$0 --help' for more information." >&2;}
20358 { (exit 1); exit 1; }; };;
20359 --help | --hel | -h )
20360 echo "$ac_cs_usage"; exit 0 ;;
20361 --debug | --d* | -d )
20363 --file | --fil | --fi | --f )
20365 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20366 ac_need_defaults=false;;
20367 --header | --heade | --head | --hea )
20369 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20370 ac_need_defaults=false;;
20371 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20372 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20375 # This is an error.
20376 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20377 Try \`$0 --help' for more information." >&5
20378 echo "$as_me: error: unrecognized option: $1
20379 Try \`$0 --help' for more information." >&2;}
20380 { (exit 1); exit 1; }; } ;;
20382 *) ac_config_targets="$ac_config_targets $1" ;;
20388 ac_configure_extra_args=
20390 if $ac_cs_silent; then
20392 ac_configure_extra_args="$ac_configure_extra_args --silent"
20396 cat >>$CONFIG_STATUS <<_ACEOF
20397 if \$ac_cs_recheck; then
20398 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20399 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20404 cat >>$CONFIG_STATUS <<_ACEOF
20406 # INIT-COMMANDS section.
20409 INTLTOOL_PERL=${INTLTOOL_PERL}
20416 cat >>$CONFIG_STATUS <<\_ACEOF
20417 for ac_config_target in $ac_config_targets
20419 case "$ac_config_target" in
20420 # Handling of arguments.
20421 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20422 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20423 "driver/Makefile" ) CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
20424 "hacks/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
20425 "hacks/glx/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
20426 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20427 "driver/XScreenSaver.ad" ) CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
20428 "driver/xscreensaver.kss" ) CONFIG_FILES="$CONFIG_FILES driver/xscreensaver.kss" ;;
20429 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20430 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
20431 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20432 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20433 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20434 { (exit 1); exit 1; }; };;
20438 # If the user did not use the arguments to specify the items to instantiate,
20439 # then the envvar interface is used. Set only those that are not.
20440 # We use the long form for the default assignment because of an extremely
20441 # bizarre bug on SunOS 4.1.3.
20442 if $ac_need_defaults; then
20443 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20444 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20445 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20448 # Have a temporary directory for convenience. Make it in the build tree
20449 # simply because there is no reason to put it here, and in addition,
20450 # creating and moving files from /tmp can sometimes cause problems.
20451 # Create a temporary directory, and hook for its removal unless debugging.
20454 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20455 trap '{ (exit 1); exit 1; }' 1 2 13 15
20458 # Create a (secure) tmp directory for tmp files.
20461 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20462 test -n "$tmp" && test -d "$tmp"
20465 tmp=./confstat$$-$RANDOM
20466 (umask 077 && mkdir $tmp)
20469 echo "$me: cannot create a temporary directory in ." >&2
20470 { (exit 1); exit 1; }
20475 cat >>$CONFIG_STATUS <<_ACEOF
20478 # CONFIG_FILES section.
20481 # No need to generate the scripts if there are no CONFIG_FILES.
20482 # This happens for instance when ./config.status config.h
20483 if test -n "\$CONFIG_FILES"; then
20484 # Protect against being on the right side of a sed subst in config.status.
20485 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20486 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20487 s,@SHELL@,$SHELL,;t t
20488 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20489 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20490 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20491 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20492 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20493 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20494 s,@exec_prefix@,$exec_prefix,;t t
20495 s,@prefix@,$prefix,;t t
20496 s,@program_transform_name@,$program_transform_name,;t t
20497 s,@bindir@,$bindir,;t t
20498 s,@sbindir@,$sbindir,;t t
20499 s,@libexecdir@,$libexecdir,;t t
20500 s,@datadir@,$datadir,;t t
20501 s,@sysconfdir@,$sysconfdir,;t t
20502 s,@sharedstatedir@,$sharedstatedir,;t t
20503 s,@localstatedir@,$localstatedir,;t t
20504 s,@libdir@,$libdir,;t t
20505 s,@includedir@,$includedir,;t t
20506 s,@oldincludedir@,$oldincludedir,;t t
20507 s,@infodir@,$infodir,;t t
20508 s,@mandir@,$mandir,;t t
20509 s,@build_alias@,$build_alias,;t t
20510 s,@host_alias@,$host_alias,;t t
20511 s,@target_alias@,$target_alias,;t t
20512 s,@DEFS@,$DEFS,;t t
20513 s,@ECHO_C@,$ECHO_C,;t t
20514 s,@ECHO_N@,$ECHO_N,;t t
20515 s,@ECHO_T@,$ECHO_T,;t t
20516 s,@LIBS@,$LIBS,;t t
20517 s,@build@,$build,;t t
20518 s,@build_cpu@,$build_cpu,;t t
20519 s,@build_vendor@,$build_vendor,;t t
20520 s,@build_os@,$build_os,;t t
20521 s,@host@,$host,;t t
20522 s,@host_cpu@,$host_cpu,;t t
20523 s,@host_vendor@,$host_vendor,;t t
20524 s,@host_os@,$host_os,;t t
20526 s,@CFLAGS@,$CFLAGS,;t t
20527 s,@LDFLAGS@,$LDFLAGS,;t t
20528 s,@CPPFLAGS@,$CPPFLAGS,;t t
20529 s,@ac_ct_CC@,$ac_ct_CC,;t t
20530 s,@EXEEXT@,$EXEEXT,;t t
20531 s,@OBJEXT@,$OBJEXT,;t t
20533 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20534 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20535 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20536 s,@SET_MAKE@,$SET_MAKE,;t t
20537 s,@EGREP@,$EGREP,;t t
20538 s,@PERL@,$PERL,;t t
20539 s,@X_CFLAGS@,$X_CFLAGS,;t t
20540 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20541 s,@X_LIBS@,$X_LIBS,;t t
20542 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20543 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
20544 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
20545 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
20546 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
20547 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
20548 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
20549 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
20550 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
20551 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
20552 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
20553 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
20554 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
20555 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
20556 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
20557 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
20558 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
20559 s,@RANLIB@,$RANLIB,;t t
20560 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20561 s,@ALLOCA@,$ALLOCA,;t t
20562 s,@USE_NLS@,$USE_NLS,;t t
20563 s,@MSGFMT@,$MSGFMT,;t t
20564 s,@GMSGFMT@,$GMSGFMT,;t t
20565 s,@XGETTEXT@,$XGETTEXT,;t t
20566 s,@CATALOGS@,$CATALOGS,;t t
20567 s,@CATOBJEXT@,$CATOBJEXT,;t t
20568 s,@DATADIRNAME@,$DATADIRNAME,;t t
20569 s,@GMOFILES@,$GMOFILES,;t t
20570 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20571 s,@INTLDEPS@,$INTLDEPS,;t t
20572 s,@INTLLIBS@,$INTLLIBS,;t t
20573 s,@INTLOBJS@,$INTLOBJS,;t t
20574 s,@POFILES@,$POFILES,;t t
20575 s,@POSUB@,$POSUB,;t t
20576 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20577 s,@pkg_config@,$pkg_config,;t t
20578 s,@have_gnome_help@,$have_gnome_help,;t t
20579 s,@fortune_tmp@,$fortune_tmp,;t t
20580 s,@INCLUDES@,$INCLUDES,;t t
20581 s,@PREFERRED_DEMO_PROGRAM@,$PREFERRED_DEMO_PROGRAM,;t t
20582 s,@ALL_DEMO_PROGRAMS@,$ALL_DEMO_PROGRAMS,;t t
20583 s,@SAVER_LIBS@,$SAVER_LIBS,;t t
20584 s,@MOTIF_LIBS@,$MOTIF_LIBS,;t t
20585 s,@GTK_LIBS@,$GTK_LIBS,;t t
20586 s,@XML_LIBS@,$XML_LIBS,;t t
20587 s,@JPEG_LIBS@,$JPEG_LIBS,;t t
20588 s,@HACK_LIBS@,$HACK_LIBS,;t t
20589 s,@XPM_LIBS@,$XPM_LIBS,;t t
20590 s,@PTY_LIBS@,$PTY_LIBS,;t t
20591 s,@GL_LIBS@,$GL_LIBS,;t t
20592 s,@GLE_LIBS@,$GLE_LIBS,;t t
20593 s,@XDPMS_LIBS@,$XDPMS_LIBS,;t t
20594 s,@PASSWD_LIBS@,$PASSWD_LIBS,;t t
20595 s,@INSTALL_SETUID@,$INSTALL_SETUID,;t t
20596 s,@SETUID_HACKS@,$SETUID_HACKS,;t t
20597 s,@INSTALL_DIRS@,$INSTALL_DIRS,;t t
20598 s,@NEED_SETUID@,$NEED_SETUID,;t t
20599 s,@INSTALL_PAM@,$INSTALL_PAM,;t t
20600 s,@OBJCC@,$OBJCC,;t t
20601 s,@EXES_OSX@,$EXES_OSX,;t t
20602 s,@SCRIPTS_OSX@,$SCRIPTS_OSX,;t t
20603 s,@MEN_OSX@,$MEN_OSX,;t t
20604 s,@PASSWD_SRCS@,$PASSWD_SRCS,;t t
20605 s,@PASSWD_OBJS@,$PASSWD_OBJS,;t t
20606 s,@XMU_SRCS@,$XMU_SRCS,;t t
20607 s,@XMU_OBJS@,$XMU_OBJS,;t t
20608 s,@XMU_LIBS@,$XMU_LIBS,;t t
20609 s,@SAVER_GL_SRCS@,$SAVER_GL_SRCS,;t t
20610 s,@SAVER_GL_OBJS@,$SAVER_GL_OBJS,;t t
20611 s,@SAVER_GL_LIBS@,$SAVER_GL_LIBS,;t t
20612 s,@LOCK_SRCS@,$LOCK_SRCS,;t t
20613 s,@LOCK_OBJS@,$LOCK_OBJS,;t t
20614 s,@JPEG_EXES@,$JPEG_EXES,;t t
20615 s,@GL_EXES@,$GL_EXES,;t t
20616 s,@GL_UTIL_EXES@,$GL_UTIL_EXES,;t t
20617 s,@GL_MEN@,$GL_MEN,;t t
20618 s,@GL_KLUDGE@,$GL_KLUDGE,;t t
20619 s,@GLE_EXES@,$GLE_EXES,;t t
20620 s,@GLE_KLUDGE@,$GLE_KLUDGE,;t t
20621 s,@GNOMEHELP_Y@,$GNOMEHELP_Y,;t t
20622 s,@GNOMEHELP_N@,$GNOMEHELP_N,;t t
20623 s,@HACKDIR@,$HACKDIR,;t t
20624 s,@GNOME_DATADIR@,$GNOME_DATADIR,;t t
20625 s,@GLADE_DATADIR@,$GLADE_DATADIR,;t t
20626 s,@PO_DATADIR@,$PO_DATADIR,;t t
20627 s,@GNOME_PANELDIR@,$GNOME_PANELDIR,;t t
20628 s,@HACK_CONF_DIR@,$HACK_CONF_DIR,;t t
20629 s,@GTK_EXTRA_OBJS@,$GTK_EXTRA_OBJS,;t t
20630 s,@APPDEFAULTS@,$APPDEFAULTS,;t t
20631 s,@DEPEND@,$DEPEND,;t t
20632 s,@DEPEND_FLAGS@,$DEPEND_FLAGS,;t t
20633 s,@DEPEND_DEFINES@,$DEPEND_DEFINES,;t t
20634 s,@LIBOBJS@,$LIBOBJS,;t t
20635 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20640 cat >>$CONFIG_STATUS <<\_ACEOF
20641 # Split the substitutions into bite-sized pieces for seds with
20642 # small command number limits, like on Digital OSF/1 and HP-UX.
20643 ac_max_sed_lines=48
20644 ac_sed_frag=1 # Number of current file.
20645 ac_beg=1 # First line for current file.
20646 ac_end=$ac_max_sed_lines # Line after last line for current file.
20649 while $ac_more_lines; do
20650 if test $ac_beg -gt 1; then
20651 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20653 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20655 if test ! -s $tmp/subs.frag; then
20656 ac_more_lines=false
20658 # The purpose of the label and of the branching condition is to
20659 # speed up the sed processing (if there are no `@' at all, there
20660 # is no need to browse any of the substitutions).
20661 # These are the two extra sed commands mentioned above.
20663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20664 if test -z "$ac_sed_cmds"; then
20665 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20667 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20669 ac_sed_frag=`expr $ac_sed_frag + 1`
20671 ac_end=`expr $ac_end + $ac_max_sed_lines`
20674 if test -z "$ac_sed_cmds"; then
20677 fi # test -n "$CONFIG_FILES"
20680 cat >>$CONFIG_STATUS <<\_ACEOF
20681 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20682 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20684 - | *:- | *:-:* ) # input from stdin
20686 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20687 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20688 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20689 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20690 * ) ac_file_in=$ac_file.in ;;
20693 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20694 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20695 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20696 X"$ac_file" : 'X\(//\)[^/]' \| \
20697 X"$ac_file" : 'X\(//\)$' \| \
20698 X"$ac_file" : 'X\(/\)' \| \
20699 . : '\(.\)' 2>/dev/null ||
20701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20703 /^X\(\/\/\)$/{ s//\1/; q; }
20704 /^X\(\/\).*/{ s//\1/; q; }
20706 { if $as_mkdir_p; then
20711 while test ! -d "$as_dir"; do
20712 as_dirs="$as_dir $as_dirs"
20713 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20715 X"$as_dir" : 'X\(//\)[^/]' \| \
20716 X"$as_dir" : 'X\(//\)$' \| \
20717 X"$as_dir" : 'X\(/\)' \| \
20718 . : '\(.\)' 2>/dev/null ||
20720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20722 /^X\(\/\/\)$/{ s//\1/; q; }
20723 /^X\(\/\).*/{ s//\1/; q; }
20726 test ! -n "$as_dirs" || mkdir $as_dirs
20727 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20728 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20729 { (exit 1); exit 1; }; }; }
20733 if test "$ac_dir" != .; then
20734 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20735 # A "../" for each directory in $ac_dir_suffix.
20736 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20738 ac_dir_suffix= ac_top_builddir=
20742 .) # No --srcdir option. We are building in place.
20744 if test -z "$ac_top_builddir"; then
20747 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20749 [\\/]* | ?:[\\/]* ) # Absolute path.
20750 ac_srcdir=$srcdir$ac_dir_suffix;
20751 ac_top_srcdir=$srcdir ;;
20752 *) # Relative path.
20753 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20754 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20757 # Do not use `cd foo && pwd` to compute absolute paths, because
20758 # the directories may not exist.
20760 .) ac_abs_builddir="$ac_dir";;
20763 .) ac_abs_builddir=`pwd`;;
20764 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20765 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20768 case $ac_abs_builddir in
20769 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20771 case ${ac_top_builddir}. in
20772 .) ac_abs_top_builddir=$ac_abs_builddir;;
20773 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20774 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20777 case $ac_abs_builddir in
20778 .) ac_abs_srcdir=$ac_srcdir;;
20781 .) ac_abs_srcdir=$ac_abs_builddir;;
20782 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20783 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20786 case $ac_abs_builddir in
20787 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20789 case $ac_top_srcdir in
20790 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20791 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20792 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20798 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20799 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20802 if test x"$ac_file" != x-; then
20803 { echo "$as_me:$LINENO: creating $ac_file" >&5
20804 echo "$as_me: creating $ac_file" >&6;}
20807 # Let's still pretend it is `configure' which instantiates (i.e., don't
20808 # use $as_me), people would be surprised to read:
20809 # /* config.h. Generated by config.status. */
20810 if test x"$ac_file" = x-; then
20813 configure_input="$ac_file. "
20815 configure_input=$configure_input"Generated from `echo $ac_file_in |
20816 sed 's,.*/,,'` by configure."
20818 # First look for the input files in the build tree, otherwise in the
20820 ac_file_inputs=`IFS=:
20821 for f in $ac_file_in; do
20823 -) echo $tmp/stdin ;;
20825 # Absolute (can't be DOS-style, as IFS=:)
20826 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20827 echo "$as_me: error: cannot find input file: $f" >&2;}
20828 { (exit 1); exit 1; }; }
20831 if test -f "$f"; then
20834 elif test -f "$srcdir/$f"; then
20839 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20840 echo "$as_me: error: cannot find input file: $f" >&2;}
20841 { (exit 1); exit 1; }; }
20844 done` || { (exit 1); exit 1; }
20846 cat >>$CONFIG_STATUS <<_ACEOF
20850 cat >>$CONFIG_STATUS <<\_ACEOF
20852 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20853 s,@configure_input@,$configure_input,;t t
20854 s,@srcdir@,$ac_srcdir,;t t
20855 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20856 s,@top_srcdir@,$ac_top_srcdir,;t t
20857 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20858 s,@builddir@,$ac_builddir,;t t
20859 s,@abs_builddir@,$ac_abs_builddir,;t t
20860 s,@top_builddir@,$ac_top_builddir,;t t
20861 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20862 s,@INSTALL@,$ac_INSTALL,;t t
20863 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20865 if test x"$ac_file" != x-; then
20866 mv $tmp/out $ac_file
20874 cat >>$CONFIG_STATUS <<\_ACEOF
20877 # CONFIG_HEADER section.
20880 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20881 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20883 # ac_d sets the value in "#define NAME VALUE" lines.
20884 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20885 ac_dB='[ ].*$,\1#\2'
20888 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20889 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20890 ac_uB='$,\1#\2define\3'
20894 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20895 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20897 - | *:- | *:-:* ) # input from stdin
20899 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20900 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20901 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20902 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20903 * ) ac_file_in=$ac_file.in ;;
20906 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20907 echo "$as_me: creating $ac_file" >&6;}
20909 # First look for the input files in the build tree, otherwise in the
20911 ac_file_inputs=`IFS=:
20912 for f in $ac_file_in; do
20914 -) echo $tmp/stdin ;;
20916 # Absolute (can't be DOS-style, as IFS=:)
20917 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20918 echo "$as_me: error: cannot find input file: $f" >&2;}
20919 { (exit 1); exit 1; }; }
20920 # Do quote $f, to prevent DOS paths from being IFS'd.
20923 if test -f "$f"; then
20926 elif test -f "$srcdir/$f"; then
20931 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20932 echo "$as_me: error: cannot find input file: $f" >&2;}
20933 { (exit 1); exit 1; }; }
20936 done` || { (exit 1); exit 1; }
20937 # Remove the trailing spaces.
20938 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20942 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20943 # `conftest.undefs', that substitutes the proper values into
20944 # config.h.in to produce config.h. The first handles `#define'
20945 # templates, and the second `#undef' templates.
20946 # And first: Protect against being on the right side of a sed subst in
20947 # config.status. Protect against being in an unquoted here document
20948 # in config.status.
20949 rm -f conftest.defines conftest.undefs
20950 # Using a here document instead of a string reduces the quoting nightmare.
20951 # Putting comments in sed scripts is not portable.
20953 # `end' is used to avoid that the second main sed command (meant for
20954 # 0-ary CPP macros) applies to n-ary macro definitions.
20955 # See the Autoconf documentation for `clear'.
20956 cat >confdef2sed.sed <<\_ACEOF
20961 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20963 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20966 # If some macros were called several times there might be several times
20967 # the same #defines, which is useless. Nevertheless, we may not want to
20968 # sort them, since we want the *last* AC-DEFINE to be honored.
20969 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20970 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20971 rm -f confdef2sed.sed
20973 # This sed command replaces #undef with comments. This is necessary, for
20974 # example, in the case of _POSIX_SOURCE, which is predefined and required
20975 # on some systems where configure will not decide to define it.
20976 cat >>conftest.undefs <<\_ACEOF
20977 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20980 # Break up conftest.defines because some shells have a limit on the size
20981 # of here documents, and old seds have small limits too (100 cmds).
20982 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20983 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20984 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20985 echo ' :' >>$CONFIG_STATUS
20986 rm -f conftest.tail
20987 while grep . conftest.defines >/dev/null
20989 # Write a limited-size here document to $tmp/defines.sed.
20990 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20991 # Speed up: don't consider the non `#define' lines.
20992 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20993 # Work around the forget-to-reset-the-flag bug.
20994 echo 't clr' >>$CONFIG_STATUS
20995 echo ': clr' >>$CONFIG_STATUS
20996 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20998 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21000 mv $tmp/out $tmp/in
21002 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21003 rm -f conftest.defines
21004 mv conftest.tail conftest.defines
21006 rm -f conftest.defines
21007 echo ' fi # grep' >>$CONFIG_STATUS
21008 echo >>$CONFIG_STATUS
21010 # Break up conftest.undefs because some shells have a limit on the size
21011 # of here documents, and old seds have small limits too (100 cmds).
21012 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21013 rm -f conftest.tail
21014 while grep . conftest.undefs >/dev/null
21016 # Write a limited-size here document to $tmp/undefs.sed.
21017 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21018 # Speed up: don't consider the non `#undef'
21019 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21020 # Work around the forget-to-reset-the-flag bug.
21021 echo 't clr' >>$CONFIG_STATUS
21022 echo ': clr' >>$CONFIG_STATUS
21023 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21025 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21027 mv $tmp/out $tmp/in
21029 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21030 rm -f conftest.undefs
21031 mv conftest.tail conftest.undefs
21033 rm -f conftest.undefs
21035 cat >>$CONFIG_STATUS <<\_ACEOF
21036 # Let's still pretend it is `configure' which instantiates (i.e., don't
21037 # use $as_me), people would be surprised to read:
21038 # /* config.h. Generated by config.status. */
21039 if test x"$ac_file" = x-; then
21040 echo "/* Generated by configure. */" >$tmp/config.h
21042 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21044 cat $tmp/in >>$tmp/config.h
21046 if test x"$ac_file" != x-; then
21047 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21048 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21049 echo "$as_me: $ac_file is unchanged" >&6;}
21051 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21052 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21053 X"$ac_file" : 'X\(//\)[^/]' \| \
21054 X"$ac_file" : 'X\(//\)$' \| \
21055 X"$ac_file" : 'X\(/\)' \| \
21056 . : '\(.\)' 2>/dev/null ||
21058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21060 /^X\(\/\/\)$/{ s//\1/; q; }
21061 /^X\(\/\).*/{ s//\1/; q; }
21063 { if $as_mkdir_p; then
21068 while test ! -d "$as_dir"; do
21069 as_dirs="$as_dir $as_dirs"
21070 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21072 X"$as_dir" : 'X\(//\)[^/]' \| \
21073 X"$as_dir" : 'X\(//\)$' \| \
21074 X"$as_dir" : 'X\(/\)' \| \
21075 . : '\(.\)' 2>/dev/null ||
21077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21078 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21079 /^X\(\/\/\)$/{ s//\1/; q; }
21080 /^X\(\/\).*/{ s//\1/; q; }
21083 test ! -n "$as_dirs" || mkdir $as_dirs
21084 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21085 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21086 { (exit 1); exit 1; }; }; }
21089 mv $tmp/config.h $ac_file
21093 rm -f $tmp/config.h
21097 cat >>$CONFIG_STATUS <<\_ACEOF
21100 # CONFIG_COMMANDS section.
21102 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21103 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21104 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21105 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21106 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21107 X"$ac_dest" : 'X\(//\)[^/]' \| \
21108 X"$ac_dest" : 'X\(//\)$' \| \
21109 X"$ac_dest" : 'X\(/\)' \| \
21110 . : '\(.\)' 2>/dev/null ||
21112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21113 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21114 /^X\(\/\/\)$/{ s//\1/; q; }
21115 /^X\(\/\).*/{ s//\1/; q; }
21117 { if $as_mkdir_p; then
21122 while test ! -d "$as_dir"; do
21123 as_dirs="$as_dir $as_dirs"
21124 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21125 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21126 X"$as_dir" : 'X\(//\)[^/]' \| \
21127 X"$as_dir" : 'X\(//\)$' \| \
21128 X"$as_dir" : 'X\(/\)' \| \
21129 . : '\(.\)' 2>/dev/null ||
21131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21132 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21133 /^X\(\/\/\)$/{ s//\1/; q; }
21134 /^X\(\/\).*/{ s//\1/; q; }
21137 test ! -n "$as_dirs" || mkdir $as_dirs
21138 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21139 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21140 { (exit 1); exit 1; }; }; }
21144 if test "$ac_dir" != .; then
21145 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21146 # A "../" for each directory in $ac_dir_suffix.
21147 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21149 ac_dir_suffix= ac_top_builddir=
21153 .) # No --srcdir option. We are building in place.
21155 if test -z "$ac_top_builddir"; then
21158 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21160 [\\/]* | ?:[\\/]* ) # Absolute path.
21161 ac_srcdir=$srcdir$ac_dir_suffix;
21162 ac_top_srcdir=$srcdir ;;
21163 *) # Relative path.
21164 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21165 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21168 # Do not use `cd foo && pwd` to compute absolute paths, because
21169 # the directories may not exist.
21171 .) ac_abs_builddir="$ac_dir";;
21174 .) ac_abs_builddir=`pwd`;;
21175 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21176 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21179 case $ac_abs_builddir in
21180 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21182 case ${ac_top_builddir}. in
21183 .) ac_abs_top_builddir=$ac_abs_builddir;;
21184 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21185 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21188 case $ac_abs_builddir in
21189 .) ac_abs_srcdir=$ac_srcdir;;
21192 .) ac_abs_srcdir=$ac_abs_builddir;;
21193 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21194 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21197 case $ac_abs_builddir in
21198 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21200 case $ac_top_srcdir in
21201 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21202 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21203 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21208 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21209 echo "$as_me: executing $ac_dest commands" >&6;}
21213 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
21214 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
21215 rm -f intltool-extract.out
21217 mv -f intltool-extract.out intltool-extract
21219 chmod ugo+x intltool-extract
21220 chmod u+w intltool-extract
21222 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
21223 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
21224 rm -f intltool-merge.out
21226 mv -f intltool-merge.out intltool-merge
21228 chmod ugo+x intltool-merge
21229 chmod u+w intltool-merge
21231 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
21232 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
21233 rm -f intltool-update.out
21235 mv -f intltool-update.out intltool-update
21237 chmod ugo+x intltool-update
21238 chmod u+w intltool-update
21241 default-2 ) case "$CONFIG_FILES" in *po/Makefile.in*)
21242 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
21248 cat >>$CONFIG_STATUS <<\_ACEOF
21250 { (exit 0); exit 0; }
21252 chmod +x $CONFIG_STATUS
21253 ac_clean_files=$ac_clean_files_save
21256 # configure is writing to config.log, and then calls config.status.
21257 # config.status does its own redirection, appending to config.log.
21258 # Unfortunately, on DOS this fails, as config.log is still kept open
21259 # by configure, so config.status won't be able to write to it; its
21260 # output is simply discarded. So we exec the FD to /dev/null,
21261 # effectively closing config.log, so it can be properly (re)opened and
21262 # appended to by config.status. When coming back to configure, we
21263 # need to make the FD available again.
21264 if test "$no_create" != yes; then
21266 ac_config_status_args=
21267 test "$silent" = yes &&
21268 ac_config_status_args="$ac_config_status_args --quiet"
21270 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21272 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21273 # would make configure fail if this is the last instruction.
21274 $ac_cs_success || { (exit 1); exit 1; }
21278 ###############################################################################
21280 # Print some warnings at the end.
21282 ###############################################################################
21284 warn_prefix_1=" Warning:"
21285 warn_prefix_2=" Note:"
21286 warn_prefix="$warn_prefix_1"
21289 warnsep=' #################################################################'
21292 if test "$warning" = no ; then
21293 echo '' ; echo "$warnsep" ; echo ''
21300 if test "$warning" = long ; then echo '' ; fi
21303 echo "$warn_prefix $rest"
21310 if test "$was" != no ; then echo '' ; fi
21312 echo "$warn_prefix $rest"
21322 warn_prefix="$warn_prefix_2"
21324 warn_prefix="$warn_prefix_1"
21328 warn_prefix="$warn_prefix_2"
21330 warn_prefix="$warn_prefix_1"
21334 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
21335 warn 'The SGI saver extension was requested, but was not found.'
21338 if test "$with_mit_req" = yes -a "$have_mit" = no ; then
21339 warn 'The MIT saver extension was requested, but was not found.'
21342 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
21343 warn 'The XIdle extension was requested, but was not found.'
21346 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
21347 warn 'The XSHM extension was requested, but was not found.'
21350 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
21351 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
21354 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
21355 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
21358 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
21359 warn 'The DPMS extension was requested, but was not found.'
21362 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
21363 warn 'The Xinerama extension was requested, but was not found.'
21366 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
21367 warn 'The XF86VMODE extension was requested, but was not found.'
21370 if test "$with_randr_req" = yes -a "$have_randr" = no ; then
21371 warn 'The RANDR extension was requested, but was not found.'
21374 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
21375 warn "Checking of /proc/interrupts was requested, but it's bogus."
21379 if test "$gtk_halfassed" != no ; then
21380 warnL "GTK version $gtk_halfassed was found, but at least one supporting"
21381 warn2 "library ($gtk_halfassed_lib) was not, so GTK can't be used."
21382 warn2 "Perhaps some of the development packages are not installed?"
21383 if test "$have_gtk" = yes ; then
21384 v="$ac_gtk_version_string"
21385 warn2 "GTK $v is also installed, so it will be used instead."
21386 warn2 "Please read the above output and the \`config.log' file"
21387 warn2 "for more details."
21392 warn2 'Though the Motif front-end to xscreensaver is still'
21393 warn2 'maintained, it is no longer being updated with new'
21394 warn2 'features: all new development on the xscreensaver-demo'
21395 warn2 'program is happening in the GTK version, and not in the'
21396 warn2 'Motif version. It is recommended that you build against'
21397 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
21400 if test "$have_motif" = no -a "$have_gtk" = no; then
21402 if test "$with_motif" = yes; then
21403 warnL "Neither the GTK nor Motif libraries were found; the"
21404 warn2 "\`xscreensaver-demo' program requires one of these."
21408 warnL "The GTK libraries do not seem to be available; the"
21409 warn2 "\`xscreensaver-demo' program requires them."
21411 # warn2 'You can use Motif or Lesstif instead of GTK (use the'
21412 # warn2 "\`--with-motif' option) but that is NOT recommended."
21416 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
21417 warnL "Use of Motif was requested, but it wasn't found;"
21418 warn2 "Gtk will be used instead."
21420 elif test "$jurassic_gtk" = yes ; then
21424 v="$ac_gtk_version_string"
21425 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
21426 warnL "Use of Gtk was requested, but its version number is unknown;"
21427 elif test "$with_gtk_req" = yes ; then
21428 warnL "Use of Gtk was requested, but it is version $v;"
21430 warnL "Gtk was found on this system, but it is version $v;"
21433 warn2 "Gtk $pref_gtk or newer is required."
21435 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
21436 warnL "Use of Gtk was requested, but it wasn't found."
21440 if test "$have_gtk" = yes -a "$have_gdk_pixbuf" = no ; then
21441 warn "GTK is being used, but the GDK-Pixbuf library and/or"
21442 warn2 "headers were not found. That can't be good. Please"
21443 warn2 "install the GDK-Pixbuf development kit and re-configure."
21446 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
21448 preferred_lesstif=0.92
21450 if test "$lesstif_version" = unknown; then
21451 warnL "Unable to determine the LessTif version number!"
21452 warn2 "Make sure you are using version $preferred_lesstif or newer."
21453 warn2 "See <http://www.lesstif.org/>."
21455 elif test \! $lesstif_version -gt 82; then
21456 warnL "LessTif version $lesstif_version_string is being used."
21457 warn2 "LessTif versions 0.82 and earlier are too buggy to"
21458 warn2 "use with XScreenSaver; it is strongly recommended"
21459 warn2 "that you upgrade to at least version $preferred_lesstif!"
21460 warn2 "See <http://www.lesstif.org/>."
21465 if test "$have_motif" = yes -a "$have_gtk" = no ; then
21466 warn 'Motif is being used, and GTK is not.'
21472 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
21473 warnL 'Use of XPM was requested, but it was not found.'
21476 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
21477 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
21480 if test "$have_gdk_pixbuf" = no -o "$gdk_pixbuf_halfassed" = yes || \
21481 test "$have_gdk_pixbuf" = no -a "$have_xpm" = no ; then
21483 if test "$with_gdk_pixbuf_req" = yes ; then
21485 elif test "$with_gdk_pixbuf_req" = no ; then
21486 warnL 'The GDK-Pixbuf library is not being used.'
21488 warnL 'The GDK-Pixbuf library was not found.'
21491 if test "$with_xpm_req" = yes -o "$have_xpm" = yes ; then
21493 elif test "$with_xpm_req" = no ; then
21494 warnL 'The XPM library is not being used.'
21496 warnL 'The XPM library was not found.'
21499 if test "$have_gdk_pixbuf" = no -a "$have_xpm" = yes ; then
21500 warn2 'The XPM library is being used instead.'
21503 if test "$gdk_pixbuf_halfassed" = yes ; then
21505 warn2 'More specifically, we found the headers, but not the'
21506 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
21507 warn2 "system, or something else went wrong. The \`config.log'"
21508 warn2 'file might contain some clues.'
21512 warn2 'Some of the demos will not use images as much as they could.'
21513 warn2 'You should consider installing GDK-Pixbuf and re-running'
21514 warn2 'configure. (GDK-Pixbuf is recommended over XPM, as it'
21515 warn2 'provides support for more image formats.)'
21519 if test "$have_jpeg" = no ; then
21520 if test "$with_jpeg_req" = yes ; then
21521 warnL 'Use of libjpeg was requested, but it was not found.'
21522 elif test "$with_jpeg_req" = no ; then
21523 noteL 'The JPEG library is not being used.'
21525 noteL 'The JPEG library was not found.'
21528 if test "$jpeg_halfassed" = yes ; then
21530 warn2 'More specifically, we found the headers, but not the'
21531 warn2 'library; so either JPEG is half-installed on this'
21532 warn2 "system, or something else went wrong. The \`config.log'"
21533 warn2 'file might contain some clues.'
21537 if test "$have_gdk_pixbuf" = no ; then
21538 warn2 "This means that it won't be possible for the image-manipulating"
21539 warn2 "display modes to load files from disk; and it also means that"
21540 warn2 "the \`webcollage' program will be much slower."
21542 warn2 "This means the \`webcollage' program will be much slower."
21547 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
21548 preferred_mesagl=3.4
21549 mgv="$ac_mesagl_version_string"
21550 pgl="$preferred_mesagl"
21552 if test "$ac_mesagl_version" = unknown; then
21553 warnL "Unable to determine the MesaGL version number!"
21554 warn2 "Make sure you are using version $preferred_mesagl or newer."
21556 elif test \! "$ac_mesagl_version" -gt 2006; then
21557 warnL "MesaGL version number is $mgv --"
21558 warn2 "MesaGL 2.6 and earlier have a security bug. It is strongly"
21559 warn2 "recommended that you upgrade to at least version $preferred_mesagl."
21561 elif test \! "$ac_mesagl_version" -gt 3003; then
21562 warnL "MesaGL version number is $mgv --"
21563 warn2 "MesaGL 3.3 and earlier have some bugs; it is recommended"
21564 warn2 "that you upgrade to $pgl or newer."
21568 if test "$have_gl" = no ; then
21569 if test "$with_gl_req" = yes ; then
21570 warnL 'Use of GL was requested, but it was not found.'
21571 elif test "$with_gl_req" = no ; then
21572 noteL 'The OpenGL 3D library is not being used.'
21574 noteL 'The OpenGL 3D library was not found.'
21577 if test "$gl_halfassed" = yes ; then
21579 warn2 'More specifically, we found the headers, but not the'
21580 warn2 'libraries; so either GL is half-installed on this'
21581 warn2 "system, or something else went wrong. The \`config.log'"
21582 warn2 'file might contain some clues.'
21586 warn2 'Those demos which use 3D will not be built or installed.'
21587 warn2 'You might want to consider installing OpenGL and'
21588 warn2 "re-running configure. If your vendor doesn't ship"
21589 warn2 'their own implementation of OpenGL, you can get a free'
21590 warn2 'version at <http://www.mesa3d.org/>. For general OpenGL'
21591 warn2 'info, see <http://www.opengl.org/>.'
21596 if test "$have_gl" = yes -a "$have_gle" = no ; then
21598 # nobody cares about this; don't print the warning unless it was
21599 # requested and not found, or halfway-found.
21600 if test "$with_gle_req" = yes -o "$gle_halfassed" = yes ; then
21602 if test "$with_gle_req" = yes ; then
21603 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
21604 warn2 'it was not found (though the OpenGL library was found, and'
21605 warn2 'is being used.)'
21606 elif test "$with_gle_req" = no ; then
21607 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
21608 warn2 'library is not.'
21610 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
21614 if test "$gle_halfassed" = yes ; then
21616 warn2 'More specifically, we found the headers, but not the'
21617 warn2 'libraries; so either GLE is half-installed on this'
21618 warn2 "system, or something else went wrong. The \`config.log'"
21619 warn2 'file might contain some clues.'
21623 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
21624 warn2 'will not be built or installed. You might want to consider'
21625 warn2 'installing GLE and re-running configure. You can find the'
21626 warn2 'GLE library at <http://www.linas.org/gle/>. For general'
21627 warn2 'OpenGL info, see <http://www.opengl.org/>.'
21633 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
21634 warn 'Use of XReadDisplay was requested, but it was not found.'
21637 if test -n "$with_fortune_req"; then
21638 if test "$with_fortune_req" != "$ac_cv_fortune_program" ; then
21639 warnL "$with_fortune_req was requested as the Fortune program,"
21640 warn2 "but was not found. The default will be used instead."
21644 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
21645 warn 'Use of Kerberos was requested, but it was not found.'
21648 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
21649 warn 'Use of PAM was requested, but it was not found.'
21652 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
21653 warn 'Use of shadow passwords was requested, but they were not found.'
21657 # You are in a twisty maze of namespaces and syntaxes, all alike.
21658 # Fuck the skull of Unix.
21660 eval bindir=${bindir}
21661 eval bindir=${bindir}
21662 eval bindir=${bindir}
21663 eval bindir=${bindir}
21664 eval bindir=${bindir}
21665 eval bindir=${bindir}
21666 eval HACKDIR=${HACKDIR}
21667 eval HACKDIR=${HACKDIR}
21668 eval HACKDIR=${HACKDIR}
21669 eval HACKDIR=${HACKDIR}
21670 eval HACKDIR=${HACKDIR}
21671 eval HACKDIR=${HACKDIR}
21672 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21673 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21674 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21675 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21676 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21677 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21679 # canonicalize slashes.
21680 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
21681 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
21682 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
21685 # Sanity check the hackdir
21686 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
21687 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
21689 { { echo "$as_me:$LINENO: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
21690 There will be an executable installed with that name, so
21691 that can't be the name of a directory as well. Please
21692 re-configure with a different directory name." >&5
21693 echo "$as_me: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
21694 There will be an executable installed with that name, so
21695 that can't be the name of a directory as well. Please
21696 re-configure with a different directory name." >&2;}
21697 { (exit 1); exit 1; }; }
21704 # Now let's see if there's a previous RPM version already installed. Blargh!
21708 rpmv=`(rpm -qv xscreensaver) 2>/dev/null | \
21709 sed -n 's/^xscreensaver-\([0-9][0-9]*[.][0-9][0-9]*\)-.*$/\1/p'`
21712 if test \! -z "$rpmv" ; then
21713 rpmbdir=`rpm -ql xscreensaver | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
21714 rpmhdir=`rpm -ql xscreensaver | sed -n 's@^\(.*\)/attraction$@\1@p'`
21717 warnL "There is already an installed RPM of xscreensaver $rpmv"
21718 warn2 "on this system. You might want to remove it (with"
21719 warn2 '"rpm -ve xscreensaver") before running "make install"'
21720 warn2 "from this directory."
21722 warn2 "Alternately, you could build this version of xscreensaver"
21723 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
21724 warn2 'file is included. Try "rpmbuild -v -ba xscreensaver.spec".'
21725 warn2 "See the RPM documentation for more info."
21728 if test "$rpmbdir" = "$rpmhdir" ; then
21729 warn2 "The RPM version was installed in $rpmbdir/."
21731 warn2 "The RPM version was installed in $rpmbdir/,"
21732 warn2 "with demos in $rpmhdir/."
21739 if test "${bindir}" = "${HACKDIR}" ; then
21743 if test "$do_dir_warning" = yes; then
21747 echo ' When you run "make install", the "xscreensaver",'
21748 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
21749 echo " will be installed in ${bindir}/."
21751 echo " The various graphics demos (180+ different executables) will"
21752 echo " be installed in ${HACKDIR}/."
21754 echo " If you would prefer the demos to be installed elsewhere,"
21755 echo " you should re-run configure with the --with-hackdir=DIR"
21756 echo " option. For more information, run \`./configure --help'."
21760 if test "$warning" != no; then
21761 echo '' ; echo "$warnsep" ; echo ''
21764 if test "$do_dir_warning" = no; then
21765 if test "$warning" = no; then
21768 echo "User programs will be installed in ${bindir}/"
21769 echo "Screen savers will be installed in ${HACKDIR}/"
21770 echo "Configuration will be installed in ${HACK_CONF_DIR}/"