2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 if expr a : '\(a\)' >/dev/null 2>&1; then
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30 # Support unset when possible.
31 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
37 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
63 # Name of the executable.
64 as_me=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 s,^['$as_cr_digits']*\n,,
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
177 # Exit status is that of the last command.
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 if expr a : '\(a\)' >/dev/null 2>&1; then
195 rm -f conf$$ conf$$.exe conf$$.file
197 if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
206 elif ln conf$$.file conf$$ 2>/dev/null; then
211 rm -f conf$$ conf$$.exe conf$$.file
213 as_executable_p="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223 # We need space, tab and new line, in precisely that order.
229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
242 ac_default_prefix=/usr/local
247 SHELL=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
261 ac_unique_file="driver/subprocs.c"
262 # Factoring default headers for most tests.
263 ac_includes_default="\
266 # include <sys/types.h>
269 # include <sys/stat.h>
280 # if !STDC_HEADERS && HAVE_MEMORY_H
286 # include <strings.h>
289 # include <inttypes.h>
300 # Initialize some variables set by options.
302 ac_init_version=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
312 program_transform_name=s,x,x,
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir='${exec_prefix}/bin'
326 sbindir='${exec_prefix}/sbin'
327 libexecdir='${exec_prefix}/libexec'
328 datadir='${prefix}/share'
329 sysconfdir='${prefix}/etc'
330 sharedstatedir='${prefix}/com'
331 localstatedir='${prefix}/var'
332 libdir='${exec_prefix}/lib'
333 includedir='${prefix}/include'
334 oldincludedir='/usr/include'
335 infodir='${prefix}/info'
336 mandir='${prefix}/man'
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
372 cache_file=config.cache ;;
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378 datadir=$ac_optarg ;;
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
415 -help | --help | --hel | --he | -h)
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
439 -libdir | --libdir | --libdi | --libd)
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
466 # Obsolete; use --without-fp.
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530 sbindir=$ac_optarg ;;
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541 sharedstatedir=$ac_optarg ;;
543 -site | --site | --sit)
545 -site=* | --site=* | --sit=*)
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
568 -version | --version | --versio | --versi | --vers | -V)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
594 # Obsolete; use --with-x.
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637 if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var in exec_prefix prefix
646 eval ac_val=$`echo $ac_var`
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
654 # Be sure to have absolute paths.
655 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val=$`echo $ac_var`
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
685 test -n "$host_alias" && ac_tool_prefix=$host_alias-
687 test "$silent" = yes && exec 6>/dev/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
707 if test ! -r $srcdir/$ac_unique_file; then
711 ac_srcdir_defaulted=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set=${build_alias+set}
724 ac_env_build_alias_value=$build_alias
725 ac_cv_env_build_alias_set=${build_alias+set}
726 ac_cv_env_build_alias_value=$build_alias
727 ac_env_host_alias_set=${host_alias+set}
728 ac_env_host_alias_value=$host_alias
729 ac_cv_env_host_alias_set=${host_alias+set}
730 ac_cv_env_host_alias_value=$host_alias
731 ac_env_target_alias_set=${target_alias+set}
732 ac_env_target_alias_value=$target_alias
733 ac_cv_env_target_alias_set=${target_alias+set}
734 ac_cv_env_target_alias_value=$target_alias
735 ac_env_CC_set=${CC+set}
737 ac_cv_env_CC_set=${CC+set}
738 ac_cv_env_CC_value=$CC
739 ac_env_CFLAGS_set=${CFLAGS+set}
740 ac_env_CFLAGS_value=$CFLAGS
741 ac_cv_env_CFLAGS_set=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value=$CFLAGS
743 ac_env_LDFLAGS_set=${LDFLAGS+set}
744 ac_env_LDFLAGS_value=$LDFLAGS
745 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value=$LDFLAGS
747 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751 ac_env_CPP_set=${CPP+set}
752 ac_env_CPP_value=$CPP
753 ac_cv_env_CPP_set=${CPP+set}
754 ac_cv_env_CPP_value=$CPP
757 # Report the --help message.
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
763 \`configure' configures this package to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
770 Defaults for the options are specified in brackets.
775 -h, --help display this help and exit
776 --help=short display options specific to this package
777 --help=recursive display the short help of all the included packages
778 -V, --version display version information and exit
779 -q, --quiet, --silent do not print \`checking...' messages
780 --cache-file=FILE cache test results in FILE [disabled]
781 -C, --config-cache alias for \`--cache-file=config.cache'
782 -n, --no-create do not create output files
783 --srcdir=DIR find the sources in DIR [configure dir or \`..']
788 Installation directories:
789 --prefix=PREFIX install architecture-independent files in PREFIX
791 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
794 By default, \`make install' will install all the files in
795 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
796 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
797 for instance \`--prefix=\$HOME'.
799 For better control, use the options below.
801 Fine tuning of the installation directories:
802 --bindir=DIR user executables [EPREFIX/bin]
803 --libdir=DIR object code libraries [EPREFIX/lib]
804 --includedir=DIR C header files [PREFIX/include]
805 --x-includes=DIR X include files are in DIR
806 --x-libraries=DIR X library files are in DIR
807 --mandir=DIR man documentation [PREFIX/man]
813 --x-includes=DIR X include files are in DIR
814 --x-libraries=DIR X library files are in DIR
817 --build=BUILD configure for building on BUILD [guessed]
818 --host=HOST cross-compile to build programs to run on HOST [BUILD]
822 if test -n "$ac_init_help"; then
827 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
828 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
831 Screen locking options:
833 --enable-locking Compile in support for locking the display.
834 --disable-locking Do not allow locking at all.
838 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
839 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
840 Installation options:
842 --with-hackdir=DIR Where to install the hundreds of demo executables.
843 Default: \`PREFIX/lib/xscreensaver/'
844 --with-configdir=DIR Where to install the data files that describe each
845 of the display modes to the GUI.
846 Default: \`GNOMEPREFIX/control-center/screensavers/'
847 or \`PREFIX/lib/xscreensaver/config/', depending on
848 whether GNOME is available.
850 Except where noted, all of the --with options below can also take a
851 directory argument: for example, \`--with-motif=/opt/Motif'. That would
852 cause /opt/Motif/include/ to be added to the -I list, and /opt/Motif/lib/
853 to be added to the -L list, assuming those directories exist.
855 By default, support for each of these options will be built in, if the
856 relevant library routines exist. At run time, they will then be used
857 only if the X server being used supports them. Each --with option has
858 a corresponding --without option, to override building support for them
861 Screen blanking and idle-detection options:
863 --with-sgi-ext Include support for the SGI SCREEN_SAVER extension.
864 --with-mit-ext Include support for the MIT-SCREEN-SAVER extension.
865 --with-xidle-ext Include support for the XIDLE extension.
866 --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL extension.
867 --with-dpms-ext Include support for the DPMS extension.
868 --with-xinerama-ext Include support for the XINERAMA extension.
869 --with-xf86vmode-ext Include support for XFree86 virtual screens.
870 --with-xf86gamma-ext Include support for XFree86 gamma fading.
871 --with-proc-interrupts Include support for consulting the /proc/interrupts
872 file to notice keyboard activity.
873 --with-pam Include support for PAM (Pluggable Auth Modules.)
874 --with-kerberos Include support for Kerberos authentication.
875 --with-shadow Include support for shadow password authentication.
877 User interface options:
879 --with-motif Use the Motif toolkit for the user interface.
880 --with-gtk Use the Gtk toolkit for the user interface.
881 --with-gnome Include support for the Gnome Control Center.
882 --with-xml The XML toolkit is needed for some parts of
887 --with-gl Build those demos which depend on OpenGL.
888 --with-gle Build those demos which depend on GLE
889 (the OpenGL "extrusion" library.)
890 --with-xpm Include support for XPM files in some demos.
891 --with-pixbuf Include support for the GDK-Pixbuf library in some
892 demos, which will make it possible for them to read
893 GIF, JPEG, and PNG files as well.
894 --with-jpeg Include support for the JPEG library in some demos,
895 which will make it possible for them to read JPEG
897 --with-xshm-ext Include support for the Shared Memory extension.
898 --with-xdbe-ext Include support for the DOUBLE-BUFFER extension.
899 --with-readdisplay Include support for the XReadDisplay extension.
901 --with-fortune=PROGRAM Some demos are able to run an external program and
902 display its text; this names the program to use by
903 default (though it can be overridden with X
904 resources.) Default is \"/usr/games/fortune\".
905 --with-setuid-hacks Allow some demos to be installed \`setuid root'
906 (which is needed in order to ping other hosts.)
909 Some influential environment variables:
910 CC C compiler command
911 CFLAGS C compiler flags
912 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
913 nonstandard directory <lib dir>
914 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
915 headers in a nonstandard directory <include dir>
918 Use these variables to override the choices made by `configure' or to help
919 it to find libraries and programs with nonstandard names/locations.
924 if test "$ac_init_help" = "recursive"; then
925 # If there are subdirs, report their specific --help.
927 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
928 test -d $ac_dir || continue
931 if test "$ac_dir" != .; then
932 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
933 # A "../" for each directory in $ac_dir_suffix.
934 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
936 ac_dir_suffix= ac_top_builddir=
940 .) # No --srcdir option. We are building in place.
942 if test -z "$ac_top_builddir"; then
945 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
947 [\\/]* | ?:[\\/]* ) # Absolute path.
948 ac_srcdir=$srcdir$ac_dir_suffix;
949 ac_top_srcdir=$srcdir ;;
951 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
952 ac_top_srcdir=$ac_top_builddir$srcdir ;;
954 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
956 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
957 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
958 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
959 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
962 # Check for guested configure; otherwise get Cygnus style configure.
963 if test -f $ac_srcdir/configure.gnu; then
965 $SHELL $ac_srcdir/configure.gnu --help=recursive
966 elif test -f $ac_srcdir/configure; then
968 $SHELL $ac_srcdir/configure --help=recursive
969 elif test -f $ac_srcdir/configure.ac ||
970 test -f $ac_srcdir/configure.in; then
974 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
980 test -n "$ac_init_help" && exit 0
981 if $ac_init_version; then
984 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
985 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
996 It was created by $as_me, which was
997 generated by GNU Autoconf 2.53. Invocation command line was
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Also quote any args containing shell meta-characters.
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n ) continue ;;
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1061 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1063 case " $ac_configure_args " in
1064 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1065 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1068 # Get rid of the leading space.
1071 # When interrupted or exit'd, cleanup temporary files, and complete
1072 # config.log. We remove comments because anyway the quotes in there
1073 # would cause problems or look ugly.
1074 # WARNING: Be sure not to use single quotes in there, as some shells,
1075 # such as our DU 5.0 friend, will then `close' the trap.
1076 trap 'exit_status=$?
1077 # Save into config.log some information that might help in debugging.
1081 ## ---------------- ##
1082 ## Cache variables. ##
1083 ## ---------------- ##
1086 # The following way of writing the cache mishandles newlines in values,
1089 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1092 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1097 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1102 if test -s confdefs.h; then
1109 sed "/^$/d" confdefs.h
1112 test "$ac_signal" != 0 &&
1113 echo "$as_me: caught signal $ac_signal"
1114 echo "$as_me: exit $exit_status"
1116 rm -f core core.* *.core &&
1117 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1120 for ac_signal in 1 2 13 15; do
1121 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1125 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1126 rm -rf conftest* confdefs.h
1127 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1130 # Predefined preprocessor variables.
1132 cat >>confdefs.h <<_ACEOF
1133 #define PACKAGE_NAME "$PACKAGE_NAME"
1137 cat >>confdefs.h <<_ACEOF
1138 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_STRING "$PACKAGE_STRING"
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1157 # Let the site file select an alternate cache file if it wants to.
1158 # Prefer explicitly selected file to automatically selected ones.
1159 if test -z "$CONFIG_SITE"; then
1160 if test "x$prefix" != xNONE; then
1161 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1163 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1166 for ac_site_file in $CONFIG_SITE; do
1167 if test -r "$ac_site_file"; then
1168 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1169 echo "$as_me: loading site script $ac_site_file" >&6;}
1170 sed 's/^/| /' "$ac_site_file" >&5
1175 if test -r "$cache_file"; then
1176 # Some versions of bash will fail to source /dev/null (special
1177 # files actually), so we avoid doing that.
1178 if test -f "$cache_file"; then
1179 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1180 echo "$as_me: loading cache $cache_file" >&6;}
1182 [\\/]* | ?:[\\/]* ) . $cache_file;;
1183 *) . ./$cache_file;;
1187 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1188 echo "$as_me: creating cache $cache_file" >&6;}
1192 # Check that the precious variables saved in the cache have kept the same
1194 ac_cache_corrupted=false
1195 for ac_var in `(set) 2>&1 |
1196 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1197 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1198 eval ac_new_set=\$ac_env_${ac_var}_set
1199 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1200 eval ac_new_val="\$ac_env_${ac_var}_value"
1201 case $ac_old_set,$ac_new_set in
1203 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1204 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1205 ac_cache_corrupted=: ;;
1207 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1208 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1209 ac_cache_corrupted=: ;;
1212 if test "x$ac_old_val" != "x$ac_new_val"; then
1213 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1214 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1215 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1216 echo "$as_me: former value: $ac_old_val" >&2;}
1217 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1218 echo "$as_me: current value: $ac_new_val" >&2;}
1219 ac_cache_corrupted=:
1222 # Pass precious variables to config.status.
1223 if test "$ac_new_set" = set; then
1225 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1226 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1227 *) ac_arg=$ac_var=$ac_new_val ;;
1229 case " $ac_configure_args " in
1230 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1231 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1235 if $ac_cache_corrupted; then
1236 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1237 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1238 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1239 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1240 { (exit 1); exit 1; }; }
1244 ac_cpp='$CPP $CPPFLAGS'
1245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1266 ac_config_headers="$ac_config_headers config.h"
1269 echo "current directory: `pwd`"
1270 echo "command line was: $0 $@"
1273 # After checking to see that --srcdir is correct (which AC_INIT does)
1274 # check for some random other files that come later in the tar file,
1275 # to make sure everything is here.
1277 for d in driver utils hacks hacks/glx ; do
1278 f=$srcdir/$d/Makefile.in
1279 if test \! -r $f ; then
1281 echo "ERROR: The package is incomplete: $f does not exist."
1282 echo " This probably means that your download was truncated."
1288 ###############################################################################
1290 # Function to figure out how to run the compiler.
1292 ###############################################################################
1297 ###############################################################################
1299 # Functions to figure out how to disable // comments in ANSI C code.
1301 # (With recent gcc, this is done with "-std=c89". With older gcc, this
1302 # is done by passing "-lang-c89" to cpp, by passing "-Wp,-lang-c89" to
1303 # gcc. Old gcc doesn't support -std, and new gcc doesn't support -lang.
1304 # so much for compatibility!)
1306 ###############################################################################
1313 ###############################################################################
1315 # Function to figure out how to create directory trees.
1317 ###############################################################################
1322 ###############################################################################
1324 # Function to check whether gettimeofday() exists, and how to call it.
1325 # This may define HAVE_GETTIMEOFDAY and GETTIMEOFDAY_TWO_ARGS.
1327 ###############################################################################
1332 ###############################################################################
1334 # Function to find perl5 (defines PERL and PERL_VERSION.)
1336 ###############################################################################
1338 # M4 sucks!! perl sucks too!!
1340 perl_version_cmd='print $]'
1346 ###############################################################################
1348 # Function to demand "bc". Losers.
1350 ###############################################################################
1354 ###############################################################################
1356 # Functions to check how to do ICMP PING requests.
1358 ###############################################################################
1365 ###############################################################################
1367 # Functions to check for various X11 crap.
1369 ###############################################################################
1371 # Try and find the app-defaults directory.
1372 # It sucks that autoconf doesn't do this already...
1384 # Random special-cases for X on certain pathological OSes.
1385 # You know who you are.
1391 ###############################################################################
1393 # Some utility functions to make checking for X things easier.
1395 ###############################################################################
1397 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
1401 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
1405 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
1410 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
1411 # Use this sparingly; it probably doesn't work very well on X programs.
1415 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
1416 # (But not the -L directories!)
1422 # Usage: HANDLE_X_PATH_ARG([variable_name],
1423 # [--command-line-option],
1424 # [descriptive string])
1426 # All of the --with options take three forms:
1428 # --with-foo (or --with-foo=yes)
1429 # --without-foo (or --with-foo=no)
1432 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
1433 # a directory (string beginning with a slash) it checks to see whether
1434 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
1441 ###############################################################################
1442 ###############################################################################
1444 # End of function definitions. Now start actually executing stuff.
1446 ###############################################################################
1447 ###############################################################################
1449 # random compiler setup
1451 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1452 if test -f $ac_dir/install-sh; then
1454 ac_install_sh="$ac_aux_dir/install-sh -c"
1456 elif test -f $ac_dir/install.sh; then
1458 ac_install_sh="$ac_aux_dir/install.sh -c"
1460 elif test -f $ac_dir/shtool; then
1462 ac_install_sh="$ac_aux_dir/shtool install -c"
1466 if test -z "$ac_aux_dir"; then
1467 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1468 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1469 { (exit 1); exit 1; }; }
1471 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1472 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1473 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1475 # Make sure we can run config.sub.
1476 $ac_config_sub sun4 >/dev/null 2>&1 ||
1477 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1478 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1479 { (exit 1); exit 1; }; }
1481 echo "$as_me:$LINENO: checking build system type" >&5
1482 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1483 if test "${ac_cv_build+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 ac_cv_build_alias=$build_alias
1487 test -z "$ac_cv_build_alias" &&
1488 ac_cv_build_alias=`$ac_config_guess`
1489 test -z "$ac_cv_build_alias" &&
1490 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1491 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1492 { (exit 1); exit 1; }; }
1493 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1494 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1495 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1496 { (exit 1); exit 1; }; }
1499 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1500 echo "${ECHO_T}$ac_cv_build" >&6
1502 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1503 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1504 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1507 echo "$as_me:$LINENO: checking host system type" >&5
1508 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1509 if test "${ac_cv_host+set}" = set; then
1510 echo $ECHO_N "(cached) $ECHO_C" >&6
1512 ac_cv_host_alias=$host_alias
1513 test -z "$ac_cv_host_alias" &&
1514 ac_cv_host_alias=$ac_cv_build_alias
1515 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1517 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1518 { (exit 1); exit 1; }; }
1521 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1522 echo "${ECHO_T}$ac_cv_host" >&6
1524 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1531 ac_cpp='$CPP $CPPFLAGS'
1532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1535 if test -n "$ac_tool_prefix"; then
1536 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1537 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1538 echo "$as_me:$LINENO: checking for $ac_word" >&5
1539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540 if test "${ac_cv_prog_CC+set}" = set; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
1543 if test -n "$CC"; then
1544 ac_cv_prog_CC="$CC" # Let the user override the test.
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 test -z "$as_dir" && as_dir=.
1551 for ac_exec_ext in '' $ac_executable_extensions; do
1552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 if test -n "$CC"; then
1564 echo "$as_me:$LINENO: result: $CC" >&5
1565 echo "${ECHO_T}$CC" >&6
1567 echo "$as_me:$LINENO: result: no" >&5
1568 echo "${ECHO_T}no" >&6
1572 if test -z "$ac_cv_prog_CC"; then
1574 # Extract the first word of "gcc", so it can be a program name with args.
1575 set dummy gcc; ac_word=$2
1576 echo "$as_me:$LINENO: checking for $ac_word" >&5
1577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1578 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1581 if test -n "$ac_ct_CC"; then
1582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir=.
1589 for ac_exec_ext in '' $ac_executable_extensions; do
1590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591 ac_cv_prog_ac_ct_CC="gcc"
1592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1601 if test -n "$ac_ct_CC"; then
1602 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1603 echo "${ECHO_T}$ac_ct_CC" >&6
1605 echo "$as_me:$LINENO: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1614 if test -z "$CC"; then
1615 if test -n "$ac_tool_prefix"; then
1616 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1617 set dummy ${ac_tool_prefix}cc; ac_word=$2
1618 echo "$as_me:$LINENO: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_CC+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 if test -n "$CC"; then
1624 ac_cv_prog_CC="$CC" # Let the user override the test.
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630 test -z "$as_dir" && as_dir=.
1631 for ac_exec_ext in '' $ac_executable_extensions; do
1632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1633 ac_cv_prog_CC="${ac_tool_prefix}cc"
1634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643 if test -n "$CC"; then
1644 echo "$as_me:$LINENO: result: $CC" >&5
1645 echo "${ECHO_T}$CC" >&6
1647 echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1652 if test -z "$ac_cv_prog_CC"; then
1654 # Extract the first word of "cc", so it can be a program name with args.
1655 set dummy cc; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1659 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 if test -n "$ac_ct_CC"; then
1662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 test -z "$as_dir" && as_dir=.
1669 for ac_exec_ext in '' $ac_executable_extensions; do
1670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671 ac_cv_prog_ac_ct_CC="cc"
1672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1681 if test -n "$ac_ct_CC"; then
1682 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1683 echo "${ECHO_T}$ac_ct_CC" >&6
1685 echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1695 if test -z "$CC"; then
1696 # Extract the first word of "cc", so it can be a program name with args.
1697 set dummy cc; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_CC+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 if test -n "$CC"; then
1704 ac_cv_prog_CC="$CC" # Let the user override the test.
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 test -z "$as_dir" && as_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1715 ac_prog_rejected=yes
1719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725 if test $ac_prog_rejected = yes; then
1726 # We found a bogon in the path, so make sure we never use it.
1727 set dummy $ac_cv_prog_CC
1729 if test $# != 0; then
1730 # We chose a different compiler from the bogus one.
1731 # However, it has the same basename, so the bogon will be chosen
1732 # first if we set CC to just the basename; use the full file name.
1734 set dummy "$as_dir/$ac_word" ${1+"$@"}
1742 if test -n "$CC"; then
1743 echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1751 if test -z "$CC"; then
1752 if test -n "$ac_tool_prefix"; then
1755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1757 echo "$as_me:$LINENO: checking for $ac_word" >&5
1758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759 if test "${ac_cv_prog_CC+set}" = set; then
1760 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 if test -n "$CC"; then
1763 ac_cv_prog_CC="$CC" # Let the user override the test.
1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 test -z "$as_dir" && as_dir=.
1770 for ac_exec_ext in '' $ac_executable_extensions; do
1771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1772 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782 if test -n "$CC"; then
1783 echo "$as_me:$LINENO: result: $CC" >&5
1784 echo "${ECHO_T}$CC" >&6
1786 echo "$as_me:$LINENO: result: no" >&5
1787 echo "${ECHO_T}no" >&6
1790 test -n "$CC" && break
1793 if test -z "$CC"; then
1797 # Extract the first word of "$ac_prog", so it can be a program name with args.
1798 set dummy $ac_prog; ac_word=$2
1799 echo "$as_me:$LINENO: checking for $ac_word" >&5
1800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 if test -n "$ac_ct_CC"; then
1805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 test -z "$as_dir" && as_dir=.
1812 for ac_exec_ext in '' $ac_executable_extensions; do
1813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814 ac_cv_prog_ac_ct_CC="$ac_prog"
1815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1824 if test -n "$ac_ct_CC"; then
1825 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1826 echo "${ECHO_T}$ac_ct_CC" >&6
1828 echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1832 test -n "$ac_ct_CC" && break
1841 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1842 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1843 { (exit 1); exit 1; }; }
1845 # Provide some information about the compiler.
1846 echo "$as_me:$LINENO:" \
1847 "checking for C compiler version" >&5
1848 ac_compiler=`set X $ac_compile; echo $2`
1849 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1850 (eval $ac_compiler --version </dev/null >&5) 2>&5
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }
1854 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1855 (eval $ac_compiler -v </dev/null >&5) 2>&5
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }
1859 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1860 (eval $ac_compiler -V </dev/null >&5) 2>&5
1862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863 (exit $ac_status); }
1865 cat >conftest.$ac_ext <<_ACEOF
1866 #line $LINENO "configure"
1867 #include "confdefs.h"
1869 #ifdef F77_DUMMY_MAIN
1873 int F77_DUMMY_MAIN() { return 1; }
1883 ac_clean_files_save=$ac_clean_files
1884 ac_clean_files="$ac_clean_files a.out a.exe"
1885 # Try to create an executable without -o first, disregard a.out.
1886 # It will help us diagnose broken compilers, and finding out an intuition
1888 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1889 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1890 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1891 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1892 (eval $ac_link_default) 2>&5
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }; then
1896 # Find the output, starting from the most likely. This scheme is
1897 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1900 # Be careful to initialize this variable, since it used to be cached.
1901 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1903 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1904 ls a.out conftest 2>/dev/null;
1905 ls a.* conftest.* 2>/dev/null`; do
1907 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1908 a.out ) # We found the default executable, but exeext='' is most
1911 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1912 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1919 echo "$as_me: failed program was:" >&5
1920 cat conftest.$ac_ext >&5
1921 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1922 echo "$as_me: error: C compiler cannot create executables" >&2;}
1923 { (exit 77); exit 77; }; }
1926 ac_exeext=$ac_cv_exeext
1927 echo "$as_me:$LINENO: result: $ac_file" >&5
1928 echo "${ECHO_T}$ac_file" >&6
1930 # Check the compiler produces executables we can run. If not, either
1931 # the compiler is broken, or we cross compile.
1932 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1933 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1934 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1935 # If not cross compiling, check that we can run a simple program.
1936 if test "$cross_compiling" != yes; then
1937 if { ac_try='./$ac_file'
1938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; }; then
1945 if test "$cross_compiling" = maybe; then
1948 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1949 If you meant to cross compile, use \`--host'." >&5
1950 echo "$as_me: error: cannot run C compiled programs.
1951 If you meant to cross compile, use \`--host'." >&2;}
1952 { (exit 1); exit 1; }; }
1956 echo "$as_me:$LINENO: result: yes" >&5
1957 echo "${ECHO_T}yes" >&6
1959 rm -f a.out a.exe conftest$ac_cv_exeext
1960 ac_clean_files=$ac_clean_files_save
1961 # Check the compiler produces executables we can run. If not, either
1962 # the compiler is broken, or we cross compile.
1963 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1964 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1965 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1966 echo "${ECHO_T}$cross_compiling" >&6
1968 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1969 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1971 (eval $ac_link) 2>&5
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); }; then
1975 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1976 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1977 # work properly (i.e., refer to `conftest.exe'), while it won't with
1979 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1981 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1982 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1989 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1990 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1991 { (exit 1); exit 1; }; }
1994 rm -f conftest$ac_cv_exeext
1995 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1996 echo "${ECHO_T}$ac_cv_exeext" >&6
1998 rm -f conftest.$ac_ext
1999 EXEEXT=$ac_cv_exeext
2001 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2002 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2003 if test "${ac_cv_objext+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 cat >conftest.$ac_ext <<_ACEOF
2007 #line $LINENO "configure"
2008 #include "confdefs.h"
2010 #ifdef F77_DUMMY_MAIN
2014 int F77_DUMMY_MAIN() { return 1; }
2024 rm -f conftest.o conftest.obj
2025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2026 (eval $ac_compile) 2>&5
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }; then
2030 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2033 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2038 echo "$as_me: failed program was:" >&5
2039 cat conftest.$ac_ext >&5
2040 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2041 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2042 { (exit 1); exit 1; }; }
2045 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2047 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2048 echo "${ECHO_T}$ac_cv_objext" >&6
2049 OBJEXT=$ac_cv_objext
2051 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2052 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2053 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 cat >conftest.$ac_ext <<_ACEOF
2057 #line $LINENO "configure"
2058 #include "confdefs.h"
2060 #ifdef F77_DUMMY_MAIN
2064 int F77_DUMMY_MAIN() { return 1; }
2077 rm -f conftest.$ac_objext
2078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2079 (eval $ac_compile) 2>&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); } &&
2083 { ac_try='test -s conftest.$ac_objext'
2084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }; }; then
2091 echo "$as_me: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2095 rm -f conftest.$ac_objext conftest.$ac_ext
2096 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2099 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2100 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2101 GCC=`test $ac_compiler_gnu = yes && echo yes`
2102 ac_test_CFLAGS=${CFLAGS+set}
2103 ac_save_CFLAGS=$CFLAGS
2105 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2106 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2107 if test "${ac_cv_prog_cc_g+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 cat >conftest.$ac_ext <<_ACEOF
2111 #line $LINENO "configure"
2112 #include "confdefs.h"
2114 #ifdef F77_DUMMY_MAIN
2118 int F77_DUMMY_MAIN() { return 1; }
2128 rm -f conftest.$ac_objext
2129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2130 (eval $ac_compile) 2>&5
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); } &&
2134 { ac_try='test -s conftest.$ac_objext'
2135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }; }; then
2142 echo "$as_me: failed program was:" >&5
2143 cat conftest.$ac_ext >&5
2146 rm -f conftest.$ac_objext conftest.$ac_ext
2148 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2149 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2150 if test "$ac_test_CFLAGS" = set; then
2151 CFLAGS=$ac_save_CFLAGS
2152 elif test $ac_cv_prog_cc_g = yes; then
2153 if test "$GCC" = yes; then
2159 if test "$GCC" = yes; then
2165 # Some people use a C++ compiler to compile C. Since we use `exit',
2166 # in C++ we need to declare it. In case someone uses the same compiler
2167 # for both compiling C and C++ we need to have the C++ compiler decide
2168 # the declaration of exit, since it's the most demanding environment.
2169 cat >conftest.$ac_ext <<_ACEOF
2174 rm -f conftest.$ac_objext
2175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176 (eval $ac_compile) 2>&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); } &&
2180 { ac_try='test -s conftest.$ac_objext'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 for ac_declaration in \
2188 '#include <stdlib.h>' \
2189 'extern "C" void std::exit (int) throw (); using std::exit;' \
2190 'extern "C" void std::exit (int); using std::exit;' \
2191 'extern "C" void exit (int) throw ();' \
2192 'extern "C" void exit (int);' \
2195 cat >conftest.$ac_ext <<_ACEOF
2196 #line $LINENO "configure"
2197 #include "confdefs.h"
2200 #ifdef F77_DUMMY_MAIN
2204 int F77_DUMMY_MAIN() { return 1; }
2214 rm -f conftest.$ac_objext
2215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2216 (eval $ac_compile) 2>&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); } &&
2220 { ac_try='test -s conftest.$ac_objext'
2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2228 echo "$as_me: failed program was:" >&5
2229 cat conftest.$ac_ext >&5
2232 rm -f conftest.$ac_objext conftest.$ac_ext
2233 cat >conftest.$ac_ext <<_ACEOF
2234 #line $LINENO "configure"
2235 #include "confdefs.h"
2237 #ifdef F77_DUMMY_MAIN
2241 int F77_DUMMY_MAIN() { return 1; }
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try='test -s conftest.$ac_objext'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2265 echo "$as_me: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2268 rm -f conftest.$ac_objext conftest.$ac_ext
2271 if test -n "$ac_declaration"; then
2272 echo '#ifdef __cplusplus' >>confdefs.h
2273 echo $ac_declaration >>confdefs.h
2274 echo '#endif' >>confdefs.h
2278 echo "$as_me: failed program was:" >&5
2279 cat conftest.$ac_ext >&5
2281 rm -f conftest.$ac_objext conftest.$ac_ext
2283 ac_cpp='$CPP $CPPFLAGS'
2284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2289 if test -z "$GCC"; then
2290 echo "$as_me:$LINENO: checking how to request ANSI compilation" >&5
2291 echo $ECHO_N "checking how to request ANSI compilation... $ECHO_C" >&6
2294 echo "$as_me:$LINENO: result: HPUX: adding -Ae" >&5
2295 echo "${ECHO_T}HPUX: adding -Ae" >&6
2299 echo "$as_me:$LINENO: result: AIX: adding -qlanglvl=ansi -qhalt=e" >&5
2300 echo "${ECHO_T}AIX: adding -qlanglvl=ansi -qhalt=e" >&6
2301 CC="$CC -qlanglvl=ansi -qhalt=e"
2305 echo "$as_me:$LINENO: result: DEC: adding -std1 -ieee" >&5
2306 echo "${ECHO_T}DEC: adding -std1 -ieee" >&6
2311 echo "$as_me:$LINENO: result: no idea" >&5
2312 echo "${ECHO_T}no idea" >&6
2317 echo "$as_me:$LINENO: checking whether the compiler works on ANSI C" >&5
2318 echo $ECHO_N "checking whether the compiler works on ANSI C... $ECHO_C" >&6
2319 if test "$cross_compiling" = yes; then
2320 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2321 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2322 { (exit 1); exit 1; }; }
2324 cat >conftest.$ac_ext <<_ACEOF
2325 #line $LINENO "configure"
2326 #include "confdefs.h"
2327 main(int ac, char **av) { return 0; }
2329 rm -f conftest$ac_exeext
2330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2331 (eval $ac_link) 2>&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339 (exit $ac_status); }; }; then
2340 echo "$as_me:$LINENO: result: yes" >&5
2341 echo "${ECHO_T}yes" >&6
2343 echo "$as_me: program exited with status $ac_status" >&5
2344 echo "$as_me: failed program was:" >&5
2345 cat conftest.$ac_ext >&5
2347 echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6
2349 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2350 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2351 { (exit 1); exit 1; }; }
2353 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2356 if test -n "$GCC"; then
2357 echo "$as_me:$LINENO: result: Turning on gcc compiler warnings." >&5
2358 echo "${ECHO_T}Turning on gcc compiler warnings." >&6
2359 CC="$CC -Wall -Wstrict-prototypes -Wnested-externs -Wno-format"
2362 *-irix5* |*-irix6.0-3* )
2363 echo "$as_me:$LINENO: result: Turning on SGI compiler warnings." >&5
2364 echo "${ECHO_T}Turning on SGI compiler warnings." >&6
2365 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
2368 # if test -z "$GCC"; then
2369 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
2370 # CC="$CC -migrate -w0 -verbose -warnprotos"
2376 if test -n "$GCC"; then
2377 if test -n "$GCC"; then
2378 echo "$as_me:$LINENO: checking whether gcc accepts -std" >&5
2379 echo $ECHO_N "checking whether gcc accepts -std... $ECHO_C" >&6
2380 if test "${ac_cv_gcc_accepts_std+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2383 if ( gcc -E -std=c89 - </dev/null >/dev/null 2>&1 | \
2384 grep unrecognized >/dev/null ); then
2385 ac_cv_gcc_accepts_std=no
2387 ac_cv_gcc_accepts_std=yes
2390 echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_std" >&5
2391 echo "${ECHO_T}$ac_cv_gcc_accepts_std" >&6
2392 ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
2395 echo "$as_me:$LINENO: result: Disabling C++ comments in ANSI C code." >&5
2396 echo "${ECHO_T}Disabling C++ comments in ANSI C code." >&6
2398 # The reason that // comments are banned from xscreensaver is that gcc is
2399 # basically the only compiler in the world that supports them in C code.
2400 # All other vendors support them only in their C++ compilers, not in their
2401 # ANSI C compilers. This means that it's a portability problem: every time
2402 # these comments have snuck into the xscreensaver source code, I've gotten
2403 # complaints about it the next day. So we turn off support for them in gcc
2404 # as well to prevent them from accidentially slipping in.
2406 if test "$ac_gcc_accepts_std" = yes ; then
2408 # -std=c89 defines __STRICT_ANSI__, which we don't want.
2409 # (That appears to be the only additional preprocessor symbol
2410 # it defines, in addition to the syntax changes it makes.)
2412 # -std=gnu89 is no good, because // comments were a GNU extension
2413 # before they were in the ANSI C 99 spec... (gcc 2.96 permits //
2414 # with -std=gnu89 but not with -std=c89.)
2416 CC="$CC -std=c89 -U__STRICT_ANSI__"
2419 CC="$CC -Wp,-lang-c89"
2424 ac_cpp='$CPP $CPPFLAGS'
2425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2428 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2429 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2430 # On Suns, sometimes $CPP names a directory.
2431 if test -n "$CPP" && test -d "$CPP"; then
2434 if test -z "$CPP"; then
2435 if test "${ac_cv_prog_CPP+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 # Double quotes because CPP needs to be expanded
2439 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2442 for ac_c_preproc_warn_flag in '' yes
2444 # Use a header file that comes with gcc, so configuring glibc
2445 # with a fresh cross-compiler works.
2446 # On the NeXT, cc -E runs the code through the compiler's parser,
2447 # not just through cpp. "Syntax error" is here to catch this case.
2448 cat >conftest.$ac_ext <<_ACEOF
2449 #line $LINENO "configure"
2450 #include "confdefs.h"
2454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2457 egrep -v '^ *\+' conftest.er1 >conftest.err
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } >/dev/null; then
2462 if test -s conftest.err; then
2463 ac_cpp_err=$ac_c_preproc_warn_flag
2470 if test -z "$ac_cpp_err"; then
2473 echo "$as_me: failed program was:" >&5
2474 cat conftest.$ac_ext >&5
2475 # Broken: fails on valid input.
2478 rm -f conftest.err conftest.$ac_ext
2480 # OK, works on sane cases. Now check whether non-existent headers
2481 # can be detected and how.
2482 cat >conftest.$ac_ext <<_ACEOF
2483 #line $LINENO "configure"
2484 #include "confdefs.h"
2485 #include <ac_nonexistent.h>
2487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2490 egrep -v '^ *\+' conftest.er1 >conftest.err
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } >/dev/null; then
2495 if test -s conftest.err; then
2496 ac_cpp_err=$ac_c_preproc_warn_flag
2503 if test -z "$ac_cpp_err"; then
2504 # Broken: success on invalid input.
2507 echo "$as_me: failed program was:" >&5
2508 cat conftest.$ac_ext >&5
2509 # Passes both tests.
2513 rm -f conftest.err conftest.$ac_ext
2516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2517 rm -f conftest.err conftest.$ac_ext
2518 if $ac_preproc_ok; then
2530 echo "$as_me:$LINENO: result: $CPP" >&5
2531 echo "${ECHO_T}$CPP" >&6
2533 for ac_c_preproc_warn_flag in '' yes
2535 # Use a header file that comes with gcc, so configuring glibc
2536 # with a fresh cross-compiler works.
2537 # On the NeXT, cc -E runs the code through the compiler's parser,
2538 # not just through cpp. "Syntax error" is here to catch this case.
2539 cat >conftest.$ac_ext <<_ACEOF
2540 #line $LINENO "configure"
2541 #include "confdefs.h"
2545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2548 egrep -v '^ *\+' conftest.er1 >conftest.err
2550 cat conftest.err >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } >/dev/null; then
2553 if test -s conftest.err; then
2554 ac_cpp_err=$ac_c_preproc_warn_flag
2561 if test -z "$ac_cpp_err"; then
2564 echo "$as_me: failed program was:" >&5
2565 cat conftest.$ac_ext >&5
2566 # Broken: fails on valid input.
2569 rm -f conftest.err conftest.$ac_ext
2571 # OK, works on sane cases. Now check whether non-existent headers
2572 # can be detected and how.
2573 cat >conftest.$ac_ext <<_ACEOF
2574 #line $LINENO "configure"
2575 #include "confdefs.h"
2576 #include <ac_nonexistent.h>
2578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2581 egrep -v '^ *\+' conftest.er1 >conftest.err
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } >/dev/null; then
2586 if test -s conftest.err; then
2587 ac_cpp_err=$ac_c_preproc_warn_flag
2594 if test -z "$ac_cpp_err"; then
2595 # Broken: success on invalid input.
2598 echo "$as_me: failed program was:" >&5
2599 cat conftest.$ac_ext >&5
2600 # Passes both tests.
2604 rm -f conftest.err conftest.$ac_ext
2607 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2608 rm -f conftest.err conftest.$ac_ext
2609 if $ac_preproc_ok; then
2612 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2613 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2614 { (exit 1); exit 1; }; }
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2623 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2624 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2625 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 ac_cv_prog_cc_stdc=no
2630 cat >conftest.$ac_ext <<_ACEOF
2631 #line $LINENO "configure"
2632 #include "confdefs.h"
2635 #include <sys/types.h>
2636 #include <sys/stat.h>
2637 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2638 struct buf { int x; };
2639 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2640 static char *e (p, i)
2646 static char *f (char * (*g) (char **, int), char **p, ...)
2651 s = g (p, va_arg (v,int));
2655 int test (int i, double x);
2656 struct s1 {int (*f) (int a);};
2657 struct s2 {int (*f) (double a);};
2658 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2661 #ifdef F77_DUMMY_MAIN
2665 int F77_DUMMY_MAIN() { return 1; }
2670 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2675 # Don't try gcc -ansi; that turns off useful extensions and
2676 # breaks some systems' header files.
2677 # AIX -qlanglvl=ansi
2678 # Ultrix and OSF/1 -std1
2679 # HP-UX 10.20 and later -Ae
2680 # HP-UX older versions -Aa -D_HPUX_SOURCE
2681 # SVR4 -Xc -D__EXTENSIONS__
2682 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2684 CC="$ac_save_CC $ac_arg"
2685 rm -f conftest.$ac_objext
2686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2687 (eval $ac_compile) 2>&5
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); } &&
2691 { ac_try='test -s conftest.$ac_objext'
2692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; }; then
2697 ac_cv_prog_cc_stdc=$ac_arg
2700 echo "$as_me: failed program was:" >&5
2701 cat conftest.$ac_ext >&5
2703 rm -f conftest.$ac_objext
2705 rm -f conftest.$ac_ext conftest.$ac_objext
2710 case "x$ac_cv_prog_cc_stdc" in
2712 echo "$as_me:$LINENO: result: none needed" >&5
2713 echo "${ECHO_T}none needed" >&6 ;;
2715 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2716 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2717 CC="$CC $ac_cv_prog_cc_stdc" ;;
2720 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2721 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2722 if test "${ac_cv_c_const+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 cat >conftest.$ac_ext <<_ACEOF
2726 #line $LINENO "configure"
2727 #include "confdefs.h"
2729 #ifdef F77_DUMMY_MAIN
2733 int F77_DUMMY_MAIN() { return 1; }
2738 /* FIXME: Include the comments suggested by Paul. */
2740 /* Ultrix mips cc rejects this. */
2741 typedef int charset[2];
2743 /* SunOS 4.1.1 cc rejects this. */
2744 char const *const *ccp;
2746 /* NEC SVR4.0.2 mips cc rejects this. */
2747 struct point {int x, y;};
2748 static struct point const zero = {0,0};
2749 /* AIX XL C 1.02.0.0 rejects this.
2750 It does not let you subtract one const X* pointer from another in
2751 an arm of an if-expression whose if-part is not a constant
2753 const char *g = "string";
2754 ccp = &g + (g ? g-g : 0);
2755 /* HPUX 7.0 cc rejects these. */
2758 ccp = (char const *const *) p;
2759 { /* SCO 3.2v4 cc rejects this. */
2761 char const *s = 0 ? (char *) 0 : (char const *) 0;
2765 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2767 const int *foo = &x[0];
2770 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2771 typedef const int *iptr;
2775 { /* AIX XL C 1.02.0.0 rejects this saying
2776 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2777 struct s { int j; const int *ap[3]; };
2778 struct s *b; b->j = 5;
2780 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2789 rm -f conftest.$ac_objext
2790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791 (eval $ac_compile) 2>&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } &&
2795 { ac_try='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2803 echo "$as_me: failed program was:" >&5
2804 cat conftest.$ac_ext >&5
2807 rm -f conftest.$ac_objext conftest.$ac_ext
2809 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2810 echo "${ECHO_T}$ac_cv_c_const" >&6
2811 if test $ac_cv_c_const = no; then
2813 cat >>confdefs.h <<\_ACEOF
2819 echo "$as_me:$LINENO: checking for inline" >&5
2820 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2821 if test "${ac_cv_c_inline+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2825 for ac_kw in inline __inline__ __inline; do
2826 cat >conftest.$ac_ext <<_ACEOF
2827 #line $LINENO "configure"
2828 #include "confdefs.h"
2830 static $ac_kw int static_foo () {return 0; }
2831 $ac_kw int foo () {return 0; }
2835 rm -f conftest.$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837 (eval $ac_compile) 2>&5
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); } &&
2841 { ac_try='test -s conftest.$ac_objext'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2847 ac_cv_c_inline=$ac_kw; break
2849 echo "$as_me: failed program was:" >&5
2850 cat conftest.$ac_ext >&5
2852 rm -f conftest.$ac_objext conftest.$ac_ext
2856 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2857 echo "${ECHO_T}$ac_cv_c_inline" >&6
2858 case $ac_cv_c_inline in
2861 cat >>confdefs.h <<\_ACEOF
2865 *) cat >>confdefs.h <<_ACEOF
2866 #define inline $ac_cv_c_inline
2872 ac_bc_result=`echo 6+9 | bc 2>/dev/null`
2873 echo "$as_me:$LINENO: checking for bc" >&5
2874 echo $ECHO_N "checking for bc... $ECHO_C" >&6
2875 if test "$ac_bc_result" = "15" ; then
2876 echo "$as_me:$LINENO: result: yes" >&5
2877 echo "${ECHO_T}yes" >&6
2879 echo "$as_me:$LINENO: result: no" >&5
2880 echo "${ECHO_T}no" >&6
2882 { { echo "$as_me:$LINENO: error: Your system doesn't have \"bc\", which has been a standard
2883 part of Unix since the 1970s. Come back when your vendor
2884 has grown a clue." >&5
2885 echo "$as_me: error: Your system doesn't have \"bc\", which has been a standard
2886 part of Unix since the 1970s. Come back when your vendor
2887 has grown a clue." >&2;}
2888 { (exit 1); exit 1; }; }
2892 # stuff for Makefiles
2893 # Find a good install program. We prefer a C program (faster),
2894 # so one script is as good as another. But avoid the broken or
2895 # incompatible versions:
2896 # SysV /etc/install, /usr/sbin/install
2897 # SunOS /usr/etc/install
2898 # IRIX /sbin/install
2900 # AmigaOS /C/install, which installs bootblocks on floppy discs
2901 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2902 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2903 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2904 # ./install, which can be erroneously created by make from ./install.sh.
2905 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2906 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2907 if test -z "$INSTALL"; then
2908 if test "${ac_cv_path_install+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 test -z "$as_dir" && as_dir=.
2916 # Account for people who put trailing slashes in PATH elements.
2918 ./ | .// | /cC/* | \
2919 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2922 # OSF1 and SCO ODT 3.0 have their own names for install.
2923 # Don't use installbsd from OSF since it installs stuff as root
2925 for ac_prog in ginstall scoinst install; do
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2928 if test $ac_prog = install &&
2929 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2930 # AIX install. It has an incompatible calling convention.
2932 elif test $ac_prog = install &&
2933 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2934 # program-specific install script used by HP pwplus--don't use.
2937 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2949 if test "${ac_cv_path_install+set}" = set; then
2950 INSTALL=$ac_cv_path_install
2952 # As a last resort, use the slow shell script. We don't cache a
2953 # path for INSTALL within a source directory, because that will
2954 # break other packages using the cache if that directory is
2955 # removed, or if the path is relative.
2956 INSTALL=$ac_install_sh
2959 echo "$as_me:$LINENO: result: $INSTALL" >&5
2960 echo "${ECHO_T}$INSTALL" >&6
2962 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2963 # It thinks the first close brace ends the variable substitution.
2964 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2966 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2968 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2970 echo "$as_me:$LINENO: checking whether \\"\${INSTALL} -d\\" creates intermediate directories" >&5
2971 echo $ECHO_N "checking whether \\"\${INSTALL} -d\\" creates intermediate directories... $ECHO_C" >&6
2972 if test "${ac_cv_install_d_creates_dirs+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 ac_cv_install_d_creates_dirs=no
2977 if mkdir conftestdir; then
2978 cd conftestdir 2>/dev/null
2979 ${INSTALL} -d `pwd`/dir1/dir2 >/dev/null 2>&1
2980 if test -d dir1/dir2/. ; then
2981 ac_cv_install_d_creates_dirs=yes
2988 echo "$as_me:$LINENO: result: $ac_cv_install_d_creates_dirs" >&5
2989 echo "${ECHO_T}$ac_cv_install_d_creates_dirs" >&6
2991 if test "$ac_cv_install_d_creates_dirs" = no ; then
2992 echo "$as_me:$LINENO: checking whether \"mkdir -p\" creates intermediate directories" >&5
2993 echo $ECHO_N "checking whether \"mkdir -p\" creates intermediate directories... $ECHO_C" >&6
2994 if test "${ac_cv_mkdir_p_creates_dirs+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 ac_cv_mkdir_p_creates_dirs=no
2999 if mkdir conftestdir; then
3000 cd conftestdir 2>/dev/null
3001 mkdir -p dir1/dir2 >/dev/null 2>&1
3002 if test -d dir1/dir2/. ; then
3003 ac_cv_mkdir_p_creates_dirs=yes
3010 echo "$as_me:$LINENO: result: $ac_cv_mkdir_p_creates_dirs" >&5
3011 echo "${ECHO_T}$ac_cv_mkdir_p_creates_dirs" >&6
3014 if test "$ac_cv_install_d_creates_dirs" = yes ; then
3015 INSTALL_DIRS='${INSTALL} -d'
3016 elif test "$ac_cv_mkdir_p_creates_dirs" = yes ; then
3017 INSTALL_DIRS='mkdir -p'
3020 INSTALL_DIRS='${INSTALL} -d'
3023 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
3024 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3025 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3026 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3029 cat >conftest.make <<\_ACEOF
3031 @echo 'ac_maketemp="${MAKE}"'
3033 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3034 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3035 if test -n "$ac_maketemp"; then
3036 eval ac_cv_prog_make_${ac_make}_set=yes
3038 eval ac_cv_prog_make_${ac_make}_set=no
3042 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3043 echo "$as_me:$LINENO: result: yes" >&5
3044 echo "${ECHO_T}yes" >&6
3047 echo "$as_me:$LINENO: result: no" >&5
3048 echo "${ECHO_T}no" >&6
3049 SET_MAKE="MAKE=${MAKE-make}"
3053 # By default, autoconf sets INSTALL_SCRIPT to '${INSTALL_PROGRAM}'.
3054 # That's wrong: it should be set to '${INSTALL}', so that one can
3055 # implement the "install-strip" target properly (strip executables,
3056 # but do not try to strip scripts.)
3058 INSTALL_SCRIPT='${INSTALL}'
3062 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3063 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3064 if test "${ac_cv_header_stdc+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 cat >conftest.$ac_ext <<_ACEOF
3068 #line $LINENO "configure"
3069 #include "confdefs.h"
3076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3079 egrep -v '^ *\+' conftest.er1 >conftest.err
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } >/dev/null; then
3084 if test -s conftest.err; then
3085 ac_cpp_err=$ac_c_preproc_warn_flag
3092 if test -z "$ac_cpp_err"; then
3093 ac_cv_header_stdc=yes
3095 echo "$as_me: failed program was:" >&5
3096 cat conftest.$ac_ext >&5
3097 ac_cv_header_stdc=no
3099 rm -f conftest.err conftest.$ac_ext
3101 if test $ac_cv_header_stdc = yes; then
3102 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3103 cat >conftest.$ac_ext <<_ACEOF
3104 #line $LINENO "configure"
3105 #include "confdefs.h"
3109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3110 egrep "memchr" >/dev/null 2>&1; then
3113 ac_cv_header_stdc=no
3119 if test $ac_cv_header_stdc = yes; then
3120 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3121 cat >conftest.$ac_ext <<_ACEOF
3122 #line $LINENO "configure"
3123 #include "confdefs.h"
3127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3128 egrep "free" >/dev/null 2>&1; then
3131 ac_cv_header_stdc=no
3137 if test $ac_cv_header_stdc = yes; then
3138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3139 if test "$cross_compiling" = yes; then
3142 cat >conftest.$ac_ext <<_ACEOF
3143 #line $LINENO "configure"
3144 #include "confdefs.h"
3146 #if ((' ' & 0x0FF) == 0x020)
3147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3150 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3151 || ('j' <= (c) && (c) <= 'r') \
3152 || ('s' <= (c) && (c) <= 'z'))
3153 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3156 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3161 for (i = 0; i < 256; i++)
3162 if (XOR (islower (i), ISLOWER (i))
3163 || toupper (i) != TOUPPER (i))
3168 rm -f conftest$ac_exeext
3169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3170 (eval $ac_link) 2>&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
3181 echo "$as_me: program exited with status $ac_status" >&5
3182 echo "$as_me: failed program was:" >&5
3183 cat conftest.$ac_ext >&5
3185 ac_cv_header_stdc=no
3187 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3191 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3192 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3193 if test $ac_cv_header_stdc = yes; then
3195 cat >>confdefs.h <<\_ACEOF
3196 #define STDC_HEADERS 1
3201 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3211 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3212 inttypes.h stdint.h unistd.h
3214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3215 echo "$as_me:$LINENO: checking for $ac_header" >&5
3216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 cat >conftest.$ac_ext <<_ACEOF
3221 #line $LINENO "configure"
3222 #include "confdefs.h"
3223 $ac_includes_default
3225 #include <$ac_header>
3227 rm -f conftest.$ac_objext
3228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3229 (eval $ac_compile) 2>&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } &&
3233 { ac_try='test -s conftest.$ac_objext'
3234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; }; then
3239 eval "$as_ac_Header=yes"
3241 echo "$as_me: failed program was:" >&5
3242 cat conftest.$ac_ext >&5
3243 eval "$as_ac_Header=no"
3245 rm -f conftest.$ac_objext conftest.$ac_ext
3247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3250 cat >>confdefs.h <<_ACEOF
3251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3260 for ac_header in unistd.h
3262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3264 echo "$as_me:$LINENO: checking for $ac_header" >&5
3265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3272 # Is the header compilable?
3273 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3275 cat >conftest.$ac_ext <<_ACEOF
3276 #line $LINENO "configure"
3277 #include "confdefs.h"
3278 $ac_includes_default
3279 #include <$ac_header>
3281 rm -f conftest.$ac_objext
3282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3283 (eval $ac_compile) 2>&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } &&
3287 { ac_try='test -s conftest.$ac_objext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 ac_header_compiler=yes
3295 echo "$as_me: failed program was:" >&5
3296 cat conftest.$ac_ext >&5
3297 ac_header_compiler=no
3299 rm -f conftest.$ac_objext conftest.$ac_ext
3300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3301 echo "${ECHO_T}$ac_header_compiler" >&6
3303 # Is the header present?
3304 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3306 cat >conftest.$ac_ext <<_ACEOF
3307 #line $LINENO "configure"
3308 #include "confdefs.h"
3309 #include <$ac_header>
3311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3314 egrep -v '^ *\+' conftest.er1 >conftest.err
3316 cat conftest.err >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } >/dev/null; then
3319 if test -s conftest.err; then
3320 ac_cpp_err=$ac_c_preproc_warn_flag
3327 if test -z "$ac_cpp_err"; then
3328 ac_header_preproc=yes
3330 echo "$as_me: failed program was:" >&5
3331 cat conftest.$ac_ext >&5
3332 ac_header_preproc=no
3334 rm -f conftest.err conftest.$ac_ext
3335 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3336 echo "${ECHO_T}$ac_header_preproc" >&6
3338 # So? What about this header?
3339 case $ac_header_compiler:$ac_header_preproc in
3341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3349 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3353 echo "$as_me:$LINENO: checking for $ac_header" >&5
3354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 eval "$as_ac_Header=$ac_header_preproc"
3360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3365 cat >>confdefs.h <<_ACEOF
3366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3373 echo "$as_me:$LINENO: checking for mode_t" >&5
3374 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
3375 if test "${ac_cv_type_mode_t+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 cat >conftest.$ac_ext <<_ACEOF
3379 #line $LINENO "configure"
3380 #include "confdefs.h"
3381 $ac_includes_default
3382 #ifdef F77_DUMMY_MAIN
3386 int F77_DUMMY_MAIN() { return 1; }
3393 if (sizeof (mode_t))
3399 rm -f conftest.$ac_objext
3400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3401 (eval $ac_compile) 2>&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } &&
3405 { ac_try='test -s conftest.$ac_objext'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; }; then
3411 ac_cv_type_mode_t=yes
3413 echo "$as_me: failed program was:" >&5
3414 cat conftest.$ac_ext >&5
3415 ac_cv_type_mode_t=no
3417 rm -f conftest.$ac_objext conftest.$ac_ext
3419 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
3420 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
3421 if test $ac_cv_type_mode_t = yes; then
3425 cat >>confdefs.h <<_ACEOF
3431 echo "$as_me:$LINENO: checking for pid_t" >&5
3432 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3433 if test "${ac_cv_type_pid_t+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 cat >conftest.$ac_ext <<_ACEOF
3437 #line $LINENO "configure"
3438 #include "confdefs.h"
3439 $ac_includes_default
3440 #ifdef F77_DUMMY_MAIN
3444 int F77_DUMMY_MAIN() { return 1; }
3457 rm -f conftest.$ac_objext
3458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459 (eval $ac_compile) 2>&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } &&
3463 { ac_try='test -s conftest.$ac_objext'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; }; then
3469 ac_cv_type_pid_t=yes
3471 echo "$as_me: failed program was:" >&5
3472 cat conftest.$ac_ext >&5
3475 rm -f conftest.$ac_objext conftest.$ac_ext
3477 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3478 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3479 if test $ac_cv_type_pid_t = yes; then
3483 cat >>confdefs.h <<_ACEOF
3489 echo "$as_me:$LINENO: checking for size_t" >&5
3490 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3491 if test "${ac_cv_type_size_t+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 cat >conftest.$ac_ext <<_ACEOF
3495 #line $LINENO "configure"
3496 #include "confdefs.h"
3497 $ac_includes_default
3498 #ifdef F77_DUMMY_MAIN
3502 int F77_DUMMY_MAIN() { return 1; }
3509 if (sizeof (size_t))
3515 rm -f conftest.$ac_objext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3517 (eval $ac_compile) 2>&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } &&
3521 { ac_try='test -s conftest.$ac_objext'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; }; then
3527 ac_cv_type_size_t=yes
3529 echo "$as_me: failed program was:" >&5
3530 cat conftest.$ac_ext >&5
3531 ac_cv_type_size_t=no
3533 rm -f conftest.$ac_objext conftest.$ac_ext
3535 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3536 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3537 if test $ac_cv_type_size_t = yes; then
3541 cat >>confdefs.h <<_ACEOF
3542 #define size_t unsigned
3547 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3548 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3549 if test "${ac_cv_type_signal+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 cat >conftest.$ac_ext <<_ACEOF
3553 #line $LINENO "configure"
3554 #include "confdefs.h"
3555 #include <sys/types.h>
3561 extern "C" void (*signal (int, void (*)(int)))(int);
3563 void (*signal ()) ();
3566 #ifdef F77_DUMMY_MAIN
3570 int F77_DUMMY_MAIN() { return 1; }
3580 rm -f conftest.$ac_objext
3581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3582 (eval $ac_compile) 2>&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try='test -s conftest.$ac_objext'
3587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; }; then
3592 ac_cv_type_signal=void
3594 echo "$as_me: failed program was:" >&5
3595 cat conftest.$ac_ext >&5
3596 ac_cv_type_signal=int
3598 rm -f conftest.$ac_objext conftest.$ac_ext
3600 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3601 echo "${ECHO_T}$ac_cv_type_signal" >&6
3603 cat >>confdefs.h <<_ACEOF
3604 #define RETSIGTYPE $ac_cv_type_signal
3608 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3609 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3610 if test "${ac_cv_header_time+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 cat >conftest.$ac_ext <<_ACEOF
3614 #line $LINENO "configure"
3615 #include "confdefs.h"
3616 #include <sys/types.h>
3617 #include <sys/time.h>
3620 #ifdef F77_DUMMY_MAIN
3624 int F77_DUMMY_MAIN() { return 1; }
3629 if ((struct tm *) 0)
3635 rm -f conftest.$ac_objext
3636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3637 (eval $ac_compile) 2>&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } &&
3641 { ac_try='test -s conftest.$ac_objext'
3642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; }; then
3647 ac_cv_header_time=yes
3649 echo "$as_me: failed program was:" >&5
3650 cat conftest.$ac_ext >&5
3651 ac_cv_header_time=no
3653 rm -f conftest.$ac_objext conftest.$ac_ext
3655 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3656 echo "${ECHO_T}$ac_cv_header_time" >&6
3657 if test $ac_cv_header_time = yes; then
3659 cat >>confdefs.h <<\_ACEOF
3660 #define TIME_WITH_SYS_TIME 1
3665 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3666 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3667 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 cat >conftest.$ac_ext <<_ACEOF
3671 #line $LINENO "configure"
3672 #include "confdefs.h"
3673 #include <sys/types.h>
3674 #include <sys/wait.h>
3676 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3679 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3682 #ifdef F77_DUMMY_MAIN
3686 int F77_DUMMY_MAIN() { return 1; }
3693 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3698 rm -f conftest.$ac_objext
3699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700 (eval $ac_compile) 2>&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } &&
3704 { ac_try='test -s conftest.$ac_objext'
3705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3710 ac_cv_header_sys_wait_h=yes
3712 echo "$as_me: failed program was:" >&5
3713 cat conftest.$ac_ext >&5
3714 ac_cv_header_sys_wait_h=no
3716 rm -f conftest.$ac_objext conftest.$ac_ext
3718 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3719 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3720 if test $ac_cv_header_sys_wait_h = yes; then
3722 cat >>confdefs.h <<\_ACEOF
3723 #define HAVE_SYS_WAIT_H 1
3734 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3735 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3736 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3737 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 cat >conftest.$ac_ext <<_ACEOF
3742 #line $LINENO "configure"
3743 #include "confdefs.h"
3744 #include <sys/types.h>
3747 #ifdef F77_DUMMY_MAIN
3751 int F77_DUMMY_MAIN() { return 1; }
3762 rm -f conftest.$ac_objext
3763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3764 (eval $ac_compile) 2>&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try='test -s conftest.$ac_objext'
3769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }; }; then
3774 eval "$as_ac_Header=yes"
3776 echo "$as_me: failed program was:" >&5
3777 cat conftest.$ac_ext >&5
3778 eval "$as_ac_Header=no"
3780 rm -f conftest.$ac_objext conftest.$ac_ext
3782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3785 cat >>confdefs.h <<_ACEOF
3786 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3789 ac_header_dirent=$ac_hdr; break
3793 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3794 if test $ac_header_dirent = dirent.h; then
3795 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3796 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3797 if test "${ac_cv_search_opendir+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 ac_func_search_save_LIBS=$LIBS
3801 ac_cv_search_opendir=no
3802 cat >conftest.$ac_ext <<_ACEOF
3803 #line $LINENO "configure"
3804 #include "confdefs.h"
3806 /* Override any gcc2 internal prototype to avoid an error. */
3810 /* We use char because int might match the return type of a gcc2
3811 builtin and then its argument prototype would still apply. */
3813 #ifdef F77_DUMMY_MAIN
3817 int F77_DUMMY_MAIN() { return 1; }
3827 rm -f conftest.$ac_objext conftest$ac_exeext
3828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3829 (eval $ac_link) 2>&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } &&
3833 { ac_try='test -s conftest$ac_exeext'
3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; }; then
3839 ac_cv_search_opendir="none required"
3841 echo "$as_me: failed program was:" >&5
3842 cat conftest.$ac_ext >&5
3844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3845 if test "$ac_cv_search_opendir" = no; then
3846 for ac_lib in dir; do
3847 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3848 cat >conftest.$ac_ext <<_ACEOF
3849 #line $LINENO "configure"
3850 #include "confdefs.h"
3852 /* Override any gcc2 internal prototype to avoid an error. */
3856 /* We use char because int might match the return type of a gcc2
3857 builtin and then its argument prototype would still apply. */
3859 #ifdef F77_DUMMY_MAIN
3863 int F77_DUMMY_MAIN() { return 1; }
3873 rm -f conftest.$ac_objext conftest$ac_exeext
3874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3875 (eval $ac_link) 2>&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } &&
3879 { ac_try='test -s conftest$ac_exeext'
3880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
3885 ac_cv_search_opendir="-l$ac_lib"
3888 echo "$as_me: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3894 LIBS=$ac_func_search_save_LIBS
3896 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3897 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3898 if test "$ac_cv_search_opendir" != no; then
3899 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3904 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3905 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3906 if test "${ac_cv_search_opendir+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 ac_func_search_save_LIBS=$LIBS
3910 ac_cv_search_opendir=no
3911 cat >conftest.$ac_ext <<_ACEOF
3912 #line $LINENO "configure"
3913 #include "confdefs.h"
3915 /* Override any gcc2 internal prototype to avoid an error. */
3919 /* We use char because int might match the return type of a gcc2
3920 builtin and then its argument prototype would still apply. */
3922 #ifdef F77_DUMMY_MAIN
3926 int F77_DUMMY_MAIN() { return 1; }
3936 rm -f conftest.$ac_objext conftest$ac_exeext
3937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3938 (eval $ac_link) 2>&5
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } &&
3942 { ac_try='test -s conftest$ac_exeext'
3943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947 (exit $ac_status); }; }; then
3948 ac_cv_search_opendir="none required"
3950 echo "$as_me: failed program was:" >&5
3951 cat conftest.$ac_ext >&5
3953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3954 if test "$ac_cv_search_opendir" = no; then
3956 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3957 cat >conftest.$ac_ext <<_ACEOF
3958 #line $LINENO "configure"
3959 #include "confdefs.h"
3961 /* Override any gcc2 internal prototype to avoid an error. */
3965 /* We use char because int might match the return type of a gcc2
3966 builtin and then its argument prototype would still apply. */
3968 #ifdef F77_DUMMY_MAIN
3972 int F77_DUMMY_MAIN() { return 1; }
3982 rm -f conftest.$ac_objext conftest$ac_exeext
3983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3984 (eval $ac_link) 2>&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } &&
3988 { ac_try='test -s conftest$ac_exeext'
3989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); }; }; then
3994 ac_cv_search_opendir="-l$ac_lib"
3997 echo "$as_me: failed program was:" >&5
3998 cat conftest.$ac_ext >&5
4000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4003 LIBS=$ac_func_search_save_LIBS
4005 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4006 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4007 if test "$ac_cv_search_opendir" != no; then
4008 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4014 echo "$as_me:$LINENO: checking how to call gettimeofday" >&5
4015 echo $ECHO_N "checking how to call gettimeofday... $ECHO_C" >&6
4016 if test "${ac_cv_gettimeofday_args+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 cat >conftest.$ac_ext <<_ACEOF
4020 #line $LINENO "configure"
4021 #include "confdefs.h"
4023 #include <sys/time.h>
4024 #ifdef F77_DUMMY_MAIN
4028 int F77_DUMMY_MAIN() { return 1; }
4033 struct timeval tv; struct timezone tzp;
4034 gettimeofday(&tv, &tzp);
4039 rm -f conftest.$ac_objext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041 (eval $ac_compile) 2>&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_gettimeofday_args=2
4053 echo "$as_me: failed program was:" >&5
4054 cat conftest.$ac_ext >&5
4055 cat >conftest.$ac_ext <<_ACEOF
4056 #line $LINENO "configure"
4057 #include "confdefs.h"
4059 #include <sys/time.h>
4060 #ifdef F77_DUMMY_MAIN
4064 int F77_DUMMY_MAIN() { return 1; }
4069 struct timeval tv; gettimeofday(&tv);
4074 rm -f conftest.$ac_objext
4075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4076 (eval $ac_compile) 2>&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } &&
4080 { ac_try='test -s conftest.$ac_objext'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4086 ac_gettimeofday_args=1
4088 echo "$as_me: failed program was:" >&5
4089 cat conftest.$ac_ext >&5
4090 ac_gettimeofday_args=0
4092 rm -f conftest.$ac_objext conftest.$ac_ext
4094 rm -f conftest.$ac_objext conftest.$ac_ext
4095 ac_cv_gettimeofday_args=$ac_gettimeofday_args
4098 ac_gettimeofday_args=$ac_cv_gettimeofday_args
4099 if test "$ac_gettimeofday_args" = 1 ; then
4100 cat >>confdefs.h <<\_ACEOF
4101 #define HAVE_GETTIMEOFDAY 1
4104 echo "$as_me:$LINENO: result: one argument" >&5
4105 echo "${ECHO_T}one argument" >&6
4106 elif test "$ac_gettimeofday_args" = 2 ; then
4107 cat >>confdefs.h <<\_ACEOF
4108 #define HAVE_GETTIMEOFDAY 1
4111 cat >>confdefs.h <<\_ACEOF
4112 #define GETTIMEOFDAY_TWO_ARGS 1
4115 echo "$as_me:$LINENO: result: two arguments" >&5
4116 echo "${ECHO_T}two arguments" >&6
4118 echo "$as_me:$LINENO: result: unknown" >&5
4119 echo "${ECHO_T}unknown" >&6
4131 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv sbrk
4133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4134 echo "$as_me:$LINENO: checking for $ac_func" >&5
4135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4136 if eval "test \"\${$as_ac_var+set}\" = set"; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 cat >conftest.$ac_ext <<_ACEOF
4140 #line $LINENO "configure"
4141 #include "confdefs.h"
4142 /* System header to define __stub macros and hopefully few prototypes,
4143 which can conflict with char $ac_func (); below. */
4145 /* Override any gcc2 internal prototype to avoid an error. */
4149 /* We use char because int might match the return type of a gcc2
4150 builtin and then its argument prototype would still apply. */
4154 #ifdef F77_DUMMY_MAIN
4158 int F77_DUMMY_MAIN() { return 1; }
4163 /* The GNU C library defines this for functions which it implements
4164 to always fail with ENOSYS. Some functions are actually named
4165 something starting with __ and the normal name is an alias. */
4166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4176 rm -f conftest.$ac_objext conftest$ac_exeext
4177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4178 (eval $ac_link) 2>&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } &&
4182 { ac_try='test -s conftest$ac_exeext'
4183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
4188 eval "$as_ac_var=yes"
4190 echo "$as_me: failed program was:" >&5
4191 cat conftest.$ac_ext >&5
4192 eval "$as_ac_var=no"
4194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4198 if test `eval echo '${'$as_ac_var'}'` = yes; then
4199 cat >>confdefs.h <<_ACEOF
4200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4211 for ac_func in sigaction syslog realpath setrlimit
4213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4214 echo "$as_me:$LINENO: checking for $ac_func" >&5
4215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4216 if eval "test \"\${$as_ac_var+set}\" = set"; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 cat >conftest.$ac_ext <<_ACEOF
4220 #line $LINENO "configure"
4221 #include "confdefs.h"
4222 /* System header to define __stub macros and hopefully few prototypes,
4223 which can conflict with char $ac_func (); below. */
4225 /* Override any gcc2 internal prototype to avoid an error. */
4229 /* We use char because int might match the return type of a gcc2
4230 builtin and then its argument prototype would still apply. */
4234 #ifdef F77_DUMMY_MAIN
4238 int F77_DUMMY_MAIN() { return 1; }
4243 /* The GNU C library defines this for functions which it implements
4244 to always fail with ENOSYS. Some functions are actually named
4245 something starting with __ and the normal name is an alias. */
4246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4256 rm -f conftest.$ac_objext conftest$ac_exeext
4257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4258 (eval $ac_link) 2>&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
4262 { ac_try='test -s conftest$ac_exeext'
4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; }; then
4268 eval "$as_ac_var=yes"
4270 echo "$as_me: failed program was:" >&5
4271 cat conftest.$ac_ext >&5
4272 eval "$as_ac_var=no"
4274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4278 if test `eval echo '${'$as_ac_var'}'` = yes; then
4279 cat >>confdefs.h <<_ACEOF
4280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4286 echo "$as_me:$LINENO: checking for struct icmp" >&5
4287 echo $ECHO_N "checking for struct icmp... $ECHO_C" >&6
4288 if test "${ac_cv_have_icmp+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 cat >conftest.$ac_ext <<_ACEOF
4292 #line $LINENO "configure"
4293 #include "confdefs.h"
4301 #include <sys/types.h>
4302 #include <sys/time.h>
4303 #include <sys/ipc.h>
4304 #include <sys/shm.h>
4305 #include <sys/socket.h>
4306 #include <netinet/in_systm.h>
4307 #include <netinet/in.h>
4308 #include <netinet/ip.h>
4309 #include <netinet/ip_icmp.h>
4310 #include <netinet/udp.h>
4311 #include <arpa/inet.h>
4313 #ifdef F77_DUMMY_MAIN
4317 int F77_DUMMY_MAIN() { return 1; }
4324 struct sockaddr_in si;
4326 i.icmp_type = ICMP_ECHO;
4331 si.sin_family = AF_INET;
4332 #if defined(__DECC) || defined(_IP_VHL)
4342 rm -f conftest.$ac_objext
4343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4344 (eval $ac_compile) 2>&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
4348 { ac_try='test -s conftest.$ac_objext'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; }; then
4356 echo "$as_me: failed program was:" >&5
4357 cat conftest.$ac_ext >&5
4360 rm -f conftest.$ac_objext conftest.$ac_ext
4362 echo "$as_me:$LINENO: result: $ac_cv_have_icmp" >&5
4363 echo "${ECHO_T}$ac_cv_have_icmp" >&6
4364 if test "$ac_cv_have_icmp" = yes ; then
4365 cat >>confdefs.h <<\_ACEOF
4370 echo "$as_me:$LINENO: checking for struct icmphdr" >&5
4371 echo $ECHO_N "checking for struct icmphdr... $ECHO_C" >&6
4372 if test "${ac_cv_have_icmphdr+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 cat >conftest.$ac_ext <<_ACEOF
4376 #line $LINENO "configure"
4377 #include "confdefs.h"
4385 #include <sys/types.h>
4386 #include <sys/time.h>
4387 #include <sys/ipc.h>
4388 #include <sys/shm.h>
4389 #include <sys/socket.h>
4390 #include <netinet/in_systm.h>
4391 #include <netinet/in.h>
4392 #include <netinet/ip.h>
4393 #include <netinet/ip_icmp.h>
4394 #include <netinet/udp.h>
4395 #include <arpa/inet.h>
4397 #ifdef F77_DUMMY_MAIN
4401 int F77_DUMMY_MAIN() { return 1; }
4408 struct sockaddr_in si;
4414 i.un.echo.sequence = 0;
4415 si.sin_family = AF_INET;
4421 rm -f conftest.$ac_objext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } &&
4427 { ac_try='test -s conftest.$ac_objext'
4428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; }; then
4433 ac_cv_have_icmphdr=yes
4435 echo "$as_me: failed program was:" >&5
4436 cat conftest.$ac_ext >&5
4437 ac_cv_have_icmphdr=no
4439 rm -f conftest.$ac_objext conftest.$ac_ext
4441 echo "$as_me:$LINENO: result: $ac_cv_have_icmphdr" >&5
4442 echo "${ECHO_T}$ac_cv_have_icmphdr" >&6
4443 if test "$ac_cv_have_icmphdr" = yes ; then
4444 cat >>confdefs.h <<\_ACEOF
4445 #define HAVE_ICMPHDR 1
4451 for ac_header in crypt.h sys/select.h
4453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4455 echo "$as_me:$LINENO: checking for $ac_header" >&5
4456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4463 # Is the header compilable?
4464 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4466 cat >conftest.$ac_ext <<_ACEOF
4467 #line $LINENO "configure"
4468 #include "confdefs.h"
4469 $ac_includes_default
4470 #include <$ac_header>
4472 rm -f conftest.$ac_objext
4473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474 (eval $ac_compile) 2>&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } &&
4478 { ac_try='test -s conftest.$ac_objext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 ac_header_compiler=yes
4486 echo "$as_me: failed program was:" >&5
4487 cat conftest.$ac_ext >&5
4488 ac_header_compiler=no
4490 rm -f conftest.$ac_objext conftest.$ac_ext
4491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4492 echo "${ECHO_T}$ac_header_compiler" >&6
4494 # Is the header present?
4495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4497 cat >conftest.$ac_ext <<_ACEOF
4498 #line $LINENO "configure"
4499 #include "confdefs.h"
4500 #include <$ac_header>
4502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4505 egrep -v '^ *\+' conftest.er1 >conftest.err
4507 cat conftest.err >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } >/dev/null; then
4510 if test -s conftest.err; then
4511 ac_cpp_err=$ac_c_preproc_warn_flag
4518 if test -z "$ac_cpp_err"; then
4519 ac_header_preproc=yes
4521 echo "$as_me: failed program was:" >&5
4522 cat conftest.$ac_ext >&5
4523 ac_header_preproc=no
4525 rm -f conftest.err conftest.$ac_ext
4526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4527 echo "${ECHO_T}$ac_header_preproc" >&6
4529 # So? What about this header?
4530 case $ac_header_compiler:$ac_header_preproc in
4532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4544 echo "$as_me:$LINENO: checking for $ac_header" >&5
4545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 eval "$as_ac_Header=$ac_header_preproc"
4551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4556 cat >>confdefs.h <<_ACEOF
4557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4564 for ac_prog in perl5 perl
4566 # Extract the first word of "$ac_prog", so it can be a program name with args.
4567 set dummy $ac_prog; ac_word=$2
4568 echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4570 if test "${ac_cv_path_PERL+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4585 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 PERL=$ac_cv_path_PERL
4597 if test -n "$PERL"; then
4598 echo "$as_me:$LINENO: result: $PERL" >&5
4599 echo "${ECHO_T}$PERL" >&6
4601 echo "$as_me:$LINENO: result: no" >&5
4602 echo "${ECHO_T}no" >&6
4605 test -n "$PERL" && break
4608 if test -z "$PERL" ; then
4611 echo "$as_me:$LINENO: checking perl version" >&5
4612 echo $ECHO_N "checking perl version... $ECHO_C" >&6
4613 if test "${ac_cv_perl_version+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 ac_cv_perl_version=`$PERL -e "$perl_version_cmd"`
4618 echo "$as_me:$LINENO: result: $ac_cv_perl_version" >&5
4619 echo "${ECHO_T}$ac_cv_perl_version" >&6
4620 PERL_VERSION=$ac_cv_perl_version
4624 if test -z "$PERL" ; then
4625 # don't let it be blank...
4629 echo "$as_me:$LINENO: checking for X" >&5
4630 echo $ECHO_N "checking for X... $ECHO_C" >&6
4633 # Check whether --with-x or --without-x was given.
4634 if test "${with_x+set}" = set; then
4638 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4639 if test "x$with_x" = xno; then
4640 # The user explicitly disabled X.
4643 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4644 # Both variables are already set.
4647 if test "${ac_cv_have_x+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 # One or both of the vars are not set, and there is no cached value.
4651 ac_x_includes=no ac_x_libraries=no
4653 if mkdir conftest.dir; then
4655 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4656 cat >Imakefile <<'_ACEOF'
4658 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4660 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4661 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4662 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4663 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4664 for ac_extension in a so sl; do
4665 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4666 test -f $ac_im_libdir/libX11.$ac_extension; then
4667 ac_im_usrlibdir=$ac_im_libdir; break
4670 # Screen out bogus values from the imake configuration. They are
4671 # bogus both because they are the default anyway, and because
4672 # using them would break gcc on systems where it needs fixed includes.
4673 case $ac_im_incroot in
4675 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4677 case $ac_im_usrlibdir in
4679 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4686 # Standard set of common directories for X headers.
4687 # Check X11 before X11Rn because it is often a symlink to the current release.
4699 /usr/local/X11/include
4700 /usr/local/X11R6/include
4701 /usr/local/X11R5/include
4702 /usr/local/X11R4/include
4704 /usr/local/include/X11
4705 /usr/local/include/X11R6
4706 /usr/local/include/X11R5
4707 /usr/local/include/X11R4
4711 /usr/XFree86/include/X11
4715 /usr/unsupported/include
4717 /usr/local/x11r5/include
4718 /usr/lpp/Xamples/include
4720 /usr/openwin/include
4721 /usr/openwin/share/include'
4723 if test "$ac_x_includes" = no; then
4724 # Guess where to find include files, by looking for Intrinsic.h.
4725 # First, try using that file with no special directory specified.
4726 cat >conftest.$ac_ext <<_ACEOF
4727 #line $LINENO "configure"
4728 #include "confdefs.h"
4729 #include <X11/Intrinsic.h>
4731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4734 egrep -v '^ *\+' conftest.er1 >conftest.err
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } >/dev/null; then
4739 if test -s conftest.err; then
4740 ac_cpp_err=$ac_c_preproc_warn_flag
4747 if test -z "$ac_cpp_err"; then
4748 # We can compile using X headers with no special include directory.
4751 echo "$as_me: failed program was:" >&5
4752 cat conftest.$ac_ext >&5
4753 for ac_dir in $ac_x_header_dirs; do
4754 if test -r "$ac_dir/X11/Intrinsic.h"; then
4755 ac_x_includes=$ac_dir
4760 rm -f conftest.err conftest.$ac_ext
4761 fi # $ac_x_includes = no
4763 if test "$ac_x_libraries" = no; then
4764 # Check for the libraries.
4765 # See if we find them without any special options.
4766 # Don't add to $LIBS permanently.
4769 cat >conftest.$ac_ext <<_ACEOF
4770 #line $LINENO "configure"
4771 #include "confdefs.h"
4772 #include <X11/Intrinsic.h>
4773 #ifdef F77_DUMMY_MAIN
4777 int F77_DUMMY_MAIN() { return 1; }
4787 rm -f conftest.$ac_objext conftest$ac_exeext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4789 (eval $ac_link) 2>&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } &&
4793 { ac_try='test -s conftest$ac_exeext'
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; }; then
4800 # We can link X programs with no special library path.
4803 echo "$as_me: failed program was:" >&5
4804 cat conftest.$ac_ext >&5
4806 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4808 # Don't even attempt the hair of trying to link an X program!
4809 for ac_extension in a so sl; do
4810 if test -r $ac_dir/libXt.$ac_extension; then
4811 ac_x_libraries=$ac_dir
4817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4818 fi # $ac_x_libraries = no
4820 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4821 # Didn't find X anywhere. Cache the known absence of X.
4822 ac_cv_have_x="have_x=no"
4824 # Record where we found X for the cache.
4825 ac_cv_have_x="have_x=yes \
4826 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4831 eval "$ac_cv_have_x"
4834 if test "$have_x" != yes; then
4835 echo "$as_me:$LINENO: result: $have_x" >&5
4836 echo "${ECHO_T}$have_x" >&6
4839 # If each of the values was on the command line, it overrides each guess.
4840 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4841 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4842 # Update the cache value to reflect the command line values.
4843 ac_cv_have_x="have_x=yes \
4844 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4845 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4846 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4849 if test "$no_x" = yes; then
4850 # Not all programs may use this symbol, but it does not hurt to define it.
4852 cat >>confdefs.h <<\_ACEOF
4853 #define X_DISPLAY_MISSING 1
4856 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4858 if test -n "$x_includes"; then
4859 X_CFLAGS="$X_CFLAGS -I$x_includes"
4862 # It would also be nice to do this for all -L options, not just this one.
4863 if test -n "$x_libraries"; then
4864 X_LIBS="$X_LIBS -L$x_libraries"
4865 # For Solaris; some versions of Sun CC require a space after -R and
4866 # others require no space. Words are not sufficient . . . .
4867 case `(uname -sr) 2>/dev/null` in
4869 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4870 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4871 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4872 cat >conftest.$ac_ext <<_ACEOF
4873 #line $LINENO "configure"
4874 #include "confdefs.h"
4876 #ifdef F77_DUMMY_MAIN
4880 int F77_DUMMY_MAIN() { return 1; }
4890 rm -f conftest.$ac_objext conftest$ac_exeext
4891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4892 (eval $ac_link) 2>&5
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); } &&
4896 { ac_try='test -s conftest$ac_exeext'
4897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }; }; then
4904 echo "$as_me: failed program was:" >&5
4905 cat conftest.$ac_ext >&5
4908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4909 if test $ac_R_nospace = yes; then
4910 echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6
4912 X_LIBS="$X_LIBS -R$x_libraries"
4914 LIBS="$ac_xsave_LIBS -R $x_libraries"
4915 cat >conftest.$ac_ext <<_ACEOF
4916 #line $LINENO "configure"
4917 #include "confdefs.h"
4919 #ifdef F77_DUMMY_MAIN
4923 int F77_DUMMY_MAIN() { return 1; }
4933 rm -f conftest.$ac_objext conftest$ac_exeext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4935 (eval $ac_link) 2>&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try='test -s conftest$ac_exeext'
4940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); }; }; then
4947 echo "$as_me: failed program was:" >&5
4948 cat conftest.$ac_ext >&5
4951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4952 if test $ac_R_space = yes; then
4953 echo "$as_me:$LINENO: result: yes" >&5
4954 echo "${ECHO_T}yes" >&6
4955 X_LIBS="$X_LIBS -R $x_libraries"
4957 echo "$as_me:$LINENO: result: neither works" >&5
4958 echo "${ECHO_T}neither works" >&6
4965 # Check for system-dependent libraries X programs must link with.
4966 # Do this before checking for the system-independent R6 libraries
4967 # (-lICE), since we may need -lsocket or whatever for X linking.
4969 if test "$ISC" = yes; then
4970 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4972 # Martyn Johnson says this is needed for Ultrix, if the X
4973 # libraries were built with DECnet support. And Karl Berry says
4974 # the Alpha needs dnet_stub (dnet does not exist).
4975 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4976 cat >conftest.$ac_ext <<_ACEOF
4977 #line $LINENO "configure"
4978 #include "confdefs.h"
4980 /* Override any gcc2 internal prototype to avoid an error. */
4984 /* We use char because int might match the return type of a gcc2
4985 builtin and then its argument prototype would still apply. */
4986 char XOpenDisplay ();
4987 #ifdef F77_DUMMY_MAIN
4991 int F77_DUMMY_MAIN() { return 1; }
5001 rm -f conftest.$ac_objext conftest$ac_exeext
5002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5003 (eval $ac_link) 2>&5
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try='test -s conftest$ac_exeext'
5008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; }; then
5015 echo "$as_me: failed program was:" >&5
5016 cat conftest.$ac_ext >&5
5017 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5018 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5019 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 ac_check_lib_save_LIBS=$LIBS
5024 cat >conftest.$ac_ext <<_ACEOF
5025 #line $LINENO "configure"
5026 #include "confdefs.h"
5028 /* Override any gcc2 internal prototype to avoid an error. */
5032 /* We use char because int might match the return type of a gcc2
5033 builtin and then its argument prototype would still apply. */
5035 #ifdef F77_DUMMY_MAIN
5039 int F77_DUMMY_MAIN() { return 1; }
5049 rm -f conftest.$ac_objext conftest$ac_exeext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5051 (eval $ac_link) 2>&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } &&
5055 { ac_try='test -s conftest$ac_exeext'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; }; then
5061 ac_cv_lib_dnet_dnet_ntoa=yes
5063 echo "$as_me: failed program was:" >&5
5064 cat conftest.$ac_ext >&5
5065 ac_cv_lib_dnet_dnet_ntoa=no
5067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5068 LIBS=$ac_check_lib_save_LIBS
5070 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5071 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5072 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5073 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5076 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5077 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5078 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5079 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 ac_check_lib_save_LIBS=$LIBS
5083 LIBS="-ldnet_stub $LIBS"
5084 cat >conftest.$ac_ext <<_ACEOF
5085 #line $LINENO "configure"
5086 #include "confdefs.h"
5088 /* Override any gcc2 internal prototype to avoid an error. */
5092 /* We use char because int might match the return type of a gcc2
5093 builtin and then its argument prototype would still apply. */
5095 #ifdef F77_DUMMY_MAIN
5099 int F77_DUMMY_MAIN() { return 1; }
5109 rm -f conftest.$ac_objext conftest$ac_exeext
5110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5111 (eval $ac_link) 2>&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } &&
5115 { ac_try='test -s conftest$ac_exeext'
5116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); }; }; then
5121 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5123 echo "$as_me: failed program was:" >&5
5124 cat conftest.$ac_ext >&5
5125 ac_cv_lib_dnet_stub_dnet_ntoa=no
5127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5128 LIBS=$ac_check_lib_save_LIBS
5130 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5131 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5132 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5133 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5139 LIBS="$ac_xsave_LIBS"
5141 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5142 # to get the SysV transport functions.
5143 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5145 # The nsl library prevents programs from opening the X display
5146 # on Irix 5.2, according to T.E. Dickey.
5147 # The functions gethostbyname, getservbyname, and inet_addr are
5148 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5149 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5150 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5151 if test "${ac_cv_func_gethostbyname+set}" = set; then
5152 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 cat >conftest.$ac_ext <<_ACEOF
5155 #line $LINENO "configure"
5156 #include "confdefs.h"
5157 /* System header to define __stub macros and hopefully few prototypes,
5158 which can conflict with char gethostbyname (); below. */
5160 /* Override any gcc2 internal prototype to avoid an error. */
5164 /* We use char because int might match the return type of a gcc2
5165 builtin and then its argument prototype would still apply. */
5166 char gethostbyname ();
5169 #ifdef F77_DUMMY_MAIN
5173 int F77_DUMMY_MAIN() { return 1; }
5178 /* The GNU C library defines this for functions which it implements
5179 to always fail with ENOSYS. Some functions are actually named
5180 something starting with __ and the normal name is an alias. */
5181 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5191 rm -f conftest.$ac_objext conftest$ac_exeext
5192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5193 (eval $ac_link) 2>&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } &&
5197 { ac_try='test -s conftest$ac_exeext'
5198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }; }; then
5203 ac_cv_func_gethostbyname=yes
5205 echo "$as_me: failed program was:" >&5
5206 cat conftest.$ac_ext >&5
5207 ac_cv_func_gethostbyname=no
5209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5211 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5212 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5214 if test $ac_cv_func_gethostbyname = no; then
5215 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5216 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5217 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 ac_check_lib_save_LIBS=$LIBS
5222 cat >conftest.$ac_ext <<_ACEOF
5223 #line $LINENO "configure"
5224 #include "confdefs.h"
5226 /* Override any gcc2 internal prototype to avoid an error. */
5230 /* We use char because int might match the return type of a gcc2
5231 builtin and then its argument prototype would still apply. */
5232 char gethostbyname ();
5233 #ifdef F77_DUMMY_MAIN
5237 int F77_DUMMY_MAIN() { return 1; }
5247 rm -f conftest.$ac_objext conftest$ac_exeext
5248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5249 (eval $ac_link) 2>&5
5251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } &&
5253 { ac_try='test -s conftest$ac_exeext'
5254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }; }; then
5259 ac_cv_lib_nsl_gethostbyname=yes
5261 echo "$as_me: failed program was:" >&5
5262 cat conftest.$ac_ext >&5
5263 ac_cv_lib_nsl_gethostbyname=no
5265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5266 LIBS=$ac_check_lib_save_LIBS
5268 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5269 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5270 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5271 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5274 if test $ac_cv_lib_nsl_gethostbyname = no; then
5275 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5276 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5277 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 ac_check_lib_save_LIBS=$LIBS
5282 cat >conftest.$ac_ext <<_ACEOF
5283 #line $LINENO "configure"
5284 #include "confdefs.h"
5286 /* Override any gcc2 internal prototype to avoid an error. */
5290 /* We use char because int might match the return type of a gcc2
5291 builtin and then its argument prototype would still apply. */
5292 char gethostbyname ();
5293 #ifdef F77_DUMMY_MAIN
5297 int F77_DUMMY_MAIN() { return 1; }
5307 rm -f conftest.$ac_objext conftest$ac_exeext
5308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5309 (eval $ac_link) 2>&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } &&
5313 { ac_try='test -s conftest$ac_exeext'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5319 ac_cv_lib_bsd_gethostbyname=yes
5321 echo "$as_me: failed program was:" >&5
5322 cat conftest.$ac_ext >&5
5323 ac_cv_lib_bsd_gethostbyname=no
5325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5326 LIBS=$ac_check_lib_save_LIBS
5328 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5329 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5330 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5331 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5337 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5338 # socket/setsockopt and other routines are undefined under SCO ODT
5339 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5340 # on later versions), says Simon Leinen: it contains gethostby*
5341 # variants that don't use the nameserver (or something). -lsocket
5342 # must be given before -lnsl if both are needed. We assume that
5343 # if connect needs -lnsl, so does gethostbyname.
5344 echo "$as_me:$LINENO: checking for connect" >&5
5345 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5346 if test "${ac_cv_func_connect+set}" = set; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5349 cat >conftest.$ac_ext <<_ACEOF
5350 #line $LINENO "configure"
5351 #include "confdefs.h"
5352 /* System header to define __stub macros and hopefully few prototypes,
5353 which can conflict with char connect (); below. */
5355 /* Override any gcc2 internal prototype to avoid an error. */
5359 /* We use char because int might match the return type of a gcc2
5360 builtin and then its argument prototype would still apply. */
5364 #ifdef F77_DUMMY_MAIN
5368 int F77_DUMMY_MAIN() { return 1; }
5373 /* The GNU C library defines this for functions which it implements
5374 to always fail with ENOSYS. Some functions are actually named
5375 something starting with __ and the normal name is an alias. */
5376 #if defined (__stub_connect) || defined (__stub___connect)
5386 rm -f conftest.$ac_objext conftest$ac_exeext
5387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5388 (eval $ac_link) 2>&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } &&
5392 { ac_try='test -s conftest$ac_exeext'
5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }; }; then
5398 ac_cv_func_connect=yes
5400 echo "$as_me: failed program was:" >&5
5401 cat conftest.$ac_ext >&5
5402 ac_cv_func_connect=no
5404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5406 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5407 echo "${ECHO_T}$ac_cv_func_connect" >&6
5409 if test $ac_cv_func_connect = no; then
5410 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5411 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5412 if test "${ac_cv_lib_socket_connect+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 ac_check_lib_save_LIBS=$LIBS
5416 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5417 cat >conftest.$ac_ext <<_ACEOF
5418 #line $LINENO "configure"
5419 #include "confdefs.h"
5421 /* Override any gcc2 internal prototype to avoid an error. */
5425 /* We use char because int might match the return type of a gcc2
5426 builtin and then its argument prototype would still apply. */
5428 #ifdef F77_DUMMY_MAIN
5432 int F77_DUMMY_MAIN() { return 1; }
5442 rm -f conftest.$ac_objext conftest$ac_exeext
5443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5444 (eval $ac_link) 2>&5
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); } &&
5448 { ac_try='test -s conftest$ac_exeext'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; }; then
5454 ac_cv_lib_socket_connect=yes
5456 echo "$as_me: failed program was:" >&5
5457 cat conftest.$ac_ext >&5
5458 ac_cv_lib_socket_connect=no
5460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5461 LIBS=$ac_check_lib_save_LIBS
5463 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5464 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5465 if test $ac_cv_lib_socket_connect = yes; then
5466 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5471 # Guillermo Gomez says -lposix is necessary on A/UX.
5472 echo "$as_me:$LINENO: checking for remove" >&5
5473 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5474 if test "${ac_cv_func_remove+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 cat >conftest.$ac_ext <<_ACEOF
5478 #line $LINENO "configure"
5479 #include "confdefs.h"
5480 /* System header to define __stub macros and hopefully few prototypes,
5481 which can conflict with char remove (); below. */
5483 /* Override any gcc2 internal prototype to avoid an error. */
5487 /* We use char because int might match the return type of a gcc2
5488 builtin and then its argument prototype would still apply. */
5492 #ifdef F77_DUMMY_MAIN
5496 int F77_DUMMY_MAIN() { return 1; }
5501 /* The GNU C library defines this for functions which it implements
5502 to always fail with ENOSYS. Some functions are actually named
5503 something starting with __ and the normal name is an alias. */
5504 #if defined (__stub_remove) || defined (__stub___remove)
5514 rm -f conftest.$ac_objext conftest$ac_exeext
5515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5516 (eval $ac_link) 2>&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } &&
5520 { ac_try='test -s conftest$ac_exeext'
5521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; }; then
5526 ac_cv_func_remove=yes
5528 echo "$as_me: failed program was:" >&5
5529 cat conftest.$ac_ext >&5
5530 ac_cv_func_remove=no
5532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5534 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5535 echo "${ECHO_T}$ac_cv_func_remove" >&6
5537 if test $ac_cv_func_remove = no; then
5538 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5539 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5540 if test "${ac_cv_lib_posix_remove+set}" = set; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 ac_check_lib_save_LIBS=$LIBS
5544 LIBS="-lposix $LIBS"
5545 cat >conftest.$ac_ext <<_ACEOF
5546 #line $LINENO "configure"
5547 #include "confdefs.h"
5549 /* Override any gcc2 internal prototype to avoid an error. */
5553 /* We use char because int might match the return type of a gcc2
5554 builtin and then its argument prototype would still apply. */
5556 #ifdef F77_DUMMY_MAIN
5560 int F77_DUMMY_MAIN() { return 1; }
5570 rm -f conftest.$ac_objext conftest$ac_exeext
5571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5572 (eval $ac_link) 2>&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } &&
5576 { ac_try='test -s conftest$ac_exeext'
5577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); }; }; then
5582 ac_cv_lib_posix_remove=yes
5584 echo "$as_me: failed program was:" >&5
5585 cat conftest.$ac_ext >&5
5586 ac_cv_lib_posix_remove=no
5588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5589 LIBS=$ac_check_lib_save_LIBS
5591 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5592 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5593 if test $ac_cv_lib_posix_remove = yes; then
5594 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5599 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5600 echo "$as_me:$LINENO: checking for shmat" >&5
5601 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5602 if test "${ac_cv_func_shmat+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 cat >conftest.$ac_ext <<_ACEOF
5606 #line $LINENO "configure"
5607 #include "confdefs.h"
5608 /* System header to define __stub macros and hopefully few prototypes,
5609 which can conflict with char shmat (); below. */
5611 /* Override any gcc2 internal prototype to avoid an error. */
5615 /* We use char because int might match the return type of a gcc2
5616 builtin and then its argument prototype would still apply. */
5620 #ifdef F77_DUMMY_MAIN
5624 int F77_DUMMY_MAIN() { return 1; }
5629 /* The GNU C library defines this for functions which it implements
5630 to always fail with ENOSYS. Some functions are actually named
5631 something starting with __ and the normal name is an alias. */
5632 #if defined (__stub_shmat) || defined (__stub___shmat)
5642 rm -f conftest.$ac_objext conftest$ac_exeext
5643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5644 (eval $ac_link) 2>&5
5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647 (exit $ac_status); } &&
5648 { ac_try='test -s conftest$ac_exeext'
5649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5654 ac_cv_func_shmat=yes
5656 echo "$as_me: failed program was:" >&5
5657 cat conftest.$ac_ext >&5
5660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5662 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5663 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5665 if test $ac_cv_func_shmat = no; then
5666 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5667 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5668 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 ac_check_lib_save_LIBS=$LIBS
5673 cat >conftest.$ac_ext <<_ACEOF
5674 #line $LINENO "configure"
5675 #include "confdefs.h"
5677 /* Override any gcc2 internal prototype to avoid an error. */
5681 /* We use char because int might match the return type of a gcc2
5682 builtin and then its argument prototype would still apply. */
5684 #ifdef F77_DUMMY_MAIN
5688 int F77_DUMMY_MAIN() { return 1; }
5698 rm -f conftest.$ac_objext conftest$ac_exeext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700 (eval $ac_link) 2>&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } &&
5704 { ac_try='test -s conftest$ac_exeext'
5705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; }; then
5710 ac_cv_lib_ipc_shmat=yes
5712 echo "$as_me: failed program was:" >&5
5713 cat conftest.$ac_ext >&5
5714 ac_cv_lib_ipc_shmat=no
5716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5717 LIBS=$ac_check_lib_save_LIBS
5719 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5720 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5721 if test $ac_cv_lib_ipc_shmat = yes; then
5722 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5728 # Check for libraries that X11R6 Xt/Xaw programs need.
5729 ac_save_LDFLAGS=$LDFLAGS
5730 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5731 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5732 # check for ICE first), but we must link in the order -lSM -lICE or
5733 # we get undefined symbols. So assume we have SM if we have ICE.
5734 # These have to be linked with before -lX11, unlike the other
5735 # libraries we check for below, so use a different variable.
5736 # John Interrante, Karl Berry
5737 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5738 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5739 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 ac_check_lib_save_LIBS=$LIBS
5743 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5744 cat >conftest.$ac_ext <<_ACEOF
5745 #line $LINENO "configure"
5746 #include "confdefs.h"
5748 /* Override any gcc2 internal prototype to avoid an error. */
5752 /* We use char because int might match the return type of a gcc2
5753 builtin and then its argument prototype would still apply. */
5754 char IceConnectionNumber ();
5755 #ifdef F77_DUMMY_MAIN
5759 int F77_DUMMY_MAIN() { return 1; }
5764 IceConnectionNumber ();
5769 rm -f conftest.$ac_objext conftest$ac_exeext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5771 (eval $ac_link) 2>&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try='test -s conftest$ac_exeext'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 ac_cv_lib_ICE_IceConnectionNumber=yes
5783 echo "$as_me: failed program was:" >&5
5784 cat conftest.$ac_ext >&5
5785 ac_cv_lib_ICE_IceConnectionNumber=no
5787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5788 LIBS=$ac_check_lib_save_LIBS
5790 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5791 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5792 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5793 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5796 LDFLAGS=$ac_save_LDFLAGS
5801 if test "$have_x" != yes; then
5802 { { echo "$as_me:$LINENO: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&5
5803 echo "$as_me: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&2;}
5804 { (exit 1); exit 1; }; }
5808 echo "$as_me:$LINENO: checking for X app-defaults directory" >&5
5809 echo $ECHO_N "checking for X app-defaults directory... $ECHO_C" >&6
5810 if test "${ac_cv_x_app_defaults+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 if mkdir conftestdir; then
5816 cd conftestdir 2>/dev/null
5817 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5818 cat > Imakefile <<'EOF'
5820 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
5822 if (xmkmf) >/dev/null 2>&1 && test -f Makefile; then
5823 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
5824 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5829 if test x"$ac_x_app_defaults" = x; then
5831 # Look for the directory under a standard set of common directories.
5832 # Check X11 before X11Rn because it's often a symlink to the current release.
5834 /usr/X11/lib/app-defaults \
5835 /usr/X11R6/lib/app-defaults \
5836 /usr/X11R6/lib/X11/app-defaults \
5837 /usr/X11R5/lib/app-defaults \
5838 /usr/X11R5/lib/X11/app-defaults \
5839 /usr/X11R4/lib/app-defaults \
5840 /usr/X11R4/lib/X11/app-defaults \
5842 /usr/lib/X11/app-defaults \
5843 /usr/lib/X11R6/app-defaults \
5844 /usr/lib/X11R5/app-defaults \
5845 /usr/lib/X11R4/app-defaults \
5847 /usr/local/X11/lib/app-defaults \
5848 /usr/local/X11R6/lib/app-defaults \
5849 /usr/local/X11R5/lib/app-defaults \
5850 /usr/local/X11R4/lib/app-defaults \
5852 /usr/local/lib/X11/app-defaults \
5853 /usr/local/lib/X11R6/app-defaults \
5854 /usr/local/lib/X11R6/X11/app-defaults \
5855 /usr/local/lib/X11R5/app-defaults \
5856 /usr/local/lib/X11R5/X11/app-defaults \
5857 /usr/local/lib/X11R4/app-defaults \
5858 /usr/local/lib/X11R4/X11/app-defaults \
5860 /usr/X386/lib/X11/app-defaults \
5861 /usr/x386/lib/X11/app-defaults \
5862 /usr/XFree86/lib/X11/app-defaults \
5864 /usr/lib/X11/app-defaults \
5865 /usr/local/lib/X11/app-defaults \
5866 /usr/unsupported/lib/X11/app-defaults \
5867 /usr/athena/lib/X11/app-defaults \
5868 /usr/local/x11r5/lib/X11/app-defaults \
5869 /usr/lpp/Xamples/lib/X11/app-defaults \
5870 /lib/usr/lib/X11/app-defaults \
5872 /usr/openwin/lib/app-defaults \
5873 /usr/openwin/lib/X11/app-defaults \
5874 /usr/openwin/share/lib/app-defaults \
5875 /usr/openwin/share/lib/X11/app-defaults \
5877 /X11R6/lib/app-defaults \
5878 /X11R5/lib/app-defaults \
5879 /X11R4/lib/app-defaults \
5882 if test -d "$ac_dir"; then
5883 ac_x_app_defaults=$ac_dir
5889 if test x"$ac_x_app_defaults" = x; then
5890 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
5892 # Record where we found app-defaults for the cache.
5893 ac_cv_x_app_defaults="$ac_x_app_defaults"
5896 echo "$as_me:$LINENO: result: $ac_cv_x_app_defaults" >&5
5897 echo "${ECHO_T}$ac_cv_x_app_defaults" >&6
5898 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
5902 # The following arcana was gleaned from conversations with
5903 # Eric Schwartz <erics@col.hp.com>:
5905 # On HPUX 10.x, the parts of X that HP considers "standard" live in
5906 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
5907 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
5908 # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
5909 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
5910 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
5911 # you don't need any -I or -L arguments.
5913 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
5914 # are the same division as 10.x. However, there are no symlinks to
5915 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
5916 # arguments are always necessary.
5918 # However, X11R6 was available on HPUX 9.x as a patch: if that
5919 # patch was installed, then all of X11R6 went in to
5920 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
5922 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
5923 # whether R5 was available as a patch; R6 undoubtedly was not.)
5925 # So. We try and use the highest numbered pair of
5926 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
5927 # that are available. We do not mix and match different versions
5930 # Question I still don't know the answer to: (do you?)
5932 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
5933 # /usr/contrib/X11R6/ could be installed as a patch, what was in
5934 # that contrib directory? Did it contain so-called "standard"
5935 # X11R6, or did it include Xaw and Xmu as well? If the former,
5936 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
5937 # be a situation where one had to reach into the R5 headers and
5938 # libs to find Xmu? That is, must both R6 and R5 directories
5939 # be on the -I and -L lists in that case?
5941 for version in X11R6 X11R5 X11R4 ; do
5942 # if either pair of directories exists...
5943 if test -d /usr/include/$version || test -d /usr/contrib/$version/include
5945 # if contrib exists, use it...
5946 if test -d /usr/contrib/$version/include ; then
5947 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
5948 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
5950 # if the "standard" one exists, use it.
5951 if test -d /usr/include/$version ; then
5952 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
5953 X_LIBS="$X_LIBS -L/usr/lib/$version"
5955 # since at least one of the pair exists, go no farther.
5960 # Now find Motif. Thanks for not making xmkmf find this by
5961 # default, you losers.
5963 if test -d /usr/include/Motif2.1 ; then
5964 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
5965 X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
5966 elif test -d /usr/include/Motif1.2 ; then
5967 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
5968 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
5969 elif test -d /usr/include/Motif1.1 ; then
5970 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
5971 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
5974 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
5976 if test -d /opt/graphics/OpenGL/include ; then
5977 # HP-UX 10.20 puts it here
5978 X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
5979 X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
5980 elif test -d /opt/Mesa/lib ; then
5981 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
5982 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
5986 if test -d /opt/xpm/lib/X11 ; then
5987 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
5988 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
5991 # On HPUX, default to installing in /opt/xscreensaver/ instead of
5992 # in /usr/local/, unless there is already an xscreensaver in
5993 # /usr/local/bin/. This can be overridden with the --prefix arg
5994 # to configure. I'm not sure this is the right thing to do, but
5995 # Richard Lloyd says so...
5997 if test \! -x /usr/local/bin/xscreensaver ; then
5998 ac_default_prefix=/opt/xscreensaver
6004 # Thanks for not making xmkmf find this by default, pinheads.
6005 # And thanks for moving things around again, too. Is this
6006 # really the standard location now? What happened to the
6007 # joke that this kind of thing went in /opt?
6008 # cthomp says "answer: CDE (Common Disorganized Environment)"
6010 if test -f /usr/dt/include/Xm/Xm.h ; then
6011 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
6012 X_LIBS="$X_LIBS -L/usr/dt/lib -R:/usr/dt/lib"
6014 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
6015 echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
6016 echo $ECHO_N "checking for regcmp in -lgen... $ECHO_C" >&6
6017 if test "${ac_cv_lib_gen_regcmp+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 ac_check_lib_save_LIBS=$LIBS
6022 cat >conftest.$ac_ext <<_ACEOF
6023 #line $LINENO "configure"
6024 #include "confdefs.h"
6026 /* Override any gcc2 internal prototype to avoid an error. */
6030 /* We use char because int might match the return type of a gcc2
6031 builtin and then its argument prototype would still apply. */
6033 #ifdef F77_DUMMY_MAIN
6037 int F77_DUMMY_MAIN() { return 1; }
6047 rm -f conftest.$ac_objext conftest$ac_exeext
6048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6049 (eval $ac_link) 2>&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } &&
6053 { ac_try='test -s conftest$ac_exeext'
6054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; }; then
6059 ac_cv_lib_gen_regcmp=yes
6061 echo "$as_me: failed program was:" >&5
6062 cat conftest.$ac_ext >&5
6063 ac_cv_lib_gen_regcmp=no
6065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6066 LIBS=$ac_check_lib_save_LIBS
6068 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5
6069 echo "${ECHO_T}$ac_cv_lib_gen_regcmp" >&6
6070 if test $ac_cv_lib_gen_regcmp = yes; then
6071 X_LIBS="$X_LIBS -lgen"
6077 echo "$as_me:$LINENO: checking for XPointer" >&5
6078 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
6079 if test "${ac_cv_xpointer+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 ac_save_CPPFLAGS="$CPPFLAGS"
6084 if test \! -z "$includedir" ; then
6085 CPPFLAGS="$CPPFLAGS -I$includedir"
6087 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6088 cat >conftest.$ac_ext <<_ACEOF
6089 #line $LINENO "configure"
6090 #include "confdefs.h"
6091 #include <X11/Xlib.h>
6092 #ifdef F77_DUMMY_MAIN
6096 int F77_DUMMY_MAIN() { return 1; }
6101 XPointer foo = (XPointer) 0;
6106 rm -f conftest.$ac_objext
6107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6108 (eval $ac_compile) 2>&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } &&
6112 { ac_try='test -s conftest.$ac_objext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6120 echo "$as_me: failed program was:" >&5
6121 cat conftest.$ac_ext >&5
6124 rm -f conftest.$ac_objext conftest.$ac_ext
6125 CPPFLAGS="$ac_save_CPPFLAGS"
6127 echo "$as_me:$LINENO: result: $ac_cv_xpointer" >&5
6128 echo "${ECHO_T}$ac_cv_xpointer" >&6
6129 if test "$ac_cv_xpointer" != yes; then
6130 cat >>confdefs.h <<\_ACEOF
6131 #define XPointer char*
6137 ###############################################################################
6141 ###############################################################################
6146 echo "$as_me:$LINENO: checking for intltool >= " >&5
6147 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
6149 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
6150 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < intltool-update.in`
6152 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < intltool-update.in`
6155 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
6156 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
6157 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
6159 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5
6160 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6
6165 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'
6166 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'
6167 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'
6168 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
6169 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'
6170 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'
6171 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'
6172 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'
6173 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'
6174 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'
6175 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'
6189 # Use the tools built into the package, not the ones that are installed.
6191 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
6192 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
6193 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
6199 # Extract the first word of "perl", so it can be a program name with args.
6200 set dummy perl; ac_word=$2
6201 echo "$as_me:$LINENO: checking for $ac_word" >&5
6202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6203 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6206 case $INTLTOOL_PERL in
6208 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6218 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
6219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
6230 if test -n "$INTLTOOL_PERL"; then
6231 echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
6232 echo "${ECHO_T}$INTLTOOL_PERL" >&6
6234 echo "$as_me:$LINENO: result: no" >&5
6235 echo "${ECHO_T}no" >&6
6238 if test -z "$INTLTOOL_PERL"; then
6239 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
6240 echo "$as_me: error: perl not found; required for intltool" >&2;}
6241 { (exit 1); exit 1; }; }
6243 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
6244 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
6245 echo "$as_me: error: perl 5.x required for intltool" >&2;}
6246 { (exit 1); exit 1; }; }
6249 # Remove file type tags (using []) from po/POTFILES.
6257 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
6259 ac_config_commands="$ac_config_commands default-1"
6263 GETTEXT_PACKAGE=xscreensaver
6264 cat >>confdefs.h <<_ACEOF
6265 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
6268 cat >>confdefs.h <<_ACEOF
6269 #define PACKAGE "$GETTEXT_PACKAGE"
6274 ALL_LINGUAS="ca de et fr it ko pl pt sv da es fi hu ja no pt pt_BR ru wa"
6275 if test -n "$ac_tool_prefix"; then
6276 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6277 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6278 echo "$as_me:$LINENO: checking for $ac_word" >&5
6279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6280 if test "${ac_cv_prog_RANLIB+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 if test -n "$RANLIB"; then
6284 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 test -z "$as_dir" && as_dir=.
6291 for ac_exec_ext in '' $ac_executable_extensions; do
6292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6293 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 RANLIB=$ac_cv_prog_RANLIB
6303 if test -n "$RANLIB"; then
6304 echo "$as_me:$LINENO: result: $RANLIB" >&5
6305 echo "${ECHO_T}$RANLIB" >&6
6307 echo "$as_me:$LINENO: result: no" >&5
6308 echo "${ECHO_T}no" >&6
6312 if test -z "$ac_cv_prog_RANLIB"; then
6313 ac_ct_RANLIB=$RANLIB
6314 # Extract the first word of "ranlib", so it can be a program name with args.
6315 set dummy ranlib; ac_word=$2
6316 echo "$as_me:$LINENO: checking for $ac_word" >&5
6317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6318 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 if test -n "$ac_ct_RANLIB"; then
6322 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6331 ac_cv_prog_ac_ct_RANLIB="ranlib"
6332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6341 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6342 if test -n "$ac_ct_RANLIB"; then
6343 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6344 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6346 echo "$as_me:$LINENO: result: no" >&5
6347 echo "${ECHO_T}no" >&6
6350 RANLIB=$ac_ct_RANLIB
6352 RANLIB="$ac_cv_prog_RANLIB"
6355 echo "$as_me:$LINENO: checking for off_t" >&5
6356 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6357 if test "${ac_cv_type_off_t+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 cat >conftest.$ac_ext <<_ACEOF
6361 #line $LINENO "configure"
6362 #include "confdefs.h"
6363 $ac_includes_default
6364 #ifdef F77_DUMMY_MAIN
6368 int F77_DUMMY_MAIN() { return 1; }
6381 rm -f conftest.$ac_objext
6382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6383 (eval $ac_compile) 2>&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } &&
6387 { ac_try='test -s conftest.$ac_objext'
6388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; }; then
6393 ac_cv_type_off_t=yes
6395 echo "$as_me: failed program was:" >&5
6396 cat conftest.$ac_ext >&5
6399 rm -f conftest.$ac_objext conftest.$ac_ext
6401 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6402 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6403 if test $ac_cv_type_off_t = yes; then
6407 cat >>confdefs.h <<_ACEOF
6413 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6414 # for constant arguments. Useless!
6415 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6416 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6417 if test "${ac_cv_working_alloca_h+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 cat >conftest.$ac_ext <<_ACEOF
6421 #line $LINENO "configure"
6422 #include "confdefs.h"
6424 #ifdef F77_DUMMY_MAIN
6428 int F77_DUMMY_MAIN() { return 1; }
6433 char *p = (char *) alloca (2 * sizeof (int));
6438 rm -f conftest.$ac_objext conftest$ac_exeext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6440 (eval $ac_link) 2>&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } &&
6444 { ac_try='test -s conftest$ac_exeext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_cv_working_alloca_h=yes
6452 echo "$as_me: failed program was:" >&5
6453 cat conftest.$ac_ext >&5
6454 ac_cv_working_alloca_h=no
6456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6458 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6459 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6460 if test $ac_cv_working_alloca_h = yes; then
6462 cat >>confdefs.h <<\_ACEOF
6463 #define HAVE_ALLOCA_H 1
6468 echo "$as_me:$LINENO: checking for alloca" >&5
6469 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6470 if test "${ac_cv_func_alloca_works+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 cat >conftest.$ac_ext <<_ACEOF
6474 #line $LINENO "configure"
6475 #include "confdefs.h"
6477 # define alloca __builtin_alloca
6480 # include <malloc.h>
6481 # define alloca _alloca
6484 # include <alloca.h>
6489 # ifndef alloca /* predefined by HP cc +Olibcalls */
6497 #ifdef F77_DUMMY_MAIN
6501 int F77_DUMMY_MAIN() { return 1; }
6506 char *p = (char *) alloca (1);
6511 rm -f conftest.$ac_objext conftest$ac_exeext
6512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6513 (eval $ac_link) 2>&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } &&
6517 { ac_try='test -s conftest$ac_exeext'
6518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); }; }; then
6523 ac_cv_func_alloca_works=yes
6525 echo "$as_me: failed program was:" >&5
6526 cat conftest.$ac_ext >&5
6527 ac_cv_func_alloca_works=no
6529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6531 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6532 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6534 if test $ac_cv_func_alloca_works = yes; then
6536 cat >>confdefs.h <<\_ACEOF
6537 #define HAVE_ALLOCA 1
6541 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6542 # that cause trouble. Some versions do not even contain alloca or
6543 # contain a buggy version. If you still want to use their alloca,
6544 # use ar to extract alloca.o from them instead of compiling alloca.c.
6546 ALLOCA=alloca.$ac_objext
6548 cat >>confdefs.h <<\_ACEOF
6553 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6554 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6555 if test "${ac_cv_os_cray+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 cat >conftest.$ac_ext <<_ACEOF
6559 #line $LINENO "configure"
6560 #include "confdefs.h"
6561 #if defined(CRAY) && ! defined(CRAY2)
6568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6569 egrep "webecray" >/dev/null 2>&1; then
6577 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6578 echo "${ECHO_T}$ac_cv_os_cray" >&6
6579 if test $ac_cv_os_cray = yes; then
6580 for ac_func in _getb67 GETB67 getb67; do
6581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6582 echo "$as_me:$LINENO: checking for $ac_func" >&5
6583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6584 if eval "test \"\${$as_ac_var+set}\" = set"; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 cat >conftest.$ac_ext <<_ACEOF
6588 #line $LINENO "configure"
6589 #include "confdefs.h"
6590 /* System header to define __stub macros and hopefully few prototypes,
6591 which can conflict with char $ac_func (); below. */
6593 /* Override any gcc2 internal prototype to avoid an error. */
6597 /* We use char because int might match the return type of a gcc2
6598 builtin and then its argument prototype would still apply. */
6602 #ifdef F77_DUMMY_MAIN
6606 int F77_DUMMY_MAIN() { return 1; }
6611 /* The GNU C library defines this for functions which it implements
6612 to always fail with ENOSYS. Some functions are actually named
6613 something starting with __ and the normal name is an alias. */
6614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6624 rm -f conftest.$ac_objext conftest$ac_exeext
6625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6626 (eval $ac_link) 2>&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } &&
6630 { ac_try='test -s conftest$ac_exeext'
6631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; }; then
6636 eval "$as_ac_var=yes"
6638 echo "$as_me: failed program was:" >&5
6639 cat conftest.$ac_ext >&5
6640 eval "$as_ac_var=no"
6642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6646 if test `eval echo '${'$as_ac_var'}'` = yes; then
6648 cat >>confdefs.h <<_ACEOF
6649 #define CRAY_STACKSEG_END $ac_func
6658 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6659 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6660 if test "${ac_cv_c_stack_direction+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
6663 if test "$cross_compiling" = yes; then
6664 ac_cv_c_stack_direction=0
6666 cat >conftest.$ac_ext <<_ACEOF
6667 #line $LINENO "configure"
6668 #include "confdefs.h"
6670 find_stack_direction ()
6672 static char *addr = 0;
6677 return find_stack_direction ();
6680 return (&dummy > addr) ? 1 : -1;
6686 exit (find_stack_direction () < 0);
6689 rm -f conftest$ac_exeext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6691 (eval $ac_link) 2>&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; }; then
6700 ac_cv_c_stack_direction=1
6702 echo "$as_me: program exited with status $ac_status" >&5
6703 echo "$as_me: failed program was:" >&5
6704 cat conftest.$ac_ext >&5
6706 ac_cv_c_stack_direction=-1
6708 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6711 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6712 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6714 cat >>confdefs.h <<_ACEOF
6715 #define STACK_DIRECTION $ac_cv_c_stack_direction
6723 for ac_header in stdlib.h unistd.h
6725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6727 echo "$as_me:$LINENO: checking for $ac_header" >&5
6728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6735 # Is the header compilable?
6736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6738 cat >conftest.$ac_ext <<_ACEOF
6739 #line $LINENO "configure"
6740 #include "confdefs.h"
6741 $ac_includes_default
6742 #include <$ac_header>
6744 rm -f conftest.$ac_objext
6745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6746 (eval $ac_compile) 2>&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } &&
6750 { ac_try='test -s conftest.$ac_objext'
6751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755 (exit $ac_status); }; }; then
6756 ac_header_compiler=yes
6758 echo "$as_me: failed program was:" >&5
6759 cat conftest.$ac_ext >&5
6760 ac_header_compiler=no
6762 rm -f conftest.$ac_objext conftest.$ac_ext
6763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6764 echo "${ECHO_T}$ac_header_compiler" >&6
6766 # Is the header present?
6767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6769 cat >conftest.$ac_ext <<_ACEOF
6770 #line $LINENO "configure"
6771 #include "confdefs.h"
6772 #include <$ac_header>
6774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6777 egrep -v '^ *\+' conftest.er1 >conftest.err
6779 cat conftest.err >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } >/dev/null; then
6782 if test -s conftest.err; then
6783 ac_cpp_err=$ac_c_preproc_warn_flag
6790 if test -z "$ac_cpp_err"; then
6791 ac_header_preproc=yes
6793 echo "$as_me: failed program was:" >&5
6794 cat conftest.$ac_ext >&5
6795 ac_header_preproc=no
6797 rm -f conftest.err conftest.$ac_ext
6798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6799 echo "${ECHO_T}$ac_header_preproc" >&6
6801 # So? What about this header?
6802 case $ac_header_compiler:$ac_header_preproc in
6804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6816 echo "$as_me:$LINENO: checking for $ac_header" >&5
6817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 eval "$as_ac_Header=$ac_header_preproc"
6823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6828 cat >>confdefs.h <<_ACEOF
6829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6837 for ac_func in getpagesize
6839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6840 echo "$as_me:$LINENO: checking for $ac_func" >&5
6841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6842 if eval "test \"\${$as_ac_var+set}\" = set"; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6845 cat >conftest.$ac_ext <<_ACEOF
6846 #line $LINENO "configure"
6847 #include "confdefs.h"
6848 /* System header to define __stub macros and hopefully few prototypes,
6849 which can conflict with char $ac_func (); below. */
6851 /* Override any gcc2 internal prototype to avoid an error. */
6855 /* We use char because int might match the return type of a gcc2
6856 builtin and then its argument prototype would still apply. */
6860 #ifdef F77_DUMMY_MAIN
6864 int F77_DUMMY_MAIN() { return 1; }
6869 /* The GNU C library defines this for functions which it implements
6870 to always fail with ENOSYS. Some functions are actually named
6871 something starting with __ and the normal name is an alias. */
6872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6882 rm -f conftest.$ac_objext conftest$ac_exeext
6883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6884 (eval $ac_link) 2>&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } &&
6888 { ac_try='test -s conftest$ac_exeext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 eval "$as_ac_var=yes"
6896 echo "$as_me: failed program was:" >&5
6897 cat conftest.$ac_ext >&5
6898 eval "$as_ac_var=no"
6900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6904 if test `eval echo '${'$as_ac_var'}'` = yes; then
6905 cat >>confdefs.h <<_ACEOF
6906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6912 echo "$as_me:$LINENO: checking for working mmap" >&5
6913 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6914 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6917 if test "$cross_compiling" = yes; then
6918 ac_cv_func_mmap_fixed_mapped=no
6920 cat >conftest.$ac_ext <<_ACEOF
6921 #line $LINENO "configure"
6922 #include "confdefs.h"
6923 $ac_includes_default
6924 /* malloc might have been renamed as rpl_malloc. */
6927 /* Thanks to Mike Haertel and Jim Avera for this test.
6928 Here is a matrix of mmap possibilities:
6929 mmap private not fixed
6930 mmap private fixed at somewhere currently unmapped
6931 mmap private fixed at somewhere already mapped
6932 mmap shared not fixed
6933 mmap shared fixed at somewhere currently unmapped
6934 mmap shared fixed at somewhere already mapped
6935 For private mappings, we should verify that changes cannot be read()
6936 back from the file, nor mmap's back from the file at a different
6937 address. (There have been systems where private was not correctly
6938 implemented like the infamous i386 svr4.0, and systems where the
6939 VM page cache was not coherent with the file system buffer cache
6940 like early versions of FreeBSD and possibly contemporary NetBSD.)
6941 For shared mappings, we should conversely verify that changes get
6942 propagated back to all the places they're supposed to be.
6944 Grep wants private fixed already mapped.
6945 The main things grep needs to know about mmap are:
6946 * does it exist and is it safe to write into the mmap'd area
6947 * how to use it (BSD variants) */
6950 #include <sys/mman.h>
6952 #if !STDC_HEADERS && !HAVE_STDLIB_H
6956 /* This mess was copied from the GNU getpagesize.h. */
6957 #if !HAVE_GETPAGESIZE
6958 /* Assume that all systems that can run configure have sys/param.h. */
6959 # if !HAVE_SYS_PARAM_H
6960 # define HAVE_SYS_PARAM_H 1
6963 # ifdef _SC_PAGESIZE
6964 # define getpagesize() sysconf(_SC_PAGESIZE)
6965 # else /* no _SC_PAGESIZE */
6966 # if HAVE_SYS_PARAM_H
6967 # include <sys/param.h>
6968 # ifdef EXEC_PAGESIZE
6969 # define getpagesize() EXEC_PAGESIZE
6970 # else /* no EXEC_PAGESIZE */
6972 # define getpagesize() NBPG * CLSIZE
6975 # endif /* no CLSIZE */
6976 # else /* no NBPG */
6978 # define getpagesize() NBPC
6979 # else /* no NBPC */
6981 # define getpagesize() PAGESIZE
6982 # endif /* PAGESIZE */
6983 # endif /* no NBPC */
6984 # endif /* no NBPG */
6985 # endif /* no EXEC_PAGESIZE */
6986 # else /* no HAVE_SYS_PARAM_H */
6987 # define getpagesize() 8192 /* punt totally */
6988 # endif /* no HAVE_SYS_PARAM_H */
6989 # endif /* no _SC_PAGESIZE */
6991 #endif /* no HAVE_GETPAGESIZE */
6996 char *data, *data2, *data3;
7000 pagesize = getpagesize ();
7002 /* First, make a file with some known garbage in it. */
7003 data = (char *) malloc (pagesize);
7006 for (i = 0; i < pagesize; ++i)
7007 *(data + i) = rand ();
7009 fd = creat ("conftest.mmap", 0600);
7012 if (write (fd, data, pagesize) != pagesize)
7016 /* Next, try to mmap the file at a fixed address which already has
7017 something else allocated at it. If we can, also make sure that
7018 we see the same garbage. */
7019 fd = open ("conftest.mmap", O_RDWR);
7022 data2 = (char *) malloc (2 * pagesize);
7025 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7026 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7027 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7029 for (i = 0; i < pagesize; ++i)
7030 if (*(data + i) != *(data2 + i))
7033 /* Finally, make sure that changes to the mapped area do not
7034 percolate back to the file as seen by read(). (This is a bug on
7035 some variants of i386 svr4.0.) */
7036 for (i = 0; i < pagesize; ++i)
7037 *(data2 + i) = *(data2 + i) + 1;
7038 data3 = (char *) malloc (pagesize);
7041 if (read (fd, data3, pagesize) != pagesize)
7043 for (i = 0; i < pagesize; ++i)
7044 if (*(data + i) != *(data3 + i))
7050 rm -f conftest$ac_exeext
7051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7052 (eval $ac_link) 2>&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } && { ac_try='./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_func_mmap_fixed_mapped=yes
7063 echo "$as_me: program exited with status $ac_status" >&5
7064 echo "$as_me: failed program was:" >&5
7065 cat conftest.$ac_ext >&5
7067 ac_cv_func_mmap_fixed_mapped=no
7069 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7072 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7073 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7074 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7076 cat >>confdefs.h <<\_ACEOF
7092 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7093 unistd.h sys/param.h
7095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7097 echo "$as_me:$LINENO: checking for $ac_header" >&5
7098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7105 # Is the header compilable?
7106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7108 cat >conftest.$ac_ext <<_ACEOF
7109 #line $LINENO "configure"
7110 #include "confdefs.h"
7111 $ac_includes_default
7112 #include <$ac_header>
7114 rm -f conftest.$ac_objext
7115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7116 (eval $ac_compile) 2>&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); } &&
7120 { ac_try='test -s conftest.$ac_objext'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; }; then
7126 ac_header_compiler=yes
7128 echo "$as_me: failed program was:" >&5
7129 cat conftest.$ac_ext >&5
7130 ac_header_compiler=no
7132 rm -f conftest.$ac_objext conftest.$ac_ext
7133 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7134 echo "${ECHO_T}$ac_header_compiler" >&6
7136 # Is the header present?
7137 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7139 cat >conftest.$ac_ext <<_ACEOF
7140 #line $LINENO "configure"
7141 #include "confdefs.h"
7142 #include <$ac_header>
7144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7147 egrep -v '^ *\+' conftest.er1 >conftest.err
7149 cat conftest.err >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } >/dev/null; then
7152 if test -s conftest.err; then
7153 ac_cpp_err=$ac_c_preproc_warn_flag
7160 if test -z "$ac_cpp_err"; then
7161 ac_header_preproc=yes
7163 echo "$as_me: failed program was:" >&5
7164 cat conftest.$ac_ext >&5
7165 ac_header_preproc=no
7167 rm -f conftest.err conftest.$ac_ext
7168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7169 echo "${ECHO_T}$ac_header_preproc" >&6
7171 # So? What about this header?
7172 case $ac_header_compiler:$ac_header_preproc in
7174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7186 echo "$as_me:$LINENO: checking for $ac_header" >&5
7187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 eval "$as_ac_Header=$ac_header_preproc"
7193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7198 cat >>confdefs.h <<_ACEOF
7199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7217 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7218 strdup __argz_count __argz_stringify __argz_next
7220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7221 echo "$as_me:$LINENO: checking for $ac_func" >&5
7222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7223 if eval "test \"\${$as_ac_var+set}\" = set"; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 cat >conftest.$ac_ext <<_ACEOF
7227 #line $LINENO "configure"
7228 #include "confdefs.h"
7229 /* System header to define __stub macros and hopefully few prototypes,
7230 which can conflict with char $ac_func (); below. */
7232 /* Override any gcc2 internal prototype to avoid an error. */
7236 /* We use char because int might match the return type of a gcc2
7237 builtin and then its argument prototype would still apply. */
7241 #ifdef F77_DUMMY_MAIN
7245 int F77_DUMMY_MAIN() { return 1; }
7250 /* The GNU C library defines this for functions which it implements
7251 to always fail with ENOSYS. Some functions are actually named
7252 something starting with __ and the normal name is an alias. */
7253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7263 rm -f conftest.$ac_objext conftest$ac_exeext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7265 (eval $ac_link) 2>&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } &&
7269 { ac_try='test -s conftest$ac_exeext'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; }; then
7275 eval "$as_ac_var=yes"
7277 echo "$as_me: failed program was:" >&5
7278 cat conftest.$ac_ext >&5
7279 eval "$as_ac_var=no"
7281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7285 if test `eval echo '${'$as_ac_var'}'` = yes; then
7286 cat >>confdefs.h <<_ACEOF
7287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7294 if test $ac_cv_header_locale_h = yes; then
7295 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7296 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7297 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 cat >conftest.$ac_ext <<_ACEOF
7301 #line $LINENO "configure"
7302 #include "confdefs.h"
7304 #ifdef F77_DUMMY_MAIN
7308 int F77_DUMMY_MAIN() { return 1; }
7318 rm -f conftest.$ac_objext conftest$ac_exeext
7319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7320 (eval $ac_link) 2>&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } &&
7324 { ac_try='test -s conftest$ac_exeext'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; }; then
7330 am_cv_val_LC_MESSAGES=yes
7332 echo "$as_me: failed program was:" >&5
7333 cat conftest.$ac_ext >&5
7334 am_cv_val_LC_MESSAGES=no
7336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7338 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7339 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7340 if test $am_cv_val_LC_MESSAGES = yes; then
7342 cat >>confdefs.h <<\_ACEOF
7343 #define HAVE_LC_MESSAGES 1
7351 nls_cv_force_use_gnu_gettext="no"
7353 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7354 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7356 nls_cv_header_libgt=
7359 if test "${ac_cv_header_libintl_h+set}" = set; then
7360 echo "$as_me:$LINENO: checking for libintl.h" >&5
7361 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7362 if test "${ac_cv_header_libintl_h+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7366 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7368 # Is the header compilable?
7369 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7370 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7371 cat >conftest.$ac_ext <<_ACEOF
7372 #line $LINENO "configure"
7373 #include "confdefs.h"
7374 $ac_includes_default
7375 #include <libintl.h>
7377 rm -f conftest.$ac_objext
7378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7379 (eval $ac_compile) 2>&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } &&
7383 { ac_try='test -s conftest.$ac_objext'
7384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; }; then
7389 ac_header_compiler=yes
7391 echo "$as_me: failed program was:" >&5
7392 cat conftest.$ac_ext >&5
7393 ac_header_compiler=no
7395 rm -f conftest.$ac_objext conftest.$ac_ext
7396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7397 echo "${ECHO_T}$ac_header_compiler" >&6
7399 # Is the header present?
7400 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7401 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7402 cat >conftest.$ac_ext <<_ACEOF
7403 #line $LINENO "configure"
7404 #include "confdefs.h"
7405 #include <libintl.h>
7407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7410 egrep -v '^ *\+' conftest.er1 >conftest.err
7412 cat conftest.err >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); } >/dev/null; then
7415 if test -s conftest.err; then
7416 ac_cpp_err=$ac_c_preproc_warn_flag
7423 if test -z "$ac_cpp_err"; then
7424 ac_header_preproc=yes
7426 echo "$as_me: failed program was:" >&5
7427 cat conftest.$ac_ext >&5
7428 ac_header_preproc=no
7430 rm -f conftest.err conftest.$ac_ext
7431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7432 echo "${ECHO_T}$ac_header_preproc" >&6
7434 # So? What about this header?
7435 case $ac_header_compiler:$ac_header_preproc in
7437 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7438 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7439 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7440 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7442 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7443 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7444 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7445 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7446 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7447 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7449 echo "$as_me:$LINENO: checking for libintl.h" >&5
7450 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7451 if test "${ac_cv_header_libintl_h+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 ac_cv_header_libintl_h=$ac_header_preproc
7456 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7457 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7460 if test $ac_cv_header_libintl_h = yes; then
7461 echo "$as_me:$LINENO: checking for dgettext in libc" >&5
7462 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
7463 if test "${gt_cv_func_dgettext_libc+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 cat >conftest.$ac_ext <<_ACEOF
7467 #line $LINENO "configure"
7468 #include "confdefs.h"
7469 #include <libintl.h>
7470 #ifdef F77_DUMMY_MAIN
7474 int F77_DUMMY_MAIN() { return 1; }
7479 return (int) dgettext ("","")
7484 rm -f conftest.$ac_objext conftest$ac_exeext
7485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7486 (eval $ac_link) 2>&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } &&
7490 { ac_try='test -s conftest$ac_exeext'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; }; then
7496 gt_cv_func_dgettext_libc=yes
7498 echo "$as_me: failed program was:" >&5
7499 cat conftest.$ac_ext >&5
7500 gt_cv_func_dgettext_libc=no
7502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7504 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
7505 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
7507 if test "$gt_cv_func_dgettext_libc" != "yes"; then
7508 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7509 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7510 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 ac_check_lib_save_LIBS=$LIBS
7515 cat >conftest.$ac_ext <<_ACEOF
7516 #line $LINENO "configure"
7517 #include "confdefs.h"
7519 /* Override any gcc2 internal prototype to avoid an error. */
7523 /* We use char because int might match the return type of a gcc2
7524 builtin and then its argument prototype would still apply. */
7525 char bindtextdomain ();
7526 #ifdef F77_DUMMY_MAIN
7530 int F77_DUMMY_MAIN() { return 1; }
7540 rm -f conftest.$ac_objext conftest$ac_exeext
7541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7542 (eval $ac_link) 2>&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } &&
7546 { ac_try='test -s conftest$ac_exeext'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; }; then
7552 ac_cv_lib_intl_bindtextdomain=yes
7554 echo "$as_me: failed program was:" >&5
7555 cat conftest.$ac_ext >&5
7556 ac_cv_lib_intl_bindtextdomain=no
7558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7559 LIBS=$ac_check_lib_save_LIBS
7561 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7562 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7563 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7564 echo "$as_me:$LINENO: checking for dgettext in libintl" >&5
7565 echo $ECHO_N "checking for dgettext in libintl... $ECHO_C" >&6
7566 if test "${gt_cv_func_dgettext_libintl+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7569 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
7570 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
7571 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 ac_check_lib_save_LIBS=$LIBS
7576 cat >conftest.$ac_ext <<_ACEOF
7577 #line $LINENO "configure"
7578 #include "confdefs.h"
7580 /* Override any gcc2 internal prototype to avoid an error. */
7584 /* We use char because int might match the return type of a gcc2
7585 builtin and then its argument prototype would still apply. */
7587 #ifdef F77_DUMMY_MAIN
7591 int F77_DUMMY_MAIN() { return 1; }
7601 rm -f conftest.$ac_objext conftest$ac_exeext
7602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7603 (eval $ac_link) 2>&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); } &&
7607 { ac_try='test -s conftest$ac_exeext'
7608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); }; }; then
7613 ac_cv_lib_intl_dgettext=yes
7615 echo "$as_me: failed program was:" >&5
7616 cat conftest.$ac_ext >&5
7617 ac_cv_lib_intl_dgettext=no
7619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7620 LIBS=$ac_check_lib_save_LIBS
7622 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
7623 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
7624 if test $ac_cv_lib_intl_dgettext = yes; then
7625 gt_cv_func_dgettext_libintl=yes
7627 gt_cv_func_dgettext_libintl=no
7631 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libintl" >&5
7632 echo "${ECHO_T}$gt_cv_func_dgettext_libintl" >&6
7637 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
7638 LIBS="$LIBS -lintl";
7641 if test "$gt_cv_func_dgettext_libc" = "yes" \
7642 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
7644 cat >>confdefs.h <<\_ACEOF
7645 #define HAVE_GETTEXT 1
7648 # Extract the first word of "msgfmt", so it can be a program name with args.
7649 set dummy msgfmt; ac_word=$2
7650 echo "$as_me:$LINENO: checking for $ac_word" >&5
7651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7652 if test "${ac_cv_path_MSGFMT+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7661 for ac_dir in $PATH; do
7662 test -z "$ac_dir" && ac_dir=.
7663 if test -f $ac_dir/$ac_word; then
7664 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7665 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7671 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7675 MSGFMT="$ac_cv_path_MSGFMT"
7676 if test -n "$MSGFMT"; then
7677 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7678 echo "${ECHO_T}$MSGFMT" >&6
7680 echo "$as_me:$LINENO: result: no" >&5
7681 echo "${ECHO_T}no" >&6
7683 if test "$MSGFMT" != "no"; then
7685 for ac_func in dcgettext
7687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7688 echo "$as_me:$LINENO: checking for $ac_func" >&5
7689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7690 if eval "test \"\${$as_ac_var+set}\" = set"; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7693 cat >conftest.$ac_ext <<_ACEOF
7694 #line $LINENO "configure"
7695 #include "confdefs.h"
7696 /* System header to define __stub macros and hopefully few prototypes,
7697 which can conflict with char $ac_func (); below. */
7699 /* Override any gcc2 internal prototype to avoid an error. */
7703 /* We use char because int might match the return type of a gcc2
7704 builtin and then its argument prototype would still apply. */
7708 #ifdef F77_DUMMY_MAIN
7712 int F77_DUMMY_MAIN() { return 1; }
7717 /* The GNU C library defines this for functions which it implements
7718 to always fail with ENOSYS. Some functions are actually named
7719 something starting with __ and the normal name is an alias. */
7720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7730 rm -f conftest.$ac_objext conftest$ac_exeext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7732 (eval $ac_link) 2>&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try='test -s conftest$ac_exeext'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7742 eval "$as_ac_var=yes"
7744 echo "$as_me: failed program was:" >&5
7745 cat conftest.$ac_ext >&5
7746 eval "$as_ac_var=no"
7748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7752 if test `eval echo '${'$as_ac_var'}'` = yes; then
7753 cat >>confdefs.h <<_ACEOF
7754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7760 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7761 set dummy gmsgfmt; ac_word=$2
7762 echo "$as_me:$LINENO: checking for $ac_word" >&5
7763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7764 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7769 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7779 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7790 GMSGFMT=$ac_cv_path_GMSGFMT
7792 if test -n "$GMSGFMT"; then
7793 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7794 echo "${ECHO_T}$GMSGFMT" >&6
7796 echo "$as_me:$LINENO: result: no" >&5
7797 echo "${ECHO_T}no" >&6
7800 # Extract the first word of "xgettext", so it can be a program name with args.
7801 set dummy xgettext; ac_word=$2
7802 echo "$as_me:$LINENO: checking for $ac_word" >&5
7803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7804 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7813 for ac_dir in $PATH; do
7814 test -z "$ac_dir" && ac_dir=.
7815 if test -f $ac_dir/$ac_word; then
7816 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7817 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7823 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7827 XGETTEXT="$ac_cv_path_XGETTEXT"
7828 if test -n "$XGETTEXT"; then
7829 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7830 echo "${ECHO_T}$XGETTEXT" >&6
7832 echo "$as_me:$LINENO: result: no" >&5
7833 echo "${ECHO_T}no" >&6
7836 cat >conftest.$ac_ext <<_ACEOF
7837 #line $LINENO "configure"
7838 #include "confdefs.h"
7840 #ifdef F77_DUMMY_MAIN
7844 int F77_DUMMY_MAIN() { return 1; }
7849 extern int _nl_msg_cat_cntr;
7850 return _nl_msg_cat_cntr
7855 rm -f conftest.$ac_objext conftest$ac_exeext
7856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7857 (eval $ac_link) 2>&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } &&
7861 { ac_try='test -s conftest$ac_exeext'
7862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); }; }; then
7870 echo "$as_me: failed program was:" >&5
7871 cat conftest.$ac_ext >&5
7875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7880 # Added by Martin Baulig 12/15/98 for libc5 systems
7881 if test "$gt_cv_func_dgettext_libc" != "yes" \
7882 && test "$gt_cv_func_dgettext_libintl" = "yes"; then
7884 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7891 if test "$CATOBJEXT" = "NONE"; then
7892 nls_cv_use_gnu_gettext=yes
7896 if test "$nls_cv_use_gnu_gettext" != "yes"; then
7898 cat >>confdefs.h <<\_ACEOF
7899 #define ENABLE_NLS 1
7906 if test "$XGETTEXT" != ":"; then
7907 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7910 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7911 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
7916 # We need to process the po/ directory.
7919 ac_config_commands="$ac_config_commands default-2"
7922 for lang in $ALL_LINGUAS; do
7923 GMOFILES="$GMOFILES $lang.gmo"
7924 POFILES="$POFILES $lang.po"
7939 if test "x$CATOBJEXT" != "x"; then
7940 if test "x$ALL_LINGUAS" = "x"; then
7943 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7944 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7946 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7947 case "$ALL_LINGUAS" in
7948 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7951 LINGUAS=$NEW_LINGUAS
7952 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7953 echo "${ECHO_T}$LINGUAS" >&6
7956 if test -n "$LINGUAS"; then
7957 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7961 test -d po || mkdir po
7962 if test "$CATOBJEXT" = ".cat"; then
7963 if test "${ac_cv_header_linux_version_h+set}" = set; then
7964 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7965 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7966 if test "${ac_cv_header_linux_version_h+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7969 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7970 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7972 # Is the header compilable?
7973 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7974 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7975 cat >conftest.$ac_ext <<_ACEOF
7976 #line $LINENO "configure"
7977 #include "confdefs.h"
7978 $ac_includes_default
7979 #include <linux/version.h>
7981 rm -f conftest.$ac_objext
7982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7983 (eval $ac_compile) 2>&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } &&
7987 { ac_try='test -s conftest.$ac_objext'
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; }; then
7993 ac_header_compiler=yes
7995 echo "$as_me: failed program was:" >&5
7996 cat conftest.$ac_ext >&5
7997 ac_header_compiler=no
7999 rm -f conftest.$ac_objext conftest.$ac_ext
8000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8001 echo "${ECHO_T}$ac_header_compiler" >&6
8003 # Is the header present?
8004 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8005 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8006 cat >conftest.$ac_ext <<_ACEOF
8007 #line $LINENO "configure"
8008 #include "confdefs.h"
8009 #include <linux/version.h>
8011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8014 egrep -v '^ *\+' conftest.er1 >conftest.err
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } >/dev/null; then
8019 if test -s conftest.err; then
8020 ac_cpp_err=$ac_c_preproc_warn_flag
8027 if test -z "$ac_cpp_err"; then
8028 ac_header_preproc=yes
8030 echo "$as_me: failed program was:" >&5
8031 cat conftest.$ac_ext >&5
8032 ac_header_preproc=no
8034 rm -f conftest.err conftest.$ac_ext
8035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8036 echo "${ECHO_T}$ac_header_preproc" >&6
8038 # So? What about this header?
8039 case $ac_header_compiler:$ac_header_preproc in
8041 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8042 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8043 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8044 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;};;
8046 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8047 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8048 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8049 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8050 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8051 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;};;
8053 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8054 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8055 if test "${ac_cv_header_linux_version_h+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 ac_cv_header_linux_version_h=$ac_header_preproc
8060 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8061 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8064 if test $ac_cv_header_linux_version_h = yes; then
8072 sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
8077 # jwz: fuck this! it puts hardcoded pathnames into the generated Makefiles!
8079 # if test -n "$ac_aux_dir"; then
8080 # MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8082 if test -z "$MKINSTALLDIRS"; then
8083 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8086 # jwz: you know what, screw it. Let's just use the version that I
8087 # already computed in configure.in, instead of this version that came
8088 # with the i18n crud, ok?
8089 MKINSTALLDIRS="$INSTALL_DIRS"
8094 test -d po || mkdir po
8095 if test "x$srcdir" != "x."; then
8096 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8097 posrcprefix="$srcdir/"
8099 posrcprefix="../$srcdir/"
8105 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8106 < $srcdir/po/POTFILES.in > po/POTFILES
8110 ###############################################################################
8112 # Check for -lXmu (some fucked up vendors don't ship it...)
8114 ###############################################################################
8118 ac_save_CPPFLAGS="$CPPFLAGS"
8119 if test \! -z "$includedir" ; then
8120 CPPFLAGS="$CPPFLAGS -I$includedir"
8122 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8123 echo "$as_me:$LINENO: checking for X11/Xmu/Error.h" >&5
8124 echo $ECHO_N "checking for X11/Xmu/Error.h... $ECHO_C" >&6
8125 if test "${ac_cv_header_X11_Xmu_Error_h+set}" = set; then
8126 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 cat >conftest.$ac_ext <<_ACEOF
8129 #line $LINENO "configure"
8130 #include "confdefs.h"
8133 #include <X11/Intrinsic.h>
8135 #include <X11/Xmu/Error.h>
8137 rm -f conftest.$ac_objext
8138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8139 (eval $ac_compile) 2>&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } &&
8143 { ac_try='test -s conftest.$ac_objext'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8149 ac_cv_header_X11_Xmu_Error_h=yes
8151 echo "$as_me: failed program was:" >&5
8152 cat conftest.$ac_ext >&5
8153 ac_cv_header_X11_Xmu_Error_h=no
8155 rm -f conftest.$ac_objext conftest.$ac_ext
8157 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xmu_Error_h" >&5
8158 echo "${ECHO_T}$ac_cv_header_X11_Xmu_Error_h" >&6
8159 if test $ac_cv_header_X11_Xmu_Error_h = yes; then
8164 CPPFLAGS="$ac_save_CPPFLAGS"
8165 if test "$have_xmu" = no ; then
8166 XMU_SRCS='$(UTILS_SRC)/xmu.c'
8167 XMU_OBJS='$(UTILS_BIN)/xmu.o'
8173 cat >>confdefs.h <<\_ACEOF
8180 ###############################################################################
8182 # Check for the SunOS 4.1.x _get_wmShellWidgetClass bug.
8183 # See comp.windows.x FAQ question 124. The right fix is to
8184 # get OpenWindows 3.0 patches 100512-02 and 100573-03.
8186 ###############################################################################
8188 if test "$have_xmu" = yes ; then
8191 echo "$as_me:$LINENO: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
8192 echo $ECHO_N "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug... $ECHO_C" >&6
8193 if test "${ac_cv_sunos_xmu_bug+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 ac_save_LDFLAGS="$LDFLAGS"
8197 if test \! -z "$x_libraries" ; then
8198 LDFLAGS="$LDFLAGS -L$x_libraries"
8200 # Note: this trick never works! (Generally.)
8201 # We're only getting away with using AC_TRY_LINK
8202 # with X libraries because we know it's SunOS.
8203 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
8204 cat >conftest.$ac_ext <<_ACEOF
8205 #line $LINENO "configure"
8206 #include "confdefs.h"
8208 #ifdef F77_DUMMY_MAIN
8212 int F77_DUMMY_MAIN() { return 1; }
8222 rm -f conftest.$ac_objext conftest$ac_exeext
8223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8224 (eval $ac_link) 2>&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } &&
8228 { ac_try='test -s conftest$ac_exeext'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 ac_cv_sunos_xmu_bug=no
8236 echo "$as_me: failed program was:" >&5
8237 cat conftest.$ac_ext >&5
8238 ac_cv_sunos_xmu_bug=yes
8240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8241 LDFLAGS="$ac_save_LDFLAGS"
8243 echo "$as_me:$LINENO: result: $ac_cv_sunos_xmu_bug" >&5
8244 echo "${ECHO_T}$ac_cv_sunos_xmu_bug" >&6
8245 if test "$ac_cv_sunos_xmu_bug" = yes ; then
8246 echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
8247 echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
8248 if test "${ac_cv_ld_static+set}" = set; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 ac_save_LDFLAGS="$LDFLAGS"
8252 LDFLAGS="$LDFLAGS -static"
8253 cat >conftest.$ac_ext <<_ACEOF
8254 #line $LINENO "configure"
8255 #include "confdefs.h"
8257 #ifdef F77_DUMMY_MAIN
8261 int F77_DUMMY_MAIN() { return 1; }
8271 rm -f conftest.$ac_objext conftest$ac_exeext
8272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8273 (eval $ac_link) 2>&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } &&
8277 { ac_try='test -s conftest$ac_exeext'
8278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8285 echo "$as_me: failed program was:" >&5
8286 cat conftest.$ac_ext >&5
8289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8290 LDFLAGS="$ac_save_LDFLAGS"
8292 echo "$as_me:$LINENO: result: $ac_cv_ld_static" >&5
8293 echo "${ECHO_T}$ac_cv_ld_static" >&6
8294 if test "$ac_cv_ld_static" = yes ; then
8295 LDFLAGS="$LDFLAGS -static"
8297 LDFLAGS="$LDFLAGS -Bstatic"
8305 ###############################################################################
8307 # Handle the --with-hackdir option
8309 ###############################################################################
8312 with_hackdir_req=unspecified
8314 # Check whether --with-hackdir or --without-hackdir was given.
8315 if test "${with_hackdir+set}" = set; then
8316 withval="$with_hackdir"
8317 with_hackdir="$withval"; with_hackdir_req="$withval"
8322 if test x"$with_hackdir" = xyes; then
8323 HACKDIR='${exec_prefix}/lib/xscreensaver'
8324 elif test x"$with_hackdir" = xno; then
8327 # there must be a better way than this...
8328 if test -z "`echo $with_hackdir | sed 's@^/.*@@'`" ; then
8330 HACKDIR=$with_hackdir
8333 HACKDIR="\${exec_prefix}$with_hackdir"
8337 # canonicalize slashes.
8338 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
8340 # This option used to be called --enable-subdir; make sure that is no longer
8341 # used, since configure brain-damagedly ignores unknown --enable options.
8344 # Check whether --enable-subdir or --disable-subdir was given.
8345 if test "${enable_subdir+set}" = set; then
8346 enableval="$enable_subdir"
8349 if test -n "$obsolete_enable"; then
8350 echo "error: the --enable-subdir option has been replaced with"
8351 echo " the new --with-hackdir option; see \`configure --help'"
8352 echo " for more information."
8357 ###############################################################################
8359 # Handle the --with-configdir option
8361 ###############################################################################
8364 with_configdir_req=unspecified
8366 # Check whether --with-configdir or --without-configdir was given.
8367 if test "${with_configdir+set}" = set; then
8368 withval="$with_configdir"
8369 with_configdir="$withval"; with_configdir_req="$withval"
8374 if test x"$with_configdir" = xyes; then
8375 # filled in later...
8377 elif test x"$with_configdir" = xno; then
8378 echo "error: must be yes, or a pathname: --with-configdir=$with_configdir"
8381 # there must be a better way than this...
8382 if test -z "`echo $with_configdir | sed 's@^/.*@@'`" ; then
8384 HACK_CONF_DIR=$with_configdir
8387 HACK_CONF_DIR="\${exec_prefix}$with_configdir"
8394 ###############################################################################
8396 # Check for the SGI SCREEN_SAVER server extension.
8398 ###############################################################################
8401 with_sgi_req=unspecified
8403 # Check whether --with-sgi-ext or --without-sgi-ext was given.
8404 if test "${with_sgi_ext+set}" = set; then
8405 withval="$with_sgi_ext"
8406 with_sgi="$withval"; with_sgi_req="$withval"
8417 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER headers" >&5
8418 echo $ECHO_N "checking for SGI SCREEN_SAVER headers... $ECHO_C" >&6
8421 X_CFLAGS="-I$d $X_CFLAGS"
8422 echo "$as_me:$LINENO: result: $d" >&5
8423 echo "${ECHO_T}$d" >&6
8425 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8426 echo "${ECHO_T}not found ($d: no such directory)" >&6
8429 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER libs" >&5
8430 echo $ECHO_N "checking for SGI SCREEN_SAVER libs... $ECHO_C" >&6
8433 X_LIBS="-L$d $X_LIBS"
8434 echo "$as_me:$LINENO: result: $d" >&5
8435 echo "${ECHO_T}$d" >&6
8437 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8438 echo "${ECHO_T}not found ($d: no such directory)" >&6
8441 # replace the directory string with "yes".
8443 with_sgi=$with_sgi_req
8448 echo "error: argument to --with-sgi-ext must be \"yes\", \"no\", or a directory."
8449 echo " If it is a directory, then \`DIR/include' will be added to"
8450 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8456 if test "$with_sgi" = yes; then
8458 ac_save_CPPFLAGS="$CPPFLAGS"
8459 if test \! -z "$includedir" ; then
8460 CPPFLAGS="$CPPFLAGS -I$includedir"
8462 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8463 echo "$as_me:$LINENO: checking for X11/extensions/XScreenSaver.h" >&5
8464 echo $ECHO_N "checking for X11/extensions/XScreenSaver.h... $ECHO_C" >&6
8465 if test "${ac_cv_header_X11_extensions_XScreenSaver_h+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8468 cat >conftest.$ac_ext <<_ACEOF
8469 #line $LINENO "configure"
8470 #include "confdefs.h"
8471 #include <X11/Xlib.h>
8473 #include <X11/extensions/XScreenSaver.h>
8475 rm -f conftest.$ac_objext
8476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8477 (eval $ac_compile) 2>&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } &&
8481 { ac_try='test -s conftest.$ac_objext'
8482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); }; }; then
8487 ac_cv_header_X11_extensions_XScreenSaver_h=yes
8489 echo "$as_me: failed program was:" >&5
8490 cat conftest.$ac_ext >&5
8491 ac_cv_header_X11_extensions_XScreenSaver_h=no
8493 rm -f conftest.$ac_objext conftest.$ac_ext
8495 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XScreenSaver_h" >&5
8496 echo "${ECHO_T}$ac_cv_header_X11_extensions_XScreenSaver_h" >&6
8497 if test $ac_cv_header_X11_extensions_XScreenSaver_h = yes; then
8499 cat >>confdefs.h <<\_ACEOF
8500 #define HAVE_SGI_SAVER_EXTENSION 1
8506 CPPFLAGS="$ac_save_CPPFLAGS"
8508 elif test "$with_sgi" != no; then
8509 echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
8514 ###############################################################################
8516 # Check for the MIT-SCREEN-SAVER server extension.
8518 ###############################################################################
8521 with_mit_req=unspecified
8523 # Check whether --with-mit-ext or --without-mit-ext was given.
8524 if test "${with_mit_ext+set}" = set; then
8525 withval="$with_mit_ext"
8526 with_mit="$withval"; with_mit_req="$withval"
8537 echo "$as_me:$LINENO: checking for MIT-SCREEN-SAVER headers" >&5
8538 echo $ECHO_N "checking for MIT-SCREEN-SAVER headers... $ECHO_C" >&6
8541 X_CFLAGS="-I$d $X_CFLAGS"
8542 echo "$as_me:$LINENO: result: $d" >&5
8543 echo "${ECHO_T}$d" >&6
8545 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8546 echo "${ECHO_T}not found ($d: no such directory)" >&6
8549 echo "$as_me:$LINENO: checking for MIT-SCREEN-SAVER libs" >&5
8550 echo $ECHO_N "checking for MIT-SCREEN-SAVER libs... $ECHO_C" >&6
8553 X_LIBS="-L$d $X_LIBS"
8554 echo "$as_me:$LINENO: result: $d" >&5
8555 echo "${ECHO_T}$d" >&6
8557 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8558 echo "${ECHO_T}not found ($d: no such directory)" >&6
8561 # replace the directory string with "yes".
8563 with_mit=$with_mit_req
8568 echo "error: argument to --with-mit-ext must be \"yes\", \"no\", or a directory."
8569 echo " If it is a directory, then \`DIR/include' will be added to"
8570 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8576 if test "$with_mit" = yes; then
8578 ac_save_CPPFLAGS="$CPPFLAGS"
8579 if test \! -z "$includedir" ; then
8580 CPPFLAGS="$CPPFLAGS -I$includedir"
8582 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8583 echo "$as_me:$LINENO: checking for X11/extensions/scrnsaver.h" >&5
8584 echo $ECHO_N "checking for X11/extensions/scrnsaver.h... $ECHO_C" >&6
8585 if test "${ac_cv_header_X11_extensions_scrnsaver_h+set}" = set; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 cat >conftest.$ac_ext <<_ACEOF
8589 #line $LINENO "configure"
8590 #include "confdefs.h"
8591 #include <X11/Xlib.h>
8593 #include <X11/extensions/scrnsaver.h>
8595 rm -f conftest.$ac_objext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8597 (eval $ac_compile) 2>&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); } &&
8601 { ac_try='test -s conftest.$ac_objext'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 ac_cv_header_X11_extensions_scrnsaver_h=yes
8609 echo "$as_me: failed program was:" >&5
8610 cat conftest.$ac_ext >&5
8611 ac_cv_header_X11_extensions_scrnsaver_h=no
8613 rm -f conftest.$ac_objext conftest.$ac_ext
8615 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_scrnsaver_h" >&5
8616 echo "${ECHO_T}$ac_cv_header_X11_extensions_scrnsaver_h" >&6
8617 if test $ac_cv_header_X11_extensions_scrnsaver_h = yes; then
8622 CPPFLAGS="$ac_save_CPPFLAGS"
8624 # Now check to see if it's really in the library; XF86Free-3.3 ships
8625 # scrnsaver.h, but doesn't include the code in libXext.a, the idiots!
8627 if test "$have_mit" = yes; then
8629 ac_save_CPPFLAGS="$CPPFLAGS"
8630 ac_save_LDFLAGS="$LDFLAGS"
8631 # ac_save_LIBS="$LIBS"
8633 if test \! -z "$includedir" ; then
8634 CPPFLAGS="$CPPFLAGS -I$includedir"
8636 # note: $X_CFLAGS includes $x_includes
8637 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8639 if test \! -z "$libdir" ; then
8640 LDFLAGS="$LDFLAGS -L$libdir"
8642 # note: $X_LIBS includes $x_libraries
8643 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8645 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXext" >&5
8646 echo $ECHO_N "checking for XScreenSaverRegister in -lXext... $ECHO_C" >&6
8647 if test "${ac_cv_lib_Xext_XScreenSaverRegister+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 ac_check_lib_save_LIBS=$LIBS
8651 LIBS="-lXext -lm $LIBS"
8652 cat >conftest.$ac_ext <<_ACEOF
8653 #line $LINENO "configure"
8654 #include "confdefs.h"
8656 /* Override any gcc2 internal prototype to avoid an error. */
8660 /* We use char because int might match the return type of a gcc2
8661 builtin and then its argument prototype would still apply. */
8662 char XScreenSaverRegister ();
8663 #ifdef F77_DUMMY_MAIN
8667 int F77_DUMMY_MAIN() { return 1; }
8672 XScreenSaverRegister ();
8677 rm -f conftest.$ac_objext conftest$ac_exeext
8678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8679 (eval $ac_link) 2>&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } &&
8683 { ac_try='test -s conftest$ac_exeext'
8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; }; then
8689 ac_cv_lib_Xext_XScreenSaverRegister=yes
8691 echo "$as_me: failed program was:" >&5
8692 cat conftest.$ac_ext >&5
8693 ac_cv_lib_Xext_XScreenSaverRegister=no
8695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8696 LIBS=$ac_check_lib_save_LIBS
8698 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XScreenSaverRegister" >&5
8699 echo "${ECHO_T}$ac_cv_lib_Xext_XScreenSaverRegister" >&6
8700 if test $ac_cv_lib_Xext_XScreenSaverRegister = yes; then
8706 CPPFLAGS="$ac_save_CPPFLAGS"
8707 LDFLAGS="$ac_save_LDFLAGS"
8708 # LIBS="$ac_save_LIBS"
8711 if test "$have_mit" = no; then
8712 # Fuck! Looks like XF86Free-3.3 actually puts it in XExExt instead
8713 # of in Xext. Thank you master, may I have another.
8715 ac_save_CPPFLAGS="$CPPFLAGS"
8716 ac_save_LDFLAGS="$LDFLAGS"
8717 # ac_save_LIBS="$LIBS"
8719 if test \! -z "$includedir" ; then
8720 CPPFLAGS="$CPPFLAGS -I$includedir"
8722 # note: $X_CFLAGS includes $x_includes
8723 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8725 if test \! -z "$libdir" ; then
8726 LDFLAGS="$LDFLAGS -L$libdir"
8728 # note: $X_LIBS includes $x_libraries
8729 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8731 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXExExt" >&5
8732 echo $ECHO_N "checking for XScreenSaverRegister in -lXExExt... $ECHO_C" >&6
8733 if test "${ac_cv_lib_XExExt_XScreenSaverRegister+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8736 ac_check_lib_save_LIBS=$LIBS
8737 LIBS="-lXExExt -lX11 -lXext -lm $LIBS"
8738 cat >conftest.$ac_ext <<_ACEOF
8739 #line $LINENO "configure"
8740 #include "confdefs.h"
8742 /* Override any gcc2 internal prototype to avoid an error. */
8746 /* We use char because int might match the return type of a gcc2
8747 builtin and then its argument prototype would still apply. */
8748 char XScreenSaverRegister ();
8749 #ifdef F77_DUMMY_MAIN
8753 int F77_DUMMY_MAIN() { return 1; }
8758 XScreenSaverRegister ();
8763 rm -f conftest.$ac_objext conftest$ac_exeext
8764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8765 (eval $ac_link) 2>&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } &&
8769 { ac_try='test -s conftest$ac_exeext'
8770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); }; }; then
8775 ac_cv_lib_XExExt_XScreenSaverRegister=yes
8777 echo "$as_me: failed program was:" >&5
8778 cat conftest.$ac_ext >&5
8779 ac_cv_lib_XExExt_XScreenSaverRegister=no
8781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8782 LIBS=$ac_check_lib_save_LIBS
8784 echo "$as_me:$LINENO: result: $ac_cv_lib_XExExt_XScreenSaverRegister" >&5
8785 echo "${ECHO_T}$ac_cv_lib_XExExt_XScreenSaverRegister" >&6
8786 if test $ac_cv_lib_XExExt_XScreenSaverRegister = yes; then
8787 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXExExt"
8792 CPPFLAGS="$ac_save_CPPFLAGS"
8793 LDFLAGS="$ac_save_LDFLAGS"
8794 # LIBS="$ac_save_LIBS"
8798 if test "$have_mit" = no; then
8799 # Double fuck! Looks like some versions of XFree86 (whichever version
8800 # it is that comes with RedHat Linux 2.0 -- I can't find a version
8801 # number) put this garbage in Xss instead of Xext. Thank you master,
8802 # may I have another.
8804 ac_save_CPPFLAGS="$CPPFLAGS"
8805 ac_save_LDFLAGS="$LDFLAGS"
8806 # ac_save_LIBS="$LIBS"
8808 if test \! -z "$includedir" ; then
8809 CPPFLAGS="$CPPFLAGS -I$includedir"
8811 # note: $X_CFLAGS includes $x_includes
8812 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8814 if test \! -z "$libdir" ; then
8815 LDFLAGS="$LDFLAGS -L$libdir"
8817 # note: $X_LIBS includes $x_libraries
8818 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8820 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXss" >&5
8821 echo $ECHO_N "checking for XScreenSaverRegister in -lXss... $ECHO_C" >&6
8822 if test "${ac_cv_lib_Xss_XScreenSaverRegister+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 ac_check_lib_save_LIBS=$LIBS
8826 LIBS="-lXss -lX11 -lXext -lm $LIBS"
8827 cat >conftest.$ac_ext <<_ACEOF
8828 #line $LINENO "configure"
8829 #include "confdefs.h"
8831 /* Override any gcc2 internal prototype to avoid an error. */
8835 /* We use char because int might match the return type of a gcc2
8836 builtin and then its argument prototype would still apply. */
8837 char XScreenSaverRegister ();
8838 #ifdef F77_DUMMY_MAIN
8842 int F77_DUMMY_MAIN() { return 1; }
8847 XScreenSaverRegister ();
8852 rm -f conftest.$ac_objext conftest$ac_exeext
8853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8854 (eval $ac_link) 2>&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } &&
8858 { ac_try='test -s conftest$ac_exeext'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; }; then
8864 ac_cv_lib_Xss_XScreenSaverRegister=yes
8866 echo "$as_me: failed program was:" >&5
8867 cat conftest.$ac_ext >&5
8868 ac_cv_lib_Xss_XScreenSaverRegister=no
8870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8871 LIBS=$ac_check_lib_save_LIBS
8873 echo "$as_me:$LINENO: result: $ac_cv_lib_Xss_XScreenSaverRegister" >&5
8874 echo "${ECHO_T}$ac_cv_lib_Xss_XScreenSaverRegister" >&6
8875 if test $ac_cv_lib_Xss_XScreenSaverRegister = yes; then
8876 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXss"
8881 CPPFLAGS="$ac_save_CPPFLAGS"
8882 LDFLAGS="$ac_save_LDFLAGS"
8883 # LIBS="$ac_save_LIBS"
8887 if test "$have_mit" = yes; then
8888 cat >>confdefs.h <<\_ACEOF
8889 #define HAVE_MIT_SAVER_EXTENSION 1
8896 elif test "$with_mit" != no; then
8897 echo "error: must be yes or no: --with-mit-ext=$with_mit"
8902 ###############################################################################
8904 # Check for the XIDLE server extension.
8906 ###############################################################################
8909 with_xidle_req=unspecified
8911 # Check whether --with-xidle-ext or --without-xidle-ext was given.
8912 if test "${with_xidle_ext+set}" = set; then
8913 withval="$with_xidle_ext"
8914 with_xidle="$withval"; with_xidle_req="$withval"
8920 case "$with_xidle" in
8925 echo "$as_me:$LINENO: checking for XIDLE headers" >&5
8926 echo $ECHO_N "checking for XIDLE headers... $ECHO_C" >&6
8927 d=$with_xidle/include
8929 X_CFLAGS="-I$d $X_CFLAGS"
8930 echo "$as_me:$LINENO: result: $d" >&5
8931 echo "${ECHO_T}$d" >&6
8933 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8934 echo "${ECHO_T}not found ($d: no such directory)" >&6
8937 echo "$as_me:$LINENO: checking for XIDLE libs" >&5
8938 echo $ECHO_N "checking for XIDLE libs... $ECHO_C" >&6
8941 X_LIBS="-L$d $X_LIBS"
8942 echo "$as_me:$LINENO: result: $d" >&5
8943 echo "${ECHO_T}$d" >&6
8945 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8946 echo "${ECHO_T}not found ($d: no such directory)" >&6
8949 # replace the directory string with "yes".
8950 with_xidle_req="yes"
8951 with_xidle=$with_xidle_req
8956 echo "error: argument to --with-xidle-ext must be \"yes\", \"no\", or a directory."
8957 echo " If it is a directory, then \`DIR/include' will be added to"
8958 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8964 if test "$with_xidle" = yes; then
8966 ac_save_CPPFLAGS="$CPPFLAGS"
8967 if test \! -z "$includedir" ; then
8968 CPPFLAGS="$CPPFLAGS -I$includedir"
8970 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8971 echo "$as_me:$LINENO: checking for X11/extensions/xidle.h" >&5
8972 echo $ECHO_N "checking for X11/extensions/xidle.h... $ECHO_C" >&6
8973 if test "${ac_cv_header_X11_extensions_xidle_h+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 cat >conftest.$ac_ext <<_ACEOF
8977 #line $LINENO "configure"
8978 #include "confdefs.h"
8979 #include <X11/Xlib.h>
8981 #include <X11/extensions/xidle.h>
8983 rm -f conftest.$ac_objext
8984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8985 (eval $ac_compile) 2>&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try='test -s conftest.$ac_objext'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
8995 ac_cv_header_X11_extensions_xidle_h=yes
8997 echo "$as_me: failed program was:" >&5
8998 cat conftest.$ac_ext >&5
8999 ac_cv_header_X11_extensions_xidle_h=no
9001 rm -f conftest.$ac_objext conftest.$ac_ext
9003 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xidle_h" >&5
9004 echo "${ECHO_T}$ac_cv_header_X11_extensions_xidle_h" >&6
9005 if test $ac_cv_header_X11_extensions_xidle_h = yes; then
9007 cat >>confdefs.h <<\_ACEOF
9008 #define HAVE_XIDLE_EXTENSION 1
9014 CPPFLAGS="$ac_save_CPPFLAGS"
9015 elif test "$with_xidle" != no; then
9016 echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
9021 ###############################################################################
9023 # Check for the SGI-VIDEO-CONTROL server extension.
9025 ###############################################################################
9028 with_sgivc_req=unspecified
9030 # Check whether --with-sgivc-ext or --without-sgivc-ext was given.
9031 if test "${with_sgivc_ext+set}" = set; then
9032 withval="$with_sgivc_ext"
9033 with_sgivc="$withval"; with_sgivc_req="$withval"
9039 case "$with_sgivc" in
9044 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL headers" >&5
9045 echo $ECHO_N "checking for SGI-VIDEO-CONTROL headers... $ECHO_C" >&6
9046 d=$with_sgivc/include
9048 X_CFLAGS="-I$d $X_CFLAGS"
9049 echo "$as_me:$LINENO: result: $d" >&5
9050 echo "${ECHO_T}$d" >&6
9052 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9053 echo "${ECHO_T}not found ($d: no such directory)" >&6
9056 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL libs" >&5
9057 echo $ECHO_N "checking for SGI-VIDEO-CONTROL libs... $ECHO_C" >&6
9060 X_LIBS="-L$d $X_LIBS"
9061 echo "$as_me:$LINENO: result: $d" >&5
9062 echo "${ECHO_T}$d" >&6
9064 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9065 echo "${ECHO_T}not found ($d: no such directory)" >&6
9068 # replace the directory string with "yes".
9069 with_sgivc_req="yes"
9070 with_sgivc=$with_sgivc_req
9075 echo "error: argument to --with-sgivc-ext must be \"yes\", \"no\", or a directory."
9076 echo " If it is a directory, then \`DIR/include' will be added to"
9077 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9083 if test "$with_sgivc" = yes; then
9085 # first check for XSGIvc.h
9087 ac_save_CPPFLAGS="$CPPFLAGS"
9088 if test \! -z "$includedir" ; then
9089 CPPFLAGS="$CPPFLAGS -I$includedir"
9091 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9092 echo "$as_me:$LINENO: checking for X11/extensions/XSGIvc.h" >&5
9093 echo $ECHO_N "checking for X11/extensions/XSGIvc.h... $ECHO_C" >&6
9094 if test "${ac_cv_header_X11_extensions_XSGIvc_h+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 cat >conftest.$ac_ext <<_ACEOF
9098 #line $LINENO "configure"
9099 #include "confdefs.h"
9100 #include <X11/Xlib.h>
9102 #include <X11/extensions/XSGIvc.h>
9104 rm -f conftest.$ac_objext
9105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9106 (eval $ac_compile) 2>&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); } &&
9110 { ac_try='test -s conftest.$ac_objext'
9111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); }; }; then
9116 ac_cv_header_X11_extensions_XSGIvc_h=yes
9118 echo "$as_me: failed program was:" >&5
9119 cat conftest.$ac_ext >&5
9120 ac_cv_header_X11_extensions_XSGIvc_h=no
9122 rm -f conftest.$ac_objext conftest.$ac_ext
9124 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XSGIvc_h" >&5
9125 echo "${ECHO_T}$ac_cv_header_X11_extensions_XSGIvc_h" >&6
9126 if test $ac_cv_header_X11_extensions_XSGIvc_h = yes; then
9131 CPPFLAGS="$ac_save_CPPFLAGS"
9133 # if that succeeded, then check for the -lXsgivc
9134 if test "$have_sgivc" = yes; then
9137 ac_save_CPPFLAGS="$CPPFLAGS"
9138 ac_save_LDFLAGS="$LDFLAGS"
9139 # ac_save_LIBS="$LIBS"
9141 if test \! -z "$includedir" ; then
9142 CPPFLAGS="$CPPFLAGS -I$includedir"
9144 # note: $X_CFLAGS includes $x_includes
9145 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9147 if test \! -z "$libdir" ; then
9148 LDFLAGS="$LDFLAGS -L$libdir"
9150 # note: $X_LIBS includes $x_libraries
9151 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9153 echo "$as_me:$LINENO: checking for XSGIvcQueryGammaMap in -lXsgivc" >&5
9154 echo $ECHO_N "checking for XSGIvcQueryGammaMap in -lXsgivc... $ECHO_C" >&6
9155 if test "${ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 ac_check_lib_save_LIBS=$LIBS
9159 LIBS="-lXsgivc -lXext -lX11 $LIBS"
9160 cat >conftest.$ac_ext <<_ACEOF
9161 #line $LINENO "configure"
9162 #include "confdefs.h"
9164 /* Override any gcc2 internal prototype to avoid an error. */
9168 /* We use char because int might match the return type of a gcc2
9169 builtin and then its argument prototype would still apply. */
9170 char XSGIvcQueryGammaMap ();
9171 #ifdef F77_DUMMY_MAIN
9175 int F77_DUMMY_MAIN() { return 1; }
9180 XSGIvcQueryGammaMap ();
9185 rm -f conftest.$ac_objext conftest$ac_exeext
9186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9187 (eval $ac_link) 2>&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try='test -s conftest$ac_exeext'
9192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; }; then
9197 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=yes
9199 echo "$as_me: failed program was:" >&5
9200 cat conftest.$ac_ext >&5
9201 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=no
9203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9204 LIBS=$ac_check_lib_save_LIBS
9206 echo "$as_me:$LINENO: result: $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&5
9207 echo "${ECHO_T}$ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&6
9208 if test $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap = yes; then
9209 have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"
9214 CPPFLAGS="$ac_save_CPPFLAGS"
9215 LDFLAGS="$ac_save_LDFLAGS"
9216 # LIBS="$ac_save_LIBS"
9220 # if that succeeded, then we've really got it.
9221 if test "$have_sgivc" = yes; then
9222 cat >>confdefs.h <<\_ACEOF
9223 #define HAVE_SGI_VC_EXTENSION 1
9228 elif test "$with_sgivc" != no; then
9229 echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
9234 ###############################################################################
9236 # Check for the DPMS server extension.
9238 ###############################################################################
9241 with_dpms_req=unspecified
9243 # Check whether --with-dpms-ext or --without-dpms-ext was given.
9244 if test "${with_dpms_ext+set}" = set; then
9245 withval="$with_dpms_ext"
9246 with_dpms="$withval"; with_dpms_req="$withval"
9252 case "$with_dpms" in
9257 echo "$as_me:$LINENO: checking for DPMS headers" >&5
9258 echo $ECHO_N "checking for DPMS headers... $ECHO_C" >&6
9259 d=$with_dpms/include
9261 X_CFLAGS="-I$d $X_CFLAGS"
9262 echo "$as_me:$LINENO: result: $d" >&5
9263 echo "${ECHO_T}$d" >&6
9265 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9266 echo "${ECHO_T}not found ($d: no such directory)" >&6
9269 echo "$as_me:$LINENO: checking for DPMS libs" >&5
9270 echo $ECHO_N "checking for DPMS libs... $ECHO_C" >&6
9273 X_LIBS="-L$d $X_LIBS"
9274 echo "$as_me:$LINENO: result: $d" >&5
9275 echo "${ECHO_T}$d" >&6
9277 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9278 echo "${ECHO_T}not found ($d: no such directory)" >&6
9281 # replace the directory string with "yes".
9283 with_dpms=$with_dpms_req
9288 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
9289 echo " If it is a directory, then \`DIR/include' will be added to"
9290 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9296 if test "$with_dpms" = yes; then
9298 # first check for dpms.h
9300 ac_save_CPPFLAGS="$CPPFLAGS"
9301 if test \! -z "$includedir" ; then
9302 CPPFLAGS="$CPPFLAGS -I$includedir"
9304 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9305 echo "$as_me:$LINENO: checking for X11/extensions/dpms.h" >&5
9306 echo $ECHO_N "checking for X11/extensions/dpms.h... $ECHO_C" >&6
9307 if test "${ac_cv_header_X11_extensions_dpms_h+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9310 cat >conftest.$ac_ext <<_ACEOF
9311 #line $LINENO "configure"
9312 #include "confdefs.h"
9313 #include <X11/Xlib.h>
9315 #include <X11/extensions/dpms.h>
9317 rm -f conftest.$ac_objext
9318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9319 (eval $ac_compile) 2>&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } &&
9323 { ac_try='test -s conftest.$ac_objext'
9324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); }; }; then
9329 ac_cv_header_X11_extensions_dpms_h=yes
9331 echo "$as_me: failed program was:" >&5
9332 cat conftest.$ac_ext >&5
9333 ac_cv_header_X11_extensions_dpms_h=no
9335 rm -f conftest.$ac_objext conftest.$ac_ext
9337 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_dpms_h" >&5
9338 echo "${ECHO_T}$ac_cv_header_X11_extensions_dpms_h" >&6
9339 if test $ac_cv_header_X11_extensions_dpms_h = yes; then
9344 CPPFLAGS="$ac_save_CPPFLAGS"
9346 # if that succeeded, then check for the DPMS code in the libraries
9347 if test "$have_dpms" = yes; then
9349 # first look in -lXext (this is where it is with XFree86 4.0)
9352 ac_save_CPPFLAGS="$CPPFLAGS"
9353 ac_save_LDFLAGS="$LDFLAGS"
9354 # ac_save_LIBS="$LIBS"
9356 if test \! -z "$includedir" ; then
9357 CPPFLAGS="$CPPFLAGS -I$includedir"
9359 # note: $X_CFLAGS includes $x_includes
9360 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9362 if test \! -z "$libdir" ; then
9363 LDFLAGS="$LDFLAGS -L$libdir"
9365 # note: $X_LIBS includes $x_libraries
9366 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9368 echo "$as_me:$LINENO: checking for DPMSInfo in -lXext" >&5
9369 echo $ECHO_N "checking for DPMSInfo in -lXext... $ECHO_C" >&6
9370 if test "${ac_cv_lib_Xext_DPMSInfo+set}" = set; then
9371 echo $ECHO_N "(cached) $ECHO_C" >&6
9373 ac_check_lib_save_LIBS=$LIBS
9374 LIBS="-lXext -lXext -lX11 $LIBS"
9375 cat >conftest.$ac_ext <<_ACEOF
9376 #line $LINENO "configure"
9377 #include "confdefs.h"
9379 /* Override any gcc2 internal prototype to avoid an error. */
9383 /* We use char because int might match the return type of a gcc2
9384 builtin and then its argument prototype would still apply. */
9386 #ifdef F77_DUMMY_MAIN
9390 int F77_DUMMY_MAIN() { return 1; }
9400 rm -f conftest.$ac_objext conftest$ac_exeext
9401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9402 (eval $ac_link) 2>&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } &&
9406 { ac_try='test -s conftest$ac_exeext'
9407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); }; }; then
9412 ac_cv_lib_Xext_DPMSInfo=yes
9414 echo "$as_me: failed program was:" >&5
9415 cat conftest.$ac_ext >&5
9416 ac_cv_lib_Xext_DPMSInfo=no
9418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9419 LIBS=$ac_check_lib_save_LIBS
9421 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_DPMSInfo" >&5
9422 echo "${ECHO_T}$ac_cv_lib_Xext_DPMSInfo" >&6
9423 if test $ac_cv_lib_Xext_DPMSInfo = yes; then
9429 CPPFLAGS="$ac_save_CPPFLAGS"
9430 LDFLAGS="$ac_save_LDFLAGS"
9431 # LIBS="$ac_save_LIBS"
9434 # if that failed, look in -lXdpms (this is where it was in XFree86 3.x)
9435 if test "$have_dpms" = no; then
9437 ac_save_CPPFLAGS="$CPPFLAGS"
9438 ac_save_LDFLAGS="$LDFLAGS"
9439 # ac_save_LIBS="$LIBS"
9441 if test \! -z "$includedir" ; then
9442 CPPFLAGS="$CPPFLAGS -I$includedir"
9444 # note: $X_CFLAGS includes $x_includes
9445 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9447 if test \! -z "$libdir" ; then
9448 LDFLAGS="$LDFLAGS -L$libdir"
9450 # note: $X_LIBS includes $x_libraries
9451 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9453 echo "$as_me:$LINENO: checking for DPMSInfo in -lXdpms" >&5
9454 echo $ECHO_N "checking for DPMSInfo in -lXdpms... $ECHO_C" >&6
9455 if test "${ac_cv_lib_Xdpms_DPMSInfo+set}" = set; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9458 ac_check_lib_save_LIBS=$LIBS
9459 LIBS="-lXdpms -lXext -lX11 $LIBS"
9460 cat >conftest.$ac_ext <<_ACEOF
9461 #line $LINENO "configure"
9462 #include "confdefs.h"
9464 /* Override any gcc2 internal prototype to avoid an error. */
9468 /* We use char because int might match the return type of a gcc2
9469 builtin and then its argument prototype would still apply. */
9471 #ifdef F77_DUMMY_MAIN
9475 int F77_DUMMY_MAIN() { return 1; }
9485 rm -f conftest.$ac_objext conftest$ac_exeext
9486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9487 (eval $ac_link) 2>&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } &&
9491 { ac_try='test -s conftest$ac_exeext'
9492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); }; }; then
9497 ac_cv_lib_Xdpms_DPMSInfo=yes
9499 echo "$as_me: failed program was:" >&5
9500 cat conftest.$ac_ext >&5
9501 ac_cv_lib_Xdpms_DPMSInfo=no
9503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9504 LIBS=$ac_check_lib_save_LIBS
9506 echo "$as_me:$LINENO: result: $ac_cv_lib_Xdpms_DPMSInfo" >&5
9507 echo "${ECHO_T}$ac_cv_lib_Xdpms_DPMSInfo" >&6
9508 if test $ac_cv_lib_Xdpms_DPMSInfo = yes; then
9509 have_dpms=yes; XDPMS_LIBS="-lXdpms"
9514 CPPFLAGS="$ac_save_CPPFLAGS"
9515 LDFLAGS="$ac_save_LDFLAGS"
9516 # LIBS="$ac_save_LIBS"
9522 # if that succeeded, then we've really got it.
9523 if test "$have_dpms" = yes; then
9524 cat >>confdefs.h <<\_ACEOF
9525 #define HAVE_DPMS_EXTENSION 1
9530 elif test "$with_dpms" != no; then
9531 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
9536 ###############################################################################
9538 # Check for the XINERAMA server extension.
9540 ###############################################################################
9543 with_xinerama_req=unspecified
9545 # Check whether --with-xinerama-ext or --without-xinerama-ext was given.
9546 if test "${with_xinerama_ext+set}" = set; then
9547 withval="$with_xinerama_ext"
9548 with_xinerama="$withval"; with_xinerama_req="$withval"
9554 case "$with_xinerama" in
9559 echo "$as_me:$LINENO: checking for XINERAMA headers" >&5
9560 echo $ECHO_N "checking for XINERAMA headers... $ECHO_C" >&6
9561 d=$with_xinerama/include
9563 X_CFLAGS="-I$d $X_CFLAGS"
9564 echo "$as_me:$LINENO: result: $d" >&5
9565 echo "${ECHO_T}$d" >&6
9567 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9568 echo "${ECHO_T}not found ($d: no such directory)" >&6
9571 echo "$as_me:$LINENO: checking for XINERAMA libs" >&5
9572 echo $ECHO_N "checking for XINERAMA libs... $ECHO_C" >&6
9573 d=$with_xinerama/lib
9575 X_LIBS="-L$d $X_LIBS"
9576 echo "$as_me:$LINENO: result: $d" >&5
9577 echo "${ECHO_T}$d" >&6
9579 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9580 echo "${ECHO_T}not found ($d: no such directory)" >&6
9583 # replace the directory string with "yes".
9584 with_xinerama_req="yes"
9585 with_xinerama=$with_xinerama_req
9590 echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
9591 echo " If it is a directory, then \`DIR/include' will be added to"
9592 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9598 if test "$with_xinerama" = yes; then
9600 # first check for Xinerama.h
9602 ac_save_CPPFLAGS="$CPPFLAGS"
9603 if test \! -z "$includedir" ; then
9604 CPPFLAGS="$CPPFLAGS -I$includedir"
9606 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9607 echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
9608 echo $ECHO_N "checking for X11/extensions/Xinerama.h... $ECHO_C" >&6
9609 if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9612 cat >conftest.$ac_ext <<_ACEOF
9613 #line $LINENO "configure"
9614 #include "confdefs.h"
9615 #include <X11/Xlib.h>
9617 #include <X11/extensions/Xinerama.h>
9619 rm -f conftest.$ac_objext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9621 (eval $ac_compile) 2>&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } &&
9625 { ac_try='test -s conftest.$ac_objext'
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_header_X11_extensions_Xinerama_h=yes
9633 echo "$as_me: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9635 ac_cv_header_X11_extensions_Xinerama_h=no
9637 rm -f conftest.$ac_objext conftest.$ac_ext
9639 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
9640 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xinerama_h" >&6
9641 if test $ac_cv_header_X11_extensions_Xinerama_h = yes; then
9646 CPPFLAGS="$ac_save_CPPFLAGS"
9648 # if that succeeded, then check for the XINERAMA code in the libraries
9649 if test "$have_xinerama" = yes; then
9651 # first look in -lXext
9654 ac_save_CPPFLAGS="$CPPFLAGS"
9655 ac_save_LDFLAGS="$LDFLAGS"
9656 # ac_save_LIBS="$LIBS"
9658 if test \! -z "$includedir" ; then
9659 CPPFLAGS="$CPPFLAGS -I$includedir"
9661 # note: $X_CFLAGS includes $x_includes
9662 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9664 if test \! -z "$libdir" ; then
9665 LDFLAGS="$LDFLAGS -L$libdir"
9667 # note: $X_LIBS includes $x_libraries
9668 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9670 echo "$as_me:$LINENO: checking for XineramaQueryExtension in -lXext" >&5
9671 echo $ECHO_N "checking for XineramaQueryExtension in -lXext... $ECHO_C" >&6
9672 if test "${ac_cv_lib_Xext_XineramaQueryExtension+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 ac_check_lib_save_LIBS=$LIBS
9676 LIBS="-lXext -lXext -lX11 $LIBS"
9677 cat >conftest.$ac_ext <<_ACEOF
9678 #line $LINENO "configure"
9679 #include "confdefs.h"
9681 /* Override any gcc2 internal prototype to avoid an error. */
9685 /* We use char because int might match the return type of a gcc2
9686 builtin and then its argument prototype would still apply. */
9687 char XineramaQueryExtension ();
9688 #ifdef F77_DUMMY_MAIN
9692 int F77_DUMMY_MAIN() { return 1; }
9697 XineramaQueryExtension ();
9702 rm -f conftest.$ac_objext conftest$ac_exeext
9703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9704 (eval $ac_link) 2>&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } &&
9708 { ac_try='test -s conftest$ac_exeext'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9714 ac_cv_lib_Xext_XineramaQueryExtension=yes
9716 echo "$as_me: failed program was:" >&5
9717 cat conftest.$ac_ext >&5
9718 ac_cv_lib_Xext_XineramaQueryExtension=no
9720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9721 LIBS=$ac_check_lib_save_LIBS
9723 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XineramaQueryExtension" >&5
9724 echo "${ECHO_T}$ac_cv_lib_Xext_XineramaQueryExtension" >&6
9725 if test $ac_cv_lib_Xext_XineramaQueryExtension = yes; then
9731 CPPFLAGS="$ac_save_CPPFLAGS"
9732 LDFLAGS="$ac_save_LDFLAGS"
9733 # LIBS="$ac_save_LIBS"
9736 # if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
9737 if test "$have_xinerama" = no; then
9739 ac_save_CPPFLAGS="$CPPFLAGS"
9740 ac_save_LDFLAGS="$LDFLAGS"
9741 # ac_save_LIBS="$LIBS"
9743 if test \! -z "$includedir" ; then
9744 CPPFLAGS="$CPPFLAGS -I$includedir"
9746 # note: $X_CFLAGS includes $x_includes
9747 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9749 if test \! -z "$libdir" ; then
9750 LDFLAGS="$LDFLAGS -L$libdir"
9752 # note: $X_LIBS includes $x_libraries
9753 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9755 echo "$as_me:$LINENO: checking for XineramaQueryExtension in -lXinerama" >&5
9756 echo $ECHO_N "checking for XineramaQueryExtension in -lXinerama... $ECHO_C" >&6
9757 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 ac_check_lib_save_LIBS=$LIBS
9761 LIBS="-lXinerama -lXext -lX11 $LIBS"
9762 cat >conftest.$ac_ext <<_ACEOF
9763 #line $LINENO "configure"
9764 #include "confdefs.h"
9766 /* Override any gcc2 internal prototype to avoid an error. */
9770 /* We use char because int might match the return type of a gcc2
9771 builtin and then its argument prototype would still apply. */
9772 char XineramaQueryExtension ();
9773 #ifdef F77_DUMMY_MAIN
9777 int F77_DUMMY_MAIN() { return 1; }
9782 XineramaQueryExtension ();
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789 (eval $ac_link) 2>&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } &&
9793 { ac_try='test -s conftest$ac_exeext'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9799 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
9801 echo "$as_me: failed program was:" >&5
9802 cat conftest.$ac_ext >&5
9803 ac_cv_lib_Xinerama_XineramaQueryExtension=no
9805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9806 LIBS=$ac_check_lib_save_LIBS
9808 echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
9809 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6
9810 if test $ac_cv_lib_Xinerama_XineramaQueryExtension = yes; then
9811 have_xinerama=yes; SAVER_LIBS="$SAVER_LIBS -lXinerama"
9816 CPPFLAGS="$ac_save_CPPFLAGS"
9817 LDFLAGS="$ac_save_LDFLAGS"
9818 # LIBS="$ac_save_LIBS"
9823 # if that succeeded, then we've really got it.
9824 if test "$have_xinerama" = yes; then
9825 cat >>confdefs.h <<\_ACEOF
9826 #define HAVE_XINERAMA 1
9831 elif test "$with_xinerama" != no; then
9832 echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
9837 ###############################################################################
9839 # Check for the XF86VMODE server extension (for virtual screens.)
9841 ###############################################################################
9844 with_xf86vmode_req=unspecified
9846 # Check whether --with-xf86vmode-ext or --without-xf86vmode-ext was given.
9847 if test "${with_xf86vmode_ext+set}" = set; then
9848 withval="$with_xf86vmode_ext"
9849 with_xf86vmode="$withval"; with_xf86vmode_req="$withval"
9855 case "$with_xf86vmode" in
9860 echo "$as_me:$LINENO: checking for xf86vmode headers" >&5
9861 echo $ECHO_N "checking for xf86vmode headers... $ECHO_C" >&6
9862 d=$with_xf86vmode/include
9864 X_CFLAGS="-I$d $X_CFLAGS"
9865 echo "$as_me:$LINENO: result: $d" >&5
9866 echo "${ECHO_T}$d" >&6
9868 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9869 echo "${ECHO_T}not found ($d: no such directory)" >&6
9872 echo "$as_me:$LINENO: checking for xf86vmode libs" >&5
9873 echo $ECHO_N "checking for xf86vmode libs... $ECHO_C" >&6
9874 d=$with_xf86vmode/lib
9876 X_LIBS="-L$d $X_LIBS"
9877 echo "$as_me:$LINENO: result: $d" >&5
9878 echo "${ECHO_T}$d" >&6
9880 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9881 echo "${ECHO_T}not found ($d: no such directory)" >&6
9884 # replace the directory string with "yes".
9885 with_xf86vmode_req="yes"
9886 with_xf86vmode=$with_xf86vmode_req
9891 echo "error: argument to --with-xf86vmode-ext must be \"yes\", \"no\", or a directory."
9892 echo " If it is a directory, then \`DIR/include' will be added to"
9893 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9899 if test "$with_xf86vmode" = yes; then
9901 # first check for xf86vmode.h
9903 ac_save_CPPFLAGS="$CPPFLAGS"
9904 if test \! -z "$includedir" ; then
9905 CPPFLAGS="$CPPFLAGS -I$includedir"
9907 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9908 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
9909 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
9910 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9913 cat >conftest.$ac_ext <<_ACEOF
9914 #line $LINENO "configure"
9915 #include "confdefs.h"
9916 #include <X11/Xlib.h>
9918 #include <X11/extensions/xf86vmode.h>
9920 rm -f conftest.$ac_objext
9921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9922 (eval $ac_compile) 2>&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); } &&
9926 { ac_try='test -s conftest.$ac_objext'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; }; then
9932 ac_cv_header_X11_extensions_xf86vmode_h=yes
9934 echo "$as_me: failed program was:" >&5
9935 cat conftest.$ac_ext >&5
9936 ac_cv_header_X11_extensions_xf86vmode_h=no
9938 rm -f conftest.$ac_objext conftest.$ac_ext
9940 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
9941 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
9942 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
9947 CPPFLAGS="$ac_save_CPPFLAGS"
9949 # if that succeeded, then check for the -lXxf86vm
9950 if test "$have_xf86vmode" = yes; then
9953 ac_save_CPPFLAGS="$CPPFLAGS"
9954 ac_save_LDFLAGS="$LDFLAGS"
9955 # ac_save_LIBS="$LIBS"
9957 if test \! -z "$includedir" ; then
9958 CPPFLAGS="$CPPFLAGS -I$includedir"
9960 # note: $X_CFLAGS includes $x_includes
9961 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9963 if test \! -z "$libdir" ; then
9964 LDFLAGS="$LDFLAGS -L$libdir"
9966 # note: $X_LIBS includes $x_libraries
9967 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9969 echo "$as_me:$LINENO: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
9970 echo $ECHO_N "checking for XF86VidModeGetViewPort in -lXxf86vm... $ECHO_C" >&6
9971 if test "${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 ac_check_lib_save_LIBS=$LIBS
9975 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
9976 cat >conftest.$ac_ext <<_ACEOF
9977 #line $LINENO "configure"
9978 #include "confdefs.h"
9980 /* Override any gcc2 internal prototype to avoid an error. */
9984 /* We use char because int might match the return type of a gcc2
9985 builtin and then its argument prototype would still apply. */
9986 char XF86VidModeGetViewPort ();
9987 #ifdef F77_DUMMY_MAIN
9991 int F77_DUMMY_MAIN() { return 1; }
9996 XF86VidModeGetViewPort ();
10001 rm -f conftest.$ac_objext conftest$ac_exeext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10003 (eval $ac_link) 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } &&
10007 { ac_try='test -s conftest$ac_exeext'
10008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009 (eval $ac_try) 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; }; then
10013 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
10015 echo "$as_me: failed program was:" >&5
10016 cat conftest.$ac_ext >&5
10017 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=no
10019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10020 LIBS=$ac_check_lib_save_LIBS
10022 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&5
10023 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6
10024 if test $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort = yes; then
10025 have_xf86vmode=yes; SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
10030 CPPFLAGS="$ac_save_CPPFLAGS"
10031 LDFLAGS="$ac_save_LDFLAGS"
10032 # LIBS="$ac_save_LIBS"
10036 # if that succeeded, then we've really got it.
10037 if test "$have_xf86vmode" = yes; then
10038 cat >>confdefs.h <<\_ACEOF
10039 #define HAVE_XF86VMODE 1
10044 elif test "$with_xf86vmode" != no; then
10045 echo "error: must be yes or no: --with-xf86vmode-ext=$with_xf86vmode"
10050 ###############################################################################
10052 # Check for the XF86VMODE server extension (for gamma fading.)
10054 ###############################################################################
10057 have_xf86gamma_ramp=no
10058 with_xf86gamma_req=unspecified
10060 # Check whether --with-xf86gamma-ext or --without-xf86gamma-ext was given.
10061 if test "${with_xf86gamma_ext+set}" = set; then
10062 withval="$with_xf86gamma_ext"
10063 with_xf86gamma="$withval"; with_xf86gamma_req="$withval"
10069 case "$with_xf86gamma" in
10074 echo "$as_me:$LINENO: checking for xf86gamma headers" >&5
10075 echo $ECHO_N "checking for xf86gamma headers... $ECHO_C" >&6
10076 d=$with_xf86gamma/include
10077 if test -d $d; then
10078 X_CFLAGS="-I$d $X_CFLAGS"
10079 echo "$as_me:$LINENO: result: $d" >&5
10080 echo "${ECHO_T}$d" >&6
10082 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10083 echo "${ECHO_T}not found ($d: no such directory)" >&6
10086 echo "$as_me:$LINENO: checking for xf86gamma libs" >&5
10087 echo $ECHO_N "checking for xf86gamma libs... $ECHO_C" >&6
10088 d=$with_xf86gamma/lib
10089 if test -d $d; then
10090 X_LIBS="-L$d $X_LIBS"
10091 echo "$as_me:$LINENO: result: $d" >&5
10092 echo "${ECHO_T}$d" >&6
10094 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10095 echo "${ECHO_T}not found ($d: no such directory)" >&6
10098 # replace the directory string with "yes".
10099 with_xf86gamma_req="yes"
10100 with_xf86gamma=$with_xf86gamma_req
10105 echo "error: argument to --with-xf86gamma-ext must be \"yes\", \"no\", or a directory."
10106 echo " If it is a directory, then \`DIR/include' will be added to"
10107 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10113 if test "$with_xf86gamma" = yes; then
10115 # first check for xf86vmode.h, if we haven't already
10116 if test "$have_xf86vmode" = yes; then
10120 ac_save_CPPFLAGS="$CPPFLAGS"
10121 if test \! -z "$includedir" ; then
10122 CPPFLAGS="$CPPFLAGS -I$includedir"
10124 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10125 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
10126 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
10127 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10130 cat >conftest.$ac_ext <<_ACEOF
10131 #line $LINENO "configure"
10132 #include "confdefs.h"
10133 #include <X11/Xlib.h>
10135 #include <X11/extensions/xf86vmode.h>
10137 rm -f conftest.$ac_objext
10138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10139 (eval $ac_compile) 2>&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
10143 { ac_try='test -s conftest.$ac_objext'
10144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145 (eval $ac_try) 2>&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); }; }; then
10149 ac_cv_header_X11_extensions_xf86vmode_h=yes
10151 echo "$as_me: failed program was:" >&5
10152 cat conftest.$ac_ext >&5
10153 ac_cv_header_X11_extensions_xf86vmode_h=no
10155 rm -f conftest.$ac_objext conftest.$ac_ext
10157 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
10158 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
10159 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
10164 CPPFLAGS="$ac_save_CPPFLAGS"
10167 # if that succeeded, then check for the -lXxf86vm
10168 if test "$have_xf86gamma" = yes; then
10171 ac_save_CPPFLAGS="$CPPFLAGS"
10172 ac_save_LDFLAGS="$LDFLAGS"
10173 # ac_save_LIBS="$LIBS"
10175 if test \! -z "$includedir" ; then
10176 CPPFLAGS="$CPPFLAGS -I$includedir"
10178 # note: $X_CFLAGS includes $x_includes
10179 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10181 if test \! -z "$libdir" ; then
10182 LDFLAGS="$LDFLAGS -L$libdir"
10184 # note: $X_LIBS includes $x_libraries
10185 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10187 echo "$as_me:$LINENO: checking for XF86VidModeSetGamma in -lXxf86vm" >&5
10188 echo $ECHO_N "checking for XF86VidModeSetGamma in -lXxf86vm... $ECHO_C" >&6
10189 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGamma+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 ac_check_lib_save_LIBS=$LIBS
10193 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
10194 cat >conftest.$ac_ext <<_ACEOF
10195 #line $LINENO "configure"
10196 #include "confdefs.h"
10198 /* Override any gcc2 internal prototype to avoid an error. */
10202 /* We use char because int might match the return type of a gcc2
10203 builtin and then its argument prototype would still apply. */
10204 char XF86VidModeSetGamma ();
10205 #ifdef F77_DUMMY_MAIN
10206 # ifdef __cplusplus
10209 int F77_DUMMY_MAIN() { return 1; }
10214 XF86VidModeSetGamma ();
10219 rm -f conftest.$ac_objext conftest$ac_exeext
10220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10221 (eval $ac_link) 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } &&
10225 { ac_try='test -s conftest$ac_exeext'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
10231 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=yes
10233 echo "$as_me: failed program was:" >&5
10234 cat conftest.$ac_ext >&5
10235 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=no
10237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10238 LIBS=$ac_check_lib_save_LIBS
10240 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&5
10241 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&6
10242 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma = yes; then
10248 CPPFLAGS="$ac_save_CPPFLAGS"
10249 LDFLAGS="$ac_save_LDFLAGS"
10250 # LIBS="$ac_save_LIBS"
10254 # check for the Ramp versions of the functions too.
10255 if test "$have_xf86gamma" = yes; then
10256 have_xf86gamma_ramp=no
10258 ac_save_CPPFLAGS="$CPPFLAGS"
10259 ac_save_LDFLAGS="$LDFLAGS"
10260 # ac_save_LIBS="$LIBS"
10262 if test \! -z "$includedir" ; then
10263 CPPFLAGS="$CPPFLAGS -I$includedir"
10265 # note: $X_CFLAGS includes $x_includes
10266 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10268 if test \! -z "$libdir" ; then
10269 LDFLAGS="$LDFLAGS -L$libdir"
10271 # note: $X_LIBS includes $x_libraries
10272 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10274 echo "$as_me:$LINENO: checking for XF86VidModeSetGammaRamp in -lXxf86vm" >&5
10275 echo $ECHO_N "checking for XF86VidModeSetGammaRamp in -lXxf86vm... $ECHO_C" >&6
10276 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10279 ac_check_lib_save_LIBS=$LIBS
10280 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
10281 cat >conftest.$ac_ext <<_ACEOF
10282 #line $LINENO "configure"
10283 #include "confdefs.h"
10285 /* Override any gcc2 internal prototype to avoid an error. */
10289 /* We use char because int might match the return type of a gcc2
10290 builtin and then its argument prototype would still apply. */
10291 char XF86VidModeSetGammaRamp ();
10292 #ifdef F77_DUMMY_MAIN
10293 # ifdef __cplusplus
10296 int F77_DUMMY_MAIN() { return 1; }
10301 XF86VidModeSetGammaRamp ();
10306 rm -f conftest.$ac_objext conftest$ac_exeext
10307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10308 (eval $ac_link) 2>&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } &&
10312 { ac_try='test -s conftest$ac_exeext'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
10318 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=yes
10320 echo "$as_me: failed program was:" >&5
10321 cat conftest.$ac_ext >&5
10322 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=no
10324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10325 LIBS=$ac_check_lib_save_LIBS
10327 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&5
10328 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&6
10329 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp = yes; then
10330 have_xf86gamma_ramp=yes
10335 CPPFLAGS="$ac_save_CPPFLAGS"
10336 LDFLAGS="$ac_save_LDFLAGS"
10337 # LIBS="$ac_save_LIBS"
10341 # if those tests succeeded, then we've really got the functions.
10342 if test "$have_xf86gamma" = yes; then
10343 cat >>confdefs.h <<\_ACEOF
10344 #define HAVE_XF86VMODE_GAMMA 1
10349 if test "$have_xf86gamma_ramp" = yes; then
10350 cat >>confdefs.h <<\_ACEOF
10351 #define HAVE_XF86VMODE_GAMMA_RAMP 1
10356 # pull in the lib, if we haven't already
10357 if test "$have_xf86gamma" = yes -a "$have_xf86vmode" = no; then
10358 SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
10361 elif test "$with_xf86gamma" != no; then
10362 echo "error: must be yes or no: --with-xf86gamma-ext=$with_xf86vmode"
10367 ###############################################################################
10369 # Check for HP XHPDisableReset and XHPEnableReset.
10371 ###############################################################################
10374 ac_save_CPPFLAGS="$CPPFLAGS"
10375 if test \! -z "$includedir" ; then
10376 CPPFLAGS="$CPPFLAGS -I$includedir"
10378 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10379 cat >conftest.$ac_ext <<_ACEOF
10380 #line $LINENO "configure"
10381 #include "confdefs.h"
10382 #include <X11/XHPlib.h>
10385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10386 egrep "XHPDisableReset" >/dev/null 2>&1; then
10387 cat >>confdefs.h <<\_ACEOF
10388 #define HAVE_XHPDISABLERESET 1
10391 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
10395 CPPFLAGS="$ac_save_CPPFLAGS"
10398 ###############################################################################
10400 # Check for /proc/interrupts.
10402 ###############################################################################
10404 have_proc_interrupts=no
10405 with_proc_interrupts_req=unspecified
10407 # Check whether --with-proc-interrupts or --without-proc-interrupts was given.
10408 if test "${with_proc_interrupts+set}" = set; then
10409 withval="$with_proc_interrupts"
10410 with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
10412 with_proc_interrupts=yes
10415 if test "$with_proc_interrupts" = yes; then
10417 echo "$as_me:$LINENO: checking whether /proc/interrupts contains keyboard data" >&5
10418 echo $ECHO_N "checking whether /proc/interrupts contains keyboard data... $ECHO_C" >&6
10419 if test "${ac_cv_have_proc_interrupts+set}" = set; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 ac_cv_have_proc_interrupts=no
10423 if grep keyboard /proc/interrupts >/dev/null 2>&1 ; then
10424 ac_cv_have_proc_interrupts=yes
10428 echo "$as_me:$LINENO: result: $ac_cv_have_proc_interrupts" >&5
10429 echo "${ECHO_T}$ac_cv_have_proc_interrupts" >&6
10430 have_proc_interrupts=$ac_cv_have_proc_interrupts
10432 if test "$have_proc_interrupts" = yes; then
10433 cat >>confdefs.h <<\_ACEOF
10434 #define HAVE_PROC_INTERRUPTS 1
10439 elif test "$with_proc_interrupts" != no; then
10440 echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
10445 ###############################################################################
10447 # The --enable-locking option
10449 ###############################################################################
10451 # Check whether --enable-locking or --disable-locking was given.
10452 if test "${enable_locking+set}" = set; then
10453 enableval="$enable_locking"
10454 enable_locking="$enableval"
10458 if test "$enable_locking" = yes; then
10460 elif test "$enable_locking" = no; then
10461 cat >>confdefs.h <<\_ACEOF
10462 #define NO_LOCKING 1
10466 echo "error: must be yes or no: --enable-locking=$enable_locking"
10472 ###############################################################################
10474 # The --enable-vt-locking option
10476 ###############################################################################
10478 #ac_vt_lockswitch=no
10479 #AC_ARG_ENABLE(vt-locking,[
10480 # --enable-vt-locking Compile in support for locking Virtual Terminals.
10481 # This is the default if the system supports it, and
10482 # if locking support is included (--enable-locking.)
10483 # --disable-vt-locking Do not allow locking of VTs, even if locking is
10485 # [enable_vt_locking="$enableval"],[enable_vt_locking=yes])
10486 #if test "$enable_vt_locking" = yes; then
10488 # AC_CACHE_CHECK([for the VT_LOCKSWITCH ioctl], ac_cv_vt_lockswitch,
10489 # [AC_TRY_COMPILE([#include <fcntl.h>
10490 # #include <sys/ioctl.h>
10491 # #include <sys/vt.h>],
10492 # [int x = VT_LOCKSWITCH; int y = VT_UNLOCKSWITCH;],
10493 # [ac_cv_vt_lockswitch=yes],
10494 # [ac_cv_vt_lockswitch=no])])
10495 # ac_vt_lockswitch=$ac_cv_vt_lockswitch
10497 #elif test "$enable_vt_locking" = no; then
10500 # echo "error: must be yes or no: --enable-vt-locking=$enable_vt_locking"
10504 #if test "$ac_vt_lockswitch" = yes; then
10505 # AC_DEFINE(HAVE_VT_LOCKSWITCH)
10506 # # the VT_LOCKSWITCH ioctl can only be used when running as root.
10507 # # #### but it doesn't work yet, so don't worry about that for now.
10513 ###############################################################################
10517 ###############################################################################
10521 # Solaris systems tend to come with PAM misconfigured.
10522 # Don't build it by default, even if the headers exist.
10523 with_pam_default=no
10526 # Default to building PAM support on all other systems, if it exists.
10527 with_pam_default=yes
10532 with_pam_req=unspecified
10535 # Check whether --with-pam or --without-pam was given.
10536 if test "${with_pam+set}" = set; then
10537 withval="$with_pam"
10538 with_pam="$withval"; with_pam_req="$withval"
10540 with_pam=$with_pam_default
10544 case "$with_pam" in
10549 echo "$as_me:$LINENO: checking for PAM headers" >&5
10550 echo $ECHO_N "checking for PAM headers... $ECHO_C" >&6
10551 d=$with_pam/include
10552 if test -d $d; then
10553 X_CFLAGS="-I$d $X_CFLAGS"
10554 echo "$as_me:$LINENO: result: $d" >&5
10555 echo "${ECHO_T}$d" >&6
10557 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10558 echo "${ECHO_T}not found ($d: no such directory)" >&6
10561 echo "$as_me:$LINENO: checking for PAM libs" >&5
10562 echo $ECHO_N "checking for PAM libs... $ECHO_C" >&6
10564 if test -d $d; then
10565 X_LIBS="-L$d $X_LIBS"
10566 echo "$as_me:$LINENO: result: $d" >&5
10567 echo "${ECHO_T}$d" >&6
10569 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10570 echo "${ECHO_T}not found ($d: no such directory)" >&6
10573 # replace the directory string with "yes".
10575 with_pam=$with_pam_req
10580 echo "error: argument to --with-pam must be \"yes\", \"no\", or a directory."
10581 echo " If it is a directory, then \`DIR/include' will be added to"
10582 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10588 if test "$enable_locking" = yes -a "$with_pam" = yes; then
10589 echo "$as_me:$LINENO: checking for PAM" >&5
10590 echo $ECHO_N "checking for PAM... $ECHO_C" >&6
10591 if test "${ac_cv_pam+set}" = set; then
10592 echo $ECHO_N "(cached) $ECHO_C" >&6
10595 ac_save_CPPFLAGS="$CPPFLAGS"
10596 if test \! -z "$includedir" ; then
10597 CPPFLAGS="$CPPFLAGS -I$includedir"
10599 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10600 cat >conftest.$ac_ext <<_ACEOF
10601 #line $LINENO "configure"
10602 #include "confdefs.h"
10603 #include <security/pam_appl.h>
10604 #ifdef F77_DUMMY_MAIN
10605 # ifdef __cplusplus
10608 int F77_DUMMY_MAIN() { return 1; }
10618 rm -f conftest.$ac_objext
10619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10620 (eval $ac_compile) 2>&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } &&
10624 { ac_try='test -s conftest.$ac_objext'
10625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626 (eval $ac_try) 2>&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; }; then
10632 echo "$as_me: failed program was:" >&5
10633 cat conftest.$ac_ext >&5
10636 rm -f conftest.$ac_objext conftest.$ac_ext
10637 CPPFLAGS="$ac_save_CPPFLAGS"
10639 echo "$as_me:$LINENO: result: $ac_cv_pam" >&5
10640 echo "${ECHO_T}$ac_cv_pam" >&6
10641 if test "$ac_cv_pam" = yes ; then
10643 cat >>confdefs.h <<\_ACEOF
10647 PASSWD_LIBS="${PASSWD_LIBS} -lpam"
10649 # libpam typically requires dlopen and dlsym. On FreeBSD,
10650 # those are in libc. On Linux and Solaris, they're in libdl.
10651 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10652 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10653 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10656 ac_check_lib_save_LIBS=$LIBS
10658 cat >conftest.$ac_ext <<_ACEOF
10659 #line $LINENO "configure"
10660 #include "confdefs.h"
10662 /* Override any gcc2 internal prototype to avoid an error. */
10666 /* We use char because int might match the return type of a gcc2
10667 builtin and then its argument prototype would still apply. */
10669 #ifdef F77_DUMMY_MAIN
10670 # ifdef __cplusplus
10673 int F77_DUMMY_MAIN() { return 1; }
10683 rm -f conftest.$ac_objext conftest$ac_exeext
10684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10685 (eval $ac_link) 2>&5
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); } &&
10689 { ac_try='test -s conftest$ac_exeext'
10690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691 (eval $ac_try) 2>&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; }; then
10695 ac_cv_lib_dl_dlopen=yes
10697 echo "$as_me: failed program was:" >&5
10698 cat conftest.$ac_ext >&5
10699 ac_cv_lib_dl_dlopen=no
10701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10702 LIBS=$ac_check_lib_save_LIBS
10704 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10705 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10706 if test $ac_cv_lib_dl_dlopen = yes; then
10707 PASSWD_LIBS="${PASSWD_LIBS} -ldl"
10711 echo "$as_me:$LINENO: checking how to call pam_strerror" >&5
10712 echo $ECHO_N "checking how to call pam_strerror... $ECHO_C" >&6
10713 if test "${ac_cv_pam_strerror_args+set}" = set; then
10714 echo $ECHO_N "(cached) $ECHO_C" >&6
10716 cat >conftest.$ac_ext <<_ACEOF
10717 #line $LINENO "configure"
10718 #include "confdefs.h"
10720 #include <stdlib.h>
10721 #include <security/pam_appl.h>
10722 #ifdef F77_DUMMY_MAIN
10723 # ifdef __cplusplus
10726 int F77_DUMMY_MAIN() { return 1; }
10731 pam_handle_t *pamh = 0;
10732 char *s = pam_strerror(pamh, PAM_SUCCESS);
10737 rm -f conftest.$ac_objext
10738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10739 (eval $ac_compile) 2>&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } &&
10743 { ac_try='test -s conftest.$ac_objext'
10744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745 (eval $ac_try) 2>&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); }; }; then
10749 ac_pam_strerror_args=2
10751 echo "$as_me: failed program was:" >&5
10752 cat conftest.$ac_ext >&5
10753 cat >conftest.$ac_ext <<_ACEOF
10754 #line $LINENO "configure"
10755 #include "confdefs.h"
10757 #include <stdlib.h>
10758 #include <security/pam_appl.h>
10759 #ifdef F77_DUMMY_MAIN
10760 # ifdef __cplusplus
10763 int F77_DUMMY_MAIN() { return 1; }
10769 pam_strerror(PAM_SUCCESS);
10774 rm -f conftest.$ac_objext
10775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10776 (eval $ac_compile) 2>&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } &&
10780 { ac_try='test -s conftest.$ac_objext'
10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; }; then
10786 ac_pam_strerror_args=1
10788 echo "$as_me: failed program was:" >&5
10789 cat conftest.$ac_ext >&5
10790 ac_pam_strerror_args=0
10792 rm -f conftest.$ac_objext conftest.$ac_ext
10794 rm -f conftest.$ac_objext conftest.$ac_ext
10795 ac_cv_pam_strerror_args=$ac_pam_strerror_args
10798 ac_pam_strerror_args=$ac_cv_pam_strerror_args
10799 if test "$ac_pam_strerror_args" = 1 ; then
10800 echo "$as_me:$LINENO: result: one argument" >&5
10801 echo "${ECHO_T}one argument" >&6
10802 elif test "$ac_pam_strerror_args" = 2 ; then
10803 cat >>confdefs.h <<\_ACEOF
10804 #define PAM_STRERROR_TWO_ARGS 1
10807 echo "$as_me:$LINENO: result: two arguments" >&5
10808 echo "${ECHO_T}two arguments" >&6
10810 echo "$as_me:$LINENO: result: unknown" >&5
10811 echo "${ECHO_T}unknown" >&6
10817 ###############################################################################
10819 # Check for Kerberos.
10821 ###############################################################################
10825 with_kerberos_req=unspecified
10828 # Check whether --with-kerberos or --without-kerberos was given.
10829 if test "${with_kerberos+set}" = set; then
10830 withval="$with_kerberos"
10831 with_kerberos="$withval"; with_kerberos_req="$withval"
10837 case "$with_kerberos" in
10842 echo "$as_me:$LINENO: checking for Kerberos headers" >&5
10843 echo $ECHO_N "checking for Kerberos headers... $ECHO_C" >&6
10844 d=$with_kerberos/include
10845 if test -d $d; then
10846 X_CFLAGS="-I$d $X_CFLAGS"
10847 echo "$as_me:$LINENO: result: $d" >&5
10848 echo "${ECHO_T}$d" >&6
10850 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10851 echo "${ECHO_T}not found ($d: no such directory)" >&6
10854 echo "$as_me:$LINENO: checking for Kerberos libs" >&5
10855 echo $ECHO_N "checking for Kerberos libs... $ECHO_C" >&6
10856 d=$with_kerberos/lib
10857 if test -d $d; then
10858 X_LIBS="-L$d $X_LIBS"
10859 echo "$as_me:$LINENO: result: $d" >&5
10860 echo "${ECHO_T}$d" >&6
10862 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10863 echo "${ECHO_T}not found ($d: no such directory)" >&6
10866 # replace the directory string with "yes".
10867 with_kerberos_req="yes"
10868 with_kerberos=$with_kerberos_req
10873 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
10874 echo " If it is a directory, then \`DIR/include' will be added to"
10875 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10881 if test "$enable_locking" = yes -a "$with_kerberos" = yes; then
10882 echo "$as_me:$LINENO: checking for Kerberos 4" >&5
10883 echo $ECHO_N "checking for Kerberos 4... $ECHO_C" >&6
10884 if test "${ac_cv_kerberos+set}" = set; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10888 ac_save_CPPFLAGS="$CPPFLAGS"
10889 if test \! -z "$includedir" ; then
10890 CPPFLAGS="$CPPFLAGS -I$includedir"
10892 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10893 cat >conftest.$ac_ext <<_ACEOF
10894 #line $LINENO "configure"
10895 #include "confdefs.h"
10897 #ifdef F77_DUMMY_MAIN
10898 # ifdef __cplusplus
10901 int F77_DUMMY_MAIN() { return 1; }
10911 rm -f conftest.$ac_objext
10912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10913 (eval $ac_compile) 2>&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } &&
10917 { ac_try='test -s conftest.$ac_objext'
10918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919 (eval $ac_try) 2>&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; }; then
10925 echo "$as_me: failed program was:" >&5
10926 cat conftest.$ac_ext >&5
10929 rm -f conftest.$ac_objext conftest.$ac_ext
10930 CPPFLAGS="$ac_save_CPPFLAGS"
10932 echo "$as_me:$LINENO: result: $ac_cv_kerberos" >&5
10933 echo "${ECHO_T}$ac_cv_kerberos" >&6
10934 echo "$as_me:$LINENO: checking for Kerberos 5" >&5
10935 echo $ECHO_N "checking for Kerberos 5... $ECHO_C" >&6
10936 if test "${ac_cv_kerberos5+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 ac_save_CPPFLAGS="$CPPFLAGS"
10941 if test \! -z "$includedir" ; then
10942 CPPFLAGS="$CPPFLAGS -I$includedir"
10944 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10945 cat >conftest.$ac_ext <<_ACEOF
10946 #line $LINENO "configure"
10947 #include "confdefs.h"
10948 #include <kerberosIV/krb.h>
10949 #ifdef F77_DUMMY_MAIN
10950 # ifdef __cplusplus
10953 int F77_DUMMY_MAIN() { return 1; }
10963 rm -f conftest.$ac_objext
10964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10965 (eval $ac_compile) 2>&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } &&
10969 { ac_try='test -s conftest.$ac_objext'
10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971 (eval $ac_try) 2>&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; }; then
10975 ac_cv_kerberos5=yes
10977 echo "$as_me: failed program was:" >&5
10978 cat conftest.$ac_ext >&5
10981 rm -f conftest.$ac_objext conftest.$ac_ext
10982 CPPFLAGS="$ac_save_CPPFLAGS"
10984 echo "$as_me:$LINENO: result: $ac_cv_kerberos5" >&5
10985 echo "${ECHO_T}$ac_cv_kerberos5" >&6
10987 if test "$ac_cv_kerberos" = yes ; then
10989 cat >>confdefs.h <<\_ACEOF
10990 #define HAVE_KERBEROS 1
10995 if test "$ac_cv_kerberos5" = yes ; then
10998 cat >>confdefs.h <<\_ACEOF
10999 #define HAVE_KERBEROS 1
11002 cat >>confdefs.h <<\_ACEOF
11003 #define HAVE_KERBEROS5 1
11008 if test "$have_kerberos5" = yes ; then
11009 # from Matt Knopp <mhat@infocalypse.netlag.com>
11010 # (who got it from amu@mit.edu)
11011 PASSWD_LIBS="$PASSWD_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcrypt -lcom_err"
11012 elif test "$have_kerberos" = yes ; then
11013 # from Tim Showalter <tjs@psaux.com> for FreeBSD 4.2
11014 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
11017 if test "$have_kerberos" = yes ; then
11018 echo "$as_me:$LINENO: checking for res_search" >&5
11019 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
11020 if test "${ac_cv_func_res_search+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11023 cat >conftest.$ac_ext <<_ACEOF
11024 #line $LINENO "configure"
11025 #include "confdefs.h"
11026 /* System header to define __stub macros and hopefully few prototypes,
11027 which can conflict with char res_search (); below. */
11028 #include <assert.h>
11029 /* Override any gcc2 internal prototype to avoid an error. */
11033 /* We use char because int might match the return type of a gcc2
11034 builtin and then its argument prototype would still apply. */
11035 char res_search ();
11038 #ifdef F77_DUMMY_MAIN
11039 # ifdef __cplusplus
11042 int F77_DUMMY_MAIN() { return 1; }
11047 /* The GNU C library defines this for functions which it implements
11048 to always fail with ENOSYS. Some functions are actually named
11049 something starting with __ and the normal name is an alias. */
11050 #if defined (__stub_res_search) || defined (__stub___res_search)
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11062 (eval $ac_link) 2>&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } &&
11066 { ac_try='test -s conftest$ac_exeext'
11067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068 (eval $ac_try) 2>&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; }; then
11072 ac_cv_func_res_search=yes
11074 echo "$as_me: failed program was:" >&5
11075 cat conftest.$ac_ext >&5
11076 ac_cv_func_res_search=no
11078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11080 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
11081 echo "${ECHO_T}$ac_cv_func_res_search" >&6
11082 if test $ac_cv_func_res_search = yes; then
11085 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
11086 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
11087 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11090 ac_check_lib_save_LIBS=$LIBS
11091 LIBS="-lresolv $LIBS"
11092 cat >conftest.$ac_ext <<_ACEOF
11093 #line $LINENO "configure"
11094 #include "confdefs.h"
11096 /* Override any gcc2 internal prototype to avoid an error. */
11100 /* We use char because int might match the return type of a gcc2
11101 builtin and then its argument prototype would still apply. */
11102 char res_search ();
11103 #ifdef F77_DUMMY_MAIN
11104 # ifdef __cplusplus
11107 int F77_DUMMY_MAIN() { return 1; }
11117 rm -f conftest.$ac_objext conftest$ac_exeext
11118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11119 (eval $ac_link) 2>&5
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); } &&
11123 { ac_try='test -s conftest$ac_exeext'
11124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125 (eval $ac_try) 2>&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); }; }; then
11129 ac_cv_lib_resolv_res_search=yes
11131 echo "$as_me: failed program was:" >&5
11132 cat conftest.$ac_ext >&5
11133 ac_cv_lib_resolv_res_search=no
11135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11136 LIBS=$ac_check_lib_save_LIBS
11138 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
11139 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
11140 if test $ac_cv_lib_resolv_res_search = yes; then
11141 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
11143 { echo "$as_me:$LINENO: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&5
11144 echo "$as_me: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&2;}
11154 ###############################################################################
11156 # Check for the nine billion variants of shadow passwords...
11158 ###############################################################################
11163 with_shadow_req=unspecified
11166 # Check whether --with-shadow or --without-shadow was given.
11167 if test "${with_shadow+set}" = set; then
11168 withval="$with_shadow"
11169 with_shadow="$withval"; with_shadow_req="$withval"
11175 case "$with_shadow" in
11180 echo "$as_me:$LINENO: checking for shadow password headers" >&5
11181 echo $ECHO_N "checking for shadow password headers... $ECHO_C" >&6
11182 d=$with_shadow/include
11183 if test -d $d; then
11184 X_CFLAGS="-I$d $X_CFLAGS"
11185 echo "$as_me:$LINENO: result: $d" >&5
11186 echo "${ECHO_T}$d" >&6
11188 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11189 echo "${ECHO_T}not found ($d: no such directory)" >&6
11192 echo "$as_me:$LINENO: checking for shadow password libs" >&5
11193 echo $ECHO_N "checking for shadow password libs... $ECHO_C" >&6
11195 if test -d $d; then
11196 X_LIBS="-L$d $X_LIBS"
11197 echo "$as_me:$LINENO: result: $d" >&5
11198 echo "${ECHO_T}$d" >&6
11200 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11201 echo "${ECHO_T}not found ($d: no such directory)" >&6
11204 # replace the directory string with "yes".
11205 with_shadow_req="yes"
11206 with_shadow=$with_shadow_req
11211 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
11212 echo " If it is a directory, then \`DIR/include' will be added to"
11213 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11219 if test "$enable_locking" = no ; then
11225 ###############################################################################
11227 # Check for Sun "adjunct" passwords.
11229 ###############################################################################
11231 if test "$with_shadow" = yes ; then
11232 echo "$as_me:$LINENO: checking for Sun-style shadow passwords" >&5
11233 echo $ECHO_N "checking for Sun-style shadow passwords... $ECHO_C" >&6
11234 if test "${ac_cv_sun_adjunct+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11238 ac_save_CPPFLAGS="$CPPFLAGS"
11239 if test \! -z "$includedir" ; then
11240 CPPFLAGS="$CPPFLAGS -I$includedir"
11242 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11243 cat >conftest.$ac_ext <<_ACEOF
11244 #line $LINENO "configure"
11245 #include "confdefs.h"
11246 #include <stdlib.h>
11247 #include <unistd.h>
11248 #include <sys/types.h>
11249 #include <sys/label.h>
11250 #include <sys/audit.h>
11251 #include <pwdadj.h>
11252 #ifdef F77_DUMMY_MAIN
11253 # ifdef __cplusplus
11256 int F77_DUMMY_MAIN() { return 1; }
11261 struct passwd_adjunct *p = getpwanam("nobody");
11262 const char *pw = p->pwa_passwd;
11267 rm -f conftest.$ac_objext
11268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11269 (eval $ac_compile) 2>&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } &&
11273 { ac_try='test -s conftest.$ac_objext'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; }; then
11279 ac_cv_sun_adjunct=yes
11281 echo "$as_me: failed program was:" >&5
11282 cat conftest.$ac_ext >&5
11283 ac_cv_sun_adjunct=no
11285 rm -f conftest.$ac_objext conftest.$ac_ext
11286 CPPFLAGS="$ac_save_CPPFLAGS"
11288 echo "$as_me:$LINENO: result: $ac_cv_sun_adjunct" >&5
11289 echo "${ECHO_T}$ac_cv_sun_adjunct" >&6
11290 if test "$ac_cv_sun_adjunct" = yes; then
11291 have_shadow_adjunct=yes
11298 ###############################################################################
11300 # Check for DEC and SCO so-called "enhanced" security.
11302 ###############################################################################
11304 if test "$with_shadow" = yes ; then
11305 echo "$as_me:$LINENO: checking for DEC-style shadow passwords" >&5
11306 echo $ECHO_N "checking for DEC-style shadow passwords... $ECHO_C" >&6
11307 if test "${ac_cv_enhanced_passwd+set}" = set; then
11308 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 ac_save_CPPFLAGS="$CPPFLAGS"
11312 if test \! -z "$includedir" ; then
11313 CPPFLAGS="$CPPFLAGS -I$includedir"
11315 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11316 cat >conftest.$ac_ext <<_ACEOF
11317 #line $LINENO "configure"
11318 #include "confdefs.h"
11319 #include <stdlib.h>
11320 #include <unistd.h>
11321 #include <sys/types.h>
11323 #include <sys/security.h>
11325 #ifdef F77_DUMMY_MAIN
11326 # ifdef __cplusplus
11329 int F77_DUMMY_MAIN() { return 1; }
11334 struct pr_passwd *p;
11336 set_auth_parameters(0, 0);
11337 check_auth_parameters();
11338 p = getprpwnam("nobody");
11339 pw = p->ufld.fd_encrypt;
11344 rm -f conftest.$ac_objext
11345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11346 (eval $ac_compile) 2>&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } &&
11350 { ac_try='test -s conftest.$ac_objext'
11351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352 (eval $ac_try) 2>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; }; then
11356 ac_cv_enhanced_passwd=yes
11358 echo "$as_me: failed program was:" >&5
11359 cat conftest.$ac_ext >&5
11360 ac_cv_enhanced_passwd=no
11362 rm -f conftest.$ac_objext conftest.$ac_ext
11363 CPPFLAGS="$ac_save_CPPFLAGS"
11365 echo "$as_me:$LINENO: result: $ac_cv_enhanced_passwd" >&5
11366 echo "${ECHO_T}$ac_cv_enhanced_passwd" >&6
11367 if test $ac_cv_enhanced_passwd = yes; then
11368 have_shadow_enhanced=yes
11372 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
11373 # (I'm told it needs -lcurses too, but I don't understand why.)
11374 # But on DEC, it's in -lsecurity.
11376 echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
11377 echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
11378 if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11381 ac_check_lib_save_LIBS=$LIBS
11382 LIBS="-lprot -lx $LIBS"
11383 cat >conftest.$ac_ext <<_ACEOF
11384 #line $LINENO "configure"
11385 #include "confdefs.h"
11387 /* Override any gcc2 internal prototype to avoid an error. */
11391 /* We use char because int might match the return type of a gcc2
11392 builtin and then its argument prototype would still apply. */
11393 char getprpwnam ();
11394 #ifdef F77_DUMMY_MAIN
11395 # ifdef __cplusplus
11398 int F77_DUMMY_MAIN() { return 1; }
11408 rm -f conftest.$ac_objext conftest$ac_exeext
11409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11410 (eval $ac_link) 2>&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } &&
11414 { ac_try='test -s conftest$ac_exeext'
11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); }; }; then
11420 ac_cv_lib_prot_getprpwnam=yes
11422 echo "$as_me: failed program was:" >&5
11423 cat conftest.$ac_ext >&5
11424 ac_cv_lib_prot_getprpwnam=no
11426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11427 LIBS=$ac_check_lib_save_LIBS
11429 echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
11430 echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
11431 if test $ac_cv_lib_prot_getprpwnam = yes; then
11432 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
11434 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
11435 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
11436 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11439 ac_check_lib_save_LIBS=$LIBS
11440 LIBS="-lsecurity $LIBS"
11441 cat >conftest.$ac_ext <<_ACEOF
11442 #line $LINENO "configure"
11443 #include "confdefs.h"
11445 /* Override any gcc2 internal prototype to avoid an error. */
11449 /* We use char because int might match the return type of a gcc2
11450 builtin and then its argument prototype would still apply. */
11451 char getprpwnam ();
11452 #ifdef F77_DUMMY_MAIN
11453 # ifdef __cplusplus
11456 int F77_DUMMY_MAIN() { return 1; }
11466 rm -f conftest.$ac_objext conftest$ac_exeext
11467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11468 (eval $ac_link) 2>&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } &&
11472 { ac_try='test -s conftest$ac_exeext'
11473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474 (eval $ac_try) 2>&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; }; then
11478 ac_cv_lib_security_getprpwnam=yes
11480 echo "$as_me: failed program was:" >&5
11481 cat conftest.$ac_ext >&5
11482 ac_cv_lib_security_getprpwnam=no
11484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11485 LIBS=$ac_check_lib_save_LIBS
11487 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
11488 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
11489 if test $ac_cv_lib_security_getprpwnam = yes; then
11490 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
11498 ###############################################################################
11500 # Check for HP's entry in the "Not Invented Here" Sweepstakes.
11502 ###############################################################################
11504 if test "$with_shadow" = yes ; then
11505 echo "$as_me:$LINENO: checking for HP-style shadow passwords" >&5
11506 echo $ECHO_N "checking for HP-style shadow passwords... $ECHO_C" >&6
11507 if test "${ac_cv_hpux_passwd+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11511 ac_save_CPPFLAGS="$CPPFLAGS"
11512 if test \! -z "$includedir" ; then
11513 CPPFLAGS="$CPPFLAGS -I$includedir"
11515 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11516 cat >conftest.$ac_ext <<_ACEOF
11517 #line $LINENO "configure"
11518 #include "confdefs.h"
11519 #include <stdlib.h>
11520 #include <unistd.h>
11521 #include <sys/types.h>
11523 #include <hpsecurity.h>
11525 #ifdef F77_DUMMY_MAIN
11526 # ifdef __cplusplus
11529 int F77_DUMMY_MAIN() { return 1; }
11534 struct s_passwd *p = getspwnam("nobody");
11535 const char *pw = p->pw_passwd;
11540 rm -f conftest.$ac_objext
11541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11542 (eval $ac_compile) 2>&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } &&
11546 { ac_try='test -s conftest.$ac_objext'
11547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; }; then
11552 ac_cv_hpux_passwd=yes
11554 echo "$as_me: failed program was:" >&5
11555 cat conftest.$ac_ext >&5
11556 ac_cv_hpux_passwd=no
11558 rm -f conftest.$ac_objext conftest.$ac_ext
11559 CPPFLAGS="$ac_save_CPPFLAGS"
11561 echo "$as_me:$LINENO: result: $ac_cv_hpux_passwd" >&5
11562 echo "${ECHO_T}$ac_cv_hpux_passwd" >&6
11563 if test "$ac_cv_hpux_passwd" = yes; then
11564 have_shadow_hpux=yes
11568 # on HPUX, bigcrypt is in -lsec
11569 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
11570 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
11571 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11574 ac_check_lib_save_LIBS=$LIBS
11576 cat >conftest.$ac_ext <<_ACEOF
11577 #line $LINENO "configure"
11578 #include "confdefs.h"
11580 /* Override any gcc2 internal prototype to avoid an error. */
11584 /* We use char because int might match the return type of a gcc2
11585 builtin and then its argument prototype would still apply. */
11587 #ifdef F77_DUMMY_MAIN
11588 # ifdef __cplusplus
11591 int F77_DUMMY_MAIN() { return 1; }
11601 rm -f conftest.$ac_objext conftest$ac_exeext
11602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11603 (eval $ac_link) 2>&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } &&
11607 { ac_try='test -s conftest$ac_exeext'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; }; then
11613 ac_cv_lib_sec_bigcrypt=yes
11615 echo "$as_me: failed program was:" >&5
11616 cat conftest.$ac_ext >&5
11617 ac_cv_lib_sec_bigcrypt=no
11619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11620 LIBS=$ac_check_lib_save_LIBS
11622 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
11623 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
11624 if test $ac_cv_lib_sec_bigcrypt = yes; then
11625 PASSWD_LIBS="$PASSWD_LIBS -lsec"
11632 ###############################################################################
11634 # Check for FreeBSD-style shadow passwords.
11636 # On FreeBSD, getpwnam() and friends work just like on non-shadow-
11637 # password systems -- except you only get stuff in the pw_passwd field
11638 # if the running program is setuid. So, guess that we've got this
11639 # lossage to contend with if /etc/master.passwd exists, and default to
11640 # a setuid installation.
11642 ###############################################################################
11644 if test "$with_shadow" = yes ; then
11645 echo "$as_me:$LINENO: checking for FreeBSD-style shadow passwords" >&5
11646 echo $ECHO_N "checking for FreeBSD-style shadow passwords... $ECHO_C" >&6
11647 if test "${ac_cv_master_passwd+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11650 if test -f /etc/master.passwd ; then
11651 ac_cv_master_passwd=yes
11653 ac_cv_master_passwd=no
11656 echo "$as_me:$LINENO: result: $ac_cv_master_passwd" >&5
11657 echo "${ECHO_T}$ac_cv_master_passwd" >&6
11658 if test "$ac_cv_master_passwd" = yes; then
11664 ###############################################################################
11666 # Check for traditional (ha!) shadow passwords.
11668 ###############################################################################
11670 if test "$with_shadow" = yes ; then
11671 echo "$as_me:$LINENO: checking for generic shadow passwords" >&5
11672 echo $ECHO_N "checking for generic shadow passwords... $ECHO_C" >&6
11673 if test "${ac_cv_shadow+set}" = set; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11677 ac_save_CPPFLAGS="$CPPFLAGS"
11678 if test \! -z "$includedir" ; then
11679 CPPFLAGS="$CPPFLAGS -I$includedir"
11681 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11682 cat >conftest.$ac_ext <<_ACEOF
11683 #line $LINENO "configure"
11684 #include "confdefs.h"
11685 #include <stdlib.h>
11686 #include <unistd.h>
11687 #include <sys/types.h>
11689 #include <shadow.h>
11690 #ifdef F77_DUMMY_MAIN
11691 # ifdef __cplusplus
11694 int F77_DUMMY_MAIN() { return 1; }
11699 struct spwd *p = getspnam("nobody");
11700 const char *pw = p->sp_pwdp;
11705 rm -f conftest.$ac_objext
11706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11707 (eval $ac_compile) 2>&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } &&
11711 { ac_try='test -s conftest.$ac_objext'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; }; then
11719 echo "$as_me: failed program was:" >&5
11720 cat conftest.$ac_ext >&5
11723 rm -f conftest.$ac_objext conftest.$ac_ext
11724 CPPFLAGS="$ac_save_CPPFLAGS"
11726 echo "$as_me:$LINENO: result: $ac_cv_shadow" >&5
11727 echo "${ECHO_T}$ac_cv_shadow" >&6
11728 if test "$ac_cv_shadow" = yes; then
11732 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
11734 echo "$as_me:$LINENO: checking for getspnam in -lc" >&5
11735 echo $ECHO_N "checking for getspnam in -lc... $ECHO_C" >&6
11736 if test "${ac_cv_lib_c_getspnam+set}" = set; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11739 ac_check_lib_save_LIBS=$LIBS
11741 cat >conftest.$ac_ext <<_ACEOF
11742 #line $LINENO "configure"
11743 #include "confdefs.h"
11745 /* Override any gcc2 internal prototype to avoid an error. */
11749 /* We use char because int might match the return type of a gcc2
11750 builtin and then its argument prototype would still apply. */
11752 #ifdef F77_DUMMY_MAIN
11753 # ifdef __cplusplus
11756 int F77_DUMMY_MAIN() { return 1; }
11766 rm -f conftest.$ac_objext conftest$ac_exeext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11768 (eval $ac_link) 2>&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } &&
11772 { ac_try='test -s conftest$ac_exeext'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 ac_cv_lib_c_getspnam=yes
11780 echo "$as_me: failed program was:" >&5
11781 cat conftest.$ac_ext >&5
11782 ac_cv_lib_c_getspnam=no
11784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11785 LIBS=$ac_check_lib_save_LIBS
11787 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getspnam" >&5
11788 echo "${ECHO_T}$ac_cv_lib_c_getspnam" >&6
11789 if test $ac_cv_lib_c_getspnam = yes; then
11793 if test "$have_getspnam" = no ; then
11794 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
11795 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
11796 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11799 ac_check_lib_save_LIBS=$LIBS
11801 cat >conftest.$ac_ext <<_ACEOF
11802 #line $LINENO "configure"
11803 #include "confdefs.h"
11805 /* Override any gcc2 internal prototype to avoid an error. */
11809 /* We use char because int might match the return type of a gcc2
11810 builtin and then its argument prototype would still apply. */
11812 #ifdef F77_DUMMY_MAIN
11813 # ifdef __cplusplus
11816 int F77_DUMMY_MAIN() { return 1; }
11826 rm -f conftest.$ac_objext conftest$ac_exeext
11827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11828 (eval $ac_link) 2>&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); } &&
11832 { ac_try='test -s conftest$ac_exeext'
11833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834 (eval $ac_try) 2>&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; }; then
11838 ac_cv_lib_gen_getspnam=yes
11840 echo "$as_me: failed program was:" >&5
11841 cat conftest.$ac_ext >&5
11842 ac_cv_lib_gen_getspnam=no
11844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11845 LIBS=$ac_check_lib_save_LIBS
11847 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
11848 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
11849 if test $ac_cv_lib_gen_getspnam = yes; then
11850 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
11858 ###############################################################################
11860 # Check for other libraries needed for non-shadow passwords.
11862 ###############################################################################
11864 if test "$enable_locking" = yes ; then
11866 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
11868 echo "$as_me:$LINENO: checking for crypt in -lc" >&5
11869 echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
11870 if test "${ac_cv_lib_c_crypt+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 ac_check_lib_save_LIBS=$LIBS
11875 cat >conftest.$ac_ext <<_ACEOF
11876 #line $LINENO "configure"
11877 #include "confdefs.h"
11879 /* Override any gcc2 internal prototype to avoid an error. */
11883 /* We use char because int might match the return type of a gcc2
11884 builtin and then its argument prototype would still apply. */
11886 #ifdef F77_DUMMY_MAIN
11887 # ifdef __cplusplus
11890 int F77_DUMMY_MAIN() { return 1; }
11900 rm -f conftest.$ac_objext conftest$ac_exeext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11902 (eval $ac_link) 2>&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); } &&
11906 { ac_try='test -s conftest$ac_exeext'
11907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; }; then
11912 ac_cv_lib_c_crypt=yes
11914 echo "$as_me: failed program was:" >&5
11915 cat conftest.$ac_ext >&5
11916 ac_cv_lib_c_crypt=no
11918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11919 LIBS=$ac_check_lib_save_LIBS
11921 echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
11922 echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
11923 if test $ac_cv_lib_c_crypt = yes; then
11927 if test "$have_crypt" = no ; then
11928 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
11929 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
11930 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
11931 echo $ECHO_N "(cached) $ECHO_C" >&6
11933 ac_check_lib_save_LIBS=$LIBS
11934 LIBS="-lcrypt $LIBS"
11935 cat >conftest.$ac_ext <<_ACEOF
11936 #line $LINENO "configure"
11937 #include "confdefs.h"
11939 /* Override any gcc2 internal prototype to avoid an error. */
11943 /* We use char because int might match the return type of a gcc2
11944 builtin and then its argument prototype would still apply. */
11946 #ifdef F77_DUMMY_MAIN
11947 # ifdef __cplusplus
11950 int F77_DUMMY_MAIN() { return 1; }
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11962 (eval $ac_link) 2>&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } &&
11966 { ac_try='test -s conftest$ac_exeext'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; }; then
11972 ac_cv_lib_crypt_crypt=yes
11974 echo "$as_me: failed program was:" >&5
11975 cat conftest.$ac_ext >&5
11976 ac_cv_lib_crypt_crypt=no
11978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11979 LIBS=$ac_check_lib_save_LIBS
11981 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
11982 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
11983 if test $ac_cv_lib_crypt_crypt = yes; then
11984 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
11991 # Most of the above shadow mechanisms will have set need_setuid to yes,
11992 # if they were found. But, on some systems, we need setuid even when
11993 # using plain old vanilla passwords.
11995 if test "$enable_locking" = yes ; then
11997 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
12004 if test "$have_shadow_adjunct" = yes ; then
12005 cat >>confdefs.h <<\_ACEOF
12006 #define HAVE_ADJUNCT_PASSWD 1
12009 elif test "$have_shadow_enhanced" = yes ; then
12010 cat >>confdefs.h <<\_ACEOF
12011 #define HAVE_ENHANCED_PASSWD 1
12014 elif test "$have_shadow_hpux" = yes ; then
12015 cat >>confdefs.h <<\_ACEOF
12016 #define HAVE_HPUX_PASSWD 1
12019 elif test "$have_shadow" = yes ; then
12020 cat >>confdefs.h <<\_ACEOF
12021 #define HAVE_SHADOW_PASSWD 1
12027 ###############################################################################
12031 ###############################################################################
12034 with_motif_req=unspecified
12036 # Check whether --with-motif or --without-motif was given.
12037 if test "${with_motif+set}" = set; then
12038 withval="$with_motif"
12039 with_motif="$withval"; with_motif_req="$withval"
12045 case "$with_motif" in
12050 echo "$as_me:$LINENO: checking for Motif headers" >&5
12051 echo $ECHO_N "checking for Motif headers... $ECHO_C" >&6
12052 d=$with_motif/include
12053 if test -d $d; then
12054 X_CFLAGS="-I$d $X_CFLAGS"
12055 echo "$as_me:$LINENO: result: $d" >&5
12056 echo "${ECHO_T}$d" >&6
12058 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12059 echo "${ECHO_T}not found ($d: no such directory)" >&6
12062 echo "$as_me:$LINENO: checking for Motif libs" >&5
12063 echo $ECHO_N "checking for Motif libs... $ECHO_C" >&6
12065 if test -d $d; then
12066 X_LIBS="-L$d $X_LIBS"
12067 echo "$as_me:$LINENO: result: $d" >&5
12068 echo "${ECHO_T}$d" >&6
12070 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12071 echo "${ECHO_T}not found ($d: no such directory)" >&6
12074 # replace the directory string with "yes".
12075 with_motif_req="yes"
12076 with_motif=$with_motif_req
12081 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
12082 echo " If it is a directory, then \`DIR/include' will be added to"
12083 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12089 if test "$with_motif" != yes -a "$with_motif" != no ; then
12090 echo "error: must be yes or no: --with-motif=$with_motif"
12094 if test "$with_motif" = yes; then
12097 ac_save_CPPFLAGS="$CPPFLAGS"
12098 if test \! -z "$includedir" ; then
12099 CPPFLAGS="$CPPFLAGS -I$includedir"
12101 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12102 echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
12103 echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6
12104 if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 cat >conftest.$ac_ext <<_ACEOF
12108 #line $LINENO "configure"
12109 #include "confdefs.h"
12110 #include <stdlib.h>
12112 #include <X11/Intrinsic.h>
12116 rm -f conftest.$ac_objext
12117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12118 (eval $ac_compile) 2>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try='test -s conftest.$ac_objext'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 ac_cv_header_Xm_Xm_h=yes
12130 echo "$as_me: failed program was:" >&5
12131 cat conftest.$ac_ext >&5
12132 ac_cv_header_Xm_Xm_h=no
12134 rm -f conftest.$ac_objext conftest.$ac_ext
12136 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
12137 echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6
12138 if test $ac_cv_header_Xm_Xm_h = yes; then
12140 cat >>confdefs.h <<\_ACEOF
12141 #define HAVE_MOTIF 1
12144 MOTIF_LIBS="$MOTIF_LIBS -lXm"
12148 CPPFLAGS="$ac_save_CPPFLAGS"
12152 if test "$have_motif" = yes; then
12154 ac_save_CPPFLAGS="$CPPFLAGS"
12155 if test \! -z "$includedir" ; then
12156 CPPFLAGS="$CPPFLAGS -I$includedir"
12158 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12159 echo "$as_me:$LINENO: checking for Xm/ComboBox.h" >&5
12160 echo $ECHO_N "checking for Xm/ComboBox.h... $ECHO_C" >&6
12161 if test "${ac_cv_header_Xm_ComboBox_h+set}" = set; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12164 cat >conftest.$ac_ext <<_ACEOF
12165 #line $LINENO "configure"
12166 #include "confdefs.h"
12167 #include <stdlib.h>
12169 #include <X11/Intrinsic.h>
12171 #include <Xm/ComboBox.h>
12173 rm -f conftest.$ac_objext
12174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12175 (eval $ac_compile) 2>&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } &&
12179 { ac_try='test -s conftest.$ac_objext'
12180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181 (eval $ac_try) 2>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; }; then
12185 ac_cv_header_Xm_ComboBox_h=yes
12187 echo "$as_me: failed program was:" >&5
12188 cat conftest.$ac_ext >&5
12189 ac_cv_header_Xm_ComboBox_h=no
12191 rm -f conftest.$ac_objext conftest.$ac_ext
12193 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_ComboBox_h" >&5
12194 echo "${ECHO_T}$ac_cv_header_Xm_ComboBox_h" >&6
12195 if test $ac_cv_header_Xm_ComboBox_h = yes; then
12196 cat >>confdefs.h <<\_ACEOF
12197 #define HAVE_XMCOMBOBOX 1
12203 CPPFLAGS="$ac_save_CPPFLAGS"
12207 ###############################################################################
12209 # Check for -lgtk (and Gnome stuff)
12211 ###############################################################################
12214 with_gtk_req=unspecified
12216 # Check whether --with-gtk or --without-gtk was given.
12217 if test "${with_gtk+set}" = set; then
12218 withval="$with_gtk"
12219 with_gtk="$withval"; with_gtk_req="$withval"
12224 # if --with-gtk=/directory/ was specified, remember that directory so that
12225 # we can also look for the `gtk-config' program in that directory.
12226 case "$with_gtk" in
12228 gtk_dir="$with_gtk"
12236 case "$with_gtk" in
12241 echo "$as_me:$LINENO: checking for Gtk headers" >&5
12242 echo $ECHO_N "checking for Gtk headers... $ECHO_C" >&6
12243 d=$with_gtk/include
12244 if test -d $d; then
12245 X_CFLAGS="-I$d $X_CFLAGS"
12246 echo "$as_me:$LINENO: result: $d" >&5
12247 echo "${ECHO_T}$d" >&6
12249 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12250 echo "${ECHO_T}not found ($d: no such directory)" >&6
12253 echo "$as_me:$LINENO: checking for Gtk libs" >&5
12254 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
12256 if test -d $d; then
12257 X_LIBS="-L$d $X_LIBS"
12258 echo "$as_me:$LINENO: result: $d" >&5
12259 echo "${ECHO_T}$d" >&6
12261 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12262 echo "${ECHO_T}not found ($d: no such directory)" >&6
12265 # replace the directory string with "yes".
12267 with_gtk=$with_gtk_req
12272 echo "error: argument to --with-gtk must be \"yes\", \"no\", or a directory."
12273 echo " If it is a directory, then \`DIR/include' will be added to"
12274 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12280 if test "$with_gtk" != yes -a "$with_gtk" != no ; then
12281 echo "error: must be yes or no: --with-gtk=$with_gtk"
12286 with_gnome_req=unspecified
12288 # Check whether --with-gnome or --without-gnome was given.
12289 if test "${with_gnome+set}" = set; then
12290 withval="$with_gnome"
12291 with_gnome="$withval"; with_gnome_req="$withval"
12296 # if --with-gnome=/directory/ was specified, remember that directory so that
12297 # we can also look for the `gnome-config' program in that directory.
12298 case "$with_gnome" in
12300 gnome_dir="$with_gnome"
12308 case "$with_gnome" in
12313 echo "$as_me:$LINENO: checking for Gnome headers" >&5
12314 echo $ECHO_N "checking for Gnome headers... $ECHO_C" >&6
12315 d=$with_gnome/include
12316 if test -d $d; then
12317 X_CFLAGS="-I$d $X_CFLAGS"
12318 echo "$as_me:$LINENO: result: $d" >&5
12319 echo "${ECHO_T}$d" >&6
12321 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12322 echo "${ECHO_T}not found ($d: no such directory)" >&6
12325 echo "$as_me:$LINENO: checking for Gnome libs" >&5
12326 echo $ECHO_N "checking for Gnome libs... $ECHO_C" >&6
12328 if test -d $d; then
12329 X_LIBS="-L$d $X_LIBS"
12330 echo "$as_me:$LINENO: result: $d" >&5
12331 echo "${ECHO_T}$d" >&6
12333 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12334 echo "${ECHO_T}not found ($d: no such directory)" >&6
12337 # replace the directory string with "yes".
12338 with_gnome_req="yes"
12339 with_gnome=$with_gnome_req
12344 echo "error: argument to --with-gnome must be \"yes\", \"no\", or a directory."
12345 echo " If it is a directory, then \`DIR/include' will be added to"
12346 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12352 if test "$with_gnome" != yes -a "$with_gnome" != no ; then
12353 echo "error: must be yes or no: --with-gnome=$with_gnome"
12359 if test "$with_gtk" = yes; then
12362 # if the user specified --with-gtk=/foo/ or --with-gnome=/foo/ then
12363 # look in /foo/bin/ for glib-config, gtk-config, and gnome-config.
12367 if test ! -z "$gtk_dir"; then
12368 # canonicalize slashes.
12369 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
12370 gtk_path="$foo:$gtk_path"
12373 if test ! -z "$gnome_dir"; then
12374 # canonicalize slashes.
12375 foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
12376 gtk_path="$foo:$gtk_path"
12379 for ac_prog in glib12-config glib-config
12381 # Extract the first word of "$ac_prog", so it can be a program name with args.
12382 set dummy $ac_prog; ac_word=$2
12383 echo "$as_me:$LINENO: checking for $ac_word" >&5
12384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12385 if test "${ac_cv_path_glib_config+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 case $glib_config in
12390 ac_cv_path_glib_config="$glib_config" # Let the user override the test with a path.
12393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12394 for as_dir in $gtk_path
12397 test -z "$as_dir" && as_dir=.
12398 for ac_exec_ext in '' $ac_executable_extensions; do
12399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12400 ac_cv_path_glib_config="$as_dir/$ac_word$ac_exec_ext"
12401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12410 glib_config=$ac_cv_path_glib_config
12412 if test -n "$glib_config"; then
12413 echo "$as_me:$LINENO: result: $glib_config" >&5
12414 echo "${ECHO_T}$glib_config" >&6
12416 echo "$as_me:$LINENO: result: no" >&5
12417 echo "${ECHO_T}no" >&6
12420 test -n "$glib_config" && break
12423 for ac_prog in gtk12-config gtk-config
12425 # Extract the first word of "$ac_prog", so it can be a program name with args.
12426 set dummy $ac_prog; ac_word=$2
12427 echo "$as_me:$LINENO: checking for $ac_word" >&5
12428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12429 if test "${ac_cv_path_gtk_config+set}" = set; then
12430 echo $ECHO_N "(cached) $ECHO_C" >&6
12432 case $gtk_config in
12434 ac_cv_path_gtk_config="$gtk_config" # Let the user override the test with a path.
12437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12438 for as_dir in $gtk_path
12441 test -z "$as_dir" && as_dir=.
12442 for ac_exec_ext in '' $ac_executable_extensions; do
12443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12444 ac_cv_path_gtk_config="$as_dir/$ac_word$ac_exec_ext"
12445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12454 gtk_config=$ac_cv_path_gtk_config
12456 if test -n "$gtk_config"; then
12457 echo "$as_me:$LINENO: result: $gtk_config" >&5
12458 echo "${ECHO_T}$gtk_config" >&6
12460 echo "$as_me:$LINENO: result: no" >&5
12461 echo "${ECHO_T}no" >&6
12464 test -n "$gtk_config" && break
12468 if test "$with_gnome" = yes; then
12469 for ac_prog in gnome-config
12471 # Extract the first word of "$ac_prog", so it can be a program name with args.
12472 set dummy $ac_prog; ac_word=$2
12473 echo "$as_me:$LINENO: checking for $ac_word" >&5
12474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12475 if test "${ac_cv_path_gnome_config+set}" = set; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12478 case $gnome_config in
12480 ac_cv_path_gnome_config="$gnome_config" # Let the user override the test with a path.
12483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in $gtk_path
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
12489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12490 ac_cv_path_gnome_config="$as_dir/$ac_word$ac_exec_ext"
12491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12500 gnome_config=$ac_cv_path_gnome_config
12502 if test -n "$gnome_config"; then
12503 echo "$as_me:$LINENO: result: $gnome_config" >&5
12504 echo "${ECHO_T}$gnome_config" >&6
12506 echo "$as_me:$LINENO: result: no" >&5
12507 echo "${ECHO_T}no" >&6
12510 test -n "$gnome_config" && break
12515 if test -n "$glib_config" -a -n "$gtk_config" ; then
12517 if test "$with_gnome" = yes -a -n "$gnome_config" ; then
12522 if test "$have_gtk" = yes; then
12523 echo "$as_me:$LINENO: checking Gtk version number" >&5
12524 echo $ECHO_N "checking Gtk version number... $ECHO_C" >&6
12525 if test "${ac_cv_gtk_version_string+set}" = set; then
12526 echo $ECHO_N "(cached) $ECHO_C" >&6
12528 ac_cv_gtk_version_string=`$gtk_config --version`
12530 echo "$as_me:$LINENO: result: $ac_cv_gtk_version_string" >&5
12531 echo "${ECHO_T}$ac_cv_gtk_version_string" >&6
12532 ac_gtk_version_string=$ac_cv_gtk_version_string
12535 maj=`echo $ac_gtk_version_string | sed -n 's/\..*//p'`
12536 min=`echo $ac_gtk_version_string | sed -n 's/[^.]*\.\([^.]*\).*/\1/p'`
12538 ac_gtk_version=`echo "$maj * 1000 + $min" | bc`
12539 if test -z "$ac_gtk_version"; then
12540 ac_gtk_version=unknown
12541 ac_gtk_version_string=unknown
12543 if test "$ac_gtk_version" = "unknown" || test "$ac_gtk_version" -lt 1002
12551 if test "$have_gtk" = yes; then
12552 echo "$as_me:$LINENO: checking for Gtk includes" >&5
12553 echo $ECHO_N "checking for Gtk includes... $ECHO_C" >&6
12554 if test "${ac_cv_gtk_config_cflags+set}" = set; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12557 ac_cv_gtk_config_cflags=`$gtk_config --cflags`
12559 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
12560 echo "${ECHO_T}$ac_cv_gtk_config_cflags" >&6
12561 echo "$as_me:$LINENO: checking for Gtk libs" >&5
12562 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
12563 if test "${ac_cv_gtk_config_libs+set}" = set; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12566 ac_cv_gtk_config_libs=`$gtk_config --libs`
12568 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
12569 echo "${ECHO_T}$ac_cv_gtk_config_libs" >&6
12571 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
12572 ac_gtk_config_libs=$ac_cv_gtk_config_libs
12574 # Check for Gnome Capplet support.
12576 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
12577 gnome_config_libs="gtk capplet gnomeui gdk_pixbuf"
12578 echo "$as_me:$LINENO: checking for Gnome capplet includes" >&5
12579 echo $ECHO_N "checking for Gnome capplet includes... $ECHO_C" >&6
12580 if test "${ac_cv_gnome_config_cflags+set}" = set; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
12583 if ( $gnome_config --cflags $gnome_config_libs >/dev/null 2>&1 | \
12584 grep Unknown >/dev/null ) ; then
12585 ac_cv_gnome_config_cflags=''
12587 ac_cv_gnome_config_cflags=`$gnome_config --cflags $gnome_config_libs`
12591 ac_gnome_config_cflags=$ac_cv_gnome_config_cflags
12592 if test "$ac_gnome_config_cflags" = "" ; then
12594 echo "$as_me:$LINENO: result: no" >&5
12595 echo "${ECHO_T}no" >&6
12597 echo "$as_me:$LINENO: result: $ac_gnome_config_cflags" >&5
12598 echo "${ECHO_T}$ac_gnome_config_cflags" >&6
12602 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
12603 echo "$as_me:$LINENO: checking for Gnome capplet libs" >&5
12604 echo $ECHO_N "checking for Gnome capplet libs... $ECHO_C" >&6
12605 if test "${ac_cv_gnome_config_libs+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12608 if ( $gnome_config --libs $gnome_config_libs >/dev/null 2>&1 |
12609 grep Unknown >/dev/null ) ; then
12610 ac_cv_gnome_config_libs=''
12612 ac_cv_gnome_config_libs=`$gnome_config --libs $gnome_config_libs`
12616 ac_gnome_config_libs=$ac_cv_gnome_config_libs
12617 if test "$ac_gnome_config_libs" = "" ; then
12619 echo "$as_me:$LINENO: result: no" >&5
12620 echo "${ECHO_T}no" >&6
12622 echo "$as_me:$LINENO: result: $ac_gnome_config_libs" >&5
12623 echo "${ECHO_T}$ac_gnome_config_libs" >&6
12628 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
12629 GNOME_DATADIR=`$gnome_config --datadir`
12633 # If we have Gnome, then override the gtk-config values with
12634 # the gnome-config values.
12636 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
12637 ac_gtk_config_cflags=$ac_gnome_config_cflags
12638 ac_gtk_config_libs=$ac_gnome_config_libs
12639 cat >>confdefs.h <<\_ACEOF
12640 #define HAVE_CRAPPLET 1
12644 # check for this function that was not in libcapplet 1.2.
12646 ac_save_CPPFLAGS="$CPPFLAGS"
12647 ac_save_LDFLAGS="$LDFLAGS"
12648 # ac_save_LIBS="$LIBS"
12650 if test \! -z "$includedir" ; then
12651 CPPFLAGS="$CPPFLAGS -I$includedir"
12653 # note: $X_CFLAGS includes $x_includes
12654 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12656 if test \! -z "$libdir" ; then
12657 LDFLAGS="$LDFLAGS -L$libdir"
12659 # note: $X_LIBS includes $x_libraries
12660 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
12662 echo "$as_me:$LINENO: checking for capplet_widget_changes_are_immediate in -lcapplet" >&5
12663 echo $ECHO_N "checking for capplet_widget_changes_are_immediate in -lcapplet... $ECHO_C" >&6
12664 if test "${ac_cv_lib_capplet_capplet_widget_changes_are_immediate+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12667 ac_check_lib_save_LIBS=$LIBS
12668 LIBS="-lcapplet $ac_gnome_config_libs $LIBS"
12669 cat >conftest.$ac_ext <<_ACEOF
12670 #line $LINENO "configure"
12671 #include "confdefs.h"
12673 /* Override any gcc2 internal prototype to avoid an error. */
12677 /* We use char because int might match the return type of a gcc2
12678 builtin and then its argument prototype would still apply. */
12679 char capplet_widget_changes_are_immediate ();
12680 #ifdef F77_DUMMY_MAIN
12681 # ifdef __cplusplus
12684 int F77_DUMMY_MAIN() { return 1; }
12689 capplet_widget_changes_are_immediate ();
12694 rm -f conftest.$ac_objext conftest$ac_exeext
12695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12696 (eval $ac_link) 2>&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } &&
12700 { ac_try='test -s conftest$ac_exeext'
12701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12702 (eval $ac_try) 2>&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); }; }; then
12706 ac_cv_lib_capplet_capplet_widget_changes_are_immediate=yes
12708 echo "$as_me: failed program was:" >&5
12709 cat conftest.$ac_ext >&5
12710 ac_cv_lib_capplet_capplet_widget_changes_are_immediate=no
12712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12713 LIBS=$ac_check_lib_save_LIBS
12715 echo "$as_me:$LINENO: result: $ac_cv_lib_capplet_capplet_widget_changes_are_immediate" >&5
12716 echo "${ECHO_T}$ac_cv_lib_capplet_capplet_widget_changes_are_immediate" >&6
12717 if test $ac_cv_lib_capplet_capplet_widget_changes_are_immediate = yes; then
12718 cat >>confdefs.h <<\_ACEOF
12719 #define HAVE_CRAPPLET_IMMEDIATE 1
12726 CPPFLAGS="$ac_save_CPPFLAGS"
12727 LDFLAGS="$ac_save_LDFLAGS"
12728 # LIBS="$ac_save_LIBS"
12733 if test "$have_gtk" = yes; then
12734 INCLUDES="$INCLUDES $ac_gtk_config_cflags"
12735 GTK_LIBS="$GTK_LIBS $ac_gtk_config_libs"
12736 cat >>confdefs.h <<\_ACEOF
12745 # Check for the Gnome Help Browser.
12747 if test "$have_gnome" = yes; then
12748 # Extract the first word of "gnome-help-browser", so it can be a program name with args.
12749 set dummy gnome-help-browser; ac_word=$2
12750 echo "$as_me:$LINENO: checking for $ac_word" >&5
12751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12752 if test "${ac_cv_prog_have_gnome_help+set}" = set; then
12753 echo $ECHO_N "(cached) $ECHO_C" >&6
12755 if test -n "$have_gnome_help"; then
12756 ac_cv_prog_have_gnome_help="$have_gnome_help" # Let the user override the test.
12758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12759 for as_dir in $PATH
12762 test -z "$as_dir" && as_dir=.
12763 for ac_exec_ext in '' $ac_executable_extensions; do
12764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12765 ac_cv_prog_have_gnome_help="yes"
12766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12772 test -z "$ac_cv_prog_have_gnome_help" && ac_cv_prog_have_gnome_help="no"
12775 have_gnome_help=$ac_cv_prog_have_gnome_help
12776 if test -n "$have_gnome_help"; then
12777 echo "$as_me:$LINENO: result: $have_gnome_help" >&5
12778 echo "${ECHO_T}$have_gnome_help" >&6
12780 echo "$as_me:$LINENO: result: no" >&5
12781 echo "${ECHO_T}no" >&6
12789 ###############################################################################
12793 ###############################################################################
12796 with_xml_req=unspecified
12799 # Check whether --with-xml or --without-xml was given.
12800 if test "${with_xml+set}" = set; then
12801 withval="$with_xml"
12802 with_xml="$withval"; with_xml_req="$withval"
12807 # if --with-xml=/directory/ was specified, remember that directory so that
12808 # we can also look for the `xml-config' program in that directory.
12809 case "$with_xml" in
12811 xml_dir="$with_xml"
12819 case "$with_xml" in
12824 echo "$as_me:$LINENO: checking for XML headers" >&5
12825 echo $ECHO_N "checking for XML headers... $ECHO_C" >&6
12826 d=$with_xml/include
12827 if test -d $d; then
12828 X_CFLAGS="-I$d $X_CFLAGS"
12829 echo "$as_me:$LINENO: result: $d" >&5
12830 echo "${ECHO_T}$d" >&6
12832 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12833 echo "${ECHO_T}not found ($d: no such directory)" >&6
12836 echo "$as_me:$LINENO: checking for XML libs" >&5
12837 echo $ECHO_N "checking for XML libs... $ECHO_C" >&6
12839 if test -d $d; then
12840 X_LIBS="-L$d $X_LIBS"
12841 echo "$as_me:$LINENO: result: $d" >&5
12842 echo "${ECHO_T}$d" >&6
12844 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12845 echo "${ECHO_T}not found ($d: no such directory)" >&6
12848 # replace the directory string with "yes".
12850 with_xml=$with_xml_req
12855 echo "error: argument to --with-xml must be \"yes\", \"no\", or a directory."
12856 echo " If it is a directory, then \`DIR/include' will be added to"
12857 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12863 if test "$with_xml" != yes -a "$with_xml" != no ; then
12864 echo "error: must be yes or no: --with-xml=$with_xml"
12868 if test "$with_xml" = yes; then
12872 # if the user specified --with-gtk=/foo/ or --with-gnome=/foo/ then
12873 # look in /foo/bin/ for for xml-config.
12877 if test ! -z "$gtk_dir"; then
12878 # canonicalize slashes.
12879 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
12880 xml_path="$foo:$xml_path"
12883 if test ! -z "$gnome_dir"; then
12884 # canonicalize slashes.
12885 foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
12886 xml_path="$foo:$xml_path"
12889 for ac_prog in xml2-config xml-config
12891 # Extract the first word of "$ac_prog", so it can be a program name with args.
12892 set dummy $ac_prog; ac_word=$2
12893 echo "$as_me:$LINENO: checking for $ac_word" >&5
12894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12895 if test "${ac_cv_path_xml_config+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 case $xml_config in
12900 ac_cv_path_xml_config="$xml_config" # Let the user override the test with a path.
12903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12904 for as_dir in $xml_path
12907 test -z "$as_dir" && as_dir=.
12908 for ac_exec_ext in '' $ac_executable_extensions; do
12909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12910 ac_cv_path_xml_config="$as_dir/$ac_word$ac_exec_ext"
12911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12920 xml_config=$ac_cv_path_xml_config
12922 if test -n "$xml_config"; then
12923 echo "$as_me:$LINENO: result: $xml_config" >&5
12924 echo "${ECHO_T}$xml_config" >&6
12926 echo "$as_me:$LINENO: result: no" >&5
12927 echo "${ECHO_T}no" >&6
12930 test -n "$xml_config" && break
12934 # If we found the xml-config program, run it to get flags.
12936 if test -n "$xml_config" ; then
12937 echo "$as_me:$LINENO: checking for XML includes" >&5
12938 echo $ECHO_N "checking for XML includes... $ECHO_C" >&6
12939 if test "${ac_cv_xml_config_cflags+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12942 ac_cv_xml_config_cflags=`$xml_config --cflags`
12944 echo "$as_me:$LINENO: result: $ac_cv_xml_config_cflags" >&5
12945 echo "${ECHO_T}$ac_cv_xml_config_cflags" >&6
12946 echo "$as_me:$LINENO: checking for XML libs" >&5
12947 echo $ECHO_N "checking for XML libs... $ECHO_C" >&6
12948 if test "${ac_cv_xml_config_libs+set}" = set; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12951 ac_cv_xml_config_libs=`$xml_config --libs`
12953 echo "$as_me:$LINENO: result: $ac_cv_xml_config_libs" >&5
12954 echo "${ECHO_T}$ac_cv_xml_config_libs" >&6
12955 ac_xml_config_cflags=$ac_cv_xml_config_cflags
12956 ac_xml_config_libs=$ac_cv_xml_config_libs
12959 ac_save_xml_CPPFLAGS="$CPPFLAGS"
12960 CPPFLAGS="$CPPFLAGS $ac_xml_config_cflags"
12962 # first try <libxml/parser.h> which is the new way...
12965 ac_save_CPPFLAGS="$CPPFLAGS"
12966 if test \! -z "$includedir" ; then
12967 CPPFLAGS="$CPPFLAGS -I$includedir"
12969 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12970 echo "$as_me:$LINENO: checking for libxml/xmlIO.h" >&5
12971 echo $ECHO_N "checking for libxml/xmlIO.h... $ECHO_C" >&6
12972 if test "${ac_cv_header_libxml_xmlIO_h+set}" = set; then
12973 echo $ECHO_N "(cached) $ECHO_C" >&6
12975 cat >conftest.$ac_ext <<_ACEOF
12976 #line $LINENO "configure"
12977 #include "confdefs.h"
12978 #include <libxml/parser.h>
12980 #include <libxml/xmlIO.h>
12982 rm -f conftest.$ac_objext
12983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12984 (eval $ac_compile) 2>&5
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); } &&
12988 { ac_try='test -s conftest.$ac_objext'
12989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990 (eval $ac_try) 2>&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; }; then
12994 ac_cv_header_libxml_xmlIO_h=yes
12996 echo "$as_me: failed program was:" >&5
12997 cat conftest.$ac_ext >&5
12998 ac_cv_header_libxml_xmlIO_h=no
13000 rm -f conftest.$ac_objext conftest.$ac_ext
13002 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_xmlIO_h" >&5
13003 echo "${ECHO_T}$ac_cv_header_libxml_xmlIO_h" >&6
13004 if test $ac_cv_header_libxml_xmlIO_h = yes; then
13009 CPPFLAGS="$ac_save_CPPFLAGS"
13011 # if that didn't work, then try just <parser.h> which is the old way...
13013 if test "$have_xml" = no; then
13015 ac_save_CPPFLAGS="$CPPFLAGS"
13016 if test \! -z "$includedir" ; then
13017 CPPFLAGS="$CPPFLAGS -I$includedir"
13019 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13020 echo "$as_me:$LINENO: checking for xmlIO.h" >&5
13021 echo $ECHO_N "checking for xmlIO.h... $ECHO_C" >&6
13022 if test "${ac_cv_header_xmlIO_h+set}" = set; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13025 cat >conftest.$ac_ext <<_ACEOF
13026 #line $LINENO "configure"
13027 #include "confdefs.h"
13028 #include <parser.h>
13032 rm -f conftest.$ac_objext
13033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13034 (eval $ac_compile) 2>&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); } &&
13038 { ac_try='test -s conftest.$ac_objext'
13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13040 (eval $ac_try) 2>&5
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; }; then
13044 ac_cv_header_xmlIO_h=yes
13046 echo "$as_me: failed program was:" >&5
13047 cat conftest.$ac_ext >&5
13048 ac_cv_header_xmlIO_h=no
13050 rm -f conftest.$ac_objext conftest.$ac_ext
13052 echo "$as_me:$LINENO: result: $ac_cv_header_xmlIO_h" >&5
13053 echo "${ECHO_T}$ac_cv_header_xmlIO_h" >&6
13054 if test $ac_cv_header_xmlIO_h = yes; then
13055 have_xml=yes; have_old_xml=yes
13059 CPPFLAGS="$ac_save_CPPFLAGS"
13062 CPPFLAGS="$ac_save_xml_CPPFLAGS"
13065 if test "$have_xml" = yes; then
13066 # we have the XML headers; now make sure zlib is around.
13067 # yes, it's stupid we have to do this too, but there is
13068 # dependency screwage in Gnome.
13070 ac_save_CPPFLAGS="$CPPFLAGS"
13071 ac_save_LDFLAGS="$LDFLAGS"
13072 # ac_save_LIBS="$LIBS"
13074 if test \! -z "$includedir" ; then
13075 CPPFLAGS="$CPPFLAGS -I$includedir"
13077 # note: $X_CFLAGS includes $x_includes
13078 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13080 if test \! -z "$libdir" ; then
13081 LDFLAGS="$LDFLAGS -L$libdir"
13083 # note: $X_LIBS includes $x_libraries
13084 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13086 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
13087 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
13088 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13091 ac_check_lib_save_LIBS=$LIBS
13093 cat >conftest.$ac_ext <<_ACEOF
13094 #line $LINENO "configure"
13095 #include "confdefs.h"
13097 /* Override any gcc2 internal prototype to avoid an error. */
13101 /* We use char because int might match the return type of a gcc2
13102 builtin and then its argument prototype would still apply. */
13103 char zlibVersion ();
13104 #ifdef F77_DUMMY_MAIN
13105 # ifdef __cplusplus
13108 int F77_DUMMY_MAIN() { return 1; }
13118 rm -f conftest.$ac_objext conftest$ac_exeext
13119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13120 (eval $ac_link) 2>&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); } &&
13124 { ac_try='test -s conftest$ac_exeext'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
13130 ac_cv_lib_z_zlibVersion=yes
13132 echo "$as_me: failed program was:" >&5
13133 cat conftest.$ac_ext >&5
13134 ac_cv_lib_z_zlibVersion=no
13136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13137 LIBS=$ac_check_lib_save_LIBS
13139 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
13140 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
13141 if test $ac_cv_lib_z_zlibVersion = yes; then
13145 CPPFLAGS="$ac_save_CPPFLAGS"
13146 LDFLAGS="$ac_save_LDFLAGS"
13147 # LIBS="$ac_save_LIBS"
13149 if test "$have_zlib" = no; then
13155 if test "$have_xml" = yes; then
13156 # we have the header, now check for the library
13160 ac_save_CPPFLAGS="$CPPFLAGS"
13161 ac_save_LDFLAGS="$LDFLAGS"
13162 # ac_save_LIBS="$LIBS"
13164 if test \! -z "$includedir" ; then
13165 CPPFLAGS="$CPPFLAGS -I$includedir"
13167 # note: $X_CFLAGS includes $x_includes
13168 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13170 if test \! -z "$libdir" ; then
13171 LDFLAGS="$LDFLAGS -L$libdir"
13173 # note: $X_LIBS includes $x_libraries
13174 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13176 echo "$as_me:$LINENO: checking for xmlParseChunk in -lxml" >&5
13177 echo $ECHO_N "checking for xmlParseChunk in -lxml... $ECHO_C" >&6
13178 if test "${ac_cv_lib_xml_xmlParseChunk+set}" = set; then
13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13181 ac_check_lib_save_LIBS=$LIBS
13182 LIBS="-lxml $ac_xml_config_libs $LIBS"
13183 cat >conftest.$ac_ext <<_ACEOF
13184 #line $LINENO "configure"
13185 #include "confdefs.h"
13187 /* Override any gcc2 internal prototype to avoid an error. */
13191 /* We use char because int might match the return type of a gcc2
13192 builtin and then its argument prototype would still apply. */
13193 char xmlParseChunk ();
13194 #ifdef F77_DUMMY_MAIN
13195 # ifdef __cplusplus
13198 int F77_DUMMY_MAIN() { return 1; }
13208 rm -f conftest.$ac_objext conftest$ac_exeext
13209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13210 (eval $ac_link) 2>&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); } &&
13214 { ac_try='test -s conftest$ac_exeext'
13215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216 (eval $ac_try) 2>&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); }; }; then
13220 ac_cv_lib_xml_xmlParseChunk=yes
13222 echo "$as_me: failed program was:" >&5
13223 cat conftest.$ac_ext >&5
13224 ac_cv_lib_xml_xmlParseChunk=no
13226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13227 LIBS=$ac_check_lib_save_LIBS
13229 echo "$as_me:$LINENO: result: $ac_cv_lib_xml_xmlParseChunk" >&5
13230 echo "${ECHO_T}$ac_cv_lib_xml_xmlParseChunk" >&6
13231 if test $ac_cv_lib_xml_xmlParseChunk = yes; then
13234 XML_LIBS="$ac_xml_config_libs"
13235 cat >>confdefs.h <<\_ACEOF
13243 CPPFLAGS="$ac_save_CPPFLAGS"
13244 LDFLAGS="$ac_save_LDFLAGS"
13245 # LIBS="$ac_save_LIBS"
13249 if test "$have_xml" = yes; then
13250 INCLUDES="$INCLUDES $ac_xml_config_cflags"
13251 GTK_LIBS="$GTK_LIBS $ac_xml_config_libs"
13252 cat >>confdefs.h <<\_ACEOF
13256 if test "$have_old_xml" = yes; then
13257 cat >>confdefs.h <<\_ACEOF
13258 #define HAVE_OLD_XML_HEADERS 1
13267 ###############################################################################
13269 # Checking whether Motif is really Lesstif.
13271 ###############################################################################
13274 if test "$have_motif" = yes ; then
13275 echo "$as_me:$LINENO: checking whether Motif is really LessTif" >&5
13276 echo $ECHO_N "checking whether Motif is really LessTif... $ECHO_C" >&6
13277 if test "${ac_cv_have_lesstif+set}" = set; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
13281 ac_save_CPPFLAGS="$CPPFLAGS"
13282 if test \! -z "$includedir" ; then
13283 CPPFLAGS="$CPPFLAGS -I$includedir"
13285 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13286 cat >conftest.$ac_ext <<_ACEOF
13287 #line $LINENO "configure"
13288 #include "confdefs.h"
13290 #ifdef F77_DUMMY_MAIN
13291 # ifdef __cplusplus
13294 int F77_DUMMY_MAIN() { return 1; }
13299 long vers = LesstifVersion;
13304 rm -f conftest.$ac_objext
13305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13306 (eval $ac_compile) 2>&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); } &&
13310 { ac_try='test -s conftest.$ac_objext'
13311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312 (eval $ac_try) 2>&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); }; }; then
13316 ac_cv_have_lesstif=yes
13318 echo "$as_me: failed program was:" >&5
13319 cat conftest.$ac_ext >&5
13320 ac_cv_have_lesstif=no
13322 rm -f conftest.$ac_objext conftest.$ac_ext
13323 CPPFLAGS="$ac_save_CPPFLAGS"
13325 echo "$as_me:$LINENO: result: $ac_cv_have_lesstif" >&5
13326 echo "${ECHO_T}$ac_cv_have_lesstif" >&6
13327 have_lesstif=$ac_cv_have_lesstif
13331 lesstif_version=unknown
13332 lesstif_version_string=unknown
13334 if test "$have_lesstif" = yes ; then
13336 echo unknown > conftest-lt
13337 echo "$as_me:$LINENO: checking LessTif version number" >&5
13338 echo $ECHO_N "checking LessTif version number... $ECHO_C" >&6
13339 if test "${ac_cv_lesstif_version_string+set}" = set; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 ac_save_CPPFLAGS="$CPPFLAGS"
13344 if test \! -z "$includedir" ; then
13345 CPPFLAGS="$CPPFLAGS -I$includedir"
13347 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13348 if test "$cross_compiling" = yes; then
13349 ac_cv_lesstif_version=unknown
13350 ac_cv_lesstif_version_string=unknown
13352 cat >conftest.$ac_ext <<_ACEOF
13353 #line $LINENO "configure"
13354 #include "confdefs.h"
13358 FILE *f = fopen("conftest-lt", "w");
13360 fprintf(f, "%d %d.%d\n", LesstifVersion,
13361 LESSTIF_VERSION, LESSTIF_REVISION);
13366 rm -f conftest$ac_exeext
13367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13368 (eval $ac_link) 2>&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373 (eval $ac_try) 2>&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; }; then
13377 ltv=`cat conftest-lt`
13378 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
13379 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
13381 echo "$as_me: program exited with status $ac_status" >&5
13382 echo "$as_me: failed program was:" >&5
13383 cat conftest.$ac_ext >&5
13384 ( exit $ac_status )
13385 ac_cv_lesstif_version=unknown
13386 ac_cv_lesstif_version_string=unknown
13388 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13390 CPPFLAGS="$ac_save_CPPFLAGS"
13392 echo "$as_me:$LINENO: result: $ac_cv_lesstif_version_string" >&5
13393 echo "${ECHO_T}$ac_cv_lesstif_version_string" >&6
13395 lesstif_version=$ac_cv_lesstif_version
13396 lesstif_version_string=$ac_cv_lesstif_version_string
13401 if test "$have_motif" = yes ; then
13403 echo unknown > conftest-mt
13404 echo "$as_me:$LINENO: checking Motif version number" >&5
13405 echo $ECHO_N "checking Motif version number... $ECHO_C" >&6
13406 if test "${ac_cv_motif_version_string+set}" = set; then
13407 echo $ECHO_N "(cached) $ECHO_C" >&6
13410 ac_save_CPPFLAGS="$CPPFLAGS"
13411 if test \! -z "$includedir" ; then
13412 CPPFLAGS="$CPPFLAGS -I$includedir"
13414 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13415 if test "$cross_compiling" = yes; then
13416 ac_cv_motif_version=unknown
13417 ac_cv_motif_version_string=unknown
13419 cat >conftest.$ac_ext <<_ACEOF
13420 #line $LINENO "configure"
13421 #include "confdefs.h"
13425 FILE *f = fopen("conftest-mt", "w");
13427 fprintf(f, "%d %d.%d\n", XmVersion,
13428 XmVERSION, XmREVISION);
13433 rm -f conftest$ac_exeext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13435 (eval $ac_link) 2>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; }; then
13444 mtv=`cat conftest-mt`
13445 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
13446 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
13448 echo "$as_me: program exited with status $ac_status" >&5
13449 echo "$as_me: failed program was:" >&5
13450 cat conftest.$ac_ext >&5
13451 ( exit $ac_status )
13452 ac_cv_motif_version=unknown
13453 ac_cv_motif_version_string=unknown
13455 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13457 CPPFLAGS="$ac_save_CPPFLAGS"
13459 echo "$as_me:$LINENO: result: $ac_cv_motif_version_string" >&5
13460 echo "${ECHO_T}$ac_cv_motif_version_string" >&6
13462 motif_version=$ac_cv_motif_version
13463 motif_version_string=$ac_cv_motif_version_string
13468 ###############################################################################
13470 # Checking whether Motif requires -lXpm.
13472 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
13473 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
13474 # of the library whether to build the XPM code into libXm, or whether
13475 # to rely on an external libXm. So the only way to tell whether XPM is
13476 # a link-time requirement is to examine libXm.a, which is very
13477 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
13478 # always link against XPM if the XPM lib exists (and this will be a
13479 # no-op if libXm happens to already have the XPM code in it.)
13481 ###############################################################################
13483 motif_requires_xpm=no
13484 if test "$have_motif" = yes ; then
13485 echo "$as_me:$LINENO: checking whether Motif requires XPM" >&5
13486 echo $ECHO_N "checking whether Motif requires XPM... $ECHO_C" >&6
13487 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
13489 motif_requires_xpm=yes
13490 echo "$as_me:$LINENO: result: maybe" >&5
13491 echo "${ECHO_T}maybe" >&6
13493 echo "$as_me:$LINENO: result: no" >&5
13494 echo "${ECHO_T}no" >&6
13499 ###############################################################################
13501 # Checking whether Motif requires -lXp.
13503 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
13504 # Extension". Why this extension isn't in -lXext with all the others,
13507 ###############################################################################
13510 if test "$have_motif" = yes ; then
13513 ac_save_CPPFLAGS="$CPPFLAGS"
13514 ac_save_LDFLAGS="$LDFLAGS"
13515 # ac_save_LIBS="$LIBS"
13517 if test \! -z "$includedir" ; then
13518 CPPFLAGS="$CPPFLAGS -I$includedir"
13520 # note: $X_CFLAGS includes $x_includes
13521 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13523 if test \! -z "$libdir" ; then
13524 LDFLAGS="$LDFLAGS -L$libdir"
13526 # note: $X_LIBS includes $x_libraries
13527 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13529 echo "$as_me:$LINENO: checking for XpQueryExtension in -lXp" >&5
13530 echo $ECHO_N "checking for XpQueryExtension in -lXp... $ECHO_C" >&6
13531 if test "${ac_cv_lib_Xp_XpQueryExtension+set}" = set; then
13532 echo $ECHO_N "(cached) $ECHO_C" >&6
13534 ac_check_lib_save_LIBS=$LIBS
13535 LIBS="-lXp -lX11 -lXext -lm $LIBS"
13536 cat >conftest.$ac_ext <<_ACEOF
13537 #line $LINENO "configure"
13538 #include "confdefs.h"
13540 /* Override any gcc2 internal prototype to avoid an error. */
13544 /* We use char because int might match the return type of a gcc2
13545 builtin and then its argument prototype would still apply. */
13546 char XpQueryExtension ();
13547 #ifdef F77_DUMMY_MAIN
13548 # ifdef __cplusplus
13551 int F77_DUMMY_MAIN() { return 1; }
13556 XpQueryExtension ();
13561 rm -f conftest.$ac_objext conftest$ac_exeext
13562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13563 (eval $ac_link) 2>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } &&
13567 { ac_try='test -s conftest$ac_exeext'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }; then
13573 ac_cv_lib_Xp_XpQueryExtension=yes
13575 echo "$as_me: failed program was:" >&5
13576 cat conftest.$ac_ext >&5
13577 ac_cv_lib_Xp_XpQueryExtension=no
13579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13580 LIBS=$ac_check_lib_save_LIBS
13582 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
13583 echo "${ECHO_T}$ac_cv_lib_Xp_XpQueryExtension" >&6
13584 if test $ac_cv_lib_Xp_XpQueryExtension = yes; then
13585 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
13590 CPPFLAGS="$ac_save_CPPFLAGS"
13591 LDFLAGS="$ac_save_LDFLAGS"
13592 # LIBS="$ac_save_LIBS"
13597 ###############################################################################
13599 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
13601 ###############################################################################
13604 if test "$have_motif" = yes ; then
13606 ac_save_CPPFLAGS="$CPPFLAGS"
13607 ac_save_LDFLAGS="$LDFLAGS"
13608 # ac_save_LIBS="$LIBS"
13610 if test \! -z "$includedir" ; then
13611 CPPFLAGS="$CPPFLAGS -I$includedir"
13613 # note: $X_CFLAGS includes $x_includes
13614 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13616 if test \! -z "$libdir" ; then
13617 LDFLAGS="$LDFLAGS -L$libdir"
13619 # note: $X_LIBS includes $x_libraries
13620 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13622 echo "$as_me:$LINENO: checking for _Xsetlocale in -lXintl" >&5
13623 echo $ECHO_N "checking for _Xsetlocale in -lXintl... $ECHO_C" >&6
13624 if test "${ac_cv_lib_Xintl__Xsetlocale+set}" = set; then
13625 echo $ECHO_N "(cached) $ECHO_C" >&6
13627 ac_check_lib_save_LIBS=$LIBS
13628 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
13629 cat >conftest.$ac_ext <<_ACEOF
13630 #line $LINENO "configure"
13631 #include "confdefs.h"
13633 /* Override any gcc2 internal prototype to avoid an error. */
13637 /* We use char because int might match the return type of a gcc2
13638 builtin and then its argument prototype would still apply. */
13639 char _Xsetlocale ();
13640 #ifdef F77_DUMMY_MAIN
13641 # ifdef __cplusplus
13644 int F77_DUMMY_MAIN() { return 1; }
13654 rm -f conftest.$ac_objext conftest$ac_exeext
13655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13656 (eval $ac_link) 2>&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } &&
13660 { ac_try='test -s conftest$ac_exeext'
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
13666 ac_cv_lib_Xintl__Xsetlocale=yes
13668 echo "$as_me: failed program was:" >&5
13669 cat conftest.$ac_ext >&5
13670 ac_cv_lib_Xintl__Xsetlocale=no
13672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13673 LIBS=$ac_check_lib_save_LIBS
13675 echo "$as_me:$LINENO: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
13676 echo "${ECHO_T}$ac_cv_lib_Xintl__Xsetlocale" >&6
13677 if test $ac_cv_lib_Xintl__Xsetlocale = yes; then
13683 CPPFLAGS="$ac_save_CPPFLAGS"
13684 LDFLAGS="$ac_save_LDFLAGS"
13685 # LIBS="$ac_save_LIBS"
13687 if test "$have_xintl" = yes; then
13688 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
13693 ###############################################################################
13695 # Check for -lGL or -lMesaGL.
13697 ###############################################################################
13701 with_gl_req=unspecified
13704 # Check whether --with-gl or --without-gl was given.
13705 if test "${with_gl+set}" = set; then
13707 with_gl="$withval"; with_gl_req="$withval"
13718 echo "$as_me:$LINENO: checking for GL headers" >&5
13719 echo $ECHO_N "checking for GL headers... $ECHO_C" >&6
13721 if test -d $d; then
13722 X_CFLAGS="-I$d $X_CFLAGS"
13723 echo "$as_me:$LINENO: result: $d" >&5
13724 echo "${ECHO_T}$d" >&6
13726 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13727 echo "${ECHO_T}not found ($d: no such directory)" >&6
13730 echo "$as_me:$LINENO: checking for GL libs" >&5
13731 echo $ECHO_N "checking for GL libs... $ECHO_C" >&6
13733 if test -d $d; then
13734 X_LIBS="-L$d $X_LIBS"
13735 echo "$as_me:$LINENO: result: $d" >&5
13736 echo "${ECHO_T}$d" >&6
13738 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13739 echo "${ECHO_T}not found ($d: no such directory)" >&6
13742 # replace the directory string with "yes".
13744 with_gl=$with_gl_req
13749 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
13750 echo " If it is a directory, then \`DIR/include' will be added to"
13751 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13757 ac_mesagl_version=unknown
13758 ac_mesagl_version_string=unknown
13760 if test "$with_gl" = yes; then
13762 ac_save_CPPFLAGS="$CPPFLAGS"
13763 if test \! -z "$includedir" ; then
13764 CPPFLAGS="$CPPFLAGS -I$includedir"
13766 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13767 if test "${ac_cv_header_GL_gl_h+set}" = set; then
13768 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
13769 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
13770 if test "${ac_cv_header_GL_gl_h+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
13774 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
13776 # Is the header compilable?
13777 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
13778 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
13779 cat >conftest.$ac_ext <<_ACEOF
13780 #line $LINENO "configure"
13781 #include "confdefs.h"
13782 $ac_includes_default
13785 rm -f conftest.$ac_objext
13786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13787 (eval $ac_compile) 2>&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } &&
13791 { ac_try='test -s conftest.$ac_objext'
13792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; }; then
13797 ac_header_compiler=yes
13799 echo "$as_me: failed program was:" >&5
13800 cat conftest.$ac_ext >&5
13801 ac_header_compiler=no
13803 rm -f conftest.$ac_objext conftest.$ac_ext
13804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13805 echo "${ECHO_T}$ac_header_compiler" >&6
13807 # Is the header present?
13808 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
13809 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
13810 cat >conftest.$ac_ext <<_ACEOF
13811 #line $LINENO "configure"
13812 #include "confdefs.h"
13815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13818 egrep -v '^ *\+' conftest.er1 >conftest.err
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } >/dev/null; then
13823 if test -s conftest.err; then
13824 ac_cpp_err=$ac_c_preproc_warn_flag
13831 if test -z "$ac_cpp_err"; then
13832 ac_header_preproc=yes
13834 echo "$as_me: failed program was:" >&5
13835 cat conftest.$ac_ext >&5
13836 ac_header_preproc=no
13838 rm -f conftest.err conftest.$ac_ext
13839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13840 echo "${ECHO_T}$ac_header_preproc" >&6
13842 # So? What about this header?
13843 case $ac_header_compiler:$ac_header_preproc in
13845 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13846 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
13848 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;};;
13850 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
13851 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
13852 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
13853 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
13854 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
13855 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;};;
13857 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
13858 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
13859 if test "${ac_cv_header_GL_gl_h+set}" = set; then
13860 echo $ECHO_N "(cached) $ECHO_C" >&6
13862 ac_cv_header_GL_gl_h=$ac_header_preproc
13864 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
13865 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
13868 if test $ac_cv_header_GL_gl_h = yes; then
13875 CPPFLAGS="$ac_save_CPPFLAGS"
13876 if test "$have_gl" = yes ; then
13878 ac_save_CPPFLAGS="$CPPFLAGS"
13879 if test \! -z "$includedir" ; then
13880 CPPFLAGS="$CPPFLAGS -I$includedir"
13882 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13883 echo "$as_me:$LINENO: checking for GL/glx.h" >&5
13884 echo $ECHO_N "checking for GL/glx.h... $ECHO_C" >&6
13885 if test "${ac_cv_header_GL_glx_h+set}" = set; then
13886 echo $ECHO_N "(cached) $ECHO_C" >&6
13888 cat >conftest.$ac_ext <<_ACEOF
13889 #line $LINENO "configure"
13890 #include "confdefs.h"
13893 #include <GL/glx.h>
13895 rm -f conftest.$ac_objext
13896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13897 (eval $ac_compile) 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
13901 { ac_try='test -s conftest.$ac_objext'
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; }; then
13907 ac_cv_header_GL_glx_h=yes
13909 echo "$as_me: failed program was:" >&5
13910 cat conftest.$ac_ext >&5
13911 ac_cv_header_GL_glx_h=no
13913 rm -f conftest.$ac_objext conftest.$ac_ext
13915 echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5
13916 echo "${ECHO_T}$ac_cv_header_GL_glx_h" >&6
13917 if test $ac_cv_header_GL_glx_h = yes; then
13924 CPPFLAGS="$ac_save_CPPFLAGS"
13927 # If we have the headers, try and figure out which vendor it's from.
13929 if test "$have_gl" = yes ; then
13931 # We need to know whether it's MesaGL so that we know which libraries
13934 echo "$as_me:$LINENO: checking whether GL is really MesaGL" >&5
13935 echo $ECHO_N "checking whether GL is really MesaGL... $ECHO_C" >&6
13936 if test "${ac_cv_have_mesa_gl+set}" = set; then
13937 echo $ECHO_N "(cached) $ECHO_C" >&6
13939 ac_cv_have_mesa_gl=no
13941 ac_save_CPPFLAGS="$CPPFLAGS"
13942 if test \! -z "$includedir" ; then
13943 CPPFLAGS="$CPPFLAGS -I$includedir"
13945 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13946 cat >conftest.$ac_ext <<_ACEOF
13947 #line $LINENO "configure"
13948 #include "confdefs.h"
13949 #include <GL/glx.h>
13952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13953 egrep "Mesa|MESA" >/dev/null 2>&1; then
13954 ac_cv_have_mesa_gl=yes
13958 CPPFLAGS="$ac_save_CPPFLAGS"
13961 echo "$as_me:$LINENO: result: $ac_cv_have_mesa_gl" >&5
13962 echo "${ECHO_T}$ac_cv_have_mesa_gl" >&6
13963 ac_have_mesa_gl=$ac_cv_have_mesa_gl
13970 # Some versions of MesaGL are compiled to require -lpthread.
13971 # So if the Mesa headers exist, and -lpthread exists, then always
13972 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
13974 if test "$ac_have_mesa_gl" = yes; then
13975 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
13976 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
13977 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13980 ac_check_lib_save_LIBS=$LIBS
13981 LIBS="-lpthread $LIBS"
13982 cat >conftest.$ac_ext <<_ACEOF
13983 #line $LINENO "configure"
13984 #include "confdefs.h"
13986 /* Override any gcc2 internal prototype to avoid an error. */
13990 /* We use char because int might match the return type of a gcc2
13991 builtin and then its argument prototype would still apply. */
13992 char pthread_create ();
13993 #ifdef F77_DUMMY_MAIN
13994 # ifdef __cplusplus
13997 int F77_DUMMY_MAIN() { return 1; }
14007 rm -f conftest.$ac_objext conftest$ac_exeext
14008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14009 (eval $ac_link) 2>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } &&
14013 { ac_try='test -s conftest$ac_exeext'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; }; then
14019 ac_cv_lib_pthread_pthread_create=yes
14021 echo "$as_me: failed program was:" >&5
14022 cat conftest.$ac_ext >&5
14023 ac_cv_lib_pthread_pthread_create=no
14025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14026 LIBS=$ac_check_lib_save_LIBS
14028 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
14029 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
14030 if test $ac_cv_lib_pthread_pthread_create = yes; then
14031 GL_LIBS="-lpthread"
14037 # If we have Mesa headers, check to see if we can link against -lMesaGL.
14038 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
14039 # Else, warn that GL is busted. (We have the headers, but no libs.)
14042 if test "$ac_have_mesa_gl" = yes ; then
14044 ac_save_CPPFLAGS="$CPPFLAGS"
14045 ac_save_LDFLAGS="$LDFLAGS"
14046 # ac_save_LIBS="$LIBS"
14048 if test \! -z "$includedir" ; then
14049 CPPFLAGS="$CPPFLAGS -I$includedir"
14051 # note: $X_CFLAGS includes $x_includes
14052 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14054 if test \! -z "$libdir" ; then
14055 LDFLAGS="$LDFLAGS -L$libdir"
14057 # note: $X_LIBS includes $x_libraries
14058 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14060 echo "$as_me:$LINENO: checking for glXCreateContext in -lMesaGL" >&5
14061 echo $ECHO_N "checking for glXCreateContext in -lMesaGL... $ECHO_C" >&6
14062 if test "${ac_cv_lib_MesaGL_glXCreateContext+set}" = set; then
14063 echo $ECHO_N "(cached) $ECHO_C" >&6
14065 ac_check_lib_save_LIBS=$LIBS
14066 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext -lm $LIBS"
14067 cat >conftest.$ac_ext <<_ACEOF
14068 #line $LINENO "configure"
14069 #include "confdefs.h"
14071 /* Override any gcc2 internal prototype to avoid an error. */
14075 /* We use char because int might match the return type of a gcc2
14076 builtin and then its argument prototype would still apply. */
14077 char glXCreateContext ();
14078 #ifdef F77_DUMMY_MAIN
14079 # ifdef __cplusplus
14082 int F77_DUMMY_MAIN() { return 1; }
14087 glXCreateContext ();
14092 rm -f conftest.$ac_objext conftest$ac_exeext
14093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14094 (eval $ac_link) 2>&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); } &&
14098 { ac_try='test -s conftest$ac_exeext'
14099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; }; then
14104 ac_cv_lib_MesaGL_glXCreateContext=yes
14106 echo "$as_me: failed program was:" >&5
14107 cat conftest.$ac_ext >&5
14108 ac_cv_lib_MesaGL_glXCreateContext=no
14110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14111 LIBS=$ac_check_lib_save_LIBS
14113 echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
14114 echo "${ECHO_T}$ac_cv_lib_MesaGL_glXCreateContext" >&6
14115 if test $ac_cv_lib_MesaGL_glXCreateContext = yes; then
14117 GL_LIBS="-lMesaGL -lMesaGLU $GL_LIBS"
14120 CPPFLAGS="$ac_save_CPPFLAGS"
14121 LDFLAGS="$ac_save_LDFLAGS"
14122 # LIBS="$ac_save_LIBS"
14126 if test "$gl_lib_1" = "" ; then
14128 ac_save_CPPFLAGS="$CPPFLAGS"
14129 ac_save_LDFLAGS="$LDFLAGS"
14130 # ac_save_LIBS="$LIBS"
14132 if test \! -z "$includedir" ; then
14133 CPPFLAGS="$CPPFLAGS -I$includedir"
14135 # note: $X_CFLAGS includes $x_includes
14136 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14138 if test \! -z "$libdir" ; then
14139 LDFLAGS="$LDFLAGS -L$libdir"
14141 # note: $X_LIBS includes $x_libraries
14142 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14144 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
14145 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
14146 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 ac_check_lib_save_LIBS=$LIBS
14150 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext -lm $LIBS"
14151 cat >conftest.$ac_ext <<_ACEOF
14152 #line $LINENO "configure"
14153 #include "confdefs.h"
14155 /* Override any gcc2 internal prototype to avoid an error. */
14159 /* We use char because int might match the return type of a gcc2
14160 builtin and then its argument prototype would still apply. */
14161 char glXCreateContext ();
14162 #ifdef F77_DUMMY_MAIN
14163 # ifdef __cplusplus
14166 int F77_DUMMY_MAIN() { return 1; }
14171 glXCreateContext ();
14176 rm -f conftest.$ac_objext conftest$ac_exeext
14177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14178 (eval $ac_link) 2>&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } &&
14182 { ac_try='test -s conftest$ac_exeext'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14188 ac_cv_lib_GL_glXCreateContext=yes
14190 echo "$as_me: failed program was:" >&5
14191 cat conftest.$ac_ext >&5
14192 ac_cv_lib_GL_glXCreateContext=no
14194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14195 LIBS=$ac_check_lib_save_LIBS
14197 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
14198 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
14199 if test $ac_cv_lib_GL_glXCreateContext = yes; then
14201 GL_LIBS="-lGL -lGLU $GL_LIBS"
14204 CPPFLAGS="$ac_save_CPPFLAGS"
14205 LDFLAGS="$ac_save_LDFLAGS"
14206 # LIBS="$ac_save_LIBS"
14210 if test "$gl_lib_1" = "" ; then
14211 # we have headers, but no libs -- bail.
14216 # linking works -- we can build the GL hacks.
14217 cat >>confdefs.h <<\_ACEOF
14221 if test "$ac_have_mesa_gl" = yes ; then
14222 cat >>confdefs.h <<\_ACEOF
14223 #define HAVE_MESA_GL 1
14231 # Now that we know we have GL headers and libs, do some more GL testing.
14234 if test "$have_gl" = yes ; then
14235 # If it's MesaGL, we'd like to issue a warning if the version number
14236 # is less than or equal to 2.6, because that version had a security bug.
14238 if test "$ac_have_mesa_gl" = yes; then
14240 echo "$as_me:$LINENO: checking MesaGL version number" >&5
14241 echo $ECHO_N "checking MesaGL version number... $ECHO_C" >&6
14242 if test "${ac_cv_mesagl_version_string+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14245 cat > conftest.$ac_ext <<EOF
14246 #line 14252 "configure"
14247 #include "confdefs.h"
14249 #ifndef MESA_MAJOR_VERSION
14250 # include <GL/xmesa.h>
14251 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
14252 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
14254 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
14257 ac_save_CPPFLAGS="$CPPFLAGS"
14258 if test \! -z "$includedir" ; then
14259 CPPFLAGS="$CPPFLAGS -I$includedir"
14261 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14263 # With autoconf 2.13 we could do this:
14266 # mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&AC_FD_CC | sed -n \
14267 # 's/^configure:.*\([0-9][0-9]*\).*\([0-9][0-9]*\).*$/\1.\2/p'`
14270 # but with autoconf 2.52+ (m4 1.4) that causes an error:
14271 # m4: ERROR: Recursion limit of 1024 exceeded, use -L<N> to change it
14273 # So, we need to use the autoconf line-noise macros [ for [ and ] for ]
14275 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | sed -n \
14276 's/^configure:.*\([0-9][0-9]*\).*\([0-9][0-9]*\).*$/\1.\2/p'`
14279 rm -f conftest.$ac_ext
14281 CPPFLAGS="$ac_save_CPPFLAGS"
14283 if test "$mglv" = ""; then
14284 ac_mesagl_version=unknown
14285 ac_mesagl_version_string=unknown
14287 ac_mesagl_version_string=$mglv
14288 maj=`echo $mglv | sed -n 's/\..*//p'`
14289 min=`echo $mglv | sed -n 's/.*\.//p'`
14290 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
14291 if test -z "$ac_mesagl_version"; then
14292 ac_mesagl_version=unknown
14293 ac_mesagl_version_string=unknown
14296 ac_cv_mesagl_version=$ac_mesagl_version
14297 ac_cv_mesagl_version_string=$ac_mesagl_version_string
14300 echo "$as_me:$LINENO: result: $ac_cv_mesagl_version_string" >&5
14301 echo "${ECHO_T}$ac_cv_mesagl_version_string" >&6
14302 ac_mesagl_version=$ac_cv_mesagl_version
14303 ac_mesagl_version_string=$ac_cv_mesagl_version_string
14307 # Check for OpenGL 1.1 features.
14310 ac_save_CPPFLAGS="$CPPFLAGS"
14311 ac_save_LDFLAGS="$LDFLAGS"
14312 # ac_save_LIBS="$LIBS"
14314 if test \! -z "$includedir" ; then
14315 CPPFLAGS="$CPPFLAGS -I$includedir"
14317 # note: $X_CFLAGS includes $x_includes
14318 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14320 if test \! -z "$libdir" ; then
14321 LDFLAGS="$LDFLAGS -L$libdir"
14323 # note: $X_LIBS includes $x_libraries
14324 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14326 as_ac_Lib=`echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
14327 echo "$as_me:$LINENO: checking for glBindTexture in -l$gl_lib_1" >&5
14328 echo $ECHO_N "checking for glBindTexture in -l$gl_lib_1... $ECHO_C" >&6
14329 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14330 echo $ECHO_N "(cached) $ECHO_C" >&6
14332 ac_check_lib_save_LIBS=$LIBS
14333 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
14334 cat >conftest.$ac_ext <<_ACEOF
14335 #line $LINENO "configure"
14336 #include "confdefs.h"
14338 /* Override any gcc2 internal prototype to avoid an error. */
14342 /* We use char because int might match the return type of a gcc2
14343 builtin and then its argument prototype would still apply. */
14344 char glBindTexture ();
14345 #ifdef F77_DUMMY_MAIN
14346 # ifdef __cplusplus
14349 int F77_DUMMY_MAIN() { return 1; }
14359 rm -f conftest.$ac_objext conftest$ac_exeext
14360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14361 (eval $ac_link) 2>&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } &&
14365 { ac_try='test -s conftest$ac_exeext'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; }; then
14371 eval "$as_ac_Lib=yes"
14373 echo "$as_me: failed program was:" >&5
14374 cat conftest.$ac_ext >&5
14375 eval "$as_ac_Lib=no"
14377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14378 LIBS=$ac_check_lib_save_LIBS
14380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14381 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14382 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14383 cat >>confdefs.h <<\_ACEOF
14384 #define HAVE_GLBINDTEXTURE 1
14391 CPPFLAGS="$ac_save_CPPFLAGS"
14392 LDFLAGS="$ac_save_LDFLAGS"
14393 # LIBS="$ac_save_LIBS"
14397 elif test "$with_gl" != no; then
14398 echo "error: must be yes or no: --with-gl=$with_gl"
14403 ###############################################################################
14407 ###############################################################################
14410 with_gle_req=unspecified
14413 # Check whether --with-gle or --without-gle was given.
14414 if test "${with_gle+set}" = set; then
14415 withval="$with_gle"
14416 with_gle="$withval"; with_gle_req="$withval"
14422 case "$with_gle" in
14427 echo "$as_me:$LINENO: checking for GLE headers" >&5
14428 echo $ECHO_N "checking for GLE headers... $ECHO_C" >&6
14429 d=$with_gle/include
14430 if test -d $d; then
14431 X_CFLAGS="-I$d $X_CFLAGS"
14432 echo "$as_me:$LINENO: result: $d" >&5
14433 echo "${ECHO_T}$d" >&6
14435 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14436 echo "${ECHO_T}not found ($d: no such directory)" >&6
14439 echo "$as_me:$LINENO: checking for GLE libs" >&5
14440 echo $ECHO_N "checking for GLE libs... $ECHO_C" >&6
14442 if test -d $d; then
14443 X_LIBS="-L$d $X_LIBS"
14444 echo "$as_me:$LINENO: result: $d" >&5
14445 echo "${ECHO_T}$d" >&6
14447 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14448 echo "${ECHO_T}not found ($d: no such directory)" >&6
14451 # replace the directory string with "yes".
14453 with_gle=$with_gle_req
14458 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
14459 echo " If it is a directory, then \`DIR/include' will be added to"
14460 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14468 if test "$with_gle" = yes; then
14471 ac_save_CPPFLAGS="$CPPFLAGS"
14472 if test \! -z "$includedir" ; then
14473 CPPFLAGS="$CPPFLAGS -I$includedir"
14475 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14476 echo "$as_me:$LINENO: checking for GL/gle.h" >&5
14477 echo $ECHO_N "checking for GL/gle.h... $ECHO_C" >&6
14478 if test "${ac_cv_header_GL_gle_h+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14481 cat >conftest.$ac_ext <<_ACEOF
14482 #line $LINENO "configure"
14483 #include "confdefs.h"
14486 #include <GL/gle.h>
14488 rm -f conftest.$ac_objext
14489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14490 (eval $ac_compile) 2>&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } &&
14494 { ac_try='test -s conftest.$ac_objext'
14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; }; then
14500 ac_cv_header_GL_gle_h=yes
14502 echo "$as_me: failed program was:" >&5
14503 cat conftest.$ac_ext >&5
14504 ac_cv_header_GL_gle_h=no
14506 rm -f conftest.$ac_objext conftest.$ac_ext
14508 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gle_h" >&5
14509 echo "${ECHO_T}$ac_cv_header_GL_gle_h" >&6
14510 if test $ac_cv_header_GL_gle_h = yes; then
14517 CPPFLAGS="$ac_save_CPPFLAGS"
14518 if test "$have_gle3" = yes ; then
14522 ac_save_CPPFLAGS="$CPPFLAGS"
14523 if test \! -z "$includedir" ; then
14524 CPPFLAGS="$CPPFLAGS -I$includedir"
14526 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14527 echo "$as_me:$LINENO: checking for GL/gutil.h" >&5
14528 echo $ECHO_N "checking for GL/gutil.h... $ECHO_C" >&6
14529 if test "${ac_cv_header_GL_gutil_h+set}" = set; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14532 cat >conftest.$ac_ext <<_ACEOF
14533 #line $LINENO "configure"
14534 #include "confdefs.h"
14537 #include <GL/gutil.h>
14539 rm -f conftest.$ac_objext
14540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14541 (eval $ac_compile) 2>&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); } &&
14545 { ac_try='test -s conftest.$ac_objext'
14546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547 (eval $ac_try) 2>&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; }; then
14551 ac_cv_header_GL_gutil_h=yes
14553 echo "$as_me: failed program was:" >&5
14554 cat conftest.$ac_ext >&5
14555 ac_cv_header_GL_gutil_h=no
14557 rm -f conftest.$ac_objext conftest.$ac_ext
14559 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gutil_h" >&5
14560 echo "${ECHO_T}$ac_cv_header_GL_gutil_h" >&6
14561 if test $ac_cv_header_GL_gutil_h = yes; then
14568 CPPFLAGS="$ac_save_CPPFLAGS"
14569 if test "$have_gle" = yes ; then
14571 ac_save_CPPFLAGS="$CPPFLAGS"
14572 if test \! -z "$includedir" ; then
14573 CPPFLAGS="$CPPFLAGS -I$includedir"
14575 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14576 echo "$as_me:$LINENO: checking for GL/tube.h" >&5
14577 echo $ECHO_N "checking for GL/tube.h... $ECHO_C" >&6
14578 if test "${ac_cv_header_GL_tube_h+set}" = set; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14581 cat >conftest.$ac_ext <<_ACEOF
14582 #line $LINENO "configure"
14583 #include "confdefs.h"
14586 #include <GL/tube.h>
14588 rm -f conftest.$ac_objext
14589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14590 (eval $ac_compile) 2>&5
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); } &&
14594 { ac_try='test -s conftest.$ac_objext'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; }; then
14600 ac_cv_header_GL_tube_h=yes
14602 echo "$as_me: failed program was:" >&5
14603 cat conftest.$ac_ext >&5
14604 ac_cv_header_GL_tube_h=no
14606 rm -f conftest.$ac_objext conftest.$ac_ext
14608 echo "$as_me:$LINENO: result: $ac_cv_header_GL_tube_h" >&5
14609 echo "${ECHO_T}$ac_cv_header_GL_tube_h" >&6
14610 if test $ac_cv_header_GL_tube_h = yes; then
14617 CPPFLAGS="$ac_save_CPPFLAGS"
14621 if test "$have_gle" = yes ; then
14625 ac_save_CPPFLAGS="$CPPFLAGS"
14626 ac_save_LDFLAGS="$LDFLAGS"
14627 # ac_save_LIBS="$LIBS"
14629 if test \! -z "$includedir" ; then
14630 CPPFLAGS="$CPPFLAGS -I$includedir"
14632 # note: $X_CFLAGS includes $x_includes
14633 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14635 if test \! -z "$libdir" ; then
14636 LDFLAGS="$LDFLAGS -L$libdir"
14638 # note: $X_LIBS includes $x_libraries
14639 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14641 echo "$as_me:$LINENO: checking for gleCreateGC in -lgle" >&5
14642 echo $ECHO_N "checking for gleCreateGC in -lgle... $ECHO_C" >&6
14643 if test "${ac_cv_lib_gle_gleCreateGC+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14646 ac_check_lib_save_LIBS=$LIBS
14647 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
14648 cat >conftest.$ac_ext <<_ACEOF
14649 #line $LINENO "configure"
14650 #include "confdefs.h"
14652 /* Override any gcc2 internal prototype to avoid an error. */
14656 /* We use char because int might match the return type of a gcc2
14657 builtin and then its argument prototype would still apply. */
14658 char gleCreateGC ();
14659 #ifdef F77_DUMMY_MAIN
14660 # ifdef __cplusplus
14663 int F77_DUMMY_MAIN() { return 1; }
14673 rm -f conftest.$ac_objext conftest$ac_exeext
14674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14675 (eval $ac_link) 2>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); } &&
14679 { ac_try='test -s conftest$ac_exeext'
14680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }; then
14685 ac_cv_lib_gle_gleCreateGC=yes
14687 echo "$as_me: failed program was:" >&5
14688 cat conftest.$ac_ext >&5
14689 ac_cv_lib_gle_gleCreateGC=no
14691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14692 LIBS=$ac_check_lib_save_LIBS
14694 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_gleCreateGC" >&5
14695 echo "${ECHO_T}$ac_cv_lib_gle_gleCreateGC" >&6
14696 if test $ac_cv_lib_gle_gleCreateGC = yes; then
14697 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
14700 CPPFLAGS="$ac_save_CPPFLAGS"
14701 LDFLAGS="$ac_save_LDFLAGS"
14702 # LIBS="$ac_save_LIBS"
14705 if test "$have_gle" = yes ; then
14709 # sometimes the libmatrix stuff is included in libgle. look there first.
14711 # I don't get it. For some reason, this test passes on SGI, as if
14712 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
14713 # Yet the link is succeeding. Why???
14715 # AC_CHECK_X_LIB(gle, uview_direction_d,
14716 # [have_gle=yes; gle_halfassed=no],
14717 # [], $GL_LIBS -lX11 -lXext -lm)
14719 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
14721 if test "$have_gle3" = yes ; then
14723 ac_save_CPPFLAGS="$CPPFLAGS"
14724 ac_save_LDFLAGS="$LDFLAGS"
14725 # ac_save_LIBS="$LIBS"
14727 if test \! -z "$includedir" ; then
14728 CPPFLAGS="$CPPFLAGS -I$includedir"
14730 # note: $X_CFLAGS includes $x_includes
14731 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14733 if test \! -z "$libdir" ; then
14734 LDFLAGS="$LDFLAGS -L$libdir"
14736 # note: $X_LIBS includes $x_libraries
14737 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14739 echo "$as_me:$LINENO: checking for uview_direction in -lgle" >&5
14740 echo $ECHO_N "checking for uview_direction in -lgle... $ECHO_C" >&6
14741 if test "${ac_cv_lib_gle_uview_direction+set}" = set; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14744 ac_check_lib_save_LIBS=$LIBS
14745 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
14746 cat >conftest.$ac_ext <<_ACEOF
14747 #line $LINENO "configure"
14748 #include "confdefs.h"
14750 /* Override any gcc2 internal prototype to avoid an error. */
14754 /* We use char because int might match the return type of a gcc2
14755 builtin and then its argument prototype would still apply. */
14756 char uview_direction ();
14757 #ifdef F77_DUMMY_MAIN
14758 # ifdef __cplusplus
14761 int F77_DUMMY_MAIN() { return 1; }
14766 uview_direction ();
14771 rm -f conftest.$ac_objext conftest$ac_exeext
14772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14773 (eval $ac_link) 2>&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } &&
14777 { ac_try='test -s conftest$ac_exeext'
14778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779 (eval $ac_try) 2>&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; }; then
14783 ac_cv_lib_gle_uview_direction=yes
14785 echo "$as_me: failed program was:" >&5
14786 cat conftest.$ac_ext >&5
14787 ac_cv_lib_gle_uview_direction=no
14789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14790 LIBS=$ac_check_lib_save_LIBS
14792 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_uview_direction" >&5
14793 echo "${ECHO_T}$ac_cv_lib_gle_uview_direction" >&6
14794 if test $ac_cv_lib_gle_uview_direction = yes; then
14795 have_gle=yes; gle_halfassed=no
14798 CPPFLAGS="$ac_save_CPPFLAGS"
14799 LDFLAGS="$ac_save_LDFLAGS"
14800 # LIBS="$ac_save_LIBS"
14803 # if it wasn't in libgle, then look in libmatrix.
14804 if test "$have_gle" = no ; then
14806 ac_save_CPPFLAGS="$CPPFLAGS"
14807 ac_save_LDFLAGS="$LDFLAGS"
14808 # ac_save_LIBS="$LIBS"
14810 if test \! -z "$includedir" ; then
14811 CPPFLAGS="$CPPFLAGS -I$includedir"
14813 # note: $X_CFLAGS includes $x_includes
14814 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14816 if test \! -z "$libdir" ; then
14817 LDFLAGS="$LDFLAGS -L$libdir"
14819 # note: $X_LIBS includes $x_libraries
14820 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14822 echo "$as_me:$LINENO: checking for uview_direction_d in -lmatrix" >&5
14823 echo $ECHO_N "checking for uview_direction_d in -lmatrix... $ECHO_C" >&6
14824 if test "${ac_cv_lib_matrix_uview_direction_d+set}" = set; then
14825 echo $ECHO_N "(cached) $ECHO_C" >&6
14827 ac_check_lib_save_LIBS=$LIBS
14828 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
14829 cat >conftest.$ac_ext <<_ACEOF
14830 #line $LINENO "configure"
14831 #include "confdefs.h"
14833 /* Override any gcc2 internal prototype to avoid an error. */
14837 /* We use char because int might match the return type of a gcc2
14838 builtin and then its argument prototype would still apply. */
14839 char uview_direction_d ();
14840 #ifdef F77_DUMMY_MAIN
14841 # ifdef __cplusplus
14844 int F77_DUMMY_MAIN() { return 1; }
14849 uview_direction_d ();
14854 rm -f conftest.$ac_objext conftest$ac_exeext
14855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14856 (eval $ac_link) 2>&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } &&
14860 { ac_try='test -s conftest$ac_exeext'
14861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862 (eval $ac_try) 2>&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; }; then
14866 ac_cv_lib_matrix_uview_direction_d=yes
14868 echo "$as_me: failed program was:" >&5
14869 cat conftest.$ac_ext >&5
14870 ac_cv_lib_matrix_uview_direction_d=no
14872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14873 LIBS=$ac_check_lib_save_LIBS
14875 echo "$as_me:$LINENO: result: $ac_cv_lib_matrix_uview_direction_d" >&5
14876 echo "${ECHO_T}$ac_cv_lib_matrix_uview_direction_d" >&6
14877 if test $ac_cv_lib_matrix_uview_direction_d = yes; then
14878 have_gle=yes; gle_halfassed=no;
14879 GLE_LIBS="$GLE_LIBS -lmatrix"
14882 CPPFLAGS="$ac_save_CPPFLAGS"
14883 LDFLAGS="$ac_save_LDFLAGS"
14884 # LIBS="$ac_save_LIBS"
14889 if test "$have_gle" = yes ; then
14890 cat >>confdefs.h <<\_ACEOF
14894 if test "$have_gle3" = yes ; then
14895 cat >>confdefs.h <<\_ACEOF
14896 #define HAVE_GLE3 1
14902 elif test "$with_gle" != no; then
14903 echo "error: must be yes or no: --with-gle=$with_gle"
14910 ###############################################################################
14914 ###############################################################################
14917 with_xpm_req=unspecified
14919 # Check whether --with-xpm or --without-xpm was given.
14920 if test "${with_xpm+set}" = set; then
14921 withval="$with_xpm"
14922 with_xpm="$withval"; with_xpm_req="$withval"
14928 case "$with_xpm" in
14933 echo "$as_me:$LINENO: checking for XPM headers" >&5
14934 echo $ECHO_N "checking for XPM headers... $ECHO_C" >&6
14935 d=$with_xpm/include
14936 if test -d $d; then
14937 X_CFLAGS="-I$d $X_CFLAGS"
14938 echo "$as_me:$LINENO: result: $d" >&5
14939 echo "${ECHO_T}$d" >&6
14941 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14942 echo "${ECHO_T}not found ($d: no such directory)" >&6
14945 echo "$as_me:$LINENO: checking for XPM libs" >&5
14946 echo $ECHO_N "checking for XPM libs... $ECHO_C" >&6
14948 if test -d $d; then
14949 X_LIBS="-L$d $X_LIBS"
14950 echo "$as_me:$LINENO: result: $d" >&5
14951 echo "${ECHO_T}$d" >&6
14953 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14954 echo "${ECHO_T}not found ($d: no such directory)" >&6
14957 # replace the directory string with "yes".
14959 with_xpm=$with_xpm_req
14964 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
14965 echo " If it is a directory, then \`DIR/include' will be added to"
14966 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14972 if test "$with_xpm" = yes; then
14974 ac_save_CPPFLAGS="$CPPFLAGS"
14975 if test \! -z "$includedir" ; then
14976 CPPFLAGS="$CPPFLAGS -I$includedir"
14978 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14979 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14980 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
14981 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14984 cat >conftest.$ac_ext <<_ACEOF
14985 #line $LINENO "configure"
14986 #include "confdefs.h"
14987 #include <X11/Xlib.h>
14989 #include <X11/xpm.h>
14991 rm -f conftest.$ac_objext
14992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14993 (eval $ac_compile) 2>&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -s conftest.$ac_objext'
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; }; then
15003 ac_cv_header_X11_xpm_h=yes
15005 echo "$as_me: failed program was:" >&5
15006 cat conftest.$ac_ext >&5
15007 ac_cv_header_X11_xpm_h=no
15009 rm -f conftest.$ac_objext conftest.$ac_ext
15011 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
15012 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
15013 if test $ac_cv_header_X11_xpm_h = yes; then
15015 cat >>confdefs.h <<\_ACEOF
15023 CPPFLAGS="$ac_save_CPPFLAGS"
15024 elif test "$with_xpm" != no; then
15025 echo "error: must be yes or no: --with-xpm=$with_xpm"
15029 # See comment near $motif_requires_xpm, above.
15030 # Need to do this here, after both Motif and XPM have been checked for.
15032 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
15033 if test "$motif_requires_xpm" = yes ; then
15034 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
15039 ###############################################################################
15041 # Check for -lgdk_pixbuf.
15043 ###############################################################################
15046 with_gdk_pixbuf_req=unspecified
15048 # Check whether --with-pixbuf or --without-pixbuf was given.
15049 if test "${with_pixbuf+set}" = set; then
15050 withval="$with_pixbuf"
15051 with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
15053 with_gdk_pixbuf=yes
15056 # if --with-pixbuf=/directory/ was specified, remember that directory so that
15057 # we can also look for the `gdk-pixbuf-config' program in that directory.
15058 case "$with_gdk_pixbuf" in
15060 gdk_pixbuf_dir="$with_gdk_pixbuf"
15068 case "$with_gdk_pixbuf" in
15073 echo "$as_me:$LINENO: checking for GDK_PIXBUF headers" >&5
15074 echo $ECHO_N "checking for GDK_PIXBUF headers... $ECHO_C" >&6
15075 d=$with_gdk_pixbuf/include
15076 if test -d $d; then
15077 X_CFLAGS="-I$d $X_CFLAGS"
15078 echo "$as_me:$LINENO: result: $d" >&5
15079 echo "${ECHO_T}$d" >&6
15081 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15082 echo "${ECHO_T}not found ($d: no such directory)" >&6
15085 echo "$as_me:$LINENO: checking for GDK_PIXBUF libs" >&5
15086 echo $ECHO_N "checking for GDK_PIXBUF libs... $ECHO_C" >&6
15087 d=$with_gdk_pixbuf/lib
15088 if test -d $d; then
15089 X_LIBS="-L$d $X_LIBS"
15090 echo "$as_me:$LINENO: result: $d" >&5
15091 echo "${ECHO_T}$d" >&6
15093 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15094 echo "${ECHO_T}not found ($d: no such directory)" >&6
15097 # replace the directory string with "yes".
15098 with_gdk_pixbuf_req="yes"
15099 with_gdk_pixbuf=$with_gdk_pixbuf_req
15104 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
15105 echo " If it is a directory, then \`DIR/include' will be added to"
15106 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15112 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
15113 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
15117 if test "$with_gdk_pixbuf" = yes; then
15120 # if the user specified --with-gtk=/foo/ or --with-gnome=/foo/ then
15121 # look in /foo/bin/ for for gdk-pixbuf-config.
15123 gdk_pixbuf_path="$PATH"
15125 if test ! -z "$gtk_dir"; then
15126 # canonicalize slashes.
15127 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
15128 gdk_pixbuf_path="$foo:$gdk_pixbuf_path"
15131 if test ! -z "$gnome_dir"; then
15132 # canonicalize slashes.
15133 foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
15134 gdk_pixbuf_path="$foo:$gdk_pixbuf_path"
15137 for ac_prog in gdk-pixbuf-config
15139 # Extract the first word of "$ac_prog", so it can be a program name with args.
15140 set dummy $ac_prog; ac_word=$2
15141 echo "$as_me:$LINENO: checking for $ac_word" >&5
15142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15143 if test "${ac_cv_path_gdk_pixbuf_config+set}" = set; then
15144 echo $ECHO_N "(cached) $ECHO_C" >&6
15146 case $gdk_pixbuf_config in
15148 ac_cv_path_gdk_pixbuf_config="$gdk_pixbuf_config" # Let the user override the test with a path.
15151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15152 for as_dir in $gdk_pixbuf_path
15155 test -z "$as_dir" && as_dir=.
15156 for ac_exec_ext in '' $ac_executable_extensions; do
15157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15158 ac_cv_path_gdk_pixbuf_config="$as_dir/$ac_word$ac_exec_ext"
15159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15168 gdk_pixbuf_config=$ac_cv_path_gdk_pixbuf_config
15170 if test -n "$gdk_pixbuf_config"; then
15171 echo "$as_me:$LINENO: result: $gdk_pixbuf_config" >&5
15172 echo "${ECHO_T}$gdk_pixbuf_config" >&6
15174 echo "$as_me:$LINENO: result: no" >&5
15175 echo "${ECHO_T}no" >&6
15178 test -n "$gdk_pixbuf_config" && break
15182 # If we found the gdk-pixbuf-config program, run it to get flags.
15184 if test -n "$gdk_pixbuf_config" ; then
15185 echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
15186 echo $ECHO_N "checking for gdk-pixbuf includes... $ECHO_C" >&6
15187 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
15188 echo $ECHO_N "(cached) $ECHO_C" >&6
15190 ac_cv_gdk_pixbuf_config_cflags=`$gdk_pixbuf_config --cflags`
15192 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
15193 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_cflags" >&6
15194 echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
15195 echo $ECHO_N "checking for gdk-pixbuf libs... $ECHO_C" >&6
15196 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
15197 echo $ECHO_N "(cached) $ECHO_C" >&6
15199 ac_cv_gdk_pixbuf_config_libs=`$gdk_pixbuf_config --libs`
15201 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
15202 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_libs" >&6
15203 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
15204 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
15207 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
15208 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
15210 # check for header 1...
15212 ac_save_CPPFLAGS="$CPPFLAGS"
15213 if test \! -z "$includedir" ; then
15214 CPPFLAGS="$CPPFLAGS -I$includedir"
15216 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15217 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
15218 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
15219 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
15220 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
15221 echo $ECHO_N "(cached) $ECHO_C" >&6
15223 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
15224 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
15226 # Is the header compilable?
15227 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h usability" >&5
15228 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h usability... $ECHO_C" >&6
15229 cat >conftest.$ac_ext <<_ACEOF
15230 #line $LINENO "configure"
15231 #include "confdefs.h"
15232 $ac_includes_default
15233 #include <gdk-pixbuf/gdk-pixbuf.h>
15235 rm -f conftest.$ac_objext
15236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15237 (eval $ac_compile) 2>&5
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); } &&
15241 { ac_try='test -s conftest.$ac_objext'
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; }; then
15247 ac_header_compiler=yes
15249 echo "$as_me: failed program was:" >&5
15250 cat conftest.$ac_ext >&5
15251 ac_header_compiler=no
15253 rm -f conftest.$ac_objext conftest.$ac_ext
15254 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15255 echo "${ECHO_T}$ac_header_compiler" >&6
15257 # Is the header present?
15258 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h presence" >&5
15259 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h presence... $ECHO_C" >&6
15260 cat >conftest.$ac_ext <<_ACEOF
15261 #line $LINENO "configure"
15262 #include "confdefs.h"
15263 #include <gdk-pixbuf/gdk-pixbuf.h>
15265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15268 egrep -v '^ *\+' conftest.er1 >conftest.err
15270 cat conftest.err >&5
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); } >/dev/null; then
15273 if test -s conftest.err; then
15274 ac_cpp_err=$ac_c_preproc_warn_flag
15281 if test -z "$ac_cpp_err"; then
15282 ac_header_preproc=yes
15284 echo "$as_me: failed program was:" >&5
15285 cat conftest.$ac_ext >&5
15286 ac_header_preproc=no
15288 rm -f conftest.err conftest.$ac_ext
15289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15290 echo "${ECHO_T}$ac_header_preproc" >&6
15292 # So? What about this header?
15293 case $ac_header_compiler:$ac_header_preproc in
15295 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&5
15296 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15297 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
15298 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;};;
15300 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&5
15301 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&2;}
15302 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&5
15303 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&2;}
15304 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
15305 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;};;
15307 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
15308 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
15309 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
15310 echo $ECHO_N "(cached) $ECHO_C" >&6
15312 ac_cv_header_gdk_pixbuf_gdk_pixbuf_h=$ac_header_preproc
15314 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
15315 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
15318 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h = yes; then
15319 have_gdk_pixbuf=yes
15323 CPPFLAGS="$ac_save_CPPFLAGS"
15325 # if that worked, check for header 2...
15326 if test "$have_gdk_pixbuf" = yes; then
15329 ac_save_CPPFLAGS="$CPPFLAGS"
15330 if test \! -z "$includedir" ; then
15331 CPPFLAGS="$CPPFLAGS -I$includedir"
15333 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15334 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
15335 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
15336 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
15337 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
15338 echo $ECHO_N "(cached) $ECHO_C" >&6
15340 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
15341 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
15343 # Is the header compilable?
15344 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h usability" >&5
15345 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
15346 cat >conftest.$ac_ext <<_ACEOF
15347 #line $LINENO "configure"
15348 #include "confdefs.h"
15349 $ac_includes_default
15350 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
15352 rm -f conftest.$ac_objext
15353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15354 (eval $ac_compile) 2>&5
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); } &&
15358 { ac_try='test -s conftest.$ac_objext'
15359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; }; then
15364 ac_header_compiler=yes
15366 echo "$as_me: failed program was:" >&5
15367 cat conftest.$ac_ext >&5
15368 ac_header_compiler=no
15370 rm -f conftest.$ac_objext conftest.$ac_ext
15371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15372 echo "${ECHO_T}$ac_header_compiler" >&6
15374 # Is the header present?
15375 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h presence" >&5
15376 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
15377 cat >conftest.$ac_ext <<_ACEOF
15378 #line $LINENO "configure"
15379 #include "confdefs.h"
15380 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
15382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15385 egrep -v '^ *\+' conftest.er1 >conftest.err
15387 cat conftest.err >&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } >/dev/null; then
15390 if test -s conftest.err; then
15391 ac_cpp_err=$ac_c_preproc_warn_flag
15398 if test -z "$ac_cpp_err"; then
15399 ac_header_preproc=yes
15401 echo "$as_me: failed program was:" >&5
15402 cat conftest.$ac_ext >&5
15403 ac_header_preproc=no
15405 rm -f conftest.err conftest.$ac_ext
15406 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15407 echo "${ECHO_T}$ac_header_preproc" >&6
15409 # So? What about this header?
15410 case $ac_header_compiler:$ac_header_preproc in
15412 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15413 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15414 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
15415 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;};;
15417 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
15418 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
15419 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
15420 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
15421 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
15422 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;};;
15424 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
15425 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
15426 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
15429 ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h=$ac_header_preproc
15431 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
15432 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
15435 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h = yes; then
15436 have_gdk_pixbuf=yes
15440 CPPFLAGS="$ac_save_CPPFLAGS"
15443 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
15445 if test "$have_gdk_pixbuf" = yes; then
15446 # we have the headers, now check for the libraries
15448 gdk_pixbuf_halfassed=yes
15451 ac_save_CPPFLAGS="$CPPFLAGS"
15452 ac_save_LDFLAGS="$LDFLAGS"
15453 # ac_save_LIBS="$LIBS"
15455 if test \! -z "$includedir" ; then
15456 CPPFLAGS="$CPPFLAGS -I$includedir"
15458 # note: $X_CFLAGS includes $x_includes
15459 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15461 if test \! -z "$libdir" ; then
15462 LDFLAGS="$LDFLAGS -L$libdir"
15464 # note: $X_LIBS includes $x_libraries
15465 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15467 echo "$as_me:$LINENO: checking for gdk_pixbuf_new_from_file in -lgdk_pixbuf" >&5
15468 echo $ECHO_N "checking for gdk_pixbuf_new_from_file in -lgdk_pixbuf... $ECHO_C" >&6
15469 if test "${ac_cv_lib_gdk_pixbuf_gdk_pixbuf_new_from_file+set}" = set; then
15470 echo $ECHO_N "(cached) $ECHO_C" >&6
15472 ac_check_lib_save_LIBS=$LIBS
15473 LIBS="-lgdk_pixbuf $ac_gdk_pixbuf_config_libs $LIBS"
15474 cat >conftest.$ac_ext <<_ACEOF
15475 #line $LINENO "configure"
15476 #include "confdefs.h"
15478 /* Override any gcc2 internal prototype to avoid an error. */
15482 /* We use char because int might match the return type of a gcc2
15483 builtin and then its argument prototype would still apply. */
15484 char gdk_pixbuf_new_from_file ();
15485 #ifdef F77_DUMMY_MAIN
15486 # ifdef __cplusplus
15489 int F77_DUMMY_MAIN() { return 1; }
15494 gdk_pixbuf_new_from_file ();
15499 rm -f conftest.$ac_objext conftest$ac_exeext
15500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15501 (eval $ac_link) 2>&5
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); } &&
15505 { ac_try='test -s conftest$ac_exeext'
15506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507 (eval $ac_try) 2>&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); }; }; then
15511 ac_cv_lib_gdk_pixbuf_gdk_pixbuf_new_from_file=yes
15513 echo "$as_me: failed program was:" >&5
15514 cat conftest.$ac_ext >&5
15515 ac_cv_lib_gdk_pixbuf_gdk_pixbuf_new_from_file=no
15517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15518 LIBS=$ac_check_lib_save_LIBS
15520 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_pixbuf_gdk_pixbuf_new_from_file" >&5
15521 echo "${ECHO_T}$ac_cv_lib_gdk_pixbuf_gdk_pixbuf_new_from_file" >&6
15522 if test $ac_cv_lib_gdk_pixbuf_gdk_pixbuf_new_from_file = yes; then
15523 have_gdk_pixbuf=yes
15528 CPPFLAGS="$ac_save_CPPFLAGS"
15529 LDFLAGS="$ac_save_LDFLAGS"
15530 # LIBS="$ac_save_LIBS"
15533 if test "$have_gdk_pixbuf" = yes; then
15535 ac_save_CPPFLAGS="$CPPFLAGS"
15536 ac_save_LDFLAGS="$LDFLAGS"
15537 # ac_save_LIBS="$LIBS"
15539 if test \! -z "$includedir" ; then
15540 CPPFLAGS="$CPPFLAGS -I$includedir"
15542 # note: $X_CFLAGS includes $x_includes
15543 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15545 if test \! -z "$libdir" ; then
15546 LDFLAGS="$LDFLAGS -L$libdir"
15548 # note: $X_LIBS includes $x_libraries
15549 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15551 echo "$as_me:$LINENO: checking for gdk_pixbuf_xlib_init in -lgdk_pixbuf_xlib" >&5
15552 echo $ECHO_N "checking for gdk_pixbuf_xlib_init in -lgdk_pixbuf_xlib... $ECHO_C" >&6
15553 if test "${ac_cv_lib_gdk_pixbuf_xlib_gdk_pixbuf_xlib_init+set}" = set; then
15554 echo $ECHO_N "(cached) $ECHO_C" >&6
15556 ac_check_lib_save_LIBS=$LIBS
15557 LIBS="-lgdk_pixbuf_xlib $ac_gdk_pixbuf_config_libs $LIBS"
15558 cat >conftest.$ac_ext <<_ACEOF
15559 #line $LINENO "configure"
15560 #include "confdefs.h"
15562 /* Override any gcc2 internal prototype to avoid an error. */
15566 /* We use char because int might match the return type of a gcc2
15567 builtin and then its argument prototype would still apply. */
15568 char gdk_pixbuf_xlib_init ();
15569 #ifdef F77_DUMMY_MAIN
15570 # ifdef __cplusplus
15573 int F77_DUMMY_MAIN() { return 1; }
15578 gdk_pixbuf_xlib_init ();
15583 rm -f conftest.$ac_objext conftest$ac_exeext
15584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15585 (eval $ac_link) 2>&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); } &&
15589 { ac_try='test -s conftest$ac_exeext'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_cv_lib_gdk_pixbuf_xlib_gdk_pixbuf_xlib_init=yes
15597 echo "$as_me: failed program was:" >&5
15598 cat conftest.$ac_ext >&5
15599 ac_cv_lib_gdk_pixbuf_xlib_gdk_pixbuf_xlib_init=no
15601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15602 LIBS=$ac_check_lib_save_LIBS
15604 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_pixbuf_xlib_gdk_pixbuf_xlib_init" >&5
15605 echo "${ECHO_T}$ac_cv_lib_gdk_pixbuf_xlib_gdk_pixbuf_xlib_init" >&6
15606 if test $ac_cv_lib_gdk_pixbuf_xlib_gdk_pixbuf_xlib_init = yes; then
15607 have_gdk_pixbuf=yes
15608 gdk_pixbuf_halfassed=no
15613 CPPFLAGS="$ac_save_CPPFLAGS"
15614 LDFLAGS="$ac_save_LDFLAGS"
15615 # LIBS="$ac_save_LIBS"
15620 if test "$have_gdk_pixbuf" = yes; then
15621 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
15622 XPM_LIBS="$ac_gdk_pixbuf_config_libs -lgdk_pixbuf -lgdk_pixbuf_xlib"
15623 cat >>confdefs.h <<\_ACEOF
15624 #define HAVE_GDK_PIXBUF 1
15631 ###############################################################################
15635 ###############################################################################
15638 with_jpeg_req=unspecified
15641 # Check whether --with-jpeg or --without-jpeg was given.
15642 if test "${with_jpeg+set}" = set; then
15643 withval="$with_jpeg"
15644 with_jpeg="$withval"; with_jpeg_req="$withval"
15650 case "$with_jpeg" in
15655 echo "$as_me:$LINENO: checking for JPEG headers" >&5
15656 echo $ECHO_N "checking for JPEG headers... $ECHO_C" >&6
15657 d=$with_jpeg/include
15658 if test -d $d; then
15659 X_CFLAGS="-I$d $X_CFLAGS"
15660 echo "$as_me:$LINENO: result: $d" >&5
15661 echo "${ECHO_T}$d" >&6
15663 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15664 echo "${ECHO_T}not found ($d: no such directory)" >&6
15667 echo "$as_me:$LINENO: checking for JPEG libs" >&5
15668 echo $ECHO_N "checking for JPEG libs... $ECHO_C" >&6
15670 if test -d $d; then
15671 X_LIBS="-L$d $X_LIBS"
15672 echo "$as_me:$LINENO: result: $d" >&5
15673 echo "${ECHO_T}$d" >&6
15675 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15676 echo "${ECHO_T}not found ($d: no such directory)" >&6
15679 # replace the directory string with "yes".
15680 with_jpeg_req="yes"
15681 with_jpeg=$with_jpeg_req
15686 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
15687 echo " If it is a directory, then \`DIR/include' will be added to"
15688 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15694 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
15695 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
15699 if test "$with_jpeg" = yes; then
15703 ac_save_CPPFLAGS="$CPPFLAGS"
15704 if test \! -z "$includedir" ; then
15705 CPPFLAGS="$CPPFLAGS -I$includedir"
15707 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15708 if test "${ac_cv_header_jpeglib_h+set}" = set; then
15709 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
15710 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
15711 if test "${ac_cv_header_jpeglib_h+set}" = set; then
15712 echo $ECHO_N "(cached) $ECHO_C" >&6
15714 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
15715 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
15717 # Is the header compilable?
15718 echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
15719 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
15720 cat >conftest.$ac_ext <<_ACEOF
15721 #line $LINENO "configure"
15722 #include "confdefs.h"
15723 $ac_includes_default
15724 #include <jpeglib.h>
15726 rm -f conftest.$ac_objext
15727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15728 (eval $ac_compile) 2>&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
15732 { ac_try='test -s conftest.$ac_objext'
15733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734 (eval $ac_try) 2>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; }; then
15738 ac_header_compiler=yes
15740 echo "$as_me: failed program was:" >&5
15741 cat conftest.$ac_ext >&5
15742 ac_header_compiler=no
15744 rm -f conftest.$ac_objext conftest.$ac_ext
15745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15746 echo "${ECHO_T}$ac_header_compiler" >&6
15748 # Is the header present?
15749 echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
15750 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
15751 cat >conftest.$ac_ext <<_ACEOF
15752 #line $LINENO "configure"
15753 #include "confdefs.h"
15754 #include <jpeglib.h>
15756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15759 egrep -v '^ *\+' conftest.er1 >conftest.err
15761 cat conftest.err >&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } >/dev/null; then
15764 if test -s conftest.err; then
15765 ac_cpp_err=$ac_c_preproc_warn_flag
15772 if test -z "$ac_cpp_err"; then
15773 ac_header_preproc=yes
15775 echo "$as_me: failed program was:" >&5
15776 cat conftest.$ac_ext >&5
15777 ac_header_preproc=no
15779 rm -f conftest.err conftest.$ac_ext
15780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15781 echo "${ECHO_T}$ac_header_preproc" >&6
15783 # So? What about this header?
15784 case $ac_header_compiler:$ac_header_preproc in
15786 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15787 echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15788 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
15789 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;};;
15791 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
15792 echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
15793 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
15794 echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
15795 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
15796 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;};;
15798 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
15799 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
15800 if test "${ac_cv_header_jpeglib_h+set}" = set; then
15801 echo $ECHO_N "(cached) $ECHO_C" >&6
15803 ac_cv_header_jpeglib_h=$ac_header_preproc
15805 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
15806 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
15809 if test $ac_cv_header_jpeglib_h = yes; then
15814 CPPFLAGS="$ac_save_CPPFLAGS"
15816 if test "$have_jpeg" = yes; then
15817 # we have the header, now check for the library
15821 ac_save_CPPFLAGS="$CPPFLAGS"
15822 ac_save_LDFLAGS="$LDFLAGS"
15823 # ac_save_LIBS="$LIBS"
15825 if test \! -z "$includedir" ; then
15826 CPPFLAGS="$CPPFLAGS -I$includedir"
15828 # note: $X_CFLAGS includes $x_includes
15829 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15831 if test \! -z "$libdir" ; then
15832 LDFLAGS="$LDFLAGS -L$libdir"
15834 # note: $X_LIBS includes $x_libraries
15835 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15837 echo "$as_me:$LINENO: checking for jpeg_start_compress in -ljpeg" >&5
15838 echo $ECHO_N "checking for jpeg_start_compress in -ljpeg... $ECHO_C" >&6
15839 if test "${ac_cv_lib_jpeg_jpeg_start_compress+set}" = set; then
15840 echo $ECHO_N "(cached) $ECHO_C" >&6
15842 ac_check_lib_save_LIBS=$LIBS
15843 LIBS="-ljpeg $LIBS"
15844 cat >conftest.$ac_ext <<_ACEOF
15845 #line $LINENO "configure"
15846 #include "confdefs.h"
15848 /* Override any gcc2 internal prototype to avoid an error. */
15852 /* We use char because int might match the return type of a gcc2
15853 builtin and then its argument prototype would still apply. */
15854 char jpeg_start_compress ();
15855 #ifdef F77_DUMMY_MAIN
15856 # ifdef __cplusplus
15859 int F77_DUMMY_MAIN() { return 1; }
15864 jpeg_start_compress ();
15869 rm -f conftest.$ac_objext conftest$ac_exeext
15870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15871 (eval $ac_link) 2>&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } &&
15875 { ac_try='test -s conftest$ac_exeext'
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); }; }; then
15881 ac_cv_lib_jpeg_jpeg_start_compress=yes
15883 echo "$as_me: failed program was:" >&5
15884 cat conftest.$ac_ext >&5
15885 ac_cv_lib_jpeg_jpeg_start_compress=no
15887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15888 LIBS=$ac_check_lib_save_LIBS
15890 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
15891 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_compress" >&6
15892 if test $ac_cv_lib_jpeg_jpeg_start_compress = yes; then
15896 cat >>confdefs.h <<\_ACEOF
15897 #define HAVE_JPEGLIB 1
15902 CPPFLAGS="$ac_save_CPPFLAGS"
15903 LDFLAGS="$ac_save_LDFLAGS"
15904 # LIBS="$ac_save_LIBS"
15910 ###############################################################################
15912 # Check for the XSHM server extension.
15914 ###############################################################################
15917 with_xshm_req=unspecified
15919 # Check whether --with-xshm-ext or --without-xshm-ext was given.
15920 if test "${with_xshm_ext+set}" = set; then
15921 withval="$with_xshm_ext"
15922 with_xshm="$withval"; with_xshm_req="$withval"
15928 case "$with_xshm" in
15933 echo "$as_me:$LINENO: checking for XSHM headers" >&5
15934 echo $ECHO_N "checking for XSHM headers... $ECHO_C" >&6
15935 d=$with_xshm/include
15936 if test -d $d; then
15937 X_CFLAGS="-I$d $X_CFLAGS"
15938 echo "$as_me:$LINENO: result: $d" >&5
15939 echo "${ECHO_T}$d" >&6
15941 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15942 echo "${ECHO_T}not found ($d: no such directory)" >&6
15945 echo "$as_me:$LINENO: checking for XSHM libs" >&5
15946 echo $ECHO_N "checking for XSHM libs... $ECHO_C" >&6
15948 if test -d $d; then
15949 X_LIBS="-L$d $X_LIBS"
15950 echo "$as_me:$LINENO: result: $d" >&5
15951 echo "${ECHO_T}$d" >&6
15953 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15954 echo "${ECHO_T}not found ($d: no such directory)" >&6
15957 # replace the directory string with "yes".
15958 with_xshm_req="yes"
15959 with_xshm=$with_xshm_req
15964 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
15965 echo " If it is a directory, then \`DIR/include' will be added to"
15966 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15972 if test "$with_xshm" = yes; then
15974 # first check for Xshm.h.
15976 ac_save_CPPFLAGS="$CPPFLAGS"
15977 if test \! -z "$includedir" ; then
15978 CPPFLAGS="$CPPFLAGS -I$includedir"
15980 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15981 echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5
15982 echo $ECHO_N "checking for X11/extensions/XShm.h... $ECHO_C" >&6
15983 if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 cat >conftest.$ac_ext <<_ACEOF
15987 #line $LINENO "configure"
15988 #include "confdefs.h"
15989 #include <X11/Xlib.h>
15991 #include <X11/extensions/XShm.h>
15993 rm -f conftest.$ac_objext
15994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15995 (eval $ac_compile) 2>&5
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); } &&
15999 { ac_try='test -s conftest.$ac_objext'
16000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16001 (eval $ac_try) 2>&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); }; }; then
16005 ac_cv_header_X11_extensions_XShm_h=yes
16007 echo "$as_me: failed program was:" >&5
16008 cat conftest.$ac_ext >&5
16009 ac_cv_header_X11_extensions_XShm_h=no
16011 rm -f conftest.$ac_objext conftest.$ac_ext
16013 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5
16014 echo "${ECHO_T}$ac_cv_header_X11_extensions_XShm_h" >&6
16015 if test $ac_cv_header_X11_extensions_XShm_h = yes; then
16020 CPPFLAGS="$ac_save_CPPFLAGS"
16022 # if that succeeded, then check for sys/ipc.h.
16023 if test "$have_xshm" = yes; then
16026 ac_save_CPPFLAGS="$CPPFLAGS"
16027 if test \! -z "$includedir" ; then
16028 CPPFLAGS="$CPPFLAGS -I$includedir"
16030 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16031 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
16032 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
16033 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
16034 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
16035 echo $ECHO_N "(cached) $ECHO_C" >&6
16037 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
16038 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
16040 # Is the header compilable?
16041 echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
16042 echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6
16043 cat >conftest.$ac_ext <<_ACEOF
16044 #line $LINENO "configure"
16045 #include "confdefs.h"
16046 $ac_includes_default
16047 #include <sys/ipc.h>
16049 rm -f conftest.$ac_objext
16050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16051 (eval $ac_compile) 2>&5
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); } &&
16055 { ac_try='test -s conftest.$ac_objext'
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; }; then
16061 ac_header_compiler=yes
16063 echo "$as_me: failed program was:" >&5
16064 cat conftest.$ac_ext >&5
16065 ac_header_compiler=no
16067 rm -f conftest.$ac_objext conftest.$ac_ext
16068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16069 echo "${ECHO_T}$ac_header_compiler" >&6
16071 # Is the header present?
16072 echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
16073 echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6
16074 cat >conftest.$ac_ext <<_ACEOF
16075 #line $LINENO "configure"
16076 #include "confdefs.h"
16077 #include <sys/ipc.h>
16079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16082 egrep -v '^ *\+' conftest.er1 >conftest.err
16084 cat conftest.err >&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } >/dev/null; then
16087 if test -s conftest.err; then
16088 ac_cpp_err=$ac_c_preproc_warn_flag
16095 if test -z "$ac_cpp_err"; then
16096 ac_header_preproc=yes
16098 echo "$as_me: failed program was:" >&5
16099 cat conftest.$ac_ext >&5
16100 ac_header_preproc=no
16102 rm -f conftest.err conftest.$ac_ext
16103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16104 echo "${ECHO_T}$ac_header_preproc" >&6
16106 # So? What about this header?
16107 case $ac_header_compiler:$ac_header_preproc in
16109 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16110 echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
16112 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;};;
16114 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
16115 echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
16117 echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
16119 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;};;
16121 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
16122 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
16123 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
16124 echo $ECHO_N "(cached) $ECHO_C" >&6
16126 ac_cv_header_sys_ipc_h=$ac_header_preproc
16128 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
16129 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
16132 if test $ac_cv_header_sys_ipc_h = yes; then
16137 CPPFLAGS="$ac_save_CPPFLAGS"
16140 # if that succeeded, then check for sys/shm.h.
16141 if test "$have_xshm" = yes; then
16144 ac_save_CPPFLAGS="$CPPFLAGS"
16145 if test \! -z "$includedir" ; then
16146 CPPFLAGS="$CPPFLAGS -I$includedir"
16148 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16149 if test "${ac_cv_header_sys_shm_h+set}" = set; then
16150 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
16151 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
16152 if test "${ac_cv_header_sys_shm_h+set}" = set; then
16153 echo $ECHO_N "(cached) $ECHO_C" >&6
16155 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
16156 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
16158 # Is the header compilable?
16159 echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
16160 echo $ECHO_N "checking sys/shm.h usability... $ECHO_C" >&6
16161 cat >conftest.$ac_ext <<_ACEOF
16162 #line $LINENO "configure"
16163 #include "confdefs.h"
16164 $ac_includes_default
16165 #include <sys/shm.h>
16167 rm -f conftest.$ac_objext
16168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16169 (eval $ac_compile) 2>&5
16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172 (exit $ac_status); } &&
16173 { ac_try='test -s conftest.$ac_objext'
16174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175 (eval $ac_try) 2>&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; }; then
16179 ac_header_compiler=yes
16181 echo "$as_me: failed program was:" >&5
16182 cat conftest.$ac_ext >&5
16183 ac_header_compiler=no
16185 rm -f conftest.$ac_objext conftest.$ac_ext
16186 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16187 echo "${ECHO_T}$ac_header_compiler" >&6
16189 # Is the header present?
16190 echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
16191 echo $ECHO_N "checking sys/shm.h presence... $ECHO_C" >&6
16192 cat >conftest.$ac_ext <<_ACEOF
16193 #line $LINENO "configure"
16194 #include "confdefs.h"
16195 #include <sys/shm.h>
16197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16200 egrep -v '^ *\+' conftest.er1 >conftest.err
16202 cat conftest.err >&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); } >/dev/null; then
16205 if test -s conftest.err; then
16206 ac_cpp_err=$ac_c_preproc_warn_flag
16213 if test -z "$ac_cpp_err"; then
16214 ac_header_preproc=yes
16216 echo "$as_me: failed program was:" >&5
16217 cat conftest.$ac_ext >&5
16218 ac_header_preproc=no
16220 rm -f conftest.err conftest.$ac_ext
16221 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16222 echo "${ECHO_T}$ac_header_preproc" >&6
16224 # So? What about this header?
16225 case $ac_header_compiler:$ac_header_preproc in
16227 { echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16228 echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16229 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
16230 echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;};;
16232 { echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
16233 echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
16234 { echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
16235 echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
16236 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
16237 echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;};;
16239 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
16240 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
16241 if test "${ac_cv_header_sys_shm_h+set}" = set; then
16242 echo $ECHO_N "(cached) $ECHO_C" >&6
16244 ac_cv_header_sys_shm_h=$ac_header_preproc
16246 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
16247 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
16250 if test $ac_cv_header_sys_shm_h = yes; then
16255 CPPFLAGS="$ac_save_CPPFLAGS"
16258 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
16259 # to exist, but the library code to not exist. And even better, the library
16260 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
16261 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
16262 # that's not quite right, but close enough.)
16266 if `uname -v` -eq 3 ; then
16269 ac_save_CPPFLAGS="$CPPFLAGS"
16270 ac_save_LDFLAGS="$LDFLAGS"
16271 # ac_save_LIBS="$LIBS"
16273 if test \! -z "$includedir" ; then
16274 CPPFLAGS="$CPPFLAGS -I$includedir"
16276 # note: $X_CFLAGS includes $x_includes
16277 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16279 if test \! -z "$libdir" ; then
16280 LDFLAGS="$LDFLAGS -L$libdir"
16282 # note: $X_LIBS includes $x_libraries
16283 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16285 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXextSam" >&5
16286 echo $ECHO_N "checking for XShmQueryExtension in -lXextSam... $ECHO_C" >&6
16287 if test "${ac_cv_lib_XextSam_XShmQueryExtension+set}" = set; then
16288 echo $ECHO_N "(cached) $ECHO_C" >&6
16290 ac_check_lib_save_LIBS=$LIBS
16291 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
16292 cat >conftest.$ac_ext <<_ACEOF
16293 #line $LINENO "configure"
16294 #include "confdefs.h"
16296 /* Override any gcc2 internal prototype to avoid an error. */
16300 /* We use char because int might match the return type of a gcc2
16301 builtin and then its argument prototype would still apply. */
16302 char XShmQueryExtension ();
16303 #ifdef F77_DUMMY_MAIN
16304 # ifdef __cplusplus
16307 int F77_DUMMY_MAIN() { return 1; }
16312 XShmQueryExtension ();
16317 rm -f conftest.$ac_objext conftest$ac_exeext
16318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16319 (eval $ac_link) 2>&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); } &&
16323 { ac_try='test -s conftest$ac_exeext'
16324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325 (eval $ac_try) 2>&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; }; then
16329 ac_cv_lib_XextSam_XShmQueryExtension=yes
16331 echo "$as_me: failed program was:" >&5
16332 cat conftest.$ac_ext >&5
16333 ac_cv_lib_XextSam_XShmQueryExtension=no
16335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16336 LIBS=$ac_check_lib_save_LIBS
16338 echo "$as_me:$LINENO: result: $ac_cv_lib_XextSam_XShmQueryExtension" >&5
16339 echo "${ECHO_T}$ac_cv_lib_XextSam_XShmQueryExtension" >&6
16340 if test $ac_cv_lib_XextSam_XShmQueryExtension = yes; then
16341 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
16346 CPPFLAGS="$ac_save_CPPFLAGS"
16347 LDFLAGS="$ac_save_LDFLAGS"
16348 # LIBS="$ac_save_LIBS"
16354 # if that succeeded, then we've really got it.
16355 if test "$have_xshm" = yes; then
16356 cat >>confdefs.h <<\_ACEOF
16357 #define HAVE_XSHM_EXTENSION 1
16362 elif test "$with_xshm" != no; then
16363 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
16368 ###############################################################################
16370 # Check for the DOUBLE-BUFFER server extension.
16372 ###############################################################################
16375 with_xdbe_req=unspecified
16377 # Check whether --with-xdbe-ext or --without-xdbe-ext was given.
16378 if test "${with_xdbe_ext+set}" = set; then
16379 withval="$with_xdbe_ext"
16380 with_xdbe="$withval"; with_xdbe_req="$withval"
16386 case "$with_xdbe" in
16391 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER headers" >&5
16392 echo $ECHO_N "checking for DOUBLE-BUFFER headers... $ECHO_C" >&6
16393 d=$with_xdbe/include
16394 if test -d $d; then
16395 X_CFLAGS="-I$d $X_CFLAGS"
16396 echo "$as_me:$LINENO: result: $d" >&5
16397 echo "${ECHO_T}$d" >&6
16399 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16400 echo "${ECHO_T}not found ($d: no such directory)" >&6
16403 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER libs" >&5
16404 echo $ECHO_N "checking for DOUBLE-BUFFER libs... $ECHO_C" >&6
16406 if test -d $d; then
16407 X_LIBS="-L$d $X_LIBS"
16408 echo "$as_me:$LINENO: result: $d" >&5
16409 echo "${ECHO_T}$d" >&6
16411 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16412 echo "${ECHO_T}not found ($d: no such directory)" >&6
16415 # replace the directory string with "yes".
16416 with_xdbe_req="yes"
16417 with_xdbe=$with_xdbe_req
16422 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
16423 echo " If it is a directory, then \`DIR/include' will be added to"
16424 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16430 if test "$with_xdbe" = yes; then
16433 ac_save_CPPFLAGS="$CPPFLAGS"
16434 if test \! -z "$includedir" ; then
16435 CPPFLAGS="$CPPFLAGS -I$includedir"
16437 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16438 echo "$as_me:$LINENO: checking for X11/extensions/Xdbe.h" >&5
16439 echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6
16440 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
16441 echo $ECHO_N "(cached) $ECHO_C" >&6
16443 cat >conftest.$ac_ext <<_ACEOF
16444 #line $LINENO "configure"
16445 #include "confdefs.h"
16446 #include <X11/Xlib.h>
16448 #include <X11/extensions/Xdbe.h>
16450 rm -f conftest.$ac_objext
16451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16452 (eval $ac_compile) 2>&5
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); } &&
16456 { ac_try='test -s conftest.$ac_objext'
16457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16458 (eval $ac_try) 2>&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); }; }; then
16462 ac_cv_header_X11_extensions_Xdbe_h=yes
16464 echo "$as_me: failed program was:" >&5
16465 cat conftest.$ac_ext >&5
16466 ac_cv_header_X11_extensions_Xdbe_h=no
16468 rm -f conftest.$ac_objext conftest.$ac_ext
16470 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
16471 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6
16472 if test $ac_cv_header_X11_extensions_Xdbe_h = yes; then
16477 CPPFLAGS="$ac_save_CPPFLAGS"
16478 if test "$have_xdbe" = yes; then
16479 cat >>confdefs.h <<\_ACEOF
16480 #define HAVE_DOUBLE_BUFFER_EXTENSION 1
16485 elif test "$with_xdbe" != no; then
16486 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
16491 ###############################################################################
16493 # Check for the SGI XReadDisplay server extension.
16495 # Note: this has to be down here, rather than up with the other server
16496 # extension tests, so that the output of `configure --help' is in the
16497 # right order. Arrgh!
16499 ###############################################################################
16501 have_readdisplay=no
16502 with_readdisplay_req=unspecified
16504 # Check whether --with-readdisplay or --without-readdisplay was given.
16505 if test "${with_readdisplay+set}" = set; then
16506 withval="$with_readdisplay"
16507 with_readdisplay="$withval"; with_readdisplay_req="$withval"
16509 with_readdisplay=yes
16513 case "$with_readdisplay" in
16518 echo "$as_me:$LINENO: checking for XReadDisplay headers" >&5
16519 echo $ECHO_N "checking for XReadDisplay headers... $ECHO_C" >&6
16520 d=$with_readdisplay/include
16521 if test -d $d; then
16522 X_CFLAGS="-I$d $X_CFLAGS"
16523 echo "$as_me:$LINENO: result: $d" >&5
16524 echo "${ECHO_T}$d" >&6
16526 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16527 echo "${ECHO_T}not found ($d: no such directory)" >&6
16530 echo "$as_me:$LINENO: checking for XReadDisplay libs" >&5
16531 echo $ECHO_N "checking for XReadDisplay libs... $ECHO_C" >&6
16532 d=$with_readdisplay/lib
16533 if test -d $d; then
16534 X_LIBS="-L$d $X_LIBS"
16535 echo "$as_me:$LINENO: result: $d" >&5
16536 echo "${ECHO_T}$d" >&6
16538 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16539 echo "${ECHO_T}not found ($d: no such directory)" >&6
16542 # replace the directory string with "yes".
16543 with_readdisplay_req="yes"
16544 with_readdisplay=$with_readdisplay_req
16549 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
16550 echo " If it is a directory, then \`DIR/include' will be added to"
16551 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16557 if test "$with_readdisplay" = yes; then
16559 ac_save_CPPFLAGS="$CPPFLAGS"
16560 if test \! -z "$includedir" ; then
16561 CPPFLAGS="$CPPFLAGS -I$includedir"
16563 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16564 echo "$as_me:$LINENO: checking for X11/extensions/readdisplay.h" >&5
16565 echo $ECHO_N "checking for X11/extensions/readdisplay.h... $ECHO_C" >&6
16566 if test "${ac_cv_header_X11_extensions_readdisplay_h+set}" = set; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16569 cat >conftest.$ac_ext <<_ACEOF
16570 #line $LINENO "configure"
16571 #include "confdefs.h"
16572 #include <X11/Xlib.h>
16574 #include <X11/extensions/readdisplay.h>
16576 rm -f conftest.$ac_objext
16577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16578 (eval $ac_compile) 2>&5
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); } &&
16582 { ac_try='test -s conftest.$ac_objext'
16583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584 (eval $ac_try) 2>&5
16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; }; then
16588 ac_cv_header_X11_extensions_readdisplay_h=yes
16590 echo "$as_me: failed program was:" >&5
16591 cat conftest.$ac_ext >&5
16592 ac_cv_header_X11_extensions_readdisplay_h=no
16594 rm -f conftest.$ac_objext conftest.$ac_ext
16596 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_readdisplay_h" >&5
16597 echo "${ECHO_T}$ac_cv_header_X11_extensions_readdisplay_h" >&6
16598 if test $ac_cv_header_X11_extensions_readdisplay_h = yes; then
16599 cat >>confdefs.h <<\_ACEOF
16600 #define HAVE_READ_DISPLAY_EXTENSION 1
16606 CPPFLAGS="$ac_save_CPPFLAGS"
16607 elif test "$with_readdisplay" != no; then
16608 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
16613 ###############################################################################
16615 # Check for a program to generate random text.
16617 # Zippy is funnier than the idiocy generally spat out by `fortune',
16618 # so first see if "fortune zippy" works. Else, use plain "fortune".
16620 # We used to dig around in Emacs to look for the "yow" program, but
16621 # most people who have Emacs also have "fortune zippy", so nevermind.
16623 ###############################################################################
16625 with_fortune_req=""
16627 # Check whether --with-fortune or --without-fortune was given.
16628 if test "${with_fortune+set}" = set; then
16629 withval="$with_fortune"
16630 with_fortune_req="$withval"; with_fortune="$withval"
16635 if test "$with_fortune" = no || test "$with_fortune" = yes ; then
16637 with_fortune_req=""
16640 if test -n "$with_fortune_req" ; then
16641 ac_cv_fortune_program=""
16642 case "$with_fortune_req" in
16645 set dummy $with_fortune_req ; fortune_tmp=$2
16646 echo "$as_me:$LINENO: checking for $fortune_tmp" >&5
16647 echo $ECHO_N "checking for $fortune_tmp... $ECHO_C" >&6
16648 if test -x "$fortune_tmp" ; then
16649 echo "$as_me:$LINENO: result: yes" >&5
16650 echo "${ECHO_T}yes" >&6
16652 echo "$as_me:$LINENO: result: no" >&5
16653 echo "${ECHO_T}no" >&6
16658 set dummy $with_fortune_req ; fortune_tmp=$2
16660 unset ac_cv_path_fortune_tmp
16661 # Extract the first word of "$fortune_tmp", so it can be a program name with args.
16662 set dummy $fortune_tmp; ac_word=$2
16663 echo "$as_me:$LINENO: checking for $ac_word" >&5
16664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16665 if test "${ac_cv_path_fortune_tmp+set}" = set; then
16666 echo $ECHO_N "(cached) $ECHO_C" >&6
16668 case $fortune_tmp in
16670 ac_cv_path_fortune_tmp="$fortune_tmp" # Let the user override the test with a path.
16673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16674 for as_dir in $PATH
16677 test -z "$as_dir" && as_dir=.
16678 for ac_exec_ext in '' $ac_executable_extensions; do
16679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16680 ac_cv_path_fortune_tmp="$as_dir/$ac_word$ac_exec_ext"
16681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16690 fortune_tmp=$ac_cv_path_fortune_tmp
16692 if test -n "$fortune_tmp"; then
16693 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
16694 echo "${ECHO_T}$fortune_tmp" >&6
16696 echo "$as_me:$LINENO: result: no" >&5
16697 echo "${ECHO_T}no" >&6
16700 if test -z "$fortune_tmp" ; then
16705 ac_cv_fortune_program="$with_fortune"
16707 elif test -n "$ac_cv_fortune_program"; then
16708 echo "$as_me:$LINENO: result: checking for fortune... (cached) $ac_cv_fortune_program" >&5
16709 echo "${ECHO_T}checking for fortune... (cached) $ac_cv_fortune_program" >&6
16712 unset ac_cv_path_fortune_tmp
16715 if test -z "$ac_cv_fortune_program" ; then
16717 # first look for fortune in /usr/games/ (and use absolute path)
16718 for ac_prog in fortune
16720 # Extract the first word of "$ac_prog", so it can be a program name with args.
16721 set dummy $ac_prog; ac_word=$2
16722 echo "$as_me:$LINENO: checking for $ac_word" >&5
16723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16724 if test "${ac_cv_path_fortune_tmp+set}" = set; then
16725 echo $ECHO_N "(cached) $ECHO_C" >&6
16727 case $fortune_tmp in
16729 ac_cv_path_fortune_tmp="$fortune_tmp" # Let the user override the test with a path.
16732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16733 as_dummy=""/usr/games""
16734 for as_dir in $as_dummy
16737 test -z "$as_dir" && as_dir=.
16738 for ac_exec_ext in '' $ac_executable_extensions; do
16739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16740 ac_cv_path_fortune_tmp="$as_dir/$ac_word$ac_exec_ext"
16741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16750 fortune_tmp=$ac_cv_path_fortune_tmp
16752 if test -n "$fortune_tmp"; then
16753 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
16754 echo "${ECHO_T}$fortune_tmp" >&6
16756 echo "$as_me:$LINENO: result: no" >&5
16757 echo "${ECHO_T}no" >&6
16760 test -n "$fortune_tmp" && break
16764 # if it's not there, look on $PATH (and don't use absolute path)
16765 if test -z "$fortune_tmp" ; then
16766 for ac_prog in fortune
16768 # Extract the first word of "$ac_prog", so it can be a program name with args.
16769 set dummy $ac_prog; ac_word=$2
16770 echo "$as_me:$LINENO: checking for $ac_word" >&5
16771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16772 if test "${ac_cv_prog_fortune_tmp+set}" = set; then
16773 echo $ECHO_N "(cached) $ECHO_C" >&6
16775 if test -n "$fortune_tmp"; then
16776 ac_cv_prog_fortune_tmp="$fortune_tmp" # Let the user override the test.
16778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16779 for as_dir in $PATH
16782 test -z "$as_dir" && as_dir=.
16783 for ac_exec_ext in '' $ac_executable_extensions; do
16784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16785 ac_cv_prog_fortune_tmp="$ac_prog"
16786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16794 fortune_tmp=$ac_cv_prog_fortune_tmp
16795 if test -n "$fortune_tmp"; then
16796 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
16797 echo "${ECHO_T}$fortune_tmp" >&6
16799 echo "$as_me:$LINENO: result: no" >&5
16800 echo "${ECHO_T}no" >&6
16803 test -n "$fortune_tmp" && break
16808 # if we didn't find anything, then just assume /usr/games/
16809 if test -z "$fortune_tmp" ; then
16810 fortune_tmp="/usr/games/fortune"
16813 ac_cv_fortune_program="$fortune_tmp"
16815 # now check to see whether "fortune zippy" works.
16817 fortune_tmp="$fortune_tmp zippy"
16818 echo "$as_me:$LINENO: checking for zippy quotes" >&5
16819 echo $ECHO_N "checking for zippy quotes... $ECHO_C" >&6
16820 if ( $fortune_tmp >/dev/null 2>&1 ); then
16821 ac_cv_fortune_program="$fortune_tmp"
16822 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
16823 echo "${ECHO_T}$fortune_tmp" >&6
16825 echo "$as_me:$LINENO: result: no" >&5
16826 echo "${ECHO_T}no" >&6
16831 unset ac_cv_path_fortune_tmp
16834 cat >>confdefs.h <<_ACEOF
16835 #define FORTUNE_PROGRAM "$ac_cv_fortune_program"
16840 ###############################################################################
16842 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
16843 # This should be safe, but let's give people the option.
16845 ###############################################################################
16847 setuid_hacks_default=no
16848 setuid_hacks="$setuid_hacks_default"
16850 # Check whether --with-setuid-hacks or --without-setuid-hacks was given.
16851 if test "${with_setuid_hacks+set}" = set; then
16852 withval="$with_setuid_hacks"
16853 setuid_hacks="$withval"
16855 setuid_hacks="$setuid_hacks_default"
16859 case "$setuid_hacks" in
16864 echo "$as_me:$LINENO: checking for setuid hacks headers" >&5
16865 echo $ECHO_N "checking for setuid hacks headers... $ECHO_C" >&6
16866 d=$setuid_hacks/include
16867 if test -d $d; then
16868 X_CFLAGS="-I$d $X_CFLAGS"
16869 echo "$as_me:$LINENO: result: $d" >&5
16870 echo "${ECHO_T}$d" >&6
16872 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16873 echo "${ECHO_T}not found ($d: no such directory)" >&6
16876 echo "$as_me:$LINENO: checking for setuid hacks libs" >&5
16877 echo $ECHO_N "checking for setuid hacks libs... $ECHO_C" >&6
16878 d=$setuid_hacks/lib
16879 if test -d $d; then
16880 X_LIBS="-L$d $X_LIBS"
16881 echo "$as_me:$LINENO: result: $d" >&5
16882 echo "${ECHO_T}$d" >&6
16884 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16885 echo "${ECHO_T}not found ($d: no such directory)" >&6
16888 # replace the directory string with "yes".
16889 setuid_hacks_req="yes"
16890 setuid_hacks=$setuid_hacks_req
16895 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
16896 echo " If it is a directory, then \`DIR/include' will be added to"
16897 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16903 if test "$setuid_hacks" = yes; then
16905 elif test "$setuid_hacks" != no; then
16906 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
16911 ###############################################################################
16913 # Done testing. Now, set up the various -I and -L variables,
16914 # and decide which GUI program to build by default.
16916 ###############################################################################
16923 if test \! -z "$includedir" ; then
16924 INCLUDES="$INCLUDES -I$includedir"
16927 if test \! -z "$libdir" ; then
16928 LDFLAGS="$LDFLAGS -L$libdir"
16932 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
16934 if test "$have_motif" = yes; then
16935 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
16936 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
16938 if test "$have_gtk" = yes; then
16939 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
16940 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
16944 if test "$have_kerberos" = yes; then
16945 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
16946 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
16948 if test "$have_pam" = yes; then
16949 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
16950 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
16951 INSTALL_PAM="install-pam"
16953 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
16954 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
16957 if test "$enable_locking" = yes; then
16958 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
16959 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
16961 LOCK_SRCS='$(NOLOCK_SRCS_1)'
16962 LOCK_OBJS='$(NOLOCK_OBJS_1)'
16965 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
16967 if test "$need_setuid" = yes; then
16973 if test "$setuid_hacks" = yes; then
16980 if test "$have_gl" = yes; then
16981 GL_EXES='$(GL_EXES)'
16982 GL_UTIL_EXES='$(GL_UTIL_EXES)'
16984 GL_KLUDGE="${tab} "
16986 GL_KLUDGE="-${tab} "
16989 if test "$have_gle" = yes; then
16990 GLE_EXES='$(GLE_EXES)'
16991 GLE_MEN='$(GLE_MEN)'
16992 GLE_KLUDGE="${tab} "
16994 GLE_KLUDGE="-${tab} "
16997 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
16998 JPEG_EXES='$(JPEG_EXES)'
17002 # Another substitution in the XScreenSaver.ad.in file:
17004 if test "$have_gnome_help" = yes; then
17013 # Now that we know whether we have Gnome, we can decide where the XML
17014 # config files get installed.
17016 if test -z "$HACK_CONF_DIR" ; then
17017 if test -n "$GNOME_DATADIR" ; then
17018 HACK_CONF_DIR='${GNOME_DATADIR}/control-center/screensavers'
17020 HACK_CONF_DIR='${prefix}/lib/xscreensaver/config'
17026 # After computing $HACK_CONF_DIR, make sure $GTK_ICONDIR has a value
17027 # so that we know where to install the Gtk pixmaps.
17029 if test -n "$GNOME_DATADIR" ; then
17030 GTK_ICONDIR='$(GNOME_DATADIR)/pixmaps'
17031 elif test "$have_gtk" = yes; then
17032 # should this be "$(prefix)/share/pixmaps"? But /usr/X11R6/share/ is wrong...
17033 GTK_ICONDIR='/usr/share/pixmaps'
17039 # canonicalize slashes.
17040 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
17044 ###############################################################################
17046 # Perform substitutions and write Makefiles.
17048 ###############################################################################
17096 APPDEFAULTS=$ac_x_app_defaults
17104 ac_config_files="$ac_config_files Makefile utils/Makefile driver/Makefile hacks/Makefile hacks/glx/Makefile po/Makefile.in driver/XScreenSaver.ad"
17105 cat >confcache <<\_ACEOF
17106 # This file is a shell script that caches the results of configure
17107 # tests run on this system so they can be shared between configure
17108 # scripts and configure runs, see configure's option --config-cache.
17109 # It is not useful on other systems. If it contains results you don't
17110 # want to keep, you may remove or edit it.
17112 # config.status only pays attention to the cache file if you give it
17113 # the --recheck option to rerun configure.
17115 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17116 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17117 # following values.
17121 # The following way of writing the cache mishandles newlines in values,
17122 # but we know of no workaround that is simple, portable, and efficient.
17123 # So, don't put newlines in cache variables' values.
17124 # Ultrix sh set writes to stderr and can't be redirected directly,
17125 # and sets the high bit in the cache file unless we assign to the vars.
17128 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17130 # `set' does not quote correctly, so add quotes (double-quote
17131 # substitution turns \\\\ into \\, and sed turns \\ into \).
17134 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17137 # `set' quotes correctly as required by POSIX, so do not add quotes.
17139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17146 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17148 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17150 if cmp -s $cache_file confcache; then :; else
17151 if test -w $cache_file; then
17152 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17153 cat confcache >$cache_file
17155 echo "not updating unwritable cache $cache_file"
17160 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17161 # Let make expand exec_prefix.
17162 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17164 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17165 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17166 # trailing colons and then remove the whole line if VPATH becomes empty
17167 # (actually we leave an empty line to preserve line numbers).
17168 if test "x$srcdir" = x.; then
17169 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17170 s/:*\$(srcdir):*/:/;
17171 s/:*\${srcdir}:*/:/;
17173 s/^\([^=]*=[ ]*\):*/\1/;
17179 DEFS=-DHAVE_CONFIG_H
17183 mv -f po/POTFILES po/POTFILES.tmp
17184 sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
17185 rm -f po/POTFILES.tmp
17189 : ${CONFIG_STATUS=./config.status}
17190 ac_clean_files_save=$ac_clean_files
17191 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17192 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17193 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17194 cat >$CONFIG_STATUS <<_ACEOF
17196 # Generated by $as_me.
17197 # Run this file to recreate the current configuration.
17198 # Compiler output produced by configure, useful for debugging
17199 # configure, is in config.log if it exists.
17202 SHELL=\${CONFIG_SHELL-$SHELL}
17205 cat >>$CONFIG_STATUS <<\_ACEOF
17207 ## --------------------- ##
17208 ## M4sh Initialization. ##
17209 ## --------------------- ##
17211 # Be Bourne compatible
17212 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17215 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17220 # Support unset when possible.
17221 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17227 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
17228 { $as_unset LANG || test "${LANG+set}" != set; } ||
17229 { LANG=C; export LANG; }
17230 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
17231 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
17232 { LC_ALL=C; export LC_ALL; }
17233 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
17234 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
17235 { LC_TIME=C; export LC_TIME; }
17236 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
17237 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
17238 { LC_CTYPE=C; export LC_CTYPE; }
17239 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
17240 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
17241 { LANGUAGE=C; export LANGUAGE; }
17242 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
17243 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
17244 { LC_COLLATE=C; export LC_COLLATE; }
17245 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
17246 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
17247 { LC_NUMERIC=C; export LC_NUMERIC; }
17248 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
17249 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
17250 { LC_MESSAGES=C; export LC_MESSAGES; }
17253 # Name of the executable.
17254 as_me=`(basename "$0") 2>/dev/null ||
17255 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17256 X"$0" : 'X\(//\)$' \| \
17257 X"$0" : 'X\(/\)$' \| \
17258 . : '\(.\)' 2>/dev/null ||
17260 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17261 /^X\/\(\/\/\)$/{ s//\1/; q; }
17262 /^X\/\(\/\).*/{ s//\1/; q; }
17265 # PATH needs CR, and LINENO needs CR and PATH.
17266 # Avoid depending upon Character Ranges.
17267 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17268 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17269 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17270 as_cr_digits='0123456789'
17271 as_cr_alnum=$as_cr_Letters$as_cr_digits
17273 # The user is always right.
17274 if test "${PATH_SEPARATOR+set}" != set; then
17275 echo "#! /bin/sh" >conftest.sh
17276 echo "exit 0" >>conftest.sh
17277 chmod +x conftest.sh
17278 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
17287 as_lineno_1=$LINENO
17288 as_lineno_2=$LINENO
17289 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17290 test "x$as_lineno_1" != "x$as_lineno_2" &&
17291 test "x$as_lineno_3" = "x$as_lineno_2" || {
17292 # Find who we are. Look in the path if we contain no path at all
17295 *[\\/]* ) as_myself=$0 ;;
17296 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17297 for as_dir in $PATH
17300 test -z "$as_dir" && as_dir=.
17301 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17306 # We did not find ourselves, most probably we were run as `sh COMMAND'
17307 # in which case we are not to be found in the path.
17308 if test "x$as_myself" = x; then
17311 if test ! -f "$as_myself"; then
17312 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17313 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17314 { (exit 1); exit 1; }; }
17316 case $CONFIG_SHELL in
17318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17319 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17322 test -z "$as_dir" && as_dir=.
17323 for as_base in sh bash ksh sh5; do
17326 if ("$as_dir/$as_base" -c '
17327 as_lineno_1=$LINENO
17328 as_lineno_2=$LINENO
17329 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17330 test "x$as_lineno_1" != "x$as_lineno_2" &&
17331 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17332 CONFIG_SHELL=$as_dir/$as_base
17333 export CONFIG_SHELL
17334 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17342 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17343 # uniformly replaced by the line number. The first 'sed' inserts a
17344 # line-number line before each line; the second 'sed' does the real
17345 # work. The second script uses 'N' to pair each line-number line
17346 # with the numbered line, and appends trailing '-' during
17347 # substitution so that $LINENO is not a special case at line end.
17348 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17349 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17350 sed '=' <$as_myself |
17355 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17358 s,^['$as_cr_digits']*\n,,
17359 ' >$as_me.lineno &&
17360 chmod +x $as_me.lineno ||
17361 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17362 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17363 { (exit 1); exit 1; }; }
17365 # Don't try to exec as it changes $[0], causing all sort of problems
17366 # (the dirname of $[0] is not the place where we might find the
17367 # original and so on. Autoconf is especially sensible to this).
17369 # Exit status is that of the last command.
17374 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17375 *c*,-n*) ECHO_N= ECHO_C='
17377 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17378 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17381 if expr a : '\(a\)' >/dev/null 2>&1; then
17387 rm -f conf$$ conf$$.exe conf$$.file
17389 if ln -s conf$$.file conf$$ 2>/dev/null; then
17390 # We could just check for DJGPP; but this test a) works b) is more generic
17391 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17392 if test -f conf$$.exe; then
17393 # Don't use ln at all; we don't have any links
17398 elif ln conf$$.file conf$$ 2>/dev/null; then
17403 rm -f conf$$ conf$$.exe conf$$.file
17405 as_executable_p="test -f"
17407 # Sed expression to map a string onto a valid CPP name.
17408 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17410 # Sed expression to map a string onto a valid variable name.
17411 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17415 # We need space, tab and new line, in precisely that order.
17421 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
17425 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17426 # report actual input values of CONFIG_FILES etc. instead of their
17427 # values after options handling. Logging --version etc. is OK.
17431 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17432 ## Running $as_me. ##
17437 This file was extended by $as_me, which was
17438 generated by GNU Autoconf 2.53. Invocation command line was
17440 CONFIG_FILES = $CONFIG_FILES
17441 CONFIG_HEADERS = $CONFIG_HEADERS
17442 CONFIG_LINKS = $CONFIG_LINKS
17443 CONFIG_COMMANDS = $CONFIG_COMMANDS
17447 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17451 # Files that config.status was made for.
17452 if test -n "$ac_config_files"; then
17453 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17456 if test -n "$ac_config_headers"; then
17457 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17460 if test -n "$ac_config_links"; then
17461 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17464 if test -n "$ac_config_commands"; then
17465 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17468 cat >>$CONFIG_STATUS <<\_ACEOF
17471 \`$as_me' instantiates files from templates according to the
17472 current configuration.
17474 Usage: $0 [OPTIONS] [FILE]...
17476 -h, --help print this help, then exit
17477 -V, --version print version number, then exit
17478 -d, --debug don't remove temporary files
17479 --recheck update $as_me by reconfiguring in the same conditions
17480 --file=FILE[:TEMPLATE]
17481 instantiate the configuration file FILE
17482 --header=FILE[:TEMPLATE]
17483 instantiate the configuration header FILE
17485 Configuration files:
17488 Configuration headers:
17491 Configuration commands:
17494 Report bugs to <bug-autoconf@gnu.org>."
17497 cat >>$CONFIG_STATUS <<_ACEOF
17500 configured by $0, generated by GNU Autoconf 2.53,
17501 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17503 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17504 Free Software Foundation, Inc.
17505 This config.status script is free software; the Free Software Foundation
17506 gives unlimited permission to copy, distribute and modify it."
17511 cat >>$CONFIG_STATUS <<\_ACEOF
17512 # If no file are specified by the user, then we need to provide default
17513 # value. By we need to know if files were specified by the user.
17519 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17520 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17522 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17526 *) # This is not an option, so the user has probably given explicit
17528 ac_need_defaults=false;;
17532 # Handling of the options.
17534 cat >>$CONFIG_STATUS <<_ACEOF
17535 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17536 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17537 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17539 cat >>$CONFIG_STATUS <<\_ACEOF
17540 --version | --vers* | -V )
17541 echo "$ac_cs_version"; exit 0 ;;
17543 # Conflict between --help and --header
17544 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17545 Try \`$0 --help' for more information." >&5
17546 echo "$as_me: error: ambiguous option: $1
17547 Try \`$0 --help' for more information." >&2;}
17548 { (exit 1); exit 1; }; };;
17549 --help | --hel | -h )
17550 echo "$ac_cs_usage"; exit 0 ;;
17551 --debug | --d* | -d )
17553 --file | --fil | --fi | --f )
17555 CONFIG_FILES="$CONFIG_FILES $1"
17556 ac_need_defaults=false;;
17557 --header | --heade | --head | --hea )
17559 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17560 ac_need_defaults=false;;
17562 # This is an error.
17563 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17564 Try \`$0 --help' for more information." >&5
17565 echo "$as_me: error: unrecognized option: $1
17566 Try \`$0 --help' for more information." >&2;}
17567 { (exit 1); exit 1; }; } ;;
17569 *) ac_config_targets="$ac_config_targets $1" ;;
17577 cat >>$CONFIG_STATUS <<_ACEOF
17579 # INIT-COMMANDS section.
17582 INTLTOOL_PERL=${INTLTOOL_PERL}
17589 cat >>$CONFIG_STATUS <<\_ACEOF
17590 for ac_config_target in $ac_config_targets
17592 case "$ac_config_target" in
17593 # Handling of arguments.
17594 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17595 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
17596 "driver/Makefile" ) CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
17597 "hacks/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
17598 "hacks/glx/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
17599 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17600 "driver/XScreenSaver.ad" ) CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
17601 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17602 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
17603 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17604 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17605 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17606 { (exit 1); exit 1; }; };;
17610 # If the user did not use the arguments to specify the items to instantiate,
17611 # then the envvar interface is used. Set only those that are not.
17612 # We use the long form for the default assignment because of an extremely
17613 # bizarre bug on SunOS 4.1.3.
17614 if $ac_need_defaults; then
17615 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17616 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17617 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17620 # Create a temporary directory, and hook for its removal unless debugging.
17623 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17624 trap '{ (exit 1); exit 1; }' 1 2 13 15
17627 # Create a (secure) tmp directory for tmp files.
17630 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17631 test -n "$tmp" && test -d "$tmp"
17634 tmp=$TMPDIR/cs$$-$RANDOM
17635 (umask 077 && mkdir $tmp)
17638 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17639 { (exit 1); exit 1; }
17644 cat >>$CONFIG_STATUS <<_ACEOF
17647 # CONFIG_FILES section.
17650 # No need to generate the scripts if there are no CONFIG_FILES.
17651 # This happens for instance when ./config.status config.h
17652 if test -n "\$CONFIG_FILES"; then
17653 # Protect against being on the right side of a sed subst in config.status.
17654 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17655 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17656 s,@SHELL@,$SHELL,;t t
17657 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17658 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17659 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17660 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17661 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17662 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17663 s,@exec_prefix@,$exec_prefix,;t t
17664 s,@prefix@,$prefix,;t t
17665 s,@program_transform_name@,$program_transform_name,;t t
17666 s,@bindir@,$bindir,;t t
17667 s,@sbindir@,$sbindir,;t t
17668 s,@libexecdir@,$libexecdir,;t t
17669 s,@datadir@,$datadir,;t t
17670 s,@sysconfdir@,$sysconfdir,;t t
17671 s,@sharedstatedir@,$sharedstatedir,;t t
17672 s,@localstatedir@,$localstatedir,;t t
17673 s,@libdir@,$libdir,;t t
17674 s,@includedir@,$includedir,;t t
17675 s,@oldincludedir@,$oldincludedir,;t t
17676 s,@infodir@,$infodir,;t t
17677 s,@mandir@,$mandir,;t t
17678 s,@build_alias@,$build_alias,;t t
17679 s,@host_alias@,$host_alias,;t t
17680 s,@target_alias@,$target_alias,;t t
17681 s,@DEFS@,$DEFS,;t t
17682 s,@ECHO_C@,$ECHO_C,;t t
17683 s,@ECHO_N@,$ECHO_N,;t t
17684 s,@ECHO_T@,$ECHO_T,;t t
17685 s,@LIBS@,$LIBS,;t t
17686 s,@build@,$build,;t t
17687 s,@build_cpu@,$build_cpu,;t t
17688 s,@build_vendor@,$build_vendor,;t t
17689 s,@build_os@,$build_os,;t t
17690 s,@host@,$host,;t t
17691 s,@host_cpu@,$host_cpu,;t t
17692 s,@host_vendor@,$host_vendor,;t t
17693 s,@host_os@,$host_os,;t t
17695 s,@CFLAGS@,$CFLAGS,;t t
17696 s,@LDFLAGS@,$LDFLAGS,;t t
17697 s,@CPPFLAGS@,$CPPFLAGS,;t t
17698 s,@ac_ct_CC@,$ac_ct_CC,;t t
17699 s,@EXEEXT@,$EXEEXT,;t t
17700 s,@OBJEXT@,$OBJEXT,;t t
17702 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17703 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17704 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17705 s,@SET_MAKE@,$SET_MAKE,;t t
17706 s,@PERL@,$PERL,;t t
17707 s,@X_CFLAGS@,$X_CFLAGS,;t t
17708 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17709 s,@X_LIBS@,$X_LIBS,;t t
17710 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17711 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
17712 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
17713 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
17714 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
17715 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
17716 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
17717 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
17718 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
17719 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
17720 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
17721 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
17722 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
17723 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
17724 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
17725 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
17726 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
17727 s,@RANLIB@,$RANLIB,;t t
17728 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17729 s,@ALLOCA@,$ALLOCA,;t t
17730 s,@USE_NLS@,$USE_NLS,;t t
17731 s,@MSGFMT@,$MSGFMT,;t t
17732 s,@GMSGFMT@,$GMSGFMT,;t t
17733 s,@XGETTEXT@,$XGETTEXT,;t t
17734 s,@CATALOGS@,$CATALOGS,;t t
17735 s,@CATOBJEXT@,$CATOBJEXT,;t t
17736 s,@DATADIRNAME@,$DATADIRNAME,;t t
17737 s,@GMOFILES@,$GMOFILES,;t t
17738 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17739 s,@INTLDEPS@,$INTLDEPS,;t t
17740 s,@INTLLIBS@,$INTLLIBS,;t t
17741 s,@INTLOBJS@,$INTLOBJS,;t t
17742 s,@POFILES@,$POFILES,;t t
17743 s,@POSUB@,$POSUB,;t t
17744 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
17745 s,@glib_config@,$glib_config,;t t
17746 s,@gtk_config@,$gtk_config,;t t
17747 s,@gnome_config@,$gnome_config,;t t
17748 s,@have_gnome_help@,$have_gnome_help,;t t
17749 s,@xml_config@,$xml_config,;t t
17750 s,@gdk_pixbuf_config@,$gdk_pixbuf_config,;t t
17751 s,@fortune_tmp@,$fortune_tmp,;t t
17752 s,@INCLUDES@,$INCLUDES,;t t
17753 s,@PREFERRED_DEMO_PROGRAM@,$PREFERRED_DEMO_PROGRAM,;t t
17754 s,@ALL_DEMO_PROGRAMS@,$ALL_DEMO_PROGRAMS,;t t
17755 s,@SAVER_LIBS@,$SAVER_LIBS,;t t
17756 s,@MOTIF_LIBS@,$MOTIF_LIBS,;t t
17757 s,@GTK_LIBS@,$GTK_LIBS,;t t
17758 s,@XML_LIBS@,$XML_LIBS,;t t
17759 s,@JPEG_LIBS@,$JPEG_LIBS,;t t
17760 s,@HACK_LIBS@,$HACK_LIBS,;t t
17761 s,@XPM_LIBS@,$XPM_LIBS,;t t
17762 s,@GL_LIBS@,$GL_LIBS,;t t
17763 s,@GLE_LIBS@,$GLE_LIBS,;t t
17764 s,@XDPMS_LIBS@,$XDPMS_LIBS,;t t
17765 s,@PASSWD_LIBS@,$PASSWD_LIBS,;t t
17766 s,@INSTALL_SETUID@,$INSTALL_SETUID,;t t
17767 s,@SETUID_HACKS@,$SETUID_HACKS,;t t
17768 s,@INSTALL_DIRS@,$INSTALL_DIRS,;t t
17769 s,@NEED_SETUID@,$NEED_SETUID,;t t
17770 s,@INSTALL_PAM@,$INSTALL_PAM,;t t
17771 s,@PASSWD_SRCS@,$PASSWD_SRCS,;t t
17772 s,@PASSWD_OBJS@,$PASSWD_OBJS,;t t
17773 s,@XMU_SRCS@,$XMU_SRCS,;t t
17774 s,@XMU_OBJS@,$XMU_OBJS,;t t
17775 s,@XMU_LIBS@,$XMU_LIBS,;t t
17776 s,@SAVER_GL_SRCS@,$SAVER_GL_SRCS,;t t
17777 s,@SAVER_GL_OBJS@,$SAVER_GL_OBJS,;t t
17778 s,@SAVER_GL_LIBS@,$SAVER_GL_LIBS,;t t
17779 s,@LOCK_SRCS@,$LOCK_SRCS,;t t
17780 s,@LOCK_OBJS@,$LOCK_OBJS,;t t
17781 s,@JPEG_EXES@,$JPEG_EXES,;t t
17782 s,@GL_EXES@,$GL_EXES,;t t
17783 s,@GL_UTIL_EXES@,$GL_UTIL_EXES,;t t
17784 s,@GL_MEN@,$GL_MEN,;t t
17785 s,@GL_KLUDGE@,$GL_KLUDGE,;t t
17786 s,@GLE_EXES@,$GLE_EXES,;t t
17787 s,@GLE_MEN@,$GLE_MEN,;t t
17788 s,@GLE_KLUDGE@,$GLE_KLUDGE,;t t
17789 s,@GNOMEHELP_Y@,$GNOMEHELP_Y,;t t
17790 s,@GNOMEHELP_N@,$GNOMEHELP_N,;t t
17791 s,@HACKDIR@,$HACKDIR,;t t
17792 s,@GNOME_DATADIR@,$GNOME_DATADIR,;t t
17793 s,@GTK_ICONDIR@,$GTK_ICONDIR,;t t
17794 s,@HACK_CONF_DIR@,$HACK_CONF_DIR,;t t
17795 s,@APPDEFAULTS@,$APPDEFAULTS,;t t
17796 s,@DEPEND@,$DEPEND,;t t
17797 s,@DEPEND_FLAGS@,$DEPEND_FLAGS,;t t
17798 s,@DEPEND_DEFINES@,$DEPEND_DEFINES,;t t
17803 cat >>$CONFIG_STATUS <<\_ACEOF
17804 # Split the substitutions into bite-sized pieces for seds with
17805 # small command number limits, like on Digital OSF/1 and HP-UX.
17806 ac_max_sed_lines=48
17807 ac_sed_frag=1 # Number of current file.
17808 ac_beg=1 # First line for current file.
17809 ac_end=$ac_max_sed_lines # Line after last line for current file.
17812 while $ac_more_lines; do
17813 if test $ac_beg -gt 1; then
17814 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17816 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17818 if test ! -s $tmp/subs.frag; then
17819 ac_more_lines=false
17821 # The purpose of the label and of the branching condition is to
17822 # speed up the sed processing (if there are no `@' at all, there
17823 # is no need to browse any of the substitutions).
17824 # These are the two extra sed commands mentioned above.
17826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17827 if test -z "$ac_sed_cmds"; then
17828 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17830 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17832 ac_sed_frag=`expr $ac_sed_frag + 1`
17834 ac_end=`expr $ac_end + $ac_max_sed_lines`
17837 if test -z "$ac_sed_cmds"; then
17840 fi # test -n "$CONFIG_FILES"
17843 cat >>$CONFIG_STATUS <<\_ACEOF
17844 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17845 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17847 - | *:- | *:-:* ) # input from stdin
17849 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17850 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17851 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17852 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17853 * ) ac_file_in=$ac_file.in ;;
17856 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17857 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17858 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17859 X"$ac_file" : 'X\(//\)[^/]' \| \
17860 X"$ac_file" : 'X\(//\)$' \| \
17861 X"$ac_file" : 'X\(/\)' \| \
17862 . : '\(.\)' 2>/dev/null ||
17864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17866 /^X\(\/\/\)$/{ s//\1/; q; }
17867 /^X\(\/\).*/{ s//\1/; q; }
17869 { case "$ac_dir" in
17870 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17874 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17875 case $as_mkdir_dir in
17876 # Skip DOS drivespec
17877 ?:) as_incr_dir=$as_mkdir_dir ;;
17879 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17880 test -d "$as_incr_dir" ||
17881 mkdir "$as_incr_dir" ||
17882 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17883 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17884 { (exit 1); exit 1; }; }
17891 if test "$ac_dir" != .; then
17892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17893 # A "../" for each directory in $ac_dir_suffix.
17894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17896 ac_dir_suffix= ac_top_builddir=
17900 .) # No --srcdir option. We are building in place.
17902 if test -z "$ac_top_builddir"; then
17905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17907 [\\/]* | ?:[\\/]* ) # Absolute path.
17908 ac_srcdir=$srcdir$ac_dir_suffix;
17909 ac_top_srcdir=$srcdir ;;
17910 *) # Relative path.
17911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17912 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17914 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17916 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17917 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17918 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17919 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17923 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17924 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17927 if test x"$ac_file" != x-; then
17928 { echo "$as_me:$LINENO: creating $ac_file" >&5
17929 echo "$as_me: creating $ac_file" >&6;}
17932 # Let's still pretend it is `configure' which instantiates (i.e., don't
17933 # use $as_me), people would be surprised to read:
17934 # /* config.h. Generated by config.status. */
17935 if test x"$ac_file" = x-; then
17938 configure_input="$ac_file. "
17940 configure_input=$configure_input"Generated from `echo $ac_file_in |
17941 sed 's,.*/,,'` by configure."
17943 # First look for the input files in the build tree, otherwise in the
17945 ac_file_inputs=`IFS=:
17946 for f in $ac_file_in; do
17948 -) echo $tmp/stdin ;;
17950 # Absolute (can't be DOS-style, as IFS=:)
17951 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17952 echo "$as_me: error: cannot find input file: $f" >&2;}
17953 { (exit 1); exit 1; }; }
17956 if test -f "$f"; then
17959 elif test -f "$srcdir/$f"; then
17964 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17965 echo "$as_me: error: cannot find input file: $f" >&2;}
17966 { (exit 1); exit 1; }; }
17969 done` || { (exit 1); exit 1; }
17971 cat >>$CONFIG_STATUS <<_ACEOF
17975 cat >>$CONFIG_STATUS <<\_ACEOF
17977 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17978 s,@configure_input@,$configure_input,;t t
17979 s,@srcdir@,$ac_srcdir,;t t
17980 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17981 s,@top_srcdir@,$ac_top_srcdir,;t t
17982 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17983 s,@builddir@,$ac_builddir,;t t
17984 s,@abs_builddir@,$ac_abs_builddir,;t t
17985 s,@top_builddir@,$ac_top_builddir,;t t
17986 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17987 s,@INSTALL@,$ac_INSTALL,;t t
17988 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17990 if test x"$ac_file" != x-; then
17991 mv $tmp/out $ac_file
17999 cat >>$CONFIG_STATUS <<\_ACEOF
18002 # CONFIG_HEADER section.
18005 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18006 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18008 # ac_d sets the value in "#define NAME VALUE" lines.
18009 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18010 ac_dB='[ ].*$,\1#\2'
18013 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18014 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18015 ac_uB='$,\1#\2define\3'
18019 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18020 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18022 - | *:- | *:-:* ) # input from stdin
18024 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18025 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18026 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18027 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18028 * ) ac_file_in=$ac_file.in ;;
18031 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18032 echo "$as_me: creating $ac_file" >&6;}
18034 # First look for the input files in the build tree, otherwise in the
18036 ac_file_inputs=`IFS=:
18037 for f in $ac_file_in; do
18039 -) echo $tmp/stdin ;;
18041 # Absolute (can't be DOS-style, as IFS=:)
18042 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18043 echo "$as_me: error: cannot find input file: $f" >&2;}
18044 { (exit 1); exit 1; }; }
18047 if test -f "$f"; then
18050 elif test -f "$srcdir/$f"; then
18055 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18056 echo "$as_me: error: cannot find input file: $f" >&2;}
18057 { (exit 1); exit 1; }; }
18060 done` || { (exit 1); exit 1; }
18061 # Remove the trailing spaces.
18062 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18066 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18067 # `conftest.undefs', that substitutes the proper values into
18068 # config.h.in to produce config.h. The first handles `#define'
18069 # templates, and the second `#undef' templates.
18070 # And first: Protect against being on the right side of a sed subst in
18071 # config.status. Protect against being in an unquoted here document
18072 # in config.status.
18073 rm -f conftest.defines conftest.undefs
18074 # Using a here document instead of a string reduces the quoting nightmare.
18075 # Putting comments in sed scripts is not portable.
18077 # `end' is used to avoid that the second main sed command (meant for
18078 # 0-ary CPP macros) applies to n-ary macro definitions.
18079 # See the Autoconf documentation for `clear'.
18080 cat >confdef2sed.sed <<\_ACEOF
18085 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18087 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18090 # If some macros were called several times there might be several times
18091 # the same #defines, which is useless. Nevertheless, we may not want to
18092 # sort them, since we want the *last* AC-DEFINE to be honored.
18093 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18094 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18095 rm -f confdef2sed.sed
18097 # This sed command replaces #undef with comments. This is necessary, for
18098 # example, in the case of _POSIX_SOURCE, which is predefined and required
18099 # on some systems where configure will not decide to define it.
18100 cat >>conftest.undefs <<\_ACEOF
18101 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18104 # Break up conftest.defines because some shells have a limit on the size
18105 # of here documents, and old seds have small limits too (100 cmds).
18106 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18107 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18108 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18109 echo ' :' >>$CONFIG_STATUS
18110 rm -f conftest.tail
18111 while grep . conftest.defines >/dev/null
18113 # Write a limited-size here document to $tmp/defines.sed.
18114 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18115 # Speed up: don't consider the non `#define' lines.
18116 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18117 # Work around the forget-to-reset-the-flag bug.
18118 echo 't clr' >>$CONFIG_STATUS
18119 echo ': clr' >>$CONFIG_STATUS
18120 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18122 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18124 mv $tmp/out $tmp/in
18126 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18127 rm -f conftest.defines
18128 mv conftest.tail conftest.defines
18130 rm -f conftest.defines
18131 echo ' fi # egrep' >>$CONFIG_STATUS
18132 echo >>$CONFIG_STATUS
18134 # Break up conftest.undefs because some shells have a limit on the size
18135 # of here documents, and old seds have small limits too (100 cmds).
18136 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18137 rm -f conftest.tail
18138 while grep . conftest.undefs >/dev/null
18140 # Write a limited-size here document to $tmp/undefs.sed.
18141 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18142 # Speed up: don't consider the non `#undef'
18143 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18144 # Work around the forget-to-reset-the-flag bug.
18145 echo 't clr' >>$CONFIG_STATUS
18146 echo ': clr' >>$CONFIG_STATUS
18147 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18149 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18151 mv $tmp/out $tmp/in
18153 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18154 rm -f conftest.undefs
18155 mv conftest.tail conftest.undefs
18157 rm -f conftest.undefs
18159 cat >>$CONFIG_STATUS <<\_ACEOF
18160 # Let's still pretend it is `configure' which instantiates (i.e., don't
18161 # use $as_me), people would be surprised to read:
18162 # /* config.h. Generated by config.status. */
18163 if test x"$ac_file" = x-; then
18164 echo "/* Generated by configure. */" >$tmp/config.h
18166 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18168 cat $tmp/in >>$tmp/config.h
18170 if test x"$ac_file" != x-; then
18171 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18172 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18173 echo "$as_me: $ac_file is unchanged" >&6;}
18175 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18176 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18177 X"$ac_file" : 'X\(//\)[^/]' \| \
18178 X"$ac_file" : 'X\(//\)$' \| \
18179 X"$ac_file" : 'X\(/\)' \| \
18180 . : '\(.\)' 2>/dev/null ||
18182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18183 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18184 /^X\(\/\/\)$/{ s//\1/; q; }
18185 /^X\(\/\).*/{ s//\1/; q; }
18187 { case "$ac_dir" in
18188 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18192 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18193 case $as_mkdir_dir in
18194 # Skip DOS drivespec
18195 ?:) as_incr_dir=$as_mkdir_dir ;;
18197 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18198 test -d "$as_incr_dir" ||
18199 mkdir "$as_incr_dir" ||
18200 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18201 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18202 { (exit 1); exit 1; }; }
18208 mv $tmp/config.h $ac_file
18212 rm -f $tmp/config.h
18216 cat >>$CONFIG_STATUS <<\_ACEOF
18219 # CONFIG_COMMANDS section.
18221 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18222 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18223 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18224 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18225 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18226 X"$ac_dest" : 'X\(//\)[^/]' \| \
18227 X"$ac_dest" : 'X\(//\)$' \| \
18228 X"$ac_dest" : 'X\(/\)' \| \
18229 . : '\(.\)' 2>/dev/null ||
18231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18232 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18233 /^X\(\/\/\)$/{ s//\1/; q; }
18234 /^X\(\/\).*/{ s//\1/; q; }
18238 if test "$ac_dir" != .; then
18239 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18240 # A "../" for each directory in $ac_dir_suffix.
18241 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18243 ac_dir_suffix= ac_top_builddir=
18247 .) # No --srcdir option. We are building in place.
18249 if test -z "$ac_top_builddir"; then
18252 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18254 [\\/]* | ?:[\\/]* ) # Absolute path.
18255 ac_srcdir=$srcdir$ac_dir_suffix;
18256 ac_top_srcdir=$srcdir ;;
18257 *) # Relative path.
18258 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18259 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18261 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18263 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18264 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18265 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18266 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18269 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18270 echo "$as_me: executing $ac_dest commands" >&6;}
18274 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
18275 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
18276 rm -f intltool-extract.out
18278 mv -f intltool-extract.out intltool-extract
18280 chmod ugo+x intltool-extract
18281 chmod u+w intltool-extract
18283 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
18284 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
18285 rm -f intltool-merge.out
18287 mv -f intltool-merge.out intltool-merge
18289 chmod ugo+x intltool-merge
18290 chmod u+w intltool-merge
18292 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
18293 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
18294 rm -f intltool-update.out
18296 mv -f intltool-update.out intltool-update
18298 chmod ugo+x intltool-update
18299 chmod u+w intltool-update
18302 default-2 ) case "$CONFIG_FILES" in *po/Makefile.in*)
18303 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
18309 cat >>$CONFIG_STATUS <<\_ACEOF
18311 { (exit 0); exit 0; }
18313 chmod +x $CONFIG_STATUS
18314 ac_clean_files=$ac_clean_files_save
18317 # configure is writing to config.log, and then calls config.status.
18318 # config.status does its own redirection, appending to config.log.
18319 # Unfortunately, on DOS this fails, as config.log is still kept open
18320 # by configure, so config.status won't be able to write to it; its
18321 # output is simply discarded. So we exec the FD to /dev/null,
18322 # effectively closing config.log, so it can be properly (re)opened and
18323 # appended to by config.status. When coming back to configure, we
18324 # need to make the FD available again.
18325 if test "$no_create" != yes; then
18328 $SHELL $CONFIG_STATUS || ac_cs_success=false
18330 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18331 # would make configure fail if this is the last instruction.
18332 $ac_cs_success || { (exit 1); exit 1; }
18336 ###############################################################################
18338 # Print some warnings at the end.
18340 ###############################################################################
18342 warn_prefix_1=" Warning:"
18343 warn_prefix_2=" Note:"
18344 warn_prefix="$warn_prefix_1"
18347 warnsep=' #################################################################'
18350 if test "$warning" = no ; then
18351 echo '' ; echo "$warnsep" ; echo ''
18358 if test "$warning" = long ; then echo '' ; fi
18361 echo "$warn_prefix $rest"
18368 if test "$was" != no ; then echo '' ; fi
18370 echo "$warn_prefix $rest"
18380 warn_prefix="$warn_prefix_2"
18382 warn_prefix="$warn_prefix_1"
18386 warn_prefix="$warn_prefix_2"
18388 warn_prefix="$warn_prefix_1"
18392 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
18393 warn 'The SGI saver extension was requested, but was not found.'
18396 if test "$with_mit_req" = yes -a "$have_mit" = no ; then
18397 warn 'The MIT saver extension was requested, but was not found.'
18400 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
18401 warn 'The XIdle extension was requested, but was not found.'
18404 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
18405 warn 'The XSHM extension was requested, but was not found.'
18408 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
18409 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
18412 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
18413 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
18416 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
18417 warn 'The DPMS extension was requested, but was not found.'
18420 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
18421 warn 'The Xinerama extension was requested, but was not found.'
18424 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
18425 warn 'The XF86VMODE extension was requested, but was not found.'
18428 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
18429 warn "Checking of /proc/interrupts was requested, but it's bogus."
18433 if test "$have_motif" = no -a "$have_gtk" = no; then
18434 warnL "Neither Motif nor Gtk seem to be available;"
18435 warn2 "the \`xscreensaver-demo' program requires one of these."
18437 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
18438 warnL "Use of Motif was requested, but it wasn't found;"
18439 warn2 "Gtk will be used instead."
18441 elif test "$jurassic_gtk" = yes ; then
18445 v="$ac_gtk_version_string"
18446 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
18447 warnL "Use of Gtk was requested, but its version number is unknown;"
18448 elif test "$with_gtk_req" = yes ; then
18449 warnL "Use of Gtk was requested, but it is version $v;"
18451 warnL "Gtk was found on this system, but it is version $v;"
18454 warn2 "Gtk $pref_gtk or newer is required. Motif will be used instead."
18456 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
18457 warnL "Use of Gtk was requested, but it wasn't found;"
18458 warn2 "Motif will be used instead."
18463 if test "$with_gnome_req" = yes -a "$have_gnome" = no ; then
18464 warn 'Use of the Gnome Control Panel was requested, but the necessary'
18465 warn2 'headers and/or libraries were not found.'
18468 if test "$have_gtk" = yes ; then
18469 if test "$have_xml" = no ; then
18470 if test "$with_xml_req" = yes ; then
18471 warn 'Use of the XML library was requested, but the necessary'
18472 warn2 'headers and/or libraries were not found.'
18474 warn 'GTK is being used, but the XML library was not found.'
18477 if test "$xml_halfassed" = yes ; then
18479 if test "$have_zlib" = yes ; then
18480 which="XML libraries"
18482 which="\`zlib' library"
18486 warn2 'More specifically, we found the headers, but not the'
18487 warn2 "$which; so either XML is half-installed on this"
18488 warn2 "system, or something else went wrong. The \`config.log'"
18489 warn2 'file might contain some clues.'
18493 warn2 "Without XML, the per-display-mode \`Settings' dialogs"
18494 warn2 'will not be available. Specify the location of the XML'
18495 warn2 'library through the --with-xml option to configure.'
18499 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
18501 preferred_lesstif=0.92
18503 if test "$lesstif_version" = unknown; then
18504 warnL "Unable to determine the LessTif version number!"
18505 warn2 "Make sure you are using version $preferred_lesstif or newer."
18506 warn2 "See <http://www.lesstif.org/>."
18508 elif test \! $lesstif_version -gt 82; then
18509 warnL "LessTif version $lesstif_version_string is being used."
18510 warn2 "LessTif versions 0.82 and earlier are too buggy to"
18511 warn2 "use with XScreenSaver; it is strongly recommended"
18512 warn2 "that you upgrade to at least version $preferred_lesstif!"
18513 warn2 "See <http://www.lesstif.org/>."
18518 if test "$have_motif" = yes -a "$have_gtk" = no ; then
18519 warn 'Motif is being used, and GTK is not.'
18521 warn2 'Though the Motif front-end to xscreensaver is still'
18522 warn2 'maintained, it is no longer being updated with new'
18523 warn2 'features: all new development on the xscreensaver-demo'
18524 warn2 'program is happening in the GTK version, and not in the'
18525 warn2 'Motif version. It is recommended that you build against'
18526 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
18530 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
18531 warnL 'Use of XPM was requested, but it was not found.'
18534 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
18535 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
18538 if test "$have_xpm" = no -a "$have_gdk_pixbuf" = no; then
18540 if test "$with_xpm_req" = yes ; then
18542 elif test "$with_xpm_req" = no ; then
18543 warnL 'The XPM library is not being used.'
18545 warnL 'The XPM library was not found.'
18548 if test "$with_gdk_pixbuf_req" = yes ; then
18550 elif test "$with_gdk_pixbuf_req" = no ; then
18551 warnL 'The GDK-Pixbuf library is not being used.'
18553 warnL 'The GDK-Pixbuf library was not found.'
18556 if test "$gdk_pixbuf_halfassed" = yes ; then
18558 warn2 'More specifically, we found the headers, but not the'
18559 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
18560 warn2 "system, or something else went wrong. The \`config.log'"
18561 warn2 'file might contain some clues.'
18565 warn2 'Some of the demos will not be as colorful as they'
18566 warn2 'could be. You should consider installing Pixbuf or'
18567 warn2 'XPM and re-running configure. (Remember to delete'
18568 warn2 'the config.cache file first.) The Pixbuf library is'
18569 warn2 'a part of GNOME. The XPM library comes with most'
18570 warn2 'X11 installations; you can also find it at the X11'
18571 warn2 'archive sites, such as <http://sunsite.unc.edu/>.'
18573 warn2 'GDK-Pixbuf is recommended over XPM, as it provides'
18574 warn2 'support for more image formats.'
18578 if test "$have_jpeg" = no ; then
18579 if test "$with_jpeg_req" = yes ; then
18580 warnL 'Use of libjpeg was requested, but it was not found.'
18581 elif test "$with_jpeg_req" = no ; then
18582 noteL 'The JPEG library is not being used.'
18584 noteL 'The JPEG library was not found.'
18587 if test "$jpeg_halfassed" = yes ; then
18589 warn2 'More specifically, we found the headers, but not the'
18590 warn2 'library; so either JPEG is half-installed on this'
18591 warn2 "system, or something else went wrong. The \`config.log'"
18592 warn2 'file might contain some clues.'
18596 warn2 "This means the \`webcollage' program will be much slower."
18600 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
18601 preferred_mesagl=3.4
18602 mgv="$ac_mesagl_version_string"
18603 pgl="$preferred_mesagl"
18605 if test "$ac_mesagl_version" = unknown; then
18606 warnL "Unable to determine the MesaGL version number!"
18607 warn2 "Make sure you are using version $preferred_mesagl or newer."
18609 elif test \! "$ac_mesagl_version" -gt 2006; then
18610 warnL "MesaGL version $mgv is being used. MesaGL 2.6 and earlier"
18611 warn2 "have a security bug. It is strongly recommended that you"
18612 warn2 "upgrade to at least version $preferred_mesagl."
18614 elif test \! "$ac_mesagl_version" -gt 3003; then
18615 warnL "MesaGL version $mgv is being used. That version has some"
18616 warn2 "bugs; it is recommended that you upgrade to $pgl or newer."
18620 if test "$have_gl" = no ; then
18621 if test "$with_gl_req" = yes ; then
18622 warnL 'Use of GL was requested, but it was not found.'
18623 elif test "$with_gl_req" = no ; then
18624 noteL 'The OpenGL 3D library is not being used.'
18626 noteL 'The OpenGL 3D library was not found.'
18629 if test "$gl_halfassed" = yes ; then
18631 warn2 'More specifically, we found the headers, but not the'
18632 warn2 'libraries; so either GL is half-installed on this'
18633 warn2 "system, or something else went wrong. The \`config.log'"
18634 warn2 'file might contain some clues.'
18638 warn2 'Those demos which use 3D will not be built or installed.'
18639 warn2 'You might want to consider installing OpenGL and'
18640 warn2 're-running configure. (Remember to delete the'
18641 warn2 "config.cache file first.) If your vendor doesn't ship"
18642 warn2 'their own implementation of OpenGL, you can get a free'
18643 warn2 'version at <http://www.mesa3d.org/>. For general OpenGL'
18644 warn2 'info, see <http://www.opengl.org/>.'
18649 if test "$have_gl" = yes -a "$have_gle" = no ; then
18650 if test "$with_gle_req" = yes ; then
18651 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
18652 warn2 'it was not found (though the OpenGL library was found, and'
18653 warn2 'is being used.)'
18654 elif test "$with_gle_req" = no ; then
18655 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
18656 warn2 'library is not.'
18658 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
18662 if test "$gle_halfassed" = yes ; then
18664 warn2 'More specifically, we found the headers, but not the'
18665 warn2 'libraries; so either GLE is half-installed on this'
18666 warn2 "system, or something else went wrong. The \`config.log'"
18667 warn2 'file might contain some clues.'
18671 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
18672 warn2 'will not be built or installed. You might want to consider'
18673 warn2 'installing GLE and re-running configure. (Remember to delete'
18674 warn2 'the config.cache file first.) You can find the GLE library'
18675 warn2 'at <http://www.linas.org/gle/>. For general OpenGL info,'
18676 warn2 'see <http://www.opengl.org/>.'
18681 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
18682 warn 'Use of XReadDisplay was requested, but it was not found.'
18685 if test -n "$with_fortune_req"; then
18686 if test "$with_fortune_req" != "$ac_cv_fortune_program" ; then
18687 warnL "$with_fortune_req was requested as the Fortune program,"
18688 warn2 "but was not found. The default will be used instead."
18692 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
18693 warn 'Use of Kerberos was requested, but it was not found.'
18696 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
18697 warn 'Use of PAM was requested, but it was not found.'
18700 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
18701 warn 'Use of shadow passwords was requested, but they were not found.'
18705 # You are in a twisty maze of namespaces and syntaxes, all alike.
18706 # Fuck the skull of Unix.
18708 eval bindir=${bindir}
18709 eval bindir=${bindir}
18710 eval bindir=${bindir}
18711 eval bindir=${bindir}
18712 eval bindir=${bindir}
18713 eval bindir=${bindir}
18714 eval HACKDIR=${HACKDIR}
18715 eval HACKDIR=${HACKDIR}
18716 eval HACKDIR=${HACKDIR}
18717 eval HACKDIR=${HACKDIR}
18718 eval HACKDIR=${HACKDIR}
18719 eval HACKDIR=${HACKDIR}
18720 eval HACK_CONF_DIR=${HACK_CONF_DIR}
18721 eval HACK_CONF_DIR=${HACK_CONF_DIR}
18722 eval HACK_CONF_DIR=${HACK_CONF_DIR}
18723 eval HACK_CONF_DIR=${HACK_CONF_DIR}
18724 eval HACK_CONF_DIR=${HACK_CONF_DIR}
18725 eval HACK_CONF_DIR=${HACK_CONF_DIR}
18727 # canonicalize slashes.
18728 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
18729 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
18730 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
18733 # Sanity check the hackdir
18734 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
18735 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
18737 { { echo "$as_me:$LINENO: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
18738 There will be an executable installed with that name, so
18739 that can't be the name of a directory as well. Please
18740 re-configure with a different directory name." >&5
18741 echo "$as_me: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
18742 There will be an executable installed with that name, so
18743 that can't be the name of a directory as well. Please
18744 re-configure with a different directory name." >&2;}
18745 { (exit 1); exit 1; }; }
18752 # Now let's see if there's a previous RPM version already installed. Blargh!
18756 rpmv=`(rpm -qv xscreensaver) 2>/dev/null | \
18757 sed -n 's/^xscreensaver-\([0-9][0-9]*[.][0-9][0-9]*\)-.*$/\1/p'`
18760 if test \! -z "$rpmv" ; then
18761 rpmbdir=`rpm -ql xscreensaver | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
18762 rpmhdir=`rpm -ql xscreensaver | sed -n 's@^\(.*\)/attraction$@\1@p'`
18765 warnL "There is already an installed RPM of xscreensaver $rpmv"
18766 warn2 "on this system. You might want to remove it (with"
18767 warn2 '"rpm -ve xscreensaver") before running "make install"'
18768 warn2 "from this directory."
18770 warn2 "Alternately, you could build this version of xscreensaver"
18771 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
18772 warn2 "file is included. See the RPM documentation for more info."
18775 if test "$rpmbdir" = "$rpmhdir" ; then
18776 warn2 "The RPM version was installed in $rpmbdir/."
18778 warn2 "The RPM version was installed in $rpmbdir/,"
18779 warn2 "with demos in $rpmhdir/."
18786 if test "${bindir}" = "${HACKDIR}" ; then
18790 if test "$do_dir_warning" = yes; then
18794 echo ' When you run "make install", the "xscreensaver",'
18795 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
18796 echo " will be installed in ${bindir}/."
18798 echo " The various graphics demos (140+ different executables) will"
18799 echo " be installed in ${HACKDIR}/."
18801 echo " If you would prefer the demos to be installed elsewhere,"
18802 echo " you should re-run configure with the --with-hackdir=DIR"
18803 echo " option. For more information, run \`./configure --help'."
18807 if test "$warning" != no; then
18808 echo '' ; echo "$warnsep" ; echo ''
18811 if test "$do_dir_warning" = no; then
18812 if test "$warning" = no; then
18815 echo "User programs will be installed in ${bindir}/"
18816 echo "Screen savers will be installed in ${HACKDIR}/"
18817 echo "Configuration will be installed in ${HACK_CONF_DIR}/"