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 login_manager_tmp pkg_config gnome_open_program gnome_url_show_program 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 XINERAMA_LIBS PASSWD_LIBS INSTALL_SETUID SETUID_HACKS INSTALL_DIRS NEED_SETUID INSTALL_PAM NEW_LOGIN_COMMAND NEW_LOGIN_COMMAND_P DEFAULT_IMAGES_P DEFAULT_IMAGE_DIRECTORY DEFAULT_TEXT_FILE OBJCC EXES_OSX SCRIPTS_OSX MEN_OSX PASSWD_SRCS PASSWD_OBJS XMU_SRCS XMU_OBJS XMU_LIBS SAVER_GL_SRCS SAVER_GL_OBJS SAVER_GL_LIBS LOCK_SRCS LOCK_OBJS JPEG_EXES GL_EXES GL_UTIL_EXES GL_MEN GL_KLUDGE GLE_EXES GLE_KLUDGE GNOME24 GNOME22 NOGNOME HACKDIR GTK_DATADIR PO_DATADIR 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=\${datadir}/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 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --libdir=DIR object code libraries [EPREFIX/lib]
824 --includedir=DIR C header files [PREFIX/include]
825 --x-includes=DIR X include files are in DIR
826 --x-libraries=DIR X library files are in DIR
827 --mandir=DIR man documentation [PREFIX/man]
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 if test -n "$ac_init_help"; then
847 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
848 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
850 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)
858 Installation options:
859 --with-hackdir=DIR Where to install the hundreds of demo executables.
860 Default: `PREFIX/libexec/xscreensaver/'
861 --with-configdir=DIR Where to install the data files that describe each
862 of the display modes to the GUI.
863 Default: `PREFIX/share/xscreensaver/config/'
865 Except where noted, all of the --with options below can also take a
866 directory argument: for example, `--with-motif=/opt/Motif'. That would
867 cause /opt/Motif/include/ to be added to the -I list, and /opt/Motif/lib/
868 to be added to the -L list, assuming those directories exist.
870 By default, support for each of these options will be built in, if the
871 relevant library routines exist. At run time, they will then be used
872 only if the X server being used supports them. Each --with option has
873 a corresponding --without option, to override building support for them
876 Screen blanking and idle-detection options:
878 --with-sgi-ext Include support for the SGI SCREEN_SAVER extension.
879 --with-xidle-ext Include support for the XIDLE extension.
880 --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL extension.
881 --with-dpms-ext Include support for the DPMS extension.
882 --with-xinerama-ext Include support for the XINERAMA extension.
883 --with-xf86vmode-ext Include support for XFree86 virtual screens.
884 --with-xf86gamma-ext Include support for XFree86 gamma fading.
885 --with-randr-ext Include support for the X Resize+Rotate extension.
886 --with-proc-interrupts Include support for consulting the /proc/interrupts
887 file to notice keyboard activity.
888 --with-pam Include support for PAM (Pluggable Auth Modules.)
889 --with-pam-service-name=NAME
890 NAME is the name of the PAM service that
891 xscreensaver will authenticate as.
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.
896 --with-login-manager Put a "New Login" button on the unlock dialog that
897 runs a login manager such as gdmflexiserver.
899 User interface options:
901 --with-gtk Use the Gtk toolkit for the user interface.
902 --with-motif Use the Motif toolkit for the user interface
907 --with-gl Build those demos which depend on OpenGL.
908 --with-gle Build those demos which depend on GLE
909 (the OpenGL "extrusion" library.)
910 --with-pixbuf Include support for the GDK-Pixbuf library in some
911 demos, which will make it possible for them to read
912 GIF, JPEG, and PNG files as well.
913 --with-xpm Include support for XPM files in some demos.
914 (Not needed if Pixbuf is used.)
915 --with-jpeg Include support for the JPEG library.
916 --with-xshm-ext Include support for the Shared Memory extension.
917 --with-xdbe-ext Include support for the DOUBLE-BUFFER extension.
918 --with-readdisplay Include support for the XReadDisplay extension.
919 --with-image-directory=DIR By default, some demos may display random images
921 --with-text-file=FILE By default, some demos may display this file.
922 --with-setuid-hacks Allow some demos to be installed `setuid root'
923 (which is needed in order to ping other hosts.)
926 Some influential environment variables:
927 CC C compiler command
928 CFLAGS C compiler flags
929 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
930 nonstandard directory <lib dir>
931 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
932 headers in a nonstandard directory <include dir>
935 Use these variables to override the choices made by `configure' or to help
936 it to find libraries and programs with nonstandard names/locations.
941 if test "$ac_init_help" = "recursive"; then
942 # If there are subdirs, report their specific --help.
944 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
945 test -d $ac_dir || continue
948 if test "$ac_dir" != .; then
949 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
950 # A "../" for each directory in $ac_dir_suffix.
951 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
953 ac_dir_suffix= ac_top_builddir=
957 .) # No --srcdir option. We are building in place.
959 if test -z "$ac_top_builddir"; then
962 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
964 [\\/]* | ?:[\\/]* ) # Absolute path.
965 ac_srcdir=$srcdir$ac_dir_suffix;
966 ac_top_srcdir=$srcdir ;;
968 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
969 ac_top_srcdir=$ac_top_builddir$srcdir ;;
972 # Do not use `cd foo && pwd` to compute absolute paths, because
973 # the directories may not exist.
975 .) ac_abs_builddir="$ac_dir";;
978 .) ac_abs_builddir=`pwd`;;
979 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
980 *) ac_abs_builddir=`pwd`/"$ac_dir";;
983 case $ac_abs_builddir in
984 .) ac_abs_top_builddir=${ac_top_builddir}.;;
986 case ${ac_top_builddir}. in
987 .) ac_abs_top_builddir=$ac_abs_builddir;;
988 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
989 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
992 case $ac_abs_builddir in
993 .) ac_abs_srcdir=$ac_srcdir;;
996 .) ac_abs_srcdir=$ac_abs_builddir;;
997 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
998 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1001 case $ac_abs_builddir in
1002 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1004 case $ac_top_srcdir in
1005 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1007 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1012 # Check for guested configure; otherwise get Cygnus style configure.
1013 if test -f $ac_srcdir/configure.gnu; then
1015 $SHELL $ac_srcdir/configure.gnu --help=recursive
1016 elif test -f $ac_srcdir/configure; then
1018 $SHELL $ac_srcdir/configure --help=recursive
1019 elif test -f $ac_srcdir/configure.ac ||
1020 test -f $ac_srcdir/configure.in; then
1022 $ac_configure --help
1024 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1030 test -n "$ac_init_help" && exit 0
1031 if $ac_init_version; then
1034 Copyright (C) 2003 Free Software Foundation, Inc.
1035 This configure script is free software; the Free Software Foundation
1036 gives unlimited permission to copy, distribute and modify it.
1042 This file contains any messages produced by compilers while
1043 running configure, to aid debugging if configure makes a mistake.
1045 It was created by $as_me, which was
1046 generated by GNU Autoconf 2.59. Invocation command line was
1057 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1058 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1059 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1060 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1061 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1063 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1064 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1066 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1067 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1068 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1069 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1070 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1071 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1072 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1080 test -z "$as_dir" && as_dir=.
1081 echo "PATH: $as_dir"
1096 # Keep a trace of the command line.
1097 # Strip out --no-create and --no-recursion so they do not pile up.
1098 # Strip out --silent because we don't want to record it for future runs.
1099 # Also quote any args containing shell meta-characters.
1100 # Make two passes to allow for proper duplicate-argument suppression.
1105 ac_must_keep_next=false
1111 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1115 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1116 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1119 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1121 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1122 if test $ac_must_keep_next = true; then
1123 ac_must_keep_next=false # Got value, back to normal.
1126 *=* | --config-cache | -C | -disable-* | --disable-* \
1127 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1128 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1129 | -with-* | --with-* | -without-* | --without-* | --x)
1130 case "$ac_configure_args0 " in
1131 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1134 -* ) ac_must_keep_next=true ;;
1137 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1138 # Get rid of the leading space.
1144 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1145 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1147 # When interrupted or exit'd, cleanup temporary files, and complete
1148 # config.log. We remove comments because anyway the quotes in there
1149 # would cause problems or look ugly.
1150 # WARNING: Be sure not to use single quotes in there, as some shells,
1151 # such as our DU 5.0 friend, will then `close' the trap.
1152 trap 'exit_status=$?
1153 # Save into config.log some information that might help in debugging.
1158 ## ---------------- ##
1159 ## Cache variables. ##
1160 ## ---------------- ##
1163 # The following way of writing the cache mishandles newlines in values,
1166 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1169 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1170 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1174 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1181 ## ----------------- ##
1182 ## Output variables. ##
1183 ## ----------------- ##
1186 for ac_var in $ac_subst_vars
1188 eval ac_val=$`echo $ac_var`
1189 echo "$ac_var='"'"'$ac_val'"'"'"
1193 if test -n "$ac_subst_files"; then
1200 for ac_var in $ac_subst_files
1202 eval ac_val=$`echo $ac_var`
1203 echo "$ac_var='"'"'$ac_val'"'"'"
1208 if test -s confdefs.h; then
1215 sed "/^$/d" confdefs.h | sort
1218 test "$ac_signal" != 0 &&
1219 echo "$as_me: caught signal $ac_signal"
1220 echo "$as_me: exit $exit_status"
1222 rm -f core *.core &&
1223 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1226 for ac_signal in 1 2 13 15; do
1227 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1231 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1232 rm -rf conftest* confdefs.h
1233 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1236 # Predefined preprocessor variables.
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_NAME "$PACKAGE_NAME"
1243 cat >>confdefs.h <<_ACEOF
1244 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_STRING "$PACKAGE_STRING"
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1263 # Let the site file select an alternate cache file if it wants to.
1264 # Prefer explicitly selected file to automatically selected ones.
1265 if test -z "$CONFIG_SITE"; then
1266 if test "x$prefix" != xNONE; then
1267 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1269 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1272 for ac_site_file in $CONFIG_SITE; do
1273 if test -r "$ac_site_file"; then
1274 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1275 echo "$as_me: loading site script $ac_site_file" >&6;}
1276 sed 's/^/| /' "$ac_site_file" >&5
1281 if test -r "$cache_file"; then
1282 # Some versions of bash will fail to source /dev/null (special
1283 # files actually), so we avoid doing that.
1284 if test -f "$cache_file"; then
1285 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1286 echo "$as_me: loading cache $cache_file" >&6;}
1288 [\\/]* | ?:[\\/]* ) . $cache_file;;
1289 *) . ./$cache_file;;
1293 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1294 echo "$as_me: creating cache $cache_file" >&6;}
1298 # Check that the precious variables saved in the cache have kept the same
1300 ac_cache_corrupted=false
1301 for ac_var in `(set) 2>&1 |
1302 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1303 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1304 eval ac_new_set=\$ac_env_${ac_var}_set
1305 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1306 eval ac_new_val="\$ac_env_${ac_var}_value"
1307 case $ac_old_set,$ac_new_set in
1309 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1310 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1311 ac_cache_corrupted=: ;;
1313 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1314 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1315 ac_cache_corrupted=: ;;
1318 if test "x$ac_old_val" != "x$ac_new_val"; then
1319 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1320 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1321 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1322 echo "$as_me: former value: $ac_old_val" >&2;}
1323 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1324 echo "$as_me: current value: $ac_new_val" >&2;}
1325 ac_cache_corrupted=:
1328 # Pass precious variables to config.status.
1329 if test "$ac_new_set" = set; then
1331 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1332 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1333 *) ac_arg=$ac_var=$ac_new_val ;;
1335 case " $ac_configure_args " in
1336 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1337 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1341 if $ac_cache_corrupted; then
1342 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1343 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1344 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1345 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1346 { (exit 1); exit 1; }; }
1350 ac_cpp='$CPP $CPPFLAGS'
1351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1373 ac_config_headers="$ac_config_headers config.h"
1376 echo "current directory: `pwd`"
1377 echo "command line was: $0 $@"
1379 ###############################################################################
1383 ###############################################################################
1546 # After checking to see that --srcdir is correct (which AC_INIT does)
1547 # check for some random other files that come later in the tar file,
1548 # to make sure everything is here.
1550 for d in driver utils hacks hacks/glx ; do
1551 f=$srcdir/$d/Makefile.in
1552 if test \! -r $f ; then
1554 echo "ERROR: The package is incomplete: $f does not exist."
1555 echo " This probably means that your download was truncated."
1561 ###############################################################################
1563 # Function to figure out how to run the compiler.
1565 ###############################################################################
1570 ###############################################################################
1572 # Functions to figure out how to disable // comments in ANSI C code.
1574 # (With recent gcc, this is done with "-std=c89". With older gcc, this
1575 # is done by passing "-lang-c89" to cpp, by passing "-Wp,-lang-c89" to
1576 # gcc. Old gcc doesn't support -std, and new gcc doesn't support -lang.
1577 # so much for compatibility!)
1579 # UPDATE: apparently there is NO WAY to tell gcc 3.2.2 to require that
1580 # declarations preceed statements, without resorting to "-pedantic".
1581 # This means that there is no way to get gcc3 to issue warnings that
1582 # ensure that your code complies with the ANSI/ISO C89 standard, without
1583 # also drowning in totally useless warnings. Thank you master may I
1586 # So, I give up, let's just use -pedantic.
1588 ###############################################################################
1595 ###############################################################################
1597 # Function to figure out how to turn off Objective C on MacOS X.
1598 # (We have to do this to work around an Apple-specific gcc bug.)
1600 ###############################################################################
1607 ###############################################################################
1609 # Function to figure out how to create directory trees.
1611 ###############################################################################
1616 ###############################################################################
1618 # Function to check whether gettimeofday() exists, and how to call it.
1619 # This may define HAVE_GETTIMEOFDAY and GETTIMEOFDAY_TWO_ARGS.
1621 ###############################################################################
1626 ###############################################################################
1628 # Function to find perl5 (defines PERL and PERL_VERSION.)
1630 ###############################################################################
1632 # M4 sucks!! perl sucks too!!
1634 perl_version_cmd='print $]'
1640 ###############################################################################
1642 # Function to demand "bc". Losers.
1644 ###############################################################################
1648 ###############################################################################
1650 # Functions to check how to do ICMP PING requests.
1652 ###############################################################################
1659 ###############################################################################
1661 # Functions to check for various X11 crap.
1663 ###############################################################################
1665 # Try and find the app-defaults directory.
1666 # It sucks that autoconf doesn't do this already...
1678 # Random special-cases for X on certain pathological OSes.
1679 # You know who you are.
1685 ###############################################################################
1687 # Some utility functions to make checking for X things easier.
1689 ###############################################################################
1691 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
1695 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
1699 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
1704 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
1705 # Use this sparingly; it probably doesn't work very well on X programs.
1709 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
1710 # (But not the -L directories!)
1716 # Usage: HANDLE_X_PATH_ARG([variable_name],
1717 # [--command-line-option],
1718 # [descriptive string])
1720 # All of the --with options take three forms:
1722 # --with-foo (or --with-foo=yes)
1723 # --without-foo (or --with-foo=no)
1726 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
1727 # a directory (string beginning with a slash) it checks to see whether
1728 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
1735 ###############################################################################
1736 ###############################################################################
1738 # End of function definitions. Now start actually executing stuff.
1740 ###############################################################################
1741 ###############################################################################
1743 # random compiler setup
1745 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1746 if test -f $ac_dir/install-sh; then
1748 ac_install_sh="$ac_aux_dir/install-sh -c"
1750 elif test -f $ac_dir/install.sh; then
1752 ac_install_sh="$ac_aux_dir/install.sh -c"
1754 elif test -f $ac_dir/shtool; then
1756 ac_install_sh="$ac_aux_dir/shtool install -c"
1760 if test -z "$ac_aux_dir"; then
1761 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1762 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1763 { (exit 1); exit 1; }; }
1765 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1766 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1767 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1769 # Make sure we can run config.sub.
1770 $ac_config_sub sun4 >/dev/null 2>&1 ||
1771 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1772 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1773 { (exit 1); exit 1; }; }
1775 echo "$as_me:$LINENO: checking build system type" >&5
1776 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1777 if test "${ac_cv_build+set}" = set; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1780 ac_cv_build_alias=$build_alias
1781 test -z "$ac_cv_build_alias" &&
1782 ac_cv_build_alias=`$ac_config_guess`
1783 test -z "$ac_cv_build_alias" &&
1784 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1785 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1786 { (exit 1); exit 1; }; }
1787 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1788 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1789 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1790 { (exit 1); exit 1; }; }
1793 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1794 echo "${ECHO_T}$ac_cv_build" >&6
1796 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1797 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1798 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1801 echo "$as_me:$LINENO: checking host system type" >&5
1802 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1803 if test "${ac_cv_host+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1806 ac_cv_host_alias=$host_alias
1807 test -z "$ac_cv_host_alias" &&
1808 ac_cv_host_alias=$ac_cv_build_alias
1809 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1810 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1811 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1812 { (exit 1); exit 1; }; }
1815 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1816 echo "${ECHO_T}$ac_cv_host" >&6
1818 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1819 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1820 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1825 ac_cpp='$CPP $CPPFLAGS'
1826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1829 if test -n "$ac_tool_prefix"; then
1830 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1831 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_CC+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 if test -n "$CC"; then
1838 ac_cv_prog_CC="$CC" # Let the user override the test.
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 test -z "$as_dir" && as_dir=.
1845 for ac_exec_ext in '' $ac_executable_extensions; do
1846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857 if test -n "$CC"; then
1858 echo "$as_me:$LINENO: result: $CC" >&5
1859 echo "${ECHO_T}$CC" >&6
1861 echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6
1866 if test -z "$ac_cv_prog_CC"; then
1868 # Extract the first word of "gcc", so it can be a program name with args.
1869 set dummy gcc; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 if test -n "$ac_ct_CC"; then
1876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 test -z "$as_dir" && as_dir=.
1883 for ac_exec_ext in '' $ac_executable_extensions; do
1884 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885 ac_cv_prog_ac_ct_CC="gcc"
1886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1895 if test -n "$ac_ct_CC"; then
1896 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1897 echo "${ECHO_T}$ac_ct_CC" >&6
1899 echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1908 if test -z "$CC"; then
1909 if test -n "$ac_tool_prefix"; then
1910 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1911 set dummy ${ac_tool_prefix}cc; ac_word=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_CC+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 if test -n "$CC"; then
1918 ac_cv_prog_CC="$CC" # Let the user override the test.
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 test -z "$as_dir" && as_dir=.
1925 for ac_exec_ext in '' $ac_executable_extensions; do
1926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927 ac_cv_prog_CC="${ac_tool_prefix}cc"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1937 if test -n "$CC"; then
1938 echo "$as_me:$LINENO: result: $CC" >&5
1939 echo "${ECHO_T}$CC" >&6
1941 echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1946 if test -z "$ac_cv_prog_CC"; then
1948 # Extract the first word of "cc", so it can be a program name with args.
1949 set dummy cc; ac_word=$2
1950 echo "$as_me:$LINENO: checking for $ac_word" >&5
1951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1952 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1955 if test -n "$ac_ct_CC"; then
1956 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 test -z "$as_dir" && as_dir=.
1963 for ac_exec_ext in '' $ac_executable_extensions; do
1964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1965 ac_cv_prog_ac_ct_CC="cc"
1966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1975 if test -n "$ac_ct_CC"; then
1976 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1977 echo "${ECHO_T}$ac_ct_CC" >&6
1979 echo "$as_me:$LINENO: result: no" >&5
1980 echo "${ECHO_T}no" >&6
1989 if test -z "$CC"; then
1990 # Extract the first word of "cc", so it can be a program name with args.
1991 set dummy cc; ac_word=$2
1992 echo "$as_me:$LINENO: checking for $ac_word" >&5
1993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1994 if test "${ac_cv_prog_CC+set}" = set; then
1995 echo $ECHO_N "(cached) $ECHO_C" >&6
1997 if test -n "$CC"; then
1998 ac_cv_prog_CC="$CC" # Let the user override the test.
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 test -z "$as_dir" && as_dir=.
2006 for ac_exec_ext in '' $ac_executable_extensions; do
2007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2009 ac_prog_rejected=yes
2013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019 if test $ac_prog_rejected = yes; then
2020 # We found a bogon in the path, so make sure we never use it.
2021 set dummy $ac_cv_prog_CC
2023 if test $# != 0; then
2024 # We chose a different compiler from the bogus one.
2025 # However, it has the same basename, so the bogon will be chosen
2026 # first if we set CC to just the basename; use the full file name.
2028 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2034 if test -n "$CC"; then
2035 echo "$as_me:$LINENO: result: $CC" >&5
2036 echo "${ECHO_T}$CC" >&6
2038 echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6
2043 if test -z "$CC"; then
2044 if test -n "$ac_tool_prefix"; then
2047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_CC+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 if test -n "$CC"; then
2055 ac_cv_prog_CC="$CC" # Let the user override the test.
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2074 if test -n "$CC"; then
2075 echo "$as_me:$LINENO: result: $CC" >&5
2076 echo "${ECHO_T}$CC" >&6
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2082 test -n "$CC" && break
2085 if test -z "$CC"; then
2089 # Extract the first word of "$ac_prog", so it can be a program name with args.
2090 set dummy $ac_prog; ac_word=$2
2091 echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2093 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 if test -n "$ac_ct_CC"; then
2097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2106 ac_cv_prog_ac_ct_CC="$ac_prog"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2116 if test -n "$ac_ct_CC"; then
2117 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2118 echo "${ECHO_T}$ac_ct_CC" >&6
2120 echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2124 test -n "$ac_ct_CC" && break
2133 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2134 See \`config.log' for more details." >&5
2135 echo "$as_me: error: no acceptable C compiler found in \$PATH
2136 See \`config.log' for more details." >&2;}
2137 { (exit 1); exit 1; }; }
2139 # Provide some information about the compiler.
2140 echo "$as_me:$LINENO:" \
2141 "checking for C compiler version" >&5
2142 ac_compiler=`set X $ac_compile; echo $2`
2143 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2144 (eval $ac_compiler --version </dev/null >&5) 2>&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }
2148 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2149 (eval $ac_compiler -v </dev/null >&5) 2>&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }
2153 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2154 (eval $ac_compiler -V </dev/null >&5) 2>&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }
2159 cat >conftest.$ac_ext <<_ACEOF
2162 cat confdefs.h >>conftest.$ac_ext
2163 cat >>conftest.$ac_ext <<_ACEOF
2164 /* end confdefs.h. */
2174 ac_clean_files_save=$ac_clean_files
2175 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2176 # Try to create an executable without -o first, disregard a.out.
2177 # It will help us diagnose broken compilers, and finding out an intuition
2179 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2180 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2181 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2182 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2183 (eval $ac_link_default) 2>&5
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; then
2187 # Find the output, starting from the most likely. This scheme is
2188 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2191 # Be careful to initialize this variable, since it used to be cached.
2192 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2194 # b.out is created by i960 compilers.
2195 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2197 test -f "$ac_file" || continue
2199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2202 # This is the source file.
2205 # We found the default executable, but exeext='' is most
2209 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2210 # FIXME: I believe we export ac_cv_exeext for Libtool,
2211 # but it would be cool to find out if it's true. Does anybody
2212 # maintain Libtool? --akim.
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2223 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: C compiler cannot create executables
2226 See \`config.log' for more details." >&2;}
2227 { (exit 77); exit 77; }; }
2230 ac_exeext=$ac_cv_exeext
2231 echo "$as_me:$LINENO: result: $ac_file" >&5
2232 echo "${ECHO_T}$ac_file" >&6
2234 # Check the compiler produces executables we can run. If not, either
2235 # the compiler is broken, or we cross compile.
2236 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2237 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2238 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2239 # If not cross compiling, check that we can run a simple program.
2240 if test "$cross_compiling" != yes; then
2241 if { ac_try='./$ac_file'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2249 if test "$cross_compiling" = maybe; then
2252 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2253 If you meant to cross compile, use \`--host'.
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: cannot run C compiled programs.
2256 If you meant to cross compile, use \`--host'.
2257 See \`config.log' for more details." >&2;}
2258 { (exit 1); exit 1; }; }
2262 echo "$as_me:$LINENO: result: yes" >&5
2263 echo "${ECHO_T}yes" >&6
2265 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2266 ac_clean_files=$ac_clean_files_save
2267 # Check the compiler produces executables we can run. If not, either
2268 # the compiler is broken, or we cross compile.
2269 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2270 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2271 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2272 echo "${ECHO_T}$cross_compiling" >&6
2274 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2275 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2277 (eval $ac_link) 2>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; then
2281 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2282 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2283 # work properly (i.e., refer to `conftest.exe'), while it won't with
2285 for ac_file in conftest.exe conftest conftest.*; do
2286 test -f "$ac_file" || continue
2288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2289 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2296 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2297 See \`config.log' for more details." >&5
2298 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2299 See \`config.log' for more details." >&2;}
2300 { (exit 1); exit 1; }; }
2303 rm -f conftest$ac_cv_exeext
2304 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2305 echo "${ECHO_T}$ac_cv_exeext" >&6
2307 rm -f conftest.$ac_ext
2308 EXEEXT=$ac_cv_exeext
2310 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2311 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2312 if test "${ac_cv_objext+set}" = set; then
2313 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 cat >conftest.$ac_ext <<_ACEOF
2318 cat confdefs.h >>conftest.$ac_ext
2319 cat >>conftest.$ac_ext <<_ACEOF
2320 /* end confdefs.h. */
2330 rm -f conftest.o conftest.obj
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332 (eval $ac_compile) 2>&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; then
2336 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2339 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2344 echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2347 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2348 See \`config.log' for more details." >&5
2349 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2350 See \`config.log' for more details." >&2;}
2351 { (exit 1); exit 1; }; }
2354 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2356 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2357 echo "${ECHO_T}$ac_cv_objext" >&6
2358 OBJEXT=$ac_cv_objext
2360 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2361 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2362 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 cat >conftest.$ac_ext <<_ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h. */
2383 rm -f conftest.$ac_objext
2384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2385 (eval $ac_compile) 2>conftest.er1
2387 grep -v '^ *+' conftest.er1 >conftest.err
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -z "$ac_c_werror_flag"
2393 || test ! -s conftest.err'
2394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }; } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2413 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2416 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2417 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2418 GCC=`test $ac_compiler_gnu = yes && echo yes`
2419 ac_test_CFLAGS=${CFLAGS+set}
2420 ac_save_CFLAGS=$CFLAGS
2422 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2423 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2424 if test "${ac_cv_prog_cc_g+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 cat >conftest.$ac_ext <<_ACEOF
2430 cat confdefs.h >>conftest.$ac_ext
2431 cat >>conftest.$ac_ext <<_ACEOF
2432 /* end confdefs.h. */
2442 rm -f conftest.$ac_objext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444 (eval $ac_compile) 2>conftest.er1
2446 grep -v '^ *+' conftest.er1 >conftest.err
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
2451 { ac_try='test -z "$ac_c_werror_flag"
2452 || test ! -s conftest.err'
2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; } &&
2458 { ac_try='test -s conftest.$ac_objext'
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; }; then
2466 echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2473 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2474 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2475 if test "$ac_test_CFLAGS" = set; then
2476 CFLAGS=$ac_save_CFLAGS
2477 elif test $ac_cv_prog_cc_g = yes; then
2478 if test "$GCC" = yes; then
2484 if test "$GCC" = yes; then
2490 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2491 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2492 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 ac_cv_prog_cc_stdc=no
2497 cat >conftest.$ac_ext <<_ACEOF
2500 cat confdefs.h >>conftest.$ac_ext
2501 cat >>conftest.$ac_ext <<_ACEOF
2502 /* end confdefs.h. */
2505 #include <sys/types.h>
2506 #include <sys/stat.h>
2507 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2508 struct buf { int x; };
2509 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2510 static char *e (p, i)
2516 static char *f (char * (*g) (char **, int), char **p, ...)
2521 s = g (p, va_arg (v,int));
2526 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2527 function prototypes and stuff, but not '\xHH' hex character constants.
2528 These don't provoke an error unfortunately, instead are silently treated
2529 as 'x'. The following induces an error, until -std1 is added to get
2530 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2531 array size at least. It's necessary to write '\x00'==0 to get something
2532 that's true only with -std1. */
2533 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2535 int test (int i, double x);
2536 struct s1 {int (*f) (int a);};
2537 struct s2 {int (*f) (double a);};
2538 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2544 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2549 # Don't try gcc -ansi; that turns off useful extensions and
2550 # breaks some systems' header files.
2551 # AIX -qlanglvl=ansi
2552 # Ultrix and OSF/1 -std1
2553 # HP-UX 10.20 and later -Ae
2554 # HP-UX older versions -Aa -D_HPUX_SOURCE
2555 # SVR4 -Xc -D__EXTENSIONS__
2556 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2558 CC="$ac_save_CC $ac_arg"
2559 rm -f conftest.$ac_objext
2560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561 (eval $ac_compile) 2>conftest.er1
2563 grep -v '^ *+' conftest.er1 >conftest.err
2565 cat conftest.err >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); } &&
2568 { ac_try='test -z "$ac_c_werror_flag"
2569 || test ! -s conftest.err'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; } &&
2575 { ac_try='test -s conftest.$ac_objext'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; }; then
2581 ac_cv_prog_cc_stdc=$ac_arg
2584 echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2588 rm -f conftest.err conftest.$ac_objext
2590 rm -f conftest.$ac_ext conftest.$ac_objext
2595 case "x$ac_cv_prog_cc_stdc" in
2597 echo "$as_me:$LINENO: result: none needed" >&5
2598 echo "${ECHO_T}none needed" >&6 ;;
2600 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2601 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2602 CC="$CC $ac_cv_prog_cc_stdc" ;;
2605 # Some people use a C++ compiler to compile C. Since we use `exit',
2606 # in C++ we need to declare it. In case someone uses the same compiler
2607 # for both compiling C and C++ we need to have the C++ compiler decide
2608 # the declaration of exit, since it's the most demanding environment.
2609 cat >conftest.$ac_ext <<_ACEOF
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>conftest.er1
2618 grep -v '^ *+' conftest.er1 >conftest.err
2620 cat conftest.err >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); } &&
2623 { ac_try='test -z "$ac_c_werror_flag"
2624 || test ! -s conftest.err'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; } &&
2630 { ac_try='test -s conftest.$ac_objext'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; }; then
2636 for ac_declaration in \
2638 'extern "C" void std::exit (int) throw (); using std::exit;' \
2639 'extern "C" void std::exit (int); using std::exit;' \
2640 'extern "C" void exit (int) throw ();' \
2641 'extern "C" void exit (int);' \
2644 cat >conftest.$ac_ext <<_ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h. */
2660 rm -f conftest.$ac_objext
2661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2662 (eval $ac_compile) 2>conftest.er1
2664 grep -v '^ *+' conftest.er1 >conftest.err
2666 cat conftest.err >&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); } &&
2669 { ac_try='test -z "$ac_c_werror_flag"
2670 || test ! -s conftest.err'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; } &&
2676 { ac_try='test -s conftest.$ac_objext'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2684 echo "$as_me: failed program was:" >&5
2685 sed 's/^/| /' conftest.$ac_ext >&5
2689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2690 cat >conftest.$ac_ext <<_ACEOF
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h. */
2705 rm -f conftest.$ac_objext
2706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707 (eval $ac_compile) 2>conftest.er1
2709 grep -v '^ *+' conftest.er1 >conftest.err
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -z "$ac_c_werror_flag"
2715 || test ! -s conftest.err'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; } &&
2721 { ac_try='test -s conftest.$ac_objext'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2736 if test -n "$ac_declaration"; then
2737 echo '#ifdef __cplusplus' >>confdefs.h
2738 echo $ac_declaration >>confdefs.h
2739 echo '#endif' >>confdefs.h
2743 echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2755 if test -z "$GCC"; then
2757 echo "$as_me:$LINENO: checking how to request ANSI compilation" >&5
2758 echo $ECHO_N "checking how to request ANSI compilation... $ECHO_C" >&6
2761 echo "$as_me:$LINENO: result: HPUX: adding -Ae" >&5
2762 echo "${ECHO_T}HPUX: adding -Ae" >&6
2766 echo "$as_me:$LINENO: result: AIX: adding -qlanglvl=ansi -qhalt=e" >&5
2767 echo "${ECHO_T}AIX: adding -qlanglvl=ansi -qhalt=e" >&6
2768 CC="$CC -qlanglvl=ansi -qhalt=e"
2771 echo "$as_me:$LINENO: result: DEC: adding -std1 -ieee" >&5
2772 echo "${ECHO_T}DEC: adding -std1 -ieee" >&6
2776 echo "$as_me:$LINENO: result: no idea" >&5
2777 echo "${ECHO_T}no idea" >&6
2784 echo "$as_me:$LINENO: result: Solaris: adding -D__EXTENSIONS__" >&5
2785 echo "${ECHO_T}Solaris: adding -D__EXTENSIONS__" >&6
2786 CC="$CC -D__EXTENSIONS__"
2793 echo "$as_me:$LINENO: checking whether the compiler works on ANSI C" >&5
2794 echo $ECHO_N "checking whether the compiler works on ANSI C... $ECHO_C" >&6
2795 if test "$cross_compiling" = yes; then
2796 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2797 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2798 { (exit 1); exit 1; }; }
2800 cat >conftest.$ac_ext <<_ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2806 main(int ac, char **av) { return 0; }
2808 rm -f conftest$ac_exeext
2809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2810 (eval $ac_link) 2>&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2819 echo "$as_me:$LINENO: result: yes" >&5
2820 echo "${ECHO_T}yes" >&6
2822 echo "$as_me: program exited with status $ac_status" >&5
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2827 echo "$as_me:$LINENO: result: no" >&5
2828 echo "${ECHO_T}no" >&6
2829 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2830 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2831 { (exit 1); exit 1; }; }
2833 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2836 if test -n "$GCC"; then
2837 echo "$as_me:$LINENO: result: Turning on gcc compiler warnings." >&5
2838 echo "${ECHO_T}Turning on gcc compiler warnings." >&6
2839 CC="$CC -pedantic -Wall -Wstrict-prototypes -Wnested-externs"
2840 OBJCC="$OBJCC -Wall"
2841 # supposedly gcc 3.4 will have "-Wdeclaration-after-statement"
2842 # and then perhaps we can do without -pedantic?
2845 *-irix5* |*-irix6.0-3* )
2846 echo "$as_me:$LINENO: result: Turning on SGI compiler warnings." >&5
2847 echo "${ECHO_T}Turning on SGI compiler warnings." >&6
2848 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
2851 # if test -z "$GCC"; then
2852 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
2853 # CC="$CC -migrate -w0 -verbose -warnprotos"
2859 if test -n "$GCC"; then
2860 if test -n "$GCC"; then
2861 echo "$as_me:$LINENO: checking whether gcc accepts -std" >&5
2862 echo $ECHO_N "checking whether gcc accepts -std... $ECHO_C" >&6
2863 if test "${ac_cv_gcc_accepts_std+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 if ( ( gcc -E -std=c89 - </dev/null >/dev/null ) 2>&1 | \
2867 grep unrecognized >/dev/null ); then
2868 ac_cv_gcc_accepts_std=no
2870 ac_cv_gcc_accepts_std=yes
2873 echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_std" >&5
2874 echo "${ECHO_T}$ac_cv_gcc_accepts_std" >&6
2875 ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
2878 echo "$as_me:$LINENO: result: Disabling C++ comments in ANSI C code." >&5
2879 echo "${ECHO_T}Disabling C++ comments in ANSI C code." >&6
2881 # The reason that // comments are banned from xscreensaver is that gcc is
2882 # basically the only compiler in the world that supports them in C code.
2883 # All other vendors support them only in their C++ compilers, not in their
2884 # ANSI C compilers. This means that it's a portability problem: every time
2885 # these comments have snuck into the xscreensaver source code, I've gotten
2886 # complaints about it the next day. So we turn off support for them in gcc
2887 # as well to prevent them from accidentially slipping in.
2889 if test "$ac_gcc_accepts_std" = yes ; then
2891 # -std=c89 defines __STRICT_ANSI__, which we don't want.
2892 # (That appears to be the only additional preprocessor symbol
2893 # it defines, in addition to the syntax changes it makes.)
2895 # -std=gnu89 is no good, because // comments were a GNU extension
2896 # before they were in the ANSI C 99 spec... (gcc 2.96 permits //
2897 # with -std=gnu89 but not with -std=c89.)
2899 CC="$CC -std=c89 -U__STRICT_ANSI__"
2902 CC="$CC -Wp,-lang-c89"
2906 if test -n "$GCC"; then
2907 if test -n "$GCC"; then
2908 echo "$as_me:$LINENO: checking whether gcc accepts -no-cpp-precomp" >&5
2909 echo $ECHO_N "checking whether gcc accepts -no-cpp-precomp... $ECHO_C" >&6
2910 if test "${ac_cv_gcc_accepts_no_cpp_precomp+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 if ( ( gcc -E -no-cpp-precomp - </dev/null >/dev/null ) 2>&1 | \
2914 grep unrecognized >/dev/null ); then
2915 ac_cv_gcc_accepts_no_cpp_precomp=no
2917 ac_cv_gcc_accepts_no_cpp_precomp=yes
2920 echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_cpp_precomp" >&5
2921 echo "${ECHO_T}$ac_cv_gcc_accepts_no_cpp_precomp" >&6
2922 ac_gcc_accepts_no_cpp_precomp="$ac_cv_gcc_accepts_no_cpp_precomp"
2925 if test "$ac_gcc_accepts_no_cpp_precomp" = yes ; then
2926 echo "$as_me:$LINENO: result: Disabling Objective C extensions in ANSI C code." >&5
2927 echo "${ECHO_T}Disabling Objective C extensions in ANSI C code." >&6
2928 CC="$CC -no-cpp-precomp"
2933 ac_cpp='$CPP $CPPFLAGS'
2934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2937 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2938 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2939 # On Suns, sometimes $CPP names a directory.
2940 if test -n "$CPP" && test -d "$CPP"; then
2943 if test -z "$CPP"; then
2944 if test "${ac_cv_prog_CPP+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 # Double quotes because CPP needs to be expanded
2948 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2951 for ac_c_preproc_warn_flag in '' yes
2953 # Use a header file that comes with gcc, so configuring glibc
2954 # with a fresh cross-compiler works.
2955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2956 # <limits.h> exists even on freestanding compilers.
2957 # On the NeXT, cc -E runs the code through the compiler's parser,
2958 # not just through cpp. "Syntax error" is here to catch this case.
2959 cat >conftest.$ac_ext <<_ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2966 # include <limits.h>
2968 # include <assert.h>
2972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2975 grep -v '^ *+' conftest.er1 >conftest.err
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } >/dev/null; then
2980 if test -s conftest.err; then
2981 ac_cpp_err=$ac_c_preproc_warn_flag
2982 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2989 if test -z "$ac_cpp_err"; then
2992 echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2995 # Broken: fails on valid input.
2998 rm -f conftest.err conftest.$ac_ext
3000 # OK, works on sane cases. Now check whether non-existent headers
3001 # can be detected and how.
3002 cat >conftest.$ac_ext <<_ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3008 #include <ac_nonexistent.h>
3010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3013 grep -v '^ *+' conftest.er1 >conftest.err
3015 cat conftest.err >&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } >/dev/null; then
3018 if test -s conftest.err; then
3019 ac_cpp_err=$ac_c_preproc_warn_flag
3020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3027 if test -z "$ac_cpp_err"; then
3028 # Broken: success on invalid input.
3031 echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3034 # Passes both tests.
3038 rm -f conftest.err conftest.$ac_ext
3041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3042 rm -f conftest.err conftest.$ac_ext
3043 if $ac_preproc_ok; then
3055 echo "$as_me:$LINENO: result: $CPP" >&5
3056 echo "${ECHO_T}$CPP" >&6
3058 for ac_c_preproc_warn_flag in '' yes
3060 # Use a header file that comes with gcc, so configuring glibc
3061 # with a fresh cross-compiler works.
3062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3063 # <limits.h> exists even on freestanding compilers.
3064 # On the NeXT, cc -E runs the code through the compiler's parser,
3065 # not just through cpp. "Syntax error" is here to catch this case.
3066 cat >conftest.$ac_ext <<_ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h. */
3073 # include <limits.h>
3075 # include <assert.h>
3079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3082 grep -v '^ *+' conftest.er1 >conftest.err
3084 cat conftest.err >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } >/dev/null; then
3087 if test -s conftest.err; then
3088 ac_cpp_err=$ac_c_preproc_warn_flag
3089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3096 if test -z "$ac_cpp_err"; then
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3102 # Broken: fails on valid input.
3105 rm -f conftest.err conftest.$ac_ext
3107 # OK, works on sane cases. Now check whether non-existent headers
3108 # can be detected and how.
3109 cat >conftest.$ac_ext <<_ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3115 #include <ac_nonexistent.h>
3117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3120 grep -v '^ *+' conftest.er1 >conftest.err
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } >/dev/null; then
3125 if test -s conftest.err; then
3126 ac_cpp_err=$ac_c_preproc_warn_flag
3127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3134 if test -z "$ac_cpp_err"; then
3135 # Broken: success on invalid input.
3138 echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3141 # Passes both tests.
3145 rm -f conftest.err conftest.$ac_ext
3148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3149 rm -f conftest.err conftest.$ac_ext
3150 if $ac_preproc_ok; then
3153 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3154 See \`config.log' for more details." >&5
3155 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3156 See \`config.log' for more details." >&2;}
3157 { (exit 1); exit 1; }; }
3161 ac_cpp='$CPP $CPPFLAGS'
3162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3166 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3167 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3168 if test "${ac_cv_c_const+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 cat >conftest.$ac_ext <<_ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3181 /* FIXME: Include the comments suggested by Paul. */
3183 /* Ultrix mips cc rejects this. */
3184 typedef int charset[2];
3186 /* SunOS 4.1.1 cc rejects this. */
3187 char const *const *ccp;
3189 /* NEC SVR4.0.2 mips cc rejects this. */
3190 struct point {int x, y;};
3191 static struct point const zero = {0,0};
3192 /* AIX XL C 1.02.0.0 rejects this.
3193 It does not let you subtract one const X* pointer from another in
3194 an arm of an if-expression whose if-part is not a constant
3196 const char *g = "string";
3197 ccp = &g + (g ? g-g : 0);
3198 /* HPUX 7.0 cc rejects these. */
3201 ccp = (char const *const *) p;
3202 { /* SCO 3.2v4 cc rejects this. */
3204 char const *s = 0 ? (char *) 0 : (char const *) 0;
3208 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3210 const int *foo = &x[0];
3213 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3214 typedef const int *iptr;
3218 { /* AIX XL C 1.02.0.0 rejects this saying
3219 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3220 struct s { int j; const int *ap[3]; };
3221 struct s *b; b->j = 5;
3223 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3232 rm -f conftest.$ac_objext
3233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3234 (eval $ac_compile) 2>conftest.er1
3236 grep -v '^ *+' conftest.er1 >conftest.err
3238 cat conftest.err >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try='test -z "$ac_c_werror_flag"
3242 || test ! -s conftest.err'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try='test -s conftest.$ac_objext'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3256 echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3263 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3264 echo "${ECHO_T}$ac_cv_c_const" >&6
3265 if test $ac_cv_c_const = no; then
3267 cat >>confdefs.h <<\_ACEOF
3273 echo "$as_me:$LINENO: checking for inline" >&5
3274 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3275 if test "${ac_cv_c_inline+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 for ac_kw in inline __inline__ __inline; do
3280 cat >conftest.$ac_ext <<_ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h. */
3288 static $ac_kw foo_t static_foo () {return 0; }
3289 $ac_kw foo_t foo () {return 0; }
3293 rm -f conftest.$ac_objext
3294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3295 (eval $ac_compile) 2>conftest.er1
3297 grep -v '^ *+' conftest.er1 >conftest.err
3299 cat conftest.err >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } &&
3302 { ac_try='test -z "$ac_c_werror_flag"
3303 || test ! -s conftest.err'
3304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; } &&
3309 { ac_try='test -s conftest.$ac_objext'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3315 ac_cv_c_inline=$ac_kw; break
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3325 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3326 echo "${ECHO_T}$ac_cv_c_inline" >&6
3329 case $ac_cv_c_inline in
3332 case $ac_cv_c_inline in
3334 *) ac_val=$ac_cv_c_inline;;
3336 cat >>confdefs.h <<_ACEOF
3338 #define inline $ac_val
3345 ac_bc_result=`echo 6+9 | bc 2>/dev/null`
3346 echo "$as_me:$LINENO: checking for bc" >&5
3347 echo $ECHO_N "checking for bc... $ECHO_C" >&6
3348 if test "$ac_bc_result" = "15" ; then
3349 echo "$as_me:$LINENO: result: yes" >&5
3350 echo "${ECHO_T}yes" >&6
3352 echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3355 { { echo "$as_me:$LINENO: error: Your system doesn't have \"bc\", which has been a standard
3356 part of Unix since the 1970s. Come back when your vendor
3357 has grown a clue." >&5
3358 echo "$as_me: error: Your system doesn't have \"bc\", which has been a standard
3359 part of Unix since the 1970s. Come back when your vendor
3360 has grown a clue." >&2;}
3361 { (exit 1); exit 1; }; }
3365 # stuff for Makefiles
3366 # Find a good install program. We prefer a C program (faster),
3367 # so one script is as good as another. But avoid the broken or
3368 # incompatible versions:
3369 # SysV /etc/install, /usr/sbin/install
3370 # SunOS /usr/etc/install
3371 # IRIX /sbin/install
3373 # AmigaOS /C/install, which installs bootblocks on floppy discs
3374 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3375 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3376 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3377 # OS/2's system install, which has a completely different semantic
3378 # ./install, which can be erroneously created by make from ./install.sh.
3379 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3380 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3381 if test -z "$INSTALL"; then
3382 if test "${ac_cv_path_install+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 test -z "$as_dir" && as_dir=.
3390 # Account for people who put trailing slashes in PATH elements.
3392 ./ | .// | /cC/* | \
3393 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3394 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3397 # OSF1 and SCO ODT 3.0 have their own names for install.
3398 # Don't use installbsd from OSF since it installs stuff as root
3400 for ac_prog in ginstall scoinst install; do
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3403 if test $ac_prog = install &&
3404 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3405 # AIX install. It has an incompatible calling convention.
3407 elif test $ac_prog = install &&
3408 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3409 # program-specific install script used by HP pwplus--don't use.
3412 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3424 if test "${ac_cv_path_install+set}" = set; then
3425 INSTALL=$ac_cv_path_install
3427 # As a last resort, use the slow shell script. We don't cache a
3428 # path for INSTALL within a source directory, because that will
3429 # break other packages using the cache if that directory is
3430 # removed, or if the path is relative.
3431 INSTALL=$ac_install_sh
3434 echo "$as_me:$LINENO: result: $INSTALL" >&5
3435 echo "${ECHO_T}$INSTALL" >&6
3437 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3438 # It thinks the first close brace ends the variable substitution.
3439 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3441 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3443 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3445 echo "$as_me:$LINENO: checking whether \"\${INSTALL} -d\" creates intermediate directories" >&5
3446 echo $ECHO_N "checking whether \"\${INSTALL} -d\" creates intermediate directories... $ECHO_C" >&6
3447 if test "${ac_cv_install_d_creates_dirs+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 ac_cv_install_d_creates_dirs=no
3452 if mkdir conftestdir; then
3453 cd conftestdir 2>/dev/null
3454 ${INSTALL} -d `pwd`/dir1/dir2 >/dev/null 2>&1
3455 if test -d dir1/dir2/. ; then
3456 ac_cv_install_d_creates_dirs=yes
3463 echo "$as_me:$LINENO: result: $ac_cv_install_d_creates_dirs" >&5
3464 echo "${ECHO_T}$ac_cv_install_d_creates_dirs" >&6
3466 if test "$ac_cv_install_d_creates_dirs" = no ; then
3467 echo "$as_me:$LINENO: checking whether \"mkdir -p\" creates intermediate directories" >&5
3468 echo $ECHO_N "checking whether \"mkdir -p\" creates intermediate directories... $ECHO_C" >&6
3469 if test "${ac_cv_mkdir_p_creates_dirs+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3472 ac_cv_mkdir_p_creates_dirs=no
3474 if mkdir conftestdir; then
3475 cd conftestdir 2>/dev/null
3476 mkdir -p dir1/dir2 >/dev/null 2>&1
3477 if test -d dir1/dir2/. ; then
3478 ac_cv_mkdir_p_creates_dirs=yes
3485 echo "$as_me:$LINENO: result: $ac_cv_mkdir_p_creates_dirs" >&5
3486 echo "${ECHO_T}$ac_cv_mkdir_p_creates_dirs" >&6
3489 if test "$ac_cv_install_d_creates_dirs" = yes ; then
3490 INSTALL_DIRS='${INSTALL} -d'
3491 elif test "$ac_cv_mkdir_p_creates_dirs" = yes ; then
3492 INSTALL_DIRS='mkdir -p'
3495 INSTALL_DIRS='${INSTALL} -d'
3498 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3499 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3500 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3501 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 cat >conftest.make <<\_ACEOF
3506 @echo 'ac_maketemp="$(MAKE)"'
3508 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3509 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3510 if test -n "$ac_maketemp"; then
3511 eval ac_cv_prog_make_${ac_make}_set=yes
3513 eval ac_cv_prog_make_${ac_make}_set=no
3517 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3518 echo "$as_me:$LINENO: result: yes" >&5
3519 echo "${ECHO_T}yes" >&6
3522 echo "$as_me:$LINENO: result: no" >&5
3523 echo "${ECHO_T}no" >&6
3524 SET_MAKE="MAKE=${MAKE-make}"
3528 # By default, autoconf sets INSTALL_SCRIPT to '${INSTALL_PROGRAM}'.
3529 # That's wrong: it should be set to '${INSTALL}', so that one can
3530 # implement the "install-strip" target properly (strip executables,
3531 # but do not try to strip scripts.)
3533 INSTALL_SCRIPT='${INSTALL}'
3537 echo "$as_me:$LINENO: checking for egrep" >&5
3538 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3539 if test "${ac_cv_prog_egrep+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3543 then ac_cv_prog_egrep='grep -E'
3544 else ac_cv_prog_egrep='egrep'
3547 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3548 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3549 EGREP=$ac_cv_prog_egrep
3552 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3553 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3554 if test "${ac_cv_header_stdc+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 cat >conftest.$ac_ext <<_ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3576 rm -f conftest.$ac_objext
3577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3578 (eval $ac_compile) 2>conftest.er1
3580 grep -v '^ *+' conftest.er1 >conftest.err
3582 cat conftest.err >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } &&
3585 { ac_try='test -z "$ac_c_werror_flag"
3586 || test ! -s conftest.err'
3587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; } &&
3592 { ac_try='test -s conftest.$ac_objext'
3593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }; }; then
3598 ac_cv_header_stdc=yes
3600 echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 ac_cv_header_stdc=no
3605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3607 if test $ac_cv_header_stdc = yes; then
3608 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3609 cat >conftest.$ac_ext <<_ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3619 $EGREP "memchr" >/dev/null 2>&1; then
3622 ac_cv_header_stdc=no
3628 if test $ac_cv_header_stdc = yes; then
3629 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3630 cat >conftest.$ac_ext <<_ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640 $EGREP "free" >/dev/null 2>&1; then
3643 ac_cv_header_stdc=no
3649 if test $ac_cv_header_stdc = yes; then
3650 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3651 if test "$cross_compiling" = yes; then
3654 cat >conftest.$ac_ext <<_ACEOF
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
3659 /* end confdefs.h. */
3661 #if ((' ' & 0x0FF) == 0x020)
3662 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3663 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3665 # define ISLOWER(c) \
3666 (('a' <= (c) && (c) <= 'i') \
3667 || ('j' <= (c) && (c) <= 'r') \
3668 || ('s' <= (c) && (c) <= 'z'))
3669 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3672 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3677 for (i = 0; i < 256; i++)
3678 if (XOR (islower (i), ISLOWER (i))
3679 || toupper (i) != TOUPPER (i))
3684 rm -f conftest$ac_exeext
3685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3686 (eval $ac_link) 2>&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; }; then
3697 echo "$as_me: program exited with status $ac_status" >&5
3698 echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3702 ac_cv_header_stdc=no
3704 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3708 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3709 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3710 if test $ac_cv_header_stdc = yes; then
3712 cat >>confdefs.h <<\_ACEOF
3713 #define STDC_HEADERS 1
3718 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3728 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3729 inttypes.h stdint.h unistd.h
3731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3732 echo "$as_me:$LINENO: checking for $ac_header" >&5
3733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 cat >conftest.$ac_ext <<_ACEOF
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h. */
3743 $ac_includes_default
3745 #include <$ac_header>
3747 rm -f conftest.$ac_objext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3749 (eval $ac_compile) 2>conftest.er1
3751 grep -v '^ *+' conftest.er1 >conftest.err
3753 cat conftest.err >&5
3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } &&
3756 { ac_try='test -z "$ac_c_werror_flag"
3757 || test ! -s conftest.err'
3758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; } &&
3763 { ac_try='test -s conftest.$ac_objext'
3764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); }; }; then
3769 eval "$as_ac_Header=yes"
3771 echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3774 eval "$as_ac_Header=no"
3776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3781 cat >>confdefs.h <<_ACEOF
3782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3791 for ac_header in unistd.h
3793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3795 echo "$as_me:$LINENO: checking for $ac_header" >&5
3796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3803 # Is the header compilable?
3804 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3806 cat >conftest.$ac_ext <<_ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812 $ac_includes_default
3813 #include <$ac_header>
3815 rm -f conftest.$ac_objext
3816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3817 (eval $ac_compile) 2>conftest.er1
3819 grep -v '^ *+' conftest.er1 >conftest.err
3821 cat conftest.err >&5
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); } &&
3824 { ac_try='test -z "$ac_c_werror_flag"
3825 || test ! -s conftest.err'
3826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; } &&
3831 { ac_try='test -s conftest.$ac_objext'
3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; }; then
3837 ac_header_compiler=yes
3839 echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3842 ac_header_compiler=no
3844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3846 echo "${ECHO_T}$ac_header_compiler" >&6
3848 # Is the header present?
3849 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3851 cat >conftest.$ac_ext <<_ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h. */
3857 #include <$ac_header>
3859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3862 grep -v '^ *+' conftest.er1 >conftest.err
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } >/dev/null; then
3867 if test -s conftest.err; then
3868 ac_cpp_err=$ac_c_preproc_warn_flag
3869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3876 if test -z "$ac_cpp_err"; then
3877 ac_header_preproc=yes
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 ac_header_preproc=no
3884 rm -f conftest.err conftest.$ac_ext
3885 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3886 echo "${ECHO_T}$ac_header_preproc" >&6
3888 # So? What about this header?
3889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3895 ac_header_preproc=yes
3898 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3900 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3901 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3902 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3904 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3905 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3908 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3912 ## ------------------------------------------ ##
3913 ## Report this to the AC_PACKAGE_NAME lists. ##
3914 ## ------------------------------------------ ##
3917 sed "s/^/$as_me: WARNING: /" >&2
3920 echo "$as_me:$LINENO: checking for $ac_header" >&5
3921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 eval "$as_ac_Header=\$ac_header_preproc"
3927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3932 cat >>confdefs.h <<_ACEOF
3933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3940 echo "$as_me:$LINENO: checking for mode_t" >&5
3941 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
3942 if test "${ac_cv_type_mode_t+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 cat >conftest.$ac_ext <<_ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 $ac_includes_default
3957 if (sizeof (mode_t))
3963 rm -f conftest.$ac_objext
3964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3965 (eval $ac_compile) 2>conftest.er1
3967 grep -v '^ *+' conftest.er1 >conftest.err
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
3972 { ac_try='test -z "$ac_c_werror_flag"
3973 || test ! -s conftest.err'
3974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; } &&
3979 { ac_try='test -s conftest.$ac_objext'
3980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3985 ac_cv_type_mode_t=yes
3987 echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3990 ac_cv_type_mode_t=no
3992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3994 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
3995 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
3996 if test $ac_cv_type_mode_t = yes; then
4000 cat >>confdefs.h <<_ACEOF
4006 echo "$as_me:$LINENO: checking for pid_t" >&5
4007 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4008 if test "${ac_cv_type_pid_t+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 cat >conftest.$ac_ext <<_ACEOF
4014 cat confdefs.h >>conftest.$ac_ext
4015 cat >>conftest.$ac_ext <<_ACEOF
4016 /* end confdefs.h. */
4017 $ac_includes_default
4029 rm -f conftest.$ac_objext
4030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4031 (eval $ac_compile) 2>conftest.er1
4033 grep -v '^ *+' conftest.er1 >conftest.err
4035 cat conftest.err >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } &&
4038 { ac_try='test -z "$ac_c_werror_flag"
4039 || test ! -s conftest.err'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; } &&
4045 { ac_try='test -s conftest.$ac_objext'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; }; then
4051 ac_cv_type_pid_t=yes
4053 echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4060 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4061 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4062 if test $ac_cv_type_pid_t = yes; then
4066 cat >>confdefs.h <<_ACEOF
4072 echo "$as_me:$LINENO: checking for size_t" >&5
4073 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4074 if test "${ac_cv_type_size_t+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4077 cat >conftest.$ac_ext <<_ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4083 $ac_includes_default
4089 if (sizeof (size_t))
4095 rm -f conftest.$ac_objext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4097 (eval $ac_compile) 2>conftest.er1
4099 grep -v '^ *+' conftest.er1 >conftest.err
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } &&
4104 { ac_try='test -z "$ac_c_werror_flag"
4105 || test ! -s conftest.err'
4106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; } &&
4111 { ac_try='test -s conftest.$ac_objext'
4112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; }; then
4117 ac_cv_type_size_t=yes
4119 echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4122 ac_cv_type_size_t=no
4124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4126 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4127 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4128 if test $ac_cv_type_size_t = yes; then
4132 cat >>confdefs.h <<_ACEOF
4133 #define size_t unsigned
4138 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4139 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4140 if test "${ac_cv_type_signal+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 cat >conftest.$ac_ext <<_ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4149 #include <sys/types.h>
4155 extern "C" void (*signal (int, void (*)(int)))(int);
4157 void (*signal ()) ();
4168 rm -f conftest.$ac_objext
4169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4170 (eval $ac_compile) 2>conftest.er1
4172 grep -v '^ *+' conftest.er1 >conftest.err
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
4177 { ac_try='test -z "$ac_c_werror_flag"
4178 || test ! -s conftest.err'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; } &&
4184 { ac_try='test -s conftest.$ac_objext'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
4190 ac_cv_type_signal=void
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 ac_cv_type_signal=int
4197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4199 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4200 echo "${ECHO_T}$ac_cv_type_signal" >&6
4202 cat >>confdefs.h <<_ACEOF
4203 #define RETSIGTYPE $ac_cv_type_signal
4207 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4208 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4209 if test "${ac_cv_header_time+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4218 #include <sys/types.h>
4219 #include <sys/time.h>
4225 if ((struct tm *) 0)
4231 rm -f conftest.$ac_objext
4232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4233 (eval $ac_compile) 2>conftest.er1
4235 grep -v '^ *+' conftest.er1 >conftest.err
4237 cat conftest.err >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } &&
4240 { ac_try='test -z "$ac_c_werror_flag"
4241 || test ! -s conftest.err'
4242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; } &&
4247 { ac_try='test -s conftest.$ac_objext'
4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); }; }; then
4253 ac_cv_header_time=yes
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4258 ac_cv_header_time=no
4260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4262 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4263 echo "${ECHO_T}$ac_cv_header_time" >&6
4264 if test $ac_cv_header_time = yes; then
4266 cat >>confdefs.h <<\_ACEOF
4267 #define TIME_WITH_SYS_TIME 1
4272 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4273 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4274 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 cat >conftest.$ac_ext <<_ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4283 #include <sys/types.h>
4284 #include <sys/wait.h>
4286 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4289 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4297 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4302 rm -f conftest.$ac_objext
4303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4304 (eval $ac_compile) 2>conftest.er1
4306 grep -v '^ *+' conftest.er1 >conftest.err
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try='test -z "$ac_c_werror_flag"
4312 || test ! -s conftest.err'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; } &&
4318 { ac_try='test -s conftest.$ac_objext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 ac_cv_header_sys_wait_h=yes
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4329 ac_cv_header_sys_wait_h=no
4331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4333 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4334 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4335 if test $ac_cv_header_sys_wait_h = yes; then
4337 cat >>confdefs.h <<\_ACEOF
4338 #define HAVE_SYS_WAIT_H 1
4349 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4350 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4351 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4352 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 cat >conftest.$ac_ext <<_ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4362 #include <sys/types.h>
4374 rm -f conftest.$ac_objext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>conftest.er1
4378 grep -v '^ *+' conftest.er1 >conftest.err
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } &&
4383 { ac_try='test -z "$ac_c_werror_flag"
4384 || test ! -s conftest.err'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; } &&
4390 { ac_try='test -s conftest.$ac_objext'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4396 eval "$as_ac_Header=yes"
4398 echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4401 eval "$as_ac_Header=no"
4403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4408 cat >>confdefs.h <<_ACEOF
4409 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4412 ac_header_dirent=$ac_hdr; break
4416 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4417 if test $ac_header_dirent = dirent.h; then
4418 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4419 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4420 if test "${ac_cv_search_opendir+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 ac_func_search_save_LIBS=$LIBS
4424 ac_cv_search_opendir=no
4425 cat >conftest.$ac_ext <<_ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4432 /* Override any gcc2 internal prototype to avoid an error. */
4436 /* We use char because int might match the return type of a gcc2
4437 builtin and then its argument prototype would still apply. */
4447 rm -f conftest.$ac_objext conftest$ac_exeext
4448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4449 (eval $ac_link) 2>conftest.er1
4451 grep -v '^ *+' conftest.er1 >conftest.err
4453 cat conftest.err >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } &&
4456 { ac_try='test -z "$ac_c_werror_flag"
4457 || test ! -s conftest.err'
4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; } &&
4463 { ac_try='test -s conftest$ac_exeext'
4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; }; then
4469 ac_cv_search_opendir="none required"
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4475 rm -f conftest.err conftest.$ac_objext \
4476 conftest$ac_exeext conftest.$ac_ext
4477 if test "$ac_cv_search_opendir" = no; then
4478 for ac_lib in dir; do
4479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4480 cat >conftest.$ac_ext <<_ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4487 /* Override any gcc2 internal prototype to avoid an error. */
4491 /* We use char because int might match the return type of a gcc2
4492 builtin and then its argument prototype would still apply. */
4502 rm -f conftest.$ac_objext conftest$ac_exeext
4503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4504 (eval $ac_link) 2>conftest.er1
4506 grep -v '^ *+' conftest.er1 >conftest.err
4508 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } &&
4511 { ac_try='test -z "$ac_c_werror_flag"
4512 || test ! -s conftest.err'
4513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; } &&
4518 { ac_try='test -s conftest$ac_exeext'
4519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); }; }; then
4524 ac_cv_search_opendir="-l$ac_lib"
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4531 rm -f conftest.err conftest.$ac_objext \
4532 conftest$ac_exeext conftest.$ac_ext
4535 LIBS=$ac_func_search_save_LIBS
4537 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4538 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4539 if test "$ac_cv_search_opendir" != no; then
4540 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4545 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4546 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4547 if test "${ac_cv_search_opendir+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 ac_func_search_save_LIBS=$LIBS
4551 ac_cv_search_opendir=no
4552 cat >conftest.$ac_ext <<_ACEOF
4555 cat confdefs.h >>conftest.$ac_ext
4556 cat >>conftest.$ac_ext <<_ACEOF
4557 /* end confdefs.h. */
4559 /* Override any gcc2 internal prototype to avoid an error. */
4563 /* We use char because int might match the return type of a gcc2
4564 builtin and then its argument prototype would still apply. */
4574 rm -f conftest.$ac_objext conftest$ac_exeext
4575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4576 (eval $ac_link) 2>conftest.er1
4578 grep -v '^ *+' conftest.er1 >conftest.err
4580 cat conftest.err >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); } &&
4583 { ac_try='test -z "$ac_c_werror_flag"
4584 || test ! -s conftest.err'
4585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); }; } &&
4590 { ac_try='test -s conftest$ac_exeext'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; }; then
4596 ac_cv_search_opendir="none required"
4598 echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.$ac_ext >&5
4602 rm -f conftest.err conftest.$ac_objext \
4603 conftest$ac_exeext conftest.$ac_ext
4604 if test "$ac_cv_search_opendir" = no; then
4606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4607 cat >conftest.$ac_ext <<_ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4614 /* Override any gcc2 internal prototype to avoid an error. */
4618 /* We use char because int might match the return type of a gcc2
4619 builtin and then its argument prototype would still apply. */
4629 rm -f conftest.$ac_objext conftest$ac_exeext
4630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4631 (eval $ac_link) 2>conftest.er1
4633 grep -v '^ *+' conftest.er1 >conftest.err
4635 cat conftest.err >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } &&
4638 { ac_try='test -z "$ac_c_werror_flag"
4639 || test ! -s conftest.err'
4640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; } &&
4645 { ac_try='test -s conftest$ac_exeext'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; }; then
4651 ac_cv_search_opendir="-l$ac_lib"
4654 echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4658 rm -f conftest.err conftest.$ac_objext \
4659 conftest$ac_exeext conftest.$ac_ext
4662 LIBS=$ac_func_search_save_LIBS
4664 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4665 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4666 if test "$ac_cv_search_opendir" != no; then
4667 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4673 echo "$as_me:$LINENO: checking how to call gettimeofday" >&5
4674 echo $ECHO_N "checking how to call gettimeofday... $ECHO_C" >&6
4675 if test "${ac_cv_gettimeofday_args+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 cat >conftest.$ac_ext <<_ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4685 #include <sys/time.h>
4689 struct timeval tv; struct timezone tzp;
4690 gettimeofday(&tv, &tzp);
4695 rm -f conftest.$ac_objext
4696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4697 (eval $ac_compile) 2>conftest.er1
4699 grep -v '^ *+' conftest.er1 >conftest.err
4701 cat conftest.err >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } &&
4704 { ac_try='test -z "$ac_c_werror_flag"
4705 || test ! -s conftest.err'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; } &&
4711 { ac_try='test -s conftest.$ac_objext'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; }; then
4717 ac_gettimeofday_args=2
4719 echo "$as_me: failed program was:" >&5
4720 sed 's/^/| /' conftest.$ac_ext >&5
4722 cat >conftest.$ac_ext <<_ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4729 #include <sys/time.h>
4733 struct timeval tv; gettimeofday(&tv);
4738 rm -f conftest.$ac_objext
4739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4740 (eval $ac_compile) 2>conftest.er1
4742 grep -v '^ *+' conftest.er1 >conftest.err
4744 cat conftest.err >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } &&
4747 { ac_try='test -z "$ac_c_werror_flag"
4748 || test ! -s conftest.err'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; } &&
4754 { ac_try='test -s conftest.$ac_objext'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; }; then
4760 ac_gettimeofday_args=1
4762 echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4765 ac_gettimeofday_args=0
4767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4770 ac_cv_gettimeofday_args=$ac_gettimeofday_args
4773 ac_gettimeofday_args=$ac_cv_gettimeofday_args
4774 if test "$ac_gettimeofday_args" = 1 ; then
4775 cat >>confdefs.h <<\_ACEOF
4776 #define HAVE_GETTIMEOFDAY 1
4779 echo "$as_me:$LINENO: result: one argument" >&5
4780 echo "${ECHO_T}one argument" >&6
4781 elif test "$ac_gettimeofday_args" = 2 ; then
4782 cat >>confdefs.h <<\_ACEOF
4783 #define HAVE_GETTIMEOFDAY 1
4786 cat >>confdefs.h <<\_ACEOF
4787 #define GETTIMEOFDAY_TWO_ARGS 1
4790 echo "$as_me:$LINENO: result: two arguments" >&5
4791 echo "${ECHO_T}two arguments" >&6
4793 echo "$as_me:$LINENO: result: unknown" >&5
4794 echo "${ECHO_T}unknown" >&6
4806 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv sbrk
4808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4809 echo "$as_me:$LINENO: checking for $ac_func" >&5
4810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4811 if eval "test \"\${$as_ac_var+set}\" = set"; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 cat >conftest.$ac_ext <<_ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4822 #define $ac_func innocuous_$ac_func
4824 /* System header to define __stub macros and hopefully few prototypes,
4825 which can conflict with char $ac_func (); below.
4826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4827 <limits.h> exists even on freestanding compilers. */
4830 # include <limits.h>
4832 # include <assert.h>
4837 /* Override any gcc2 internal prototype to avoid an error. */
4842 /* We use char because int might match the return type of a gcc2
4843 builtin and then its argument prototype would still apply. */
4845 /* The GNU C library defines this for functions which it implements
4846 to always fail with ENOSYS. Some functions are actually named
4847 something starting with __ and the normal name is an alias. */
4848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4851 char (*f) () = $ac_func;
4860 return f != $ac_func;
4865 rm -f conftest.$ac_objext conftest$ac_exeext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4867 (eval $ac_link) 2>conftest.er1
4869 grep -v '^ *+' conftest.er1 >conftest.err
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try='test -z "$ac_c_werror_flag"
4875 || test ! -s conftest.err'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; } &&
4881 { ac_try='test -s conftest$ac_exeext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 eval "$as_ac_var=yes"
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4892 eval "$as_ac_var=no"
4894 rm -f conftest.err conftest.$ac_objext \
4895 conftest$ac_exeext conftest.$ac_ext
4897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4899 if test `eval echo '${'$as_ac_var'}'` = yes; then
4900 cat >>confdefs.h <<_ACEOF
4901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4911 for ac_func in sigaction syslog realpath setrlimit
4913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4914 echo "$as_me:$LINENO: checking for $ac_func" >&5
4915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4916 if eval "test \"\${$as_ac_var+set}\" = set"; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 cat >conftest.$ac_ext <<_ACEOF
4922 cat confdefs.h >>conftest.$ac_ext
4923 cat >>conftest.$ac_ext <<_ACEOF
4924 /* end confdefs.h. */
4925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4927 #define $ac_func innocuous_$ac_func
4929 /* System header to define __stub macros and hopefully few prototypes,
4930 which can conflict with char $ac_func (); below.
4931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4932 <limits.h> exists even on freestanding compilers. */
4935 # include <limits.h>
4937 # include <assert.h>
4942 /* Override any gcc2 internal prototype to avoid an error. */
4947 /* We use char because int might match the return type of a gcc2
4948 builtin and then its argument prototype would still apply. */
4950 /* The GNU C library defines this for functions which it implements
4951 to always fail with ENOSYS. Some functions are actually named
4952 something starting with __ and the normal name is an alias. */
4953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4956 char (*f) () = $ac_func;
4965 return f != $ac_func;
4970 rm -f conftest.$ac_objext conftest$ac_exeext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4972 (eval $ac_link) 2>conftest.er1
4974 grep -v '^ *+' conftest.er1 >conftest.err
4976 cat conftest.err >&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } &&
4979 { ac_try='test -z "$ac_c_werror_flag"
4980 || test ! -s conftest.err'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; } &&
4986 { ac_try='test -s conftest$ac_exeext'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
4992 eval "$as_ac_var=yes"
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4997 eval "$as_ac_var=no"
4999 rm -f conftest.err conftest.$ac_objext \
5000 conftest$ac_exeext conftest.$ac_ext
5002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5004 if test `eval echo '${'$as_ac_var'}'` = yes; then
5005 cat >>confdefs.h <<_ACEOF
5006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5012 echo "$as_me:$LINENO: checking for struct icmp" >&5
5013 echo $ECHO_N "checking for struct icmp... $ECHO_C" >&6
5014 if test "${ac_cv_have_icmp+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5017 cat >conftest.$ac_ext <<_ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5030 #include <sys/types.h>
5031 #include <sys/time.h>
5032 #include <sys/ipc.h>
5033 #include <sys/shm.h>
5034 #include <sys/socket.h>
5035 #include <netinet/in_systm.h>
5036 #include <netinet/in.h>
5037 #include <netinet/ip.h>
5038 #include <netinet/ip_icmp.h>
5039 #include <netinet/udp.h>
5040 #include <arpa/inet.h>
5047 struct sockaddr_in si;
5049 i.icmp_type = ICMP_ECHO;
5054 si.sin_family = AF_INET;
5055 #if defined(__DECC) || defined(_IP_VHL)
5065 rm -f conftest.$ac_objext
5066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067 (eval $ac_compile) 2>conftest.er1
5069 grep -v '^ *+' conftest.er1 >conftest.err
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try='test -z "$ac_c_werror_flag"
5075 || test ! -s conftest.err'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; } &&
5081 { ac_try='test -s conftest.$ac_objext'
5082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5096 echo "$as_me:$LINENO: result: $ac_cv_have_icmp" >&5
5097 echo "${ECHO_T}$ac_cv_have_icmp" >&6
5098 if test "$ac_cv_have_icmp" = yes ; then
5099 cat >>confdefs.h <<\_ACEOF
5104 echo "$as_me:$LINENO: checking for struct icmphdr" >&5
5105 echo $ECHO_N "checking for struct icmphdr... $ECHO_C" >&6
5106 if test "${ac_cv_have_icmphdr+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 cat >conftest.$ac_ext <<_ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h. */
5122 #include <sys/types.h>
5123 #include <sys/time.h>
5124 #include <sys/ipc.h>
5125 #include <sys/shm.h>
5126 #include <sys/socket.h>
5127 #include <netinet/in_systm.h>
5128 #include <netinet/in.h>
5129 #include <netinet/ip.h>
5130 #include <netinet/ip_icmp.h>
5131 #include <netinet/udp.h>
5132 #include <arpa/inet.h>
5139 struct sockaddr_in si;
5145 i.un.echo.sequence = 0;
5146 si.sin_family = AF_INET;
5152 rm -f conftest.$ac_objext
5153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5154 (eval $ac_compile) 2>conftest.er1
5156 grep -v '^ *+' conftest.er1 >conftest.err
5158 cat conftest.err >&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); } &&
5161 { ac_try='test -z "$ac_c_werror_flag"
5162 || test ! -s conftest.err'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; } &&
5168 { ac_try='test -s conftest.$ac_objext'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; }; then
5174 ac_cv_have_icmphdr=yes
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5179 ac_cv_have_icmphdr=no
5181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5183 echo "$as_me:$LINENO: result: $ac_cv_have_icmphdr" >&5
5184 echo "${ECHO_T}$ac_cv_have_icmphdr" >&6
5185 if test "$ac_cv_have_icmphdr" = yes ; then
5186 cat >>confdefs.h <<\_ACEOF
5187 #define HAVE_ICMPHDR 1
5193 for ac_header in crypt.h sys/select.h
5195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5197 echo "$as_me:$LINENO: checking for $ac_header" >&5
5198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5200 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5205 # Is the header compilable?
5206 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5208 cat >conftest.$ac_ext <<_ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 $ac_includes_default
5215 #include <$ac_header>
5217 rm -f conftest.$ac_objext
5218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219 (eval $ac_compile) 2>conftest.er1
5221 grep -v '^ *+' conftest.er1 >conftest.err
5223 cat conftest.err >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } &&
5226 { ac_try='test -z "$ac_c_werror_flag"
5227 || test ! -s conftest.err'
5228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); }; } &&
5233 { ac_try='test -s conftest.$ac_objext'
5234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; }; then
5239 ac_header_compiler=yes
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5244 ac_header_compiler=no
5246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5248 echo "${ECHO_T}$ac_header_compiler" >&6
5250 # Is the header present?
5251 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5253 cat >conftest.$ac_ext <<_ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h. */
5259 #include <$ac_header>
5261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5264 grep -v '^ *+' conftest.er1 >conftest.err
5266 cat conftest.err >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } >/dev/null; then
5269 if test -s conftest.err; then
5270 ac_cpp_err=$ac_c_preproc_warn_flag
5271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5278 if test -z "$ac_cpp_err"; then
5279 ac_header_preproc=yes
5281 echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5284 ac_header_preproc=no
5286 rm -f conftest.err conftest.$ac_ext
5287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5288 echo "${ECHO_T}$ac_header_preproc" >&6
5290 # So? What about this header?
5291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5293 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5296 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5297 ac_header_preproc=yes
5300 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5301 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5302 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5303 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5304 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5305 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5306 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5307 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5310 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5311 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5314 ## ------------------------------------------ ##
5315 ## Report this to the AC_PACKAGE_NAME lists. ##
5316 ## ------------------------------------------ ##
5319 sed "s/^/$as_me: WARNING: /" >&2
5322 echo "$as_me:$LINENO: checking for $ac_header" >&5
5323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 eval "$as_ac_Header=\$ac_header_preproc"
5329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5334 cat >>confdefs.h <<_ACEOF
5335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5342 for ac_prog in perl5 perl
5344 # Extract the first word of "$ac_prog", so it can be a program name with args.
5345 set dummy $ac_prog; ac_word=$2
5346 echo "$as_me:$LINENO: checking for $ac_word" >&5
5347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5348 if test "${ac_cv_path_PERL+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5363 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 PERL=$ac_cv_path_PERL
5375 if test -n "$PERL"; then
5376 echo "$as_me:$LINENO: result: $PERL" >&5
5377 echo "${ECHO_T}$PERL" >&6
5379 echo "$as_me:$LINENO: result: no" >&5
5380 echo "${ECHO_T}no" >&6
5383 test -n "$PERL" && break
5386 if test -z "$PERL" ; then
5389 echo "$as_me:$LINENO: checking perl version" >&5
5390 echo $ECHO_N "checking perl version... $ECHO_C" >&6
5391 if test "${ac_cv_perl_version+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5394 ac_cv_perl_version=`$PERL -e "$perl_version_cmd"`
5396 echo "$as_me:$LINENO: result: $ac_cv_perl_version" >&5
5397 echo "${ECHO_T}$ac_cv_perl_version" >&6
5398 PERL_VERSION=$ac_cv_perl_version
5402 if test -z "$PERL" ; then
5403 # don't let it be blank...
5407 echo "$as_me:$LINENO: checking for X" >&5
5408 echo $ECHO_N "checking for X... $ECHO_C" >&6
5411 # Check whether --with-x or --without-x was given.
5412 if test "${with_x+set}" = set; then
5416 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5417 if test "x$with_x" = xno; then
5418 # The user explicitly disabled X.
5421 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5422 # Both variables are already set.
5425 if test "${ac_cv_have_x+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 # One or both of the vars are not set, and there is no cached value.
5429 ac_x_includes=no ac_x_libraries=no
5431 if mkdir conftest.dir; then
5433 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5434 cat >Imakefile <<'_ACEOF'
5436 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5438 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5439 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5440 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5441 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5442 for ac_extension in a so sl; do
5443 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5444 test -f $ac_im_libdir/libX11.$ac_extension; then
5445 ac_im_usrlibdir=$ac_im_libdir; break
5448 # Screen out bogus values from the imake configuration. They are
5449 # bogus both because they are the default anyway, and because
5450 # using them would break gcc on systems where it needs fixed includes.
5451 case $ac_im_incroot in
5453 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5455 case $ac_im_usrlibdir in
5457 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5464 # Standard set of common directories for X headers.
5465 # Check X11 before X11Rn because it is often a symlink to the current release.
5477 /usr/local/X11/include
5478 /usr/local/X11R6/include
5479 /usr/local/X11R5/include
5480 /usr/local/X11R4/include
5482 /usr/local/include/X11
5483 /usr/local/include/X11R6
5484 /usr/local/include/X11R5
5485 /usr/local/include/X11R4
5489 /usr/XFree86/include/X11
5493 /usr/unsupported/include
5495 /usr/local/x11r5/include
5496 /usr/lpp/Xamples/include
5498 /usr/openwin/include
5499 /usr/openwin/share/include'
5501 if test "$ac_x_includes" = no; then
5502 # Guess where to find include files, by looking for Intrinsic.h.
5503 # First, try using that file with no special directory specified.
5504 cat >conftest.$ac_ext <<_ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5510 #include <X11/Intrinsic.h>
5512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5515 grep -v '^ *+' conftest.er1 >conftest.err
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } >/dev/null; then
5520 if test -s conftest.err; then
5521 ac_cpp_err=$ac_c_preproc_warn_flag
5522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5529 if test -z "$ac_cpp_err"; then
5530 # We can compile using X headers with no special include directory.
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5536 for ac_dir in $ac_x_header_dirs; do
5537 if test -r "$ac_dir/X11/Intrinsic.h"; then
5538 ac_x_includes=$ac_dir
5543 rm -f conftest.err conftest.$ac_ext
5544 fi # $ac_x_includes = no
5546 if test "$ac_x_libraries" = no; then
5547 # Check for the libraries.
5548 # See if we find them without any special options.
5549 # Don't add to $LIBS permanently.
5552 cat >conftest.$ac_ext <<_ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5558 #include <X11/Intrinsic.h>
5567 rm -f conftest.$ac_objext conftest$ac_exeext
5568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5569 (eval $ac_link) 2>conftest.er1
5571 grep -v '^ *+' conftest.er1 >conftest.err
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } &&
5576 { ac_try='test -z "$ac_c_werror_flag"
5577 || test ! -s conftest.err'
5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; } &&
5583 { ac_try='test -s conftest$ac_exeext'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }; then
5590 # We can link X programs with no special library path.
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5597 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5599 # Don't even attempt the hair of trying to link an X program!
5600 for ac_extension in a so sl; do
5601 if test -r $ac_dir/libXt.$ac_extension; then
5602 ac_x_libraries=$ac_dir
5608 rm -f conftest.err conftest.$ac_objext \
5609 conftest$ac_exeext conftest.$ac_ext
5610 fi # $ac_x_libraries = no
5612 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5613 # Didn't find X anywhere. Cache the known absence of X.
5614 ac_cv_have_x="have_x=no"
5616 # Record where we found X for the cache.
5617 ac_cv_have_x="have_x=yes \
5618 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5623 eval "$ac_cv_have_x"
5626 if test "$have_x" != yes; then
5627 echo "$as_me:$LINENO: result: $have_x" >&5
5628 echo "${ECHO_T}$have_x" >&6
5631 # If each of the values was on the command line, it overrides each guess.
5632 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5633 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5634 # Update the cache value to reflect the command line values.
5635 ac_cv_have_x="have_x=yes \
5636 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5637 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5638 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5641 if test "$no_x" = yes; then
5642 # Not all programs may use this symbol, but it does not hurt to define it.
5644 cat >>confdefs.h <<\_ACEOF
5645 #define X_DISPLAY_MISSING 1
5648 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5650 if test -n "$x_includes"; then
5651 X_CFLAGS="$X_CFLAGS -I$x_includes"
5654 # It would also be nice to do this for all -L options, not just this one.
5655 if test -n "$x_libraries"; then
5656 X_LIBS="$X_LIBS -L$x_libraries"
5657 # For Solaris; some versions of Sun CC require a space after -R and
5658 # others require no space. Words are not sufficient . . . .
5659 case `(uname -sr) 2>/dev/null` in
5661 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5662 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5663 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5664 cat >conftest.$ac_ext <<_ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5679 rm -f conftest.$ac_objext conftest$ac_exeext
5680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5681 (eval $ac_link) 2>conftest.er1
5683 grep -v '^ *+' conftest.er1 >conftest.err
5685 cat conftest.err >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } &&
5688 { ac_try='test -z "$ac_c_werror_flag"
5689 || test ! -s conftest.err'
5690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; } &&
5695 { ac_try='test -s conftest$ac_exeext'
5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; }; then
5703 echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5708 rm -f conftest.err conftest.$ac_objext \
5709 conftest$ac_exeext conftest.$ac_ext
5710 if test $ac_R_nospace = yes; then
5711 echo "$as_me:$LINENO: result: no" >&5
5712 echo "${ECHO_T}no" >&6
5713 X_LIBS="$X_LIBS -R$x_libraries"
5715 LIBS="$ac_xsave_LIBS -R $x_libraries"
5716 cat >conftest.$ac_ext <<_ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5731 rm -f conftest.$ac_objext conftest$ac_exeext
5732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5733 (eval $ac_link) 2>conftest.er1
5735 grep -v '^ *+' conftest.er1 >conftest.err
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try='test -z "$ac_c_werror_flag"
5741 || test ! -s conftest.err'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; } &&
5747 { ac_try='test -s conftest$ac_exeext'
5748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; }; then
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5760 rm -f conftest.err conftest.$ac_objext \
5761 conftest$ac_exeext conftest.$ac_ext
5762 if test $ac_R_space = yes; then
5763 echo "$as_me:$LINENO: result: yes" >&5
5764 echo "${ECHO_T}yes" >&6
5765 X_LIBS="$X_LIBS -R $x_libraries"
5767 echo "$as_me:$LINENO: result: neither works" >&5
5768 echo "${ECHO_T}neither works" >&6
5775 # Check for system-dependent libraries X programs must link with.
5776 # Do this before checking for the system-independent R6 libraries
5777 # (-lICE), since we may need -lsocket or whatever for X linking.
5779 if test "$ISC" = yes; then
5780 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5782 # Martyn Johnson says this is needed for Ultrix, if the X
5783 # libraries were built with DECnet support. And Karl Berry says
5784 # the Alpha needs dnet_stub (dnet does not exist).
5785 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5786 cat >conftest.$ac_ext <<_ACEOF
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h. */
5793 /* Override any gcc2 internal prototype to avoid an error. */
5797 /* We use char because int might match the return type of a gcc2
5798 builtin and then its argument prototype would still apply. */
5799 char XOpenDisplay ();
5808 rm -f conftest.$ac_objext conftest$ac_exeext
5809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5810 (eval $ac_link) 2>conftest.er1
5812 grep -v '^ *+' conftest.er1 >conftest.err
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try='test -z "$ac_c_werror_flag"
5818 || test ! -s conftest.err'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; } &&
5824 { ac_try='test -s conftest$ac_exeext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5835 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5836 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5837 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 ac_check_lib_save_LIBS=$LIBS
5842 cat >conftest.$ac_ext <<_ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5849 /* Override any gcc2 internal prototype to avoid an error. */
5853 /* We use char because int might match the return type of a gcc2
5854 builtin and then its argument prototype would still apply. */
5864 rm -f conftest.$ac_objext conftest$ac_exeext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5866 (eval $ac_link) 2>conftest.er1
5868 grep -v '^ *+' conftest.er1 >conftest.err
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -z "$ac_c_werror_flag"
5874 || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try='test -s conftest$ac_exeext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 ac_cv_lib_dnet_dnet_ntoa=yes
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5891 ac_cv_lib_dnet_dnet_ntoa=no
5893 rm -f conftest.err conftest.$ac_objext \
5894 conftest$ac_exeext conftest.$ac_ext
5895 LIBS=$ac_check_lib_save_LIBS
5897 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5898 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5899 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5900 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5903 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5904 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5905 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5906 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5909 ac_check_lib_save_LIBS=$LIBS
5910 LIBS="-ldnet_stub $LIBS"
5911 cat >conftest.$ac_ext <<_ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5918 /* Override any gcc2 internal prototype to avoid an error. */
5922 /* We use char because int might match the return type of a gcc2
5923 builtin and then its argument prototype would still apply. */
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935 (eval $ac_link) 2>conftest.er1
5937 grep -v '^ *+' conftest.er1 >conftest.err
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } &&
5942 { ac_try='test -z "$ac_c_werror_flag"
5943 || test ! -s conftest.err'
5944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; } &&
5949 { ac_try='test -s conftest$ac_exeext'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5955 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5960 ac_cv_lib_dnet_stub_dnet_ntoa=no
5962 rm -f conftest.err conftest.$ac_objext \
5963 conftest$ac_exeext conftest.$ac_ext
5964 LIBS=$ac_check_lib_save_LIBS
5966 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5967 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5968 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5969 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5974 rm -f conftest.err conftest.$ac_objext \
5975 conftest$ac_exeext conftest.$ac_ext
5976 LIBS="$ac_xsave_LIBS"
5978 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5979 # to get the SysV transport functions.
5980 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5982 # The nsl library prevents programs from opening the X display
5983 # on Irix 5.2, according to T.E. Dickey.
5984 # The functions gethostbyname, getservbyname, and inet_addr are
5985 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5986 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5987 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5988 if test "${ac_cv_func_gethostbyname+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 cat >conftest.$ac_ext <<_ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5997 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5999 #define gethostbyname innocuous_gethostbyname
6001 /* System header to define __stub macros and hopefully few prototypes,
6002 which can conflict with char gethostbyname (); below.
6003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6004 <limits.h> exists even on freestanding compilers. */
6007 # include <limits.h>
6009 # include <assert.h>
6012 #undef gethostbyname
6014 /* Override any gcc2 internal prototype to avoid an error. */
6019 /* We use char because int might match the return type of a gcc2
6020 builtin and then its argument prototype would still apply. */
6021 char gethostbyname ();
6022 /* The GNU C library defines this for functions which it implements
6023 to always fail with ENOSYS. Some functions are actually named
6024 something starting with __ and the normal name is an alias. */
6025 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6028 char (*f) () = gethostbyname;
6037 return f != gethostbyname;
6042 rm -f conftest.$ac_objext conftest$ac_exeext
6043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6044 (eval $ac_link) 2>conftest.er1
6046 grep -v '^ *+' conftest.er1 >conftest.err
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } &&
6051 { ac_try='test -z "$ac_c_werror_flag"
6052 || test ! -s conftest.err'
6053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; } &&
6058 { ac_try='test -s conftest$ac_exeext'
6059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }; }; then
6064 ac_cv_func_gethostbyname=yes
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6069 ac_cv_func_gethostbyname=no
6071 rm -f conftest.err conftest.$ac_objext \
6072 conftest$ac_exeext conftest.$ac_ext
6074 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6075 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6077 if test $ac_cv_func_gethostbyname = no; then
6078 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6079 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6080 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 ac_check_lib_save_LIBS=$LIBS
6085 cat >conftest.$ac_ext <<_ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6092 /* Override any gcc2 internal prototype to avoid an error. */
6096 /* We use char because int might match the return type of a gcc2
6097 builtin and then its argument prototype would still apply. */
6098 char gethostbyname ();
6107 rm -f conftest.$ac_objext conftest$ac_exeext
6108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6109 (eval $ac_link) 2>conftest.er1
6111 grep -v '^ *+' conftest.er1 >conftest.err
6113 cat conftest.err >&5
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); } &&
6116 { ac_try='test -z "$ac_c_werror_flag"
6117 || test ! -s conftest.err'
6118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; } &&
6123 { ac_try='test -s conftest$ac_exeext'
6124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
6129 ac_cv_lib_nsl_gethostbyname=yes
6131 echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6134 ac_cv_lib_nsl_gethostbyname=no
6136 rm -f conftest.err conftest.$ac_objext \
6137 conftest$ac_exeext conftest.$ac_ext
6138 LIBS=$ac_check_lib_save_LIBS
6140 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6141 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6142 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6143 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6146 if test $ac_cv_lib_nsl_gethostbyname = no; then
6147 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6148 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6149 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 ac_check_lib_save_LIBS=$LIBS
6154 cat >conftest.$ac_ext <<_ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6161 /* Override any gcc2 internal prototype to avoid an error. */
6165 /* We use char because int might match the return type of a gcc2
6166 builtin and then its argument prototype would still apply. */
6167 char gethostbyname ();
6176 rm -f conftest.$ac_objext conftest$ac_exeext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6178 (eval $ac_link) 2>conftest.er1
6180 grep -v '^ *+' conftest.er1 >conftest.err
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try='test -z "$ac_c_werror_flag"
6186 || test ! -s conftest.err'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try='test -s conftest$ac_exeext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 ac_cv_lib_bsd_gethostbyname=yes
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6203 ac_cv_lib_bsd_gethostbyname=no
6205 rm -f conftest.err conftest.$ac_objext \
6206 conftest$ac_exeext conftest.$ac_ext
6207 LIBS=$ac_check_lib_save_LIBS
6209 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6210 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6211 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6212 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6218 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6219 # socket/setsockopt and other routines are undefined under SCO ODT
6220 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6221 # on later versions), says Simon Leinen: it contains gethostby*
6222 # variants that don't use the name server (or something). -lsocket
6223 # must be given before -lnsl if both are needed. We assume that
6224 # if connect needs -lnsl, so does gethostbyname.
6225 echo "$as_me:$LINENO: checking for connect" >&5
6226 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6227 if test "${ac_cv_func_connect+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 cat >conftest.$ac_ext <<_ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6236 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6238 #define connect innocuous_connect
6240 /* System header to define __stub macros and hopefully few prototypes,
6241 which can conflict with char connect (); below.
6242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6243 <limits.h> exists even on freestanding compilers. */
6246 # include <limits.h>
6248 # include <assert.h>
6253 /* Override any gcc2 internal prototype to avoid an error. */
6258 /* We use char because int might match the return type of a gcc2
6259 builtin and then its argument prototype would still apply. */
6261 /* The GNU C library defines this for functions which it implements
6262 to always fail with ENOSYS. Some functions are actually named
6263 something starting with __ and the normal name is an alias. */
6264 #if defined (__stub_connect) || defined (__stub___connect)
6267 char (*f) () = connect;
6276 return f != connect;
6281 rm -f conftest.$ac_objext conftest$ac_exeext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6283 (eval $ac_link) 2>conftest.er1
6285 grep -v '^ *+' conftest.er1 >conftest.err
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } &&
6290 { ac_try='test -z "$ac_c_werror_flag"
6291 || test ! -s conftest.err'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; } &&
6297 { ac_try='test -s conftest$ac_exeext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 ac_cv_func_connect=yes
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6308 ac_cv_func_connect=no
6310 rm -f conftest.err conftest.$ac_objext \
6311 conftest$ac_exeext conftest.$ac_ext
6313 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6314 echo "${ECHO_T}$ac_cv_func_connect" >&6
6316 if test $ac_cv_func_connect = no; then
6317 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6318 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6319 if test "${ac_cv_lib_socket_connect+set}" = set; then
6320 echo $ECHO_N "(cached) $ECHO_C" >&6
6322 ac_check_lib_save_LIBS=$LIBS
6323 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6324 cat >conftest.$ac_ext <<_ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6331 /* Override any gcc2 internal prototype to avoid an error. */
6335 /* We use char because int might match the return type of a gcc2
6336 builtin and then its argument prototype would still apply. */
6346 rm -f conftest.$ac_objext conftest$ac_exeext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6348 (eval $ac_link) 2>conftest.er1
6350 grep -v '^ *+' conftest.er1 >conftest.err
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } &&
6355 { ac_try='test -z "$ac_c_werror_flag"
6356 || test ! -s conftest.err'
6357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); }; } &&
6362 { ac_try='test -s conftest$ac_exeext'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; }; then
6368 ac_cv_lib_socket_connect=yes
6370 echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6373 ac_cv_lib_socket_connect=no
6375 rm -f conftest.err conftest.$ac_objext \
6376 conftest$ac_exeext conftest.$ac_ext
6377 LIBS=$ac_check_lib_save_LIBS
6379 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6380 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6381 if test $ac_cv_lib_socket_connect = yes; then
6382 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6387 # Guillermo Gomez says -lposix is necessary on A/UX.
6388 echo "$as_me:$LINENO: checking for remove" >&5
6389 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6390 if test "${ac_cv_func_remove+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 cat >conftest.$ac_ext <<_ACEOF
6396 cat confdefs.h >>conftest.$ac_ext
6397 cat >>conftest.$ac_ext <<_ACEOF
6398 /* end confdefs.h. */
6399 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6401 #define remove innocuous_remove
6403 /* System header to define __stub macros and hopefully few prototypes,
6404 which can conflict with char remove (); below.
6405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6406 <limits.h> exists even on freestanding compilers. */
6409 # include <limits.h>
6411 # include <assert.h>
6416 /* Override any gcc2 internal prototype to avoid an error. */
6421 /* We use char because int might match the return type of a gcc2
6422 builtin and then its argument prototype would still apply. */
6424 /* The GNU C library defines this for functions which it implements
6425 to always fail with ENOSYS. Some functions are actually named
6426 something starting with __ and the normal name is an alias. */
6427 #if defined (__stub_remove) || defined (__stub___remove)
6430 char (*f) () = remove;
6444 rm -f conftest.$ac_objext conftest$ac_exeext
6445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6446 (eval $ac_link) 2>conftest.er1
6448 grep -v '^ *+' conftest.er1 >conftest.err
6450 cat conftest.err >&5
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); } &&
6453 { ac_try='test -z "$ac_c_werror_flag"
6454 || test ! -s conftest.err'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; } &&
6460 { ac_try='test -s conftest$ac_exeext'
6461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; }; then
6466 ac_cv_func_remove=yes
6468 echo "$as_me: failed program was:" >&5
6469 sed 's/^/| /' conftest.$ac_ext >&5
6471 ac_cv_func_remove=no
6473 rm -f conftest.err conftest.$ac_objext \
6474 conftest$ac_exeext conftest.$ac_ext
6476 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6477 echo "${ECHO_T}$ac_cv_func_remove" >&6
6479 if test $ac_cv_func_remove = no; then
6480 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6481 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6482 if test "${ac_cv_lib_posix_remove+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 ac_check_lib_save_LIBS=$LIBS
6486 LIBS="-lposix $LIBS"
6487 cat >conftest.$ac_ext <<_ACEOF
6490 cat confdefs.h >>conftest.$ac_ext
6491 cat >>conftest.$ac_ext <<_ACEOF
6492 /* end confdefs.h. */
6494 /* Override any gcc2 internal prototype to avoid an error. */
6498 /* We use char because int might match the return type of a gcc2
6499 builtin and then its argument prototype would still apply. */
6509 rm -f conftest.$ac_objext conftest$ac_exeext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6511 (eval $ac_link) 2>conftest.er1
6513 grep -v '^ *+' conftest.er1 >conftest.err
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try='test -z "$ac_c_werror_flag"
6519 || test ! -s conftest.err'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; } &&
6525 { ac_try='test -s conftest$ac_exeext'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6531 ac_cv_lib_posix_remove=yes
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6536 ac_cv_lib_posix_remove=no
6538 rm -f conftest.err conftest.$ac_objext \
6539 conftest$ac_exeext conftest.$ac_ext
6540 LIBS=$ac_check_lib_save_LIBS
6542 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6543 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6544 if test $ac_cv_lib_posix_remove = yes; then
6545 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6550 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6551 echo "$as_me:$LINENO: checking for shmat" >&5
6552 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6553 if test "${ac_cv_func_shmat+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 cat >conftest.$ac_ext <<_ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6562 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6564 #define shmat innocuous_shmat
6566 /* System header to define __stub macros and hopefully few prototypes,
6567 which can conflict with char shmat (); below.
6568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6569 <limits.h> exists even on freestanding compilers. */
6572 # include <limits.h>
6574 # include <assert.h>
6579 /* Override any gcc2 internal prototype to avoid an error. */
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6587 /* The GNU C library defines this for functions which it implements
6588 to always fail with ENOSYS. Some functions are actually named
6589 something starting with __ and the normal name is an alias. */
6590 #if defined (__stub_shmat) || defined (__stub___shmat)
6593 char (*f) () = shmat;
6607 rm -f conftest.$ac_objext conftest$ac_exeext
6608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6609 (eval $ac_link) 2>conftest.er1
6611 grep -v '^ *+' conftest.er1 >conftest.err
6613 cat conftest.err >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } &&
6616 { ac_try='test -z "$ac_c_werror_flag"
6617 || test ! -s conftest.err'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; } &&
6623 { ac_try='test -s conftest$ac_exeext'
6624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); }; }; then
6629 ac_cv_func_shmat=yes
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6636 rm -f conftest.err conftest.$ac_objext \
6637 conftest$ac_exeext conftest.$ac_ext
6639 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6640 echo "${ECHO_T}$ac_cv_func_shmat" >&6
6642 if test $ac_cv_func_shmat = no; then
6643 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6644 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6645 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 ac_check_lib_save_LIBS=$LIBS
6650 cat >conftest.$ac_ext <<_ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6657 /* Override any gcc2 internal prototype to avoid an error. */
6661 /* We use char because int might match the return type of a gcc2
6662 builtin and then its argument prototype would still apply. */
6672 rm -f conftest.$ac_objext conftest$ac_exeext
6673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6674 (eval $ac_link) 2>conftest.er1
6676 grep -v '^ *+' conftest.er1 >conftest.err
6678 cat conftest.err >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } &&
6681 { ac_try='test -z "$ac_c_werror_flag"
6682 || test ! -s conftest.err'
6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; } &&
6688 { ac_try='test -s conftest$ac_exeext'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; }; then
6694 ac_cv_lib_ipc_shmat=yes
6696 echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6699 ac_cv_lib_ipc_shmat=no
6701 rm -f conftest.err conftest.$ac_objext \
6702 conftest$ac_exeext conftest.$ac_ext
6703 LIBS=$ac_check_lib_save_LIBS
6705 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6706 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6707 if test $ac_cv_lib_ipc_shmat = yes; then
6708 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6714 # Check for libraries that X11R6 Xt/Xaw programs need.
6715 ac_save_LDFLAGS=$LDFLAGS
6716 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6717 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6718 # check for ICE first), but we must link in the order -lSM -lICE or
6719 # we get undefined symbols. So assume we have SM if we have ICE.
6720 # These have to be linked with before -lX11, unlike the other
6721 # libraries we check for below, so use a different variable.
6722 # John Interrante, Karl Berry
6723 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6724 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6725 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 ac_check_lib_save_LIBS=$LIBS
6729 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6730 cat >conftest.$ac_ext <<_ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h. */
6737 /* Override any gcc2 internal prototype to avoid an error. */
6741 /* We use char because int might match the return type of a gcc2
6742 builtin and then its argument prototype would still apply. */
6743 char IceConnectionNumber ();
6747 IceConnectionNumber ();
6752 rm -f conftest.$ac_objext conftest$ac_exeext
6753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6754 (eval $ac_link) 2>conftest.er1
6756 grep -v '^ *+' conftest.er1 >conftest.err
6758 cat conftest.err >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } &&
6761 { ac_try='test -z "$ac_c_werror_flag"
6762 || test ! -s conftest.err'
6763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); }; } &&
6768 { ac_try='test -s conftest$ac_exeext'
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; }; then
6774 ac_cv_lib_ICE_IceConnectionNumber=yes
6776 echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.$ac_ext >&5
6779 ac_cv_lib_ICE_IceConnectionNumber=no
6781 rm -f conftest.err conftest.$ac_objext \
6782 conftest$ac_exeext conftest.$ac_ext
6783 LIBS=$ac_check_lib_save_LIBS
6785 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6786 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6787 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6788 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6791 LDFLAGS=$ac_save_LDFLAGS
6796 if test "$have_x" != yes; then
6797 { { echo "$as_me:$LINENO: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&5
6798 echo "$as_me: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&2;}
6799 { (exit 1); exit 1; }; }
6803 echo "$as_me:$LINENO: checking for X app-defaults directory" >&5
6804 echo $ECHO_N "checking for X app-defaults directory... $ECHO_C" >&6
6805 if test "${ac_cv_x_app_defaults+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 if mkdir conftestdir; then
6811 cd conftestdir 2>/dev/null
6812 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6813 cat > Imakefile <<'EOF'
6815 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
6817 if (xmkmf) >/dev/null 2>&1 && test -f Makefile; then
6818 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
6819 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6824 if test x"$ac_x_app_defaults" = x; then
6826 # Look for the directory under a standard set of common directories.
6827 # Check X11 before X11Rn because it's often a symlink to the current release.
6829 /usr/X11/lib/app-defaults \
6830 /usr/X11R6/lib/app-defaults \
6831 /usr/X11R6/lib/X11/app-defaults \
6832 /usr/X11R5/lib/app-defaults \
6833 /usr/X11R5/lib/X11/app-defaults \
6834 /usr/X11R4/lib/app-defaults \
6835 /usr/X11R4/lib/X11/app-defaults \
6837 /usr/lib/X11/app-defaults \
6838 /usr/lib/X11R6/app-defaults \
6839 /usr/lib/X11R5/app-defaults \
6840 /usr/lib/X11R4/app-defaults \
6842 /usr/local/X11/lib/app-defaults \
6843 /usr/local/X11R6/lib/app-defaults \
6844 /usr/local/X11R5/lib/app-defaults \
6845 /usr/local/X11R4/lib/app-defaults \
6847 /usr/local/lib/X11/app-defaults \
6848 /usr/local/lib/X11R6/app-defaults \
6849 /usr/local/lib/X11R6/X11/app-defaults \
6850 /usr/local/lib/X11R5/app-defaults \
6851 /usr/local/lib/X11R5/X11/app-defaults \
6852 /usr/local/lib/X11R4/app-defaults \
6853 /usr/local/lib/X11R4/X11/app-defaults \
6855 /usr/X386/lib/X11/app-defaults \
6856 /usr/x386/lib/X11/app-defaults \
6857 /usr/XFree86/lib/X11/app-defaults \
6859 /usr/lib/X11/app-defaults \
6860 /usr/local/lib/X11/app-defaults \
6861 /usr/unsupported/lib/X11/app-defaults \
6862 /usr/athena/lib/X11/app-defaults \
6863 /usr/local/x11r5/lib/X11/app-defaults \
6864 /usr/lpp/Xamples/lib/X11/app-defaults \
6865 /lib/usr/lib/X11/app-defaults \
6867 /usr/openwin/lib/app-defaults \
6868 /usr/openwin/lib/X11/app-defaults \
6869 /usr/openwin/share/lib/app-defaults \
6870 /usr/openwin/share/lib/X11/app-defaults \
6872 /X11R6/lib/app-defaults \
6873 /X11R5/lib/app-defaults \
6874 /X11R4/lib/app-defaults \
6877 if test -d "$ac_dir"; then
6878 ac_x_app_defaults=$ac_dir
6884 if test x"$ac_x_app_defaults" = x; then
6885 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
6887 # Record where we found app-defaults for the cache.
6888 ac_cv_x_app_defaults="$ac_x_app_defaults"
6891 echo "$as_me:$LINENO: result: $ac_cv_x_app_defaults" >&5
6892 echo "${ECHO_T}$ac_cv_x_app_defaults" >&6
6893 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
6897 # The following arcana was gleaned from conversations with
6898 # Eric Schwartz <erics@col.hp.com>:
6900 # On HPUX 10.x, the parts of X that HP considers "standard" live in
6901 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
6902 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
6903 # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
6904 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
6905 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
6906 # you don't need any -I or -L arguments.
6908 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
6909 # are the same division as 10.x. However, there are no symlinks to
6910 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
6911 # arguments are always necessary.
6913 # However, X11R6 was available on HPUX 9.x as a patch: if that
6914 # patch was installed, then all of X11R6 went in to
6915 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
6917 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
6918 # whether R5 was available as a patch; R6 undoubtedly was not.)
6920 # So. We try and use the highest numbered pair of
6921 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
6922 # that are available. We do not mix and match different versions
6925 # Question I still don't know the answer to: (do you?)
6927 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
6928 # /usr/contrib/X11R6/ could be installed as a patch, what was in
6929 # that contrib directory? Did it contain so-called "standard"
6930 # X11R6, or did it include Xaw and Xmu as well? If the former,
6931 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
6932 # be a situation where one had to reach into the R5 headers and
6933 # libs to find Xmu? That is, must both R6 and R5 directories
6934 # be on the -I and -L lists in that case?
6936 for version in X11R6 X11R5 X11R4 ; do
6937 # if either pair of directories exists...
6938 if test -d /usr/include/$version || test -d /usr/contrib/$version/include
6940 # if contrib exists, use it...
6941 if test -d /usr/contrib/$version/include ; then
6942 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
6943 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
6945 # if the "standard" one exists, use it.
6946 if test -d /usr/include/$version ; then
6947 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
6948 X_LIBS="$X_LIBS -L/usr/lib/$version"
6950 # since at least one of the pair exists, go no farther.
6955 # Now find Motif. Thanks for not making xmkmf find this by
6956 # default, you losers.
6958 if test -d /usr/include/Motif2.1 ; then
6959 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
6960 X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
6961 elif test -d /usr/include/Motif1.2 ; then
6962 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
6963 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
6964 elif test -d /usr/include/Motif1.1 ; then
6965 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
6966 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
6969 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
6971 if test -d /opt/graphics/OpenGL/include ; then
6972 # HP-UX 10.20 puts it here
6973 X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
6974 X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
6975 elif test -d /opt/Mesa/lib ; then
6976 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
6977 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
6981 if test -d /opt/xpm/lib/X11 ; then
6982 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
6983 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
6986 # On HPUX, default to installing in /opt/xscreensaver/ instead of
6987 # in /usr/local/, unless there is already an xscreensaver in
6988 # /usr/local/bin/. This can be overridden with the --prefix arg
6989 # to configure. I'm not sure this is the right thing to do, but
6990 # Richard Lloyd says so...
6992 if test \! -x /usr/local/bin/xscreensaver ; then
6993 ac_default_prefix=/opt/xscreensaver
6999 # Thanks for not making xmkmf find this by default, pinheads.
7000 # And thanks for moving things around again, too. Is this
7001 # really the standard location now? What happened to the
7002 # joke that this kind of thing went in /opt?
7003 # cthomp says "answer: CDE (Common Disorganized Environment)"
7005 if test -f /usr/dt/include/Xm/Xm.h ; then
7006 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
7007 MOTIF_LIBS="$MOTIF_LIBS -L/usr/dt/lib -R/usr/dt/lib"
7009 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
7010 echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
7011 echo $ECHO_N "checking for regcmp in -lgen... $ECHO_C" >&6
7012 if test "${ac_cv_lib_gen_regcmp+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7015 ac_check_lib_save_LIBS=$LIBS
7017 cat >conftest.$ac_ext <<_ACEOF
7020 cat confdefs.h >>conftest.$ac_ext
7021 cat >>conftest.$ac_ext <<_ACEOF
7022 /* end confdefs.h. */
7024 /* Override any gcc2 internal prototype to avoid an error. */
7028 /* We use char because int might match the return type of a gcc2
7029 builtin and then its argument prototype would still apply. */
7039 rm -f conftest.$ac_objext conftest$ac_exeext
7040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7041 (eval $ac_link) 2>conftest.er1
7043 grep -v '^ *+' conftest.er1 >conftest.err
7045 cat conftest.err >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); } &&
7048 { ac_try='test -z "$ac_c_werror_flag"
7049 || test ! -s conftest.err'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; } &&
7055 { ac_try='test -s conftest$ac_exeext'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; }; then
7061 ac_cv_lib_gen_regcmp=yes
7063 echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.$ac_ext >&5
7066 ac_cv_lib_gen_regcmp=no
7068 rm -f conftest.err conftest.$ac_objext \
7069 conftest$ac_exeext conftest.$ac_ext
7070 LIBS=$ac_check_lib_save_LIBS
7072 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5
7073 echo "${ECHO_T}$ac_cv_lib_gen_regcmp" >&6
7074 if test $ac_cv_lib_gen_regcmp = yes; then
7075 MOTIF_LIBS="$MOTIF_LIBS -lgen"
7083 # On MacOS X (10.x with "fink"), many things are under /sw/.
7085 if test -d /sw/include ; then
7086 X_CFLAGS="-I/sw/include $X_CFLAGS"
7087 X_LIBS="-L/sw/lib $X_LIBS"
7091 echo "$as_me:$LINENO: checking for XPointer" >&5
7092 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
7093 if test "${ac_cv_xpointer+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 ac_save_CPPFLAGS="$CPPFLAGS"
7098 if test \! -z "$includedir" ; then
7099 CPPFLAGS="$CPPFLAGS -I$includedir"
7101 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7102 cat >conftest.$ac_ext <<_ACEOF
7105 cat confdefs.h >>conftest.$ac_ext
7106 cat >>conftest.$ac_ext <<_ACEOF
7107 /* end confdefs.h. */
7108 #include <X11/Xlib.h>
7112 XPointer foo = (XPointer) 0;
7117 rm -f conftest.$ac_objext
7118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7119 (eval $ac_compile) 2>conftest.er1
7121 grep -v '^ *+' conftest.er1 >conftest.err
7123 cat conftest.err >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } &&
7126 { ac_try='test -z "$ac_c_werror_flag"
7127 || test ! -s conftest.err'
7128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); }; } &&
7133 { ac_try='test -s conftest.$ac_objext'
7134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; }; then
7141 echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7147 CPPFLAGS="$ac_save_CPPFLAGS"
7149 echo "$as_me:$LINENO: result: $ac_cv_xpointer" >&5
7150 echo "${ECHO_T}$ac_cv_xpointer" >&6
7151 if test "$ac_cv_xpointer" != yes; then
7152 cat >>confdefs.h <<\_ACEOF
7153 #define XPointer char*
7158 echo "$as_me:$LINENO: checking whether this is MacOS X" >&5
7159 echo $ECHO_N "checking whether this is MacOS X... $ECHO_C" >&6
7166 echo "$as_me:$LINENO: result: $ac_macosx" >&5
7167 echo "${ECHO_T}$ac_macosx" >&6
7170 if test "$ac_macosx" = yes; then
7171 if test -n "$GCC"; then
7172 # Without these, every link against libGL gets a bunch of useless warnings.
7173 osx_crud="-bind_at_load -multiply_defined suppress"
7174 echo "$as_me:$LINENO: result: adding \"$osx_crud\" to LDFLAGS" >&5
7175 echo "${ECHO_T}adding \"$osx_crud\" to LDFLAGS" >&6
7176 LDFLAGS="$LDFLAGS $osx_crud"
7180 ###############################################################################
7184 ###############################################################################
7189 echo "$as_me:$LINENO: checking for intltool >= " >&5
7190 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
7192 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
7193 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < intltool-update.in`
7195 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < intltool-update.in`
7198 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
7199 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
7200 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
7202 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5
7203 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6
7208 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'
7209 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'
7210 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'
7211 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
7212 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'
7213 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'
7214 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'
7215 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'
7216 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'
7217 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'
7218 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'
7232 # Use the tools built into the package, not the ones that are installed.
7234 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
7235 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
7236 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
7242 # Extract the first word of "perl", so it can be a program name with args.
7243 set dummy perl; ac_word=$2
7244 echo "$as_me:$LINENO: checking for $ac_word" >&5
7245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7246 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 case $INTLTOOL_PERL in
7251 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7261 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
7262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
7273 if test -n "$INTLTOOL_PERL"; then
7274 echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
7275 echo "${ECHO_T}$INTLTOOL_PERL" >&6
7277 echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6
7281 if test -z "$INTLTOOL_PERL"; then
7282 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
7283 echo "$as_me: error: perl not found; required for intltool" >&2;}
7284 { (exit 1); exit 1; }; }
7286 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
7287 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
7288 echo "$as_me: error: perl 5.x required for intltool" >&2;}
7289 { (exit 1); exit 1; }; }
7292 # Remove file type tags (using []) from po/POTFILES.
7300 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
7302 ac_config_commands="$ac_config_commands default-1"
7306 GETTEXT_PACKAGE=xscreensaver
7308 cat >>confdefs.h <<_ACEOF
7309 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
7313 cat >>confdefs.h <<_ACEOF
7314 #define PACKAGE "$GETTEXT_PACKAGE"
7319 ALL_LINGUAS="ca da de es et fi fr hu it ja ko nb nl no pl pt pt_BR ru sk sv vi wa zh_CN zh_TW"
7320 if test -n "$ac_tool_prefix"; then
7321 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7322 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7323 echo "$as_me:$LINENO: checking for $ac_word" >&5
7324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7325 if test "${ac_cv_prog_RANLIB+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 if test -n "$RANLIB"; then
7329 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 RANLIB=$ac_cv_prog_RANLIB
7348 if test -n "$RANLIB"; then
7349 echo "$as_me:$LINENO: result: $RANLIB" >&5
7350 echo "${ECHO_T}$RANLIB" >&6
7352 echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6
7357 if test -z "$ac_cv_prog_RANLIB"; then
7358 ac_ct_RANLIB=$RANLIB
7359 # Extract the first word of "ranlib", so it can be a program name with args.
7360 set dummy ranlib; ac_word=$2
7361 echo "$as_me:$LINENO: checking for $ac_word" >&5
7362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7363 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 if test -n "$ac_ct_RANLIB"; then
7367 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376 ac_cv_prog_ac_ct_RANLIB="ranlib"
7377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7386 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7387 if test -n "$ac_ct_RANLIB"; then
7388 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7389 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7391 echo "$as_me:$LINENO: result: no" >&5
7392 echo "${ECHO_T}no" >&6
7395 RANLIB=$ac_ct_RANLIB
7397 RANLIB="$ac_cv_prog_RANLIB"
7400 echo "$as_me:$LINENO: checking for off_t" >&5
7401 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7402 if test "${ac_cv_type_off_t+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 cat >conftest.$ac_ext <<_ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 $ac_includes_default
7423 rm -f conftest.$ac_objext
7424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7425 (eval $ac_compile) 2>conftest.er1
7427 grep -v '^ *+' conftest.er1 >conftest.err
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } &&
7432 { ac_try='test -z "$ac_c_werror_flag"
7433 || test ! -s conftest.err'
7434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); }; } &&
7439 { ac_try='test -s conftest.$ac_objext'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; }; then
7445 ac_cv_type_off_t=yes
7447 echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.$ac_ext >&5
7452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7454 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7455 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7456 if test $ac_cv_type_off_t = yes; then
7460 cat >>confdefs.h <<_ACEOF
7466 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7467 # for constant arguments. Useless!
7468 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7469 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7470 if test "${ac_cv_working_alloca_h+set}" = set; then
7471 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 cat >conftest.$ac_ext <<_ACEOF
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h. */
7483 char *p = (char *) alloca (2 * sizeof (int));
7488 rm -f conftest.$ac_objext conftest$ac_exeext
7489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7490 (eval $ac_link) 2>conftest.er1
7492 grep -v '^ *+' conftest.er1 >conftest.err
7494 cat conftest.err >&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); } &&
7497 { ac_try='test -z "$ac_c_werror_flag"
7498 || test ! -s conftest.err'
7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; } &&
7504 { ac_try='test -s conftest$ac_exeext'
7505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); }; }; then
7510 ac_cv_working_alloca_h=yes
7512 echo "$as_me: failed program was:" >&5
7513 sed 's/^/| /' conftest.$ac_ext >&5
7515 ac_cv_working_alloca_h=no
7517 rm -f conftest.err conftest.$ac_objext \
7518 conftest$ac_exeext conftest.$ac_ext
7520 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7521 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7522 if test $ac_cv_working_alloca_h = yes; then
7524 cat >>confdefs.h <<\_ACEOF
7525 #define HAVE_ALLOCA_H 1
7530 echo "$as_me:$LINENO: checking for alloca" >&5
7531 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7532 if test "${ac_cv_func_alloca_works+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 cat >conftest.$ac_ext <<_ACEOF
7538 cat confdefs.h >>conftest.$ac_ext
7539 cat >>conftest.$ac_ext <<_ACEOF
7540 /* end confdefs.h. */
7542 # define alloca __builtin_alloca
7545 # include <malloc.h>
7546 # define alloca _alloca
7549 # include <alloca.h>
7554 # ifndef alloca /* predefined by HP cc +Olibcalls */
7565 char *p = (char *) alloca (1);
7570 rm -f conftest.$ac_objext conftest$ac_exeext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7572 (eval $ac_link) 2>conftest.er1
7574 grep -v '^ *+' conftest.er1 >conftest.err
7576 cat conftest.err >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } &&
7579 { ac_try='test -z "$ac_c_werror_flag"
7580 || test ! -s conftest.err'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; } &&
7586 { ac_try='test -s conftest$ac_exeext'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 ac_cv_func_alloca_works=yes
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7597 ac_cv_func_alloca_works=no
7599 rm -f conftest.err conftest.$ac_objext \
7600 conftest$ac_exeext conftest.$ac_ext
7602 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7603 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7605 if test $ac_cv_func_alloca_works = yes; then
7607 cat >>confdefs.h <<\_ACEOF
7608 #define HAVE_ALLOCA 1
7612 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7613 # that cause trouble. Some versions do not even contain alloca or
7614 # contain a buggy version. If you still want to use their alloca,
7615 # use ar to extract alloca.o from them instead of compiling alloca.c.
7617 ALLOCA=alloca.$ac_objext
7619 cat >>confdefs.h <<\_ACEOF
7624 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7625 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7626 if test "${ac_cv_os_cray+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 cat >conftest.$ac_ext <<_ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7635 #if defined(CRAY) && ! defined(CRAY2)
7642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7643 $EGREP "webecray" >/dev/null 2>&1; then
7651 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7652 echo "${ECHO_T}$ac_cv_os_cray" >&6
7653 if test $ac_cv_os_cray = yes; then
7654 for ac_func in _getb67 GETB67 getb67; do
7655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7656 echo "$as_me:$LINENO: checking for $ac_func" >&5
7657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7658 if eval "test \"\${$as_ac_var+set}\" = set"; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7661 cat >conftest.$ac_ext <<_ACEOF
7664 cat confdefs.h >>conftest.$ac_ext
7665 cat >>conftest.$ac_ext <<_ACEOF
7666 /* end confdefs.h. */
7667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7669 #define $ac_func innocuous_$ac_func
7671 /* System header to define __stub macros and hopefully few prototypes,
7672 which can conflict with char $ac_func (); below.
7673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7674 <limits.h> exists even on freestanding compilers. */
7677 # include <limits.h>
7679 # include <assert.h>
7684 /* Override any gcc2 internal prototype to avoid an error. */
7689 /* We use char because int might match the return type of a gcc2
7690 builtin and then its argument prototype would still apply. */
7692 /* The GNU C library defines this for functions which it implements
7693 to always fail with ENOSYS. Some functions are actually named
7694 something starting with __ and the normal name is an alias. */
7695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7698 char (*f) () = $ac_func;
7707 return f != $ac_func;
7712 rm -f conftest.$ac_objext conftest$ac_exeext
7713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7714 (eval $ac_link) 2>conftest.er1
7716 grep -v '^ *+' conftest.er1 >conftest.err
7718 cat conftest.err >&5
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } &&
7721 { ac_try='test -z "$ac_c_werror_flag"
7722 || test ! -s conftest.err'
7723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); }; } &&
7728 { ac_try='test -s conftest$ac_exeext'
7729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; }; then
7734 eval "$as_ac_var=yes"
7736 echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7739 eval "$as_ac_var=no"
7741 rm -f conftest.err conftest.$ac_objext \
7742 conftest$ac_exeext conftest.$ac_ext
7744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7746 if test `eval echo '${'$as_ac_var'}'` = yes; then
7748 cat >>confdefs.h <<_ACEOF
7749 #define CRAY_STACKSEG_END $ac_func
7758 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7759 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7760 if test "${ac_cv_c_stack_direction+set}" = set; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 if test "$cross_compiling" = yes; then
7764 ac_cv_c_stack_direction=0
7766 cat >conftest.$ac_ext <<_ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h. */
7773 find_stack_direction ()
7775 static char *addr = 0;
7780 return find_stack_direction ();
7783 return (&dummy > addr) ? 1 : -1;
7789 exit (find_stack_direction () < 0);
7792 rm -f conftest$ac_exeext
7793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7794 (eval $ac_link) 2>&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; }; then
7803 ac_cv_c_stack_direction=1
7805 echo "$as_me: program exited with status $ac_status" >&5
7806 echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7810 ac_cv_c_stack_direction=-1
7812 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7815 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7816 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7818 cat >>confdefs.h <<_ACEOF
7819 #define STACK_DIRECTION $ac_cv_c_stack_direction
7827 for ac_header in stdlib.h unistd.h
7829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7831 echo "$as_me:$LINENO: checking for $ac_header" >&5
7832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7839 # Is the header compilable?
7840 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7842 cat >conftest.$ac_ext <<_ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h. */
7848 $ac_includes_default
7849 #include <$ac_header>
7851 rm -f conftest.$ac_objext
7852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7853 (eval $ac_compile) 2>conftest.er1
7855 grep -v '^ *+' conftest.er1 >conftest.err
7857 cat conftest.err >&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } &&
7860 { ac_try='test -z "$ac_c_werror_flag"
7861 || test ! -s conftest.err'
7862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); }; } &&
7867 { ac_try='test -s conftest.$ac_objext'
7868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); }; }; then
7873 ac_header_compiler=yes
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7878 ac_header_compiler=no
7880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7881 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7882 echo "${ECHO_T}$ac_header_compiler" >&6
7884 # Is the header present?
7885 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7887 cat >conftest.$ac_ext <<_ACEOF
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h. */
7893 #include <$ac_header>
7895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7898 grep -v '^ *+' conftest.er1 >conftest.err
7900 cat conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } >/dev/null; then
7903 if test -s conftest.err; then
7904 ac_cpp_err=$ac_c_preproc_warn_flag
7905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7912 if test -z "$ac_cpp_err"; then
7913 ac_header_preproc=yes
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7918 ac_header_preproc=no
7920 rm -f conftest.err conftest.$ac_ext
7921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7922 echo "${ECHO_T}$ac_header_preproc" >&6
7924 # So? What about this header?
7925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7931 ac_header_preproc=yes
7934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7941 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7948 ## ------------------------------------------ ##
7949 ## Report this to the AC_PACKAGE_NAME lists. ##
7950 ## ------------------------------------------ ##
7953 sed "s/^/$as_me: WARNING: /" >&2
7956 echo "$as_me:$LINENO: checking for $ac_header" >&5
7957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7961 eval "$as_ac_Header=\$ac_header_preproc"
7963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7968 cat >>confdefs.h <<_ACEOF
7969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7977 for ac_func in getpagesize
7979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7980 echo "$as_me:$LINENO: checking for $ac_func" >&5
7981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7982 if eval "test \"\${$as_ac_var+set}\" = set"; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 cat >conftest.$ac_ext <<_ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7993 #define $ac_func innocuous_$ac_func
7995 /* System header to define __stub macros and hopefully few prototypes,
7996 which can conflict with char $ac_func (); below.
7997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7998 <limits.h> exists even on freestanding compilers. */
8001 # include <limits.h>
8003 # include <assert.h>
8008 /* Override any gcc2 internal prototype to avoid an error. */
8013 /* We use char because int might match the return type of a gcc2
8014 builtin and then its argument prototype would still apply. */
8016 /* The GNU C library defines this for functions which it implements
8017 to always fail with ENOSYS. Some functions are actually named
8018 something starting with __ and the normal name is an alias. */
8019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8022 char (*f) () = $ac_func;
8031 return f != $ac_func;
8036 rm -f conftest.$ac_objext conftest$ac_exeext
8037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8038 (eval $ac_link) 2>conftest.er1
8040 grep -v '^ *+' conftest.er1 >conftest.err
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try='test -z "$ac_c_werror_flag"
8046 || test ! -s conftest.err'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; } &&
8052 { ac_try='test -s conftest$ac_exeext'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; }; then
8058 eval "$as_ac_var=yes"
8060 echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.$ac_ext >&5
8063 eval "$as_ac_var=no"
8065 rm -f conftest.err conftest.$ac_objext \
8066 conftest$ac_exeext conftest.$ac_ext
8068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8070 if test `eval echo '${'$as_ac_var'}'` = yes; then
8071 cat >>confdefs.h <<_ACEOF
8072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8078 echo "$as_me:$LINENO: checking for working mmap" >&5
8079 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8080 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8083 if test "$cross_compiling" = yes; then
8084 ac_cv_func_mmap_fixed_mapped=no
8086 cat >conftest.$ac_ext <<_ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8092 $ac_includes_default
8093 /* malloc might have been renamed as rpl_malloc. */
8096 /* Thanks to Mike Haertel and Jim Avera for this test.
8097 Here is a matrix of mmap possibilities:
8098 mmap private not fixed
8099 mmap private fixed at somewhere currently unmapped
8100 mmap private fixed at somewhere already mapped
8101 mmap shared not fixed
8102 mmap shared fixed at somewhere currently unmapped
8103 mmap shared fixed at somewhere already mapped
8104 For private mappings, we should verify that changes cannot be read()
8105 back from the file, nor mmap's back from the file at a different
8106 address. (There have been systems where private was not correctly
8107 implemented like the infamous i386 svr4.0, and systems where the
8108 VM page cache was not coherent with the file system buffer cache
8109 like early versions of FreeBSD and possibly contemporary NetBSD.)
8110 For shared mappings, we should conversely verify that changes get
8111 propagated back to all the places they're supposed to be.
8113 Grep wants private fixed already mapped.
8114 The main things grep needs to know about mmap are:
8115 * does it exist and is it safe to write into the mmap'd area
8116 * how to use it (BSD variants) */
8119 #include <sys/mman.h>
8121 #if !STDC_HEADERS && !HAVE_STDLIB_H
8125 /* This mess was copied from the GNU getpagesize.h. */
8126 #if !HAVE_GETPAGESIZE
8127 /* Assume that all systems that can run configure have sys/param.h. */
8128 # if !HAVE_SYS_PARAM_H
8129 # define HAVE_SYS_PARAM_H 1
8132 # ifdef _SC_PAGESIZE
8133 # define getpagesize() sysconf(_SC_PAGESIZE)
8134 # else /* no _SC_PAGESIZE */
8135 # if HAVE_SYS_PARAM_H
8136 # include <sys/param.h>
8137 # ifdef EXEC_PAGESIZE
8138 # define getpagesize() EXEC_PAGESIZE
8139 # else /* no EXEC_PAGESIZE */
8141 # define getpagesize() NBPG * CLSIZE
8144 # endif /* no CLSIZE */
8145 # else /* no NBPG */
8147 # define getpagesize() NBPC
8148 # else /* no NBPC */
8150 # define getpagesize() PAGESIZE
8151 # endif /* PAGESIZE */
8152 # endif /* no NBPC */
8153 # endif /* no NBPG */
8154 # endif /* no EXEC_PAGESIZE */
8155 # else /* no HAVE_SYS_PARAM_H */
8156 # define getpagesize() 8192 /* punt totally */
8157 # endif /* no HAVE_SYS_PARAM_H */
8158 # endif /* no _SC_PAGESIZE */
8160 #endif /* no HAVE_GETPAGESIZE */
8165 char *data, *data2, *data3;
8169 pagesize = getpagesize ();
8171 /* First, make a file with some known garbage in it. */
8172 data = (char *) malloc (pagesize);
8175 for (i = 0; i < pagesize; ++i)
8176 *(data + i) = rand ();
8178 fd = creat ("conftest.mmap", 0600);
8181 if (write (fd, data, pagesize) != pagesize)
8185 /* Next, try to mmap the file at a fixed address which already has
8186 something else allocated at it. If we can, also make sure that
8187 we see the same garbage. */
8188 fd = open ("conftest.mmap", O_RDWR);
8191 data2 = (char *) malloc (2 * pagesize);
8194 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8195 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8196 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8198 for (i = 0; i < pagesize; ++i)
8199 if (*(data + i) != *(data2 + i))
8202 /* Finally, make sure that changes to the mapped area do not
8203 percolate back to the file as seen by read(). (This is a bug on
8204 some variants of i386 svr4.0.) */
8205 for (i = 0; i < pagesize; ++i)
8206 *(data2 + i) = *(data2 + i) + 1;
8207 data3 = (char *) malloc (pagesize);
8210 if (read (fd, data3, pagesize) != pagesize)
8212 for (i = 0; i < pagesize; ++i)
8213 if (*(data + i) != *(data3 + i))
8219 rm -f conftest$ac_exeext
8220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8221 (eval $ac_link) 2>&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; }; then
8230 ac_cv_func_mmap_fixed_mapped=yes
8232 echo "$as_me: program exited with status $ac_status" >&5
8233 echo "$as_me: failed program was:" >&5
8234 sed 's/^/| /' conftest.$ac_ext >&5
8237 ac_cv_func_mmap_fixed_mapped=no
8239 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8242 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8243 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8244 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8246 cat >>confdefs.h <<\_ACEOF
8262 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
8263 unistd.h sys/param.h
8265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8267 echo "$as_me:$LINENO: checking for $ac_header" >&5
8268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8275 # Is the header compilable?
8276 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8278 cat >conftest.$ac_ext <<_ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8284 $ac_includes_default
8285 #include <$ac_header>
8287 rm -f conftest.$ac_objext
8288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8289 (eval $ac_compile) 2>conftest.er1
8291 grep -v '^ *+' conftest.er1 >conftest.err
8293 cat conftest.err >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } &&
8296 { ac_try='test -z "$ac_c_werror_flag"
8297 || test ! -s conftest.err'
8298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); }; } &&
8303 { ac_try='test -s conftest.$ac_objext'
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; }; then
8309 ac_header_compiler=yes
8311 echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8314 ac_header_compiler=no
8316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8318 echo "${ECHO_T}$ac_header_compiler" >&6
8320 # Is the header present?
8321 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8323 cat >conftest.$ac_ext <<_ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 #include <$ac_header>
8331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8334 grep -v '^ *+' conftest.er1 >conftest.err
8336 cat conftest.err >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } >/dev/null; then
8339 if test -s conftest.err; then
8340 ac_cpp_err=$ac_c_preproc_warn_flag
8341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8348 if test -z "$ac_cpp_err"; then
8349 ac_header_preproc=yes
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8354 ac_header_preproc=no
8356 rm -f conftest.err conftest.$ac_ext
8357 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8358 echo "${ECHO_T}$ac_header_preproc" >&6
8360 # So? What about this header?
8361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8364 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8366 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8367 ac_header_preproc=yes
8370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8373 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8375 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8377 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8381 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8384 ## ------------------------------------------ ##
8385 ## Report this to the AC_PACKAGE_NAME lists. ##
8386 ## ------------------------------------------ ##
8389 sed "s/^/$as_me: WARNING: /" >&2
8392 echo "$as_me:$LINENO: checking for $ac_header" >&5
8393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 eval "$as_ac_Header=\$ac_header_preproc"
8399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8404 cat >>confdefs.h <<_ACEOF
8405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8423 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
8424 strdup __argz_count __argz_stringify __argz_next
8426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8427 echo "$as_me:$LINENO: checking for $ac_func" >&5
8428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8429 if eval "test \"\${$as_ac_var+set}\" = set"; then
8430 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 cat >conftest.$ac_ext <<_ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8440 #define $ac_func innocuous_$ac_func
8442 /* System header to define __stub macros and hopefully few prototypes,
8443 which can conflict with char $ac_func (); below.
8444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8445 <limits.h> exists even on freestanding compilers. */
8448 # include <limits.h>
8450 # include <assert.h>
8455 /* Override any gcc2 internal prototype to avoid an error. */
8460 /* We use char because int might match the return type of a gcc2
8461 builtin and then its argument prototype would still apply. */
8463 /* The GNU C library defines this for functions which it implements
8464 to always fail with ENOSYS. Some functions are actually named
8465 something starting with __ and the normal name is an alias. */
8466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8469 char (*f) () = $ac_func;
8478 return f != $ac_func;
8483 rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8485 (eval $ac_link) 2>conftest.er1
8487 grep -v '^ *+' conftest.er1 >conftest.err
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try='test -z "$ac_c_werror_flag"
8493 || test ! -s conftest.err'
8494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); }; } &&
8499 { ac_try='test -s conftest$ac_exeext'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; }; then
8505 eval "$as_ac_var=yes"
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8510 eval "$as_ac_var=no"
8512 rm -f conftest.err conftest.$ac_objext \
8513 conftest$ac_exeext conftest.$ac_ext
8515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8517 if test `eval echo '${'$as_ac_var'}'` = yes; then
8518 cat >>confdefs.h <<_ACEOF
8519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8526 if test $ac_cv_header_locale_h = yes; then
8527 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8528 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8529 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8532 cat >conftest.$ac_ext <<_ACEOF
8535 cat confdefs.h >>conftest.$ac_ext
8536 cat >>conftest.$ac_ext <<_ACEOF
8537 /* end confdefs.h. */
8547 rm -f conftest.$ac_objext conftest$ac_exeext
8548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8549 (eval $ac_link) 2>conftest.er1
8551 grep -v '^ *+' conftest.er1 >conftest.err
8553 cat conftest.err >&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } &&
8556 { ac_try='test -z "$ac_c_werror_flag"
8557 || test ! -s conftest.err'
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; } &&
8563 { ac_try='test -s conftest$ac_exeext'
8564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; }; then
8569 am_cv_val_LC_MESSAGES=yes
8571 echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8574 am_cv_val_LC_MESSAGES=no
8576 rm -f conftest.err conftest.$ac_objext \
8577 conftest$ac_exeext conftest.$ac_ext
8579 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8580 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8581 if test $am_cv_val_LC_MESSAGES = yes; then
8583 cat >>confdefs.h <<\_ACEOF
8584 #define HAVE_LC_MESSAGES 1
8592 nls_cv_force_use_gnu_gettext="no"
8594 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8595 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8597 nls_cv_header_libgt=
8600 if test "${ac_cv_header_libintl_h+set}" = set; then
8601 echo "$as_me:$LINENO: checking for libintl.h" >&5
8602 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8603 if test "${ac_cv_header_libintl_h+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8607 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8609 # Is the header compilable?
8610 echo "$as_me:$LINENO: checking libintl.h usability" >&5
8611 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8612 cat >conftest.$ac_ext <<_ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8618 $ac_includes_default
8619 #include <libintl.h>
8621 rm -f conftest.$ac_objext
8622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8623 (eval $ac_compile) 2>conftest.er1
8625 grep -v '^ *+' conftest.er1 >conftest.err
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } &&
8630 { ac_try='test -z "$ac_c_werror_flag"
8631 || test ! -s conftest.err'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; } &&
8637 { ac_try='test -s conftest.$ac_objext'
8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; }; then
8643 ac_header_compiler=yes
8645 echo "$as_me: failed program was:" >&5
8646 sed 's/^/| /' conftest.$ac_ext >&5
8648 ac_header_compiler=no
8650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8652 echo "${ECHO_T}$ac_header_compiler" >&6
8654 # Is the header present?
8655 echo "$as_me:$LINENO: checking libintl.h presence" >&5
8656 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8657 cat >conftest.$ac_ext <<_ACEOF
8660 cat confdefs.h >>conftest.$ac_ext
8661 cat >>conftest.$ac_ext <<_ACEOF
8662 /* end confdefs.h. */
8663 #include <libintl.h>
8665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8668 grep -v '^ *+' conftest.er1 >conftest.err
8670 cat conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } >/dev/null; then
8673 if test -s conftest.err; then
8674 ac_cpp_err=$ac_c_preproc_warn_flag
8675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8682 if test -z "$ac_cpp_err"; then
8683 ac_header_preproc=yes
8685 echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8688 ac_header_preproc=no
8690 rm -f conftest.err conftest.$ac_ext
8691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8692 echo "${ECHO_T}$ac_header_preproc" >&6
8694 # So? What about this header?
8695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8697 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8698 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8699 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
8700 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
8701 ac_header_preproc=yes
8704 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8705 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
8706 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
8707 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
8708 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
8709 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
8710 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
8711 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8712 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8713 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8714 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
8715 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
8718 ## ------------------------------------------ ##
8719 ## Report this to the AC_PACKAGE_NAME lists. ##
8720 ## ------------------------------------------ ##
8723 sed "s/^/$as_me: WARNING: /" >&2
8726 echo "$as_me:$LINENO: checking for libintl.h" >&5
8727 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8728 if test "${ac_cv_header_libintl_h+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8731 ac_cv_header_libintl_h=$ac_header_preproc
8733 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8734 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8737 if test $ac_cv_header_libintl_h = yes; then
8738 echo "$as_me:$LINENO: checking for dgettext in libc" >&5
8739 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
8740 if test "${gt_cv_func_dgettext_libc+set}" = set; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 cat >conftest.$ac_ext <<_ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h. */
8749 #include <libintl.h>
8753 return (int) dgettext ("","")
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8760 (eval $ac_link) 2>conftest.er1
8762 grep -v '^ *+' conftest.er1 >conftest.err
8764 cat conftest.err >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } &&
8767 { ac_try='test -z "$ac_c_werror_flag"
8768 || test ! -s conftest.err'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; } &&
8774 { ac_try='test -s conftest$ac_exeext'
8775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
8780 gt_cv_func_dgettext_libc=yes
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8785 gt_cv_func_dgettext_libc=no
8787 rm -f conftest.err conftest.$ac_objext \
8788 conftest$ac_exeext conftest.$ac_ext
8790 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
8791 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
8793 if test "$gt_cv_func_dgettext_libc" != "yes"; then
8794 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8795 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8796 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 ac_check_lib_save_LIBS=$LIBS
8801 cat >conftest.$ac_ext <<_ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8808 /* Override any gcc2 internal prototype to avoid an error. */
8812 /* We use char because int might match the return type of a gcc2
8813 builtin and then its argument prototype would still apply. */
8814 char bindtextdomain ();
8823 rm -f conftest.$ac_objext conftest$ac_exeext
8824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8825 (eval $ac_link) 2>conftest.er1
8827 grep -v '^ *+' conftest.er1 >conftest.err
8829 cat conftest.err >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } &&
8832 { ac_try='test -z "$ac_c_werror_flag"
8833 || test ! -s conftest.err'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; } &&
8839 { ac_try='test -s conftest$ac_exeext'
8840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; }; then
8845 ac_cv_lib_intl_bindtextdomain=yes
8847 echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8850 ac_cv_lib_intl_bindtextdomain=no
8852 rm -f conftest.err conftest.$ac_objext \
8853 conftest$ac_exeext conftest.$ac_ext
8854 LIBS=$ac_check_lib_save_LIBS
8856 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8857 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8858 if test $ac_cv_lib_intl_bindtextdomain = yes; then
8859 echo "$as_me:$LINENO: checking for dgettext in libintl" >&5
8860 echo $ECHO_N "checking for dgettext in libintl... $ECHO_C" >&6
8861 if test "${gt_cv_func_dgettext_libintl+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8864 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
8865 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
8866 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 ac_check_lib_save_LIBS=$LIBS
8871 cat >conftest.$ac_ext <<_ACEOF
8874 cat confdefs.h >>conftest.$ac_ext
8875 cat >>conftest.$ac_ext <<_ACEOF
8876 /* end confdefs.h. */
8878 /* Override any gcc2 internal prototype to avoid an error. */
8882 /* We use char because int might match the return type of a gcc2
8883 builtin and then its argument prototype would still apply. */
8893 rm -f conftest.$ac_objext conftest$ac_exeext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8895 (eval $ac_link) 2>conftest.er1
8897 grep -v '^ *+' conftest.er1 >conftest.err
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } &&
8902 { ac_try='test -z "$ac_c_werror_flag"
8903 || test ! -s conftest.err'
8904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; } &&
8909 { ac_try='test -s conftest$ac_exeext'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8915 ac_cv_lib_intl_dgettext=yes
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8920 ac_cv_lib_intl_dgettext=no
8922 rm -f conftest.err conftest.$ac_objext \
8923 conftest$ac_exeext conftest.$ac_ext
8924 LIBS=$ac_check_lib_save_LIBS
8926 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
8927 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
8928 if test $ac_cv_lib_intl_dgettext = yes; then
8929 gt_cv_func_dgettext_libintl=yes
8931 gt_cv_func_dgettext_libintl=no
8935 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libintl" >&5
8936 echo "${ECHO_T}$gt_cv_func_dgettext_libintl" >&6
8941 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8942 LIBS="$LIBS -lintl";
8945 if test "$gt_cv_func_dgettext_libc" = "yes" \
8946 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8948 cat >>confdefs.h <<\_ACEOF
8949 #define HAVE_GETTEXT 1
8952 # Extract the first word of "msgfmt", so it can be a program name with args.
8953 set dummy msgfmt; 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_MSGFMT+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 ac_cv_path_MSGFMT="$MSGFMT" # 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 'dv '`"; then
8969 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8975 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8979 MSGFMT="$ac_cv_path_MSGFMT"
8980 if test -n "$MSGFMT"; then
8981 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8982 echo "${ECHO_T}$MSGFMT" >&6
8984 echo "$as_me:$LINENO: result: no" >&5
8985 echo "${ECHO_T}no" >&6
8987 if test "$MSGFMT" != "no"; then
8989 for ac_func in dcgettext
8991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8992 echo "$as_me:$LINENO: checking for $ac_func" >&5
8993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8994 if eval "test \"\${$as_ac_var+set}\" = set"; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8997 cat >conftest.$ac_ext <<_ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h. */
9003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9005 #define $ac_func innocuous_$ac_func
9007 /* System header to define __stub macros and hopefully few prototypes,
9008 which can conflict with char $ac_func (); below.
9009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9010 <limits.h> exists even on freestanding compilers. */
9013 # include <limits.h>
9015 # include <assert.h>
9020 /* Override any gcc2 internal prototype to avoid an error. */
9025 /* We use char because int might match the return type of a gcc2
9026 builtin and then its argument prototype would still apply. */
9028 /* The GNU C library defines this for functions which it implements
9029 to always fail with ENOSYS. Some functions are actually named
9030 something starting with __ and the normal name is an alias. */
9031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9034 char (*f) () = $ac_func;
9043 return f != $ac_func;
9048 rm -f conftest.$ac_objext conftest$ac_exeext
9049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9050 (eval $ac_link) 2>conftest.er1
9052 grep -v '^ *+' conftest.er1 >conftest.err
9054 cat conftest.err >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } &&
9057 { ac_try='test -z "$ac_c_werror_flag"
9058 || test ! -s conftest.err'
9059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; } &&
9064 { ac_try='test -s conftest$ac_exeext'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; }; then
9070 eval "$as_ac_var=yes"
9072 echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9075 eval "$as_ac_var=no"
9077 rm -f conftest.err conftest.$ac_objext \
9078 conftest$ac_exeext conftest.$ac_ext
9080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9082 if test `eval echo '${'$as_ac_var'}'` = yes; then
9083 cat >>confdefs.h <<_ACEOF
9084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9090 # Extract the first word of "gmsgfmt", so it can be a program name with args.
9091 set dummy gmsgfmt; ac_word=$2
9092 echo "$as_me:$LINENO: checking for $ac_word" >&5
9093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9094 if test "${ac_cv_path_GMSGFMT+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9099 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
9102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9106 test -z "$as_dir" && as_dir=.
9107 for ac_exec_ext in '' $ac_executable_extensions; do
9108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9109 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
9110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9116 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9120 GMSGFMT=$ac_cv_path_GMSGFMT
9122 if test -n "$GMSGFMT"; then
9123 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
9124 echo "${ECHO_T}$GMSGFMT" >&6
9126 echo "$as_me:$LINENO: result: no" >&5
9127 echo "${ECHO_T}no" >&6
9130 # Extract the first word of "xgettext", so it can be a program name with args.
9131 set dummy xgettext; ac_word=$2
9132 echo "$as_me:$LINENO: checking for $ac_word" >&5
9133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9134 if test "${ac_cv_path_XGETTEXT+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
9139 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
9143 for ac_dir in $PATH; do
9144 test -z "$ac_dir" && ac_dir=.
9145 if test -f $ac_dir/$ac_word; then
9146 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
9147 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
9153 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9157 XGETTEXT="$ac_cv_path_XGETTEXT"
9158 if test -n "$XGETTEXT"; then
9159 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
9160 echo "${ECHO_T}$XGETTEXT" >&6
9162 echo "$as_me:$LINENO: result: no" >&5
9163 echo "${ECHO_T}no" >&6
9166 cat >conftest.$ac_ext <<_ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9176 extern int _nl_msg_cat_cntr;
9177 return _nl_msg_cat_cntr
9182 rm -f conftest.$ac_objext conftest$ac_exeext
9183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9184 (eval $ac_link) 2>conftest.er1
9186 grep -v '^ *+' conftest.er1 >conftest.err
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try='test -z "$ac_c_werror_flag"
9192 || test ! -s conftest.err'
9193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); }; } &&
9198 { ac_try='test -s conftest$ac_exeext'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; }; then
9207 echo "$as_me: failed program was:" >&5
9208 sed 's/^/| /' conftest.$ac_ext >&5
9213 rm -f conftest.err conftest.$ac_objext \
9214 conftest$ac_exeext conftest.$ac_ext
9219 # Added by Martin Baulig 12/15/98 for libc5 systems
9220 if test "$gt_cv_func_dgettext_libc" != "yes" \
9221 && test "$gt_cv_func_dgettext_libintl" = "yes"; then
9223 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
9230 if test "$CATOBJEXT" = "NONE"; then
9231 nls_cv_use_gnu_gettext=yes
9235 if test "$nls_cv_use_gnu_gettext" != "yes"; then
9237 cat >>confdefs.h <<\_ACEOF
9238 #define ENABLE_NLS 1
9245 if test "$XGETTEXT" != ":"; then
9246 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
9249 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
9250 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
9255 # We need to process the po/ directory.
9258 ac_config_commands="$ac_config_commands default-2"
9261 for lang in $ALL_LINGUAS; do
9262 GMOFILES="$GMOFILES $lang.gmo"
9263 POFILES="$POFILES $lang.po"
9278 if test "x$CATOBJEXT" != "x"; then
9279 if test "x$ALL_LINGUAS" = "x"; then
9282 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9283 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9285 for lang in ${LINGUAS=$ALL_LINGUAS}; do
9286 case "$ALL_LINGUAS" in
9287 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
9290 LINGUAS=$NEW_LINGUAS
9291 echo "$as_me:$LINENO: result: $LINGUAS" >&5
9292 echo "${ECHO_T}$LINGUAS" >&6
9295 if test -n "$LINGUAS"; then
9296 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9300 test -d po || mkdir po
9301 if test "$CATOBJEXT" = ".cat"; then
9302 if test "${ac_cv_header_linux_version_h+set}" = set; then
9303 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9304 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9305 if test "${ac_cv_header_linux_version_h+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9309 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9311 # Is the header compilable?
9312 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
9313 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
9314 cat >conftest.$ac_ext <<_ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h. */
9320 $ac_includes_default
9321 #include <linux/version.h>
9323 rm -f conftest.$ac_objext
9324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9325 (eval $ac_compile) 2>conftest.er1
9327 grep -v '^ *+' conftest.er1 >conftest.err
9329 cat conftest.err >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); } &&
9332 { ac_try='test -z "$ac_c_werror_flag"
9333 || test ! -s conftest.err'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; } &&
9339 { ac_try='test -s conftest.$ac_objext'
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; }; then
9345 ac_header_compiler=yes
9347 echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.$ac_ext >&5
9350 ac_header_compiler=no
9352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9354 echo "${ECHO_T}$ac_header_compiler" >&6
9356 # Is the header present?
9357 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
9358 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
9359 cat >conftest.$ac_ext <<_ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9365 #include <linux/version.h>
9367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9370 grep -v '^ *+' conftest.er1 >conftest.err
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } >/dev/null; then
9375 if test -s conftest.err; then
9376 ac_cpp_err=$ac_c_preproc_warn_flag
9377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9384 if test -z "$ac_cpp_err"; then
9385 ac_header_preproc=yes
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9390 ac_header_preproc=no
9392 rm -f conftest.err conftest.$ac_ext
9393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9394 echo "${ECHO_T}$ac_header_preproc" >&6
9396 # So? What about this header?
9397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9399 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9400 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9401 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
9402 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
9403 ac_header_preproc=yes
9406 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
9407 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
9408 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
9409 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
9410 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
9411 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
9412 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
9413 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
9414 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
9415 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
9416 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
9417 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
9420 ## ------------------------------------------ ##
9421 ## Report this to the AC_PACKAGE_NAME lists. ##
9422 ## ------------------------------------------ ##
9425 sed "s/^/$as_me: WARNING: /" >&2
9428 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9429 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9430 if test "${ac_cv_header_linux_version_h+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9433 ac_cv_header_linux_version_h=$ac_header_preproc
9435 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9436 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9439 if test $ac_cv_header_linux_version_h = yes; then
9447 sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
9452 # jwz: fuck this! it puts hardcoded pathnames into the generated Makefiles!
9454 # if test -n "$ac_aux_dir"; then
9455 # MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
9457 if test -z "$MKINSTALLDIRS"; then
9458 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
9461 # jwz: you know what, screw it. Let's just use the version that I
9462 # already computed in configure.in, instead of this version that came
9463 # with the i18n crud, ok?
9464 MKINSTALLDIRS="$INSTALL_DIRS"
9469 test -d po || mkdir po
9470 if test "x$srcdir" != "x."; then
9471 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
9472 posrcprefix="$srcdir/"
9474 posrcprefix="../$srcdir/"
9480 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
9481 < $srcdir/po/POTFILES.in > po/POTFILES
9483 MKINSTALLDIRS="$INSTALL_DIRS"
9486 ###############################################################################
9488 # Check for -lXmu (some fucked up vendors don't ship it...)
9490 ###############################################################################
9494 ac_save_CPPFLAGS="$CPPFLAGS"
9495 if test \! -z "$includedir" ; then
9496 CPPFLAGS="$CPPFLAGS -I$includedir"
9498 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9499 echo "$as_me:$LINENO: checking for X11/Xmu/Error.h" >&5
9500 echo $ECHO_N "checking for X11/Xmu/Error.h... $ECHO_C" >&6
9501 if test "${ac_cv_header_X11_Xmu_Error_h+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 cat >conftest.$ac_ext <<_ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h. */
9512 #include <X11/Intrinsic.h>
9514 #include <X11/Xmu/Error.h>
9516 rm -f conftest.$ac_objext
9517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9518 (eval $ac_compile) 2>conftest.er1
9520 grep -v '^ *+' conftest.er1 >conftest.err
9522 cat conftest.err >&5
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); } &&
9525 { ac_try='test -z "$ac_c_werror_flag"
9526 || test ! -s conftest.err'
9527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); }; } &&
9532 { ac_try='test -s conftest.$ac_objext'
9533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); }; }; then
9538 ac_cv_header_X11_Xmu_Error_h=yes
9540 echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9543 ac_cv_header_X11_Xmu_Error_h=no
9545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9547 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xmu_Error_h" >&5
9548 echo "${ECHO_T}$ac_cv_header_X11_Xmu_Error_h" >&6
9549 if test $ac_cv_header_X11_Xmu_Error_h = yes; then
9554 CPPFLAGS="$ac_save_CPPFLAGS"
9555 if test "$have_xmu" = no ; then
9556 XMU_SRCS='$(UTILS_SRC)/xmu.c'
9557 XMU_OBJS='$(UTILS_BIN)/xmu.o'
9563 cat >>confdefs.h <<\_ACEOF
9570 ###############################################################################
9572 # Check for the SunOS 4.1.x _get_wmShellWidgetClass bug.
9573 # See comp.windows.x FAQ question 124. The right fix is to
9574 # get OpenWindows 3.0 patches 100512-02 and 100573-03.
9576 ###############################################################################
9578 if test "$have_xmu" = yes ; then
9581 echo "$as_me:$LINENO: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
9582 echo $ECHO_N "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug... $ECHO_C" >&6
9583 if test "${ac_cv_sunos_xmu_bug+set}" = set; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 ac_save_LDFLAGS="$LDFLAGS"
9587 if test \! -z "$x_libraries" ; then
9588 LDFLAGS="$LDFLAGS -L$x_libraries"
9590 # Note: this trick never works! (Generally.)
9591 # We're only getting away with using AC_TRY_LINK
9592 # with X libraries because we know it's SunOS.
9593 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
9594 cat >conftest.$ac_ext <<_ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9611 (eval $ac_link) 2>conftest.er1
9613 grep -v '^ *+' conftest.er1 >conftest.err
9615 cat conftest.err >&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } &&
9618 { ac_try='test -z "$ac_c_werror_flag"
9619 || test ! -s conftest.err'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; } &&
9625 { ac_try='test -s conftest$ac_exeext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 ac_cv_sunos_xmu_bug=no
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9636 ac_cv_sunos_xmu_bug=yes
9638 rm -f conftest.err conftest.$ac_objext \
9639 conftest$ac_exeext conftest.$ac_ext
9640 LDFLAGS="$ac_save_LDFLAGS"
9642 echo "$as_me:$LINENO: result: $ac_cv_sunos_xmu_bug" >&5
9643 echo "${ECHO_T}$ac_cv_sunos_xmu_bug" >&6
9644 if test "$ac_cv_sunos_xmu_bug" = yes ; then
9645 echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
9646 echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
9647 if test "${ac_cv_ld_static+set}" = set; then
9648 echo $ECHO_N "(cached) $ECHO_C" >&6
9650 ac_save_LDFLAGS="$LDFLAGS"
9651 LDFLAGS="$LDFLAGS -static"
9652 cat >conftest.$ac_ext <<_ACEOF
9655 cat confdefs.h >>conftest.$ac_ext
9656 cat >>conftest.$ac_ext <<_ACEOF
9657 /* end confdefs.h. */
9667 rm -f conftest.$ac_objext conftest$ac_exeext
9668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9669 (eval $ac_link) 2>conftest.er1
9671 grep -v '^ *+' conftest.er1 >conftest.err
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } &&
9676 { ac_try='test -z "$ac_c_werror_flag"
9677 || test ! -s conftest.err'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; } &&
9683 { ac_try='test -s conftest$ac_exeext'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; }; then
9691 echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.$ac_ext >&5
9696 rm -f conftest.err conftest.$ac_objext \
9697 conftest$ac_exeext conftest.$ac_ext
9698 LDFLAGS="$ac_save_LDFLAGS"
9700 echo "$as_me:$LINENO: result: $ac_cv_ld_static" >&5
9701 echo "${ECHO_T}$ac_cv_ld_static" >&6
9702 if test "$ac_cv_ld_static" = yes ; then
9703 LDFLAGS="$LDFLAGS -static"
9705 LDFLAGS="$LDFLAGS -Bstatic"
9713 ###############################################################################
9715 # Handle the --with-hackdir option
9717 ###############################################################################
9720 with_hackdir_req=unspecified
9722 # Check whether --with-hackdir or --without-hackdir was given.
9723 if test "${with_hackdir+set}" = set; then
9724 withval="$with_hackdir"
9725 with_hackdir="$withval"; with_hackdir_req="$withval"
9730 if test x"$with_hackdir" = xyes; then
9731 HACKDIR='${libexecdir}/xscreensaver'
9732 elif test x"$with_hackdir" = xno; then
9735 HACKDIR=$with_hackdir
9738 # canonicalize slashes.
9739 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
9741 # This option used to be called --enable-subdir; make sure that is no longer
9742 # used, since configure brain-damagedly ignores unknown --enable options.
9745 # Check whether --enable-subdir or --disable-subdir was given.
9746 if test "${enable_subdir+set}" = set; then
9747 enableval="$enable_subdir"
9750 if test -n "$obsolete_enable"; then
9751 echo "error: the --enable-subdir option has been replaced with"
9752 echo " the new --with-hackdir option; see \`configure --help'"
9753 echo " for more information."
9758 ###############################################################################
9760 # Handle the --with-configdir option
9762 ###############################################################################
9765 with_configdir_req=unspecified
9767 # Check whether --with-configdir or --without-configdir was given.
9768 if test "${with_configdir+set}" = set; then
9769 withval="$with_configdir"
9770 with_configdir="$withval"; with_configdir_req="$withval"
9775 if test x"$with_configdir" = xyes; then
9776 HACK_CONF_DIR='${datadir}/xscreensaver/config'
9777 elif test x"$with_configdir" = xno; then
9778 echo "error: must be yes, or a pathname: --with-configdir=$with_configdir"
9781 # there must be a better way than this...
9782 if test -z "`echo $with_configdir | sed 's@^/.*@@'`" ; then
9784 HACK_CONF_DIR=$with_configdir
9787 HACK_CONF_DIR="\${exec_prefix}$with_configdir"
9794 ###############################################################################
9796 # Check for the SGI SCREEN_SAVER server extension.
9798 ###############################################################################
9801 with_sgi_req=unspecified
9803 # Check whether --with-sgi-ext or --without-sgi-ext was given.
9804 if test "${with_sgi_ext+set}" = set; then
9805 withval="$with_sgi_ext"
9806 with_sgi="$withval"; with_sgi_req="$withval"
9817 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER headers" >&5
9818 echo $ECHO_N "checking for SGI SCREEN_SAVER headers... $ECHO_C" >&6
9821 X_CFLAGS="-I$d $X_CFLAGS"
9822 echo "$as_me:$LINENO: result: $d" >&5
9823 echo "${ECHO_T}$d" >&6
9825 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9826 echo "${ECHO_T}not found ($d: no such directory)" >&6
9829 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER libs" >&5
9830 echo $ECHO_N "checking for SGI SCREEN_SAVER libs... $ECHO_C" >&6
9833 X_LIBS="-L$d $X_LIBS"
9834 echo "$as_me:$LINENO: result: $d" >&5
9835 echo "${ECHO_T}$d" >&6
9837 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9838 echo "${ECHO_T}not found ($d: no such directory)" >&6
9841 # replace the directory string with "yes".
9843 with_sgi=$with_sgi_req
9848 echo "error: argument to --with-sgi-ext must be \"yes\", \"no\", or a directory."
9849 echo " If it is a directory, then \`DIR/include' will be added to"
9850 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9856 if test "$with_sgi" = yes; then
9858 ac_save_CPPFLAGS="$CPPFLAGS"
9859 if test \! -z "$includedir" ; then
9860 CPPFLAGS="$CPPFLAGS -I$includedir"
9862 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9863 echo "$as_me:$LINENO: checking for X11/extensions/XScreenSaver.h" >&5
9864 echo $ECHO_N "checking for X11/extensions/XScreenSaver.h... $ECHO_C" >&6
9865 if test "${ac_cv_header_X11_extensions_XScreenSaver_h+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 cat >conftest.$ac_ext <<_ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 #include <X11/Xlib.h>
9876 #include <X11/extensions/XScreenSaver.h>
9878 rm -f conftest.$ac_objext
9879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9880 (eval $ac_compile) 2>conftest.er1
9882 grep -v '^ *+' conftest.er1 >conftest.err
9884 cat conftest.err >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } &&
9887 { ac_try='test -z "$ac_c_werror_flag"
9888 || test ! -s conftest.err'
9889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; } &&
9894 { ac_try='test -s conftest.$ac_objext'
9895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; }; then
9900 ac_cv_header_X11_extensions_XScreenSaver_h=yes
9902 echo "$as_me: failed program was:" >&5
9903 sed 's/^/| /' conftest.$ac_ext >&5
9905 ac_cv_header_X11_extensions_XScreenSaver_h=no
9907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9909 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XScreenSaver_h" >&5
9910 echo "${ECHO_T}$ac_cv_header_X11_extensions_XScreenSaver_h" >&6
9911 if test $ac_cv_header_X11_extensions_XScreenSaver_h = yes; then
9913 cat >>confdefs.h <<\_ACEOF
9914 #define HAVE_SGI_SAVER_EXTENSION 1
9920 CPPFLAGS="$ac_save_CPPFLAGS"
9922 elif test "$with_sgi" != no; then
9923 echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
9928 ###############################################################################
9930 # Check for the XIDLE server extension.
9932 ###############################################################################
9935 with_xidle_req=unspecified
9937 # Check whether --with-xidle-ext or --without-xidle-ext was given.
9938 if test "${with_xidle_ext+set}" = set; then
9939 withval="$with_xidle_ext"
9940 with_xidle="$withval"; with_xidle_req="$withval"
9946 case "$with_xidle" in
9951 echo "$as_me:$LINENO: checking for XIDLE headers" >&5
9952 echo $ECHO_N "checking for XIDLE headers... $ECHO_C" >&6
9953 d=$with_xidle/include
9955 X_CFLAGS="-I$d $X_CFLAGS"
9956 echo "$as_me:$LINENO: result: $d" >&5
9957 echo "${ECHO_T}$d" >&6
9959 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9960 echo "${ECHO_T}not found ($d: no such directory)" >&6
9963 echo "$as_me:$LINENO: checking for XIDLE libs" >&5
9964 echo $ECHO_N "checking for XIDLE libs... $ECHO_C" >&6
9967 X_LIBS="-L$d $X_LIBS"
9968 echo "$as_me:$LINENO: result: $d" >&5
9969 echo "${ECHO_T}$d" >&6
9971 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9972 echo "${ECHO_T}not found ($d: no such directory)" >&6
9975 # replace the directory string with "yes".
9976 with_xidle_req="yes"
9977 with_xidle=$with_xidle_req
9982 echo "error: argument to --with-xidle-ext must be \"yes\", \"no\", or a directory."
9983 echo " If it is a directory, then \`DIR/include' will be added to"
9984 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9990 if test "$with_xidle" = yes; then
9992 ac_save_CPPFLAGS="$CPPFLAGS"
9993 if test \! -z "$includedir" ; then
9994 CPPFLAGS="$CPPFLAGS -I$includedir"
9996 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9997 echo "$as_me:$LINENO: checking for X11/extensions/xidle.h" >&5
9998 echo $ECHO_N "checking for X11/extensions/xidle.h... $ECHO_C" >&6
9999 if test "${ac_cv_header_X11_extensions_xidle_h+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 cat >conftest.$ac_ext <<_ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10008 #include <X11/Xlib.h>
10010 #include <X11/extensions/xidle.h>
10012 rm -f conftest.$ac_objext
10013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10014 (eval $ac_compile) 2>conftest.er1
10016 grep -v '^ *+' conftest.er1 >conftest.err
10018 cat conftest.err >&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); } &&
10021 { ac_try='test -z "$ac_c_werror_flag"
10022 || test ! -s conftest.err'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; } &&
10028 { ac_try='test -s conftest.$ac_objext'
10029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030 (eval $ac_try) 2>&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034 ac_cv_header_X11_extensions_xidle_h=yes
10036 echo "$as_me: failed program was:" >&5
10037 sed 's/^/| /' conftest.$ac_ext >&5
10039 ac_cv_header_X11_extensions_xidle_h=no
10041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10043 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xidle_h" >&5
10044 echo "${ECHO_T}$ac_cv_header_X11_extensions_xidle_h" >&6
10045 if test $ac_cv_header_X11_extensions_xidle_h = yes; then
10047 cat >>confdefs.h <<\_ACEOF
10048 #define HAVE_XIDLE_EXTENSION 1
10054 CPPFLAGS="$ac_save_CPPFLAGS"
10055 elif test "$with_xidle" != no; then
10056 echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
10061 ###############################################################################
10063 # Check for the SGI-VIDEO-CONTROL server extension.
10065 ###############################################################################
10068 with_sgivc_req=unspecified
10070 # Check whether --with-sgivc-ext or --without-sgivc-ext was given.
10071 if test "${with_sgivc_ext+set}" = set; then
10072 withval="$with_sgivc_ext"
10073 with_sgivc="$withval"; with_sgivc_req="$withval"
10079 case "$with_sgivc" in
10084 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL headers" >&5
10085 echo $ECHO_N "checking for SGI-VIDEO-CONTROL headers... $ECHO_C" >&6
10086 d=$with_sgivc/include
10087 if test -d $d; then
10088 X_CFLAGS="-I$d $X_CFLAGS"
10089 echo "$as_me:$LINENO: result: $d" >&5
10090 echo "${ECHO_T}$d" >&6
10092 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10093 echo "${ECHO_T}not found ($d: no such directory)" >&6
10096 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL libs" >&5
10097 echo $ECHO_N "checking for SGI-VIDEO-CONTROL libs... $ECHO_C" >&6
10099 if test -d $d; then
10100 X_LIBS="-L$d $X_LIBS"
10101 echo "$as_me:$LINENO: result: $d" >&5
10102 echo "${ECHO_T}$d" >&6
10104 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10105 echo "${ECHO_T}not found ($d: no such directory)" >&6
10108 # replace the directory string with "yes".
10109 with_sgivc_req="yes"
10110 with_sgivc=$with_sgivc_req
10115 echo "error: argument to --with-sgivc-ext must be \"yes\", \"no\", or a directory."
10116 echo " If it is a directory, then \`DIR/include' will be added to"
10117 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10123 if test "$with_sgivc" = yes; then
10125 # first check for XSGIvc.h
10127 ac_save_CPPFLAGS="$CPPFLAGS"
10128 if test \! -z "$includedir" ; then
10129 CPPFLAGS="$CPPFLAGS -I$includedir"
10131 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10132 echo "$as_me:$LINENO: checking for X11/extensions/XSGIvc.h" >&5
10133 echo $ECHO_N "checking for X11/extensions/XSGIvc.h... $ECHO_C" >&6
10134 if test "${ac_cv_header_X11_extensions_XSGIvc_h+set}" = set; then
10135 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 cat >conftest.$ac_ext <<_ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h. */
10143 #include <X11/Xlib.h>
10145 #include <X11/extensions/XSGIvc.h>
10147 rm -f conftest.$ac_objext
10148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10149 (eval $ac_compile) 2>conftest.er1
10151 grep -v '^ *+' conftest.er1 >conftest.err
10153 cat conftest.err >&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } &&
10156 { ac_try='test -z "$ac_c_werror_flag"
10157 || test ! -s conftest.err'
10158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159 (eval $ac_try) 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; } &&
10163 { ac_try='test -s conftest.$ac_objext'
10164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165 (eval $ac_try) 2>&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; }; then
10169 ac_cv_header_X11_extensions_XSGIvc_h=yes
10171 echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10174 ac_cv_header_X11_extensions_XSGIvc_h=no
10176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10178 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XSGIvc_h" >&5
10179 echo "${ECHO_T}$ac_cv_header_X11_extensions_XSGIvc_h" >&6
10180 if test $ac_cv_header_X11_extensions_XSGIvc_h = yes; then
10185 CPPFLAGS="$ac_save_CPPFLAGS"
10187 # if that succeeded, then check for the -lXsgivc
10188 if test "$have_sgivc" = yes; then
10191 ac_save_CPPFLAGS="$CPPFLAGS"
10192 ac_save_LDFLAGS="$LDFLAGS"
10193 # ac_save_LIBS="$LIBS"
10195 if test \! -z "$includedir" ; then
10196 CPPFLAGS="$CPPFLAGS -I$includedir"
10198 # note: $X_CFLAGS includes $x_includes
10199 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10201 if test \! -z "$libdir" ; then
10202 LDFLAGS="$LDFLAGS -L$libdir"
10204 # note: $X_LIBS includes $x_libraries
10205 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10207 echo "$as_me:$LINENO: checking for XSGIvcQueryGammaMap in -lXsgivc" >&5
10208 echo $ECHO_N "checking for XSGIvcQueryGammaMap in -lXsgivc... $ECHO_C" >&6
10209 if test "${ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap+set}" = set; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 ac_check_lib_save_LIBS=$LIBS
10213 LIBS="-lXsgivc -lXext -lX11 $LIBS"
10214 cat >conftest.$ac_ext <<_ACEOF
10217 cat confdefs.h >>conftest.$ac_ext
10218 cat >>conftest.$ac_ext <<_ACEOF
10219 /* end confdefs.h. */
10221 /* Override any gcc2 internal prototype to avoid an error. */
10225 /* We use char because int might match the return type of a gcc2
10226 builtin and then its argument prototype would still apply. */
10227 char XSGIvcQueryGammaMap ();
10231 XSGIvcQueryGammaMap ();
10236 rm -f conftest.$ac_objext conftest$ac_exeext
10237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10238 (eval $ac_link) 2>conftest.er1
10240 grep -v '^ *+' conftest.er1 >conftest.err
10242 cat conftest.err >&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } &&
10245 { ac_try='test -z "$ac_c_werror_flag"
10246 || test ! -s conftest.err'
10247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10248 (eval $ac_try) 2>&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); }; } &&
10252 { ac_try='test -s conftest$ac_exeext'
10253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10254 (eval $ac_try) 2>&5
10256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257 (exit $ac_status); }; }; then
10258 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=yes
10260 echo "$as_me: failed program was:" >&5
10261 sed 's/^/| /' conftest.$ac_ext >&5
10263 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=no
10265 rm -f conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext conftest.$ac_ext
10267 LIBS=$ac_check_lib_save_LIBS
10269 echo "$as_me:$LINENO: result: $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&5
10270 echo "${ECHO_T}$ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&6
10271 if test $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap = yes; then
10272 have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"
10277 CPPFLAGS="$ac_save_CPPFLAGS"
10278 LDFLAGS="$ac_save_LDFLAGS"
10279 # LIBS="$ac_save_LIBS"
10283 # if that succeeded, then we've really got it.
10284 if test "$have_sgivc" = yes; then
10285 cat >>confdefs.h <<\_ACEOF
10286 #define HAVE_SGI_VC_EXTENSION 1
10291 elif test "$with_sgivc" != no; then
10292 echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
10297 ###############################################################################
10299 # Check for the DPMS server extension.
10301 ###############################################################################
10304 with_dpms_req=unspecified
10306 # Check whether --with-dpms-ext or --without-dpms-ext was given.
10307 if test "${with_dpms_ext+set}" = set; then
10308 withval="$with_dpms_ext"
10309 with_dpms="$withval"; with_dpms_req="$withval"
10315 case "$with_dpms" in
10320 echo "$as_me:$LINENO: checking for DPMS headers" >&5
10321 echo $ECHO_N "checking for DPMS headers... $ECHO_C" >&6
10322 d=$with_dpms/include
10323 if test -d $d; then
10324 X_CFLAGS="-I$d $X_CFLAGS"
10325 echo "$as_me:$LINENO: result: $d" >&5
10326 echo "${ECHO_T}$d" >&6
10328 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10329 echo "${ECHO_T}not found ($d: no such directory)" >&6
10332 echo "$as_me:$LINENO: checking for DPMS libs" >&5
10333 echo $ECHO_N "checking for DPMS libs... $ECHO_C" >&6
10335 if test -d $d; then
10336 X_LIBS="-L$d $X_LIBS"
10337 echo "$as_me:$LINENO: result: $d" >&5
10338 echo "${ECHO_T}$d" >&6
10340 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10341 echo "${ECHO_T}not found ($d: no such directory)" >&6
10344 # replace the directory string with "yes".
10345 with_dpms_req="yes"
10346 with_dpms=$with_dpms_req
10351 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
10352 echo " If it is a directory, then \`DIR/include' will be added to"
10353 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10359 if test "$with_dpms" = yes; then
10361 # first check for dpms.h
10363 ac_save_CPPFLAGS="$CPPFLAGS"
10364 if test \! -z "$includedir" ; then
10365 CPPFLAGS="$CPPFLAGS -I$includedir"
10367 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10368 echo "$as_me:$LINENO: checking for X11/extensions/dpms.h" >&5
10369 echo $ECHO_N "checking for X11/extensions/dpms.h... $ECHO_C" >&6
10370 if test "${ac_cv_header_X11_extensions_dpms_h+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 cat >conftest.$ac_ext <<_ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10379 #include <X11/Xlib.h>
10380 #include <X11/Xmd.h>
10382 #include <X11/extensions/dpms.h>
10384 rm -f conftest.$ac_objext
10385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10386 (eval $ac_compile) 2>conftest.er1
10388 grep -v '^ *+' conftest.er1 >conftest.err
10390 cat conftest.err >&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } &&
10393 { ac_try='test -z "$ac_c_werror_flag"
10394 || test ! -s conftest.err'
10395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396 (eval $ac_try) 2>&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; } &&
10400 { ac_try='test -s conftest.$ac_objext'
10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10402 (eval $ac_try) 2>&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; }; then
10406 ac_cv_header_X11_extensions_dpms_h=yes
10408 echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.$ac_ext >&5
10411 ac_cv_header_X11_extensions_dpms_h=no
10413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10415 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_dpms_h" >&5
10416 echo "${ECHO_T}$ac_cv_header_X11_extensions_dpms_h" >&6
10417 if test $ac_cv_header_X11_extensions_dpms_h = yes; then
10422 CPPFLAGS="$ac_save_CPPFLAGS"
10424 # if that succeeded, then check for the DPMS code in the libraries
10425 if test "$have_dpms" = yes; then
10427 # first look in -lXext (this is where it is with XFree86 4.0)
10430 ac_save_CPPFLAGS="$CPPFLAGS"
10431 ac_save_LDFLAGS="$LDFLAGS"
10432 # ac_save_LIBS="$LIBS"
10434 if test \! -z "$includedir" ; then
10435 CPPFLAGS="$CPPFLAGS -I$includedir"
10437 # note: $X_CFLAGS includes $x_includes
10438 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10440 if test \! -z "$libdir" ; then
10441 LDFLAGS="$LDFLAGS -L$libdir"
10443 # note: $X_LIBS includes $x_libraries
10444 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10446 echo "$as_me:$LINENO: checking for DPMSInfo in -lXext" >&5
10447 echo $ECHO_N "checking for DPMSInfo in -lXext... $ECHO_C" >&6
10448 if test "${ac_cv_lib_Xext_DPMSInfo+set}" = set; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
10451 ac_check_lib_save_LIBS=$LIBS
10452 LIBS="-lXext -lXext -lX11 $LIBS"
10453 cat >conftest.$ac_ext <<_ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10460 /* Override any gcc2 internal prototype to avoid an error. */
10464 /* We use char because int might match the return type of a gcc2
10465 builtin and then its argument prototype would still apply. */
10475 rm -f conftest.$ac_objext conftest$ac_exeext
10476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10477 (eval $ac_link) 2>conftest.er1
10479 grep -v '^ *+' conftest.er1 >conftest.err
10481 cat conftest.err >&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } &&
10484 { ac_try='test -z "$ac_c_werror_flag"
10485 || test ! -s conftest.err'
10486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487 (eval $ac_try) 2>&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; } &&
10491 { ac_try='test -s conftest$ac_exeext'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; }; then
10497 ac_cv_lib_Xext_DPMSInfo=yes
10499 echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10502 ac_cv_lib_Xext_DPMSInfo=no
10504 rm -f conftest.err conftest.$ac_objext \
10505 conftest$ac_exeext conftest.$ac_ext
10506 LIBS=$ac_check_lib_save_LIBS
10508 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_DPMSInfo" >&5
10509 echo "${ECHO_T}$ac_cv_lib_Xext_DPMSInfo" >&6
10510 if test $ac_cv_lib_Xext_DPMSInfo = yes; then
10516 CPPFLAGS="$ac_save_CPPFLAGS"
10517 LDFLAGS="$ac_save_LDFLAGS"
10518 # LIBS="$ac_save_LIBS"
10521 # if that failed, look in -lXdpms (this is where it was in XFree86 3.x)
10522 if test "$have_dpms" = no; then
10524 ac_save_CPPFLAGS="$CPPFLAGS"
10525 ac_save_LDFLAGS="$LDFLAGS"
10526 # ac_save_LIBS="$LIBS"
10528 if test \! -z "$includedir" ; then
10529 CPPFLAGS="$CPPFLAGS -I$includedir"
10531 # note: $X_CFLAGS includes $x_includes
10532 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10534 if test \! -z "$libdir" ; then
10535 LDFLAGS="$LDFLAGS -L$libdir"
10537 # note: $X_LIBS includes $x_libraries
10538 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10540 echo "$as_me:$LINENO: checking for DPMSInfo in -lXdpms" >&5
10541 echo $ECHO_N "checking for DPMSInfo in -lXdpms... $ECHO_C" >&6
10542 if test "${ac_cv_lib_Xdpms_DPMSInfo+set}" = set; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 ac_check_lib_save_LIBS=$LIBS
10546 LIBS="-lXdpms -lXext -lX11 $LIBS"
10547 cat >conftest.$ac_ext <<_ACEOF
10550 cat confdefs.h >>conftest.$ac_ext
10551 cat >>conftest.$ac_ext <<_ACEOF
10552 /* end confdefs.h. */
10554 /* Override any gcc2 internal prototype to avoid an error. */
10558 /* We use char because int might match the return type of a gcc2
10559 builtin and then its argument prototype would still apply. */
10569 rm -f conftest.$ac_objext conftest$ac_exeext
10570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10571 (eval $ac_link) 2>conftest.er1
10573 grep -v '^ *+' conftest.er1 >conftest.err
10575 cat conftest.err >&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); } &&
10578 { ac_try='test -z "$ac_c_werror_flag"
10579 || test ! -s conftest.err'
10580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581 (eval $ac_try) 2>&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; } &&
10585 { ac_try='test -s conftest$ac_exeext'
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; }; then
10591 ac_cv_lib_Xdpms_DPMSInfo=yes
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ac_cv_lib_Xdpms_DPMSInfo=no
10598 rm -f conftest.err conftest.$ac_objext \
10599 conftest$ac_exeext conftest.$ac_ext
10600 LIBS=$ac_check_lib_save_LIBS
10602 echo "$as_me:$LINENO: result: $ac_cv_lib_Xdpms_DPMSInfo" >&5
10603 echo "${ECHO_T}$ac_cv_lib_Xdpms_DPMSInfo" >&6
10604 if test $ac_cv_lib_Xdpms_DPMSInfo = yes; then
10605 have_dpms=yes; XDPMS_LIBS="-lXdpms"
10610 CPPFLAGS="$ac_save_CPPFLAGS"
10611 LDFLAGS="$ac_save_LDFLAGS"
10612 # LIBS="$ac_save_LIBS"
10618 # if that succeeded, then we've really got it.
10619 if test "$have_dpms" = yes; then
10620 cat >>confdefs.h <<\_ACEOF
10621 #define HAVE_DPMS_EXTENSION 1
10626 elif test "$with_dpms" != no; then
10627 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
10632 ###############################################################################
10634 # Check for the XINERAMA server extension.
10636 ###############################################################################
10639 with_xinerama_req=unspecified
10641 # Check whether --with-xinerama-ext or --without-xinerama-ext was given.
10642 if test "${with_xinerama_ext+set}" = set; then
10643 withval="$with_xinerama_ext"
10644 with_xinerama="$withval"; with_xinerama_req="$withval"
10650 case "$with_xinerama" in
10655 echo "$as_me:$LINENO: checking for XINERAMA headers" >&5
10656 echo $ECHO_N "checking for XINERAMA headers... $ECHO_C" >&6
10657 d=$with_xinerama/include
10658 if test -d $d; then
10659 X_CFLAGS="-I$d $X_CFLAGS"
10660 echo "$as_me:$LINENO: result: $d" >&5
10661 echo "${ECHO_T}$d" >&6
10663 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10664 echo "${ECHO_T}not found ($d: no such directory)" >&6
10667 echo "$as_me:$LINENO: checking for XINERAMA libs" >&5
10668 echo $ECHO_N "checking for XINERAMA libs... $ECHO_C" >&6
10669 d=$with_xinerama/lib
10670 if test -d $d; then
10671 X_LIBS="-L$d $X_LIBS"
10672 echo "$as_me:$LINENO: result: $d" >&5
10673 echo "${ECHO_T}$d" >&6
10675 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10676 echo "${ECHO_T}not found ($d: no such directory)" >&6
10679 # replace the directory string with "yes".
10680 with_xinerama_req="yes"
10681 with_xinerama=$with_xinerama_req
10686 echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
10687 echo " If it is a directory, then \`DIR/include' will be added to"
10688 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10694 if test "$with_xinerama" = yes; then
10696 # first check for Xinerama.h
10698 ac_save_CPPFLAGS="$CPPFLAGS"
10699 if test \! -z "$includedir" ; then
10700 CPPFLAGS="$CPPFLAGS -I$includedir"
10702 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10703 echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
10704 echo $ECHO_N "checking for X11/extensions/Xinerama.h... $ECHO_C" >&6
10705 if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
10706 echo $ECHO_N "(cached) $ECHO_C" >&6
10708 cat >conftest.$ac_ext <<_ACEOF
10711 cat confdefs.h >>conftest.$ac_ext
10712 cat >>conftest.$ac_ext <<_ACEOF
10713 /* end confdefs.h. */
10714 #include <X11/Xlib.h>
10716 #include <X11/extensions/Xinerama.h>
10718 rm -f conftest.$ac_objext
10719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10720 (eval $ac_compile) 2>conftest.er1
10722 grep -v '^ *+' conftest.er1 >conftest.err
10724 cat conftest.err >&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } &&
10727 { ac_try='test -z "$ac_c_werror_flag"
10728 || test ! -s conftest.err'
10729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10730 (eval $ac_try) 2>&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }; } &&
10734 { ac_try='test -s conftest.$ac_objext'
10735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10736 (eval $ac_try) 2>&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; }; then
10740 ac_cv_header_X11_extensions_Xinerama_h=yes
10742 echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10745 ac_cv_header_X11_extensions_Xinerama_h=no
10747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10749 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
10750 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xinerama_h" >&6
10751 if test $ac_cv_header_X11_extensions_Xinerama_h = yes; then
10756 CPPFLAGS="$ac_save_CPPFLAGS"
10758 # if that succeeded, then check for the XINERAMA code in the libraries
10759 if test "$have_xinerama" = yes; then
10761 # first look in -lXext
10764 ac_save_CPPFLAGS="$CPPFLAGS"
10765 ac_save_LDFLAGS="$LDFLAGS"
10766 # ac_save_LIBS="$LIBS"
10768 if test \! -z "$includedir" ; then
10769 CPPFLAGS="$CPPFLAGS -I$includedir"
10771 # note: $X_CFLAGS includes $x_includes
10772 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10774 if test \! -z "$libdir" ; then
10775 LDFLAGS="$LDFLAGS -L$libdir"
10777 # note: $X_LIBS includes $x_libraries
10778 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10780 echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXext" >&5
10781 echo $ECHO_N "checking for XineramaQueryScreens in -lXext... $ECHO_C" >&6
10782 if test "${ac_cv_lib_Xext_XineramaQueryScreens+set}" = set; then
10783 echo $ECHO_N "(cached) $ECHO_C" >&6
10785 ac_check_lib_save_LIBS=$LIBS
10786 LIBS="-lXext -lXext -lX11 $LIBS"
10787 cat >conftest.$ac_ext <<_ACEOF
10790 cat confdefs.h >>conftest.$ac_ext
10791 cat >>conftest.$ac_ext <<_ACEOF
10792 /* end confdefs.h. */
10794 /* Override any gcc2 internal prototype to avoid an error. */
10798 /* We use char because int might match the return type of a gcc2
10799 builtin and then its argument prototype would still apply. */
10800 char XineramaQueryScreens ();
10804 XineramaQueryScreens ();
10809 rm -f conftest.$ac_objext conftest$ac_exeext
10810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10811 (eval $ac_link) 2>conftest.er1
10813 grep -v '^ *+' conftest.er1 >conftest.err
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } &&
10818 { ac_try='test -z "$ac_c_werror_flag"
10819 || test ! -s conftest.err'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; } &&
10825 { ac_try='test -s conftest$ac_exeext'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 ac_cv_lib_Xext_XineramaQueryScreens=yes
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10836 ac_cv_lib_Xext_XineramaQueryScreens=no
10838 rm -f conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10840 LIBS=$ac_check_lib_save_LIBS
10842 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XineramaQueryScreens" >&5
10843 echo "${ECHO_T}$ac_cv_lib_Xext_XineramaQueryScreens" >&6
10844 if test $ac_cv_lib_Xext_XineramaQueryScreens = yes; then
10850 CPPFLAGS="$ac_save_CPPFLAGS"
10851 LDFLAGS="$ac_save_LDFLAGS"
10852 # LIBS="$ac_save_LIBS"
10855 # if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
10856 if test "$have_xinerama" = no; then
10858 ac_save_CPPFLAGS="$CPPFLAGS"
10859 ac_save_LDFLAGS="$LDFLAGS"
10860 # ac_save_LIBS="$LIBS"
10862 if test \! -z "$includedir" ; then
10863 CPPFLAGS="$CPPFLAGS -I$includedir"
10865 # note: $X_CFLAGS includes $x_includes
10866 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10868 if test \! -z "$libdir" ; then
10869 LDFLAGS="$LDFLAGS -L$libdir"
10871 # note: $X_LIBS includes $x_libraries
10872 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10874 echo "$as_me:$LINENO: checking for XineramaQueryScreens in -lXinerama" >&5
10875 echo $ECHO_N "checking for XineramaQueryScreens in -lXinerama... $ECHO_C" >&6
10876 if test "${ac_cv_lib_Xinerama_XineramaQueryScreens+set}" = set; then
10877 echo $ECHO_N "(cached) $ECHO_C" >&6
10879 ac_check_lib_save_LIBS=$LIBS
10880 LIBS="-lXinerama -lXext -lX11 $LIBS"
10881 cat >conftest.$ac_ext <<_ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10888 /* Override any gcc2 internal prototype to avoid an error. */
10892 /* We use char because int might match the return type of a gcc2
10893 builtin and then its argument prototype would still apply. */
10894 char XineramaQueryScreens ();
10898 XineramaQueryScreens ();
10903 rm -f conftest.$ac_objext conftest$ac_exeext
10904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10905 (eval $ac_link) 2>conftest.er1
10907 grep -v '^ *+' conftest.er1 >conftest.err
10909 cat conftest.err >&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } &&
10912 { ac_try='test -z "$ac_c_werror_flag"
10913 || test ! -s conftest.err'
10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; } &&
10919 { ac_try='test -s conftest$ac_exeext'
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; }; then
10925 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 ac_cv_lib_Xinerama_XineramaQueryScreens=no
10932 rm -f conftest.err conftest.$ac_objext \
10933 conftest$ac_exeext conftest.$ac_ext
10934 LIBS=$ac_check_lib_save_LIBS
10936 echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
10937 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6
10938 if test $ac_cv_lib_Xinerama_XineramaQueryScreens = yes; then
10939 have_xinerama=yes; XINERAMA_LIBS="-lXinerama"
10944 CPPFLAGS="$ac_save_CPPFLAGS"
10945 LDFLAGS="$ac_save_LDFLAGS"
10946 # LIBS="$ac_save_LIBS"
10951 # if that succeeded, then we've really got it.
10952 if test "$have_xinerama" = yes; then
10953 cat >>confdefs.h <<\_ACEOF
10954 #define HAVE_XINERAMA 1
10959 elif test "$with_xinerama" != no; then
10960 echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
10965 ###############################################################################
10967 # Check for the XF86VMODE server extension (for virtual screens.)
10969 ###############################################################################
10972 with_xf86vmode_req=unspecified
10974 # Check whether --with-xf86vmode-ext or --without-xf86vmode-ext was given.
10975 if test "${with_xf86vmode_ext+set}" = set; then
10976 withval="$with_xf86vmode_ext"
10977 with_xf86vmode="$withval"; with_xf86vmode_req="$withval"
10983 case "$with_xf86vmode" in
10988 echo "$as_me:$LINENO: checking for xf86vmode headers" >&5
10989 echo $ECHO_N "checking for xf86vmode headers... $ECHO_C" >&6
10990 d=$with_xf86vmode/include
10991 if test -d $d; then
10992 X_CFLAGS="-I$d $X_CFLAGS"
10993 echo "$as_me:$LINENO: result: $d" >&5
10994 echo "${ECHO_T}$d" >&6
10996 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10997 echo "${ECHO_T}not found ($d: no such directory)" >&6
11000 echo "$as_me:$LINENO: checking for xf86vmode libs" >&5
11001 echo $ECHO_N "checking for xf86vmode libs... $ECHO_C" >&6
11002 d=$with_xf86vmode/lib
11003 if test -d $d; then
11004 X_LIBS="-L$d $X_LIBS"
11005 echo "$as_me:$LINENO: result: $d" >&5
11006 echo "${ECHO_T}$d" >&6
11008 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11009 echo "${ECHO_T}not found ($d: no such directory)" >&6
11012 # replace the directory string with "yes".
11013 with_xf86vmode_req="yes"
11014 with_xf86vmode=$with_xf86vmode_req
11019 echo "error: argument to --with-xf86vmode-ext must be \"yes\", \"no\", or a directory."
11020 echo " If it is a directory, then \`DIR/include' will be added to"
11021 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11029 if test "$with_xf86vmode" = yes; then
11031 # first check for xf86vmode.h
11033 ac_save_CPPFLAGS="$CPPFLAGS"
11034 if test \! -z "$includedir" ; then
11035 CPPFLAGS="$CPPFLAGS -I$includedir"
11037 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11038 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
11039 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
11040 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
11043 cat >conftest.$ac_ext <<_ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11049 #include <X11/Xlib.h>
11051 #include <X11/extensions/xf86vmode.h>
11053 rm -f conftest.$ac_objext
11054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11055 (eval $ac_compile) 2>conftest.er1
11057 grep -v '^ *+' conftest.er1 >conftest.err
11059 cat conftest.err >&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } &&
11062 { ac_try='test -z "$ac_c_werror_flag"
11063 || test ! -s conftest.err'
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; } &&
11069 { ac_try='test -s conftest.$ac_objext'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }; then
11075 ac_cv_header_X11_extensions_xf86vmode_h=yes
11077 echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11080 ac_cv_header_X11_extensions_xf86vmode_h=no
11082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11084 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
11085 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
11086 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
11091 CPPFLAGS="$ac_save_CPPFLAGS"
11093 # if that succeeded, then check for the -lXxf86vm
11094 if test "$have_xf86vmode" = yes; then
11097 ac_save_CPPFLAGS="$CPPFLAGS"
11098 ac_save_LDFLAGS="$LDFLAGS"
11099 # ac_save_LIBS="$LIBS"
11101 if test \! -z "$includedir" ; then
11102 CPPFLAGS="$CPPFLAGS -I$includedir"
11104 # note: $X_CFLAGS includes $x_includes
11105 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11107 if test \! -z "$libdir" ; then
11108 LDFLAGS="$LDFLAGS -L$libdir"
11110 # note: $X_LIBS includes $x_libraries
11111 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11113 echo "$as_me:$LINENO: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
11114 echo $ECHO_N "checking for XF86VidModeGetViewPort in -lXxf86vm... $ECHO_C" >&6
11115 if test "${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+set}" = set; then
11116 echo $ECHO_N "(cached) $ECHO_C" >&6
11118 ac_check_lib_save_LIBS=$LIBS
11119 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11120 cat >conftest.$ac_ext <<_ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11127 /* Override any gcc2 internal prototype to avoid an error. */
11131 /* We use char because int might match the return type of a gcc2
11132 builtin and then its argument prototype would still apply. */
11133 char XF86VidModeGetViewPort ();
11137 XF86VidModeGetViewPort ();
11142 rm -f conftest.$ac_objext conftest$ac_exeext
11143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11144 (eval $ac_link) 2>conftest.er1
11146 grep -v '^ *+' conftest.er1 >conftest.err
11148 cat conftest.err >&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); } &&
11151 { ac_try='test -z "$ac_c_werror_flag"
11152 || test ! -s conftest.err'
11153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11154 (eval $ac_try) 2>&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; } &&
11158 { ac_try='test -s conftest$ac_exeext'
11159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160 (eval $ac_try) 2>&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; }; then
11164 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
11166 echo "$as_me: failed program was:" >&5
11167 sed 's/^/| /' conftest.$ac_ext >&5
11169 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=no
11171 rm -f conftest.err conftest.$ac_objext \
11172 conftest$ac_exeext conftest.$ac_ext
11173 LIBS=$ac_check_lib_save_LIBS
11175 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&5
11176 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6
11177 if test $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort = yes; then
11178 have_xf86vmode=yes;
11179 VIDMODE_LIBS="-lXxf86vm";
11180 SAVER_LIBS="$SAVER_LIBS $VIDMODE_LIBS"
11185 CPPFLAGS="$ac_save_CPPFLAGS"
11186 LDFLAGS="$ac_save_LDFLAGS"
11187 # LIBS="$ac_save_LIBS"
11191 # if that succeeded, then we've really got it.
11192 if test "$have_xf86vmode" = yes; then
11193 cat >>confdefs.h <<\_ACEOF
11194 #define HAVE_XF86VMODE 1
11199 elif test "$with_xf86vmode" != no; then
11200 echo "error: must be yes or no: --with-xf86vmode-ext=$with_xf86vmode"
11205 ###############################################################################
11207 # Check for the XF86VMODE server extension (for gamma fading.)
11209 ###############################################################################
11212 have_xf86gamma_ramp=no
11213 with_xf86gamma_req=unspecified
11215 # Check whether --with-xf86gamma-ext or --without-xf86gamma-ext was given.
11216 if test "${with_xf86gamma_ext+set}" = set; then
11217 withval="$with_xf86gamma_ext"
11218 with_xf86gamma="$withval"; with_xf86gamma_req="$withval"
11224 case "$with_xf86gamma" in
11229 echo "$as_me:$LINENO: checking for xf86gamma headers" >&5
11230 echo $ECHO_N "checking for xf86gamma headers... $ECHO_C" >&6
11231 d=$with_xf86gamma/include
11232 if test -d $d; then
11233 X_CFLAGS="-I$d $X_CFLAGS"
11234 echo "$as_me:$LINENO: result: $d" >&5
11235 echo "${ECHO_T}$d" >&6
11237 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11238 echo "${ECHO_T}not found ($d: no such directory)" >&6
11241 echo "$as_me:$LINENO: checking for xf86gamma libs" >&5
11242 echo $ECHO_N "checking for xf86gamma libs... $ECHO_C" >&6
11243 d=$with_xf86gamma/lib
11244 if test -d $d; then
11245 X_LIBS="-L$d $X_LIBS"
11246 echo "$as_me:$LINENO: result: $d" >&5
11247 echo "${ECHO_T}$d" >&6
11249 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11250 echo "${ECHO_T}not found ($d: no such directory)" >&6
11253 # replace the directory string with "yes".
11254 with_xf86gamma_req="yes"
11255 with_xf86gamma=$with_xf86gamma_req
11260 echo "error: argument to --with-xf86gamma-ext must be \"yes\", \"no\", or a directory."
11261 echo " If it is a directory, then \`DIR/include' will be added to"
11262 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11268 if test "$with_xf86gamma" = yes; then
11270 # first check for xf86vmode.h, if we haven't already
11271 if test "$have_xf86vmode" = yes; then
11275 ac_save_CPPFLAGS="$CPPFLAGS"
11276 if test \! -z "$includedir" ; then
11277 CPPFLAGS="$CPPFLAGS -I$includedir"
11279 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11280 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
11281 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
11282 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 cat >conftest.$ac_ext <<_ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11291 #include <X11/Xlib.h>
11293 #include <X11/extensions/xf86vmode.h>
11295 rm -f conftest.$ac_objext
11296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11297 (eval $ac_compile) 2>conftest.er1
11299 grep -v '^ *+' conftest.er1 >conftest.err
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try='test -z "$ac_c_werror_flag"
11305 || test ! -s conftest.err'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; } &&
11311 { ac_try='test -s conftest.$ac_objext'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; }; then
11317 ac_cv_header_X11_extensions_xf86vmode_h=yes
11319 echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.$ac_ext >&5
11322 ac_cv_header_X11_extensions_xf86vmode_h=no
11324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11326 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
11327 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
11328 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
11333 CPPFLAGS="$ac_save_CPPFLAGS"
11336 # if that succeeded, then check for the -lXxf86vm
11337 if test "$have_xf86gamma" = yes; then
11340 ac_save_CPPFLAGS="$CPPFLAGS"
11341 ac_save_LDFLAGS="$LDFLAGS"
11342 # ac_save_LIBS="$LIBS"
11344 if test \! -z "$includedir" ; then
11345 CPPFLAGS="$CPPFLAGS -I$includedir"
11347 # note: $X_CFLAGS includes $x_includes
11348 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11350 if test \! -z "$libdir" ; then
11351 LDFLAGS="$LDFLAGS -L$libdir"
11353 # note: $X_LIBS includes $x_libraries
11354 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11356 echo "$as_me:$LINENO: checking for XF86VidModeSetGamma in -lXxf86vm" >&5
11357 echo $ECHO_N "checking for XF86VidModeSetGamma in -lXxf86vm... $ECHO_C" >&6
11358 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGamma+set}" = set; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
11361 ac_check_lib_save_LIBS=$LIBS
11362 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11363 cat >conftest.$ac_ext <<_ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11370 /* Override any gcc2 internal prototype to avoid an error. */
11374 /* We use char because int might match the return type of a gcc2
11375 builtin and then its argument prototype would still apply. */
11376 char XF86VidModeSetGamma ();
11380 XF86VidModeSetGamma ();
11385 rm -f conftest.$ac_objext conftest$ac_exeext
11386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11387 (eval $ac_link) 2>conftest.er1
11389 grep -v '^ *+' conftest.er1 >conftest.err
11391 cat conftest.err >&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } &&
11394 { ac_try='test -z "$ac_c_werror_flag"
11395 || test ! -s conftest.err'
11396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; } &&
11401 { ac_try='test -s conftest$ac_exeext'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; }; then
11407 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=yes
11409 echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11412 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=no
11414 rm -f conftest.err conftest.$ac_objext \
11415 conftest$ac_exeext conftest.$ac_ext
11416 LIBS=$ac_check_lib_save_LIBS
11418 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&5
11419 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&6
11420 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma = yes; then
11426 CPPFLAGS="$ac_save_CPPFLAGS"
11427 LDFLAGS="$ac_save_LDFLAGS"
11428 # LIBS="$ac_save_LIBS"
11432 # check for the Ramp versions of the functions too.
11433 if test "$have_xf86gamma" = yes; then
11434 have_xf86gamma_ramp=no
11436 ac_save_CPPFLAGS="$CPPFLAGS"
11437 ac_save_LDFLAGS="$LDFLAGS"
11438 # ac_save_LIBS="$LIBS"
11440 if test \! -z "$includedir" ; then
11441 CPPFLAGS="$CPPFLAGS -I$includedir"
11443 # note: $X_CFLAGS includes $x_includes
11444 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11446 if test \! -z "$libdir" ; then
11447 LDFLAGS="$LDFLAGS -L$libdir"
11449 # note: $X_LIBS includes $x_libraries
11450 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11452 echo "$as_me:$LINENO: checking for XF86VidModeSetGammaRamp in -lXxf86vm" >&5
11453 echo $ECHO_N "checking for XF86VidModeSetGammaRamp in -lXxf86vm... $ECHO_C" >&6
11454 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp+set}" = set; then
11455 echo $ECHO_N "(cached) $ECHO_C" >&6
11457 ac_check_lib_save_LIBS=$LIBS
11458 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
11459 cat >conftest.$ac_ext <<_ACEOF
11462 cat confdefs.h >>conftest.$ac_ext
11463 cat >>conftest.$ac_ext <<_ACEOF
11464 /* end confdefs.h. */
11466 /* Override any gcc2 internal prototype to avoid an error. */
11470 /* We use char because int might match the return type of a gcc2
11471 builtin and then its argument prototype would still apply. */
11472 char XF86VidModeSetGammaRamp ();
11476 XF86VidModeSetGammaRamp ();
11481 rm -f conftest.$ac_objext conftest$ac_exeext
11482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11483 (eval $ac_link) 2>conftest.er1
11485 grep -v '^ *+' conftest.er1 >conftest.err
11487 cat conftest.err >&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
11490 { ac_try='test -z "$ac_c_werror_flag"
11491 || test ! -s conftest.err'
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; } &&
11497 { ac_try='test -s conftest$ac_exeext'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; }; then
11503 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=yes
11505 echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11508 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=no
11510 rm -f conftest.err conftest.$ac_objext \
11511 conftest$ac_exeext conftest.$ac_ext
11512 LIBS=$ac_check_lib_save_LIBS
11514 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&5
11515 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&6
11516 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp = yes; then
11517 have_xf86gamma_ramp=yes
11522 CPPFLAGS="$ac_save_CPPFLAGS"
11523 LDFLAGS="$ac_save_LDFLAGS"
11524 # LIBS="$ac_save_LIBS"
11528 # if those tests succeeded, then we've really got the functions.
11529 if test "$have_xf86gamma" = yes; then
11530 cat >>confdefs.h <<\_ACEOF
11531 #define HAVE_XF86VMODE_GAMMA 1
11536 if test "$have_xf86gamma_ramp" = yes; then
11537 cat >>confdefs.h <<\_ACEOF
11538 #define HAVE_XF86VMODE_GAMMA_RAMP 1
11543 # pull in the lib, if we haven't already
11544 if test "$have_xf86gamma" = yes -a "$have_xf86vmode" = no; then
11545 SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
11548 elif test "$with_xf86gamma" != no; then
11549 echo "error: must be yes or no: --with-xf86gamma-ext=$with_xf86vmode"
11554 ###############################################################################
11556 # Check for the RANDR (Resize and Rotate) server extension.
11558 # We need this to detect when the resolution of the desktop
11559 # has changed out from under us (this is a newer, different
11560 # mechanism than the XF86VMODE virtual viewports.)
11562 ###############################################################################
11565 with_randr_req=unspecified
11567 # Check whether --with-randr-ext or --without-randr-ext was given.
11568 if test "${with_randr_ext+set}" = set; then
11569 withval="$with_randr_ext"
11570 with_randr="$withval"; with_randr_req="$withval"
11576 case "$with_randr" in
11581 echo "$as_me:$LINENO: checking for RANDR headers" >&5
11582 echo $ECHO_N "checking for RANDR headers... $ECHO_C" >&6
11583 d=$with_randr/include
11584 if test -d $d; then
11585 X_CFLAGS="-I$d $X_CFLAGS"
11586 echo "$as_me:$LINENO: result: $d" >&5
11587 echo "${ECHO_T}$d" >&6
11589 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11590 echo "${ECHO_T}not found ($d: no such directory)" >&6
11593 echo "$as_me:$LINENO: checking for RANDR libs" >&5
11594 echo $ECHO_N "checking for RANDR libs... $ECHO_C" >&6
11596 if test -d $d; then
11597 X_LIBS="-L$d $X_LIBS"
11598 echo "$as_me:$LINENO: result: $d" >&5
11599 echo "${ECHO_T}$d" >&6
11601 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11602 echo "${ECHO_T}not found ($d: no such directory)" >&6
11605 # replace the directory string with "yes".
11606 with_randr_req="yes"
11607 with_randr=$with_randr_req
11612 echo "error: argument to --with-randr-ext must be \"yes\", \"no\", or a directory."
11613 echo " If it is a directory, then \`DIR/include' will be added to"
11614 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11620 if test "$with_randr" = yes; then
11622 # first check for Randr.h
11624 ac_save_CPPFLAGS="$CPPFLAGS"
11625 if test \! -z "$includedir" ; then
11626 CPPFLAGS="$CPPFLAGS -I$includedir"
11628 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11629 echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
11630 echo $ECHO_N "checking for X11/extensions/Xrandr.h... $ECHO_C" >&6
11631 if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 cat >conftest.$ac_ext <<_ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h. */
11640 #include <X11/Xlib.h>
11642 #include <X11/extensions/Xrandr.h>
11644 rm -f conftest.$ac_objext
11645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11646 (eval $ac_compile) 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_objext'
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_header_X11_extensions_Xrandr_h=yes
11668 echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11671 ac_cv_header_X11_extensions_Xrandr_h=no
11673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11675 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
11676 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrandr_h" >&6
11677 if test $ac_cv_header_X11_extensions_Xrandr_h = yes; then
11682 CPPFLAGS="$ac_save_CPPFLAGS"
11684 # if that succeeded, then check for the XRR code in the libraries
11685 if test "$have_randr" = yes; then
11687 # RANDR probably needs -lXrender
11690 ac_save_CPPFLAGS="$CPPFLAGS"
11691 ac_save_LDFLAGS="$LDFLAGS"
11692 # ac_save_LIBS="$LIBS"
11694 if test \! -z "$includedir" ; then
11695 CPPFLAGS="$CPPFLAGS -I$includedir"
11697 # note: $X_CFLAGS includes $x_includes
11698 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11700 if test \! -z "$libdir" ; then
11701 LDFLAGS="$LDFLAGS -L$libdir"
11703 # note: $X_LIBS includes $x_libraries
11704 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11706 echo "$as_me:$LINENO: checking for XRenderSetSubpixelOrder in -lXrender" >&5
11707 echo $ECHO_N "checking for XRenderSetSubpixelOrder in -lXrender... $ECHO_C" >&6
11708 if test "${ac_cv_lib_Xrender_XRenderSetSubpixelOrder+set}" = set; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11711 ac_check_lib_save_LIBS=$LIBS
11712 LIBS="-lXrender -lXext -lX11 $LIBS"
11713 cat >conftest.$ac_ext <<_ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11720 /* Override any gcc2 internal prototype to avoid an error. */
11724 /* We use char because int might match the return type of a gcc2
11725 builtin and then its argument prototype would still apply. */
11726 char XRenderSetSubpixelOrder ();
11730 XRenderSetSubpixelOrder ();
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11737 (eval $ac_link) 2>conftest.er1
11739 grep -v '^ *+' conftest.er1 >conftest.err
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } &&
11744 { ac_try='test -z "$ac_c_werror_flag"
11745 || test ! -s conftest.err'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; } &&
11751 { ac_try='test -s conftest$ac_exeext'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; }; then
11757 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=yes
11759 echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11762 ac_cv_lib_Xrender_XRenderSetSubpixelOrder=no
11764 rm -f conftest.err conftest.$ac_objext \
11765 conftest$ac_exeext conftest.$ac_ext
11766 LIBS=$ac_check_lib_save_LIBS
11768 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&5
11769 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetSubpixelOrder" >&6
11770 if test $ac_cv_lib_Xrender_XRenderSetSubpixelOrder = yes; then
11771 xrender_libs="-lXrender"
11776 CPPFLAGS="$ac_save_CPPFLAGS"
11777 LDFLAGS="$ac_save_LDFLAGS"
11778 # LIBS="$ac_save_LIBS"
11781 # first look for RANDR in -lXext
11784 ac_save_CPPFLAGS="$CPPFLAGS"
11785 ac_save_LDFLAGS="$LDFLAGS"
11786 # ac_save_LIBS="$LIBS"
11788 if test \! -z "$includedir" ; then
11789 CPPFLAGS="$CPPFLAGS -I$includedir"
11791 # note: $X_CFLAGS includes $x_includes
11792 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11794 if test \! -z "$libdir" ; then
11795 LDFLAGS="$LDFLAGS -L$libdir"
11797 # note: $X_LIBS includes $x_libraries
11798 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11800 echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXext" >&5
11801 echo $ECHO_N "checking for XRRGetScreenInfo in -lXext... $ECHO_C" >&6
11802 if test "${ac_cv_lib_Xext_XRRGetScreenInfo+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 ac_check_lib_save_LIBS=$LIBS
11806 LIBS="-lXext $xrender_libs -lXext -lX11 $LIBS"
11807 cat >conftest.$ac_ext <<_ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h. */
11814 /* Override any gcc2 internal prototype to avoid an error. */
11818 /* We use char because int might match the return type of a gcc2
11819 builtin and then its argument prototype would still apply. */
11820 char XRRGetScreenInfo ();
11824 XRRGetScreenInfo ();
11829 rm -f conftest.$ac_objext conftest$ac_exeext
11830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11831 (eval $ac_link) 2>conftest.er1
11833 grep -v '^ *+' conftest.er1 >conftest.err
11835 cat conftest.err >&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } &&
11838 { ac_try='test -z "$ac_c_werror_flag"
11839 || test ! -s conftest.err'
11840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841 (eval $ac_try) 2>&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; } &&
11845 { ac_try='test -s conftest$ac_exeext'
11846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11847 (eval $ac_try) 2>&5
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); }; }; then
11851 ac_cv_lib_Xext_XRRGetScreenInfo=yes
11853 echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11856 ac_cv_lib_Xext_XRRGetScreenInfo=no
11858 rm -f conftest.err conftest.$ac_objext \
11859 conftest$ac_exeext conftest.$ac_ext
11860 LIBS=$ac_check_lib_save_LIBS
11862 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XRRGetScreenInfo" >&5
11863 echo "${ECHO_T}$ac_cv_lib_Xext_XRRGetScreenInfo" >&6
11864 if test $ac_cv_lib_Xext_XRRGetScreenInfo = yes; then
11865 have_randr=yes; SAVER_LIBS="$SAVER_LIBS $xrender_libs"
11870 CPPFLAGS="$ac_save_CPPFLAGS"
11871 LDFLAGS="$ac_save_LDFLAGS"
11872 # LIBS="$ac_save_LIBS"
11875 # if that failed, look in -lXrandr
11876 if test "$have_randr" = no; then
11878 ac_save_CPPFLAGS="$CPPFLAGS"
11879 ac_save_LDFLAGS="$LDFLAGS"
11880 # ac_save_LIBS="$LIBS"
11882 if test \! -z "$includedir" ; then
11883 CPPFLAGS="$CPPFLAGS -I$includedir"
11885 # note: $X_CFLAGS includes $x_includes
11886 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11888 if test \! -z "$libdir" ; then
11889 LDFLAGS="$LDFLAGS -L$libdir"
11891 # note: $X_LIBS includes $x_libraries
11892 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11894 echo "$as_me:$LINENO: checking for XRRGetScreenInfo in -lXrandr" >&5
11895 echo $ECHO_N "checking for XRRGetScreenInfo in -lXrandr... $ECHO_C" >&6
11896 if test "${ac_cv_lib_Xrandr_XRRGetScreenInfo+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 ac_check_lib_save_LIBS=$LIBS
11900 LIBS="-lXrandr $xrender_libs -lXext -lX11 $LIBS"
11901 cat >conftest.$ac_ext <<_ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11908 /* Override any gcc2 internal prototype to avoid an error. */
11912 /* We use char because int might match the return type of a gcc2
11913 builtin and then its argument prototype would still apply. */
11914 char XRRGetScreenInfo ();
11918 XRRGetScreenInfo ();
11923 rm -f conftest.$ac_objext conftest$ac_exeext
11924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11925 (eval $ac_link) 2>conftest.er1
11927 grep -v '^ *+' conftest.er1 >conftest.err
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try='test -z "$ac_c_werror_flag"
11933 || test ! -s conftest.err'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; } &&
11939 { ac_try='test -s conftest$ac_exeext'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; }; then
11945 ac_cv_lib_Xrandr_XRRGetScreenInfo=yes
11947 echo "$as_me: failed program was:" >&5
11948 sed 's/^/| /' conftest.$ac_ext >&5
11950 ac_cv_lib_Xrandr_XRRGetScreenInfo=no
11952 rm -f conftest.err conftest.$ac_objext \
11953 conftest$ac_exeext conftest.$ac_ext
11954 LIBS=$ac_check_lib_save_LIBS
11956 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRGetScreenInfo" >&5
11957 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRGetScreenInfo" >&6
11958 if test $ac_cv_lib_Xrandr_XRRGetScreenInfo = yes; then
11959 have_randr=yes; SAVER_LIBS="$SAVER_LIBS -lXrandr $xrender_libs"
11964 CPPFLAGS="$ac_save_CPPFLAGS"
11965 LDFLAGS="$ac_save_LDFLAGS"
11966 # LIBS="$ac_save_LIBS"
11971 # if that succeeded, then we've really got it.
11972 if test "$have_randr" = yes; then
11973 cat >>confdefs.h <<\_ACEOF
11974 #define HAVE_RANDR 1
11979 elif test "$with_randr" != no; then
11980 echo "error: must be yes or no: --with-randr-ext=$with_randr"
11985 ###############################################################################
11987 # Check for XF86MiscSetGrabKeysState (but only bother if we are already
11988 # using other XF86 stuff.)
11990 ###############################################################################
11992 have_xf86miscsetgrabkeysstate=no
11993 if test "$have_xf86gamma" = yes -o "$have_xf86vmode" = yes; then
11995 ac_save_CPPFLAGS="$CPPFLAGS"
11996 ac_save_LDFLAGS="$LDFLAGS"
11997 # ac_save_LIBS="$LIBS"
11999 if test \! -z "$includedir" ; then
12000 CPPFLAGS="$CPPFLAGS -I$includedir"
12002 # note: $X_CFLAGS includes $x_includes
12003 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12005 if test \! -z "$libdir" ; then
12006 LDFLAGS="$LDFLAGS -L$libdir"
12008 # note: $X_LIBS includes $x_libraries
12009 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12011 echo "$as_me:$LINENO: checking for XF86MiscSetGrabKeysState in -lXxf86misc" >&5
12012 echo $ECHO_N "checking for XF86MiscSetGrabKeysState in -lXxf86misc... $ECHO_C" >&6
12013 if test "${ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState+set}" = set; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12016 ac_check_lib_save_LIBS=$LIBS
12017 LIBS="-lXxf86misc -lXext -lX11 $LIBS"
12018 cat >conftest.$ac_ext <<_ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12025 /* Override any gcc2 internal prototype to avoid an error. */
12029 /* We use char because int might match the return type of a gcc2
12030 builtin and then its argument prototype would still apply. */
12031 char XF86MiscSetGrabKeysState ();
12035 XF86MiscSetGrabKeysState ();
12040 rm -f conftest.$ac_objext conftest$ac_exeext
12041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12042 (eval $ac_link) 2>conftest.er1
12044 grep -v '^ *+' conftest.er1 >conftest.err
12046 cat conftest.err >&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); } &&
12049 { ac_try='test -z "$ac_c_werror_flag"
12050 || test ! -s conftest.err'
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; } &&
12056 { ac_try='test -s conftest$ac_exeext'
12057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058 (eval $ac_try) 2>&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; }; then
12062 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=yes
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=no
12069 rm -f conftest.err conftest.$ac_objext \
12070 conftest$ac_exeext conftest.$ac_ext
12071 LIBS=$ac_check_lib_save_LIBS
12073 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&5
12074 echo "${ECHO_T}$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&6
12075 if test $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState = yes; then
12076 have_xf86miscsetgrabkeysstate=yes
12081 CPPFLAGS="$ac_save_CPPFLAGS"
12082 LDFLAGS="$ac_save_LDFLAGS"
12083 # LIBS="$ac_save_LIBS"
12085 if test "$have_xf86miscsetgrabkeysstate" = yes ; then
12086 SAVER_LIBS="$SAVER_LIBS -lXxf86misc"
12087 cat >>confdefs.h <<\_ACEOF
12088 #define HAVE_XF86MISCSETGRABKEYSSTATE 1
12095 ###############################################################################
12097 # Check for HP XHPDisableReset and XHPEnableReset.
12099 ###############################################################################
12101 echo "$as_me:$LINENO: checking for XHPDisableReset in X11/XHPlib.h" >&5
12102 echo $ECHO_N "checking for XHPDisableReset in X11/XHPlib.h... $ECHO_C" >&6
12104 ac_save_CPPFLAGS="$CPPFLAGS"
12105 if test \! -z "$includedir" ; then
12106 CPPFLAGS="$CPPFLAGS -I$includedir"
12108 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12109 cat >conftest.$ac_ext <<_ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12115 #include <X11/XHPlib.h>
12118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12119 $EGREP "XHPDisableReset" >/dev/null 2>&1; then
12120 cat >>confdefs.h <<\_ACEOF
12121 #define HAVE_XHPDISABLERESET 1
12124 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
12125 echo "$as_me:$LINENO: result: yes" >&5
12126 echo "${ECHO_T}yes" >&6
12128 echo "$as_me:$LINENO: result: no" >&5
12129 echo "${ECHO_T}no" >&6
12133 CPPFLAGS="$ac_save_CPPFLAGS"
12136 ###############################################################################
12138 # Check for /proc/interrupts.
12140 ###############################################################################
12142 have_proc_interrupts=no
12143 with_proc_interrupts_req=unspecified
12145 # Check whether --with-proc-interrupts or --without-proc-interrupts was given.
12146 if test "${with_proc_interrupts+set}" = set; then
12147 withval="$with_proc_interrupts"
12148 with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
12150 with_proc_interrupts=yes
12153 if test "$with_proc_interrupts" = yes; then
12155 echo "$as_me:$LINENO: checking whether /proc/interrupts contains keyboard data" >&5
12156 echo $ECHO_N "checking whether /proc/interrupts contains keyboard data... $ECHO_C" >&6
12157 if test "${ac_cv_have_proc_interrupts+set}" = set; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12160 ac_cv_have_proc_interrupts=no
12161 if grep 'keyboard\|i8042' /proc/interrupts >/dev/null 2>&1 ; then
12162 ac_cv_have_proc_interrupts=yes
12166 echo "$as_me:$LINENO: result: $ac_cv_have_proc_interrupts" >&5
12167 echo "${ECHO_T}$ac_cv_have_proc_interrupts" >&6
12168 have_proc_interrupts=$ac_cv_have_proc_interrupts
12170 if test "$have_proc_interrupts" = yes; then
12171 cat >>confdefs.h <<\_ACEOF
12172 #define HAVE_PROC_INTERRUPTS 1
12177 elif test "$with_proc_interrupts" != no; then
12178 echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
12183 ###############################################################################
12185 # The --enable-locking option
12187 ###############################################################################
12189 # Check whether --enable-locking or --disable-locking was given.
12190 if test "${enable_locking+set}" = set; then
12191 enableval="$enable_locking"
12192 enable_locking="$enableval"
12196 if test "$enable_locking" = yes; then
12198 elif test "$enable_locking" = no; then
12199 cat >>confdefs.h <<\_ACEOF
12200 #define NO_LOCKING 1
12204 echo "error: must be yes or no: --enable-locking=$enable_locking"
12208 # We can't lock on MacOS X, so don't even bother compiling in support for it.
12210 if test "$ac_macosx" = yes; then
12211 if test "$enable_locking" = yes; then
12212 echo "$as_me:$LINENO: result: locking disabled: it doesn't work on MacOS X" >&5
12213 echo "${ECHO_T}locking disabled: it doesn't work on MacOS X" >&6
12215 cat >>confdefs.h <<\_ACEOF
12216 #define NO_LOCKING 1
12223 ###############################################################################
12225 # The --enable-vt-locking option
12227 ###############################################################################
12229 #ac_vt_lockswitch=no
12230 #AC_ARG_ENABLE(vt-locking,[
12231 # --enable-vt-locking Compile in support for locking Virtual Terminals.
12232 # This is the default if the system supports it, and
12233 # if locking support is included (--enable-locking.)
12234 # --disable-vt-locking Do not allow locking of VTs, even if locking is
12236 # [enable_vt_locking="$enableval"],[enable_vt_locking=yes])
12237 #if test "$enable_vt_locking" = yes; then
12239 # AC_CACHE_CHECK([for the VT_LOCKSWITCH ioctl], ac_cv_vt_lockswitch,
12240 # [AC_TRY_COMPILE([#include <fcntl.h>
12241 # #include <sys/ioctl.h>
12242 # #include <sys/vt.h>],
12243 # [int x = VT_LOCKSWITCH; int y = VT_UNLOCKSWITCH;],
12244 # [ac_cv_vt_lockswitch=yes],
12245 # [ac_cv_vt_lockswitch=no])])
12246 # ac_vt_lockswitch=$ac_cv_vt_lockswitch
12248 #elif test "$enable_vt_locking" = no; then
12251 # echo "error: must be yes or no: --enable-vt-locking=$enable_vt_locking"
12255 #if test "$ac_vt_lockswitch" = yes; then
12256 # AC_DEFINE(HAVE_VT_LOCKSWITCH)
12257 # # the VT_LOCKSWITCH ioctl can only be used when running as root.
12258 # # #### but it doesn't work yet, so don't worry about that for now.
12263 ###############################################################################
12267 ###############################################################################
12271 # Solaris systems tend to come with PAM misconfigured.
12272 # Don't build it by default, even if the headers exist.
12273 with_pam_default=no
12276 # Default to building PAM support on all other systems, if it exists.
12277 with_pam_default=yes
12282 with_pam_req=unspecified
12285 # Check whether --with-pam or --without-pam was given.
12286 if test "${with_pam+set}" = set; then
12287 withval="$with_pam"
12288 with_pam="$withval"; with_pam_req="$withval"
12290 with_pam=$with_pam_default
12294 # Check whether --with-pam_service_name or --without-pam_service_name was given.
12295 if test "${with_pam_service_name+set}" = set; then
12296 withval="$with_pam_service_name"
12297 pam_service_name="$withval"
12299 pam_service_name="xscreensaver"
12303 case "$with_pam" in
12308 echo "$as_me:$LINENO: checking for PAM headers" >&5
12309 echo $ECHO_N "checking for PAM headers... $ECHO_C" >&6
12310 d=$with_pam/include
12311 if test -d $d; then
12312 X_CFLAGS="-I$d $X_CFLAGS"
12313 echo "$as_me:$LINENO: result: $d" >&5
12314 echo "${ECHO_T}$d" >&6
12316 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12317 echo "${ECHO_T}not found ($d: no such directory)" >&6
12320 echo "$as_me:$LINENO: checking for PAM libs" >&5
12321 echo $ECHO_N "checking for PAM libs... $ECHO_C" >&6
12323 if test -d $d; then
12324 X_LIBS="-L$d $X_LIBS"
12325 echo "$as_me:$LINENO: result: $d" >&5
12326 echo "${ECHO_T}$d" >&6
12328 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12329 echo "${ECHO_T}not found ($d: no such directory)" >&6
12332 # replace the directory string with "yes".
12334 with_pam=$with_pam_req
12339 echo "error: argument to --with-pam must be \"yes\", \"no\", or a directory."
12340 echo " If it is a directory, then \`DIR/include' will be added to"
12341 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12347 if test "$enable_locking" = yes -a "$with_pam" = yes; then
12348 echo "$as_me:$LINENO: checking for PAM" >&5
12349 echo $ECHO_N "checking for PAM... $ECHO_C" >&6
12350 if test "${ac_cv_pam+set}" = set; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12354 ac_save_CPPFLAGS="$CPPFLAGS"
12355 if test \! -z "$includedir" ; then
12356 CPPFLAGS="$CPPFLAGS -I$includedir"
12358 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12359 cat >conftest.$ac_ext <<_ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12365 #include <security/pam_appl.h>
12374 rm -f conftest.$ac_objext
12375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12376 (eval $ac_compile) 2>conftest.er1
12378 grep -v '^ *+' conftest.er1 >conftest.err
12380 cat conftest.err >&5
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } &&
12383 { ac_try='test -z "$ac_c_werror_flag"
12384 || test ! -s conftest.err'
12385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; } &&
12390 { ac_try='test -s conftest.$ac_objext'
12391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392 (eval $ac_try) 2>&5
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; }; then
12398 echo "$as_me: failed program was:" >&5
12399 sed 's/^/| /' conftest.$ac_ext >&5
12403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12404 CPPFLAGS="$ac_save_CPPFLAGS"
12406 echo "$as_me:$LINENO: result: $ac_cv_pam" >&5
12407 echo "${ECHO_T}$ac_cv_pam" >&6
12408 if test "$ac_cv_pam" = yes ; then
12410 cat >>confdefs.h <<\_ACEOF
12414 cat >>confdefs.h <<_ACEOF
12415 #define PAM_SERVICE_NAME "$pam_service_name"
12419 PASSWD_LIBS="${PASSWD_LIBS} -lpam"
12421 # libpam typically requires dlopen and dlsym. On FreeBSD,
12422 # those are in libc. On Linux and Solaris, they're in libdl.
12423 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12424 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12425 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12428 ac_check_lib_save_LIBS=$LIBS
12430 cat >conftest.$ac_ext <<_ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h. */
12437 /* Override any gcc2 internal prototype to avoid an error. */
12441 /* We use char because int might match the return type of a gcc2
12442 builtin and then its argument prototype would still apply. */
12452 rm -f conftest.$ac_objext conftest$ac_exeext
12453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12454 (eval $ac_link) 2>conftest.er1
12456 grep -v '^ *+' conftest.er1 >conftest.err
12458 cat conftest.err >&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } &&
12461 { ac_try='test -z "$ac_c_werror_flag"
12462 || test ! -s conftest.err'
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; } &&
12468 { ac_try='test -s conftest$ac_exeext'
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; }; then
12474 ac_cv_lib_dl_dlopen=yes
12476 echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12479 ac_cv_lib_dl_dlopen=no
12481 rm -f conftest.err conftest.$ac_objext \
12482 conftest$ac_exeext conftest.$ac_ext
12483 LIBS=$ac_check_lib_save_LIBS
12485 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12486 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12487 if test $ac_cv_lib_dl_dlopen = yes; then
12488 PASSWD_LIBS="${PASSWD_LIBS} -ldl"
12492 # On Linux, sigtimedwait() is in libc; on Solaris, it's in librt.
12494 echo "$as_me:$LINENO: checking for sigtimedwait in -lc" >&5
12495 echo $ECHO_N "checking for sigtimedwait in -lc... $ECHO_C" >&6
12496 if test "${ac_cv_lib_c_sigtimedwait+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 ac_check_lib_save_LIBS=$LIBS
12501 cat >conftest.$ac_ext <<_ACEOF
12504 cat confdefs.h >>conftest.$ac_ext
12505 cat >>conftest.$ac_ext <<_ACEOF
12506 /* end confdefs.h. */
12508 /* Override any gcc2 internal prototype to avoid an error. */
12512 /* We use char because int might match the return type of a gcc2
12513 builtin and then its argument prototype would still apply. */
12514 char sigtimedwait ();
12523 rm -f conftest.$ac_objext conftest$ac_exeext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12525 (eval $ac_link) 2>conftest.er1
12527 grep -v '^ *+' conftest.er1 >conftest.err
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -z "$ac_c_werror_flag"
12533 || test ! -s conftest.err'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; } &&
12539 { ac_try='test -s conftest$ac_exeext'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545 ac_cv_lib_c_sigtimedwait=yes
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12550 ac_cv_lib_c_sigtimedwait=no
12552 rm -f conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
12554 LIBS=$ac_check_lib_save_LIBS
12556 echo "$as_me:$LINENO: result: $ac_cv_lib_c_sigtimedwait" >&5
12557 echo "${ECHO_T}$ac_cv_lib_c_sigtimedwait" >&6
12558 if test $ac_cv_lib_c_sigtimedwait = yes; then
12562 if test "$have_timedwait" = no ; then
12563 echo "$as_me:$LINENO: checking for sigtimedwait in -lrt" >&5
12564 echo $ECHO_N "checking for sigtimedwait in -lrt... $ECHO_C" >&6
12565 if test "${ac_cv_lib_rt_sigtimedwait+set}" = set; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12568 ac_check_lib_save_LIBS=$LIBS
12570 cat >conftest.$ac_ext <<_ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h. */
12577 /* Override any gcc2 internal prototype to avoid an error. */
12581 /* We use char because int might match the return type of a gcc2
12582 builtin and then its argument prototype would still apply. */
12583 char sigtimedwait ();
12592 rm -f conftest.$ac_objext conftest$ac_exeext
12593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12594 (eval $ac_link) 2>conftest.er1
12596 grep -v '^ *+' conftest.er1 >conftest.err
12598 cat conftest.err >&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
12601 { ac_try='test -z "$ac_c_werror_flag"
12602 || test ! -s conftest.err'
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; } &&
12608 { ac_try='test -s conftest$ac_exeext'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 ac_cv_lib_rt_sigtimedwait=yes
12616 echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12619 ac_cv_lib_rt_sigtimedwait=no
12621 rm -f conftest.err conftest.$ac_objext \
12622 conftest$ac_exeext conftest.$ac_ext
12623 LIBS=$ac_check_lib_save_LIBS
12625 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sigtimedwait" >&5
12626 echo "${ECHO_T}$ac_cv_lib_rt_sigtimedwait" >&6
12627 if test $ac_cv_lib_rt_sigtimedwait = yes; then
12628 PASSWD_LIBS="${PASSWD_LIBS} -lrt"
12633 echo "$as_me:$LINENO: checking how to call pam_strerror" >&5
12634 echo $ECHO_N "checking how to call pam_strerror... $ECHO_C" >&6
12635 if test "${ac_cv_pam_strerror_args+set}" = set; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12638 cat >conftest.$ac_ext <<_ACEOF
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h. */
12645 #include <stdlib.h>
12646 #include <security/pam_appl.h>
12650 pam_handle_t *pamh = 0;
12651 char *s = pam_strerror(pamh, PAM_SUCCESS);
12656 rm -f conftest.$ac_objext
12657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12658 (eval $ac_compile) 2>conftest.er1
12660 grep -v '^ *+' conftest.er1 >conftest.err
12662 cat conftest.err >&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } &&
12665 { ac_try='test -z "$ac_c_werror_flag"
12666 || test ! -s conftest.err'
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; } &&
12672 { ac_try='test -s conftest.$ac_objext'
12673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674 (eval $ac_try) 2>&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 ac_pam_strerror_args=2
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12683 cat >conftest.$ac_ext <<_ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h. */
12690 #include <stdlib.h>
12691 #include <security/pam_appl.h>
12696 pam_strerror(PAM_SUCCESS);
12701 rm -f conftest.$ac_objext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12703 (eval $ac_compile) 2>conftest.er1
12705 grep -v '^ *+' conftest.er1 >conftest.err
12707 cat conftest.err >&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } &&
12710 { ac_try='test -z "$ac_c_werror_flag"
12711 || test ! -s conftest.err'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; } &&
12717 { ac_try='test -s conftest.$ac_objext'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
12723 ac_pam_strerror_args=1
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12728 ac_pam_strerror_args=0
12730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12733 ac_cv_pam_strerror_args=$ac_pam_strerror_args
12736 ac_pam_strerror_args=$ac_cv_pam_strerror_args
12737 if test "$ac_pam_strerror_args" = 1 ; then
12738 echo "$as_me:$LINENO: result: one argument" >&5
12739 echo "${ECHO_T}one argument" >&6
12740 elif test "$ac_pam_strerror_args" = 2 ; then
12741 cat >>confdefs.h <<\_ACEOF
12742 #define PAM_STRERROR_TWO_ARGS 1
12745 echo "$as_me:$LINENO: result: two arguments" >&5
12746 echo "${ECHO_T}two arguments" >&6
12748 echo "$as_me:$LINENO: result: unknown" >&5
12749 echo "${ECHO_T}unknown" >&6
12755 ###############################################################################
12757 # Check for Kerberos.
12759 ###############################################################################
12763 with_kerberos_req=unspecified
12766 # Check whether --with-kerberos or --without-kerberos was given.
12767 if test "${with_kerberos+set}" = set; then
12768 withval="$with_kerberos"
12769 with_kerberos="$withval"; with_kerberos_req="$withval"
12775 case "$with_kerberos" in
12780 echo "$as_me:$LINENO: checking for Kerberos headers" >&5
12781 echo $ECHO_N "checking for Kerberos headers... $ECHO_C" >&6
12782 d=$with_kerberos/include
12783 if test -d $d; then
12784 X_CFLAGS="-I$d $X_CFLAGS"
12785 echo "$as_me:$LINENO: result: $d" >&5
12786 echo "${ECHO_T}$d" >&6
12788 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12789 echo "${ECHO_T}not found ($d: no such directory)" >&6
12792 echo "$as_me:$LINENO: checking for Kerberos libs" >&5
12793 echo $ECHO_N "checking for Kerberos libs... $ECHO_C" >&6
12794 d=$with_kerberos/lib
12795 if test -d $d; then
12796 X_LIBS="-L$d $X_LIBS"
12797 echo "$as_me:$LINENO: result: $d" >&5
12798 echo "${ECHO_T}$d" >&6
12800 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12801 echo "${ECHO_T}not found ($d: no such directory)" >&6
12804 # replace the directory string with "yes".
12805 with_kerberos_req="yes"
12806 with_kerberos=$with_kerberos_req
12811 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
12812 echo " If it is a directory, then \`DIR/include' will be added to"
12813 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12819 if test "$enable_locking" = yes -a "$with_kerberos" = yes; then
12820 echo "$as_me:$LINENO: checking for Kerberos 4" >&5
12821 echo $ECHO_N "checking for Kerberos 4... $ECHO_C" >&6
12822 if test "${ac_cv_kerberos+set}" = set; then
12823 echo $ECHO_N "(cached) $ECHO_C" >&6
12826 ac_save_CPPFLAGS="$CPPFLAGS"
12827 if test \! -z "$includedir" ; then
12828 CPPFLAGS="$CPPFLAGS -I$includedir"
12830 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12831 cat >conftest.$ac_ext <<_ACEOF
12834 cat confdefs.h >>conftest.$ac_ext
12835 cat >>conftest.$ac_ext <<_ACEOF
12836 /* end confdefs.h. */
12846 rm -f conftest.$ac_objext
12847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12848 (eval $ac_compile) 2>conftest.er1
12850 grep -v '^ *+' conftest.er1 >conftest.err
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } &&
12855 { ac_try='test -z "$ac_c_werror_flag"
12856 || test ! -s conftest.err'
12857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; } &&
12862 { ac_try='test -s conftest.$ac_objext'
12863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12864 (eval $ac_try) 2>&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; }; then
12870 echo "$as_me: failed program was:" >&5
12871 sed 's/^/| /' conftest.$ac_ext >&5
12875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12876 CPPFLAGS="$ac_save_CPPFLAGS"
12878 echo "$as_me:$LINENO: result: $ac_cv_kerberos" >&5
12879 echo "${ECHO_T}$ac_cv_kerberos" >&6
12880 echo "$as_me:$LINENO: checking for Kerberos 5" >&5
12881 echo $ECHO_N "checking for Kerberos 5... $ECHO_C" >&6
12882 if test "${ac_cv_kerberos5+set}" = set; then
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 ac_save_CPPFLAGS="$CPPFLAGS"
12887 if test \! -z "$includedir" ; then
12888 CPPFLAGS="$CPPFLAGS -I$includedir"
12890 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12891 cat >conftest.$ac_ext <<_ACEOF
12894 cat confdefs.h >>conftest.$ac_ext
12895 cat >>conftest.$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12897 #include <kerberosIV/krb.h>
12906 rm -f conftest.$ac_objext
12907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12908 (eval $ac_compile) 2>conftest.er1
12910 grep -v '^ *+' conftest.er1 >conftest.err
12912 cat conftest.err >&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } &&
12915 { ac_try='test -z "$ac_c_werror_flag"
12916 || test ! -s conftest.err'
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; } &&
12922 { ac_try='test -s conftest.$ac_objext'
12923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924 (eval $ac_try) 2>&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; }; then
12928 ac_cv_kerberos5=yes
12930 echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12936 CPPFLAGS="$ac_save_CPPFLAGS"
12938 echo "$as_me:$LINENO: result: $ac_cv_kerberos5" >&5
12939 echo "${ECHO_T}$ac_cv_kerberos5" >&6
12941 if test "$ac_cv_kerberos" = yes ; then
12943 cat >>confdefs.h <<\_ACEOF
12944 #define HAVE_KERBEROS 1
12949 if test "$ac_cv_kerberos5" = yes ; then
12951 # Andrew Snare <ajs@pigpond.com> wrote:
12953 # You were assuming that if kerberosV (krb5) was found, then kerberosIV
12954 # (krb4) was also available. This turns out not to be the case with
12955 # mit-krb-1.2.7; apparently backwards-compatibility with KerberosIV
12958 # So, disable kerberosV support if libkrb4 can't be found.
12959 # This is not the best solution, but it makes the compile not fail.
12962 ac_save_CPPFLAGS="$CPPFLAGS"
12963 ac_save_LDFLAGS="$LDFLAGS"
12964 # ac_save_LIBS="$LIBS"
12966 if test \! -z "$includedir" ; then
12967 CPPFLAGS="$CPPFLAGS -I$includedir"
12969 # note: $X_CFLAGS includes $x_includes
12970 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12972 if test \! -z "$libdir" ; then
12973 LDFLAGS="$LDFLAGS -L$libdir"
12975 # note: $X_LIBS includes $x_libraries
12976 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12978 echo "$as_me:$LINENO: checking for krb_get_tf_realm in -lkrb4" >&5
12979 echo $ECHO_N "checking for krb_get_tf_realm in -lkrb4... $ECHO_C" >&6
12980 if test "${ac_cv_lib_krb4_krb_get_tf_realm+set}" = set; then
12981 echo $ECHO_N "(cached) $ECHO_C" >&6
12983 ac_check_lib_save_LIBS=$LIBS
12984 LIBS="-lkrb4 $LIBS"
12985 cat >conftest.$ac_ext <<_ACEOF
12988 cat confdefs.h >>conftest.$ac_ext
12989 cat >>conftest.$ac_ext <<_ACEOF
12990 /* end confdefs.h. */
12992 /* Override any gcc2 internal prototype to avoid an error. */
12996 /* We use char because int might match the return type of a gcc2
12997 builtin and then its argument prototype would still apply. */
12998 char krb_get_tf_realm ();
13002 krb_get_tf_realm ();
13007 rm -f conftest.$ac_objext conftest$ac_exeext
13008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13009 (eval $ac_link) 2>conftest.er1
13011 grep -v '^ *+' conftest.er1 >conftest.err
13013 cat conftest.err >&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); } &&
13016 { ac_try='test -z "$ac_c_werror_flag"
13017 || test ! -s conftest.err'
13018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019 (eval $ac_try) 2>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; } &&
13023 { ac_try='test -s conftest$ac_exeext'
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; }; then
13029 ac_cv_lib_krb4_krb_get_tf_realm=yes
13031 echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.$ac_ext >&5
13034 ac_cv_lib_krb4_krb_get_tf_realm=no
13036 rm -f conftest.err conftest.$ac_objext \
13037 conftest$ac_exeext conftest.$ac_ext
13038 LIBS=$ac_check_lib_save_LIBS
13040 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_tf_realm" >&5
13041 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_tf_realm" >&6
13042 if test $ac_cv_lib_krb4_krb_get_tf_realm = yes; then
13048 CPPFLAGS="$ac_save_CPPFLAGS"
13049 LDFLAGS="$ac_save_LDFLAGS"
13050 # LIBS="$ac_save_LIBS"
13052 if test "$have_kerberos" = yes ; then
13054 cat >>confdefs.h <<\_ACEOF
13055 #define HAVE_KERBEROS 1
13058 cat >>confdefs.h <<\_ACEOF
13059 #define HAVE_KERBEROS5 1
13064 { echo "$as_me:$LINENO: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&5
13065 echo "$as_me: WARNING: Cannot find compat lib (libkrb4) needed to use Kerberos 5" >&2;}
13070 if test "$have_kerberos5" = yes ; then
13071 # from Matt Knopp <mhat@infocalypse.netlag.com>
13072 # (who got it from amu@mit.edu)
13074 PASSWD_LIBS="$PASSWD_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
13076 # jwz: MacOS X uses -lkrb5, but not -lcrypt
13078 ac_save_CPPFLAGS="$CPPFLAGS"
13079 ac_save_LDFLAGS="$LDFLAGS"
13080 # ac_save_LIBS="$LIBS"
13082 if test \! -z "$includedir" ; then
13083 CPPFLAGS="$CPPFLAGS -I$includedir"
13085 # note: $X_CFLAGS includes $x_includes
13086 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13088 if test \! -z "$libdir" ; then
13089 LDFLAGS="$LDFLAGS -L$libdir"
13091 # note: $X_LIBS includes $x_libraries
13092 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13094 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
13095 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
13096 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13099 ac_check_lib_save_LIBS=$LIBS
13100 LIBS="-lcrypt $LIBS"
13101 cat >conftest.$ac_ext <<_ACEOF
13104 cat confdefs.h >>conftest.$ac_ext
13105 cat >>conftest.$ac_ext <<_ACEOF
13106 /* end confdefs.h. */
13108 /* Override any gcc2 internal prototype to avoid an error. */
13112 /* We use char because int might match the return type of a gcc2
13113 builtin and then its argument prototype would still apply. */
13123 rm -f conftest.$ac_objext conftest$ac_exeext
13124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13125 (eval $ac_link) 2>conftest.er1
13127 grep -v '^ *+' conftest.er1 >conftest.err
13129 cat conftest.err >&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } &&
13132 { ac_try='test -z "$ac_c_werror_flag"
13133 || test ! -s conftest.err'
13134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135 (eval $ac_try) 2>&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; } &&
13139 { ac_try='test -s conftest$ac_exeext'
13140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141 (eval $ac_try) 2>&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); }; }; then
13145 ac_cv_lib_crypt_crypt=yes
13147 echo "$as_me: failed program was:" >&5
13148 sed 's/^/| /' conftest.$ac_ext >&5
13150 ac_cv_lib_crypt_crypt=no
13152 rm -f conftest.err conftest.$ac_objext \
13153 conftest$ac_exeext conftest.$ac_ext
13154 LIBS=$ac_check_lib_save_LIBS
13156 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
13157 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
13158 if test $ac_cv_lib_crypt_crypt = yes; then
13159 PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
13162 CPPFLAGS="$ac_save_CPPFLAGS"
13163 LDFLAGS="$ac_save_LDFLAGS"
13164 # LIBS="$ac_save_LIBS"
13167 elif test "$have_kerberos" = yes ; then
13168 # from Tim Showalter <tjs@psaux.com> for FreeBSD 4.2
13169 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
13172 if test "$have_kerberos" = yes ; then
13173 echo "$as_me:$LINENO: checking for res_search" >&5
13174 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
13175 if test "${ac_cv_func_res_search+set}" = set; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
13178 cat >conftest.$ac_ext <<_ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h. */
13184 /* Define res_search to an innocuous variant, in case <limits.h> declares res_search.
13185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13186 #define res_search innocuous_res_search
13188 /* System header to define __stub macros and hopefully few prototypes,
13189 which can conflict with char res_search (); below.
13190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13191 <limits.h> exists even on freestanding compilers. */
13194 # include <limits.h>
13196 # include <assert.h>
13201 /* Override any gcc2 internal prototype to avoid an error. */
13206 /* We use char because int might match the return type of a gcc2
13207 builtin and then its argument prototype would still apply. */
13208 char res_search ();
13209 /* The GNU C library defines this for functions which it implements
13210 to always fail with ENOSYS. Some functions are actually named
13211 something starting with __ and the normal name is an alias. */
13212 #if defined (__stub_res_search) || defined (__stub___res_search)
13215 char (*f) () = res_search;
13224 return f != res_search;
13229 rm -f conftest.$ac_objext conftest$ac_exeext
13230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13231 (eval $ac_link) 2>conftest.er1
13233 grep -v '^ *+' conftest.er1 >conftest.err
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } &&
13238 { ac_try='test -z "$ac_c_werror_flag"
13239 || test ! -s conftest.err'
13240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13241 (eval $ac_try) 2>&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; } &&
13245 { ac_try='test -s conftest$ac_exeext'
13246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247 (eval $ac_try) 2>&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; }; then
13251 ac_cv_func_res_search=yes
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13256 ac_cv_func_res_search=no
13258 rm -f conftest.err conftest.$ac_objext \
13259 conftest$ac_exeext conftest.$ac_ext
13261 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
13262 echo "${ECHO_T}$ac_cv_func_res_search" >&6
13263 if test $ac_cv_func_res_search = yes; then
13266 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
13267 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
13268 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13271 ac_check_lib_save_LIBS=$LIBS
13272 LIBS="-lresolv $LIBS"
13273 cat >conftest.$ac_ext <<_ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13280 /* Override any gcc2 internal prototype to avoid an error. */
13284 /* We use char because int might match the return type of a gcc2
13285 builtin and then its argument prototype would still apply. */
13286 char res_search ();
13295 rm -f conftest.$ac_objext conftest$ac_exeext
13296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13297 (eval $ac_link) 2>conftest.er1
13299 grep -v '^ *+' conftest.er1 >conftest.err
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } &&
13304 { ac_try='test -z "$ac_c_werror_flag"
13305 || test ! -s conftest.err'
13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307 (eval $ac_try) 2>&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }; } &&
13311 { ac_try='test -s conftest$ac_exeext'
13312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; }; then
13317 ac_cv_lib_resolv_res_search=yes
13319 echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13322 ac_cv_lib_resolv_res_search=no
13324 rm -f conftest.err conftest.$ac_objext \
13325 conftest$ac_exeext conftest.$ac_ext
13326 LIBS=$ac_check_lib_save_LIBS
13328 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
13329 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
13330 if test $ac_cv_lib_resolv_res_search = yes; then
13331 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
13333 { echo "$as_me:$LINENO: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&5
13334 echo "$as_me: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&2;}
13344 ###############################################################################
13346 # Check for the nine billion variants of shadow passwords...
13348 ###############################################################################
13353 with_shadow_req=unspecified
13356 # Check whether --with-shadow or --without-shadow was given.
13357 if test "${with_shadow+set}" = set; then
13358 withval="$with_shadow"
13359 with_shadow="$withval"; with_shadow_req="$withval"
13365 case "$with_shadow" in
13370 echo "$as_me:$LINENO: checking for shadow password headers" >&5
13371 echo $ECHO_N "checking for shadow password headers... $ECHO_C" >&6
13372 d=$with_shadow/include
13373 if test -d $d; then
13374 X_CFLAGS="-I$d $X_CFLAGS"
13375 echo "$as_me:$LINENO: result: $d" >&5
13376 echo "${ECHO_T}$d" >&6
13378 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13379 echo "${ECHO_T}not found ($d: no such directory)" >&6
13382 echo "$as_me:$LINENO: checking for shadow password libs" >&5
13383 echo $ECHO_N "checking for shadow password libs... $ECHO_C" >&6
13385 if test -d $d; then
13386 X_LIBS="-L$d $X_LIBS"
13387 echo "$as_me:$LINENO: result: $d" >&5
13388 echo "${ECHO_T}$d" >&6
13390 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13391 echo "${ECHO_T}not found ($d: no such directory)" >&6
13394 # replace the directory string with "yes".
13395 with_shadow_req="yes"
13396 with_shadow=$with_shadow_req
13401 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
13402 echo " If it is a directory, then \`DIR/include' will be added to"
13403 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13409 if test "$enable_locking" = no ; then
13415 ###############################################################################
13417 # Check for Sun "adjunct" passwords.
13419 ###############################################################################
13421 if test "$with_shadow" = yes ; then
13422 echo "$as_me:$LINENO: checking for Sun-style shadow passwords" >&5
13423 echo $ECHO_N "checking for Sun-style shadow passwords... $ECHO_C" >&6
13424 if test "${ac_cv_sun_adjunct+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13428 ac_save_CPPFLAGS="$CPPFLAGS"
13429 if test \! -z "$includedir" ; then
13430 CPPFLAGS="$CPPFLAGS -I$includedir"
13432 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13433 cat >conftest.$ac_ext <<_ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13439 #include <stdlib.h>
13440 #include <unistd.h>
13441 #include <sys/types.h>
13442 #include <sys/label.h>
13443 #include <sys/audit.h>
13444 #include <pwdadj.h>
13448 struct passwd_adjunct *p = getpwanam("nobody");
13449 const char *pw = p->pwa_passwd;
13454 rm -f conftest.$ac_objext
13455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13456 (eval $ac_compile) 2>conftest.er1
13458 grep -v '^ *+' conftest.er1 >conftest.err
13460 cat conftest.err >&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } &&
13463 { ac_try='test -z "$ac_c_werror_flag"
13464 || test ! -s conftest.err'
13465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466 (eval $ac_try) 2>&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; } &&
13470 { ac_try='test -s conftest.$ac_objext'
13471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472 (eval $ac_try) 2>&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; }; then
13476 ac_cv_sun_adjunct=yes
13478 echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13481 ac_cv_sun_adjunct=no
13483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13484 CPPFLAGS="$ac_save_CPPFLAGS"
13486 echo "$as_me:$LINENO: result: $ac_cv_sun_adjunct" >&5
13487 echo "${ECHO_T}$ac_cv_sun_adjunct" >&6
13488 if test "$ac_cv_sun_adjunct" = yes; then
13489 have_shadow_adjunct=yes
13496 ###############################################################################
13498 # Check for DEC and SCO so-called "enhanced" security.
13500 ###############################################################################
13502 if test "$with_shadow" = yes ; then
13503 echo "$as_me:$LINENO: checking for DEC-style shadow passwords" >&5
13504 echo $ECHO_N "checking for DEC-style shadow passwords... $ECHO_C" >&6
13505 if test "${ac_cv_enhanced_passwd+set}" = set; then
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 ac_save_CPPFLAGS="$CPPFLAGS"
13510 if test \! -z "$includedir" ; then
13511 CPPFLAGS="$CPPFLAGS -I$includedir"
13513 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13514 cat >conftest.$ac_ext <<_ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h. */
13520 #include <stdlib.h>
13521 #include <unistd.h>
13522 #include <sys/types.h>
13524 #include <sys/security.h>
13529 struct pr_passwd *p;
13531 set_auth_parameters(0, 0);
13532 check_auth_parameters();
13533 p = getprpwnam("nobody");
13534 pw = p->ufld.fd_encrypt;
13539 rm -f conftest.$ac_objext
13540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13541 (eval $ac_compile) 2>conftest.er1
13543 grep -v '^ *+' conftest.er1 >conftest.err
13545 cat conftest.err >&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } &&
13548 { ac_try='test -z "$ac_c_werror_flag"
13549 || test ! -s conftest.err'
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; } &&
13555 { ac_try='test -s conftest.$ac_objext'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; }; then
13561 ac_cv_enhanced_passwd=yes
13563 echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13566 ac_cv_enhanced_passwd=no
13568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13569 CPPFLAGS="$ac_save_CPPFLAGS"
13571 echo "$as_me:$LINENO: result: $ac_cv_enhanced_passwd" >&5
13572 echo "${ECHO_T}$ac_cv_enhanced_passwd" >&6
13573 if test $ac_cv_enhanced_passwd = yes; then
13574 have_shadow_enhanced=yes
13578 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
13579 # (I'm told it needs -lcurses too, but I don't understand why.)
13580 # But on DEC, it's in -lsecurity.
13582 echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
13583 echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
13584 if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 ac_check_lib_save_LIBS=$LIBS
13588 LIBS="-lprot -lx $LIBS"
13589 cat >conftest.$ac_ext <<_ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13596 /* Override any gcc2 internal prototype to avoid an error. */
13600 /* We use char because int might match the return type of a gcc2
13601 builtin and then its argument prototype would still apply. */
13602 char getprpwnam ();
13611 rm -f conftest.$ac_objext conftest$ac_exeext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13613 (eval $ac_link) 2>conftest.er1
13615 grep -v '^ *+' conftest.er1 >conftest.err
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try='test -z "$ac_c_werror_flag"
13621 || test ! -s conftest.err'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; } &&
13627 { ac_try='test -s conftest$ac_exeext'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
13633 ac_cv_lib_prot_getprpwnam=yes
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13638 ac_cv_lib_prot_getprpwnam=no
13640 rm -f conftest.err conftest.$ac_objext \
13641 conftest$ac_exeext conftest.$ac_ext
13642 LIBS=$ac_check_lib_save_LIBS
13644 echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
13645 echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
13646 if test $ac_cv_lib_prot_getprpwnam = yes; then
13647 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
13649 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
13650 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
13651 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13654 ac_check_lib_save_LIBS=$LIBS
13655 LIBS="-lsecurity $LIBS"
13656 cat >conftest.$ac_ext <<_ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h. */
13663 /* Override any gcc2 internal prototype to avoid an error. */
13667 /* We use char because int might match the return type of a gcc2
13668 builtin and then its argument prototype would still apply. */
13669 char getprpwnam ();
13678 rm -f conftest.$ac_objext conftest$ac_exeext
13679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13680 (eval $ac_link) 2>conftest.er1
13682 grep -v '^ *+' conftest.er1 >conftest.err
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } &&
13687 { ac_try='test -z "$ac_c_werror_flag"
13688 || test ! -s conftest.err'
13689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690 (eval $ac_try) 2>&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; } &&
13694 { ac_try='test -s conftest$ac_exeext'
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; }; then
13700 ac_cv_lib_security_getprpwnam=yes
13702 echo "$as_me: failed program was:" >&5
13703 sed 's/^/| /' conftest.$ac_ext >&5
13705 ac_cv_lib_security_getprpwnam=no
13707 rm -f conftest.err conftest.$ac_objext \
13708 conftest$ac_exeext conftest.$ac_ext
13709 LIBS=$ac_check_lib_save_LIBS
13711 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
13712 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
13713 if test $ac_cv_lib_security_getprpwnam = yes; then
13714 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
13722 ###############################################################################
13724 # Check for HP's entry in the "Not Invented Here" Sweepstakes.
13726 ###############################################################################
13728 if test "$with_shadow" = yes ; then
13729 echo "$as_me:$LINENO: checking for HP-style shadow passwords" >&5
13730 echo $ECHO_N "checking for HP-style shadow passwords... $ECHO_C" >&6
13731 if test "${ac_cv_hpux_passwd+set}" = set; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13735 ac_save_CPPFLAGS="$CPPFLAGS"
13736 if test \! -z "$includedir" ; then
13737 CPPFLAGS="$CPPFLAGS -I$includedir"
13739 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13740 cat >conftest.$ac_ext <<_ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13746 #include <stdlib.h>
13747 #include <unistd.h>
13748 #include <sys/types.h>
13750 #include <hpsecurity.h>
13755 struct s_passwd *p = getspwnam("nobody");
13756 const char *pw = p->pw_passwd;
13761 rm -f conftest.$ac_objext
13762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13763 (eval $ac_compile) 2>conftest.er1
13765 grep -v '^ *+' conftest.er1 >conftest.err
13767 cat conftest.err >&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } &&
13770 { ac_try='test -z "$ac_c_werror_flag"
13771 || test ! -s conftest.err'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } &&
13777 { ac_try='test -s conftest.$ac_objext'
13778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779 (eval $ac_try) 2>&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; }; then
13783 ac_cv_hpux_passwd=yes
13785 echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13788 ac_cv_hpux_passwd=no
13790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13791 CPPFLAGS="$ac_save_CPPFLAGS"
13793 echo "$as_me:$LINENO: result: $ac_cv_hpux_passwd" >&5
13794 echo "${ECHO_T}$ac_cv_hpux_passwd" >&6
13795 if test "$ac_cv_hpux_passwd" = yes; then
13796 have_shadow_hpux=yes
13800 # on HPUX, bigcrypt is in -lsec
13801 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
13802 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
13803 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
13804 echo $ECHO_N "(cached) $ECHO_C" >&6
13806 ac_check_lib_save_LIBS=$LIBS
13808 cat >conftest.$ac_ext <<_ACEOF
13811 cat confdefs.h >>conftest.$ac_ext
13812 cat >>conftest.$ac_ext <<_ACEOF
13813 /* end confdefs.h. */
13815 /* Override any gcc2 internal prototype to avoid an error. */
13819 /* We use char because int might match the return type of a gcc2
13820 builtin and then its argument prototype would still apply. */
13830 rm -f conftest.$ac_objext conftest$ac_exeext
13831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13832 (eval $ac_link) 2>conftest.er1
13834 grep -v '^ *+' conftest.er1 >conftest.err
13836 cat conftest.err >&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } &&
13839 { ac_try='test -z "$ac_c_werror_flag"
13840 || test ! -s conftest.err'
13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842 (eval $ac_try) 2>&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; } &&
13846 { ac_try='test -s conftest$ac_exeext'
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; }; then
13852 ac_cv_lib_sec_bigcrypt=yes
13854 echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13857 ac_cv_lib_sec_bigcrypt=no
13859 rm -f conftest.err conftest.$ac_objext \
13860 conftest$ac_exeext conftest.$ac_ext
13861 LIBS=$ac_check_lib_save_LIBS
13863 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
13864 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
13865 if test $ac_cv_lib_sec_bigcrypt = yes; then
13866 PASSWD_LIBS="$PASSWD_LIBS -lsec"
13873 ###############################################################################
13875 # Check for FreeBSD-style shadow passwords.
13877 # On FreeBSD, getpwnam() and friends work just like on non-shadow-
13878 # password systems -- except you only get stuff in the pw_passwd field
13879 # if the running program is setuid. So, guess that we've got this
13880 # lossage to contend with if /etc/master.passwd exists, and default to
13881 # a setuid installation.
13883 ###############################################################################
13885 if test "$with_shadow" = yes ; then
13886 echo "$as_me:$LINENO: checking for FreeBSD-style shadow passwords" >&5
13887 echo $ECHO_N "checking for FreeBSD-style shadow passwords... $ECHO_C" >&6
13888 if test "${ac_cv_master_passwd+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 if test -f /etc/master.passwd ; then
13892 ac_cv_master_passwd=yes
13894 ac_cv_master_passwd=no
13897 echo "$as_me:$LINENO: result: $ac_cv_master_passwd" >&5
13898 echo "${ECHO_T}$ac_cv_master_passwd" >&6
13899 if test "$ac_cv_master_passwd" = yes; then
13905 ###############################################################################
13907 # Check for traditional (ha!) shadow passwords.
13909 ###############################################################################
13911 if test "$with_shadow" = yes ; then
13912 echo "$as_me:$LINENO: checking for generic shadow passwords" >&5
13913 echo $ECHO_N "checking for generic shadow passwords... $ECHO_C" >&6
13914 if test "${ac_cv_shadow+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13918 ac_save_CPPFLAGS="$CPPFLAGS"
13919 if test \! -z "$includedir" ; then
13920 CPPFLAGS="$CPPFLAGS -I$includedir"
13922 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13923 cat >conftest.$ac_ext <<_ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 #include <stdlib.h>
13930 #include <unistd.h>
13931 #include <sys/types.h>
13933 #include <shadow.h>
13937 struct spwd *p = getspnam("nobody");
13938 const char *pw = p->sp_pwdp;
13943 rm -f conftest.$ac_objext
13944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13945 (eval $ac_compile) 2>conftest.er1
13947 grep -v '^ *+' conftest.er1 >conftest.err
13949 cat conftest.err >&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } &&
13952 { ac_try='test -z "$ac_c_werror_flag"
13953 || test ! -s conftest.err'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; } &&
13959 { ac_try='test -s conftest.$ac_objext'
13960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961 (eval $ac_try) 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; }; then
13967 echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13973 CPPFLAGS="$ac_save_CPPFLAGS"
13975 echo "$as_me:$LINENO: result: $ac_cv_shadow" >&5
13976 echo "${ECHO_T}$ac_cv_shadow" >&6
13977 if test "$ac_cv_shadow" = yes; then
13981 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
13983 echo "$as_me:$LINENO: checking for getspnam in -lc" >&5
13984 echo $ECHO_N "checking for getspnam in -lc... $ECHO_C" >&6
13985 if test "${ac_cv_lib_c_getspnam+set}" = set; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13988 ac_check_lib_save_LIBS=$LIBS
13990 cat >conftest.$ac_ext <<_ACEOF
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h. */
13997 /* Override any gcc2 internal prototype to avoid an error. */
14001 /* We use char because int might match the return type of a gcc2
14002 builtin and then its argument prototype would still apply. */
14012 rm -f conftest.$ac_objext conftest$ac_exeext
14013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14014 (eval $ac_link) 2>conftest.er1
14016 grep -v '^ *+' conftest.er1 >conftest.err
14018 cat conftest.err >&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } &&
14021 { ac_try='test -z "$ac_c_werror_flag"
14022 || test ! -s conftest.err'
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); }; } &&
14028 { ac_try='test -s conftest$ac_exeext'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; }; then
14034 ac_cv_lib_c_getspnam=yes
14036 echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14039 ac_cv_lib_c_getspnam=no
14041 rm -f conftest.err conftest.$ac_objext \
14042 conftest$ac_exeext conftest.$ac_ext
14043 LIBS=$ac_check_lib_save_LIBS
14045 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getspnam" >&5
14046 echo "${ECHO_T}$ac_cv_lib_c_getspnam" >&6
14047 if test $ac_cv_lib_c_getspnam = yes; then
14051 if test "$have_getspnam" = no ; then
14052 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
14053 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
14054 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14057 ac_check_lib_save_LIBS=$LIBS
14059 cat >conftest.$ac_ext <<_ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14066 /* Override any gcc2 internal prototype to avoid an error. */
14070 /* We use char because int might match the return type of a gcc2
14071 builtin and then its argument prototype would still apply. */
14081 rm -f conftest.$ac_objext conftest$ac_exeext
14082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14083 (eval $ac_link) 2>conftest.er1
14085 grep -v '^ *+' conftest.er1 >conftest.err
14087 cat conftest.err >&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } &&
14090 { ac_try='test -z "$ac_c_werror_flag"
14091 || test ! -s conftest.err'
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); }; } &&
14097 { ac_try='test -s conftest$ac_exeext'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
14103 ac_cv_lib_gen_getspnam=yes
14105 echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14108 ac_cv_lib_gen_getspnam=no
14110 rm -f conftest.err conftest.$ac_objext \
14111 conftest$ac_exeext conftest.$ac_ext
14112 LIBS=$ac_check_lib_save_LIBS
14114 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
14115 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
14116 if test $ac_cv_lib_gen_getspnam = yes; then
14117 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
14125 ###############################################################################
14127 # Check for other libraries needed for non-shadow passwords.
14129 ###############################################################################
14131 if test "$enable_locking" = yes ; then
14133 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
14135 echo "$as_me:$LINENO: checking for crypt in -lc" >&5
14136 echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
14137 if test "${ac_cv_lib_c_crypt+set}" = set; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 ac_check_lib_save_LIBS=$LIBS
14142 cat >conftest.$ac_ext <<_ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h. */
14149 /* Override any gcc2 internal prototype to avoid an error. */
14153 /* We use char because int might match the return type of a gcc2
14154 builtin and then its argument prototype would still apply. */
14164 rm -f conftest.$ac_objext conftest$ac_exeext
14165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14166 (eval $ac_link) 2>conftest.er1
14168 grep -v '^ *+' conftest.er1 >conftest.err
14170 cat conftest.err >&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } &&
14173 { ac_try='test -z "$ac_c_werror_flag"
14174 || test ! -s conftest.err'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; } &&
14180 { ac_try='test -s conftest$ac_exeext'
14181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; }; then
14186 ac_cv_lib_c_crypt=yes
14188 echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14191 ac_cv_lib_c_crypt=no
14193 rm -f conftest.err conftest.$ac_objext \
14194 conftest$ac_exeext conftest.$ac_ext
14195 LIBS=$ac_check_lib_save_LIBS
14197 echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
14198 echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
14199 if test $ac_cv_lib_c_crypt = yes; then
14203 if test "$have_crypt" = no ; then
14204 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
14205 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
14206 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14209 ac_check_lib_save_LIBS=$LIBS
14210 LIBS="-lcrypt $LIBS"
14211 cat >conftest.$ac_ext <<_ACEOF
14214 cat confdefs.h >>conftest.$ac_ext
14215 cat >>conftest.$ac_ext <<_ACEOF
14216 /* end confdefs.h. */
14218 /* Override any gcc2 internal prototype to avoid an error. */
14222 /* We use char because int might match the return type of a gcc2
14223 builtin and then its argument prototype would still apply. */
14233 rm -f conftest.$ac_objext conftest$ac_exeext
14234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14235 (eval $ac_link) 2>conftest.er1
14237 grep -v '^ *+' conftest.er1 >conftest.err
14239 cat conftest.err >&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); } &&
14242 { ac_try='test -z "$ac_c_werror_flag"
14243 || test ! -s conftest.err'
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; } &&
14249 { ac_try='test -s conftest$ac_exeext'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14255 ac_cv_lib_crypt_crypt=yes
14257 echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ac_cv_lib_crypt_crypt=no
14262 rm -f conftest.err conftest.$ac_objext \
14263 conftest$ac_exeext conftest.$ac_ext
14264 LIBS=$ac_check_lib_save_LIBS
14266 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
14267 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
14268 if test $ac_cv_lib_crypt_crypt = yes; then
14269 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
14276 # Most of the above shadow mechanisms will have set need_setuid to yes,
14277 # if they were found. But, on some systems, we need setuid even when
14278 # using plain old vanilla passwords.
14280 if test "$enable_locking" = yes ; then
14282 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
14289 if test "$have_shadow_adjunct" = yes ; then
14290 cat >>confdefs.h <<\_ACEOF
14291 #define HAVE_ADJUNCT_PASSWD 1
14294 elif test "$have_shadow_enhanced" = yes ; then
14295 cat >>confdefs.h <<\_ACEOF
14296 #define HAVE_ENHANCED_PASSWD 1
14299 elif test "$have_shadow_hpux" = yes ; then
14300 cat >>confdefs.h <<\_ACEOF
14301 #define HAVE_HPUX_PASSWD 1
14304 elif test "$have_shadow" = yes ; then
14305 cat >>confdefs.h <<\_ACEOF
14306 #define HAVE_SHADOW_PASSWD 1
14312 ###############################################################################
14314 # Check for external password helper
14315 # On SuSE, instead of having xscreensaver be a setuid program, they
14316 # fork an external program that takes the password on stdin, and
14317 # returns true if that password is a valid one. Then only that
14318 # smaller program needs to be setuid.
14320 # (Note that this external program is not a GUI: the GUI is still
14321 # all in xscreensaver itself; the external program just does auth.)
14323 ###############################################################################
14325 have_passwd_helper=no
14326 with_passwd_helper_req=unspecified
14329 # Check whether --with-passwd-helper or --without-passwd-helper was given.
14330 if test "${with_passwd_helper+set}" = set; then
14331 withval="$with_passwd_helper"
14332 with_passwd_helper="$withval"; with_passwd_helper_req="$withval"
14334 with_passwd_helper=no
14336 # no HANDLE_X_PATH_ARG for this one
14338 if test "$enable_locking" = no ; then
14339 with_passwd_helper_req=no
14340 with_passwd_helper=no
14343 case "$with_passwd_helper" in
14346 cat >>confdefs.h <<_ACEOF
14347 #define PASSWD_HELPER_PROGRAM "$with_passwd_helper"
14350 have_passwd_helper=yes;;
14352 echo "error: --with-passwd-helper needs full pathname of helper (not '$with_passwd_helper')." >&2
14357 ###############################################################################
14359 # Check for a login manager for a "New Login" button on the lock dialog.
14360 # Usually this will be "/usr/bin/gdmflexiserver".
14362 ###############################################################################
14364 have_login_manager=no
14365 with_login_manager_req=unspecified
14366 default_login_manager='gdmflexiserver -l'
14369 # Check whether --with-login-manager or --without-login-manager was given.
14370 if test "${with_login_manager+set}" = set; then
14371 withval="$with_login_manager"
14372 with_login_manager="$withval"; with_login_manager_req="$withval"
14374 with_login_manager=no
14376 # no HANDLE_X_PATH_ARG for this one
14378 if test "$enable_locking" = no ; then
14379 with_login_manager_req=no
14380 with_login_manager=no
14383 if test -n "$with_login_manager_req" ; then
14384 ac_cv_login_manager_program=""
14386 if test "$with_login_manager_req" = "yes" ; then
14387 with_login_manager_req=$default_login_manager
14390 case "$with_login_manager_req" in
14393 set dummy $with_login_manager_req ; login_manager_tmp=$2
14394 echo "$as_me:$LINENO: checking for $login_manager_tmp" >&5
14395 echo $ECHO_N "checking for $login_manager_tmp... $ECHO_C" >&6
14396 if test -x "$login_manager_tmp" ; then
14397 echo "$as_me:$LINENO: result: yes" >&5
14398 echo "${ECHO_T}yes" >&6
14400 echo "$as_me:$LINENO: result: no" >&5
14401 echo "${ECHO_T}no" >&6
14402 with_login_manager=""
14407 set dummy $with_login_manager_req ; login_manager_tmp=$2
14409 unset ac_cv_path_login_manager_tmp
14410 # Extract the first word of "$login_manager_tmp", so it can be a program name with args.
14411 set dummy $login_manager_tmp; ac_word=$2
14412 echo "$as_me:$LINENO: checking for $ac_word" >&5
14413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14414 if test "${ac_cv_path_login_manager_tmp+set}" = set; then
14415 echo $ECHO_N "(cached) $ECHO_C" >&6
14417 case $login_manager_tmp in
14419 ac_cv_path_login_manager_tmp="$login_manager_tmp" # Let the user override the test with a path.
14422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14423 for as_dir in $PATH
14426 test -z "$as_dir" && as_dir=.
14427 for ac_exec_ext in '' $ac_executable_extensions; do
14428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14429 ac_cv_path_login_manager_tmp="$as_dir/$ac_word$ac_exec_ext"
14430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14439 login_manager_tmp=$ac_cv_path_login_manager_tmp
14441 if test -n "$login_manager_tmp"; then
14442 echo "$as_me:$LINENO: result: $login_manager_tmp" >&5
14443 echo "${ECHO_T}$login_manager_tmp" >&6
14445 echo "$as_me:$LINENO: result: no" >&5
14446 echo "${ECHO_T}no" >&6
14449 if test -z "$login_manager_tmp" ; then
14450 with_login_manager=""
14452 with_login_manager="$login_manager_tmp"
14456 ac_cv_login_manager_program="$with_login_manager"
14458 elif test -n "$ac_cv_login_manager_program"; then
14459 echo "$as_me:$LINENO: result: checking for login_manager... (cached) $ac_cv_login_manager_program" >&5
14460 echo "${ECHO_T}checking for login_manager... (cached) $ac_cv_login_manager_program" >&6
14463 NEW_LOGIN_COMMAND_P=''
14464 NEW_LOGIN_COMMAND="$ac_cv_login_manager_program"
14466 if test -z "$NEW_LOGIN_COMMAND" ; then
14467 NEW_LOGIN_COMMAND="$default_login_manager"
14468 NEW_LOGIN_COMMAND_P='! '
14473 ###############################################################################
14475 # Check for -lgtk (and Gnome stuff)
14477 ###############################################################################
14480 with_gtk_req=unspecified
14482 # Check whether --with-gtk or --without-gtk was given.
14483 if test "${with_gtk+set}" = set; then
14484 withval="$with_gtk"
14485 with_gtk="$withval"; with_gtk_req="$withval"
14490 # if --with-gtk=/directory/ was specified, remember that directory so that
14491 # we can also look for the `gtk-config' program in that directory.
14492 case "$with_gtk" in
14494 gtk_dir="$with_gtk"
14502 case "$with_gtk" in
14507 echo "$as_me:$LINENO: checking for Gtk headers" >&5
14508 echo $ECHO_N "checking for Gtk headers... $ECHO_C" >&6
14509 d=$with_gtk/include
14510 if test -d $d; then
14511 X_CFLAGS="-I$d $X_CFLAGS"
14512 echo "$as_me:$LINENO: result: $d" >&5
14513 echo "${ECHO_T}$d" >&6
14515 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14516 echo "${ECHO_T}not found ($d: no such directory)" >&6
14519 echo "$as_me:$LINENO: checking for Gtk libs" >&5
14520 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
14522 if test -d $d; then
14523 X_LIBS="-L$d $X_LIBS"
14524 echo "$as_me:$LINENO: result: $d" >&5
14525 echo "${ECHO_T}$d" >&6
14527 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14528 echo "${ECHO_T}not found ($d: no such directory)" >&6
14531 # replace the directory string with "yes".
14533 with_gtk=$with_gtk_req
14538 echo "error: argument to --with-gtk must be \"yes\", \"no\", or a directory."
14539 echo " If it is a directory, then \`DIR/include' will be added to"
14540 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14546 if test "$with_gtk" != yes -a "$with_gtk" != no ; then
14547 echo "error: must be yes or no: --with-gtk=$with_gtk"
14552 parse_gtk_version_string() {
14555 maj=`echo $ac_gtk_version_string | sed -n 's/\..*//p'`
14556 min=`echo $ac_gtk_version_string | sed -n 's/[^.]*\.\([^.]*\).*/\1/p'`
14558 ac_gtk_version=`echo "$maj * 1000 + $min" | bc`
14559 if test -z "$ac_gtk_version"; then
14560 ac_gtk_version=unknown
14561 ac_gtk_version_string=unknown
14565 # Find pkg-config... (need this for both gtk and gdk_pixbuf.)
14566 # if the user specified --with-gtk=/foo/ then look there.
14569 if test ! -z "$gtk_dir"; then
14570 # canonicalize slashes.
14571 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
14572 gtk_path="$foo:$gtk_path"
14575 for ac_prog in pkg-config
14577 # Extract the first word of "$ac_prog", so it can be a program name with args.
14578 set dummy $ac_prog; ac_word=$2
14579 echo "$as_me:$LINENO: checking for $ac_word" >&5
14580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14581 if test "${ac_cv_path_pkg_config+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14584 case $pkg_config in
14586 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path.
14589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14590 for as_dir in $gtk_path
14593 test -z "$as_dir" && as_dir=.
14594 for ac_exec_ext in '' $ac_executable_extensions; do
14595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14596 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext"
14597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14606 pkg_config=$ac_cv_path_pkg_config
14608 if test -n "$pkg_config"; then
14609 echo "$as_me:$LINENO: result: $pkg_config" >&5
14610 echo "${ECHO_T}$pkg_config" >&6
14612 echo "$as_me:$LINENO: result: no" >&5
14613 echo "${ECHO_T}no" >&6
14616 test -n "$pkg_config" && break
14620 if test -z "$pkg_config" ; then
14621 { echo "$as_me:$LINENO: WARNING: pkg-config not found!" >&5
14622 echo "$as_me: WARNING: pkg-config not found!" >&2;}
14627 # Utility function for running pkg-config-based tests...
14630 pkg_check_version() {
14631 if test "$ok" = yes ; then
14634 echo "$as_me:$LINENO: checking for $req" >&5
14635 echo $ECHO_N "checking for $req... $ECHO_C" >&6
14636 if $pkg_config --exists "$req" ; then
14637 vers=`$pkg_config --modversion "$req"`
14638 if $pkg_config --exists "$req >= $min" ; then
14639 echo "$as_me:$LINENO: result: $vers" >&5
14640 echo "${ECHO_T}$vers" >&6
14644 echo "$as_me:$LINENO: result: $vers (wanted >= $min)" >&5
14645 echo "${ECHO_T}$vers (wanted >= $min)" >&6
14650 echo "$as_me:$LINENO: result: no" >&5
14651 echo "${ECHO_T}no" >&6
14662 if test "$with_gtk" = yes; then
14666 pkg_check_version gtk+-2.0 2.0.1 ; ac_gtk_version_string="$vers"
14667 pkg_check_version gmodule-2.0 2.0.0
14668 pkg_check_version libxml-2.0 2.4.6
14669 pkg_check_version libglade-2.0 1.99.0
14670 pkg_check_version gdk-pixbuf-2.0 2.0.0
14671 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
14674 if test "$have_gtk" = no; then
14675 if test -n "$ac_gtk_version_string" ; then
14676 gtk_halfassed="$ac_gtk_version_string"
14677 gtk_halfassed_lib="$req"
14681 if test "$have_gtk" = yes; then
14682 parse_gtk_version_string
14686 if test "$have_gtk" = yes; then
14687 echo "$as_me:$LINENO: checking for Gtk includes" >&5
14688 echo $ECHO_N "checking for Gtk includes... $ECHO_C" >&6
14689 if test "${ac_cv_gtk_config_cflags+set}" = set; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14692 ac_cv_gtk_config_cflags=`$pkg_config --cflags $pkgs`
14694 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
14695 echo "${ECHO_T}$ac_cv_gtk_config_cflags" >&6
14696 echo "$as_me:$LINENO: checking for Gtk libs" >&5
14697 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
14698 if test "${ac_cv_gtk_config_libs+set}" = set; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 ac_cv_gtk_config_libs=`$pkg_config --libs $pkgs`
14703 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
14704 echo "${ECHO_T}$ac_cv_gtk_config_libs" >&6
14707 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
14708 ac_gtk_config_libs=$ac_cv_gtk_config_libs
14712 if test "$have_gtk" = yes; then
14713 GTK_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
14714 GTK_DATADIR="$GTK_DATADIR/share"
14717 if test "$have_gtk" = yes; then
14718 INCLUDES="$INCLUDES $ac_gtk_config_cflags"
14719 GTK_LIBS="$GTK_LIBS $ac_gtk_config_libs"
14720 cat >>confdefs.h <<\_ACEOF
14724 cat >>confdefs.h <<\_ACEOF
14725 #define HAVE_GTK2 1
14728 cat >>confdefs.h <<\_ACEOF
14737 # Check for the various Gnome help and URL loading programs.
14739 if test "$have_gtk" = yes; then
14740 for ac_prog in gnome-open
14742 # Extract the first word of "$ac_prog", so it can be a program name with args.
14743 set dummy $ac_prog; ac_word=$2
14744 echo "$as_me:$LINENO: checking for $ac_word" >&5
14745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14746 if test "${ac_cv_prog_gnome_open_program+set}" = set; then
14747 echo $ECHO_N "(cached) $ECHO_C" >&6
14749 if test -n "$gnome_open_program"; then
14750 ac_cv_prog_gnome_open_program="$gnome_open_program" # Let the user override the test.
14752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14753 for as_dir in $PATH
14756 test -z "$as_dir" && as_dir=.
14757 for ac_exec_ext in '' $ac_executable_extensions; do
14758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14759 ac_cv_prog_gnome_open_program="$ac_prog"
14760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14768 gnome_open_program=$ac_cv_prog_gnome_open_program
14769 if test -n "$gnome_open_program"; then
14770 echo "$as_me:$LINENO: result: $gnome_open_program" >&5
14771 echo "${ECHO_T}$gnome_open_program" >&6
14773 echo "$as_me:$LINENO: result: no" >&5
14774 echo "${ECHO_T}no" >&6
14777 test -n "$gnome_open_program" && break
14780 for ac_prog in gnome-url-show
14782 # Extract the first word of "$ac_prog", so it can be a program name with args.
14783 set dummy $ac_prog; ac_word=$2
14784 echo "$as_me:$LINENO: checking for $ac_word" >&5
14785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14786 if test "${ac_cv_prog_gnome_url_show_program+set}" = set; then
14787 echo $ECHO_N "(cached) $ECHO_C" >&6
14789 if test -n "$gnome_url_show_program"; then
14790 ac_cv_prog_gnome_url_show_program="$gnome_url_show_program" # Let the user override the test.
14792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14793 for as_dir in $PATH
14796 test -z "$as_dir" && as_dir=.
14797 for ac_exec_ext in '' $ac_executable_extensions; do
14798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14799 ac_cv_prog_gnome_url_show_program="$ac_prog"
14800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14808 gnome_url_show_program=$ac_cv_prog_gnome_url_show_program
14809 if test -n "$gnome_url_show_program"; then
14810 echo "$as_me:$LINENO: result: $gnome_url_show_program" >&5
14811 echo "${ECHO_T}$gnome_url_show_program" >&6
14813 echo "$as_me:$LINENO: result: no" >&5
14814 echo "${ECHO_T}no" >&6
14817 test -n "$gnome_url_show_program" && break
14823 ###############################################################################
14827 ###############################################################################
14830 with_motif_req=unspecified
14832 # Check whether --with-motif or --without-motif was given.
14833 if test "${with_motif+set}" = set; then
14834 withval="$with_motif"
14835 with_motif="$withval"; with_motif_req="$withval"
14841 case "$with_motif" in
14846 echo "$as_me:$LINENO: checking for Motif headers" >&5
14847 echo $ECHO_N "checking for Motif headers... $ECHO_C" >&6
14848 d=$with_motif/include
14849 if test -d $d; then
14850 X_CFLAGS="-I$d $X_CFLAGS"
14851 echo "$as_me:$LINENO: result: $d" >&5
14852 echo "${ECHO_T}$d" >&6
14854 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14855 echo "${ECHO_T}not found ($d: no such directory)" >&6
14858 echo "$as_me:$LINENO: checking for Motif libs" >&5
14859 echo $ECHO_N "checking for Motif libs... $ECHO_C" >&6
14861 if test -d $d; then
14862 X_LIBS="-L$d $X_LIBS"
14863 echo "$as_me:$LINENO: result: $d" >&5
14864 echo "${ECHO_T}$d" >&6
14866 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14867 echo "${ECHO_T}not found ($d: no such directory)" >&6
14870 # replace the directory string with "yes".
14871 with_motif_req="yes"
14872 with_motif=$with_motif_req
14877 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
14878 echo " If it is a directory, then \`DIR/include' will be added to"
14879 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14885 if test "$with_motif" != yes -a "$with_motif" != no ; then
14886 echo "error: must be yes or no: --with-motif=$with_motif"
14890 if test "$with_motif" = yes; then
14893 ac_save_CPPFLAGS="$CPPFLAGS"
14894 if test \! -z "$includedir" ; then
14895 CPPFLAGS="$CPPFLAGS -I$includedir"
14897 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14898 echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
14899 echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6
14900 if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
14901 echo $ECHO_N "(cached) $ECHO_C" >&6
14903 cat >conftest.$ac_ext <<_ACEOF
14906 cat confdefs.h >>conftest.$ac_ext
14907 cat >>conftest.$ac_ext <<_ACEOF
14908 /* end confdefs.h. */
14909 #include <stdlib.h>
14911 #include <X11/Intrinsic.h>
14915 rm -f conftest.$ac_objext
14916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14917 (eval $ac_compile) 2>conftest.er1
14919 grep -v '^ *+' conftest.er1 >conftest.err
14921 cat conftest.err >&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } &&
14924 { ac_try='test -z "$ac_c_werror_flag"
14925 || test ! -s conftest.err'
14926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14927 (eval $ac_try) 2>&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); }; } &&
14931 { ac_try='test -s conftest.$ac_objext'
14932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14933 (eval $ac_try) 2>&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); }; }; then
14937 ac_cv_header_Xm_Xm_h=yes
14939 echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14942 ac_cv_header_Xm_Xm_h=no
14944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14946 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
14947 echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6
14948 if test $ac_cv_header_Xm_Xm_h = yes; then
14950 cat >>confdefs.h <<\_ACEOF
14951 #define HAVE_MOTIF 1
14954 MOTIF_LIBS="$MOTIF_LIBS -lXm"
14958 CPPFLAGS="$ac_save_CPPFLAGS"
14962 if test "$have_motif" = yes; then
14964 ac_save_CPPFLAGS="$CPPFLAGS"
14965 if test \! -z "$includedir" ; then
14966 CPPFLAGS="$CPPFLAGS -I$includedir"
14968 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14969 echo "$as_me:$LINENO: checking for Xm/ComboBox.h" >&5
14970 echo $ECHO_N "checking for Xm/ComboBox.h... $ECHO_C" >&6
14971 if test "${ac_cv_header_Xm_ComboBox_h+set}" = set; then
14972 echo $ECHO_N "(cached) $ECHO_C" >&6
14974 cat >conftest.$ac_ext <<_ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h. */
14980 #include <stdlib.h>
14982 #include <X11/Intrinsic.h>
14984 #include <Xm/ComboBox.h>
14986 rm -f conftest.$ac_objext
14987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14988 (eval $ac_compile) 2>conftest.er1
14990 grep -v '^ *+' conftest.er1 >conftest.err
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } &&
14995 { ac_try='test -z "$ac_c_werror_flag"
14996 || test ! -s conftest.err'
14997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); }; } &&
15002 { ac_try='test -s conftest.$ac_objext'
15003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15008 ac_cv_header_Xm_ComboBox_h=yes
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15013 ac_cv_header_Xm_ComboBox_h=no
15015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15017 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_ComboBox_h" >&5
15018 echo "${ECHO_T}$ac_cv_header_Xm_ComboBox_h" >&6
15019 if test $ac_cv_header_Xm_ComboBox_h = yes; then
15020 cat >>confdefs.h <<\_ACEOF
15021 #define HAVE_XMCOMBOBOX 1
15027 CPPFLAGS="$ac_save_CPPFLAGS"
15031 ###############################################################################
15033 # Checking whether Motif is really Lesstif.
15035 ###############################################################################
15038 if test "$have_motif" = yes ; then
15039 echo "$as_me:$LINENO: checking whether Motif is really LessTif" >&5
15040 echo $ECHO_N "checking whether Motif is really LessTif... $ECHO_C" >&6
15041 if test "${ac_cv_have_lesstif+set}" = set; then
15042 echo $ECHO_N "(cached) $ECHO_C" >&6
15045 ac_save_CPPFLAGS="$CPPFLAGS"
15046 if test \! -z "$includedir" ; then
15047 CPPFLAGS="$CPPFLAGS -I$includedir"
15049 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15050 cat >conftest.$ac_ext <<_ACEOF
15053 cat confdefs.h >>conftest.$ac_ext
15054 cat >>conftest.$ac_ext <<_ACEOF
15055 /* end confdefs.h. */
15060 long vers = LesstifVersion;
15065 rm -f conftest.$ac_objext
15066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15067 (eval $ac_compile) 2>conftest.er1
15069 grep -v '^ *+' conftest.er1 >conftest.err
15071 cat conftest.err >&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); } &&
15074 { ac_try='test -z "$ac_c_werror_flag"
15075 || test ! -s conftest.err'
15076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077 (eval $ac_try) 2>&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; } &&
15081 { ac_try='test -s conftest.$ac_objext'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; }; then
15087 ac_cv_have_lesstif=yes
15089 echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15092 ac_cv_have_lesstif=no
15094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15095 CPPFLAGS="$ac_save_CPPFLAGS"
15097 echo "$as_me:$LINENO: result: $ac_cv_have_lesstif" >&5
15098 echo "${ECHO_T}$ac_cv_have_lesstif" >&6
15099 have_lesstif=$ac_cv_have_lesstif
15103 lesstif_version=unknown
15104 lesstif_version_string=unknown
15106 if test "$have_lesstif" = yes ; then
15108 echo unknown > conftest-lt
15109 echo "$as_me:$LINENO: checking LessTif version number" >&5
15110 echo $ECHO_N "checking LessTif version number... $ECHO_C" >&6
15111 if test "${ac_cv_lesstif_version_string+set}" = set; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15115 ac_save_CPPFLAGS="$CPPFLAGS"
15116 if test \! -z "$includedir" ; then
15117 CPPFLAGS="$CPPFLAGS -I$includedir"
15119 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15120 if test "$cross_compiling" = yes; then
15121 ac_cv_lesstif_version=unknown
15122 ac_cv_lesstif_version_string=unknown
15124 cat >conftest.$ac_ext <<_ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h. */
15133 FILE *f = fopen("conftest-lt", "w");
15135 fprintf(f, "%d %d.%d\n", LesstifVersion,
15136 LESSTIF_VERSION, LESSTIF_REVISION);
15141 rm -f conftest$ac_exeext
15142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15143 (eval $ac_link) 2>&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15148 (eval $ac_try) 2>&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); }; }; then
15152 ltv=`cat conftest-lt`
15153 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
15154 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
15156 echo "$as_me: program exited with status $ac_status" >&5
15157 echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15160 ( exit $ac_status )
15161 ac_cv_lesstif_version=unknown
15162 ac_cv_lesstif_version_string=unknown
15164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15166 CPPFLAGS="$ac_save_CPPFLAGS"
15168 echo "$as_me:$LINENO: result: $ac_cv_lesstif_version_string" >&5
15169 echo "${ECHO_T}$ac_cv_lesstif_version_string" >&6
15171 lesstif_version=$ac_cv_lesstif_version
15172 lesstif_version_string=$ac_cv_lesstif_version_string
15177 if test "$have_motif" = yes ; then
15179 echo unknown > conftest-mt
15180 echo "$as_me:$LINENO: checking Motif version number" >&5
15181 echo $ECHO_N "checking Motif version number... $ECHO_C" >&6
15182 if test "${ac_cv_motif_version_string+set}" = set; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15186 ac_save_CPPFLAGS="$CPPFLAGS"
15187 if test \! -z "$includedir" ; then
15188 CPPFLAGS="$CPPFLAGS -I$includedir"
15190 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15191 if test "$cross_compiling" = yes; then
15192 ac_cv_motif_version=unknown
15193 ac_cv_motif_version_string=unknown
15195 cat >conftest.$ac_ext <<_ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h. */
15204 FILE *f = fopen("conftest-mt", "w");
15206 fprintf(f, "%d %d.%d\n", XmVersion,
15207 XmVERSION, XmREVISION);
15212 rm -f conftest$ac_exeext
15213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15214 (eval $ac_link) 2>&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15219 (eval $ac_try) 2>&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); }; }; then
15223 mtv=`cat conftest-mt`
15224 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
15225 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
15227 echo "$as_me: program exited with status $ac_status" >&5
15228 echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15231 ( exit $ac_status )
15232 ac_cv_motif_version=unknown
15233 ac_cv_motif_version_string=unknown
15235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15237 CPPFLAGS="$ac_save_CPPFLAGS"
15239 echo "$as_me:$LINENO: result: $ac_cv_motif_version_string" >&5
15240 echo "${ECHO_T}$ac_cv_motif_version_string" >&6
15242 motif_version=$ac_cv_motif_version
15243 motif_version_string=$ac_cv_motif_version_string
15248 ###############################################################################
15250 # Checking whether Motif requires -lXpm.
15252 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
15253 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
15254 # of the library whether to build the XPM code into libXm, or whether
15255 # to rely on an external libXm. So the only way to tell whether XPM is
15256 # a link-time requirement is to examine libXm.a, which is very
15257 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
15258 # always link against XPM if the XPM lib exists (and this will be a
15259 # no-op if libXm happens to already have the XPM code in it.)
15261 ###############################################################################
15263 motif_requires_xpm=no
15264 if test "$have_motif" = yes ; then
15265 echo "$as_me:$LINENO: checking whether Motif requires XPM" >&5
15266 echo $ECHO_N "checking whether Motif requires XPM... $ECHO_C" >&6
15267 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
15269 motif_requires_xpm=yes
15270 echo "$as_me:$LINENO: result: maybe" >&5
15271 echo "${ECHO_T}maybe" >&6
15273 echo "$as_me:$LINENO: result: no" >&5
15274 echo "${ECHO_T}no" >&6
15279 ###############################################################################
15281 # Checking whether Motif requires -lXp.
15283 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
15284 # Extension". Why this extension isn't in -lXext with all the others,
15287 ###############################################################################
15290 if test "$have_motif" = yes ; then
15293 ac_save_CPPFLAGS="$CPPFLAGS"
15294 ac_save_LDFLAGS="$LDFLAGS"
15295 # ac_save_LIBS="$LIBS"
15297 if test \! -z "$includedir" ; then
15298 CPPFLAGS="$CPPFLAGS -I$includedir"
15300 # note: $X_CFLAGS includes $x_includes
15301 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15303 if test \! -z "$libdir" ; then
15304 LDFLAGS="$LDFLAGS -L$libdir"
15306 # note: $X_LIBS includes $x_libraries
15307 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15309 echo "$as_me:$LINENO: checking for XpQueryExtension in -lXp" >&5
15310 echo $ECHO_N "checking for XpQueryExtension in -lXp... $ECHO_C" >&6
15311 if test "${ac_cv_lib_Xp_XpQueryExtension+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15314 ac_check_lib_save_LIBS=$LIBS
15315 LIBS="-lXp -lX11 -lXext -lm $LIBS"
15316 cat >conftest.$ac_ext <<_ACEOF
15319 cat confdefs.h >>conftest.$ac_ext
15320 cat >>conftest.$ac_ext <<_ACEOF
15321 /* end confdefs.h. */
15323 /* Override any gcc2 internal prototype to avoid an error. */
15327 /* We use char because int might match the return type of a gcc2
15328 builtin and then its argument prototype would still apply. */
15329 char XpQueryExtension ();
15333 XpQueryExtension ();
15338 rm -f conftest.$ac_objext conftest$ac_exeext
15339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15340 (eval $ac_link) 2>conftest.er1
15342 grep -v '^ *+' conftest.er1 >conftest.err
15344 cat conftest.err >&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } &&
15347 { ac_try='test -z "$ac_c_werror_flag"
15348 || test ! -s conftest.err'
15349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15350 (eval $ac_try) 2>&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); }; } &&
15354 { ac_try='test -s conftest$ac_exeext'
15355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15356 (eval $ac_try) 2>&5
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); }; }; then
15360 ac_cv_lib_Xp_XpQueryExtension=yes
15362 echo "$as_me: failed program was:" >&5
15363 sed 's/^/| /' conftest.$ac_ext >&5
15365 ac_cv_lib_Xp_XpQueryExtension=no
15367 rm -f conftest.err conftest.$ac_objext \
15368 conftest$ac_exeext conftest.$ac_ext
15369 LIBS=$ac_check_lib_save_LIBS
15371 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
15372 echo "${ECHO_T}$ac_cv_lib_Xp_XpQueryExtension" >&6
15373 if test $ac_cv_lib_Xp_XpQueryExtension = yes; then
15374 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
15379 CPPFLAGS="$ac_save_CPPFLAGS"
15380 LDFLAGS="$ac_save_LDFLAGS"
15381 # LIBS="$ac_save_LIBS"
15386 ###############################################################################
15388 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
15390 ###############################################################################
15393 if test "$have_motif" = yes ; then
15395 ac_save_CPPFLAGS="$CPPFLAGS"
15396 ac_save_LDFLAGS="$LDFLAGS"
15397 # ac_save_LIBS="$LIBS"
15399 if test \! -z "$includedir" ; then
15400 CPPFLAGS="$CPPFLAGS -I$includedir"
15402 # note: $X_CFLAGS includes $x_includes
15403 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15405 if test \! -z "$libdir" ; then
15406 LDFLAGS="$LDFLAGS -L$libdir"
15408 # note: $X_LIBS includes $x_libraries
15409 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15411 echo "$as_me:$LINENO: checking for _Xsetlocale in -lXintl" >&5
15412 echo $ECHO_N "checking for _Xsetlocale in -lXintl... $ECHO_C" >&6
15413 if test "${ac_cv_lib_Xintl__Xsetlocale+set}" = set; then
15414 echo $ECHO_N "(cached) $ECHO_C" >&6
15416 ac_check_lib_save_LIBS=$LIBS
15417 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
15418 cat >conftest.$ac_ext <<_ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15425 /* Override any gcc2 internal prototype to avoid an error. */
15429 /* We use char because int might match the return type of a gcc2
15430 builtin and then its argument prototype would still apply. */
15431 char _Xsetlocale ();
15440 rm -f conftest.$ac_objext conftest$ac_exeext
15441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15442 (eval $ac_link) 2>conftest.er1
15444 grep -v '^ *+' conftest.er1 >conftest.err
15446 cat conftest.err >&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); } &&
15449 { ac_try='test -z "$ac_c_werror_flag"
15450 || test ! -s conftest.err'
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; } &&
15456 { ac_try='test -s conftest$ac_exeext'
15457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458 (eval $ac_try) 2>&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); }; }; then
15462 ac_cv_lib_Xintl__Xsetlocale=yes
15464 echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15467 ac_cv_lib_Xintl__Xsetlocale=no
15469 rm -f conftest.err conftest.$ac_objext \
15470 conftest$ac_exeext conftest.$ac_ext
15471 LIBS=$ac_check_lib_save_LIBS
15473 echo "$as_me:$LINENO: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
15474 echo "${ECHO_T}$ac_cv_lib_Xintl__Xsetlocale" >&6
15475 if test $ac_cv_lib_Xintl__Xsetlocale = yes; then
15481 CPPFLAGS="$ac_save_CPPFLAGS"
15482 LDFLAGS="$ac_save_LDFLAGS"
15483 # LIBS="$ac_save_LIBS"
15485 if test "$have_xintl" = yes; then
15486 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
15491 ###############################################################################
15493 # Check for -lGL or -lMesaGL.
15495 ###############################################################################
15499 with_gl_req=unspecified
15502 # Check whether --with-gl or --without-gl was given.
15503 if test "${with_gl+set}" = set; then
15505 with_gl="$withval"; with_gl_req="$withval"
15516 echo "$as_me:$LINENO: checking for GL headers" >&5
15517 echo $ECHO_N "checking for GL headers... $ECHO_C" >&6
15519 if test -d $d; then
15520 X_CFLAGS="-I$d $X_CFLAGS"
15521 echo "$as_me:$LINENO: result: $d" >&5
15522 echo "${ECHO_T}$d" >&6
15524 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15525 echo "${ECHO_T}not found ($d: no such directory)" >&6
15528 echo "$as_me:$LINENO: checking for GL libs" >&5
15529 echo $ECHO_N "checking for GL libs... $ECHO_C" >&6
15531 if test -d $d; then
15532 X_LIBS="-L$d $X_LIBS"
15533 echo "$as_me:$LINENO: result: $d" >&5
15534 echo "${ECHO_T}$d" >&6
15536 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15537 echo "${ECHO_T}not found ($d: no such directory)" >&6
15540 # replace the directory string with "yes".
15542 with_gl=$with_gl_req
15547 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
15548 echo " If it is a directory, then \`DIR/include' will be added to"
15549 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15555 ac_mesagl_version=unknown
15556 ac_mesagl_version_string=unknown
15558 if test "$with_gl" = yes; then
15560 ac_save_CPPFLAGS="$CPPFLAGS"
15561 if test \! -z "$includedir" ; then
15562 CPPFLAGS="$CPPFLAGS -I$includedir"
15564 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15565 if test "${ac_cv_header_GL_gl_h+set}" = set; then
15566 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
15567 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
15568 if test "${ac_cv_header_GL_gl_h+set}" = set; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15571 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
15572 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
15574 # Is the header compilable?
15575 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
15576 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
15577 cat >conftest.$ac_ext <<_ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 $ac_includes_default
15586 rm -f conftest.$ac_objext
15587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15588 (eval $ac_compile) 2>conftest.er1
15590 grep -v '^ *+' conftest.er1 >conftest.err
15592 cat conftest.err >&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } &&
15595 { ac_try='test -z "$ac_c_werror_flag"
15596 || test ! -s conftest.err'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; } &&
15602 { ac_try='test -s conftest.$ac_objext'
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 ac_header_compiler=yes
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15613 ac_header_compiler=no
15615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15617 echo "${ECHO_T}$ac_header_compiler" >&6
15619 # Is the header present?
15620 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
15621 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
15622 cat >conftest.$ac_ext <<_ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h. */
15630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15633 grep -v '^ *+' conftest.er1 >conftest.err
15635 cat conftest.err >&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); } >/dev/null; then
15638 if test -s conftest.err; then
15639 ac_cpp_err=$ac_c_preproc_warn_flag
15640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15647 if test -z "$ac_cpp_err"; then
15648 ac_header_preproc=yes
15650 echo "$as_me: failed program was:" >&5
15651 sed 's/^/| /' conftest.$ac_ext >&5
15653 ac_header_preproc=no
15655 rm -f conftest.err conftest.$ac_ext
15656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15657 echo "${ECHO_T}$ac_header_preproc" >&6
15659 # So? What about this header?
15660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15662 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15663 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15664 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
15665 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
15666 ac_header_preproc=yes
15669 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
15670 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
15671 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
15672 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
15673 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
15674 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
15675 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
15676 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
15677 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
15678 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
15679 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
15680 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
15683 ## ------------------------------------------ ##
15684 ## Report this to the AC_PACKAGE_NAME lists. ##
15685 ## ------------------------------------------ ##
15688 sed "s/^/$as_me: WARNING: /" >&2
15691 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
15692 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
15693 if test "${ac_cv_header_GL_gl_h+set}" = set; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15696 ac_cv_header_GL_gl_h=$ac_header_preproc
15698 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
15699 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
15702 if test $ac_cv_header_GL_gl_h = yes; then
15709 CPPFLAGS="$ac_save_CPPFLAGS"
15710 if test "$have_gl" = yes ; then
15712 ac_save_CPPFLAGS="$CPPFLAGS"
15713 if test \! -z "$includedir" ; then
15714 CPPFLAGS="$CPPFLAGS -I$includedir"
15716 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15717 echo "$as_me:$LINENO: checking for GL/glx.h" >&5
15718 echo $ECHO_N "checking for GL/glx.h... $ECHO_C" >&6
15719 if test "${ac_cv_header_GL_glx_h+set}" = set; then
15720 echo $ECHO_N "(cached) $ECHO_C" >&6
15722 cat >conftest.$ac_ext <<_ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h. */
15730 #include <GL/glx.h>
15732 rm -f conftest.$ac_objext
15733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15734 (eval $ac_compile) 2>conftest.er1
15736 grep -v '^ *+' conftest.er1 >conftest.err
15738 cat conftest.err >&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); } &&
15741 { ac_try='test -z "$ac_c_werror_flag"
15742 || test ! -s conftest.err'
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; } &&
15748 { ac_try='test -s conftest.$ac_objext'
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 ac_cv_header_GL_glx_h=yes
15756 echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15759 ac_cv_header_GL_glx_h=no
15761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15763 echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5
15764 echo "${ECHO_T}$ac_cv_header_GL_glx_h" >&6
15765 if test $ac_cv_header_GL_glx_h = yes; then
15772 CPPFLAGS="$ac_save_CPPFLAGS"
15775 # If we have the headers, try and figure out which vendor it's from.
15777 if test "$have_gl" = yes ; then
15779 # We need to know whether it's MesaGL so that we know which libraries
15782 echo "$as_me:$LINENO: checking whether GL is really MesaGL" >&5
15783 echo $ECHO_N "checking whether GL is really MesaGL... $ECHO_C" >&6
15784 if test "${ac_cv_have_mesa_gl+set}" = set; then
15785 echo $ECHO_N "(cached) $ECHO_C" >&6
15787 ac_cv_have_mesa_gl=no
15789 ac_save_CPPFLAGS="$CPPFLAGS"
15790 if test \! -z "$includedir" ; then
15791 CPPFLAGS="$CPPFLAGS -I$includedir"
15793 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15794 cat >conftest.$ac_ext <<_ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15800 #include <GL/glx.h>
15803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15804 $EGREP "Mesa|MESA" >/dev/null 2>&1; then
15805 ac_cv_have_mesa_gl=yes
15809 CPPFLAGS="$ac_save_CPPFLAGS"
15812 echo "$as_me:$LINENO: result: $ac_cv_have_mesa_gl" >&5
15813 echo "${ECHO_T}$ac_cv_have_mesa_gl" >&6
15814 ac_have_mesa_gl=$ac_cv_have_mesa_gl
15821 # Some versions of MesaGL are compiled to require -lpthread.
15822 # So if the Mesa headers exist, and -lpthread exists, then always
15823 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
15825 if test "$ac_have_mesa_gl" = yes; then
15826 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
15827 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
15828 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
15829 echo $ECHO_N "(cached) $ECHO_C" >&6
15831 ac_check_lib_save_LIBS=$LIBS
15832 LIBS="-lpthread $LIBS"
15833 cat >conftest.$ac_ext <<_ACEOF
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h. */
15840 /* Override any gcc2 internal prototype to avoid an error. */
15844 /* We use char because int might match the return type of a gcc2
15845 builtin and then its argument prototype would still apply. */
15846 char pthread_create ();
15855 rm -f conftest.$ac_objext conftest$ac_exeext
15856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15857 (eval $ac_link) 2>conftest.er1
15859 grep -v '^ *+' conftest.er1 >conftest.err
15861 cat conftest.err >&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } &&
15864 { ac_try='test -z "$ac_c_werror_flag"
15865 || test ! -s conftest.err'
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; } &&
15871 { ac_try='test -s conftest$ac_exeext'
15872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873 (eval $ac_try) 2>&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; }; then
15877 ac_cv_lib_pthread_pthread_create=yes
15879 echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15882 ac_cv_lib_pthread_pthread_create=no
15884 rm -f conftest.err conftest.$ac_objext \
15885 conftest$ac_exeext conftest.$ac_ext
15886 LIBS=$ac_check_lib_save_LIBS
15888 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
15889 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
15890 if test $ac_cv_lib_pthread_pthread_create = yes; then
15891 GL_LIBS="-lpthread"
15897 # If we have Mesa headers, check to see if we can link against -lMesaGL.
15898 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
15899 # Else, warn that GL is busted. (We have the headers, but no libs.)
15902 if test "$ac_have_mesa_gl" = yes ; then
15904 ac_save_CPPFLAGS="$CPPFLAGS"
15905 ac_save_LDFLAGS="$LDFLAGS"
15906 # ac_save_LIBS="$LIBS"
15908 if test \! -z "$includedir" ; then
15909 CPPFLAGS="$CPPFLAGS -I$includedir"
15911 # note: $X_CFLAGS includes $x_includes
15912 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15914 if test \! -z "$libdir" ; then
15915 LDFLAGS="$LDFLAGS -L$libdir"
15917 # note: $X_LIBS includes $x_libraries
15918 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15920 echo "$as_me:$LINENO: checking for glXCreateContext in -lMesaGL" >&5
15921 echo $ECHO_N "checking for glXCreateContext in -lMesaGL... $ECHO_C" >&6
15922 if test "${ac_cv_lib_MesaGL_glXCreateContext+set}" = set; then
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15925 ac_check_lib_save_LIBS=$LIBS
15926 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
15927 cat >conftest.$ac_ext <<_ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15934 /* Override any gcc2 internal prototype to avoid an error. */
15938 /* We use char because int might match the return type of a gcc2
15939 builtin and then its argument prototype would still apply. */
15940 char glXCreateContext ();
15944 glXCreateContext ();
15949 rm -f conftest.$ac_objext conftest$ac_exeext
15950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15951 (eval $ac_link) 2>conftest.er1
15953 grep -v '^ *+' conftest.er1 >conftest.err
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } &&
15958 { ac_try='test -z "$ac_c_werror_flag"
15959 || test ! -s conftest.err'
15960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961 (eval $ac_try) 2>&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; } &&
15965 { ac_try='test -s conftest$ac_exeext'
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; }; then
15971 ac_cv_lib_MesaGL_glXCreateContext=yes
15973 echo "$as_me: failed program was:" >&5
15974 sed 's/^/| /' conftest.$ac_ext >&5
15976 ac_cv_lib_MesaGL_glXCreateContext=no
15978 rm -f conftest.err conftest.$ac_objext \
15979 conftest$ac_exeext conftest.$ac_ext
15980 LIBS=$ac_check_lib_save_LIBS
15982 echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
15983 echo "${ECHO_T}$ac_cv_lib_MesaGL_glXCreateContext" >&6
15984 if test $ac_cv_lib_MesaGL_glXCreateContext = yes; then
15986 GL_LIBS="-lMesaGL -lMesaGLU $VIDMODE_LIBS $GL_LIBS"
15989 CPPFLAGS="$ac_save_CPPFLAGS"
15990 LDFLAGS="$ac_save_LDFLAGS"
15991 # LIBS="$ac_save_LIBS"
15995 if test "$gl_lib_1" = "" ; then
15997 ac_save_CPPFLAGS="$CPPFLAGS"
15998 ac_save_LDFLAGS="$LDFLAGS"
15999 # ac_save_LIBS="$LIBS"
16001 if test \! -z "$includedir" ; then
16002 CPPFLAGS="$CPPFLAGS -I$includedir"
16004 # note: $X_CFLAGS includes $x_includes
16005 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16007 if test \! -z "$libdir" ; then
16008 LDFLAGS="$LDFLAGS -L$libdir"
16010 # note: $X_LIBS includes $x_libraries
16011 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16013 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
16014 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
16015 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16018 ac_check_lib_save_LIBS=$LIBS
16019 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext $VIDMODE_LIBS -lm $LIBS"
16020 cat >conftest.$ac_ext <<_ACEOF
16023 cat confdefs.h >>conftest.$ac_ext
16024 cat >>conftest.$ac_ext <<_ACEOF
16025 /* end confdefs.h. */
16027 /* Override any gcc2 internal prototype to avoid an error. */
16031 /* We use char because int might match the return type of a gcc2
16032 builtin and then its argument prototype would still apply. */
16033 char glXCreateContext ();
16037 glXCreateContext ();
16042 rm -f conftest.$ac_objext conftest$ac_exeext
16043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16044 (eval $ac_link) 2>conftest.er1
16046 grep -v '^ *+' conftest.er1 >conftest.err
16048 cat conftest.err >&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); } &&
16051 { ac_try='test -z "$ac_c_werror_flag"
16052 || test ! -s conftest.err'
16053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; } &&
16058 { ac_try='test -s conftest$ac_exeext'
16059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16060 (eval $ac_try) 2>&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); }; }; then
16064 ac_cv_lib_GL_glXCreateContext=yes
16066 echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16069 ac_cv_lib_GL_glXCreateContext=no
16071 rm -f conftest.err conftest.$ac_objext \
16072 conftest$ac_exeext conftest.$ac_ext
16073 LIBS=$ac_check_lib_save_LIBS
16075 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
16076 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
16077 if test $ac_cv_lib_GL_glXCreateContext = yes; then
16079 GL_LIBS="-lGL -lGLU $VIDMODE_LIBS $GL_LIBS"
16082 CPPFLAGS="$ac_save_CPPFLAGS"
16083 LDFLAGS="$ac_save_LDFLAGS"
16084 # LIBS="$ac_save_LIBS"
16088 if test "$gl_lib_1" = "" ; then
16089 # we have headers, but no libs -- bail.
16094 # linking works -- we can build the GL hacks.
16095 cat >>confdefs.h <<\_ACEOF
16099 if test "$ac_have_mesa_gl" = yes ; then
16100 cat >>confdefs.h <<\_ACEOF
16101 #define HAVE_MESA_GL 1
16109 # Now that we know we have GL headers and libs, do some more GL testing.
16112 if test "$have_gl" = yes ; then
16113 # If it's MesaGL, we'd like to issue a warning if the version number
16114 # is less than or equal to 2.6, because that version had a security bug.
16116 if test "$ac_have_mesa_gl" = yes; then
16118 echo "$as_me:$LINENO: checking MesaGL version number" >&5
16119 echo $ECHO_N "checking MesaGL version number... $ECHO_C" >&6
16120 if test "${ac_cv_mesagl_version_string+set}" = set; then
16121 echo $ECHO_N "(cached) $ECHO_C" >&6
16123 cat > conftest.$ac_ext <<EOF
16124 #line 16128 "configure"
16125 #include "confdefs.h"
16127 #ifndef MESA_MAJOR_VERSION
16128 # include <GL/xmesa.h>
16129 # ifdef XMESA_MAJOR_VERSION
16130 /* Around Mesa 3.2, they took out the Mesa version number, so instead,
16131 we have to check the XMesa version number (the number of the X protocol
16132 support, which seems to be the same as the Mesa version number.)
16134 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
16135 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
16137 /* Oh great. Some time after 3.4, they took out the xmesa.h header file,
16138 so we have no way of telling what version of Mesa this is at all.
16139 So, we'll guess that the osmesa version (the "offscreen protocol")
16140 is less than or equal to the real mesa version number. Except that
16141 if OSmesa is 3.3, assume at least Mesa 3.4, since OSmesa was 3.3 in
16142 Mesa 3.4. And Mesa 3.3 had xmesa.h. What a complete load of shit!
16144 # include <GL/osmesa.h>
16145 # define MESA_MAJOR_VERSION OSMESA_MAJOR_VERSION
16146 # define MESA_MINOR_VERSION OSMESA_MINOR_VERSION or newer, probably?
16147 # if OSMESA_MAJOR_VERSION == 3 && OSMESA_MINOR_VERSION == 3
16148 # undef MESA_MINOR_VERSION
16149 # define MESA_MINOR_VERSION 4 or newer, probably?
16153 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
16156 ac_save_CPPFLAGS="$CPPFLAGS"
16157 if test \! -z "$includedir" ; then
16158 CPPFLAGS="$CPPFLAGS -I$includedir"
16160 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16162 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | grep configure:`
16166 mglv=`echo "$mglv" | sed -n \
16167 's/^configure: *\([0-9][0-9]*\) *\([0-9].*\)$/\1.\2/p'`
16170 rm -f conftest.$ac_ext
16172 CPPFLAGS="$ac_save_CPPFLAGS"
16174 if test "$mglv" = ""; then
16175 ac_mesagl_version=unknown
16176 ac_mesagl_version_string=unknown
16178 ac_mesagl_version_string="$mglv"
16181 maj=`echo "$mglv" | sed -n 's/^\([0-9][0-9]*\)\..*$/\1/p'`
16182 min=`echo "$mglv" | sed -n 's/^.*\.\([0-9][0-9]*\).*$/\1/p'`
16184 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
16185 if test -z "$ac_mesagl_version"; then
16186 ac_mesagl_version=unknown
16187 ac_mesagl_version_string=unknown
16190 ac_cv_mesagl_version=$ac_mesagl_version
16191 ac_cv_mesagl_version_string=$ac_mesagl_version_string
16194 echo "$as_me:$LINENO: result: $ac_cv_mesagl_version_string" >&5
16195 echo "${ECHO_T}$ac_cv_mesagl_version_string" >&6
16196 ac_mesagl_version=$ac_cv_mesagl_version
16197 ac_mesagl_version_string=$ac_cv_mesagl_version_string
16201 # Check for OpenGL 1.1 features.
16204 ac_save_CPPFLAGS="$CPPFLAGS"
16205 ac_save_LDFLAGS="$LDFLAGS"
16206 # ac_save_LIBS="$LIBS"
16208 if test \! -z "$includedir" ; then
16209 CPPFLAGS="$CPPFLAGS -I$includedir"
16211 # note: $X_CFLAGS includes $x_includes
16212 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16214 if test \! -z "$libdir" ; then
16215 LDFLAGS="$LDFLAGS -L$libdir"
16217 # note: $X_LIBS includes $x_libraries
16218 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16220 as_ac_Lib=`echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
16221 echo "$as_me:$LINENO: checking for glBindTexture in -l$gl_lib_1" >&5
16222 echo $ECHO_N "checking for glBindTexture in -l$gl_lib_1... $ECHO_C" >&6
16223 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16224 echo $ECHO_N "(cached) $ECHO_C" >&6
16226 ac_check_lib_save_LIBS=$LIBS
16227 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
16228 cat >conftest.$ac_ext <<_ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16235 /* Override any gcc2 internal prototype to avoid an error. */
16239 /* We use char because int might match the return type of a gcc2
16240 builtin and then its argument prototype would still apply. */
16241 char glBindTexture ();
16250 rm -f conftest.$ac_objext conftest$ac_exeext
16251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16252 (eval $ac_link) 2>conftest.er1
16254 grep -v '^ *+' conftest.er1 >conftest.err
16256 cat conftest.err >&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); } &&
16259 { ac_try='test -z "$ac_c_werror_flag"
16260 || test ! -s conftest.err'
16261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262 (eval $ac_try) 2>&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; } &&
16266 { ac_try='test -s conftest$ac_exeext'
16267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268 (eval $ac_try) 2>&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); }; }; then
16272 eval "$as_ac_Lib=yes"
16274 echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16277 eval "$as_ac_Lib=no"
16279 rm -f conftest.err conftest.$ac_objext \
16280 conftest$ac_exeext conftest.$ac_ext
16281 LIBS=$ac_check_lib_save_LIBS
16283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16284 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16285 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16286 cat >>confdefs.h <<\_ACEOF
16287 #define HAVE_GLBINDTEXTURE 1
16294 CPPFLAGS="$ac_save_CPPFLAGS"
16295 LDFLAGS="$ac_save_LDFLAGS"
16296 # LIBS="$ac_save_LIBS"
16300 elif test "$with_gl" != no; then
16301 echo "error: must be yes or no: --with-gl=$with_gl"
16306 ###############################################################################
16310 ###############################################################################
16313 with_gle_req=unspecified
16316 # Check whether --with-gle or --without-gle was given.
16317 if test "${with_gle+set}" = set; then
16318 withval="$with_gle"
16319 with_gle="$withval"; with_gle_req="$withval"
16325 case "$with_gle" in
16330 echo "$as_me:$LINENO: checking for GLE headers" >&5
16331 echo $ECHO_N "checking for GLE headers... $ECHO_C" >&6
16332 d=$with_gle/include
16333 if test -d $d; then
16334 X_CFLAGS="-I$d $X_CFLAGS"
16335 echo "$as_me:$LINENO: result: $d" >&5
16336 echo "${ECHO_T}$d" >&6
16338 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16339 echo "${ECHO_T}not found ($d: no such directory)" >&6
16342 echo "$as_me:$LINENO: checking for GLE libs" >&5
16343 echo $ECHO_N "checking for GLE libs... $ECHO_C" >&6
16345 if test -d $d; then
16346 X_LIBS="-L$d $X_LIBS"
16347 echo "$as_me:$LINENO: result: $d" >&5
16348 echo "${ECHO_T}$d" >&6
16350 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16351 echo "${ECHO_T}not found ($d: no such directory)" >&6
16354 # replace the directory string with "yes".
16356 with_gle=$with_gle_req
16361 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
16362 echo " If it is a directory, then \`DIR/include' will be added to"
16363 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16371 if test "$have_gl" = no ; then
16373 elif test "$with_gle" = yes; then
16376 ac_save_CPPFLAGS="$CPPFLAGS"
16377 if test \! -z "$includedir" ; then
16378 CPPFLAGS="$CPPFLAGS -I$includedir"
16380 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16381 echo "$as_me:$LINENO: checking for GL/gle.h" >&5
16382 echo $ECHO_N "checking for GL/gle.h... $ECHO_C" >&6
16383 if test "${ac_cv_header_GL_gle_h+set}" = set; then
16384 echo $ECHO_N "(cached) $ECHO_C" >&6
16386 cat >conftest.$ac_ext <<_ACEOF
16389 cat confdefs.h >>conftest.$ac_ext
16390 cat >>conftest.$ac_ext <<_ACEOF
16391 /* end confdefs.h. */
16394 #include <GL/gle.h>
16396 rm -f conftest.$ac_objext
16397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16398 (eval $ac_compile) 2>conftest.er1
16400 grep -v '^ *+' conftest.er1 >conftest.err
16402 cat conftest.err >&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } &&
16405 { ac_try='test -z "$ac_c_werror_flag"
16406 || test ! -s conftest.err'
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; } &&
16412 { ac_try='test -s conftest.$ac_objext'
16413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16414 (eval $ac_try) 2>&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); }; }; then
16418 ac_cv_header_GL_gle_h=yes
16420 echo "$as_me: failed program was:" >&5
16421 sed 's/^/| /' conftest.$ac_ext >&5
16423 ac_cv_header_GL_gle_h=no
16425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16427 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gle_h" >&5
16428 echo "${ECHO_T}$ac_cv_header_GL_gle_h" >&6
16429 if test $ac_cv_header_GL_gle_h = yes; then
16436 CPPFLAGS="$ac_save_CPPFLAGS"
16437 if test "$have_gle3" = yes ; then
16441 ac_save_CPPFLAGS="$CPPFLAGS"
16442 if test \! -z "$includedir" ; then
16443 CPPFLAGS="$CPPFLAGS -I$includedir"
16445 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16446 echo "$as_me:$LINENO: checking for GL/gutil.h" >&5
16447 echo $ECHO_N "checking for GL/gutil.h... $ECHO_C" >&6
16448 if test "${ac_cv_header_GL_gutil_h+set}" = set; then
16449 echo $ECHO_N "(cached) $ECHO_C" >&6
16451 cat >conftest.$ac_ext <<_ACEOF
16454 cat confdefs.h >>conftest.$ac_ext
16455 cat >>conftest.$ac_ext <<_ACEOF
16456 /* end confdefs.h. */
16459 #include <GL/gutil.h>
16461 rm -f conftest.$ac_objext
16462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16463 (eval $ac_compile) 2>conftest.er1
16465 grep -v '^ *+' conftest.er1 >conftest.err
16467 cat conftest.err >&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } &&
16470 { ac_try='test -z "$ac_c_werror_flag"
16471 || test ! -s conftest.err'
16472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16473 (eval $ac_try) 2>&5
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; } &&
16477 { ac_try='test -s conftest.$ac_objext'
16478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16479 (eval $ac_try) 2>&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); }; }; then
16483 ac_cv_header_GL_gutil_h=yes
16485 echo "$as_me: failed program was:" >&5
16486 sed 's/^/| /' conftest.$ac_ext >&5
16488 ac_cv_header_GL_gutil_h=no
16490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16492 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gutil_h" >&5
16493 echo "${ECHO_T}$ac_cv_header_GL_gutil_h" >&6
16494 if test $ac_cv_header_GL_gutil_h = yes; then
16501 CPPFLAGS="$ac_save_CPPFLAGS"
16502 if test "$have_gle" = yes ; then
16504 ac_save_CPPFLAGS="$CPPFLAGS"
16505 if test \! -z "$includedir" ; then
16506 CPPFLAGS="$CPPFLAGS -I$includedir"
16508 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16509 echo "$as_me:$LINENO: checking for GL/tube.h" >&5
16510 echo $ECHO_N "checking for GL/tube.h... $ECHO_C" >&6
16511 if test "${ac_cv_header_GL_tube_h+set}" = set; then
16512 echo $ECHO_N "(cached) $ECHO_C" >&6
16514 cat >conftest.$ac_ext <<_ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16522 #include <GL/tube.h>
16524 rm -f conftest.$ac_objext
16525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16526 (eval $ac_compile) 2>conftest.er1
16528 grep -v '^ *+' conftest.er1 >conftest.err
16530 cat conftest.err >&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } &&
16533 { ac_try='test -z "$ac_c_werror_flag"
16534 || test ! -s conftest.err'
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; } &&
16540 { ac_try='test -s conftest.$ac_objext'
16541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16542 (eval $ac_try) 2>&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; }; then
16546 ac_cv_header_GL_tube_h=yes
16548 echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.$ac_ext >&5
16551 ac_cv_header_GL_tube_h=no
16553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16555 echo "$as_me:$LINENO: result: $ac_cv_header_GL_tube_h" >&5
16556 echo "${ECHO_T}$ac_cv_header_GL_tube_h" >&6
16557 if test $ac_cv_header_GL_tube_h = yes; then
16564 CPPFLAGS="$ac_save_CPPFLAGS"
16568 if test "$have_gle" = yes ; then
16572 ac_save_CPPFLAGS="$CPPFLAGS"
16573 ac_save_LDFLAGS="$LDFLAGS"
16574 # ac_save_LIBS="$LIBS"
16576 if test \! -z "$includedir" ; then
16577 CPPFLAGS="$CPPFLAGS -I$includedir"
16579 # note: $X_CFLAGS includes $x_includes
16580 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16582 if test \! -z "$libdir" ; then
16583 LDFLAGS="$LDFLAGS -L$libdir"
16585 # note: $X_LIBS includes $x_libraries
16586 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16588 echo "$as_me:$LINENO: checking for gleCreateGC in -lgle" >&5
16589 echo $ECHO_N "checking for gleCreateGC in -lgle... $ECHO_C" >&6
16590 if test "${ac_cv_lib_gle_gleCreateGC+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16593 ac_check_lib_save_LIBS=$LIBS
16594 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
16595 cat >conftest.$ac_ext <<_ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16602 /* Override any gcc2 internal prototype to avoid an error. */
16606 /* We use char because int might match the return type of a gcc2
16607 builtin and then its argument prototype would still apply. */
16608 char gleCreateGC ();
16617 rm -f conftest.$ac_objext conftest$ac_exeext
16618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16619 (eval $ac_link) 2>conftest.er1
16621 grep -v '^ *+' conftest.er1 >conftest.err
16623 cat conftest.err >&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); } &&
16626 { ac_try='test -z "$ac_c_werror_flag"
16627 || test ! -s conftest.err'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; } &&
16633 { ac_try='test -s conftest$ac_exeext'
16634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16635 (eval $ac_try) 2>&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; }; then
16639 ac_cv_lib_gle_gleCreateGC=yes
16641 echo "$as_me: failed program was:" >&5
16642 sed 's/^/| /' conftest.$ac_ext >&5
16644 ac_cv_lib_gle_gleCreateGC=no
16646 rm -f conftest.err conftest.$ac_objext \
16647 conftest$ac_exeext conftest.$ac_ext
16648 LIBS=$ac_check_lib_save_LIBS
16650 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_gleCreateGC" >&5
16651 echo "${ECHO_T}$ac_cv_lib_gle_gleCreateGC" >&6
16652 if test $ac_cv_lib_gle_gleCreateGC = yes; then
16653 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
16656 CPPFLAGS="$ac_save_CPPFLAGS"
16657 LDFLAGS="$ac_save_LDFLAGS"
16658 # LIBS="$ac_save_LIBS"
16661 if test "$have_gle" = yes ; then
16665 # sometimes the libmatrix stuff is included in libgle. look there first.
16667 # I don't get it. For some reason, this test passes on SGI, as if
16668 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
16669 # Yet the link is succeeding. Why???
16671 # AC_CHECK_X_LIB(gle, uview_direction_d,
16672 # [have_gle=yes; gle_halfassed=no],
16673 # [], $GL_LIBS -lX11 -lXext -lm)
16675 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
16677 if test "$have_gle3" = yes ; then
16679 ac_save_CPPFLAGS="$CPPFLAGS"
16680 ac_save_LDFLAGS="$LDFLAGS"
16681 # ac_save_LIBS="$LIBS"
16683 if test \! -z "$includedir" ; then
16684 CPPFLAGS="$CPPFLAGS -I$includedir"
16686 # note: $X_CFLAGS includes $x_includes
16687 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16689 if test \! -z "$libdir" ; then
16690 LDFLAGS="$LDFLAGS -L$libdir"
16692 # note: $X_LIBS includes $x_libraries
16693 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16695 echo "$as_me:$LINENO: checking for uview_direction in -lgle" >&5
16696 echo $ECHO_N "checking for uview_direction in -lgle... $ECHO_C" >&6
16697 if test "${ac_cv_lib_gle_uview_direction+set}" = set; then
16698 echo $ECHO_N "(cached) $ECHO_C" >&6
16700 ac_check_lib_save_LIBS=$LIBS
16701 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
16702 cat >conftest.$ac_ext <<_ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h. */
16709 /* Override any gcc2 internal prototype to avoid an error. */
16713 /* We use char because int might match the return type of a gcc2
16714 builtin and then its argument prototype would still apply. */
16715 char uview_direction ();
16719 uview_direction ();
16724 rm -f conftest.$ac_objext conftest$ac_exeext
16725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16726 (eval $ac_link) 2>conftest.er1
16728 grep -v '^ *+' conftest.er1 >conftest.err
16730 cat conftest.err >&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } &&
16733 { ac_try='test -z "$ac_c_werror_flag"
16734 || test ! -s conftest.err'
16735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 (eval $ac_try) 2>&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; } &&
16740 { ac_try='test -s conftest$ac_exeext'
16741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742 (eval $ac_try) 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; }; then
16746 ac_cv_lib_gle_uview_direction=yes
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16751 ac_cv_lib_gle_uview_direction=no
16753 rm -f conftest.err conftest.$ac_objext \
16754 conftest$ac_exeext conftest.$ac_ext
16755 LIBS=$ac_check_lib_save_LIBS
16757 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_uview_direction" >&5
16758 echo "${ECHO_T}$ac_cv_lib_gle_uview_direction" >&6
16759 if test $ac_cv_lib_gle_uview_direction = yes; then
16760 have_gle=yes; gle_halfassed=no
16763 CPPFLAGS="$ac_save_CPPFLAGS"
16764 LDFLAGS="$ac_save_LDFLAGS"
16765 # LIBS="$ac_save_LIBS"
16768 # if it wasn't in libgle, then look in libmatrix.
16769 if test "$have_gle" = no ; then
16771 ac_save_CPPFLAGS="$CPPFLAGS"
16772 ac_save_LDFLAGS="$LDFLAGS"
16773 # ac_save_LIBS="$LIBS"
16775 if test \! -z "$includedir" ; then
16776 CPPFLAGS="$CPPFLAGS -I$includedir"
16778 # note: $X_CFLAGS includes $x_includes
16779 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16781 if test \! -z "$libdir" ; then
16782 LDFLAGS="$LDFLAGS -L$libdir"
16784 # note: $X_LIBS includes $x_libraries
16785 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16787 echo "$as_me:$LINENO: checking for uview_direction_d in -lmatrix" >&5
16788 echo $ECHO_N "checking for uview_direction_d in -lmatrix... $ECHO_C" >&6
16789 if test "${ac_cv_lib_matrix_uview_direction_d+set}" = set; then
16790 echo $ECHO_N "(cached) $ECHO_C" >&6
16792 ac_check_lib_save_LIBS=$LIBS
16793 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
16794 cat >conftest.$ac_ext <<_ACEOF
16797 cat confdefs.h >>conftest.$ac_ext
16798 cat >>conftest.$ac_ext <<_ACEOF
16799 /* end confdefs.h. */
16801 /* Override any gcc2 internal prototype to avoid an error. */
16805 /* We use char because int might match the return type of a gcc2
16806 builtin and then its argument prototype would still apply. */
16807 char uview_direction_d ();
16811 uview_direction_d ();
16816 rm -f conftest.$ac_objext conftest$ac_exeext
16817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16818 (eval $ac_link) 2>conftest.er1
16820 grep -v '^ *+' conftest.er1 >conftest.err
16822 cat conftest.err >&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } &&
16825 { ac_try='test -z "$ac_c_werror_flag"
16826 || test ! -s conftest.err'
16827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16828 (eval $ac_try) 2>&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; } &&
16832 { ac_try='test -s conftest$ac_exeext'
16833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834 (eval $ac_try) 2>&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); }; }; then
16838 ac_cv_lib_matrix_uview_direction_d=yes
16840 echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16843 ac_cv_lib_matrix_uview_direction_d=no
16845 rm -f conftest.err conftest.$ac_objext \
16846 conftest$ac_exeext conftest.$ac_ext
16847 LIBS=$ac_check_lib_save_LIBS
16849 echo "$as_me:$LINENO: result: $ac_cv_lib_matrix_uview_direction_d" >&5
16850 echo "${ECHO_T}$ac_cv_lib_matrix_uview_direction_d" >&6
16851 if test $ac_cv_lib_matrix_uview_direction_d = yes; then
16852 have_gle=yes; gle_halfassed=no;
16853 GLE_LIBS="$GLE_LIBS -lmatrix"
16856 CPPFLAGS="$ac_save_CPPFLAGS"
16857 LDFLAGS="$ac_save_LDFLAGS"
16858 # LIBS="$ac_save_LIBS"
16863 if test "$have_gle" = yes ; then
16864 cat >>confdefs.h <<\_ACEOF
16868 if test "$have_gle3" = yes ; then
16869 cat >>confdefs.h <<\_ACEOF
16870 #define HAVE_GLE3 1
16876 elif test "$with_gle" != no; then
16877 echo "error: must be yes or no: --with-gle=$with_gle"
16883 ###############################################################################
16885 # Check for -lgdk_pixbuf.
16886 # These tests are for gdk_pixbuf usage of the hacks,
16887 # not xscreensaver-demo (thus we have to test again to get
16888 # the libraries right: don't want to pull in all of GTK
16891 ###############################################################################
16894 with_gdk_pixbuf_req=unspecified
16896 # Check whether --with-pixbuf or --without-pixbuf was given.
16897 if test "${with_pixbuf+set}" = set; then
16898 withval="$with_pixbuf"
16899 with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
16901 with_gdk_pixbuf=yes
16904 # if --with-pixbuf=/directory/ was specified, remember that directory so that
16905 # we can also look for the `gdk-pixbuf-config' program in that directory.
16906 case "$with_gdk_pixbuf" in
16908 gdk_pixbuf_dir="$with_gdk_pixbuf"
16916 case "$with_gdk_pixbuf" in
16921 echo "$as_me:$LINENO: checking for GDK_PIXBUF headers" >&5
16922 echo $ECHO_N "checking for GDK_PIXBUF headers... $ECHO_C" >&6
16923 d=$with_gdk_pixbuf/include
16924 if test -d $d; then
16925 X_CFLAGS="-I$d $X_CFLAGS"
16926 echo "$as_me:$LINENO: result: $d" >&5
16927 echo "${ECHO_T}$d" >&6
16929 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16930 echo "${ECHO_T}not found ($d: no such directory)" >&6
16933 echo "$as_me:$LINENO: checking for GDK_PIXBUF libs" >&5
16934 echo $ECHO_N "checking for GDK_PIXBUF libs... $ECHO_C" >&6
16935 d=$with_gdk_pixbuf/lib
16936 if test -d $d; then
16937 X_LIBS="-L$d $X_LIBS"
16938 echo "$as_me:$LINENO: result: $d" >&5
16939 echo "${ECHO_T}$d" >&6
16941 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16942 echo "${ECHO_T}not found ($d: no such directory)" >&6
16945 # replace the directory string with "yes".
16946 with_gdk_pixbuf_req="yes"
16947 with_gdk_pixbuf=$with_gdk_pixbuf_req
16952 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
16953 echo " If it is a directory, then \`DIR/include' will be added to"
16954 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16960 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
16961 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
16965 if test "$with_gdk_pixbuf" = yes; then
16971 pkg_check_version gdk-pixbuf-2.0 2.0.0
16972 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
16973 have_gdk_pixbuf="$ok"
16975 if test "$have_gdk_pixbuf" = yes; then
16976 echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
16977 echo $ECHO_N "checking for gdk-pixbuf includes... $ECHO_C" >&6
16978 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16981 ac_cv_gdk_pixbuf_config_cflags=`$pkg_config --cflags $pkgs`
16983 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
16984 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_cflags" >&6
16985 echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
16986 echo $ECHO_N "checking for gdk-pixbuf libs... $ECHO_C" >&6
16987 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
16988 echo $ECHO_N "(cached) $ECHO_C" >&6
16990 ac_cv_gdk_pixbuf_config_libs=`$pkg_config --libs $pkgs`
16992 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
16993 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_libs" >&6
16996 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
16997 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
17000 if test "$have_gdk_pixbuf" = yes; then
17002 # we appear to have pixbuf; check for headers/libs to be sure.
17004 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
17005 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
17009 # check for header A...
17011 ac_save_CPPFLAGS="$CPPFLAGS"
17012 if test \! -z "$includedir" ; then
17013 CPPFLAGS="$CPPFLAGS -I$includedir"
17015 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17016 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17017 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
17018 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
17019 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17022 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
17023 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
17025 # Is the header compilable?
17026 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h usability" >&5
17027 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h usability... $ECHO_C" >&6
17028 cat >conftest.$ac_ext <<_ACEOF
17031 cat confdefs.h >>conftest.$ac_ext
17032 cat >>conftest.$ac_ext <<_ACEOF
17033 /* end confdefs.h. */
17034 $ac_includes_default
17035 #include <gdk-pixbuf/gdk-pixbuf.h>
17037 rm -f conftest.$ac_objext
17038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17039 (eval $ac_compile) 2>conftest.er1
17041 grep -v '^ *+' conftest.er1 >conftest.err
17043 cat conftest.err >&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } &&
17046 { ac_try='test -z "$ac_c_werror_flag"
17047 || test ! -s conftest.err'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; } &&
17053 { ac_try='test -s conftest.$ac_objext'
17054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17055 (eval $ac_try) 2>&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; }; then
17059 ac_header_compiler=yes
17061 echo "$as_me: failed program was:" >&5
17062 sed 's/^/| /' conftest.$ac_ext >&5
17064 ac_header_compiler=no
17066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17067 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17068 echo "${ECHO_T}$ac_header_compiler" >&6
17070 # Is the header present?
17071 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h presence" >&5
17072 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h presence... $ECHO_C" >&6
17073 cat >conftest.$ac_ext <<_ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17079 #include <gdk-pixbuf/gdk-pixbuf.h>
17081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17084 grep -v '^ *+' conftest.er1 >conftest.err
17086 cat conftest.err >&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); } >/dev/null; then
17089 if test -s conftest.err; then
17090 ac_cpp_err=$ac_c_preproc_warn_flag
17091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17098 if test -z "$ac_cpp_err"; then
17099 ac_header_preproc=yes
17101 echo "$as_me: failed program was:" >&5
17102 sed 's/^/| /' conftest.$ac_ext >&5
17104 ac_header_preproc=no
17106 rm -f conftest.err conftest.$ac_ext
17107 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17108 echo "${ECHO_T}$ac_header_preproc" >&6
17110 # So? What about this header?
17111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17113 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&5
17114 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17115 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&5
17116 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the compiler's result" >&2;}
17117 ac_header_preproc=yes
17120 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&5
17121 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&2;}
17122 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&5
17123 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&2;}
17124 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&5
17125 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: see the Autoconf documentation" >&2;}
17126 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&5
17127 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: section \"Present But Cannot Be Compiled\"" >&2;}
17128 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
17129 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;}
17130 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&5
17131 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: in the future, the compiler will take precedence" >&2;}
17134 ## ------------------------------------------ ##
17135 ## Report this to the AC_PACKAGE_NAME lists. ##
17136 ## ------------------------------------------ ##
17139 sed "s/^/$as_me: WARNING: /" >&2
17142 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
17143 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
17144 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
17145 echo $ECHO_N "(cached) $ECHO_C" >&6
17147 ac_cv_header_gdk_pixbuf_gdk_pixbuf_h=$ac_header_preproc
17149 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
17150 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
17153 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h = yes; then
17154 have_gdk_pixbuf=yes
17158 CPPFLAGS="$ac_save_CPPFLAGS"
17160 # if that worked, check for header B...
17161 if test "$have_gdk_pixbuf" = yes; then
17163 gdk_pixbuf_halfassed=yes
17165 ac_save_CPPFLAGS="$CPPFLAGS"
17166 if test \! -z "$includedir" ; then
17167 CPPFLAGS="$CPPFLAGS -I$includedir"
17169 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17170 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17171 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
17172 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17173 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17176 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
17177 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
17179 # Is the header compilable?
17180 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h usability" >&5
17181 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
17182 cat >conftest.$ac_ext <<_ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h. */
17188 $ac_includes_default
17189 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
17191 rm -f conftest.$ac_objext
17192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17193 (eval $ac_compile) 2>conftest.er1
17195 grep -v '^ *+' conftest.er1 >conftest.err
17197 cat conftest.err >&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } &&
17200 { ac_try='test -z "$ac_c_werror_flag"
17201 || test ! -s conftest.err'
17202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17203 (eval $ac_try) 2>&5
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); }; } &&
17207 { ac_try='test -s conftest.$ac_objext'
17208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17209 (eval $ac_try) 2>&5
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); }; }; then
17213 ac_header_compiler=yes
17215 echo "$as_me: failed program was:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17218 ac_header_compiler=no
17220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17222 echo "${ECHO_T}$ac_header_compiler" >&6
17224 # Is the header present?
17225 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h presence" >&5
17226 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
17227 cat >conftest.$ac_ext <<_ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h. */
17233 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
17235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17238 grep -v '^ *+' conftest.er1 >conftest.err
17240 cat conftest.err >&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } >/dev/null; then
17243 if test -s conftest.err; then
17244 ac_cpp_err=$ac_c_preproc_warn_flag
17245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17252 if test -z "$ac_cpp_err"; then
17253 ac_header_preproc=yes
17255 echo "$as_me: failed program was:" >&5
17256 sed 's/^/| /' conftest.$ac_ext >&5
17258 ac_header_preproc=no
17260 rm -f conftest.err conftest.$ac_ext
17261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17262 echo "${ECHO_T}$ac_header_preproc" >&6
17264 # So? What about this header?
17265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17267 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17268 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17269 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
17270 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
17271 ac_header_preproc=yes
17274 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
17275 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
17276 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
17277 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
17278 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
17279 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
17280 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
17281 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17282 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
17283 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
17284 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
17285 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
17288 ## ------------------------------------------ ##
17289 ## Report this to the AC_PACKAGE_NAME lists. ##
17290 ## ------------------------------------------ ##
17293 sed "s/^/$as_me: WARNING: /" >&2
17296 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
17297 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17298 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17301 ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h=$ac_header_preproc
17303 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
17304 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
17307 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h = yes; then
17308 have_gdk_pixbuf=yes
17309 gdk_pixbuf_halfassed=no
17313 CPPFLAGS="$ac_save_CPPFLAGS"
17315 # yay, it has a new name in Gtk 2.x...
17316 if test "$have_gdk_pixbuf" = no; then
17318 gdk_pixbuf_halfassed=yes
17320 ac_save_CPPFLAGS="$CPPFLAGS"
17321 if test \! -z "$includedir" ; then
17322 CPPFLAGS="$CPPFLAGS -I$includedir"
17324 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17325 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17326 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
17327 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17328 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17329 echo $ECHO_N "(cached) $ECHO_C" >&6
17331 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
17332 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
17334 # Is the header compilable?
17335 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability" >&5
17336 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
17337 cat >conftest.$ac_ext <<_ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h. */
17343 $ac_includes_default
17344 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
17346 rm -f conftest.$ac_objext
17347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17348 (eval $ac_compile) 2>conftest.er1
17350 grep -v '^ *+' conftest.er1 >conftest.err
17352 cat conftest.err >&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); } &&
17355 { ac_try='test -z "$ac_c_werror_flag"
17356 || test ! -s conftest.err'
17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358 (eval $ac_try) 2>&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; } &&
17362 { ac_try='test -s conftest.$ac_objext'
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
17368 ac_header_compiler=yes
17370 echo "$as_me: failed program was:" >&5
17371 sed 's/^/| /' conftest.$ac_ext >&5
17373 ac_header_compiler=no
17375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17377 echo "${ECHO_T}$ac_header_compiler" >&6
17379 # Is the header present?
17380 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence" >&5
17381 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
17382 cat >conftest.$ac_ext <<_ACEOF
17385 cat confdefs.h >>conftest.$ac_ext
17386 cat >>conftest.$ac_ext <<_ACEOF
17387 /* end confdefs.h. */
17388 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
17390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17393 grep -v '^ *+' conftest.er1 >conftest.err
17395 cat conftest.err >&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } >/dev/null; then
17398 if test -s conftest.err; then
17399 ac_cpp_err=$ac_c_preproc_warn_flag
17400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17407 if test -z "$ac_cpp_err"; then
17408 ac_header_preproc=yes
17410 echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17413 ac_header_preproc=no
17415 rm -f conftest.err conftest.$ac_ext
17416 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17417 echo "${ECHO_T}$ac_header_preproc" >&6
17419 # So? What about this header?
17420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17422 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
17423 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17424 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&5
17425 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the compiler's result" >&2;}
17426 ac_header_preproc=yes
17429 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
17430 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
17431 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
17432 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
17433 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&5
17434 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: see the Autoconf documentation" >&2;}
17435 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&5
17436 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
17437 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
17438 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;}
17439 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&5
17440 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: in the future, the compiler will take precedence" >&2;}
17443 ## ------------------------------------------ ##
17444 ## Report this to the AC_PACKAGE_NAME lists. ##
17445 ## ------------------------------------------ ##
17448 sed "s/^/$as_me: WARNING: /" >&2
17451 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
17452 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
17453 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
17454 echo $ECHO_N "(cached) $ECHO_C" >&6
17456 ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h=$ac_header_preproc
17458 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
17459 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
17462 if test $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h = yes; then
17463 have_gdk_pixbuf=yes
17464 gdk_pixbuf_halfassed=no
17468 CPPFLAGS="$ac_save_CPPFLAGS"
17471 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
17474 if test "$have_gdk_pixbuf" = yes; then
17475 # we have the headers, now check for the libraries
17477 gdk_pixbuf_halfassed=yes
17479 echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability..." >&5
17480 echo "${ECHO_T}checking for gdk_pixbuf usability..." >&6
17484 ac_save_CPPFLAGS="$CPPFLAGS"
17485 ac_save_LDFLAGS="$LDFLAGS"
17486 # ac_save_LIBS="$LIBS"
17488 if test \! -z "$includedir" ; then
17489 CPPFLAGS="$CPPFLAGS -I$includedir"
17491 # note: $X_CFLAGS includes $x_includes
17492 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17494 if test \! -z "$libdir" ; then
17495 LDFLAGS="$LDFLAGS -L$libdir"
17497 # note: $X_LIBS includes $x_libraries
17498 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17500 echo "$as_me:$LINENO: checking for gdk_pixbuf_new_from_file in -lc" >&5
17501 echo $ECHO_N "checking for gdk_pixbuf_new_from_file in -lc... $ECHO_C" >&6
17502 if test "${ac_cv_lib_c_gdk_pixbuf_new_from_file+set}" = set; then
17503 echo $ECHO_N "(cached) $ECHO_C" >&6
17505 ac_check_lib_save_LIBS=$LIBS
17506 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
17507 cat >conftest.$ac_ext <<_ACEOF
17510 cat confdefs.h >>conftest.$ac_ext
17511 cat >>conftest.$ac_ext <<_ACEOF
17512 /* end confdefs.h. */
17514 /* Override any gcc2 internal prototype to avoid an error. */
17518 /* We use char because int might match the return type of a gcc2
17519 builtin and then its argument prototype would still apply. */
17520 char gdk_pixbuf_new_from_file ();
17524 gdk_pixbuf_new_from_file ();
17529 rm -f conftest.$ac_objext conftest$ac_exeext
17530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17531 (eval $ac_link) 2>conftest.er1
17533 grep -v '^ *+' conftest.er1 >conftest.err
17535 cat conftest.err >&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } &&
17538 { ac_try='test -z "$ac_c_werror_flag"
17539 || test ! -s conftest.err'
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; } &&
17545 { ac_try='test -s conftest$ac_exeext'
17546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17547 (eval $ac_try) 2>&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; }; then
17551 ac_cv_lib_c_gdk_pixbuf_new_from_file=yes
17553 echo "$as_me: failed program was:" >&5
17554 sed 's/^/| /' conftest.$ac_ext >&5
17556 ac_cv_lib_c_gdk_pixbuf_new_from_file=no
17558 rm -f conftest.err conftest.$ac_objext \
17559 conftest$ac_exeext conftest.$ac_ext
17560 LIBS=$ac_check_lib_save_LIBS
17562 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_new_from_file" >&5
17563 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_new_from_file" >&6
17564 if test $ac_cv_lib_c_gdk_pixbuf_new_from_file = yes; then
17565 have_gdk_pixbuf=yes
17568 CPPFLAGS="$ac_save_CPPFLAGS"
17569 LDFLAGS="$ac_save_LDFLAGS"
17570 # LIBS="$ac_save_LIBS"
17573 if test "$have_gdk_pixbuf" = yes; then
17576 ac_save_CPPFLAGS="$CPPFLAGS"
17577 ac_save_LDFLAGS="$LDFLAGS"
17578 # ac_save_LIBS="$LIBS"
17580 if test \! -z "$includedir" ; then
17581 CPPFLAGS="$CPPFLAGS -I$includedir"
17583 # note: $X_CFLAGS includes $x_includes
17584 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17586 if test \! -z "$libdir" ; then
17587 LDFLAGS="$LDFLAGS -L$libdir"
17589 # note: $X_LIBS includes $x_libraries
17590 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17592 echo "$as_me:$LINENO: checking for gdk_pixbuf_xlib_init in -lc" >&5
17593 echo $ECHO_N "checking for gdk_pixbuf_xlib_init in -lc... $ECHO_C" >&6
17594 if test "${ac_cv_lib_c_gdk_pixbuf_xlib_init+set}" = set; then
17595 echo $ECHO_N "(cached) $ECHO_C" >&6
17597 ac_check_lib_save_LIBS=$LIBS
17598 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
17599 cat >conftest.$ac_ext <<_ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h. */
17606 /* Override any gcc2 internal prototype to avoid an error. */
17610 /* We use char because int might match the return type of a gcc2
17611 builtin and then its argument prototype would still apply. */
17612 char gdk_pixbuf_xlib_init ();
17616 gdk_pixbuf_xlib_init ();
17621 rm -f conftest.$ac_objext conftest$ac_exeext
17622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17623 (eval $ac_link) 2>conftest.er1
17625 grep -v '^ *+' conftest.er1 >conftest.err
17627 cat conftest.err >&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); } &&
17630 { ac_try='test -z "$ac_c_werror_flag"
17631 || test ! -s conftest.err'
17632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633 (eval $ac_try) 2>&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); }; } &&
17637 { ac_try='test -s conftest$ac_exeext'
17638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639 (eval $ac_try) 2>&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); }; }; then
17643 ac_cv_lib_c_gdk_pixbuf_xlib_init=yes
17645 echo "$as_me: failed program was:" >&5
17646 sed 's/^/| /' conftest.$ac_ext >&5
17648 ac_cv_lib_c_gdk_pixbuf_xlib_init=no
17650 rm -f conftest.err conftest.$ac_objext \
17651 conftest$ac_exeext conftest.$ac_ext
17652 LIBS=$ac_check_lib_save_LIBS
17654 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_xlib_init" >&5
17655 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_xlib_init" >&6
17656 if test $ac_cv_lib_c_gdk_pixbuf_xlib_init = yes; then
17657 have_gdk_pixbuf=yes
17658 gdk_pixbuf_halfassed=no
17661 CPPFLAGS="$ac_save_CPPFLAGS"
17662 LDFLAGS="$ac_save_LDFLAGS"
17663 # LIBS="$ac_save_LIBS"
17668 if test "$have_gdk_pixbuf" = yes; then
17669 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
17670 XPM_LIBS="$ac_gdk_pixbuf_config_libs"
17671 cat >>confdefs.h <<\_ACEOF
17672 #define HAVE_GDK_PIXBUF 1
17676 echo "$as_me:$LINENO: result: checking for gdk_pixbuf usability... no" >&5
17677 echo "${ECHO_T}checking for gdk_pixbuf usability... no" >&6
17682 ###############################################################################
17686 ###############################################################################
17689 with_xpm_req=unspecified
17691 # Check whether --with-xpm or --without-xpm was given.
17692 if test "${with_xpm+set}" = set; then
17693 withval="$with_xpm"
17694 with_xpm="$withval"; with_xpm_req="$withval"
17700 case "$with_xpm" in
17705 echo "$as_me:$LINENO: checking for XPM headers" >&5
17706 echo $ECHO_N "checking for XPM headers... $ECHO_C" >&6
17707 d=$with_xpm/include
17708 if test -d $d; then
17709 X_CFLAGS="-I$d $X_CFLAGS"
17710 echo "$as_me:$LINENO: result: $d" >&5
17711 echo "${ECHO_T}$d" >&6
17713 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17714 echo "${ECHO_T}not found ($d: no such directory)" >&6
17717 echo "$as_me:$LINENO: checking for XPM libs" >&5
17718 echo $ECHO_N "checking for XPM libs... $ECHO_C" >&6
17720 if test -d $d; then
17721 X_LIBS="-L$d $X_LIBS"
17722 echo "$as_me:$LINENO: result: $d" >&5
17723 echo "${ECHO_T}$d" >&6
17725 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17726 echo "${ECHO_T}not found ($d: no such directory)" >&6
17729 # replace the directory string with "yes".
17731 with_xpm=$with_xpm_req
17736 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
17737 echo " If it is a directory, then \`DIR/include' will be added to"
17738 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17744 if test "$with_xpm" = yes; then
17746 ac_save_CPPFLAGS="$CPPFLAGS"
17747 if test \! -z "$includedir" ; then
17748 CPPFLAGS="$CPPFLAGS -I$includedir"
17750 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17751 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
17752 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
17753 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
17754 echo $ECHO_N "(cached) $ECHO_C" >&6
17756 cat >conftest.$ac_ext <<_ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h. */
17762 #include <X11/Xlib.h>
17764 #include <X11/xpm.h>
17766 rm -f conftest.$ac_objext
17767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17768 (eval $ac_compile) 2>conftest.er1
17770 grep -v '^ *+' conftest.er1 >conftest.err
17772 cat conftest.err >&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } &&
17775 { ac_try='test -z "$ac_c_werror_flag"
17776 || test ! -s conftest.err'
17777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; } &&
17782 { ac_try='test -s conftest.$ac_objext'
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; }; then
17788 ac_cv_header_X11_xpm_h=yes
17790 echo "$as_me: failed program was:" >&5
17791 sed 's/^/| /' conftest.$ac_ext >&5
17793 ac_cv_header_X11_xpm_h=no
17795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17797 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
17798 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
17799 if test $ac_cv_header_X11_xpm_h = yes; then
17801 cat >>confdefs.h <<\_ACEOF
17805 XPM_LIBS="-lXpm $XPM_LIBS"
17809 CPPFLAGS="$ac_save_CPPFLAGS"
17810 elif test "$with_xpm" != no; then
17811 echo "error: must be yes or no: --with-xpm=$with_xpm"
17815 # See comment near $motif_requires_xpm, above.
17816 # Need to do this here, after both Motif and XPM have been checked for.
17818 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
17819 if test "$motif_requires_xpm" = yes ; then
17820 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
17825 ###############################################################################
17829 ###############################################################################
17832 with_jpeg_req=unspecified
17835 # Check whether --with-jpeg or --without-jpeg was given.
17836 if test "${with_jpeg+set}" = set; then
17837 withval="$with_jpeg"
17838 with_jpeg="$withval"; with_jpeg_req="$withval"
17844 case "$with_jpeg" in
17849 echo "$as_me:$LINENO: checking for JPEG headers" >&5
17850 echo $ECHO_N "checking for JPEG headers... $ECHO_C" >&6
17851 d=$with_jpeg/include
17852 if test -d $d; then
17853 X_CFLAGS="-I$d $X_CFLAGS"
17854 echo "$as_me:$LINENO: result: $d" >&5
17855 echo "${ECHO_T}$d" >&6
17857 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17858 echo "${ECHO_T}not found ($d: no such directory)" >&6
17861 echo "$as_me:$LINENO: checking for JPEG libs" >&5
17862 echo $ECHO_N "checking for JPEG libs... $ECHO_C" >&6
17864 if test -d $d; then
17865 X_LIBS="-L$d $X_LIBS"
17866 echo "$as_me:$LINENO: result: $d" >&5
17867 echo "${ECHO_T}$d" >&6
17869 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17870 echo "${ECHO_T}not found ($d: no such directory)" >&6
17873 # replace the directory string with "yes".
17874 with_jpeg_req="yes"
17875 with_jpeg=$with_jpeg_req
17880 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
17881 echo " If it is a directory, then \`DIR/include' will be added to"
17882 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17888 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
17889 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
17893 if test "$with_jpeg" = yes; then
17897 ac_save_CPPFLAGS="$CPPFLAGS"
17898 if test \! -z "$includedir" ; then
17899 CPPFLAGS="$CPPFLAGS -I$includedir"
17901 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17902 if test "${ac_cv_header_jpeglib_h+set}" = set; then
17903 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
17904 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
17905 if test "${ac_cv_header_jpeglib_h+set}" = set; then
17906 echo $ECHO_N "(cached) $ECHO_C" >&6
17908 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
17909 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
17911 # Is the header compilable?
17912 echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
17913 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
17914 cat >conftest.$ac_ext <<_ACEOF
17917 cat confdefs.h >>conftest.$ac_ext
17918 cat >>conftest.$ac_ext <<_ACEOF
17919 /* end confdefs.h. */
17920 $ac_includes_default
17921 #include <jpeglib.h>
17923 rm -f conftest.$ac_objext
17924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17925 (eval $ac_compile) 2>conftest.er1
17927 grep -v '^ *+' conftest.er1 >conftest.err
17929 cat conftest.err >&5
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); } &&
17932 { ac_try='test -z "$ac_c_werror_flag"
17933 || test ! -s conftest.err'
17934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935 (eval $ac_try) 2>&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; } &&
17939 { ac_try='test -s conftest.$ac_objext'
17940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17941 (eval $ac_try) 2>&5
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); }; }; then
17945 ac_header_compiler=yes
17947 echo "$as_me: failed program was:" >&5
17948 sed 's/^/| /' conftest.$ac_ext >&5
17950 ac_header_compiler=no
17952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17954 echo "${ECHO_T}$ac_header_compiler" >&6
17956 # Is the header present?
17957 echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
17958 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
17959 cat >conftest.$ac_ext <<_ACEOF
17962 cat confdefs.h >>conftest.$ac_ext
17963 cat >>conftest.$ac_ext <<_ACEOF
17964 /* end confdefs.h. */
17965 #include <jpeglib.h>
17967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17970 grep -v '^ *+' conftest.er1 >conftest.err
17972 cat conftest.err >&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); } >/dev/null; then
17975 if test -s conftest.err; then
17976 ac_cpp_err=$ac_c_preproc_warn_flag
17977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17984 if test -z "$ac_cpp_err"; then
17985 ac_header_preproc=yes
17987 echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17990 ac_header_preproc=no
17992 rm -f conftest.err conftest.$ac_ext
17993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17994 echo "${ECHO_T}$ac_header_preproc" >&6
17996 # So? What about this header?
17997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17999 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18000 echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18001 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
18002 echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
18003 ac_header_preproc=yes
18006 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
18007 echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
18008 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
18009 echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
18010 { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
18011 echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
18012 { echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
18013 echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
18014 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
18015 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
18016 { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
18017 echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
18020 ## ------------------------------------------ ##
18021 ## Report this to the AC_PACKAGE_NAME lists. ##
18022 ## ------------------------------------------ ##
18025 sed "s/^/$as_me: WARNING: /" >&2
18028 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18029 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18030 if test "${ac_cv_header_jpeglib_h+set}" = set; then
18031 echo $ECHO_N "(cached) $ECHO_C" >&6
18033 ac_cv_header_jpeglib_h=$ac_header_preproc
18035 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18036 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
18039 if test $ac_cv_header_jpeglib_h = yes; then
18044 CPPFLAGS="$ac_save_CPPFLAGS"
18046 if test "$have_jpeg" = yes; then
18047 # we have the header, now check for the library
18051 ac_save_CPPFLAGS="$CPPFLAGS"
18052 ac_save_LDFLAGS="$LDFLAGS"
18053 # ac_save_LIBS="$LIBS"
18055 if test \! -z "$includedir" ; then
18056 CPPFLAGS="$CPPFLAGS -I$includedir"
18058 # note: $X_CFLAGS includes $x_includes
18059 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18061 if test \! -z "$libdir" ; then
18062 LDFLAGS="$LDFLAGS -L$libdir"
18064 # note: $X_LIBS includes $x_libraries
18065 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18067 echo "$as_me:$LINENO: checking for jpeg_start_compress in -ljpeg" >&5
18068 echo $ECHO_N "checking for jpeg_start_compress in -ljpeg... $ECHO_C" >&6
18069 if test "${ac_cv_lib_jpeg_jpeg_start_compress+set}" = set; then
18070 echo $ECHO_N "(cached) $ECHO_C" >&6
18072 ac_check_lib_save_LIBS=$LIBS
18073 LIBS="-ljpeg $LIBS"
18074 cat >conftest.$ac_ext <<_ACEOF
18077 cat confdefs.h >>conftest.$ac_ext
18078 cat >>conftest.$ac_ext <<_ACEOF
18079 /* end confdefs.h. */
18081 /* Override any gcc2 internal prototype to avoid an error. */
18085 /* We use char because int might match the return type of a gcc2
18086 builtin and then its argument prototype would still apply. */
18087 char jpeg_start_compress ();
18091 jpeg_start_compress ();
18096 rm -f conftest.$ac_objext conftest$ac_exeext
18097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18098 (eval $ac_link) 2>conftest.er1
18100 grep -v '^ *+' conftest.er1 >conftest.err
18102 cat conftest.err >&5
18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18104 (exit $ac_status); } &&
18105 { ac_try='test -z "$ac_c_werror_flag"
18106 || test ! -s conftest.err'
18107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; } &&
18112 { ac_try='test -s conftest$ac_exeext'
18113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114 (eval $ac_try) 2>&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; }; then
18118 ac_cv_lib_jpeg_jpeg_start_compress=yes
18120 echo "$as_me: failed program was:" >&5
18121 sed 's/^/| /' conftest.$ac_ext >&5
18123 ac_cv_lib_jpeg_jpeg_start_compress=no
18125 rm -f conftest.err conftest.$ac_objext \
18126 conftest$ac_exeext conftest.$ac_ext
18127 LIBS=$ac_check_lib_save_LIBS
18129 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
18130 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_compress" >&6
18131 if test $ac_cv_lib_jpeg_jpeg_start_compress = yes; then
18135 cat >>confdefs.h <<\_ACEOF
18136 #define HAVE_JPEGLIB 1
18141 CPPFLAGS="$ac_save_CPPFLAGS"
18142 LDFLAGS="$ac_save_LDFLAGS"
18143 # LIBS="$ac_save_LIBS"
18149 ###############################################################################
18151 # Check for pty support: this allows 'phosphor' and 'apple2'
18152 # to run curses-based programs, or be used as terminal windows.
18154 ###############################################################################
18159 for ac_header in pty.h util.h
18161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18163 echo "$as_me:$LINENO: checking for $ac_header" >&5
18164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18166 echo $ECHO_N "(cached) $ECHO_C" >&6
18168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18171 # Is the header compilable?
18172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18174 cat >conftest.$ac_ext <<_ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18180 $ac_includes_default
18181 #include <$ac_header>
18183 rm -f conftest.$ac_objext
18184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18185 (eval $ac_compile) 2>conftest.er1
18187 grep -v '^ *+' conftest.er1 >conftest.err
18189 cat conftest.err >&5
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); } &&
18192 { ac_try='test -z "$ac_c_werror_flag"
18193 || test ! -s conftest.err'
18194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18195 (eval $ac_try) 2>&5
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; } &&
18199 { ac_try='test -s conftest.$ac_objext'
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; }; then
18205 ac_header_compiler=yes
18207 echo "$as_me: failed program was:" >&5
18208 sed 's/^/| /' conftest.$ac_ext >&5
18210 ac_header_compiler=no
18212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18214 echo "${ECHO_T}$ac_header_compiler" >&6
18216 # Is the header present?
18217 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18219 cat >conftest.$ac_ext <<_ACEOF
18222 cat confdefs.h >>conftest.$ac_ext
18223 cat >>conftest.$ac_ext <<_ACEOF
18224 /* end confdefs.h. */
18225 #include <$ac_header>
18227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18230 grep -v '^ *+' conftest.er1 >conftest.err
18232 cat conftest.err >&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } >/dev/null; then
18235 if test -s conftest.err; then
18236 ac_cpp_err=$ac_c_preproc_warn_flag
18237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18244 if test -z "$ac_cpp_err"; then
18245 ac_header_preproc=yes
18247 echo "$as_me: failed program was:" >&5
18248 sed 's/^/| /' conftest.$ac_ext >&5
18250 ac_header_preproc=no
18252 rm -f conftest.err conftest.$ac_ext
18253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18254 echo "${ECHO_T}$ac_header_preproc" >&6
18256 # So? What about this header?
18257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18263 ac_header_preproc=yes
18266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18280 ## ------------------------------------------ ##
18281 ## Report this to the AC_PACKAGE_NAME lists. ##
18282 ## ------------------------------------------ ##
18285 sed "s/^/$as_me: WARNING: /" >&2
18288 echo "$as_me:$LINENO: checking for $ac_header" >&5
18289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18291 echo $ECHO_N "(cached) $ECHO_C" >&6
18293 eval "$as_ac_Header=\$ac_header_preproc"
18295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18300 cat >>confdefs.h <<_ACEOF
18301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18309 ac_save_CPPFLAGS="$CPPFLAGS"
18310 ac_save_LDFLAGS="$LDFLAGS"
18311 # ac_save_LIBS="$LIBS"
18313 if test \! -z "$includedir" ; then
18314 CPPFLAGS="$CPPFLAGS -I$includedir"
18316 # note: $X_CFLAGS includes $x_includes
18317 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18319 if test \! -z "$libdir" ; then
18320 LDFLAGS="$LDFLAGS -L$libdir"
18322 # note: $X_LIBS includes $x_libraries
18323 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18325 echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
18326 echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6
18327 if test "${ac_cv_lib_util_forkpty+set}" = set; then
18328 echo $ECHO_N "(cached) $ECHO_C" >&6
18330 ac_check_lib_save_LIBS=$LIBS
18331 LIBS="-lutil $LIBS"
18332 cat >conftest.$ac_ext <<_ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h. */
18339 /* Override any gcc2 internal prototype to avoid an error. */
18343 /* We use char because int might match the return type of a gcc2
18344 builtin and then its argument prototype would still apply. */
18354 rm -f conftest.$ac_objext conftest$ac_exeext
18355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18356 (eval $ac_link) 2>conftest.er1
18358 grep -v '^ *+' conftest.er1 >conftest.err
18360 cat conftest.err >&5
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); } &&
18363 { ac_try='test -z "$ac_c_werror_flag"
18364 || test ! -s conftest.err'
18365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366 (eval $ac_try) 2>&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); }; } &&
18370 { ac_try='test -s conftest$ac_exeext'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18376 ac_cv_lib_util_forkpty=yes
18378 echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18381 ac_cv_lib_util_forkpty=no
18383 rm -f conftest.err conftest.$ac_objext \
18384 conftest$ac_exeext conftest.$ac_ext
18385 LIBS=$ac_check_lib_save_LIBS
18387 echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
18388 echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6
18389 if test $ac_cv_lib_util_forkpty = yes; then
18391 ac_have_forkpty=yes
18392 cat >>confdefs.h <<\_ACEOF
18393 #define HAVE_FORKPTY 1
18398 CPPFLAGS="$ac_save_CPPFLAGS"
18399 LDFLAGS="$ac_save_LDFLAGS"
18400 # LIBS="$ac_save_LIBS"
18403 if test "$ac_have_forkpty" != yes ; then
18404 # we don't need (or have) -lutil on MacOS 10.4.2...
18406 ac_save_CPPFLAGS="$CPPFLAGS"
18407 ac_save_LDFLAGS="$LDFLAGS"
18408 # ac_save_LIBS="$LIBS"
18410 if test \! -z "$includedir" ; then
18411 CPPFLAGS="$CPPFLAGS -I$includedir"
18413 # note: $X_CFLAGS includes $x_includes
18414 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18416 if test \! -z "$libdir" ; then
18417 LDFLAGS="$LDFLAGS -L$libdir"
18419 # note: $X_LIBS includes $x_libraries
18420 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
18422 echo "$as_me:$LINENO: checking for forkpty in -lc" >&5
18423 echo $ECHO_N "checking for forkpty in -lc... $ECHO_C" >&6
18424 if test "${ac_cv_lib_c_forkpty+set}" = set; then
18425 echo $ECHO_N "(cached) $ECHO_C" >&6
18427 ac_check_lib_save_LIBS=$LIBS
18429 cat >conftest.$ac_ext <<_ACEOF
18432 cat confdefs.h >>conftest.$ac_ext
18433 cat >>conftest.$ac_ext <<_ACEOF
18434 /* end confdefs.h. */
18436 /* Override any gcc2 internal prototype to avoid an error. */
18440 /* We use char because int might match the return type of a gcc2
18441 builtin and then its argument prototype would still apply. */
18451 rm -f conftest.$ac_objext conftest$ac_exeext
18452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18453 (eval $ac_link) 2>conftest.er1
18455 grep -v '^ *+' conftest.er1 >conftest.err
18457 cat conftest.err >&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } &&
18460 { ac_try='test -z "$ac_c_werror_flag"
18461 || test ! -s conftest.err'
18462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463 (eval $ac_try) 2>&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; } &&
18467 { ac_try='test -s conftest$ac_exeext'
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18473 ac_cv_lib_c_forkpty=yes
18475 echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18478 ac_cv_lib_c_forkpty=no
18480 rm -f conftest.err conftest.$ac_objext \
18481 conftest$ac_exeext conftest.$ac_ext
18482 LIBS=$ac_check_lib_save_LIBS
18484 echo "$as_me:$LINENO: result: $ac_cv_lib_c_forkpty" >&5
18485 echo "${ECHO_T}$ac_cv_lib_c_forkpty" >&6
18486 if test $ac_cv_lib_c_forkpty = yes; then
18488 cat >>confdefs.h <<\_ACEOF
18489 #define HAVE_FORKPTY 1
18494 CPPFLAGS="$ac_save_CPPFLAGS"
18495 LDFLAGS="$ac_save_LDFLAGS"
18496 # LIBS="$ac_save_LIBS"
18500 ###############################################################################
18502 # Check for the XSHM server extension.
18504 ###############################################################################
18507 with_xshm_req=unspecified
18509 # Check whether --with-xshm-ext or --without-xshm-ext was given.
18510 if test "${with_xshm_ext+set}" = set; then
18511 withval="$with_xshm_ext"
18512 with_xshm="$withval"; with_xshm_req="$withval"
18518 case "$with_xshm" in
18523 echo "$as_me:$LINENO: checking for XSHM headers" >&5
18524 echo $ECHO_N "checking for XSHM headers... $ECHO_C" >&6
18525 d=$with_xshm/include
18526 if test -d $d; then
18527 X_CFLAGS="-I$d $X_CFLAGS"
18528 echo "$as_me:$LINENO: result: $d" >&5
18529 echo "${ECHO_T}$d" >&6
18531 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18532 echo "${ECHO_T}not found ($d: no such directory)" >&6
18535 echo "$as_me:$LINENO: checking for XSHM libs" >&5
18536 echo $ECHO_N "checking for XSHM libs... $ECHO_C" >&6
18538 if test -d $d; then
18539 X_LIBS="-L$d $X_LIBS"
18540 echo "$as_me:$LINENO: result: $d" >&5
18541 echo "${ECHO_T}$d" >&6
18543 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
18544 echo "${ECHO_T}not found ($d: no such directory)" >&6
18547 # replace the directory string with "yes".
18548 with_xshm_req="yes"
18549 with_xshm=$with_xshm_req
18554 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
18555 echo " If it is a directory, then \`DIR/include' will be added to"
18556 echo " the -I list, and \`DIR/lib' will be added to the -L list."
18562 if test "$with_xshm" = yes; then
18564 # first check for Xshm.h.
18566 ac_save_CPPFLAGS="$CPPFLAGS"
18567 if test \! -z "$includedir" ; then
18568 CPPFLAGS="$CPPFLAGS -I$includedir"
18570 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18571 echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5
18572 echo $ECHO_N "checking for X11/extensions/XShm.h... $ECHO_C" >&6
18573 if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
18574 echo $ECHO_N "(cached) $ECHO_C" >&6
18576 cat >conftest.$ac_ext <<_ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18582 #include <X11/Xlib.h>
18584 #include <X11/extensions/XShm.h>
18586 rm -f conftest.$ac_objext
18587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18588 (eval $ac_compile) 2>conftest.er1
18590 grep -v '^ *+' conftest.er1 >conftest.err
18592 cat conftest.err >&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); } &&
18595 { ac_try='test -z "$ac_c_werror_flag"
18596 || test ! -s conftest.err'
18597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18598 (eval $ac_try) 2>&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }; } &&
18602 { ac_try='test -s conftest.$ac_objext'
18603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18604 (eval $ac_try) 2>&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; }; then
18608 ac_cv_header_X11_extensions_XShm_h=yes
18610 echo "$as_me: failed program was:" >&5
18611 sed 's/^/| /' conftest.$ac_ext >&5
18613 ac_cv_header_X11_extensions_XShm_h=no
18615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18617 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5
18618 echo "${ECHO_T}$ac_cv_header_X11_extensions_XShm_h" >&6
18619 if test $ac_cv_header_X11_extensions_XShm_h = yes; then
18624 CPPFLAGS="$ac_save_CPPFLAGS"
18626 # if that succeeded, then check for sys/ipc.h.
18627 if test "$have_xshm" = yes; then
18630 ac_save_CPPFLAGS="$CPPFLAGS"
18631 if test \! -z "$includedir" ; then
18632 CPPFLAGS="$CPPFLAGS -I$includedir"
18634 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18635 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
18636 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
18637 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
18638 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
18639 echo $ECHO_N "(cached) $ECHO_C" >&6
18641 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
18642 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
18644 # Is the header compilable?
18645 echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
18646 echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6
18647 cat >conftest.$ac_ext <<_ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h. */
18653 $ac_includes_default
18654 #include <sys/ipc.h>
18656 rm -f conftest.$ac_objext
18657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18658 (eval $ac_compile) 2>conftest.er1
18660 grep -v '^ *+' conftest.er1 >conftest.err
18662 cat conftest.err >&5
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); } &&
18665 { ac_try='test -z "$ac_c_werror_flag"
18666 || test ! -s conftest.err'
18667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18668 (eval $ac_try) 2>&5
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); }; } &&
18672 { ac_try='test -s conftest.$ac_objext'
18673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18674 (eval $ac_try) 2>&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); }; }; then
18678 ac_header_compiler=yes
18680 echo "$as_me: failed program was:" >&5
18681 sed 's/^/| /' conftest.$ac_ext >&5
18683 ac_header_compiler=no
18685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18687 echo "${ECHO_T}$ac_header_compiler" >&6
18689 # Is the header present?
18690 echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
18691 echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6
18692 cat >conftest.$ac_ext <<_ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18698 #include <sys/ipc.h>
18700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18703 grep -v '^ *+' conftest.er1 >conftest.err
18705 cat conftest.err >&5
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); } >/dev/null; then
18708 if test -s conftest.err; then
18709 ac_cpp_err=$ac_c_preproc_warn_flag
18710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18717 if test -z "$ac_cpp_err"; then
18718 ac_header_preproc=yes
18720 echo "$as_me: failed program was:" >&5
18721 sed 's/^/| /' conftest.$ac_ext >&5
18723 ac_header_preproc=no
18725 rm -f conftest.err conftest.$ac_ext
18726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18727 echo "${ECHO_T}$ac_header_preproc" >&6
18729 # So? What about this header?
18730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18732 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
18733 echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18734 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the compiler's result" >&5
18735 echo "$as_me: WARNING: sys/ipc.h: proceeding with the compiler's result" >&2;}
18736 ac_header_preproc=yes
18739 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
18740 echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
18741 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
18742 echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
18743 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: see the Autoconf documentation" >&5
18744 echo "$as_me: WARNING: sys/ipc.h: see the Autoconf documentation" >&2;}
18745 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&5
18746 echo "$as_me: WARNING: sys/ipc.h: section \"Present But Cannot Be Compiled\"" >&2;}
18747 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
18748 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;}
18749 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&5
18750 echo "$as_me: WARNING: sys/ipc.h: in the future, the compiler will take precedence" >&2;}
18753 ## ------------------------------------------ ##
18754 ## Report this to the AC_PACKAGE_NAME lists. ##
18755 ## ------------------------------------------ ##
18758 sed "s/^/$as_me: WARNING: /" >&2
18761 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
18762 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
18763 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
18764 echo $ECHO_N "(cached) $ECHO_C" >&6
18766 ac_cv_header_sys_ipc_h=$ac_header_preproc
18768 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
18769 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
18772 if test $ac_cv_header_sys_ipc_h = yes; then
18777 CPPFLAGS="$ac_save_CPPFLAGS"
18780 # if that succeeded, then check for sys/shm.h.
18781 if test "$have_xshm" = yes; then
18784 ac_save_CPPFLAGS="$CPPFLAGS"
18785 if test \! -z "$includedir" ; then
18786 CPPFLAGS="$CPPFLAGS -I$includedir"
18788 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18789 if test "${ac_cv_header_sys_shm_h+set}" = set; then
18790 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
18791 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
18792 if test "${ac_cv_header_sys_shm_h+set}" = set; then
18793 echo $ECHO_N "(cached) $ECHO_C" >&6
18795 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
18796 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
18798 # Is the header compilable?
18799 echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
18800 echo $ECHO_N "checking sys/shm.h usability... $ECHO_C" >&6
18801 cat >conftest.$ac_ext <<_ACEOF
18804 cat confdefs.h >>conftest.$ac_ext
18805 cat >>conftest.$ac_ext <<_ACEOF
18806 /* end confdefs.h. */
18807 $ac_includes_default
18808 #include <sys/shm.h>
18810 rm -f conftest.$ac_objext
18811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18812 (eval $ac_compile) 2>conftest.er1
18814 grep -v '^ *+' conftest.er1 >conftest.err
18816 cat conftest.err >&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); } &&
18819 { ac_try='test -z "$ac_c_werror_flag"
18820 || test ! -s conftest.err'
18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822 (eval $ac_try) 2>&5
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; } &&
18826 { ac_try='test -s conftest.$ac_objext'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; }; then
18832 ac_header_compiler=yes
18834 echo "$as_me: failed program was:" >&5
18835 sed 's/^/| /' conftest.$ac_ext >&5
18837 ac_header_compiler=no
18839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18841 echo "${ECHO_T}$ac_header_compiler" >&6
18843 # Is the header present?
18844 echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
18845 echo $ECHO_N "checking sys/shm.h presence... $ECHO_C" >&6
18846 cat >conftest.$ac_ext <<_ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h. */
18852 #include <sys/shm.h>
18854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18857 grep -v '^ *+' conftest.er1 >conftest.err
18859 cat conftest.err >&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); } >/dev/null; then
18862 if test -s conftest.err; then
18863 ac_cpp_err=$ac_c_preproc_warn_flag
18864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18871 if test -z "$ac_cpp_err"; then
18872 ac_header_preproc=yes
18874 echo "$as_me: failed program was:" >&5
18875 sed 's/^/| /' conftest.$ac_ext >&5
18877 ac_header_preproc=no
18879 rm -f conftest.err conftest.$ac_ext
18880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18881 echo "${ECHO_T}$ac_header_preproc" >&6
18883 # So? What about this header?
18884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18886 { echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
18887 echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18888 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the compiler's result" >&5
18889 echo "$as_me: WARNING: sys/shm.h: proceeding with the compiler's result" >&2;}
18890 ac_header_preproc=yes
18893 { echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
18894 echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
18895 { echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
18896 echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
18897 { echo "$as_me:$LINENO: WARNING: sys/shm.h: see the Autoconf documentation" >&5
18898 echo "$as_me: WARNING: sys/shm.h: see the Autoconf documentation" >&2;}
18899 { echo "$as_me:$LINENO: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&5
18900 echo "$as_me: WARNING: sys/shm.h: section \"Present But Cannot Be Compiled\"" >&2;}
18901 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
18902 echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;}
18903 { echo "$as_me:$LINENO: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&5
18904 echo "$as_me: WARNING: sys/shm.h: in the future, the compiler will take precedence" >&2;}
18907 ## ------------------------------------------ ##
18908 ## Report this to the AC_PACKAGE_NAME lists. ##
18909 ## ------------------------------------------ ##
18912 sed "s/^/$as_me: WARNING: /" >&2
18915 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
18916 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
18917 if test "${ac_cv_header_sys_shm_h+set}" = set; then
18918 echo $ECHO_N "(cached) $ECHO_C" >&6
18920 ac_cv_header_sys_shm_h=$ac_header_preproc
18922 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
18923 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
18926 if test $ac_cv_header_sys_shm_h = yes; then
18931 CPPFLAGS="$ac_save_CPPFLAGS"
18934 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
18935 # to exist, but the library code to not exist. And even better, the library
18936 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
18937 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
18938 # that's not quite right, but close enough.)
18942 if `uname -v` -eq 3 ; then
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 XShmQueryExtension in -lXextSam" >&5
18962 echo $ECHO_N "checking for XShmQueryExtension in -lXextSam... $ECHO_C" >&6
18963 if test "${ac_cv_lib_XextSam_XShmQueryExtension+set}" = set; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18966 ac_check_lib_save_LIBS=$LIBS
18967 LIBS="-lXextSam -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 XShmQueryExtension ();
18985 XShmQueryExtension ();
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_XextSam_XShmQueryExtension=yes
19014 echo "$as_me: failed program was:" >&5
19015 sed 's/^/| /' conftest.$ac_ext >&5
19017 ac_cv_lib_XextSam_XShmQueryExtension=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_XextSam_XShmQueryExtension" >&5
19024 echo "${ECHO_T}$ac_cv_lib_XextSam_XShmQueryExtension" >&6
19025 if test $ac_cv_lib_XextSam_XShmQueryExtension = yes; then
19026 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
19031 CPPFLAGS="$ac_save_CPPFLAGS"
19032 LDFLAGS="$ac_save_LDFLAGS"
19033 # LIBS="$ac_save_LIBS"
19039 # if that succeeded, then we've really got it.
19040 if test "$have_xshm" = yes; then
19041 cat >>confdefs.h <<\_ACEOF
19042 #define HAVE_XSHM_EXTENSION 1
19047 elif test "$with_xshm" != no; then
19048 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
19053 ###############################################################################
19055 # Check for the DOUBLE-BUFFER server extension.
19057 ###############################################################################
19060 with_xdbe_req=unspecified
19062 # Check whether --with-xdbe-ext or --without-xdbe-ext was given.
19063 if test "${with_xdbe_ext+set}" = set; then
19064 withval="$with_xdbe_ext"
19065 with_xdbe="$withval"; with_xdbe_req="$withval"
19071 case "$with_xdbe" in
19076 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER headers" >&5
19077 echo $ECHO_N "checking for DOUBLE-BUFFER headers... $ECHO_C" >&6
19078 d=$with_xdbe/include
19079 if test -d $d; then
19080 X_CFLAGS="-I$d $X_CFLAGS"
19081 echo "$as_me:$LINENO: result: $d" >&5
19082 echo "${ECHO_T}$d" >&6
19084 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19085 echo "${ECHO_T}not found ($d: no such directory)" >&6
19088 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER libs" >&5
19089 echo $ECHO_N "checking for DOUBLE-BUFFER libs... $ECHO_C" >&6
19091 if test -d $d; then
19092 X_LIBS="-L$d $X_LIBS"
19093 echo "$as_me:$LINENO: result: $d" >&5
19094 echo "${ECHO_T}$d" >&6
19096 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19097 echo "${ECHO_T}not found ($d: no such directory)" >&6
19100 # replace the directory string with "yes".
19101 with_xdbe_req="yes"
19102 with_xdbe=$with_xdbe_req
19107 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
19108 echo " If it is a directory, then \`DIR/include' will be added to"
19109 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19115 if test "$with_xdbe" = yes; then
19118 ac_save_CPPFLAGS="$CPPFLAGS"
19119 if test \! -z "$includedir" ; then
19120 CPPFLAGS="$CPPFLAGS -I$includedir"
19122 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19123 echo "$as_me:$LINENO: checking for X11/extensions/Xdbe.h" >&5
19124 echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6
19125 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
19126 echo $ECHO_N "(cached) $ECHO_C" >&6
19128 cat >conftest.$ac_ext <<_ACEOF
19131 cat confdefs.h >>conftest.$ac_ext
19132 cat >>conftest.$ac_ext <<_ACEOF
19133 /* end confdefs.h. */
19134 #include <X11/Xlib.h>
19136 #include <X11/extensions/Xdbe.h>
19138 rm -f conftest.$ac_objext
19139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19140 (eval $ac_compile) 2>conftest.er1
19142 grep -v '^ *+' conftest.er1 >conftest.err
19144 cat conftest.err >&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); } &&
19147 { ac_try='test -z "$ac_c_werror_flag"
19148 || test ! -s conftest.err'
19149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150 (eval $ac_try) 2>&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; } &&
19154 { ac_try='test -s conftest.$ac_objext'
19155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156 (eval $ac_try) 2>&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; }; then
19160 ac_cv_header_X11_extensions_Xdbe_h=yes
19162 echo "$as_me: failed program was:" >&5
19163 sed 's/^/| /' conftest.$ac_ext >&5
19165 ac_cv_header_X11_extensions_Xdbe_h=no
19167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19169 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
19170 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6
19171 if test $ac_cv_header_X11_extensions_Xdbe_h = yes; then
19176 CPPFLAGS="$ac_save_CPPFLAGS"
19177 if test "$have_xdbe" = yes; then
19178 cat >>confdefs.h <<\_ACEOF
19179 #define HAVE_DOUBLE_BUFFER_EXTENSION 1
19184 elif test "$with_xdbe" != no; then
19185 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
19190 ###############################################################################
19192 # Check for the SGI XReadDisplay server extension.
19194 # Note: this has to be down here, rather than up with the other server
19195 # extension tests, so that the output of `configure --help' is in the
19196 # right order. Arrgh!
19198 ###############################################################################
19200 have_readdisplay=no
19201 with_readdisplay_req=unspecified
19203 # Check whether --with-readdisplay or --without-readdisplay was given.
19204 if test "${with_readdisplay+set}" = set; then
19205 withval="$with_readdisplay"
19206 with_readdisplay="$withval"; with_readdisplay_req="$withval"
19208 with_readdisplay=yes
19212 case "$with_readdisplay" in
19217 echo "$as_me:$LINENO: checking for XReadDisplay headers" >&5
19218 echo $ECHO_N "checking for XReadDisplay headers... $ECHO_C" >&6
19219 d=$with_readdisplay/include
19220 if test -d $d; then
19221 X_CFLAGS="-I$d $X_CFLAGS"
19222 echo "$as_me:$LINENO: result: $d" >&5
19223 echo "${ECHO_T}$d" >&6
19225 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19226 echo "${ECHO_T}not found ($d: no such directory)" >&6
19229 echo "$as_me:$LINENO: checking for XReadDisplay libs" >&5
19230 echo $ECHO_N "checking for XReadDisplay libs... $ECHO_C" >&6
19231 d=$with_readdisplay/lib
19232 if test -d $d; then
19233 X_LIBS="-L$d $X_LIBS"
19234 echo "$as_me:$LINENO: result: $d" >&5
19235 echo "${ECHO_T}$d" >&6
19237 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19238 echo "${ECHO_T}not found ($d: no such directory)" >&6
19241 # replace the directory string with "yes".
19242 with_readdisplay_req="yes"
19243 with_readdisplay=$with_readdisplay_req
19248 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
19249 echo " If it is a directory, then \`DIR/include' will be added to"
19250 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19256 if test "$with_readdisplay" = yes; then
19258 ac_save_CPPFLAGS="$CPPFLAGS"
19259 if test \! -z "$includedir" ; then
19260 CPPFLAGS="$CPPFLAGS -I$includedir"
19262 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
19263 echo "$as_me:$LINENO: checking for X11/extensions/readdisplay.h" >&5
19264 echo $ECHO_N "checking for X11/extensions/readdisplay.h... $ECHO_C" >&6
19265 if test "${ac_cv_header_X11_extensions_readdisplay_h+set}" = set; then
19266 echo $ECHO_N "(cached) $ECHO_C" >&6
19268 cat >conftest.$ac_ext <<_ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h. */
19274 #include <X11/Xlib.h>
19276 #include <X11/extensions/readdisplay.h>
19278 rm -f conftest.$ac_objext
19279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19280 (eval $ac_compile) 2>conftest.er1
19282 grep -v '^ *+' conftest.er1 >conftest.err
19284 cat conftest.err >&5
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); } &&
19287 { ac_try='test -z "$ac_c_werror_flag"
19288 || test ! -s conftest.err'
19289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19290 (eval $ac_try) 2>&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; } &&
19294 { ac_try='test -s conftest.$ac_objext'
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; }; then
19300 ac_cv_header_X11_extensions_readdisplay_h=yes
19302 echo "$as_me: failed program was:" >&5
19303 sed 's/^/| /' conftest.$ac_ext >&5
19305 ac_cv_header_X11_extensions_readdisplay_h=no
19307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19309 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_readdisplay_h" >&5
19310 echo "${ECHO_T}$ac_cv_header_X11_extensions_readdisplay_h" >&6
19311 if test $ac_cv_header_X11_extensions_readdisplay_h = yes; then
19312 cat >>confdefs.h <<\_ACEOF
19313 #define HAVE_READ_DISPLAY_EXTENSION 1
19319 CPPFLAGS="$ac_save_CPPFLAGS"
19320 elif test "$with_readdisplay" != no; then
19321 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
19326 ###############################################################################
19328 # Check for a directory full of images to use as the default value
19329 # of the "imageDirectory" preference.
19331 ###############################################################################
19334 with_imagedir_req=unspecified
19337 # Check whether --with-image-directory or --without-image-directory was given.
19338 if test "${with_image_directory+set}" = set; then
19339 withval="$with_image_directory"
19340 with_imagedir="$withval"; with_imagedir_req="$withval"
19344 # no HANDLE_X_PATH_ARG for this one
19346 case "$with_imagedir" in
19349 echo "$as_me:$LINENO: checking for image directory $with_imagedir" >&5
19350 echo $ECHO_N "checking for image directory $with_imagedir... $ECHO_C" >&6
19351 if test -d "$with_imagedir" ; then
19352 echo "$as_me:$LINENO: result: yes" >&5
19353 echo "${ECHO_T}yes" >&6
19355 echo "$as_me:$LINENO: result: no" >&5
19356 echo "${ECHO_T}no" >&6
19363 #### Could use some more defaults here...
19365 "/usr/share/backgrounds/images/" \
19366 "/usr/share/wallpapers/" \
19367 "/Library/Desktop Pictures/" \
19369 if test -z "$with_imagedir"; then
19370 echo "$as_me:$LINENO: checking for image directory $dd" >&5
19371 echo $ECHO_N "checking for image directory $dd... $ECHO_C" >&6
19372 if test -d "$dd" ; then
19373 echo "$as_me:$LINENO: result: yes" >&5
19374 echo "${ECHO_T}yes" >&6
19375 with_imagedir="$dd"
19377 echo "$as_me:$LINENO: result: no" >&5
19378 echo "${ECHO_T}no" >&6
19389 echo "error: must be an absolute path: --with-image-directory=$with_imagedir_req"
19393 ac_cv_imagedir="$with_imagedir"
19395 DEFAULT_IMAGES_P='True'
19396 DEFAULT_IMAGE_DIRECTORY="$ac_cv_imagedir"
19398 if test -z "$DEFAULT_IMAGE_DIRECTORY" ; then
19399 DEFAULT_IMAGES_P='False'
19403 ###############################################################################
19405 # Pick a text file to use as the default of the "textFile" preference.
19406 # Any old file will do, but preferably one that will make interesting
19407 # shapes when displayed by "starwars" and "fontglide".
19409 ###############################################################################
19412 with_textfile_req=unspecified
19415 # Check whether --with-text-file or --without-text-file was given.
19416 if test "${with_text_file+set}" = set; then
19417 withval="$with_text_file"
19418 with_textfile="$withval"; with_textfile_req="$withval"
19422 # no HANDLE_X_PATH_ARG for this one
19424 case "$with_textfile" in
19427 echo "$as_me:$LINENO: checking for image directory $with_textfile" >&5
19428 echo $ECHO_N "checking for image directory $with_textfile... $ECHO_C" >&6
19429 if test -d "$with_textfile" ; then
19430 echo "$as_me:$LINENO: result: yes" >&5
19431 echo "${ECHO_T}yes" >&6
19433 echo "$as_me:$LINENO: result: no" >&5
19434 echo "${ECHO_T}no" >&6
19441 #### Could use some more defaults here...
19443 "/usr/X11R6/lib/X11/doc/README" \
19444 "/usr/share/doc/xserver-common/copyright" \
19445 "/usr/X11R6/README" \
19447 if test -z "$with_textfile"; then
19448 echo "$as_me:$LINENO: checking for text file $f" >&5
19449 echo $ECHO_N "checking for text file $f... $ECHO_C" >&6
19450 if test -f "$f" ; then
19451 echo "$as_me:$LINENO: result: yes" >&5
19452 echo "${ECHO_T}yes" >&6
19455 echo "$as_me:$LINENO: result: no" >&5
19456 echo "${ECHO_T}no" >&6
19467 echo "error: must be an absolute path: --with-image-directory=$with_textfile_req"
19471 ac_cv_textfile="$with_textfile"
19473 DEFAULT_TEXT_FILE="$ac_cv_textfile"
19476 ###############################################################################
19478 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
19479 # This should be safe, but let's give people the option.
19481 ###############################################################################
19483 setuid_hacks_default=no
19484 setuid_hacks="$setuid_hacks_default"
19486 # Check whether --with-setuid-hacks or --without-setuid-hacks was given.
19487 if test "${with_setuid_hacks+set}" = set; then
19488 withval="$with_setuid_hacks"
19489 setuid_hacks="$withval"
19491 setuid_hacks="$setuid_hacks_default"
19495 case "$setuid_hacks" in
19500 echo "$as_me:$LINENO: checking for setuid hacks headers" >&5
19501 echo $ECHO_N "checking for setuid hacks headers... $ECHO_C" >&6
19502 d=$setuid_hacks/include
19503 if test -d $d; then
19504 X_CFLAGS="-I$d $X_CFLAGS"
19505 echo "$as_me:$LINENO: result: $d" >&5
19506 echo "${ECHO_T}$d" >&6
19508 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19509 echo "${ECHO_T}not found ($d: no such directory)" >&6
19512 echo "$as_me:$LINENO: checking for setuid hacks libs" >&5
19513 echo $ECHO_N "checking for setuid hacks libs... $ECHO_C" >&6
19514 d=$setuid_hacks/lib
19515 if test -d $d; then
19516 X_LIBS="-L$d $X_LIBS"
19517 echo "$as_me:$LINENO: result: $d" >&5
19518 echo "${ECHO_T}$d" >&6
19520 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
19521 echo "${ECHO_T}not found ($d: no such directory)" >&6
19524 # replace the directory string with "yes".
19525 setuid_hacks_req="yes"
19526 setuid_hacks=$setuid_hacks_req
19531 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
19532 echo " If it is a directory, then \`DIR/include' will be added to"
19533 echo " the -I list, and \`DIR/lib' will be added to the -L list."
19539 if test "$setuid_hacks" = yes; then
19541 elif test "$setuid_hacks" != no; then
19542 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
19547 ###############################################################################
19549 # Done testing. Now, set up the various -I and -L variables,
19550 # and decide which GUI program to build by default.
19552 ###############################################################################
19559 if test \! -z "$includedir" ; then
19560 INCLUDES="$INCLUDES -I$includedir"
19563 if test \! -z "$libdir" ; then
19564 LDFLAGS="$LDFLAGS -L$libdir"
19568 PREFERRED_DEMO_PROGRAM=''
19570 if test "$have_motif" = yes; then
19571 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
19572 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
19574 if test "$have_gtk" = yes; then
19575 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
19576 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
19580 if test "$have_kerberos" = yes; then
19581 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
19582 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
19584 if test "$have_pam" = yes; then
19585 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
19586 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
19587 INSTALL_PAM="install-pam"
19589 if test "$have_passwd_helper" = yes; then
19590 PASSWD_SRCS="$PASSWD_SRCS \$(PWHELPER_SRCS)"
19591 PASSWD_OBJS="$PASSWD_OBJS \$(PWHELPER_OBJS)"
19593 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
19594 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
19597 if test "$enable_locking" = yes; then
19598 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
19599 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
19601 LOCK_SRCS='$(NOLOCK_SRCS_1)'
19602 LOCK_OBJS='$(NOLOCK_OBJS_1)'
19605 if test "$ac_macosx" = yes; then
19606 EXES_OSX='$(EXES_OSX)'
19607 SCRIPTS_OSX='$(SCRIPTS_OSX)'
19608 MEN_OSX='$(MEN_OSX)'
19616 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
19618 if test "$need_setuid" = yes; then
19624 if test "$setuid_hacks" = yes; then
19631 if test "$have_gl" = yes; then
19632 GL_EXES='$(GL_EXES)'
19633 GL_UTIL_EXES='$(GL_UTIL_EXES)'
19635 GL_KLUDGE="${tab} "
19637 GL_KLUDGE="-${tab} "
19640 if test "$have_gle" = yes; then
19641 GLE_EXES='$(GLE_EXES)'
19642 GLE_KLUDGE="${tab} "
19644 GLE_KLUDGE="-${tab} "
19647 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
19648 JPEG_EXES='$(JPEG_EXES)'
19652 # Another substitution in the XScreenSaver.ad.in file:
19654 if test "$gnome_open_program" != ''; then
19658 elif test "$gnome_url_show_program" != ''; then
19669 # Set PO_DATADIR to something sensible.
19671 echo "$as_me:$LINENO: checking for locale directory" >&5
19672 echo $ECHO_N "checking for locale directory... $ECHO_C" >&6
19673 if test -n "$GTK_DATADIR" ; then
19674 PO_DATADIR="$GTK_DATADIR"
19675 elif test "$have_gtk" = yes; then
19676 PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
19677 PO_DATADIR="$PO_DATADIR/share"
19680 if test -z "$PO_DATADIR" ; then
19682 # #### Total fucking kludge --
19683 # Map /build/prefix/usr/X11R6/share/ to /build/prefix/usr/share/
19684 # but of course we need to expand all the nested variables to do that...
19692 PO_DATADIR=`echo $dd | sed 's@/X11R6/@/@'`
19695 echo "$as_me:$LINENO: result: $PO_DATADIR/locale" >&5
19696 echo "${ECHO_T}$PO_DATADIR/locale" >&6
19699 # canonicalize slashes.
19700 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
19702 # gcc 3.0 likes to issue this warning for every file:
19704 # cc1: warning: changing search order for system directory "/usr/local/include"
19705 # cc1: warning: as it has already been specified as a non-system directory
19707 # Yay. We can only avoid that by deleting "-I${prefix}/include" from the list.
19708 # Which *should* be totally redundant, and thus an ok thing to delete?
19710 INCLUDES=`echo "$INCLUDES" | sed 's@ -I${prefix}/include@@g;'`
19713 ###############################################################################
19715 # Perform substitutions and write Makefiles.
19717 ###############################################################################
19778 APPDEFAULTS=$ac_x_app_defaults
19786 ac_config_files="$ac_config_files Makefile utils/Makefile driver/Makefile hacks/Makefile hacks/glx/Makefile po/Makefile.in driver/XScreenSaver.ad"
19787 cat >confcache <<\_ACEOF
19788 # This file is a shell script that caches the results of configure
19789 # tests run on this system so they can be shared between configure
19790 # scripts and configure runs, see configure's option --config-cache.
19791 # It is not useful on other systems. If it contains results you don't
19792 # want to keep, you may remove or edit it.
19794 # config.status only pays attention to the cache file if you give it
19795 # the --recheck option to rerun configure.
19797 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19798 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19799 # following values.
19803 # The following way of writing the cache mishandles newlines in values,
19804 # but we know of no workaround that is simple, portable, and efficient.
19805 # So, don't put newlines in cache variables' values.
19806 # Ultrix sh set writes to stderr and can't be redirected directly,
19807 # and sets the high bit in the cache file unless we assign to the vars.
19810 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19812 # `set' does not quote correctly, so add quotes (double-quote
19813 # substitution turns \\\\ into \\, and sed turns \\ into \).
19816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19819 # `set' quotes correctly as required by POSIX, so do not add quotes.
19821 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19828 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19830 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19832 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19833 if test -w $cache_file; then
19834 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19835 cat confcache >$cache_file
19837 echo "not updating unwritable cache $cache_file"
19842 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19843 # Let make expand exec_prefix.
19844 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19846 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19847 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19848 # trailing colons and then remove the whole line if VPATH becomes empty
19849 # (actually we leave an empty line to preserve line numbers).
19850 if test "x$srcdir" = x.; then
19851 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19852 s/:*\$(srcdir):*/:/;
19853 s/:*\${srcdir}:*/:/;
19855 s/^\([^=]*=[ ]*\):*/\1/;
19861 DEFS=-DHAVE_CONFIG_H
19865 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19866 # 1. Remove the extension, and $U if already installed.
19867 ac_i=`echo "$ac_i" |
19868 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19870 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19871 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19873 LIBOBJS=$ac_libobjs
19875 LTLIBOBJS=$ac_ltlibobjs
19880 mv -f po/POTFILES po/POTFILES.tmp
19881 sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
19882 rm -f po/POTFILES.tmp
19886 : ${CONFIG_STATUS=./config.status}
19887 ac_clean_files_save=$ac_clean_files
19888 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19889 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19890 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19891 cat >$CONFIG_STATUS <<_ACEOF
19893 # Generated by $as_me.
19894 # Run this file to recreate the current configuration.
19895 # Compiler output produced by configure, useful for debugging
19896 # configure, is in config.log if it exists.
19899 ac_cs_recheck=false
19901 SHELL=\${CONFIG_SHELL-$SHELL}
19904 cat >>$CONFIG_STATUS <<\_ACEOF
19905 ## --------------------- ##
19906 ## M4sh Initialization. ##
19907 ## --------------------- ##
19909 # Be Bourne compatible
19910 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19913 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19914 # is contrary to our usage. Disable this feature.
19915 alias -g '${1+"$@"}'='"$@"'
19916 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19919 DUALCASE=1; export DUALCASE # for MKS sh
19921 # Support unset when possible.
19922 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19929 # Work around bugs in pre-3.0 UWIN ksh.
19930 $as_unset ENV MAIL MAILPATH
19937 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19938 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19939 LC_TELEPHONE LC_TIME
19941 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19942 eval $as_var=C; export $as_var
19948 # Required to use basename.
19949 if expr a : '\(a\)' >/dev/null 2>&1; then
19955 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19956 as_basename=basename
19962 # Name of the executable.
19963 as_me=`$as_basename "$0" ||
19964 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19965 X"$0" : 'X\(//\)$' \| \
19966 X"$0" : 'X\(/\)$' \| \
19967 . : '\(.\)' 2>/dev/null ||
19969 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19970 /^X\/\(\/\/\)$/{ s//\1/; q; }
19971 /^X\/\(\/\).*/{ s//\1/; q; }
19975 # PATH needs CR, and LINENO needs CR and PATH.
19976 # Avoid depending upon Character Ranges.
19977 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19978 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19979 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19980 as_cr_digits='0123456789'
19981 as_cr_alnum=$as_cr_Letters$as_cr_digits
19983 # The user is always right.
19984 if test "${PATH_SEPARATOR+set}" != set; then
19985 echo "#! /bin/sh" >conf$$.sh
19986 echo "exit 0" >>conf$$.sh
19988 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19997 as_lineno_1=$LINENO
19998 as_lineno_2=$LINENO
19999 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20000 test "x$as_lineno_1" != "x$as_lineno_2" &&
20001 test "x$as_lineno_3" = "x$as_lineno_2" || {
20002 # Find who we are. Look in the path if we contain no path at all
20005 *[\\/]* ) as_myself=$0 ;;
20006 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20007 for as_dir in $PATH
20010 test -z "$as_dir" && as_dir=.
20011 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20016 # We did not find ourselves, most probably we were run as `sh COMMAND'
20017 # in which case we are not to be found in the path.
20018 if test "x$as_myself" = x; then
20021 if test ! -f "$as_myself"; then
20022 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20023 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20024 { (exit 1); exit 1; }; }
20026 case $CONFIG_SHELL in
20028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20029 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20032 test -z "$as_dir" && as_dir=.
20033 for as_base in sh bash ksh sh5; do
20036 if ("$as_dir/$as_base" -c '
20037 as_lineno_1=$LINENO
20038 as_lineno_2=$LINENO
20039 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20040 test "x$as_lineno_1" != "x$as_lineno_2" &&
20041 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20042 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20043 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20044 CONFIG_SHELL=$as_dir/$as_base
20045 export CONFIG_SHELL
20046 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20054 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20055 # uniformly replaced by the line number. The first 'sed' inserts a
20056 # line-number line before each line; the second 'sed' does the real
20057 # work. The second script uses 'N' to pair each line-number line
20058 # with the numbered line, and appends trailing '-' during
20059 # substitution so that $LINENO is not a special case at line end.
20060 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20061 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20062 sed '=' <$as_myself |
20067 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20070 s,^['$as_cr_digits']*\n,,
20071 ' >$as_me.lineno &&
20072 chmod +x $as_me.lineno ||
20073 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20074 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20075 { (exit 1); exit 1; }; }
20077 # Don't try to exec as it changes $[0], causing all sort of problems
20078 # (the dirname of $[0] is not the place where we might find the
20079 # original and so on. Autoconf is especially sensible to this).
20081 # Exit status is that of the last command.
20086 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20087 *c*,-n*) ECHO_N= ECHO_C='
20089 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20090 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20093 if expr a : '\(a\)' >/dev/null 2>&1; then
20099 rm -f conf$$ conf$$.exe conf$$.file
20101 if ln -s conf$$.file conf$$ 2>/dev/null; then
20102 # We could just check for DJGPP; but this test a) works b) is more generic
20103 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20104 if test -f conf$$.exe; then
20105 # Don't use ln at all; we don't have any links
20110 elif ln conf$$.file conf$$ 2>/dev/null; then
20115 rm -f conf$$ conf$$.exe conf$$.file
20117 if mkdir -p . 2>/dev/null; then
20120 test -d ./-p && rmdir ./-p
20124 as_executable_p="test -f"
20126 # Sed expression to map a string onto a valid CPP name.
20127 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20129 # Sed expression to map a string onto a valid variable name.
20130 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20134 # We need space, tab and new line, in precisely that order.
20144 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20145 # report actual input values of CONFIG_FILES etc. instead of their
20146 # values after options handling. Logging --version etc. is OK.
20150 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20151 ## Running $as_me. ##
20156 This file was extended by $as_me, which was
20157 generated by GNU Autoconf 2.59. Invocation command line was
20159 CONFIG_FILES = $CONFIG_FILES
20160 CONFIG_HEADERS = $CONFIG_HEADERS
20161 CONFIG_LINKS = $CONFIG_LINKS
20162 CONFIG_COMMANDS = $CONFIG_COMMANDS
20166 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20170 # Files that config.status was made for.
20171 if test -n "$ac_config_files"; then
20172 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20175 if test -n "$ac_config_headers"; then
20176 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20179 if test -n "$ac_config_links"; then
20180 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20183 if test -n "$ac_config_commands"; then
20184 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20187 cat >>$CONFIG_STATUS <<\_ACEOF
20190 \`$as_me' instantiates files from templates according to the
20191 current configuration.
20193 Usage: $0 [OPTIONS] [FILE]...
20195 -h, --help print this help, then exit
20196 -V, --version print version number, then exit
20197 -q, --quiet do not print progress messages
20198 -d, --debug don't remove temporary files
20199 --recheck update $as_me by reconfiguring in the same conditions
20200 --file=FILE[:TEMPLATE]
20201 instantiate the configuration file FILE
20202 --header=FILE[:TEMPLATE]
20203 instantiate the configuration header FILE
20205 Configuration files:
20208 Configuration headers:
20211 Configuration commands:
20214 Report bugs to <bug-autoconf@gnu.org>."
20217 cat >>$CONFIG_STATUS <<_ACEOF
20220 configured by $0, generated by GNU Autoconf 2.59,
20221 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20223 Copyright (C) 2003 Free Software Foundation, Inc.
20224 This config.status script is free software; the Free Software Foundation
20225 gives unlimited permission to copy, distribute and modify it."
20230 cat >>$CONFIG_STATUS <<\_ACEOF
20231 # If no file are specified by the user, then we need to provide default
20232 # value. By we need to know if files were specified by the user.
20238 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20239 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20247 *) # This is not an option, so the user has probably given explicit
20250 ac_need_defaults=false;;
20254 # Handling of the options.
20256 cat >>$CONFIG_STATUS <<\_ACEOF
20257 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20259 --version | --vers* | -V )
20260 echo "$ac_cs_version"; exit 0 ;;
20262 # Conflict between --help and --header
20263 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20264 Try \`$0 --help' for more information." >&5
20265 echo "$as_me: error: ambiguous option: $1
20266 Try \`$0 --help' for more information." >&2;}
20267 { (exit 1); exit 1; }; };;
20268 --help | --hel | -h )
20269 echo "$ac_cs_usage"; exit 0 ;;
20270 --debug | --d* | -d )
20272 --file | --fil | --fi | --f )
20274 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20275 ac_need_defaults=false;;
20276 --header | --heade | --head | --hea )
20278 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20279 ac_need_defaults=false;;
20280 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20281 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20284 # This is an error.
20285 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20286 Try \`$0 --help' for more information." >&5
20287 echo "$as_me: error: unrecognized option: $1
20288 Try \`$0 --help' for more information." >&2;}
20289 { (exit 1); exit 1; }; } ;;
20291 *) ac_config_targets="$ac_config_targets $1" ;;
20297 ac_configure_extra_args=
20299 if $ac_cs_silent; then
20301 ac_configure_extra_args="$ac_configure_extra_args --silent"
20305 cat >>$CONFIG_STATUS <<_ACEOF
20306 if \$ac_cs_recheck; then
20307 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20308 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20313 cat >>$CONFIG_STATUS <<_ACEOF
20315 # INIT-COMMANDS section.
20318 INTLTOOL_PERL=${INTLTOOL_PERL}
20325 cat >>$CONFIG_STATUS <<\_ACEOF
20326 for ac_config_target in $ac_config_targets
20328 case "$ac_config_target" in
20329 # Handling of arguments.
20330 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20331 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20332 "driver/Makefile" ) CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
20333 "hacks/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
20334 "hacks/glx/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
20335 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
20336 "driver/XScreenSaver.ad" ) CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
20337 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20338 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
20339 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20340 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20341 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20342 { (exit 1); exit 1; }; };;
20346 # If the user did not use the arguments to specify the items to instantiate,
20347 # then the envvar interface is used. Set only those that are not.
20348 # We use the long form for the default assignment because of an extremely
20349 # bizarre bug on SunOS 4.1.3.
20350 if $ac_need_defaults; then
20351 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20352 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20353 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20356 # Have a temporary directory for convenience. Make it in the build tree
20357 # simply because there is no reason to put it here, and in addition,
20358 # creating and moving files from /tmp can sometimes cause problems.
20359 # Create a temporary directory, and hook for its removal unless debugging.
20362 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20363 trap '{ (exit 1); exit 1; }' 1 2 13 15
20366 # Create a (secure) tmp directory for tmp files.
20369 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20370 test -n "$tmp" && test -d "$tmp"
20373 tmp=./confstat$$-$RANDOM
20374 (umask 077 && mkdir $tmp)
20377 echo "$me: cannot create a temporary directory in ." >&2
20378 { (exit 1); exit 1; }
20383 cat >>$CONFIG_STATUS <<_ACEOF
20386 # CONFIG_FILES section.
20389 # No need to generate the scripts if there are no CONFIG_FILES.
20390 # This happens for instance when ./config.status config.h
20391 if test -n "\$CONFIG_FILES"; then
20392 # Protect against being on the right side of a sed subst in config.status.
20393 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20394 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20395 s,@SHELL@,$SHELL,;t t
20396 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20397 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20398 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20399 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20400 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20401 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20402 s,@exec_prefix@,$exec_prefix,;t t
20403 s,@prefix@,$prefix,;t t
20404 s,@program_transform_name@,$program_transform_name,;t t
20405 s,@bindir@,$bindir,;t t
20406 s,@sbindir@,$sbindir,;t t
20407 s,@libexecdir@,$libexecdir,;t t
20408 s,@datadir@,$datadir,;t t
20409 s,@sysconfdir@,$sysconfdir,;t t
20410 s,@sharedstatedir@,$sharedstatedir,;t t
20411 s,@localstatedir@,$localstatedir,;t t
20412 s,@libdir@,$libdir,;t t
20413 s,@includedir@,$includedir,;t t
20414 s,@oldincludedir@,$oldincludedir,;t t
20415 s,@infodir@,$infodir,;t t
20416 s,@mandir@,$mandir,;t t
20417 s,@build_alias@,$build_alias,;t t
20418 s,@host_alias@,$host_alias,;t t
20419 s,@target_alias@,$target_alias,;t t
20420 s,@DEFS@,$DEFS,;t t
20421 s,@ECHO_C@,$ECHO_C,;t t
20422 s,@ECHO_N@,$ECHO_N,;t t
20423 s,@ECHO_T@,$ECHO_T,;t t
20424 s,@LIBS@,$LIBS,;t t
20425 s,@build@,$build,;t t
20426 s,@build_cpu@,$build_cpu,;t t
20427 s,@build_vendor@,$build_vendor,;t t
20428 s,@build_os@,$build_os,;t t
20429 s,@host@,$host,;t t
20430 s,@host_cpu@,$host_cpu,;t t
20431 s,@host_vendor@,$host_vendor,;t t
20432 s,@host_os@,$host_os,;t t
20434 s,@CFLAGS@,$CFLAGS,;t t
20435 s,@LDFLAGS@,$LDFLAGS,;t t
20436 s,@CPPFLAGS@,$CPPFLAGS,;t t
20437 s,@ac_ct_CC@,$ac_ct_CC,;t t
20438 s,@EXEEXT@,$EXEEXT,;t t
20439 s,@OBJEXT@,$OBJEXT,;t t
20441 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20442 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20443 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20444 s,@SET_MAKE@,$SET_MAKE,;t t
20445 s,@EGREP@,$EGREP,;t t
20446 s,@PERL@,$PERL,;t t
20447 s,@X_CFLAGS@,$X_CFLAGS,;t t
20448 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20449 s,@X_LIBS@,$X_LIBS,;t t
20450 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20451 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
20452 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
20453 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
20454 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
20455 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
20456 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
20457 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
20458 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
20459 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
20460 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
20461 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
20462 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
20463 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
20464 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
20465 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
20466 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
20467 s,@RANLIB@,$RANLIB,;t t
20468 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20469 s,@ALLOCA@,$ALLOCA,;t t
20470 s,@USE_NLS@,$USE_NLS,;t t
20471 s,@MSGFMT@,$MSGFMT,;t t
20472 s,@GMSGFMT@,$GMSGFMT,;t t
20473 s,@XGETTEXT@,$XGETTEXT,;t t
20474 s,@CATALOGS@,$CATALOGS,;t t
20475 s,@CATOBJEXT@,$CATOBJEXT,;t t
20476 s,@DATADIRNAME@,$DATADIRNAME,;t t
20477 s,@GMOFILES@,$GMOFILES,;t t
20478 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20479 s,@INTLDEPS@,$INTLDEPS,;t t
20480 s,@INTLLIBS@,$INTLLIBS,;t t
20481 s,@INTLOBJS@,$INTLOBJS,;t t
20482 s,@POFILES@,$POFILES,;t t
20483 s,@POSUB@,$POSUB,;t t
20484 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20485 s,@login_manager_tmp@,$login_manager_tmp,;t t
20486 s,@pkg_config@,$pkg_config,;t t
20487 s,@gnome_open_program@,$gnome_open_program,;t t
20488 s,@gnome_url_show_program@,$gnome_url_show_program,;t t
20489 s,@INCLUDES@,$INCLUDES,;t t
20490 s,@PREFERRED_DEMO_PROGRAM@,$PREFERRED_DEMO_PROGRAM,;t t
20491 s,@ALL_DEMO_PROGRAMS@,$ALL_DEMO_PROGRAMS,;t t
20492 s,@SAVER_LIBS@,$SAVER_LIBS,;t t
20493 s,@MOTIF_LIBS@,$MOTIF_LIBS,;t t
20494 s,@GTK_LIBS@,$GTK_LIBS,;t t
20495 s,@XML_LIBS@,$XML_LIBS,;t t
20496 s,@JPEG_LIBS@,$JPEG_LIBS,;t t
20497 s,@HACK_LIBS@,$HACK_LIBS,;t t
20498 s,@XPM_LIBS@,$XPM_LIBS,;t t
20499 s,@PTY_LIBS@,$PTY_LIBS,;t t
20500 s,@GL_LIBS@,$GL_LIBS,;t t
20501 s,@GLE_LIBS@,$GLE_LIBS,;t t
20502 s,@XDPMS_LIBS@,$XDPMS_LIBS,;t t
20503 s,@XINERAMA_LIBS@,$XINERAMA_LIBS,;t t
20504 s,@PASSWD_LIBS@,$PASSWD_LIBS,;t t
20505 s,@INSTALL_SETUID@,$INSTALL_SETUID,;t t
20506 s,@SETUID_HACKS@,$SETUID_HACKS,;t t
20507 s,@INSTALL_DIRS@,$INSTALL_DIRS,;t t
20508 s,@NEED_SETUID@,$NEED_SETUID,;t t
20509 s,@INSTALL_PAM@,$INSTALL_PAM,;t t
20510 s,@NEW_LOGIN_COMMAND@,$NEW_LOGIN_COMMAND,;t t
20511 s,@NEW_LOGIN_COMMAND_P@,$NEW_LOGIN_COMMAND_P,;t t
20512 s,@DEFAULT_IMAGES_P@,$DEFAULT_IMAGES_P,;t t
20513 s,@DEFAULT_IMAGE_DIRECTORY@,$DEFAULT_IMAGE_DIRECTORY,;t t
20514 s,@DEFAULT_TEXT_FILE@,$DEFAULT_TEXT_FILE,;t t
20515 s,@OBJCC@,$OBJCC,;t t
20516 s,@EXES_OSX@,$EXES_OSX,;t t
20517 s,@SCRIPTS_OSX@,$SCRIPTS_OSX,;t t
20518 s,@MEN_OSX@,$MEN_OSX,;t t
20519 s,@PASSWD_SRCS@,$PASSWD_SRCS,;t t
20520 s,@PASSWD_OBJS@,$PASSWD_OBJS,;t t
20521 s,@XMU_SRCS@,$XMU_SRCS,;t t
20522 s,@XMU_OBJS@,$XMU_OBJS,;t t
20523 s,@XMU_LIBS@,$XMU_LIBS,;t t
20524 s,@SAVER_GL_SRCS@,$SAVER_GL_SRCS,;t t
20525 s,@SAVER_GL_OBJS@,$SAVER_GL_OBJS,;t t
20526 s,@SAVER_GL_LIBS@,$SAVER_GL_LIBS,;t t
20527 s,@LOCK_SRCS@,$LOCK_SRCS,;t t
20528 s,@LOCK_OBJS@,$LOCK_OBJS,;t t
20529 s,@JPEG_EXES@,$JPEG_EXES,;t t
20530 s,@GL_EXES@,$GL_EXES,;t t
20531 s,@GL_UTIL_EXES@,$GL_UTIL_EXES,;t t
20532 s,@GL_MEN@,$GL_MEN,;t t
20533 s,@GL_KLUDGE@,$GL_KLUDGE,;t t
20534 s,@GLE_EXES@,$GLE_EXES,;t t
20535 s,@GLE_KLUDGE@,$GLE_KLUDGE,;t t
20536 s,@GNOME24@,$GNOME24,;t t
20537 s,@GNOME22@,$GNOME22,;t t
20538 s,@NOGNOME@,$NOGNOME,;t t
20539 s,@HACKDIR@,$HACKDIR,;t t
20540 s,@GTK_DATADIR@,$GTK_DATADIR,;t t
20541 s,@PO_DATADIR@,$PO_DATADIR,;t t
20542 s,@HACK_CONF_DIR@,$HACK_CONF_DIR,;t t
20543 s,@GTK_EXTRA_OBJS@,$GTK_EXTRA_OBJS,;t t
20544 s,@APPDEFAULTS@,$APPDEFAULTS,;t t
20545 s,@DEPEND@,$DEPEND,;t t
20546 s,@DEPEND_FLAGS@,$DEPEND_FLAGS,;t t
20547 s,@DEPEND_DEFINES@,$DEPEND_DEFINES,;t t
20548 s,@LIBOBJS@,$LIBOBJS,;t t
20549 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20554 cat >>$CONFIG_STATUS <<\_ACEOF
20555 # Split the substitutions into bite-sized pieces for seds with
20556 # small command number limits, like on Digital OSF/1 and HP-UX.
20557 ac_max_sed_lines=48
20558 ac_sed_frag=1 # Number of current file.
20559 ac_beg=1 # First line for current file.
20560 ac_end=$ac_max_sed_lines # Line after last line for current file.
20563 while $ac_more_lines; do
20564 if test $ac_beg -gt 1; then
20565 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20567 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20569 if test ! -s $tmp/subs.frag; then
20570 ac_more_lines=false
20572 # The purpose of the label and of the branching condition is to
20573 # speed up the sed processing (if there are no `@' at all, there
20574 # is no need to browse any of the substitutions).
20575 # These are the two extra sed commands mentioned above.
20577 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20578 if test -z "$ac_sed_cmds"; then
20579 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20581 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20583 ac_sed_frag=`expr $ac_sed_frag + 1`
20585 ac_end=`expr $ac_end + $ac_max_sed_lines`
20588 if test -z "$ac_sed_cmds"; then
20591 fi # test -n "$CONFIG_FILES"
20594 cat >>$CONFIG_STATUS <<\_ACEOF
20595 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20596 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20598 - | *:- | *:-:* ) # input from stdin
20600 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20601 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20602 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20603 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20604 * ) ac_file_in=$ac_file.in ;;
20607 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20608 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20609 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20610 X"$ac_file" : 'X\(//\)[^/]' \| \
20611 X"$ac_file" : 'X\(//\)$' \| \
20612 X"$ac_file" : 'X\(/\)' \| \
20613 . : '\(.\)' 2>/dev/null ||
20615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20616 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20617 /^X\(\/\/\)$/{ s//\1/; q; }
20618 /^X\(\/\).*/{ s//\1/; q; }
20620 { if $as_mkdir_p; then
20625 while test ! -d "$as_dir"; do
20626 as_dirs="$as_dir $as_dirs"
20627 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20628 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20629 X"$as_dir" : 'X\(//\)[^/]' \| \
20630 X"$as_dir" : 'X\(//\)$' \| \
20631 X"$as_dir" : 'X\(/\)' \| \
20632 . : '\(.\)' 2>/dev/null ||
20634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20635 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20636 /^X\(\/\/\)$/{ s//\1/; q; }
20637 /^X\(\/\).*/{ s//\1/; q; }
20640 test ! -n "$as_dirs" || mkdir $as_dirs
20641 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20642 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20643 { (exit 1); exit 1; }; }; }
20647 if test "$ac_dir" != .; then
20648 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20649 # A "../" for each directory in $ac_dir_suffix.
20650 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20652 ac_dir_suffix= ac_top_builddir=
20656 .) # No --srcdir option. We are building in place.
20658 if test -z "$ac_top_builddir"; then
20661 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20663 [\\/]* | ?:[\\/]* ) # Absolute path.
20664 ac_srcdir=$srcdir$ac_dir_suffix;
20665 ac_top_srcdir=$srcdir ;;
20666 *) # Relative path.
20667 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20668 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20671 # Do not use `cd foo && pwd` to compute absolute paths, because
20672 # the directories may not exist.
20674 .) ac_abs_builddir="$ac_dir";;
20677 .) ac_abs_builddir=`pwd`;;
20678 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20679 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20682 case $ac_abs_builddir in
20683 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20685 case ${ac_top_builddir}. in
20686 .) ac_abs_top_builddir=$ac_abs_builddir;;
20687 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20688 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20691 case $ac_abs_builddir in
20692 .) ac_abs_srcdir=$ac_srcdir;;
20695 .) ac_abs_srcdir=$ac_abs_builddir;;
20696 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20697 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20700 case $ac_abs_builddir in
20701 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20703 case $ac_top_srcdir in
20704 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20705 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20706 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20712 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20713 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20716 if test x"$ac_file" != x-; then
20717 { echo "$as_me:$LINENO: creating $ac_file" >&5
20718 echo "$as_me: creating $ac_file" >&6;}
20721 # Let's still pretend it is `configure' which instantiates (i.e., don't
20722 # use $as_me), people would be surprised to read:
20723 # /* config.h. Generated by config.status. */
20724 if test x"$ac_file" = x-; then
20727 configure_input="$ac_file. "
20729 configure_input=$configure_input"Generated from `echo $ac_file_in |
20730 sed 's,.*/,,'` by configure."
20732 # First look for the input files in the build tree, otherwise in the
20734 ac_file_inputs=`IFS=:
20735 for f in $ac_file_in; do
20737 -) echo $tmp/stdin ;;
20739 # Absolute (can't be DOS-style, as IFS=:)
20740 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20741 echo "$as_me: error: cannot find input file: $f" >&2;}
20742 { (exit 1); exit 1; }; }
20745 if test -f "$f"; then
20748 elif test -f "$srcdir/$f"; then
20753 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20754 echo "$as_me: error: cannot find input file: $f" >&2;}
20755 { (exit 1); exit 1; }; }
20758 done` || { (exit 1); exit 1; }
20760 cat >>$CONFIG_STATUS <<_ACEOF
20764 cat >>$CONFIG_STATUS <<\_ACEOF
20766 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20767 s,@configure_input@,$configure_input,;t t
20768 s,@srcdir@,$ac_srcdir,;t t
20769 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20770 s,@top_srcdir@,$ac_top_srcdir,;t t
20771 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20772 s,@builddir@,$ac_builddir,;t t
20773 s,@abs_builddir@,$ac_abs_builddir,;t t
20774 s,@top_builddir@,$ac_top_builddir,;t t
20775 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20776 s,@INSTALL@,$ac_INSTALL,;t t
20777 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20779 if test x"$ac_file" != x-; then
20780 mv $tmp/out $ac_file
20788 cat >>$CONFIG_STATUS <<\_ACEOF
20791 # CONFIG_HEADER section.
20794 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20795 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20797 # ac_d sets the value in "#define NAME VALUE" lines.
20798 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20799 ac_dB='[ ].*$,\1#\2'
20802 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20803 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20804 ac_uB='$,\1#\2define\3'
20808 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20809 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20811 - | *:- | *:-:* ) # input from stdin
20813 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20814 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20815 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20816 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20817 * ) ac_file_in=$ac_file.in ;;
20820 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20821 echo "$as_me: creating $ac_file" >&6;}
20823 # First look for the input files in the build tree, otherwise in the
20825 ac_file_inputs=`IFS=:
20826 for f in $ac_file_in; do
20828 -) echo $tmp/stdin ;;
20830 # Absolute (can't be DOS-style, as IFS=:)
20831 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20832 echo "$as_me: error: cannot find input file: $f" >&2;}
20833 { (exit 1); exit 1; }; }
20834 # Do quote $f, to prevent DOS paths from being IFS'd.
20837 if test -f "$f"; then
20840 elif test -f "$srcdir/$f"; then
20845 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20846 echo "$as_me: error: cannot find input file: $f" >&2;}
20847 { (exit 1); exit 1; }; }
20850 done` || { (exit 1); exit 1; }
20851 # Remove the trailing spaces.
20852 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20856 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20857 # `conftest.undefs', that substitutes the proper values into
20858 # config.h.in to produce config.h. The first handles `#define'
20859 # templates, and the second `#undef' templates.
20860 # And first: Protect against being on the right side of a sed subst in
20861 # config.status. Protect against being in an unquoted here document
20862 # in config.status.
20863 rm -f conftest.defines conftest.undefs
20864 # Using a here document instead of a string reduces the quoting nightmare.
20865 # Putting comments in sed scripts is not portable.
20867 # `end' is used to avoid that the second main sed command (meant for
20868 # 0-ary CPP macros) applies to n-ary macro definitions.
20869 # See the Autoconf documentation for `clear'.
20870 cat >confdef2sed.sed <<\_ACEOF
20875 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20877 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20880 # If some macros were called several times there might be several times
20881 # the same #defines, which is useless. Nevertheless, we may not want to
20882 # sort them, since we want the *last* AC-DEFINE to be honored.
20883 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20884 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20885 rm -f confdef2sed.sed
20887 # This sed command replaces #undef with comments. This is necessary, for
20888 # example, in the case of _POSIX_SOURCE, which is predefined and required
20889 # on some systems where configure will not decide to define it.
20890 cat >>conftest.undefs <<\_ACEOF
20891 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20894 # Break up conftest.defines because some shells have a limit on the size
20895 # of here documents, and old seds have small limits too (100 cmds).
20896 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20897 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20898 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20899 echo ' :' >>$CONFIG_STATUS
20900 rm -f conftest.tail
20901 while grep . conftest.defines >/dev/null
20903 # Write a limited-size here document to $tmp/defines.sed.
20904 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20905 # Speed up: don't consider the non `#define' lines.
20906 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20907 # Work around the forget-to-reset-the-flag bug.
20908 echo 't clr' >>$CONFIG_STATUS
20909 echo ': clr' >>$CONFIG_STATUS
20910 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20912 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20914 mv $tmp/out $tmp/in
20916 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20917 rm -f conftest.defines
20918 mv conftest.tail conftest.defines
20920 rm -f conftest.defines
20921 echo ' fi # grep' >>$CONFIG_STATUS
20922 echo >>$CONFIG_STATUS
20924 # Break up conftest.undefs because some shells have a limit on the size
20925 # of here documents, and old seds have small limits too (100 cmds).
20926 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20927 rm -f conftest.tail
20928 while grep . conftest.undefs >/dev/null
20930 # Write a limited-size here document to $tmp/undefs.sed.
20931 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20932 # Speed up: don't consider the non `#undef'
20933 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20934 # Work around the forget-to-reset-the-flag bug.
20935 echo 't clr' >>$CONFIG_STATUS
20936 echo ': clr' >>$CONFIG_STATUS
20937 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20939 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20941 mv $tmp/out $tmp/in
20943 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20944 rm -f conftest.undefs
20945 mv conftest.tail conftest.undefs
20947 rm -f conftest.undefs
20949 cat >>$CONFIG_STATUS <<\_ACEOF
20950 # Let's still pretend it is `configure' which instantiates (i.e., don't
20951 # use $as_me), people would be surprised to read:
20952 # /* config.h. Generated by config.status. */
20953 if test x"$ac_file" = x-; then
20954 echo "/* Generated by configure. */" >$tmp/config.h
20956 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20958 cat $tmp/in >>$tmp/config.h
20960 if test x"$ac_file" != x-; then
20961 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20962 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20963 echo "$as_me: $ac_file is unchanged" >&6;}
20965 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20966 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20967 X"$ac_file" : 'X\(//\)[^/]' \| \
20968 X"$ac_file" : 'X\(//\)$' \| \
20969 X"$ac_file" : 'X\(/\)' \| \
20970 . : '\(.\)' 2>/dev/null ||
20972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20974 /^X\(\/\/\)$/{ s//\1/; q; }
20975 /^X\(\/\).*/{ s//\1/; q; }
20977 { if $as_mkdir_p; then
20982 while test ! -d "$as_dir"; do
20983 as_dirs="$as_dir $as_dirs"
20984 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20986 X"$as_dir" : 'X\(//\)[^/]' \| \
20987 X"$as_dir" : 'X\(//\)$' \| \
20988 X"$as_dir" : 'X\(/\)' \| \
20989 . : '\(.\)' 2>/dev/null ||
20991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20992 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20993 /^X\(\/\/\)$/{ s//\1/; q; }
20994 /^X\(\/\).*/{ s//\1/; q; }
20997 test ! -n "$as_dirs" || mkdir $as_dirs
20998 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20999 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21000 { (exit 1); exit 1; }; }; }
21003 mv $tmp/config.h $ac_file
21007 rm -f $tmp/config.h
21011 cat >>$CONFIG_STATUS <<\_ACEOF
21014 # CONFIG_COMMANDS section.
21016 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21017 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21018 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21019 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21020 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21021 X"$ac_dest" : 'X\(//\)[^/]' \| \
21022 X"$ac_dest" : 'X\(//\)$' \| \
21023 X"$ac_dest" : 'X\(/\)' \| \
21024 . : '\(.\)' 2>/dev/null ||
21026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21028 /^X\(\/\/\)$/{ s//\1/; q; }
21029 /^X\(\/\).*/{ s//\1/; q; }
21031 { if $as_mkdir_p; then
21036 while test ! -d "$as_dir"; do
21037 as_dirs="$as_dir $as_dirs"
21038 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21039 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21040 X"$as_dir" : 'X\(//\)[^/]' \| \
21041 X"$as_dir" : 'X\(//\)$' \| \
21042 X"$as_dir" : 'X\(/\)' \| \
21043 . : '\(.\)' 2>/dev/null ||
21045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21046 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21047 /^X\(\/\/\)$/{ s//\1/; q; }
21048 /^X\(\/\).*/{ s//\1/; q; }
21051 test ! -n "$as_dirs" || mkdir $as_dirs
21052 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21053 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21054 { (exit 1); exit 1; }; }; }
21058 if test "$ac_dir" != .; then
21059 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21060 # A "../" for each directory in $ac_dir_suffix.
21061 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21063 ac_dir_suffix= ac_top_builddir=
21067 .) # No --srcdir option. We are building in place.
21069 if test -z "$ac_top_builddir"; then
21072 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21074 [\\/]* | ?:[\\/]* ) # Absolute path.
21075 ac_srcdir=$srcdir$ac_dir_suffix;
21076 ac_top_srcdir=$srcdir ;;
21077 *) # Relative path.
21078 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21079 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21082 # Do not use `cd foo && pwd` to compute absolute paths, because
21083 # the directories may not exist.
21085 .) ac_abs_builddir="$ac_dir";;
21088 .) ac_abs_builddir=`pwd`;;
21089 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21090 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21093 case $ac_abs_builddir in
21094 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21096 case ${ac_top_builddir}. in
21097 .) ac_abs_top_builddir=$ac_abs_builddir;;
21098 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21099 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21102 case $ac_abs_builddir in
21103 .) ac_abs_srcdir=$ac_srcdir;;
21106 .) ac_abs_srcdir=$ac_abs_builddir;;
21107 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21108 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21111 case $ac_abs_builddir in
21112 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21114 case $ac_top_srcdir in
21115 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21116 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21117 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21122 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21123 echo "$as_me: executing $ac_dest commands" >&6;}
21127 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
21128 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
21129 rm -f intltool-extract.out
21131 mv -f intltool-extract.out intltool-extract
21133 chmod ugo+x intltool-extract
21134 chmod u+w intltool-extract
21136 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
21137 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
21138 rm -f intltool-merge.out
21140 mv -f intltool-merge.out intltool-merge
21142 chmod ugo+x intltool-merge
21143 chmod u+w intltool-merge
21145 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
21146 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
21147 rm -f intltool-update.out
21149 mv -f intltool-update.out intltool-update
21151 chmod ugo+x intltool-update
21152 chmod u+w intltool-update
21155 default-2 ) case "$CONFIG_FILES" in *po/Makefile.in*)
21156 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
21162 cat >>$CONFIG_STATUS <<\_ACEOF
21164 { (exit 0); exit 0; }
21166 chmod +x $CONFIG_STATUS
21167 ac_clean_files=$ac_clean_files_save
21170 # configure is writing to config.log, and then calls config.status.
21171 # config.status does its own redirection, appending to config.log.
21172 # Unfortunately, on DOS this fails, as config.log is still kept open
21173 # by configure, so config.status won't be able to write to it; its
21174 # output is simply discarded. So we exec the FD to /dev/null,
21175 # effectively closing config.log, so it can be properly (re)opened and
21176 # appended to by config.status. When coming back to configure, we
21177 # need to make the FD available again.
21178 if test "$no_create" != yes; then
21180 ac_config_status_args=
21181 test "$silent" = yes &&
21182 ac_config_status_args="$ac_config_status_args --quiet"
21184 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21186 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21187 # would make configure fail if this is the last instruction.
21188 $ac_cs_success || { (exit 1); exit 1; }
21192 ###############################################################################
21194 # Print some warnings at the end.
21196 ###############################################################################
21198 warn_prefix_1=" Warning:"
21199 warn_prefix_2=" Note:"
21200 warn_prefix="$warn_prefix_1"
21203 warnsep=' #################################################################'
21206 if test "$warning" = no ; then
21207 echo '' ; echo "$warnsep" ; echo ''
21214 if test "$warning" = long ; then echo '' ; fi
21217 echo "$warn_prefix $rest"
21224 if test "$was" != no ; then echo '' ; fi
21226 echo "$warn_prefix $rest"
21236 warn_prefix="$warn_prefix_2"
21238 warn_prefix="$warn_prefix_1"
21242 warn_prefix="$warn_prefix_2"
21244 warn_prefix="$warn_prefix_1"
21248 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
21249 warn 'The SGI saver extension was requested, but was not found.'
21252 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
21253 warn 'The XIdle extension was requested, but was not found.'
21256 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
21257 warn 'The XSHM extension was requested, but was not found.'
21260 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
21261 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
21264 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
21265 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
21268 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
21269 warn 'The DPMS extension was requested, but was not found.'
21272 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
21273 warn 'The Xinerama extension was requested, but was not found.'
21276 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
21277 warn 'The XF86VMODE extension was requested, but was not found.'
21280 if test "$with_randr_req" = yes -a "$have_randr" = no ; then
21281 warn 'The RANDR extension was requested, but was not found.'
21284 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
21285 warn "Checking of /proc/interrupts was requested, but it's bogus."
21288 if test "$pkg_config" = false ; then
21289 warnL 'The "pkg-config" program was not found. Without that,'
21290 warn2 "detection of the various GTK libraries won't work."
21292 pkgerr=`$pkg_config --list-all 2>&1 >/dev/null`
21293 if test "x$pkgerr" != "x" ; then
21294 warnL 'The "pkg-config" program produces errors. This often causes'
21295 warn2 "detection of the various GTK libraries to malfunction."
21296 warn2 "The errors are:"
21298 echo "$pkgerr" | sed 's/^/ > /g'
21302 if test "$gtk_halfassed" != no ; then
21303 warnL "GTK version $gtk_halfassed was found, but at least one supporting"
21304 warn2 "library ($gtk_halfassed_lib) was not, so GTK can't be used."
21305 warn2 "Perhaps some of the development packages are not installed?"
21306 if test "$have_gtk" = yes ; then
21307 v="$ac_gtk_version_string"
21308 warn2 "GTK $v is also installed, so it will be used instead."
21309 warn2 "Please read the above output and the \`config.log' file"
21310 warn2 "for more details."
21315 warn2 'Though the Motif front-end to xscreensaver is still'
21316 warn2 'maintained, it is no longer being updated with new'
21317 warn2 'features: all new development on the xscreensaver-demo'
21318 warn2 'program is happening in the GTK version, and not in the'
21319 warn2 'Motif version. It is recommended that you build against'
21320 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
21323 if test "$have_motif" = no -a "$have_gtk" = no; then
21325 if test "$with_motif" = yes; then
21326 warnL "Neither the GTK nor Motif libraries were found; the"
21327 warn2 "\`xscreensaver-demo' program requires one of these."
21331 warnL "The GTK libraries do not seem to be available; the"
21332 warn2 "\`xscreensaver-demo' program requires them."
21334 # warn2 'You can use Motif or Lesstif instead of GTK (use the'
21335 # warn2 "\`--with-motif' option) but that is NOT recommended."
21339 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
21340 warnL "Use of Motif was requested, but it wasn't found;"
21341 warn2 "Gtk will be used instead."
21343 elif test "$jurassic_gtk" = yes ; then
21347 v="$ac_gtk_version_string"
21348 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
21349 warnL "Use of Gtk was requested, but its version number is unknown;"
21350 elif test "$with_gtk_req" = yes ; then
21351 warnL "Use of Gtk was requested, but it is version $v;"
21353 warnL "Gtk was found on this system, but it is version $v;"
21356 warn2 "Gtk $pref_gtk or newer is required."
21358 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
21359 warnL "Use of Gtk was requested, but it wasn't found."
21363 if test "$have_gtk" = yes -a "$have_gdk_pixbuf" = no ; then
21364 warn "GTK is being used, but the GDK-Pixbuf library and/or"
21365 warn2 "headers were not found. That can't be good. Please"
21366 warn2 "install the GDK-Pixbuf development kit and re-configure."
21369 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
21371 preferred_lesstif=0.92
21373 if test "$lesstif_version" = unknown; then
21374 warnL "Unable to determine the LessTif version number!"
21375 warn2 "Make sure you are using version $preferred_lesstif or newer."
21376 warn2 "See <http://www.lesstif.org/>."
21378 elif test \! $lesstif_version -gt 82; then
21379 warnL "LessTif version $lesstif_version_string is being used."
21380 warn2 "LessTif versions 0.82 and earlier are too buggy to"
21381 warn2 "use with XScreenSaver; it is strongly recommended"
21382 warn2 "that you upgrade to at least version $preferred_lesstif!"
21383 warn2 "See <http://www.lesstif.org/>."
21388 if test "$have_motif" = yes -a "$have_gtk" = no ; then
21389 warn 'Motif is being used, and GTK is not.'
21395 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
21396 warnL 'Use of XPM was requested, but it was not found.'
21399 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
21400 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
21403 if test "$have_gdk_pixbuf" = no -o "$gdk_pixbuf_halfassed" = yes || \
21404 test "$have_gdk_pixbuf" = no -a "$have_xpm" = no ; then
21406 if test "$with_gdk_pixbuf_req" = yes ; then
21408 elif test "$with_gdk_pixbuf_req" = no ; then
21409 warnL 'The GDK-Pixbuf library is not being used.'
21411 warnL 'The GDK-Pixbuf library was not found.'
21414 if test "$with_xpm_req" = yes -o "$have_xpm" = yes ; then
21416 elif test "$with_xpm_req" = no ; then
21417 warnL 'The XPM library is not being used.'
21419 warnL 'The XPM library was not found.'
21422 if test "$have_gdk_pixbuf" = no -a "$have_xpm" = yes ; then
21423 warn2 'The XPM library is being used instead.'
21426 if test "$gdk_pixbuf_halfassed" = yes ; then
21428 warn2 'More specifically, we found the headers, but not the'
21429 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
21430 warn2 "system, or something else went wrong. The \`config.log'"
21431 warn2 'file might contain some clues.'
21435 warn2 'Some of the demos will not use images as much as they could.'
21436 warn2 'You should consider installing GDK-Pixbuf and re-running'
21437 warn2 'configure. (GDK-Pixbuf is recommended over XPM, as it'
21438 warn2 'provides support for more image formats.)'
21442 if test "$have_jpeg" = no ; then
21443 if test "$with_jpeg_req" = yes ; then
21444 warnL 'Use of libjpeg was requested, but it was not found.'
21445 elif test "$with_jpeg_req" = no ; then
21446 noteL 'The JPEG library is not being used.'
21448 noteL 'The JPEG library was not found.'
21451 if test "$jpeg_halfassed" = yes ; then
21453 warn2 'More specifically, we found the headers, but not the'
21454 warn2 'library; so either JPEG is half-installed on this'
21455 warn2 "system, or something else went wrong. The \`config.log'"
21456 warn2 'file might contain some clues.'
21460 if test "$have_gdk_pixbuf" = no ; then
21461 warn2 "This means that it won't be possible for the image-manipulating"
21462 warn2 "display modes to load files from disk; and it also means that"
21463 warn2 "the \`webcollage' program will be much slower."
21465 warn2 "This means the \`webcollage' program will be much slower."
21470 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
21471 preferred_mesagl=3.4
21472 mgv="$ac_mesagl_version_string"
21473 pgl="$preferred_mesagl"
21475 if test "$ac_mesagl_version" = unknown; then
21476 warnL "Unable to determine the MesaGL version number!"
21477 warn2 "Make sure you are using version $preferred_mesagl or newer."
21479 elif test \! "$ac_mesagl_version" -gt 2006; then
21480 warnL "MesaGL version number is $mgv --"
21481 warn2 "MesaGL 2.6 and earlier have a security bug. It is strongly"
21482 warn2 "recommended that you upgrade to at least version $preferred_mesagl."
21484 elif test \! "$ac_mesagl_version" -gt 3003; then
21485 warnL "MesaGL version number is $mgv --"
21486 warn2 "MesaGL 3.3 and earlier have some bugs; it is recommended"
21487 warn2 "that you upgrade to $pgl or newer."
21491 if test "$have_gl" = no ; then
21492 if test "$with_gl_req" = yes ; then
21493 warnL 'Use of GL was requested, but it was not found.'
21494 elif test "$with_gl_req" = no ; then
21495 noteL 'The OpenGL 3D library is not being used.'
21497 noteL 'The OpenGL 3D library was not found.'
21500 if test "$gl_halfassed" = yes ; then
21502 warn2 'More specifically, we found the headers, but not the'
21503 warn2 'libraries; so either GL is half-installed on this'
21504 warn2 "system, or something else went wrong. The \`config.log'"
21505 warn2 'file might contain some clues.'
21509 warn2 'Those demos which use 3D will not be built or installed.'
21510 warn2 'You might want to consider installing OpenGL and'
21511 warn2 "re-running configure. If your vendor doesn't ship"
21512 warn2 'their own implementation of OpenGL, you can get a free'
21513 warn2 'version at <http://www.mesa3d.org/>. For general OpenGL'
21514 warn2 'info, see <http://www.opengl.org/>.'
21519 if test "$have_gl" = yes -a "$have_gle" = no ; then
21521 # nobody cares about this; don't print the warning unless it was
21522 # requested and not found, or halfway-found.
21523 if test "$with_gle_req" = yes -o "$gle_halfassed" = yes ; then
21525 if test "$with_gle_req" = yes ; then
21526 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
21527 warn2 'it was not found (though the OpenGL library was found, and'
21528 warn2 'is being used.)'
21529 elif test "$with_gle_req" = no ; then
21530 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
21531 warn2 'library is not.'
21533 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
21537 if test "$gle_halfassed" = yes ; then
21539 warn2 'More specifically, we found the headers, but not the'
21540 warn2 'libraries; so either GLE is half-installed on this'
21541 warn2 "system, or something else went wrong. The \`config.log'"
21542 warn2 'file might contain some clues.'
21546 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
21547 warn2 'will not be built or installed. You might want to consider'
21548 warn2 'installing GLE and re-running configure. You can find the'
21549 warn2 'GLE library at <http://www.linas.org/gle/>. For general'
21550 warn2 'OpenGL info, see <http://www.opengl.org/>.'
21556 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
21557 warn 'Use of XReadDisplay was requested, but it was not found.'
21560 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
21561 warn 'Use of Kerberos was requested, but it was not found.'
21564 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
21565 warn 'Use of PAM was requested, but it was not found.'
21568 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
21569 warn 'Use of shadow passwords was requested, but they were not found.'
21573 # You are in a twisty maze of namespaces and syntaxes, all alike.
21574 # Fuck the skull of Unix.
21576 eval bindir=${bindir}
21577 eval bindir=${bindir}
21578 eval bindir=${bindir}
21579 eval bindir=${bindir}
21580 eval bindir=${bindir}
21581 eval bindir=${bindir}
21582 eval HACKDIR=${HACKDIR}
21583 eval HACKDIR=${HACKDIR}
21584 eval HACKDIR=${HACKDIR}
21585 eval HACKDIR=${HACKDIR}
21586 eval HACKDIR=${HACKDIR}
21587 eval HACKDIR=${HACKDIR}
21588 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21589 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21590 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21591 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21592 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21593 eval HACK_CONF_DIR=${HACK_CONF_DIR}
21595 # canonicalize slashes.
21596 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
21597 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
21598 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
21601 # Sanity check the hackdir
21602 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
21603 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
21605 { { echo "$as_me:$LINENO: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
21606 There will be an executable installed with that name, so
21607 that can't be the name of a directory as well. Please
21608 re-configure with a different directory name." >&5
21609 echo "$as_me: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
21610 There will be an executable installed with that name, so
21611 that can't be the name of a directory as well. Please
21612 re-configure with a different directory name." >&2;}
21613 { (exit 1); exit 1; }; }
21620 # Now let's warn if there's a previous RPM version already installed.
21621 # But don't bother with this test if we are currently *building* an RPM.
21623 if test -z "$RPM_PACKAGE_VERSION" ; then
21625 rpmnames="xscreensaver xscreensaver-base xscreensaver-extras"
21629 rpmv=`(rpm -qv $rpmnames) 2>/dev/null | \
21630 sed -n 's/^[-a-z]*-\([0-9][0-9]*[.][0-9][0-9a-z]*\)-.*$/\1/p' | \
21634 if test \! -z "$rpmv" ; then
21635 rpmbdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
21636 rpmhdir=`rpm -ql $rpmnames | sed -n 's@^\(.*\)/attraction$@\1@p'`
21639 warnL "There is already an installed RPM of xscreensaver $rpmv"
21640 warn2 'on this system. You might want to remove it ("rpm -ve")'
21641 warn2 'before running "make install" in this directory.'
21643 warn2 "Alternately, you could build this version of xscreensaver"
21644 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
21645 warn2 'file is included. Try "rpmbuild -v -ba xscreensaver.spec".'
21646 warn2 "See the RPM documentation for more info."
21649 if test "$rpmbdir" = "$rpmhdir" ; then
21650 warn2 "The RPM version was installed in $rpmbdir/."
21653 warn2 "The RPM version was installed in $rpmbdir/,"
21654 warn2 "with demos in $rpmhdir/."
21659 if test "${bindir}" = "${HACKDIR}" ; then
21663 if test "$do_dir_warning" = yes; then
21667 echo ' When you run "make install", the "xscreensaver",'
21668 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
21669 echo " will be installed in ${bindir}/."
21671 echo " The various graphics demos (190+ different executables) will"
21672 echo " be installed in ${HACKDIR}/."
21674 echo " If you would prefer the demos to be installed elsewhere,"
21675 echo " you should re-run configure with the --with-hackdir=DIR"
21676 echo " option. For more information, run \`./configure --help'."
21680 if test "$warning" != no; then
21681 echo '' ; echo "$warnsep" ; echo ''
21684 if test "$do_dir_warning" = no; then
21685 if test "$warning" = no; then
21688 echo "User programs will be installed in ${bindir}/"
21689 echo "Screen savers will be installed in ${HACKDIR}/"
21690 echo "Configuration will be installed in ${HACK_CONF_DIR}/"