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 glib_config gtk_config gnome_config have_gnome_help xml_config gdk_pixbuf_config 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: `GNOMEPREFIX/control-center/screensavers/'
864 or `PREFIX/lib/xscreensaver/config/', depending on
865 whether GNOME 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-motif Use the Motif toolkit for the user interface
901 --with-gtk Use the Gtk toolkit for the user interface.
902 --with-gnome Include support for the Gnome 1.x Control Center.
903 (This option is not needed with GTK 2.x / Gnome 2.x.)
905 --with-xml The XML toolkit is needed for some parts of
906 the Gtk interface. Without it, the configuration
907 interface will be much less featureful.
911 --with-gl Build those demos which depend on OpenGL.
912 --with-gle Build those demos which depend on GLE
913 (the OpenGL "extrusion" library.)
914 --with-xpm Include support for XPM files in some demos.
915 (Not needed if Pixbuf is used.)
916 --with-pixbuf Include support for the GDK-Pixbuf library in some
917 demos, which will make it possible for them to read
918 GIF, JPEG, and PNG files as well. (The path here is
919 ignored if GTK 2.x is being used.)
920 --with-jpeg Include support for the JPEG library.
921 --with-xshm-ext Include support for the Shared Memory extension.
922 --with-xdbe-ext Include support for the DOUBLE-BUFFER extension.
923 --with-readdisplay Include support for the XReadDisplay extension.
925 --with-fortune=PROGRAM Some demos are able to run an external program and
926 display its text; this names the program to use by
927 default (though it can be overridden with X
928 resources.) Default is "/usr/games/fortune".
929 --with-setuid-hacks Allow some demos to be installed `setuid root'
930 (which is needed in order to ping other hosts.)
933 Some influential environment variables:
934 CC C compiler command
935 CFLAGS C compiler flags
936 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
937 nonstandard directory <lib dir>
938 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
939 headers in a nonstandard directory <include dir>
942 Use these variables to override the choices made by `configure' or to help
943 it to find libraries and programs with nonstandard names/locations.
948 if test "$ac_init_help" = "recursive"; then
949 # If there are subdirs, report their specific --help.
951 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
952 test -d $ac_dir || continue
955 if test "$ac_dir" != .; then
956 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
957 # A "../" for each directory in $ac_dir_suffix.
958 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
960 ac_dir_suffix= ac_top_builddir=
964 .) # No --srcdir option. We are building in place.
966 if test -z "$ac_top_builddir"; then
969 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
971 [\\/]* | ?:[\\/]* ) # Absolute path.
972 ac_srcdir=$srcdir$ac_dir_suffix;
973 ac_top_srcdir=$srcdir ;;
975 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
976 ac_top_srcdir=$ac_top_builddir$srcdir ;;
979 # Do not use `cd foo && pwd` to compute absolute paths, because
980 # the directories may not exist.
982 .) ac_abs_builddir="$ac_dir";;
985 .) ac_abs_builddir=`pwd`;;
986 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
987 *) ac_abs_builddir=`pwd`/"$ac_dir";;
990 case $ac_abs_builddir in
991 .) ac_abs_top_builddir=${ac_top_builddir}.;;
993 case ${ac_top_builddir}. in
994 .) ac_abs_top_builddir=$ac_abs_builddir;;
995 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
996 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
999 case $ac_abs_builddir in
1000 .) ac_abs_srcdir=$ac_srcdir;;
1003 .) ac_abs_srcdir=$ac_abs_builddir;;
1004 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1005 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1008 case $ac_abs_builddir in
1009 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1011 case $ac_top_srcdir in
1012 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1013 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1014 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1019 # Check for guested configure; otherwise get Cygnus style configure.
1020 if test -f $ac_srcdir/configure.gnu; then
1022 $SHELL $ac_srcdir/configure.gnu --help=recursive
1023 elif test -f $ac_srcdir/configure; then
1025 $SHELL $ac_srcdir/configure --help=recursive
1026 elif test -f $ac_srcdir/configure.ac ||
1027 test -f $ac_srcdir/configure.in; then
1029 $ac_configure --help
1031 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1037 test -n "$ac_init_help" && exit 0
1038 if $ac_init_version; then
1041 Copyright (C) 2003 Free Software Foundation, Inc.
1042 This configure script is free software; the Free Software Foundation
1043 gives unlimited permission to copy, distribute and modify it.
1049 This file contains any messages produced by compilers while
1050 running configure, to aid debugging if configure makes a mistake.
1052 It was created by $as_me, which was
1053 generated by GNU Autoconf 2.59. Invocation command line was
1064 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1065 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1066 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1067 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1068 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1070 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1071 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1073 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1074 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1075 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1076 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1077 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1078 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1079 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1087 test -z "$as_dir" && as_dir=.
1088 echo "PATH: $as_dir"
1103 # Keep a trace of the command line.
1104 # Strip out --no-create and --no-recursion so they do not pile up.
1105 # Strip out --silent because we don't want to record it for future runs.
1106 # Also quote any args containing shell meta-characters.
1107 # Make two passes to allow for proper duplicate-argument suppression.
1112 ac_must_keep_next=false
1118 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1122 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1123 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1126 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1128 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1129 if test $ac_must_keep_next = true; then
1130 ac_must_keep_next=false # Got value, back to normal.
1133 *=* | --config-cache | -C | -disable-* | --disable-* \
1134 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1135 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1136 | -with-* | --with-* | -without-* | --without-* | --x)
1137 case "$ac_configure_args0 " in
1138 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1141 -* ) ac_must_keep_next=true ;;
1144 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1145 # Get rid of the leading space.
1151 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1152 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1154 # When interrupted or exit'd, cleanup temporary files, and complete
1155 # config.log. We remove comments because anyway the quotes in there
1156 # would cause problems or look ugly.
1157 # WARNING: Be sure not to use single quotes in there, as some shells,
1158 # such as our DU 5.0 friend, will then `close' the trap.
1159 trap 'exit_status=$?
1160 # Save into config.log some information that might help in debugging.
1165 ## ---------------- ##
1166 ## Cache variables. ##
1167 ## ---------------- ##
1170 # The following way of writing the cache mishandles newlines in values,
1173 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1176 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1181 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1188 ## ----------------- ##
1189 ## Output variables. ##
1190 ## ----------------- ##
1193 for ac_var in $ac_subst_vars
1195 eval ac_val=$`echo $ac_var`
1196 echo "$ac_var='"'"'$ac_val'"'"'"
1200 if test -n "$ac_subst_files"; then
1207 for ac_var in $ac_subst_files
1209 eval ac_val=$`echo $ac_var`
1210 echo "$ac_var='"'"'$ac_val'"'"'"
1215 if test -s confdefs.h; then
1222 sed "/^$/d" confdefs.h | sort
1225 test "$ac_signal" != 0 &&
1226 echo "$as_me: caught signal $ac_signal"
1227 echo "$as_me: exit $exit_status"
1229 rm -f core *.core &&
1230 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1233 for ac_signal in 1 2 13 15; do
1234 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1239 rm -rf conftest* confdefs.h
1240 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1243 # Predefined preprocessor variables.
1245 cat >>confdefs.h <<_ACEOF
1246 #define PACKAGE_NAME "$PACKAGE_NAME"
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1260 cat >>confdefs.h <<_ACEOF
1261 #define PACKAGE_STRING "$PACKAGE_STRING"
1265 cat >>confdefs.h <<_ACEOF
1266 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1270 # Let the site file select an alternate cache file if it wants to.
1271 # Prefer explicitly selected file to automatically selected ones.
1272 if test -z "$CONFIG_SITE"; then
1273 if test "x$prefix" != xNONE; then
1274 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1276 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1279 for ac_site_file in $CONFIG_SITE; do
1280 if test -r "$ac_site_file"; then
1281 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1282 echo "$as_me: loading site script $ac_site_file" >&6;}
1283 sed 's/^/| /' "$ac_site_file" >&5
1288 if test -r "$cache_file"; then
1289 # Some versions of bash will fail to source /dev/null (special
1290 # files actually), so we avoid doing that.
1291 if test -f "$cache_file"; then
1292 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1293 echo "$as_me: loading cache $cache_file" >&6;}
1295 [\\/]* | ?:[\\/]* ) . $cache_file;;
1296 *) . ./$cache_file;;
1300 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1301 echo "$as_me: creating cache $cache_file" >&6;}
1305 # Check that the precious variables saved in the cache have kept the same
1307 ac_cache_corrupted=false
1308 for ac_var in `(set) 2>&1 |
1309 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1310 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1311 eval ac_new_set=\$ac_env_${ac_var}_set
1312 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1313 eval ac_new_val="\$ac_env_${ac_var}_value"
1314 case $ac_old_set,$ac_new_set in
1316 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1317 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1318 ac_cache_corrupted=: ;;
1320 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1321 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1322 ac_cache_corrupted=: ;;
1325 if test "x$ac_old_val" != "x$ac_new_val"; then
1326 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1327 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1328 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1329 echo "$as_me: former value: $ac_old_val" >&2;}
1330 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1331 echo "$as_me: current value: $ac_new_val" >&2;}
1332 ac_cache_corrupted=:
1335 # Pass precious variables to config.status.
1336 if test "$ac_new_set" = set; then
1338 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1339 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1340 *) ac_arg=$ac_var=$ac_new_val ;;
1342 case " $ac_configure_args " in
1343 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1344 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1348 if $ac_cache_corrupted; then
1349 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1350 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1351 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1352 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1353 { (exit 1); exit 1; }; }
1357 ac_cpp='$CPP $CPPFLAGS'
1358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1380 ac_config_headers="$ac_config_headers config.h"
1383 echo "current directory: `pwd`"
1384 echo "command line was: $0 $@"
1387 # After checking to see that --srcdir is correct (which AC_INIT does)
1388 # check for some random other files that come later in the tar file,
1389 # to make sure everything is here.
1391 for d in driver utils hacks hacks/glx ; do
1392 f=$srcdir/$d/Makefile.in
1393 if test \! -r $f ; then
1395 echo "ERROR: The package is incomplete: $f does not exist."
1396 echo " This probably means that your download was truncated."
1402 ###############################################################################
1404 # Function to figure out how to run the compiler.
1406 ###############################################################################
1411 ###############################################################################
1413 # Functions to figure out how to disable // comments in ANSI C code.
1415 # (With recent gcc, this is done with "-std=c89". With older gcc, this
1416 # is done by passing "-lang-c89" to cpp, by passing "-Wp,-lang-c89" to
1417 # gcc. Old gcc doesn't support -std, and new gcc doesn't support -lang.
1418 # so much for compatibility!)
1420 # UPDATE: apparently there is NO WAY to tell gcc 3.2.2 to require that
1421 # declarations preceed statements, without resorting to "-pedantic".
1422 # This means that there is no way to get gcc3 to issue warnings that
1423 # ensure that your code complies with the ANSI/ISO C89 standard, without
1424 # also drowning in totally useless warnings. Thank you master may I
1427 # So, I give up, let's just use -pedantic.
1429 ###############################################################################
1436 ###############################################################################
1438 # Function to figure out how to turn off Objective C on MacOS X.
1439 # (We have to do this to work around an Apple-specific gcc bug.)
1441 ###############################################################################
1448 ###############################################################################
1450 # Function to figure out how to create directory trees.
1452 ###############################################################################
1457 ###############################################################################
1459 # Function to check whether gettimeofday() exists, and how to call it.
1460 # This may define HAVE_GETTIMEOFDAY and GETTIMEOFDAY_TWO_ARGS.
1462 ###############################################################################
1467 ###############################################################################
1469 # Function to find perl5 (defines PERL and PERL_VERSION.)
1471 ###############################################################################
1473 # M4 sucks!! perl sucks too!!
1475 perl_version_cmd='print $]'
1481 ###############################################################################
1483 # Function to demand "bc". Losers.
1485 ###############################################################################
1489 ###############################################################################
1491 # Functions to check how to do ICMP PING requests.
1493 ###############################################################################
1500 ###############################################################################
1502 # Functions to check for various X11 crap.
1504 ###############################################################################
1506 # Try and find the app-defaults directory.
1507 # It sucks that autoconf doesn't do this already...
1519 # Random special-cases for X on certain pathological OSes.
1520 # You know who you are.
1526 ###############################################################################
1528 # Some utility functions to make checking for X things easier.
1530 ###############################################################################
1532 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
1536 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
1540 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
1545 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
1546 # Use this sparingly; it probably doesn't work very well on X programs.
1550 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
1551 # (But not the -L directories!)
1557 # Usage: HANDLE_X_PATH_ARG([variable_name],
1558 # [--command-line-option],
1559 # [descriptive string])
1561 # All of the --with options take three forms:
1563 # --with-foo (or --with-foo=yes)
1564 # --without-foo (or --with-foo=no)
1567 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
1568 # a directory (string beginning with a slash) it checks to see whether
1569 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
1576 ###############################################################################
1577 ###############################################################################
1579 # End of function definitions. Now start actually executing stuff.
1581 ###############################################################################
1582 ###############################################################################
1584 # random compiler setup
1586 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1587 if test -f $ac_dir/install-sh; then
1589 ac_install_sh="$ac_aux_dir/install-sh -c"
1591 elif test -f $ac_dir/install.sh; then
1593 ac_install_sh="$ac_aux_dir/install.sh -c"
1595 elif test -f $ac_dir/shtool; then
1597 ac_install_sh="$ac_aux_dir/shtool install -c"
1601 if test -z "$ac_aux_dir"; then
1602 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1603 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1604 { (exit 1); exit 1; }; }
1606 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1607 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1608 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1610 # Make sure we can run config.sub.
1611 $ac_config_sub sun4 >/dev/null 2>&1 ||
1612 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1613 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1614 { (exit 1); exit 1; }; }
1616 echo "$as_me:$LINENO: checking build system type" >&5
1617 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1618 if test "${ac_cv_build+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 ac_cv_build_alias=$build_alias
1622 test -z "$ac_cv_build_alias" &&
1623 ac_cv_build_alias=`$ac_config_guess`
1624 test -z "$ac_cv_build_alias" &&
1625 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1626 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1627 { (exit 1); exit 1; }; }
1628 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1629 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1630 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1631 { (exit 1); exit 1; }; }
1634 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1635 echo "${ECHO_T}$ac_cv_build" >&6
1637 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1638 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1639 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1642 echo "$as_me:$LINENO: checking host system type" >&5
1643 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1644 if test "${ac_cv_host+set}" = set; then
1645 echo $ECHO_N "(cached) $ECHO_C" >&6
1647 ac_cv_host_alias=$host_alias
1648 test -z "$ac_cv_host_alias" &&
1649 ac_cv_host_alias=$ac_cv_build_alias
1650 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1651 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1652 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1653 { (exit 1); exit 1; }; }
1656 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1657 echo "${ECHO_T}$ac_cv_host" >&6
1659 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1660 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1661 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1666 ac_cpp='$CPP $CPPFLAGS'
1667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1670 if test -n "$ac_tool_prefix"; then
1671 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1672 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1673 echo "$as_me:$LINENO: checking for $ac_word" >&5
1674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675 if test "${ac_cv_prog_CC+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 if test -n "$CC"; then
1679 ac_cv_prog_CC="$CC" # Let the user override the test.
1681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 test -z "$as_dir" && as_dir=.
1686 for ac_exec_ext in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698 if test -n "$CC"; then
1699 echo "$as_me:$LINENO: result: $CC" >&5
1700 echo "${ECHO_T}$CC" >&6
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1707 if test -z "$ac_cv_prog_CC"; then
1709 # Extract the first word of "gcc", so it can be a program name with args.
1710 set dummy gcc; ac_word=$2
1711 echo "$as_me:$LINENO: checking for $ac_word" >&5
1712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1714 echo $ECHO_N "(cached) $ECHO_C" >&6
1716 if test -n "$ac_ct_CC"; then
1717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723 test -z "$as_dir" && as_dir=.
1724 for ac_exec_ext in '' $ac_executable_extensions; do
1725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726 ac_cv_prog_ac_ct_CC="gcc"
1727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1736 if test -n "$ac_ct_CC"; then
1737 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1738 echo "${ECHO_T}$ac_ct_CC" >&6
1740 echo "$as_me:$LINENO: result: no" >&5
1741 echo "${ECHO_T}no" >&6
1749 if test -z "$CC"; then
1750 if test -n "$ac_tool_prefix"; then
1751 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1752 set dummy ${ac_tool_prefix}cc; ac_word=$2
1753 echo "$as_me:$LINENO: checking for $ac_word" >&5
1754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755 if test "${ac_cv_prog_CC+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1758 if test -n "$CC"; then
1759 ac_cv_prog_CC="$CC" # Let the user override the test.
1761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765 test -z "$as_dir" && as_dir=.
1766 for ac_exec_ext in '' $ac_executable_extensions; do
1767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768 ac_cv_prog_CC="${ac_tool_prefix}cc"
1769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1778 if test -n "$CC"; then
1779 echo "$as_me:$LINENO: result: $CC" >&5
1780 echo "${ECHO_T}$CC" >&6
1782 echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6
1787 if test -z "$ac_cv_prog_CC"; then
1789 # Extract the first word of "cc", so it can be a program name with args.
1790 set dummy cc; ac_word=$2
1791 echo "$as_me:$LINENO: checking for $ac_word" >&5
1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 if test -n "$ac_ct_CC"; then
1797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1803 test -z "$as_dir" && as_dir=.
1804 for ac_exec_ext in '' $ac_executable_extensions; do
1805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1806 ac_cv_prog_ac_ct_CC="cc"
1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1816 if test -n "$ac_ct_CC"; then
1817 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1818 echo "${ECHO_T}$ac_ct_CC" >&6
1820 echo "$as_me:$LINENO: result: no" >&5
1821 echo "${ECHO_T}no" >&6
1830 if test -z "$CC"; then
1831 # Extract the first word of "cc", so it can be a program name with args.
1832 set dummy cc; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_CC+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 if test -n "$CC"; then
1839 ac_cv_prog_CC="$CC" # Let the user override the test.
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 test -z "$as_dir" && as_dir=.
1847 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1850 ac_prog_rejected=yes
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860 if test $ac_prog_rejected = yes; then
1861 # We found a bogon in the path, so make sure we never use it.
1862 set dummy $ac_cv_prog_CC
1864 if test $# != 0; then
1865 # We chose a different compiler from the bogus one.
1866 # However, it has the same basename, so the bogon will be chosen
1867 # first if we set CC to just the basename; use the full file name.
1869 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1875 if test -n "$CC"; then
1876 echo "$as_me:$LINENO: result: $CC" >&5
1877 echo "${ECHO_T}$CC" >&6
1879 echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6
1884 if test -z "$CC"; then
1885 if test -n "$ac_tool_prefix"; then
1888 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1889 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_CC+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 if test -n "$CC"; then
1896 ac_cv_prog_CC="$CC" # Let the user override the test.
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902 test -z "$as_dir" && as_dir=.
1903 for ac_exec_ext in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915 if test -n "$CC"; then
1916 echo "$as_me:$LINENO: result: $CC" >&5
1917 echo "${ECHO_T}$CC" >&6
1919 echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1923 test -n "$CC" && break
1926 if test -z "$CC"; then
1930 # Extract the first word of "$ac_prog", so it can be a program name with args.
1931 set dummy $ac_prog; ac_word=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 if test -n "$ac_ct_CC"; then
1938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 ac_cv_prog_ac_ct_CC="$ac_prog"
1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1957 if test -n "$ac_ct_CC"; then
1958 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1959 echo "${ECHO_T}$ac_ct_CC" >&6
1961 echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6
1965 test -n "$ac_ct_CC" && break
1974 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1975 See \`config.log' for more details." >&5
1976 echo "$as_me: error: no acceptable C compiler found in \$PATH
1977 See \`config.log' for more details." >&2;}
1978 { (exit 1); exit 1; }; }
1980 # Provide some information about the compiler.
1981 echo "$as_me:$LINENO:" \
1982 "checking for C compiler version" >&5
1983 ac_compiler=`set X $ac_compile; echo $2`
1984 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1985 (eval $ac_compiler --version </dev/null >&5) 2>&5
1987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 (exit $ac_status); }
1989 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1990 (eval $ac_compiler -v </dev/null >&5) 2>&5
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); }
1994 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1995 (eval $ac_compiler -V </dev/null >&5) 2>&5
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }
2000 cat >conftest.$ac_ext <<_ACEOF
2003 cat confdefs.h >>conftest.$ac_ext
2004 cat >>conftest.$ac_ext <<_ACEOF
2005 /* end confdefs.h. */
2015 ac_clean_files_save=$ac_clean_files
2016 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2017 # Try to create an executable without -o first, disregard a.out.
2018 # It will help us diagnose broken compilers, and finding out an intuition
2020 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2021 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2022 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2023 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2024 (eval $ac_link_default) 2>&5
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); }; then
2028 # Find the output, starting from the most likely. This scheme is
2029 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2032 # Be careful to initialize this variable, since it used to be cached.
2033 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2035 # b.out is created by i960 compilers.
2036 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2038 test -f "$ac_file" || continue
2040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2043 # This is the source file.
2046 # We found the default executable, but exeext='' is most
2050 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2051 # FIXME: I believe we export ac_cv_exeext for Libtool,
2052 # but it would be cool to find out if it's true. Does anybody
2053 # maintain Libtool? --akim.
2061 echo "$as_me: failed program was:" >&5
2062 sed 's/^/| /' conftest.$ac_ext >&5
2064 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: C compiler cannot create executables
2067 See \`config.log' for more details." >&2;}
2068 { (exit 77); exit 77; }; }
2071 ac_exeext=$ac_cv_exeext
2072 echo "$as_me:$LINENO: result: $ac_file" >&5
2073 echo "${ECHO_T}$ac_file" >&6
2075 # Check the compiler produces executables we can run. If not, either
2076 # the compiler is broken, or we cross compile.
2077 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2078 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2079 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2080 # If not cross compiling, check that we can run a simple program.
2081 if test "$cross_compiling" != yes; then
2082 if { ac_try='./$ac_file'
2083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }; }; then
2090 if test "$cross_compiling" = maybe; then
2093 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2094 If you meant to cross compile, use \`--host'.
2095 See \`config.log' for more details." >&5
2096 echo "$as_me: error: cannot run C compiled programs.
2097 If you meant to cross compile, use \`--host'.
2098 See \`config.log' for more details." >&2;}
2099 { (exit 1); exit 1; }; }
2103 echo "$as_me:$LINENO: result: yes" >&5
2104 echo "${ECHO_T}yes" >&6
2106 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2107 ac_clean_files=$ac_clean_files_save
2108 # Check the compiler produces executables we can run. If not, either
2109 # the compiler is broken, or we cross compile.
2110 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2111 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2112 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2113 echo "${ECHO_T}$cross_compiling" >&6
2115 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2116 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2118 (eval $ac_link) 2>&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; then
2122 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2123 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2124 # work properly (i.e., refer to `conftest.exe'), while it won't with
2126 for ac_file in conftest.exe conftest conftest.*; do
2127 test -f "$ac_file" || continue
2129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2130 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2137 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2138 See \`config.log' for more details." >&5
2139 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2140 See \`config.log' for more details." >&2;}
2141 { (exit 1); exit 1; }; }
2144 rm -f conftest$ac_cv_exeext
2145 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2146 echo "${ECHO_T}$ac_cv_exeext" >&6
2148 rm -f conftest.$ac_ext
2149 EXEEXT=$ac_cv_exeext
2151 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2152 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2153 if test "${ac_cv_objext+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 cat >conftest.$ac_ext <<_ACEOF
2159 cat confdefs.h >>conftest.$ac_ext
2160 cat >>conftest.$ac_ext <<_ACEOF
2161 /* end confdefs.h. */
2171 rm -f conftest.o conftest.obj
2172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2173 (eval $ac_compile) 2>&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; then
2177 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2180 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2185 echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2188 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2189 See \`config.log' for more details." >&5
2190 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2191 See \`config.log' for more details." >&2;}
2192 { (exit 1); exit 1; }; }
2195 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2197 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2198 echo "${ECHO_T}$ac_cv_objext" >&6
2199 OBJEXT=$ac_cv_objext
2201 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2202 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2203 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2204 echo $ECHO_N "(cached) $ECHO_C" >&6
2206 cat >conftest.$ac_ext <<_ACEOF
2209 cat confdefs.h >>conftest.$ac_ext
2210 cat >>conftest.$ac_ext <<_ACEOF
2211 /* end confdefs.h. */
2224 rm -f conftest.$ac_objext
2225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>conftest.er1
2228 grep -v '^ *+' conftest.er1 >conftest.err
2230 cat conftest.err >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); } &&
2233 { ac_try='test -z "$ac_c_werror_flag"
2234 || test ! -s conftest.err'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; } &&
2240 { ac_try='test -s conftest.$ac_objext'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; }; then
2248 echo "$as_me: failed program was:" >&5
2249 sed 's/^/| /' conftest.$ac_ext >&5
2253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2254 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2257 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2258 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2259 GCC=`test $ac_compiler_gnu = yes && echo yes`
2260 ac_test_CFLAGS=${CFLAGS+set}
2261 ac_save_CFLAGS=$CFLAGS
2263 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2264 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2265 if test "${ac_cv_prog_cc_g+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 cat >conftest.$ac_ext <<_ACEOF
2271 cat confdefs.h >>conftest.$ac_ext
2272 cat >>conftest.$ac_ext <<_ACEOF
2273 /* end confdefs.h. */
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>conftest.er1
2287 grep -v '^ *+' conftest.er1 >conftest.err
2289 cat conftest.err >&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); } &&
2292 { ac_try='test -z "$ac_c_werror_flag"
2293 || test ! -s conftest.err'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; } &&
2299 { ac_try='test -s conftest.$ac_objext'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; }; then
2307 echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2314 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2315 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2316 if test "$ac_test_CFLAGS" = set; then
2317 CFLAGS=$ac_save_CFLAGS
2318 elif test $ac_cv_prog_cc_g = yes; then
2319 if test "$GCC" = yes; then
2325 if test "$GCC" = yes; then
2331 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2332 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2333 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 ac_cv_prog_cc_stdc=no
2338 cat >conftest.$ac_ext <<_ACEOF
2341 cat confdefs.h >>conftest.$ac_ext
2342 cat >>conftest.$ac_ext <<_ACEOF
2343 /* end confdefs.h. */
2346 #include <sys/types.h>
2347 #include <sys/stat.h>
2348 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2349 struct buf { int x; };
2350 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2351 static char *e (p, i)
2357 static char *f (char * (*g) (char **, int), char **p, ...)
2362 s = g (p, va_arg (v,int));
2367 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2368 function prototypes and stuff, but not '\xHH' hex character constants.
2369 These don't provoke an error unfortunately, instead are silently treated
2370 as 'x'. The following induces an error, until -std1 is added to get
2371 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2372 array size at least. It's necessary to write '\x00'==0 to get something
2373 that's true only with -std1. */
2374 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2376 int test (int i, double x);
2377 struct s1 {int (*f) (int a);};
2378 struct s2 {int (*f) (double a);};
2379 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2385 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2390 # Don't try gcc -ansi; that turns off useful extensions and
2391 # breaks some systems' header files.
2392 # AIX -qlanglvl=ansi
2393 # Ultrix and OSF/1 -std1
2394 # HP-UX 10.20 and later -Ae
2395 # HP-UX older versions -Aa -D_HPUX_SOURCE
2396 # SVR4 -Xc -D__EXTENSIONS__
2397 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2399 CC="$ac_save_CC $ac_arg"
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2404 grep -v '^ *+' conftest.er1 >conftest.err
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -z "$ac_c_werror_flag"
2410 || test ! -s conftest.err'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2422 ac_cv_prog_cc_stdc=$ac_arg
2425 echo "$as_me: failed program was:" >&5
2426 sed 's/^/| /' conftest.$ac_ext >&5
2429 rm -f conftest.err conftest.$ac_objext
2431 rm -f conftest.$ac_ext conftest.$ac_objext
2436 case "x$ac_cv_prog_cc_stdc" in
2438 echo "$as_me:$LINENO: result: none needed" >&5
2439 echo "${ECHO_T}none needed" >&6 ;;
2441 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2442 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2443 CC="$CC $ac_cv_prog_cc_stdc" ;;
2446 # Some people use a C++ compiler to compile C. Since we use `exit',
2447 # in C++ we need to declare it. In case someone uses the same compiler
2448 # for both compiling C and C++ we need to have the C++ compiler decide
2449 # the declaration of exit, since it's the most demanding environment.
2450 cat >conftest.$ac_ext <<_ACEOF
2455 rm -f conftest.$ac_objext
2456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2457 (eval $ac_compile) 2>conftest.er1
2459 grep -v '^ *+' conftest.er1 >conftest.err
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try='test -z "$ac_c_werror_flag"
2465 || test ! -s conftest.err'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; } &&
2471 { ac_try='test -s conftest.$ac_objext'
2472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; }; then
2477 for ac_declaration in \
2479 'extern "C" void std::exit (int) throw (); using std::exit;' \
2480 'extern "C" void std::exit (int); using std::exit;' \
2481 'extern "C" void exit (int) throw ();' \
2482 'extern "C" void exit (int);' \
2485 cat >conftest.$ac_ext <<_ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2501 rm -f conftest.$ac_objext
2502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2503 (eval $ac_compile) 2>conftest.er1
2505 grep -v '^ *+' conftest.er1 >conftest.err
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try='test -z "$ac_c_werror_flag"
2511 || test ! -s conftest.err'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2525 echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2531 cat >conftest.$ac_ext <<_ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h. */
2546 rm -f conftest.$ac_objext
2547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548 (eval $ac_compile) 2>conftest.er1
2550 grep -v '^ *+' conftest.er1 >conftest.err
2552 cat conftest.err >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); } &&
2555 { ac_try='test -z "$ac_c_werror_flag"
2556 || test ! -s conftest.err'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; } &&
2562 { ac_try='test -s conftest.$ac_objext'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2570 echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2577 if test -n "$ac_declaration"; then
2578 echo '#ifdef __cplusplus' >>confdefs.h
2579 echo $ac_declaration >>confdefs.h
2580 echo '#endif' >>confdefs.h
2584 echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590 ac_cpp='$CPP $CPPFLAGS'
2591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2596 if test -z "$GCC"; then
2597 echo "$as_me:$LINENO: checking how to request ANSI compilation" >&5
2598 echo $ECHO_N "checking how to request ANSI compilation... $ECHO_C" >&6
2601 echo "$as_me:$LINENO: result: HPUX: adding -Ae" >&5
2602 echo "${ECHO_T}HPUX: adding -Ae" >&6
2606 echo "$as_me:$LINENO: result: AIX: adding -qlanglvl=ansi -qhalt=e" >&5
2607 echo "${ECHO_T}AIX: adding -qlanglvl=ansi -qhalt=e" >&6
2608 CC="$CC -qlanglvl=ansi -qhalt=e"
2612 echo "$as_me:$LINENO: result: DEC: adding -std1 -ieee" >&5
2613 echo "${ECHO_T}DEC: adding -std1 -ieee" >&6
2618 echo "$as_me:$LINENO: result: no idea" >&5
2619 echo "${ECHO_T}no idea" >&6
2626 echo "$as_me:$LINENO: checking whether the compiler works on ANSI C" >&5
2627 echo $ECHO_N "checking whether the compiler works on ANSI C... $ECHO_C" >&6
2628 if test "$cross_compiling" = yes; then
2629 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2630 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2631 { (exit 1); exit 1; }; }
2633 cat >conftest.$ac_ext <<_ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2639 main(int ac, char **av) { return 0; }
2641 rm -f conftest$ac_exeext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2643 (eval $ac_link) 2>&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; }; then
2652 echo "$as_me:$LINENO: result: yes" >&5
2653 echo "${ECHO_T}yes" >&6
2655 echo "$as_me: program exited with status $ac_status" >&5
2656 echo "$as_me: failed program was:" >&5
2657 sed 's/^/| /' conftest.$ac_ext >&5
2660 echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6
2662 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2663 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2664 { (exit 1); exit 1; }; }
2666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2669 if test -n "$GCC"; then
2670 echo "$as_me:$LINENO: result: Turning on gcc compiler warnings." >&5
2671 echo "${ECHO_T}Turning on gcc compiler warnings." >&6
2672 CC="$CC -pedantic -Wall -Wstrict-prototypes -Wnested-externs"
2673 OBJCC="$OBJCC -Wall"
2674 # supposedly gcc 3.4 will have "-Wdeclaration-after-statement"
2675 # and then perhaps we can do without -pedantic?
2678 *-irix5* |*-irix6.0-3* )
2679 echo "$as_me:$LINENO: result: Turning on SGI compiler warnings." >&5
2680 echo "${ECHO_T}Turning on SGI compiler warnings." >&6
2681 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
2684 # if test -z "$GCC"; then
2685 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
2686 # CC="$CC -migrate -w0 -verbose -warnprotos"
2692 if test -n "$GCC"; then
2693 if test -n "$GCC"; then
2694 echo "$as_me:$LINENO: checking whether gcc accepts -std" >&5
2695 echo $ECHO_N "checking whether gcc accepts -std... $ECHO_C" >&6
2696 if test "${ac_cv_gcc_accepts_std+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 if ( ( gcc -E -std=c89 - </dev/null >/dev/null ) 2>&1 | \
2700 grep unrecognized >/dev/null ); then
2701 ac_cv_gcc_accepts_std=no
2703 ac_cv_gcc_accepts_std=yes
2706 echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_std" >&5
2707 echo "${ECHO_T}$ac_cv_gcc_accepts_std" >&6
2708 ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
2711 echo "$as_me:$LINENO: result: Disabling C++ comments in ANSI C code." >&5
2712 echo "${ECHO_T}Disabling C++ comments in ANSI C code." >&6
2714 # The reason that // comments are banned from xscreensaver is that gcc is
2715 # basically the only compiler in the world that supports them in C code.
2716 # All other vendors support them only in their C++ compilers, not in their
2717 # ANSI C compilers. This means that it's a portability problem: every time
2718 # these comments have snuck into the xscreensaver source code, I've gotten
2719 # complaints about it the next day. So we turn off support for them in gcc
2720 # as well to prevent them from accidentially slipping in.
2722 if test "$ac_gcc_accepts_std" = yes ; then
2724 # -std=c89 defines __STRICT_ANSI__, which we don't want.
2725 # (That appears to be the only additional preprocessor symbol
2726 # it defines, in addition to the syntax changes it makes.)
2728 # -std=gnu89 is no good, because // comments were a GNU extension
2729 # before they were in the ANSI C 99 spec... (gcc 2.96 permits //
2730 # with -std=gnu89 but not with -std=c89.)
2732 CC="$CC -std=c89 -U__STRICT_ANSI__"
2735 CC="$CC -Wp,-lang-c89"
2739 if test -n "$GCC"; then
2740 if test -n "$GCC"; then
2741 echo "$as_me:$LINENO: checking whether gcc accepts -no-cpp-precomp" >&5
2742 echo $ECHO_N "checking whether gcc accepts -no-cpp-precomp... $ECHO_C" >&6
2743 if test "${ac_cv_gcc_accepts_no_cpp_precomp+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 if ( ( gcc -E -no-cpp-precomp - </dev/null >/dev/null ) 2>&1 | \
2747 grep unrecognized >/dev/null ); then
2748 ac_cv_gcc_accepts_no_cpp_precomp=no
2750 ac_cv_gcc_accepts_no_cpp_precomp=yes
2753 echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_cpp_precomp" >&5
2754 echo "${ECHO_T}$ac_cv_gcc_accepts_no_cpp_precomp" >&6
2755 ac_gcc_accepts_no_cpp_precomp="$ac_cv_gcc_accepts_no_cpp_precomp"
2758 if test "$ac_gcc_accepts_no_cpp_precomp" = yes ; then
2759 echo "$as_me:$LINENO: result: Disabling Objective C extensions in ANSI C code." >&5
2760 echo "${ECHO_T}Disabling Objective C extensions in ANSI C code." >&6
2761 CC="$CC -no-cpp-precomp"
2766 ac_cpp='$CPP $CPPFLAGS'
2767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2770 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2771 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2772 # On Suns, sometimes $CPP names a directory.
2773 if test -n "$CPP" && test -d "$CPP"; then
2776 if test -z "$CPP"; then
2777 if test "${ac_cv_prog_CPP+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 # Double quotes because CPP needs to be expanded
2781 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2784 for ac_c_preproc_warn_flag in '' yes
2786 # Use a header file that comes with gcc, so configuring glibc
2787 # with a fresh cross-compiler works.
2788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2789 # <limits.h> exists even on freestanding compilers.
2790 # On the NeXT, cc -E runs the code through the compiler's parser,
2791 # not just through cpp. "Syntax error" is here to catch this case.
2792 cat >conftest.$ac_ext <<_ACEOF
2795 cat confdefs.h >>conftest.$ac_ext
2796 cat >>conftest.$ac_ext <<_ACEOF
2797 /* end confdefs.h. */
2799 # include <limits.h>
2801 # include <assert.h>
2805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2808 grep -v '^ *+' conftest.er1 >conftest.err
2810 cat conftest.err >&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); } >/dev/null; then
2813 if test -s conftest.err; then
2814 ac_cpp_err=$ac_c_preproc_warn_flag
2815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2822 if test -z "$ac_cpp_err"; then
2825 echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2828 # Broken: fails on valid input.
2831 rm -f conftest.err conftest.$ac_ext
2833 # OK, works on sane cases. Now check whether non-existent headers
2834 # can be detected and how.
2835 cat >conftest.$ac_ext <<_ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2841 #include <ac_nonexistent.h>
2843 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2846 grep -v '^ *+' conftest.er1 >conftest.err
2848 cat conftest.err >&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } >/dev/null; then
2851 if test -s conftest.err; then
2852 ac_cpp_err=$ac_c_preproc_warn_flag
2853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2860 if test -z "$ac_cpp_err"; then
2861 # Broken: success on invalid input.
2864 echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2867 # Passes both tests.
2871 rm -f conftest.err conftest.$ac_ext
2874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2875 rm -f conftest.err conftest.$ac_ext
2876 if $ac_preproc_ok; then
2888 echo "$as_me:$LINENO: result: $CPP" >&5
2889 echo "${ECHO_T}$CPP" >&6
2891 for ac_c_preproc_warn_flag in '' yes
2893 # Use a header file that comes with gcc, so configuring glibc
2894 # with a fresh cross-compiler works.
2895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2896 # <limits.h> exists even on freestanding compilers.
2897 # On the NeXT, cc -E runs the code through the compiler's parser,
2898 # not just through cpp. "Syntax error" is here to catch this case.
2899 cat >conftest.$ac_ext <<_ACEOF
2902 cat confdefs.h >>conftest.$ac_ext
2903 cat >>conftest.$ac_ext <<_ACEOF
2904 /* end confdefs.h. */
2906 # include <limits.h>
2908 # include <assert.h>
2912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2915 grep -v '^ *+' conftest.er1 >conftest.err
2917 cat conftest.err >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); } >/dev/null; then
2920 if test -s conftest.err; then
2921 ac_cpp_err=$ac_c_preproc_warn_flag
2922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2929 if test -z "$ac_cpp_err"; then
2932 echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.$ac_ext >&5
2935 # Broken: fails on valid input.
2938 rm -f conftest.err conftest.$ac_ext
2940 # OK, works on sane cases. Now check whether non-existent headers
2941 # can be detected and how.
2942 cat >conftest.$ac_ext <<_ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2948 #include <ac_nonexistent.h>
2950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2953 grep -v '^ *+' conftest.er1 >conftest.err
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } >/dev/null; then
2958 if test -s conftest.err; then
2959 ac_cpp_err=$ac_c_preproc_warn_flag
2960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2967 if test -z "$ac_cpp_err"; then
2968 # Broken: success on invalid input.
2971 echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2974 # Passes both tests.
2978 rm -f conftest.err conftest.$ac_ext
2981 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2982 rm -f conftest.err conftest.$ac_ext
2983 if $ac_preproc_ok; then
2986 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2987 See \`config.log' for more details." >&5
2988 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2989 See \`config.log' for more details." >&2;}
2990 { (exit 1); exit 1; }; }
2994 ac_cpp='$CPP $CPPFLAGS'
2995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3000 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3001 if test "${ac_cv_c_const+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 cat >conftest.$ac_ext <<_ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3014 /* FIXME: Include the comments suggested by Paul. */
3016 /* Ultrix mips cc rejects this. */
3017 typedef int charset[2];
3019 /* SunOS 4.1.1 cc rejects this. */
3020 char const *const *ccp;
3022 /* NEC SVR4.0.2 mips cc rejects this. */
3023 struct point {int x, y;};
3024 static struct point const zero = {0,0};
3025 /* AIX XL C 1.02.0.0 rejects this.
3026 It does not let you subtract one const X* pointer from another in
3027 an arm of an if-expression whose if-part is not a constant
3029 const char *g = "string";
3030 ccp = &g + (g ? g-g : 0);
3031 /* HPUX 7.0 cc rejects these. */
3034 ccp = (char const *const *) p;
3035 { /* SCO 3.2v4 cc rejects this. */
3037 char const *s = 0 ? (char *) 0 : (char const *) 0;
3041 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3043 const int *foo = &x[0];
3046 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3047 typedef const int *iptr;
3051 { /* AIX XL C 1.02.0.0 rejects this saying
3052 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3053 struct s { int j; const int *ap[3]; };
3054 struct s *b; b->j = 5;
3056 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3065 rm -f conftest.$ac_objext
3066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3067 (eval $ac_compile) 2>conftest.er1
3069 grep -v '^ *+' conftest.er1 >conftest.err
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } &&
3074 { ac_try='test -z "$ac_c_werror_flag"
3075 || test ! -s conftest.err'
3076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
3089 echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3096 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3097 echo "${ECHO_T}$ac_cv_c_const" >&6
3098 if test $ac_cv_c_const = no; then
3100 cat >>confdefs.h <<\_ACEOF
3106 echo "$as_me:$LINENO: checking for inline" >&5
3107 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3108 if test "${ac_cv_c_inline+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 for ac_kw in inline __inline__ __inline; do
3113 cat >conftest.$ac_ext <<_ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3121 static $ac_kw foo_t static_foo () {return 0; }
3122 $ac_kw foo_t foo () {return 0; }
3126 rm -f conftest.$ac_objext
3127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3128 (eval $ac_compile) 2>conftest.er1
3130 grep -v '^ *+' conftest.er1 >conftest.err
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -z "$ac_c_werror_flag"
3136 || test ! -s conftest.err'
3137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; } &&
3142 { ac_try='test -s conftest.$ac_objext'
3143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; }; then
3148 ac_cv_c_inline=$ac_kw; break
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3158 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3159 echo "${ECHO_T}$ac_cv_c_inline" >&6
3162 case $ac_cv_c_inline in
3165 case $ac_cv_c_inline in
3167 *) ac_val=$ac_cv_c_inline;;
3169 cat >>confdefs.h <<_ACEOF
3171 #define inline $ac_val
3178 ac_bc_result=`echo 6+9 | bc 2>/dev/null`
3179 echo "$as_me:$LINENO: checking for bc" >&5
3180 echo $ECHO_N "checking for bc... $ECHO_C" >&6
3181 if test "$ac_bc_result" = "15" ; then
3182 echo "$as_me:$LINENO: result: yes" >&5
3183 echo "${ECHO_T}yes" >&6
3185 echo "$as_me:$LINENO: result: no" >&5
3186 echo "${ECHO_T}no" >&6
3188 { { echo "$as_me:$LINENO: error: Your system doesn't have \"bc\", which has been a standard
3189 part of Unix since the 1970s. Come back when your vendor
3190 has grown a clue." >&5
3191 echo "$as_me: error: Your system doesn't have \"bc\", which has been a standard
3192 part of Unix since the 1970s. Come back when your vendor
3193 has grown a clue." >&2;}
3194 { (exit 1); exit 1; }; }
3198 # stuff for Makefiles
3199 # Find a good install program. We prefer a C program (faster),
3200 # so one script is as good as another. But avoid the broken or
3201 # incompatible versions:
3202 # SysV /etc/install, /usr/sbin/install
3203 # SunOS /usr/etc/install
3204 # IRIX /sbin/install
3206 # AmigaOS /C/install, which installs bootblocks on floppy discs
3207 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3208 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3209 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3210 # OS/2's system install, which has a completely different semantic
3211 # ./install, which can be erroneously created by make from ./install.sh.
3212 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3213 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3214 if test -z "$INSTALL"; then
3215 if test "${ac_cv_path_install+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 test -z "$as_dir" && as_dir=.
3223 # Account for people who put trailing slashes in PATH elements.
3225 ./ | .// | /cC/* | \
3226 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3227 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3230 # OSF1 and SCO ODT 3.0 have their own names for install.
3231 # Don't use installbsd from OSF since it installs stuff as root
3233 for ac_prog in ginstall scoinst install; do
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3236 if test $ac_prog = install &&
3237 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3238 # AIX install. It has an incompatible calling convention.
3240 elif test $ac_prog = install &&
3241 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3242 # program-specific install script used by HP pwplus--don't use.
3245 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3257 if test "${ac_cv_path_install+set}" = set; then
3258 INSTALL=$ac_cv_path_install
3260 # As a last resort, use the slow shell script. We don't cache a
3261 # path for INSTALL within a source directory, because that will
3262 # break other packages using the cache if that directory is
3263 # removed, or if the path is relative.
3264 INSTALL=$ac_install_sh
3267 echo "$as_me:$LINENO: result: $INSTALL" >&5
3268 echo "${ECHO_T}$INSTALL" >&6
3270 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3271 # It thinks the first close brace ends the variable substitution.
3272 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3274 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3276 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3278 echo "$as_me:$LINENO: checking whether \"\${INSTALL} -d\" creates intermediate directories" >&5
3279 echo $ECHO_N "checking whether \"\${INSTALL} -d\" creates intermediate directories... $ECHO_C" >&6
3280 if test "${ac_cv_install_d_creates_dirs+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 ac_cv_install_d_creates_dirs=no
3285 if mkdir conftestdir; then
3286 cd conftestdir 2>/dev/null
3287 ${INSTALL} -d `pwd`/dir1/dir2 >/dev/null 2>&1
3288 if test -d dir1/dir2/. ; then
3289 ac_cv_install_d_creates_dirs=yes
3296 echo "$as_me:$LINENO: result: $ac_cv_install_d_creates_dirs" >&5
3297 echo "${ECHO_T}$ac_cv_install_d_creates_dirs" >&6
3299 if test "$ac_cv_install_d_creates_dirs" = no ; then
3300 echo "$as_me:$LINENO: checking whether \"mkdir -p\" creates intermediate directories" >&5
3301 echo $ECHO_N "checking whether \"mkdir -p\" creates intermediate directories... $ECHO_C" >&6
3302 if test "${ac_cv_mkdir_p_creates_dirs+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 ac_cv_mkdir_p_creates_dirs=no
3307 if mkdir conftestdir; then
3308 cd conftestdir 2>/dev/null
3309 mkdir -p dir1/dir2 >/dev/null 2>&1
3310 if test -d dir1/dir2/. ; then
3311 ac_cv_mkdir_p_creates_dirs=yes
3318 echo "$as_me:$LINENO: result: $ac_cv_mkdir_p_creates_dirs" >&5
3319 echo "${ECHO_T}$ac_cv_mkdir_p_creates_dirs" >&6
3322 if test "$ac_cv_install_d_creates_dirs" = yes ; then
3323 INSTALL_DIRS='${INSTALL} -d'
3324 elif test "$ac_cv_mkdir_p_creates_dirs" = yes ; then
3325 INSTALL_DIRS='mkdir -p'
3328 INSTALL_DIRS='${INSTALL} -d'
3331 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3332 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3333 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3334 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 cat >conftest.make <<\_ACEOF
3339 @echo 'ac_maketemp="$(MAKE)"'
3341 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3342 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3343 if test -n "$ac_maketemp"; then
3344 eval ac_cv_prog_make_${ac_make}_set=yes
3346 eval ac_cv_prog_make_${ac_make}_set=no
3350 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3351 echo "$as_me:$LINENO: result: yes" >&5
3352 echo "${ECHO_T}yes" >&6
3355 echo "$as_me:$LINENO: result: no" >&5
3356 echo "${ECHO_T}no" >&6
3357 SET_MAKE="MAKE=${MAKE-make}"
3361 # By default, autoconf sets INSTALL_SCRIPT to '${INSTALL_PROGRAM}'.
3362 # That's wrong: it should be set to '${INSTALL}', so that one can
3363 # implement the "install-strip" target properly (strip executables,
3364 # but do not try to strip scripts.)
3366 INSTALL_SCRIPT='${INSTALL}'
3370 echo "$as_me:$LINENO: checking for egrep" >&5
3371 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3372 if test "${ac_cv_prog_egrep+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3376 then ac_cv_prog_egrep='grep -E'
3377 else ac_cv_prog_egrep='egrep'
3380 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3381 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3382 EGREP=$ac_cv_prog_egrep
3385 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3386 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3387 if test "${ac_cv_header_stdc+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 cat >conftest.$ac_ext <<_ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3409 rm -f conftest.$ac_objext
3410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3411 (eval $ac_compile) 2>conftest.er1
3413 grep -v '^ *+' conftest.er1 >conftest.err
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } &&
3418 { ac_try='test -z "$ac_c_werror_flag"
3419 || test ! -s conftest.err'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; } &&
3425 { ac_try='test -s conftest.$ac_objext'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3431 ac_cv_header_stdc=yes
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3436 ac_cv_header_stdc=no
3438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3440 if test $ac_cv_header_stdc = yes; then
3441 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3442 cat >conftest.$ac_ext <<_ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3452 $EGREP "memchr" >/dev/null 2>&1; then
3455 ac_cv_header_stdc=no
3461 if test $ac_cv_header_stdc = yes; then
3462 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3463 cat >conftest.$ac_ext <<_ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3473 $EGREP "free" >/dev/null 2>&1; then
3476 ac_cv_header_stdc=no
3482 if test $ac_cv_header_stdc = yes; then
3483 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3484 if test "$cross_compiling" = yes; then
3487 cat >conftest.$ac_ext <<_ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h. */
3494 #if ((' ' & 0x0FF) == 0x020)
3495 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3496 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3498 # define ISLOWER(c) \
3499 (('a' <= (c) && (c) <= 'i') \
3500 || ('j' <= (c) && (c) <= 'r') \
3501 || ('s' <= (c) && (c) <= 'z'))
3502 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3505 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3510 for (i = 0; i < 256; i++)
3511 if (XOR (islower (i), ISLOWER (i))
3512 || toupper (i) != TOUPPER (i))
3517 rm -f conftest$ac_exeext
3518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3519 (eval $ac_link) 2>&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3530 echo "$as_me: program exited with status $ac_status" >&5
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3535 ac_cv_header_stdc=no
3537 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3541 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3542 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3543 if test $ac_cv_header_stdc = yes; then
3545 cat >>confdefs.h <<\_ACEOF
3546 #define STDC_HEADERS 1
3551 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3561 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3562 inttypes.h stdint.h unistd.h
3564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3565 echo "$as_me:$LINENO: checking for $ac_header" >&5
3566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 cat >conftest.$ac_ext <<_ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3576 $ac_includes_default
3578 #include <$ac_header>
3580 rm -f conftest.$ac_objext
3581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3582 (eval $ac_compile) 2>conftest.er1
3584 grep -v '^ *+' conftest.er1 >conftest.err
3586 cat conftest.err >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } &&
3589 { ac_try='test -z "$ac_c_werror_flag"
3590 || test ! -s conftest.err'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; } &&
3596 { ac_try='test -s conftest.$ac_objext'
3597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; }; then
3602 eval "$as_ac_Header=yes"
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 eval "$as_ac_Header=no"
3609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3614 cat >>confdefs.h <<_ACEOF
3615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3624 for ac_header in unistd.h
3626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3628 echo "$as_me:$LINENO: checking for $ac_header" >&5
3629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3636 # Is the header compilable?
3637 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3639 cat >conftest.$ac_ext <<_ACEOF
3642 cat confdefs.h >>conftest.$ac_ext
3643 cat >>conftest.$ac_ext <<_ACEOF
3644 /* end confdefs.h. */
3645 $ac_includes_default
3646 #include <$ac_header>
3648 rm -f conftest.$ac_objext
3649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650 (eval $ac_compile) 2>conftest.er1
3652 grep -v '^ *+' conftest.er1 >conftest.err
3654 cat conftest.err >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 { ac_try='test -z "$ac_c_werror_flag"
3658 || test ! -s conftest.err'
3659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }; } &&
3664 { ac_try='test -s conftest.$ac_objext'
3665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; }; then
3670 ac_header_compiler=yes
3672 echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3675 ac_header_compiler=no
3677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3679 echo "${ECHO_T}$ac_header_compiler" >&6
3681 # Is the header present?
3682 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3684 cat >conftest.$ac_ext <<_ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3690 #include <$ac_header>
3692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3695 grep -v '^ *+' conftest.er1 >conftest.err
3697 cat conftest.err >&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } >/dev/null; then
3700 if test -s conftest.err; then
3701 ac_cpp_err=$ac_c_preproc_warn_flag
3702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3709 if test -z "$ac_cpp_err"; then
3710 ac_header_preproc=yes
3712 echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3715 ac_header_preproc=no
3717 rm -f conftest.err conftest.$ac_ext
3718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3719 echo "${ECHO_T}$ac_header_preproc" >&6
3721 # So? What about this header?
3722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3728 ac_header_preproc=yes
3731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3745 ## ------------------------------------------ ##
3746 ## Report this to the AC_PACKAGE_NAME lists. ##
3747 ## ------------------------------------------ ##
3750 sed "s/^/$as_me: WARNING: /" >&2
3753 echo "$as_me:$LINENO: checking for $ac_header" >&5
3754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 eval "$as_ac_Header=\$ac_header_preproc"
3760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3765 cat >>confdefs.h <<_ACEOF
3766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3773 echo "$as_me:$LINENO: checking for mode_t" >&5
3774 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
3775 if test "${ac_cv_type_mode_t+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 cat >conftest.$ac_ext <<_ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3784 $ac_includes_default
3790 if (sizeof (mode_t))
3796 rm -f conftest.$ac_objext
3797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3798 (eval $ac_compile) 2>conftest.er1
3800 grep -v '^ *+' conftest.er1 >conftest.err
3802 cat conftest.err >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } &&
3805 { ac_try='test -z "$ac_c_werror_flag"
3806 || test ! -s conftest.err'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; } &&
3812 { ac_try='test -s conftest.$ac_objext'
3813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); }; }; then
3818 ac_cv_type_mode_t=yes
3820 echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3823 ac_cv_type_mode_t=no
3825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3827 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
3828 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
3829 if test $ac_cv_type_mode_t = yes; then
3833 cat >>confdefs.h <<_ACEOF
3839 echo "$as_me:$LINENO: checking for pid_t" >&5
3840 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3841 if test "${ac_cv_type_pid_t+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 cat >conftest.$ac_ext <<_ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3850 $ac_includes_default
3862 rm -f conftest.$ac_objext
3863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3864 (eval $ac_compile) 2>conftest.er1
3866 grep -v '^ *+' conftest.er1 >conftest.err
3868 cat conftest.err >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } &&
3871 { ac_try='test -z "$ac_c_werror_flag"
3872 || test ! -s conftest.err'
3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; } &&
3878 { ac_try='test -s conftest.$ac_objext'
3879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; }; then
3884 ac_cv_type_pid_t=yes
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3893 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3894 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3895 if test $ac_cv_type_pid_t = yes; then
3899 cat >>confdefs.h <<_ACEOF
3905 echo "$as_me:$LINENO: checking for size_t" >&5
3906 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3907 if test "${ac_cv_type_size_t+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 cat >conftest.$ac_ext <<_ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3916 $ac_includes_default
3922 if (sizeof (size_t))
3928 rm -f conftest.$ac_objext
3929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3930 (eval $ac_compile) 2>conftest.er1
3932 grep -v '^ *+' conftest.er1 >conftest.err
3934 cat conftest.err >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } &&
3937 { ac_try='test -z "$ac_c_werror_flag"
3938 || test ! -s conftest.err'
3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; } &&
3944 { ac_try='test -s conftest.$ac_objext'
3945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); }; }; then
3950 ac_cv_type_size_t=yes
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3955 ac_cv_type_size_t=no
3957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3959 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3960 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3961 if test $ac_cv_type_size_t = yes; then
3965 cat >>confdefs.h <<_ACEOF
3966 #define size_t unsigned
3971 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3972 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3973 if test "${ac_cv_type_signal+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 cat >conftest.$ac_ext <<_ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3982 #include <sys/types.h>
3988 extern "C" void (*signal (int, void (*)(int)))(int);
3990 void (*signal ()) ();
4001 rm -f conftest.$ac_objext
4002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4003 (eval $ac_compile) 2>conftest.er1
4005 grep -v '^ *+' conftest.er1 >conftest.err
4007 cat conftest.err >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } &&
4010 { ac_try='test -z "$ac_c_werror_flag"
4011 || test ! -s conftest.err'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; } &&
4017 { ac_try='test -s conftest.$ac_objext'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then
4023 ac_cv_type_signal=void
4025 echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4028 ac_cv_type_signal=int
4030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4032 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4033 echo "${ECHO_T}$ac_cv_type_signal" >&6
4035 cat >>confdefs.h <<_ACEOF
4036 #define RETSIGTYPE $ac_cv_type_signal
4040 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4041 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4042 if test "${ac_cv_header_time+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 cat >conftest.$ac_ext <<_ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4051 #include <sys/types.h>
4052 #include <sys/time.h>
4058 if ((struct tm *) 0)
4064 rm -f conftest.$ac_objext
4065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>conftest.er1
4068 grep -v '^ *+' conftest.er1 >conftest.err
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } &&
4073 { ac_try='test -z "$ac_c_werror_flag"
4074 || test ! -s conftest.err'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; } &&
4080 { ac_try='test -s conftest.$ac_objext'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4086 ac_cv_header_time=yes
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4091 ac_cv_header_time=no
4093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4095 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4096 echo "${ECHO_T}$ac_cv_header_time" >&6
4097 if test $ac_cv_header_time = yes; then
4099 cat >>confdefs.h <<\_ACEOF
4100 #define TIME_WITH_SYS_TIME 1
4105 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4106 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4107 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 cat >conftest.$ac_ext <<_ACEOF
4113 cat confdefs.h >>conftest.$ac_ext
4114 cat >>conftest.$ac_ext <<_ACEOF
4115 /* end confdefs.h. */
4116 #include <sys/types.h>
4117 #include <sys/wait.h>
4119 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4122 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4130 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4135 rm -f conftest.$ac_objext
4136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4137 (eval $ac_compile) 2>conftest.er1
4139 grep -v '^ *+' conftest.er1 >conftest.err
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } &&
4144 { ac_try='test -z "$ac_c_werror_flag"
4145 || test ! -s conftest.err'
4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; } &&
4151 { ac_try='test -s conftest.$ac_objext'
4152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
4157 ac_cv_header_sys_wait_h=yes
4159 echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4162 ac_cv_header_sys_wait_h=no
4164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4166 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4167 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4168 if test $ac_cv_header_sys_wait_h = yes; then
4170 cat >>confdefs.h <<\_ACEOF
4171 #define HAVE_SYS_WAIT_H 1
4182 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4183 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4184 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4185 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 cat >conftest.$ac_ext <<_ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h. */
4195 #include <sys/types.h>
4207 rm -f conftest.$ac_objext
4208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4209 (eval $ac_compile) 2>conftest.er1
4211 grep -v '^ *+' conftest.er1 >conftest.err
4213 cat conftest.err >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } &&
4216 { ac_try='test -z "$ac_c_werror_flag"
4217 || test ! -s conftest.err'
4218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }; } &&
4223 { ac_try='test -s conftest.$ac_objext'
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; }; then
4229 eval "$as_ac_Header=yes"
4231 echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4234 eval "$as_ac_Header=no"
4236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4241 cat >>confdefs.h <<_ACEOF
4242 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4245 ac_header_dirent=$ac_hdr; break
4249 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4250 if test $ac_header_dirent = dirent.h; then
4251 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4252 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4253 if test "${ac_cv_search_opendir+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 ac_func_search_save_LIBS=$LIBS
4257 ac_cv_search_opendir=no
4258 cat >conftest.$ac_ext <<_ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4265 /* Override any gcc2 internal prototype to avoid an error. */
4269 /* We use char because int might match the return type of a gcc2
4270 builtin and then its argument prototype would still apply. */
4280 rm -f conftest.$ac_objext conftest$ac_exeext
4281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4282 (eval $ac_link) 2>conftest.er1
4284 grep -v '^ *+' conftest.er1 >conftest.err
4286 cat conftest.err >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } &&
4289 { ac_try='test -z "$ac_c_werror_flag"
4290 || test ! -s conftest.err'
4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; } &&
4296 { ac_try='test -s conftest$ac_exeext'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4302 ac_cv_search_opendir="none required"
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4308 rm -f conftest.err conftest.$ac_objext \
4309 conftest$ac_exeext conftest.$ac_ext
4310 if test "$ac_cv_search_opendir" = no; then
4311 for ac_lib in dir; do
4312 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4313 cat >conftest.$ac_ext <<_ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4320 /* Override any gcc2 internal prototype to avoid an error. */
4324 /* We use char because int might match the return type of a gcc2
4325 builtin and then its argument prototype would still apply. */
4335 rm -f conftest.$ac_objext conftest$ac_exeext
4336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4337 (eval $ac_link) 2>conftest.er1
4339 grep -v '^ *+' conftest.er1 >conftest.err
4341 cat conftest.err >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } &&
4344 { ac_try='test -z "$ac_c_werror_flag"
4345 || test ! -s conftest.err'
4346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); }; } &&
4351 { ac_try='test -s conftest$ac_exeext'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; }; then
4357 ac_cv_search_opendir="-l$ac_lib"
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4364 rm -f conftest.err conftest.$ac_objext \
4365 conftest$ac_exeext conftest.$ac_ext
4368 LIBS=$ac_func_search_save_LIBS
4370 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4371 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4372 if test "$ac_cv_search_opendir" != no; then
4373 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4378 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4379 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4380 if test "${ac_cv_search_opendir+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 ac_func_search_save_LIBS=$LIBS
4384 ac_cv_search_opendir=no
4385 cat >conftest.$ac_ext <<_ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h. */
4392 /* Override any gcc2 internal prototype to avoid an error. */
4396 /* We use char because int might match the return type of a gcc2
4397 builtin and then its argument prototype would still apply. */
4407 rm -f conftest.$ac_objext conftest$ac_exeext
4408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4409 (eval $ac_link) 2>conftest.er1
4411 grep -v '^ *+' conftest.er1 >conftest.err
4413 cat conftest.err >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } &&
4416 { ac_try='test -z "$ac_c_werror_flag"
4417 || test ! -s conftest.err'
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; } &&
4423 { ac_try='test -s conftest$ac_exeext'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4429 ac_cv_search_opendir="none required"
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4435 rm -f conftest.err conftest.$ac_objext \
4436 conftest$ac_exeext conftest.$ac_ext
4437 if test "$ac_cv_search_opendir" = no; then
4439 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4440 cat >conftest.$ac_ext <<_ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4447 /* Override any gcc2 internal prototype to avoid an error. */
4451 /* We use char because int might match the return type of a gcc2
4452 builtin and then its argument prototype would still apply. */
4462 rm -f conftest.$ac_objext conftest$ac_exeext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4464 (eval $ac_link) 2>conftest.er1
4466 grep -v '^ *+' conftest.er1 >conftest.err
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } &&
4471 { ac_try='test -z "$ac_c_werror_flag"
4472 || test ! -s conftest.err'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; } &&
4478 { ac_try='test -s conftest$ac_exeext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 ac_cv_search_opendir="-l$ac_lib"
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4491 rm -f conftest.err conftest.$ac_objext \
4492 conftest$ac_exeext conftest.$ac_ext
4495 LIBS=$ac_func_search_save_LIBS
4497 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4498 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4499 if test "$ac_cv_search_opendir" != no; then
4500 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4506 echo "$as_me:$LINENO: checking how to call gettimeofday" >&5
4507 echo $ECHO_N "checking how to call gettimeofday... $ECHO_C" >&6
4508 if test "${ac_cv_gettimeofday_args+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 cat >conftest.$ac_ext <<_ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4518 #include <sys/time.h>
4522 struct timeval tv; struct timezone tzp;
4523 gettimeofday(&tv, &tzp);
4528 rm -f conftest.$ac_objext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4530 (eval $ac_compile) 2>conftest.er1
4532 grep -v '^ *+' conftest.er1 >conftest.err
4534 cat conftest.err >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } &&
4537 { ac_try='test -z "$ac_c_werror_flag"
4538 || test ! -s conftest.err'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; } &&
4544 { ac_try='test -s conftest.$ac_objext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 ac_gettimeofday_args=2
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4555 cat >conftest.$ac_ext <<_ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h. */
4562 #include <sys/time.h>
4566 struct timeval tv; gettimeofday(&tv);
4571 rm -f conftest.$ac_objext
4572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4573 (eval $ac_compile) 2>conftest.er1
4575 grep -v '^ *+' conftest.er1 >conftest.err
4577 cat conftest.err >&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); } &&
4580 { ac_try='test -z "$ac_c_werror_flag"
4581 || test ! -s conftest.err'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; } &&
4587 { ac_try='test -s conftest.$ac_objext'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
4593 ac_gettimeofday_args=1
4595 echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4598 ac_gettimeofday_args=0
4600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4603 ac_cv_gettimeofday_args=$ac_gettimeofday_args
4606 ac_gettimeofday_args=$ac_cv_gettimeofday_args
4607 if test "$ac_gettimeofday_args" = 1 ; then
4608 cat >>confdefs.h <<\_ACEOF
4609 #define HAVE_GETTIMEOFDAY 1
4612 echo "$as_me:$LINENO: result: one argument" >&5
4613 echo "${ECHO_T}one argument" >&6
4614 elif test "$ac_gettimeofday_args" = 2 ; then
4615 cat >>confdefs.h <<\_ACEOF
4616 #define HAVE_GETTIMEOFDAY 1
4619 cat >>confdefs.h <<\_ACEOF
4620 #define GETTIMEOFDAY_TWO_ARGS 1
4623 echo "$as_me:$LINENO: result: two arguments" >&5
4624 echo "${ECHO_T}two arguments" >&6
4626 echo "$as_me:$LINENO: result: unknown" >&5
4627 echo "${ECHO_T}unknown" >&6
4639 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv sbrk
4641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4642 echo "$as_me:$LINENO: checking for $ac_func" >&5
4643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4644 if eval "test \"\${$as_ac_var+set}\" = set"; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4647 cat >conftest.$ac_ext <<_ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4655 #define $ac_func innocuous_$ac_func
4657 /* System header to define __stub macros and hopefully few prototypes,
4658 which can conflict with char $ac_func (); below.
4659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4660 <limits.h> exists even on freestanding compilers. */
4663 # include <limits.h>
4665 # include <assert.h>
4670 /* Override any gcc2 internal prototype to avoid an error. */
4675 /* We use char because int might match the return type of a gcc2
4676 builtin and then its argument prototype would still apply. */
4678 /* The GNU C library defines this for functions which it implements
4679 to always fail with ENOSYS. Some functions are actually named
4680 something starting with __ and the normal name is an alias. */
4681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4684 char (*f) () = $ac_func;
4693 return f != $ac_func;
4698 rm -f conftest.$ac_objext conftest$ac_exeext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4700 (eval $ac_link) 2>conftest.er1
4702 grep -v '^ *+' conftest.er1 >conftest.err
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try='test -z "$ac_c_werror_flag"
4708 || test ! -s conftest.err'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; } &&
4714 { ac_try='test -s conftest$ac_exeext'
4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); }; }; then
4720 eval "$as_ac_var=yes"
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4725 eval "$as_ac_var=no"
4727 rm -f conftest.err conftest.$ac_objext \
4728 conftest$ac_exeext conftest.$ac_ext
4730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4732 if test `eval echo '${'$as_ac_var'}'` = yes; then
4733 cat >>confdefs.h <<_ACEOF
4734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4744 for ac_func in sigaction syslog realpath setrlimit
4746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4747 echo "$as_me:$LINENO: checking for $ac_func" >&5
4748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4749 if eval "test \"\${$as_ac_var+set}\" = set"; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 cat >conftest.$ac_ext <<_ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4760 #define $ac_func innocuous_$ac_func
4762 /* System header to define __stub macros and hopefully few prototypes,
4763 which can conflict with char $ac_func (); below.
4764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4765 <limits.h> exists even on freestanding compilers. */
4768 # include <limits.h>
4770 # include <assert.h>
4775 /* Override any gcc2 internal prototype to avoid an error. */
4780 /* We use char because int might match the return type of a gcc2
4781 builtin and then its argument prototype would still apply. */
4783 /* The GNU C library defines this for functions which it implements
4784 to always fail with ENOSYS. Some functions are actually named
4785 something starting with __ and the normal name is an alias. */
4786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4789 char (*f) () = $ac_func;
4798 return f != $ac_func;
4803 rm -f conftest.$ac_objext conftest$ac_exeext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4805 (eval $ac_link) 2>conftest.er1
4807 grep -v '^ *+' conftest.er1 >conftest.err
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } &&
4812 { ac_try='test -z "$ac_c_werror_flag"
4813 || test ! -s conftest.err'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; } &&
4819 { ac_try='test -s conftest$ac_exeext'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4825 eval "$as_ac_var=yes"
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4830 eval "$as_ac_var=no"
4832 rm -f conftest.err conftest.$ac_objext \
4833 conftest$ac_exeext conftest.$ac_ext
4835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4837 if test `eval echo '${'$as_ac_var'}'` = yes; then
4838 cat >>confdefs.h <<_ACEOF
4839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4845 echo "$as_me:$LINENO: checking for struct icmp" >&5
4846 echo $ECHO_N "checking for struct icmp... $ECHO_C" >&6
4847 if test "${ac_cv_have_icmp+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4850 cat >conftest.$ac_ext <<_ACEOF
4853 cat confdefs.h >>conftest.$ac_ext
4854 cat >>conftest.$ac_ext <<_ACEOF
4855 /* end confdefs.h. */
4863 #include <sys/types.h>
4864 #include <sys/time.h>
4865 #include <sys/ipc.h>
4866 #include <sys/shm.h>
4867 #include <sys/socket.h>
4868 #include <netinet/in_systm.h>
4869 #include <netinet/in.h>
4870 #include <netinet/ip.h>
4871 #include <netinet/ip_icmp.h>
4872 #include <netinet/udp.h>
4873 #include <arpa/inet.h>
4880 struct sockaddr_in si;
4882 i.icmp_type = ICMP_ECHO;
4887 si.sin_family = AF_INET;
4888 #if defined(__DECC) || defined(_IP_VHL)
4898 rm -f conftest.$ac_objext
4899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4900 (eval $ac_compile) 2>conftest.er1
4902 grep -v '^ *+' conftest.er1 >conftest.err
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } &&
4907 { ac_try='test -z "$ac_c_werror_flag"
4908 || test ! -s conftest.err'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; } &&
4914 { ac_try='test -s conftest.$ac_objext'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4929 echo "$as_me:$LINENO: result: $ac_cv_have_icmp" >&5
4930 echo "${ECHO_T}$ac_cv_have_icmp" >&6
4931 if test "$ac_cv_have_icmp" = yes ; then
4932 cat >>confdefs.h <<\_ACEOF
4937 echo "$as_me:$LINENO: checking for struct icmphdr" >&5
4938 echo $ECHO_N "checking for struct icmphdr... $ECHO_C" >&6
4939 if test "${ac_cv_have_icmphdr+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 cat >conftest.$ac_ext <<_ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4955 #include <sys/types.h>
4956 #include <sys/time.h>
4957 #include <sys/ipc.h>
4958 #include <sys/shm.h>
4959 #include <sys/socket.h>
4960 #include <netinet/in_systm.h>
4961 #include <netinet/in.h>
4962 #include <netinet/ip.h>
4963 #include <netinet/ip_icmp.h>
4964 #include <netinet/udp.h>
4965 #include <arpa/inet.h>
4972 struct sockaddr_in si;
4978 i.un.echo.sequence = 0;
4979 si.sin_family = AF_INET;
4985 rm -f conftest.$ac_objext
4986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4987 (eval $ac_compile) 2>conftest.er1
4989 grep -v '^ *+' conftest.er1 >conftest.err
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } &&
4994 { ac_try='test -z "$ac_c_werror_flag"
4995 || test ! -s conftest.err'
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; } &&
5001 { ac_try='test -s conftest.$ac_objext'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; }; then
5007 ac_cv_have_icmphdr=yes
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5012 ac_cv_have_icmphdr=no
5014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5016 echo "$as_me:$LINENO: result: $ac_cv_have_icmphdr" >&5
5017 echo "${ECHO_T}$ac_cv_have_icmphdr" >&6
5018 if test "$ac_cv_have_icmphdr" = yes ; then
5019 cat >>confdefs.h <<\_ACEOF
5020 #define HAVE_ICMPHDR 1
5026 for ac_header in crypt.h sys/select.h
5028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5030 echo "$as_me:$LINENO: checking for $ac_header" >&5
5031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5038 # Is the header compilable?
5039 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5041 cat >conftest.$ac_ext <<_ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h. */
5047 $ac_includes_default
5048 #include <$ac_header>
5050 rm -f conftest.$ac_objext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052 (eval $ac_compile) 2>conftest.er1
5054 grep -v '^ *+' conftest.er1 >conftest.err
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } &&
5059 { ac_try='test -z "$ac_c_werror_flag"
5060 || test ! -s conftest.err'
5061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); }; } &&
5066 { ac_try='test -s conftest.$ac_objext'
5067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }; }; then
5072 ac_header_compiler=yes
5074 echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5077 ac_header_compiler=no
5079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5080 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5081 echo "${ECHO_T}$ac_header_compiler" >&6
5083 # Is the header present?
5084 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5086 cat >conftest.$ac_ext <<_ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092 #include <$ac_header>
5094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5097 grep -v '^ *+' conftest.er1 >conftest.err
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } >/dev/null; then
5102 if test -s conftest.err; then
5103 ac_cpp_err=$ac_c_preproc_warn_flag
5104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5111 if test -z "$ac_cpp_err"; then
5112 ac_header_preproc=yes
5114 echo "$as_me: failed program was:" >&5
5115 sed 's/^/| /' conftest.$ac_ext >&5
5117 ac_header_preproc=no
5119 rm -f conftest.err conftest.$ac_ext
5120 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5121 echo "${ECHO_T}$ac_header_preproc" >&6
5123 # So? What about this header?
5124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5130 ac_header_preproc=yes
5133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5140 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5147 ## ------------------------------------------ ##
5148 ## Report this to the AC_PACKAGE_NAME lists. ##
5149 ## ------------------------------------------ ##
5152 sed "s/^/$as_me: WARNING: /" >&2
5155 echo "$as_me:$LINENO: checking for $ac_header" >&5
5156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 eval "$as_ac_Header=\$ac_header_preproc"
5162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5167 cat >>confdefs.h <<_ACEOF
5168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5175 for ac_prog in perl5 perl
5177 # Extract the first word of "$ac_prog", so it can be a program name with args.
5178 set dummy $ac_prog; ac_word=$2
5179 echo "$as_me:$LINENO: checking for $ac_word" >&5
5180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5181 if test "${ac_cv_path_PERL+set}" = set; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 PERL=$ac_cv_path_PERL
5208 if test -n "$PERL"; then
5209 echo "$as_me:$LINENO: result: $PERL" >&5
5210 echo "${ECHO_T}$PERL" >&6
5212 echo "$as_me:$LINENO: result: no" >&5
5213 echo "${ECHO_T}no" >&6
5216 test -n "$PERL" && break
5219 if test -z "$PERL" ; then
5222 echo "$as_me:$LINENO: checking perl version" >&5
5223 echo $ECHO_N "checking perl version... $ECHO_C" >&6
5224 if test "${ac_cv_perl_version+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 ac_cv_perl_version=`$PERL -e "$perl_version_cmd"`
5229 echo "$as_me:$LINENO: result: $ac_cv_perl_version" >&5
5230 echo "${ECHO_T}$ac_cv_perl_version" >&6
5231 PERL_VERSION=$ac_cv_perl_version
5235 if test -z "$PERL" ; then
5236 # don't let it be blank...
5240 echo "$as_me:$LINENO: checking for X" >&5
5241 echo $ECHO_N "checking for X... $ECHO_C" >&6
5244 # Check whether --with-x or --without-x was given.
5245 if test "${with_x+set}" = set; then
5249 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5250 if test "x$with_x" = xno; then
5251 # The user explicitly disabled X.
5254 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5255 # Both variables are already set.
5258 if test "${ac_cv_have_x+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 # One or both of the vars are not set, and there is no cached value.
5262 ac_x_includes=no ac_x_libraries=no
5264 if mkdir conftest.dir; then
5266 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5267 cat >Imakefile <<'_ACEOF'
5269 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5271 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5272 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5273 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5274 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5275 for ac_extension in a so sl; do
5276 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5277 test -f $ac_im_libdir/libX11.$ac_extension; then
5278 ac_im_usrlibdir=$ac_im_libdir; break
5281 # Screen out bogus values from the imake configuration. They are
5282 # bogus both because they are the default anyway, and because
5283 # using them would break gcc on systems where it needs fixed includes.
5284 case $ac_im_incroot in
5286 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5288 case $ac_im_usrlibdir in
5290 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5297 # Standard set of common directories for X headers.
5298 # Check X11 before X11Rn because it is often a symlink to the current release.
5310 /usr/local/X11/include
5311 /usr/local/X11R6/include
5312 /usr/local/X11R5/include
5313 /usr/local/X11R4/include
5315 /usr/local/include/X11
5316 /usr/local/include/X11R6
5317 /usr/local/include/X11R5
5318 /usr/local/include/X11R4
5322 /usr/XFree86/include/X11
5326 /usr/unsupported/include
5328 /usr/local/x11r5/include
5329 /usr/lpp/Xamples/include
5331 /usr/openwin/include
5332 /usr/openwin/share/include'
5334 if test "$ac_x_includes" = no; then
5335 # Guess where to find include files, by looking for Intrinsic.h.
5336 # First, try using that file with no special directory specified.
5337 cat >conftest.$ac_ext <<_ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5343 #include <X11/Intrinsic.h>
5345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5348 grep -v '^ *+' conftest.er1 >conftest.err
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } >/dev/null; then
5353 if test -s conftest.err; then
5354 ac_cpp_err=$ac_c_preproc_warn_flag
5355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5362 if test -z "$ac_cpp_err"; then
5363 # We can compile using X headers with no special include directory.
5366 echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.$ac_ext >&5
5369 for ac_dir in $ac_x_header_dirs; do
5370 if test -r "$ac_dir/X11/Intrinsic.h"; then
5371 ac_x_includes=$ac_dir
5376 rm -f conftest.err conftest.$ac_ext
5377 fi # $ac_x_includes = no
5379 if test "$ac_x_libraries" = no; then
5380 # Check for the libraries.
5381 # See if we find them without any special options.
5382 # Don't add to $LIBS permanently.
5385 cat >conftest.$ac_ext <<_ACEOF
5388 cat confdefs.h >>conftest.$ac_ext
5389 cat >>conftest.$ac_ext <<_ACEOF
5390 /* end confdefs.h. */
5391 #include <X11/Intrinsic.h>
5400 rm -f conftest.$ac_objext conftest$ac_exeext
5401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5402 (eval $ac_link) 2>conftest.er1
5404 grep -v '^ *+' conftest.er1 >conftest.err
5406 cat conftest.err >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } &&
5409 { ac_try='test -z "$ac_c_werror_flag"
5410 || test ! -s conftest.err'
5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }; } &&
5416 { ac_try='test -s conftest$ac_exeext'
5417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; }; then
5423 # We can link X programs with no special library path.
5426 echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5430 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5432 # Don't even attempt the hair of trying to link an X program!
5433 for ac_extension in a so sl; do
5434 if test -r $ac_dir/libXt.$ac_extension; then
5435 ac_x_libraries=$ac_dir
5441 rm -f conftest.err conftest.$ac_objext \
5442 conftest$ac_exeext conftest.$ac_ext
5443 fi # $ac_x_libraries = no
5445 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5446 # Didn't find X anywhere. Cache the known absence of X.
5447 ac_cv_have_x="have_x=no"
5449 # Record where we found X for the cache.
5450 ac_cv_have_x="have_x=yes \
5451 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5456 eval "$ac_cv_have_x"
5459 if test "$have_x" != yes; then
5460 echo "$as_me:$LINENO: result: $have_x" >&5
5461 echo "${ECHO_T}$have_x" >&6
5464 # If each of the values was on the command line, it overrides each guess.
5465 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5466 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5467 # Update the cache value to reflect the command line values.
5468 ac_cv_have_x="have_x=yes \
5469 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5470 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5471 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5474 if test "$no_x" = yes; then
5475 # Not all programs may use this symbol, but it does not hurt to define it.
5477 cat >>confdefs.h <<\_ACEOF
5478 #define X_DISPLAY_MISSING 1
5481 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5483 if test -n "$x_includes"; then
5484 X_CFLAGS="$X_CFLAGS -I$x_includes"
5487 # It would also be nice to do this for all -L options, not just this one.
5488 if test -n "$x_libraries"; then
5489 X_LIBS="$X_LIBS -L$x_libraries"
5490 # For Solaris; some versions of Sun CC require a space after -R and
5491 # others require no space. Words are not sufficient . . . .
5492 case `(uname -sr) 2>/dev/null` in
5494 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5495 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5496 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5497 cat >conftest.$ac_ext <<_ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5512 rm -f conftest.$ac_objext conftest$ac_exeext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5514 (eval $ac_link) 2>conftest.er1
5516 grep -v '^ *+' conftest.er1 >conftest.err
5518 cat conftest.err >&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try='test -z "$ac_c_werror_flag"
5522 || test ! -s conftest.err'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; } &&
5528 { ac_try='test -s conftest$ac_exeext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5541 rm -f conftest.err conftest.$ac_objext \
5542 conftest$ac_exeext conftest.$ac_ext
5543 if test $ac_R_nospace = yes; then
5544 echo "$as_me:$LINENO: result: no" >&5
5545 echo "${ECHO_T}no" >&6
5546 X_LIBS="$X_LIBS -R$x_libraries"
5548 LIBS="$ac_xsave_LIBS -R $x_libraries"
5549 cat >conftest.$ac_ext <<_ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h. */
5564 rm -f conftest.$ac_objext conftest$ac_exeext
5565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5566 (eval $ac_link) 2>conftest.er1
5568 grep -v '^ *+' conftest.er1 >conftest.err
5570 cat conftest.err >&5
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); } &&
5573 { ac_try='test -z "$ac_c_werror_flag"
5574 || test ! -s conftest.err'
5575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }; } &&
5580 { ac_try='test -s conftest$ac_exeext'
5581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); }; }; then
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.$ac_ext >&5
5593 rm -f conftest.err conftest.$ac_objext \
5594 conftest$ac_exeext conftest.$ac_ext
5595 if test $ac_R_space = yes; then
5596 echo "$as_me:$LINENO: result: yes" >&5
5597 echo "${ECHO_T}yes" >&6
5598 X_LIBS="$X_LIBS -R $x_libraries"
5600 echo "$as_me:$LINENO: result: neither works" >&5
5601 echo "${ECHO_T}neither works" >&6
5608 # Check for system-dependent libraries X programs must link with.
5609 # Do this before checking for the system-independent R6 libraries
5610 # (-lICE), since we may need -lsocket or whatever for X linking.
5612 if test "$ISC" = yes; then
5613 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5615 # Martyn Johnson says this is needed for Ultrix, if the X
5616 # libraries were built with DECnet support. And Karl Berry says
5617 # the Alpha needs dnet_stub (dnet does not exist).
5618 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5619 cat >conftest.$ac_ext <<_ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h. */
5626 /* Override any gcc2 internal prototype to avoid an error. */
5630 /* We use char because int might match the return type of a gcc2
5631 builtin and then its argument prototype would still apply. */
5632 char XOpenDisplay ();
5641 rm -f conftest.$ac_objext conftest$ac_exeext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5643 (eval $ac_link) 2>conftest.er1
5645 grep -v '^ *+' conftest.er1 >conftest.err
5647 cat conftest.err >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } &&
5650 { ac_try='test -z "$ac_c_werror_flag"
5651 || test ! -s conftest.err'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; } &&
5657 { ac_try='test -s conftest$ac_exeext'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; }; then
5665 echo "$as_me: failed program was:" >&5
5666 sed 's/^/| /' conftest.$ac_ext >&5
5668 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5669 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5670 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 ac_check_lib_save_LIBS=$LIBS
5675 cat >conftest.$ac_ext <<_ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5682 /* Override any gcc2 internal prototype to avoid an error. */
5686 /* We use char because int might match the return type of a gcc2
5687 builtin and then its argument prototype would still apply. */
5697 rm -f conftest.$ac_objext conftest$ac_exeext
5698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5699 (eval $ac_link) 2>conftest.er1
5701 grep -v '^ *+' conftest.er1 >conftest.err
5703 cat conftest.err >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } &&
5706 { ac_try='test -z "$ac_c_werror_flag"
5707 || test ! -s conftest.err'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; } &&
5713 { ac_try='test -s conftest$ac_exeext'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5719 ac_cv_lib_dnet_dnet_ntoa=yes
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5724 ac_cv_lib_dnet_dnet_ntoa=no
5726 rm -f conftest.err conftest.$ac_objext \
5727 conftest$ac_exeext conftest.$ac_ext
5728 LIBS=$ac_check_lib_save_LIBS
5730 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5731 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5732 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5733 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5736 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5737 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5738 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5739 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 ac_check_lib_save_LIBS=$LIBS
5743 LIBS="-ldnet_stub $LIBS"
5744 cat >conftest.$ac_ext <<_ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h. */
5751 /* Override any gcc2 internal prototype to avoid an error. */
5755 /* We use char because int might match the return type of a gcc2
5756 builtin and then its argument prototype would still apply. */
5766 rm -f conftest.$ac_objext conftest$ac_exeext
5767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5768 (eval $ac_link) 2>conftest.er1
5770 grep -v '^ *+' conftest.er1 >conftest.err
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try='test -z "$ac_c_werror_flag"
5776 || test ! -s conftest.err'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; } &&
5782 { ac_try='test -s conftest$ac_exeext'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; }; then
5788 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5793 ac_cv_lib_dnet_stub_dnet_ntoa=no
5795 rm -f conftest.err conftest.$ac_objext \
5796 conftest$ac_exeext conftest.$ac_ext
5797 LIBS=$ac_check_lib_save_LIBS
5799 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5800 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5801 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5802 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5807 rm -f conftest.err conftest.$ac_objext \
5808 conftest$ac_exeext conftest.$ac_ext
5809 LIBS="$ac_xsave_LIBS"
5811 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5812 # to get the SysV transport functions.
5813 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5815 # The nsl library prevents programs from opening the X display
5816 # on Irix 5.2, according to T.E. Dickey.
5817 # The functions gethostbyname, getservbyname, and inet_addr are
5818 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5819 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5820 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5821 if test "${ac_cv_func_gethostbyname+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5824 cat >conftest.$ac_ext <<_ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5830 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5832 #define gethostbyname innocuous_gethostbyname
5834 /* System header to define __stub macros and hopefully few prototypes,
5835 which can conflict with char gethostbyname (); below.
5836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5837 <limits.h> exists even on freestanding compilers. */
5840 # include <limits.h>
5842 # include <assert.h>
5845 #undef gethostbyname
5847 /* Override any gcc2 internal prototype to avoid an error. */
5852 /* We use char because int might match the return type of a gcc2
5853 builtin and then its argument prototype would still apply. */
5854 char gethostbyname ();
5855 /* The GNU C library defines this for functions which it implements
5856 to always fail with ENOSYS. Some functions are actually named
5857 something starting with __ and the normal name is an alias. */
5858 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5861 char (*f) () = gethostbyname;
5870 return f != gethostbyname;
5875 rm -f conftest.$ac_objext conftest$ac_exeext
5876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5877 (eval $ac_link) 2>conftest.er1
5879 grep -v '^ *+' conftest.er1 >conftest.err
5881 cat conftest.err >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } &&
5884 { ac_try='test -z "$ac_c_werror_flag"
5885 || test ! -s conftest.err'
5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); }; } &&
5891 { ac_try='test -s conftest$ac_exeext'
5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); }; }; then
5897 ac_cv_func_gethostbyname=yes
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5902 ac_cv_func_gethostbyname=no
5904 rm -f conftest.err conftest.$ac_objext \
5905 conftest$ac_exeext conftest.$ac_ext
5907 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5908 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5910 if test $ac_cv_func_gethostbyname = no; then
5911 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5912 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5913 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 ac_check_lib_save_LIBS=$LIBS
5918 cat >conftest.$ac_ext <<_ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5925 /* Override any gcc2 internal prototype to avoid an error. */
5929 /* We use char because int might match the return type of a gcc2
5930 builtin and then its argument prototype would still apply. */
5931 char gethostbyname ();
5940 rm -f conftest.$ac_objext conftest$ac_exeext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5942 (eval $ac_link) 2>conftest.er1
5944 grep -v '^ *+' conftest.er1 >conftest.err
5946 cat conftest.err >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } &&
5949 { ac_try='test -z "$ac_c_werror_flag"
5950 || test ! -s conftest.err'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; } &&
5956 { ac_try='test -s conftest$ac_exeext'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; }; then
5962 ac_cv_lib_nsl_gethostbyname=yes
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5967 ac_cv_lib_nsl_gethostbyname=no
5969 rm -f conftest.err conftest.$ac_objext \
5970 conftest$ac_exeext conftest.$ac_ext
5971 LIBS=$ac_check_lib_save_LIBS
5973 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5974 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5975 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5976 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5979 if test $ac_cv_lib_nsl_gethostbyname = no; then
5980 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5981 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5982 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 ac_check_lib_save_LIBS=$LIBS
5987 cat >conftest.$ac_ext <<_ACEOF
5990 cat confdefs.h >>conftest.$ac_ext
5991 cat >>conftest.$ac_ext <<_ACEOF
5992 /* end confdefs.h. */
5994 /* Override any gcc2 internal prototype to avoid an error. */
5998 /* We use char because int might match the return type of a gcc2
5999 builtin and then its argument prototype would still apply. */
6000 char gethostbyname ();
6009 rm -f conftest.$ac_objext conftest$ac_exeext
6010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6011 (eval $ac_link) 2>conftest.er1
6013 grep -v '^ *+' conftest.er1 >conftest.err
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } &&
6018 { ac_try='test -z "$ac_c_werror_flag"
6019 || test ! -s conftest.err'
6020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; } &&
6025 { ac_try='test -s conftest$ac_exeext'
6026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); }; }; then
6031 ac_cv_lib_bsd_gethostbyname=yes
6033 echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 ac_cv_lib_bsd_gethostbyname=no
6038 rm -f conftest.err conftest.$ac_objext \
6039 conftest$ac_exeext conftest.$ac_ext
6040 LIBS=$ac_check_lib_save_LIBS
6042 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6043 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6044 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6045 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6051 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6052 # socket/setsockopt and other routines are undefined under SCO ODT
6053 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6054 # on later versions), says Simon Leinen: it contains gethostby*
6055 # variants that don't use the name server (or something). -lsocket
6056 # must be given before -lnsl if both are needed. We assume that
6057 # if connect needs -lnsl, so does gethostbyname.
6058 echo "$as_me:$LINENO: checking for connect" >&5
6059 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6060 if test "${ac_cv_func_connect+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 cat >conftest.$ac_ext <<_ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6071 #define connect innocuous_connect
6073 /* System header to define __stub macros and hopefully few prototypes,
6074 which can conflict with char connect (); below.
6075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6076 <limits.h> exists even on freestanding compilers. */
6079 # include <limits.h>
6081 # include <assert.h>
6086 /* Override any gcc2 internal prototype to avoid an error. */
6091 /* We use char because int might match the return type of a gcc2
6092 builtin and then its argument prototype would still apply. */
6094 /* The GNU C library defines this for functions which it implements
6095 to always fail with ENOSYS. Some functions are actually named
6096 something starting with __ and the normal name is an alias. */
6097 #if defined (__stub_connect) || defined (__stub___connect)
6100 char (*f) () = connect;
6109 return f != connect;
6114 rm -f conftest.$ac_objext conftest$ac_exeext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6116 (eval $ac_link) 2>conftest.er1
6118 grep -v '^ *+' conftest.er1 >conftest.err
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try='test -z "$ac_c_werror_flag"
6124 || test ! -s conftest.err'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; } &&
6130 { ac_try='test -s conftest$ac_exeext'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; }; then
6136 ac_cv_func_connect=yes
6138 echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6141 ac_cv_func_connect=no
6143 rm -f conftest.err conftest.$ac_objext \
6144 conftest$ac_exeext conftest.$ac_ext
6146 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6147 echo "${ECHO_T}$ac_cv_func_connect" >&6
6149 if test $ac_cv_func_connect = no; then
6150 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6151 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6152 if test "${ac_cv_lib_socket_connect+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 ac_check_lib_save_LIBS=$LIBS
6156 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6157 cat >conftest.$ac_ext <<_ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6164 /* Override any gcc2 internal prototype to avoid an error. */
6168 /* We use char because int might match the return type of a gcc2
6169 builtin and then its argument prototype would still apply. */
6179 rm -f conftest.$ac_objext conftest$ac_exeext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6181 (eval $ac_link) 2>conftest.er1
6183 grep -v '^ *+' conftest.er1 >conftest.err
6185 cat conftest.err >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } &&
6188 { ac_try='test -z "$ac_c_werror_flag"
6189 || test ! -s conftest.err'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; } &&
6195 { ac_try='test -s conftest$ac_exeext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_cv_lib_socket_connect=yes
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6206 ac_cv_lib_socket_connect=no
6208 rm -f conftest.err conftest.$ac_objext \
6209 conftest$ac_exeext conftest.$ac_ext
6210 LIBS=$ac_check_lib_save_LIBS
6212 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6213 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6214 if test $ac_cv_lib_socket_connect = yes; then
6215 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6220 # Guillermo Gomez says -lposix is necessary on A/UX.
6221 echo "$as_me:$LINENO: checking for remove" >&5
6222 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6223 if test "${ac_cv_func_remove+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 cat >conftest.$ac_ext <<_ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h. */
6232 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6234 #define remove innocuous_remove
6236 /* System header to define __stub macros and hopefully few prototypes,
6237 which can conflict with char remove (); below.
6238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6239 <limits.h> exists even on freestanding compilers. */
6242 # include <limits.h>
6244 # include <assert.h>
6249 /* Override any gcc2 internal prototype to avoid an error. */
6254 /* We use char because int might match the return type of a gcc2
6255 builtin and then its argument prototype would still apply. */
6257 /* The GNU C library defines this for functions which it implements
6258 to always fail with ENOSYS. Some functions are actually named
6259 something starting with __ and the normal name is an alias. */
6260 #if defined (__stub_remove) || defined (__stub___remove)
6263 char (*f) () = remove;
6277 rm -f conftest.$ac_objext conftest$ac_exeext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6279 (eval $ac_link) 2>conftest.er1
6281 grep -v '^ *+' conftest.er1 >conftest.err
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try='test -z "$ac_c_werror_flag"
6287 || test ! -s conftest.err'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; } &&
6293 { ac_try='test -s conftest$ac_exeext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 ac_cv_func_remove=yes
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6304 ac_cv_func_remove=no
6306 rm -f conftest.err conftest.$ac_objext \
6307 conftest$ac_exeext conftest.$ac_ext
6309 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6310 echo "${ECHO_T}$ac_cv_func_remove" >&6
6312 if test $ac_cv_func_remove = no; then
6313 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6314 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6315 if test "${ac_cv_lib_posix_remove+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 ac_check_lib_save_LIBS=$LIBS
6319 LIBS="-lposix $LIBS"
6320 cat >conftest.$ac_ext <<_ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h. */
6327 /* Override any gcc2 internal prototype to avoid an error. */
6331 /* We use char because int might match the return type of a gcc2
6332 builtin and then its argument prototype would still apply. */
6342 rm -f conftest.$ac_objext conftest$ac_exeext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6344 (eval $ac_link) 2>conftest.er1
6346 grep -v '^ *+' conftest.er1 >conftest.err
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } &&
6351 { ac_try='test -z "$ac_c_werror_flag"
6352 || test ! -s conftest.err'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; } &&
6358 { ac_try='test -s conftest$ac_exeext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 ac_cv_lib_posix_remove=yes
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6369 ac_cv_lib_posix_remove=no
6371 rm -f conftest.err conftest.$ac_objext \
6372 conftest$ac_exeext conftest.$ac_ext
6373 LIBS=$ac_check_lib_save_LIBS
6375 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6376 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6377 if test $ac_cv_lib_posix_remove = yes; then
6378 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6383 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6384 echo "$as_me:$LINENO: checking for shmat" >&5
6385 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6386 if test "${ac_cv_func_shmat+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 cat >conftest.$ac_ext <<_ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6395 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6397 #define shmat innocuous_shmat
6399 /* System header to define __stub macros and hopefully few prototypes,
6400 which can conflict with char shmat (); below.
6401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6402 <limits.h> exists even on freestanding compilers. */
6405 # include <limits.h>
6407 # include <assert.h>
6412 /* Override any gcc2 internal prototype to avoid an error. */
6417 /* We use char because int might match the return type of a gcc2
6418 builtin and then its argument prototype would still apply. */
6420 /* The GNU C library defines this for functions which it implements
6421 to always fail with ENOSYS. Some functions are actually named
6422 something starting with __ and the normal name is an alias. */
6423 #if defined (__stub_shmat) || defined (__stub___shmat)
6426 char (*f) () = shmat;
6440 rm -f conftest.$ac_objext conftest$ac_exeext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6442 (eval $ac_link) 2>conftest.er1
6444 grep -v '^ *+' conftest.er1 >conftest.err
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -z "$ac_c_werror_flag"
6450 || test ! -s conftest.err'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; } &&
6456 { ac_try='test -s conftest$ac_exeext'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }; then
6462 ac_cv_func_shmat=yes
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6469 rm -f conftest.err conftest.$ac_objext \
6470 conftest$ac_exeext conftest.$ac_ext
6472 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6473 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6475 if test $ac_cv_func_shmat = no; then
6476 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6477 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6478 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 ac_check_lib_save_LIBS=$LIBS
6483 cat >conftest.$ac_ext <<_ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6490 /* Override any gcc2 internal prototype to avoid an error. */
6494 /* We use char because int might match the return type of a gcc2
6495 builtin and then its argument prototype would still apply. */
6505 rm -f conftest.$ac_objext conftest$ac_exeext
6506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6507 (eval $ac_link) 2>conftest.er1
6509 grep -v '^ *+' conftest.er1 >conftest.err
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } &&
6514 { ac_try='test -z "$ac_c_werror_flag"
6515 || test ! -s conftest.err'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; } &&
6521 { ac_try='test -s conftest$ac_exeext'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; }; then
6527 ac_cv_lib_ipc_shmat=yes
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6532 ac_cv_lib_ipc_shmat=no
6534 rm -f conftest.err conftest.$ac_objext \
6535 conftest$ac_exeext conftest.$ac_ext
6536 LIBS=$ac_check_lib_save_LIBS
6538 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6539 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6540 if test $ac_cv_lib_ipc_shmat = yes; then
6541 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6547 # Check for libraries that X11R6 Xt/Xaw programs need.
6548 ac_save_LDFLAGS=$LDFLAGS
6549 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6550 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6551 # check for ICE first), but we must link in the order -lSM -lICE or
6552 # we get undefined symbols. So assume we have SM if we have ICE.
6553 # These have to be linked with before -lX11, unlike the other
6554 # libraries we check for below, so use a different variable.
6555 # John Interrante, Karl Berry
6556 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6557 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6558 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 ac_check_lib_save_LIBS=$LIBS
6562 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6563 cat >conftest.$ac_ext <<_ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6570 /* Override any gcc2 internal prototype to avoid an error. */
6574 /* We use char because int might match the return type of a gcc2
6575 builtin and then its argument prototype would still apply. */
6576 char IceConnectionNumber ();
6580 IceConnectionNumber ();
6585 rm -f conftest.$ac_objext conftest$ac_exeext
6586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6587 (eval $ac_link) 2>conftest.er1
6589 grep -v '^ *+' conftest.er1 >conftest.err
6591 cat conftest.err >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } &&
6594 { ac_try='test -z "$ac_c_werror_flag"
6595 || test ! -s conftest.err'
6596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); }; } &&
6601 { ac_try='test -s conftest$ac_exeext'
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
6607 ac_cv_lib_ICE_IceConnectionNumber=yes
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6612 ac_cv_lib_ICE_IceConnectionNumber=no
6614 rm -f conftest.err conftest.$ac_objext \
6615 conftest$ac_exeext conftest.$ac_ext
6616 LIBS=$ac_check_lib_save_LIBS
6618 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6619 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6620 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6621 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6624 LDFLAGS=$ac_save_LDFLAGS
6629 if test "$have_x" != yes; then
6630 { { echo "$as_me:$LINENO: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&5
6631 echo "$as_me: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&2;}
6632 { (exit 1); exit 1; }; }
6636 echo "$as_me:$LINENO: checking for X app-defaults directory" >&5
6637 echo $ECHO_N "checking for X app-defaults directory... $ECHO_C" >&6
6638 if test "${ac_cv_x_app_defaults+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 if mkdir conftestdir; then
6644 cd conftestdir 2>/dev/null
6645 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6646 cat > Imakefile <<'EOF'
6648 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
6650 if (xmkmf) >/dev/null 2>&1 && test -f Makefile; then
6651 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
6652 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6657 if test x"$ac_x_app_defaults" = x; then
6659 # Look for the directory under a standard set of common directories.
6660 # Check X11 before X11Rn because it's often a symlink to the current release.
6662 /usr/X11/lib/app-defaults \
6663 /usr/X11R6/lib/app-defaults \
6664 /usr/X11R6/lib/X11/app-defaults \
6665 /usr/X11R5/lib/app-defaults \
6666 /usr/X11R5/lib/X11/app-defaults \
6667 /usr/X11R4/lib/app-defaults \
6668 /usr/X11R4/lib/X11/app-defaults \
6670 /usr/lib/X11/app-defaults \
6671 /usr/lib/X11R6/app-defaults \
6672 /usr/lib/X11R5/app-defaults \
6673 /usr/lib/X11R4/app-defaults \
6675 /usr/local/X11/lib/app-defaults \
6676 /usr/local/X11R6/lib/app-defaults \
6677 /usr/local/X11R5/lib/app-defaults \
6678 /usr/local/X11R4/lib/app-defaults \
6680 /usr/local/lib/X11/app-defaults \
6681 /usr/local/lib/X11R6/app-defaults \
6682 /usr/local/lib/X11R6/X11/app-defaults \
6683 /usr/local/lib/X11R5/app-defaults \
6684 /usr/local/lib/X11R5/X11/app-defaults \
6685 /usr/local/lib/X11R4/app-defaults \
6686 /usr/local/lib/X11R4/X11/app-defaults \
6688 /usr/X386/lib/X11/app-defaults \
6689 /usr/x386/lib/X11/app-defaults \
6690 /usr/XFree86/lib/X11/app-defaults \
6692 /usr/lib/X11/app-defaults \
6693 /usr/local/lib/X11/app-defaults \
6694 /usr/unsupported/lib/X11/app-defaults \
6695 /usr/athena/lib/X11/app-defaults \
6696 /usr/local/x11r5/lib/X11/app-defaults \
6697 /usr/lpp/Xamples/lib/X11/app-defaults \
6698 /lib/usr/lib/X11/app-defaults \
6700 /usr/openwin/lib/app-defaults \
6701 /usr/openwin/lib/X11/app-defaults \
6702 /usr/openwin/share/lib/app-defaults \
6703 /usr/openwin/share/lib/X11/app-defaults \
6705 /X11R6/lib/app-defaults \
6706 /X11R5/lib/app-defaults \
6707 /X11R4/lib/app-defaults \
6710 if test -d "$ac_dir"; then
6711 ac_x_app_defaults=$ac_dir
6717 if test x"$ac_x_app_defaults" = x; then
6718 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
6720 # Record where we found app-defaults for the cache.
6721 ac_cv_x_app_defaults="$ac_x_app_defaults"
6724 echo "$as_me:$LINENO: result: $ac_cv_x_app_defaults" >&5
6725 echo "${ECHO_T}$ac_cv_x_app_defaults" >&6
6726 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
6730 # The following arcana was gleaned from conversations with
6731 # Eric Schwartz <erics@col.hp.com>:
6733 # On HPUX 10.x, the parts of X that HP considers "standard" live in
6734 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
6735 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
6736 # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
6737 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
6738 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
6739 # you don't need any -I or -L arguments.
6741 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
6742 # are the same division as 10.x. However, there are no symlinks to
6743 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
6744 # arguments are always necessary.
6746 # However, X11R6 was available on HPUX 9.x as a patch: if that
6747 # patch was installed, then all of X11R6 went in to
6748 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
6750 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
6751 # whether R5 was available as a patch; R6 undoubtedly was not.)
6753 # So. We try and use the highest numbered pair of
6754 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
6755 # that are available. We do not mix and match different versions
6758 # Question I still don't know the answer to: (do you?)
6760 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
6761 # /usr/contrib/X11R6/ could be installed as a patch, what was in
6762 # that contrib directory? Did it contain so-called "standard"
6763 # X11R6, or did it include Xaw and Xmu as well? If the former,
6764 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
6765 # be a situation where one had to reach into the R5 headers and
6766 # libs to find Xmu? That is, must both R6 and R5 directories
6767 # be on the -I and -L lists in that case?
6769 for version in X11R6 X11R5 X11R4 ; do
6770 # if either pair of directories exists...
6771 if test -d /usr/include/$version || test -d /usr/contrib/$version/include
6773 # if contrib exists, use it...
6774 if test -d /usr/contrib/$version/include ; then
6775 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
6776 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
6778 # if the "standard" one exists, use it.
6779 if test -d /usr/include/$version ; then
6780 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
6781 X_LIBS="$X_LIBS -L/usr/lib/$version"
6783 # since at least one of the pair exists, go no farther.
6788 # Now find Motif. Thanks for not making xmkmf find this by
6789 # default, you losers.
6791 if test -d /usr/include/Motif2.1 ; then
6792 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
6793 X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
6794 elif test -d /usr/include/Motif1.2 ; then
6795 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
6796 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
6797 elif test -d /usr/include/Motif1.1 ; then
6798 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
6799 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
6802 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
6804 if test -d /opt/graphics/OpenGL/include ; then
6805 # HP-UX 10.20 puts it here
6806 X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
6807 X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
6808 elif test -d /opt/Mesa/lib ; then
6809 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
6810 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
6814 if test -d /opt/xpm/lib/X11 ; then
6815 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
6816 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
6819 # On HPUX, default to installing in /opt/xscreensaver/ instead of
6820 # in /usr/local/, unless there is already an xscreensaver in
6821 # /usr/local/bin/. This can be overridden with the --prefix arg
6822 # to configure. I'm not sure this is the right thing to do, but
6823 # Richard Lloyd says so...
6825 if test \! -x /usr/local/bin/xscreensaver ; then
6826 ac_default_prefix=/opt/xscreensaver
6832 # Thanks for not making xmkmf find this by default, pinheads.
6833 # And thanks for moving things around again, too. Is this
6834 # really the standard location now? What happened to the
6835 # joke that this kind of thing went in /opt?
6836 # cthomp says "answer: CDE (Common Disorganized Environment)"
6838 if test -f /usr/dt/include/Xm/Xm.h ; then
6839 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
6840 MOTIF_LIBS="$MOTIF_LIBS -L/usr/dt/lib -R/usr/dt/lib"
6842 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
6843 echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
6844 echo $ECHO_N "checking for regcmp in -lgen... $ECHO_C" >&6
6845 if test "${ac_cv_lib_gen_regcmp+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 ac_check_lib_save_LIBS=$LIBS
6850 cat >conftest.$ac_ext <<_ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h. */
6857 /* Override any gcc2 internal prototype to avoid an error. */
6861 /* We use char because int might match the return type of a gcc2
6862 builtin and then its argument prototype would still apply. */
6872 rm -f conftest.$ac_objext conftest$ac_exeext
6873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6874 (eval $ac_link) 2>conftest.er1
6876 grep -v '^ *+' conftest.er1 >conftest.err
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } &&
6881 { ac_try='test -z "$ac_c_werror_flag"
6882 || test ! -s conftest.err'
6883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); }; } &&
6888 { ac_try='test -s conftest$ac_exeext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 ac_cv_lib_gen_regcmp=yes
6896 echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6899 ac_cv_lib_gen_regcmp=no
6901 rm -f conftest.err conftest.$ac_objext \
6902 conftest$ac_exeext conftest.$ac_ext
6903 LIBS=$ac_check_lib_save_LIBS
6905 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5
6906 echo "${ECHO_T}$ac_cv_lib_gen_regcmp" >&6
6907 if test $ac_cv_lib_gen_regcmp = yes; then
6908 MOTIF_LIBS="$MOTIF_LIBS -lgen"
6916 # On MacOS X (10.x with "fink"), many things are under /sw/.
6918 if test -d /sw/include ; then
6919 X_CFLAGS="-I/sw/include $X_CFLAGS"
6920 X_LIBS="-L/sw/lib $X_LIBS"
6924 echo "$as_me:$LINENO: checking for XPointer" >&5
6925 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
6926 if test "${ac_cv_xpointer+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 ac_save_CPPFLAGS="$CPPFLAGS"
6931 if test \! -z "$includedir" ; then
6932 CPPFLAGS="$CPPFLAGS -I$includedir"
6934 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6935 cat >conftest.$ac_ext <<_ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6941 #include <X11/Xlib.h>
6945 XPointer foo = (XPointer) 0;
6950 rm -f conftest.$ac_objext
6951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6952 (eval $ac_compile) 2>conftest.er1
6954 grep -v '^ *+' conftest.er1 >conftest.err
6956 cat conftest.err >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); } &&
6959 { ac_try='test -z "$ac_c_werror_flag"
6960 || test ! -s conftest.err'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; } &&
6966 { ac_try='test -s conftest.$ac_objext'
6967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6980 CPPFLAGS="$ac_save_CPPFLAGS"
6982 echo "$as_me:$LINENO: result: $ac_cv_xpointer" >&5
6983 echo "${ECHO_T}$ac_cv_xpointer" >&6
6984 if test "$ac_cv_xpointer" != yes; then
6985 cat >>confdefs.h <<\_ACEOF
6986 #define XPointer char*
6991 echo "$as_me:$LINENO: checking whether this is MacOS X" >&5
6992 echo $ECHO_N "checking whether this is MacOS X... $ECHO_C" >&6
6999 echo "$as_me:$LINENO: result: $ac_macosx" >&5
7000 echo "${ECHO_T}$ac_macosx" >&6
7004 ###############################################################################
7008 ###############################################################################
7013 echo "$as_me:$LINENO: checking for intltool >= " >&5
7014 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
7016 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
7017 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < intltool-update.in`
7019 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < intltool-update.in`
7022 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
7023 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
7024 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
7026 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5
7027 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6
7032 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'
7033 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'
7034 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'
7035 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
7036 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'
7037 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'
7038 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'
7039 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'
7040 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'
7041 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'
7042 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'
7056 # Use the tools built into the package, not the ones that are installed.
7058 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
7059 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
7060 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
7066 # Extract the first word of "perl", so it can be a program name with args.
7067 set dummy perl; ac_word=$2
7068 echo "$as_me:$LINENO: checking for $ac_word" >&5
7069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7070 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 case $INTLTOOL_PERL in
7075 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7085 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
7086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
7097 if test -n "$INTLTOOL_PERL"; then
7098 echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
7099 echo "${ECHO_T}$INTLTOOL_PERL" >&6
7101 echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6
7105 if test -z "$INTLTOOL_PERL"; then
7106 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
7107 echo "$as_me: error: perl not found; required for intltool" >&2;}
7108 { (exit 1); exit 1; }; }
7110 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
7111 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
7112 echo "$as_me: error: perl 5.x required for intltool" >&2;}
7113 { (exit 1); exit 1; }; }
7116 # Remove file type tags (using []) from po/POTFILES.
7124 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
7126 ac_config_commands="$ac_config_commands default-1"
7130 GETTEXT_PACKAGE=xscreensaver
7131 cat >>confdefs.h <<_ACEOF
7132 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
7135 cat >>confdefs.h <<_ACEOF
7136 #define PACKAGE "$GETTEXT_PACKAGE"
7141 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"
7142 if test -n "$ac_tool_prefix"; then
7143 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7144 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7145 echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7147 if test "${ac_cv_prog_RANLIB+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 if test -n "$RANLIB"; then
7151 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7160 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 RANLIB=$ac_cv_prog_RANLIB
7170 if test -n "$RANLIB"; then
7171 echo "$as_me:$LINENO: result: $RANLIB" >&5
7172 echo "${ECHO_T}$RANLIB" >&6
7174 echo "$as_me:$LINENO: result: no" >&5
7175 echo "${ECHO_T}no" >&6
7179 if test -z "$ac_cv_prog_RANLIB"; then
7180 ac_ct_RANLIB=$RANLIB
7181 # Extract the first word of "ranlib", so it can be a program name with args.
7182 set dummy ranlib; ac_word=$2
7183 echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7185 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 if test -n "$ac_ct_RANLIB"; then
7189 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198 ac_cv_prog_ac_ct_RANLIB="ranlib"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7208 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7209 if test -n "$ac_ct_RANLIB"; then
7210 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7211 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7213 echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6
7217 RANLIB=$ac_ct_RANLIB
7219 RANLIB="$ac_cv_prog_RANLIB"
7222 echo "$as_me:$LINENO: checking for off_t" >&5
7223 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7224 if test "${ac_cv_type_off_t+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 cat >conftest.$ac_ext <<_ACEOF
7230 cat confdefs.h >>conftest.$ac_ext
7231 cat >>conftest.$ac_ext <<_ACEOF
7232 /* end confdefs.h. */
7233 $ac_includes_default
7245 rm -f conftest.$ac_objext
7246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7247 (eval $ac_compile) 2>conftest.er1
7249 grep -v '^ *+' conftest.er1 >conftest.err
7251 cat conftest.err >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); } &&
7254 { ac_try='test -z "$ac_c_werror_flag"
7255 || test ! -s conftest.err'
7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; } &&
7261 { ac_try='test -s conftest.$ac_objext'
7262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); }; }; then
7267 ac_cv_type_off_t=yes
7269 echo "$as_me: failed program was:" >&5
7270 sed 's/^/| /' conftest.$ac_ext >&5
7274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7276 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7277 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7278 if test $ac_cv_type_off_t = yes; then
7282 cat >>confdefs.h <<_ACEOF
7288 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7289 # for constant arguments. Useless!
7290 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7291 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7292 if test "${ac_cv_working_alloca_h+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 cat >conftest.$ac_ext <<_ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h. */
7305 char *p = (char *) alloca (2 * sizeof (int));
7310 rm -f conftest.$ac_objext conftest$ac_exeext
7311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7312 (eval $ac_link) 2>conftest.er1
7314 grep -v '^ *+' conftest.er1 >conftest.err
7316 cat conftest.err >&5
7317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); } &&
7319 { ac_try='test -z "$ac_c_werror_flag"
7320 || test ! -s conftest.err'
7321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); }; } &&
7326 { ac_try='test -s conftest$ac_exeext'
7327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; }; then
7332 ac_cv_working_alloca_h=yes
7334 echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.$ac_ext >&5
7337 ac_cv_working_alloca_h=no
7339 rm -f conftest.err conftest.$ac_objext \
7340 conftest$ac_exeext conftest.$ac_ext
7342 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7343 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7344 if test $ac_cv_working_alloca_h = yes; then
7346 cat >>confdefs.h <<\_ACEOF
7347 #define HAVE_ALLOCA_H 1
7352 echo "$as_me:$LINENO: checking for alloca" >&5
7353 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7354 if test "${ac_cv_func_alloca_works+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 cat >conftest.$ac_ext <<_ACEOF
7360 cat confdefs.h >>conftest.$ac_ext
7361 cat >>conftest.$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7364 # define alloca __builtin_alloca
7367 # include <malloc.h>
7368 # define alloca _alloca
7371 # include <alloca.h>
7376 # ifndef alloca /* predefined by HP cc +Olibcalls */
7387 char *p = (char *) alloca (1);
7392 rm -f conftest.$ac_objext conftest$ac_exeext
7393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7394 (eval $ac_link) 2>conftest.er1
7396 grep -v '^ *+' conftest.er1 >conftest.err
7398 cat conftest.err >&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); } &&
7401 { ac_try='test -z "$ac_c_werror_flag"
7402 || test ! -s conftest.err'
7403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); }; } &&
7408 { ac_try='test -s conftest$ac_exeext'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; }; then
7414 ac_cv_func_alloca_works=yes
7416 echo "$as_me: failed program was:" >&5
7417 sed 's/^/| /' conftest.$ac_ext >&5
7419 ac_cv_func_alloca_works=no
7421 rm -f conftest.err conftest.$ac_objext \
7422 conftest$ac_exeext conftest.$ac_ext
7424 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7425 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7427 if test $ac_cv_func_alloca_works = yes; then
7429 cat >>confdefs.h <<\_ACEOF
7430 #define HAVE_ALLOCA 1
7434 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7435 # that cause trouble. Some versions do not even contain alloca or
7436 # contain a buggy version. If you still want to use their alloca,
7437 # use ar to extract alloca.o from them instead of compiling alloca.c.
7439 ALLOCA=alloca.$ac_objext
7441 cat >>confdefs.h <<\_ACEOF
7446 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7447 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7448 if test "${ac_cv_os_cray+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 cat >conftest.$ac_ext <<_ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 #if defined(CRAY) && ! defined(CRAY2)
7464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7465 $EGREP "webecray" >/dev/null 2>&1; then
7473 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7474 echo "${ECHO_T}$ac_cv_os_cray" >&6
7475 if test $ac_cv_os_cray = yes; then
7476 for ac_func in _getb67 GETB67 getb67; do
7477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7478 echo "$as_me:$LINENO: checking for $ac_func" >&5
7479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7480 if eval "test \"\${$as_ac_var+set}\" = set"; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 cat >conftest.$ac_ext <<_ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h. */
7489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7491 #define $ac_func innocuous_$ac_func
7493 /* System header to define __stub macros and hopefully few prototypes,
7494 which can conflict with char $ac_func (); below.
7495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7496 <limits.h> exists even on freestanding compilers. */
7499 # include <limits.h>
7501 # include <assert.h>
7506 /* Override any gcc2 internal prototype to avoid an error. */
7511 /* We use char because int might match the return type of a gcc2
7512 builtin and then its argument prototype would still apply. */
7514 /* The GNU C library defines this for functions which it implements
7515 to always fail with ENOSYS. Some functions are actually named
7516 something starting with __ and the normal name is an alias. */
7517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7520 char (*f) () = $ac_func;
7529 return f != $ac_func;
7534 rm -f conftest.$ac_objext conftest$ac_exeext
7535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7536 (eval $ac_link) 2>conftest.er1
7538 grep -v '^ *+' conftest.er1 >conftest.err
7540 cat conftest.err >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } &&
7543 { ac_try='test -z "$ac_c_werror_flag"
7544 || test ! -s conftest.err'
7545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); }; } &&
7550 { ac_try='test -s conftest$ac_exeext'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; }; then
7556 eval "$as_ac_var=yes"
7558 echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7561 eval "$as_ac_var=no"
7563 rm -f conftest.err conftest.$ac_objext \
7564 conftest$ac_exeext conftest.$ac_ext
7566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7568 if test `eval echo '${'$as_ac_var'}'` = yes; then
7570 cat >>confdefs.h <<_ACEOF
7571 #define CRAY_STACKSEG_END $ac_func
7580 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7581 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7582 if test "${ac_cv_c_stack_direction+set}" = set; then
7583 echo $ECHO_N "(cached) $ECHO_C" >&6
7585 if test "$cross_compiling" = yes; then
7586 ac_cv_c_stack_direction=0
7588 cat >conftest.$ac_ext <<_ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7595 find_stack_direction ()
7597 static char *addr = 0;
7602 return find_stack_direction ();
7605 return (&dummy > addr) ? 1 : -1;
7611 exit (find_stack_direction () < 0);
7614 rm -f conftest$ac_exeext
7615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7616 (eval $ac_link) 2>&5
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
7625 ac_cv_c_stack_direction=1
7627 echo "$as_me: program exited with status $ac_status" >&5
7628 echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7632 ac_cv_c_stack_direction=-1
7634 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7637 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7638 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7640 cat >>confdefs.h <<_ACEOF
7641 #define STACK_DIRECTION $ac_cv_c_stack_direction
7649 for ac_header in stdlib.h unistd.h
7651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7653 echo "$as_me:$LINENO: checking for $ac_header" >&5
7654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7661 # Is the header compilable?
7662 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7664 cat >conftest.$ac_ext <<_ACEOF
7667 cat confdefs.h >>conftest.$ac_ext
7668 cat >>conftest.$ac_ext <<_ACEOF
7669 /* end confdefs.h. */
7670 $ac_includes_default
7671 #include <$ac_header>
7673 rm -f conftest.$ac_objext
7674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7675 (eval $ac_compile) 2>conftest.er1
7677 grep -v '^ *+' conftest.er1 >conftest.err
7679 cat conftest.err >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } &&
7682 { ac_try='test -z "$ac_c_werror_flag"
7683 || test ! -s conftest.err'
7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; } &&
7689 { ac_try='test -s conftest.$ac_objext'
7690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); }; }; then
7695 ac_header_compiler=yes
7697 echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7700 ac_header_compiler=no
7702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7703 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7704 echo "${ECHO_T}$ac_header_compiler" >&6
7706 # Is the header present?
7707 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7709 cat >conftest.$ac_ext <<_ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7715 #include <$ac_header>
7717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7720 grep -v '^ *+' conftest.er1 >conftest.err
7722 cat conftest.err >&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); } >/dev/null; then
7725 if test -s conftest.err; then
7726 ac_cpp_err=$ac_c_preproc_warn_flag
7727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7734 if test -z "$ac_cpp_err"; then
7735 ac_header_preproc=yes
7737 echo "$as_me: failed program was:" >&5
7738 sed 's/^/| /' conftest.$ac_ext >&5
7740 ac_header_preproc=no
7742 rm -f conftest.err conftest.$ac_ext
7743 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7744 echo "${ECHO_T}$ac_header_preproc" >&6
7746 # So? What about this header?
7747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7753 ac_header_preproc=yes
7756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7759 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7763 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7770 ## ------------------------------------------ ##
7771 ## Report this to the AC_PACKAGE_NAME lists. ##
7772 ## ------------------------------------------ ##
7775 sed "s/^/$as_me: WARNING: /" >&2
7778 echo "$as_me:$LINENO: checking for $ac_header" >&5
7779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 eval "$as_ac_Header=\$ac_header_preproc"
7785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7790 cat >>confdefs.h <<_ACEOF
7791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7799 for ac_func in getpagesize
7801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7802 echo "$as_me:$LINENO: checking for $ac_func" >&5
7803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7804 if eval "test \"\${$as_ac_var+set}\" = set"; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 cat >conftest.$ac_ext <<_ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h. */
7813 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7815 #define $ac_func innocuous_$ac_func
7817 /* System header to define __stub macros and hopefully few prototypes,
7818 which can conflict with char $ac_func (); below.
7819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7820 <limits.h> exists even on freestanding compilers. */
7823 # include <limits.h>
7825 # include <assert.h>
7830 /* Override any gcc2 internal prototype to avoid an error. */
7835 /* We use char because int might match the return type of a gcc2
7836 builtin and then its argument prototype would still apply. */
7838 /* The GNU C library defines this for functions which it implements
7839 to always fail with ENOSYS. Some functions are actually named
7840 something starting with __ and the normal name is an alias. */
7841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7844 char (*f) () = $ac_func;
7853 return f != $ac_func;
7858 rm -f conftest.$ac_objext conftest$ac_exeext
7859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7860 (eval $ac_link) 2>conftest.er1
7862 grep -v '^ *+' conftest.er1 >conftest.err
7864 cat conftest.err >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } &&
7867 { ac_try='test -z "$ac_c_werror_flag"
7868 || test ! -s conftest.err'
7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; } &&
7874 { ac_try='test -s conftest$ac_exeext'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; }; then
7880 eval "$as_ac_var=yes"
7882 echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7885 eval "$as_ac_var=no"
7887 rm -f conftest.err conftest.$ac_objext \
7888 conftest$ac_exeext conftest.$ac_ext
7890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7891 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7892 if test `eval echo '${'$as_ac_var'}'` = yes; then
7893 cat >>confdefs.h <<_ACEOF
7894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7900 echo "$as_me:$LINENO: checking for working mmap" >&5
7901 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7902 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 if test "$cross_compiling" = yes; then
7906 ac_cv_func_mmap_fixed_mapped=no
7908 cat >conftest.$ac_ext <<_ACEOF
7911 cat confdefs.h >>conftest.$ac_ext
7912 cat >>conftest.$ac_ext <<_ACEOF
7913 /* end confdefs.h. */
7914 $ac_includes_default
7915 /* malloc might have been renamed as rpl_malloc. */
7918 /* Thanks to Mike Haertel and Jim Avera for this test.
7919 Here is a matrix of mmap possibilities:
7920 mmap private not fixed
7921 mmap private fixed at somewhere currently unmapped
7922 mmap private fixed at somewhere already mapped
7923 mmap shared not fixed
7924 mmap shared fixed at somewhere currently unmapped
7925 mmap shared fixed at somewhere already mapped
7926 For private mappings, we should verify that changes cannot be read()
7927 back from the file, nor mmap's back from the file at a different
7928 address. (There have been systems where private was not correctly
7929 implemented like the infamous i386 svr4.0, and systems where the
7930 VM page cache was not coherent with the file system buffer cache
7931 like early versions of FreeBSD and possibly contemporary NetBSD.)
7932 For shared mappings, we should conversely verify that changes get
7933 propagated back to all the places they're supposed to be.
7935 Grep wants private fixed already mapped.
7936 The main things grep needs to know about mmap are:
7937 * does it exist and is it safe to write into the mmap'd area
7938 * how to use it (BSD variants) */
7941 #include <sys/mman.h>
7943 #if !STDC_HEADERS && !HAVE_STDLIB_H
7947 /* This mess was copied from the GNU getpagesize.h. */
7948 #if !HAVE_GETPAGESIZE
7949 /* Assume that all systems that can run configure have sys/param.h. */
7950 # if !HAVE_SYS_PARAM_H
7951 # define HAVE_SYS_PARAM_H 1
7954 # ifdef _SC_PAGESIZE
7955 # define getpagesize() sysconf(_SC_PAGESIZE)
7956 # else /* no _SC_PAGESIZE */
7957 # if HAVE_SYS_PARAM_H
7958 # include <sys/param.h>
7959 # ifdef EXEC_PAGESIZE
7960 # define getpagesize() EXEC_PAGESIZE
7961 # else /* no EXEC_PAGESIZE */
7963 # define getpagesize() NBPG * CLSIZE
7966 # endif /* no CLSIZE */
7967 # else /* no NBPG */
7969 # define getpagesize() NBPC
7970 # else /* no NBPC */
7972 # define getpagesize() PAGESIZE
7973 # endif /* PAGESIZE */
7974 # endif /* no NBPC */
7975 # endif /* no NBPG */
7976 # endif /* no EXEC_PAGESIZE */
7977 # else /* no HAVE_SYS_PARAM_H */
7978 # define getpagesize() 8192 /* punt totally */
7979 # endif /* no HAVE_SYS_PARAM_H */
7980 # endif /* no _SC_PAGESIZE */
7982 #endif /* no HAVE_GETPAGESIZE */
7987 char *data, *data2, *data3;
7991 pagesize = getpagesize ();
7993 /* First, make a file with some known garbage in it. */
7994 data = (char *) malloc (pagesize);
7997 for (i = 0; i < pagesize; ++i)
7998 *(data + i) = rand ();
8000 fd = creat ("conftest.mmap", 0600);
8003 if (write (fd, data, pagesize) != pagesize)
8007 /* Next, try to mmap the file at a fixed address which already has
8008 something else allocated at it. If we can, also make sure that
8009 we see the same garbage. */
8010 fd = open ("conftest.mmap", O_RDWR);
8013 data2 = (char *) malloc (2 * pagesize);
8016 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8017 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8018 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8020 for (i = 0; i < pagesize; ++i)
8021 if (*(data + i) != *(data2 + i))
8024 /* Finally, make sure that changes to the mapped area do not
8025 percolate back to the file as seen by read(). (This is a bug on
8026 some variants of i386 svr4.0.) */
8027 for (i = 0; i < pagesize; ++i)
8028 *(data2 + i) = *(data2 + i) + 1;
8029 data3 = (char *) malloc (pagesize);
8032 if (read (fd, data3, pagesize) != pagesize)
8034 for (i = 0; i < pagesize; ++i)
8035 if (*(data + i) != *(data3 + i))
8041 rm -f conftest$ac_exeext
8042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8043 (eval $ac_link) 2>&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; }; then
8052 ac_cv_func_mmap_fixed_mapped=yes
8054 echo "$as_me: program exited with status $ac_status" >&5
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8059 ac_cv_func_mmap_fixed_mapped=no
8061 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8064 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8065 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8066 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8068 cat >>confdefs.h <<\_ACEOF
8084 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
8085 unistd.h sys/param.h
8087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8089 echo "$as_me:$LINENO: checking for $ac_header" >&5
8090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8097 # Is the header compilable?
8098 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8100 cat >conftest.$ac_ext <<_ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8106 $ac_includes_default
8107 #include <$ac_header>
8109 rm -f conftest.$ac_objext
8110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8111 (eval $ac_compile) 2>conftest.er1
8113 grep -v '^ *+' conftest.er1 >conftest.err
8115 cat conftest.err >&5
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try='test -z "$ac_c_werror_flag"
8119 || test ! -s conftest.err'
8120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); }; } &&
8125 { ac_try='test -s conftest.$ac_objext'
8126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; }; then
8131 ac_header_compiler=yes
8133 echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8136 ac_header_compiler=no
8138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8140 echo "${ECHO_T}$ac_header_compiler" >&6
8142 # Is the header present?
8143 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8145 cat >conftest.$ac_ext <<_ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8151 #include <$ac_header>
8153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8156 grep -v '^ *+' conftest.er1 >conftest.err
8158 cat conftest.err >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } >/dev/null; then
8161 if test -s conftest.err; then
8162 ac_cpp_err=$ac_c_preproc_warn_flag
8163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8170 if test -z "$ac_cpp_err"; then
8171 ac_header_preproc=yes
8173 echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8176 ac_header_preproc=no
8178 rm -f conftest.err conftest.$ac_ext
8179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8180 echo "${ECHO_T}$ac_header_preproc" >&6
8182 # So? What about this header?
8183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8189 ac_header_preproc=yes
8192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8206 ## ------------------------------------------ ##
8207 ## Report this to the AC_PACKAGE_NAME lists. ##
8208 ## ------------------------------------------ ##
8211 sed "s/^/$as_me: WARNING: /" >&2
8214 echo "$as_me:$LINENO: checking for $ac_header" >&5
8215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 eval "$as_ac_Header=\$ac_header_preproc"
8221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8226 cat >>confdefs.h <<_ACEOF
8227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8245 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
8246 strdup __argz_count __argz_stringify __argz_next
8248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8249 echo "$as_me:$LINENO: checking for $ac_func" >&5
8250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8251 if eval "test \"\${$as_ac_var+set}\" = set"; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 cat >conftest.$ac_ext <<_ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8262 #define $ac_func innocuous_$ac_func
8264 /* System header to define __stub macros and hopefully few prototypes,
8265 which can conflict with char $ac_func (); below.
8266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8267 <limits.h> exists even on freestanding compilers. */
8270 # include <limits.h>
8272 # include <assert.h>
8277 /* Override any gcc2 internal prototype to avoid an error. */
8282 /* We use char because int might match the return type of a gcc2
8283 builtin and then its argument prototype would still apply. */
8285 /* The GNU C library defines this for functions which it implements
8286 to always fail with ENOSYS. Some functions are actually named
8287 something starting with __ and the normal name is an alias. */
8288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8291 char (*f) () = $ac_func;
8300 return f != $ac_func;
8305 rm -f conftest.$ac_objext conftest$ac_exeext
8306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8307 (eval $ac_link) 2>conftest.er1
8309 grep -v '^ *+' conftest.er1 >conftest.err
8311 cat conftest.err >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } &&
8314 { ac_try='test -z "$ac_c_werror_flag"
8315 || test ! -s conftest.err'
8316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; } &&
8321 { ac_try='test -s conftest$ac_exeext'
8322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); }; }; then
8327 eval "$as_ac_var=yes"
8329 echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8332 eval "$as_ac_var=no"
8334 rm -f conftest.err conftest.$ac_objext \
8335 conftest$ac_exeext conftest.$ac_ext
8337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8339 if test `eval echo '${'$as_ac_var'}'` = yes; then
8340 cat >>confdefs.h <<_ACEOF
8341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8348 if test $ac_cv_header_locale_h = yes; then
8349 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8350 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8351 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8354 cat >conftest.$ac_ext <<_ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8369 rm -f conftest.$ac_objext conftest$ac_exeext
8370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8371 (eval $ac_link) 2>conftest.er1
8373 grep -v '^ *+' conftest.er1 >conftest.err
8375 cat conftest.err >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } &&
8378 { ac_try='test -z "$ac_c_werror_flag"
8379 || test ! -s conftest.err'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; } &&
8385 { ac_try='test -s conftest$ac_exeext'
8386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; }; then
8391 am_cv_val_LC_MESSAGES=yes
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8396 am_cv_val_LC_MESSAGES=no
8398 rm -f conftest.err conftest.$ac_objext \
8399 conftest$ac_exeext conftest.$ac_ext
8401 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8402 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8403 if test $am_cv_val_LC_MESSAGES = yes; then
8405 cat >>confdefs.h <<\_ACEOF
8406 #define HAVE_LC_MESSAGES 1
8414 nls_cv_force_use_gnu_gettext="no"
8416 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8417 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8419 nls_cv_header_libgt=
8422 if test "${ac_cv_header_libintl_h+set}" = set; then
8423 echo "$as_me:$LINENO: checking for libintl.h" >&5
8424 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8425 if test "${ac_cv_header_libintl_h+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8429 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8431 # Is the header compilable?
8432 echo "$as_me:$LINENO: checking libintl.h usability" >&5
8433 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8434 cat >conftest.$ac_ext <<_ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 $ac_includes_default
8441 #include <libintl.h>
8443 rm -f conftest.$ac_objext
8444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8445 (eval $ac_compile) 2>conftest.er1
8447 grep -v '^ *+' conftest.er1 >conftest.err
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } &&
8452 { ac_try='test -z "$ac_c_werror_flag"
8453 || test ! -s conftest.err'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; } &&
8459 { ac_try='test -s conftest.$ac_objext'
8460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; }; then
8465 ac_header_compiler=yes
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8470 ac_header_compiler=no
8472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8473 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8474 echo "${ECHO_T}$ac_header_compiler" >&6
8476 # Is the header present?
8477 echo "$as_me:$LINENO: checking libintl.h presence" >&5
8478 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8479 cat >conftest.$ac_ext <<_ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h. */
8485 #include <libintl.h>
8487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8490 grep -v '^ *+' conftest.er1 >conftest.err
8492 cat conftest.err >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } >/dev/null; then
8495 if test -s conftest.err; then
8496 ac_cpp_err=$ac_c_preproc_warn_flag
8497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8504 if test -z "$ac_cpp_err"; then
8505 ac_header_preproc=yes
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8510 ac_header_preproc=no
8512 rm -f conftest.err conftest.$ac_ext
8513 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8514 echo "${ECHO_T}$ac_header_preproc" >&6
8516 # So? What about this header?
8517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8519 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8520 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8521 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
8522 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
8523 ac_header_preproc=yes
8526 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8527 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
8528 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8529 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8530 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
8531 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
8532 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
8533 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8534 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8535 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8536 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
8537 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
8540 ## ------------------------------------------ ##
8541 ## Report this to the AC_PACKAGE_NAME lists. ##
8542 ## ------------------------------------------ ##
8545 sed "s/^/$as_me: WARNING: /" >&2
8548 echo "$as_me:$LINENO: checking for libintl.h" >&5
8549 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8550 if test "${ac_cv_header_libintl_h+set}" = set; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 ac_cv_header_libintl_h=$ac_header_preproc
8555 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8556 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8559 if test $ac_cv_header_libintl_h = yes; then
8560 echo "$as_me:$LINENO: checking for dgettext in libc" >&5
8561 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
8562 if test "${gt_cv_func_dgettext_libc+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 cat >conftest.$ac_ext <<_ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8571 #include <libintl.h>
8575 return (int) dgettext ("","")
8580 rm -f conftest.$ac_objext conftest$ac_exeext
8581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8582 (eval $ac_link) 2>conftest.er1
8584 grep -v '^ *+' conftest.er1 >conftest.err
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } &&
8589 { ac_try='test -z "$ac_c_werror_flag"
8590 || test ! -s conftest.err'
8591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; } &&
8596 { ac_try='test -s conftest$ac_exeext'
8597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; }; then
8602 gt_cv_func_dgettext_libc=yes
8604 echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8607 gt_cv_func_dgettext_libc=no
8609 rm -f conftest.err conftest.$ac_objext \
8610 conftest$ac_exeext conftest.$ac_ext
8612 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
8613 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
8615 if test "$gt_cv_func_dgettext_libc" != "yes"; then
8616 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8617 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8618 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 ac_check_lib_save_LIBS=$LIBS
8623 cat >conftest.$ac_ext <<_ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8630 /* Override any gcc2 internal prototype to avoid an error. */
8634 /* We use char because int might match the return type of a gcc2
8635 builtin and then its argument prototype would still apply. */
8636 char bindtextdomain ();
8645 rm -f conftest.$ac_objext conftest$ac_exeext
8646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8647 (eval $ac_link) 2>conftest.er1
8649 grep -v '^ *+' conftest.er1 >conftest.err
8651 cat conftest.err >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } &&
8654 { ac_try='test -z "$ac_c_werror_flag"
8655 || test ! -s conftest.err'
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; } &&
8661 { ac_try='test -s conftest$ac_exeext'
8662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666 (exit $ac_status); }; }; then
8667 ac_cv_lib_intl_bindtextdomain=yes
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8672 ac_cv_lib_intl_bindtextdomain=no
8674 rm -f conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext conftest.$ac_ext
8676 LIBS=$ac_check_lib_save_LIBS
8678 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8679 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8680 if test $ac_cv_lib_intl_bindtextdomain = yes; then
8681 echo "$as_me:$LINENO: checking for dgettext in libintl" >&5
8682 echo $ECHO_N "checking for dgettext in libintl... $ECHO_C" >&6
8683 if test "${gt_cv_func_dgettext_libintl+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
8687 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
8688 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8691 ac_check_lib_save_LIBS=$LIBS
8693 cat >conftest.$ac_ext <<_ACEOF
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h. */
8700 /* Override any gcc2 internal prototype to avoid an error. */
8704 /* We use char because int might match the return type of a gcc2
8705 builtin and then its argument prototype would still apply. */
8715 rm -f conftest.$ac_objext conftest$ac_exeext
8716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8717 (eval $ac_link) 2>conftest.er1
8719 grep -v '^ *+' conftest.er1 >conftest.err
8721 cat conftest.err >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } &&
8724 { ac_try='test -z "$ac_c_werror_flag"
8725 || test ! -s conftest.err'
8726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; } &&
8731 { ac_try='test -s conftest$ac_exeext'
8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
8737 ac_cv_lib_intl_dgettext=yes
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8742 ac_cv_lib_intl_dgettext=no
8744 rm -f conftest.err conftest.$ac_objext \
8745 conftest$ac_exeext conftest.$ac_ext
8746 LIBS=$ac_check_lib_save_LIBS
8748 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
8749 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
8750 if test $ac_cv_lib_intl_dgettext = yes; then
8751 gt_cv_func_dgettext_libintl=yes
8753 gt_cv_func_dgettext_libintl=no
8757 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libintl" >&5
8758 echo "${ECHO_T}$gt_cv_func_dgettext_libintl" >&6
8763 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8764 LIBS="$LIBS -lintl";
8767 if test "$gt_cv_func_dgettext_libc" = "yes" \
8768 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8770 cat >>confdefs.h <<\_ACEOF
8771 #define HAVE_GETTEXT 1
8774 # Extract the first word of "msgfmt", so it can be a program name with args.
8775 set dummy msgfmt; ac_word=$2
8776 echo "$as_me:$LINENO: checking for $ac_word" >&5
8777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8778 if test "${ac_cv_path_MSGFMT+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8783 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8786 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8787 for ac_dir in $PATH; do
8788 test -z "$ac_dir" && ac_dir=.
8789 if test -f $ac_dir/$ac_word; then
8790 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8791 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8797 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8801 MSGFMT="$ac_cv_path_MSGFMT"
8802 if test -n "$MSGFMT"; then
8803 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8804 echo "${ECHO_T}$MSGFMT" >&6
8806 echo "$as_me:$LINENO: result: no" >&5
8807 echo "${ECHO_T}no" >&6
8809 if test "$MSGFMT" != "no"; then
8811 for ac_func in dcgettext
8813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8814 echo "$as_me:$LINENO: checking for $ac_func" >&5
8815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8816 if eval "test \"\${$as_ac_var+set}\" = set"; then
8817 echo $ECHO_N "(cached) $ECHO_C" >&6
8819 cat >conftest.$ac_ext <<_ACEOF
8822 cat confdefs.h >>conftest.$ac_ext
8823 cat >>conftest.$ac_ext <<_ACEOF
8824 /* end confdefs.h. */
8825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8827 #define $ac_func innocuous_$ac_func
8829 /* System header to define __stub macros and hopefully few prototypes,
8830 which can conflict with char $ac_func (); below.
8831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8832 <limits.h> exists even on freestanding compilers. */
8835 # include <limits.h>
8837 # include <assert.h>
8842 /* Override any gcc2 internal prototype to avoid an error. */
8847 /* We use char because int might match the return type of a gcc2
8848 builtin and then its argument prototype would still apply. */
8850 /* The GNU C library defines this for functions which it implements
8851 to always fail with ENOSYS. Some functions are actually named
8852 something starting with __ and the normal name is an alias. */
8853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8856 char (*f) () = $ac_func;
8865 return f != $ac_func;
8870 rm -f conftest.$ac_objext conftest$ac_exeext
8871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8872 (eval $ac_link) 2>conftest.er1
8874 grep -v '^ *+' conftest.er1 >conftest.err
8876 cat conftest.err >&5
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); } &&
8879 { ac_try='test -z "$ac_c_werror_flag"
8880 || test ! -s conftest.err'
8881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); }; } &&
8886 { ac_try='test -s conftest$ac_exeext'
8887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; }; then
8892 eval "$as_ac_var=yes"
8894 echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8897 eval "$as_ac_var=no"
8899 rm -f conftest.err conftest.$ac_objext \
8900 conftest$ac_exeext conftest.$ac_ext
8902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8904 if test `eval echo '${'$as_ac_var'}'` = yes; then
8905 cat >>confdefs.h <<_ACEOF
8906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8912 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8913 set dummy gmsgfmt; ac_word=$2
8914 echo "$as_me:$LINENO: checking for $ac_word" >&5
8915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8916 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928 test -z "$as_dir" && as_dir=.
8929 for ac_exec_ext in '' $ac_executable_extensions; do
8930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8931 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8938 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8942 GMSGFMT=$ac_cv_path_GMSGFMT
8944 if test -n "$GMSGFMT"; then
8945 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8946 echo "${ECHO_T}$GMSGFMT" >&6
8948 echo "$as_me:$LINENO: result: no" >&5
8949 echo "${ECHO_T}no" >&6
8952 # Extract the first word of "xgettext", so it can be a program name with args.
8953 set dummy xgettext; ac_word=$2
8954 echo "$as_me:$LINENO: checking for $ac_word" >&5
8955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8956 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8965 for ac_dir in $PATH; do
8966 test -z "$ac_dir" && ac_dir=.
8967 if test -f $ac_dir/$ac_word; then
8968 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8969 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8975 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8979 XGETTEXT="$ac_cv_path_XGETTEXT"
8980 if test -n "$XGETTEXT"; then
8981 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8982 echo "${ECHO_T}$XGETTEXT" >&6
8984 echo "$as_me:$LINENO: result: no" >&5
8985 echo "${ECHO_T}no" >&6
8988 cat >conftest.$ac_ext <<_ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h. */
8998 extern int _nl_msg_cat_cntr;
8999 return _nl_msg_cat_cntr
9004 rm -f conftest.$ac_objext conftest$ac_exeext
9005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9006 (eval $ac_link) 2>conftest.er1
9008 grep -v '^ *+' conftest.er1 >conftest.err
9010 cat conftest.err >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } &&
9013 { ac_try='test -z "$ac_c_werror_flag"
9014 || test ! -s conftest.err'
9015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); }; } &&
9020 { ac_try='test -s conftest$ac_exeext'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; }; then
9029 echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9035 rm -f conftest.err conftest.$ac_objext \
9036 conftest$ac_exeext conftest.$ac_ext
9041 # Added by Martin Baulig 12/15/98 for libc5 systems
9042 if test "$gt_cv_func_dgettext_libc" != "yes" \
9043 && test "$gt_cv_func_dgettext_libintl" = "yes"; then
9045 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
9052 if test "$CATOBJEXT" = "NONE"; then
9053 nls_cv_use_gnu_gettext=yes
9057 if test "$nls_cv_use_gnu_gettext" != "yes"; then
9059 cat >>confdefs.h <<\_ACEOF
9060 #define ENABLE_NLS 1
9067 if test "$XGETTEXT" != ":"; then
9068 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9071 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
9072 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
9077 # We need to process the po/ directory.
9080 ac_config_commands="$ac_config_commands default-2"
9083 for lang in $ALL_LINGUAS; do
9084 GMOFILES="$GMOFILES $lang.gmo"
9085 POFILES="$POFILES $lang.po"
9100 if test "x$CATOBJEXT" != "x"; then
9101 if test "x$ALL_LINGUAS" = "x"; then
9104 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9105 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9107 for lang in ${LINGUAS=$ALL_LINGUAS}; do
9108 case "$ALL_LINGUAS" in
9109 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
9112 LINGUAS=$NEW_LINGUAS
9113 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9114 echo "${ECHO_T}$LINGUAS" >&6
9117 if test -n "$LINGUAS"; then
9118 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9122 test -d po || mkdir po
9123 if test "$CATOBJEXT" = ".cat"; then
9124 if test "${ac_cv_header_linux_version_h+set}" = set; then
9125 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9126 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9127 if test "${ac_cv_header_linux_version_h+set}" = set; then
9128 echo $ECHO_N "(cached) $ECHO_C" >&6
9130 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9131 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9133 # Is the header compilable?
9134 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
9135 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
9136 cat >conftest.$ac_ext <<_ACEOF
9139 cat confdefs.h >>conftest.$ac_ext
9140 cat >>conftest.$ac_ext <<_ACEOF
9141 /* end confdefs.h. */
9142 $ac_includes_default
9143 #include <linux/version.h>
9145 rm -f conftest.$ac_objext
9146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9147 (eval $ac_compile) 2>conftest.er1
9149 grep -v '^ *+' conftest.er1 >conftest.err
9151 cat conftest.err >&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); } &&
9154 { ac_try='test -z "$ac_c_werror_flag"
9155 || test ! -s conftest.err'
9156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; } &&
9161 { ac_try='test -s conftest.$ac_objext'
9162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); }; }; then
9167 ac_header_compiler=yes
9169 echo "$as_me: failed program was:" >&5
9170 sed 's/^/| /' conftest.$ac_ext >&5
9172 ac_header_compiler=no
9174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9175 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9176 echo "${ECHO_T}$ac_header_compiler" >&6
9178 # Is the header present?
9179 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
9180 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
9181 cat >conftest.$ac_ext <<_ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h. */
9187 #include <linux/version.h>
9189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9192 grep -v '^ *+' conftest.er1 >conftest.err
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } >/dev/null; then
9197 if test -s conftest.err; then
9198 ac_cpp_err=$ac_c_preproc_warn_flag
9199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9206 if test -z "$ac_cpp_err"; then
9207 ac_header_preproc=yes
9209 echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9212 ac_header_preproc=no
9214 rm -f conftest.err conftest.$ac_ext
9215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9216 echo "${ECHO_T}$ac_header_preproc" >&6
9218 # So? What about this header?
9219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9221 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9222 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9223 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
9224 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
9225 ac_header_preproc=yes
9228 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
9229 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
9230 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
9231 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
9232 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
9233 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
9234 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
9235 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
9236 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
9237 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
9238 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
9239 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
9242 ## ------------------------------------------ ##
9243 ## Report this to the AC_PACKAGE_NAME lists. ##
9244 ## ------------------------------------------ ##
9247 sed "s/^/$as_me: WARNING: /" >&2
9250 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9251 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9252 if test "${ac_cv_header_linux_version_h+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9255 ac_cv_header_linux_version_h=$ac_header_preproc
9257 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9258 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9261 if test $ac_cv_header_linux_version_h = yes; then
9269 sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
9274 # jwz: fuck this! it puts hardcoded pathnames into the generated Makefiles!
9276 # if test -n "$ac_aux_dir"; then
9277 # MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
9279 if test -z "$MKINSTALLDIRS"; then
9280 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
9283 # jwz: you know what, screw it. Let's just use the version that I
9284 # already computed in configure.in, instead of this version that came
9285 # with the i18n crud, ok?
9286 MKINSTALLDIRS="$INSTALL_DIRS"
9291 test -d po || mkdir po
9292 if test "x$srcdir" != "x."; then
9293 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
9294 posrcprefix="$srcdir/"
9296 posrcprefix="../$srcdir/"
9302 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
9303 < $srcdir/po/POTFILES.in > po/POTFILES
9305 MKINSTALLDIRS="$INSTALL_DIRS"
9308 ###############################################################################
9310 # Check for -lXmu (some fucked up vendors don't ship it...)
9312 ###############################################################################
9316 ac_save_CPPFLAGS="$CPPFLAGS"
9317 if test \! -z "$includedir" ; then
9318 CPPFLAGS="$CPPFLAGS -I$includedir"
9320 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9321 echo "$as_me:$LINENO: checking for X11/Xmu/Error.h" >&5
9322 echo $ECHO_N "checking for X11/Xmu/Error.h... $ECHO_C" >&6
9323 if test "${ac_cv_header_X11_Xmu_Error_h+set}" = set; then
9324 echo $ECHO_N "(cached) $ECHO_C" >&6
9326 cat >conftest.$ac_ext <<_ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h. */
9334 #include <X11/Intrinsic.h>
9336 #include <X11/Xmu/Error.h>
9338 rm -f conftest.$ac_objext
9339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9340 (eval $ac_compile) 2>conftest.er1
9342 grep -v '^ *+' conftest.er1 >conftest.err
9344 cat conftest.err >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
9347 { ac_try='test -z "$ac_c_werror_flag"
9348 || test ! -s conftest.err'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; } &&
9354 { ac_try='test -s conftest.$ac_objext'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9360 ac_cv_header_X11_Xmu_Error_h=yes
9362 echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.$ac_ext >&5
9365 ac_cv_header_X11_Xmu_Error_h=no
9367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9369 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xmu_Error_h" >&5
9370 echo "${ECHO_T}$ac_cv_header_X11_Xmu_Error_h" >&6
9371 if test $ac_cv_header_X11_Xmu_Error_h = yes; then
9376 CPPFLAGS="$ac_save_CPPFLAGS"
9377 if test "$have_xmu" = no ; then
9378 XMU_SRCS='$(UTILS_SRC)/xmu.c'
9379 XMU_OBJS='$(UTILS_BIN)/xmu.o'
9385 cat >>confdefs.h <<\_ACEOF
9392 ###############################################################################
9394 # Check for the SunOS 4.1.x _get_wmShellWidgetClass bug.
9395 # See comp.windows.x FAQ question 124. The right fix is to
9396 # get OpenWindows 3.0 patches 100512-02 and 100573-03.
9398 ###############################################################################
9400 if test "$have_xmu" = yes ; then
9403 echo "$as_me:$LINENO: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
9404 echo $ECHO_N "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug... $ECHO_C" >&6
9405 if test "${ac_cv_sunos_xmu_bug+set}" = set; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
9408 ac_save_LDFLAGS="$LDFLAGS"
9409 if test \! -z "$x_libraries" ; then
9410 LDFLAGS="$LDFLAGS -L$x_libraries"
9412 # Note: this trick never works! (Generally.)
9413 # We're only getting away with using AC_TRY_LINK
9414 # with X libraries because we know it's SunOS.
9415 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
9416 cat >conftest.$ac_ext <<_ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h. */
9431 rm -f conftest.$ac_objext conftest$ac_exeext
9432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433 (eval $ac_link) 2>conftest.er1
9435 grep -v '^ *+' conftest.er1 >conftest.err
9437 cat conftest.err >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } &&
9440 { ac_try='test -z "$ac_c_werror_flag"
9441 || test ! -s conftest.err'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; } &&
9447 { ac_try='test -s conftest$ac_exeext'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; }; then
9453 ac_cv_sunos_xmu_bug=no
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9458 ac_cv_sunos_xmu_bug=yes
9460 rm -f conftest.err conftest.$ac_objext \
9461 conftest$ac_exeext conftest.$ac_ext
9462 LDFLAGS="$ac_save_LDFLAGS"
9464 echo "$as_me:$LINENO: result: $ac_cv_sunos_xmu_bug" >&5
9465 echo "${ECHO_T}$ac_cv_sunos_xmu_bug" >&6
9466 if test "$ac_cv_sunos_xmu_bug" = yes ; then
9467 echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
9468 echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
9469 if test "${ac_cv_ld_static+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 ac_save_LDFLAGS="$LDFLAGS"
9473 LDFLAGS="$LDFLAGS -static"
9474 cat >conftest.$ac_ext <<_ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h. */
9489 rm -f conftest.$ac_objext conftest$ac_exeext
9490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9491 (eval $ac_link) 2>conftest.er1
9493 grep -v '^ *+' conftest.er1 >conftest.err
9495 cat conftest.err >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); } &&
9498 { ac_try='test -z "$ac_c_werror_flag"
9499 || test ! -s conftest.err'
9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); }; } &&
9505 { ac_try='test -s conftest$ac_exeext'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; }; then
9513 echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9518 rm -f conftest.err conftest.$ac_objext \
9519 conftest$ac_exeext conftest.$ac_ext
9520 LDFLAGS="$ac_save_LDFLAGS"
9522 echo "$as_me:$LINENO: result: $ac_cv_ld_static" >&5
9523 echo "${ECHO_T}$ac_cv_ld_static" >&6
9524 if test "$ac_cv_ld_static" = yes ; then
9525 LDFLAGS="$LDFLAGS -static"
9527 LDFLAGS="$LDFLAGS -Bstatic"
9535 ###############################################################################
9537 # Handle the --with-hackdir option
9539 ###############################################################################
9542 with_hackdir_req=unspecified
9544 # Check whether --with-hackdir or --without-hackdir was given.
9545 if test "${with_hackdir+set}" = set; then
9546 withval="$with_hackdir"
9547 with_hackdir="$withval"; with_hackdir_req="$withval"
9552 if test x"$with_hackdir" = xyes; then
9553 HACKDIR='${exec_prefix}/lib/xscreensaver'
9554 elif test x"$with_hackdir" = xno; then
9557 # there must be a better way than this...
9558 if test -z "`echo $with_hackdir | sed 's@^/.*@@'`" ; then
9560 HACKDIR=$with_hackdir
9563 HACKDIR="\${exec_prefix}$with_hackdir"
9567 # canonicalize slashes.
9568 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
9570 # This option used to be called --enable-subdir; make sure that is no longer
9571 # used, since configure brain-damagedly ignores unknown --enable options.
9574 # Check whether --enable-subdir or --disable-subdir was given.
9575 if test "${enable_subdir+set}" = set; then
9576 enableval="$enable_subdir"
9579 if test -n "$obsolete_enable"; then
9580 echo "error: the --enable-subdir option has been replaced with"
9581 echo " the new --with-hackdir option; see \`configure --help'"
9582 echo " for more information."
9587 ###############################################################################
9589 # Handle the --with-configdir option
9591 ###############################################################################
9594 with_configdir_req=unspecified
9596 # Check whether --with-configdir or --without-configdir was given.
9597 if test "${with_configdir+set}" = set; then
9598 withval="$with_configdir"
9599 with_configdir="$withval"; with_configdir_req="$withval"
9604 if test x"$with_configdir" = xyes; then
9605 # filled in later...
9607 elif test x"$with_configdir" = xno; then
9608 echo "error: must be yes, or a pathname: --with-configdir=$with_configdir"
9611 # there must be a better way than this...
9612 if test -z "`echo $with_configdir | sed 's@^/.*@@'`" ; then
9614 HACK_CONF_DIR=$with_configdir
9617 HACK_CONF_DIR="\${exec_prefix}$with_configdir"
9624 ###############################################################################
9626 # Check for the SGI SCREEN_SAVER server extension.
9628 ###############################################################################
9631 with_sgi_req=unspecified
9633 # Check whether --with-sgi-ext or --without-sgi-ext was given.
9634 if test "${with_sgi_ext+set}" = set; then
9635 withval="$with_sgi_ext"
9636 with_sgi="$withval"; with_sgi_req="$withval"
9647 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER headers" >&5
9648 echo $ECHO_N "checking for SGI SCREEN_SAVER headers... $ECHO_C" >&6
9651 X_CFLAGS="-I$d $X_CFLAGS"
9652 echo "$as_me:$LINENO: result: $d" >&5
9653 echo "${ECHO_T}$d" >&6
9655 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9656 echo "${ECHO_T}not found ($d: no such directory)" >&6
9659 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER libs" >&5
9660 echo $ECHO_N "checking for SGI SCREEN_SAVER libs... $ECHO_C" >&6
9663 X_LIBS="-L$d $X_LIBS"
9664 echo "$as_me:$LINENO: result: $d" >&5
9665 echo "${ECHO_T}$d" >&6
9667 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9668 echo "${ECHO_T}not found ($d: no such directory)" >&6
9671 # replace the directory string with "yes".
9673 with_sgi=$with_sgi_req
9678 echo "error: argument to --with-sgi-ext must be \"yes\", \"no\", or a directory."
9679 echo " If it is a directory, then \`DIR/include' will be added to"
9680 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9686 if test "$with_sgi" = yes; then
9688 ac_save_CPPFLAGS="$CPPFLAGS"
9689 if test \! -z "$includedir" ; then
9690 CPPFLAGS="$CPPFLAGS -I$includedir"
9692 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9693 echo "$as_me:$LINENO: checking for X11/extensions/XScreenSaver.h" >&5
9694 echo $ECHO_N "checking for X11/extensions/XScreenSaver.h... $ECHO_C" >&6
9695 if test "${ac_cv_header_X11_extensions_XScreenSaver_h+set}" = set; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9698 cat >conftest.$ac_ext <<_ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704 #include <X11/Xlib.h>
9706 #include <X11/extensions/XScreenSaver.h>
9708 rm -f conftest.$ac_objext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9710 (eval $ac_compile) 2>conftest.er1
9712 grep -v '^ *+' conftest.er1 >conftest.err
9714 cat conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try='test -z "$ac_c_werror_flag"
9718 || test ! -s conftest.err'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; } &&
9724 { ac_try='test -s conftest.$ac_objext'
9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9730 ac_cv_header_X11_extensions_XScreenSaver_h=yes
9732 echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9735 ac_cv_header_X11_extensions_XScreenSaver_h=no
9737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9739 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XScreenSaver_h" >&5
9740 echo "${ECHO_T}$ac_cv_header_X11_extensions_XScreenSaver_h" >&6
9741 if test $ac_cv_header_X11_extensions_XScreenSaver_h = yes; then
9743 cat >>confdefs.h <<\_ACEOF
9744 #define HAVE_SGI_SAVER_EXTENSION 1
9750 CPPFLAGS="$ac_save_CPPFLAGS"
9752 elif test "$with_sgi" != no; then
9753 echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
9758 ###############################################################################
9760 # Check for the MIT-SCREEN-SAVER server extension.
9762 ###############################################################################
9765 with_mit_req=unspecified
9767 # Check whether --with-mit-ext or --without-mit-ext was given.
9768 if test "${with_mit_ext+set}" = set; then
9769 withval="$with_mit_ext"
9770 with_mit="$withval"; with_mit_req="$withval"
9781 echo "$as_me:$LINENO: checking for MIT-SCREEN-SAVER headers" >&5
9782 echo $ECHO_N "checking for MIT-SCREEN-SAVER headers... $ECHO_C" >&6
9785 X_CFLAGS="-I$d $X_CFLAGS"
9786 echo "$as_me:$LINENO: result: $d" >&5
9787 echo "${ECHO_T}$d" >&6
9789 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9790 echo "${ECHO_T}not found ($d: no such directory)" >&6
9793 echo "$as_me:$LINENO: checking for MIT-SCREEN-SAVER libs" >&5
9794 echo $ECHO_N "checking for MIT-SCREEN-SAVER libs... $ECHO_C" >&6
9797 X_LIBS="-L$d $X_LIBS"
9798 echo "$as_me:$LINENO: result: $d" >&5
9799 echo "${ECHO_T}$d" >&6
9801 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9802 echo "${ECHO_T}not found ($d: no such directory)" >&6
9805 # replace the directory string with "yes".
9807 with_mit=$with_mit_req
9812 echo "error: argument to --with-mit-ext must be \"yes\", \"no\", or a directory."
9813 echo " If it is a directory, then \`DIR/include' will be added to"
9814 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9820 if test "$with_mit" = yes; then
9822 ac_save_CPPFLAGS="$CPPFLAGS"
9823 if test \! -z "$includedir" ; then
9824 CPPFLAGS="$CPPFLAGS -I$includedir"
9826 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9827 echo "$as_me:$LINENO: checking for X11/extensions/scrnsaver.h" >&5
9828 echo $ECHO_N "checking for X11/extensions/scrnsaver.h... $ECHO_C" >&6
9829 if test "${ac_cv_header_X11_extensions_scrnsaver_h+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 cat >conftest.$ac_ext <<_ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9838 #include <X11/Xlib.h>
9840 #include <X11/extensions/scrnsaver.h>
9842 rm -f conftest.$ac_objext
9843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9844 (eval $ac_compile) 2>conftest.er1
9846 grep -v '^ *+' conftest.er1 >conftest.err
9848 cat conftest.err >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } &&
9851 { ac_try='test -z "$ac_c_werror_flag"
9852 || test ! -s conftest.err'
9853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); }; } &&
9858 { ac_try='test -s conftest.$ac_objext'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9864 ac_cv_header_X11_extensions_scrnsaver_h=yes
9866 echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9869 ac_cv_header_X11_extensions_scrnsaver_h=no
9871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9873 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_scrnsaver_h" >&5
9874 echo "${ECHO_T}$ac_cv_header_X11_extensions_scrnsaver_h" >&6
9875 if test $ac_cv_header_X11_extensions_scrnsaver_h = yes; then
9880 CPPFLAGS="$ac_save_CPPFLAGS"
9882 # Now check to see if it's really in the library; XF86Free-3.3 ships
9883 # scrnsaver.h, but doesn't include the code in libXext.a, the idiots!
9885 if test "$have_mit" = yes; then
9887 ac_save_CPPFLAGS="$CPPFLAGS"
9888 ac_save_LDFLAGS="$LDFLAGS"
9889 # ac_save_LIBS="$LIBS"
9891 if test \! -z "$includedir" ; then
9892 CPPFLAGS="$CPPFLAGS -I$includedir"
9894 # note: $X_CFLAGS includes $x_includes
9895 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9897 if test \! -z "$libdir" ; then
9898 LDFLAGS="$LDFLAGS -L$libdir"
9900 # note: $X_LIBS includes $x_libraries
9901 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9903 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXext" >&5
9904 echo $ECHO_N "checking for XScreenSaverRegister in -lXext... $ECHO_C" >&6
9905 if test "${ac_cv_lib_Xext_XScreenSaverRegister+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 ac_check_lib_save_LIBS=$LIBS
9909 LIBS="-lXext -lm $LIBS"
9910 cat >conftest.$ac_ext <<_ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9917 /* Override any gcc2 internal prototype to avoid an error. */
9921 /* We use char because int might match the return type of a gcc2
9922 builtin and then its argument prototype would still apply. */
9923 char XScreenSaverRegister ();
9927 XScreenSaverRegister ();
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934 (eval $ac_link) 2>conftest.er1
9936 grep -v '^ *+' conftest.er1 >conftest.err
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } &&
9941 { ac_try='test -z "$ac_c_werror_flag"
9942 || test ! -s conftest.err'
9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); }; } &&
9948 { ac_try='test -s conftest$ac_exeext'
9949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); }; }; then
9954 ac_cv_lib_Xext_XScreenSaverRegister=yes
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9959 ac_cv_lib_Xext_XScreenSaverRegister=no
9961 rm -f conftest.err conftest.$ac_objext \
9962 conftest$ac_exeext conftest.$ac_ext
9963 LIBS=$ac_check_lib_save_LIBS
9965 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XScreenSaverRegister" >&5
9966 echo "${ECHO_T}$ac_cv_lib_Xext_XScreenSaverRegister" >&6
9967 if test $ac_cv_lib_Xext_XScreenSaverRegister = yes; then
9973 CPPFLAGS="$ac_save_CPPFLAGS"
9974 LDFLAGS="$ac_save_LDFLAGS"
9975 # LIBS="$ac_save_LIBS"
9978 if test "$have_mit" = no; then
9979 # Fuck! Looks like XF86Free-3.3 actually puts it in XExExt instead
9980 # of in Xext. Thank you master, may I have another.
9982 ac_save_CPPFLAGS="$CPPFLAGS"
9983 ac_save_LDFLAGS="$LDFLAGS"
9984 # ac_save_LIBS="$LIBS"
9986 if test \! -z "$includedir" ; then
9987 CPPFLAGS="$CPPFLAGS -I$includedir"
9989 # note: $X_CFLAGS includes $x_includes
9990 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9992 if test \! -z "$libdir" ; then
9993 LDFLAGS="$LDFLAGS -L$libdir"
9995 # note: $X_LIBS includes $x_libraries
9996 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9998 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXExExt" >&5
9999 echo $ECHO_N "checking for XScreenSaverRegister in -lXExExt... $ECHO_C" >&6
10000 if test "${ac_cv_lib_XExExt_XScreenSaverRegister+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 ac_check_lib_save_LIBS=$LIBS
10004 LIBS="-lXExExt -lX11 -lXext -lm $LIBS"
10005 cat >conftest.$ac_ext <<_ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10012 /* Override any gcc2 internal prototype to avoid an error. */
10016 /* We use char because int might match the return type of a gcc2
10017 builtin and then its argument prototype would still apply. */
10018 char XScreenSaverRegister ();
10022 XScreenSaverRegister ();
10027 rm -f conftest.$ac_objext conftest$ac_exeext
10028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10029 (eval $ac_link) 2>conftest.er1
10031 grep -v '^ *+' conftest.er1 >conftest.err
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
10036 { ac_try='test -z "$ac_c_werror_flag"
10037 || test ! -s conftest.err'
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; } &&
10043 { ac_try='test -s conftest$ac_exeext'
10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045 (eval $ac_try) 2>&5
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; }; then
10049 ac_cv_lib_XExExt_XScreenSaverRegister=yes
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10054 ac_cv_lib_XExExt_XScreenSaverRegister=no
10056 rm -f conftest.err conftest.$ac_objext \
10057 conftest$ac_exeext conftest.$ac_ext
10058 LIBS=$ac_check_lib_save_LIBS
10060 echo "$as_me:$LINENO: result: $ac_cv_lib_XExExt_XScreenSaverRegister" >&5
10061 echo "${ECHO_T}$ac_cv_lib_XExExt_XScreenSaverRegister" >&6
10062 if test $ac_cv_lib_XExExt_XScreenSaverRegister = yes; then
10063 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXExExt"
10068 CPPFLAGS="$ac_save_CPPFLAGS"
10069 LDFLAGS="$ac_save_LDFLAGS"
10070 # LIBS="$ac_save_LIBS"
10074 if test "$have_mit" = no; then
10075 # Double fuck! Looks like some versions of XFree86 (whichever version
10076 # it is that comes with RedHat Linux 2.0 -- I can't find a version
10077 # number) put this garbage in Xss instead of Xext. Thank you master,
10078 # may I have another.
10080 ac_save_CPPFLAGS="$CPPFLAGS"
10081 ac_save_LDFLAGS="$LDFLAGS"
10082 # ac_save_LIBS="$LIBS"
10084 if test \! -z "$includedir" ; then
10085 CPPFLAGS="$CPPFLAGS -I$includedir"
10087 # note: $X_CFLAGS includes $x_includes
10088 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10090 if test \! -z "$libdir" ; then
10091 LDFLAGS="$LDFLAGS -L$libdir"
10093 # note: $X_LIBS includes $x_libraries
10094 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10096 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXss" >&5
10097 echo $ECHO_N "checking for XScreenSaverRegister in -lXss... $ECHO_C" >&6
10098 if test "${ac_cv_lib_Xss_XScreenSaverRegister+set}" = set; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 ac_check_lib_save_LIBS=$LIBS
10102 LIBS="-lXss -lX11 -lXext -lm $LIBS"
10103 cat >conftest.$ac_ext <<_ACEOF
10106 cat confdefs.h >>conftest.$ac_ext
10107 cat >>conftest.$ac_ext <<_ACEOF
10108 /* end confdefs.h. */
10110 /* Override any gcc2 internal prototype to avoid an error. */
10114 /* We use char because int might match the return type of a gcc2
10115 builtin and then its argument prototype would still apply. */
10116 char XScreenSaverRegister ();
10120 XScreenSaverRegister ();
10125 rm -f conftest.$ac_objext conftest$ac_exeext
10126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10127 (eval $ac_link) 2>conftest.er1
10129 grep -v '^ *+' conftest.er1 >conftest.err
10131 cat conftest.err >&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); } &&
10134 { ac_try='test -z "$ac_c_werror_flag"
10135 || test ! -s conftest.err'
10136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; } &&
10141 { ac_try='test -s conftest$ac_exeext'
10142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143 (eval $ac_try) 2>&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; }; then
10147 ac_cv_lib_Xss_XScreenSaverRegister=yes
10149 echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10152 ac_cv_lib_Xss_XScreenSaverRegister=no
10154 rm -f conftest.err conftest.$ac_objext \
10155 conftest$ac_exeext conftest.$ac_ext
10156 LIBS=$ac_check_lib_save_LIBS
10158 echo "$as_me:$LINENO: result: $ac_cv_lib_Xss_XScreenSaverRegister" >&5
10159 echo "${ECHO_T}$ac_cv_lib_Xss_XScreenSaverRegister" >&6
10160 if test $ac_cv_lib_Xss_XScreenSaverRegister = yes; then
10161 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXss"
10166 CPPFLAGS="$ac_save_CPPFLAGS"
10167 LDFLAGS="$ac_save_LDFLAGS"
10168 # LIBS="$ac_save_LIBS"
10172 if test "$have_mit" = yes; then
10173 cat >>confdefs.h <<\_ACEOF
10174 #define HAVE_MIT_SAVER_EXTENSION 1
10181 elif test "$with_mit" != no; then
10182 echo "error: must be yes or no: --with-mit-ext=$with_mit"
10187 ###############################################################################
10189 # Check for the XIDLE server extension.
10191 ###############################################################################
10194 with_xidle_req=unspecified
10196 # Check whether --with-xidle-ext or --without-xidle-ext was given.
10197 if test "${with_xidle_ext+set}" = set; then
10198 withval="$with_xidle_ext"
10199 with_xidle="$withval"; with_xidle_req="$withval"
10205 case "$with_xidle" in
10210 echo "$as_me:$LINENO: checking for XIDLE headers" >&5
10211 echo $ECHO_N "checking for XIDLE headers... $ECHO_C" >&6
10212 d=$with_xidle/include
10213 if test -d $d; then
10214 X_CFLAGS="-I$d $X_CFLAGS"
10215 echo "$as_me:$LINENO: result: $d" >&5
10216 echo "${ECHO_T}$d" >&6
10218 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10219 echo "${ECHO_T}not found ($d: no such directory)" >&6
10222 echo "$as_me:$LINENO: checking for XIDLE libs" >&5
10223 echo $ECHO_N "checking for XIDLE libs... $ECHO_C" >&6
10225 if test -d $d; then
10226 X_LIBS="-L$d $X_LIBS"
10227 echo "$as_me:$LINENO: result: $d" >&5
10228 echo "${ECHO_T}$d" >&6
10230 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10231 echo "${ECHO_T}not found ($d: no such directory)" >&6
10234 # replace the directory string with "yes".
10235 with_xidle_req="yes"
10236 with_xidle=$with_xidle_req
10241 echo "error: argument to --with-xidle-ext must be \"yes\", \"no\", or a directory."
10242 echo " If it is a directory, then \`DIR/include' will be added to"
10243 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10249 if test "$with_xidle" = yes; then
10251 ac_save_CPPFLAGS="$CPPFLAGS"
10252 if test \! -z "$includedir" ; then
10253 CPPFLAGS="$CPPFLAGS -I$includedir"
10255 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10256 echo "$as_me:$LINENO: checking for X11/extensions/xidle.h" >&5
10257 echo $ECHO_N "checking for X11/extensions/xidle.h... $ECHO_C" >&6
10258 if test "${ac_cv_header_X11_extensions_xidle_h+set}" = set; then
10259 echo $ECHO_N "(cached) $ECHO_C" >&6
10261 cat >conftest.$ac_ext <<_ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h. */
10267 #include <X11/Xlib.h>
10269 #include <X11/extensions/xidle.h>
10271 rm -f conftest.$ac_objext
10272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10273 (eval $ac_compile) 2>conftest.er1
10275 grep -v '^ *+' conftest.er1 >conftest.err
10277 cat conftest.err >&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } &&
10280 { ac_try='test -z "$ac_c_werror_flag"
10281 || test ! -s conftest.err'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; } &&
10287 { ac_try='test -s conftest.$ac_objext'
10288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289 (eval $ac_try) 2>&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; }; then
10293 ac_cv_header_X11_extensions_xidle_h=yes
10295 echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.$ac_ext >&5
10298 ac_cv_header_X11_extensions_xidle_h=no
10300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10302 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xidle_h" >&5
10303 echo "${ECHO_T}$ac_cv_header_X11_extensions_xidle_h" >&6
10304 if test $ac_cv_header_X11_extensions_xidle_h = yes; then
10306 cat >>confdefs.h <<\_ACEOF
10307 #define HAVE_XIDLE_EXTENSION 1
10313 CPPFLAGS="$ac_save_CPPFLAGS"
10314 elif test "$with_xidle" != no; then
10315 echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
10320 ###############################################################################
10322 # Check for the SGI-VIDEO-CONTROL server extension.
10324 ###############################################################################
10327 with_sgivc_req=unspecified
10329 # Check whether --with-sgivc-ext or --without-sgivc-ext was given.
10330 if test "${with_sgivc_ext+set}" = set; then
10331 withval="$with_sgivc_ext"
10332 with_sgivc="$withval"; with_sgivc_req="$withval"
10338 case "$with_sgivc" in
10343 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL headers" >&5
10344 echo $ECHO_N "checking for SGI-VIDEO-CONTROL headers... $ECHO_C" >&6
10345 d=$with_sgivc/include
10346 if test -d $d; then
10347 X_CFLAGS="-I$d $X_CFLAGS"
10348 echo "$as_me:$LINENO: result: $d" >&5
10349 echo "${ECHO_T}$d" >&6
10351 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10352 echo "${ECHO_T}not found ($d: no such directory)" >&6
10355 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL libs" >&5
10356 echo $ECHO_N "checking for SGI-VIDEO-CONTROL libs... $ECHO_C" >&6
10358 if test -d $d; then
10359 X_LIBS="-L$d $X_LIBS"
10360 echo "$as_me:$LINENO: result: $d" >&5
10361 echo "${ECHO_T}$d" >&6
10363 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10364 echo "${ECHO_T}not found ($d: no such directory)" >&6
10367 # replace the directory string with "yes".
10368 with_sgivc_req="yes"
10369 with_sgivc=$with_sgivc_req
10374 echo "error: argument to --with-sgivc-ext must be \"yes\", \"no\", or a directory."
10375 echo " If it is a directory, then \`DIR/include' will be added to"
10376 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10382 if test "$with_sgivc" = yes; then
10384 # first check for XSGIvc.h
10386 ac_save_CPPFLAGS="$CPPFLAGS"
10387 if test \! -z "$includedir" ; then
10388 CPPFLAGS="$CPPFLAGS -I$includedir"
10390 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10391 echo "$as_me:$LINENO: checking for X11/extensions/XSGIvc.h" >&5
10392 echo $ECHO_N "checking for X11/extensions/XSGIvc.h... $ECHO_C" >&6
10393 if test "${ac_cv_header_X11_extensions_XSGIvc_h+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
10396 cat >conftest.$ac_ext <<_ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10402 #include <X11/Xlib.h>
10404 #include <X11/extensions/XSGIvc.h>
10406 rm -f conftest.$ac_objext
10407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10408 (eval $ac_compile) 2>conftest.er1
10410 grep -v '^ *+' conftest.er1 >conftest.err
10412 cat conftest.err >&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } &&
10415 { ac_try='test -z "$ac_c_werror_flag"
10416 || test ! -s conftest.err'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; } &&
10422 { ac_try='test -s conftest.$ac_objext'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; }; then
10428 ac_cv_header_X11_extensions_XSGIvc_h=yes
10430 echo "$as_me: failed program was:" >&5
10431 sed 's/^/| /' conftest.$ac_ext >&5
10433 ac_cv_header_X11_extensions_XSGIvc_h=no
10435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10437 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XSGIvc_h" >&5
10438 echo "${ECHO_T}$ac_cv_header_X11_extensions_XSGIvc_h" >&6
10439 if test $ac_cv_header_X11_extensions_XSGIvc_h = yes; then
10444 CPPFLAGS="$ac_save_CPPFLAGS"
10446 # if that succeeded, then check for the -lXsgivc
10447 if test "$have_sgivc" = yes; then
10450 ac_save_CPPFLAGS="$CPPFLAGS"
10451 ac_save_LDFLAGS="$LDFLAGS"
10452 # ac_save_LIBS="$LIBS"
10454 if test \! -z "$includedir" ; then
10455 CPPFLAGS="$CPPFLAGS -I$includedir"
10457 # note: $X_CFLAGS includes $x_includes
10458 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10460 if test \! -z "$libdir" ; then
10461 LDFLAGS="$LDFLAGS -L$libdir"
10463 # note: $X_LIBS includes $x_libraries
10464 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10466 echo "$as_me:$LINENO: checking for XSGIvcQueryGammaMap in -lXsgivc" >&5
10467 echo $ECHO_N "checking for XSGIvcQueryGammaMap in -lXsgivc... $ECHO_C" >&6
10468 if test "${ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 ac_check_lib_save_LIBS=$LIBS
10472 LIBS="-lXsgivc -lXext -lX11 $LIBS"
10473 cat >conftest.$ac_ext <<_ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h. */
10480 /* Override any gcc2 internal prototype to avoid an error. */
10484 /* We use char because int might match the return type of a gcc2
10485 builtin and then its argument prototype would still apply. */
10486 char XSGIvcQueryGammaMap ();
10490 XSGIvcQueryGammaMap ();
10495 rm -f conftest.$ac_objext conftest$ac_exeext
10496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10497 (eval $ac_link) 2>conftest.er1
10499 grep -v '^ *+' conftest.er1 >conftest.err
10501 cat conftest.err >&5
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); } &&
10504 { ac_try='test -z "$ac_c_werror_flag"
10505 || test ! -s conftest.err'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; } &&
10511 { ac_try='test -s conftest$ac_exeext'
10512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10513 (eval $ac_try) 2>&5
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); }; }; then
10517 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=yes
10519 echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10522 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=no
10524 rm -f conftest.err conftest.$ac_objext \
10525 conftest$ac_exeext conftest.$ac_ext
10526 LIBS=$ac_check_lib_save_LIBS
10528 echo "$as_me:$LINENO: result: $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&5
10529 echo "${ECHO_T}$ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&6
10530 if test $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap = yes; then
10531 have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"
10536 CPPFLAGS="$ac_save_CPPFLAGS"
10537 LDFLAGS="$ac_save_LDFLAGS"
10538 # LIBS="$ac_save_LIBS"
10542 # if that succeeded, then we've really got it.
10543 if test "$have_sgivc" = yes; then
10544 cat >>confdefs.h <<\_ACEOF
10545 #define HAVE_SGI_VC_EXTENSION 1
10550 elif test "$with_sgivc" != no; then
10551 echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
10556 ###############################################################################
10558 # Check for the DPMS server extension.
10560 ###############################################################################
10563 with_dpms_req=unspecified
10565 # Check whether --with-dpms-ext or --without-dpms-ext was given.
10566 if test "${with_dpms_ext+set}" = set; then
10567 withval="$with_dpms_ext"
10568 with_dpms="$withval"; with_dpms_req="$withval"
10574 case "$with_dpms" in
10579 echo "$as_me:$LINENO: checking for DPMS headers" >&5
10580 echo $ECHO_N "checking for DPMS headers... $ECHO_C" >&6
10581 d=$with_dpms/include
10582 if test -d $d; then
10583 X_CFLAGS="-I$d $X_CFLAGS"
10584 echo "$as_me:$LINENO: result: $d" >&5
10585 echo "${ECHO_T}$d" >&6
10587 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10588 echo "${ECHO_T}not found ($d: no such directory)" >&6
10591 echo "$as_me:$LINENO: checking for DPMS libs" >&5
10592 echo $ECHO_N "checking for DPMS libs... $ECHO_C" >&6
10594 if test -d $d; then
10595 X_LIBS="-L$d $X_LIBS"
10596 echo "$as_me:$LINENO: result: $d" >&5
10597 echo "${ECHO_T}$d" >&6
10599 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10600 echo "${ECHO_T}not found ($d: no such directory)" >&6
10603 # replace the directory string with "yes".
10604 with_dpms_req="yes"
10605 with_dpms=$with_dpms_req
10610 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
10611 echo " If it is a directory, then \`DIR/include' will be added to"
10612 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10618 if test "$with_dpms" = yes; then
10620 # first check for dpms.h
10622 ac_save_CPPFLAGS="$CPPFLAGS"
10623 if test \! -z "$includedir" ; then
10624 CPPFLAGS="$CPPFLAGS -I$includedir"
10626 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10627 echo "$as_me:$LINENO: checking for X11/extensions/dpms.h" >&5
10628 echo $ECHO_N "checking for X11/extensions/dpms.h... $ECHO_C" >&6
10629 if test "${ac_cv_header_X11_extensions_dpms_h+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10632 cat >conftest.$ac_ext <<_ACEOF
10635 cat confdefs.h >>conftest.$ac_ext
10636 cat >>conftest.$ac_ext <<_ACEOF
10637 /* end confdefs.h. */
10638 #include <X11/Xlib.h>
10639 #include <X11/Xmd.h>
10641 #include <X11/extensions/dpms.h>
10643 rm -f conftest.$ac_objext
10644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10645 (eval $ac_compile) 2>conftest.er1
10647 grep -v '^ *+' conftest.er1 >conftest.err
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } &&
10652 { ac_try='test -z "$ac_c_werror_flag"
10653 || test ! -s conftest.err'
10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655 (eval $ac_try) 2>&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; } &&
10659 { ac_try='test -s conftest.$ac_objext'
10660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10661 (eval $ac_try) 2>&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); }; }; then
10665 ac_cv_header_X11_extensions_dpms_h=yes
10667 echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10670 ac_cv_header_X11_extensions_dpms_h=no
10672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10674 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_dpms_h" >&5
10675 echo "${ECHO_T}$ac_cv_header_X11_extensions_dpms_h" >&6
10676 if test $ac_cv_header_X11_extensions_dpms_h = yes; then
10681 CPPFLAGS="$ac_save_CPPFLAGS"
10683 # if that succeeded, then check for the DPMS code in the libraries
10684 if test "$have_dpms" = yes; then
10686 # first look in -lXext (this is where it is with XFree86 4.0)
10689 ac_save_CPPFLAGS="$CPPFLAGS"
10690 ac_save_LDFLAGS="$LDFLAGS"
10691 # ac_save_LIBS="$LIBS"
10693 if test \! -z "$includedir" ; then
10694 CPPFLAGS="$CPPFLAGS -I$includedir"
10696 # note: $X_CFLAGS includes $x_includes
10697 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10699 if test \! -z "$libdir" ; then
10700 LDFLAGS="$LDFLAGS -L$libdir"
10702 # note: $X_LIBS includes $x_libraries
10703 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10705 echo "$as_me:$LINENO: checking for DPMSInfo in -lXext" >&5
10706 echo $ECHO_N "checking for DPMSInfo in -lXext... $ECHO_C" >&6
10707 if test "${ac_cv_lib_Xext_DPMSInfo+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 ac_check_lib_save_LIBS=$LIBS
10711 LIBS="-lXext -lXext -lX11 $LIBS"
10712 cat >conftest.$ac_ext <<_ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10719 /* Override any gcc2 internal prototype to avoid an error. */
10723 /* We use char because int might match the return type of a gcc2
10724 builtin and then its argument prototype would still apply. */
10734 rm -f conftest.$ac_objext conftest$ac_exeext
10735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10736 (eval $ac_link) 2>conftest.er1
10738 grep -v '^ *+' conftest.er1 >conftest.err
10740 cat conftest.err >&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } &&
10743 { ac_try='test -z "$ac_c_werror_flag"
10744 || test ! -s conftest.err'
10745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746 (eval $ac_try) 2>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; } &&
10750 { ac_try='test -s conftest$ac_exeext'
10751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752 (eval $ac_try) 2>&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); }; }; then
10756 ac_cv_lib_Xext_DPMSInfo=yes
10758 echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10761 ac_cv_lib_Xext_DPMSInfo=no
10763 rm -f conftest.err conftest.$ac_objext \
10764 conftest$ac_exeext conftest.$ac_ext
10765 LIBS=$ac_check_lib_save_LIBS
10767 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_DPMSInfo" >&5
10768 echo "${ECHO_T}$ac_cv_lib_Xext_DPMSInfo" >&6
10769 if test $ac_cv_lib_Xext_DPMSInfo = yes; then
10775 CPPFLAGS="$ac_save_CPPFLAGS"
10776 LDFLAGS="$ac_save_LDFLAGS"
10777 # LIBS="$ac_save_LIBS"
10780 # if that failed, look in -lXdpms (this is where it was in XFree86 3.x)
10781 if test "$have_dpms" = no; then
10783 ac_save_CPPFLAGS="$CPPFLAGS"
10784 ac_save_LDFLAGS="$LDFLAGS"
10785 # ac_save_LIBS="$LIBS"
10787 if test \! -z "$includedir" ; then
10788 CPPFLAGS="$CPPFLAGS -I$includedir"
10790 # note: $X_CFLAGS includes $x_includes
10791 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10793 if test \! -z "$libdir" ; then
10794 LDFLAGS="$LDFLAGS -L$libdir"
10796 # note: $X_LIBS includes $x_libraries
10797 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10799 echo "$as_me:$LINENO: checking for DPMSInfo in -lXdpms" >&5
10800 echo $ECHO_N "checking for DPMSInfo in -lXdpms... $ECHO_C" >&6
10801 if test "${ac_cv_lib_Xdpms_DPMSInfo+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 ac_check_lib_save_LIBS=$LIBS
10805 LIBS="-lXdpms -lXext -lX11 $LIBS"
10806 cat >conftest.$ac_ext <<_ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h. */
10813 /* Override any gcc2 internal prototype to avoid an error. */
10817 /* We use char because int might match the return type of a gcc2
10818 builtin and then its argument prototype would still apply. */
10828 rm -f conftest.$ac_objext conftest$ac_exeext
10829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10830 (eval $ac_link) 2>conftest.er1
10832 grep -v '^ *+' conftest.er1 >conftest.err
10834 cat conftest.err >&5
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } &&
10837 { ac_try='test -z "$ac_c_werror_flag"
10838 || test ! -s conftest.err'
10839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840 (eval $ac_try) 2>&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; } &&
10844 { ac_try='test -s conftest$ac_exeext'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; }; then
10850 ac_cv_lib_Xdpms_DPMSInfo=yes
10852 echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10855 ac_cv_lib_Xdpms_DPMSInfo=no
10857 rm -f conftest.err conftest.$ac_objext \
10858 conftest$ac_exeext conftest.$ac_ext
10859 LIBS=$ac_check_lib_save_LIBS
10861 echo "$as_me:$LINENO: result: $ac_cv_lib_Xdpms_DPMSInfo" >&5
10862 echo "${ECHO_T}$ac_cv_lib_Xdpms_DPMSInfo" >&6
10863 if test $ac_cv_lib_Xdpms_DPMSInfo = yes; then
10864 have_dpms=yes; XDPMS_LIBS="-lXdpms"
10869 CPPFLAGS="$ac_save_CPPFLAGS"
10870 LDFLAGS="$ac_save_LDFLAGS"
10871 # LIBS="$ac_save_LIBS"
10877 # if that succeeded, then we've really got it.
10878 if test "$have_dpms" = yes; then
10879 cat >>confdefs.h <<\_ACEOF
10880 #define HAVE_DPMS_EXTENSION 1
10885 elif test "$with_dpms" != no; then
10886 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
10891 ###############################################################################
10893 # Check for the XINERAMA server extension.
10895 ###############################################################################
10898 with_xinerama_req=unspecified
10900 # Check whether --with-xinerama-ext or --without-xinerama-ext was given.
10901 if test "${with_xinerama_ext+set}" = set; then
10902 withval="$with_xinerama_ext"
10903 with_xinerama="$withval"; with_xinerama_req="$withval"
10909 case "$with_xinerama" in
10914 echo "$as_me:$LINENO: checking for XINERAMA headers" >&5
10915 echo $ECHO_N "checking for XINERAMA headers... $ECHO_C" >&6
10916 d=$with_xinerama/include
10917 if test -d $d; then
10918 X_CFLAGS="-I$d $X_CFLAGS"
10919 echo "$as_me:$LINENO: result: $d" >&5
10920 echo "${ECHO_T}$d" >&6
10922 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10923 echo "${ECHO_T}not found ($d: no such directory)" >&6
10926 echo "$as_me:$LINENO: checking for XINERAMA libs" >&5
10927 echo $ECHO_N "checking for XINERAMA libs... $ECHO_C" >&6
10928 d=$with_xinerama/lib
10929 if test -d $d; then
10930 X_LIBS="-L$d $X_LIBS"
10931 echo "$as_me:$LINENO: result: $d" >&5
10932 echo "${ECHO_T}$d" >&6
10934 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10935 echo "${ECHO_T}not found ($d: no such directory)" >&6
10938 # replace the directory string with "yes".
10939 with_xinerama_req="yes"
10940 with_xinerama=$with_xinerama_req
10945 echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
10946 echo " If it is a directory, then \`DIR/include' will be added to"
10947 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10953 if test "$with_xinerama" = yes; then
10955 # first check for Xinerama.h
10957 ac_save_CPPFLAGS="$CPPFLAGS"
10958 if test \! -z "$includedir" ; then
10959 CPPFLAGS="$CPPFLAGS -I$includedir"
10961 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10962 echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
10963 echo $ECHO_N "checking for X11/extensions/Xinerama.h... $ECHO_C" >&6
10964 if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 cat >conftest.$ac_ext <<_ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h. */
10973 #include <X11/Xlib.h>
10975 #include <X11/extensions/Xinerama.h>
10977 rm -f conftest.$ac_objext
10978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10979 (eval $ac_compile) 2>conftest.er1
10981 grep -v '^ *+' conftest.er1 >conftest.err
10983 cat conftest.err >&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } &&
10986 { ac_try='test -z "$ac_c_werror_flag"
10987 || test ! -s conftest.err'
10988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989 (eval $ac_try) 2>&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; } &&
10993 { ac_try='test -s conftest.$ac_objext'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
10999 ac_cv_header_X11_extensions_Xinerama_h=yes
11001 echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11004 ac_cv_header_X11_extensions_Xinerama_h=no
11006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11008 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
11009 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xinerama_h" >&6
11010 if test $ac_cv_header_X11_extensions_Xinerama_h = yes; then
11015 CPPFLAGS="$ac_save_CPPFLAGS"
11017 # if that succeeded, then check for the XINERAMA code in the libraries
11018 if test "$have_xinerama" = yes; then
11020 # first look in -lXext
11023 ac_save_CPPFLAGS="$CPPFLAGS"
11024 ac_save_LDFLAGS="$LDFLAGS"
11025 # ac_save_LIBS="$LIBS"
11027 if test \! -z "$includedir" ; then
11028 CPPFLAGS="$CPPFLAGS -I$includedir"
11030 # note: $X_CFLAGS includes $x_includes
11031 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11033 if test \! -z "$libdir" ; then
11034 LDFLAGS="$LDFLAGS -L$libdir"
11036 # note: $X_LIBS includes $x_libraries
11037 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11039 echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXext" >&5
11040 echo $ECHO_N "checking for XineramaQueryScreens in -lXext... $ECHO_C" >&6
11041 if test "${ac_cv_lib_Xext_XineramaQueryScreens+set}" = set; then
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11044 ac_check_lib_save_LIBS=$LIBS
11045 LIBS="-lXext -lXext -lX11 $LIBS"
11046 cat >conftest.$ac_ext <<_ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11053 /* Override any gcc2 internal prototype to avoid an error. */
11057 /* We use char because int might match the return type of a gcc2
11058 builtin and then its argument prototype would still apply. */
11059 char XineramaQueryScreens ();
11063 XineramaQueryScreens ();
11068 rm -f conftest.$ac_objext conftest$ac_exeext
11069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11070 (eval $ac_link) 2>conftest.er1
11072 grep -v '^ *+' conftest.er1 >conftest.err
11074 cat conftest.err >&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } &&
11077 { ac_try='test -z "$ac_c_werror_flag"
11078 || test ! -s conftest.err'
11079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11080 (eval $ac_try) 2>&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; } &&
11084 { ac_try='test -s conftest$ac_exeext'
11085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11086 (eval $ac_try) 2>&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; }; then
11090 ac_cv_lib_Xext_XineramaQueryScreens=yes
11092 echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11095 ac_cv_lib_Xext_XineramaQueryScreens=no
11097 rm -f conftest.err conftest.$ac_objext \
11098 conftest$ac_exeext conftest.$ac_ext
11099 LIBS=$ac_check_lib_save_LIBS
11101 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XineramaQueryScreens" >&5
11102 echo "${ECHO_T}$ac_cv_lib_Xext_XineramaQueryScreens" >&6
11103 if test $ac_cv_lib_Xext_XineramaQueryScreens = yes; then
11109 CPPFLAGS="$ac_save_CPPFLAGS"
11110 LDFLAGS="$ac_save_LDFLAGS"
11111 # LIBS="$ac_save_LIBS"
11114 # if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
11115 if test "$have_xinerama" = no; then
11117 ac_save_CPPFLAGS="$CPPFLAGS"
11118 ac_save_LDFLAGS="$LDFLAGS"
11119 # ac_save_LIBS="$LIBS"
11121 if test \! -z "$includedir" ; then
11122 CPPFLAGS="$CPPFLAGS -I$includedir"
11124 # note: $X_CFLAGS includes $x_includes
11125 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11127 if test \! -z "$libdir" ; then
11128 LDFLAGS="$LDFLAGS -L$libdir"
11130 # note: $X_LIBS includes $x_libraries
11131 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11133 echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
11134 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6
11135 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 ac_check_lib_save_LIBS=$LIBS
11139 LIBS="-lXinerama -lXext -lX11 $LIBS"
11140 cat >conftest.$ac_ext <<_ACEOF
11143 cat confdefs.h >>conftest.$ac_ext
11144 cat >>conftest.$ac_ext <<_ACEOF
11145 /* end confdefs.h. */
11147 /* Override any gcc2 internal prototype to avoid an error. */
11151 /* We use char because int might match the return type of a gcc2
11152 builtin and then its argument prototype would still apply. */
11153 char XineramaQueryScreens ();
11157 XineramaQueryScreens ();
11162 rm -f conftest.$ac_objext conftest$ac_exeext
11163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11164 (eval $ac_link) 2>conftest.er1
11166 grep -v '^ *+' conftest.er1 >conftest.err
11168 cat conftest.err >&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } &&
11171 { ac_try='test -z "$ac_c_werror_flag"
11172 || test ! -s conftest.err'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; } &&
11178 { ac_try='test -s conftest$ac_exeext'
11179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180 (eval $ac_try) 2>&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); }; }; then
11184 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
11186 echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11189 ac_cv_lib_Xinerama_XineramaQueryScreens=no
11191 rm -f conftest.err conftest.$ac_objext \
11192 conftest$ac_exeext conftest.$ac_ext
11193 LIBS=$ac_check_lib_save_LIBS
11195 echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
11196 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6
11197 if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
11198 have_xinerama=yes; SAVER_LIBS="$SAVER_LIBS -lXinerama"
11203 CPPFLAGS="$ac_save_CPPFLAGS"
11204 LDFLAGS="$ac_save_LDFLAGS"
11205 # LIBS="$ac_save_LIBS"
11210 # if that succeeded, then we've really got it.
11211 if test "$have_xinerama" = yes; then
11212 cat >>confdefs.h <<\_ACEOF
11213 #define HAVE_XINERAMA 1
11218 elif test "$with_xinerama" != no; then
11219 echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
11224 ###############################################################################
11226 # Check for the XF86VMODE server extension (for virtual screens.)
11228 ###############################################################################
11231 with_xf86vmode_req=unspecified
11233 # Check whether --with-xf86vmode-ext or --without-xf86vmode-ext was given.
11234 if test "${with_xf86vmode_ext+set}" = set; then
11235 withval="$with_xf86vmode_ext"
11236 with_xf86vmode="$withval"; with_xf86vmode_req="$withval"
11242 case "$with_xf86vmode" in
11247 echo "$as_me:$LINENO: checking for xf86vmode headers" >&5
11248 echo $ECHO_N "checking for xf86vmode headers... $ECHO_C" >&6
11249 d=$with_xf86vmode/include
11250 if test -d $d; then
11251 X_CFLAGS="-I$d $X_CFLAGS"
11252 echo "$as_me:$LINENO: result: $d" >&5
11253 echo "${ECHO_T}$d" >&6
11255 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11256 echo "${ECHO_T}not found ($d: no such directory)" >&6
11259 echo "$as_me:$LINENO: checking for xf86vmode libs" >&5
11260 echo $ECHO_N "checking for xf86vmode libs... $ECHO_C" >&6
11261 d=$with_xf86vmode/lib
11262 if test -d $d; then
11263 X_LIBS="-L$d $X_LIBS"
11264 echo "$as_me:$LINENO: result: $d" >&5
11265 echo "${ECHO_T}$d" >&6
11267 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11268 echo "${ECHO_T}not found ($d: no such directory)" >&6
11271 # replace the directory string with "yes".
11272 with_xf86vmode_req="yes"
11273 with_xf86vmode=$with_xf86vmode_req
11278 echo "error: argument to --with-xf86vmode-ext must be \"yes\", \"no\", or a directory."
11279 echo " If it is a directory, then \`DIR/include' will be added to"
11280 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11288 if test "$with_xf86vmode" = yes; then
11290 # first check for xf86vmode.h
11292 ac_save_CPPFLAGS="$CPPFLAGS"
11293 if test \! -z "$includedir" ; then
11294 CPPFLAGS="$CPPFLAGS -I$includedir"
11296 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11297 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
11298 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
11299 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 cat >conftest.$ac_ext <<_ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 #include <X11/Xlib.h>
11310 #include <X11/extensions/xf86vmode.h>
11312 rm -f conftest.$ac_objext
11313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11314 (eval $ac_compile) 2>conftest.er1
11316 grep -v '^ *+' conftest.er1 >conftest.err
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } &&
11321 { ac_try='test -z "$ac_c_werror_flag"
11322 || test ! -s conftest.err'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; } &&
11328 { ac_try='test -s conftest.$ac_objext'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; }; then
11334 ac_cv_header_X11_extensions_xf86vmode_h=yes
11336 echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11339 ac_cv_header_X11_extensions_xf86vmode_h=no
11341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11343 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
11344 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
11345 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
11350 CPPFLAGS="$ac_save_CPPFLAGS"
11352 # if that succeeded, then check for the -lXxf86vm
11353 if test "$have_xf86vmode" = yes; then
11356 ac_save_CPPFLAGS="$CPPFLAGS"
11357 ac_save_LDFLAGS="$LDFLAGS"
11358 # ac_save_LIBS="$LIBS"
11360 if test \! -z "$includedir" ; then
11361 CPPFLAGS="$CPPFLAGS -I$includedir"
11363 # note: $X_CFLAGS includes $x_includes
11364 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11366 if test \! -z "$libdir" ; then
11367 LDFLAGS="$LDFLAGS -L$libdir"
11369 # note: $X_LIBS includes $x_libraries
11370 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11372 echo "$as_me:$LINENO: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
11373 echo $ECHO_N "checking for XF86VidModeGetViewPort in -lXxf86vm... $ECHO_C" >&6
11374 if test "${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+set}" = set; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 ac_check_lib_save_LIBS=$LIBS
11378 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11379 cat >conftest.$ac_ext <<_ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h. */
11386 /* Override any gcc2 internal prototype to avoid an error. */
11390 /* We use char because int might match the return type of a gcc2
11391 builtin and then its argument prototype would still apply. */
11392 char XF86VidModeGetViewPort ();
11396 XF86VidModeGetViewPort ();
11401 rm -f conftest.$ac_objext conftest$ac_exeext
11402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11403 (eval $ac_link) 2>conftest.er1
11405 grep -v '^ *+' conftest.er1 >conftest.err
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } &&
11410 { ac_try='test -z "$ac_c_werror_flag"
11411 || test ! -s conftest.err'
11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413 (eval $ac_try) 2>&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; } &&
11417 { ac_try='test -s conftest$ac_exeext'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; }; then
11423 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
11425 echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11428 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=no
11430 rm -f conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
11432 LIBS=$ac_check_lib_save_LIBS
11434 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&5
11435 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6
11436 if test $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort = yes; then
11437 have_xf86vmode=yes;
11438 VIDMODE_LIBS="-lXxf86vm";
11439 SAVER_LIBS="$SAVER_LIBS $VIDMODE_LIBS"
11444 CPPFLAGS="$ac_save_CPPFLAGS"
11445 LDFLAGS="$ac_save_LDFLAGS"
11446 # LIBS="$ac_save_LIBS"
11450 # if that succeeded, then we've really got it.
11451 if test "$have_xf86vmode" = yes; then
11452 cat >>confdefs.h <<\_ACEOF
11453 #define HAVE_XF86VMODE 1
11458 elif test "$with_xf86vmode" != no; then
11459 echo "error: must be yes or no: --with-xf86vmode-ext=$with_xf86vmode"
11464 ###############################################################################
11466 # Check for the XF86VMODE server extension (for gamma fading.)
11468 ###############################################################################
11471 have_xf86gamma_ramp=no
11472 with_xf86gamma_req=unspecified
11474 # Check whether --with-xf86gamma-ext or --without-xf86gamma-ext was given.
11475 if test "${with_xf86gamma_ext+set}" = set; then
11476 withval="$with_xf86gamma_ext"
11477 with_xf86gamma="$withval"; with_xf86gamma_req="$withval"
11483 case "$with_xf86gamma" in
11488 echo "$as_me:$LINENO: checking for xf86gamma headers" >&5
11489 echo $ECHO_N "checking for xf86gamma headers... $ECHO_C" >&6
11490 d=$with_xf86gamma/include
11491 if test -d $d; then
11492 X_CFLAGS="-I$d $X_CFLAGS"
11493 echo "$as_me:$LINENO: result: $d" >&5
11494 echo "${ECHO_T}$d" >&6
11496 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11497 echo "${ECHO_T}not found ($d: no such directory)" >&6
11500 echo "$as_me:$LINENO: checking for xf86gamma libs" >&5
11501 echo $ECHO_N "checking for xf86gamma libs... $ECHO_C" >&6
11502 d=$with_xf86gamma/lib
11503 if test -d $d; then
11504 X_LIBS="-L$d $X_LIBS"
11505 echo "$as_me:$LINENO: result: $d" >&5
11506 echo "${ECHO_T}$d" >&6
11508 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11509 echo "${ECHO_T}not found ($d: no such directory)" >&6
11512 # replace the directory string with "yes".
11513 with_xf86gamma_req="yes"
11514 with_xf86gamma=$with_xf86gamma_req
11519 echo "error: argument to --with-xf86gamma-ext must be \"yes\", \"no\", or a directory."
11520 echo " If it is a directory, then \`DIR/include' will be added to"
11521 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11527 if test "$with_xf86gamma" = yes; then
11529 # first check for xf86vmode.h, if we haven't already
11530 if test "$have_xf86vmode" = yes; then
11534 ac_save_CPPFLAGS="$CPPFLAGS"
11535 if test \! -z "$includedir" ; then
11536 CPPFLAGS="$CPPFLAGS -I$includedir"
11538 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11539 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
11540 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
11541 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
11542 echo $ECHO_N "(cached) $ECHO_C" >&6
11544 cat >conftest.$ac_ext <<_ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 #include <X11/Xlib.h>
11552 #include <X11/extensions/xf86vmode.h>
11554 rm -f conftest.$ac_objext
11555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11556 (eval $ac_compile) 2>conftest.er1
11558 grep -v '^ *+' conftest.er1 >conftest.err
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } &&
11563 { ac_try='test -z "$ac_c_werror_flag"
11564 || test ! -s conftest.err'
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } &&
11570 { ac_try='test -s conftest.$ac_objext'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 ac_cv_header_X11_extensions_xf86vmode_h=yes
11578 echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11581 ac_cv_header_X11_extensions_xf86vmode_h=no
11583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11585 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
11586 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
11587 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
11592 CPPFLAGS="$ac_save_CPPFLAGS"
11595 # if that succeeded, then check for the -lXxf86vm
11596 if test "$have_xf86gamma" = yes; then
11599 ac_save_CPPFLAGS="$CPPFLAGS"
11600 ac_save_LDFLAGS="$LDFLAGS"
11601 # ac_save_LIBS="$LIBS"
11603 if test \! -z "$includedir" ; then
11604 CPPFLAGS="$CPPFLAGS -I$includedir"
11606 # note: $X_CFLAGS includes $x_includes
11607 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11609 if test \! -z "$libdir" ; then
11610 LDFLAGS="$LDFLAGS -L$libdir"
11612 # note: $X_LIBS includes $x_libraries
11613 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11615 echo "$as_me:$LINENO: checking for XF86VidModeSetGamma in -lXxf86vm" >&5
11616 echo $ECHO_N "checking for XF86VidModeSetGamma in -lXxf86vm... $ECHO_C" >&6
11617 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGamma+set}" = set; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11620 ac_check_lib_save_LIBS=$LIBS
11621 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11622 cat >conftest.$ac_ext <<_ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h. */
11629 /* Override any gcc2 internal prototype to avoid an error. */
11633 /* We use char because int might match the return type of a gcc2
11634 builtin and then its argument prototype would still apply. */
11635 char XF86VidModeSetGamma ();
11639 XF86VidModeSetGamma ();
11644 rm -f conftest.$ac_objext conftest$ac_exeext
11645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11646 (eval $ac_link) 2>conftest.er1
11648 grep -v '^ *+' conftest.er1 >conftest.err
11650 cat conftest.err >&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); } &&
11653 { ac_try='test -z "$ac_c_werror_flag"
11654 || test ! -s conftest.err'
11655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; } &&
11660 { ac_try='test -s conftest$ac_exeext'
11661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662 (eval $ac_try) 2>&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; }; then
11666 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=yes
11668 echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11671 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=no
11673 rm -f conftest.err conftest.$ac_objext \
11674 conftest$ac_exeext conftest.$ac_ext
11675 LIBS=$ac_check_lib_save_LIBS
11677 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&5
11678 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&6
11679 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma = yes; then
11685 CPPFLAGS="$ac_save_CPPFLAGS"
11686 LDFLAGS="$ac_save_LDFLAGS"
11687 # LIBS="$ac_save_LIBS"
11691 # check for the Ramp versions of the functions too.
11692 if test "$have_xf86gamma" = yes; then
11693 have_xf86gamma_ramp=no
11695 ac_save_CPPFLAGS="$CPPFLAGS"
11696 ac_save_LDFLAGS="$LDFLAGS"
11697 # ac_save_LIBS="$LIBS"
11699 if test \! -z "$includedir" ; then
11700 CPPFLAGS="$CPPFLAGS -I$includedir"
11702 # note: $X_CFLAGS includes $x_includes
11703 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11705 if test \! -z "$libdir" ; then
11706 LDFLAGS="$LDFLAGS -L$libdir"
11708 # note: $X_LIBS includes $x_libraries
11709 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11711 echo "$as_me:$LINENO: checking for XF86VidModeSetGammaRamp in -lXxf86vm" >&5
11712 echo $ECHO_N "checking for XF86VidModeSetGammaRamp in -lXxf86vm... $ECHO_C" >&6
11713 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp+set}" = set; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11716 ac_check_lib_save_LIBS=$LIBS
11717 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11718 cat >conftest.$ac_ext <<_ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h. */
11725 /* Override any gcc2 internal prototype to avoid an error. */
11729 /* We use char because int might match the return type of a gcc2
11730 builtin and then its argument prototype would still apply. */
11731 char XF86VidModeSetGammaRamp ();
11735 XF86VidModeSetGammaRamp ();
11740 rm -f conftest.$ac_objext conftest$ac_exeext
11741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11742 (eval $ac_link) 2>conftest.er1
11744 grep -v '^ *+' conftest.er1 >conftest.err
11746 cat conftest.err >&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } &&
11749 { ac_try='test -z "$ac_c_werror_flag"
11750 || test ! -s conftest.err'
11751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752 (eval $ac_try) 2>&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); }; } &&
11756 { ac_try='test -s conftest$ac_exeext'
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; }; then
11762 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=yes
11764 echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.$ac_ext >&5
11767 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=no
11769 rm -f conftest.err conftest.$ac_objext \
11770 conftest$ac_exeext conftest.$ac_ext
11771 LIBS=$ac_check_lib_save_LIBS
11773 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&5
11774 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&6
11775 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp = yes; then
11776 have_xf86gamma_ramp=yes
11781 CPPFLAGS="$ac_save_CPPFLAGS"
11782 LDFLAGS="$ac_save_LDFLAGS"
11783 # LIBS="$ac_save_LIBS"
11787 # if those tests succeeded, then we've really got the functions.
11788 if test "$have_xf86gamma" = yes; then
11789 cat >>confdefs.h <<\_ACEOF
11790 #define HAVE_XF86VMODE_GAMMA 1
11795 if test "$have_xf86gamma_ramp" = yes; then
11796 cat >>confdefs.h <<\_ACEOF
11797 #define HAVE_XF86VMODE_GAMMA_RAMP 1
11802 # pull in the lib, if we haven't already
11803 if test "$have_xf86gamma" = yes -a "$have_xf86vmode" = no; then
11804 SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
11807 elif test "$with_xf86gamma" != no; then
11808 echo "error: must be yes or no: --with-xf86gamma-ext=$with_xf86vmode"
11813 ###############################################################################
11815 # Check for the RANDR (Resize and Rotate) server extension.
11817 # We need this to detect when the resolution of the desktop
11818 # has changed out from under us (this is a newer, different
11819 # mechanism than the XF86VMODE virtual viewports.)
11821 ###############################################################################
11824 with_randr_req=unspecified
11826 # Check whether --with-randr-ext or --without-randr-ext was given.
11827 if test "${with_randr_ext+set}" = set; then
11828 withval="$with_randr_ext"
11829 with_randr="$withval"; with_randr_req="$withval"
11835 case "$with_randr" in
11840 echo "$as_me:$LINENO: checking for RANDR headers" >&5
11841 echo $ECHO_N "checking for RANDR headers... $ECHO_C" >&6
11842 d=$with_randr/include
11843 if test -d $d; then
11844 X_CFLAGS="-I$d $X_CFLAGS"
11845 echo "$as_me:$LINENO: result: $d" >&5
11846 echo "${ECHO_T}$d" >&6
11848 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11849 echo "${ECHO_T}not found ($d: no such directory)" >&6
11852 echo "$as_me:$LINENO: checking for RANDR libs" >&5
11853 echo $ECHO_N "checking for RANDR libs... $ECHO_C" >&6
11855 if test -d $d; then
11856 X_LIBS="-L$d $X_LIBS"
11857 echo "$as_me:$LINENO: result: $d" >&5
11858 echo "${ECHO_T}$d" >&6
11860 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11861 echo "${ECHO_T}not found ($d: no such directory)" >&6
11864 # replace the directory string with "yes".
11865 with_randr_req="yes"
11866 with_randr=$with_randr_req
11871 echo "error: argument to --with-randr-ext must be \"yes\", \"no\", or a directory."
11872 echo " If it is a directory, then \`DIR/include' will be added to"
11873 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11879 if test "$with_randr" = yes; then
11881 # first check for Randr.h
11883 ac_save_CPPFLAGS="$CPPFLAGS"
11884 if test \! -z "$includedir" ; then
11885 CPPFLAGS="$CPPFLAGS -I$includedir"
11887 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11888 echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
11889 echo $ECHO_N "checking for X11/extensions/Xrandr.h... $ECHO_C" >&6
11890 if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11893 cat >conftest.$ac_ext <<_ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h. */
11899 #include <X11/Xlib.h>
11901 #include <X11/extensions/Xrandr.h>
11903 rm -f conftest.$ac_objext
11904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11905 (eval $ac_compile) 2>conftest.er1
11907 grep -v '^ *+' conftest.er1 >conftest.err
11909 cat conftest.err >&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } &&
11912 { ac_try='test -z "$ac_c_werror_flag"
11913 || test ! -s conftest.err'
11914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915 (eval $ac_try) 2>&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; } &&
11919 { ac_try='test -s conftest.$ac_objext'
11920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; }; then
11925 ac_cv_header_X11_extensions_Xrandr_h=yes
11927 echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11930 ac_cv_header_X11_extensions_Xrandr_h=no
11932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11934 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
11935 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrandr_h" >&6
11936 if test $ac_cv_header_X11_extensions_Xrandr_h = yes; then
11941 CPPFLAGS="$ac_save_CPPFLAGS"
11943 # if that succeeded, then check for the XRR code in the libraries
11944 if test "$have_randr" = yes; then
11946 # RANDR probably needs -lXrender
11949 ac_save_CPPFLAGS="$CPPFLAGS"
11950 ac_save_LDFLAGS="$LDFLAGS"
11951 # ac_save_LIBS="$LIBS"
11953 if test \! -z "$includedir" ; then
11954 CPPFLAGS="$CPPFLAGS -I$includedir"
11956 # note: $X_CFLAGS includes $x_includes
11957 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11959 if test \! -z "$libdir" ; then
11960 LDFLAGS="$LDFLAGS -L$libdir"
11962 # note: $X_LIBS includes $x_libraries
11963 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11965 echo "$as_me:$LINENO: checking for XRenderSetSubpixelOrder in -lXrender" >&5
11966 echo $ECHO_N "checking for XRenderSetSubpixelOrder in -lXrender... $ECHO_C" >&6
11967 if test "${ac_cv_lib_Xrender_XRenderSetSubpixelOrder+set}" = set; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11970 ac_check_lib_save_LIBS=$LIBS
11971 LIBS="-lXrender -lXext -lX11 $LIBS"
11972 cat >conftest.$ac_ext <<_ACEOF
11975 cat confdefs.h >>conftest.$ac_ext
11976 cat >>conftest.$ac_ext <<_ACEOF
11977 /* end confdefs.h. */
11979 /* Override any gcc2 internal prototype to avoid an error. */
11983 /* We use char because int might match the return type of a gcc2
11984 builtin and then its argument prototype would still apply. */
11985 char XRenderSetSubpixelOrder ();
11989 XRenderSetSubpixelOrder ();
11994 rm -f conftest.$ac_objext conftest$ac_exeext
11995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11996 (eval $ac_link) 2>conftest.er1
11998 grep -v '^ *+' conftest.er1 >conftest.err
12000 cat conftest.err >&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } &&
12003 { ac_try='test -z "$ac_c_werror_flag"
12004 || test ! -s conftest.err'
12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; } &&
12010 { ac_try='test -s conftest$ac_exeext'
12011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12012 (eval $ac_try) 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; }; then
12016 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=yes
12018 echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.$ac_ext >&5
12021 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=no
12023 rm -f conftest.err conftest.$ac_objext \
12024 conftest$ac_exeext conftest.$ac_ext
12025 LIBS=$ac_check_lib_save_LIBS
12027 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&5
12028 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&6
12029 if test $ac_cv_lib_Xrender_XRenderSetSubpixelOrder = yes; then
12030 xrender_libs="-lXrender"
12035 CPPFLAGS="$ac_save_CPPFLAGS"
12036 LDFLAGS="$ac_save_LDFLAGS"
12037 # LIBS="$ac_save_LIBS"
12040 # first look for RANDR in -lXext
12043 ac_save_CPPFLAGS="$CPPFLAGS"
12044 ac_save_LDFLAGS="$LDFLAGS"
12045 # ac_save_LIBS="$LIBS"
12047 if test \! -z "$includedir" ; then
12048 CPPFLAGS="$CPPFLAGS -I$includedir"
12050 # note: $X_CFLAGS includes $x_includes
12051 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12053 if test \! -z "$libdir" ; then
12054 LDFLAGS="$LDFLAGS -L$libdir"
12056 # note: $X_LIBS includes $x_libraries
12057 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12059 echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXext" >&5
12060 echo $ECHO_N "checking for XRRGetScreenInfo in -lXext... $ECHO_C" >&6
12061 if test "${ac_cv_lib_Xext_XRRGetScreenInfo+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12064 ac_check_lib_save_LIBS=$LIBS
12065 LIBS="-lXext $xrender_libs -lXext -lX11 $LIBS"
12066 cat >conftest.$ac_ext <<_ACEOF
12069 cat confdefs.h >>conftest.$ac_ext
12070 cat >>conftest.$ac_ext <<_ACEOF
12071 /* end confdefs.h. */
12073 /* Override any gcc2 internal prototype to avoid an error. */
12077 /* We use char because int might match the return type of a gcc2
12078 builtin and then its argument prototype would still apply. */
12079 char XRRGetScreenInfo ();
12083 XRRGetScreenInfo ();
12088 rm -f conftest.$ac_objext conftest$ac_exeext
12089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12090 (eval $ac_link) 2>conftest.er1
12092 grep -v '^ *+' conftest.er1 >conftest.err
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } &&
12097 { ac_try='test -z "$ac_c_werror_flag"
12098 || test ! -s conftest.err'
12099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100 (eval $ac_try) 2>&5
12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); }; } &&
12104 { ac_try='test -s conftest$ac_exeext'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; }; then
12110 ac_cv_lib_Xext_XRRGetScreenInfo=yes
12112 echo "$as_me: failed program was:" >&5
12113 sed 's/^/| /' conftest.$ac_ext >&5
12115 ac_cv_lib_Xext_XRRGetScreenInfo=no
12117 rm -f conftest.err conftest.$ac_objext \
12118 conftest$ac_exeext conftest.$ac_ext
12119 LIBS=$ac_check_lib_save_LIBS
12121 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XRRGetScreenInfo" >&5
12122 echo "${ECHO_T}$ac_cv_lib_Xext_XRRGetScreenInfo" >&6
12123 if test $ac_cv_lib_Xext_XRRGetScreenInfo = yes; then
12124 have_randr=yes; SAVER_LIBS="$SAVER_LIBS $xrender_libs"
12129 CPPFLAGS="$ac_save_CPPFLAGS"
12130 LDFLAGS="$ac_save_LDFLAGS"
12131 # LIBS="$ac_save_LIBS"
12134 # if that failed, look in -lXrandr
12135 if test "$have_randr" = no; then
12137 ac_save_CPPFLAGS="$CPPFLAGS"
12138 ac_save_LDFLAGS="$LDFLAGS"
12139 # ac_save_LIBS="$LIBS"
12141 if test \! -z "$includedir" ; then
12142 CPPFLAGS="$CPPFLAGS -I$includedir"
12144 # note: $X_CFLAGS includes $x_includes
12145 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12147 if test \! -z "$libdir" ; then
12148 LDFLAGS="$LDFLAGS -L$libdir"
12150 # note: $X_LIBS includes $x_libraries
12151 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12153 echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXrandr" >&5
12154 echo $ECHO_N "checking for XRRGetScreenInfo in -lXrandr... $ECHO_C" >&6
12155 if test "${ac_cv_lib_Xrandr_XRRGetScreenInfo+set}" = set; then
12156 echo $ECHO_N "(cached) $ECHO_C" >&6
12158 ac_check_lib_save_LIBS=$LIBS
12159 LIBS="-lXrandr $xrender_libs -lXext -lX11 $LIBS"
12160 cat >conftest.$ac_ext <<_ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12167 /* Override any gcc2 internal prototype to avoid an error. */
12171 /* We use char because int might match the return type of a gcc2
12172 builtin and then its argument prototype would still apply. */
12173 char XRRGetScreenInfo ();
12177 XRRGetScreenInfo ();
12182 rm -f conftest.$ac_objext conftest$ac_exeext
12183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12184 (eval $ac_link) 2>conftest.er1
12186 grep -v '^ *+' conftest.er1 >conftest.err
12188 cat conftest.err >&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); } &&
12191 { ac_try='test -z "$ac_c_werror_flag"
12192 || test ! -s conftest.err'
12193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194 (eval $ac_try) 2>&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; } &&
12198 { ac_try='test -s conftest$ac_exeext'
12199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12200 (eval $ac_try) 2>&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; }; then
12204 ac_cv_lib_Xrandr_XRRGetScreenInfo=yes
12206 echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12209 ac_cv_lib_Xrandr_XRRGetScreenInfo=no
12211 rm -f conftest.err conftest.$ac_objext \
12212 conftest$ac_exeext conftest.$ac_ext
12213 LIBS=$ac_check_lib_save_LIBS
12215 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRGetScreenInfo" >&5
12216 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRGetScreenInfo" >&6
12217 if test $ac_cv_lib_Xrandr_XRRGetScreenInfo = yes; then
12218 have_randr=yes; SAVER_LIBS="$SAVER_LIBS -lXrandr $xrender_libs"
12223 CPPFLAGS="$ac_save_CPPFLAGS"
12224 LDFLAGS="$ac_save_LDFLAGS"
12225 # LIBS="$ac_save_LIBS"
12230 # if that succeeded, then we've really got it.
12231 if test "$have_randr" = yes; then
12232 cat >>confdefs.h <<\_ACEOF
12233 #define HAVE_RANDR 1
12238 elif test "$with_randr" != no; then
12239 echo "error: must be yes or no: --with-randr-ext=$with_randr"
12244 ###############################################################################
12246 # Check for XF86MiscSetGrabKeysState (but only bother if we are already
12247 # using other XF86 stuff.)
12249 ###############################################################################
12251 have_xf86miscsetgrabkeysstate=no
12252 if test "$have_xf86gamma" = yes -o "$have_xf86vmode" = yes; then
12254 ac_save_CPPFLAGS="$CPPFLAGS"
12255 ac_save_LDFLAGS="$LDFLAGS"
12256 # ac_save_LIBS="$LIBS"
12258 if test \! -z "$includedir" ; then
12259 CPPFLAGS="$CPPFLAGS -I$includedir"
12261 # note: $X_CFLAGS includes $x_includes
12262 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12264 if test \! -z "$libdir" ; then
12265 LDFLAGS="$LDFLAGS -L$libdir"
12267 # note: $X_LIBS includes $x_libraries
12268 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12270 echo "$as_me:$LINENO: checking for XF86MiscSetGrabKeysState in -lXxf86misc" >&5
12271 echo $ECHO_N "checking for XF86MiscSetGrabKeysState in -lXxf86misc... $ECHO_C" >&6
12272 if test "${ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12275 ac_check_lib_save_LIBS=$LIBS
12276 LIBS="-lXxf86misc -lXext -lX11 $LIBS"
12277 cat >conftest.$ac_ext <<_ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h. */
12284 /* Override any gcc2 internal prototype to avoid an error. */
12288 /* We use char because int might match the return type of a gcc2
12289 builtin and then its argument prototype would still apply. */
12290 char XF86MiscSetGrabKeysState ();
12294 XF86MiscSetGrabKeysState ();
12299 rm -f conftest.$ac_objext conftest$ac_exeext
12300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12301 (eval $ac_link) 2>conftest.er1
12303 grep -v '^ *+' conftest.er1 >conftest.err
12305 cat conftest.err >&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); } &&
12308 { ac_try='test -z "$ac_c_werror_flag"
12309 || test ! -s conftest.err'
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; } &&
12315 { ac_try='test -s conftest$ac_exeext'
12316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317 (eval $ac_try) 2>&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); }; }; then
12321 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=yes
12323 echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12326 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=no
12328 rm -f conftest.err conftest.$ac_objext \
12329 conftest$ac_exeext conftest.$ac_ext
12330 LIBS=$ac_check_lib_save_LIBS
12332 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&5
12333 echo "${ECHO_T}$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&6
12334 if test $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState = yes; then
12335 have_xf86miscsetgrabkeysstate=yes
12340 CPPFLAGS="$ac_save_CPPFLAGS"
12341 LDFLAGS="$ac_save_LDFLAGS"
12342 # LIBS="$ac_save_LIBS"
12344 if test "$have_xf86miscsetgrabkeysstate" = yes ; then
12345 SAVER_LIBS="$SAVER_LIBS -lXxf86misc"
12346 cat >>confdefs.h <<\_ACEOF
12347 #define HAVE_XF86MISCSETGRABKEYSSTATE 1
12354 ###############################################################################
12356 # Check for HP XHPDisableReset and XHPEnableReset.
12358 ###############################################################################
12360 echo "$as_me:$LINENO: checking for XHPDisableReset in X11/XHPlib.h" >&5
12361 echo $ECHO_N "checking for XHPDisableReset in X11/XHPlib.h... $ECHO_C" >&6
12363 ac_save_CPPFLAGS="$CPPFLAGS"
12364 if test \! -z "$includedir" ; then
12365 CPPFLAGS="$CPPFLAGS -I$includedir"
12367 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12368 cat >conftest.$ac_ext <<_ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374 #include <X11/XHPlib.h>
12377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12378 $EGREP "XHPDisableReset" >/dev/null 2>&1; then
12379 cat >>confdefs.h <<\_ACEOF
12380 #define HAVE_XHPDISABLERESET 1
12383 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
12384 echo "$as_me:$LINENO: result: yes" >&5
12385 echo "${ECHO_T}yes" >&6
12387 echo "$as_me:$LINENO: result: no" >&5
12388 echo "${ECHO_T}no" >&6
12392 CPPFLAGS="$ac_save_CPPFLAGS"
12395 ###############################################################################
12397 # Check for /proc/interrupts.
12399 ###############################################################################
12401 have_proc_interrupts=no
12402 with_proc_interrupts_req=unspecified
12404 # Check whether --with-proc-interrupts or --without-proc-interrupts was given.
12405 if test "${with_proc_interrupts+set}" = set; then
12406 withval="$with_proc_interrupts"
12407 with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
12409 with_proc_interrupts=yes
12412 if test "$with_proc_interrupts" = yes; then
12414 echo "$as_me:$LINENO: checking whether /proc/interrupts contains keyboard data" >&5
12415 echo $ECHO_N "checking whether /proc/interrupts contains keyboard data... $ECHO_C" >&6
12416 if test "${ac_cv_have_proc_interrupts+set}" = set; then
12417 echo $ECHO_N "(cached) $ECHO_C" >&6
12419 ac_cv_have_proc_interrupts=no
12420 if grep keyboard /proc/interrupts >/dev/null 2>&1 ; then
12421 ac_cv_have_proc_interrupts=yes
12425 echo "$as_me:$LINENO: result: $ac_cv_have_proc_interrupts" >&5
12426 echo "${ECHO_T}$ac_cv_have_proc_interrupts" >&6
12427 have_proc_interrupts=$ac_cv_have_proc_interrupts
12429 if test "$have_proc_interrupts" = yes; then
12430 cat >>confdefs.h <<\_ACEOF
12431 #define HAVE_PROC_INTERRUPTS 1
12436 elif test "$with_proc_interrupts" != no; then
12437 echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
12442 ###############################################################################
12444 # The --enable-locking option
12446 ###############################################################################
12448 # Check whether --enable-locking or --disable-locking was given.
12449 if test "${enable_locking+set}" = set; then
12450 enableval="$enable_locking"
12451 enable_locking="$enableval"
12455 if test "$enable_locking" = yes; then
12457 elif test "$enable_locking" = no; then
12458 cat >>confdefs.h <<\_ACEOF
12459 #define NO_LOCKING 1
12463 echo "error: must be yes or no: --enable-locking=$enable_locking"
12467 # We can't lock on MacOS X, so don't even bother compiling in support for it.
12469 if test "$ac_macosx" = yes; then
12470 if test "$enable_locking" = yes; then
12471 echo "$as_me:$LINENO: result: locking disabled: it doesn't work on MacOS X" >&5
12472 echo "${ECHO_T}locking disabled: it doesn't work on MacOS X" >&6
12474 cat >>confdefs.h <<\_ACEOF
12475 #define NO_LOCKING 1
12482 ###############################################################################
12484 # The --enable-vt-locking option
12486 ###############################################################################
12488 #ac_vt_lockswitch=no
12489 #AC_ARG_ENABLE(vt-locking,[
12490 # --enable-vt-locking Compile in support for locking Virtual Terminals.
12491 # This is the default if the system supports it, and
12492 # if locking support is included (--enable-locking.)
12493 # --disable-vt-locking Do not allow locking of VTs, even if locking is
12495 # [enable_vt_locking="$enableval"],[enable_vt_locking=yes])
12496 #if test "$enable_vt_locking" = yes; then
12498 # AC_CACHE_CHECK([for the VT_LOCKSWITCH ioctl], ac_cv_vt_lockswitch,
12499 # [AC_TRY_COMPILE([#include <fcntl.h>
12500 # #include <sys/ioctl.h>
12501 # #include <sys/vt.h>],
12502 # [int x = VT_LOCKSWITCH; int y = VT_UNLOCKSWITCH;],
12503 # [ac_cv_vt_lockswitch=yes],
12504 # [ac_cv_vt_lockswitch=no])])
12505 # ac_vt_lockswitch=$ac_cv_vt_lockswitch
12507 #elif test "$enable_vt_locking" = no; then
12510 # echo "error: must be yes or no: --enable-vt-locking=$enable_vt_locking"
12514 #if test "$ac_vt_lockswitch" = yes; then
12515 # AC_DEFINE(HAVE_VT_LOCKSWITCH)
12516 # # the VT_LOCKSWITCH ioctl can only be used when running as root.
12517 # # #### but it doesn't work yet, so don't worry about that for now.
12522 ###############################################################################
12526 ###############################################################################
12530 # Solaris systems tend to come with PAM misconfigured.
12531 # Don't build it by default, even if the headers exist.
12532 with_pam_default=no
12535 # Default to building PAM support on all other systems, if it exists.
12536 with_pam_default=yes
12541 with_pam_req=unspecified
12544 # Check whether --with-pam or --without-pam was given.
12545 if test "${with_pam+set}" = set; then
12546 withval="$with_pam"
12547 with_pam="$withval"; with_pam_req="$withval"
12549 with_pam=$with_pam_default
12553 case "$with_pam" in
12558 echo "$as_me:$LINENO: checking for PAM headers" >&5
12559 echo $ECHO_N "checking for PAM headers... $ECHO_C" >&6
12560 d=$with_pam/include
12561 if test -d $d; then
12562 X_CFLAGS="-I$d $X_CFLAGS"
12563 echo "$as_me:$LINENO: result: $d" >&5
12564 echo "${ECHO_T}$d" >&6
12566 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12567 echo "${ECHO_T}not found ($d: no such directory)" >&6
12570 echo "$as_me:$LINENO: checking for PAM libs" >&5
12571 echo $ECHO_N "checking for PAM libs... $ECHO_C" >&6
12573 if test -d $d; then
12574 X_LIBS="-L$d $X_LIBS"
12575 echo "$as_me:$LINENO: result: $d" >&5
12576 echo "${ECHO_T}$d" >&6
12578 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12579 echo "${ECHO_T}not found ($d: no such directory)" >&6
12582 # replace the directory string with "yes".
12584 with_pam=$with_pam_req
12589 echo "error: argument to --with-pam must be \"yes\", \"no\", or a directory."
12590 echo " If it is a directory, then \`DIR/include' will be added to"
12591 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12597 if test "$enable_locking" = yes -a "$with_pam" = yes; then
12598 echo "$as_me:$LINENO: checking for PAM" >&5
12599 echo $ECHO_N "checking for PAM... $ECHO_C" >&6
12600 if test "${ac_cv_pam+set}" = set; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12604 ac_save_CPPFLAGS="$CPPFLAGS"
12605 if test \! -z "$includedir" ; then
12606 CPPFLAGS="$CPPFLAGS -I$includedir"
12608 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12609 cat >conftest.$ac_ext <<_ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12615 #include <security/pam_appl.h>
12624 rm -f conftest.$ac_objext
12625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12626 (eval $ac_compile) 2>conftest.er1
12628 grep -v '^ *+' conftest.er1 >conftest.err
12630 cat conftest.err >&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } &&
12633 { ac_try='test -z "$ac_c_werror_flag"
12634 || test ! -s conftest.err'
12635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636 (eval $ac_try) 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; } &&
12640 { ac_try='test -s conftest.$ac_objext'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; }; then
12648 echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12654 CPPFLAGS="$ac_save_CPPFLAGS"
12656 echo "$as_me:$LINENO: result: $ac_cv_pam" >&5
12657 echo "${ECHO_T}$ac_cv_pam" >&6
12658 if test "$ac_cv_pam" = yes ; then
12660 cat >>confdefs.h <<\_ACEOF
12664 PASSWD_LIBS="${PASSWD_LIBS} -lpam"
12666 # libpam typically requires dlopen and dlsym. On FreeBSD,
12667 # those are in libc. On Linux and Solaris, they're in libdl.
12668 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12669 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12670 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12673 ac_check_lib_save_LIBS=$LIBS
12675 cat >conftest.$ac_ext <<_ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12682 /* Override any gcc2 internal prototype to avoid an error. */
12686 /* We use char because int might match the return type of a gcc2
12687 builtin and then its argument prototype would still apply. */
12697 rm -f conftest.$ac_objext conftest$ac_exeext
12698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12699 (eval $ac_link) 2>conftest.er1
12701 grep -v '^ *+' conftest.er1 >conftest.err
12703 cat conftest.err >&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } &&
12706 { ac_try='test -z "$ac_c_werror_flag"
12707 || test ! -s conftest.err'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; } &&
12713 { ac_try='test -s conftest$ac_exeext'
12714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715 (eval $ac_try) 2>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; }; then
12719 ac_cv_lib_dl_dlopen=yes
12721 echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12724 ac_cv_lib_dl_dlopen=no
12726 rm -f conftest.err conftest.$ac_objext \
12727 conftest$ac_exeext conftest.$ac_ext
12728 LIBS=$ac_check_lib_save_LIBS
12730 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12731 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12732 if test $ac_cv_lib_dl_dlopen = yes; then
12733 PASSWD_LIBS="${PASSWD_LIBS} -ldl"
12737 # On Linux, sigtimedwait() is in libc; on Solaris, it's in librt.
12739 echo "$as_me:$LINENO: checking for sigtimedwait in -lc" >&5
12740 echo $ECHO_N "checking for sigtimedwait in -lc... $ECHO_C" >&6
12741 if test "${ac_cv_lib_c_sigtimedwait+set}" = set; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 ac_check_lib_save_LIBS=$LIBS
12746 cat >conftest.$ac_ext <<_ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12753 /* Override any gcc2 internal prototype to avoid an error. */
12757 /* We use char because int might match the return type of a gcc2
12758 builtin and then its argument prototype would still apply. */
12759 char sigtimedwait ();
12768 rm -f conftest.$ac_objext conftest$ac_exeext
12769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12770 (eval $ac_link) 2>conftest.er1
12772 grep -v '^ *+' conftest.er1 >conftest.err
12774 cat conftest.err >&5
12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776 (exit $ac_status); } &&
12777 { ac_try='test -z "$ac_c_werror_flag"
12778 || test ! -s conftest.err'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; } &&
12784 { ac_try='test -s conftest$ac_exeext'
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; }; then
12790 ac_cv_lib_c_sigtimedwait=yes
12792 echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12795 ac_cv_lib_c_sigtimedwait=no
12797 rm -f conftest.err conftest.$ac_objext \
12798 conftest$ac_exeext conftest.$ac_ext
12799 LIBS=$ac_check_lib_save_LIBS
12801 echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigtimedwait" >&5
12802 echo "${ECHO_T}$ac_cv_lib_c_sigtimedwait" >&6
12803 if test $ac_cv_lib_c_sigtimedwait = yes; then
12807 if test "$have_timedwait" = no ; then
12808 echo "$as_me:$LINENO: checking for sigtimedwait in -lrt" >&5
12809 echo $ECHO_N "checking for sigtimedwait in -lrt... $ECHO_C" >&6
12810 if test "${ac_cv_lib_rt_sigtimedwait+set}" = set; then
12811 echo $ECHO_N "(cached) $ECHO_C" >&6
12813 ac_check_lib_save_LIBS=$LIBS
12815 cat >conftest.$ac_ext <<_ACEOF
12818 cat confdefs.h >>conftest.$ac_ext
12819 cat >>conftest.$ac_ext <<_ACEOF
12820 /* end confdefs.h. */
12822 /* Override any gcc2 internal prototype to avoid an error. */
12826 /* We use char because int might match the return type of a gcc2
12827 builtin and then its argument prototype would still apply. */
12828 char sigtimedwait ();
12837 rm -f conftest.$ac_objext conftest$ac_exeext
12838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12839 (eval $ac_link) 2>conftest.er1
12841 grep -v '^ *+' conftest.er1 >conftest.err
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } &&
12846 { ac_try='test -z "$ac_c_werror_flag"
12847 || test ! -s conftest.err'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; } &&
12853 { ac_try='test -s conftest$ac_exeext'
12854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855 (eval $ac_try) 2>&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; }; then
12859 ac_cv_lib_rt_sigtimedwait=yes
12861 echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12864 ac_cv_lib_rt_sigtimedwait=no
12866 rm -f conftest.err conftest.$ac_objext \
12867 conftest$ac_exeext conftest.$ac_ext
12868 LIBS=$ac_check_lib_save_LIBS
12870 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sigtimedwait" >&5
12871 echo "${ECHO_T}$ac_cv_lib_rt_sigtimedwait" >&6
12872 if test $ac_cv_lib_rt_sigtimedwait = yes; then
12873 PASSWD_LIBS="${PASSWD_LIBS} -lrt"
12878 echo "$as_me:$LINENO: checking how to call pam_strerror" >&5
12879 echo $ECHO_N "checking how to call pam_strerror... $ECHO_C" >&6
12880 if test "${ac_cv_pam_strerror_args+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 cat >conftest.$ac_ext <<_ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12890 #include <stdlib.h>
12891 #include <security/pam_appl.h>
12895 pam_handle_t *pamh = 0;
12896 char *s = pam_strerror(pamh, PAM_SUCCESS);
12901 rm -f conftest.$ac_objext
12902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12903 (eval $ac_compile) 2>conftest.er1
12905 grep -v '^ *+' conftest.er1 >conftest.err
12907 cat conftest.err >&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } &&
12910 { ac_try='test -z "$ac_c_werror_flag"
12911 || test ! -s conftest.err'
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; } &&
12917 { ac_try='test -s conftest.$ac_objext'
12918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919 (eval $ac_try) 2>&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); }; }; then
12923 ac_pam_strerror_args=2
12925 echo "$as_me: failed program was:" >&5
12926 sed 's/^/| /' conftest.$ac_ext >&5
12928 cat >conftest.$ac_ext <<_ACEOF
12931 cat confdefs.h >>conftest.$ac_ext
12932 cat >>conftest.$ac_ext <<_ACEOF
12933 /* end confdefs.h. */
12935 #include <stdlib.h>
12936 #include <security/pam_appl.h>
12941 pam_strerror(PAM_SUCCESS);
12946 rm -f conftest.$ac_objext
12947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12948 (eval $ac_compile) 2>conftest.er1
12950 grep -v '^ *+' conftest.er1 >conftest.err
12952 cat conftest.err >&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } &&
12955 { ac_try='test -z "$ac_c_werror_flag"
12956 || test ! -s conftest.err'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; } &&
12962 { ac_try='test -s conftest.$ac_objext'
12963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12964 (eval $ac_try) 2>&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; }; then
12968 ac_pam_strerror_args=1
12970 echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.$ac_ext >&5
12973 ac_pam_strerror_args=0
12975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12978 ac_cv_pam_strerror_args=$ac_pam_strerror_args
12981 ac_pam_strerror_args=$ac_cv_pam_strerror_args
12982 if test "$ac_pam_strerror_args" = 1 ; then
12983 echo "$as_me:$LINENO: result: one argument" >&5
12984 echo "${ECHO_T}one argument" >&6
12985 elif test "$ac_pam_strerror_args" = 2 ; then
12986 cat >>confdefs.h <<\_ACEOF
12987 #define PAM_STRERROR_TWO_ARGS 1
12990 echo "$as_me:$LINENO: result: two arguments" >&5
12991 echo "${ECHO_T}two arguments" >&6
12993 echo "$as_me:$LINENO: result: unknown" >&5
12994 echo "${ECHO_T}unknown" >&6
13000 ###############################################################################
13002 # Check for Kerberos.
13004 ###############################################################################
13008 with_kerberos_req=unspecified
13011 # Check whether --with-kerberos or --without-kerberos was given.
13012 if test "${with_kerberos+set}" = set; then
13013 withval="$with_kerberos"
13014 with_kerberos="$withval"; with_kerberos_req="$withval"
13020 case "$with_kerberos" in
13025 echo "$as_me:$LINENO: checking for Kerberos headers" >&5
13026 echo $ECHO_N "checking for Kerberos headers... $ECHO_C" >&6
13027 d=$with_kerberos/include
13028 if test -d $d; then
13029 X_CFLAGS="-I$d $X_CFLAGS"
13030 echo "$as_me:$LINENO: result: $d" >&5
13031 echo "${ECHO_T}$d" >&6
13033 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13034 echo "${ECHO_T}not found ($d: no such directory)" >&6
13037 echo "$as_me:$LINENO: checking for Kerberos libs" >&5
13038 echo $ECHO_N "checking for Kerberos libs... $ECHO_C" >&6
13039 d=$with_kerberos/lib
13040 if test -d $d; then
13041 X_LIBS="-L$d $X_LIBS"
13042 echo "$as_me:$LINENO: result: $d" >&5
13043 echo "${ECHO_T}$d" >&6
13045 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13046 echo "${ECHO_T}not found ($d: no such directory)" >&6
13049 # replace the directory string with "yes".
13050 with_kerberos_req="yes"
13051 with_kerberos=$with_kerberos_req
13056 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
13057 echo " If it is a directory, then \`DIR/include' will be added to"
13058 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13064 if test "$enable_locking" = yes -a "$with_kerberos" = yes; then
13065 echo "$as_me:$LINENO: checking for Kerberos 4" >&5
13066 echo $ECHO_N "checking for Kerberos 4... $ECHO_C" >&6
13067 if test "${ac_cv_kerberos+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 ac_save_CPPFLAGS="$CPPFLAGS"
13072 if test \! -z "$includedir" ; then
13073 CPPFLAGS="$CPPFLAGS -I$includedir"
13075 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13076 cat >conftest.$ac_ext <<_ACEOF
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h. */
13091 rm -f conftest.$ac_objext
13092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093 (eval $ac_compile) 2>conftest.er1
13095 grep -v '^ *+' conftest.er1 >conftest.err
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } &&
13100 { ac_try='test -z "$ac_c_werror_flag"
13101 || test ! -s conftest.err'
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; } &&
13107 { ac_try='test -s conftest.$ac_objext'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; }; then
13115 echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13121 CPPFLAGS="$ac_save_CPPFLAGS"
13123 echo "$as_me:$LINENO: result: $ac_cv_kerberos" >&5
13124 echo "${ECHO_T}$ac_cv_kerberos" >&6
13125 echo "$as_me:$LINENO: checking for Kerberos 5" >&5
13126 echo $ECHO_N "checking for Kerberos 5... $ECHO_C" >&6
13127 if test "${ac_cv_kerberos5+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 ac_save_CPPFLAGS="$CPPFLAGS"
13132 if test \! -z "$includedir" ; then
13133 CPPFLAGS="$CPPFLAGS -I$includedir"
13135 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13136 cat >conftest.$ac_ext <<_ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13142 #include <kerberosIV/krb.h>
13151 rm -f conftest.$ac_objext
13152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13153 (eval $ac_compile) 2>conftest.er1
13155 grep -v '^ *+' conftest.er1 >conftest.err
13157 cat conftest.err >&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } &&
13160 { ac_try='test -z "$ac_c_werror_flag"
13161 || test ! -s conftest.err'
13162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; } &&
13167 { ac_try='test -s conftest.$ac_objext'
13168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169 (eval $ac_try) 2>&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; }; then
13173 ac_cv_kerberos5=yes
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13181 CPPFLAGS="$ac_save_CPPFLAGS"
13183 echo "$as_me:$LINENO: result: $ac_cv_kerberos5" >&5
13184 echo "${ECHO_T}$ac_cv_kerberos5" >&6
13186 if test "$ac_cv_kerberos" = yes ; then
13188 cat >>confdefs.h <<\_ACEOF
13189 #define HAVE_KERBEROS 1
13194 if test "$ac_cv_kerberos5" = yes ; then
13196 # Andrew Snare <ajs@pigpond.com> wrote:
13198 # You were assuming that if kerberosV (krb5) was found, then kerberosIV
13199 # (krb4) was also available. This turns out not to be the case with
13200 # mit-krb-1.2.7; apparently backwards-compatibility with KerberosIV
13203 # So, disable kerberosV support if libkrb4 can't be found.
13204 # This is not the best solution, but it makes the compile not fail.
13207 ac_save_CPPFLAGS="$CPPFLAGS"
13208 ac_save_LDFLAGS="$LDFLAGS"
13209 # ac_save_LIBS="$LIBS"
13211 if test \! -z "$includedir" ; then
13212 CPPFLAGS="$CPPFLAGS -I$includedir"
13214 # note: $X_CFLAGS includes $x_includes
13215 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13217 if test \! -z "$libdir" ; then
13218 LDFLAGS="$LDFLAGS -L$libdir"
13220 # note: $X_LIBS includes $x_libraries
13221 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13223 echo "$as_me:$LINENO: checking for krb_get_tf_realm in -lkrb4" >&5
13224 echo $ECHO_N "checking for krb_get_tf_realm in -lkrb4... $ECHO_C" >&6
13225 if test "${ac_cv_lib_krb4_krb_get_tf_realm+set}" = set; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13228 ac_check_lib_save_LIBS=$LIBS
13229 LIBS="-lkrb4 $LIBS"
13230 cat >conftest.$ac_ext <<_ACEOF
13233 cat confdefs.h >>conftest.$ac_ext
13234 cat >>conftest.$ac_ext <<_ACEOF
13235 /* end confdefs.h. */
13237 /* Override any gcc2 internal prototype to avoid an error. */
13241 /* We use char because int might match the return type of a gcc2
13242 builtin and then its argument prototype would still apply. */
13243 char krb_get_tf_realm ();
13247 krb_get_tf_realm ();
13252 rm -f conftest.$ac_objext conftest$ac_exeext
13253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13254 (eval $ac_link) 2>conftest.er1
13256 grep -v '^ *+' conftest.er1 >conftest.err
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } &&
13261 { ac_try='test -z "$ac_c_werror_flag"
13262 || test ! -s conftest.err'
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; } &&
13268 { ac_try='test -s conftest$ac_exeext'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; }; then
13274 ac_cv_lib_krb4_krb_get_tf_realm=yes
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13279 ac_cv_lib_krb4_krb_get_tf_realm=no
13281 rm -f conftest.err conftest.$ac_objext \
13282 conftest$ac_exeext conftest.$ac_ext
13283 LIBS=$ac_check_lib_save_LIBS
13285 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_tf_realm" >&5
13286 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_tf_realm" >&6
13287 if test $ac_cv_lib_krb4_krb_get_tf_realm = yes; then
13293 CPPFLAGS="$ac_save_CPPFLAGS"
13294 LDFLAGS="$ac_save_LDFLAGS"
13295 # LIBS="$ac_save_LIBS"
13297 if test "$have_kerberos" = yes ; then
13299 cat >>confdefs.h <<\_ACEOF
13300 #define HAVE_KERBEROS 1
13303 cat >>confdefs.h <<\_ACEOF
13304 #define HAVE_KERBEROS5 1
13309 { echo "$as_me:$LINENO: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&5
13310 echo "$as_me: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&2;}
13315 if test "$have_kerberos5" = yes ; then
13316 # from Matt Knopp <mhat@infocalypse.netlag.com>
13317 # (who got it from amu@mit.edu)
13319 PASSWD_LIBS="$PASSWD_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
13321 # jwz: MacOS X uses -lkrb5, but not -lcrypt
13323 ac_save_CPPFLAGS="$CPPFLAGS"
13324 ac_save_LDFLAGS="$LDFLAGS"
13325 # ac_save_LIBS="$LIBS"
13327 if test \! -z "$includedir" ; then
13328 CPPFLAGS="$CPPFLAGS -I$includedir"
13330 # note: $X_CFLAGS includes $x_includes
13331 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13333 if test \! -z "$libdir" ; then
13334 LDFLAGS="$LDFLAGS -L$libdir"
13336 # note: $X_LIBS includes $x_libraries
13337 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13339 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
13340 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
13341 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13344 ac_check_lib_save_LIBS=$LIBS
13345 LIBS="-lcrypt $LIBS"
13346 cat >conftest.$ac_ext <<_ACEOF
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h. */
13353 /* Override any gcc2 internal prototype to avoid an error. */
13357 /* We use char because int might match the return type of a gcc2
13358 builtin and then its argument prototype would still apply. */
13368 rm -f conftest.$ac_objext conftest$ac_exeext
13369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13370 (eval $ac_link) 2>conftest.er1
13372 grep -v '^ *+' conftest.er1 >conftest.err
13374 cat conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } &&
13377 { ac_try='test -z "$ac_c_werror_flag"
13378 || test ! -s conftest.err'
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; } &&
13384 { ac_try='test -s conftest$ac_exeext'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }; then
13390 ac_cv_lib_crypt_crypt=yes
13392 echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13395 ac_cv_lib_crypt_crypt=no
13397 rm -f conftest.err conftest.$ac_objext \
13398 conftest$ac_exeext conftest.$ac_ext
13399 LIBS=$ac_check_lib_save_LIBS
13401 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
13402 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
13403 if test $ac_cv_lib_crypt_crypt = yes; then
13404 PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
13407 CPPFLAGS="$ac_save_CPPFLAGS"
13408 LDFLAGS="$ac_save_LDFLAGS"
13409 # LIBS="$ac_save_LIBS"
13412 elif test "$have_kerberos" = yes ; then
13413 # from Tim Showalter <tjs@psaux.com> for FreeBSD 4.2
13414 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
13417 if test "$have_kerberos" = yes ; then
13418 echo "$as_me:$LINENO: checking for res_search" >&5
13419 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
13420 if test "${ac_cv_func_res_search+set}" = set; then
13421 echo $ECHO_N "(cached) $ECHO_C" >&6
13423 cat >conftest.$ac_ext <<_ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13429 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
13430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13431 #define res_search innocuous_res_search
13433 /* System header to define __stub macros and hopefully few prototypes,
13434 which can conflict with char res_search (); below.
13435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13436 <limits.h> exists even on freestanding compilers. */
13439 # include <limits.h>
13441 # include <assert.h>
13446 /* Override any gcc2 internal prototype to avoid an error. */
13451 /* We use char because int might match the return type of a gcc2
13452 builtin and then its argument prototype would still apply. */
13453 char res_search ();
13454 /* The GNU C library defines this for functions which it implements
13455 to always fail with ENOSYS. Some functions are actually named
13456 something starting with __ and the normal name is an alias. */
13457 #if defined (__stub_res_search) || defined (__stub___res_search)
13460 char (*f) () = res_search;
13469 return f != res_search;
13474 rm -f conftest.$ac_objext conftest$ac_exeext
13475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13476 (eval $ac_link) 2>conftest.er1
13478 grep -v '^ *+' conftest.er1 >conftest.err
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -z "$ac_c_werror_flag"
13484 || test ! -s conftest.err'
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; } &&
13490 { ac_try='test -s conftest$ac_exeext'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; }; then
13496 ac_cv_func_res_search=yes
13498 echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13501 ac_cv_func_res_search=no
13503 rm -f conftest.err conftest.$ac_objext \
13504 conftest$ac_exeext conftest.$ac_ext
13506 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
13507 echo "${ECHO_T}$ac_cv_func_res_search" >&6
13508 if test $ac_cv_func_res_search = yes; then
13511 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
13512 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
13513 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13516 ac_check_lib_save_LIBS=$LIBS
13517 LIBS="-lresolv $LIBS"
13518 cat >conftest.$ac_ext <<_ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h. */
13525 /* Override any gcc2 internal prototype to avoid an error. */
13529 /* We use char because int might match the return type of a gcc2
13530 builtin and then its argument prototype would still apply. */
13531 char res_search ();
13540 rm -f conftest.$ac_objext conftest$ac_exeext
13541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13542 (eval $ac_link) 2>conftest.er1
13544 grep -v '^ *+' conftest.er1 >conftest.err
13546 cat conftest.err >&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } &&
13549 { ac_try='test -z "$ac_c_werror_flag"
13550 || test ! -s conftest.err'
13551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); }; } &&
13556 { ac_try='test -s conftest$ac_exeext'
13557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558 (eval $ac_try) 2>&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; }; then
13562 ac_cv_lib_resolv_res_search=yes
13564 echo "$as_me: failed program was:" >&5
13565 sed 's/^/| /' conftest.$ac_ext >&5
13567 ac_cv_lib_resolv_res_search=no
13569 rm -f conftest.err conftest.$ac_objext \
13570 conftest$ac_exeext conftest.$ac_ext
13571 LIBS=$ac_check_lib_save_LIBS
13573 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
13574 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
13575 if test $ac_cv_lib_resolv_res_search = yes; then
13576 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
13578 { echo "$as_me:$LINENO: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&5
13579 echo "$as_me: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&2;}
13589 ###############################################################################
13591 # Check for the nine billion variants of shadow passwords...
13593 ###############################################################################
13598 with_shadow_req=unspecified
13601 # Check whether --with-shadow or --without-shadow was given.
13602 if test "${with_shadow+set}" = set; then
13603 withval="$with_shadow"
13604 with_shadow="$withval"; with_shadow_req="$withval"
13610 case "$with_shadow" in
13615 echo "$as_me:$LINENO: checking for shadow password headers" >&5
13616 echo $ECHO_N "checking for shadow password headers... $ECHO_C" >&6
13617 d=$with_shadow/include
13618 if test -d $d; then
13619 X_CFLAGS="-I$d $X_CFLAGS"
13620 echo "$as_me:$LINENO: result: $d" >&5
13621 echo "${ECHO_T}$d" >&6
13623 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13624 echo "${ECHO_T}not found ($d: no such directory)" >&6
13627 echo "$as_me:$LINENO: checking for shadow password libs" >&5
13628 echo $ECHO_N "checking for shadow password libs... $ECHO_C" >&6
13630 if test -d $d; then
13631 X_LIBS="-L$d $X_LIBS"
13632 echo "$as_me:$LINENO: result: $d" >&5
13633 echo "${ECHO_T}$d" >&6
13635 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13636 echo "${ECHO_T}not found ($d: no such directory)" >&6
13639 # replace the directory string with "yes".
13640 with_shadow_req="yes"
13641 with_shadow=$with_shadow_req
13646 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
13647 echo " If it is a directory, then \`DIR/include' will be added to"
13648 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13654 if test "$enable_locking" = no ; then
13660 ###############################################################################
13662 # Check for Sun "adjunct" passwords.
13664 ###############################################################################
13666 if test "$with_shadow" = yes ; then
13667 echo "$as_me:$LINENO: checking for Sun-style shadow passwords" >&5
13668 echo $ECHO_N "checking for Sun-style shadow passwords... $ECHO_C" >&6
13669 if test "${ac_cv_sun_adjunct+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13673 ac_save_CPPFLAGS="$CPPFLAGS"
13674 if test \! -z "$includedir" ; then
13675 CPPFLAGS="$CPPFLAGS -I$includedir"
13677 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13678 cat >conftest.$ac_ext <<_ACEOF
13681 cat confdefs.h >>conftest.$ac_ext
13682 cat >>conftest.$ac_ext <<_ACEOF
13683 /* end confdefs.h. */
13684 #include <stdlib.h>
13685 #include <unistd.h>
13686 #include <sys/types.h>
13687 #include <sys/label.h>
13688 #include <sys/audit.h>
13689 #include <pwdadj.h>
13693 struct passwd_adjunct *p = getpwanam("nobody");
13694 const char *pw = p->pwa_passwd;
13699 rm -f conftest.$ac_objext
13700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13701 (eval $ac_compile) 2>conftest.er1
13703 grep -v '^ *+' conftest.er1 >conftest.err
13705 cat conftest.err >&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } &&
13708 { ac_try='test -z "$ac_c_werror_flag"
13709 || test ! -s conftest.err'
13710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711 (eval $ac_try) 2>&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; } &&
13715 { ac_try='test -s conftest.$ac_objext'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13721 ac_cv_sun_adjunct=yes
13723 echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13726 ac_cv_sun_adjunct=no
13728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13729 CPPFLAGS="$ac_save_CPPFLAGS"
13731 echo "$as_me:$LINENO: result: $ac_cv_sun_adjunct" >&5
13732 echo "${ECHO_T}$ac_cv_sun_adjunct" >&6
13733 if test "$ac_cv_sun_adjunct" = yes; then
13734 have_shadow_adjunct=yes
13741 ###############################################################################
13743 # Check for DEC and SCO so-called "enhanced" security.
13745 ###############################################################################
13747 if test "$with_shadow" = yes ; then
13748 echo "$as_me:$LINENO: checking for DEC-style shadow passwords" >&5
13749 echo $ECHO_N "checking for DEC-style shadow passwords... $ECHO_C" >&6
13750 if test "${ac_cv_enhanced_passwd+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13754 ac_save_CPPFLAGS="$CPPFLAGS"
13755 if test \! -z "$includedir" ; then
13756 CPPFLAGS="$CPPFLAGS -I$includedir"
13758 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13759 cat >conftest.$ac_ext <<_ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13765 #include <stdlib.h>
13766 #include <unistd.h>
13767 #include <sys/types.h>
13769 #include <sys/security.h>
13774 struct pr_passwd *p;
13776 set_auth_parameters(0, 0);
13777 check_auth_parameters();
13778 p = getprpwnam("nobody");
13779 pw = p->ufld.fd_encrypt;
13784 rm -f conftest.$ac_objext
13785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13786 (eval $ac_compile) 2>conftest.er1
13788 grep -v '^ *+' conftest.er1 >conftest.err
13790 cat conftest.err >&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); } &&
13793 { ac_try='test -z "$ac_c_werror_flag"
13794 || test ! -s conftest.err'
13795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13796 (eval $ac_try) 2>&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); }; } &&
13800 { ac_try='test -s conftest.$ac_objext'
13801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802 (eval $ac_try) 2>&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); }; }; then
13806 ac_cv_enhanced_passwd=yes
13808 echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.$ac_ext >&5
13811 ac_cv_enhanced_passwd=no
13813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13814 CPPFLAGS="$ac_save_CPPFLAGS"
13816 echo "$as_me:$LINENO: result: $ac_cv_enhanced_passwd" >&5
13817 echo "${ECHO_T}$ac_cv_enhanced_passwd" >&6
13818 if test $ac_cv_enhanced_passwd = yes; then
13819 have_shadow_enhanced=yes
13823 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
13824 # (I'm told it needs -lcurses too, but I don't understand why.)
13825 # But on DEC, it's in -lsecurity.
13827 echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
13828 echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
13829 if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13832 ac_check_lib_save_LIBS=$LIBS
13833 LIBS="-lprot -lx $LIBS"
13834 cat >conftest.$ac_ext <<_ACEOF
13837 cat confdefs.h >>conftest.$ac_ext
13838 cat >>conftest.$ac_ext <<_ACEOF
13839 /* end confdefs.h. */
13841 /* Override any gcc2 internal prototype to avoid an error. */
13845 /* We use char because int might match the return type of a gcc2
13846 builtin and then its argument prototype would still apply. */
13847 char getprpwnam ();
13856 rm -f conftest.$ac_objext conftest$ac_exeext
13857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13858 (eval $ac_link) 2>conftest.er1
13860 grep -v '^ *+' conftest.er1 >conftest.err
13862 cat conftest.err >&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } &&
13865 { ac_try='test -z "$ac_c_werror_flag"
13866 || test ! -s conftest.err'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; } &&
13872 { ac_try='test -s conftest$ac_exeext'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; }; then
13878 ac_cv_lib_prot_getprpwnam=yes
13880 echo "$as_me: failed program was:" >&5
13881 sed 's/^/| /' conftest.$ac_ext >&5
13883 ac_cv_lib_prot_getprpwnam=no
13885 rm -f conftest.err conftest.$ac_objext \
13886 conftest$ac_exeext conftest.$ac_ext
13887 LIBS=$ac_check_lib_save_LIBS
13889 echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
13890 echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
13891 if test $ac_cv_lib_prot_getprpwnam = yes; then
13892 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
13894 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
13895 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
13896 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13899 ac_check_lib_save_LIBS=$LIBS
13900 LIBS="-lsecurity $LIBS"
13901 cat >conftest.$ac_ext <<_ACEOF
13904 cat confdefs.h >>conftest.$ac_ext
13905 cat >>conftest.$ac_ext <<_ACEOF
13906 /* end confdefs.h. */
13908 /* Override any gcc2 internal prototype to avoid an error. */
13912 /* We use char because int might match the return type of a gcc2
13913 builtin and then its argument prototype would still apply. */
13914 char getprpwnam ();
13923 rm -f conftest.$ac_objext conftest$ac_exeext
13924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13925 (eval $ac_link) 2>conftest.er1
13927 grep -v '^ *+' conftest.er1 >conftest.err
13929 cat conftest.err >&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } &&
13932 { ac_try='test -z "$ac_c_werror_flag"
13933 || test ! -s conftest.err'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; } &&
13939 { ac_try='test -s conftest$ac_exeext'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; }; then
13945 ac_cv_lib_security_getprpwnam=yes
13947 echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13950 ac_cv_lib_security_getprpwnam=no
13952 rm -f conftest.err conftest.$ac_objext \
13953 conftest$ac_exeext conftest.$ac_ext
13954 LIBS=$ac_check_lib_save_LIBS
13956 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
13957 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
13958 if test $ac_cv_lib_security_getprpwnam = yes; then
13959 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
13967 ###############################################################################
13969 # Check for HP's entry in the "Not Invented Here" Sweepstakes.
13971 ###############################################################################
13973 if test "$with_shadow" = yes ; then
13974 echo "$as_me:$LINENO: checking for HP-style shadow passwords" >&5
13975 echo $ECHO_N "checking for HP-style shadow passwords... $ECHO_C" >&6
13976 if test "${ac_cv_hpux_passwd+set}" = set; then
13977 echo $ECHO_N "(cached) $ECHO_C" >&6
13980 ac_save_CPPFLAGS="$CPPFLAGS"
13981 if test \! -z "$includedir" ; then
13982 CPPFLAGS="$CPPFLAGS -I$includedir"
13984 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13985 cat >conftest.$ac_ext <<_ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h. */
13991 #include <stdlib.h>
13992 #include <unistd.h>
13993 #include <sys/types.h>
13995 #include <hpsecurity.h>
14000 struct s_passwd *p = getspwnam("nobody");
14001 const char *pw = p->pw_passwd;
14006 rm -f conftest.$ac_objext
14007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14008 (eval $ac_compile) 2>conftest.er1
14010 grep -v '^ *+' conftest.er1 >conftest.err
14012 cat conftest.err >&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); } &&
14015 { ac_try='test -z "$ac_c_werror_flag"
14016 || test ! -s conftest.err'
14017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018 (eval $ac_try) 2>&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; } &&
14022 { ac_try='test -s conftest.$ac_objext'
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; }; then
14028 ac_cv_hpux_passwd=yes
14030 echo "$as_me: failed program was:" >&5
14031 sed 's/^/| /' conftest.$ac_ext >&5
14033 ac_cv_hpux_passwd=no
14035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14036 CPPFLAGS="$ac_save_CPPFLAGS"
14038 echo "$as_me:$LINENO: result: $ac_cv_hpux_passwd" >&5
14039 echo "${ECHO_T}$ac_cv_hpux_passwd" >&6
14040 if test "$ac_cv_hpux_passwd" = yes; then
14041 have_shadow_hpux=yes
14045 # on HPUX, bigcrypt is in -lsec
14046 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
14047 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
14048 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14051 ac_check_lib_save_LIBS=$LIBS
14053 cat >conftest.$ac_ext <<_ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h. */
14060 /* Override any gcc2 internal prototype to avoid an error. */
14064 /* We use char because int might match the return type of a gcc2
14065 builtin and then its argument prototype would still apply. */
14075 rm -f conftest.$ac_objext conftest$ac_exeext
14076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14077 (eval $ac_link) 2>conftest.er1
14079 grep -v '^ *+' conftest.er1 >conftest.err
14081 cat conftest.err >&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } &&
14084 { ac_try='test -z "$ac_c_werror_flag"
14085 || test ! -s conftest.err'
14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; } &&
14091 { ac_try='test -s conftest$ac_exeext'
14092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); }; }; then
14097 ac_cv_lib_sec_bigcrypt=yes
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14102 ac_cv_lib_sec_bigcrypt=no
14104 rm -f conftest.err conftest.$ac_objext \
14105 conftest$ac_exeext conftest.$ac_ext
14106 LIBS=$ac_check_lib_save_LIBS
14108 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
14109 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
14110 if test $ac_cv_lib_sec_bigcrypt = yes; then
14111 PASSWD_LIBS="$PASSWD_LIBS -lsec"
14118 ###############################################################################
14120 # Check for FreeBSD-style shadow passwords.
14122 # On FreeBSD, getpwnam() and friends work just like on non-shadow-
14123 # password systems -- except you only get stuff in the pw_passwd field
14124 # if the running program is setuid. So, guess that we've got this
14125 # lossage to contend with if /etc/master.passwd exists, and default to
14126 # a setuid installation.
14128 ###############################################################################
14130 if test "$with_shadow" = yes ; then
14131 echo "$as_me:$LINENO: checking for FreeBSD-style shadow passwords" >&5
14132 echo $ECHO_N "checking for FreeBSD-style shadow passwords... $ECHO_C" >&6
14133 if test "${ac_cv_master_passwd+set}" = set; then
14134 echo $ECHO_N "(cached) $ECHO_C" >&6
14136 if test -f /etc/master.passwd ; then
14137 ac_cv_master_passwd=yes
14139 ac_cv_master_passwd=no
14142 echo "$as_me:$LINENO: result: $ac_cv_master_passwd" >&5
14143 echo "${ECHO_T}$ac_cv_master_passwd" >&6
14144 if test "$ac_cv_master_passwd" = yes; then
14150 ###############################################################################
14152 # Check for traditional (ha!) shadow passwords.
14154 ###############################################################################
14156 if test "$with_shadow" = yes ; then
14157 echo "$as_me:$LINENO: checking for generic shadow passwords" >&5
14158 echo $ECHO_N "checking for generic shadow passwords... $ECHO_C" >&6
14159 if test "${ac_cv_shadow+set}" = set; then
14160 echo $ECHO_N "(cached) $ECHO_C" >&6
14163 ac_save_CPPFLAGS="$CPPFLAGS"
14164 if test \! -z "$includedir" ; then
14165 CPPFLAGS="$CPPFLAGS -I$includedir"
14167 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14168 cat >conftest.$ac_ext <<_ACEOF
14171 cat confdefs.h >>conftest.$ac_ext
14172 cat >>conftest.$ac_ext <<_ACEOF
14173 /* end confdefs.h. */
14174 #include <stdlib.h>
14175 #include <unistd.h>
14176 #include <sys/types.h>
14178 #include <shadow.h>
14182 struct spwd *p = getspnam("nobody");
14183 const char *pw = p->sp_pwdp;
14188 rm -f conftest.$ac_objext
14189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14190 (eval $ac_compile) 2>conftest.er1
14192 grep -v '^ *+' conftest.er1 >conftest.err
14194 cat conftest.err >&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } &&
14197 { ac_try='test -z "$ac_c_werror_flag"
14198 || test ! -s conftest.err'
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; } &&
14204 { ac_try='test -s conftest.$ac_objext'
14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }; then
14212 echo "$as_me: failed program was:" >&5
14213 sed 's/^/| /' conftest.$ac_ext >&5
14217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14218 CPPFLAGS="$ac_save_CPPFLAGS"
14220 echo "$as_me:$LINENO: result: $ac_cv_shadow" >&5
14221 echo "${ECHO_T}$ac_cv_shadow" >&6
14222 if test "$ac_cv_shadow" = yes; then
14226 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
14228 echo "$as_me:$LINENO: checking for getspnam in -lc" >&5
14229 echo $ECHO_N "checking for getspnam in -lc... $ECHO_C" >&6
14230 if test "${ac_cv_lib_c_getspnam+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14233 ac_check_lib_save_LIBS=$LIBS
14235 cat >conftest.$ac_ext <<_ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14242 /* Override any gcc2 internal prototype to avoid an error. */
14246 /* We use char because int might match the return type of a gcc2
14247 builtin and then its argument prototype would still apply. */
14257 rm -f conftest.$ac_objext conftest$ac_exeext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14259 (eval $ac_link) 2>conftest.er1
14261 grep -v '^ *+' conftest.er1 >conftest.err
14263 cat conftest.err >&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try='test -z "$ac_c_werror_flag"
14267 || test ! -s conftest.err'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; } &&
14273 { ac_try='test -s conftest$ac_exeext'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; }; then
14279 ac_cv_lib_c_getspnam=yes
14281 echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14284 ac_cv_lib_c_getspnam=no
14286 rm -f conftest.err conftest.$ac_objext \
14287 conftest$ac_exeext conftest.$ac_ext
14288 LIBS=$ac_check_lib_save_LIBS
14290 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getspnam" >&5
14291 echo "${ECHO_T}$ac_cv_lib_c_getspnam" >&6
14292 if test $ac_cv_lib_c_getspnam = yes; then
14296 if test "$have_getspnam" = no ; then
14297 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
14298 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
14299 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 ac_check_lib_save_LIBS=$LIBS
14304 cat >conftest.$ac_ext <<_ACEOF
14307 cat confdefs.h >>conftest.$ac_ext
14308 cat >>conftest.$ac_ext <<_ACEOF
14309 /* end confdefs.h. */
14311 /* Override any gcc2 internal prototype to avoid an error. */
14315 /* We use char because int might match the return type of a gcc2
14316 builtin and then its argument prototype would still apply. */
14326 rm -f conftest.$ac_objext conftest$ac_exeext
14327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14328 (eval $ac_link) 2>conftest.er1
14330 grep -v '^ *+' conftest.er1 >conftest.err
14332 cat conftest.err >&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } &&
14335 { ac_try='test -z "$ac_c_werror_flag"
14336 || test ! -s conftest.err'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; } &&
14342 { ac_try='test -s conftest$ac_exeext'
14343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }; then
14348 ac_cv_lib_gen_getspnam=yes
14350 echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14353 ac_cv_lib_gen_getspnam=no
14355 rm -f conftest.err conftest.$ac_objext \
14356 conftest$ac_exeext conftest.$ac_ext
14357 LIBS=$ac_check_lib_save_LIBS
14359 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
14360 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
14361 if test $ac_cv_lib_gen_getspnam = yes; then
14362 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
14370 ###############################################################################
14372 # Check for other libraries needed for non-shadow passwords.
14374 ###############################################################################
14376 if test "$enable_locking" = yes ; then
14378 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
14380 echo "$as_me:$LINENO: checking for crypt in -lc" >&5
14381 echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
14382 if test "${ac_cv_lib_c_crypt+set}" = set; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 ac_check_lib_save_LIBS=$LIBS
14387 cat >conftest.$ac_ext <<_ACEOF
14390 cat confdefs.h >>conftest.$ac_ext
14391 cat >>conftest.$ac_ext <<_ACEOF
14392 /* end confdefs.h. */
14394 /* Override any gcc2 internal prototype to avoid an error. */
14398 /* We use char because int might match the return type of a gcc2
14399 builtin and then its argument prototype would still apply. */
14409 rm -f conftest.$ac_objext conftest$ac_exeext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14411 (eval $ac_link) 2>conftest.er1
14413 grep -v '^ *+' conftest.er1 >conftest.err
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
14418 { ac_try='test -z "$ac_c_werror_flag"
14419 || test ! -s conftest.err'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try='test -s conftest$ac_exeext'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14431 ac_cv_lib_c_crypt=yes
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14436 ac_cv_lib_c_crypt=no
14438 rm -f conftest.err conftest.$ac_objext \
14439 conftest$ac_exeext conftest.$ac_ext
14440 LIBS=$ac_check_lib_save_LIBS
14442 echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
14443 echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
14444 if test $ac_cv_lib_c_crypt = yes; then
14448 if test "$have_crypt" = no ; then
14449 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
14450 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
14451 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
14452 echo $ECHO_N "(cached) $ECHO_C" >&6
14454 ac_check_lib_save_LIBS=$LIBS
14455 LIBS="-lcrypt $LIBS"
14456 cat >conftest.$ac_ext <<_ACEOF
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h. */
14463 /* Override any gcc2 internal prototype to avoid an error. */
14467 /* We use char because int might match the return type of a gcc2
14468 builtin and then its argument prototype would still apply. */
14478 rm -f conftest.$ac_objext conftest$ac_exeext
14479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14480 (eval $ac_link) 2>conftest.er1
14482 grep -v '^ *+' conftest.er1 >conftest.err
14484 cat conftest.err >&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); } &&
14487 { ac_try='test -z "$ac_c_werror_flag"
14488 || test ! -s conftest.err'
14489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; } &&
14494 { ac_try='test -s conftest$ac_exeext'
14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; }; then
14500 ac_cv_lib_crypt_crypt=yes
14502 echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14505 ac_cv_lib_crypt_crypt=no
14507 rm -f conftest.err conftest.$ac_objext \
14508 conftest$ac_exeext conftest.$ac_ext
14509 LIBS=$ac_check_lib_save_LIBS
14511 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
14512 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
14513 if test $ac_cv_lib_crypt_crypt = yes; then
14514 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
14521 # Most of the above shadow mechanisms will have set need_setuid to yes,
14522 # if they were found. But, on some systems, we need setuid even when
14523 # using plain old vanilla passwords.
14525 if test "$enable_locking" = yes ; then
14527 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
14534 if test "$have_shadow_adjunct" = yes ; then
14535 cat >>confdefs.h <<\_ACEOF
14536 #define HAVE_ADJUNCT_PASSWD 1
14539 elif test "$have_shadow_enhanced" = yes ; then
14540 cat >>confdefs.h <<\_ACEOF
14541 #define HAVE_ENHANCED_PASSWD 1
14544 elif test "$have_shadow_hpux" = yes ; then
14545 cat >>confdefs.h <<\_ACEOF
14546 #define HAVE_HPUX_PASSWD 1
14549 elif test "$have_shadow" = yes ; then
14550 cat >>confdefs.h <<\_ACEOF
14551 #define HAVE_SHADOW_PASSWD 1
14557 ###############################################################################
14559 # Check for external password helper
14560 # On SuSE, instead of having xscreensaver be a setuid program, they
14561 # fork an external program that takes the password on stdin, and
14562 # returns true if that password is a valid one. Then only that
14563 # smaller program needs to be setuid.
14565 # (Note that this external program is not a GUI: the GUI is still
14566 # all in xscreensaver itself; the external program just does auth.)
14568 ###############################################################################
14570 have_passwd_helper=no
14571 with_passwd_helper_req=unspecified
14574 # Check whether --with-passwd-helper or --without-passwd-helper was given.
14575 if test "${with_passwd_helper+set}" = set; then
14576 withval="$with_passwd_helper"
14577 with_passwd_helper="$withval"; with_passwd_helper_req="$withval"
14579 with_passwd_helper=no
14581 # no HANDLE_X_PATH_ARG for this one
14583 if test "$enable_locking" = no ; then
14584 with_passwd_helper_req=no
14585 with_passwd_helper=no
14588 case "$with_passwd_helper" in
14591 cat >>confdefs.h <<_ACEOF
14592 #define PASSWD_HELPER_PROGRAM "$with_passwd_helper"
14595 have_passwd_helper=yes;;
14597 echo "error: --with-passwd-helper needs full pathname of helper (not '$with_passwd_helper')." >&2
14602 ###############################################################################
14606 ###############################################################################
14609 with_motif_req=unspecified
14611 # Check whether --with-motif or --without-motif was given.
14612 if test "${with_motif+set}" = set; then
14613 withval="$with_motif"
14614 with_motif="$withval"; with_motif_req="$withval"
14620 case "$with_motif" in
14625 echo "$as_me:$LINENO: checking for Motif headers" >&5
14626 echo $ECHO_N "checking for Motif headers... $ECHO_C" >&6
14627 d=$with_motif/include
14628 if test -d $d; then
14629 X_CFLAGS="-I$d $X_CFLAGS"
14630 echo "$as_me:$LINENO: result: $d" >&5
14631 echo "${ECHO_T}$d" >&6
14633 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14634 echo "${ECHO_T}not found ($d: no such directory)" >&6
14637 echo "$as_me:$LINENO: checking for Motif libs" >&5
14638 echo $ECHO_N "checking for Motif libs... $ECHO_C" >&6
14640 if test -d $d; then
14641 X_LIBS="-L$d $X_LIBS"
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 # replace the directory string with "yes".
14650 with_motif_req="yes"
14651 with_motif=$with_motif_req
14656 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
14657 echo " If it is a directory, then \`DIR/include' will be added to"
14658 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14664 if test "$with_motif" != yes -a "$with_motif" != no ; then
14665 echo "error: must be yes or no: --with-motif=$with_motif"
14669 if test "$with_motif" = yes; then
14672 ac_save_CPPFLAGS="$CPPFLAGS"
14673 if test \! -z "$includedir" ; then
14674 CPPFLAGS="$CPPFLAGS -I$includedir"
14676 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14677 echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
14678 echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6
14679 if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
14680 echo $ECHO_N "(cached) $ECHO_C" >&6
14682 cat >conftest.$ac_ext <<_ACEOF
14685 cat confdefs.h >>conftest.$ac_ext
14686 cat >>conftest.$ac_ext <<_ACEOF
14687 /* end confdefs.h. */
14688 #include <stdlib.h>
14690 #include <X11/Intrinsic.h>
14694 rm -f conftest.$ac_objext
14695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14696 (eval $ac_compile) 2>conftest.er1
14698 grep -v '^ *+' conftest.er1 >conftest.err
14700 cat conftest.err >&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } &&
14703 { ac_try='test -z "$ac_c_werror_flag"
14704 || test ! -s conftest.err'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; } &&
14710 { ac_try='test -s conftest.$ac_objext'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; }; then
14716 ac_cv_header_Xm_Xm_h=yes
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14721 ac_cv_header_Xm_Xm_h=no
14723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14725 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
14726 echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6
14727 if test $ac_cv_header_Xm_Xm_h = yes; then
14729 cat >>confdefs.h <<\_ACEOF
14730 #define HAVE_MOTIF 1
14733 MOTIF_LIBS="$MOTIF_LIBS -lXm"
14737 CPPFLAGS="$ac_save_CPPFLAGS"
14741 if test "$have_motif" = yes; then
14743 ac_save_CPPFLAGS="$CPPFLAGS"
14744 if test \! -z "$includedir" ; then
14745 CPPFLAGS="$CPPFLAGS -I$includedir"
14747 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14748 echo "$as_me:$LINENO: checking for Xm/ComboBox.h" >&5
14749 echo $ECHO_N "checking for Xm/ComboBox.h... $ECHO_C" >&6
14750 if test "${ac_cv_header_Xm_ComboBox_h+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14753 cat >conftest.$ac_ext <<_ACEOF
14756 cat confdefs.h >>conftest.$ac_ext
14757 cat >>conftest.$ac_ext <<_ACEOF
14758 /* end confdefs.h. */
14759 #include <stdlib.h>
14761 #include <X11/Intrinsic.h>
14763 #include <Xm/ComboBox.h>
14765 rm -f conftest.$ac_objext
14766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14767 (eval $ac_compile) 2>conftest.er1
14769 grep -v '^ *+' conftest.er1 >conftest.err
14771 cat conftest.err >&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } &&
14774 { ac_try='test -z "$ac_c_werror_flag"
14775 || test ! -s conftest.err'
14776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 (eval $ac_try) 2>&5
14779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); }; } &&
14781 { ac_try='test -s conftest.$ac_objext'
14782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783 (eval $ac_try) 2>&5
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); }; }; then
14787 ac_cv_header_Xm_ComboBox_h=yes
14789 echo "$as_me: failed program was:" >&5
14790 sed 's/^/| /' conftest.$ac_ext >&5
14792 ac_cv_header_Xm_ComboBox_h=no
14794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14796 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_ComboBox_h" >&5
14797 echo "${ECHO_T}$ac_cv_header_Xm_ComboBox_h" >&6
14798 if test $ac_cv_header_Xm_ComboBox_h = yes; then
14799 cat >>confdefs.h <<\_ACEOF
14800 #define HAVE_XMCOMBOBOX 1
14806 CPPFLAGS="$ac_save_CPPFLAGS"
14810 ###############################################################################
14812 # Check for -lgtk (and Gnome stuff)
14814 ###############################################################################
14818 with_gtk_req=unspecified
14820 # Check whether --with-gtk or --without-gtk was given.
14821 if test "${with_gtk+set}" = set; then
14822 withval="$with_gtk"
14823 with_gtk="$withval"; with_gtk_req="$withval"
14828 # if --with-gtk=/directory/ was specified, remember that directory so that
14829 # we can also look for the `gtk-config' program in that directory.
14830 case "$with_gtk" in
14832 gtk_dir="$with_gtk"
14840 case "$with_gtk" in
14845 echo "$as_me:$LINENO: checking for Gtk headers" >&5
14846 echo $ECHO_N "checking for Gtk headers... $ECHO_C" >&6
14847 d=$with_gtk/include
14848 if test -d $d; then
14849 X_CFLAGS="-I$d $X_CFLAGS"
14850 echo "$as_me:$LINENO: result: $d" >&5
14851 echo "${ECHO_T}$d" >&6
14853 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14854 echo "${ECHO_T}not found ($d: no such directory)" >&6
14857 echo "$as_me:$LINENO: checking for Gtk libs" >&5
14858 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
14860 if test -d $d; then
14861 X_LIBS="-L$d $X_LIBS"
14862 echo "$as_me:$LINENO: result: $d" >&5
14863 echo "${ECHO_T}$d" >&6
14865 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14866 echo "${ECHO_T}not found ($d: no such directory)" >&6
14869 # replace the directory string with "yes".
14871 with_gtk=$with_gtk_req
14876 echo "error: argument to --with-gtk must be \"yes\", \"no\", or a directory."
14877 echo " If it is a directory, then \`DIR/include' will be added to"
14878 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14884 if test "$with_gtk" != yes -a "$with_gtk" != no ; then
14885 echo "error: must be yes or no: --with-gtk=$with_gtk"
14890 with_gnome_req=unspecified
14892 # Check whether --with-gnome or --without-gnome was given.
14893 if test "${with_gnome+set}" = set; then
14894 withval="$with_gnome"
14895 with_gnome="$withval"; with_gnome_req="$withval"
14900 # if --with-gnome=/directory/ was specified, remember that directory so that
14901 # we can also look for the `gnome-config' program in that directory.
14902 case "$with_gnome" in
14904 gnome_dir="$with_gnome"
14912 case "$with_gnome" in
14917 echo "$as_me:$LINENO: checking for Gnome headers" >&5
14918 echo $ECHO_N "checking for Gnome headers... $ECHO_C" >&6
14919 d=$with_gnome/include
14920 if test -d $d; then
14921 X_CFLAGS="-I$d $X_CFLAGS"
14922 echo "$as_me:$LINENO: result: $d" >&5
14923 echo "${ECHO_T}$d" >&6
14925 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14926 echo "${ECHO_T}not found ($d: no such directory)" >&6
14929 echo "$as_me:$LINENO: checking for Gnome libs" >&5
14930 echo $ECHO_N "checking for Gnome libs... $ECHO_C" >&6
14932 if test -d $d; then
14933 X_LIBS="-L$d $X_LIBS"
14934 echo "$as_me:$LINENO: result: $d" >&5
14935 echo "${ECHO_T}$d" >&6
14937 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14938 echo "${ECHO_T}not found ($d: no such directory)" >&6
14941 # replace the directory string with "yes".
14942 with_gnome_req="yes"
14943 with_gnome=$with_gnome_req
14948 echo "error: argument to --with-gnome must be \"yes\", \"no\", or a directory."
14949 echo " If it is a directory, then \`DIR/include' will be added to"
14950 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14956 if test "$with_gnome" != yes -a "$with_gnome" != no ; then
14957 echo "error: must be yes or no: --with-gnome=$with_gnome"
14961 parse_gtk_version_string() {
14964 maj=`echo $ac_gtk_version_string | sed -n 's/\..*//p'`
14965 min=`echo $ac_gtk_version_string | sed -n 's/[^.]*\.\([^.]*\).*/\1/p'`
14967 ac_gtk_version=`echo "$maj * 1000 + $min" | bc`
14968 if test -z "$ac_gtk_version"; then
14969 ac_gtk_version=unknown
14970 ac_gtk_version_string=unknown
14978 if test "$with_gtk" = yes; then
14981 # if the user specified --with-gtk=/foo/ or --with-gnome=/foo/ then
14982 # look in /foo/bin/ for glib-config, gtk-config, and gnome-config.
14986 if test ! -z "$gtk_dir"; then
14987 # canonicalize slashes.
14988 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
14989 gtk_path="$foo:$gtk_path"
14992 if test ! -z "$gnome_dir"; then
14993 # canonicalize slashes.
14994 foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
14995 gtk_path="$foo:$gtk_path"
14998 for ac_prog in pkg-config
15000 # Extract the first word of "$ac_prog", so it can be a program name with args.
15001 set dummy $ac_prog; ac_word=$2
15002 echo "$as_me:$LINENO: checking for $ac_word" >&5
15003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15004 if test "${ac_cv_path_pkg_config+set}" = set; then
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
15007 case $pkg_config in
15009 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path.
15012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15013 for as_dir in $gtk_path
15016 test -z "$as_dir" && as_dir=.
15017 for ac_exec_ext in '' $ac_executable_extensions; do
15018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15019 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext"
15020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15029 pkg_config=$ac_cv_path_pkg_config
15031 if test -n "$pkg_config"; then
15032 echo "$as_me:$LINENO: result: $pkg_config" >&5
15033 echo "${ECHO_T}$pkg_config" >&6
15035 echo "$as_me:$LINENO: result: no" >&5
15036 echo "${ECHO_T}no" >&6
15039 test -n "$pkg_config" && break
15043 if test -n "$pkg_config" ; then
15046 # run pkg-config based tests.
15049 pkg_check_version() {
15050 if test "$ok" = yes ; then
15053 echo "$as_me:$LINENO: checking for $req" >&5
15054 echo $ECHO_N "checking for $req... $ECHO_C" >&6
15055 if $pkg_config --exists "$req" ; then
15056 vers=`$pkg_config --modversion "$req"`
15057 if $pkg_config --exists "$req >= $min" ; then
15058 echo "$as_me:$LINENO: result: $vers" >&5
15059 echo "${ECHO_T}$vers" >&6
15063 echo "$as_me:$LINENO: result: $vers (wanted >= $min)" >&5
15064 echo "${ECHO_T}$vers (wanted >= $min)" >&6
15069 echo "$as_me:$LINENO: result: no" >&5
15070 echo "${ECHO_T}no" >&6
15077 echo "$as_me:$LINENO: result: checking for GTK 2.x with pkg-config based tests..." >&5
15078 echo "${ECHO_T}checking for GTK 2.x with pkg-config based tests..." >&6
15081 pkg_check_version gtk+-2.0 2.0.1 ; ac_gtk_version_string="$vers"
15082 pkg_check_version gmodule-2.0 2.0.0
15083 pkg_check_version libxml-2.0 2.4.6
15084 pkg_check_version libglade-2.0 1.99.0
15085 # pkg_check_version gdk_pixbuf 0.1
15088 if test "$have_gtk" = yes; then
15090 cat >>confdefs.h <<\_ACEOF
15091 #define HAVE_GTK2 1
15095 if test -n "$ac_gtk_version_string" ; then
15096 gtk2_halfassed="$ac_gtk_version_string"
15097 gtk2_halfassed_lib="$req"
15101 if test "$have_gtk" = no; then
15103 # we don't have GTK 2. Let's look for GTK 1.
15105 echo "$as_me:$LINENO: result: checking for GTK 1.x with pkg-config based tests..." >&5
15106 echo "${ECHO_T}checking for GTK 1.x with pkg-config based tests..." >&6
15110 pkg_check_version gtk+ 1.2 ; ac_gtk_version_string="$vers"
15111 pkg_check_version glib 1.0
15112 pkg_check_version gdk_pixbuf 0.1
15115 # Now check for Gnome...
15117 if test "$have_gtk" = yes -a "$with_gnome" = yes; then
15120 pkg_check_version capplet 1.0
15121 pkg_check_version gnomeui 1.0
15122 pkg_check_version gdk_pixbuf 0.1
15125 if test "$have_gnome" = no; then
15128 cat >>confdefs.h <<\_ACEOF
15129 #define HAVE_CRAPPLET 1
15136 if test "$have_gtk" = yes; then
15137 parse_gtk_version_string
15143 if test "$have_gtk" = yes; then
15144 echo "$as_me:$LINENO: checking for Gtk includes" >&5
15145 echo $ECHO_N "checking for Gtk includes... $ECHO_C" >&6
15146 if test "${ac_cv_gtk_config_cflags+set}" = set; then
15147 echo $ECHO_N "(cached) $ECHO_C" >&6
15149 ac_cv_gtk_config_cflags=`$pkg_config --cflags $pkgs`
15151 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
15152 echo "${ECHO_T}$ac_cv_gtk_config_cflags" >&6
15153 echo "$as_me:$LINENO: checking for Gtk libs" >&5
15154 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
15155 if test "${ac_cv_gtk_config_libs+set}" = set; then
15156 echo $ECHO_N "(cached) $ECHO_C" >&6
15158 ac_cv_gtk_config_libs=`$pkg_config --libs $pkgs`
15160 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
15161 echo "${ECHO_T}$ac_cv_gtk_config_libs" >&6
15163 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
15164 ac_gtk_config_libs=$ac_cv_gtk_config_libs
15166 ac_gnome_config_cflags=$ac_gtk_config_cflags
15167 ac_gnome_config_libs=$ac_gtk_config_libs
15172 # run {gnome,gtk}-config based tests.
15174 echo "$as_me:$LINENO: result: checking for GTK 1.x with gtk-config based tests..." >&5
15175 echo "${ECHO_T}checking for GTK 1.x with gtk-config based tests..." >&6
15177 for ac_prog in glib12-config glib-config
15179 # Extract the first word of "$ac_prog", so it can be a program name with args.
15180 set dummy $ac_prog; ac_word=$2
15181 echo "$as_me:$LINENO: checking for $ac_word" >&5
15182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15183 if test "${ac_cv_path_glib_config+set}" = set; then
15184 echo $ECHO_N "(cached) $ECHO_C" >&6
15186 case $glib_config in
15188 ac_cv_path_glib_config="$glib_config" # Let the user override the test with a path.
15191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15192 for as_dir in $gtk_path
15195 test -z "$as_dir" && as_dir=.
15196 for ac_exec_ext in '' $ac_executable_extensions; do
15197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15198 ac_cv_path_glib_config="$as_dir/$ac_word$ac_exec_ext"
15199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15208 glib_config=$ac_cv_path_glib_config
15210 if test -n "$glib_config"; then
15211 echo "$as_me:$LINENO: result: $glib_config" >&5
15212 echo "${ECHO_T}$glib_config" >&6
15214 echo "$as_me:$LINENO: result: no" >&5
15215 echo "${ECHO_T}no" >&6
15218 test -n "$glib_config" && break
15221 for ac_prog in gtk12-config gtk-config
15223 # Extract the first word of "$ac_prog", so it can be a program name with args.
15224 set dummy $ac_prog; ac_word=$2
15225 echo "$as_me:$LINENO: checking for $ac_word" >&5
15226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15227 if test "${ac_cv_path_gtk_config+set}" = set; then
15228 echo $ECHO_N "(cached) $ECHO_C" >&6
15230 case $gtk_config in
15232 ac_cv_path_gtk_config="$gtk_config" # Let the user override the test with a path.
15235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15236 for as_dir in $gtk_path
15239 test -z "$as_dir" && as_dir=.
15240 for ac_exec_ext in '' $ac_executable_extensions; do
15241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15242 ac_cv_path_gtk_config="$as_dir/$ac_word$ac_exec_ext"
15243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15252 gtk_config=$ac_cv_path_gtk_config
15254 if test -n "$gtk_config"; then
15255 echo "$as_me:$LINENO: result: $gtk_config" >&5
15256 echo "${ECHO_T}$gtk_config" >&6
15258 echo "$as_me:$LINENO: result: no" >&5
15259 echo "${ECHO_T}no" >&6
15262 test -n "$gtk_config" && break
15266 if test "$with_gnome" = yes; then
15267 for ac_prog in gnome-config
15269 # Extract the first word of "$ac_prog", so it can be a program name with args.
15270 set dummy $ac_prog; ac_word=$2
15271 echo "$as_me:$LINENO: checking for $ac_word" >&5
15272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15273 if test "${ac_cv_path_gnome_config+set}" = set; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 case $gnome_config in
15278 ac_cv_path_gnome_config="$gnome_config" # Let the user override the test with a path.
15281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15282 for as_dir in $gtk_path
15285 test -z "$as_dir" && as_dir=.
15286 for ac_exec_ext in '' $ac_executable_extensions; do
15287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15288 ac_cv_path_gnome_config="$as_dir/$ac_word$ac_exec_ext"
15289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15298 gnome_config=$ac_cv_path_gnome_config
15300 if test -n "$gnome_config"; then
15301 echo "$as_me:$LINENO: result: $gnome_config" >&5
15302 echo "${ECHO_T}$gnome_config" >&6
15304 echo "$as_me:$LINENO: result: no" >&5
15305 echo "${ECHO_T}no" >&6
15308 test -n "$gnome_config" && break
15313 if test -n "$glib_config" -a -n "$gtk_config" ; then
15315 if test "$with_gnome" = yes -a -n "$gnome_config" ; then
15320 if test "$have_gtk" = yes; then
15321 echo "$as_me:$LINENO: checking Gtk version number" >&5
15322 echo $ECHO_N "checking Gtk version number... $ECHO_C" >&6
15323 if test "${ac_cv_gtk_version_string+set}" = set; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15326 ac_cv_gtk_version_string=`$gtk_config --version`
15328 echo "$as_me:$LINENO: result: $ac_cv_gtk_version_string" >&5
15329 echo "${ECHO_T}$ac_cv_gtk_version_string" >&6
15330 ac_gtk_version_string=$ac_cv_gtk_version_string
15331 parse_gtk_version_string
15334 if test "$have_gtk" = yes; then
15335 if test "$ac_gtk_version" = "unknown" || test "$ac_gtk_version" -lt 1002
15343 if test "$have_gtk" = yes; then
15344 echo "$as_me:$LINENO: checking for Gtk includes" >&5
15345 echo $ECHO_N "checking for Gtk includes... $ECHO_C" >&6
15346 if test "${ac_cv_gtk_config_cflags+set}" = set; then
15347 echo $ECHO_N "(cached) $ECHO_C" >&6
15349 ac_cv_gtk_config_cflags=`$gtk_config --cflags`
15351 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
15352 echo "${ECHO_T}$ac_cv_gtk_config_cflags" >&6
15353 echo "$as_me:$LINENO: checking for Gtk libs" >&5
15354 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
15355 if test "${ac_cv_gtk_config_libs+set}" = set; then
15356 echo $ECHO_N "(cached) $ECHO_C" >&6
15358 ac_cv_gtk_config_libs=`$gtk_config --libs`
15360 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
15361 echo "${ECHO_T}$ac_cv_gtk_config_libs" >&6
15363 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
15364 ac_gtk_config_libs=$ac_cv_gtk_config_libs
15366 # Check for Gnome Capplet support.
15367 # Note that this is only needed with Gnome 1.x, not Gnome 2.x.
15368 # In a Gnome 2.x world, libcapplet will not exist.
15369 # (In fact, this likely won't even be checked, since in a Gnome 2.x
15370 # world, we will probably be up in the "$pkg_config" branch instead
15371 # of here in the "$gnome_config" branch.)
15373 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
15374 gnome_config_libs="gtk capplet gnomeui gdk_pixbuf"
15375 echo "$as_me:$LINENO: checking for Gnome capplet includes" >&5
15376 echo $ECHO_N "checking for Gnome capplet includes... $ECHO_C" >&6
15377 if test "${ac_cv_gnome_config_cflags+set}" = set; then
15378 echo $ECHO_N "(cached) $ECHO_C" >&6
15380 if ( $gnome_config --cflags $gnome_config_libs 2>&1 | \
15381 grep Unknown >/dev/null ) ; then
15382 ac_cv_gnome_config_cflags=''
15384 ac_cv_gnome_config_cflags=`$gnome_config --cflags $gnome_config_libs`
15388 ac_gnome_config_cflags=$ac_cv_gnome_config_cflags
15389 if test "$ac_gnome_config_cflags" = "" ; then
15391 echo "$as_me:$LINENO: result: no" >&5
15392 echo "${ECHO_T}no" >&6
15394 echo "$as_me:$LINENO: result: $ac_gnome_config_cflags" >&5
15395 echo "${ECHO_T}$ac_gnome_config_cflags" >&6
15399 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
15400 echo "$as_me:$LINENO: checking for Gnome capplet libs" >&5
15401 echo $ECHO_N "checking for Gnome capplet libs... $ECHO_C" >&6
15402 if test "${ac_cv_gnome_config_libs+set}" = set; then
15403 echo $ECHO_N "(cached) $ECHO_C" >&6
15405 if ( $gnome_config --libs $gnome_config_libs 2>&1 |
15406 grep Unknown >/dev/null ) ; then
15407 ac_cv_gnome_config_libs=''
15409 ac_cv_gnome_config_libs=`$gnome_config --libs $gnome_config_libs`
15413 ac_gnome_config_libs=$ac_cv_gnome_config_libs
15414 if test "$ac_gnome_config_libs" = "" ; then
15416 echo "$as_me:$LINENO: result: no" >&5
15417 echo "${ECHO_T}no" >&6
15419 echo "$as_me:$LINENO: result: $ac_gnome_config_libs" >&5
15420 echo "${ECHO_T}$ac_gnome_config_libs" >&6
15424 # If we have Gnome, then override the gtk-config values with
15425 # the gnome-config values.
15427 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
15428 ac_gtk_config_cflags=$ac_gnome_config_cflags
15429 ac_gtk_config_libs=$ac_gnome_config_libs
15430 cat >>confdefs.h <<\_ACEOF
15431 #define HAVE_CRAPPLET 1
15436 fi # end of {gnome,gtk}-config based tests
15438 if test "$have_gtk" = yes -a "$have_gtk2" = no; then
15439 # check for this function that was not in libcapplet 1.2.
15440 # (only needed in Gnome/Gtk 1.x, not Gnome/Gtk 2.x)
15442 ac_save_CPPFLAGS="$CPPFLAGS"
15443 ac_save_LDFLAGS="$LDFLAGS"
15444 # ac_save_LIBS="$LIBS"
15446 if test \! -z "$includedir" ; then
15447 CPPFLAGS="$CPPFLAGS -I$includedir"
15449 # note: $X_CFLAGS includes $x_includes
15450 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15452 if test \! -z "$libdir" ; then
15453 LDFLAGS="$LDFLAGS -L$libdir"
15455 # note: $X_LIBS includes $x_libraries
15456 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15458 echo "$as_me:$LINENO: checking for capplet_widget_changes_are_immediate in -lcapplet" >&5
15459 echo $ECHO_N "checking for capplet_widget_changes_are_immediate in -lcapplet... $ECHO_C" >&6
15460 if test "${ac_cv_lib_capplet_capplet_widget_changes_are_immediate+set}" = set; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15463 ac_check_lib_save_LIBS=$LIBS
15464 LIBS="-lcapplet $ac_gnome_config_libs $LIBS"
15465 cat >conftest.$ac_ext <<_ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15472 /* Override any gcc2 internal prototype to avoid an error. */
15476 /* We use char because int might match the return type of a gcc2
15477 builtin and then its argument prototype would still apply. */
15478 char capplet_widget_changes_are_immediate ();
15482 capplet_widget_changes_are_immediate ();
15487 rm -f conftest.$ac_objext conftest$ac_exeext
15488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15489 (eval $ac_link) 2>conftest.er1
15491 grep -v '^ *+' conftest.er1 >conftest.err
15493 cat conftest.err >&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } &&
15496 { ac_try='test -z "$ac_c_werror_flag"
15497 || test ! -s conftest.err'
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; } &&
15503 { ac_try='test -s conftest$ac_exeext'
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; }; then
15509 ac_cv_lib_capplet_capplet_widget_changes_are_immediate=yes
15511 echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15514 ac_cv_lib_capplet_capplet_widget_changes_are_immediate=no
15516 rm -f conftest.err conftest.$ac_objext \
15517 conftest$ac_exeext conftest.$ac_ext
15518 LIBS=$ac_check_lib_save_LIBS
15520 echo "$as_me:$LINENO: result: $ac_cv_lib_capplet_capplet_widget_changes_are_immediate" >&5
15521 echo "${ECHO_T}$ac_cv_lib_capplet_capplet_widget_changes_are_immediate" >&6
15522 if test $ac_cv_lib_capplet_capplet_widget_changes_are_immediate = yes; then
15523 cat >>confdefs.h <<\_ACEOF
15524 #define HAVE_CRAPPLET_IMMEDIATE 1
15531 CPPFLAGS="$ac_save_CPPFLAGS"
15532 LDFLAGS="$ac_save_LDFLAGS"
15533 # LIBS="$ac_save_LIBS"
15539 if test "$have_gtk" = yes; then
15540 if test -n "$pkg_config"; then
15541 if test "$have_gtk2" = yes; then
15542 GNOME_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
15544 GNOME_DATADIR=`$pkg_config --variable=prefix gtk+`
15547 GNOME_DATADIR=`$gtk_config --prefix`
15549 GNOME_DATADIR="$GNOME_DATADIR/share"
15552 # .desktop files go in different places in Gnome 1.x and Gnome 2.x...
15553 if test "$have_gtk2" = yes; then
15554 GNOME_PANELDIR='$(GNOME_PANELDIR2)'
15556 GNOME_PANELDIR='$(GNOME_PANELDIR1)'
15560 if test "$have_gtk" = yes; then
15561 INCLUDES="$INCLUDES $ac_gtk_config_cflags"
15562 GTK_LIBS="$GTK_LIBS $ac_gtk_config_libs"
15563 cat >>confdefs.h <<\_ACEOF
15568 if test "$have_gtk2" = yes; then
15571 GTK_EXTRA_OBJS="\$(GTK_EXTRA_OBJS)"
15578 # Check for the Gnome Help Browser.
15580 if test "$have_gtk" = yes; then
15581 for ac_prog in yelp gnome-help-browser
15583 # Extract the first word of "$ac_prog", so it can be a program name with args.
15584 set dummy $ac_prog; ac_word=$2
15585 echo "$as_me:$LINENO: checking for $ac_word" >&5
15586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15587 if test "${ac_cv_prog_have_gnome_help+set}" = set; then
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
15590 if test -n "$have_gnome_help"; then
15591 ac_cv_prog_have_gnome_help="$have_gnome_help" # Let the user override the test.
15593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15594 for as_dir in $PATH
15597 test -z "$as_dir" && as_dir=.
15598 for ac_exec_ext in '' $ac_executable_extensions; do
15599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15600 ac_cv_prog_have_gnome_help="$ac_prog"
15601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15609 have_gnome_help=$ac_cv_prog_have_gnome_help
15610 if test -n "$have_gnome_help"; then
15611 echo "$as_me:$LINENO: result: $have_gnome_help" >&5
15612 echo "${ECHO_T}$have_gnome_help" >&6
15614 echo "$as_me:$LINENO: result: no" >&5
15615 echo "${ECHO_T}no" >&6
15618 test -n "$have_gnome_help" && break
15620 test -n "$have_gnome_help" || have_gnome_help="no"
15622 if test "$have_gnome_help" != no; then
15623 have_gnome_help=yes
15628 ###############################################################################
15632 ###############################################################################
15635 with_xml_req=unspecified
15638 # Check whether --with-xml or --without-xml was given.
15639 if test "${with_xml+set}" = set; then
15640 withval="$with_xml"
15641 with_xml="$withval"; with_xml_req="$withval"
15646 # if --with-xml=/directory/ was specified, remember that directory so that
15647 # we can also look for the `xml-config' program in that directory.
15648 case "$with_xml" in
15650 xml_dir="$with_xml"
15658 case "$with_xml" in
15663 echo "$as_me:$LINENO: checking for XML headers" >&5
15664 echo $ECHO_N "checking for XML headers... $ECHO_C" >&6
15665 d=$with_xml/include
15666 if test -d $d; then
15667 X_CFLAGS="-I$d $X_CFLAGS"
15668 echo "$as_me:$LINENO: result: $d" >&5
15669 echo "${ECHO_T}$d" >&6
15671 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15672 echo "${ECHO_T}not found ($d: no such directory)" >&6
15675 echo "$as_me:$LINENO: checking for XML libs" >&5
15676 echo $ECHO_N "checking for XML libs... $ECHO_C" >&6
15678 if test -d $d; then
15679 X_LIBS="-L$d $X_LIBS"
15680 echo "$as_me:$LINENO: result: $d" >&5
15681 echo "${ECHO_T}$d" >&6
15683 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15684 echo "${ECHO_T}not found ($d: no such directory)" >&6
15687 # replace the directory string with "yes".
15689 with_xml=$with_xml_req
15694 echo "error: argument to --with-xml must be \"yes\", \"no\", or a directory."
15695 echo " If it is a directory, then \`DIR/include' will be added to"
15696 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15702 if test "$with_xml" != yes -a "$with_xml" != no ; then
15703 echo "error: must be yes or no: --with-xml=$with_xml"
15707 if test "$with_xml" = yes; then
15711 # if the user specified --with-gtk=/foo/ or --with-gnome=/foo/ then
15712 # look in /foo/bin/ for for xml-config.
15716 if test ! -z "$gtk_dir"; then
15717 # canonicalize slashes.
15718 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
15719 xml_path="$foo:$xml_path"
15722 if test ! -z "$gnome_dir"; then
15723 # canonicalize slashes.
15724 foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
15725 xml_path="$foo:$xml_path"
15728 if test -n "$pkg_config" ; then
15731 # run pkg-config based tests.
15736 # If we have Gtk 2.x, then *only* XML 2.x will work.
15737 # If we have Gtk 1.x, or don't have Gtk at all, then
15738 # either XML 1.x or 2.x will work.
15740 # First check for XML 2.x.
15742 pkg_check_version libxml-2.0 2.4.6
15744 # If that didn't work (we don't have XML 2.x) and we *don't* have
15745 # Gtk 2.x, then check to see if we have XML 1.x
15747 if test "$ok" = no -a "$have_gtk2" = no; then
15749 pkg_check_version libxml 1.0
15754 if test "$have_xml" = yes; then
15755 echo "$as_me:$LINENO: checking for XML includes" >&5
15756 echo $ECHO_N "checking for XML includes... $ECHO_C" >&6
15757 if test "${ac_cv_xml_config_cflags+set}" = set; then
15758 echo $ECHO_N "(cached) $ECHO_C" >&6
15760 ac_cv_xml_config_cflags=`$pkg_config --cflags $pkgs`
15762 echo "$as_me:$LINENO: result: $ac_cv_xml_config_cflags" >&5
15763 echo "${ECHO_T}$ac_cv_xml_config_cflags" >&6
15764 echo "$as_me:$LINENO: checking for XML libs" >&5
15765 echo $ECHO_N "checking for XML libs... $ECHO_C" >&6
15766 if test "${ac_cv_xml_config_libs+set}" = set; then
15767 echo $ECHO_N "(cached) $ECHO_C" >&6
15769 ac_cv_xml_config_libs=`$pkg_config --libs $pkgs`
15771 echo "$as_me:$LINENO: result: $ac_cv_xml_config_libs" >&5
15772 echo "${ECHO_T}$ac_cv_xml_config_libs" >&6
15773 ac_xml_config_cflags=$ac_cv_xml_config_cflags
15774 ac_xml_config_libs=$ac_cv_xml_config_libs
15780 # run {xml2,xml}-config based tests.
15783 for ac_prog in xml2-config xml-config
15785 # Extract the first word of "$ac_prog", so it can be a program name with args.
15786 set dummy $ac_prog; ac_word=$2
15787 echo "$as_me:$LINENO: checking for $ac_word" >&5
15788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15789 if test "${ac_cv_path_xml_config+set}" = set; then
15790 echo $ECHO_N "(cached) $ECHO_C" >&6
15792 case $xml_config in
15794 ac_cv_path_xml_config="$xml_config" # Let the user override the test with a path.
15797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15798 for as_dir in $xml_path
15801 test -z "$as_dir" && as_dir=.
15802 for ac_exec_ext in '' $ac_executable_extensions; do
15803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15804 ac_cv_path_xml_config="$as_dir/$ac_word$ac_exec_ext"
15805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15814 xml_config=$ac_cv_path_xml_config
15816 if test -n "$xml_config"; then
15817 echo "$as_me:$LINENO: result: $xml_config" >&5
15818 echo "${ECHO_T}$xml_config" >&6
15820 echo "$as_me:$LINENO: result: no" >&5
15821 echo "${ECHO_T}no" >&6
15824 test -n "$xml_config" && break
15828 # If we found the xml-config program, run it to get flags.
15830 if test -n "$xml_config" ; then
15831 echo "$as_me:$LINENO: checking for XML includes" >&5
15832 echo $ECHO_N "checking for XML includes... $ECHO_C" >&6
15833 if test "${ac_cv_xml_config_cflags+set}" = set; then
15834 echo $ECHO_N "(cached) $ECHO_C" >&6
15836 ac_cv_xml_config_cflags=`$xml_config --cflags`
15838 echo "$as_me:$LINENO: result: $ac_cv_xml_config_cflags" >&5
15839 echo "${ECHO_T}$ac_cv_xml_config_cflags" >&6
15840 echo "$as_me:$LINENO: checking for XML libs" >&5
15841 echo $ECHO_N "checking for XML libs... $ECHO_C" >&6
15842 if test "${ac_cv_xml_config_libs+set}" = set; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15845 ac_cv_xml_config_libs=`$xml_config --libs`
15847 echo "$as_me:$LINENO: result: $ac_cv_xml_config_libs" >&5
15848 echo "${ECHO_T}$ac_cv_xml_config_libs" >&6
15849 ac_xml_config_cflags=$ac_cv_xml_config_cflags
15850 ac_xml_config_libs=$ac_cv_xml_config_libs
15853 ac_save_xml_CPPFLAGS="$CPPFLAGS"
15854 CPPFLAGS="$CPPFLAGS $ac_xml_config_cflags"
15856 # first try <libxml/parser.h> which is the new way...
15859 ac_save_CPPFLAGS="$CPPFLAGS"
15860 if test \! -z "$includedir" ; then
15861 CPPFLAGS="$CPPFLAGS -I$includedir"
15863 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15864 echo "$as_me:$LINENO: checking for libxml/xmlIO.h" >&5
15865 echo $ECHO_N "checking for libxml/xmlIO.h... $ECHO_C" >&6
15866 if test "${ac_cv_header_libxml_xmlIO_h+set}" = set; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 cat >conftest.$ac_ext <<_ACEOF
15872 cat confdefs.h >>conftest.$ac_ext
15873 cat >>conftest.$ac_ext <<_ACEOF
15874 /* end confdefs.h. */
15875 #include <libxml/parser.h>
15877 #include <libxml/xmlIO.h>
15879 rm -f conftest.$ac_objext
15880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15881 (eval $ac_compile) 2>conftest.er1
15883 grep -v '^ *+' conftest.er1 >conftest.err
15885 cat conftest.err >&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } &&
15888 { ac_try='test -z "$ac_c_werror_flag"
15889 || test ! -s conftest.err'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; } &&
15895 { ac_try='test -s conftest.$ac_objext'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; }; then
15901 ac_cv_header_libxml_xmlIO_h=yes
15903 echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15906 ac_cv_header_libxml_xmlIO_h=no
15908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15910 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_xmlIO_h" >&5
15911 echo "${ECHO_T}$ac_cv_header_libxml_xmlIO_h" >&6
15912 if test $ac_cv_header_libxml_xmlIO_h = yes; then
15917 CPPFLAGS="$ac_save_CPPFLAGS"
15919 # if that didn't work, then try just <parser.h> which is the old way...
15921 if test "$have_xml" = no; then
15923 ac_save_CPPFLAGS="$CPPFLAGS"
15924 if test \! -z "$includedir" ; then
15925 CPPFLAGS="$CPPFLAGS -I$includedir"
15927 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15928 echo "$as_me:$LINENO: checking for xmlIO.h" >&5
15929 echo $ECHO_N "checking for xmlIO.h... $ECHO_C" >&6
15930 if test "${ac_cv_header_xmlIO_h+set}" = set; then
15931 echo $ECHO_N "(cached) $ECHO_C" >&6
15933 cat >conftest.$ac_ext <<_ACEOF
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h. */
15939 #include <parser.h>
15943 rm -f conftest.$ac_objext
15944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15945 (eval $ac_compile) 2>conftest.er1
15947 grep -v '^ *+' conftest.er1 >conftest.err
15949 cat conftest.err >&5
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); } &&
15952 { ac_try='test -z "$ac_c_werror_flag"
15953 || test ! -s conftest.err'
15954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955 (eval $ac_try) 2>&5
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; } &&
15959 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15965 ac_cv_header_xmlIO_h=yes
15967 echo "$as_me: failed program was:" >&5
15968 sed 's/^/| /' conftest.$ac_ext >&5
15970 ac_cv_header_xmlIO_h=no
15972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15974 echo "$as_me:$LINENO: result: $ac_cv_header_xmlIO_h" >&5
15975 echo "${ECHO_T}$ac_cv_header_xmlIO_h" >&6
15976 if test $ac_cv_header_xmlIO_h = yes; then
15977 have_xml=yes; have_old_xml=yes
15981 CPPFLAGS="$ac_save_CPPFLAGS"
15984 CPPFLAGS="$ac_save_xml_CPPFLAGS"
15989 if test "$have_xml" = yes; then
15990 # we have the XML headers; now make sure zlib is around.
15991 # yes, it's stupid we have to do this too, but there is
15992 # dependency screwage in Gnome.
15994 ac_save_CPPFLAGS="$CPPFLAGS"
15995 ac_save_LDFLAGS="$LDFLAGS"
15996 # ac_save_LIBS="$LIBS"
15998 if test \! -z "$includedir" ; then
15999 CPPFLAGS="$CPPFLAGS -I$includedir"
16001 # note: $X_CFLAGS includes $x_includes
16002 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16004 if test \! -z "$libdir" ; then
16005 LDFLAGS="$LDFLAGS -L$libdir"
16007 # note: $X_LIBS includes $x_libraries
16008 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16010 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
16011 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
16012 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
16013 echo $ECHO_N "(cached) $ECHO_C" >&6
16015 ac_check_lib_save_LIBS=$LIBS
16017 cat >conftest.$ac_ext <<_ACEOF
16020 cat confdefs.h >>conftest.$ac_ext
16021 cat >>conftest.$ac_ext <<_ACEOF
16022 /* end confdefs.h. */
16024 /* Override any gcc2 internal prototype to avoid an error. */
16028 /* We use char because int might match the return type of a gcc2
16029 builtin and then its argument prototype would still apply. */
16030 char zlibVersion ();
16039 rm -f conftest.$ac_objext conftest$ac_exeext
16040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16041 (eval $ac_link) 2>conftest.er1
16043 grep -v '^ *+' conftest.er1 >conftest.err
16045 cat conftest.err >&5
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); } &&
16048 { ac_try='test -z "$ac_c_werror_flag"
16049 || test ! -s conftest.err'
16050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16051 (eval $ac_try) 2>&5
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); }; } &&
16055 { ac_try='test -s conftest$ac_exeext'
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; }; then
16061 ac_cv_lib_z_zlibVersion=yes
16063 echo "$as_me: failed program was:" >&5
16064 sed 's/^/| /' conftest.$ac_ext >&5
16066 ac_cv_lib_z_zlibVersion=no
16068 rm -f conftest.err conftest.$ac_objext \
16069 conftest$ac_exeext conftest.$ac_ext
16070 LIBS=$ac_check_lib_save_LIBS
16072 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
16073 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
16074 if test $ac_cv_lib_z_zlibVersion = yes; then
16078 CPPFLAGS="$ac_save_CPPFLAGS"
16079 LDFLAGS="$ac_save_LDFLAGS"
16080 # LIBS="$ac_save_LIBS"
16082 if test "$have_zlib" = no; then
16088 if test "$have_xml" = yes; then
16089 # we have the header, now check for the library
16093 ac_save_CPPFLAGS="$CPPFLAGS"
16094 ac_save_LDFLAGS="$LDFLAGS"
16095 # ac_save_LIBS="$LIBS"
16097 if test \! -z "$includedir" ; then
16098 CPPFLAGS="$CPPFLAGS -I$includedir"
16100 # note: $X_CFLAGS includes $x_includes
16101 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16103 if test \! -z "$libdir" ; then
16104 LDFLAGS="$LDFLAGS -L$libdir"
16106 # note: $X_LIBS includes $x_libraries
16107 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16109 echo "$as_me:$LINENO: checking for xmlParseChunk in -lc" >&5
16110 echo $ECHO_N "checking for xmlParseChunk in -lc... $ECHO_C" >&6
16111 if test "${ac_cv_lib_c_xmlParseChunk+set}" = set; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16114 ac_check_lib_save_LIBS=$LIBS
16115 LIBS="-lc $ac_xml_config_libs $LIBS"
16116 cat >conftest.$ac_ext <<_ACEOF
16119 cat confdefs.h >>conftest.$ac_ext
16120 cat >>conftest.$ac_ext <<_ACEOF
16121 /* end confdefs.h. */
16123 /* Override any gcc2 internal prototype to avoid an error. */
16127 /* We use char because int might match the return type of a gcc2
16128 builtin and then its argument prototype would still apply. */
16129 char xmlParseChunk ();
16138 rm -f conftest.$ac_objext conftest$ac_exeext
16139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16140 (eval $ac_link) 2>conftest.er1
16142 grep -v '^ *+' conftest.er1 >conftest.err
16144 cat conftest.err >&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } &&
16147 { ac_try='test -z "$ac_c_werror_flag"
16148 || test ! -s conftest.err'
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; } &&
16154 { ac_try='test -s conftest$ac_exeext'
16155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156 (eval $ac_try) 2>&5
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; }; then
16160 ac_cv_lib_c_xmlParseChunk=yes
16162 echo "$as_me: failed program was:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16165 ac_cv_lib_c_xmlParseChunk=no
16167 rm -f conftest.err conftest.$ac_objext \
16168 conftest$ac_exeext conftest.$ac_ext
16169 LIBS=$ac_check_lib_save_LIBS
16171 echo "$as_me:$LINENO: result: $ac_cv_lib_c_xmlParseChunk" >&5
16172 echo "${ECHO_T}$ac_cv_lib_c_xmlParseChunk" >&6
16173 if test $ac_cv_lib_c_xmlParseChunk = yes; then
16176 XML_LIBS="$ac_xml_config_libs"
16177 cat >>confdefs.h <<\_ACEOF
16185 CPPFLAGS="$ac_save_CPPFLAGS"
16186 LDFLAGS="$ac_save_LDFLAGS"
16187 # LIBS="$ac_save_LIBS"
16191 if test "$have_xml" = yes; then
16192 INCLUDES="$INCLUDES $ac_xml_config_cflags"
16193 GTK_LIBS="$GTK_LIBS $ac_xml_config_libs"
16194 cat >>confdefs.h <<\_ACEOF
16198 if test "$have_old_xml" = yes; then
16199 cat >>confdefs.h <<\_ACEOF
16200 #define HAVE_OLD_XML_HEADERS 1
16209 ###############################################################################
16211 # Checking whether Motif is really Lesstif.
16213 ###############################################################################
16216 if test "$have_motif" = yes ; then
16217 echo "$as_me:$LINENO: checking whether Motif is really LessTif" >&5
16218 echo $ECHO_N "checking whether Motif is really LessTif... $ECHO_C" >&6
16219 if test "${ac_cv_have_lesstif+set}" = set; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16223 ac_save_CPPFLAGS="$CPPFLAGS"
16224 if test \! -z "$includedir" ; then
16225 CPPFLAGS="$CPPFLAGS -I$includedir"
16227 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16228 cat >conftest.$ac_ext <<_ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16238 long vers = LesstifVersion;
16243 rm -f conftest.$ac_objext
16244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16245 (eval $ac_compile) 2>conftest.er1
16247 grep -v '^ *+' conftest.er1 >conftest.err
16249 cat conftest.err >&5
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); } &&
16252 { ac_try='test -z "$ac_c_werror_flag"
16253 || test ! -s conftest.err'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; } &&
16259 { ac_try='test -s conftest.$ac_objext'
16260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16261 (eval $ac_try) 2>&5
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); }; }; then
16265 ac_cv_have_lesstif=yes
16267 echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.$ac_ext >&5
16270 ac_cv_have_lesstif=no
16272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16273 CPPFLAGS="$ac_save_CPPFLAGS"
16275 echo "$as_me:$LINENO: result: $ac_cv_have_lesstif" >&5
16276 echo "${ECHO_T}$ac_cv_have_lesstif" >&6
16277 have_lesstif=$ac_cv_have_lesstif
16281 lesstif_version=unknown
16282 lesstif_version_string=unknown
16284 if test "$have_lesstif" = yes ; then
16286 echo unknown > conftest-lt
16287 echo "$as_me:$LINENO: checking LessTif version number" >&5
16288 echo $ECHO_N "checking LessTif version number... $ECHO_C" >&6
16289 if test "${ac_cv_lesstif_version_string+set}" = set; then
16290 echo $ECHO_N "(cached) $ECHO_C" >&6
16293 ac_save_CPPFLAGS="$CPPFLAGS"
16294 if test \! -z "$includedir" ; then
16295 CPPFLAGS="$CPPFLAGS -I$includedir"
16297 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16298 if test "$cross_compiling" = yes; then
16299 ac_cv_lesstif_version=unknown
16300 ac_cv_lesstif_version_string=unknown
16302 cat >conftest.$ac_ext <<_ACEOF
16305 cat confdefs.h >>conftest.$ac_ext
16306 cat >>conftest.$ac_ext <<_ACEOF
16307 /* end confdefs.h. */
16311 FILE *f = fopen("conftest-lt", "w");
16313 fprintf(f, "%d %d.%d\n", LesstifVersion,
16314 LESSTIF_VERSION, LESSTIF_REVISION);
16319 rm -f conftest$ac_exeext
16320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16321 (eval $ac_link) 2>&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326 (eval $ac_try) 2>&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; }; then
16330 ltv=`cat conftest-lt`
16331 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
16332 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
16334 echo "$as_me: program exited with status $ac_status" >&5
16335 echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.$ac_ext >&5
16338 ( exit $ac_status )
16339 ac_cv_lesstif_version=unknown
16340 ac_cv_lesstif_version_string=unknown
16342 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16344 CPPFLAGS="$ac_save_CPPFLAGS"
16346 echo "$as_me:$LINENO: result: $ac_cv_lesstif_version_string" >&5
16347 echo "${ECHO_T}$ac_cv_lesstif_version_string" >&6
16349 lesstif_version=$ac_cv_lesstif_version
16350 lesstif_version_string=$ac_cv_lesstif_version_string
16355 if test "$have_motif" = yes ; then
16357 echo unknown > conftest-mt
16358 echo "$as_me:$LINENO: checking Motif version number" >&5
16359 echo $ECHO_N "checking Motif version number... $ECHO_C" >&6
16360 if test "${ac_cv_motif_version_string+set}" = set; then
16361 echo $ECHO_N "(cached) $ECHO_C" >&6
16364 ac_save_CPPFLAGS="$CPPFLAGS"
16365 if test \! -z "$includedir" ; then
16366 CPPFLAGS="$CPPFLAGS -I$includedir"
16368 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16369 if test "$cross_compiling" = yes; then
16370 ac_cv_motif_version=unknown
16371 ac_cv_motif_version_string=unknown
16373 cat >conftest.$ac_ext <<_ACEOF
16376 cat confdefs.h >>conftest.$ac_ext
16377 cat >>conftest.$ac_ext <<_ACEOF
16378 /* end confdefs.h. */
16382 FILE *f = fopen("conftest-mt", "w");
16384 fprintf(f, "%d %d.%d\n", XmVersion,
16385 XmVERSION, XmREVISION);
16390 rm -f conftest$ac_exeext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16392 (eval $ac_link) 2>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16397 (eval $ac_try) 2>&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; }; then
16401 mtv=`cat conftest-mt`
16402 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
16403 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
16405 echo "$as_me: program exited with status $ac_status" >&5
16406 echo "$as_me: failed program was:" >&5
16407 sed 's/^/| /' conftest.$ac_ext >&5
16409 ( exit $ac_status )
16410 ac_cv_motif_version=unknown
16411 ac_cv_motif_version_string=unknown
16413 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16415 CPPFLAGS="$ac_save_CPPFLAGS"
16417 echo "$as_me:$LINENO: result: $ac_cv_motif_version_string" >&5
16418 echo "${ECHO_T}$ac_cv_motif_version_string" >&6
16420 motif_version=$ac_cv_motif_version
16421 motif_version_string=$ac_cv_motif_version_string
16426 ###############################################################################
16428 # Checking whether Motif requires -lXpm.
16430 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
16431 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
16432 # of the library whether to build the XPM code into libXm, or whether
16433 # to rely on an external libXm. So the only way to tell whether XPM is
16434 # a link-time requirement is to examine libXm.a, which is very
16435 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
16436 # always link against XPM if the XPM lib exists (and this will be a
16437 # no-op if libXm happens to already have the XPM code in it.)
16439 ###############################################################################
16441 motif_requires_xpm=no
16442 if test "$have_motif" = yes ; then
16443 echo "$as_me:$LINENO: checking whether Motif requires XPM" >&5
16444 echo $ECHO_N "checking whether Motif requires XPM... $ECHO_C" >&6
16445 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
16447 motif_requires_xpm=yes
16448 echo "$as_me:$LINENO: result: maybe" >&5
16449 echo "${ECHO_T}maybe" >&6
16451 echo "$as_me:$LINENO: result: no" >&5
16452 echo "${ECHO_T}no" >&6
16457 ###############################################################################
16459 # Checking whether Motif requires -lXp.
16461 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
16462 # Extension". Why this extension isn't in -lXext with all the others,
16465 ###############################################################################
16468 if test "$have_motif" = yes ; then
16471 ac_save_CPPFLAGS="$CPPFLAGS"
16472 ac_save_LDFLAGS="$LDFLAGS"
16473 # ac_save_LIBS="$LIBS"
16475 if test \! -z "$includedir" ; then
16476 CPPFLAGS="$CPPFLAGS -I$includedir"
16478 # note: $X_CFLAGS includes $x_includes
16479 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16481 if test \! -z "$libdir" ; then
16482 LDFLAGS="$LDFLAGS -L$libdir"
16484 # note: $X_LIBS includes $x_libraries
16485 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16487 echo "$as_me:$LINENO: checking for XpQueryExtension in -lXp" >&5
16488 echo $ECHO_N "checking for XpQueryExtension in -lXp... $ECHO_C" >&6
16489 if test "${ac_cv_lib_Xp_XpQueryExtension+set}" = set; then
16490 echo $ECHO_N "(cached) $ECHO_C" >&6
16492 ac_check_lib_save_LIBS=$LIBS
16493 LIBS="-lXp -lX11 -lXext -lm $LIBS"
16494 cat >conftest.$ac_ext <<_ACEOF
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h. */
16501 /* Override any gcc2 internal prototype to avoid an error. */
16505 /* We use char because int might match the return type of a gcc2
16506 builtin and then its argument prototype would still apply. */
16507 char XpQueryExtension ();
16511 XpQueryExtension ();
16516 rm -f conftest.$ac_objext conftest$ac_exeext
16517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16518 (eval $ac_link) 2>conftest.er1
16520 grep -v '^ *+' conftest.er1 >conftest.err
16522 cat conftest.err >&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } &&
16525 { ac_try='test -z "$ac_c_werror_flag"
16526 || test ! -s conftest.err'
16527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528 (eval $ac_try) 2>&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; } &&
16532 { ac_try='test -s conftest$ac_exeext'
16533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16534 (eval $ac_try) 2>&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; }; then
16538 ac_cv_lib_Xp_XpQueryExtension=yes
16540 echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.$ac_ext >&5
16543 ac_cv_lib_Xp_XpQueryExtension=no
16545 rm -f conftest.err conftest.$ac_objext \
16546 conftest$ac_exeext conftest.$ac_ext
16547 LIBS=$ac_check_lib_save_LIBS
16549 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
16550 echo "${ECHO_T}$ac_cv_lib_Xp_XpQueryExtension" >&6
16551 if test $ac_cv_lib_Xp_XpQueryExtension = yes; then
16552 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
16557 CPPFLAGS="$ac_save_CPPFLAGS"
16558 LDFLAGS="$ac_save_LDFLAGS"
16559 # LIBS="$ac_save_LIBS"
16564 ###############################################################################
16566 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
16568 ###############################################################################
16571 if test "$have_motif" = yes ; then
16573 ac_save_CPPFLAGS="$CPPFLAGS"
16574 ac_save_LDFLAGS="$LDFLAGS"
16575 # ac_save_LIBS="$LIBS"
16577 if test \! -z "$includedir" ; then
16578 CPPFLAGS="$CPPFLAGS -I$includedir"
16580 # note: $X_CFLAGS includes $x_includes
16581 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16583 if test \! -z "$libdir" ; then
16584 LDFLAGS="$LDFLAGS -L$libdir"
16586 # note: $X_LIBS includes $x_libraries
16587 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16589 echo "$as_me:$LINENO: checking for _Xsetlocale in -lXintl" >&5
16590 echo $ECHO_N "checking for _Xsetlocale in -lXintl... $ECHO_C" >&6
16591 if test "${ac_cv_lib_Xintl__Xsetlocale+set}" = set; then
16592 echo $ECHO_N "(cached) $ECHO_C" >&6
16594 ac_check_lib_save_LIBS=$LIBS
16595 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
16596 cat >conftest.$ac_ext <<_ACEOF
16599 cat confdefs.h >>conftest.$ac_ext
16600 cat >>conftest.$ac_ext <<_ACEOF
16601 /* end confdefs.h. */
16603 /* Override any gcc2 internal prototype to avoid an error. */
16607 /* We use char because int might match the return type of a gcc2
16608 builtin and then its argument prototype would still apply. */
16609 char _Xsetlocale ();
16618 rm -f conftest.$ac_objext conftest$ac_exeext
16619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16620 (eval $ac_link) 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_exeext'
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_lib_Xintl__Xsetlocale=yes
16642 echo "$as_me: failed program was:" >&5
16643 sed 's/^/| /' conftest.$ac_ext >&5
16645 ac_cv_lib_Xintl__Xsetlocale=no
16647 rm -f conftest.err conftest.$ac_objext \
16648 conftest$ac_exeext conftest.$ac_ext
16649 LIBS=$ac_check_lib_save_LIBS
16651 echo "$as_me:$LINENO: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
16652 echo "${ECHO_T}$ac_cv_lib_Xintl__Xsetlocale" >&6
16653 if test $ac_cv_lib_Xintl__Xsetlocale = yes; then
16659 CPPFLAGS="$ac_save_CPPFLAGS"
16660 LDFLAGS="$ac_save_LDFLAGS"
16661 # LIBS="$ac_save_LIBS"
16663 if test "$have_xintl" = yes; then
16664 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
16669 ###############################################################################
16671 # Check for -lGL or -lMesaGL.
16673 ###############################################################################
16677 with_gl_req=unspecified
16680 # Check whether --with-gl or --without-gl was given.
16681 if test "${with_gl+set}" = set; then
16683 with_gl="$withval"; with_gl_req="$withval"
16694 echo "$as_me:$LINENO: checking for GL headers" >&5
16695 echo $ECHO_N "checking for GL headers... $ECHO_C" >&6
16697 if test -d $d; then
16698 X_CFLAGS="-I$d $X_CFLAGS"
16699 echo "$as_me:$LINENO: result: $d" >&5
16700 echo "${ECHO_T}$d" >&6
16702 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16703 echo "${ECHO_T}not found ($d: no such directory)" >&6
16706 echo "$as_me:$LINENO: checking for GL libs" >&5
16707 echo $ECHO_N "checking for GL libs... $ECHO_C" >&6
16709 if test -d $d; then
16710 X_LIBS="-L$d $X_LIBS"
16711 echo "$as_me:$LINENO: result: $d" >&5
16712 echo "${ECHO_T}$d" >&6
16714 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16715 echo "${ECHO_T}not found ($d: no such directory)" >&6
16718 # replace the directory string with "yes".
16720 with_gl=$with_gl_req
16725 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
16726 echo " If it is a directory, then \`DIR/include' will be added to"
16727 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16733 ac_mesagl_version=unknown
16734 ac_mesagl_version_string=unknown
16736 if test "$with_gl" = yes; then
16738 ac_save_CPPFLAGS="$CPPFLAGS"
16739 if test \! -z "$includedir" ; then
16740 CPPFLAGS="$CPPFLAGS -I$includedir"
16742 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16743 if test "${ac_cv_header_GL_gl_h+set}" = set; then
16744 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
16745 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
16746 if test "${ac_cv_header_GL_gl_h+set}" = set; then
16747 echo $ECHO_N "(cached) $ECHO_C" >&6
16749 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
16750 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
16752 # Is the header compilable?
16753 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
16754 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
16755 cat >conftest.$ac_ext <<_ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 $ac_includes_default
16764 rm -f conftest.$ac_objext
16765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16766 (eval $ac_compile) 2>conftest.er1
16768 grep -v '^ *+' conftest.er1 >conftest.err
16770 cat conftest.err >&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } &&
16773 { ac_try='test -z "$ac_c_werror_flag"
16774 || test ! -s conftest.err'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; } &&
16780 { ac_try='test -s conftest.$ac_objext'
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; }; then
16786 ac_header_compiler=yes
16788 echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16791 ac_header_compiler=no
16793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16795 echo "${ECHO_T}$ac_header_compiler" >&6
16797 # Is the header present?
16798 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
16799 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
16800 cat >conftest.$ac_ext <<_ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h. */
16808 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16811 grep -v '^ *+' conftest.er1 >conftest.err
16813 cat conftest.err >&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } >/dev/null; then
16816 if test -s conftest.err; then
16817 ac_cpp_err=$ac_c_preproc_warn_flag
16818 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16825 if test -z "$ac_cpp_err"; then
16826 ac_header_preproc=yes
16828 echo "$as_me: failed program was:" >&5
16829 sed 's/^/| /' conftest.$ac_ext >&5
16831 ac_header_preproc=no
16833 rm -f conftest.err conftest.$ac_ext
16834 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16835 echo "${ECHO_T}$ac_header_preproc" >&6
16837 # So? What about this header?
16838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16840 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16841 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16842 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
16843 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
16844 ac_header_preproc=yes
16847 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
16848 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
16849 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
16850 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
16851 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
16852 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
16853 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
16854 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16855 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
16856 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
16857 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
16858 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
16861 ## ------------------------------------------ ##
16862 ## Report this to the AC_PACKAGE_NAME lists. ##
16863 ## ------------------------------------------ ##
16866 sed "s/^/$as_me: WARNING: /" >&2
16869 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
16870 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
16871 if test "${ac_cv_header_GL_gl_h+set}" = set; then
16872 echo $ECHO_N "(cached) $ECHO_C" >&6
16874 ac_cv_header_GL_gl_h=$ac_header_preproc
16876 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
16877 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
16880 if test $ac_cv_header_GL_gl_h = yes; then
16887 CPPFLAGS="$ac_save_CPPFLAGS"
16888 if test "$have_gl" = yes ; then
16890 ac_save_CPPFLAGS="$CPPFLAGS"
16891 if test \! -z "$includedir" ; then
16892 CPPFLAGS="$CPPFLAGS -I$includedir"
16894 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16895 echo "$as_me:$LINENO: checking for GL/glx.h" >&5
16896 echo $ECHO_N "checking for GL/glx.h... $ECHO_C" >&6
16897 if test "${ac_cv_header_GL_glx_h+set}" = set; then
16898 echo $ECHO_N "(cached) $ECHO_C" >&6
16900 cat >conftest.$ac_ext <<_ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16908 #include <GL/glx.h>
16910 rm -f conftest.$ac_objext
16911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16912 (eval $ac_compile) 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_objext'
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_header_GL_glx_h=yes
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16937 ac_cv_header_GL_glx_h=no
16939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16941 echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5
16942 echo "${ECHO_T}$ac_cv_header_GL_glx_h" >&6
16943 if test $ac_cv_header_GL_glx_h = yes; then
16950 CPPFLAGS="$ac_save_CPPFLAGS"
16953 # If we have the headers, try and figure out which vendor it's from.
16955 if test "$have_gl" = yes ; then
16957 # We need to know whether it's MesaGL so that we know which libraries
16960 echo "$as_me:$LINENO: checking whether GL is really MesaGL" >&5
16961 echo $ECHO_N "checking whether GL is really MesaGL... $ECHO_C" >&6
16962 if test "${ac_cv_have_mesa_gl+set}" = set; then
16963 echo $ECHO_N "(cached) $ECHO_C" >&6
16965 ac_cv_have_mesa_gl=no
16967 ac_save_CPPFLAGS="$CPPFLAGS"
16968 if test \! -z "$includedir" ; then
16969 CPPFLAGS="$CPPFLAGS -I$includedir"
16971 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16972 cat >conftest.$ac_ext <<_ACEOF
16975 cat confdefs.h >>conftest.$ac_ext
16976 cat >>conftest.$ac_ext <<_ACEOF
16977 /* end confdefs.h. */
16978 #include <GL/glx.h>
16981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16982 $EGREP "Mesa|MESA" >/dev/null 2>&1; then
16983 ac_cv_have_mesa_gl=yes
16987 CPPFLAGS="$ac_save_CPPFLAGS"
16990 echo "$as_me:$LINENO: result: $ac_cv_have_mesa_gl" >&5
16991 echo "${ECHO_T}$ac_cv_have_mesa_gl" >&6
16992 ac_have_mesa_gl=$ac_cv_have_mesa_gl
16999 # Some versions of MesaGL are compiled to require -lpthread.
17000 # So if the Mesa headers exist, and -lpthread exists, then always
17001 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
17003 if test "$ac_have_mesa_gl" = yes; then
17004 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17005 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17006 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17007 echo $ECHO_N "(cached) $ECHO_C" >&6
17009 ac_check_lib_save_LIBS=$LIBS
17010 LIBS="-lpthread $LIBS"
17011 cat >conftest.$ac_ext <<_ACEOF
17014 cat confdefs.h >>conftest.$ac_ext
17015 cat >>conftest.$ac_ext <<_ACEOF
17016 /* end confdefs.h. */
17018 /* Override any gcc2 internal prototype to avoid an error. */
17022 /* We use char because int might match the return type of a gcc2
17023 builtin and then its argument prototype would still apply. */
17024 char pthread_create ();
17033 rm -f conftest.$ac_objext conftest$ac_exeext
17034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17035 (eval $ac_link) 2>conftest.er1
17037 grep -v '^ *+' conftest.er1 >conftest.err
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try='test -z "$ac_c_werror_flag"
17043 || test ! -s conftest.err'
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try='test -s conftest$ac_exeext'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; }; then
17055 ac_cv_lib_pthread_pthread_create=yes
17057 echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17060 ac_cv_lib_pthread_pthread_create=no
17062 rm -f conftest.err conftest.$ac_objext \
17063 conftest$ac_exeext conftest.$ac_ext
17064 LIBS=$ac_check_lib_save_LIBS
17066 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17067 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17068 if test $ac_cv_lib_pthread_pthread_create = yes; then
17069 GL_LIBS="-lpthread"
17075 # If we have Mesa headers, check to see if we can link against -lMesaGL.
17076 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
17077 # Else, warn that GL is busted. (We have the headers, but no libs.)
17080 if test "$ac_have_mesa_gl" = yes ; then
17082 ac_save_CPPFLAGS="$CPPFLAGS"
17083 ac_save_LDFLAGS="$LDFLAGS"
17084 # ac_save_LIBS="$LIBS"
17086 if test \! -z "$includedir" ; then
17087 CPPFLAGS="$CPPFLAGS -I$includedir"
17089 # note: $X_CFLAGS includes $x_includes
17090 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17092 if test \! -z "$libdir" ; then
17093 LDFLAGS="$LDFLAGS -L$libdir"
17095 # note: $X_LIBS includes $x_libraries
17096 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17098 echo "$as_me:$LINENO: checking for glXCreateContext in -lMesaGL" >&5
17099 echo $ECHO_N "checking for glXCreateContext in -lMesaGL... $ECHO_C" >&6
17100 if test "${ac_cv_lib_MesaGL_glXCreateContext+set}" = set; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17103 ac_check_lib_save_LIBS=$LIBS
17104 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
17105 cat >conftest.$ac_ext <<_ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17112 /* Override any gcc2 internal prototype to avoid an error. */
17116 /* We use char because int might match the return type of a gcc2
17117 builtin and then its argument prototype would still apply. */
17118 char glXCreateContext ();
17122 glXCreateContext ();
17127 rm -f conftest.$ac_objext conftest$ac_exeext
17128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17129 (eval $ac_link) 2>conftest.er1
17131 grep -v '^ *+' conftest.er1 >conftest.err
17133 cat conftest.err >&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); } &&
17136 { ac_try='test -z "$ac_c_werror_flag"
17137 || test ! -s conftest.err'
17138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17139 (eval $ac_try) 2>&5
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; } &&
17143 { ac_try='test -s conftest$ac_exeext'
17144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17145 (eval $ac_try) 2>&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); }; }; then
17149 ac_cv_lib_MesaGL_glXCreateContext=yes
17151 echo "$as_me: failed program was:" >&5
17152 sed 's/^/| /' conftest.$ac_ext >&5
17154 ac_cv_lib_MesaGL_glXCreateContext=no
17156 rm -f conftest.err conftest.$ac_objext \
17157 conftest$ac_exeext conftest.$ac_ext
17158 LIBS=$ac_check_lib_save_LIBS
17160 echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
17161 echo "${ECHO_T}$ac_cv_lib_MesaGL_glXCreateContext" >&6
17162 if test $ac_cv_lib_MesaGL_glXCreateContext = yes; then
17164 GL_LIBS="-lMesaGL -lMesaGLU $VIDMODE_LIBS $GL_LIBS"
17167 CPPFLAGS="$ac_save_CPPFLAGS"
17168 LDFLAGS="$ac_save_LDFLAGS"
17169 # LIBS="$ac_save_LIBS"
17173 if test "$gl_lib_1" = "" ; then
17175 ac_save_CPPFLAGS="$CPPFLAGS"
17176 ac_save_LDFLAGS="$LDFLAGS"
17177 # ac_save_LIBS="$LIBS"
17179 if test \! -z "$includedir" ; then
17180 CPPFLAGS="$CPPFLAGS -I$includedir"
17182 # note: $X_CFLAGS includes $x_includes
17183 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17185 if test \! -z "$libdir" ; then
17186 LDFLAGS="$LDFLAGS -L$libdir"
17188 # note: $X_LIBS includes $x_libraries
17189 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17191 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
17192 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
17193 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
17194 echo $ECHO_N "(cached) $ECHO_C" >&6
17196 ac_check_lib_save_LIBS=$LIBS
17197 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
17198 cat >conftest.$ac_ext <<_ACEOF
17201 cat confdefs.h >>conftest.$ac_ext
17202 cat >>conftest.$ac_ext <<_ACEOF
17203 /* end confdefs.h. */
17205 /* Override any gcc2 internal prototype to avoid an error. */
17209 /* We use char because int might match the return type of a gcc2
17210 builtin and then its argument prototype would still apply. */
17211 char glXCreateContext ();
17215 glXCreateContext ();
17220 rm -f conftest.$ac_objext conftest$ac_exeext
17221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17222 (eval $ac_link) 2>conftest.er1
17224 grep -v '^ *+' conftest.er1 >conftest.err
17226 cat conftest.err >&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } &&
17229 { ac_try='test -z "$ac_c_werror_flag"
17230 || test ! -s conftest.err'
17231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; } &&
17236 { ac_try='test -s conftest$ac_exeext'
17237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238 (eval $ac_try) 2>&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 ac_cv_lib_GL_glXCreateContext=yes
17244 echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17247 ac_cv_lib_GL_glXCreateContext=no
17249 rm -f conftest.err conftest.$ac_objext \
17250 conftest$ac_exeext conftest.$ac_ext
17251 LIBS=$ac_check_lib_save_LIBS
17253 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
17254 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
17255 if test $ac_cv_lib_GL_glXCreateContext = yes; then
17257 GL_LIBS="-lGL -lGLU $VIDMODE_LIBS $GL_LIBS"
17260 CPPFLAGS="$ac_save_CPPFLAGS"
17261 LDFLAGS="$ac_save_LDFLAGS"
17262 # LIBS="$ac_save_LIBS"
17266 if test "$gl_lib_1" = "" ; then
17267 # we have headers, but no libs -- bail.
17272 # linking works -- we can build the GL hacks.
17273 cat >>confdefs.h <<\_ACEOF
17277 if test "$ac_have_mesa_gl" = yes ; then
17278 cat >>confdefs.h <<\_ACEOF
17279 #define HAVE_MESA_GL 1
17287 # Now that we know we have GL headers and libs, do some more GL testing.
17290 if test "$have_gl" = yes ; then
17291 # If it's MesaGL, we'd like to issue a warning if the version number
17292 # is less than or equal to 2.6, because that version had a security bug.
17294 if test "$ac_have_mesa_gl" = yes; then
17296 echo "$as_me:$LINENO: checking MesaGL version number" >&5
17297 echo $ECHO_N "checking MesaGL version number... $ECHO_C" >&6
17298 if test "${ac_cv_mesagl_version_string+set}" = set; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17301 cat > conftest.$ac_ext <<EOF
17302 #line 17308 "configure"
17303 #include "confdefs.h"
17305 #ifndef MESA_MAJOR_VERSION
17306 # include <GL/xmesa.h>
17307 # ifdef XMESA_MAJOR_VERSION
17308 /* Around Mesa 3.2, they took out the Mesa version number, so instead,
17309 we have to check the XMesa version number (the number of the X protocol
17310 support, which seems to be the same as the Mesa version number.)
17312 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
17313 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
17315 /* Oh great. Some time after 3.4, they took out the xmesa.h header file,
17316 so we have no way of telling what version of Mesa this is at all.
17317 So, we'll guess that the osmesa version (the "offscreen protocol")
17318 is less than or equal to the real mesa version number. Except that
17319 if OSmesa is 3.3, assume at least Mesa 3.4, since OSmesa was 3.3 in
17320 Mesa 3.4. And Mesa 3.3 had xmesa.h. What a complete load of shit!
17322 # include <GL/osmesa.h>
17323 # define MESA_MAJOR_VERSION OSMESA_MAJOR_VERSION
17324 # define MESA_MINOR_VERSION OSMESA_MINOR_VERSION or newer, probably?
17325 # if OSMESA_MAJOR_VERSION == 3 && OSMESA_MINOR_VERSION == 3
17326 # undef MESA_MINOR_VERSION
17327 # define MESA_MINOR_VERSION 4 or newer, probably?
17331 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
17334 ac_save_CPPFLAGS="$CPPFLAGS"
17335 if test \! -z "$includedir" ; then
17336 CPPFLAGS="$CPPFLAGS -I$includedir"
17338 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17340 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | grep configure:`
17344 mglv=`echo "$mglv" | sed -n \
17345 's/^configure: *\([0-9][0-9]*\) *\([0-9].*\)$/\1.\2/p'`
17348 rm -f conftest.$ac_ext
17350 CPPFLAGS="$ac_save_CPPFLAGS"
17352 if test "$mglv" = ""; then
17353 ac_mesagl_version=unknown
17354 ac_mesagl_version_string=unknown
17356 ac_mesagl_version_string="$mglv"
17359 maj=`echo "$mglv" | sed -n 's/^\([0-9][0-9]*\)\..*$/\1/p'`
17360 min=`echo "$mglv" | sed -n 's/^.*\.\([0-9][0-9]*\).*$/\1/p'`
17362 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
17363 if test -z "$ac_mesagl_version"; then
17364 ac_mesagl_version=unknown
17365 ac_mesagl_version_string=unknown
17368 ac_cv_mesagl_version=$ac_mesagl_version
17369 ac_cv_mesagl_version_string=$ac_mesagl_version_string
17372 echo "$as_me:$LINENO: result: $ac_cv_mesagl_version_string" >&5
17373 echo "${ECHO_T}$ac_cv_mesagl_version_string" >&6
17374 ac_mesagl_version=$ac_cv_mesagl_version
17375 ac_mesagl_version_string=$ac_cv_mesagl_version_string
17379 # Check for OpenGL 1.1 features.
17382 ac_save_CPPFLAGS="$CPPFLAGS"
17383 ac_save_LDFLAGS="$LDFLAGS"
17384 # ac_save_LIBS="$LIBS"
17386 if test \! -z "$includedir" ; then
17387 CPPFLAGS="$CPPFLAGS -I$includedir"
17389 # note: $X_CFLAGS includes $x_includes
17390 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17392 if test \! -z "$libdir" ; then
17393 LDFLAGS="$LDFLAGS -L$libdir"
17395 # note: $X_LIBS includes $x_libraries
17396 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17398 as_ac_Lib=`echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
17399 echo "$as_me:$LINENO: checking for glBindTexture in -l$gl_lib_1" >&5
17400 echo $ECHO_N "checking for glBindTexture in -l$gl_lib_1... $ECHO_C" >&6
17401 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
17402 echo $ECHO_N "(cached) $ECHO_C" >&6
17404 ac_check_lib_save_LIBS=$LIBS
17405 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
17406 cat >conftest.$ac_ext <<_ACEOF
17409 cat confdefs.h >>conftest.$ac_ext
17410 cat >>conftest.$ac_ext <<_ACEOF
17411 /* end confdefs.h. */
17413 /* Override any gcc2 internal prototype to avoid an error. */
17417 /* We use char because int might match the return type of a gcc2
17418 builtin and then its argument prototype would still apply. */
17419 char glBindTexture ();
17428 rm -f conftest.$ac_objext conftest$ac_exeext
17429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17430 (eval $ac_link) 2>conftest.er1
17432 grep -v '^ *+' conftest.er1 >conftest.err
17434 cat conftest.err >&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } &&
17437 { ac_try='test -z "$ac_c_werror_flag"
17438 || test ! -s conftest.err'
17439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17440 (eval $ac_try) 2>&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); }; } &&
17444 { ac_try='test -s conftest$ac_exeext'
17445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17446 (eval $ac_try) 2>&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); }; }; then
17450 eval "$as_ac_Lib=yes"
17452 echo "$as_me: failed program was:" >&5
17453 sed 's/^/| /' conftest.$ac_ext >&5
17455 eval "$as_ac_Lib=no"
17457 rm -f conftest.err conftest.$ac_objext \
17458 conftest$ac_exeext conftest.$ac_ext
17459 LIBS=$ac_check_lib_save_LIBS
17461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
17462 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
17463 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
17464 cat >>confdefs.h <<\_ACEOF
17465 #define HAVE_GLBINDTEXTURE 1
17472 CPPFLAGS="$ac_save_CPPFLAGS"
17473 LDFLAGS="$ac_save_LDFLAGS"
17474 # LIBS="$ac_save_LIBS"
17478 elif test "$with_gl" != no; then
17479 echo "error: must be yes or no: --with-gl=$with_gl"
17484 ###############################################################################
17488 ###############################################################################
17491 with_gle_req=unspecified
17494 # Check whether --with-gle or --without-gle was given.
17495 if test "${with_gle+set}" = set; then
17496 withval="$with_gle"
17497 with_gle="$withval"; with_gle_req="$withval"
17503 case "$with_gle" in
17508 echo "$as_me:$LINENO: checking for GLE headers" >&5
17509 echo $ECHO_N "checking for GLE headers... $ECHO_C" >&6
17510 d=$with_gle/include
17511 if test -d $d; then
17512 X_CFLAGS="-I$d $X_CFLAGS"
17513 echo "$as_me:$LINENO: result: $d" >&5
17514 echo "${ECHO_T}$d" >&6
17516 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17517 echo "${ECHO_T}not found ($d: no such directory)" >&6
17520 echo "$as_me:$LINENO: checking for GLE libs" >&5
17521 echo $ECHO_N "checking for GLE libs... $ECHO_C" >&6
17523 if test -d $d; then
17524 X_LIBS="-L$d $X_LIBS"
17525 echo "$as_me:$LINENO: result: $d" >&5
17526 echo "${ECHO_T}$d" >&6
17528 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17529 echo "${ECHO_T}not found ($d: no such directory)" >&6
17532 # replace the directory string with "yes".
17534 with_gle=$with_gle_req
17539 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
17540 echo " If it is a directory, then \`DIR/include' will be added to"
17541 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17549 if test "$have_gl" = no ; then
17551 elif test "$with_gle" = yes; then
17554 ac_save_CPPFLAGS="$CPPFLAGS"
17555 if test \! -z "$includedir" ; then
17556 CPPFLAGS="$CPPFLAGS -I$includedir"
17558 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17559 echo "$as_me:$LINENO: checking for GL/gle.h" >&5
17560 echo $ECHO_N "checking for GL/gle.h... $ECHO_C" >&6
17561 if test "${ac_cv_header_GL_gle_h+set}" = set; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17564 cat >conftest.$ac_ext <<_ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17572 #include <GL/gle.h>
17574 rm -f conftest.$ac_objext
17575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17576 (eval $ac_compile) 2>conftest.er1
17578 grep -v '^ *+' conftest.er1 >conftest.err
17580 cat conftest.err >&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); } &&
17583 { ac_try='test -z "$ac_c_werror_flag"
17584 || test ! -s conftest.err'
17585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17586 (eval $ac_try) 2>&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); }; } &&
17590 { ac_try='test -s conftest.$ac_objext'
17591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592 (eval $ac_try) 2>&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; }; then
17596 ac_cv_header_GL_gle_h=yes
17598 echo "$as_me: failed program was:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17601 ac_cv_header_GL_gle_h=no
17603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17605 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gle_h" >&5
17606 echo "${ECHO_T}$ac_cv_header_GL_gle_h" >&6
17607 if test $ac_cv_header_GL_gle_h = yes; then
17614 CPPFLAGS="$ac_save_CPPFLAGS"
17615 if test "$have_gle3" = yes ; then
17619 ac_save_CPPFLAGS="$CPPFLAGS"
17620 if test \! -z "$includedir" ; then
17621 CPPFLAGS="$CPPFLAGS -I$includedir"
17623 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17624 echo "$as_me:$LINENO: checking for GL/gutil.h" >&5
17625 echo $ECHO_N "checking for GL/gutil.h... $ECHO_C" >&6
17626 if test "${ac_cv_header_GL_gutil_h+set}" = set; then
17627 echo $ECHO_N "(cached) $ECHO_C" >&6
17629 cat >conftest.$ac_ext <<_ACEOF
17632 cat confdefs.h >>conftest.$ac_ext
17633 cat >>conftest.$ac_ext <<_ACEOF
17634 /* end confdefs.h. */
17637 #include <GL/gutil.h>
17639 rm -f conftest.$ac_objext
17640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17641 (eval $ac_compile) 2>conftest.er1
17643 grep -v '^ *+' conftest.er1 >conftest.err
17645 cat conftest.err >&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); } &&
17648 { ac_try='test -z "$ac_c_werror_flag"
17649 || test ! -s conftest.err'
17650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651 (eval $ac_try) 2>&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; } &&
17655 { ac_try='test -s conftest.$ac_objext'
17656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657 (eval $ac_try) 2>&5
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; }; then
17661 ac_cv_header_GL_gutil_h=yes
17663 echo "$as_me: failed program was:" >&5
17664 sed 's/^/| /' conftest.$ac_ext >&5
17666 ac_cv_header_GL_gutil_h=no
17668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17670 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gutil_h" >&5
17671 echo "${ECHO_T}$ac_cv_header_GL_gutil_h" >&6
17672 if test $ac_cv_header_GL_gutil_h = yes; then
17679 CPPFLAGS="$ac_save_CPPFLAGS"
17680 if test "$have_gle" = yes ; then
17682 ac_save_CPPFLAGS="$CPPFLAGS"
17683 if test \! -z "$includedir" ; then
17684 CPPFLAGS="$CPPFLAGS -I$includedir"
17686 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17687 echo "$as_me:$LINENO: checking for GL/tube.h" >&5
17688 echo $ECHO_N "checking for GL/tube.h... $ECHO_C" >&6
17689 if test "${ac_cv_header_GL_tube_h+set}" = set; then
17690 echo $ECHO_N "(cached) $ECHO_C" >&6
17692 cat >conftest.$ac_ext <<_ACEOF
17695 cat confdefs.h >>conftest.$ac_ext
17696 cat >>conftest.$ac_ext <<_ACEOF
17697 /* end confdefs.h. */
17700 #include <GL/tube.h>
17702 rm -f conftest.$ac_objext
17703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17704 (eval $ac_compile) 2>conftest.er1
17706 grep -v '^ *+' conftest.er1 >conftest.err
17708 cat conftest.err >&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); } &&
17711 { ac_try='test -z "$ac_c_werror_flag"
17712 || test ! -s conftest.err'
17713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714 (eval $ac_try) 2>&5
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); }; } &&
17718 { ac_try='test -s conftest.$ac_objext'
17719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720 (eval $ac_try) 2>&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); }; }; then
17724 ac_cv_header_GL_tube_h=yes
17726 echo "$as_me: failed program was:" >&5
17727 sed 's/^/| /' conftest.$ac_ext >&5
17729 ac_cv_header_GL_tube_h=no
17731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17733 echo "$as_me:$LINENO: result: $ac_cv_header_GL_tube_h" >&5
17734 echo "${ECHO_T}$ac_cv_header_GL_tube_h" >&6
17735 if test $ac_cv_header_GL_tube_h = yes; then
17742 CPPFLAGS="$ac_save_CPPFLAGS"
17746 if test "$have_gle" = yes ; then
17750 ac_save_CPPFLAGS="$CPPFLAGS"
17751 ac_save_LDFLAGS="$LDFLAGS"
17752 # ac_save_LIBS="$LIBS"
17754 if test \! -z "$includedir" ; then
17755 CPPFLAGS="$CPPFLAGS -I$includedir"
17757 # note: $X_CFLAGS includes $x_includes
17758 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17760 if test \! -z "$libdir" ; then
17761 LDFLAGS="$LDFLAGS -L$libdir"
17763 # note: $X_LIBS includes $x_libraries
17764 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17766 echo "$as_me:$LINENO: checking for gleCreateGC in -lgle" >&5
17767 echo $ECHO_N "checking for gleCreateGC in -lgle... $ECHO_C" >&6
17768 if test "${ac_cv_lib_gle_gleCreateGC+set}" = set; then
17769 echo $ECHO_N "(cached) $ECHO_C" >&6
17771 ac_check_lib_save_LIBS=$LIBS
17772 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
17773 cat >conftest.$ac_ext <<_ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h. */
17780 /* Override any gcc2 internal prototype to avoid an error. */
17784 /* We use char because int might match the return type of a gcc2
17785 builtin and then its argument prototype would still apply. */
17786 char gleCreateGC ();
17795 rm -f conftest.$ac_objext conftest$ac_exeext
17796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17797 (eval $ac_link) 2>conftest.er1
17799 grep -v '^ *+' conftest.er1 >conftest.err
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } &&
17804 { ac_try='test -z "$ac_c_werror_flag"
17805 || test ! -s conftest.err'
17806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17807 (eval $ac_try) 2>&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); }; } &&
17811 { ac_try='test -s conftest$ac_exeext'
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; }; then
17817 ac_cv_lib_gle_gleCreateGC=yes
17819 echo "$as_me: failed program was:" >&5
17820 sed 's/^/| /' conftest.$ac_ext >&5
17822 ac_cv_lib_gle_gleCreateGC=no
17824 rm -f conftest.err conftest.$ac_objext \
17825 conftest$ac_exeext conftest.$ac_ext
17826 LIBS=$ac_check_lib_save_LIBS
17828 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_gleCreateGC" >&5
17829 echo "${ECHO_T}$ac_cv_lib_gle_gleCreateGC" >&6
17830 if test $ac_cv_lib_gle_gleCreateGC = yes; then
17831 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
17834 CPPFLAGS="$ac_save_CPPFLAGS"
17835 LDFLAGS="$ac_save_LDFLAGS"
17836 # LIBS="$ac_save_LIBS"
17839 if test "$have_gle" = yes ; then
17843 # sometimes the libmatrix stuff is included in libgle. look there first.
17845 # I don't get it. For some reason, this test passes on SGI, as if
17846 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
17847 # Yet the link is succeeding. Why???
17849 # AC_CHECK_X_LIB(gle, uview_direction_d,
17850 # [have_gle=yes; gle_halfassed=no],
17851 # [], $GL_LIBS -lX11 -lXext -lm)
17853 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
17855 if test "$have_gle3" = yes ; then
17857 ac_save_CPPFLAGS="$CPPFLAGS"
17858 ac_save_LDFLAGS="$LDFLAGS"
17859 # ac_save_LIBS="$LIBS"
17861 if test \! -z "$includedir" ; then
17862 CPPFLAGS="$CPPFLAGS -I$includedir"
17864 # note: $X_CFLAGS includes $x_includes
17865 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17867 if test \! -z "$libdir" ; then
17868 LDFLAGS="$LDFLAGS -L$libdir"
17870 # note: $X_LIBS includes $x_libraries
17871 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17873 echo "$as_me:$LINENO: checking for uview_direction in -lgle" >&5
17874 echo $ECHO_N "checking for uview_direction in -lgle... $ECHO_C" >&6
17875 if test "${ac_cv_lib_gle_uview_direction+set}" = set; then
17876 echo $ECHO_N "(cached) $ECHO_C" >&6
17878 ac_check_lib_save_LIBS=$LIBS
17879 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
17880 cat >conftest.$ac_ext <<_ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17887 /* Override any gcc2 internal prototype to avoid an error. */
17891 /* We use char because int might match the return type of a gcc2
17892 builtin and then its argument prototype would still apply. */
17893 char uview_direction ();
17897 uview_direction ();
17902 rm -f conftest.$ac_objext conftest$ac_exeext
17903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17904 (eval $ac_link) 2>conftest.er1
17906 grep -v '^ *+' conftest.er1 >conftest.err
17908 cat conftest.err >&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); } &&
17911 { ac_try='test -z "$ac_c_werror_flag"
17912 || test ! -s conftest.err'
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; } &&
17918 { ac_try='test -s conftest$ac_exeext'
17919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17920 (eval $ac_try) 2>&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); }; }; then
17924 ac_cv_lib_gle_uview_direction=yes
17926 echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17929 ac_cv_lib_gle_uview_direction=no
17931 rm -f conftest.err conftest.$ac_objext \
17932 conftest$ac_exeext conftest.$ac_ext
17933 LIBS=$ac_check_lib_save_LIBS
17935 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_uview_direction" >&5
17936 echo "${ECHO_T}$ac_cv_lib_gle_uview_direction" >&6
17937 if test $ac_cv_lib_gle_uview_direction = yes; then
17938 have_gle=yes; gle_halfassed=no
17941 CPPFLAGS="$ac_save_CPPFLAGS"
17942 LDFLAGS="$ac_save_LDFLAGS"
17943 # LIBS="$ac_save_LIBS"
17946 # if it wasn't in libgle, then look in libmatrix.
17947 if test "$have_gle" = no ; then
17949 ac_save_CPPFLAGS="$CPPFLAGS"
17950 ac_save_LDFLAGS="$LDFLAGS"
17951 # ac_save_LIBS="$LIBS"
17953 if test \! -z "$includedir" ; then
17954 CPPFLAGS="$CPPFLAGS -I$includedir"
17956 # note: $X_CFLAGS includes $x_includes
17957 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17959 if test \! -z "$libdir" ; then
17960 LDFLAGS="$LDFLAGS -L$libdir"
17962 # note: $X_LIBS includes $x_libraries
17963 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17965 echo "$as_me:$LINENO: checking for uview_direction_d in -lmatrix" >&5
17966 echo $ECHO_N "checking for uview_direction_d in -lmatrix... $ECHO_C" >&6
17967 if test "${ac_cv_lib_matrix_uview_direction_d+set}" = set; then
17968 echo $ECHO_N "(cached) $ECHO_C" >&6
17970 ac_check_lib_save_LIBS=$LIBS
17971 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
17972 cat >conftest.$ac_ext <<_ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h. */
17979 /* Override any gcc2 internal prototype to avoid an error. */
17983 /* We use char because int might match the return type of a gcc2
17984 builtin and then its argument prototype would still apply. */
17985 char uview_direction_d ();
17989 uview_direction_d ();
17994 rm -f conftest.$ac_objext conftest$ac_exeext
17995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996 (eval $ac_link) 2>conftest.er1
17998 grep -v '^ *+' conftest.er1 >conftest.err
18000 cat conftest.err >&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } &&
18003 { ac_try='test -z "$ac_c_werror_flag"
18004 || test ! -s conftest.err'
18005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006 (eval $ac_try) 2>&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; } &&
18010 { ac_try='test -s conftest$ac_exeext'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; }; then
18016 ac_cv_lib_matrix_uview_direction_d=yes
18018 echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18021 ac_cv_lib_matrix_uview_direction_d=no
18023 rm -f conftest.err conftest.$ac_objext \
18024 conftest$ac_exeext conftest.$ac_ext
18025 LIBS=$ac_check_lib_save_LIBS
18027 echo "$as_me:$LINENO: result: $ac_cv_lib_matrix_uview_direction_d" >&5
18028 echo "${ECHO_T}$ac_cv_lib_matrix_uview_direction_d" >&6
18029 if test $ac_cv_lib_matrix_uview_direction_d = yes; then
18030 have_gle=yes; gle_halfassed=no;
18031 GLE_LIBS="$GLE_LIBS -lmatrix"
18034 CPPFLAGS="$ac_save_CPPFLAGS"
18035 LDFLAGS="$ac_save_LDFLAGS"
18036 # LIBS="$ac_save_LIBS"
18041 if test "$have_gle" = yes ; then
18042 cat >>confdefs.h <<\_ACEOF
18046 if test "$have_gle3" = yes ; then
18047 cat >>confdefs.h <<\_ACEOF
18048 #define HAVE_GLE3 1
18054 elif test "$with_gle" != no; then
18055 echo "error: must be yes or no: --with-gle=$with_gle"
18062 ###############################################################################
18066 ###############################################################################
18069 with_xpm_req=unspecified
18071 # Check whether --with-xpm or --without-xpm was given.
18072 if test "${with_xpm+set}" = set; then
18073 withval="$with_xpm"
18074 with_xpm="$withval"; with_xpm_req="$withval"
18080 case "$with_xpm" in
18085 echo "$as_me:$LINENO: checking for XPM headers" >&5
18086 echo $ECHO_N "checking for XPM headers... $ECHO_C" >&6
18087 d=$with_xpm/include
18088 if test -d $d; then
18089 X_CFLAGS="-I$d $X_CFLAGS"
18090 echo "$as_me:$LINENO: result: $d" >&5
18091 echo "${ECHO_T}$d" >&6
18093 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18094 echo "${ECHO_T}not found ($d: no such directory)" >&6
18097 echo "$as_me:$LINENO: checking for XPM libs" >&5
18098 echo $ECHO_N "checking for XPM libs... $ECHO_C" >&6
18100 if test -d $d; then
18101 X_LIBS="-L$d $X_LIBS"
18102 echo "$as_me:$LINENO: result: $d" >&5
18103 echo "${ECHO_T}$d" >&6
18105 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18106 echo "${ECHO_T}not found ($d: no such directory)" >&6
18109 # replace the directory string with "yes".
18111 with_xpm=$with_xpm_req
18116 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
18117 echo " If it is a directory, then \`DIR/include' will be added to"
18118 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18124 if test "$with_xpm" = yes; then
18126 ac_save_CPPFLAGS="$CPPFLAGS"
18127 if test \! -z "$includedir" ; then
18128 CPPFLAGS="$CPPFLAGS -I$includedir"
18130 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18131 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
18132 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
18133 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
18134 echo $ECHO_N "(cached) $ECHO_C" >&6
18136 cat >conftest.$ac_ext <<_ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h. */
18142 #include <X11/Xlib.h>
18144 #include <X11/xpm.h>
18146 rm -f conftest.$ac_objext
18147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18148 (eval $ac_compile) 2>conftest.er1
18150 grep -v '^ *+' conftest.er1 >conftest.err
18152 cat conftest.err >&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); } &&
18155 { ac_try='test -z "$ac_c_werror_flag"
18156 || test ! -s conftest.err'
18157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158 (eval $ac_try) 2>&5
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; } &&
18162 { ac_try='test -s conftest.$ac_objext'
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; }; then
18168 ac_cv_header_X11_xpm_h=yes
18170 echo "$as_me: failed program was:" >&5
18171 sed 's/^/| /' conftest.$ac_ext >&5
18173 ac_cv_header_X11_xpm_h=no
18175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18177 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
18178 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
18179 if test $ac_cv_header_X11_xpm_h = yes; then
18181 cat >>confdefs.h <<\_ACEOF
18189 CPPFLAGS="$ac_save_CPPFLAGS"
18190 elif test "$with_xpm" != no; then
18191 echo "error: must be yes or no: --with-xpm=$with_xpm"
18195 # See comment near $motif_requires_xpm, above.
18196 # Need to do this here, after both Motif and XPM have been checked for.
18198 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
18199 if test "$motif_requires_xpm" = yes ; then
18200 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
18204 ###############################################################################
18206 # Check for -lgdk_pixbuf.
18208 ###############################################################################
18211 with_gdk_pixbuf_req=unspecified
18213 # Check whether --with-pixbuf or --without-pixbuf was given.
18214 if test "${with_pixbuf+set}" = set; then
18215 withval="$with_pixbuf"
18216 with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
18218 with_gdk_pixbuf=yes
18221 # if --with-pixbuf=/directory/ was specified, remember that directory so that
18222 # we can also look for the `gdk-pixbuf-config' program in that directory.
18223 case "$with_gdk_pixbuf" in
18225 gdk_pixbuf_dir="$with_gdk_pixbuf"
18233 case "$with_gdk_pixbuf" in
18238 echo "$as_me:$LINENO: checking for GDK_PIXBUF headers" >&5
18239 echo $ECHO_N "checking for GDK_PIXBUF headers... $ECHO_C" >&6
18240 d=$with_gdk_pixbuf/include
18241 if test -d $d; then
18242 X_CFLAGS="-I$d $X_CFLAGS"
18243 echo "$as_me:$LINENO: result: $d" >&5
18244 echo "${ECHO_T}$d" >&6
18246 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18247 echo "${ECHO_T}not found ($d: no such directory)" >&6
18250 echo "$as_me:$LINENO: checking for GDK_PIXBUF libs" >&5
18251 echo $ECHO_N "checking for GDK_PIXBUF libs... $ECHO_C" >&6
18252 d=$with_gdk_pixbuf/lib
18253 if test -d $d; then
18254 X_LIBS="-L$d $X_LIBS"
18255 echo "$as_me:$LINENO: result: $d" >&5
18256 echo "${ECHO_T}$d" >&6
18258 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18259 echo "${ECHO_T}not found ($d: no such directory)" >&6
18262 # replace the directory string with "yes".
18263 with_gdk_pixbuf_req="yes"
18264 with_gdk_pixbuf=$with_gdk_pixbuf_req
18269 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
18270 echo " If it is a directory, then \`DIR/include' will be added to"
18271 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18277 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
18278 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
18282 if test "$with_gdk_pixbuf" = yes; then
18284 have_gdk_pixbuf2=no
18286 if test -n "$pkg_config" ; then
18289 # run pkg-config based tests.
18294 # If we have Gtk 2.x, then *only* gdk-pixbuf 2.x will work.
18295 # If we have Gtk 1.x, then *only* gdk-pixbuf 1.x will work.
18296 # If we don't have Gtk at all, then either will work.
18298 if test "$have_gtk" = no -o "$have_gtk2" = yes; then
18300 # we don't have Gtk; or we have Gtk 2.x. Check for pixbuf 2.x.
18302 echo "$as_me:$LINENO: result: checking for gdk_pixbuf 2.x with gtk-config based tests..." >&5
18303 echo "${ECHO_T}checking for gdk_pixbuf 2.x with gtk-config based tests..." >&6
18304 pkg_check_version gdk-pixbuf-2.0 2.0.0
18305 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
18306 have_gdk_pixbuf="$ok"
18307 have_gdk_pixbuf2="$ok"
18310 if test "$have_gtk" = no -o "$have_gtk2" = no; then
18312 # we don't have Gtk; or we have Gtk 1.x.
18313 # If we don't have pixbuf 2.x, then check for pixbuf 1.x.
18315 if test "$have_gdk_pixbuf2" = no; then
18318 echo "$as_me:$LINENO: result: checking for gdk_pixbuf 1.x with gtk-config based tests..." >&5
18319 echo "${ECHO_T}checking for gdk_pixbuf 1.x with gtk-config based tests..." >&6
18320 pkg_check_version gdk_pixbuf 0.0
18321 pkg_check_version gdk_pixbuf_xlib 0.0
18322 have_gdk_pixbuf="$ok"
18326 if test "$have_gdk_pixbuf" = yes; then
18327 echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
18328 echo $ECHO_N "checking for gdk-pixbuf includes... $ECHO_C" >&6
18329 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
18330 echo $ECHO_N "(cached) $ECHO_C" >&6
18332 ac_cv_gdk_pixbuf_config_cflags=`$pkg_config --cflags $pkgs`
18334 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
18335 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_cflags" >&6
18336 echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
18337 echo $ECHO_N "checking for gdk-pixbuf libs... $ECHO_C" >&6
18338 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
18339 echo $ECHO_N "(cached) $ECHO_C" >&6
18341 ac_cv_gdk_pixbuf_config_libs=`$pkg_config --libs $pkgs`
18343 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
18344 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_libs" >&6
18346 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
18347 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
18351 if test "$have_gdk_pixbuf" = no; then
18354 # run gdk-pixbuf-config based tests.
18355 # note that we can't assume that the existence of "pkg-config" means
18356 # that we don't have to look for gdk-pixbuf-config -- in Gnome 1.4,
18357 # pkg-config exists, but doesn't know about pixbuf.
18360 echo "$as_me:$LINENO: result: checking for gdk_pixbuf with gdk-pixbuf-config based tests..." >&5
18361 echo "${ECHO_T}checking for gdk_pixbuf with gdk-pixbuf-config based tests..." >&6
18363 # if the user specified --with-gtk=/foo/ or --with-gnome=/foo/ then
18364 # look in /foo/bin/ for for gdk-pixbuf-config.
18366 gdk_pixbuf_path="$PATH"
18368 if test ! -z "$gtk_dir"; then
18369 # canonicalize slashes.
18370 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
18371 gdk_pixbuf_path="$foo:$gdk_pixbuf_path"
18374 if test ! -z "$gnome_dir"; then
18375 # canonicalize slashes.
18376 foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
18377 gdk_pixbuf_path="$foo:$gdk_pixbuf_path"
18380 for ac_prog in gdk-pixbuf-config
18382 # Extract the first word of "$ac_prog", so it can be a program name with args.
18383 set dummy $ac_prog; ac_word=$2
18384 echo "$as_me:$LINENO: checking for $ac_word" >&5
18385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18386 if test "${ac_cv_path_gdk_pixbuf_config+set}" = set; then
18387 echo $ECHO_N "(cached) $ECHO_C" >&6
18389 case $gdk_pixbuf_config in
18391 ac_cv_path_gdk_pixbuf_config="$gdk_pixbuf_config" # Let the user override the test with a path.
18394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18395 for as_dir in $gdk_pixbuf_path
18398 test -z "$as_dir" && as_dir=.
18399 for ac_exec_ext in '' $ac_executable_extensions; do
18400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18401 ac_cv_path_gdk_pixbuf_config="$as_dir/$ac_word$ac_exec_ext"
18402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18411 gdk_pixbuf_config=$ac_cv_path_gdk_pixbuf_config
18413 if test -n "$gdk_pixbuf_config"; then
18414 echo "$as_me:$LINENO: result: $gdk_pixbuf_config" >&5
18415 echo "${ECHO_T}$gdk_pixbuf_config" >&6
18417 echo "$as_me:$LINENO: result: no" >&5
18418 echo "${ECHO_T}no" >&6
18421 test -n "$gdk_pixbuf_config" && break
18425 # If we found the gdk-pixbuf-config program, run it to get flags.
18427 if test -n "$gdk_pixbuf_config" ; then
18428 echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
18429 echo $ECHO_N "checking for gdk-pixbuf includes... $ECHO_C" >&6
18430 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
18431 echo $ECHO_N "(cached) $ECHO_C" >&6
18433 ac_cv_gdk_pixbuf_config_cflags=`$gdk_pixbuf_config --cflags`
18435 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
18436 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_cflags" >&6
18437 echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
18438 echo $ECHO_N "checking for gdk-pixbuf libs... $ECHO_C" >&6
18439 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
18440 echo $ECHO_N "(cached) $ECHO_C" >&6
18442 ac_cv_gdk_pixbuf_config_libs=`$gdk_pixbuf_config --libs`
18444 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
18445 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_libs" >&6
18447 # note that "gdk-pixbuf-config --libs" produces a link line including
18448 # -lgdk_pixbuf, but there's no way to get it to produce one that also
18449 # includes -lgdk_pixbuf_xlib. Since we don't know *exactly* what the
18450 # name of the library will be, construct it with sed...
18453 ac_cv_gdk_pixbuf_config_libs=`echo $ac_cv_gdk_pixbuf_config_libs | \
18454 sed 's@ \(-lgdk_pixbuf\([-_a-zA-Z0-9.]*\)\) @ \1 -lgdk_pixbuf_xlib\2 @'`
18457 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
18458 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
18462 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
18463 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
18465 if test "$have_gdk_pixbuf" = no; then
18467 # we appear to have pixbuf; check for headers/libs to be sure.
18472 # check for header A...
18474 ac_save_CPPFLAGS="$CPPFLAGS"
18475 if test \! -z "$includedir" ; then
18476 CPPFLAGS="$CPPFLAGS -I$includedir"
18478 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18479 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
18480 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
18481 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
18482 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
18483 echo $ECHO_N "(cached) $ECHO_C" >&6
18485 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
18486 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
18488 # Is the header compilable?
18489 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h usability" >&5
18490 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h usability... $ECHO_C" >&6
18491 cat >conftest.$ac_ext <<_ACEOF
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h. */
18497 $ac_includes_default
18498 #include <gdk-pixbuf/gdk-pixbuf.h>
18500 rm -f conftest.$ac_objext
18501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18502 (eval $ac_compile) 2>conftest.er1
18504 grep -v '^ *+' conftest.er1 >conftest.err
18506 cat conftest.err >&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); } &&
18509 { ac_try='test -z "$ac_c_werror_flag"
18510 || test ! -s conftest.err'
18511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18512 (eval $ac_try) 2>&5
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; } &&
18516 { ac_try='test -s conftest.$ac_objext'
18517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18518 (eval $ac_try) 2>&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); }; }; then
18522 ac_header_compiler=yes
18524 echo "$as_me: failed program was:" >&5
18525 sed 's/^/| /' conftest.$ac_ext >&5
18527 ac_header_compiler=no
18529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18531 echo "${ECHO_T}$ac_header_compiler" >&6
18533 # Is the header present?
18534 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h presence" >&5
18535 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h presence... $ECHO_C" >&6
18536 cat >conftest.$ac_ext <<_ACEOF
18539 cat confdefs.h >>conftest.$ac_ext
18540 cat >>conftest.$ac_ext <<_ACEOF
18541 /* end confdefs.h. */
18542 #include <gdk-pixbuf/gdk-pixbuf.h>
18544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18547 grep -v '^ *+' conftest.er1 >conftest.err
18549 cat conftest.err >&5
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); } >/dev/null; then
18552 if test -s conftest.err; then
18553 ac_cpp_err=$ac_c_preproc_warn_flag
18554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18561 if test -z "$ac_cpp_err"; then
18562 ac_header_preproc=yes
18564 echo "$as_me: failed program was:" >&5
18565 sed 's/^/| /' conftest.$ac_ext >&5
18567 ac_header_preproc=no
18569 rm -f conftest.err conftest.$ac_ext
18570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18571 echo "${ECHO_T}$ac_header_preproc" >&6
18573 # So? What about this header?
18574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18576 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&5
18577 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18578 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&5
18579 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&2;}
18580 ac_header_preproc=yes
18583 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&5
18584 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&2;}
18585 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&5
18586 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&2;}
18587 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&5
18588 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&2;}
18589 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&5
18590 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&2;}
18591 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
18592 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;}
18593 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&5
18594 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&2;}
18597 ## ------------------------------------------ ##
18598 ## Report this to the AC_PACKAGE_NAME lists. ##
18599 ## ------------------------------------------ ##
18602 sed "s/^/$as_me: WARNING: /" >&2
18605 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
18606 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
18607 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
18608 echo $ECHO_N "(cached) $ECHO_C" >&6
18610 ac_cv_header_gdk_pixbuf_gdk_pixbuf_h=$ac_header_preproc
18612 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
18613 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
18616 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h = yes; then
18617 have_gdk_pixbuf=yes
18621 CPPFLAGS="$ac_save_CPPFLAGS"
18623 # if that worked, check for header B...
18624 if test "$have_gdk_pixbuf" = yes; then
18626 gdk_pixbuf_halfassed=yes
18628 ac_save_CPPFLAGS="$CPPFLAGS"
18629 if test \! -z "$includedir" ; then
18630 CPPFLAGS="$CPPFLAGS -I$includedir"
18632 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18633 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
18634 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
18635 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
18636 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
18637 echo $ECHO_N "(cached) $ECHO_C" >&6
18639 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
18640 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
18642 # Is the header compilable?
18643 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h usability" >&5
18644 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
18645 cat >conftest.$ac_ext <<_ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h. */
18651 $ac_includes_default
18652 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
18654 rm -f conftest.$ac_objext
18655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18656 (eval $ac_compile) 2>conftest.er1
18658 grep -v '^ *+' conftest.er1 >conftest.err
18660 cat conftest.err >&5
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } &&
18663 { ac_try='test -z "$ac_c_werror_flag"
18664 || test ! -s conftest.err'
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; } &&
18670 { ac_try='test -s conftest.$ac_objext'
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; }; then
18676 ac_header_compiler=yes
18678 echo "$as_me: failed program was:" >&5
18679 sed 's/^/| /' conftest.$ac_ext >&5
18681 ac_header_compiler=no
18683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18684 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18685 echo "${ECHO_T}$ac_header_compiler" >&6
18687 # Is the header present?
18688 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h presence" >&5
18689 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
18690 cat >conftest.$ac_ext <<_ACEOF
18693 cat confdefs.h >>conftest.$ac_ext
18694 cat >>conftest.$ac_ext <<_ACEOF
18695 /* end confdefs.h. */
18696 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
18698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18701 grep -v '^ *+' conftest.er1 >conftest.err
18703 cat conftest.err >&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); } >/dev/null; then
18706 if test -s conftest.err; then
18707 ac_cpp_err=$ac_c_preproc_warn_flag
18708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18715 if test -z "$ac_cpp_err"; then
18716 ac_header_preproc=yes
18718 echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.$ac_ext >&5
18721 ac_header_preproc=no
18723 rm -f conftest.err conftest.$ac_ext
18724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18725 echo "${ECHO_T}$ac_header_preproc" >&6
18727 # So? What about this header?
18728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18730 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18731 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18732 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
18733 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
18734 ac_header_preproc=yes
18737 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
18738 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
18739 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
18740 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
18741 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
18742 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
18743 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
18744 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18745 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
18746 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
18747 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
18748 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
18751 ## ------------------------------------------ ##
18752 ## Report this to the AC_PACKAGE_NAME lists. ##
18753 ## ------------------------------------------ ##
18756 sed "s/^/$as_me: WARNING: /" >&2
18759 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
18760 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
18761 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18764 ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h=$ac_header_preproc
18766 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
18767 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
18770 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h = yes; then
18771 have_gdk_pixbuf=yes
18772 gdk_pixbuf_halfassed=no
18776 CPPFLAGS="$ac_save_CPPFLAGS"
18778 # yay, it has a new name in Gtk 2.x...
18779 if test "$have_gdk_pixbuf" = no; then
18781 gdk_pixbuf_halfassed=yes
18783 ac_save_CPPFLAGS="$CPPFLAGS"
18784 if test \! -z "$includedir" ; then
18785 CPPFLAGS="$CPPFLAGS -I$includedir"
18787 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18788 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
18789 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
18790 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
18791 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
18792 echo $ECHO_N "(cached) $ECHO_C" >&6
18794 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
18795 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
18797 # Is the header compilable?
18798 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability" >&5
18799 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
18800 cat >conftest.$ac_ext <<_ACEOF
18803 cat confdefs.h >>conftest.$ac_ext
18804 cat >>conftest.$ac_ext <<_ACEOF
18805 /* end confdefs.h. */
18806 $ac_includes_default
18807 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
18809 rm -f conftest.$ac_objext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18811 (eval $ac_compile) 2>conftest.er1
18813 grep -v '^ *+' conftest.er1 >conftest.err
18815 cat conftest.err >&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); } &&
18818 { ac_try='test -z "$ac_c_werror_flag"
18819 || test ! -s conftest.err'
18820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18821 (eval $ac_try) 2>&5
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; } &&
18825 { ac_try='test -s conftest.$ac_objext'
18826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18827 (eval $ac_try) 2>&5
18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); }; }; then
18831 ac_header_compiler=yes
18833 echo "$as_me: failed program was:" >&5
18834 sed 's/^/| /' conftest.$ac_ext >&5
18836 ac_header_compiler=no
18838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18840 echo "${ECHO_T}$ac_header_compiler" >&6
18842 # Is the header present?
18843 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence" >&5
18844 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
18845 cat >conftest.$ac_ext <<_ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h. */
18851 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
18853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18856 grep -v '^ *+' conftest.er1 >conftest.err
18858 cat conftest.err >&5
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } >/dev/null; then
18861 if test -s conftest.err; then
18862 ac_cpp_err=$ac_c_preproc_warn_flag
18863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18870 if test -z "$ac_cpp_err"; then
18871 ac_header_preproc=yes
18873 echo "$as_me: failed program was:" >&5
18874 sed 's/^/| /' conftest.$ac_ext >&5
18876 ac_header_preproc=no
18878 rm -f conftest.err conftest.$ac_ext
18879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18880 echo "${ECHO_T}$ac_header_preproc" >&6
18882 # So? What about this header?
18883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18885 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18886 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18887 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
18888 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
18889 ac_header_preproc=yes
18892 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
18893 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
18894 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
18895 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
18896 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
18897 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
18898 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
18899 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18900 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
18901 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
18902 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
18903 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
18906 ## ------------------------------------------ ##
18907 ## Report this to the AC_PACKAGE_NAME lists. ##
18908 ## ------------------------------------------ ##
18911 sed "s/^/$as_me: WARNING: /" >&2
18914 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
18915 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
18916 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
18917 echo $ECHO_N "(cached) $ECHO_C" >&6
18919 ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h=$ac_header_preproc
18921 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
18922 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
18925 if test $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h = yes; then
18926 have_gdk_pixbuf=yes
18927 gdk_pixbuf_halfassed=no
18931 CPPFLAGS="$ac_save_CPPFLAGS"
18936 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
18938 if test "$have_gdk_pixbuf" = yes; then
18939 # we have the headers, now check for the libraries
18941 gdk_pixbuf_halfassed=yes
18945 ac_save_CPPFLAGS="$CPPFLAGS"
18946 ac_save_LDFLAGS="$LDFLAGS"
18947 # ac_save_LIBS="$LIBS"
18949 if test \! -z "$includedir" ; then
18950 CPPFLAGS="$CPPFLAGS -I$includedir"
18952 # note: $X_CFLAGS includes $x_includes
18953 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18955 if test \! -z "$libdir" ; then
18956 LDFLAGS="$LDFLAGS -L$libdir"
18958 # note: $X_LIBS includes $x_libraries
18959 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18961 echo "$as_me:$LINENO: checking for gdk_pixbuf_new_from_file in -lc" >&5
18962 echo $ECHO_N "checking for gdk_pixbuf_new_from_file in -lc... $ECHO_C" >&6
18963 if test "${ac_cv_lib_c_gdk_pixbuf_new_from_file+set}" = set; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18966 ac_check_lib_save_LIBS=$LIBS
18967 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
18968 cat >conftest.$ac_ext <<_ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h. */
18975 /* Override any gcc2 internal prototype to avoid an error. */
18979 /* We use char because int might match the return type of a gcc2
18980 builtin and then its argument prototype would still apply. */
18981 char gdk_pixbuf_new_from_file ();
18985 gdk_pixbuf_new_from_file ();
18990 rm -f conftest.$ac_objext conftest$ac_exeext
18991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18992 (eval $ac_link) 2>conftest.er1
18994 grep -v '^ *+' conftest.er1 >conftest.err
18996 cat conftest.err >&5
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); } &&
18999 { ac_try='test -z "$ac_c_werror_flag"
19000 || test ! -s conftest.err'
19001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19002 (eval $ac_try) 2>&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); }; } &&
19006 { ac_try='test -s conftest$ac_exeext'
19007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008 (eval $ac_try) 2>&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; }; then
19012 ac_cv_lib_c_gdk_pixbuf_new_from_file=yes
19014 echo "$as_me: failed program was:" >&5
19015 sed 's/^/| /' conftest.$ac_ext >&5
19017 ac_cv_lib_c_gdk_pixbuf_new_from_file=no
19019 rm -f conftest.err conftest.$ac_objext \
19020 conftest$ac_exeext conftest.$ac_ext
19021 LIBS=$ac_check_lib_save_LIBS
19023 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_new_from_file" >&5
19024 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_new_from_file" >&6
19025 if test $ac_cv_lib_c_gdk_pixbuf_new_from_file = yes; then
19026 have_gdk_pixbuf=yes
19029 CPPFLAGS="$ac_save_CPPFLAGS"
19030 LDFLAGS="$ac_save_LDFLAGS"
19031 # LIBS="$ac_save_LIBS"
19034 if test "$have_gdk_pixbuf" = yes; then
19037 ac_save_CPPFLAGS="$CPPFLAGS"
19038 ac_save_LDFLAGS="$LDFLAGS"
19039 # ac_save_LIBS="$LIBS"
19041 if test \! -z "$includedir" ; then
19042 CPPFLAGS="$CPPFLAGS -I$includedir"
19044 # note: $X_CFLAGS includes $x_includes
19045 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19047 if test \! -z "$libdir" ; then
19048 LDFLAGS="$LDFLAGS -L$libdir"
19050 # note: $X_LIBS includes $x_libraries
19051 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19053 echo "$as_me:$LINENO: checking for gdk_pixbuf_xlib_init in -lc" >&5
19054 echo $ECHO_N "checking for gdk_pixbuf_xlib_init in -lc... $ECHO_C" >&6
19055 if test "${ac_cv_lib_c_gdk_pixbuf_xlib_init+set}" = set; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19058 ac_check_lib_save_LIBS=$LIBS
19059 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
19060 cat >conftest.$ac_ext <<_ACEOF
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h. */
19067 /* Override any gcc2 internal prototype to avoid an error. */
19071 /* We use char because int might match the return type of a gcc2
19072 builtin and then its argument prototype would still apply. */
19073 char gdk_pixbuf_xlib_init ();
19077 gdk_pixbuf_xlib_init ();
19082 rm -f conftest.$ac_objext conftest$ac_exeext
19083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19084 (eval $ac_link) 2>conftest.er1
19086 grep -v '^ *+' conftest.er1 >conftest.err
19088 cat conftest.err >&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); } &&
19091 { ac_try='test -z "$ac_c_werror_flag"
19092 || test ! -s conftest.err'
19093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19094 (eval $ac_try) 2>&5
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); }; } &&
19098 { ac_try='test -s conftest$ac_exeext'
19099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19100 (eval $ac_try) 2>&5
19102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103 (exit $ac_status); }; }; then
19104 ac_cv_lib_c_gdk_pixbuf_xlib_init=yes
19106 echo "$as_me: failed program was:" >&5
19107 sed 's/^/| /' conftest.$ac_ext >&5
19109 ac_cv_lib_c_gdk_pixbuf_xlib_init=no
19111 rm -f conftest.err conftest.$ac_objext \
19112 conftest$ac_exeext conftest.$ac_ext
19113 LIBS=$ac_check_lib_save_LIBS
19115 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_xlib_init" >&5
19116 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_xlib_init" >&6
19117 if test $ac_cv_lib_c_gdk_pixbuf_xlib_init = yes; then
19118 have_gdk_pixbuf=yes
19119 gdk_pixbuf_halfassed=no
19122 CPPFLAGS="$ac_save_CPPFLAGS"
19123 LDFLAGS="$ac_save_LDFLAGS"
19124 # LIBS="$ac_save_LIBS"
19129 if test "$have_gdk_pixbuf" = yes; then
19130 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
19131 XPM_LIBS="$ac_gdk_pixbuf_config_libs"
19132 cat >>confdefs.h <<\_ACEOF
19133 #define HAVE_GDK_PIXBUF 1
19137 have_gdk_pixbuf2=no
19142 ###############################################################################
19146 ###############################################################################
19149 with_jpeg_req=unspecified
19152 # Check whether --with-jpeg or --without-jpeg was given.
19153 if test "${with_jpeg+set}" = set; then
19154 withval="$with_jpeg"
19155 with_jpeg="$withval"; with_jpeg_req="$withval"
19161 case "$with_jpeg" in
19166 echo "$as_me:$LINENO: checking for JPEG headers" >&5
19167 echo $ECHO_N "checking for JPEG headers... $ECHO_C" >&6
19168 d=$with_jpeg/include
19169 if test -d $d; then
19170 X_CFLAGS="-I$d $X_CFLAGS"
19171 echo "$as_me:$LINENO: result: $d" >&5
19172 echo "${ECHO_T}$d" >&6
19174 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19175 echo "${ECHO_T}not found ($d: no such directory)" >&6
19178 echo "$as_me:$LINENO: checking for JPEG libs" >&5
19179 echo $ECHO_N "checking for JPEG libs... $ECHO_C" >&6
19181 if test -d $d; then
19182 X_LIBS="-L$d $X_LIBS"
19183 echo "$as_me:$LINENO: result: $d" >&5
19184 echo "${ECHO_T}$d" >&6
19186 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19187 echo "${ECHO_T}not found ($d: no such directory)" >&6
19190 # replace the directory string with "yes".
19191 with_jpeg_req="yes"
19192 with_jpeg=$with_jpeg_req
19197 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
19198 echo " If it is a directory, then \`DIR/include' will be added to"
19199 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19205 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
19206 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
19210 if test "$with_jpeg" = yes; then
19214 ac_save_CPPFLAGS="$CPPFLAGS"
19215 if test \! -z "$includedir" ; then
19216 CPPFLAGS="$CPPFLAGS -I$includedir"
19218 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19219 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19220 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19221 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
19222 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19223 echo $ECHO_N "(cached) $ECHO_C" >&6
19225 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19226 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
19228 # Is the header compilable?
19229 echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
19230 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
19231 cat >conftest.$ac_ext <<_ACEOF
19234 cat confdefs.h >>conftest.$ac_ext
19235 cat >>conftest.$ac_ext <<_ACEOF
19236 /* end confdefs.h. */
19237 $ac_includes_default
19238 #include <jpeglib.h>
19240 rm -f conftest.$ac_objext
19241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19242 (eval $ac_compile) 2>conftest.er1
19244 grep -v '^ *+' conftest.er1 >conftest.err
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
19249 { ac_try='test -z "$ac_c_werror_flag"
19250 || test ! -s conftest.err'
19251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19252 (eval $ac_try) 2>&5
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); }; } &&
19256 { ac_try='test -s conftest.$ac_objext'
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258 (eval $ac_try) 2>&5
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; }; then
19262 ac_header_compiler=yes
19264 echo "$as_me: failed program was:" >&5
19265 sed 's/^/| /' conftest.$ac_ext >&5
19267 ac_header_compiler=no
19269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19271 echo "${ECHO_T}$ac_header_compiler" >&6
19273 # Is the header present?
19274 echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
19275 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
19276 cat >conftest.$ac_ext <<_ACEOF
19279 cat confdefs.h >>conftest.$ac_ext
19280 cat >>conftest.$ac_ext <<_ACEOF
19281 /* end confdefs.h. */
19282 #include <jpeglib.h>
19284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19287 grep -v '^ *+' conftest.er1 >conftest.err
19289 cat conftest.err >&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } >/dev/null; then
19292 if test -s conftest.err; then
19293 ac_cpp_err=$ac_c_preproc_warn_flag
19294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19301 if test -z "$ac_cpp_err"; then
19302 ac_header_preproc=yes
19304 echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19307 ac_header_preproc=no
19309 rm -f conftest.err conftest.$ac_ext
19310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19311 echo "${ECHO_T}$ac_header_preproc" >&6
19313 # So? What about this header?
19314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19316 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19317 echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19318 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
19319 echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
19320 ac_header_preproc=yes
19323 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
19324 echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
19325 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
19326 echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
19327 { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
19328 echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
19329 { echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
19330 echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
19331 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
19332 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
19333 { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
19334 echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
19337 ## ------------------------------------------ ##
19338 ## Report this to the AC_PACKAGE_NAME lists. ##
19339 ## ------------------------------------------ ##
19342 sed "s/^/$as_me: WARNING: /" >&2
19345 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19346 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
19347 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19348 echo $ECHO_N "(cached) $ECHO_C" >&6
19350 ac_cv_header_jpeglib_h=$ac_header_preproc
19352 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19353 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
19356 if test $ac_cv_header_jpeglib_h = yes; then
19361 CPPFLAGS="$ac_save_CPPFLAGS"
19363 if test "$have_jpeg" = yes; then
19364 # we have the header, now check for the library
19368 ac_save_CPPFLAGS="$CPPFLAGS"
19369 ac_save_LDFLAGS="$LDFLAGS"
19370 # ac_save_LIBS="$LIBS"
19372 if test \! -z "$includedir" ; then
19373 CPPFLAGS="$CPPFLAGS -I$includedir"
19375 # note: $X_CFLAGS includes $x_includes
19376 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19378 if test \! -z "$libdir" ; then
19379 LDFLAGS="$LDFLAGS -L$libdir"
19381 # note: $X_LIBS includes $x_libraries
19382 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19384 echo "$as_me:$LINENO: checking for jpeg_start_compress in -ljpeg" >&5
19385 echo $ECHO_N "checking for jpeg_start_compress in -ljpeg... $ECHO_C" >&6
19386 if test "${ac_cv_lib_jpeg_jpeg_start_compress+set}" = set; then
19387 echo $ECHO_N "(cached) $ECHO_C" >&6
19389 ac_check_lib_save_LIBS=$LIBS
19390 LIBS="-ljpeg $LIBS"
19391 cat >conftest.$ac_ext <<_ACEOF
19394 cat confdefs.h >>conftest.$ac_ext
19395 cat >>conftest.$ac_ext <<_ACEOF
19396 /* end confdefs.h. */
19398 /* Override any gcc2 internal prototype to avoid an error. */
19402 /* We use char because int might match the return type of a gcc2
19403 builtin and then its argument prototype would still apply. */
19404 char jpeg_start_compress ();
19408 jpeg_start_compress ();
19413 rm -f conftest.$ac_objext conftest$ac_exeext
19414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19415 (eval $ac_link) 2>conftest.er1
19417 grep -v '^ *+' conftest.er1 >conftest.err
19419 cat conftest.err >&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); } &&
19422 { ac_try='test -z "$ac_c_werror_flag"
19423 || test ! -s conftest.err'
19424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425 (eval $ac_try) 2>&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; } &&
19429 { ac_try='test -s conftest$ac_exeext'
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; }; then
19435 ac_cv_lib_jpeg_jpeg_start_compress=yes
19437 echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19440 ac_cv_lib_jpeg_jpeg_start_compress=no
19442 rm -f conftest.err conftest.$ac_objext \
19443 conftest$ac_exeext conftest.$ac_ext
19444 LIBS=$ac_check_lib_save_LIBS
19446 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
19447 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_compress" >&6
19448 if test $ac_cv_lib_jpeg_jpeg_start_compress = yes; then
19452 cat >>confdefs.h <<\_ACEOF
19453 #define HAVE_JPEGLIB 1
19458 CPPFLAGS="$ac_save_CPPFLAGS"
19459 LDFLAGS="$ac_save_LDFLAGS"
19460 # LIBS="$ac_save_LIBS"
19466 ###############################################################################
19468 # Check for pty support for 'phosphor'
19470 ###############################################################################
19475 for ac_header in pty.h util.h
19477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19479 echo "$as_me:$LINENO: checking for $ac_header" >&5
19480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19482 echo $ECHO_N "(cached) $ECHO_C" >&6
19484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19487 # Is the header compilable?
19488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19490 cat >conftest.$ac_ext <<_ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h. */
19496 $ac_includes_default
19497 #include <$ac_header>
19499 rm -f conftest.$ac_objext
19500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19501 (eval $ac_compile) 2>conftest.er1
19503 grep -v '^ *+' conftest.er1 >conftest.err
19505 cat conftest.err >&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); } &&
19508 { ac_try='test -z "$ac_c_werror_flag"
19509 || test ! -s conftest.err'
19510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511 (eval $ac_try) 2>&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; } &&
19515 { ac_try='test -s conftest.$ac_objext'
19516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19517 (eval $ac_try) 2>&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; }; then
19521 ac_header_compiler=yes
19523 echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19526 ac_header_compiler=no
19528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19530 echo "${ECHO_T}$ac_header_compiler" >&6
19532 # Is the header present?
19533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19535 cat >conftest.$ac_ext <<_ACEOF
19538 cat confdefs.h >>conftest.$ac_ext
19539 cat >>conftest.$ac_ext <<_ACEOF
19540 /* end confdefs.h. */
19541 #include <$ac_header>
19543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19546 grep -v '^ *+' conftest.er1 >conftest.err
19548 cat conftest.err >&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } >/dev/null; then
19551 if test -s conftest.err; then
19552 ac_cpp_err=$ac_c_preproc_warn_flag
19553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19560 if test -z "$ac_cpp_err"; then
19561 ac_header_preproc=yes
19563 echo "$as_me: failed program was:" >&5
19564 sed 's/^/| /' conftest.$ac_ext >&5
19566 ac_header_preproc=no
19568 rm -f conftest.err conftest.$ac_ext
19569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19570 echo "${ECHO_T}$ac_header_preproc" >&6
19572 # So? What about this header?
19573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19579 ac_header_preproc=yes
19582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19596 ## ------------------------------------------ ##
19597 ## Report this to the AC_PACKAGE_NAME lists. ##
19598 ## ------------------------------------------ ##
19601 sed "s/^/$as_me: WARNING: /" >&2
19604 echo "$as_me:$LINENO: checking for $ac_header" >&5
19605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19607 echo $ECHO_N "(cached) $ECHO_C" >&6
19609 eval "$as_ac_Header=\$ac_header_preproc"
19611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19616 cat >>confdefs.h <<_ACEOF
19617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19625 ac_save_CPPFLAGS="$CPPFLAGS"
19626 ac_save_LDFLAGS="$LDFLAGS"
19627 # ac_save_LIBS="$LIBS"
19629 if test \! -z "$includedir" ; then
19630 CPPFLAGS="$CPPFLAGS -I$includedir"
19632 # note: $X_CFLAGS includes $x_includes
19633 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19635 if test \! -z "$libdir" ; then
19636 LDFLAGS="$LDFLAGS -L$libdir"
19638 # note: $X_LIBS includes $x_libraries
19639 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
19641 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
19642 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
19643 if test "${ac_cv_lib_util_forkpty+set}" = set; then
19644 echo $ECHO_N "(cached) $ECHO_C" >&6
19646 ac_check_lib_save_LIBS=$LIBS
19647 LIBS="-lutil $LIBS"
19648 cat >conftest.$ac_ext <<_ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h. */
19655 /* Override any gcc2 internal prototype to avoid an error. */
19659 /* We use char because int might match the return type of a gcc2
19660 builtin and then its argument prototype would still apply. */
19670 rm -f conftest.$ac_objext conftest$ac_exeext
19671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19672 (eval $ac_link) 2>conftest.er1
19674 grep -v '^ *+' conftest.er1 >conftest.err
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } &&
19679 { ac_try='test -z "$ac_c_werror_flag"
19680 || test ! -s conftest.err'
19681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19682 (eval $ac_try) 2>&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); }; } &&
19686 { ac_try='test -s conftest$ac_exeext'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; }; then
19692 ac_cv_lib_util_forkpty=yes
19694 echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19697 ac_cv_lib_util_forkpty=no
19699 rm -f conftest.err conftest.$ac_objext \
19700 conftest$ac_exeext conftest.$ac_ext
19701 LIBS=$ac_check_lib_save_LIBS
19703 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
19704 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
19705 if test $ac_cv_lib_util_forkpty = yes; then
19707 cat >>confdefs.h <<\_ACEOF
19708 #define HAVE_FORKPTY 1
19713 CPPFLAGS="$ac_save_CPPFLAGS"
19714 LDFLAGS="$ac_save_LDFLAGS"
19715 # LIBS="$ac_save_LIBS"
19719 ###############################################################################
19721 # Check for the XSHM server extension.
19723 ###############################################################################
19726 with_xshm_req=unspecified
19728 # Check whether --with-xshm-ext or --without-xshm-ext was given.
19729 if test "${with_xshm_ext+set}" = set; then
19730 withval="$with_xshm_ext"
19731 with_xshm="$withval"; with_xshm_req="$withval"
19737 case "$with_xshm" in
19742 echo "$as_me:$LINENO: checking for XSHM headers" >&5
19743 echo $ECHO_N "checking for XSHM headers... $ECHO_C" >&6
19744 d=$with_xshm/include
19745 if test -d $d; then
19746 X_CFLAGS="-I$d $X_CFLAGS"
19747 echo "$as_me:$LINENO: result: $d" >&5
19748 echo "${ECHO_T}$d" >&6
19750 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19751 echo "${ECHO_T}not found ($d: no such directory)" >&6
19754 echo "$as_me:$LINENO: checking for XSHM libs" >&5
19755 echo $ECHO_N "checking for XSHM libs... $ECHO_C" >&6
19757 if test -d $d; then
19758 X_LIBS="-L$d $X_LIBS"
19759 echo "$as_me:$LINENO: result: $d" >&5
19760 echo "${ECHO_T}$d" >&6
19762 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19763 echo "${ECHO_T}not found ($d: no such directory)" >&6
19766 # replace the directory string with "yes".
19767 with_xshm_req="yes"
19768 with_xshm=$with_xshm_req
19773 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
19774 echo " If it is a directory, then \`DIR/include' will be added to"
19775 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19781 if test "$with_xshm" = yes; then
19783 # first check for Xshm.h.
19785 ac_save_CPPFLAGS="$CPPFLAGS"
19786 if test \! -z "$includedir" ; then
19787 CPPFLAGS="$CPPFLAGS -I$includedir"
19789 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19790 echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5
19791 echo $ECHO_N "checking for X11/extensions/XShm.h... $ECHO_C" >&6
19792 if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
19793 echo $ECHO_N "(cached) $ECHO_C" >&6
19795 cat >conftest.$ac_ext <<_ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19801 #include <X11/Xlib.h>
19803 #include <X11/extensions/XShm.h>
19805 rm -f conftest.$ac_objext
19806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19807 (eval $ac_compile) 2>conftest.er1
19809 grep -v '^ *+' conftest.er1 >conftest.err
19811 cat conftest.err >&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } &&
19814 { ac_try='test -z "$ac_c_werror_flag"
19815 || test ! -s conftest.err'
19816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817 (eval $ac_try) 2>&5
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; } &&
19821 { ac_try='test -s conftest.$ac_objext'
19822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19823 (eval $ac_try) 2>&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; }; then
19827 ac_cv_header_X11_extensions_XShm_h=yes
19829 echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19832 ac_cv_header_X11_extensions_XShm_h=no
19834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19836 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5
19837 echo "${ECHO_T}$ac_cv_header_X11_extensions_XShm_h" >&6
19838 if test $ac_cv_header_X11_extensions_XShm_h = yes; then
19843 CPPFLAGS="$ac_save_CPPFLAGS"
19845 # if that succeeded, then check for sys/ipc.h.
19846 if test "$have_xshm" = yes; then
19849 ac_save_CPPFLAGS="$CPPFLAGS"
19850 if test \! -z "$includedir" ; then
19851 CPPFLAGS="$CPPFLAGS -I$includedir"
19853 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19854 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
19855 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
19856 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
19857 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
19858 echo $ECHO_N "(cached) $ECHO_C" >&6
19860 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
19861 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
19863 # Is the header compilable?
19864 echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
19865 echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6
19866 cat >conftest.$ac_ext <<_ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19872 $ac_includes_default
19873 #include <sys/ipc.h>
19875 rm -f conftest.$ac_objext
19876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19877 (eval $ac_compile) 2>conftest.er1
19879 grep -v '^ *+' conftest.er1 >conftest.err
19881 cat conftest.err >&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } &&
19884 { ac_try='test -z "$ac_c_werror_flag"
19885 || test ! -s conftest.err'
19886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887 (eval $ac_try) 2>&5
19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890 (exit $ac_status); }; } &&
19891 { ac_try='test -s conftest.$ac_objext'
19892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19893 (eval $ac_try) 2>&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); }; }; then
19897 ac_header_compiler=yes
19899 echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19902 ac_header_compiler=no
19904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19906 echo "${ECHO_T}$ac_header_compiler" >&6
19908 # Is the header present?
19909 echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
19910 echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6
19911 cat >conftest.$ac_ext <<_ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h. */
19917 #include <sys/ipc.h>
19919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19922 grep -v '^ *+' conftest.er1 >conftest.err
19924 cat conftest.err >&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } >/dev/null; then
19927 if test -s conftest.err; then
19928 ac_cpp_err=$ac_c_preproc_warn_flag
19929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19936 if test -z "$ac_cpp_err"; then
19937 ac_header_preproc=yes
19939 echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19942 ac_header_preproc=no
19944 rm -f conftest.err conftest.$ac_ext
19945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19946 echo "${ECHO_T}$ac_header_preproc" >&6
19948 # So? What about this header?
19949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19951 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
19952 echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the compiler's result" >&5
19954 echo "$as_me: WARNING: sys/ipc.h: proceeding with the compiler's result" >&2;}
19955 ac_header_preproc=yes
19958 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
19959 echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
19960 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
19961 echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
19962 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: see the Autoconf documentation" >&5
19963 echo "$as_me: WARNING: sys/ipc.h: see the Autoconf documentation" >&2;}
19964 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&5
19965 echo "$as_me: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&2;}
19966 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
19967 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
19968 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&5
19969 echo "$as_me: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&2;}
19972 ## ------------------------------------------ ##
19973 ## Report this to the AC_PACKAGE_NAME lists. ##
19974 ## ------------------------------------------ ##
19977 sed "s/^/$as_me: WARNING: /" >&2
19980 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
19981 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
19982 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
19983 echo $ECHO_N "(cached) $ECHO_C" >&6
19985 ac_cv_header_sys_ipc_h=$ac_header_preproc
19987 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
19988 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
19991 if test $ac_cv_header_sys_ipc_h = yes; then
19996 CPPFLAGS="$ac_save_CPPFLAGS"
19999 # if that succeeded, then check for sys/shm.h.
20000 if test "$have_xshm" = yes; then
20003 ac_save_CPPFLAGS="$CPPFLAGS"
20004 if test \! -z "$includedir" ; then
20005 CPPFLAGS="$CPPFLAGS -I$includedir"
20007 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20008 if test "${ac_cv_header_sys_shm_h+set}" = set; then
20009 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
20010 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
20011 if test "${ac_cv_header_sys_shm_h+set}" = set; then
20012 echo $ECHO_N "(cached) $ECHO_C" >&6
20014 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
20015 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
20017 # Is the header compilable?
20018 echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
20019 echo $ECHO_N "checking sys/shm.h usability... $ECHO_C" >&6
20020 cat >conftest.$ac_ext <<_ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h. */
20026 $ac_includes_default
20027 #include <sys/shm.h>
20029 rm -f conftest.$ac_objext
20030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20031 (eval $ac_compile) 2>conftest.er1
20033 grep -v '^ *+' conftest.er1 >conftest.err
20035 cat conftest.err >&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } &&
20038 { ac_try='test -z "$ac_c_werror_flag"
20039 || test ! -s conftest.err'
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; } &&
20045 { ac_try='test -s conftest.$ac_objext'
20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047 (eval $ac_try) 2>&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; }; then
20051 ac_header_compiler=yes
20053 echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20056 ac_header_compiler=no
20058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20059 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20060 echo "${ECHO_T}$ac_header_compiler" >&6
20062 # Is the header present?
20063 echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
20064 echo $ECHO_N "checking sys/shm.h presence... $ECHO_C" >&6
20065 cat >conftest.$ac_ext <<_ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h. */
20071 #include <sys/shm.h>
20073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20076 grep -v '^ *+' conftest.er1 >conftest.err
20078 cat conftest.err >&5
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); } >/dev/null; then
20081 if test -s conftest.err; then
20082 ac_cpp_err=$ac_c_preproc_warn_flag
20083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20090 if test -z "$ac_cpp_err"; then
20091 ac_header_preproc=yes
20093 echo "$as_me: failed program was:" >&5
20094 sed 's/^/| /' conftest.$ac_ext >&5
20096 ac_header_preproc=no
20098 rm -f conftest.err conftest.$ac_ext
20099 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20100 echo "${ECHO_T}$ac_header_preproc" >&6
20102 # So? What about this header?
20103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20105 { echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
20106 echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20107 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the compiler's result" >&5
20108 echo "$as_me: WARNING: sys/shm.h: proceeding with the compiler's result" >&2;}
20109 ac_header_preproc=yes
20112 { echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
20113 echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
20114 { echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
20115 echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
20116 { echo "$as_me:$LINENO: WARNING: sys/shm.h: see the Autoconf documentation" >&5
20117 echo "$as_me: WARNING: sys/shm.h: see the Autoconf documentation" >&2;}
20118 { echo "$as_me:$LINENO: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&5
20119 echo "$as_me: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&2;}
20120 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
20121 echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
20122 { echo "$as_me:$LINENO: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&5
20123 echo "$as_me: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&2;}
20126 ## ------------------------------------------ ##
20127 ## Report this to the AC_PACKAGE_NAME lists. ##
20128 ## ------------------------------------------ ##
20131 sed "s/^/$as_me: WARNING: /" >&2
20134 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
20135 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
20136 if test "${ac_cv_header_sys_shm_h+set}" = set; then
20137 echo $ECHO_N "(cached) $ECHO_C" >&6
20139 ac_cv_header_sys_shm_h=$ac_header_preproc
20141 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
20142 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
20145 if test $ac_cv_header_sys_shm_h = yes; then
20150 CPPFLAGS="$ac_save_CPPFLAGS"
20153 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
20154 # to exist, but the library code to not exist. And even better, the library
20155 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
20156 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
20157 # that's not quite right, but close enough.)
20161 if `uname -v` -eq 3 ; then
20164 ac_save_CPPFLAGS="$CPPFLAGS"
20165 ac_save_LDFLAGS="$LDFLAGS"
20166 # ac_save_LIBS="$LIBS"
20168 if test \! -z "$includedir" ; then
20169 CPPFLAGS="$CPPFLAGS -I$includedir"
20171 # note: $X_CFLAGS includes $x_includes
20172 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20174 if test \! -z "$libdir" ; then
20175 LDFLAGS="$LDFLAGS -L$libdir"
20177 # note: $X_LIBS includes $x_libraries
20178 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
20180 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXextSam" >&5
20181 echo $ECHO_N "checking for XShmQueryExtension in -lXextSam... $ECHO_C" >&6
20182 if test "${ac_cv_lib_XextSam_XShmQueryExtension+set}" = set; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20185 ac_check_lib_save_LIBS=$LIBS
20186 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
20187 cat >conftest.$ac_ext <<_ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h. */
20194 /* Override any gcc2 internal prototype to avoid an error. */
20198 /* We use char because int might match the return type of a gcc2
20199 builtin and then its argument prototype would still apply. */
20200 char XShmQueryExtension ();
20204 XShmQueryExtension ();
20209 rm -f conftest.$ac_objext conftest$ac_exeext
20210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20211 (eval $ac_link) 2>conftest.er1
20213 grep -v '^ *+' conftest.er1 >conftest.err
20215 cat conftest.err >&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); } &&
20218 { ac_try='test -z "$ac_c_werror_flag"
20219 || test ! -s conftest.err'
20220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20221 (eval $ac_try) 2>&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); }; } &&
20225 { ac_try='test -s conftest$ac_exeext'
20226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20227 (eval $ac_try) 2>&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); }; }; then
20231 ac_cv_lib_XextSam_XShmQueryExtension=yes
20233 echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20236 ac_cv_lib_XextSam_XShmQueryExtension=no
20238 rm -f conftest.err conftest.$ac_objext \
20239 conftest$ac_exeext conftest.$ac_ext
20240 LIBS=$ac_check_lib_save_LIBS
20242 echo "$as_me:$LINENO: result: $ac_cv_lib_XextSam_XShmQueryExtension" >&5
20243 echo "${ECHO_T}$ac_cv_lib_XextSam_XShmQueryExtension" >&6
20244 if test $ac_cv_lib_XextSam_XShmQueryExtension = yes; then
20245 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
20250 CPPFLAGS="$ac_save_CPPFLAGS"
20251 LDFLAGS="$ac_save_LDFLAGS"
20252 # LIBS="$ac_save_LIBS"
20258 # if that succeeded, then we've really got it.
20259 if test "$have_xshm" = yes; then
20260 cat >>confdefs.h <<\_ACEOF
20261 #define HAVE_XSHM_EXTENSION 1
20266 elif test "$with_xshm" != no; then
20267 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
20272 ###############################################################################
20274 # Check for the DOUBLE-BUFFER server extension.
20276 ###############################################################################
20279 with_xdbe_req=unspecified
20281 # Check whether --with-xdbe-ext or --without-xdbe-ext was given.
20282 if test "${with_xdbe_ext+set}" = set; then
20283 withval="$with_xdbe_ext"
20284 with_xdbe="$withval"; with_xdbe_req="$withval"
20290 case "$with_xdbe" in
20295 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER headers" >&5
20296 echo $ECHO_N "checking for DOUBLE-BUFFER headers... $ECHO_C" >&6
20297 d=$with_xdbe/include
20298 if test -d $d; then
20299 X_CFLAGS="-I$d $X_CFLAGS"
20300 echo "$as_me:$LINENO: result: $d" >&5
20301 echo "${ECHO_T}$d" >&6
20303 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20304 echo "${ECHO_T}not found ($d: no such directory)" >&6
20307 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER libs" >&5
20308 echo $ECHO_N "checking for DOUBLE-BUFFER libs... $ECHO_C" >&6
20310 if test -d $d; then
20311 X_LIBS="-L$d $X_LIBS"
20312 echo "$as_me:$LINENO: result: $d" >&5
20313 echo "${ECHO_T}$d" >&6
20315 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20316 echo "${ECHO_T}not found ($d: no such directory)" >&6
20319 # replace the directory string with "yes".
20320 with_xdbe_req="yes"
20321 with_xdbe=$with_xdbe_req
20326 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
20327 echo " If it is a directory, then \`DIR/include' will be added to"
20328 echo " the -I list, and \`DIR/lib' will be added to the -L list."
20334 if test "$with_xdbe" = yes; then
20337 ac_save_CPPFLAGS="$CPPFLAGS"
20338 if test \! -z "$includedir" ; then
20339 CPPFLAGS="$CPPFLAGS -I$includedir"
20341 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20342 echo "$as_me:$LINENO: checking for X11/extensions/Xdbe.h" >&5
20343 echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6
20344 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
20345 echo $ECHO_N "(cached) $ECHO_C" >&6
20347 cat >conftest.$ac_ext <<_ACEOF
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h. */
20353 #include <X11/Xlib.h>
20355 #include <X11/extensions/Xdbe.h>
20357 rm -f conftest.$ac_objext
20358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20359 (eval $ac_compile) 2>conftest.er1
20361 grep -v '^ *+' conftest.er1 >conftest.err
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } &&
20366 { ac_try='test -z "$ac_c_werror_flag"
20367 || test ! -s conftest.err'
20368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369 (eval $ac_try) 2>&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; } &&
20373 { ac_try='test -s conftest.$ac_objext'
20374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375 (eval $ac_try) 2>&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); }; }; then
20379 ac_cv_header_X11_extensions_Xdbe_h=yes
20381 echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20384 ac_cv_header_X11_extensions_Xdbe_h=no
20386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20388 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
20389 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6
20390 if test $ac_cv_header_X11_extensions_Xdbe_h = yes; then
20395 CPPFLAGS="$ac_save_CPPFLAGS"
20396 if test "$have_xdbe" = yes; then
20397 cat >>confdefs.h <<\_ACEOF
20398 #define HAVE_DOUBLE_BUFFER_EXTENSION 1
20403 elif test "$with_xdbe" != no; then
20404 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
20409 ###############################################################################
20411 # Check for the SGI XReadDisplay server extension.
20413 # Note: this has to be down here, rather than up with the other server
20414 # extension tests, so that the output of `configure --help' is in the
20415 # right order. Arrgh!
20417 ###############################################################################
20419 have_readdisplay=no
20420 with_readdisplay_req=unspecified
20422 # Check whether --with-readdisplay or --without-readdisplay was given.
20423 if test "${with_readdisplay+set}" = set; then
20424 withval="$with_readdisplay"
20425 with_readdisplay="$withval"; with_readdisplay_req="$withval"
20427 with_readdisplay=yes
20431 case "$with_readdisplay" in
20436 echo "$as_me:$LINENO: checking for XReadDisplay headers" >&5
20437 echo $ECHO_N "checking for XReadDisplay headers... $ECHO_C" >&6
20438 d=$with_readdisplay/include
20439 if test -d $d; then
20440 X_CFLAGS="-I$d $X_CFLAGS"
20441 echo "$as_me:$LINENO: result: $d" >&5
20442 echo "${ECHO_T}$d" >&6
20444 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20445 echo "${ECHO_T}not found ($d: no such directory)" >&6
20448 echo "$as_me:$LINENO: checking for XReadDisplay libs" >&5
20449 echo $ECHO_N "checking for XReadDisplay libs... $ECHO_C" >&6
20450 d=$with_readdisplay/lib
20451 if test -d $d; then
20452 X_LIBS="-L$d $X_LIBS"
20453 echo "$as_me:$LINENO: result: $d" >&5
20454 echo "${ECHO_T}$d" >&6
20456 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20457 echo "${ECHO_T}not found ($d: no such directory)" >&6
20460 # replace the directory string with "yes".
20461 with_readdisplay_req="yes"
20462 with_readdisplay=$with_readdisplay_req
20467 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
20468 echo " If it is a directory, then \`DIR/include' will be added to"
20469 echo " the -I list, and \`DIR/lib' will be added to the -L list."
20475 if test "$with_readdisplay" = yes; then
20477 ac_save_CPPFLAGS="$CPPFLAGS"
20478 if test \! -z "$includedir" ; then
20479 CPPFLAGS="$CPPFLAGS -I$includedir"
20481 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20482 echo "$as_me:$LINENO: checking for X11/extensions/readdisplay.h" >&5
20483 echo $ECHO_N "checking for X11/extensions/readdisplay.h... $ECHO_C" >&6
20484 if test "${ac_cv_header_X11_extensions_readdisplay_h+set}" = set; then
20485 echo $ECHO_N "(cached) $ECHO_C" >&6
20487 cat >conftest.$ac_ext <<_ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h. */
20493 #include <X11/Xlib.h>
20495 #include <X11/extensions/readdisplay.h>
20497 rm -f conftest.$ac_objext
20498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20499 (eval $ac_compile) 2>conftest.er1
20501 grep -v '^ *+' conftest.er1 >conftest.err
20503 cat conftest.err >&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } &&
20506 { ac_try='test -z "$ac_c_werror_flag"
20507 || test ! -s conftest.err'
20508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20509 (eval $ac_try) 2>&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); }; } &&
20513 { ac_try='test -s conftest.$ac_objext'
20514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 (eval $ac_try) 2>&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; }; then
20519 ac_cv_header_X11_extensions_readdisplay_h=yes
20521 echo "$as_me: failed program was:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20524 ac_cv_header_X11_extensions_readdisplay_h=no
20526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20528 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_readdisplay_h" >&5
20529 echo "${ECHO_T}$ac_cv_header_X11_extensions_readdisplay_h" >&6
20530 if test $ac_cv_header_X11_extensions_readdisplay_h = yes; then
20531 cat >>confdefs.h <<\_ACEOF
20532 #define HAVE_READ_DISPLAY_EXTENSION 1
20538 CPPFLAGS="$ac_save_CPPFLAGS"
20539 elif test "$with_readdisplay" != no; then
20540 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
20545 ###############################################################################
20547 # Check for a program to generate random text.
20549 # Zippy is funnier than the idiocy generally spat out by `fortune',
20550 # so first see if "fortune zippy" works. Else, use plain "fortune".
20552 # We used to dig around in Emacs to look for the "yow" program, but
20553 # most people who have Emacs also have "fortune zippy", so nevermind.
20555 ###############################################################################
20557 with_fortune_req=""
20559 # Check whether --with-fortune or --without-fortune was given.
20560 if test "${with_fortune+set}" = set; then
20561 withval="$with_fortune"
20562 with_fortune_req="$withval"; with_fortune="$withval"
20567 if test "$with_fortune" = no || test "$with_fortune" = yes ; then
20569 with_fortune_req=""
20572 if test -n "$with_fortune_req" ; then
20573 ac_cv_fortune_program=""
20574 case "$with_fortune_req" in
20577 set dummy $with_fortune_req ; fortune_tmp=$2
20578 echo "$as_me:$LINENO: checking for $fortune_tmp" >&5
20579 echo $ECHO_N "checking for $fortune_tmp... $ECHO_C" >&6
20580 if test -x "$fortune_tmp" ; then
20581 echo "$as_me:$LINENO: result: yes" >&5
20582 echo "${ECHO_T}yes" >&6
20584 echo "$as_me:$LINENO: result: no" >&5
20585 echo "${ECHO_T}no" >&6
20590 set dummy $with_fortune_req ; fortune_tmp=$2
20592 unset ac_cv_path_fortune_tmp
20593 # Extract the first word of "$fortune_tmp", so it can be a program name with args.
20594 set dummy $fortune_tmp; ac_word=$2
20595 echo "$as_me:$LINENO: checking for $ac_word" >&5
20596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20597 if test "${ac_cv_path_fortune_tmp+set}" = set; then
20598 echo $ECHO_N "(cached) $ECHO_C" >&6
20600 case $fortune_tmp in
20602 ac_cv_path_fortune_tmp="$fortune_tmp" # Let the user override the test with a path.
20605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20606 for as_dir in $PATH
20609 test -z "$as_dir" && as_dir=.
20610 for ac_exec_ext in '' $ac_executable_extensions; do
20611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20612 ac_cv_path_fortune_tmp="$as_dir/$ac_word$ac_exec_ext"
20613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20622 fortune_tmp=$ac_cv_path_fortune_tmp
20624 if test -n "$fortune_tmp"; then
20625 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
20626 echo "${ECHO_T}$fortune_tmp" >&6
20628 echo "$as_me:$LINENO: result: no" >&5
20629 echo "${ECHO_T}no" >&6
20632 if test -z "$fortune_tmp" ; then
20637 ac_cv_fortune_program="$with_fortune"
20639 elif test -n "$ac_cv_fortune_program"; then
20640 echo "$as_me:$LINENO: result: checking for fortune... (cached) $ac_cv_fortune_program" >&5
20641 echo "${ECHO_T}checking for fortune... (cached) $ac_cv_fortune_program" >&6
20644 unset ac_cv_path_fortune_tmp
20647 if test -z "$ac_cv_fortune_program" ; then
20649 # first look for fortune in /usr/games/ (and use absolute path)
20650 for ac_prog in fortune
20652 # Extract the first word of "$ac_prog", so it can be a program name with args.
20653 set dummy $ac_prog; ac_word=$2
20654 echo "$as_me:$LINENO: checking for $ac_word" >&5
20655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20656 if test "${ac_cv_path_fortune_tmp+set}" = set; then
20657 echo $ECHO_N "(cached) $ECHO_C" >&6
20659 case $fortune_tmp in
20661 ac_cv_path_fortune_tmp="$fortune_tmp" # Let the user override the test with a path.
20664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20665 for as_dir in "/usr/games"
20668 test -z "$as_dir" && as_dir=.
20669 for ac_exec_ext in '' $ac_executable_extensions; do
20670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20671 ac_cv_path_fortune_tmp="$as_dir/$ac_word$ac_exec_ext"
20672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20681 fortune_tmp=$ac_cv_path_fortune_tmp
20683 if test -n "$fortune_tmp"; then
20684 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
20685 echo "${ECHO_T}$fortune_tmp" >&6
20687 echo "$as_me:$LINENO: result: no" >&5
20688 echo "${ECHO_T}no" >&6
20691 test -n "$fortune_tmp" && break
20695 # if it's not there, look on $PATH (and don't use absolute path)
20696 if test -z "$fortune_tmp" ; then
20697 for ac_prog in fortune
20699 # Extract the first word of "$ac_prog", so it can be a program name with args.
20700 set dummy $ac_prog; ac_word=$2
20701 echo "$as_me:$LINENO: checking for $ac_word" >&5
20702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20703 if test "${ac_cv_prog_fortune_tmp+set}" = set; then
20704 echo $ECHO_N "(cached) $ECHO_C" >&6
20706 if test -n "$fortune_tmp"; then
20707 ac_cv_prog_fortune_tmp="$fortune_tmp" # Let the user override the test.
20709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20710 for as_dir in $PATH
20713 test -z "$as_dir" && as_dir=.
20714 for ac_exec_ext in '' $ac_executable_extensions; do
20715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20716 ac_cv_prog_fortune_tmp="$ac_prog"
20717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20725 fortune_tmp=$ac_cv_prog_fortune_tmp
20726 if test -n "$fortune_tmp"; then
20727 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
20728 echo "${ECHO_T}$fortune_tmp" >&6
20730 echo "$as_me:$LINENO: result: no" >&5
20731 echo "${ECHO_T}no" >&6
20734 test -n "$fortune_tmp" && break
20739 # if we didn't find anything, then just assume /usr/games/
20740 if test -z "$fortune_tmp" ; then
20741 fortune_tmp="/usr/games/fortune"
20744 ac_cv_fortune_program="$fortune_tmp"
20746 # now check to see whether "fortune zippy" works.
20748 fortune_tmp="$fortune_tmp zippy"
20749 echo "$as_me:$LINENO: checking for zippy quotes" >&5
20750 echo $ECHO_N "checking for zippy quotes... $ECHO_C" >&6
20751 if ( $fortune_tmp >/dev/null 2>&1 ); then
20752 ac_cv_fortune_program="$fortune_tmp"
20753 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
20754 echo "${ECHO_T}$fortune_tmp" >&6
20756 echo "$as_me:$LINENO: result: no" >&5
20757 echo "${ECHO_T}no" >&6
20762 unset ac_cv_path_fortune_tmp
20765 cat >>confdefs.h <<_ACEOF
20766 #define FORTUNE_PROGRAM "$ac_cv_fortune_program"
20771 ###############################################################################
20773 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
20774 # This should be safe, but let's give people the option.
20776 ###############################################################################
20778 setuid_hacks_default=no
20779 setuid_hacks="$setuid_hacks_default"
20781 # Check whether --with-setuid-hacks or --without-setuid-hacks was given.
20782 if test "${with_setuid_hacks+set}" = set; then
20783 withval="$with_setuid_hacks"
20784 setuid_hacks="$withval"
20786 setuid_hacks="$setuid_hacks_default"
20790 case "$setuid_hacks" in
20795 echo "$as_me:$LINENO: checking for setuid hacks headers" >&5
20796 echo $ECHO_N "checking for setuid hacks headers... $ECHO_C" >&6
20797 d=$setuid_hacks/include
20798 if test -d $d; then
20799 X_CFLAGS="-I$d $X_CFLAGS"
20800 echo "$as_me:$LINENO: result: $d" >&5
20801 echo "${ECHO_T}$d" >&6
20803 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20804 echo "${ECHO_T}not found ($d: no such directory)" >&6
20807 echo "$as_me:$LINENO: checking for setuid hacks libs" >&5
20808 echo $ECHO_N "checking for setuid hacks libs... $ECHO_C" >&6
20809 d=$setuid_hacks/lib
20810 if test -d $d; then
20811 X_LIBS="-L$d $X_LIBS"
20812 echo "$as_me:$LINENO: result: $d" >&5
20813 echo "${ECHO_T}$d" >&6
20815 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
20816 echo "${ECHO_T}not found ($d: no such directory)" >&6
20819 # replace the directory string with "yes".
20820 setuid_hacks_req="yes"
20821 setuid_hacks=$setuid_hacks_req
20826 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
20827 echo " If it is a directory, then \`DIR/include' will be added to"
20828 echo " the -I list, and \`DIR/lib' will be added to the -L list."
20834 if test "$setuid_hacks" = yes; then
20836 elif test "$setuid_hacks" != no; then
20837 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
20842 ###############################################################################
20844 # Done testing. Now, set up the various -I and -L variables,
20845 # and decide which GUI program to build by default.
20847 ###############################################################################
20854 if test \! -z "$includedir" ; then
20855 INCLUDES="$INCLUDES -I$includedir"
20858 if test \! -z "$libdir" ; then
20859 LDFLAGS="$LDFLAGS -L$libdir"
20863 PREFERRED_DEMO_PROGRAM=''
20865 if test "$have_motif" = yes; then
20866 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
20867 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
20869 if test "$have_gtk" = yes; then
20870 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
20871 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
20875 if test "$have_kerberos" = yes; then
20876 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
20877 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
20879 if test "$have_pam" = yes; then
20880 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
20881 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
20882 INSTALL_PAM="install-pam"
20884 if test "$have_passwd_helper" = yes; then
20885 PASSWD_SRCS="$PASSWD_SRCS \$(PWHELPER_SRCS)"
20886 PASSWD_OBJS="$PASSWD_OBJS \$(PWHELPER_OBJS)"
20888 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
20889 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
20892 if test "$enable_locking" = yes; then
20893 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
20894 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
20896 LOCK_SRCS='$(NOLOCK_SRCS_1)'
20897 LOCK_OBJS='$(NOLOCK_OBJS_1)'
20900 if test "$ac_macosx" = yes; then
20901 EXES_OSX='$(EXES_OSX)'
20902 SCRIPTS_OSX='$(SCRIPTS_OSX)'
20903 MEN_OSX='$(MEN_OSX)'
20911 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
20913 if test "$need_setuid" = yes; then
20919 if test "$setuid_hacks" = yes; then
20926 if test "$have_gl" = yes; then
20927 GL_EXES='$(GL_EXES)'
20928 GL_UTIL_EXES='$(GL_UTIL_EXES)'
20930 GL_KLUDGE="${tab} "
20932 GL_KLUDGE="-${tab} "
20935 if test "$have_gle" = yes; then
20936 GLE_EXES='$(GLE_EXES)'
20937 GLE_KLUDGE="${tab} "
20939 GLE_KLUDGE="-${tab} "
20942 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
20943 JPEG_EXES='$(JPEG_EXES)'
20947 # Another substitution in the XScreenSaver.ad.in file:
20949 if test "$have_gnome_help" = yes; then
20958 # Now that we know whether we have Gnome, we can decide where the XML
20959 # config files get installed.
20961 if test -z "$HACK_CONF_DIR" ; then
20962 if test -n "$GNOME_DATADIR" ; then
20963 HACK_CONF_DIR='${GNOME_DATADIR}/control-center/screensavers'
20965 HACK_CONF_DIR='${prefix}/lib/xscreensaver/config'
20971 # After computing $HACK_CONF_DIR, make sure $GLADE_DATADIR has a value
20972 # so that we know where to install the Gtk pixmaps.
20974 # It should usually be "/usr/share/pixmaps/", but we can't just use
20975 # "$(prefix)/share/pixmaps" because that would usually result in
20976 # "/usr/X11R6/share/pixmaps/", which is wrong. It needs to be the
20977 # Gnome/Gtk prefix, not the overall prefix.
20979 if test -n "$GNOME_DATADIR" ; then
20980 GLADE_DATADIR='$(GNOME_DATADIR)/xscreensaver'
20981 elif test "$have_gtk" = yes; then
20982 if test -n "$pkg_config"; then
20983 if test "$have_gtk2" = yes; then
20984 GLADE_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
20986 GLADE_DATADIR=`$pkg_config --variable=prefix gtk+`
20989 GLADE_DATADIR=`$gtk_config --prefix`
20991 GLADE_DATADIR="$GLADE_DATADIR/share/xscreensaver"
20997 # Set PO_DATADIR to something sensible.
20999 echo "$as_me:$LINENO: checking for locale directory" >&5
21000 echo $ECHO_N "checking for locale directory... $ECHO_C" >&6
21001 if test -n "$GNOME_DATADIR" ; then
21002 PO_DATADIR="$GNOME_DATADIR"
21003 elif test "$have_gtk" = yes; then
21004 if test -n "$pkg_config"; then
21005 if test "$have_gtk2" = yes; then
21006 PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
21008 PO_DATADIR=`$pkg_config --variable=prefix gtk+`
21011 PO_DATADIR=`$gtk_config --prefix`
21013 PO_DATADIR="$PO_DATADIR/share"
21016 if test -z "$PO_DATADIR" ; then
21018 # #### Total fucking kludge --
21019 # Map /build/prefix/usr/X11R6/share/ to /build/prefix/usr/share/
21020 # but of course we need to expand all the nested variables to do that...
21028 PO_DATADIR=`echo $dd | sed 's@/X11R6/@/@'`
21031 echo "$as_me:$LINENO: result: $PO_DATADIR/locale" >&5
21032 echo "${ECHO_T}$PO_DATADIR/locale" >&6
21035 # canonicalize slashes.
21036 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
21038 # gcc 3.0 likes to issue this warning for every file:
21040 # cc1: warning: changing search order for system directory "/usr/local/include"
21041 # cc1: warning: as it has already been specified as a non-system directory
21043 # Yay. We can only avoid that by deleting "-I${prefix}/include" from the list.
21044 # Which *should* be totally redundant, and thus an ok thing to delete?
21046 INCLUDES=`echo "$INCLUDES" | sed 's@ -I${prefix}/include@@g;'`
21049 ###############################################################################
21051 # Perform substitutions and write Makefiles.
21053 ###############################################################################
21109 APPDEFAULTS=$ac_x_app_defaults
21117 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"
21118 cat >confcache <<\_ACEOF
21119 # This file is a shell script that caches the results of configure
21120 # tests run on this system so they can be shared between configure
21121 # scripts and configure runs, see configure's option --config-cache.
21122 # It is not useful on other systems. If it contains results you don't
21123 # want to keep, you may remove or edit it.
21125 # config.status only pays attention to the cache file if you give it
21126 # the --recheck option to rerun configure.
21128 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21129 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21130 # following values.
21134 # The following way of writing the cache mishandles newlines in values,
21135 # but we know of no workaround that is simple, portable, and efficient.
21136 # So, don't put newlines in cache variables' values.
21137 # Ultrix sh set writes to stderr and can't be redirected directly,
21138 # and sets the high bit in the cache file unless we assign to the vars.
21141 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21143 # `set' does not quote correctly, so add quotes (double-quote
21144 # substitution turns \\\\ into \\, and sed turns \\ into \).
21147 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21150 # `set' quotes correctly as required by POSIX, so do not add quotes.
21152 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21159 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21161 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21163 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21164 if test -w $cache_file; then
21165 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21166 cat confcache >$cache_file
21168 echo "not updating unwritable cache $cache_file"
21173 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21174 # Let make expand exec_prefix.
21175 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21177 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21178 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21179 # trailing colons and then remove the whole line if VPATH becomes empty
21180 # (actually we leave an empty line to preserve line numbers).
21181 if test "x$srcdir" = x.; then
21182 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21183 s/:*\$(srcdir):*/:/;
21184 s/:*\${srcdir}:*/:/;
21186 s/^\([^=]*=[ ]*\):*/\1/;
21192 DEFS=-DHAVE_CONFIG_H
21196 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21197 # 1. Remove the extension, and $U if already installed.
21198 ac_i=`echo "$ac_i" |
21199 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21201 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21202 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21204 LIBOBJS=$ac_libobjs
21206 LTLIBOBJS=$ac_ltlibobjs
21211 mv -f po/POTFILES po/POTFILES.tmp
21212 sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
21213 rm -f po/POTFILES.tmp
21217 : ${CONFIG_STATUS=./config.status}
21218 ac_clean_files_save=$ac_clean_files
21219 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21220 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21221 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21222 cat >$CONFIG_STATUS <<_ACEOF
21224 # Generated by $as_me.
21225 # Run this file to recreate the current configuration.
21226 # Compiler output produced by configure, useful for debugging
21227 # configure, is in config.log if it exists.
21230 ac_cs_recheck=false
21232 SHELL=\${CONFIG_SHELL-$SHELL}
21235 cat >>$CONFIG_STATUS <<\_ACEOF
21236 ## --------------------- ##
21237 ## M4sh Initialization. ##
21238 ## --------------------- ##
21240 # Be Bourne compatible
21241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21245 # is contrary to our usage. Disable this feature.
21246 alias -g '${1+"$@"}'='"$@"'
21247 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21250 DUALCASE=1; export DUALCASE # for MKS sh
21252 # Support unset when possible.
21253 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21260 # Work around bugs in pre-3.0 UWIN ksh.
21261 $as_unset ENV MAIL MAILPATH
21268 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21269 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21270 LC_TELEPHONE LC_TIME
21272 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21273 eval $as_var=C; export $as_var
21279 # Required to use basename.
21280 if expr a : '\(a\)' >/dev/null 2>&1; then
21286 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21287 as_basename=basename
21293 # Name of the executable.
21294 as_me=`$as_basename "$0" ||
21295 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21296 X"$0" : 'X\(//\)$' \| \
21297 X"$0" : 'X\(/\)$' \| \
21298 . : '\(.\)' 2>/dev/null ||
21300 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21301 /^X\/\(\/\/\)$/{ s//\1/; q; }
21302 /^X\/\(\/\).*/{ s//\1/; q; }
21306 # PATH needs CR, and LINENO needs CR and PATH.
21307 # Avoid depending upon Character Ranges.
21308 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21309 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21310 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21311 as_cr_digits='0123456789'
21312 as_cr_alnum=$as_cr_Letters$as_cr_digits
21314 # The user is always right.
21315 if test "${PATH_SEPARATOR+set}" != set; then
21316 echo "#! /bin/sh" >conf$$.sh
21317 echo "exit 0" >>conf$$.sh
21319 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21328 as_lineno_1=$LINENO
21329 as_lineno_2=$LINENO
21330 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21331 test "x$as_lineno_1" != "x$as_lineno_2" &&
21332 test "x$as_lineno_3" = "x$as_lineno_2" || {
21333 # Find who we are. Look in the path if we contain no path at all
21336 *[\\/]* ) as_myself=$0 ;;
21337 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21338 for as_dir in $PATH
21341 test -z "$as_dir" && as_dir=.
21342 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21347 # We did not find ourselves, most probably we were run as `sh COMMAND'
21348 # in which case we are not to be found in the path.
21349 if test "x$as_myself" = x; then
21352 if test ! -f "$as_myself"; then
21353 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21354 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21355 { (exit 1); exit 1; }; }
21357 case $CONFIG_SHELL in
21359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21360 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21363 test -z "$as_dir" && as_dir=.
21364 for as_base in sh bash ksh sh5; do
21367 if ("$as_dir/$as_base" -c '
21368 as_lineno_1=$LINENO
21369 as_lineno_2=$LINENO
21370 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21371 test "x$as_lineno_1" != "x$as_lineno_2" &&
21372 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21373 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21374 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21375 CONFIG_SHELL=$as_dir/$as_base
21376 export CONFIG_SHELL
21377 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21385 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21386 # uniformly replaced by the line number. The first 'sed' inserts a
21387 # line-number line before each line; the second 'sed' does the real
21388 # work. The second script uses 'N' to pair each line-number line
21389 # with the numbered line, and appends trailing '-' during
21390 # substitution so that $LINENO is not a special case at line end.
21391 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21392 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21393 sed '=' <$as_myself |
21398 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21401 s,^['$as_cr_digits']*\n,,
21402 ' >$as_me.lineno &&
21403 chmod +x $as_me.lineno ||
21404 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21405 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21406 { (exit 1); exit 1; }; }
21408 # Don't try to exec as it changes $[0], causing all sort of problems
21409 # (the dirname of $[0] is not the place where we might find the
21410 # original and so on. Autoconf is especially sensible to this).
21412 # Exit status is that of the last command.
21417 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21418 *c*,-n*) ECHO_N= ECHO_C='
21420 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21421 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21424 if expr a : '\(a\)' >/dev/null 2>&1; then
21430 rm -f conf$$ conf$$.exe conf$$.file
21432 if ln -s conf$$.file conf$$ 2>/dev/null; then
21433 # We could just check for DJGPP; but this test a) works b) is more generic
21434 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21435 if test -f conf$$.exe; then
21436 # Don't use ln at all; we don't have any links
21441 elif ln conf$$.file conf$$ 2>/dev/null; then
21446 rm -f conf$$ conf$$.exe conf$$.file
21448 if mkdir -p . 2>/dev/null; then
21451 test -d ./-p && rmdir ./-p
21455 as_executable_p="test -f"
21457 # Sed expression to map a string onto a valid CPP name.
21458 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21460 # Sed expression to map a string onto a valid variable name.
21461 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21465 # We need space, tab and new line, in precisely that order.
21475 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21476 # report actual input values of CONFIG_FILES etc. instead of their
21477 # values after options handling. Logging --version etc. is OK.
21481 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21482 ## Running $as_me. ##
21487 This file was extended by $as_me, which was
21488 generated by GNU Autoconf 2.59. Invocation command line was
21490 CONFIG_FILES = $CONFIG_FILES
21491 CONFIG_HEADERS = $CONFIG_HEADERS
21492 CONFIG_LINKS = $CONFIG_LINKS
21493 CONFIG_COMMANDS = $CONFIG_COMMANDS
21497 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21501 # Files that config.status was made for.
21502 if test -n "$ac_config_files"; then
21503 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21506 if test -n "$ac_config_headers"; then
21507 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21510 if test -n "$ac_config_links"; then
21511 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21514 if test -n "$ac_config_commands"; then
21515 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21518 cat >>$CONFIG_STATUS <<\_ACEOF
21521 \`$as_me' instantiates files from templates according to the
21522 current configuration.
21524 Usage: $0 [OPTIONS] [FILE]...
21526 -h, --help print this help, then exit
21527 -V, --version print version number, then exit
21528 -q, --quiet do not print progress messages
21529 -d, --debug don't remove temporary files
21530 --recheck update $as_me by reconfiguring in the same conditions
21531 --file=FILE[:TEMPLATE]
21532 instantiate the configuration file FILE
21533 --header=FILE[:TEMPLATE]
21534 instantiate the configuration header FILE
21536 Configuration files:
21539 Configuration headers:
21542 Configuration commands:
21545 Report bugs to <bug-autoconf@gnu.org>."
21548 cat >>$CONFIG_STATUS <<_ACEOF
21551 configured by $0, generated by GNU Autoconf 2.59,
21552 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21554 Copyright (C) 2003 Free Software Foundation, Inc.
21555 This config.status script is free software; the Free Software Foundation
21556 gives unlimited permission to copy, distribute and modify it."
21561 cat >>$CONFIG_STATUS <<\_ACEOF
21562 # If no file are specified by the user, then we need to provide default
21563 # value. By we need to know if files were specified by the user.
21569 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21570 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21578 *) # This is not an option, so the user has probably given explicit
21581 ac_need_defaults=false;;
21585 # Handling of the options.
21587 cat >>$CONFIG_STATUS <<\_ACEOF
21588 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21590 --version | --vers* | -V )
21591 echo "$ac_cs_version"; exit 0 ;;
21593 # Conflict between --help and --header
21594 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21595 Try \`$0 --help' for more information." >&5
21596 echo "$as_me: error: ambiguous option: $1
21597 Try \`$0 --help' for more information." >&2;}
21598 { (exit 1); exit 1; }; };;
21599 --help | --hel | -h )
21600 echo "$ac_cs_usage"; exit 0 ;;
21601 --debug | --d* | -d )
21603 --file | --fil | --fi | --f )
21605 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21606 ac_need_defaults=false;;
21607 --header | --heade | --head | --hea )
21609 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21610 ac_need_defaults=false;;
21611 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21612 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21615 # This is an error.
21616 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21617 Try \`$0 --help' for more information." >&5
21618 echo "$as_me: error: unrecognized option: $1
21619 Try \`$0 --help' for more information." >&2;}
21620 { (exit 1); exit 1; }; } ;;
21622 *) ac_config_targets="$ac_config_targets $1" ;;
21628 ac_configure_extra_args=
21630 if $ac_cs_silent; then
21632 ac_configure_extra_args="$ac_configure_extra_args --silent"
21636 cat >>$CONFIG_STATUS <<_ACEOF
21637 if \$ac_cs_recheck; then
21638 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21639 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21644 cat >>$CONFIG_STATUS <<_ACEOF
21646 # INIT-COMMANDS section.
21649 INTLTOOL_PERL=${INTLTOOL_PERL}
21656 cat >>$CONFIG_STATUS <<\_ACEOF
21657 for ac_config_target in $ac_config_targets
21659 case "$ac_config_target" in
21660 # Handling of arguments.
21661 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21662 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
21663 "driver/Makefile" ) CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
21664 "hacks/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
21665 "hacks/glx/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
21666 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21667 "driver/XScreenSaver.ad" ) CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
21668 "driver/xscreensaver.kss" ) CONFIG_FILES="$CONFIG_FILES driver/xscreensaver.kss" ;;
21669 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21670 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
21671 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21672 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21673 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21674 { (exit 1); exit 1; }; };;
21678 # If the user did not use the arguments to specify the items to instantiate,
21679 # then the envvar interface is used. Set only those that are not.
21680 # We use the long form for the default assignment because of an extremely
21681 # bizarre bug on SunOS 4.1.3.
21682 if $ac_need_defaults; then
21683 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21684 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21685 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21688 # Have a temporary directory for convenience. Make it in the build tree
21689 # simply because there is no reason to put it here, and in addition,
21690 # creating and moving files from /tmp can sometimes cause problems.
21691 # Create a temporary directory, and hook for its removal unless debugging.
21694 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21695 trap '{ (exit 1); exit 1; }' 1 2 13 15
21698 # Create a (secure) tmp directory for tmp files.
21701 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21702 test -n "$tmp" && test -d "$tmp"
21705 tmp=./confstat$$-$RANDOM
21706 (umask 077 && mkdir $tmp)
21709 echo "$me: cannot create a temporary directory in ." >&2
21710 { (exit 1); exit 1; }
21715 cat >>$CONFIG_STATUS <<_ACEOF
21718 # CONFIG_FILES section.
21721 # No need to generate the scripts if there are no CONFIG_FILES.
21722 # This happens for instance when ./config.status config.h
21723 if test -n "\$CONFIG_FILES"; then
21724 # Protect against being on the right side of a sed subst in config.status.
21725 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21726 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21727 s,@SHELL@,$SHELL,;t t
21728 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21729 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21730 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21731 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21732 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21733 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21734 s,@exec_prefix@,$exec_prefix,;t t
21735 s,@prefix@,$prefix,;t t
21736 s,@program_transform_name@,$program_transform_name,;t t
21737 s,@bindir@,$bindir,;t t
21738 s,@sbindir@,$sbindir,;t t
21739 s,@libexecdir@,$libexecdir,;t t
21740 s,@datadir@,$datadir,;t t
21741 s,@sysconfdir@,$sysconfdir,;t t
21742 s,@sharedstatedir@,$sharedstatedir,;t t
21743 s,@localstatedir@,$localstatedir,;t t
21744 s,@libdir@,$libdir,;t t
21745 s,@includedir@,$includedir,;t t
21746 s,@oldincludedir@,$oldincludedir,;t t
21747 s,@infodir@,$infodir,;t t
21748 s,@mandir@,$mandir,;t t
21749 s,@build_alias@,$build_alias,;t t
21750 s,@host_alias@,$host_alias,;t t
21751 s,@target_alias@,$target_alias,;t t
21752 s,@DEFS@,$DEFS,;t t
21753 s,@ECHO_C@,$ECHO_C,;t t
21754 s,@ECHO_N@,$ECHO_N,;t t
21755 s,@ECHO_T@,$ECHO_T,;t t
21756 s,@LIBS@,$LIBS,;t t
21757 s,@build@,$build,;t t
21758 s,@build_cpu@,$build_cpu,;t t
21759 s,@build_vendor@,$build_vendor,;t t
21760 s,@build_os@,$build_os,;t t
21761 s,@host@,$host,;t t
21762 s,@host_cpu@,$host_cpu,;t t
21763 s,@host_vendor@,$host_vendor,;t t
21764 s,@host_os@,$host_os,;t t
21766 s,@CFLAGS@,$CFLAGS,;t t
21767 s,@LDFLAGS@,$LDFLAGS,;t t
21768 s,@CPPFLAGS@,$CPPFLAGS,;t t
21769 s,@ac_ct_CC@,$ac_ct_CC,;t t
21770 s,@EXEEXT@,$EXEEXT,;t t
21771 s,@OBJEXT@,$OBJEXT,;t t
21773 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21774 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21775 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21776 s,@SET_MAKE@,$SET_MAKE,;t t
21777 s,@EGREP@,$EGREP,;t t
21778 s,@PERL@,$PERL,;t t
21779 s,@X_CFLAGS@,$X_CFLAGS,;t t
21780 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21781 s,@X_LIBS@,$X_LIBS,;t t
21782 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21783 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
21784 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
21785 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
21786 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
21787 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
21788 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
21789 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
21790 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
21791 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
21792 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
21793 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
21794 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
21795 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
21796 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
21797 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
21798 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
21799 s,@RANLIB@,$RANLIB,;t t
21800 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21801 s,@ALLOCA@,$ALLOCA,;t t
21802 s,@USE_NLS@,$USE_NLS,;t t
21803 s,@MSGFMT@,$MSGFMT,;t t
21804 s,@GMSGFMT@,$GMSGFMT,;t t
21805 s,@XGETTEXT@,$XGETTEXT,;t t
21806 s,@CATALOGS@,$CATALOGS,;t t
21807 s,@CATOBJEXT@,$CATOBJEXT,;t t
21808 s,@DATADIRNAME@,$DATADIRNAME,;t t
21809 s,@GMOFILES@,$GMOFILES,;t t
21810 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21811 s,@INTLDEPS@,$INTLDEPS,;t t
21812 s,@INTLLIBS@,$INTLLIBS,;t t
21813 s,@INTLOBJS@,$INTLOBJS,;t t
21814 s,@POFILES@,$POFILES,;t t
21815 s,@POSUB@,$POSUB,;t t
21816 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
21817 s,@pkg_config@,$pkg_config,;t t
21818 s,@glib_config@,$glib_config,;t t
21819 s,@gtk_config@,$gtk_config,;t t
21820 s,@gnome_config@,$gnome_config,;t t
21821 s,@have_gnome_help@,$have_gnome_help,;t t
21822 s,@xml_config@,$xml_config,;t t
21823 s,@gdk_pixbuf_config@,$gdk_pixbuf_config,;t t
21824 s,@fortune_tmp@,$fortune_tmp,;t t
21825 s,@INCLUDES@,$INCLUDES,;t t
21826 s,@PREFERRED_DEMO_PROGRAM@,$PREFERRED_DEMO_PROGRAM,;t t
21827 s,@ALL_DEMO_PROGRAMS@,$ALL_DEMO_PROGRAMS,;t t
21828 s,@SAVER_LIBS@,$SAVER_LIBS,;t t
21829 s,@MOTIF_LIBS@,$MOTIF_LIBS,;t t
21830 s,@GTK_LIBS@,$GTK_LIBS,;t t
21831 s,@XML_LIBS@,$XML_LIBS,;t t
21832 s,@JPEG_LIBS@,$JPEG_LIBS,;t t
21833 s,@HACK_LIBS@,$HACK_LIBS,;t t
21834 s,@XPM_LIBS@,$XPM_LIBS,;t t
21835 s,@PTY_LIBS@,$PTY_LIBS,;t t
21836 s,@GL_LIBS@,$GL_LIBS,;t t
21837 s,@GLE_LIBS@,$GLE_LIBS,;t t
21838 s,@XDPMS_LIBS@,$XDPMS_LIBS,;t t
21839 s,@PASSWD_LIBS@,$PASSWD_LIBS,;t t
21840 s,@INSTALL_SETUID@,$INSTALL_SETUID,;t t
21841 s,@SETUID_HACKS@,$SETUID_HACKS,;t t
21842 s,@INSTALL_DIRS@,$INSTALL_DIRS,;t t
21843 s,@NEED_SETUID@,$NEED_SETUID,;t t
21844 s,@INSTALL_PAM@,$INSTALL_PAM,;t t
21845 s,@OBJCC@,$OBJCC,;t t
21846 s,@EXES_OSX@,$EXES_OSX,;t t
21847 s,@SCRIPTS_OSX@,$SCRIPTS_OSX,;t t
21848 s,@MEN_OSX@,$MEN_OSX,;t t
21849 s,@PASSWD_SRCS@,$PASSWD_SRCS,;t t
21850 s,@PASSWD_OBJS@,$PASSWD_OBJS,;t t
21851 s,@XMU_SRCS@,$XMU_SRCS,;t t
21852 s,@XMU_OBJS@,$XMU_OBJS,;t t
21853 s,@XMU_LIBS@,$XMU_LIBS,;t t
21854 s,@SAVER_GL_SRCS@,$SAVER_GL_SRCS,;t t
21855 s,@SAVER_GL_OBJS@,$SAVER_GL_OBJS,;t t
21856 s,@SAVER_GL_LIBS@,$SAVER_GL_LIBS,;t t
21857 s,@LOCK_SRCS@,$LOCK_SRCS,;t t
21858 s,@LOCK_OBJS@,$LOCK_OBJS,;t t
21859 s,@JPEG_EXES@,$JPEG_EXES,;t t
21860 s,@GL_EXES@,$GL_EXES,;t t
21861 s,@GL_UTIL_EXES@,$GL_UTIL_EXES,;t t
21862 s,@GL_MEN@,$GL_MEN,;t t
21863 s,@GL_KLUDGE@,$GL_KLUDGE,;t t
21864 s,@GLE_EXES@,$GLE_EXES,;t t
21865 s,@GLE_KLUDGE@,$GLE_KLUDGE,;t t
21866 s,@GNOMEHELP_Y@,$GNOMEHELP_Y,;t t
21867 s,@GNOMEHELP_N@,$GNOMEHELP_N,;t t
21868 s,@HACKDIR@,$HACKDIR,;t t
21869 s,@GNOME_DATADIR@,$GNOME_DATADIR,;t t
21870 s,@GLADE_DATADIR@,$GLADE_DATADIR,;t t
21871 s,@PO_DATADIR@,$PO_DATADIR,;t t
21872 s,@GNOME_PANELDIR@,$GNOME_PANELDIR,;t t
21873 s,@HACK_CONF_DIR@,$HACK_CONF_DIR,;t t
21874 s,@GTK_EXTRA_OBJS@,$GTK_EXTRA_OBJS,;t t
21875 s,@APPDEFAULTS@,$APPDEFAULTS,;t t
21876 s,@DEPEND@,$DEPEND,;t t
21877 s,@DEPEND_FLAGS@,$DEPEND_FLAGS,;t t
21878 s,@DEPEND_DEFINES@,$DEPEND_DEFINES,;t t
21879 s,@LIBOBJS@,$LIBOBJS,;t t
21880 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21885 cat >>$CONFIG_STATUS <<\_ACEOF
21886 # Split the substitutions into bite-sized pieces for seds with
21887 # small command number limits, like on Digital OSF/1 and HP-UX.
21888 ac_max_sed_lines=48
21889 ac_sed_frag=1 # Number of current file.
21890 ac_beg=1 # First line for current file.
21891 ac_end=$ac_max_sed_lines # Line after last line for current file.
21894 while $ac_more_lines; do
21895 if test $ac_beg -gt 1; then
21896 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21898 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21900 if test ! -s $tmp/subs.frag; then
21901 ac_more_lines=false
21903 # The purpose of the label and of the branching condition is to
21904 # speed up the sed processing (if there are no `@' at all, there
21905 # is no need to browse any of the substitutions).
21906 # These are the two extra sed commands mentioned above.
21908 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21909 if test -z "$ac_sed_cmds"; then
21910 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21912 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21914 ac_sed_frag=`expr $ac_sed_frag + 1`
21916 ac_end=`expr $ac_end + $ac_max_sed_lines`
21919 if test -z "$ac_sed_cmds"; then
21922 fi # test -n "$CONFIG_FILES"
21925 cat >>$CONFIG_STATUS <<\_ACEOF
21926 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21927 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21929 - | *:- | *:-:* ) # input from stdin
21931 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21932 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21933 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21934 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21935 * ) ac_file_in=$ac_file.in ;;
21938 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21939 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21940 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21941 X"$ac_file" : 'X\(//\)[^/]' \| \
21942 X"$ac_file" : 'X\(//\)$' \| \
21943 X"$ac_file" : 'X\(/\)' \| \
21944 . : '\(.\)' 2>/dev/null ||
21946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21947 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21948 /^X\(\/\/\)$/{ s//\1/; q; }
21949 /^X\(\/\).*/{ s//\1/; q; }
21951 { if $as_mkdir_p; then
21956 while test ! -d "$as_dir"; do
21957 as_dirs="$as_dir $as_dirs"
21958 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21959 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21960 X"$as_dir" : 'X\(//\)[^/]' \| \
21961 X"$as_dir" : 'X\(//\)$' \| \
21962 X"$as_dir" : 'X\(/\)' \| \
21963 . : '\(.\)' 2>/dev/null ||
21965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21967 /^X\(\/\/\)$/{ s//\1/; q; }
21968 /^X\(\/\).*/{ s//\1/; q; }
21971 test ! -n "$as_dirs" || mkdir $as_dirs
21972 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21973 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21974 { (exit 1); exit 1; }; }; }
21978 if test "$ac_dir" != .; then
21979 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21980 # A "../" for each directory in $ac_dir_suffix.
21981 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21983 ac_dir_suffix= ac_top_builddir=
21987 .) # No --srcdir option. We are building in place.
21989 if test -z "$ac_top_builddir"; then
21992 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21994 [\\/]* | ?:[\\/]* ) # Absolute path.
21995 ac_srcdir=$srcdir$ac_dir_suffix;
21996 ac_top_srcdir=$srcdir ;;
21997 *) # Relative path.
21998 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21999 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22002 # Do not use `cd foo && pwd` to compute absolute paths, because
22003 # the directories may not exist.
22005 .) ac_abs_builddir="$ac_dir";;
22008 .) ac_abs_builddir=`pwd`;;
22009 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22010 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22013 case $ac_abs_builddir in
22014 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22016 case ${ac_top_builddir}. in
22017 .) ac_abs_top_builddir=$ac_abs_builddir;;
22018 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22019 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22022 case $ac_abs_builddir in
22023 .) ac_abs_srcdir=$ac_srcdir;;
22026 .) ac_abs_srcdir=$ac_abs_builddir;;
22027 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22028 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22031 case $ac_abs_builddir in
22032 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22034 case $ac_top_srcdir in
22035 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22036 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22037 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22043 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22044 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22047 if test x"$ac_file" != x-; then
22048 { echo "$as_me:$LINENO: creating $ac_file" >&5
22049 echo "$as_me: creating $ac_file" >&6;}
22052 # Let's still pretend it is `configure' which instantiates (i.e., don't
22053 # use $as_me), people would be surprised to read:
22054 # /* config.h. Generated by config.status. */
22055 if test x"$ac_file" = x-; then
22058 configure_input="$ac_file. "
22060 configure_input=$configure_input"Generated from `echo $ac_file_in |
22061 sed 's,.*/,,'` by configure."
22063 # First look for the input files in the build tree, otherwise in the
22065 ac_file_inputs=`IFS=:
22066 for f in $ac_file_in; do
22068 -) echo $tmp/stdin ;;
22070 # Absolute (can't be DOS-style, as IFS=:)
22071 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22072 echo "$as_me: error: cannot find input file: $f" >&2;}
22073 { (exit 1); exit 1; }; }
22076 if test -f "$f"; then
22079 elif test -f "$srcdir/$f"; then
22084 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22085 echo "$as_me: error: cannot find input file: $f" >&2;}
22086 { (exit 1); exit 1; }; }
22089 done` || { (exit 1); exit 1; }
22091 cat >>$CONFIG_STATUS <<_ACEOF
22095 cat >>$CONFIG_STATUS <<\_ACEOF
22097 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22098 s,@configure_input@,$configure_input,;t t
22099 s,@srcdir@,$ac_srcdir,;t t
22100 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22101 s,@top_srcdir@,$ac_top_srcdir,;t t
22102 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22103 s,@builddir@,$ac_builddir,;t t
22104 s,@abs_builddir@,$ac_abs_builddir,;t t
22105 s,@top_builddir@,$ac_top_builddir,;t t
22106 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22107 s,@INSTALL@,$ac_INSTALL,;t t
22108 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22110 if test x"$ac_file" != x-; then
22111 mv $tmp/out $ac_file
22119 cat >>$CONFIG_STATUS <<\_ACEOF
22122 # CONFIG_HEADER section.
22125 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22126 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22128 # ac_d sets the value in "#define NAME VALUE" lines.
22129 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22130 ac_dB='[ ].*$,\1#\2'
22133 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22134 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22135 ac_uB='$,\1#\2define\3'
22139 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22140 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22142 - | *:- | *:-:* ) # input from stdin
22144 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22145 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22146 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22147 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22148 * ) ac_file_in=$ac_file.in ;;
22151 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22152 echo "$as_me: creating $ac_file" >&6;}
22154 # First look for the input files in the build tree, otherwise in the
22156 ac_file_inputs=`IFS=:
22157 for f in $ac_file_in; do
22159 -) echo $tmp/stdin ;;
22161 # Absolute (can't be DOS-style, as IFS=:)
22162 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22163 echo "$as_me: error: cannot find input file: $f" >&2;}
22164 { (exit 1); exit 1; }; }
22165 # Do quote $f, to prevent DOS paths from being IFS'd.
22168 if test -f "$f"; then
22171 elif test -f "$srcdir/$f"; then
22176 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22177 echo "$as_me: error: cannot find input file: $f" >&2;}
22178 { (exit 1); exit 1; }; }
22181 done` || { (exit 1); exit 1; }
22182 # Remove the trailing spaces.
22183 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22187 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22188 # `conftest.undefs', that substitutes the proper values into
22189 # config.h.in to produce config.h. The first handles `#define'
22190 # templates, and the second `#undef' templates.
22191 # And first: Protect against being on the right side of a sed subst in
22192 # config.status. Protect against being in an unquoted here document
22193 # in config.status.
22194 rm -f conftest.defines conftest.undefs
22195 # Using a here document instead of a string reduces the quoting nightmare.
22196 # Putting comments in sed scripts is not portable.
22198 # `end' is used to avoid that the second main sed command (meant for
22199 # 0-ary CPP macros) applies to n-ary macro definitions.
22200 # See the Autoconf documentation for `clear'.
22201 cat >confdef2sed.sed <<\_ACEOF
22206 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22208 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22211 # If some macros were called several times there might be several times
22212 # the same #defines, which is useless. Nevertheless, we may not want to
22213 # sort them, since we want the *last* AC-DEFINE to be honored.
22214 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22215 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22216 rm -f confdef2sed.sed
22218 # This sed command replaces #undef with comments. This is necessary, for
22219 # example, in the case of _POSIX_SOURCE, which is predefined and required
22220 # on some systems where configure will not decide to define it.
22221 cat >>conftest.undefs <<\_ACEOF
22222 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22225 # Break up conftest.defines because some shells have a limit on the size
22226 # of here documents, and old seds have small limits too (100 cmds).
22227 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22228 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22229 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22230 echo ' :' >>$CONFIG_STATUS
22231 rm -f conftest.tail
22232 while grep . conftest.defines >/dev/null
22234 # Write a limited-size here document to $tmp/defines.sed.
22235 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22236 # Speed up: don't consider the non `#define' lines.
22237 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22238 # Work around the forget-to-reset-the-flag bug.
22239 echo 't clr' >>$CONFIG_STATUS
22240 echo ': clr' >>$CONFIG_STATUS
22241 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22243 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22245 mv $tmp/out $tmp/in
22247 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22248 rm -f conftest.defines
22249 mv conftest.tail conftest.defines
22251 rm -f conftest.defines
22252 echo ' fi # grep' >>$CONFIG_STATUS
22253 echo >>$CONFIG_STATUS
22255 # Break up conftest.undefs because some shells have a limit on the size
22256 # of here documents, and old seds have small limits too (100 cmds).
22257 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22258 rm -f conftest.tail
22259 while grep . conftest.undefs >/dev/null
22261 # Write a limited-size here document to $tmp/undefs.sed.
22262 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22263 # Speed up: don't consider the non `#undef'
22264 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22265 # Work around the forget-to-reset-the-flag bug.
22266 echo 't clr' >>$CONFIG_STATUS
22267 echo ': clr' >>$CONFIG_STATUS
22268 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22270 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22272 mv $tmp/out $tmp/in
22274 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22275 rm -f conftest.undefs
22276 mv conftest.tail conftest.undefs
22278 rm -f conftest.undefs
22280 cat >>$CONFIG_STATUS <<\_ACEOF
22281 # Let's still pretend it is `configure' which instantiates (i.e., don't
22282 # use $as_me), people would be surprised to read:
22283 # /* config.h. Generated by config.status. */
22284 if test x"$ac_file" = x-; then
22285 echo "/* Generated by configure. */" >$tmp/config.h
22287 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22289 cat $tmp/in >>$tmp/config.h
22291 if test x"$ac_file" != x-; then
22292 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22293 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22294 echo "$as_me: $ac_file is unchanged" >&6;}
22296 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22298 X"$ac_file" : 'X\(//\)[^/]' \| \
22299 X"$ac_file" : 'X\(//\)$' \| \
22300 X"$ac_file" : 'X\(/\)' \| \
22301 . : '\(.\)' 2>/dev/null ||
22303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22304 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22305 /^X\(\/\/\)$/{ s//\1/; q; }
22306 /^X\(\/\).*/{ s//\1/; q; }
22308 { if $as_mkdir_p; then
22313 while test ! -d "$as_dir"; do
22314 as_dirs="$as_dir $as_dirs"
22315 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22317 X"$as_dir" : 'X\(//\)[^/]' \| \
22318 X"$as_dir" : 'X\(//\)$' \| \
22319 X"$as_dir" : 'X\(/\)' \| \
22320 . : '\(.\)' 2>/dev/null ||
22322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22324 /^X\(\/\/\)$/{ s//\1/; q; }
22325 /^X\(\/\).*/{ s//\1/; q; }
22328 test ! -n "$as_dirs" || mkdir $as_dirs
22329 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22330 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22331 { (exit 1); exit 1; }; }; }
22334 mv $tmp/config.h $ac_file
22338 rm -f $tmp/config.h
22342 cat >>$CONFIG_STATUS <<\_ACEOF
22345 # CONFIG_COMMANDS section.
22347 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22348 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22349 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22350 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22351 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22352 X"$ac_dest" : 'X\(//\)[^/]' \| \
22353 X"$ac_dest" : 'X\(//\)$' \| \
22354 X"$ac_dest" : 'X\(/\)' \| \
22355 . : '\(.\)' 2>/dev/null ||
22357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22358 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22359 /^X\(\/\/\)$/{ s//\1/; q; }
22360 /^X\(\/\).*/{ s//\1/; q; }
22362 { if $as_mkdir_p; then
22367 while test ! -d "$as_dir"; do
22368 as_dirs="$as_dir $as_dirs"
22369 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22370 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22371 X"$as_dir" : 'X\(//\)[^/]' \| \
22372 X"$as_dir" : 'X\(//\)$' \| \
22373 X"$as_dir" : 'X\(/\)' \| \
22374 . : '\(.\)' 2>/dev/null ||
22376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22377 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22378 /^X\(\/\/\)$/{ s//\1/; q; }
22379 /^X\(\/\).*/{ s//\1/; q; }
22382 test ! -n "$as_dirs" || mkdir $as_dirs
22383 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22384 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22385 { (exit 1); exit 1; }; }; }
22389 if test "$ac_dir" != .; then
22390 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22391 # A "../" for each directory in $ac_dir_suffix.
22392 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22394 ac_dir_suffix= ac_top_builddir=
22398 .) # No --srcdir option. We are building in place.
22400 if test -z "$ac_top_builddir"; then
22403 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22405 [\\/]* | ?:[\\/]* ) # Absolute path.
22406 ac_srcdir=$srcdir$ac_dir_suffix;
22407 ac_top_srcdir=$srcdir ;;
22408 *) # Relative path.
22409 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22410 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22413 # Do not use `cd foo && pwd` to compute absolute paths, because
22414 # the directories may not exist.
22416 .) ac_abs_builddir="$ac_dir";;
22419 .) ac_abs_builddir=`pwd`;;
22420 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22421 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22424 case $ac_abs_builddir in
22425 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22427 case ${ac_top_builddir}. in
22428 .) ac_abs_top_builddir=$ac_abs_builddir;;
22429 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22430 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22433 case $ac_abs_builddir in
22434 .) ac_abs_srcdir=$ac_srcdir;;
22437 .) ac_abs_srcdir=$ac_abs_builddir;;
22438 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22439 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22442 case $ac_abs_builddir in
22443 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22445 case $ac_top_srcdir in
22446 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22447 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22448 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22453 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22454 echo "$as_me: executing $ac_dest commands" >&6;}
22458 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
22459 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
22460 rm -f intltool-extract.out
22462 mv -f intltool-extract.out intltool-extract
22464 chmod ugo+x intltool-extract
22465 chmod u+w intltool-extract
22467 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
22468 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
22469 rm -f intltool-merge.out
22471 mv -f intltool-merge.out intltool-merge
22473 chmod ugo+x intltool-merge
22474 chmod u+w intltool-merge
22476 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
22477 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
22478 rm -f intltool-update.out
22480 mv -f intltool-update.out intltool-update
22482 chmod ugo+x intltool-update
22483 chmod u+w intltool-update
22486 default-2 ) case "$CONFIG_FILES" in *po/Makefile.in*)
22487 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
22493 cat >>$CONFIG_STATUS <<\_ACEOF
22495 { (exit 0); exit 0; }
22497 chmod +x $CONFIG_STATUS
22498 ac_clean_files=$ac_clean_files_save
22501 # configure is writing to config.log, and then calls config.status.
22502 # config.status does its own redirection, appending to config.log.
22503 # Unfortunately, on DOS this fails, as config.log is still kept open
22504 # by configure, so config.status won't be able to write to it; its
22505 # output is simply discarded. So we exec the FD to /dev/null,
22506 # effectively closing config.log, so it can be properly (re)opened and
22507 # appended to by config.status. When coming back to configure, we
22508 # need to make the FD available again.
22509 if test "$no_create" != yes; then
22511 ac_config_status_args=
22512 test "$silent" = yes &&
22513 ac_config_status_args="$ac_config_status_args --quiet"
22515 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22517 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22518 # would make configure fail if this is the last instruction.
22519 $ac_cs_success || { (exit 1); exit 1; }
22523 ###############################################################################
22525 # Print some warnings at the end.
22527 ###############################################################################
22529 warn_prefix_1=" Warning:"
22530 warn_prefix_2=" Note:"
22531 warn_prefix="$warn_prefix_1"
22534 warnsep=' #################################################################'
22537 if test "$warning" = no ; then
22538 echo '' ; echo "$warnsep" ; echo ''
22545 if test "$warning" = long ; then echo '' ; fi
22548 echo "$warn_prefix $rest"
22555 if test "$was" != no ; then echo '' ; fi
22557 echo "$warn_prefix $rest"
22567 warn_prefix="$warn_prefix_2"
22569 warn_prefix="$warn_prefix_1"
22573 warn_prefix="$warn_prefix_2"
22575 warn_prefix="$warn_prefix_1"
22579 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
22580 warn 'The SGI saver extension was requested, but was not found.'
22583 if test "$with_mit_req" = yes -a "$have_mit" = no ; then
22584 warn 'The MIT saver extension was requested, but was not found.'
22587 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
22588 warn 'The XIdle extension was requested, but was not found.'
22591 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
22592 warn 'The XSHM extension was requested, but was not found.'
22595 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
22596 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
22599 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
22600 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
22603 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
22604 warn 'The DPMS extension was requested, but was not found.'
22607 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
22608 warn 'The Xinerama extension was requested, but was not found.'
22611 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
22612 warn 'The XF86VMODE extension was requested, but was not found.'
22615 if test "$with_randr_req" = yes -a "$have_randr" = no ; then
22616 warn 'The RANDR extension was requested, but was not found.'
22619 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
22620 warn "Checking of /proc/interrupts was requested, but it's bogus."
22624 warn2 'Though the Motif front-end to xscreensaver is still'
22625 warn2 'maintained, it is no longer being updated with new'
22626 warn2 'features: all new development on the xscreensaver-demo'
22627 warn2 'program is happening in the GTK version, and not in the'
22628 warn2 'Motif version. It is recommended that you build against'
22629 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
22632 if test "$have_motif" = no -a "$have_gtk" = no; then
22634 if test "$with_motif" = yes; then
22635 warnL "Neither the GTK nor Motif libraries were found; the"
22636 warn2 "\`xscreensaver-demo' program requires one of these."
22640 warnL "The GTK libraries do not seem to be available; the"
22641 warn2 "\`xscreensaver-demo' program requires them."
22643 warn2 'You can use Motif or Lesstif instead of GTK (use the'
22644 warn2 "\`--with-motif' option) but that is NOT recommended."
22648 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
22649 warnL "Use of Motif was requested, but it wasn't found;"
22650 warn2 "Gtk will be used instead."
22652 elif test "$jurassic_gtk" = yes ; then
22656 v="$ac_gtk_version_string"
22657 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
22658 warnL "Use of Gtk was requested, but its version number is unknown;"
22659 elif test "$with_gtk_req" = yes ; then
22660 warnL "Use of Gtk was requested, but it is version $v;"
22662 warnL "Gtk was found on this system, but it is version $v;"
22665 warn2 "Gtk $pref_gtk or newer is required."
22667 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
22668 warnL "Use of Gtk was requested, but it wasn't found."
22671 if test "$gtk2_halfassed" != no ; then
22672 warnL "GTK version $gtk2_halfassed was found, but at least one supporting"
22673 warn2 "library ($gtk2_halfassed_lib) was not, so GTK 2.x can't be used."
22674 if test "$have_gtk" = yes ; then
22675 v="$ac_gtk_version_string"
22676 warn2 "GTK $v is also installed, so it will be used instead."
22677 warn2 "Please read the above output and the \`config.log' file"
22678 warn2 "for more details."
22683 if test "$with_gnome_req" = yes -a "$have_gnome" = no \
22684 -a "$have_gtk2" = no; then
22685 # don't issue this warning if we have GTK2 -- in that case, the
22686 # Gnome-specific code isn't needed.
22687 warn 'Use of the Gnome Control Panel was requested, but the necessary'
22688 warn2 'headers and/or libraries were not found.'
22691 if test "$have_gtk" = yes ; then
22692 if test "$have_xml" = no ; then
22693 if test "$with_xml_req" = yes ; then
22694 warn 'Use of the XML library was requested, but the necessary'
22695 warn2 'headers and/or libraries were not found.'
22697 warn 'GTK is being used, but the XML library was not found.'
22700 if test "$xml_halfassed" = yes ; then
22702 if test "$have_zlib" = yes ; then
22703 which="XML libraries"
22705 which="\`zlib' library"
22709 warn2 'More specifically, we found the headers, but not the'
22710 warn2 "$which; so either XML is half-installed on this"
22711 warn2 "system, or something else went wrong. The \`config.log'"
22712 warn2 'file might contain some clues.'
22716 warn2 "Without XML, the per-display-mode \`Settings' dialogs"
22717 warn2 'will not be available. Specify the location of the XML'
22718 warn2 'library through the --with-xml option to configure.'
22722 if test "$have_gtk" = yes -a "$have_gdk_pixbuf" = no ; then
22723 warn "GTK is being used, but the GDK-Pixbuf library and/or"
22724 warn2 "headers were not found. That can't be good. Please"
22725 warn2 "install the GDK-Pixbuf development kit and re-configure."
22728 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
22730 preferred_lesstif=0.92
22732 if test "$lesstif_version" = unknown; then
22733 warnL "Unable to determine the LessTif version number!"
22734 warn2 "Make sure you are using version $preferred_lesstif or newer."
22735 warn2 "See <http://www.lesstif.org/>."
22737 elif test \! $lesstif_version -gt 82; then
22738 warnL "LessTif version $lesstif_version_string is being used."
22739 warn2 "LessTif versions 0.82 and earlier are too buggy to"
22740 warn2 "use with XScreenSaver; it is strongly recommended"
22741 warn2 "that you upgrade to at least version $preferred_lesstif!"
22742 warn2 "See <http://www.lesstif.org/>."
22747 if test "$have_motif" = yes -a "$have_gtk" = no ; then
22748 warn 'Motif is being used, and GTK is not.'
22754 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
22755 warnL 'Use of XPM was requested, but it was not found.'
22758 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
22759 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
22762 if test "$have_xpm" = no -a "$have_gdk_pixbuf" = no || \
22763 test "$gdk_pixbuf_halfassed" = yes; then
22765 if test "$with_xpm_req" = yes -o "$have_xpm" = yes ; then
22767 elif test "$with_xpm_req" = no ; then
22768 warnL 'The XPM library is not being used.'
22770 warnL 'The XPM library was not found.'
22773 if test "$with_gdk_pixbuf_req" = yes ; then
22775 elif test "$with_gdk_pixbuf_req" = no ; then
22776 warnL 'The GDK-Pixbuf library is not being used.'
22778 warnL 'The GDK-Pixbuf library was not found.'
22781 if test "$gdk_pixbuf_halfassed" = yes ; then
22783 warn2 'More specifically, we found the headers, but not the'
22784 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
22785 warn2 "system, or something else went wrong. The \`config.log'"
22786 warn2 'file might contain some clues.'
22790 warn2 'Some of the demos will not be as colorful as they'
22791 warn2 'could be. You should consider installing Pixbuf or'
22792 warn2 'XPM and re-running configure. The Pixbuf library is'
22793 warn2 'a part of GNOME. The XPM library comes with most'
22794 warn2 'X11 installations; you can also find it at the X11'
22795 warn2 'archive sites, such as <http://sunsite.unc.edu/>.'
22797 warn2 'GDK-Pixbuf is recommended over XPM, as it provides'
22798 warn2 'support for more image formats.'
22802 if test "$have_jpeg" = no ; then
22803 if test "$with_jpeg_req" = yes ; then
22804 warnL 'Use of libjpeg was requested, but it was not found.'
22805 elif test "$with_jpeg_req" = no ; then
22806 noteL 'The JPEG library is not being used.'
22808 noteL 'The JPEG library was not found.'
22811 if test "$jpeg_halfassed" = yes ; then
22813 warn2 'More specifically, we found the headers, but not the'
22814 warn2 'library; so either JPEG is half-installed on this'
22815 warn2 "system, or something else went wrong. The \`config.log'"
22816 warn2 'file might contain some clues.'
22820 if test "$have_gdk_pixbuf" = no ; then
22821 warn2 "This means that it won't be possible for the image-manipulating"
22822 warn2 "display modes to load files from disk; and it also means that"
22823 warn2 "the \`webcollage' program will be much slower."
22825 warn2 "This means the \`webcollage' program will be much slower."
22830 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
22831 preferred_mesagl=3.4
22832 mgv="$ac_mesagl_version_string"
22833 pgl="$preferred_mesagl"
22835 if test "$ac_mesagl_version" = unknown; then
22836 warnL "Unable to determine the MesaGL version number!"
22837 warn2 "Make sure you are using version $preferred_mesagl or newer."
22839 elif test \! "$ac_mesagl_version" -gt 2006; then
22840 warnL "MesaGL version number is $mgv --"
22841 warn2 "MesaGL 2.6 and earlier have a security bug. It is strongly"
22842 warn2 "recommended that you upgrade to at least version $preferred_mesagl."
22844 elif test \! "$ac_mesagl_version" -gt 3003; then
22845 warnL "MesaGL version number is $mgv --"
22846 warn2 "MesaGL 3.3 and earlier have some bugs; it is recommended"
22847 warn2 "that you upgrade to $pgl or newer."
22851 if test "$have_gl" = no ; then
22852 if test "$with_gl_req" = yes ; then
22853 warnL 'Use of GL was requested, but it was not found.'
22854 elif test "$with_gl_req" = no ; then
22855 noteL 'The OpenGL 3D library is not being used.'
22857 noteL 'The OpenGL 3D library was not found.'
22860 if test "$gl_halfassed" = yes ; then
22862 warn2 'More specifically, we found the headers, but not the'
22863 warn2 'libraries; so either GL is half-installed on this'
22864 warn2 "system, or something else went wrong. The \`config.log'"
22865 warn2 'file might contain some clues.'
22869 warn2 'Those demos which use 3D will not be built or installed.'
22870 warn2 'You might want to consider installing OpenGL and'
22871 warn2 "re-running configure. If your vendor doesn't ship"
22872 warn2 'their own implementation of OpenGL, you can get a free'
22873 warn2 'version at <http://www.mesa3d.org/>. For general OpenGL'
22874 warn2 'info, see <http://www.opengl.org/>.'
22879 if test "$have_gl" = yes -a "$have_gle" = no ; then
22881 # nobody cares about this; don't print the warning unless it was
22882 # requested and not found, or halfway-found.
22883 if test "$with_gle_req" = yes -o "$gle_halfassed" = yes ; then
22885 if test "$with_gle_req" = yes ; then
22886 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
22887 warn2 'it was not found (though the OpenGL library was found, and'
22888 warn2 'is being used.)'
22889 elif test "$with_gle_req" = no ; then
22890 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
22891 warn2 'library is not.'
22893 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
22897 if test "$gle_halfassed" = yes ; then
22899 warn2 'More specifically, we found the headers, but not the'
22900 warn2 'libraries; so either GLE is half-installed on this'
22901 warn2 "system, or something else went wrong. The \`config.log'"
22902 warn2 'file might contain some clues.'
22906 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
22907 warn2 'will not be built or installed. You might want to consider'
22908 warn2 'installing GLE and re-running configure. You can find the'
22909 warn2 'GLE library at <http://www.linas.org/gle/>. For general'
22910 warn2 'OpenGL info, see <http://www.opengl.org/>.'
22916 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
22917 warn 'Use of XReadDisplay was requested, but it was not found.'
22920 if test -n "$with_fortune_req"; then
22921 if test "$with_fortune_req" != "$ac_cv_fortune_program" ; then
22922 warnL "$with_fortune_req was requested as the Fortune program,"
22923 warn2 "but was not found. The default will be used instead."
22927 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
22928 warn 'Use of Kerberos was requested, but it was not found.'
22931 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
22932 warn 'Use of PAM was requested, but it was not found.'
22935 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
22936 warn 'Use of shadow passwords was requested, but they were not found.'
22940 # You are in a twisty maze of namespaces and syntaxes, all alike.
22941 # Fuck the skull of Unix.
22943 eval bindir=${bindir}
22944 eval bindir=${bindir}
22945 eval bindir=${bindir}
22946 eval bindir=${bindir}
22947 eval bindir=${bindir}
22948 eval bindir=${bindir}
22949 eval HACKDIR=${HACKDIR}
22950 eval HACKDIR=${HACKDIR}
22951 eval HACKDIR=${HACKDIR}
22952 eval HACKDIR=${HACKDIR}
22953 eval HACKDIR=${HACKDIR}
22954 eval HACKDIR=${HACKDIR}
22955 eval HACK_CONF_DIR=${HACK_CONF_DIR}
22956 eval HACK_CONF_DIR=${HACK_CONF_DIR}
22957 eval HACK_CONF_DIR=${HACK_CONF_DIR}
22958 eval HACK_CONF_DIR=${HACK_CONF_DIR}
22959 eval HACK_CONF_DIR=${HACK_CONF_DIR}
22960 eval HACK_CONF_DIR=${HACK_CONF_DIR}
22962 # canonicalize slashes.
22963 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
22964 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
22965 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
22968 # Sanity check the hackdir
22969 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
22970 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
22972 { { echo "$as_me:$LINENO: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
22973 There will be an executable installed with that name, so
22974 that can't be the name of a directory as well. Please
22975 re-configure with a different directory name." >&5
22976 echo "$as_me: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
22977 There will be an executable installed with that name, so
22978 that can't be the name of a directory as well. Please
22979 re-configure with a different directory name." >&2;}
22980 { (exit 1); exit 1; }; }
22987 # Now let's see if there's a previous RPM version already installed. Blargh!
22991 rpmv=`(rpm -qv xscreensaver) 2>/dev/null | \
22992 sed -n 's/^xscreensaver-\([0-9][0-9]*[.][0-9][0-9]*\)-.*$/\1/p'`
22995 if test \! -z "$rpmv" ; then
22996 rpmbdir=`rpm -ql xscreensaver | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
22997 rpmhdir=`rpm -ql xscreensaver | sed -n 's@^\(.*\)/attraction$@\1@p'`
23000 warnL "There is already an installed RPM of xscreensaver $rpmv"
23001 warn2 "on this system. You might want to remove it (with"
23002 warn2 '"rpm -ve xscreensaver") before running "make install"'
23003 warn2 "from this directory."
23005 warn2 "Alternately, you could build this version of xscreensaver"
23006 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
23007 warn2 "file is included. See the RPM documentation for more info."
23010 if test "$rpmbdir" = "$rpmhdir" ; then
23011 warn2 "The RPM version was installed in $rpmbdir/."
23013 warn2 "The RPM version was installed in $rpmbdir/,"
23014 warn2 "with demos in $rpmhdir/."
23021 if test "${bindir}" = "${HACKDIR}" ; then
23025 if test "$do_dir_warning" = yes; then
23029 echo ' When you run "make install", the "xscreensaver",'
23030 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
23031 echo " will be installed in ${bindir}/."
23033 echo " The various graphics demos (180+ different executables) will"
23034 echo " be installed in ${HACKDIR}/."
23036 echo " If you would prefer the demos to be installed elsewhere,"
23037 echo " you should re-run configure with the --with-hackdir=DIR"
23038 echo " option. For more information, run \`./configure --help'."
23042 if test "$warning" != no; then
23043 echo '' ; echo "$warnsep" ; echo ''
23046 if test "$do_dir_warning" = no; then
23047 if test "$warning" = no; then
23050 echo "User programs will be installed in ${bindir}/"
23051 echo "Screen savers will be installed in ${HACKDIR}/"
23052 echo "Configuration will be installed in ${HACK_CONF_DIR}/"