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.
837 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
838 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
839 Installation options:
841 --with-hackdir=DIR Where to install the hundreds of demo executables.
842 Default: \`PREFIX/lib/xscreensaver/'
843 --with-configdir=DIR Where to install the data files that describe each
844 of the display modes to the GUI.
845 Default: \`GNOMEPREFIX/control-center/screensavers/'
846 or \`PREFIX/lib/xscreensaver/config/', depending on
847 whether GNOME is available.
849 Except where noted, all of the --with options below can also take a
850 directory argument: for example, \`--with-motif=/opt/Motif'. That would
851 cause /opt/Motif/include/ to be added to the -I list, and /opt/Motif/lib/
852 to be added to the -L list, assuming those directories exist.
854 By default, support for each of these options will be built in, if the
855 relevant library routines exist. At run time, they will then be used
856 only if the X server being used supports them. Each --with option has
857 a corresponding --without option, to override building support for them
860 Screen blanking and idle-detection options:
862 --with-sgi-ext Include support for the SGI SCREEN_SAVER extension.
863 --with-mit-ext Include support for the MIT-SCREEN-SAVER extension.
864 --with-xidle-ext Include support for the XIDLE extension.
865 --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL extension.
866 --with-dpms-ext Include support for the DPMS extension.
867 --with-xinerama-ext Include support for the XINERAMA extension.
868 --with-xf86vmode-ext Include support for XFree86 virtual screens.
869 --with-xf86gamma-ext Include support for XFree86 gamma fading.
870 --with-proc-interrupts Include support for consulting the /proc/interrupts
871 file to notice keyboard activity.
872 --with-pam Include support for PAM (Pluggable Auth Modules.)
873 --with-kerberos Include support for Kerberos authentication.
874 --with-shadow Include support for shadow password authentication.
876 User interface options:
878 --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 1.x Control Center.
882 (This option is not needed with GTK 2.x / Gnome 2.x.)
884 --with-xml The XML toolkit is needed for some parts of
885 the Gtk interface. Without it, the configuration
886 interface will be much less featureful.
890 --with-gl Build those demos which depend on OpenGL.
891 --with-gle Build those demos which depend on GLE
892 (the OpenGL "extrusion" library.)
893 --with-xpm Include support for XPM files in some demos.
894 (Not needed if Pixbuf is used.)
895 --with-pixbuf Include support for the GDK-Pixbuf library in some
896 demos, which will make it possible for them to read
897 GIF, JPEG, and PNG files as well. (The path here is
898 ignored if GTK 2.x is being used.)
899 --with-jpeg Include support for the JPEG library.
900 --with-xshm-ext Include support for the Shared Memory extension.
901 --with-xdbe-ext Include support for the DOUBLE-BUFFER extension.
902 --with-readdisplay Include support for the XReadDisplay extension.
904 --with-fortune=PROGRAM Some demos are able to run an external program and
905 display its text; this names the program to use by
906 default (though it can be overridden with X
907 resources.) Default is \"/usr/games/fortune\".
908 --with-setuid-hacks Allow some demos to be installed \`setuid root'
909 (which is needed in order to ping other hosts.)
912 Some influential environment variables:
913 CC C compiler command
914 CFLAGS C compiler flags
915 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
916 nonstandard directory <lib dir>
917 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
918 headers in a nonstandard directory <include dir>
921 Use these variables to override the choices made by `configure' or to help
922 it to find libraries and programs with nonstandard names/locations.
927 if test "$ac_init_help" = "recursive"; then
928 # If there are subdirs, report their specific --help.
930 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
931 test -d $ac_dir || continue
934 if test "$ac_dir" != .; then
935 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
936 # A "../" for each directory in $ac_dir_suffix.
937 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
939 ac_dir_suffix= ac_top_builddir=
943 .) # No --srcdir option. We are building in place.
945 if test -z "$ac_top_builddir"; then
948 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
950 [\\/]* | ?:[\\/]* ) # Absolute path.
951 ac_srcdir=$srcdir$ac_dir_suffix;
952 ac_top_srcdir=$srcdir ;;
954 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
955 ac_top_srcdir=$ac_top_builddir$srcdir ;;
957 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
959 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
960 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
961 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
962 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
965 # Check for guested configure; otherwise get Cygnus style configure.
966 if test -f $ac_srcdir/configure.gnu; then
968 $SHELL $ac_srcdir/configure.gnu --help=recursive
969 elif test -f $ac_srcdir/configure; then
971 $SHELL $ac_srcdir/configure --help=recursive
972 elif test -f $ac_srcdir/configure.ac ||
973 test -f $ac_srcdir/configure.in; then
977 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983 test -n "$ac_init_help" && exit 0
984 if $ac_init_version; then
987 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
988 Free Software Foundation, Inc.
989 This configure script is free software; the Free Software Foundation
990 gives unlimited permission to copy, distribute and modify it.
996 This file contains any messages produced by compilers while
997 running configure, to aid debugging if configure makes a mistake.
999 It was created by $as_me, which was
1000 generated by GNU Autoconf 2.53. Invocation command line was
1011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1020 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1021 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1024 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1025 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1026 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1034 test -z "$as_dir" && as_dir=.
1035 echo "PATH: $as_dir"
1050 # Keep a trace of the command line.
1051 # Strip out --no-create and --no-recursion so they do not pile up.
1052 # Also quote any args containing shell meta-characters.
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n ) continue ;;
1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066 case " $ac_configure_args " in
1067 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1068 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1071 # Get rid of the leading space.
1074 # When interrupted or exit'd, cleanup temporary files, and complete
1075 # config.log. We remove comments because anyway the quotes in there
1076 # would cause problems or look ugly.
1077 # WARNING: Be sure not to use single quotes in there, as some shells,
1078 # such as our DU 5.0 friend, will then `close' the trap.
1079 trap 'exit_status=$?
1080 # Save into config.log some information that might help in debugging.
1084 ## ---------------- ##
1085 ## Cache variables. ##
1086 ## ---------------- ##
1089 # The following way of writing the cache mishandles newlines in values,
1092 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1095 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1100 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1105 if test -s confdefs.h; then
1112 sed "/^$/d" confdefs.h
1115 test "$ac_signal" != 0 &&
1116 echo "$as_me: caught signal $ac_signal"
1117 echo "$as_me: exit $exit_status"
1119 rm -f core core.* *.core &&
1120 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1123 for ac_signal in 1 2 13 15; do
1124 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1128 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1129 rm -rf conftest* confdefs.h
1130 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1133 # Predefined preprocessor variables.
1135 cat >>confdefs.h <<_ACEOF
1136 #define PACKAGE_NAME "$PACKAGE_NAME"
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1150 cat >>confdefs.h <<_ACEOF
1151 #define PACKAGE_STRING "$PACKAGE_STRING"
1155 cat >>confdefs.h <<_ACEOF
1156 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1160 # Let the site file select an alternate cache file if it wants to.
1161 # Prefer explicitly selected file to automatically selected ones.
1162 if test -z "$CONFIG_SITE"; then
1163 if test "x$prefix" != xNONE; then
1164 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1166 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1169 for ac_site_file in $CONFIG_SITE; do
1170 if test -r "$ac_site_file"; then
1171 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1172 echo "$as_me: loading site script $ac_site_file" >&6;}
1173 sed 's/^/| /' "$ac_site_file" >&5
1178 if test -r "$cache_file"; then
1179 # Some versions of bash will fail to source /dev/null (special
1180 # files actually), so we avoid doing that.
1181 if test -f "$cache_file"; then
1182 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1183 echo "$as_me: loading cache $cache_file" >&6;}
1185 [\\/]* | ?:[\\/]* ) . $cache_file;;
1186 *) . ./$cache_file;;
1190 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1191 echo "$as_me: creating cache $cache_file" >&6;}
1195 # Check that the precious variables saved in the cache have kept the same
1197 ac_cache_corrupted=false
1198 for ac_var in `(set) 2>&1 |
1199 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1200 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1201 eval ac_new_set=\$ac_env_${ac_var}_set
1202 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1203 eval ac_new_val="\$ac_env_${ac_var}_value"
1204 case $ac_old_set,$ac_new_set in
1206 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1207 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1208 ac_cache_corrupted=: ;;
1210 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1211 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1212 ac_cache_corrupted=: ;;
1215 if test "x$ac_old_val" != "x$ac_new_val"; then
1216 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1217 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1218 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1219 echo "$as_me: former value: $ac_old_val" >&2;}
1220 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1221 echo "$as_me: current value: $ac_new_val" >&2;}
1222 ac_cache_corrupted=:
1225 # Pass precious variables to config.status.
1226 if test "$ac_new_set" = set; then
1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1230 *) ac_arg=$ac_var=$ac_new_val ;;
1232 case " $ac_configure_args " in
1233 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1234 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1238 if $ac_cache_corrupted; then
1239 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1240 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1241 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1242 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1243 { (exit 1); exit 1; }; }
1247 ac_cpp='$CPP $CPPFLAGS'
1248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1269 ac_config_headers="$ac_config_headers config.h"
1272 echo "current directory: `pwd`"
1273 echo "command line was: $0 $@"
1276 # After checking to see that --srcdir is correct (which AC_INIT does)
1277 # check for some random other files that come later in the tar file,
1278 # to make sure everything is here.
1280 for d in driver utils hacks hacks/glx ; do
1281 f=$srcdir/$d/Makefile.in
1282 if test \! -r $f ; then
1284 echo "ERROR: The package is incomplete: $f does not exist."
1285 echo " This probably means that your download was truncated."
1291 ###############################################################################
1293 # Function to figure out how to run the compiler.
1295 ###############################################################################
1300 ###############################################################################
1302 # Functions to figure out how to disable // comments in ANSI C code.
1304 # (With recent gcc, this is done with "-std=c89". With older gcc, this
1305 # is done by passing "-lang-c89" to cpp, by passing "-Wp,-lang-c89" to
1306 # gcc. Old gcc doesn't support -std, and new gcc doesn't support -lang.
1307 # so much for compatibility!)
1309 ###############################################################################
1316 ###############################################################################
1318 # Function to figure out how to turn off Objective C on MacOS X.
1319 # (We have to do this to work around an Apple-specific gcc bug.)
1321 ###############################################################################
1328 ###############################################################################
1330 # Function to figure out how to create directory trees.
1332 ###############################################################################
1337 ###############################################################################
1339 # Function to check whether gettimeofday() exists, and how to call it.
1340 # This may define HAVE_GETTIMEOFDAY and GETTIMEOFDAY_TWO_ARGS.
1342 ###############################################################################
1347 ###############################################################################
1349 # Function to find perl5 (defines PERL and PERL_VERSION.)
1351 ###############################################################################
1353 # M4 sucks!! perl sucks too!!
1355 perl_version_cmd='print $]'
1361 ###############################################################################
1363 # Function to demand "bc". Losers.
1365 ###############################################################################
1369 ###############################################################################
1371 # Functions to check how to do ICMP PING requests.
1373 ###############################################################################
1380 ###############################################################################
1382 # Functions to check for various X11 crap.
1384 ###############################################################################
1386 # Try and find the app-defaults directory.
1387 # It sucks that autoconf doesn't do this already...
1399 # Random special-cases for X on certain pathological OSes.
1400 # You know who you are.
1406 ###############################################################################
1408 # Some utility functions to make checking for X things easier.
1410 ###############################################################################
1412 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
1416 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
1420 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
1425 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
1426 # Use this sparingly; it probably doesn't work very well on X programs.
1430 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
1431 # (But not the -L directories!)
1437 # Usage: HANDLE_X_PATH_ARG([variable_name],
1438 # [--command-line-option],
1439 # [descriptive string])
1441 # All of the --with options take three forms:
1443 # --with-foo (or --with-foo=yes)
1444 # --without-foo (or --with-foo=no)
1447 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
1448 # a directory (string beginning with a slash) it checks to see whether
1449 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
1456 ###############################################################################
1457 ###############################################################################
1459 # End of function definitions. Now start actually executing stuff.
1461 ###############################################################################
1462 ###############################################################################
1464 # random compiler setup
1466 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1467 if test -f $ac_dir/install-sh; then
1469 ac_install_sh="$ac_aux_dir/install-sh -c"
1471 elif test -f $ac_dir/install.sh; then
1473 ac_install_sh="$ac_aux_dir/install.sh -c"
1475 elif test -f $ac_dir/shtool; then
1477 ac_install_sh="$ac_aux_dir/shtool install -c"
1481 if test -z "$ac_aux_dir"; then
1482 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1483 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1484 { (exit 1); exit 1; }; }
1486 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1487 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1488 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1490 # Make sure we can run config.sub.
1491 $ac_config_sub sun4 >/dev/null 2>&1 ||
1492 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1493 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1494 { (exit 1); exit 1; }; }
1496 echo "$as_me:$LINENO: checking build system type" >&5
1497 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1498 if test "${ac_cv_build+set}" = set; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1501 ac_cv_build_alias=$build_alias
1502 test -z "$ac_cv_build_alias" &&
1503 ac_cv_build_alias=`$ac_config_guess`
1504 test -z "$ac_cv_build_alias" &&
1505 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1506 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1507 { (exit 1); exit 1; }; }
1508 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1509 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1510 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1511 { (exit 1); exit 1; }; }
1514 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1515 echo "${ECHO_T}$ac_cv_build" >&6
1517 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1518 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1519 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1522 echo "$as_me:$LINENO: checking host system type" >&5
1523 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1524 if test "${ac_cv_host+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 ac_cv_host_alias=$host_alias
1528 test -z "$ac_cv_host_alias" &&
1529 ac_cv_host_alias=$ac_cv_build_alias
1530 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1531 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1532 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1533 { (exit 1); exit 1; }; }
1536 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1537 echo "${ECHO_T}$ac_cv_host" >&6
1539 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1540 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1541 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546 ac_cpp='$CPP $CPPFLAGS'
1547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1550 if test -n "$ac_tool_prefix"; then
1551 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1552 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1553 echo "$as_me:$LINENO: checking for $ac_word" >&5
1554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555 if test "${ac_cv_prog_CC+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 if test -n "$CC"; then
1559 ac_cv_prog_CC="$CC" # Let the user override the test.
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 test -z "$as_dir" && as_dir=.
1566 for ac_exec_ext in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 if test -n "$CC"; then
1579 echo "$as_me:$LINENO: result: $CC" >&5
1580 echo "${ECHO_T}$CC" >&6
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1587 if test -z "$ac_cv_prog_CC"; then
1589 # Extract the first word of "gcc", so it can be a program name with args.
1590 set dummy gcc; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1596 if test -n "$ac_ct_CC"; then
1597 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 test -z "$as_dir" && as_dir=.
1604 for ac_exec_ext in '' $ac_executable_extensions; do
1605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1606 ac_cv_prog_ac_ct_CC="gcc"
1607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1616 if test -n "$ac_ct_CC"; then
1617 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1618 echo "${ECHO_T}$ac_ct_CC" >&6
1620 echo "$as_me:$LINENO: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1629 if test -z "$CC"; then
1630 if test -n "$ac_tool_prefix"; then
1631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1632 set dummy ${ac_tool_prefix}cc; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_CC+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 if test -n "$CC"; then
1639 ac_cv_prog_CC="$CC" # Let the user override the test.
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 test -z "$as_dir" && as_dir=.
1646 for ac_exec_ext in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648 ac_cv_prog_CC="${ac_tool_prefix}cc"
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658 if test -n "$CC"; then
1659 echo "$as_me:$LINENO: result: $CC" >&5
1660 echo "${ECHO_T}$CC" >&6
1662 echo "$as_me:$LINENO: result: no" >&5
1663 echo "${ECHO_T}no" >&6
1667 if test -z "$ac_cv_prog_CC"; then
1669 # Extract the first word of "cc", so it can be a program name with args.
1670 set dummy cc; ac_word=$2
1671 echo "$as_me:$LINENO: checking for $ac_word" >&5
1672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1673 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1676 if test -n "$ac_ct_CC"; then
1677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 test -z "$as_dir" && as_dir=.
1684 for ac_exec_ext in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686 ac_cv_prog_ac_ct_CC="cc"
1687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1696 if test -n "$ac_ct_CC"; then
1697 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1698 echo "${ECHO_T}$ac_ct_CC" >&6
1700 echo "$as_me:$LINENO: result: no" >&5
1701 echo "${ECHO_T}no" >&6
1710 if test -z "$CC"; then
1711 # Extract the first word of "cc", so it can be a program name with args.
1712 set dummy cc; ac_word=$2
1713 echo "$as_me:$LINENO: checking for $ac_word" >&5
1714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715 if test "${ac_cv_prog_CC+set}" = set; then
1716 echo $ECHO_N "(cached) $ECHO_C" >&6
1718 if test -n "$CC"; then
1719 ac_cv_prog_CC="$CC" # Let the user override the test.
1722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 test -z "$as_dir" && as_dir=.
1727 for ac_exec_ext in '' $ac_executable_extensions; do
1728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1730 ac_prog_rejected=yes
1734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740 if test $ac_prog_rejected = yes; then
1741 # We found a bogon in the path, so make sure we never use it.
1742 set dummy $ac_cv_prog_CC
1744 if test $# != 0; then
1745 # We chose a different compiler from the bogus one.
1746 # However, it has the same basename, so the bogon will be chosen
1747 # first if we set CC to just the basename; use the full file name.
1749 set dummy "$as_dir/$ac_word" ${1+"$@"}
1757 if test -n "$CC"; then
1758 echo "$as_me:$LINENO: result: $CC" >&5
1759 echo "${ECHO_T}$CC" >&6
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1766 if test -z "$CC"; then
1767 if test -n "$ac_tool_prefix"; then
1770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1772 echo "$as_me:$LINENO: checking for $ac_word" >&5
1773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1774 if test "${ac_cv_prog_CC+set}" = set; then
1775 echo $ECHO_N "(cached) $ECHO_C" >&6
1777 if test -n "$CC"; then
1778 ac_cv_prog_CC="$CC" # Let the user override the test.
1780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1784 test -z "$as_dir" && as_dir=.
1785 for ac_exec_ext in '' $ac_executable_extensions; do
1786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1787 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1797 if test -n "$CC"; then
1798 echo "$as_me:$LINENO: result: $CC" >&5
1799 echo "${ECHO_T}$CC" >&6
1801 echo "$as_me:$LINENO: result: no" >&5
1802 echo "${ECHO_T}no" >&6
1805 test -n "$CC" && break
1808 if test -z "$CC"; then
1812 # Extract the first word of "$ac_prog", so it can be a program name with args.
1813 set dummy $ac_prog; ac_word=$2
1814 echo "$as_me:$LINENO: checking for $ac_word" >&5
1815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1819 if test -n "$ac_ct_CC"; then
1820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 test -z "$as_dir" && as_dir=.
1827 for ac_exec_ext in '' $ac_executable_extensions; do
1828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829 ac_cv_prog_ac_ct_CC="$ac_prog"
1830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1839 if test -n "$ac_ct_CC"; then
1840 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1841 echo "${ECHO_T}$ac_ct_CC" >&6
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1847 test -n "$ac_ct_CC" && break
1856 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1857 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1858 { (exit 1); exit 1; }; }
1860 # Provide some information about the compiler.
1861 echo "$as_me:$LINENO:" \
1862 "checking for C compiler version" >&5
1863 ac_compiler=`set X $ac_compile; echo $2`
1864 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1865 (eval $ac_compiler --version </dev/null >&5) 2>&5
1867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868 (exit $ac_status); }
1869 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1870 (eval $ac_compiler -v </dev/null >&5) 2>&5
1872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873 (exit $ac_status); }
1874 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1875 (eval $ac_compiler -V </dev/null >&5) 2>&5
1877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1878 (exit $ac_status); }
1880 cat >conftest.$ac_ext <<_ACEOF
1881 #line $LINENO "configure"
1882 #include "confdefs.h"
1884 #ifdef F77_DUMMY_MAIN
1888 int F77_DUMMY_MAIN() { return 1; }
1898 ac_clean_files_save=$ac_clean_files
1899 ac_clean_files="$ac_clean_files a.out a.exe"
1900 # Try to create an executable without -o first, disregard a.out.
1901 # It will help us diagnose broken compilers, and finding out an intuition
1903 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1904 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1905 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1906 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1907 (eval $ac_link_default) 2>&5
1909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910 (exit $ac_status); }; then
1911 # Find the output, starting from the most likely. This scheme is
1912 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1915 # Be careful to initialize this variable, since it used to be cached.
1916 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1918 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1919 ls a.out conftest 2>/dev/null;
1920 ls a.* conftest.* 2>/dev/null`; do
1922 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1923 a.out ) # We found the default executable, but exeext='' is most
1926 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1927 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1934 echo "$as_me: failed program was:" >&5
1935 cat conftest.$ac_ext >&5
1936 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1937 echo "$as_me: error: C compiler cannot create executables" >&2;}
1938 { (exit 77); exit 77; }; }
1941 ac_exeext=$ac_cv_exeext
1942 echo "$as_me:$LINENO: result: $ac_file" >&5
1943 echo "${ECHO_T}$ac_file" >&6
1945 # Check the compiler produces executables we can run. If not, either
1946 # the compiler is broken, or we cross compile.
1947 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1948 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1949 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1950 # If not cross compiling, check that we can run a simple program.
1951 if test "$cross_compiling" != yes; then
1952 if { ac_try='./$ac_file'
1953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }; }; then
1960 if test "$cross_compiling" = maybe; then
1963 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1964 If you meant to cross compile, use \`--host'." >&5
1965 echo "$as_me: error: cannot run C compiled programs.
1966 If you meant to cross compile, use \`--host'." >&2;}
1967 { (exit 1); exit 1; }; }
1971 echo "$as_me:$LINENO: result: yes" >&5
1972 echo "${ECHO_T}yes" >&6
1974 rm -f a.out a.exe conftest$ac_cv_exeext
1975 ac_clean_files=$ac_clean_files_save
1976 # Check the compiler produces executables we can run. If not, either
1977 # the compiler is broken, or we cross compile.
1978 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1979 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1980 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1981 echo "${ECHO_T}$cross_compiling" >&6
1983 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1984 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1986 (eval $ac_link) 2>&5
1988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989 (exit $ac_status); }; then
1990 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1991 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1992 # work properly (i.e., refer to `conftest.exe'), while it won't with
1994 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1996 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1997 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2004 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2005 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2006 { (exit 1); exit 1; }; }
2009 rm -f conftest$ac_cv_exeext
2010 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2011 echo "${ECHO_T}$ac_cv_exeext" >&6
2013 rm -f conftest.$ac_ext
2014 EXEEXT=$ac_cv_exeext
2016 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2017 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2018 if test "${ac_cv_objext+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 cat >conftest.$ac_ext <<_ACEOF
2022 #line $LINENO "configure"
2023 #include "confdefs.h"
2025 #ifdef F77_DUMMY_MAIN
2029 int F77_DUMMY_MAIN() { return 1; }
2039 rm -f conftest.o conftest.obj
2040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2041 (eval $ac_compile) 2>&5
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }; then
2045 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2048 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2053 echo "$as_me: failed program was:" >&5
2054 cat conftest.$ac_ext >&5
2055 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2056 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2057 { (exit 1); exit 1; }; }
2060 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2062 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2063 echo "${ECHO_T}$ac_cv_objext" >&6
2064 OBJEXT=$ac_cv_objext
2066 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2067 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2068 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 cat >conftest.$ac_ext <<_ACEOF
2072 #line $LINENO "configure"
2073 #include "confdefs.h"
2075 #ifdef F77_DUMMY_MAIN
2079 int F77_DUMMY_MAIN() { return 1; }
2092 rm -f conftest.$ac_objext
2093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2094 (eval $ac_compile) 2>&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); } &&
2098 { ac_try='test -s conftest.$ac_objext'
2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; }; then
2106 echo "$as_me: failed program was:" >&5
2107 cat conftest.$ac_ext >&5
2110 rm -f conftest.$ac_objext conftest.$ac_ext
2111 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2114 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2115 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2116 GCC=`test $ac_compiler_gnu = yes && echo yes`
2117 ac_test_CFLAGS=${CFLAGS+set}
2118 ac_save_CFLAGS=$CFLAGS
2120 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2121 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2122 if test "${ac_cv_prog_cc_g+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 #include "confdefs.h"
2129 #ifdef F77_DUMMY_MAIN
2133 int F77_DUMMY_MAIN() { return 1; }
2143 rm -f conftest.$ac_objext
2144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145 (eval $ac_compile) 2>&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); } &&
2149 { ac_try='test -s conftest.$ac_objext'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; }; then
2157 echo "$as_me: failed program was:" >&5
2158 cat conftest.$ac_ext >&5
2161 rm -f conftest.$ac_objext conftest.$ac_ext
2163 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2164 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2165 if test "$ac_test_CFLAGS" = set; then
2166 CFLAGS=$ac_save_CFLAGS
2167 elif test $ac_cv_prog_cc_g = yes; then
2168 if test "$GCC" = yes; then
2174 if test "$GCC" = yes; then
2180 # Some people use a C++ compiler to compile C. Since we use `exit',
2181 # in C++ we need to declare it. In case someone uses the same compiler
2182 # for both compiling C and C++ we need to have the C++ compiler decide
2183 # the declaration of exit, since it's the most demanding environment.
2184 cat >conftest.$ac_ext <<_ACEOF
2189 rm -f conftest.$ac_objext
2190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2191 (eval $ac_compile) 2>&5
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); } &&
2195 { ac_try='test -s conftest.$ac_objext'
2196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); }; }; then
2201 for ac_declaration in \
2203 '#include <stdlib.h>' \
2204 'extern "C" void std::exit (int) throw (); using std::exit;' \
2205 'extern "C" void std::exit (int); using std::exit;' \
2206 'extern "C" void exit (int) throw ();' \
2207 'extern "C" void exit (int);' \
2210 cat >conftest.$ac_ext <<_ACEOF
2211 #line $LINENO "configure"
2212 #include "confdefs.h"
2215 #ifdef F77_DUMMY_MAIN
2219 int F77_DUMMY_MAIN() { return 1; }
2229 rm -f conftest.$ac_objext
2230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231 (eval $ac_compile) 2>&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try='test -s conftest.$ac_objext'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2243 echo "$as_me: failed program was:" >&5
2244 cat conftest.$ac_ext >&5
2247 rm -f conftest.$ac_objext conftest.$ac_ext
2248 cat >conftest.$ac_ext <<_ACEOF
2249 #line $LINENO "configure"
2250 #include "confdefs.h"
2252 #ifdef F77_DUMMY_MAIN
2256 int F77_DUMMY_MAIN() { return 1; }
2266 rm -f conftest.$ac_objext
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); } &&
2272 { ac_try='test -s conftest.$ac_objext'
2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; }; then
2280 echo "$as_me: failed program was:" >&5
2281 cat conftest.$ac_ext >&5
2283 rm -f conftest.$ac_objext conftest.$ac_ext
2286 if test -n "$ac_declaration"; then
2287 echo '#ifdef __cplusplus' >>confdefs.h
2288 echo $ac_declaration >>confdefs.h
2289 echo '#endif' >>confdefs.h
2293 echo "$as_me: failed program was:" >&5
2294 cat conftest.$ac_ext >&5
2296 rm -f conftest.$ac_objext conftest.$ac_ext
2298 ac_cpp='$CPP $CPPFLAGS'
2299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2304 if test -z "$GCC"; then
2305 echo "$as_me:$LINENO: checking how to request ANSI compilation" >&5
2306 echo $ECHO_N "checking how to request ANSI compilation... $ECHO_C" >&6
2309 echo "$as_me:$LINENO: result: HPUX: adding -Ae" >&5
2310 echo "${ECHO_T}HPUX: adding -Ae" >&6
2314 echo "$as_me:$LINENO: result: AIX: adding -qlanglvl=ansi -qhalt=e" >&5
2315 echo "${ECHO_T}AIX: adding -qlanglvl=ansi -qhalt=e" >&6
2316 CC="$CC -qlanglvl=ansi -qhalt=e"
2320 echo "$as_me:$LINENO: result: DEC: adding -std1 -ieee" >&5
2321 echo "${ECHO_T}DEC: adding -std1 -ieee" >&6
2326 echo "$as_me:$LINENO: result: no idea" >&5
2327 echo "${ECHO_T}no idea" >&6
2332 echo "$as_me:$LINENO: checking whether the compiler works on ANSI C" >&5
2333 echo $ECHO_N "checking whether the compiler works on ANSI C... $ECHO_C" >&6
2334 if test "$cross_compiling" = yes; then
2335 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2336 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2337 { (exit 1); exit 1; }; }
2339 cat >conftest.$ac_ext <<_ACEOF
2340 #line $LINENO "configure"
2341 #include "confdefs.h"
2342 main(int ac, char **av) { return 0; }
2344 rm -f conftest$ac_exeext
2345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2346 (eval $ac_link) 2>&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; }; then
2355 echo "$as_me:$LINENO: result: yes" >&5
2356 echo "${ECHO_T}yes" >&6
2358 echo "$as_me: program exited with status $ac_status" >&5
2359 echo "$as_me: failed program was:" >&5
2360 cat conftest.$ac_ext >&5
2362 echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6
2364 { { echo "$as_me:$LINENO: error: Couldn't build even a trivial ANSI C program: check CC." >&5
2365 echo "$as_me: error: Couldn't build even a trivial ANSI C program: check CC." >&2;}
2366 { (exit 1); exit 1; }; }
2368 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2371 if test -n "$GCC"; then
2372 echo "$as_me:$LINENO: result: Turning on gcc compiler warnings." >&5
2373 echo "${ECHO_T}Turning on gcc compiler warnings." >&6
2374 CC="$CC -Wall -Wstrict-prototypes -Wnested-externs"
2377 *-irix5* |*-irix6.0-3* )
2378 echo "$as_me:$LINENO: result: Turning on SGI compiler warnings." >&5
2379 echo "${ECHO_T}Turning on SGI compiler warnings." >&6
2380 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
2383 # if test -z "$GCC"; then
2384 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
2385 # CC="$CC -migrate -w0 -verbose -warnprotos"
2391 if test -n "$GCC"; then
2392 if test -n "$GCC"; then
2393 echo "$as_me:$LINENO: checking whether gcc accepts -std" >&5
2394 echo $ECHO_N "checking whether gcc accepts -std... $ECHO_C" >&6
2395 if test "${ac_cv_gcc_accepts_std+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 if ( ( gcc -E -std=c89 - </dev/null >/dev/null ) 2>&1 | \
2399 grep unrecognized >/dev/null ); then
2400 ac_cv_gcc_accepts_std=no
2402 ac_cv_gcc_accepts_std=yes
2405 echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_std" >&5
2406 echo "${ECHO_T}$ac_cv_gcc_accepts_std" >&6
2407 ac_gcc_accepts_std="$ac_cv_gcc_accepts_std"
2410 echo "$as_me:$LINENO: result: Disabling C++ comments in ANSI C code." >&5
2411 echo "${ECHO_T}Disabling C++ comments in ANSI C code." >&6
2413 # The reason that // comments are banned from xscreensaver is that gcc is
2414 # basically the only compiler in the world that supports them in C code.
2415 # All other vendors support them only in their C++ compilers, not in their
2416 # ANSI C compilers. This means that it's a portability problem: every time
2417 # these comments have snuck into the xscreensaver source code, I've gotten
2418 # complaints about it the next day. So we turn off support for them in gcc
2419 # as well to prevent them from accidentially slipping in.
2421 if test "$ac_gcc_accepts_std" = yes ; then
2423 # -std=c89 defines __STRICT_ANSI__, which we don't want.
2424 # (That appears to be the only additional preprocessor symbol
2425 # it defines, in addition to the syntax changes it makes.)
2427 # -std=gnu89 is no good, because // comments were a GNU extension
2428 # before they were in the ANSI C 99 spec... (gcc 2.96 permits //
2429 # with -std=gnu89 but not with -std=c89.)
2431 CC="$CC -std=c89 -U__STRICT_ANSI__"
2434 CC="$CC -Wp,-lang-c89"
2438 if test -n "$GCC"; then
2439 if test -n "$GCC"; then
2440 echo "$as_me:$LINENO: checking whether gcc accepts -no-cpp-precomp" >&5
2441 echo $ECHO_N "checking whether gcc accepts -no-cpp-precomp... $ECHO_C" >&6
2442 if test "${ac_cv_gcc_accepts_no_cpp_precomp+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 if ( ( gcc -E -no-cpp-precomp - </dev/null >/dev/null ) 2>&1 | \
2446 grep unrecognized >/dev/null ); then
2447 ac_cv_gcc_accepts_no_cpp_precomp=no
2449 ac_cv_gcc_accepts_no_cpp_precomp=yes
2452 echo "$as_me:$LINENO: result: $ac_cv_gcc_accepts_no_cpp_precomp" >&5
2453 echo "${ECHO_T}$ac_cv_gcc_accepts_no_cpp_precomp" >&6
2454 ac_gcc_accepts_no_cpp_precomp="$ac_cv_gcc_accepts_no_cpp_precomp"
2457 if test "$ac_gcc_accepts_no_cpp_precomp" = yes ; then
2458 echo "$as_me:$LINENO: result: Disabling Objective C extensions in ANSI C code." >&5
2459 echo "${ECHO_T}Disabling Objective C extensions in ANSI C code." >&6
2460 CC="$CC -no-cpp-precomp"
2465 ac_cpp='$CPP $CPPFLAGS'
2466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2470 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2471 # On Suns, sometimes $CPP names a directory.
2472 if test -n "$CPP" && test -d "$CPP"; then
2475 if test -z "$CPP"; then
2476 if test "${ac_cv_prog_CPP+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 # Double quotes because CPP needs to be expanded
2480 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2483 for ac_c_preproc_warn_flag in '' yes
2485 # Use a header file that comes with gcc, so configuring glibc
2486 # with a fresh cross-compiler works.
2487 # On the NeXT, cc -E runs the code through the compiler's parser,
2488 # not just through cpp. "Syntax error" is here to catch this case.
2489 cat >conftest.$ac_ext <<_ACEOF
2490 #line $LINENO "configure"
2491 #include "confdefs.h"
2495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498 egrep -v '^ *\+' conftest.er1 >conftest.err
2500 cat conftest.err >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } >/dev/null; then
2503 if test -s conftest.err; then
2504 ac_cpp_err=$ac_c_preproc_warn_flag
2511 if test -z "$ac_cpp_err"; then
2514 echo "$as_me: failed program was:" >&5
2515 cat conftest.$ac_ext >&5
2516 # Broken: fails on valid input.
2519 rm -f conftest.err conftest.$ac_ext
2521 # OK, works on sane cases. Now check whether non-existent headers
2522 # can be detected and how.
2523 cat >conftest.$ac_ext <<_ACEOF
2524 #line $LINENO "configure"
2525 #include "confdefs.h"
2526 #include <ac_nonexistent.h>
2528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2531 egrep -v '^ *\+' conftest.er1 >conftest.err
2533 cat conftest.err >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } >/dev/null; then
2536 if test -s conftest.err; then
2537 ac_cpp_err=$ac_c_preproc_warn_flag
2544 if test -z "$ac_cpp_err"; then
2545 # Broken: success on invalid input.
2548 echo "$as_me: failed program was:" >&5
2549 cat conftest.$ac_ext >&5
2550 # Passes both tests.
2554 rm -f conftest.err conftest.$ac_ext
2557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2558 rm -f conftest.err conftest.$ac_ext
2559 if $ac_preproc_ok; then
2571 echo "$as_me:$LINENO: result: $CPP" >&5
2572 echo "${ECHO_T}$CPP" >&6
2574 for ac_c_preproc_warn_flag in '' yes
2576 # Use a header file that comes with gcc, so configuring glibc
2577 # with a fresh cross-compiler works.
2578 # On the NeXT, cc -E runs the code through the compiler's parser,
2579 # not just through cpp. "Syntax error" is here to catch this case.
2580 cat >conftest.$ac_ext <<_ACEOF
2581 #line $LINENO "configure"
2582 #include "confdefs.h"
2586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2589 egrep -v '^ *\+' conftest.er1 >conftest.err
2591 cat conftest.err >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } >/dev/null; then
2594 if test -s conftest.err; then
2595 ac_cpp_err=$ac_c_preproc_warn_flag
2602 if test -z "$ac_cpp_err"; then
2605 echo "$as_me: failed program was:" >&5
2606 cat conftest.$ac_ext >&5
2607 # Broken: fails on valid input.
2610 rm -f conftest.err conftest.$ac_ext
2612 # OK, works on sane cases. Now check whether non-existent headers
2613 # can be detected and how.
2614 cat >conftest.$ac_ext <<_ACEOF
2615 #line $LINENO "configure"
2616 #include "confdefs.h"
2617 #include <ac_nonexistent.h>
2619 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2620 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2622 egrep -v '^ *\+' conftest.er1 >conftest.err
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } >/dev/null; then
2627 if test -s conftest.err; then
2628 ac_cpp_err=$ac_c_preproc_warn_flag
2635 if test -z "$ac_cpp_err"; then
2636 # Broken: success on invalid input.
2639 echo "$as_me: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2641 # Passes both tests.
2645 rm -f conftest.err conftest.$ac_ext
2648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2649 rm -f conftest.err conftest.$ac_ext
2650 if $ac_preproc_ok; then
2653 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2654 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2655 { (exit 1); exit 1; }; }
2659 ac_cpp='$CPP $CPPFLAGS'
2660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2665 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2666 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 ac_cv_prog_cc_stdc=no
2671 cat >conftest.$ac_ext <<_ACEOF
2672 #line $LINENO "configure"
2673 #include "confdefs.h"
2676 #include <sys/types.h>
2677 #include <sys/stat.h>
2678 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2679 struct buf { int x; };
2680 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2681 static char *e (p, i)
2687 static char *f (char * (*g) (char **, int), char **p, ...)
2692 s = g (p, va_arg (v,int));
2696 int test (int i, double x);
2697 struct s1 {int (*f) (int a);};
2698 struct s2 {int (*f) (double a);};
2699 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2702 #ifdef F77_DUMMY_MAIN
2706 int F77_DUMMY_MAIN() { return 1; }
2711 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2716 # Don't try gcc -ansi; that turns off useful extensions and
2717 # breaks some systems' header files.
2718 # AIX -qlanglvl=ansi
2719 # Ultrix and OSF/1 -std1
2720 # HP-UX 10.20 and later -Ae
2721 # HP-UX older versions -Aa -D_HPUX_SOURCE
2722 # SVR4 -Xc -D__EXTENSIONS__
2723 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2725 CC="$ac_save_CC $ac_arg"
2726 rm -f conftest.$ac_objext
2727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728 (eval $ac_compile) 2>&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 ac_cv_prog_cc_stdc=$ac_arg
2741 echo "$as_me: failed program was:" >&5
2742 cat conftest.$ac_ext >&5
2744 rm -f conftest.$ac_objext
2746 rm -f conftest.$ac_ext conftest.$ac_objext
2751 case "x$ac_cv_prog_cc_stdc" in
2753 echo "$as_me:$LINENO: result: none needed" >&5
2754 echo "${ECHO_T}none needed" >&6 ;;
2756 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2757 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2758 CC="$CC $ac_cv_prog_cc_stdc" ;;
2761 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2762 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2763 if test "${ac_cv_c_const+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 cat >conftest.$ac_ext <<_ACEOF
2767 #line $LINENO "configure"
2768 #include "confdefs.h"
2770 #ifdef F77_DUMMY_MAIN
2774 int F77_DUMMY_MAIN() { return 1; }
2779 /* FIXME: Include the comments suggested by Paul. */
2781 /* Ultrix mips cc rejects this. */
2782 typedef int charset[2];
2784 /* SunOS 4.1.1 cc rejects this. */
2785 char const *const *ccp;
2787 /* NEC SVR4.0.2 mips cc rejects this. */
2788 struct point {int x, y;};
2789 static struct point const zero = {0,0};
2790 /* AIX XL C 1.02.0.0 rejects this.
2791 It does not let you subtract one const X* pointer from another in
2792 an arm of an if-expression whose if-part is not a constant
2794 const char *g = "string";
2795 ccp = &g + (g ? g-g : 0);
2796 /* HPUX 7.0 cc rejects these. */
2799 ccp = (char const *const *) p;
2800 { /* SCO 3.2v4 cc rejects this. */
2802 char const *s = 0 ? (char *) 0 : (char const *) 0;
2806 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2808 const int *foo = &x[0];
2811 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2812 typedef const int *iptr;
2816 { /* AIX XL C 1.02.0.0 rejects this saying
2817 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2818 struct s { int j; const int *ap[3]; };
2819 struct s *b; b->j = 5;
2821 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2830 rm -f conftest.$ac_objext
2831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2832 (eval $ac_compile) 2>&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } &&
2836 { ac_try='test -s conftest.$ac_objext'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2844 echo "$as_me: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2848 rm -f conftest.$ac_objext conftest.$ac_ext
2850 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2851 echo "${ECHO_T}$ac_cv_c_const" >&6
2852 if test $ac_cv_c_const = no; then
2854 cat >>confdefs.h <<\_ACEOF
2860 echo "$as_me:$LINENO: checking for inline" >&5
2861 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2862 if test "${ac_cv_c_inline+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 for ac_kw in inline __inline__ __inline; do
2867 cat >conftest.$ac_ext <<_ACEOF
2868 #line $LINENO "configure"
2869 #include "confdefs.h"
2871 static $ac_kw int static_foo () {return 0; }
2872 $ac_kw int foo () {return 0; }
2876 rm -f conftest.$ac_objext
2877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2878 (eval $ac_compile) 2>&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); } &&
2882 { ac_try='test -s conftest.$ac_objext'
2883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; }; then
2888 ac_cv_c_inline=$ac_kw; break
2890 echo "$as_me: failed program was:" >&5
2891 cat conftest.$ac_ext >&5
2893 rm -f conftest.$ac_objext conftest.$ac_ext
2897 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2898 echo "${ECHO_T}$ac_cv_c_inline" >&6
2899 case $ac_cv_c_inline in
2902 cat >>confdefs.h <<\_ACEOF
2906 *) cat >>confdefs.h <<_ACEOF
2907 #define inline $ac_cv_c_inline
2913 ac_bc_result=`echo 6+9 | bc 2>/dev/null`
2914 echo "$as_me:$LINENO: checking for bc" >&5
2915 echo $ECHO_N "checking for bc... $ECHO_C" >&6
2916 if test "$ac_bc_result" = "15" ; then
2917 echo "$as_me:$LINENO: result: yes" >&5
2918 echo "${ECHO_T}yes" >&6
2920 echo "$as_me:$LINENO: result: no" >&5
2921 echo "${ECHO_T}no" >&6
2923 { { echo "$as_me:$LINENO: error: Your system doesn't have \"bc\", which has been a standard
2924 part of Unix since the 1970s. Come back when your vendor
2925 has grown a clue." >&5
2926 echo "$as_me: error: Your system doesn't have \"bc\", which has been a standard
2927 part of Unix since the 1970s. Come back when your vendor
2928 has grown a clue." >&2;}
2929 { (exit 1); exit 1; }; }
2933 # stuff for Makefiles
2934 # Find a good install program. We prefer a C program (faster),
2935 # so one script is as good as another. But avoid the broken or
2936 # incompatible versions:
2937 # SysV /etc/install, /usr/sbin/install
2938 # SunOS /usr/etc/install
2939 # IRIX /sbin/install
2941 # AmigaOS /C/install, which installs bootblocks on floppy discs
2942 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2943 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2944 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2945 # ./install, which can be erroneously created by make from ./install.sh.
2946 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2947 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2948 if test -z "$INSTALL"; then
2949 if test "${ac_cv_path_install+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir=.
2957 # Account for people who put trailing slashes in PATH elements.
2959 ./ | .// | /cC/* | \
2960 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2963 # OSF1 and SCO ODT 3.0 have their own names for install.
2964 # Don't use installbsd from OSF since it installs stuff as root
2966 for ac_prog in ginstall scoinst install; do
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2969 if test $ac_prog = install &&
2970 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2971 # AIX install. It has an incompatible calling convention.
2973 elif test $ac_prog = install &&
2974 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2975 # program-specific install script used by HP pwplus--don't use.
2978 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2990 if test "${ac_cv_path_install+set}" = set; then
2991 INSTALL=$ac_cv_path_install
2993 # As a last resort, use the slow shell script. We don't cache a
2994 # path for INSTALL within a source directory, because that will
2995 # break other packages using the cache if that directory is
2996 # removed, or if the path is relative.
2997 INSTALL=$ac_install_sh
3000 echo "$as_me:$LINENO: result: $INSTALL" >&5
3001 echo "${ECHO_T}$INSTALL" >&6
3003 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3004 # It thinks the first close brace ends the variable substitution.
3005 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3007 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3009 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3011 echo "$as_me:$LINENO: checking whether \\"\${INSTALL} -d\\" creates intermediate directories" >&5
3012 echo $ECHO_N "checking whether \\"\${INSTALL} -d\\" creates intermediate directories... $ECHO_C" >&6
3013 if test "${ac_cv_install_d_creates_dirs+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 ac_cv_install_d_creates_dirs=no
3018 if mkdir conftestdir; then
3019 cd conftestdir 2>/dev/null
3020 ${INSTALL} -d `pwd`/dir1/dir2 >/dev/null 2>&1
3021 if test -d dir1/dir2/. ; then
3022 ac_cv_install_d_creates_dirs=yes
3029 echo "$as_me:$LINENO: result: $ac_cv_install_d_creates_dirs" >&5
3030 echo "${ECHO_T}$ac_cv_install_d_creates_dirs" >&6
3032 if test "$ac_cv_install_d_creates_dirs" = no ; then
3033 echo "$as_me:$LINENO: checking whether \"mkdir -p\" creates intermediate directories" >&5
3034 echo $ECHO_N "checking whether \"mkdir -p\" creates intermediate directories... $ECHO_C" >&6
3035 if test "${ac_cv_mkdir_p_creates_dirs+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 ac_cv_mkdir_p_creates_dirs=no
3040 if mkdir conftestdir; then
3041 cd conftestdir 2>/dev/null
3042 mkdir -p dir1/dir2 >/dev/null 2>&1
3043 if test -d dir1/dir2/. ; then
3044 ac_cv_mkdir_p_creates_dirs=yes
3051 echo "$as_me:$LINENO: result: $ac_cv_mkdir_p_creates_dirs" >&5
3052 echo "${ECHO_T}$ac_cv_mkdir_p_creates_dirs" >&6
3055 if test "$ac_cv_install_d_creates_dirs" = yes ; then
3056 INSTALL_DIRS='${INSTALL} -d'
3057 elif test "$ac_cv_mkdir_p_creates_dirs" = yes ; then
3058 INSTALL_DIRS='mkdir -p'
3061 INSTALL_DIRS='${INSTALL} -d'
3064 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
3065 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3066 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3067 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 cat >conftest.make <<\_ACEOF
3072 @echo 'ac_maketemp="${MAKE}"'
3074 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3075 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3076 if test -n "$ac_maketemp"; then
3077 eval ac_cv_prog_make_${ac_make}_set=yes
3079 eval ac_cv_prog_make_${ac_make}_set=no
3083 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3084 echo "$as_me:$LINENO: result: yes" >&5
3085 echo "${ECHO_T}yes" >&6
3088 echo "$as_me:$LINENO: result: no" >&5
3089 echo "${ECHO_T}no" >&6
3090 SET_MAKE="MAKE=${MAKE-make}"
3094 # By default, autoconf sets INSTALL_SCRIPT to '${INSTALL_PROGRAM}'.
3095 # That's wrong: it should be set to '${INSTALL}', so that one can
3096 # implement the "install-strip" target properly (strip executables,
3097 # but do not try to strip scripts.)
3099 INSTALL_SCRIPT='${INSTALL}'
3103 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3104 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3105 if test "${ac_cv_header_stdc+set}" = set; then
3106 echo $ECHO_N "(cached) $ECHO_C" >&6
3108 cat >conftest.$ac_ext <<_ACEOF
3109 #line $LINENO "configure"
3110 #include "confdefs.h"
3117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3120 egrep -v '^ *\+' conftest.er1 >conftest.err
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } >/dev/null; then
3125 if test -s conftest.err; then
3126 ac_cpp_err=$ac_c_preproc_warn_flag
3133 if test -z "$ac_cpp_err"; then
3134 ac_cv_header_stdc=yes
3136 echo "$as_me: failed program was:" >&5
3137 cat conftest.$ac_ext >&5
3138 ac_cv_header_stdc=no
3140 rm -f conftest.err conftest.$ac_ext
3142 if test $ac_cv_header_stdc = yes; then
3143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3144 cat >conftest.$ac_ext <<_ACEOF
3145 #line $LINENO "configure"
3146 #include "confdefs.h"
3150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3151 egrep "memchr" >/dev/null 2>&1; then
3154 ac_cv_header_stdc=no
3160 if test $ac_cv_header_stdc = yes; then
3161 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3162 cat >conftest.$ac_ext <<_ACEOF
3163 #line $LINENO "configure"
3164 #include "confdefs.h"
3168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3169 egrep "free" >/dev/null 2>&1; then
3172 ac_cv_header_stdc=no
3178 if test $ac_cv_header_stdc = yes; then
3179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3180 if test "$cross_compiling" = yes; then
3183 cat >conftest.$ac_ext <<_ACEOF
3184 #line $LINENO "configure"
3185 #include "confdefs.h"
3187 #if ((' ' & 0x0FF) == 0x020)
3188 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3189 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3191 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3192 || ('j' <= (c) && (c) <= 'r') \
3193 || ('s' <= (c) && (c) <= 'z'))
3194 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3197 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3202 for (i = 0; i < 256; i++)
3203 if (XOR (islower (i), ISLOWER (i))
3204 || toupper (i) != TOUPPER (i))
3209 rm -f conftest$ac_exeext
3210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3211 (eval $ac_link) 2>&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3222 echo "$as_me: program exited with status $ac_status" >&5
3223 echo "$as_me: failed program was:" >&5
3224 cat conftest.$ac_ext >&5
3226 ac_cv_header_stdc=no
3228 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3232 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3233 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3234 if test $ac_cv_header_stdc = yes; then
3236 cat >>confdefs.h <<\_ACEOF
3237 #define STDC_HEADERS 1
3242 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3252 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3253 inttypes.h stdint.h unistd.h
3255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3256 echo "$as_me:$LINENO: checking for $ac_header" >&5
3257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 cat >conftest.$ac_ext <<_ACEOF
3262 #line $LINENO "configure"
3263 #include "confdefs.h"
3264 $ac_includes_default
3266 #include <$ac_header>
3268 rm -f conftest.$ac_objext
3269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3270 (eval $ac_compile) 2>&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } &&
3274 { ac_try='test -s conftest.$ac_objext'
3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; }; then
3280 eval "$as_ac_Header=yes"
3282 echo "$as_me: failed program was:" >&5
3283 cat conftest.$ac_ext >&5
3284 eval "$as_ac_Header=no"
3286 rm -f conftest.$ac_objext conftest.$ac_ext
3288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3291 cat >>confdefs.h <<_ACEOF
3292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3301 for ac_header in unistd.h
3303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3305 echo "$as_me:$LINENO: checking for $ac_header" >&5
3306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3313 # Is the header compilable?
3314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3316 cat >conftest.$ac_ext <<_ACEOF
3317 #line $LINENO "configure"
3318 #include "confdefs.h"
3319 $ac_includes_default
3320 #include <$ac_header>
3322 rm -f conftest.$ac_objext
3323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3324 (eval $ac_compile) 2>&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } &&
3328 { ac_try='test -s conftest.$ac_objext'
3329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); }; }; then
3334 ac_header_compiler=yes
3336 echo "$as_me: failed program was:" >&5
3337 cat conftest.$ac_ext >&5
3338 ac_header_compiler=no
3340 rm -f conftest.$ac_objext conftest.$ac_ext
3341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3342 echo "${ECHO_T}$ac_header_compiler" >&6
3344 # Is the header present?
3345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3347 cat >conftest.$ac_ext <<_ACEOF
3348 #line $LINENO "configure"
3349 #include "confdefs.h"
3350 #include <$ac_header>
3352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3355 egrep -v '^ *\+' conftest.er1 >conftest.err
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); } >/dev/null; then
3360 if test -s conftest.err; then
3361 ac_cpp_err=$ac_c_preproc_warn_flag
3368 if test -z "$ac_cpp_err"; then
3369 ac_header_preproc=yes
3371 echo "$as_me: failed program was:" >&5
3372 cat conftest.$ac_ext >&5
3373 ac_header_preproc=no
3375 rm -f conftest.err conftest.$ac_ext
3376 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3377 echo "${ECHO_T}$ac_header_preproc" >&6
3379 # So? What about this header?
3380 case $ac_header_compiler:$ac_header_preproc in
3382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3394 echo "$as_me:$LINENO: checking for $ac_header" >&5
3395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 eval "$as_ac_Header=$ac_header_preproc"
3401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3406 cat >>confdefs.h <<_ACEOF
3407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3414 echo "$as_me:$LINENO: checking for mode_t" >&5
3415 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
3416 if test "${ac_cv_type_mode_t+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 cat >conftest.$ac_ext <<_ACEOF
3420 #line $LINENO "configure"
3421 #include "confdefs.h"
3422 $ac_includes_default
3423 #ifdef F77_DUMMY_MAIN
3427 int F77_DUMMY_MAIN() { return 1; }
3434 if (sizeof (mode_t))
3440 rm -f conftest.$ac_objext
3441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3442 (eval $ac_compile) 2>&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } &&
3446 { ac_try='test -s conftest.$ac_objext'
3447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }; }; then
3452 ac_cv_type_mode_t=yes
3454 echo "$as_me: failed program was:" >&5
3455 cat conftest.$ac_ext >&5
3456 ac_cv_type_mode_t=no
3458 rm -f conftest.$ac_objext conftest.$ac_ext
3460 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
3461 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
3462 if test $ac_cv_type_mode_t = yes; then
3466 cat >>confdefs.h <<_ACEOF
3472 echo "$as_me:$LINENO: checking for pid_t" >&5
3473 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3474 if test "${ac_cv_type_pid_t+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 cat >conftest.$ac_ext <<_ACEOF
3478 #line $LINENO "configure"
3479 #include "confdefs.h"
3480 $ac_includes_default
3481 #ifdef F77_DUMMY_MAIN
3485 int F77_DUMMY_MAIN() { return 1; }
3498 rm -f conftest.$ac_objext
3499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500 (eval $ac_compile) 2>&5
3502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503 (exit $ac_status); } &&
3504 { ac_try='test -s conftest.$ac_objext'
3505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3510 ac_cv_type_pid_t=yes
3512 echo "$as_me: failed program was:" >&5
3513 cat conftest.$ac_ext >&5
3516 rm -f conftest.$ac_objext conftest.$ac_ext
3518 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3519 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3520 if test $ac_cv_type_pid_t = yes; then
3524 cat >>confdefs.h <<_ACEOF
3530 echo "$as_me:$LINENO: checking for size_t" >&5
3531 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3532 if test "${ac_cv_type_size_t+set}" = set; then
3533 echo $ECHO_N "(cached) $ECHO_C" >&6
3535 cat >conftest.$ac_ext <<_ACEOF
3536 #line $LINENO "configure"
3537 #include "confdefs.h"
3538 $ac_includes_default
3539 #ifdef F77_DUMMY_MAIN
3543 int F77_DUMMY_MAIN() { return 1; }
3550 if (sizeof (size_t))
3556 rm -f conftest.$ac_objext
3557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3558 (eval $ac_compile) 2>&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } &&
3562 { ac_try='test -s conftest.$ac_objext'
3563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); }; }; then
3568 ac_cv_type_size_t=yes
3570 echo "$as_me: failed program was:" >&5
3571 cat conftest.$ac_ext >&5
3572 ac_cv_type_size_t=no
3574 rm -f conftest.$ac_objext conftest.$ac_ext
3576 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3577 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3578 if test $ac_cv_type_size_t = yes; then
3582 cat >>confdefs.h <<_ACEOF
3583 #define size_t unsigned
3588 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3589 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3590 if test "${ac_cv_type_signal+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 cat >conftest.$ac_ext <<_ACEOF
3594 #line $LINENO "configure"
3595 #include "confdefs.h"
3596 #include <sys/types.h>
3602 extern "C" void (*signal (int, void (*)(int)))(int);
3604 void (*signal ()) ();
3607 #ifdef F77_DUMMY_MAIN
3611 int F77_DUMMY_MAIN() { return 1; }
3621 rm -f conftest.$ac_objext
3622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3623 (eval $ac_compile) 2>&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } &&
3627 { ac_try='test -s conftest.$ac_objext'
3628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); }; }; then
3633 ac_cv_type_signal=void
3635 echo "$as_me: failed program was:" >&5
3636 cat conftest.$ac_ext >&5
3637 ac_cv_type_signal=int
3639 rm -f conftest.$ac_objext conftest.$ac_ext
3641 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3642 echo "${ECHO_T}$ac_cv_type_signal" >&6
3644 cat >>confdefs.h <<_ACEOF
3645 #define RETSIGTYPE $ac_cv_type_signal
3649 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3650 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3651 if test "${ac_cv_header_time+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 cat >conftest.$ac_ext <<_ACEOF
3655 #line $LINENO "configure"
3656 #include "confdefs.h"
3657 #include <sys/types.h>
3658 #include <sys/time.h>
3661 #ifdef F77_DUMMY_MAIN
3665 int F77_DUMMY_MAIN() { return 1; }
3670 if ((struct tm *) 0)
3676 rm -f conftest.$ac_objext
3677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3678 (eval $ac_compile) 2>&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
3682 { ac_try='test -s conftest.$ac_objext'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; }; then
3688 ac_cv_header_time=yes
3690 echo "$as_me: failed program was:" >&5
3691 cat conftest.$ac_ext >&5
3692 ac_cv_header_time=no
3694 rm -f conftest.$ac_objext conftest.$ac_ext
3696 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3697 echo "${ECHO_T}$ac_cv_header_time" >&6
3698 if test $ac_cv_header_time = yes; then
3700 cat >>confdefs.h <<\_ACEOF
3701 #define TIME_WITH_SYS_TIME 1
3706 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3707 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3708 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 cat >conftest.$ac_ext <<_ACEOF
3712 #line $LINENO "configure"
3713 #include "confdefs.h"
3714 #include <sys/types.h>
3715 #include <sys/wait.h>
3717 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3720 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3723 #ifdef F77_DUMMY_MAIN
3727 int F77_DUMMY_MAIN() { return 1; }
3734 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3739 rm -f conftest.$ac_objext
3740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3741 (eval $ac_compile) 2>&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); } &&
3745 { ac_try='test -s conftest.$ac_objext'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; }; then
3751 ac_cv_header_sys_wait_h=yes
3753 echo "$as_me: failed program was:" >&5
3754 cat conftest.$ac_ext >&5
3755 ac_cv_header_sys_wait_h=no
3757 rm -f conftest.$ac_objext conftest.$ac_ext
3759 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3760 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3761 if test $ac_cv_header_sys_wait_h = yes; then
3763 cat >>confdefs.h <<\_ACEOF
3764 #define HAVE_SYS_WAIT_H 1
3775 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3776 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3777 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3778 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 cat >conftest.$ac_ext <<_ACEOF
3783 #line $LINENO "configure"
3784 #include "confdefs.h"
3785 #include <sys/types.h>
3788 #ifdef F77_DUMMY_MAIN
3792 int F77_DUMMY_MAIN() { return 1; }
3803 rm -f conftest.$ac_objext
3804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3805 (eval $ac_compile) 2>&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } &&
3809 { ac_try='test -s conftest.$ac_objext'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; }; then
3815 eval "$as_ac_Header=yes"
3817 echo "$as_me: failed program was:" >&5
3818 cat conftest.$ac_ext >&5
3819 eval "$as_ac_Header=no"
3821 rm -f conftest.$ac_objext conftest.$ac_ext
3823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3826 cat >>confdefs.h <<_ACEOF
3827 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3830 ac_header_dirent=$ac_hdr; break
3834 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3835 if test $ac_header_dirent = dirent.h; then
3836 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3837 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3838 if test "${ac_cv_search_opendir+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 ac_func_search_save_LIBS=$LIBS
3842 ac_cv_search_opendir=no
3843 cat >conftest.$ac_ext <<_ACEOF
3844 #line $LINENO "configure"
3845 #include "confdefs.h"
3847 /* Override any gcc2 internal prototype to avoid an error. */
3851 /* We use char because int might match the return type of a gcc2
3852 builtin and then its argument prototype would still apply. */
3854 #ifdef F77_DUMMY_MAIN
3858 int F77_DUMMY_MAIN() { return 1; }
3868 rm -f conftest.$ac_objext conftest$ac_exeext
3869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3870 (eval $ac_link) 2>&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } &&
3874 { ac_try='test -s conftest$ac_exeext'
3875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3880 ac_cv_search_opendir="none required"
3882 echo "$as_me: failed program was:" >&5
3883 cat conftest.$ac_ext >&5
3885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3886 if test "$ac_cv_search_opendir" = no; then
3887 for ac_lib in dir; do
3888 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3889 cat >conftest.$ac_ext <<_ACEOF
3890 #line $LINENO "configure"
3891 #include "confdefs.h"
3893 /* Override any gcc2 internal prototype to avoid an error. */
3897 /* We use char because int might match the return type of a gcc2
3898 builtin and then its argument prototype would still apply. */
3900 #ifdef F77_DUMMY_MAIN
3904 int F77_DUMMY_MAIN() { return 1; }
3914 rm -f conftest.$ac_objext conftest$ac_exeext
3915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3916 (eval $ac_link) 2>&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } &&
3920 { ac_try='test -s conftest$ac_exeext'
3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; }; then
3926 ac_cv_search_opendir="-l$ac_lib"
3929 echo "$as_me: failed program was:" >&5
3930 cat conftest.$ac_ext >&5
3932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3935 LIBS=$ac_func_search_save_LIBS
3937 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3938 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3939 if test "$ac_cv_search_opendir" != no; then
3940 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3945 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3946 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3947 if test "${ac_cv_search_opendir+set}" = set; then
3948 echo $ECHO_N "(cached) $ECHO_C" >&6
3950 ac_func_search_save_LIBS=$LIBS
3951 ac_cv_search_opendir=no
3952 cat >conftest.$ac_ext <<_ACEOF
3953 #line $LINENO "configure"
3954 #include "confdefs.h"
3956 /* Override any gcc2 internal prototype to avoid an error. */
3960 /* We use char because int might match the return type of a gcc2
3961 builtin and then its argument prototype would still apply. */
3963 #ifdef F77_DUMMY_MAIN
3967 int F77_DUMMY_MAIN() { return 1; }
3977 rm -f conftest.$ac_objext conftest$ac_exeext
3978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3979 (eval $ac_link) 2>&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); } &&
3983 { ac_try='test -s conftest$ac_exeext'
3984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); }; }; then
3989 ac_cv_search_opendir="none required"
3991 echo "$as_me: failed program was:" >&5
3992 cat conftest.$ac_ext >&5
3994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3995 if test "$ac_cv_search_opendir" = no; then
3997 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3998 cat >conftest.$ac_ext <<_ACEOF
3999 #line $LINENO "configure"
4000 #include "confdefs.h"
4002 /* Override any gcc2 internal prototype to avoid an error. */
4006 /* We use char because int might match the return type of a gcc2
4007 builtin and then its argument prototype would still apply. */
4009 #ifdef F77_DUMMY_MAIN
4013 int F77_DUMMY_MAIN() { return 1; }
4023 rm -f conftest.$ac_objext conftest$ac_exeext
4024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4025 (eval $ac_link) 2>&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } &&
4029 { ac_try='test -s conftest$ac_exeext'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; }; then
4035 ac_cv_search_opendir="-l$ac_lib"
4038 echo "$as_me: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4044 LIBS=$ac_func_search_save_LIBS
4046 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4047 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4048 if test "$ac_cv_search_opendir" != no; then
4049 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4055 echo "$as_me:$LINENO: checking how to call gettimeofday" >&5
4056 echo $ECHO_N "checking how to call gettimeofday... $ECHO_C" >&6
4057 if test "${ac_cv_gettimeofday_args+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 cat >conftest.$ac_ext <<_ACEOF
4061 #line $LINENO "configure"
4062 #include "confdefs.h"
4064 #include <sys/time.h>
4065 #ifdef F77_DUMMY_MAIN
4069 int F77_DUMMY_MAIN() { return 1; }
4074 struct timeval tv; struct timezone tzp;
4075 gettimeofday(&tv, &tzp);
4080 rm -f conftest.$ac_objext
4081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4082 (eval $ac_compile) 2>&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try='test -s conftest.$ac_objext'
4087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
4092 ac_gettimeofday_args=2
4094 echo "$as_me: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
4096 cat >conftest.$ac_ext <<_ACEOF
4097 #line $LINENO "configure"
4098 #include "confdefs.h"
4100 #include <sys/time.h>
4101 #ifdef F77_DUMMY_MAIN
4105 int F77_DUMMY_MAIN() { return 1; }
4110 struct timeval tv; gettimeofday(&tv);
4115 rm -f conftest.$ac_objext
4116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4117 (eval $ac_compile) 2>&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4127 ac_gettimeofday_args=1
4129 echo "$as_me: failed program was:" >&5
4130 cat conftest.$ac_ext >&5
4131 ac_gettimeofday_args=0
4133 rm -f conftest.$ac_objext conftest.$ac_ext
4135 rm -f conftest.$ac_objext conftest.$ac_ext
4136 ac_cv_gettimeofday_args=$ac_gettimeofday_args
4139 ac_gettimeofday_args=$ac_cv_gettimeofday_args
4140 if test "$ac_gettimeofday_args" = 1 ; then
4141 cat >>confdefs.h <<\_ACEOF
4142 #define HAVE_GETTIMEOFDAY 1
4145 echo "$as_me:$LINENO: result: one argument" >&5
4146 echo "${ECHO_T}one argument" >&6
4147 elif test "$ac_gettimeofday_args" = 2 ; then
4148 cat >>confdefs.h <<\_ACEOF
4149 #define HAVE_GETTIMEOFDAY 1
4152 cat >>confdefs.h <<\_ACEOF
4153 #define GETTIMEOFDAY_TWO_ARGS 1
4156 echo "$as_me:$LINENO: result: two arguments" >&5
4157 echo "${ECHO_T}two arguments" >&6
4159 echo "$as_me:$LINENO: result: unknown" >&5
4160 echo "${ECHO_T}unknown" >&6
4172 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv sbrk
4174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4175 echo "$as_me:$LINENO: checking for $ac_func" >&5
4176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4177 if eval "test \"\${$as_ac_var+set}\" = set"; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 cat >conftest.$ac_ext <<_ACEOF
4181 #line $LINENO "configure"
4182 #include "confdefs.h"
4183 /* System header to define __stub macros and hopefully few prototypes,
4184 which can conflict with char $ac_func (); below. */
4186 /* Override any gcc2 internal prototype to avoid an error. */
4190 /* We use char because int might match the return type of a gcc2
4191 builtin and then its argument prototype would still apply. */
4195 #ifdef F77_DUMMY_MAIN
4199 int F77_DUMMY_MAIN() { return 1; }
4204 /* The GNU C library defines this for functions which it implements
4205 to always fail with ENOSYS. Some functions are actually named
4206 something starting with __ and the normal name is an alias. */
4207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4217 rm -f conftest.$ac_objext conftest$ac_exeext
4218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4219 (eval $ac_link) 2>&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } &&
4223 { ac_try='test -s conftest$ac_exeext'
4224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; }; then
4229 eval "$as_ac_var=yes"
4231 echo "$as_me: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4233 eval "$as_ac_var=no"
4235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4239 if test `eval echo '${'$as_ac_var'}'` = yes; then
4240 cat >>confdefs.h <<_ACEOF
4241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4252 for ac_func in sigaction syslog realpath setrlimit
4254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4255 echo "$as_me:$LINENO: checking for $ac_func" >&5
4256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4257 if eval "test \"\${$as_ac_var+set}\" = set"; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 cat >conftest.$ac_ext <<_ACEOF
4261 #line $LINENO "configure"
4262 #include "confdefs.h"
4263 /* System header to define __stub macros and hopefully few prototypes,
4264 which can conflict with char $ac_func (); below. */
4266 /* Override any gcc2 internal prototype to avoid an error. */
4270 /* We use char because int might match the return type of a gcc2
4271 builtin and then its argument prototype would still apply. */
4275 #ifdef F77_DUMMY_MAIN
4279 int F77_DUMMY_MAIN() { return 1; }
4284 /* The GNU C library defines this for functions which it implements
4285 to always fail with ENOSYS. Some functions are actually named
4286 something starting with __ and the normal name is an alias. */
4287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4297 rm -f conftest.$ac_objext conftest$ac_exeext
4298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4299 (eval $ac_link) 2>&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } &&
4303 { ac_try='test -s conftest$ac_exeext'
4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4309 eval "$as_ac_var=yes"
4311 echo "$as_me: failed program was:" >&5
4312 cat conftest.$ac_ext >&5
4313 eval "$as_ac_var=no"
4315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4318 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4319 if test `eval echo '${'$as_ac_var'}'` = yes; then
4320 cat >>confdefs.h <<_ACEOF
4321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4327 echo "$as_me:$LINENO: checking for struct icmp" >&5
4328 echo $ECHO_N "checking for struct icmp... $ECHO_C" >&6
4329 if test "${ac_cv_have_icmp+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 cat >conftest.$ac_ext <<_ACEOF
4333 #line $LINENO "configure"
4334 #include "confdefs.h"
4342 #include <sys/types.h>
4343 #include <sys/time.h>
4344 #include <sys/ipc.h>
4345 #include <sys/shm.h>
4346 #include <sys/socket.h>
4347 #include <netinet/in_systm.h>
4348 #include <netinet/in.h>
4349 #include <netinet/ip.h>
4350 #include <netinet/ip_icmp.h>
4351 #include <netinet/udp.h>
4352 #include <arpa/inet.h>
4354 #ifdef F77_DUMMY_MAIN
4358 int F77_DUMMY_MAIN() { return 1; }
4365 struct sockaddr_in si;
4367 i.icmp_type = ICMP_ECHO;
4372 si.sin_family = AF_INET;
4373 #if defined(__DECC) || defined(_IP_VHL)
4383 rm -f conftest.$ac_objext
4384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4385 (eval $ac_compile) 2>&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } &&
4389 { ac_try='test -s conftest.$ac_objext'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; }; then
4397 echo "$as_me: failed program was:" >&5
4398 cat conftest.$ac_ext >&5
4401 rm -f conftest.$ac_objext conftest.$ac_ext
4403 echo "$as_me:$LINENO: result: $ac_cv_have_icmp" >&5
4404 echo "${ECHO_T}$ac_cv_have_icmp" >&6
4405 if test "$ac_cv_have_icmp" = yes ; then
4406 cat >>confdefs.h <<\_ACEOF
4411 echo "$as_me:$LINENO: checking for struct icmphdr" >&5
4412 echo $ECHO_N "checking for struct icmphdr... $ECHO_C" >&6
4413 if test "${ac_cv_have_icmphdr+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 cat >conftest.$ac_ext <<_ACEOF
4417 #line $LINENO "configure"
4418 #include "confdefs.h"
4426 #include <sys/types.h>
4427 #include <sys/time.h>
4428 #include <sys/ipc.h>
4429 #include <sys/shm.h>
4430 #include <sys/socket.h>
4431 #include <netinet/in_systm.h>
4432 #include <netinet/in.h>
4433 #include <netinet/ip.h>
4434 #include <netinet/ip_icmp.h>
4435 #include <netinet/udp.h>
4436 #include <arpa/inet.h>
4438 #ifdef F77_DUMMY_MAIN
4442 int F77_DUMMY_MAIN() { return 1; }
4449 struct sockaddr_in si;
4455 i.un.echo.sequence = 0;
4456 si.sin_family = AF_INET;
4462 rm -f conftest.$ac_objext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464 (eval $ac_compile) 2>&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } &&
4468 { ac_try='test -s conftest.$ac_objext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 ac_cv_have_icmphdr=yes
4476 echo "$as_me: failed program was:" >&5
4477 cat conftest.$ac_ext >&5
4478 ac_cv_have_icmphdr=no
4480 rm -f conftest.$ac_objext conftest.$ac_ext
4482 echo "$as_me:$LINENO: result: $ac_cv_have_icmphdr" >&5
4483 echo "${ECHO_T}$ac_cv_have_icmphdr" >&6
4484 if test "$ac_cv_have_icmphdr" = yes ; then
4485 cat >>confdefs.h <<\_ACEOF
4486 #define HAVE_ICMPHDR 1
4492 for ac_header in crypt.h sys/select.h
4494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4496 echo "$as_me:$LINENO: checking for $ac_header" >&5
4497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4504 # Is the header compilable?
4505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4507 cat >conftest.$ac_ext <<_ACEOF
4508 #line $LINENO "configure"
4509 #include "confdefs.h"
4510 $ac_includes_default
4511 #include <$ac_header>
4513 rm -f conftest.$ac_objext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4515 (eval $ac_compile) 2>&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); } &&
4519 { ac_try='test -s conftest.$ac_objext'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; }; then
4525 ac_header_compiler=yes
4527 echo "$as_me: failed program was:" >&5
4528 cat conftest.$ac_ext >&5
4529 ac_header_compiler=no
4531 rm -f conftest.$ac_objext conftest.$ac_ext
4532 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4533 echo "${ECHO_T}$ac_header_compiler" >&6
4535 # Is the header present?
4536 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4538 cat >conftest.$ac_ext <<_ACEOF
4539 #line $LINENO "configure"
4540 #include "confdefs.h"
4541 #include <$ac_header>
4543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4546 egrep -v '^ *\+' conftest.er1 >conftest.err
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } >/dev/null; then
4551 if test -s conftest.err; then
4552 ac_cpp_err=$ac_c_preproc_warn_flag
4559 if test -z "$ac_cpp_err"; then
4560 ac_header_preproc=yes
4562 echo "$as_me: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4564 ac_header_preproc=no
4566 rm -f conftest.err conftest.$ac_ext
4567 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4568 echo "${ECHO_T}$ac_header_preproc" >&6
4570 # So? What about this header?
4571 case $ac_header_compiler:$ac_header_preproc in
4573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4585 echo "$as_me:$LINENO: checking for $ac_header" >&5
4586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 eval "$as_ac_Header=$ac_header_preproc"
4592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4597 cat >>confdefs.h <<_ACEOF
4598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4605 for ac_prog in perl5 perl
4607 # Extract the first word of "$ac_prog", so it can be a program name with args.
4608 set dummy $ac_prog; ac_word=$2
4609 echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4611 if test "${ac_cv_path_PERL+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4616 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4626 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 PERL=$ac_cv_path_PERL
4638 if test -n "$PERL"; then
4639 echo "$as_me:$LINENO: result: $PERL" >&5
4640 echo "${ECHO_T}$PERL" >&6
4642 echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6
4646 test -n "$PERL" && break
4649 if test -z "$PERL" ; then
4652 echo "$as_me:$LINENO: checking perl version" >&5
4653 echo $ECHO_N "checking perl version... $ECHO_C" >&6
4654 if test "${ac_cv_perl_version+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 ac_cv_perl_version=`$PERL -e "$perl_version_cmd"`
4659 echo "$as_me:$LINENO: result: $ac_cv_perl_version" >&5
4660 echo "${ECHO_T}$ac_cv_perl_version" >&6
4661 PERL_VERSION=$ac_cv_perl_version
4665 if test -z "$PERL" ; then
4666 # don't let it be blank...
4670 echo "$as_me:$LINENO: checking for X" >&5
4671 echo $ECHO_N "checking for X... $ECHO_C" >&6
4674 # Check whether --with-x or --without-x was given.
4675 if test "${with_x+set}" = set; then
4679 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4680 if test "x$with_x" = xno; then
4681 # The user explicitly disabled X.
4684 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4685 # Both variables are already set.
4688 if test "${ac_cv_have_x+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 # One or both of the vars are not set, and there is no cached value.
4692 ac_x_includes=no ac_x_libraries=no
4694 if mkdir conftest.dir; then
4696 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4697 cat >Imakefile <<'_ACEOF'
4699 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4701 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4702 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4703 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4704 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4705 for ac_extension in a so sl; do
4706 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4707 test -f $ac_im_libdir/libX11.$ac_extension; then
4708 ac_im_usrlibdir=$ac_im_libdir; break
4711 # Screen out bogus values from the imake configuration. They are
4712 # bogus both because they are the default anyway, and because
4713 # using them would break gcc on systems where it needs fixed includes.
4714 case $ac_im_incroot in
4716 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4718 case $ac_im_usrlibdir in
4720 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4727 # Standard set of common directories for X headers.
4728 # Check X11 before X11Rn because it is often a symlink to the current release.
4740 /usr/local/X11/include
4741 /usr/local/X11R6/include
4742 /usr/local/X11R5/include
4743 /usr/local/X11R4/include
4745 /usr/local/include/X11
4746 /usr/local/include/X11R6
4747 /usr/local/include/X11R5
4748 /usr/local/include/X11R4
4752 /usr/XFree86/include/X11
4756 /usr/unsupported/include
4758 /usr/local/x11r5/include
4759 /usr/lpp/Xamples/include
4761 /usr/openwin/include
4762 /usr/openwin/share/include'
4764 if test "$ac_x_includes" = no; then
4765 # Guess where to find include files, by looking for Intrinsic.h.
4766 # First, try using that file with no special directory specified.
4767 cat >conftest.$ac_ext <<_ACEOF
4768 #line $LINENO "configure"
4769 #include "confdefs.h"
4770 #include <X11/Intrinsic.h>
4772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4775 egrep -v '^ *\+' conftest.er1 >conftest.err
4777 cat conftest.err >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } >/dev/null; then
4780 if test -s conftest.err; then
4781 ac_cpp_err=$ac_c_preproc_warn_flag
4788 if test -z "$ac_cpp_err"; then
4789 # We can compile using X headers with no special include directory.
4792 echo "$as_me: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4794 for ac_dir in $ac_x_header_dirs; do
4795 if test -r "$ac_dir/X11/Intrinsic.h"; then
4796 ac_x_includes=$ac_dir
4801 rm -f conftest.err conftest.$ac_ext
4802 fi # $ac_x_includes = no
4804 if test "$ac_x_libraries" = no; then
4805 # Check for the libraries.
4806 # See if we find them without any special options.
4807 # Don't add to $LIBS permanently.
4810 cat >conftest.$ac_ext <<_ACEOF
4811 #line $LINENO "configure"
4812 #include "confdefs.h"
4813 #include <X11/Intrinsic.h>
4814 #ifdef F77_DUMMY_MAIN
4818 int F77_DUMMY_MAIN() { return 1; }
4828 rm -f conftest.$ac_objext conftest$ac_exeext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4830 (eval $ac_link) 2>&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } &&
4834 { ac_try='test -s conftest$ac_exeext'
4835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); }; }; then
4841 # We can link X programs with no special library path.
4844 echo "$as_me: failed program was:" >&5
4845 cat conftest.$ac_ext >&5
4847 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4849 # Don't even attempt the hair of trying to link an X program!
4850 for ac_extension in a so sl; do
4851 if test -r $ac_dir/libXt.$ac_extension; then
4852 ac_x_libraries=$ac_dir
4858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4859 fi # $ac_x_libraries = no
4861 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4862 # Didn't find X anywhere. Cache the known absence of X.
4863 ac_cv_have_x="have_x=no"
4865 # Record where we found X for the cache.
4866 ac_cv_have_x="have_x=yes \
4867 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4872 eval "$ac_cv_have_x"
4875 if test "$have_x" != yes; then
4876 echo "$as_me:$LINENO: result: $have_x" >&5
4877 echo "${ECHO_T}$have_x" >&6
4880 # If each of the values was on the command line, it overrides each guess.
4881 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4882 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4883 # Update the cache value to reflect the command line values.
4884 ac_cv_have_x="have_x=yes \
4885 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4886 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4887 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4890 if test "$no_x" = yes; then
4891 # Not all programs may use this symbol, but it does not hurt to define it.
4893 cat >>confdefs.h <<\_ACEOF
4894 #define X_DISPLAY_MISSING 1
4897 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4899 if test -n "$x_includes"; then
4900 X_CFLAGS="$X_CFLAGS -I$x_includes"
4903 # It would also be nice to do this for all -L options, not just this one.
4904 if test -n "$x_libraries"; then
4905 X_LIBS="$X_LIBS -L$x_libraries"
4906 # For Solaris; some versions of Sun CC require a space after -R and
4907 # others require no space. Words are not sufficient . . . .
4908 case `(uname -sr) 2>/dev/null` in
4910 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4911 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
4912 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4913 cat >conftest.$ac_ext <<_ACEOF
4914 #line $LINENO "configure"
4915 #include "confdefs.h"
4917 #ifdef F77_DUMMY_MAIN
4921 int F77_DUMMY_MAIN() { return 1; }
4931 rm -f conftest.$ac_objext conftest$ac_exeext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4933 (eval $ac_link) 2>&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } &&
4937 { ac_try='test -s conftest$ac_exeext'
4938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; }; then
4945 echo "$as_me: failed program was:" >&5
4946 cat conftest.$ac_ext >&5
4949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4950 if test $ac_R_nospace = yes; then
4951 echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6
4953 X_LIBS="$X_LIBS -R$x_libraries"
4955 LIBS="$ac_xsave_LIBS -R $x_libraries"
4956 cat >conftest.$ac_ext <<_ACEOF
4957 #line $LINENO "configure"
4958 #include "confdefs.h"
4960 #ifdef F77_DUMMY_MAIN
4964 int F77_DUMMY_MAIN() { return 1; }
4974 rm -f conftest.$ac_objext conftest$ac_exeext
4975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4976 (eval $ac_link) 2>&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } &&
4980 { ac_try='test -s conftest$ac_exeext'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4988 echo "$as_me: failed program was:" >&5
4989 cat conftest.$ac_ext >&5
4992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4993 if test $ac_R_space = yes; then
4994 echo "$as_me:$LINENO: result: yes" >&5
4995 echo "${ECHO_T}yes" >&6
4996 X_LIBS="$X_LIBS -R $x_libraries"
4998 echo "$as_me:$LINENO: result: neither works" >&5
4999 echo "${ECHO_T}neither works" >&6
5006 # Check for system-dependent libraries X programs must link with.
5007 # Do this before checking for the system-independent R6 libraries
5008 # (-lICE), since we may need -lsocket or whatever for X linking.
5010 if test "$ISC" = yes; then
5011 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5013 # Martyn Johnson says this is needed for Ultrix, if the X
5014 # libraries were built with DECnet support. And Karl Berry says
5015 # the Alpha needs dnet_stub (dnet does not exist).
5016 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5017 cat >conftest.$ac_ext <<_ACEOF
5018 #line $LINENO "configure"
5019 #include "confdefs.h"
5021 /* Override any gcc2 internal prototype to avoid an error. */
5025 /* We use char because int might match the return type of a gcc2
5026 builtin and then its argument prototype would still apply. */
5027 char XOpenDisplay ();
5028 #ifdef F77_DUMMY_MAIN
5032 int F77_DUMMY_MAIN() { return 1; }
5042 rm -f conftest.$ac_objext conftest$ac_exeext
5043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5044 (eval $ac_link) 2>&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
5048 { ac_try='test -s conftest$ac_exeext'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5056 echo "$as_me: failed program was:" >&5
5057 cat conftest.$ac_ext >&5
5058 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5059 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5060 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 ac_check_lib_save_LIBS=$LIBS
5065 cat >conftest.$ac_ext <<_ACEOF
5066 #line $LINENO "configure"
5067 #include "confdefs.h"
5069 /* Override any gcc2 internal prototype to avoid an error. */
5073 /* We use char because int might match the return type of a gcc2
5074 builtin and then its argument prototype would still apply. */
5076 #ifdef F77_DUMMY_MAIN
5080 int F77_DUMMY_MAIN() { return 1; }
5090 rm -f conftest.$ac_objext conftest$ac_exeext
5091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5092 (eval $ac_link) 2>&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } &&
5096 { ac_try='test -s conftest$ac_exeext'
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; }; then
5102 ac_cv_lib_dnet_dnet_ntoa=yes
5104 echo "$as_me: failed program was:" >&5
5105 cat conftest.$ac_ext >&5
5106 ac_cv_lib_dnet_dnet_ntoa=no
5108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5109 LIBS=$ac_check_lib_save_LIBS
5111 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5112 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5113 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5114 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5117 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5118 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5119 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5120 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 ac_check_lib_save_LIBS=$LIBS
5124 LIBS="-ldnet_stub $LIBS"
5125 cat >conftest.$ac_ext <<_ACEOF
5126 #line $LINENO "configure"
5127 #include "confdefs.h"
5129 /* Override any gcc2 internal prototype to avoid an error. */
5133 /* We use char because int might match the return type of a gcc2
5134 builtin and then its argument prototype would still apply. */
5136 #ifdef F77_DUMMY_MAIN
5140 int F77_DUMMY_MAIN() { return 1; }
5150 rm -f conftest.$ac_objext conftest$ac_exeext
5151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5152 (eval $ac_link) 2>&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } &&
5156 { ac_try='test -s conftest$ac_exeext'
5157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }; }; then
5162 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5164 echo "$as_me: failed program was:" >&5
5165 cat conftest.$ac_ext >&5
5166 ac_cv_lib_dnet_stub_dnet_ntoa=no
5168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5169 LIBS=$ac_check_lib_save_LIBS
5171 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5172 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5173 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5174 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5180 LIBS="$ac_xsave_LIBS"
5182 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5183 # to get the SysV transport functions.
5184 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5186 # The nsl library prevents programs from opening the X display
5187 # on Irix 5.2, according to T.E. Dickey.
5188 # The functions gethostbyname, getservbyname, and inet_addr are
5189 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5190 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5191 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5192 if test "${ac_cv_func_gethostbyname+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 cat >conftest.$ac_ext <<_ACEOF
5196 #line $LINENO "configure"
5197 #include "confdefs.h"
5198 /* System header to define __stub macros and hopefully few prototypes,
5199 which can conflict with char gethostbyname (); below. */
5201 /* Override any gcc2 internal prototype to avoid an error. */
5205 /* We use char because int might match the return type of a gcc2
5206 builtin and then its argument prototype would still apply. */
5207 char gethostbyname ();
5210 #ifdef F77_DUMMY_MAIN
5214 int F77_DUMMY_MAIN() { return 1; }
5219 /* The GNU C library defines this for functions which it implements
5220 to always fail with ENOSYS. Some functions are actually named
5221 something starting with __ and the normal name is an alias. */
5222 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5232 rm -f conftest.$ac_objext conftest$ac_exeext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234 (eval $ac_link) 2>&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } &&
5238 { ac_try='test -s conftest$ac_exeext'
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5244 ac_cv_func_gethostbyname=yes
5246 echo "$as_me: failed program was:" >&5
5247 cat conftest.$ac_ext >&5
5248 ac_cv_func_gethostbyname=no
5250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5252 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5253 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5255 if test $ac_cv_func_gethostbyname = no; then
5256 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5257 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5258 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 ac_check_lib_save_LIBS=$LIBS
5263 cat >conftest.$ac_ext <<_ACEOF
5264 #line $LINENO "configure"
5265 #include "confdefs.h"
5267 /* Override any gcc2 internal prototype to avoid an error. */
5271 /* We use char because int might match the return type of a gcc2
5272 builtin and then its argument prototype would still apply. */
5273 char gethostbyname ();
5274 #ifdef F77_DUMMY_MAIN
5278 int F77_DUMMY_MAIN() { return 1; }
5288 rm -f conftest.$ac_objext conftest$ac_exeext
5289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5290 (eval $ac_link) 2>&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } &&
5294 { ac_try='test -s conftest$ac_exeext'
5295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }; }; then
5300 ac_cv_lib_nsl_gethostbyname=yes
5302 echo "$as_me: failed program was:" >&5
5303 cat conftest.$ac_ext >&5
5304 ac_cv_lib_nsl_gethostbyname=no
5306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5307 LIBS=$ac_check_lib_save_LIBS
5309 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5310 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5311 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5312 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5315 if test $ac_cv_lib_nsl_gethostbyname = no; then
5316 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5317 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5318 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 ac_check_lib_save_LIBS=$LIBS
5323 cat >conftest.$ac_ext <<_ACEOF
5324 #line $LINENO "configure"
5325 #include "confdefs.h"
5327 /* Override any gcc2 internal prototype to avoid an error. */
5331 /* We use char because int might match the return type of a gcc2
5332 builtin and then its argument prototype would still apply. */
5333 char gethostbyname ();
5334 #ifdef F77_DUMMY_MAIN
5338 int F77_DUMMY_MAIN() { return 1; }
5348 rm -f conftest.$ac_objext conftest$ac_exeext
5349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5350 (eval $ac_link) 2>&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); } &&
5354 { ac_try='test -s conftest$ac_exeext'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; }; then
5360 ac_cv_lib_bsd_gethostbyname=yes
5362 echo "$as_me: failed program was:" >&5
5363 cat conftest.$ac_ext >&5
5364 ac_cv_lib_bsd_gethostbyname=no
5366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5367 LIBS=$ac_check_lib_save_LIBS
5369 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5370 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5371 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5372 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5378 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5379 # socket/setsockopt and other routines are undefined under SCO ODT
5380 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5381 # on later versions), says Simon Leinen: it contains gethostby*
5382 # variants that don't use the nameserver (or something). -lsocket
5383 # must be given before -lnsl if both are needed. We assume that
5384 # if connect needs -lnsl, so does gethostbyname.
5385 echo "$as_me:$LINENO: checking for connect" >&5
5386 echo $ECHO_N "checking for connect... $ECHO_C" >&6
5387 if test "${ac_cv_func_connect+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 cat >conftest.$ac_ext <<_ACEOF
5391 #line $LINENO "configure"
5392 #include "confdefs.h"
5393 /* System header to define __stub macros and hopefully few prototypes,
5394 which can conflict with char connect (); below. */
5396 /* Override any gcc2 internal prototype to avoid an error. */
5400 /* We use char because int might match the return type of a gcc2
5401 builtin and then its argument prototype would still apply. */
5405 #ifdef F77_DUMMY_MAIN
5409 int F77_DUMMY_MAIN() { return 1; }
5414 /* The GNU C library defines this for functions which it implements
5415 to always fail with ENOSYS. Some functions are actually named
5416 something starting with __ and the normal name is an alias. */
5417 #if defined (__stub_connect) || defined (__stub___connect)
5427 rm -f conftest.$ac_objext conftest$ac_exeext
5428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5429 (eval $ac_link) 2>&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } &&
5433 { ac_try='test -s conftest$ac_exeext'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then
5439 ac_cv_func_connect=yes
5441 echo "$as_me: failed program was:" >&5
5442 cat conftest.$ac_ext >&5
5443 ac_cv_func_connect=no
5445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5447 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5448 echo "${ECHO_T}$ac_cv_func_connect" >&6
5450 if test $ac_cv_func_connect = no; then
5451 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5452 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5453 if test "${ac_cv_lib_socket_connect+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5456 ac_check_lib_save_LIBS=$LIBS
5457 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5458 cat >conftest.$ac_ext <<_ACEOF
5459 #line $LINENO "configure"
5460 #include "confdefs.h"
5462 /* Override any gcc2 internal prototype to avoid an error. */
5466 /* We use char because int might match the return type of a gcc2
5467 builtin and then its argument prototype would still apply. */
5469 #ifdef F77_DUMMY_MAIN
5473 int F77_DUMMY_MAIN() { return 1; }
5483 rm -f conftest.$ac_objext conftest$ac_exeext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5485 (eval $ac_link) 2>&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try='test -s conftest$ac_exeext'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 ac_cv_lib_socket_connect=yes
5497 echo "$as_me: failed program was:" >&5
5498 cat conftest.$ac_ext >&5
5499 ac_cv_lib_socket_connect=no
5501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5502 LIBS=$ac_check_lib_save_LIBS
5504 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5505 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5506 if test $ac_cv_lib_socket_connect = yes; then
5507 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5512 # Guillermo Gomez says -lposix is necessary on A/UX.
5513 echo "$as_me:$LINENO: checking for remove" >&5
5514 echo $ECHO_N "checking for remove... $ECHO_C" >&6
5515 if test "${ac_cv_func_remove+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 cat >conftest.$ac_ext <<_ACEOF
5519 #line $LINENO "configure"
5520 #include "confdefs.h"
5521 /* System header to define __stub macros and hopefully few prototypes,
5522 which can conflict with char remove (); below. */
5524 /* Override any gcc2 internal prototype to avoid an error. */
5528 /* We use char because int might match the return type of a gcc2
5529 builtin and then its argument prototype would still apply. */
5533 #ifdef F77_DUMMY_MAIN
5537 int F77_DUMMY_MAIN() { return 1; }
5542 /* The GNU C library defines this for functions which it implements
5543 to always fail with ENOSYS. Some functions are actually named
5544 something starting with __ and the normal name is an alias. */
5545 #if defined (__stub_remove) || defined (__stub___remove)
5555 rm -f conftest.$ac_objext conftest$ac_exeext
5556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5557 (eval $ac_link) 2>&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } &&
5561 { ac_try='test -s conftest$ac_exeext'
5562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }; }; then
5567 ac_cv_func_remove=yes
5569 echo "$as_me: failed program was:" >&5
5570 cat conftest.$ac_ext >&5
5571 ac_cv_func_remove=no
5573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5575 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5576 echo "${ECHO_T}$ac_cv_func_remove" >&6
5578 if test $ac_cv_func_remove = no; then
5579 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5580 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
5581 if test "${ac_cv_lib_posix_remove+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5584 ac_check_lib_save_LIBS=$LIBS
5585 LIBS="-lposix $LIBS"
5586 cat >conftest.$ac_ext <<_ACEOF
5587 #line $LINENO "configure"
5588 #include "confdefs.h"
5590 /* Override any gcc2 internal prototype to avoid an error. */
5594 /* We use char because int might match the return type of a gcc2
5595 builtin and then its argument prototype would still apply. */
5597 #ifdef F77_DUMMY_MAIN
5601 int F77_DUMMY_MAIN() { return 1; }
5611 rm -f conftest.$ac_objext conftest$ac_exeext
5612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5613 (eval $ac_link) 2>&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } &&
5617 { ac_try='test -s conftest$ac_exeext'
5618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5623 ac_cv_lib_posix_remove=yes
5625 echo "$as_me: failed program was:" >&5
5626 cat conftest.$ac_ext >&5
5627 ac_cv_lib_posix_remove=no
5629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5630 LIBS=$ac_check_lib_save_LIBS
5632 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5633 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
5634 if test $ac_cv_lib_posix_remove = yes; then
5635 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5640 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5641 echo "$as_me:$LINENO: checking for shmat" >&5
5642 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
5643 if test "${ac_cv_func_shmat+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 cat >conftest.$ac_ext <<_ACEOF
5647 #line $LINENO "configure"
5648 #include "confdefs.h"
5649 /* System header to define __stub macros and hopefully few prototypes,
5650 which can conflict with char shmat (); below. */
5652 /* Override any gcc2 internal prototype to avoid an error. */
5656 /* We use char because int might match the return type of a gcc2
5657 builtin and then its argument prototype would still apply. */
5661 #ifdef F77_DUMMY_MAIN
5665 int F77_DUMMY_MAIN() { return 1; }
5670 /* The GNU C library defines this for functions which it implements
5671 to always fail with ENOSYS. Some functions are actually named
5672 something starting with __ and the normal name is an alias. */
5673 #if defined (__stub_shmat) || defined (__stub___shmat)
5683 rm -f conftest.$ac_objext conftest$ac_exeext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5685 (eval $ac_link) 2>&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } &&
5689 { ac_try='test -s conftest$ac_exeext'
5690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; }; then
5695 ac_cv_func_shmat=yes
5697 echo "$as_me: failed program was:" >&5
5698 cat conftest.$ac_ext >&5
5701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5703 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5704 echo "${ECHO_T}$ac_cv_func_shmat" >&6
5706 if test $ac_cv_func_shmat = no; then
5707 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5708 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
5709 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5712 ac_check_lib_save_LIBS=$LIBS
5714 cat >conftest.$ac_ext <<_ACEOF
5715 #line $LINENO "configure"
5716 #include "confdefs.h"
5718 /* Override any gcc2 internal prototype to avoid an error. */
5722 /* We use char because int might match the return type of a gcc2
5723 builtin and then its argument prototype would still apply. */
5725 #ifdef F77_DUMMY_MAIN
5729 int F77_DUMMY_MAIN() { return 1; }
5739 rm -f conftest.$ac_objext conftest$ac_exeext
5740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5741 (eval $ac_link) 2>&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try='test -s conftest$ac_exeext'
5746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); }; }; then
5751 ac_cv_lib_ipc_shmat=yes
5753 echo "$as_me: failed program was:" >&5
5754 cat conftest.$ac_ext >&5
5755 ac_cv_lib_ipc_shmat=no
5757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5758 LIBS=$ac_check_lib_save_LIBS
5760 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5761 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
5762 if test $ac_cv_lib_ipc_shmat = yes; then
5763 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5769 # Check for libraries that X11R6 Xt/Xaw programs need.
5770 ac_save_LDFLAGS=$LDFLAGS
5771 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5772 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5773 # check for ICE first), but we must link in the order -lSM -lICE or
5774 # we get undefined symbols. So assume we have SM if we have ICE.
5775 # These have to be linked with before -lX11, unlike the other
5776 # libraries we check for below, so use a different variable.
5777 # John Interrante, Karl Berry
5778 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5779 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
5780 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 ac_check_lib_save_LIBS=$LIBS
5784 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5785 cat >conftest.$ac_ext <<_ACEOF
5786 #line $LINENO "configure"
5787 #include "confdefs.h"
5789 /* Override any gcc2 internal prototype to avoid an error. */
5793 /* We use char because int might match the return type of a gcc2
5794 builtin and then its argument prototype would still apply. */
5795 char IceConnectionNumber ();
5796 #ifdef F77_DUMMY_MAIN
5800 int F77_DUMMY_MAIN() { return 1; }
5805 IceConnectionNumber ();
5810 rm -f conftest.$ac_objext conftest$ac_exeext
5811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5812 (eval $ac_link) 2>&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } &&
5816 { ac_try='test -s conftest$ac_exeext'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; }; then
5822 ac_cv_lib_ICE_IceConnectionNumber=yes
5824 echo "$as_me: failed program was:" >&5
5825 cat conftest.$ac_ext >&5
5826 ac_cv_lib_ICE_IceConnectionNumber=no
5828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5829 LIBS=$ac_check_lib_save_LIBS
5831 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5832 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
5833 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5834 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5837 LDFLAGS=$ac_save_LDFLAGS
5842 if test "$have_x" != yes; then
5843 { { echo "$as_me:$LINENO: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&5
5844 echo "$as_me: error: Couldn't find X11 headers/libs. Try \`$0 --help'." >&2;}
5845 { (exit 1); exit 1; }; }
5849 echo "$as_me:$LINENO: checking for X app-defaults directory" >&5
5850 echo $ECHO_N "checking for X app-defaults directory... $ECHO_C" >&6
5851 if test "${ac_cv_x_app_defaults+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 if mkdir conftestdir; then
5857 cd conftestdir 2>/dev/null
5858 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5859 cat > Imakefile <<'EOF'
5861 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
5863 if (xmkmf) >/dev/null 2>&1 && test -f Makefile; then
5864 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
5865 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5870 if test x"$ac_x_app_defaults" = x; then
5872 # Look for the directory under a standard set of common directories.
5873 # Check X11 before X11Rn because it's often a symlink to the current release.
5875 /usr/X11/lib/app-defaults \
5876 /usr/X11R6/lib/app-defaults \
5877 /usr/X11R6/lib/X11/app-defaults \
5878 /usr/X11R5/lib/app-defaults \
5879 /usr/X11R5/lib/X11/app-defaults \
5880 /usr/X11R4/lib/app-defaults \
5881 /usr/X11R4/lib/X11/app-defaults \
5883 /usr/lib/X11/app-defaults \
5884 /usr/lib/X11R6/app-defaults \
5885 /usr/lib/X11R5/app-defaults \
5886 /usr/lib/X11R4/app-defaults \
5888 /usr/local/X11/lib/app-defaults \
5889 /usr/local/X11R6/lib/app-defaults \
5890 /usr/local/X11R5/lib/app-defaults \
5891 /usr/local/X11R4/lib/app-defaults \
5893 /usr/local/lib/X11/app-defaults \
5894 /usr/local/lib/X11R6/app-defaults \
5895 /usr/local/lib/X11R6/X11/app-defaults \
5896 /usr/local/lib/X11R5/app-defaults \
5897 /usr/local/lib/X11R5/X11/app-defaults \
5898 /usr/local/lib/X11R4/app-defaults \
5899 /usr/local/lib/X11R4/X11/app-defaults \
5901 /usr/X386/lib/X11/app-defaults \
5902 /usr/x386/lib/X11/app-defaults \
5903 /usr/XFree86/lib/X11/app-defaults \
5905 /usr/lib/X11/app-defaults \
5906 /usr/local/lib/X11/app-defaults \
5907 /usr/unsupported/lib/X11/app-defaults \
5908 /usr/athena/lib/X11/app-defaults \
5909 /usr/local/x11r5/lib/X11/app-defaults \
5910 /usr/lpp/Xamples/lib/X11/app-defaults \
5911 /lib/usr/lib/X11/app-defaults \
5913 /usr/openwin/lib/app-defaults \
5914 /usr/openwin/lib/X11/app-defaults \
5915 /usr/openwin/share/lib/app-defaults \
5916 /usr/openwin/share/lib/X11/app-defaults \
5918 /X11R6/lib/app-defaults \
5919 /X11R5/lib/app-defaults \
5920 /X11R4/lib/app-defaults \
5923 if test -d "$ac_dir"; then
5924 ac_x_app_defaults=$ac_dir
5930 if test x"$ac_x_app_defaults" = x; then
5931 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
5933 # Record where we found app-defaults for the cache.
5934 ac_cv_x_app_defaults="$ac_x_app_defaults"
5937 echo "$as_me:$LINENO: result: $ac_cv_x_app_defaults" >&5
5938 echo "${ECHO_T}$ac_cv_x_app_defaults" >&6
5939 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
5943 # The following arcana was gleaned from conversations with
5944 # Eric Schwartz <erics@col.hp.com>:
5946 # On HPUX 10.x, the parts of X that HP considers "standard" live in
5947 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
5948 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
5949 # Yet /usr/contrib/X11R6/ comes preinstalled on all HPUX systems.
5950 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
5951 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
5952 # you don't need any -I or -L arguments.
5954 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
5955 # are the same division as 10.x. However, there are no symlinks to
5956 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
5957 # arguments are always necessary.
5959 # However, X11R6 was available on HPUX 9.x as a patch: if that
5960 # patch was installed, then all of X11R6 went in to
5961 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
5963 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
5964 # whether R5 was available as a patch; R6 undoubtedly was not.)
5966 # So. We try and use the highest numbered pair of
5967 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
5968 # that are available. We do not mix and match different versions
5971 # Question I still don't know the answer to: (do you?)
5973 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
5974 # /usr/contrib/X11R6/ could be installed as a patch, what was in
5975 # that contrib directory? Did it contain so-called "standard"
5976 # X11R6, or did it include Xaw and Xmu as well? If the former,
5977 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
5978 # be a situation where one had to reach into the R5 headers and
5979 # libs to find Xmu? That is, must both R6 and R5 directories
5980 # be on the -I and -L lists in that case?
5982 for version in X11R6 X11R5 X11R4 ; do
5983 # if either pair of directories exists...
5984 if test -d /usr/include/$version || test -d /usr/contrib/$version/include
5986 # if contrib exists, use it...
5987 if test -d /usr/contrib/$version/include ; then
5988 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
5989 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
5991 # if the "standard" one exists, use it.
5992 if test -d /usr/include/$version ; then
5993 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
5994 X_LIBS="$X_LIBS -L/usr/lib/$version"
5996 # since at least one of the pair exists, go no farther.
6001 # Now find Motif. Thanks for not making xmkmf find this by
6002 # default, you losers.
6004 if test -d /usr/include/Motif2.1 ; then
6005 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif2.1"
6006 X_LIBS="$X_LIBS -L/usr/lib/Motif2.1"
6007 elif test -d /usr/include/Motif1.2 ; then
6008 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
6009 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
6010 elif test -d /usr/include/Motif1.1 ; then
6011 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
6012 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
6015 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
6017 if test -d /opt/graphics/OpenGL/include ; then
6018 # HP-UX 10.20 puts it here
6019 X_CFLAGS="-I/opt/graphics/OpenGL/include $X_CFLAGS"
6020 X_LIBS="-L/opt/graphics/OpenGL/lib $X_LIBS"
6021 elif test -d /opt/Mesa/lib ; then
6022 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
6023 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
6027 if test -d /opt/xpm/lib/X11 ; then
6028 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
6029 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
6032 # On HPUX, default to installing in /opt/xscreensaver/ instead of
6033 # in /usr/local/, unless there is already an xscreensaver in
6034 # /usr/local/bin/. This can be overridden with the --prefix arg
6035 # to configure. I'm not sure this is the right thing to do, but
6036 # Richard Lloyd says so...
6038 if test \! -x /usr/local/bin/xscreensaver ; then
6039 ac_default_prefix=/opt/xscreensaver
6045 # Thanks for not making xmkmf find this by default, pinheads.
6046 # And thanks for moving things around again, too. Is this
6047 # really the standard location now? What happened to the
6048 # joke that this kind of thing went in /opt?
6049 # cthomp says "answer: CDE (Common Disorganized Environment)"
6051 if test -f /usr/dt/include/Xm/Xm.h ; then
6052 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
6053 X_LIBS="$X_LIBS -L/usr/dt/lib -R:/usr/dt/lib"
6055 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
6056 echo "$as_me:$LINENO: checking for regcmp in -lgen" >&5
6057 echo $ECHO_N "checking for regcmp in -lgen... $ECHO_C" >&6
6058 if test "${ac_cv_lib_gen_regcmp+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 ac_check_lib_save_LIBS=$LIBS
6063 cat >conftest.$ac_ext <<_ACEOF
6064 #line $LINENO "configure"
6065 #include "confdefs.h"
6067 /* Override any gcc2 internal prototype to avoid an error. */
6071 /* We use char because int might match the return type of a gcc2
6072 builtin and then its argument prototype would still apply. */
6074 #ifdef F77_DUMMY_MAIN
6078 int F77_DUMMY_MAIN() { return 1; }
6088 rm -f conftest.$ac_objext conftest$ac_exeext
6089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6090 (eval $ac_link) 2>&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); } &&
6094 { ac_try='test -s conftest$ac_exeext'
6095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }; }; then
6100 ac_cv_lib_gen_regcmp=yes
6102 echo "$as_me: failed program was:" >&5
6103 cat conftest.$ac_ext >&5
6104 ac_cv_lib_gen_regcmp=no
6106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6107 LIBS=$ac_check_lib_save_LIBS
6109 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regcmp" >&5
6110 echo "${ECHO_T}$ac_cv_lib_gen_regcmp" >&6
6111 if test $ac_cv_lib_gen_regcmp = yes; then
6112 X_LIBS="$X_LIBS -lgen"
6120 # On MacOS X (10.x with "fink"), many things are under /sw/.
6122 if test -d /sw/include ; then
6123 X_CFLAGS="-I/sw/include $X_CFLAGS"
6124 X_LIBS="-L/sw/lib $X_LIBS"
6128 echo "$as_me:$LINENO: checking for XPointer" >&5
6129 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
6130 if test "${ac_cv_xpointer+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 ac_save_CPPFLAGS="$CPPFLAGS"
6135 if test \! -z "$includedir" ; then
6136 CPPFLAGS="$CPPFLAGS -I$includedir"
6138 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6139 cat >conftest.$ac_ext <<_ACEOF
6140 #line $LINENO "configure"
6141 #include "confdefs.h"
6142 #include <X11/Xlib.h>
6143 #ifdef F77_DUMMY_MAIN
6147 int F77_DUMMY_MAIN() { return 1; }
6152 XPointer foo = (XPointer) 0;
6157 rm -f conftest.$ac_objext
6158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6159 (eval $ac_compile) 2>&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -s conftest.$ac_objext'
6164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6171 echo "$as_me: failed program was:" >&5
6172 cat conftest.$ac_ext >&5
6175 rm -f conftest.$ac_objext conftest.$ac_ext
6176 CPPFLAGS="$ac_save_CPPFLAGS"
6178 echo "$as_me:$LINENO: result: $ac_cv_xpointer" >&5
6179 echo "${ECHO_T}$ac_cv_xpointer" >&6
6180 if test "$ac_cv_xpointer" != yes; then
6181 cat >>confdefs.h <<\_ACEOF
6182 #define XPointer char*
6188 ###############################################################################
6192 ###############################################################################
6197 echo "$as_me:$LINENO: checking for intltool >= " >&5
6198 echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
6200 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
6201 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < intltool-update.in`
6203 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < intltool-update.in`
6206 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
6207 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
6208 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
6210 echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&5
6211 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool or later." >&6
6216 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'
6217 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'
6218 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'
6219 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
6220 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'
6221 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'
6222 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'
6223 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'
6224 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'
6225 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'
6226 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'
6240 # Use the tools built into the package, not the ones that are installed.
6242 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
6243 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
6244 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
6250 # Extract the first word of "perl", so it can be a program name with args.
6251 set dummy perl; ac_word=$2
6252 echo "$as_me:$LINENO: checking for $ac_word" >&5
6253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6254 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 case $INTLTOOL_PERL in
6259 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6269 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
6270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
6281 if test -n "$INTLTOOL_PERL"; then
6282 echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
6283 echo "${ECHO_T}$INTLTOOL_PERL" >&6
6285 echo "$as_me:$LINENO: result: no" >&5
6286 echo "${ECHO_T}no" >&6
6289 if test -z "$INTLTOOL_PERL"; then
6290 { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
6291 echo "$as_me: error: perl not found; required for intltool" >&2;}
6292 { (exit 1); exit 1; }; }
6294 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
6295 { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
6296 echo "$as_me: error: perl 5.x required for intltool" >&2;}
6297 { (exit 1); exit 1; }; }
6300 # Remove file type tags (using []) from po/POTFILES.
6308 # Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
6310 ac_config_commands="$ac_config_commands default-1"
6314 GETTEXT_PACKAGE=xscreensaver
6315 cat >>confdefs.h <<_ACEOF
6316 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
6319 cat >>confdefs.h <<_ACEOF
6320 #define PACKAGE "$GETTEXT_PACKAGE"
6325 ALL_LINGUAS="ca da de es et fi fr hu it ja ko nl no pl pt pt_BR ru sk sv vi wa zh_CN zh_TW"
6326 if test -n "$ac_tool_prefix"; then
6327 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6328 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6329 echo "$as_me:$LINENO: checking for $ac_word" >&5
6330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6331 if test "${ac_cv_prog_RANLIB+set}" = set; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 if test -n "$RANLIB"; then
6335 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6344 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 RANLIB=$ac_cv_prog_RANLIB
6354 if test -n "$RANLIB"; then
6355 echo "$as_me:$LINENO: result: $RANLIB" >&5
6356 echo "${ECHO_T}$RANLIB" >&6
6358 echo "$as_me:$LINENO: result: no" >&5
6359 echo "${ECHO_T}no" >&6
6363 if test -z "$ac_cv_prog_RANLIB"; then
6364 ac_ct_RANLIB=$RANLIB
6365 # Extract the first word of "ranlib", so it can be a program name with args.
6366 set dummy ranlib; ac_word=$2
6367 echo "$as_me:$LINENO: checking for $ac_word" >&5
6368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6369 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 if test -n "$ac_ct_RANLIB"; then
6373 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6382 ac_cv_prog_ac_ct_RANLIB="ranlib"
6383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6392 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6393 if test -n "$ac_ct_RANLIB"; then
6394 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6395 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6397 echo "$as_me:$LINENO: result: no" >&5
6398 echo "${ECHO_T}no" >&6
6401 RANLIB=$ac_ct_RANLIB
6403 RANLIB="$ac_cv_prog_RANLIB"
6406 echo "$as_me:$LINENO: checking for off_t" >&5
6407 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6408 if test "${ac_cv_type_off_t+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 cat >conftest.$ac_ext <<_ACEOF
6412 #line $LINENO "configure"
6413 #include "confdefs.h"
6414 $ac_includes_default
6415 #ifdef F77_DUMMY_MAIN
6419 int F77_DUMMY_MAIN() { return 1; }
6432 rm -f conftest.$ac_objext
6433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6434 (eval $ac_compile) 2>&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } &&
6438 { ac_try='test -s conftest.$ac_objext'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
6444 ac_cv_type_off_t=yes
6446 echo "$as_me: failed program was:" >&5
6447 cat conftest.$ac_ext >&5
6450 rm -f conftest.$ac_objext conftest.$ac_ext
6452 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6453 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6454 if test $ac_cv_type_off_t = yes; then
6458 cat >>confdefs.h <<_ACEOF
6464 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6465 # for constant arguments. Useless!
6466 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6467 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6468 if test "${ac_cv_working_alloca_h+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 cat >conftest.$ac_ext <<_ACEOF
6472 #line $LINENO "configure"
6473 #include "confdefs.h"
6475 #ifdef F77_DUMMY_MAIN
6479 int F77_DUMMY_MAIN() { return 1; }
6484 char *p = (char *) alloca (2 * sizeof (int));
6489 rm -f conftest.$ac_objext conftest$ac_exeext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6491 (eval $ac_link) 2>&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } &&
6495 { ac_try='test -s conftest$ac_exeext'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; }; then
6501 ac_cv_working_alloca_h=yes
6503 echo "$as_me: failed program was:" >&5
6504 cat conftest.$ac_ext >&5
6505 ac_cv_working_alloca_h=no
6507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6509 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6510 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6511 if test $ac_cv_working_alloca_h = yes; then
6513 cat >>confdefs.h <<\_ACEOF
6514 #define HAVE_ALLOCA_H 1
6519 echo "$as_me:$LINENO: checking for alloca" >&5
6520 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6521 if test "${ac_cv_func_alloca_works+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 cat >conftest.$ac_ext <<_ACEOF
6525 #line $LINENO "configure"
6526 #include "confdefs.h"
6528 # define alloca __builtin_alloca
6531 # include <malloc.h>
6532 # define alloca _alloca
6535 # include <alloca.h>
6540 # ifndef alloca /* predefined by HP cc +Olibcalls */
6548 #ifdef F77_DUMMY_MAIN
6552 int F77_DUMMY_MAIN() { return 1; }
6557 char *p = (char *) alloca (1);
6562 rm -f conftest.$ac_objext conftest$ac_exeext
6563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6564 (eval $ac_link) 2>&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } &&
6568 { ac_try='test -s conftest$ac_exeext'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; }; then
6574 ac_cv_func_alloca_works=yes
6576 echo "$as_me: failed program was:" >&5
6577 cat conftest.$ac_ext >&5
6578 ac_cv_func_alloca_works=no
6580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6582 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6583 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6585 if test $ac_cv_func_alloca_works = yes; then
6587 cat >>confdefs.h <<\_ACEOF
6588 #define HAVE_ALLOCA 1
6592 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6593 # that cause trouble. Some versions do not even contain alloca or
6594 # contain a buggy version. If you still want to use their alloca,
6595 # use ar to extract alloca.o from them instead of compiling alloca.c.
6597 ALLOCA=alloca.$ac_objext
6599 cat >>confdefs.h <<\_ACEOF
6604 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6605 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6606 if test "${ac_cv_os_cray+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 cat >conftest.$ac_ext <<_ACEOF
6610 #line $LINENO "configure"
6611 #include "confdefs.h"
6612 #if defined(CRAY) && ! defined(CRAY2)
6619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6620 egrep "webecray" >/dev/null 2>&1; then
6628 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6629 echo "${ECHO_T}$ac_cv_os_cray" >&6
6630 if test $ac_cv_os_cray = yes; then
6631 for ac_func in _getb67 GETB67 getb67; do
6632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6633 echo "$as_me:$LINENO: checking for $ac_func" >&5
6634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6635 if eval "test \"\${$as_ac_var+set}\" = set"; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 cat >conftest.$ac_ext <<_ACEOF
6639 #line $LINENO "configure"
6640 #include "confdefs.h"
6641 /* System header to define __stub macros and hopefully few prototypes,
6642 which can conflict with char $ac_func (); below. */
6644 /* Override any gcc2 internal prototype to avoid an error. */
6648 /* We use char because int might match the return type of a gcc2
6649 builtin and then its argument prototype would still apply. */
6653 #ifdef F77_DUMMY_MAIN
6657 int F77_DUMMY_MAIN() { return 1; }
6662 /* The GNU C library defines this for functions which it implements
6663 to always fail with ENOSYS. Some functions are actually named
6664 something starting with __ and the normal name is an alias. */
6665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6675 rm -f conftest.$ac_objext conftest$ac_exeext
6676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6677 (eval $ac_link) 2>&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } &&
6681 { ac_try='test -s conftest$ac_exeext'
6682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; }; then
6687 eval "$as_ac_var=yes"
6689 echo "$as_me: failed program was:" >&5
6690 cat conftest.$ac_ext >&5
6691 eval "$as_ac_var=no"
6693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6697 if test `eval echo '${'$as_ac_var'}'` = yes; then
6699 cat >>confdefs.h <<_ACEOF
6700 #define CRAY_STACKSEG_END $ac_func
6709 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6710 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6711 if test "${ac_cv_c_stack_direction+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 if test "$cross_compiling" = yes; then
6715 ac_cv_c_stack_direction=0
6717 cat >conftest.$ac_ext <<_ACEOF
6718 #line $LINENO "configure"
6719 #include "confdefs.h"
6721 find_stack_direction ()
6723 static char *addr = 0;
6728 return find_stack_direction ();
6731 return (&dummy > addr) ? 1 : -1;
6737 exit (find_stack_direction () < 0);
6740 rm -f conftest$ac_exeext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6742 (eval $ac_link) 2>&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; }; then
6751 ac_cv_c_stack_direction=1
6753 echo "$as_me: program exited with status $ac_status" >&5
6754 echo "$as_me: failed program was:" >&5
6755 cat conftest.$ac_ext >&5
6757 ac_cv_c_stack_direction=-1
6759 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6762 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6763 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6765 cat >>confdefs.h <<_ACEOF
6766 #define STACK_DIRECTION $ac_cv_c_stack_direction
6774 for ac_header in stdlib.h unistd.h
6776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6778 echo "$as_me:$LINENO: checking for $ac_header" >&5
6779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6786 # Is the header compilable?
6787 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6789 cat >conftest.$ac_ext <<_ACEOF
6790 #line $LINENO "configure"
6791 #include "confdefs.h"
6792 $ac_includes_default
6793 #include <$ac_header>
6795 rm -f conftest.$ac_objext
6796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6797 (eval $ac_compile) 2>&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } &&
6801 { ac_try='test -s conftest.$ac_objext'
6802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); }; }; then
6807 ac_header_compiler=yes
6809 echo "$as_me: failed program was:" >&5
6810 cat conftest.$ac_ext >&5
6811 ac_header_compiler=no
6813 rm -f conftest.$ac_objext conftest.$ac_ext
6814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6815 echo "${ECHO_T}$ac_header_compiler" >&6
6817 # Is the header present?
6818 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6820 cat >conftest.$ac_ext <<_ACEOF
6821 #line $LINENO "configure"
6822 #include "confdefs.h"
6823 #include <$ac_header>
6825 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6828 egrep -v '^ *\+' conftest.er1 >conftest.err
6830 cat conftest.err >&5
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } >/dev/null; then
6833 if test -s conftest.err; then
6834 ac_cpp_err=$ac_c_preproc_warn_flag
6841 if test -z "$ac_cpp_err"; then
6842 ac_header_preproc=yes
6844 echo "$as_me: failed program was:" >&5
6845 cat conftest.$ac_ext >&5
6846 ac_header_preproc=no
6848 rm -f conftest.err conftest.$ac_ext
6849 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6850 echo "${ECHO_T}$ac_header_preproc" >&6
6852 # So? What about this header?
6853 case $ac_header_compiler:$ac_header_preproc in
6855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6867 echo "$as_me:$LINENO: checking for $ac_header" >&5
6868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 eval "$as_ac_Header=$ac_header_preproc"
6874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6879 cat >>confdefs.h <<_ACEOF
6880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6888 for ac_func in getpagesize
6890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6891 echo "$as_me:$LINENO: checking for $ac_func" >&5
6892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6893 if eval "test \"\${$as_ac_var+set}\" = set"; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6896 cat >conftest.$ac_ext <<_ACEOF
6897 #line $LINENO "configure"
6898 #include "confdefs.h"
6899 /* System header to define __stub macros and hopefully few prototypes,
6900 which can conflict with char $ac_func (); below. */
6902 /* Override any gcc2 internal prototype to avoid an error. */
6906 /* We use char because int might match the return type of a gcc2
6907 builtin and then its argument prototype would still apply. */
6911 #ifdef F77_DUMMY_MAIN
6915 int F77_DUMMY_MAIN() { return 1; }
6920 /* The GNU C library defines this for functions which it implements
6921 to always fail with ENOSYS. Some functions are actually named
6922 something starting with __ and the normal name is an alias. */
6923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6933 rm -f conftest.$ac_objext conftest$ac_exeext
6934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6935 (eval $ac_link) 2>&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } &&
6939 { ac_try='test -s conftest$ac_exeext'
6940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); }; }; then
6945 eval "$as_ac_var=yes"
6947 echo "$as_me: failed program was:" >&5
6948 cat conftest.$ac_ext >&5
6949 eval "$as_ac_var=no"
6951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6954 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6955 if test `eval echo '${'$as_ac_var'}'` = yes; then
6956 cat >>confdefs.h <<_ACEOF
6957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6963 echo "$as_me:$LINENO: checking for working mmap" >&5
6964 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6965 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 if test "$cross_compiling" = yes; then
6969 ac_cv_func_mmap_fixed_mapped=no
6971 cat >conftest.$ac_ext <<_ACEOF
6972 #line $LINENO "configure"
6973 #include "confdefs.h"
6974 $ac_includes_default
6975 /* malloc might have been renamed as rpl_malloc. */
6978 /* Thanks to Mike Haertel and Jim Avera for this test.
6979 Here is a matrix of mmap possibilities:
6980 mmap private not fixed
6981 mmap private fixed at somewhere currently unmapped
6982 mmap private fixed at somewhere already mapped
6983 mmap shared not fixed
6984 mmap shared fixed at somewhere currently unmapped
6985 mmap shared fixed at somewhere already mapped
6986 For private mappings, we should verify that changes cannot be read()
6987 back from the file, nor mmap's back from the file at a different
6988 address. (There have been systems where private was not correctly
6989 implemented like the infamous i386 svr4.0, and systems where the
6990 VM page cache was not coherent with the file system buffer cache
6991 like early versions of FreeBSD and possibly contemporary NetBSD.)
6992 For shared mappings, we should conversely verify that changes get
6993 propagated back to all the places they're supposed to be.
6995 Grep wants private fixed already mapped.
6996 The main things grep needs to know about mmap are:
6997 * does it exist and is it safe to write into the mmap'd area
6998 * how to use it (BSD variants) */
7001 #include <sys/mman.h>
7003 #if !STDC_HEADERS && !HAVE_STDLIB_H
7007 /* This mess was copied from the GNU getpagesize.h. */
7008 #if !HAVE_GETPAGESIZE
7009 /* Assume that all systems that can run configure have sys/param.h. */
7010 # if !HAVE_SYS_PARAM_H
7011 # define HAVE_SYS_PARAM_H 1
7014 # ifdef _SC_PAGESIZE
7015 # define getpagesize() sysconf(_SC_PAGESIZE)
7016 # else /* no _SC_PAGESIZE */
7017 # if HAVE_SYS_PARAM_H
7018 # include <sys/param.h>
7019 # ifdef EXEC_PAGESIZE
7020 # define getpagesize() EXEC_PAGESIZE
7021 # else /* no EXEC_PAGESIZE */
7023 # define getpagesize() NBPG * CLSIZE
7026 # endif /* no CLSIZE */
7027 # else /* no NBPG */
7029 # define getpagesize() NBPC
7030 # else /* no NBPC */
7032 # define getpagesize() PAGESIZE
7033 # endif /* PAGESIZE */
7034 # endif /* no NBPC */
7035 # endif /* no NBPG */
7036 # endif /* no EXEC_PAGESIZE */
7037 # else /* no HAVE_SYS_PARAM_H */
7038 # define getpagesize() 8192 /* punt totally */
7039 # endif /* no HAVE_SYS_PARAM_H */
7040 # endif /* no _SC_PAGESIZE */
7042 #endif /* no HAVE_GETPAGESIZE */
7047 char *data, *data2, *data3;
7051 pagesize = getpagesize ();
7053 /* First, make a file with some known garbage in it. */
7054 data = (char *) malloc (pagesize);
7057 for (i = 0; i < pagesize; ++i)
7058 *(data + i) = rand ();
7060 fd = creat ("conftest.mmap", 0600);
7063 if (write (fd, data, pagesize) != pagesize)
7067 /* Next, try to mmap the file at a fixed address which already has
7068 something else allocated at it. If we can, also make sure that
7069 we see the same garbage. */
7070 fd = open ("conftest.mmap", O_RDWR);
7073 data2 = (char *) malloc (2 * pagesize);
7076 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7077 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7078 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7080 for (i = 0; i < pagesize; ++i)
7081 if (*(data + i) != *(data2 + i))
7084 /* Finally, make sure that changes to the mapped area do not
7085 percolate back to the file as seen by read(). (This is a bug on
7086 some variants of i386 svr4.0.) */
7087 for (i = 0; i < pagesize; ++i)
7088 *(data2 + i) = *(data2 + i) + 1;
7089 data3 = (char *) malloc (pagesize);
7092 if (read (fd, data3, pagesize) != pagesize)
7094 for (i = 0; i < pagesize; ++i)
7095 if (*(data + i) != *(data3 + i))
7101 rm -f conftest$ac_exeext
7102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7103 (eval $ac_link) 2>&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; }; then
7112 ac_cv_func_mmap_fixed_mapped=yes
7114 echo "$as_me: program exited with status $ac_status" >&5
7115 echo "$as_me: failed program was:" >&5
7116 cat conftest.$ac_ext >&5
7118 ac_cv_func_mmap_fixed_mapped=no
7120 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7123 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7124 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7125 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7127 cat >>confdefs.h <<\_ACEOF
7143 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7144 unistd.h sys/param.h
7146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7148 echo "$as_me:$LINENO: checking for $ac_header" >&5
7149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7156 # Is the header compilable?
7157 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7159 cat >conftest.$ac_ext <<_ACEOF
7160 #line $LINENO "configure"
7161 #include "confdefs.h"
7162 $ac_includes_default
7163 #include <$ac_header>
7165 rm -f conftest.$ac_objext
7166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7167 (eval $ac_compile) 2>&5
7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } &&
7171 { ac_try='test -s conftest.$ac_objext'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; }; then
7177 ac_header_compiler=yes
7179 echo "$as_me: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
7181 ac_header_compiler=no
7183 rm -f conftest.$ac_objext conftest.$ac_ext
7184 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7185 echo "${ECHO_T}$ac_header_compiler" >&6
7187 # Is the header present?
7188 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7190 cat >conftest.$ac_ext <<_ACEOF
7191 #line $LINENO "configure"
7192 #include "confdefs.h"
7193 #include <$ac_header>
7195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7198 egrep -v '^ *\+' conftest.er1 >conftest.err
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } >/dev/null; then
7203 if test -s conftest.err; then
7204 ac_cpp_err=$ac_c_preproc_warn_flag
7211 if test -z "$ac_cpp_err"; then
7212 ac_header_preproc=yes
7214 echo "$as_me: failed program was:" >&5
7215 cat conftest.$ac_ext >&5
7216 ac_header_preproc=no
7218 rm -f conftest.err conftest.$ac_ext
7219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7220 echo "${ECHO_T}$ac_header_preproc" >&6
7222 # So? What about this header?
7223 case $ac_header_compiler:$ac_header_preproc in
7225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7233 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7237 echo "$as_me:$LINENO: checking for $ac_header" >&5
7238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 eval "$as_ac_Header=$ac_header_preproc"
7244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7249 cat >>confdefs.h <<_ACEOF
7250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7268 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7269 strdup __argz_count __argz_stringify __argz_next
7271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7272 echo "$as_me:$LINENO: checking for $ac_func" >&5
7273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7274 if eval "test \"\${$as_ac_var+set}\" = set"; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 cat >conftest.$ac_ext <<_ACEOF
7278 #line $LINENO "configure"
7279 #include "confdefs.h"
7280 /* System header to define __stub macros and hopefully few prototypes,
7281 which can conflict with char $ac_func (); below. */
7283 /* Override any gcc2 internal prototype to avoid an error. */
7287 /* We use char because int might match the return type of a gcc2
7288 builtin and then its argument prototype would still apply. */
7292 #ifdef F77_DUMMY_MAIN
7296 int F77_DUMMY_MAIN() { return 1; }
7301 /* The GNU C library defines this for functions which it implements
7302 to always fail with ENOSYS. Some functions are actually named
7303 something starting with __ and the normal name is an alias. */
7304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7314 rm -f conftest.$ac_objext conftest$ac_exeext
7315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7316 (eval $ac_link) 2>&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); } &&
7320 { ac_try='test -s conftest$ac_exeext'
7321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); }; }; then
7326 eval "$as_ac_var=yes"
7328 echo "$as_me: failed program was:" >&5
7329 cat conftest.$ac_ext >&5
7330 eval "$as_ac_var=no"
7332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7336 if test `eval echo '${'$as_ac_var'}'` = yes; then
7337 cat >>confdefs.h <<_ACEOF
7338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7345 if test $ac_cv_header_locale_h = yes; then
7346 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7347 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7348 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 cat >conftest.$ac_ext <<_ACEOF
7352 #line $LINENO "configure"
7353 #include "confdefs.h"
7355 #ifdef F77_DUMMY_MAIN
7359 int F77_DUMMY_MAIN() { return 1; }
7369 rm -f conftest.$ac_objext conftest$ac_exeext
7370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7371 (eval $ac_link) 2>&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } &&
7375 { ac_try='test -s conftest$ac_exeext'
7376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); }; }; then
7381 am_cv_val_LC_MESSAGES=yes
7383 echo "$as_me: failed program was:" >&5
7384 cat conftest.$ac_ext >&5
7385 am_cv_val_LC_MESSAGES=no
7387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7389 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7390 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7391 if test $am_cv_val_LC_MESSAGES = yes; then
7393 cat >>confdefs.h <<\_ACEOF
7394 #define HAVE_LC_MESSAGES 1
7402 nls_cv_force_use_gnu_gettext="no"
7404 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7405 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7407 nls_cv_header_libgt=
7410 if test "${ac_cv_header_libintl_h+set}" = set; then
7411 echo "$as_me:$LINENO: checking for libintl.h" >&5
7412 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7413 if test "${ac_cv_header_libintl_h+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7417 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7419 # Is the header compilable?
7420 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7421 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7422 cat >conftest.$ac_ext <<_ACEOF
7423 #line $LINENO "configure"
7424 #include "confdefs.h"
7425 $ac_includes_default
7426 #include <libintl.h>
7428 rm -f conftest.$ac_objext
7429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7430 (eval $ac_compile) 2>&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } &&
7434 { ac_try='test -s conftest.$ac_objext'
7435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); }; }; then
7440 ac_header_compiler=yes
7442 echo "$as_me: failed program was:" >&5
7443 cat conftest.$ac_ext >&5
7444 ac_header_compiler=no
7446 rm -f conftest.$ac_objext conftest.$ac_ext
7447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7448 echo "${ECHO_T}$ac_header_compiler" >&6
7450 # Is the header present?
7451 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7452 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7453 cat >conftest.$ac_ext <<_ACEOF
7454 #line $LINENO "configure"
7455 #include "confdefs.h"
7456 #include <libintl.h>
7458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7461 egrep -v '^ *\+' conftest.er1 >conftest.err
7463 cat conftest.err >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } >/dev/null; then
7466 if test -s conftest.err; then
7467 ac_cpp_err=$ac_c_preproc_warn_flag
7474 if test -z "$ac_cpp_err"; then
7475 ac_header_preproc=yes
7477 echo "$as_me: failed program was:" >&5
7478 cat conftest.$ac_ext >&5
7479 ac_header_preproc=no
7481 rm -f conftest.err conftest.$ac_ext
7482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7483 echo "${ECHO_T}$ac_header_preproc" >&6
7485 # So? What about this header?
7486 case $ac_header_compiler:$ac_header_preproc in
7488 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7489 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7490 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7491 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7493 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7494 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7495 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7496 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7497 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7498 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};;
7500 echo "$as_me:$LINENO: checking for libintl.h" >&5
7501 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7502 if test "${ac_cv_header_libintl_h+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 ac_cv_header_libintl_h=$ac_header_preproc
7507 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7508 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7511 if test $ac_cv_header_libintl_h = yes; then
7512 echo "$as_me:$LINENO: checking for dgettext in libc" >&5
7513 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
7514 if test "${gt_cv_func_dgettext_libc+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 cat >conftest.$ac_ext <<_ACEOF
7518 #line $LINENO "configure"
7519 #include "confdefs.h"
7520 #include <libintl.h>
7521 #ifdef F77_DUMMY_MAIN
7525 int F77_DUMMY_MAIN() { return 1; }
7530 return (int) dgettext ("","")
7535 rm -f conftest.$ac_objext conftest$ac_exeext
7536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7537 (eval $ac_link) 2>&5
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } &&
7541 { ac_try='test -s conftest$ac_exeext'
7542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); }; }; then
7547 gt_cv_func_dgettext_libc=yes
7549 echo "$as_me: failed program was:" >&5
7550 cat conftest.$ac_ext >&5
7551 gt_cv_func_dgettext_libc=no
7553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7555 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
7556 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
7558 if test "$gt_cv_func_dgettext_libc" != "yes"; then
7559 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7560 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7561 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 ac_check_lib_save_LIBS=$LIBS
7566 cat >conftest.$ac_ext <<_ACEOF
7567 #line $LINENO "configure"
7568 #include "confdefs.h"
7570 /* Override any gcc2 internal prototype to avoid an error. */
7574 /* We use char because int might match the return type of a gcc2
7575 builtin and then its argument prototype would still apply. */
7576 char bindtextdomain ();
7577 #ifdef F77_DUMMY_MAIN
7581 int F77_DUMMY_MAIN() { return 1; }
7591 rm -f conftest.$ac_objext conftest$ac_exeext
7592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7593 (eval $ac_link) 2>&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try='test -s conftest$ac_exeext'
7598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; }; then
7603 ac_cv_lib_intl_bindtextdomain=yes
7605 echo "$as_me: failed program was:" >&5
7606 cat conftest.$ac_ext >&5
7607 ac_cv_lib_intl_bindtextdomain=no
7609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7610 LIBS=$ac_check_lib_save_LIBS
7612 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7613 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7614 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7615 echo "$as_me:$LINENO: checking for dgettext in libintl" >&5
7616 echo $ECHO_N "checking for dgettext in libintl... $ECHO_C" >&6
7617 if test "${gt_cv_func_dgettext_libintl+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
7621 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
7622 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 ac_check_lib_save_LIBS=$LIBS
7627 cat >conftest.$ac_ext <<_ACEOF
7628 #line $LINENO "configure"
7629 #include "confdefs.h"
7631 /* Override any gcc2 internal prototype to avoid an error. */
7635 /* We use char because int might match the return type of a gcc2
7636 builtin and then its argument prototype would still apply. */
7638 #ifdef F77_DUMMY_MAIN
7642 int F77_DUMMY_MAIN() { return 1; }
7652 rm -f conftest.$ac_objext conftest$ac_exeext
7653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7654 (eval $ac_link) 2>&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } &&
7658 { ac_try='test -s conftest$ac_exeext'
7659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; }; then
7664 ac_cv_lib_intl_dgettext=yes
7666 echo "$as_me: failed program was:" >&5
7667 cat conftest.$ac_ext >&5
7668 ac_cv_lib_intl_dgettext=no
7670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7671 LIBS=$ac_check_lib_save_LIBS
7673 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
7674 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
7675 if test $ac_cv_lib_intl_dgettext = yes; then
7676 gt_cv_func_dgettext_libintl=yes
7678 gt_cv_func_dgettext_libintl=no
7682 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libintl" >&5
7683 echo "${ECHO_T}$gt_cv_func_dgettext_libintl" >&6
7688 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
7689 LIBS="$LIBS -lintl";
7692 if test "$gt_cv_func_dgettext_libc" = "yes" \
7693 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
7695 cat >>confdefs.h <<\_ACEOF
7696 #define HAVE_GETTEXT 1
7699 # Extract the first word of "msgfmt", so it can be a program name with args.
7700 set dummy msgfmt; ac_word=$2
7701 echo "$as_me:$LINENO: checking for $ac_word" >&5
7702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7703 if test "${ac_cv_path_MSGFMT+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7712 for ac_dir in $PATH; do
7713 test -z "$ac_dir" && ac_dir=.
7714 if test -f $ac_dir/$ac_word; then
7715 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7716 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7722 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7726 MSGFMT="$ac_cv_path_MSGFMT"
7727 if test -n "$MSGFMT"; then
7728 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7729 echo "${ECHO_T}$MSGFMT" >&6
7731 echo "$as_me:$LINENO: result: no" >&5
7732 echo "${ECHO_T}no" >&6
7734 if test "$MSGFMT" != "no"; then
7736 for ac_func in dcgettext
7738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7739 echo "$as_me:$LINENO: checking for $ac_func" >&5
7740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7741 if eval "test \"\${$as_ac_var+set}\" = set"; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 cat >conftest.$ac_ext <<_ACEOF
7745 #line $LINENO "configure"
7746 #include "confdefs.h"
7747 /* System header to define __stub macros and hopefully few prototypes,
7748 which can conflict with char $ac_func (); below. */
7750 /* Override any gcc2 internal prototype to avoid an error. */
7754 /* We use char because int might match the return type of a gcc2
7755 builtin and then its argument prototype would still apply. */
7759 #ifdef F77_DUMMY_MAIN
7763 int F77_DUMMY_MAIN() { return 1; }
7768 /* The GNU C library defines this for functions which it implements
7769 to always fail with ENOSYS. Some functions are actually named
7770 something starting with __ and the normal name is an alias. */
7771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7781 rm -f conftest.$ac_objext conftest$ac_exeext
7782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7783 (eval $ac_link) 2>&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } &&
7787 { ac_try='test -s conftest$ac_exeext'
7788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; }; then
7793 eval "$as_ac_var=yes"
7795 echo "$as_me: failed program was:" >&5
7796 cat conftest.$ac_ext >&5
7797 eval "$as_ac_var=no"
7799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7803 if test `eval echo '${'$as_ac_var'}'` = yes; then
7804 cat >>confdefs.h <<_ACEOF
7805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7811 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7812 set dummy gmsgfmt; ac_word=$2
7813 echo "$as_me:$LINENO: checking for $ac_word" >&5
7814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7815 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7841 GMSGFMT=$ac_cv_path_GMSGFMT
7843 if test -n "$GMSGFMT"; then
7844 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7845 echo "${ECHO_T}$GMSGFMT" >&6
7847 echo "$as_me:$LINENO: result: no" >&5
7848 echo "${ECHO_T}no" >&6
7851 # Extract the first word of "xgettext", so it can be a program name with args.
7852 set dummy xgettext; ac_word=$2
7853 echo "$as_me:$LINENO: checking for $ac_word" >&5
7854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7855 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7864 for ac_dir in $PATH; do
7865 test -z "$ac_dir" && ac_dir=.
7866 if test -f $ac_dir/$ac_word; then
7867 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7868 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7874 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7878 XGETTEXT="$ac_cv_path_XGETTEXT"
7879 if test -n "$XGETTEXT"; then
7880 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7881 echo "${ECHO_T}$XGETTEXT" >&6
7883 echo "$as_me:$LINENO: result: no" >&5
7884 echo "${ECHO_T}no" >&6
7887 cat >conftest.$ac_ext <<_ACEOF
7888 #line $LINENO "configure"
7889 #include "confdefs.h"
7891 #ifdef F77_DUMMY_MAIN
7895 int F77_DUMMY_MAIN() { return 1; }
7900 extern int _nl_msg_cat_cntr;
7901 return _nl_msg_cat_cntr
7906 rm -f conftest.$ac_objext conftest$ac_exeext
7907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7908 (eval $ac_link) 2>&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } &&
7912 { ac_try='test -s conftest$ac_exeext'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7921 echo "$as_me: failed program was:" >&5
7922 cat conftest.$ac_ext >&5
7926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7931 # Added by Martin Baulig 12/15/98 for libc5 systems
7932 if test "$gt_cv_func_dgettext_libc" != "yes" \
7933 && test "$gt_cv_func_dgettext_libintl" = "yes"; then
7935 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7942 if test "$CATOBJEXT" = "NONE"; then
7943 nls_cv_use_gnu_gettext=yes
7947 if test "$nls_cv_use_gnu_gettext" != "yes"; then
7949 cat >>confdefs.h <<\_ACEOF
7950 #define ENABLE_NLS 1
7957 if test "$XGETTEXT" != ":"; then
7958 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7961 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7962 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
7967 # We need to process the po/ directory.
7970 ac_config_commands="$ac_config_commands default-2"
7973 for lang in $ALL_LINGUAS; do
7974 GMOFILES="$GMOFILES $lang.gmo"
7975 POFILES="$POFILES $lang.po"
7990 if test "x$CATOBJEXT" != "x"; then
7991 if test "x$ALL_LINGUAS" = "x"; then
7994 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7995 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7997 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7998 case "$ALL_LINGUAS" in
7999 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8002 LINGUAS=$NEW_LINGUAS
8003 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8004 echo "${ECHO_T}$LINGUAS" >&6
8007 if test -n "$LINGUAS"; then
8008 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8012 test -d po || mkdir po
8013 if test "$CATOBJEXT" = ".cat"; then
8014 if test "${ac_cv_header_linux_version_h+set}" = set; then
8015 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8016 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8017 if test "${ac_cv_header_linux_version_h+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8021 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8023 # Is the header compilable?
8024 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8025 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8026 cat >conftest.$ac_ext <<_ACEOF
8027 #line $LINENO "configure"
8028 #include "confdefs.h"
8029 $ac_includes_default
8030 #include <linux/version.h>
8032 rm -f conftest.$ac_objext
8033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8034 (eval $ac_compile) 2>&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } &&
8038 { ac_try='test -s conftest.$ac_objext'
8039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; }; then
8044 ac_header_compiler=yes
8046 echo "$as_me: failed program was:" >&5
8047 cat conftest.$ac_ext >&5
8048 ac_header_compiler=no
8050 rm -f conftest.$ac_objext conftest.$ac_ext
8051 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8052 echo "${ECHO_T}$ac_header_compiler" >&6
8054 # Is the header present?
8055 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8056 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8057 cat >conftest.$ac_ext <<_ACEOF
8058 #line $LINENO "configure"
8059 #include "confdefs.h"
8060 #include <linux/version.h>
8062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8065 egrep -v '^ *\+' conftest.er1 >conftest.err
8067 cat conftest.err >&5
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); } >/dev/null; then
8070 if test -s conftest.err; then
8071 ac_cpp_err=$ac_c_preproc_warn_flag
8078 if test -z "$ac_cpp_err"; then
8079 ac_header_preproc=yes
8081 echo "$as_me: failed program was:" >&5
8082 cat conftest.$ac_ext >&5
8083 ac_header_preproc=no
8085 rm -f conftest.err conftest.$ac_ext
8086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8087 echo "${ECHO_T}$ac_header_preproc" >&6
8089 # So? What about this header?
8090 case $ac_header_compiler:$ac_header_preproc in
8092 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8093 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8094 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8095 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;};;
8097 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8098 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8099 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8100 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8101 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8102 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;};;
8104 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8105 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8106 if test "${ac_cv_header_linux_version_h+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 ac_cv_header_linux_version_h=$ac_header_preproc
8111 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8112 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8115 if test $ac_cv_header_linux_version_h = yes; then
8123 sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
8128 # jwz: fuck this! it puts hardcoded pathnames into the generated Makefiles!
8130 # if test -n "$ac_aux_dir"; then
8131 # MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8133 if test -z "$MKINSTALLDIRS"; then
8134 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8137 # jwz: you know what, screw it. Let's just use the version that I
8138 # already computed in configure.in, instead of this version that came
8139 # with the i18n crud, ok?
8140 MKINSTALLDIRS="$INSTALL_DIRS"
8145 test -d po || mkdir po
8146 if test "x$srcdir" != "x."; then
8147 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8148 posrcprefix="$srcdir/"
8150 posrcprefix="../$srcdir/"
8156 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8157 < $srcdir/po/POTFILES.in > po/POTFILES
8161 ###############################################################################
8163 # Check for -lXmu (some fucked up vendors don't ship it...)
8165 ###############################################################################
8169 ac_save_CPPFLAGS="$CPPFLAGS"
8170 if test \! -z "$includedir" ; then
8171 CPPFLAGS="$CPPFLAGS -I$includedir"
8173 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8174 echo "$as_me:$LINENO: checking for X11/Xmu/Error.h" >&5
8175 echo $ECHO_N "checking for X11/Xmu/Error.h... $ECHO_C" >&6
8176 if test "${ac_cv_header_X11_Xmu_Error_h+set}" = set; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
8179 cat >conftest.$ac_ext <<_ACEOF
8180 #line $LINENO "configure"
8181 #include "confdefs.h"
8184 #include <X11/Intrinsic.h>
8186 #include <X11/Xmu/Error.h>
8188 rm -f conftest.$ac_objext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8190 (eval $ac_compile) 2>&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } &&
8194 { ac_try='test -s conftest.$ac_objext'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8200 ac_cv_header_X11_Xmu_Error_h=yes
8202 echo "$as_me: failed program was:" >&5
8203 cat conftest.$ac_ext >&5
8204 ac_cv_header_X11_Xmu_Error_h=no
8206 rm -f conftest.$ac_objext conftest.$ac_ext
8208 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xmu_Error_h" >&5
8209 echo "${ECHO_T}$ac_cv_header_X11_Xmu_Error_h" >&6
8210 if test $ac_cv_header_X11_Xmu_Error_h = yes; then
8215 CPPFLAGS="$ac_save_CPPFLAGS"
8216 if test "$have_xmu" = no ; then
8217 XMU_SRCS='$(UTILS_SRC)/xmu.c'
8218 XMU_OBJS='$(UTILS_BIN)/xmu.o'
8224 cat >>confdefs.h <<\_ACEOF
8231 ###############################################################################
8233 # Check for the SunOS 4.1.x _get_wmShellWidgetClass bug.
8234 # See comp.windows.x FAQ question 124. The right fix is to
8235 # get OpenWindows 3.0 patches 100512-02 and 100573-03.
8237 ###############################################################################
8239 if test "$have_xmu" = yes ; then
8242 echo "$as_me:$LINENO: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
8243 echo $ECHO_N "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug... $ECHO_C" >&6
8244 if test "${ac_cv_sunos_xmu_bug+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8247 ac_save_LDFLAGS="$LDFLAGS"
8248 if test \! -z "$x_libraries" ; then
8249 LDFLAGS="$LDFLAGS -L$x_libraries"
8251 # Note: this trick never works! (Generally.)
8252 # We're only getting away with using AC_TRY_LINK
8253 # with X libraries because we know it's SunOS.
8254 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
8255 cat >conftest.$ac_ext <<_ACEOF
8256 #line $LINENO "configure"
8257 #include "confdefs.h"
8259 #ifdef F77_DUMMY_MAIN
8263 int F77_DUMMY_MAIN() { return 1; }
8273 rm -f conftest.$ac_objext conftest$ac_exeext
8274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8275 (eval $ac_link) 2>&5
8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 (exit $ac_status); } &&
8279 { ac_try='test -s conftest$ac_exeext'
8280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); }; }; then
8285 ac_cv_sunos_xmu_bug=no
8287 echo "$as_me: failed program was:" >&5
8288 cat conftest.$ac_ext >&5
8289 ac_cv_sunos_xmu_bug=yes
8291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8292 LDFLAGS="$ac_save_LDFLAGS"
8294 echo "$as_me:$LINENO: result: $ac_cv_sunos_xmu_bug" >&5
8295 echo "${ECHO_T}$ac_cv_sunos_xmu_bug" >&6
8296 if test "$ac_cv_sunos_xmu_bug" = yes ; then
8297 echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
8298 echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
8299 if test "${ac_cv_ld_static+set}" = set; then
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
8302 ac_save_LDFLAGS="$LDFLAGS"
8303 LDFLAGS="$LDFLAGS -static"
8304 cat >conftest.$ac_ext <<_ACEOF
8305 #line $LINENO "configure"
8306 #include "confdefs.h"
8308 #ifdef F77_DUMMY_MAIN
8312 int F77_DUMMY_MAIN() { return 1; }
8322 rm -f conftest.$ac_objext conftest$ac_exeext
8323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8324 (eval $ac_link) 2>&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } &&
8328 { ac_try='test -s conftest$ac_exeext'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8336 echo "$as_me: failed program was:" >&5
8337 cat conftest.$ac_ext >&5
8340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8341 LDFLAGS="$ac_save_LDFLAGS"
8343 echo "$as_me:$LINENO: result: $ac_cv_ld_static" >&5
8344 echo "${ECHO_T}$ac_cv_ld_static" >&6
8345 if test "$ac_cv_ld_static" = yes ; then
8346 LDFLAGS="$LDFLAGS -static"
8348 LDFLAGS="$LDFLAGS -Bstatic"
8356 ###############################################################################
8358 # Handle the --with-hackdir option
8360 ###############################################################################
8363 with_hackdir_req=unspecified
8365 # Check whether --with-hackdir or --without-hackdir was given.
8366 if test "${with_hackdir+set}" = set; then
8367 withval="$with_hackdir"
8368 with_hackdir="$withval"; with_hackdir_req="$withval"
8373 if test x"$with_hackdir" = xyes; then
8374 HACKDIR='${exec_prefix}/lib/xscreensaver'
8375 elif test x"$with_hackdir" = xno; then
8378 # there must be a better way than this...
8379 if test -z "`echo $with_hackdir | sed 's@^/.*@@'`" ; then
8381 HACKDIR=$with_hackdir
8384 HACKDIR="\${exec_prefix}$with_hackdir"
8388 # canonicalize slashes.
8389 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
8391 # This option used to be called --enable-subdir; make sure that is no longer
8392 # used, since configure brain-damagedly ignores unknown --enable options.
8395 # Check whether --enable-subdir or --disable-subdir was given.
8396 if test "${enable_subdir+set}" = set; then
8397 enableval="$enable_subdir"
8400 if test -n "$obsolete_enable"; then
8401 echo "error: the --enable-subdir option has been replaced with"
8402 echo " the new --with-hackdir option; see \`configure --help'"
8403 echo " for more information."
8408 ###############################################################################
8410 # Handle the --with-configdir option
8412 ###############################################################################
8415 with_configdir_req=unspecified
8417 # Check whether --with-configdir or --without-configdir was given.
8418 if test "${with_configdir+set}" = set; then
8419 withval="$with_configdir"
8420 with_configdir="$withval"; with_configdir_req="$withval"
8425 if test x"$with_configdir" = xyes; then
8426 # filled in later...
8428 elif test x"$with_configdir" = xno; then
8429 echo "error: must be yes, or a pathname: --with-configdir=$with_configdir"
8432 # there must be a better way than this...
8433 if test -z "`echo $with_configdir | sed 's@^/.*@@'`" ; then
8435 HACK_CONF_DIR=$with_configdir
8438 HACK_CONF_DIR="\${exec_prefix}$with_configdir"
8445 ###############################################################################
8447 # Check for the SGI SCREEN_SAVER server extension.
8449 ###############################################################################
8452 with_sgi_req=unspecified
8454 # Check whether --with-sgi-ext or --without-sgi-ext was given.
8455 if test "${with_sgi_ext+set}" = set; then
8456 withval="$with_sgi_ext"
8457 with_sgi="$withval"; with_sgi_req="$withval"
8468 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER headers" >&5
8469 echo $ECHO_N "checking for SGI SCREEN_SAVER headers... $ECHO_C" >&6
8472 X_CFLAGS="-I$d $X_CFLAGS"
8473 echo "$as_me:$LINENO: result: $d" >&5
8474 echo "${ECHO_T}$d" >&6
8476 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8477 echo "${ECHO_T}not found ($d: no such directory)" >&6
8480 echo "$as_me:$LINENO: checking for SGI SCREEN_SAVER libs" >&5
8481 echo $ECHO_N "checking for SGI SCREEN_SAVER libs... $ECHO_C" >&6
8484 X_LIBS="-L$d $X_LIBS"
8485 echo "$as_me:$LINENO: result: $d" >&5
8486 echo "${ECHO_T}$d" >&6
8488 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8489 echo "${ECHO_T}not found ($d: no such directory)" >&6
8492 # replace the directory string with "yes".
8494 with_sgi=$with_sgi_req
8499 echo "error: argument to --with-sgi-ext must be \"yes\", \"no\", or a directory."
8500 echo " If it is a directory, then \`DIR/include' will be added to"
8501 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8507 if test "$with_sgi" = yes; then
8509 ac_save_CPPFLAGS="$CPPFLAGS"
8510 if test \! -z "$includedir" ; then
8511 CPPFLAGS="$CPPFLAGS -I$includedir"
8513 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8514 echo "$as_me:$LINENO: checking for X11/extensions/XScreenSaver.h" >&5
8515 echo $ECHO_N "checking for X11/extensions/XScreenSaver.h... $ECHO_C" >&6
8516 if test "${ac_cv_header_X11_extensions_XScreenSaver_h+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 cat >conftest.$ac_ext <<_ACEOF
8520 #line $LINENO "configure"
8521 #include "confdefs.h"
8522 #include <X11/Xlib.h>
8524 #include <X11/extensions/XScreenSaver.h>
8526 rm -f conftest.$ac_objext
8527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8528 (eval $ac_compile) 2>&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } &&
8532 { ac_try='test -s conftest.$ac_objext'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; }; then
8538 ac_cv_header_X11_extensions_XScreenSaver_h=yes
8540 echo "$as_me: failed program was:" >&5
8541 cat conftest.$ac_ext >&5
8542 ac_cv_header_X11_extensions_XScreenSaver_h=no
8544 rm -f conftest.$ac_objext conftest.$ac_ext
8546 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XScreenSaver_h" >&5
8547 echo "${ECHO_T}$ac_cv_header_X11_extensions_XScreenSaver_h" >&6
8548 if test $ac_cv_header_X11_extensions_XScreenSaver_h = yes; then
8550 cat >>confdefs.h <<\_ACEOF
8551 #define HAVE_SGI_SAVER_EXTENSION 1
8557 CPPFLAGS="$ac_save_CPPFLAGS"
8559 elif test "$with_sgi" != no; then
8560 echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
8565 ###############################################################################
8567 # Check for the MIT-SCREEN-SAVER server extension.
8569 ###############################################################################
8572 with_mit_req=unspecified
8574 # Check whether --with-mit-ext or --without-mit-ext was given.
8575 if test "${with_mit_ext+set}" = set; then
8576 withval="$with_mit_ext"
8577 with_mit="$withval"; with_mit_req="$withval"
8588 echo "$as_me:$LINENO: checking for MIT-SCREEN-SAVER headers" >&5
8589 echo $ECHO_N "checking for MIT-SCREEN-SAVER headers... $ECHO_C" >&6
8592 X_CFLAGS="-I$d $X_CFLAGS"
8593 echo "$as_me:$LINENO: result: $d" >&5
8594 echo "${ECHO_T}$d" >&6
8596 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8597 echo "${ECHO_T}not found ($d: no such directory)" >&6
8600 echo "$as_me:$LINENO: checking for MIT-SCREEN-SAVER libs" >&5
8601 echo $ECHO_N "checking for MIT-SCREEN-SAVER libs... $ECHO_C" >&6
8604 X_LIBS="-L$d $X_LIBS"
8605 echo "$as_me:$LINENO: result: $d" >&5
8606 echo "${ECHO_T}$d" >&6
8608 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8609 echo "${ECHO_T}not found ($d: no such directory)" >&6
8612 # replace the directory string with "yes".
8614 with_mit=$with_mit_req
8619 echo "error: argument to --with-mit-ext must be \"yes\", \"no\", or a directory."
8620 echo " If it is a directory, then \`DIR/include' will be added to"
8621 echo " the -I list, and \`DIR/lib' will be added to the -L list."
8627 if test "$with_mit" = yes; then
8629 ac_save_CPPFLAGS="$CPPFLAGS"
8630 if test \! -z "$includedir" ; then
8631 CPPFLAGS="$CPPFLAGS -I$includedir"
8633 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8634 echo "$as_me:$LINENO: checking for X11/extensions/scrnsaver.h" >&5
8635 echo $ECHO_N "checking for X11/extensions/scrnsaver.h... $ECHO_C" >&6
8636 if test "${ac_cv_header_X11_extensions_scrnsaver_h+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 cat >conftest.$ac_ext <<_ACEOF
8640 #line $LINENO "configure"
8641 #include "confdefs.h"
8642 #include <X11/Xlib.h>
8644 #include <X11/extensions/scrnsaver.h>
8646 rm -f conftest.$ac_objext
8647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8648 (eval $ac_compile) 2>&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } &&
8652 { ac_try='test -s conftest.$ac_objext'
8653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
8658 ac_cv_header_X11_extensions_scrnsaver_h=yes
8660 echo "$as_me: failed program was:" >&5
8661 cat conftest.$ac_ext >&5
8662 ac_cv_header_X11_extensions_scrnsaver_h=no
8664 rm -f conftest.$ac_objext conftest.$ac_ext
8666 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_scrnsaver_h" >&5
8667 echo "${ECHO_T}$ac_cv_header_X11_extensions_scrnsaver_h" >&6
8668 if test $ac_cv_header_X11_extensions_scrnsaver_h = yes; then
8673 CPPFLAGS="$ac_save_CPPFLAGS"
8675 # Now check to see if it's really in the library; XF86Free-3.3 ships
8676 # scrnsaver.h, but doesn't include the code in libXext.a, the idiots!
8678 if test "$have_mit" = yes; then
8680 ac_save_CPPFLAGS="$CPPFLAGS"
8681 ac_save_LDFLAGS="$LDFLAGS"
8682 # ac_save_LIBS="$LIBS"
8684 if test \! -z "$includedir" ; then
8685 CPPFLAGS="$CPPFLAGS -I$includedir"
8687 # note: $X_CFLAGS includes $x_includes
8688 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8690 if test \! -z "$libdir" ; then
8691 LDFLAGS="$LDFLAGS -L$libdir"
8693 # note: $X_LIBS includes $x_libraries
8694 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8696 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXext" >&5
8697 echo $ECHO_N "checking for XScreenSaverRegister in -lXext... $ECHO_C" >&6
8698 if test "${ac_cv_lib_Xext_XScreenSaverRegister+set}" = set; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8701 ac_check_lib_save_LIBS=$LIBS
8702 LIBS="-lXext -lm $LIBS"
8703 cat >conftest.$ac_ext <<_ACEOF
8704 #line $LINENO "configure"
8705 #include "confdefs.h"
8707 /* Override any gcc2 internal prototype to avoid an error. */
8711 /* We use char because int might match the return type of a gcc2
8712 builtin and then its argument prototype would still apply. */
8713 char XScreenSaverRegister ();
8714 #ifdef F77_DUMMY_MAIN
8718 int F77_DUMMY_MAIN() { return 1; }
8723 XScreenSaverRegister ();
8728 rm -f conftest.$ac_objext conftest$ac_exeext
8729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8730 (eval $ac_link) 2>&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } &&
8734 { ac_try='test -s conftest$ac_exeext'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 ac_cv_lib_Xext_XScreenSaverRegister=yes
8742 echo "$as_me: failed program was:" >&5
8743 cat conftest.$ac_ext >&5
8744 ac_cv_lib_Xext_XScreenSaverRegister=no
8746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8747 LIBS=$ac_check_lib_save_LIBS
8749 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XScreenSaverRegister" >&5
8750 echo "${ECHO_T}$ac_cv_lib_Xext_XScreenSaverRegister" >&6
8751 if test $ac_cv_lib_Xext_XScreenSaverRegister = yes; then
8757 CPPFLAGS="$ac_save_CPPFLAGS"
8758 LDFLAGS="$ac_save_LDFLAGS"
8759 # LIBS="$ac_save_LIBS"
8762 if test "$have_mit" = no; then
8763 # Fuck! Looks like XF86Free-3.3 actually puts it in XExExt instead
8764 # of in Xext. Thank you master, may I have another.
8766 ac_save_CPPFLAGS="$CPPFLAGS"
8767 ac_save_LDFLAGS="$LDFLAGS"
8768 # ac_save_LIBS="$LIBS"
8770 if test \! -z "$includedir" ; then
8771 CPPFLAGS="$CPPFLAGS -I$includedir"
8773 # note: $X_CFLAGS includes $x_includes
8774 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8776 if test \! -z "$libdir" ; then
8777 LDFLAGS="$LDFLAGS -L$libdir"
8779 # note: $X_LIBS includes $x_libraries
8780 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8782 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXExExt" >&5
8783 echo $ECHO_N "checking for XScreenSaverRegister in -lXExExt... $ECHO_C" >&6
8784 if test "${ac_cv_lib_XExExt_XScreenSaverRegister+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 ac_check_lib_save_LIBS=$LIBS
8788 LIBS="-lXExExt -lX11 -lXext -lm $LIBS"
8789 cat >conftest.$ac_ext <<_ACEOF
8790 #line $LINENO "configure"
8791 #include "confdefs.h"
8793 /* Override any gcc2 internal prototype to avoid an error. */
8797 /* We use char because int might match the return type of a gcc2
8798 builtin and then its argument prototype would still apply. */
8799 char XScreenSaverRegister ();
8800 #ifdef F77_DUMMY_MAIN
8804 int F77_DUMMY_MAIN() { return 1; }
8809 XScreenSaverRegister ();
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816 (eval $ac_link) 2>&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } &&
8820 { ac_try='test -s conftest$ac_exeext'
8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; }; then
8826 ac_cv_lib_XExExt_XScreenSaverRegister=yes
8828 echo "$as_me: failed program was:" >&5
8829 cat conftest.$ac_ext >&5
8830 ac_cv_lib_XExExt_XScreenSaverRegister=no
8832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8833 LIBS=$ac_check_lib_save_LIBS
8835 echo "$as_me:$LINENO: result: $ac_cv_lib_XExExt_XScreenSaverRegister" >&5
8836 echo "${ECHO_T}$ac_cv_lib_XExExt_XScreenSaverRegister" >&6
8837 if test $ac_cv_lib_XExExt_XScreenSaverRegister = yes; then
8838 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXExExt"
8843 CPPFLAGS="$ac_save_CPPFLAGS"
8844 LDFLAGS="$ac_save_LDFLAGS"
8845 # LIBS="$ac_save_LIBS"
8849 if test "$have_mit" = no; then
8850 # Double fuck! Looks like some versions of XFree86 (whichever version
8851 # it is that comes with RedHat Linux 2.0 -- I can't find a version
8852 # number) put this garbage in Xss instead of Xext. Thank you master,
8853 # may I have another.
8855 ac_save_CPPFLAGS="$CPPFLAGS"
8856 ac_save_LDFLAGS="$LDFLAGS"
8857 # ac_save_LIBS="$LIBS"
8859 if test \! -z "$includedir" ; then
8860 CPPFLAGS="$CPPFLAGS -I$includedir"
8862 # note: $X_CFLAGS includes $x_includes
8863 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8865 if test \! -z "$libdir" ; then
8866 LDFLAGS="$LDFLAGS -L$libdir"
8868 # note: $X_LIBS includes $x_libraries
8869 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
8871 echo "$as_me:$LINENO: checking for XScreenSaverRegister in -lXss" >&5
8872 echo $ECHO_N "checking for XScreenSaverRegister in -lXss... $ECHO_C" >&6
8873 if test "${ac_cv_lib_Xss_XScreenSaverRegister+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 ac_check_lib_save_LIBS=$LIBS
8877 LIBS="-lXss -lX11 -lXext -lm $LIBS"
8878 cat >conftest.$ac_ext <<_ACEOF
8879 #line $LINENO "configure"
8880 #include "confdefs.h"
8882 /* Override any gcc2 internal prototype to avoid an error. */
8886 /* We use char because int might match the return type of a gcc2
8887 builtin and then its argument prototype would still apply. */
8888 char XScreenSaverRegister ();
8889 #ifdef F77_DUMMY_MAIN
8893 int F77_DUMMY_MAIN() { return 1; }
8898 XScreenSaverRegister ();
8903 rm -f conftest.$ac_objext conftest$ac_exeext
8904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8905 (eval $ac_link) 2>&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try='test -s conftest$ac_exeext'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8915 ac_cv_lib_Xss_XScreenSaverRegister=yes
8917 echo "$as_me: failed program was:" >&5
8918 cat conftest.$ac_ext >&5
8919 ac_cv_lib_Xss_XScreenSaverRegister=no
8921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8922 LIBS=$ac_check_lib_save_LIBS
8924 echo "$as_me:$LINENO: result: $ac_cv_lib_Xss_XScreenSaverRegister" >&5
8925 echo "${ECHO_T}$ac_cv_lib_Xss_XScreenSaverRegister" >&6
8926 if test $ac_cv_lib_Xss_XScreenSaverRegister = yes; then
8927 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXss"
8932 CPPFLAGS="$ac_save_CPPFLAGS"
8933 LDFLAGS="$ac_save_LDFLAGS"
8934 # LIBS="$ac_save_LIBS"
8938 if test "$have_mit" = yes; then
8939 cat >>confdefs.h <<\_ACEOF
8940 #define HAVE_MIT_SAVER_EXTENSION 1
8947 elif test "$with_mit" != no; then
8948 echo "error: must be yes or no: --with-mit-ext=$with_mit"
8953 ###############################################################################
8955 # Check for the XIDLE server extension.
8957 ###############################################################################
8960 with_xidle_req=unspecified
8962 # Check whether --with-xidle-ext or --without-xidle-ext was given.
8963 if test "${with_xidle_ext+set}" = set; then
8964 withval="$with_xidle_ext"
8965 with_xidle="$withval"; with_xidle_req="$withval"
8971 case "$with_xidle" in
8976 echo "$as_me:$LINENO: checking for XIDLE headers" >&5
8977 echo $ECHO_N "checking for XIDLE headers... $ECHO_C" >&6
8978 d=$with_xidle/include
8980 X_CFLAGS="-I$d $X_CFLAGS"
8981 echo "$as_me:$LINENO: result: $d" >&5
8982 echo "${ECHO_T}$d" >&6
8984 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8985 echo "${ECHO_T}not found ($d: no such directory)" >&6
8988 echo "$as_me:$LINENO: checking for XIDLE libs" >&5
8989 echo $ECHO_N "checking for XIDLE libs... $ECHO_C" >&6
8992 X_LIBS="-L$d $X_LIBS"
8993 echo "$as_me:$LINENO: result: $d" >&5
8994 echo "${ECHO_T}$d" >&6
8996 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
8997 echo "${ECHO_T}not found ($d: no such directory)" >&6
9000 # replace the directory string with "yes".
9001 with_xidle_req="yes"
9002 with_xidle=$with_xidle_req
9007 echo "error: argument to --with-xidle-ext must be \"yes\", \"no\", or a directory."
9008 echo " If it is a directory, then \`DIR/include' will be added to"
9009 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9015 if test "$with_xidle" = yes; then
9017 ac_save_CPPFLAGS="$CPPFLAGS"
9018 if test \! -z "$includedir" ; then
9019 CPPFLAGS="$CPPFLAGS -I$includedir"
9021 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9022 echo "$as_me:$LINENO: checking for X11/extensions/xidle.h" >&5
9023 echo $ECHO_N "checking for X11/extensions/xidle.h... $ECHO_C" >&6
9024 if test "${ac_cv_header_X11_extensions_xidle_h+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 cat >conftest.$ac_ext <<_ACEOF
9028 #line $LINENO "configure"
9029 #include "confdefs.h"
9030 #include <X11/Xlib.h>
9032 #include <X11/extensions/xidle.h>
9034 rm -f conftest.$ac_objext
9035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9036 (eval $ac_compile) 2>&5
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } &&
9040 { ac_try='test -s conftest.$ac_objext'
9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; }; then
9046 ac_cv_header_X11_extensions_xidle_h=yes
9048 echo "$as_me: failed program was:" >&5
9049 cat conftest.$ac_ext >&5
9050 ac_cv_header_X11_extensions_xidle_h=no
9052 rm -f conftest.$ac_objext conftest.$ac_ext
9054 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xidle_h" >&5
9055 echo "${ECHO_T}$ac_cv_header_X11_extensions_xidle_h" >&6
9056 if test $ac_cv_header_X11_extensions_xidle_h = yes; then
9058 cat >>confdefs.h <<\_ACEOF
9059 #define HAVE_XIDLE_EXTENSION 1
9065 CPPFLAGS="$ac_save_CPPFLAGS"
9066 elif test "$with_xidle" != no; then
9067 echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
9072 ###############################################################################
9074 # Check for the SGI-VIDEO-CONTROL server extension.
9076 ###############################################################################
9079 with_sgivc_req=unspecified
9081 # Check whether --with-sgivc-ext or --without-sgivc-ext was given.
9082 if test "${with_sgivc_ext+set}" = set; then
9083 withval="$with_sgivc_ext"
9084 with_sgivc="$withval"; with_sgivc_req="$withval"
9090 case "$with_sgivc" in
9095 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL headers" >&5
9096 echo $ECHO_N "checking for SGI-VIDEO-CONTROL headers... $ECHO_C" >&6
9097 d=$with_sgivc/include
9099 X_CFLAGS="-I$d $X_CFLAGS"
9100 echo "$as_me:$LINENO: result: $d" >&5
9101 echo "${ECHO_T}$d" >&6
9103 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9104 echo "${ECHO_T}not found ($d: no such directory)" >&6
9107 echo "$as_me:$LINENO: checking for SGI-VIDEO-CONTROL libs" >&5
9108 echo $ECHO_N "checking for SGI-VIDEO-CONTROL libs... $ECHO_C" >&6
9111 X_LIBS="-L$d $X_LIBS"
9112 echo "$as_me:$LINENO: result: $d" >&5
9113 echo "${ECHO_T}$d" >&6
9115 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9116 echo "${ECHO_T}not found ($d: no such directory)" >&6
9119 # replace the directory string with "yes".
9120 with_sgivc_req="yes"
9121 with_sgivc=$with_sgivc_req
9126 echo "error: argument to --with-sgivc-ext must be \"yes\", \"no\", or a directory."
9127 echo " If it is a directory, then \`DIR/include' will be added to"
9128 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9134 if test "$with_sgivc" = yes; then
9136 # first check for XSGIvc.h
9138 ac_save_CPPFLAGS="$CPPFLAGS"
9139 if test \! -z "$includedir" ; then
9140 CPPFLAGS="$CPPFLAGS -I$includedir"
9142 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9143 echo "$as_me:$LINENO: checking for X11/extensions/XSGIvc.h" >&5
9144 echo $ECHO_N "checking for X11/extensions/XSGIvc.h... $ECHO_C" >&6
9145 if test "${ac_cv_header_X11_extensions_XSGIvc_h+set}" = set; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9148 cat >conftest.$ac_ext <<_ACEOF
9149 #line $LINENO "configure"
9150 #include "confdefs.h"
9151 #include <X11/Xlib.h>
9153 #include <X11/extensions/XSGIvc.h>
9155 rm -f conftest.$ac_objext
9156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9157 (eval $ac_compile) 2>&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } &&
9161 { ac_try='test -s conftest.$ac_objext'
9162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); }; }; then
9167 ac_cv_header_X11_extensions_XSGIvc_h=yes
9169 echo "$as_me: failed program was:" >&5
9170 cat conftest.$ac_ext >&5
9171 ac_cv_header_X11_extensions_XSGIvc_h=no
9173 rm -f conftest.$ac_objext conftest.$ac_ext
9175 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XSGIvc_h" >&5
9176 echo "${ECHO_T}$ac_cv_header_X11_extensions_XSGIvc_h" >&6
9177 if test $ac_cv_header_X11_extensions_XSGIvc_h = yes; then
9182 CPPFLAGS="$ac_save_CPPFLAGS"
9184 # if that succeeded, then check for the -lXsgivc
9185 if test "$have_sgivc" = yes; then
9188 ac_save_CPPFLAGS="$CPPFLAGS"
9189 ac_save_LDFLAGS="$LDFLAGS"
9190 # ac_save_LIBS="$LIBS"
9192 if test \! -z "$includedir" ; then
9193 CPPFLAGS="$CPPFLAGS -I$includedir"
9195 # note: $X_CFLAGS includes $x_includes
9196 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9198 if test \! -z "$libdir" ; then
9199 LDFLAGS="$LDFLAGS -L$libdir"
9201 # note: $X_LIBS includes $x_libraries
9202 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9204 echo "$as_me:$LINENO: checking for XSGIvcQueryGammaMap in -lXsgivc" >&5
9205 echo $ECHO_N "checking for XSGIvcQueryGammaMap in -lXsgivc... $ECHO_C" >&6
9206 if test "${ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 ac_check_lib_save_LIBS=$LIBS
9210 LIBS="-lXsgivc -lXext -lX11 $LIBS"
9211 cat >conftest.$ac_ext <<_ACEOF
9212 #line $LINENO "configure"
9213 #include "confdefs.h"
9215 /* Override any gcc2 internal prototype to avoid an error. */
9219 /* We use char because int might match the return type of a gcc2
9220 builtin and then its argument prototype would still apply. */
9221 char XSGIvcQueryGammaMap ();
9222 #ifdef F77_DUMMY_MAIN
9226 int F77_DUMMY_MAIN() { return 1; }
9231 XSGIvcQueryGammaMap ();
9236 rm -f conftest.$ac_objext conftest$ac_exeext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9238 (eval $ac_link) 2>&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try='test -s conftest$ac_exeext'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; }; then
9248 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=yes
9250 echo "$as_me: failed program was:" >&5
9251 cat conftest.$ac_ext >&5
9252 ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap=no
9254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9255 LIBS=$ac_check_lib_save_LIBS
9257 echo "$as_me:$LINENO: result: $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&5
9258 echo "${ECHO_T}$ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap" >&6
9259 if test $ac_cv_lib_Xsgivc_XSGIvcQueryGammaMap = yes; then
9260 have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"
9265 CPPFLAGS="$ac_save_CPPFLAGS"
9266 LDFLAGS="$ac_save_LDFLAGS"
9267 # LIBS="$ac_save_LIBS"
9271 # if that succeeded, then we've really got it.
9272 if test "$have_sgivc" = yes; then
9273 cat >>confdefs.h <<\_ACEOF
9274 #define HAVE_SGI_VC_EXTENSION 1
9279 elif test "$with_sgivc" != no; then
9280 echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
9285 ###############################################################################
9287 # Check for the DPMS server extension.
9289 ###############################################################################
9292 with_dpms_req=unspecified
9294 # Check whether --with-dpms-ext or --without-dpms-ext was given.
9295 if test "${with_dpms_ext+set}" = set; then
9296 withval="$with_dpms_ext"
9297 with_dpms="$withval"; with_dpms_req="$withval"
9303 case "$with_dpms" in
9308 echo "$as_me:$LINENO: checking for DPMS headers" >&5
9309 echo $ECHO_N "checking for DPMS headers... $ECHO_C" >&6
9310 d=$with_dpms/include
9312 X_CFLAGS="-I$d $X_CFLAGS"
9313 echo "$as_me:$LINENO: result: $d" >&5
9314 echo "${ECHO_T}$d" >&6
9316 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9317 echo "${ECHO_T}not found ($d: no such directory)" >&6
9320 echo "$as_me:$LINENO: checking for DPMS libs" >&5
9321 echo $ECHO_N "checking for DPMS libs... $ECHO_C" >&6
9324 X_LIBS="-L$d $X_LIBS"
9325 echo "$as_me:$LINENO: result: $d" >&5
9326 echo "${ECHO_T}$d" >&6
9328 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9329 echo "${ECHO_T}not found ($d: no such directory)" >&6
9332 # replace the directory string with "yes".
9334 with_dpms=$with_dpms_req
9339 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
9340 echo " If it is a directory, then \`DIR/include' will be added to"
9341 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9347 if test "$with_dpms" = yes; then
9349 # first check for dpms.h
9351 ac_save_CPPFLAGS="$CPPFLAGS"
9352 if test \! -z "$includedir" ; then
9353 CPPFLAGS="$CPPFLAGS -I$includedir"
9355 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9356 echo "$as_me:$LINENO: checking for X11/extensions/dpms.h" >&5
9357 echo $ECHO_N "checking for X11/extensions/dpms.h... $ECHO_C" >&6
9358 if test "${ac_cv_header_X11_extensions_dpms_h+set}" = set; then
9359 echo $ECHO_N "(cached) $ECHO_C" >&6
9361 cat >conftest.$ac_ext <<_ACEOF
9362 #line $LINENO "configure"
9363 #include "confdefs.h"
9364 #include <X11/Xlib.h>
9366 #include <X11/extensions/dpms.h>
9368 rm -f conftest.$ac_objext
9369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9370 (eval $ac_compile) 2>&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } &&
9374 { ac_try='test -s conftest.$ac_objext'
9375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); }; }; then
9380 ac_cv_header_X11_extensions_dpms_h=yes
9382 echo "$as_me: failed program was:" >&5
9383 cat conftest.$ac_ext >&5
9384 ac_cv_header_X11_extensions_dpms_h=no
9386 rm -f conftest.$ac_objext conftest.$ac_ext
9388 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_dpms_h" >&5
9389 echo "${ECHO_T}$ac_cv_header_X11_extensions_dpms_h" >&6
9390 if test $ac_cv_header_X11_extensions_dpms_h = yes; then
9395 CPPFLAGS="$ac_save_CPPFLAGS"
9397 # if that succeeded, then check for the DPMS code in the libraries
9398 if test "$have_dpms" = yes; then
9400 # first look in -lXext (this is where it is with XFree86 4.0)
9403 ac_save_CPPFLAGS="$CPPFLAGS"
9404 ac_save_LDFLAGS="$LDFLAGS"
9405 # ac_save_LIBS="$LIBS"
9407 if test \! -z "$includedir" ; then
9408 CPPFLAGS="$CPPFLAGS -I$includedir"
9410 # note: $X_CFLAGS includes $x_includes
9411 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9413 if test \! -z "$libdir" ; then
9414 LDFLAGS="$LDFLAGS -L$libdir"
9416 # note: $X_LIBS includes $x_libraries
9417 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9419 echo "$as_me:$LINENO: checking for DPMSInfo in -lXext" >&5
9420 echo $ECHO_N "checking for DPMSInfo in -lXext... $ECHO_C" >&6
9421 if test "${ac_cv_lib_Xext_DPMSInfo+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 ac_check_lib_save_LIBS=$LIBS
9425 LIBS="-lXext -lXext -lX11 $LIBS"
9426 cat >conftest.$ac_ext <<_ACEOF
9427 #line $LINENO "configure"
9428 #include "confdefs.h"
9430 /* Override any gcc2 internal prototype to avoid an error. */
9434 /* We use char because int might match the return type of a gcc2
9435 builtin and then its argument prototype would still apply. */
9437 #ifdef F77_DUMMY_MAIN
9441 int F77_DUMMY_MAIN() { return 1; }
9451 rm -f conftest.$ac_objext conftest$ac_exeext
9452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9453 (eval $ac_link) 2>&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } &&
9457 { ac_try='test -s conftest$ac_exeext'
9458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; }; then
9463 ac_cv_lib_Xext_DPMSInfo=yes
9465 echo "$as_me: failed program was:" >&5
9466 cat conftest.$ac_ext >&5
9467 ac_cv_lib_Xext_DPMSInfo=no
9469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9470 LIBS=$ac_check_lib_save_LIBS
9472 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_DPMSInfo" >&5
9473 echo "${ECHO_T}$ac_cv_lib_Xext_DPMSInfo" >&6
9474 if test $ac_cv_lib_Xext_DPMSInfo = yes; then
9480 CPPFLAGS="$ac_save_CPPFLAGS"
9481 LDFLAGS="$ac_save_LDFLAGS"
9482 # LIBS="$ac_save_LIBS"
9485 # if that failed, look in -lXdpms (this is where it was in XFree86 3.x)
9486 if test "$have_dpms" = no; then
9488 ac_save_CPPFLAGS="$CPPFLAGS"
9489 ac_save_LDFLAGS="$LDFLAGS"
9490 # ac_save_LIBS="$LIBS"
9492 if test \! -z "$includedir" ; then
9493 CPPFLAGS="$CPPFLAGS -I$includedir"
9495 # note: $X_CFLAGS includes $x_includes
9496 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9498 if test \! -z "$libdir" ; then
9499 LDFLAGS="$LDFLAGS -L$libdir"
9501 # note: $X_LIBS includes $x_libraries
9502 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9504 echo "$as_me:$LINENO: checking for DPMSInfo in -lXdpms" >&5
9505 echo $ECHO_N "checking for DPMSInfo in -lXdpms... $ECHO_C" >&6
9506 if test "${ac_cv_lib_Xdpms_DPMSInfo+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 ac_check_lib_save_LIBS=$LIBS
9510 LIBS="-lXdpms -lXext -lX11 $LIBS"
9511 cat >conftest.$ac_ext <<_ACEOF
9512 #line $LINENO "configure"
9513 #include "confdefs.h"
9515 /* Override any gcc2 internal prototype to avoid an error. */
9519 /* We use char because int might match the return type of a gcc2
9520 builtin and then its argument prototype would still apply. */
9522 #ifdef F77_DUMMY_MAIN
9526 int F77_DUMMY_MAIN() { return 1; }
9536 rm -f conftest.$ac_objext conftest$ac_exeext
9537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9538 (eval $ac_link) 2>&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } &&
9542 { ac_try='test -s conftest$ac_exeext'
9543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; }; then
9548 ac_cv_lib_Xdpms_DPMSInfo=yes
9550 echo "$as_me: failed program was:" >&5
9551 cat conftest.$ac_ext >&5
9552 ac_cv_lib_Xdpms_DPMSInfo=no
9554 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9555 LIBS=$ac_check_lib_save_LIBS
9557 echo "$as_me:$LINENO: result: $ac_cv_lib_Xdpms_DPMSInfo" >&5
9558 echo "${ECHO_T}$ac_cv_lib_Xdpms_DPMSInfo" >&6
9559 if test $ac_cv_lib_Xdpms_DPMSInfo = yes; then
9560 have_dpms=yes; XDPMS_LIBS="-lXdpms"
9565 CPPFLAGS="$ac_save_CPPFLAGS"
9566 LDFLAGS="$ac_save_LDFLAGS"
9567 # LIBS="$ac_save_LIBS"
9573 # if that succeeded, then we've really got it.
9574 if test "$have_dpms" = yes; then
9575 cat >>confdefs.h <<\_ACEOF
9576 #define HAVE_DPMS_EXTENSION 1
9581 elif test "$with_dpms" != no; then
9582 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
9587 ###############################################################################
9589 # Check for the XINERAMA server extension.
9591 ###############################################################################
9594 with_xinerama_req=unspecified
9596 # Check whether --with-xinerama-ext or --without-xinerama-ext was given.
9597 if test "${with_xinerama_ext+set}" = set; then
9598 withval="$with_xinerama_ext"
9599 with_xinerama="$withval"; with_xinerama_req="$withval"
9605 case "$with_xinerama" in
9610 echo "$as_me:$LINENO: checking for XINERAMA headers" >&5
9611 echo $ECHO_N "checking for XINERAMA headers... $ECHO_C" >&6
9612 d=$with_xinerama/include
9614 X_CFLAGS="-I$d $X_CFLAGS"
9615 echo "$as_me:$LINENO: result: $d" >&5
9616 echo "${ECHO_T}$d" >&6
9618 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9619 echo "${ECHO_T}not found ($d: no such directory)" >&6
9622 echo "$as_me:$LINENO: checking for XINERAMA libs" >&5
9623 echo $ECHO_N "checking for XINERAMA libs... $ECHO_C" >&6
9624 d=$with_xinerama/lib
9626 X_LIBS="-L$d $X_LIBS"
9627 echo "$as_me:$LINENO: result: $d" >&5
9628 echo "${ECHO_T}$d" >&6
9630 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9631 echo "${ECHO_T}not found ($d: no such directory)" >&6
9634 # replace the directory string with "yes".
9635 with_xinerama_req="yes"
9636 with_xinerama=$with_xinerama_req
9641 echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
9642 echo " If it is a directory, then \`DIR/include' will be added to"
9643 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9649 if test "$with_xinerama" = yes; then
9651 # first check for Xinerama.h
9653 ac_save_CPPFLAGS="$CPPFLAGS"
9654 if test \! -z "$includedir" ; then
9655 CPPFLAGS="$CPPFLAGS -I$includedir"
9657 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9658 echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
9659 echo $ECHO_N "checking for X11/extensions/Xinerama.h... $ECHO_C" >&6
9660 if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 cat >conftest.$ac_ext <<_ACEOF
9664 #line $LINENO "configure"
9665 #include "confdefs.h"
9666 #include <X11/Xlib.h>
9668 #include <X11/extensions/Xinerama.h>
9670 rm -f conftest.$ac_objext
9671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9672 (eval $ac_compile) 2>&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } &&
9676 { ac_try='test -s conftest.$ac_objext'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
9682 ac_cv_header_X11_extensions_Xinerama_h=yes
9684 echo "$as_me: failed program was:" >&5
9685 cat conftest.$ac_ext >&5
9686 ac_cv_header_X11_extensions_Xinerama_h=no
9688 rm -f conftest.$ac_objext conftest.$ac_ext
9690 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
9691 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xinerama_h" >&6
9692 if test $ac_cv_header_X11_extensions_Xinerama_h = yes; then
9697 CPPFLAGS="$ac_save_CPPFLAGS"
9699 # if that succeeded, then check for the XINERAMA code in the libraries
9700 if test "$have_xinerama" = yes; then
9702 # first look in -lXext
9705 ac_save_CPPFLAGS="$CPPFLAGS"
9706 ac_save_LDFLAGS="$LDFLAGS"
9707 # ac_save_LIBS="$LIBS"
9709 if test \! -z "$includedir" ; then
9710 CPPFLAGS="$CPPFLAGS -I$includedir"
9712 # note: $X_CFLAGS includes $x_includes
9713 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9715 if test \! -z "$libdir" ; then
9716 LDFLAGS="$LDFLAGS -L$libdir"
9718 # note: $X_LIBS includes $x_libraries
9719 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9721 echo "$as_me:$LINENO: checking for XineramaQueryExtension in -lXext" >&5
9722 echo $ECHO_N "checking for XineramaQueryExtension in -lXext... $ECHO_C" >&6
9723 if test "${ac_cv_lib_Xext_XineramaQueryExtension+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 ac_check_lib_save_LIBS=$LIBS
9727 LIBS="-lXext -lXext -lX11 $LIBS"
9728 cat >conftest.$ac_ext <<_ACEOF
9729 #line $LINENO "configure"
9730 #include "confdefs.h"
9732 /* Override any gcc2 internal prototype to avoid an error. */
9736 /* We use char because int might match the return type of a gcc2
9737 builtin and then its argument prototype would still apply. */
9738 char XineramaQueryExtension ();
9739 #ifdef F77_DUMMY_MAIN
9743 int F77_DUMMY_MAIN() { return 1; }
9748 XineramaQueryExtension ();
9753 rm -f conftest.$ac_objext conftest$ac_exeext
9754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9755 (eval $ac_link) 2>&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } &&
9759 { ac_try='test -s conftest$ac_exeext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_cv_lib_Xext_XineramaQueryExtension=yes
9767 echo "$as_me: failed program was:" >&5
9768 cat conftest.$ac_ext >&5
9769 ac_cv_lib_Xext_XineramaQueryExtension=no
9771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9772 LIBS=$ac_check_lib_save_LIBS
9774 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XineramaQueryExtension" >&5
9775 echo "${ECHO_T}$ac_cv_lib_Xext_XineramaQueryExtension" >&6
9776 if test $ac_cv_lib_Xext_XineramaQueryExtension = yes; then
9782 CPPFLAGS="$ac_save_CPPFLAGS"
9783 LDFLAGS="$ac_save_LDFLAGS"
9784 # LIBS="$ac_save_LIBS"
9787 # if that failed, look in -lXinerama (this is where it is in XFree86 4.1.)
9788 if test "$have_xinerama" = no; then
9790 ac_save_CPPFLAGS="$CPPFLAGS"
9791 ac_save_LDFLAGS="$LDFLAGS"
9792 # ac_save_LIBS="$LIBS"
9794 if test \! -z "$includedir" ; then
9795 CPPFLAGS="$CPPFLAGS -I$includedir"
9797 # note: $X_CFLAGS includes $x_includes
9798 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9800 if test \! -z "$libdir" ; then
9801 LDFLAGS="$LDFLAGS -L$libdir"
9803 # note: $X_LIBS includes $x_libraries
9804 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
9806 echo "$as_me:$LINENO: checking for XineramaQueryExtension in -lXinerama" >&5
9807 echo $ECHO_N "checking for XineramaQueryExtension in -lXinerama... $ECHO_C" >&6
9808 if test "${ac_cv_lib_Xinerama_XineramaQueryExtension+set}" = set; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 ac_check_lib_save_LIBS=$LIBS
9812 LIBS="-lXinerama -lXext -lX11 $LIBS"
9813 cat >conftest.$ac_ext <<_ACEOF
9814 #line $LINENO "configure"
9815 #include "confdefs.h"
9817 /* Override any gcc2 internal prototype to avoid an error. */
9821 /* We use char because int might match the return type of a gcc2
9822 builtin and then its argument prototype would still apply. */
9823 char XineramaQueryExtension ();
9824 #ifdef F77_DUMMY_MAIN
9828 int F77_DUMMY_MAIN() { return 1; }
9833 XineramaQueryExtension ();
9838 rm -f conftest.$ac_objext conftest$ac_exeext
9839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9840 (eval $ac_link) 2>&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try='test -s conftest$ac_exeext'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
9850 ac_cv_lib_Xinerama_XineramaQueryExtension=yes
9852 echo "$as_me: failed program was:" >&5
9853 cat conftest.$ac_ext >&5
9854 ac_cv_lib_Xinerama_XineramaQueryExtension=no
9856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9857 LIBS=$ac_check_lib_save_LIBS
9859 echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
9860 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6
9861 if test $ac_cv_lib_Xinerama_XineramaQueryExtension = yes; then
9862 have_xinerama=yes; SAVER_LIBS="$SAVER_LIBS -lXinerama"
9867 CPPFLAGS="$ac_save_CPPFLAGS"
9868 LDFLAGS="$ac_save_LDFLAGS"
9869 # LIBS="$ac_save_LIBS"
9874 # if that succeeded, then we've really got it.
9875 if test "$have_xinerama" = yes; then
9876 cat >>confdefs.h <<\_ACEOF
9877 #define HAVE_XINERAMA 1
9882 elif test "$with_xinerama" != no; then
9883 echo "error: must be yes or no: --with-xinerama-ext=$with_xinerama"
9888 ###############################################################################
9890 # Check for the XF86VMODE server extension (for virtual screens.)
9892 ###############################################################################
9895 with_xf86vmode_req=unspecified
9897 # Check whether --with-xf86vmode-ext or --without-xf86vmode-ext was given.
9898 if test "${with_xf86vmode_ext+set}" = set; then
9899 withval="$with_xf86vmode_ext"
9900 with_xf86vmode="$withval"; with_xf86vmode_req="$withval"
9906 case "$with_xf86vmode" in
9911 echo "$as_me:$LINENO: checking for xf86vmode headers" >&5
9912 echo $ECHO_N "checking for xf86vmode headers... $ECHO_C" >&6
9913 d=$with_xf86vmode/include
9915 X_CFLAGS="-I$d $X_CFLAGS"
9916 echo "$as_me:$LINENO: result: $d" >&5
9917 echo "${ECHO_T}$d" >&6
9919 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9920 echo "${ECHO_T}not found ($d: no such directory)" >&6
9923 echo "$as_me:$LINENO: checking for xf86vmode libs" >&5
9924 echo $ECHO_N "checking for xf86vmode libs... $ECHO_C" >&6
9925 d=$with_xf86vmode/lib
9927 X_LIBS="-L$d $X_LIBS"
9928 echo "$as_me:$LINENO: result: $d" >&5
9929 echo "${ECHO_T}$d" >&6
9931 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
9932 echo "${ECHO_T}not found ($d: no such directory)" >&6
9935 # replace the directory string with "yes".
9936 with_xf86vmode_req="yes"
9937 with_xf86vmode=$with_xf86vmode_req
9942 echo "error: argument to --with-xf86vmode-ext must be \"yes\", \"no\", or a directory."
9943 echo " If it is a directory, then \`DIR/include' will be added to"
9944 echo " the -I list, and \`DIR/lib' will be added to the -L list."
9950 if test "$with_xf86vmode" = yes; then
9952 # first check for xf86vmode.h
9954 ac_save_CPPFLAGS="$CPPFLAGS"
9955 if test \! -z "$includedir" ; then
9956 CPPFLAGS="$CPPFLAGS -I$includedir"
9958 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9959 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
9960 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
9961 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 cat >conftest.$ac_ext <<_ACEOF
9965 #line $LINENO "configure"
9966 #include "confdefs.h"
9967 #include <X11/Xlib.h>
9969 #include <X11/extensions/xf86vmode.h>
9971 rm -f conftest.$ac_objext
9972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9973 (eval $ac_compile) 2>&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } &&
9977 { ac_try='test -s conftest.$ac_objext'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; }; then
9983 ac_cv_header_X11_extensions_xf86vmode_h=yes
9985 echo "$as_me: failed program was:" >&5
9986 cat conftest.$ac_ext >&5
9987 ac_cv_header_X11_extensions_xf86vmode_h=no
9989 rm -f conftest.$ac_objext conftest.$ac_ext
9991 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
9992 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
9993 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
9998 CPPFLAGS="$ac_save_CPPFLAGS"
10000 # if that succeeded, then check for the -lXxf86vm
10001 if test "$have_xf86vmode" = yes; then
10004 ac_save_CPPFLAGS="$CPPFLAGS"
10005 ac_save_LDFLAGS="$LDFLAGS"
10006 # ac_save_LIBS="$LIBS"
10008 if test \! -z "$includedir" ; then
10009 CPPFLAGS="$CPPFLAGS -I$includedir"
10011 # note: $X_CFLAGS includes $x_includes
10012 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10014 if test \! -z "$libdir" ; then
10015 LDFLAGS="$LDFLAGS -L$libdir"
10017 # note: $X_LIBS includes $x_libraries
10018 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10020 echo "$as_me:$LINENO: checking for XF86VidModeGetViewPort in -lXxf86vm" >&5
10021 echo $ECHO_N "checking for XF86VidModeGetViewPort in -lXxf86vm... $ECHO_C" >&6
10022 if test "${ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
10027 cat >conftest.$ac_ext <<_ACEOF
10028 #line $LINENO "configure"
10029 #include "confdefs.h"
10031 /* Override any gcc2 internal prototype to avoid an error. */
10035 /* We use char because int might match the return type of a gcc2
10036 builtin and then its argument prototype would still apply. */
10037 char XF86VidModeGetViewPort ();
10038 #ifdef F77_DUMMY_MAIN
10039 # ifdef __cplusplus
10042 int F77_DUMMY_MAIN() { return 1; }
10047 XF86VidModeGetViewPort ();
10052 rm -f conftest.$ac_objext conftest$ac_exeext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10054 (eval $ac_link) 2>&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -s conftest$ac_exeext'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; }; then
10064 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=yes
10066 echo "$as_me: failed program was:" >&5
10067 cat conftest.$ac_ext >&5
10068 ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort=no
10070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10071 LIBS=$ac_check_lib_save_LIBS
10073 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&5
10074 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort" >&6
10075 if test $ac_cv_lib_Xxf86vm_XF86VidModeGetViewPort = yes; then
10076 have_xf86vmode=yes; SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
10081 CPPFLAGS="$ac_save_CPPFLAGS"
10082 LDFLAGS="$ac_save_LDFLAGS"
10083 # LIBS="$ac_save_LIBS"
10087 # if that succeeded, then we've really got it.
10088 if test "$have_xf86vmode" = yes; then
10089 cat >>confdefs.h <<\_ACEOF
10090 #define HAVE_XF86VMODE 1
10095 elif test "$with_xf86vmode" != no; then
10096 echo "error: must be yes or no: --with-xf86vmode-ext=$with_xf86vmode"
10101 ###############################################################################
10103 # Check for the XF86VMODE server extension (for gamma fading.)
10105 ###############################################################################
10108 have_xf86gamma_ramp=no
10109 with_xf86gamma_req=unspecified
10111 # Check whether --with-xf86gamma-ext or --without-xf86gamma-ext was given.
10112 if test "${with_xf86gamma_ext+set}" = set; then
10113 withval="$with_xf86gamma_ext"
10114 with_xf86gamma="$withval"; with_xf86gamma_req="$withval"
10120 case "$with_xf86gamma" in
10125 echo "$as_me:$LINENO: checking for xf86gamma headers" >&5
10126 echo $ECHO_N "checking for xf86gamma headers... $ECHO_C" >&6
10127 d=$with_xf86gamma/include
10128 if test -d $d; then
10129 X_CFLAGS="-I$d $X_CFLAGS"
10130 echo "$as_me:$LINENO: result: $d" >&5
10131 echo "${ECHO_T}$d" >&6
10133 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10134 echo "${ECHO_T}not found ($d: no such directory)" >&6
10137 echo "$as_me:$LINENO: checking for xf86gamma libs" >&5
10138 echo $ECHO_N "checking for xf86gamma libs... $ECHO_C" >&6
10139 d=$with_xf86gamma/lib
10140 if test -d $d; then
10141 X_LIBS="-L$d $X_LIBS"
10142 echo "$as_me:$LINENO: result: $d" >&5
10143 echo "${ECHO_T}$d" >&6
10145 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10146 echo "${ECHO_T}not found ($d: no such directory)" >&6
10149 # replace the directory string with "yes".
10150 with_xf86gamma_req="yes"
10151 with_xf86gamma=$with_xf86gamma_req
10156 echo "error: argument to --with-xf86gamma-ext must be \"yes\", \"no\", or a directory."
10157 echo " If it is a directory, then \`DIR/include' will be added to"
10158 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10164 if test "$with_xf86gamma" = yes; then
10166 # first check for xf86vmode.h, if we haven't already
10167 if test "$have_xf86vmode" = yes; then
10171 ac_save_CPPFLAGS="$CPPFLAGS"
10172 if test \! -z "$includedir" ; then
10173 CPPFLAGS="$CPPFLAGS -I$includedir"
10175 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10176 echo "$as_me:$LINENO: checking for X11/extensions/xf86vmode.h" >&5
10177 echo $ECHO_N "checking for X11/extensions/xf86vmode.h... $ECHO_C" >&6
10178 if test "${ac_cv_header_X11_extensions_xf86vmode_h+set}" = set; then
10179 echo $ECHO_N "(cached) $ECHO_C" >&6
10181 cat >conftest.$ac_ext <<_ACEOF
10182 #line $LINENO "configure"
10183 #include "confdefs.h"
10184 #include <X11/Xlib.h>
10186 #include <X11/extensions/xf86vmode.h>
10188 rm -f conftest.$ac_objext
10189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10190 (eval $ac_compile) 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } &&
10194 { ac_try='test -s conftest.$ac_objext'
10195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196 (eval $ac_try) 2>&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); }; }; then
10200 ac_cv_header_X11_extensions_xf86vmode_h=yes
10202 echo "$as_me: failed program was:" >&5
10203 cat conftest.$ac_ext >&5
10204 ac_cv_header_X11_extensions_xf86vmode_h=no
10206 rm -f conftest.$ac_objext conftest.$ac_ext
10208 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_xf86vmode_h" >&5
10209 echo "${ECHO_T}$ac_cv_header_X11_extensions_xf86vmode_h" >&6
10210 if test $ac_cv_header_X11_extensions_xf86vmode_h = yes; then
10215 CPPFLAGS="$ac_save_CPPFLAGS"
10218 # if that succeeded, then check for the -lXxf86vm
10219 if test "$have_xf86gamma" = yes; then
10222 ac_save_CPPFLAGS="$CPPFLAGS"
10223 ac_save_LDFLAGS="$LDFLAGS"
10224 # ac_save_LIBS="$LIBS"
10226 if test \! -z "$includedir" ; then
10227 CPPFLAGS="$CPPFLAGS -I$includedir"
10229 # note: $X_CFLAGS includes $x_includes
10230 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10232 if test \! -z "$libdir" ; then
10233 LDFLAGS="$LDFLAGS -L$libdir"
10235 # note: $X_LIBS includes $x_libraries
10236 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10238 echo "$as_me:$LINENO: checking for XF86VidModeSetGamma in -lXxf86vm" >&5
10239 echo $ECHO_N "checking for XF86VidModeSetGamma in -lXxf86vm... $ECHO_C" >&6
10240 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGamma+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 ac_check_lib_save_LIBS=$LIBS
10244 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
10245 cat >conftest.$ac_ext <<_ACEOF
10246 #line $LINENO "configure"
10247 #include "confdefs.h"
10249 /* Override any gcc2 internal prototype to avoid an error. */
10253 /* We use char because int might match the return type of a gcc2
10254 builtin and then its argument prototype would still apply. */
10255 char XF86VidModeSetGamma ();
10256 #ifdef F77_DUMMY_MAIN
10257 # ifdef __cplusplus
10260 int F77_DUMMY_MAIN() { return 1; }
10265 XF86VidModeSetGamma ();
10270 rm -f conftest.$ac_objext conftest$ac_exeext
10271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10272 (eval $ac_link) 2>&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } &&
10276 { ac_try='test -s conftest$ac_exeext'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=yes
10284 echo "$as_me: failed program was:" >&5
10285 cat conftest.$ac_ext >&5
10286 ac_cv_lib_Xxf86vm_XF86VidModeSetGamma=no
10288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10289 LIBS=$ac_check_lib_save_LIBS
10291 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&5
10292 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGamma" >&6
10293 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGamma = yes; then
10299 CPPFLAGS="$ac_save_CPPFLAGS"
10300 LDFLAGS="$ac_save_LDFLAGS"
10301 # LIBS="$ac_save_LIBS"
10305 # check for the Ramp versions of the functions too.
10306 if test "$have_xf86gamma" = yes; then
10307 have_xf86gamma_ramp=no
10309 ac_save_CPPFLAGS="$CPPFLAGS"
10310 ac_save_LDFLAGS="$LDFLAGS"
10311 # ac_save_LIBS="$LIBS"
10313 if test \! -z "$includedir" ; then
10314 CPPFLAGS="$CPPFLAGS -I$includedir"
10316 # note: $X_CFLAGS includes $x_includes
10317 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10319 if test \! -z "$libdir" ; then
10320 LDFLAGS="$LDFLAGS -L$libdir"
10322 # note: $X_LIBS includes $x_libraries
10323 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10325 echo "$as_me:$LINENO: checking for XF86VidModeSetGammaRamp in -lXxf86vm" >&5
10326 echo $ECHO_N "checking for XF86VidModeSetGammaRamp in -lXxf86vm... $ECHO_C" >&6
10327 if test "${ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 ac_check_lib_save_LIBS=$LIBS
10331 LIBS="-lXxf86vm -lXext -lX11 $LIBS"
10332 cat >conftest.$ac_ext <<_ACEOF
10333 #line $LINENO "configure"
10334 #include "confdefs.h"
10336 /* Override any gcc2 internal prototype to avoid an error. */
10340 /* We use char because int might match the return type of a gcc2
10341 builtin and then its argument prototype would still apply. */
10342 char XF86VidModeSetGammaRamp ();
10343 #ifdef F77_DUMMY_MAIN
10344 # ifdef __cplusplus
10347 int F77_DUMMY_MAIN() { return 1; }
10352 XF86VidModeSetGammaRamp ();
10357 rm -f conftest.$ac_objext conftest$ac_exeext
10358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10359 (eval $ac_link) 2>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } &&
10363 { ac_try='test -s conftest$ac_exeext'
10364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365 (eval $ac_try) 2>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; }; then
10369 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=yes
10371 echo "$as_me: failed program was:" >&5
10372 cat conftest.$ac_ext >&5
10373 ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp=no
10375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10376 LIBS=$ac_check_lib_save_LIBS
10378 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&5
10379 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp" >&6
10380 if test $ac_cv_lib_Xxf86vm_XF86VidModeSetGammaRamp = yes; then
10381 have_xf86gamma_ramp=yes
10386 CPPFLAGS="$ac_save_CPPFLAGS"
10387 LDFLAGS="$ac_save_LDFLAGS"
10388 # LIBS="$ac_save_LIBS"
10392 # if those tests succeeded, then we've really got the functions.
10393 if test "$have_xf86gamma" = yes; then
10394 cat >>confdefs.h <<\_ACEOF
10395 #define HAVE_XF86VMODE_GAMMA 1
10400 if test "$have_xf86gamma_ramp" = yes; then
10401 cat >>confdefs.h <<\_ACEOF
10402 #define HAVE_XF86VMODE_GAMMA_RAMP 1
10407 # pull in the lib, if we haven't already
10408 if test "$have_xf86gamma" = yes -a "$have_xf86vmode" = no; then
10409 SAVER_LIBS="$SAVER_LIBS -lXxf86vm"
10412 elif test "$with_xf86gamma" != no; then
10413 echo "error: must be yes or no: --with-xf86gamma-ext=$with_xf86vmode"
10418 ###############################################################################
10420 # Check for XF86MiscSetGrabKeysState (but only bother if we are already
10421 # using other XF86 stuff.)
10423 ###############################################################################
10425 have_xf86miscsetgrabkeysstate=no
10426 if test "$have_xf86gamma" = yes -o "$have_xf86vmode" = yes; then
10428 ac_save_CPPFLAGS="$CPPFLAGS"
10429 ac_save_LDFLAGS="$LDFLAGS"
10430 # ac_save_LIBS="$LIBS"
10432 if test \! -z "$includedir" ; then
10433 CPPFLAGS="$CPPFLAGS -I$includedir"
10435 # note: $X_CFLAGS includes $x_includes
10436 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10438 if test \! -z "$libdir" ; then
10439 LDFLAGS="$LDFLAGS -L$libdir"
10441 # note: $X_LIBS includes $x_libraries
10442 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
10444 echo "$as_me:$LINENO: checking for XF86MiscSetGrabKeysState in -lXxf86misc" >&5
10445 echo $ECHO_N "checking for XF86MiscSetGrabKeysState in -lXxf86misc... $ECHO_C" >&6
10446 if test "${ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState+set}" = set; then
10447 echo $ECHO_N "(cached) $ECHO_C" >&6
10449 ac_check_lib_save_LIBS=$LIBS
10450 LIBS="-lXxf86misc -lXext -lX11 $LIBS"
10451 cat >conftest.$ac_ext <<_ACEOF
10452 #line $LINENO "configure"
10453 #include "confdefs.h"
10455 /* Override any gcc2 internal prototype to avoid an error. */
10459 /* We use char because int might match the return type of a gcc2
10460 builtin and then its argument prototype would still apply. */
10461 char XF86MiscSetGrabKeysState ();
10462 #ifdef F77_DUMMY_MAIN
10463 # ifdef __cplusplus
10466 int F77_DUMMY_MAIN() { return 1; }
10471 XF86MiscSetGrabKeysState ();
10476 rm -f conftest.$ac_objext conftest$ac_exeext
10477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10478 (eval $ac_link) 2>&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } &&
10482 { ac_try='test -s conftest$ac_exeext'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10488 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=yes
10490 echo "$as_me: failed program was:" >&5
10491 cat conftest.$ac_ext >&5
10492 ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState=no
10494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10495 LIBS=$ac_check_lib_save_LIBS
10497 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&5
10498 echo "${ECHO_T}$ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState" >&6
10499 if test $ac_cv_lib_Xxf86misc_XF86MiscSetGrabKeysState = yes; then
10500 have_xf86miscsetgrabkeysstate=yes
10505 CPPFLAGS="$ac_save_CPPFLAGS"
10506 LDFLAGS="$ac_save_LDFLAGS"
10507 # LIBS="$ac_save_LIBS"
10509 if test "$have_xf86miscsetgrabkeysstate" = yes ; then
10510 SAVER_LIBS="$SAVER_LIBS -lXxf86misc"
10511 cat >>confdefs.h <<\_ACEOF
10512 #define HAVE_XF86MISCSETGRABKEYSSTATE 1
10519 ###############################################################################
10521 # Check for HP XHPDisableReset and XHPEnableReset.
10523 ###############################################################################
10525 echo "$as_me:$LINENO: checking for XHPDisableReset in X11/XHPlib.h" >&5
10526 echo $ECHO_N "checking for XHPDisableReset in X11/XHPlib.h... $ECHO_C" >&6
10528 ac_save_CPPFLAGS="$CPPFLAGS"
10529 if test \! -z "$includedir" ; then
10530 CPPFLAGS="$CPPFLAGS -I$includedir"
10532 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10533 cat >conftest.$ac_ext <<_ACEOF
10534 #line $LINENO "configure"
10535 #include "confdefs.h"
10536 #include <X11/XHPlib.h>
10539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10540 egrep "XHPDisableReset" >/dev/null 2>&1; then
10541 cat >>confdefs.h <<\_ACEOF
10542 #define HAVE_XHPDISABLERESET 1
10545 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
10546 echo "$as_me:$LINENO: result: yes" >&5
10547 echo "${ECHO_T}yes" >&6
10549 echo "$as_me:$LINENO: result: no" >&5
10550 echo "${ECHO_T}no" >&6
10554 CPPFLAGS="$ac_save_CPPFLAGS"
10557 ###############################################################################
10559 # Check for /proc/interrupts.
10561 ###############################################################################
10563 have_proc_interrupts=no
10564 with_proc_interrupts_req=unspecified
10566 # Check whether --with-proc-interrupts or --without-proc-interrupts was given.
10567 if test "${with_proc_interrupts+set}" = set; then
10568 withval="$with_proc_interrupts"
10569 with_proc_interrupts="$withval"; with_proc_interrupts_req="$withval"
10571 with_proc_interrupts=yes
10574 if test "$with_proc_interrupts" = yes; then
10576 echo "$as_me:$LINENO: checking whether /proc/interrupts contains keyboard data" >&5
10577 echo $ECHO_N "checking whether /proc/interrupts contains keyboard data... $ECHO_C" >&6
10578 if test "${ac_cv_have_proc_interrupts+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10581 ac_cv_have_proc_interrupts=no
10582 if grep keyboard /proc/interrupts >/dev/null 2>&1 ; then
10583 ac_cv_have_proc_interrupts=yes
10587 echo "$as_me:$LINENO: result: $ac_cv_have_proc_interrupts" >&5
10588 echo "${ECHO_T}$ac_cv_have_proc_interrupts" >&6
10589 have_proc_interrupts=$ac_cv_have_proc_interrupts
10591 if test "$have_proc_interrupts" = yes; then
10592 cat >>confdefs.h <<\_ACEOF
10593 #define HAVE_PROC_INTERRUPTS 1
10598 elif test "$with_proc_interrupts" != no; then
10599 echo "error: must be yes or no: --with-proc-interrupts=$with_proc_interrupts"
10604 ###############################################################################
10606 # The --enable-locking option
10608 ###############################################################################
10610 # Check whether --enable-locking or --disable-locking was given.
10611 if test "${enable_locking+set}" = set; then
10612 enableval="$enable_locking"
10613 enable_locking="$enableval"
10617 if test "$enable_locking" = yes; then
10619 elif test "$enable_locking" = no; then
10620 cat >>confdefs.h <<\_ACEOF
10621 #define NO_LOCKING 1
10625 echo "error: must be yes or no: --enable-locking=$enable_locking"
10631 ###############################################################################
10633 # The --enable-vt-locking option
10635 ###############################################################################
10637 #ac_vt_lockswitch=no
10638 #AC_ARG_ENABLE(vt-locking,[
10639 # --enable-vt-locking Compile in support for locking Virtual Terminals.
10640 # This is the default if the system supports it, and
10641 # if locking support is included (--enable-locking.)
10642 # --disable-vt-locking Do not allow locking of VTs, even if locking is
10644 # [enable_vt_locking="$enableval"],[enable_vt_locking=yes])
10645 #if test "$enable_vt_locking" = yes; then
10647 # AC_CACHE_CHECK([for the VT_LOCKSWITCH ioctl], ac_cv_vt_lockswitch,
10648 # [AC_TRY_COMPILE([#include <fcntl.h>
10649 # #include <sys/ioctl.h>
10650 # #include <sys/vt.h>],
10651 # [int x = VT_LOCKSWITCH; int y = VT_UNLOCKSWITCH;],
10652 # [ac_cv_vt_lockswitch=yes],
10653 # [ac_cv_vt_lockswitch=no])])
10654 # ac_vt_lockswitch=$ac_cv_vt_lockswitch
10656 #elif test "$enable_vt_locking" = no; then
10659 # echo "error: must be yes or no: --enable-vt-locking=$enable_vt_locking"
10663 #if test "$ac_vt_lockswitch" = yes; then
10664 # AC_DEFINE(HAVE_VT_LOCKSWITCH)
10665 # # the VT_LOCKSWITCH ioctl can only be used when running as root.
10666 # # #### but it doesn't work yet, so don't worry about that for now.
10671 ###############################################################################
10675 ###############################################################################
10679 # Solaris systems tend to come with PAM misconfigured.
10680 # Don't build it by default, even if the headers exist.
10681 with_pam_default=no
10684 # Default to building PAM support on all other systems, if it exists.
10685 with_pam_default=yes
10690 with_pam_req=unspecified
10693 # Check whether --with-pam or --without-pam was given.
10694 if test "${with_pam+set}" = set; then
10695 withval="$with_pam"
10696 with_pam="$withval"; with_pam_req="$withval"
10698 with_pam=$with_pam_default
10702 case "$with_pam" in
10707 echo "$as_me:$LINENO: checking for PAM headers" >&5
10708 echo $ECHO_N "checking for PAM headers... $ECHO_C" >&6
10709 d=$with_pam/include
10710 if test -d $d; then
10711 X_CFLAGS="-I$d $X_CFLAGS"
10712 echo "$as_me:$LINENO: result: $d" >&5
10713 echo "${ECHO_T}$d" >&6
10715 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10716 echo "${ECHO_T}not found ($d: no such directory)" >&6
10719 echo "$as_me:$LINENO: checking for PAM libs" >&5
10720 echo $ECHO_N "checking for PAM libs... $ECHO_C" >&6
10722 if test -d $d; then
10723 X_LIBS="-L$d $X_LIBS"
10724 echo "$as_me:$LINENO: result: $d" >&5
10725 echo "${ECHO_T}$d" >&6
10727 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
10728 echo "${ECHO_T}not found ($d: no such directory)" >&6
10731 # replace the directory string with "yes".
10733 with_pam=$with_pam_req
10738 echo "error: argument to --with-pam must be \"yes\", \"no\", or a directory."
10739 echo " If it is a directory, then \`DIR/include' will be added to"
10740 echo " the -I list, and \`DIR/lib' will be added to the -L list."
10746 if test "$enable_locking" = yes -a "$with_pam" = yes; then
10747 echo "$as_me:$LINENO: checking for PAM" >&5
10748 echo $ECHO_N "checking for PAM... $ECHO_C" >&6
10749 if test "${ac_cv_pam+set}" = set; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 ac_save_CPPFLAGS="$CPPFLAGS"
10754 if test \! -z "$includedir" ; then
10755 CPPFLAGS="$CPPFLAGS -I$includedir"
10757 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10758 cat >conftest.$ac_ext <<_ACEOF
10759 #line $LINENO "configure"
10760 #include "confdefs.h"
10761 #include <security/pam_appl.h>
10762 #ifdef F77_DUMMY_MAIN
10763 # ifdef __cplusplus
10766 int F77_DUMMY_MAIN() { return 1; }
10776 rm -f conftest.$ac_objext
10777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10778 (eval $ac_compile) 2>&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } &&
10782 { ac_try='test -s conftest.$ac_objext'
10783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784 (eval $ac_try) 2>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; }; then
10790 echo "$as_me: failed program was:" >&5
10791 cat conftest.$ac_ext >&5
10794 rm -f conftest.$ac_objext conftest.$ac_ext
10795 CPPFLAGS="$ac_save_CPPFLAGS"
10797 echo "$as_me:$LINENO: result: $ac_cv_pam" >&5
10798 echo "${ECHO_T}$ac_cv_pam" >&6
10799 if test "$ac_cv_pam" = yes ; then
10801 cat >>confdefs.h <<\_ACEOF
10805 PASSWD_LIBS="${PASSWD_LIBS} -lpam"
10807 # libpam typically requires dlopen and dlsym. On FreeBSD,
10808 # those are in libc. On Linux and Solaris, they're in libdl.
10809 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10810 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10811 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10814 ac_check_lib_save_LIBS=$LIBS
10816 cat >conftest.$ac_ext <<_ACEOF
10817 #line $LINENO "configure"
10818 #include "confdefs.h"
10820 /* Override any gcc2 internal prototype to avoid an error. */
10824 /* We use char because int might match the return type of a gcc2
10825 builtin and then its argument prototype would still apply. */
10827 #ifdef F77_DUMMY_MAIN
10828 # ifdef __cplusplus
10831 int F77_DUMMY_MAIN() { return 1; }
10841 rm -f conftest.$ac_objext conftest$ac_exeext
10842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10843 (eval $ac_link) 2>&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } &&
10847 { ac_try='test -s conftest$ac_exeext'
10848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; }; then
10853 ac_cv_lib_dl_dlopen=yes
10855 echo "$as_me: failed program was:" >&5
10856 cat conftest.$ac_ext >&5
10857 ac_cv_lib_dl_dlopen=no
10859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10860 LIBS=$ac_check_lib_save_LIBS
10862 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10863 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10864 if test $ac_cv_lib_dl_dlopen = yes; then
10865 PASSWD_LIBS="${PASSWD_LIBS} -ldl"
10869 echo "$as_me:$LINENO: checking how to call pam_strerror" >&5
10870 echo $ECHO_N "checking how to call pam_strerror... $ECHO_C" >&6
10871 if test "${ac_cv_pam_strerror_args+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10874 cat >conftest.$ac_ext <<_ACEOF
10875 #line $LINENO "configure"
10876 #include "confdefs.h"
10878 #include <stdlib.h>
10879 #include <security/pam_appl.h>
10880 #ifdef F77_DUMMY_MAIN
10881 # ifdef __cplusplus
10884 int F77_DUMMY_MAIN() { return 1; }
10889 pam_handle_t *pamh = 0;
10890 char *s = pam_strerror(pamh, PAM_SUCCESS);
10895 rm -f conftest.$ac_objext
10896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10897 (eval $ac_compile) 2>&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } &&
10901 { ac_try='test -s conftest.$ac_objext'
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; }; then
10907 ac_pam_strerror_args=2
10909 echo "$as_me: failed program was:" >&5
10910 cat conftest.$ac_ext >&5
10911 cat >conftest.$ac_ext <<_ACEOF
10912 #line $LINENO "configure"
10913 #include "confdefs.h"
10915 #include <stdlib.h>
10916 #include <security/pam_appl.h>
10917 #ifdef F77_DUMMY_MAIN
10918 # ifdef __cplusplus
10921 int F77_DUMMY_MAIN() { return 1; }
10927 pam_strerror(PAM_SUCCESS);
10932 rm -f conftest.$ac_objext
10933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10934 (eval $ac_compile) 2>&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } &&
10938 { ac_try='test -s conftest.$ac_objext'
10939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10940 (eval $ac_try) 2>&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); }; }; then
10944 ac_pam_strerror_args=1
10946 echo "$as_me: failed program was:" >&5
10947 cat conftest.$ac_ext >&5
10948 ac_pam_strerror_args=0
10950 rm -f conftest.$ac_objext conftest.$ac_ext
10952 rm -f conftest.$ac_objext conftest.$ac_ext
10953 ac_cv_pam_strerror_args=$ac_pam_strerror_args
10956 ac_pam_strerror_args=$ac_cv_pam_strerror_args
10957 if test "$ac_pam_strerror_args" = 1 ; then
10958 echo "$as_me:$LINENO: result: one argument" >&5
10959 echo "${ECHO_T}one argument" >&6
10960 elif test "$ac_pam_strerror_args" = 2 ; then
10961 cat >>confdefs.h <<\_ACEOF
10962 #define PAM_STRERROR_TWO_ARGS 1
10965 echo "$as_me:$LINENO: result: two arguments" >&5
10966 echo "${ECHO_T}two arguments" >&6
10968 echo "$as_me:$LINENO: result: unknown" >&5
10969 echo "${ECHO_T}unknown" >&6
10975 ###############################################################################
10977 # Check for Kerberos.
10979 ###############################################################################
10983 with_kerberos_req=unspecified
10986 # Check whether --with-kerberos or --without-kerberos was given.
10987 if test "${with_kerberos+set}" = set; then
10988 withval="$with_kerberos"
10989 with_kerberos="$withval"; with_kerberos_req="$withval"
10995 case "$with_kerberos" in
11000 echo "$as_me:$LINENO: checking for Kerberos headers" >&5
11001 echo $ECHO_N "checking for Kerberos headers... $ECHO_C" >&6
11002 d=$with_kerberos/include
11003 if test -d $d; then
11004 X_CFLAGS="-I$d $X_CFLAGS"
11005 echo "$as_me:$LINENO: result: $d" >&5
11006 echo "${ECHO_T}$d" >&6
11008 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11009 echo "${ECHO_T}not found ($d: no such directory)" >&6
11012 echo "$as_me:$LINENO: checking for Kerberos libs" >&5
11013 echo $ECHO_N "checking for Kerberos libs... $ECHO_C" >&6
11014 d=$with_kerberos/lib
11015 if test -d $d; then
11016 X_LIBS="-L$d $X_LIBS"
11017 echo "$as_me:$LINENO: result: $d" >&5
11018 echo "${ECHO_T}$d" >&6
11020 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11021 echo "${ECHO_T}not found ($d: no such directory)" >&6
11024 # replace the directory string with "yes".
11025 with_kerberos_req="yes"
11026 with_kerberos=$with_kerberos_req
11031 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
11032 echo " If it is a directory, then \`DIR/include' will be added to"
11033 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11039 if test "$enable_locking" = yes -a "$with_kerberos" = yes; then
11040 echo "$as_me:$LINENO: checking for Kerberos 4" >&5
11041 echo $ECHO_N "checking for Kerberos 4... $ECHO_C" >&6
11042 if test "${ac_cv_kerberos+set}" = set; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11046 ac_save_CPPFLAGS="$CPPFLAGS"
11047 if test \! -z "$includedir" ; then
11048 CPPFLAGS="$CPPFLAGS -I$includedir"
11050 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11051 cat >conftest.$ac_ext <<_ACEOF
11052 #line $LINENO "configure"
11053 #include "confdefs.h"
11055 #ifdef F77_DUMMY_MAIN
11056 # ifdef __cplusplus
11059 int F77_DUMMY_MAIN() { return 1; }
11069 rm -f conftest.$ac_objext
11070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11071 (eval $ac_compile) 2>&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } &&
11075 { ac_try='test -s conftest.$ac_objext'
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
11083 echo "$as_me: failed program was:" >&5
11084 cat conftest.$ac_ext >&5
11087 rm -f conftest.$ac_objext conftest.$ac_ext
11088 CPPFLAGS="$ac_save_CPPFLAGS"
11090 echo "$as_me:$LINENO: result: $ac_cv_kerberos" >&5
11091 echo "${ECHO_T}$ac_cv_kerberos" >&6
11092 echo "$as_me:$LINENO: checking for Kerberos 5" >&5
11093 echo $ECHO_N "checking for Kerberos 5... $ECHO_C" >&6
11094 if test "${ac_cv_kerberos5+set}" = set; then
11095 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 ac_save_CPPFLAGS="$CPPFLAGS"
11099 if test \! -z "$includedir" ; then
11100 CPPFLAGS="$CPPFLAGS -I$includedir"
11102 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11103 cat >conftest.$ac_ext <<_ACEOF
11104 #line $LINENO "configure"
11105 #include "confdefs.h"
11106 #include <kerberosIV/krb.h>
11107 #ifdef F77_DUMMY_MAIN
11108 # ifdef __cplusplus
11111 int F77_DUMMY_MAIN() { return 1; }
11121 rm -f conftest.$ac_objext
11122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11123 (eval $ac_compile) 2>&5
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } &&
11127 { ac_try='test -s conftest.$ac_objext'
11128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129 (eval $ac_try) 2>&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; }; then
11133 ac_cv_kerberos5=yes
11135 echo "$as_me: failed program was:" >&5
11136 cat conftest.$ac_ext >&5
11139 rm -f conftest.$ac_objext conftest.$ac_ext
11140 CPPFLAGS="$ac_save_CPPFLAGS"
11142 echo "$as_me:$LINENO: result: $ac_cv_kerberos5" >&5
11143 echo "${ECHO_T}$ac_cv_kerberos5" >&6
11145 if test "$ac_cv_kerberos" = yes ; then
11147 cat >>confdefs.h <<\_ACEOF
11148 #define HAVE_KERBEROS 1
11153 if test "$ac_cv_kerberos5" = yes ; then
11156 cat >>confdefs.h <<\_ACEOF
11157 #define HAVE_KERBEROS 1
11160 cat >>confdefs.h <<\_ACEOF
11161 #define HAVE_KERBEROS5 1
11166 if test "$have_kerberos5" = yes ; then
11167 # from Matt Knopp <mhat@infocalypse.netlag.com>
11168 # (who got it from amu@mit.edu)
11170 PASSWD_LIBS="$PASSWD_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
11172 # jwz: MacOS X uses -lkrb5, but not -lcrypt
11174 ac_save_CPPFLAGS="$CPPFLAGS"
11175 ac_save_LDFLAGS="$LDFLAGS"
11176 # ac_save_LIBS="$LIBS"
11178 if test \! -z "$includedir" ; then
11179 CPPFLAGS="$CPPFLAGS -I$includedir"
11181 # note: $X_CFLAGS includes $x_includes
11182 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11184 if test \! -z "$libdir" ; then
11185 LDFLAGS="$LDFLAGS -L$libdir"
11187 # note: $X_LIBS includes $x_libraries
11188 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
11190 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
11191 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
11192 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 ac_check_lib_save_LIBS=$LIBS
11196 LIBS="-lcrypt $LIBS"
11197 cat >conftest.$ac_ext <<_ACEOF
11198 #line $LINENO "configure"
11199 #include "confdefs.h"
11201 /* Override any gcc2 internal prototype to avoid an error. */
11205 /* We use char because int might match the return type of a gcc2
11206 builtin and then its argument prototype would still apply. */
11208 #ifdef F77_DUMMY_MAIN
11209 # ifdef __cplusplus
11212 int F77_DUMMY_MAIN() { return 1; }
11222 rm -f conftest.$ac_objext conftest$ac_exeext
11223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11224 (eval $ac_link) 2>&5
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); } &&
11228 { ac_try='test -s conftest$ac_exeext'
11229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; }; then
11234 ac_cv_lib_crypt_crypt=yes
11236 echo "$as_me: failed program was:" >&5
11237 cat conftest.$ac_ext >&5
11238 ac_cv_lib_crypt_crypt=no
11240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11241 LIBS=$ac_check_lib_save_LIBS
11243 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
11244 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
11245 if test $ac_cv_lib_crypt_crypt = yes; then
11246 PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
11249 CPPFLAGS="$ac_save_CPPFLAGS"
11250 LDFLAGS="$ac_save_LDFLAGS"
11251 # LIBS="$ac_save_LIBS"
11254 elif test "$have_kerberos" = yes ; then
11255 # from Tim Showalter <tjs@psaux.com> for FreeBSD 4.2
11256 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lcom_err"
11259 if test "$have_kerberos" = yes ; then
11260 echo "$as_me:$LINENO: checking for res_search" >&5
11261 echo $ECHO_N "checking for res_search... $ECHO_C" >&6
11262 if test "${ac_cv_func_res_search+set}" = set; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 cat >conftest.$ac_ext <<_ACEOF
11266 #line $LINENO "configure"
11267 #include "confdefs.h"
11268 /* System header to define __stub macros and hopefully few prototypes,
11269 which can conflict with char res_search (); below. */
11270 #include <assert.h>
11271 /* Override any gcc2 internal prototype to avoid an error. */
11275 /* We use char because int might match the return type of a gcc2
11276 builtin and then its argument prototype would still apply. */
11277 char res_search ();
11280 #ifdef F77_DUMMY_MAIN
11281 # ifdef __cplusplus
11284 int F77_DUMMY_MAIN() { return 1; }
11289 /* The GNU C library defines this for functions which it implements
11290 to always fail with ENOSYS. Some functions are actually named
11291 something starting with __ and the normal name is an alias. */
11292 #if defined (__stub_res_search) || defined (__stub___res_search)
11302 rm -f conftest.$ac_objext conftest$ac_exeext
11303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11304 (eval $ac_link) 2>&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } &&
11308 { ac_try='test -s conftest$ac_exeext'
11309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310 (eval $ac_try) 2>&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; }; then
11314 ac_cv_func_res_search=yes
11316 echo "$as_me: failed program was:" >&5
11317 cat conftest.$ac_ext >&5
11318 ac_cv_func_res_search=no
11320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11322 echo "$as_me:$LINENO: result: $ac_cv_func_res_search" >&5
11323 echo "${ECHO_T}$ac_cv_func_res_search" >&6
11324 if test $ac_cv_func_res_search = yes; then
11327 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5
11328 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
11329 if test "${ac_cv_lib_resolv_res_search+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 ac_check_lib_save_LIBS=$LIBS
11333 LIBS="-lresolv $LIBS"
11334 cat >conftest.$ac_ext <<_ACEOF
11335 #line $LINENO "configure"
11336 #include "confdefs.h"
11338 /* Override any gcc2 internal prototype to avoid an error. */
11342 /* We use char because int might match the return type of a gcc2
11343 builtin and then its argument prototype would still apply. */
11344 char res_search ();
11345 #ifdef F77_DUMMY_MAIN
11346 # ifdef __cplusplus
11349 int F77_DUMMY_MAIN() { return 1; }
11359 rm -f conftest.$ac_objext conftest$ac_exeext
11360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11361 (eval $ac_link) 2>&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } &&
11365 { ac_try='test -s conftest$ac_exeext'
11366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11367 (eval $ac_try) 2>&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); }; }; then
11371 ac_cv_lib_resolv_res_search=yes
11373 echo "$as_me: failed program was:" >&5
11374 cat conftest.$ac_ext >&5
11375 ac_cv_lib_resolv_res_search=no
11377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11378 LIBS=$ac_check_lib_save_LIBS
11380 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5
11381 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
11382 if test $ac_cv_lib_resolv_res_search = yes; then
11383 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
11385 { echo "$as_me:$LINENO: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&5
11386 echo "$as_me: WARNING: Can't find DNS resolver libraries needed for Kerberos" >&2;}
11396 ###############################################################################
11398 # Check for the nine billion variants of shadow passwords...
11400 ###############################################################################
11405 with_shadow_req=unspecified
11408 # Check whether --with-shadow or --without-shadow was given.
11409 if test "${with_shadow+set}" = set; then
11410 withval="$with_shadow"
11411 with_shadow="$withval"; with_shadow_req="$withval"
11417 case "$with_shadow" in
11422 echo "$as_me:$LINENO: checking for shadow password headers" >&5
11423 echo $ECHO_N "checking for shadow password headers... $ECHO_C" >&6
11424 d=$with_shadow/include
11425 if test -d $d; then
11426 X_CFLAGS="-I$d $X_CFLAGS"
11427 echo "$as_me:$LINENO: result: $d" >&5
11428 echo "${ECHO_T}$d" >&6
11430 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11431 echo "${ECHO_T}not found ($d: no such directory)" >&6
11434 echo "$as_me:$LINENO: checking for shadow password libs" >&5
11435 echo $ECHO_N "checking for shadow password libs... $ECHO_C" >&6
11437 if test -d $d; then
11438 X_LIBS="-L$d $X_LIBS"
11439 echo "$as_me:$LINENO: result: $d" >&5
11440 echo "${ECHO_T}$d" >&6
11442 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
11443 echo "${ECHO_T}not found ($d: no such directory)" >&6
11446 # replace the directory string with "yes".
11447 with_shadow_req="yes"
11448 with_shadow=$with_shadow_req
11453 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
11454 echo " If it is a directory, then \`DIR/include' will be added to"
11455 echo " the -I list, and \`DIR/lib' will be added to the -L list."
11461 if test "$enable_locking" = no ; then
11467 ###############################################################################
11469 # Check for Sun "adjunct" passwords.
11471 ###############################################################################
11473 if test "$with_shadow" = yes ; then
11474 echo "$as_me:$LINENO: checking for Sun-style shadow passwords" >&5
11475 echo $ECHO_N "checking for Sun-style shadow passwords... $ECHO_C" >&6
11476 if test "${ac_cv_sun_adjunct+set}" = set; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 ac_save_CPPFLAGS="$CPPFLAGS"
11481 if test \! -z "$includedir" ; then
11482 CPPFLAGS="$CPPFLAGS -I$includedir"
11484 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11485 cat >conftest.$ac_ext <<_ACEOF
11486 #line $LINENO "configure"
11487 #include "confdefs.h"
11488 #include <stdlib.h>
11489 #include <unistd.h>
11490 #include <sys/types.h>
11491 #include <sys/label.h>
11492 #include <sys/audit.h>
11493 #include <pwdadj.h>
11494 #ifdef F77_DUMMY_MAIN
11495 # ifdef __cplusplus
11498 int F77_DUMMY_MAIN() { return 1; }
11503 struct passwd_adjunct *p = getpwanam("nobody");
11504 const char *pw = p->pwa_passwd;
11509 rm -f conftest.$ac_objext
11510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11511 (eval $ac_compile) 2>&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); } &&
11515 { ac_try='test -s conftest.$ac_objext'
11516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517 (eval $ac_try) 2>&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; }; then
11521 ac_cv_sun_adjunct=yes
11523 echo "$as_me: failed program was:" >&5
11524 cat conftest.$ac_ext >&5
11525 ac_cv_sun_adjunct=no
11527 rm -f conftest.$ac_objext conftest.$ac_ext
11528 CPPFLAGS="$ac_save_CPPFLAGS"
11530 echo "$as_me:$LINENO: result: $ac_cv_sun_adjunct" >&5
11531 echo "${ECHO_T}$ac_cv_sun_adjunct" >&6
11532 if test "$ac_cv_sun_adjunct" = yes; then
11533 have_shadow_adjunct=yes
11540 ###############################################################################
11542 # Check for DEC and SCO so-called "enhanced" security.
11544 ###############################################################################
11546 if test "$with_shadow" = yes ; then
11547 echo "$as_me:$LINENO: checking for DEC-style shadow passwords" >&5
11548 echo $ECHO_N "checking for DEC-style shadow passwords... $ECHO_C" >&6
11549 if test "${ac_cv_enhanced_passwd+set}" = set; then
11550 echo $ECHO_N "(cached) $ECHO_C" >&6
11553 ac_save_CPPFLAGS="$CPPFLAGS"
11554 if test \! -z "$includedir" ; then
11555 CPPFLAGS="$CPPFLAGS -I$includedir"
11557 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11558 cat >conftest.$ac_ext <<_ACEOF
11559 #line $LINENO "configure"
11560 #include "confdefs.h"
11561 #include <stdlib.h>
11562 #include <unistd.h>
11563 #include <sys/types.h>
11565 #include <sys/security.h>
11567 #ifdef F77_DUMMY_MAIN
11568 # ifdef __cplusplus
11571 int F77_DUMMY_MAIN() { return 1; }
11576 struct pr_passwd *p;
11578 set_auth_parameters(0, 0);
11579 check_auth_parameters();
11580 p = getprpwnam("nobody");
11581 pw = p->ufld.fd_encrypt;
11586 rm -f conftest.$ac_objext
11587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11588 (eval $ac_compile) 2>&5
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); } &&
11592 { ac_try='test -s conftest.$ac_objext'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; }; then
11598 ac_cv_enhanced_passwd=yes
11600 echo "$as_me: failed program was:" >&5
11601 cat conftest.$ac_ext >&5
11602 ac_cv_enhanced_passwd=no
11604 rm -f conftest.$ac_objext conftest.$ac_ext
11605 CPPFLAGS="$ac_save_CPPFLAGS"
11607 echo "$as_me:$LINENO: result: $ac_cv_enhanced_passwd" >&5
11608 echo "${ECHO_T}$ac_cv_enhanced_passwd" >&6
11609 if test $ac_cv_enhanced_passwd = yes; then
11610 have_shadow_enhanced=yes
11614 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
11615 # (I'm told it needs -lcurses too, but I don't understand why.)
11616 # But on DEC, it's in -lsecurity.
11618 echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
11619 echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
11620 if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 ac_check_lib_save_LIBS=$LIBS
11624 LIBS="-lprot -lx $LIBS"
11625 cat >conftest.$ac_ext <<_ACEOF
11626 #line $LINENO "configure"
11627 #include "confdefs.h"
11629 /* Override any gcc2 internal prototype to avoid an error. */
11633 /* We use char because int might match the return type of a gcc2
11634 builtin and then its argument prototype would still apply. */
11635 char getprpwnam ();
11636 #ifdef F77_DUMMY_MAIN
11637 # ifdef __cplusplus
11640 int F77_DUMMY_MAIN() { return 1; }
11650 rm -f conftest.$ac_objext conftest$ac_exeext
11651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11652 (eval $ac_link) 2>&5
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); } &&
11656 { ac_try='test -s conftest$ac_exeext'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; }; then
11662 ac_cv_lib_prot_getprpwnam=yes
11664 echo "$as_me: failed program was:" >&5
11665 cat conftest.$ac_ext >&5
11666 ac_cv_lib_prot_getprpwnam=no
11668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11669 LIBS=$ac_check_lib_save_LIBS
11671 echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
11672 echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
11673 if test $ac_cv_lib_prot_getprpwnam = yes; then
11674 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
11676 echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
11677 echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
11678 if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11681 ac_check_lib_save_LIBS=$LIBS
11682 LIBS="-lsecurity $LIBS"
11683 cat >conftest.$ac_ext <<_ACEOF
11684 #line $LINENO "configure"
11685 #include "confdefs.h"
11687 /* Override any gcc2 internal prototype to avoid an error. */
11691 /* We use char because int might match the return type of a gcc2
11692 builtin and then its argument prototype would still apply. */
11693 char getprpwnam ();
11694 #ifdef F77_DUMMY_MAIN
11695 # ifdef __cplusplus
11698 int F77_DUMMY_MAIN() { return 1; }
11708 rm -f conftest.$ac_objext conftest$ac_exeext
11709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11710 (eval $ac_link) 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } &&
11714 { ac_try='test -s conftest$ac_exeext'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 ac_cv_lib_security_getprpwnam=yes
11722 echo "$as_me: failed program was:" >&5
11723 cat conftest.$ac_ext >&5
11724 ac_cv_lib_security_getprpwnam=no
11726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11727 LIBS=$ac_check_lib_save_LIBS
11729 echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
11730 echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
11731 if test $ac_cv_lib_security_getprpwnam = yes; then
11732 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
11740 ###############################################################################
11742 # Check for HP's entry in the "Not Invented Here" Sweepstakes.
11744 ###############################################################################
11746 if test "$with_shadow" = yes ; then
11747 echo "$as_me:$LINENO: checking for HP-style shadow passwords" >&5
11748 echo $ECHO_N "checking for HP-style shadow passwords... $ECHO_C" >&6
11749 if test "${ac_cv_hpux_passwd+set}" = set; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 ac_save_CPPFLAGS="$CPPFLAGS"
11754 if test \! -z "$includedir" ; then
11755 CPPFLAGS="$CPPFLAGS -I$includedir"
11757 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11758 cat >conftest.$ac_ext <<_ACEOF
11759 #line $LINENO "configure"
11760 #include "confdefs.h"
11761 #include <stdlib.h>
11762 #include <unistd.h>
11763 #include <sys/types.h>
11765 #include <hpsecurity.h>
11767 #ifdef F77_DUMMY_MAIN
11768 # ifdef __cplusplus
11771 int F77_DUMMY_MAIN() { return 1; }
11776 struct s_passwd *p = getspwnam("nobody");
11777 const char *pw = p->pw_passwd;
11782 rm -f conftest.$ac_objext
11783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11784 (eval $ac_compile) 2>&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } &&
11788 { ac_try='test -s conftest.$ac_objext'
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; }; then
11794 ac_cv_hpux_passwd=yes
11796 echo "$as_me: failed program was:" >&5
11797 cat conftest.$ac_ext >&5
11798 ac_cv_hpux_passwd=no
11800 rm -f conftest.$ac_objext conftest.$ac_ext
11801 CPPFLAGS="$ac_save_CPPFLAGS"
11803 echo "$as_me:$LINENO: result: $ac_cv_hpux_passwd" >&5
11804 echo "${ECHO_T}$ac_cv_hpux_passwd" >&6
11805 if test "$ac_cv_hpux_passwd" = yes; then
11806 have_shadow_hpux=yes
11810 # on HPUX, bigcrypt is in -lsec
11811 echo "$as_me:$LINENO: checking for bigcrypt in -lsec" >&5
11812 echo $ECHO_N "checking for bigcrypt in -lsec... $ECHO_C" >&6
11813 if test "${ac_cv_lib_sec_bigcrypt+set}" = set; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
11816 ac_check_lib_save_LIBS=$LIBS
11818 cat >conftest.$ac_ext <<_ACEOF
11819 #line $LINENO "configure"
11820 #include "confdefs.h"
11822 /* Override any gcc2 internal prototype to avoid an error. */
11826 /* We use char because int might match the return type of a gcc2
11827 builtin and then its argument prototype would still apply. */
11829 #ifdef F77_DUMMY_MAIN
11830 # ifdef __cplusplus
11833 int F77_DUMMY_MAIN() { return 1; }
11843 rm -f conftest.$ac_objext conftest$ac_exeext
11844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11845 (eval $ac_link) 2>&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } &&
11849 { ac_try='test -s conftest$ac_exeext'
11850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851 (eval $ac_try) 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; }; then
11855 ac_cv_lib_sec_bigcrypt=yes
11857 echo "$as_me: failed program was:" >&5
11858 cat conftest.$ac_ext >&5
11859 ac_cv_lib_sec_bigcrypt=no
11861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11862 LIBS=$ac_check_lib_save_LIBS
11864 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_bigcrypt" >&5
11865 echo "${ECHO_T}$ac_cv_lib_sec_bigcrypt" >&6
11866 if test $ac_cv_lib_sec_bigcrypt = yes; then
11867 PASSWD_LIBS="$PASSWD_LIBS -lsec"
11874 ###############################################################################
11876 # Check for FreeBSD-style shadow passwords.
11878 # On FreeBSD, getpwnam() and friends work just like on non-shadow-
11879 # password systems -- except you only get stuff in the pw_passwd field
11880 # if the running program is setuid. So, guess that we've got this
11881 # lossage to contend with if /etc/master.passwd exists, and default to
11882 # a setuid installation.
11884 ###############################################################################
11886 if test "$with_shadow" = yes ; then
11887 echo "$as_me:$LINENO: checking for FreeBSD-style shadow passwords" >&5
11888 echo $ECHO_N "checking for FreeBSD-style shadow passwords... $ECHO_C" >&6
11889 if test "${ac_cv_master_passwd+set}" = set; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11892 if test -f /etc/master.passwd ; then
11893 ac_cv_master_passwd=yes
11895 ac_cv_master_passwd=no
11898 echo "$as_me:$LINENO: result: $ac_cv_master_passwd" >&5
11899 echo "${ECHO_T}$ac_cv_master_passwd" >&6
11900 if test "$ac_cv_master_passwd" = yes; then
11906 ###############################################################################
11908 # Check for traditional (ha!) shadow passwords.
11910 ###############################################################################
11912 if test "$with_shadow" = yes ; then
11913 echo "$as_me:$LINENO: checking for generic shadow passwords" >&5
11914 echo $ECHO_N "checking for generic shadow passwords... $ECHO_C" >&6
11915 if test "${ac_cv_shadow+set}" = set; then
11916 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 ac_save_CPPFLAGS="$CPPFLAGS"
11920 if test \! -z "$includedir" ; then
11921 CPPFLAGS="$CPPFLAGS -I$includedir"
11923 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11924 cat >conftest.$ac_ext <<_ACEOF
11925 #line $LINENO "configure"
11926 #include "confdefs.h"
11927 #include <stdlib.h>
11928 #include <unistd.h>
11929 #include <sys/types.h>
11931 #include <shadow.h>
11932 #ifdef F77_DUMMY_MAIN
11933 # ifdef __cplusplus
11936 int F77_DUMMY_MAIN() { return 1; }
11941 struct spwd *p = getspnam("nobody");
11942 const char *pw = p->sp_pwdp;
11947 rm -f conftest.$ac_objext
11948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11949 (eval $ac_compile) 2>&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } &&
11953 { ac_try='test -s conftest.$ac_objext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
11961 echo "$as_me: failed program was:" >&5
11962 cat conftest.$ac_ext >&5
11965 rm -f conftest.$ac_objext conftest.$ac_ext
11966 CPPFLAGS="$ac_save_CPPFLAGS"
11968 echo "$as_me:$LINENO: result: $ac_cv_shadow" >&5
11969 echo "${ECHO_T}$ac_cv_shadow" >&6
11970 if test "$ac_cv_shadow" = yes; then
11974 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
11976 echo "$as_me:$LINENO: checking for getspnam in -lc" >&5
11977 echo $ECHO_N "checking for getspnam in -lc... $ECHO_C" >&6
11978 if test "${ac_cv_lib_c_getspnam+set}" = set; then
11979 echo $ECHO_N "(cached) $ECHO_C" >&6
11981 ac_check_lib_save_LIBS=$LIBS
11983 cat >conftest.$ac_ext <<_ACEOF
11984 #line $LINENO "configure"
11985 #include "confdefs.h"
11987 /* Override any gcc2 internal prototype to avoid an error. */
11991 /* We use char because int might match the return type of a gcc2
11992 builtin and then its argument prototype would still apply. */
11994 #ifdef F77_DUMMY_MAIN
11995 # ifdef __cplusplus
11998 int F77_DUMMY_MAIN() { return 1; }
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12010 (eval $ac_link) 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } &&
12014 { ac_try='test -s conftest$ac_exeext'
12015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016 (eval $ac_try) 2>&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; }; then
12020 ac_cv_lib_c_getspnam=yes
12022 echo "$as_me: failed program was:" >&5
12023 cat conftest.$ac_ext >&5
12024 ac_cv_lib_c_getspnam=no
12026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12027 LIBS=$ac_check_lib_save_LIBS
12029 echo "$as_me:$LINENO: result: $ac_cv_lib_c_getspnam" >&5
12030 echo "${ECHO_T}$ac_cv_lib_c_getspnam" >&6
12031 if test $ac_cv_lib_c_getspnam = yes; then
12035 if test "$have_getspnam" = no ; then
12036 echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
12037 echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
12038 if test "${ac_cv_lib_gen_getspnam+set}" = set; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
12041 ac_check_lib_save_LIBS=$LIBS
12043 cat >conftest.$ac_ext <<_ACEOF
12044 #line $LINENO "configure"
12045 #include "confdefs.h"
12047 /* Override any gcc2 internal prototype to avoid an error. */
12051 /* We use char because int might match the return type of a gcc2
12052 builtin and then its argument prototype would still apply. */
12054 #ifdef F77_DUMMY_MAIN
12055 # ifdef __cplusplus
12058 int F77_DUMMY_MAIN() { return 1; }
12068 rm -f conftest.$ac_objext conftest$ac_exeext
12069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12070 (eval $ac_link) 2>&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } &&
12074 { ac_try='test -s conftest$ac_exeext'
12075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076 (eval $ac_try) 2>&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; }; then
12080 ac_cv_lib_gen_getspnam=yes
12082 echo "$as_me: failed program was:" >&5
12083 cat conftest.$ac_ext >&5
12084 ac_cv_lib_gen_getspnam=no
12086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12087 LIBS=$ac_check_lib_save_LIBS
12089 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
12090 echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
12091 if test $ac_cv_lib_gen_getspnam = yes; then
12092 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
12100 ###############################################################################
12102 # Check for other libraries needed for non-shadow passwords.
12104 ###############################################################################
12106 if test "$enable_locking" = yes ; then
12108 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
12110 echo "$as_me:$LINENO: checking for crypt in -lc" >&5
12111 echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6
12112 if test "${ac_cv_lib_c_crypt+set}" = set; then
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
12115 ac_check_lib_save_LIBS=$LIBS
12117 cat >conftest.$ac_ext <<_ACEOF
12118 #line $LINENO "configure"
12119 #include "confdefs.h"
12121 /* Override any gcc2 internal prototype to avoid an error. */
12125 /* We use char because int might match the return type of a gcc2
12126 builtin and then its argument prototype would still apply. */
12128 #ifdef F77_DUMMY_MAIN
12129 # ifdef __cplusplus
12132 int F77_DUMMY_MAIN() { return 1; }
12142 rm -f conftest.$ac_objext conftest$ac_exeext
12143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12144 (eval $ac_link) 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } &&
12148 { ac_try='test -s conftest$ac_exeext'
12149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150 (eval $ac_try) 2>&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }; }; then
12154 ac_cv_lib_c_crypt=yes
12156 echo "$as_me: failed program was:" >&5
12157 cat conftest.$ac_ext >&5
12158 ac_cv_lib_c_crypt=no
12160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12161 LIBS=$ac_check_lib_save_LIBS
12163 echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
12164 echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6
12165 if test $ac_cv_lib_c_crypt = yes; then
12169 if test "$have_crypt" = no ; then
12170 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
12171 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
12172 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 ac_check_lib_save_LIBS=$LIBS
12176 LIBS="-lcrypt $LIBS"
12177 cat >conftest.$ac_ext <<_ACEOF
12178 #line $LINENO "configure"
12179 #include "confdefs.h"
12181 /* Override any gcc2 internal prototype to avoid an error. */
12185 /* We use char because int might match the return type of a gcc2
12186 builtin and then its argument prototype would still apply. */
12188 #ifdef F77_DUMMY_MAIN
12189 # ifdef __cplusplus
12192 int F77_DUMMY_MAIN() { return 1; }
12202 rm -f conftest.$ac_objext conftest$ac_exeext
12203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12204 (eval $ac_link) 2>&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } &&
12208 { ac_try='test -s conftest$ac_exeext'
12209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210 (eval $ac_try) 2>&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12214 ac_cv_lib_crypt_crypt=yes
12216 echo "$as_me: failed program was:" >&5
12217 cat conftest.$ac_ext >&5
12218 ac_cv_lib_crypt_crypt=no
12220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12221 LIBS=$ac_check_lib_save_LIBS
12223 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
12224 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
12225 if test $ac_cv_lib_crypt_crypt = yes; then
12226 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
12233 # Most of the above shadow mechanisms will have set need_setuid to yes,
12234 # if they were found. But, on some systems, we need setuid even when
12235 # using plain old vanilla passwords.
12237 if test "$enable_locking" = yes ; then
12239 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
12246 if test "$have_shadow_adjunct" = yes ; then
12247 cat >>confdefs.h <<\_ACEOF
12248 #define HAVE_ADJUNCT_PASSWD 1
12251 elif test "$have_shadow_enhanced" = yes ; then
12252 cat >>confdefs.h <<\_ACEOF
12253 #define HAVE_ENHANCED_PASSWD 1
12256 elif test "$have_shadow_hpux" = yes ; then
12257 cat >>confdefs.h <<\_ACEOF
12258 #define HAVE_HPUX_PASSWD 1
12261 elif test "$have_shadow" = yes ; then
12262 cat >>confdefs.h <<\_ACEOF
12263 #define HAVE_SHADOW_PASSWD 1
12269 ###############################################################################
12273 ###############################################################################
12276 with_motif_req=unspecified
12278 # Check whether --with-motif or --without-motif was given.
12279 if test "${with_motif+set}" = set; then
12280 withval="$with_motif"
12281 with_motif="$withval"; with_motif_req="$withval"
12287 case "$with_motif" in
12292 echo "$as_me:$LINENO: checking for Motif headers" >&5
12293 echo $ECHO_N "checking for Motif headers... $ECHO_C" >&6
12294 d=$with_motif/include
12295 if test -d $d; then
12296 X_CFLAGS="-I$d $X_CFLAGS"
12297 echo "$as_me:$LINENO: result: $d" >&5
12298 echo "${ECHO_T}$d" >&6
12300 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12301 echo "${ECHO_T}not found ($d: no such directory)" >&6
12304 echo "$as_me:$LINENO: checking for Motif libs" >&5
12305 echo $ECHO_N "checking for Motif libs... $ECHO_C" >&6
12307 if test -d $d; then
12308 X_LIBS="-L$d $X_LIBS"
12309 echo "$as_me:$LINENO: result: $d" >&5
12310 echo "${ECHO_T}$d" >&6
12312 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12313 echo "${ECHO_T}not found ($d: no such directory)" >&6
12316 # replace the directory string with "yes".
12317 with_motif_req="yes"
12318 with_motif=$with_motif_req
12323 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
12324 echo " If it is a directory, then \`DIR/include' will be added to"
12325 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12331 if test "$with_motif" != yes -a "$with_motif" != no ; then
12332 echo "error: must be yes or no: --with-motif=$with_motif"
12336 if test "$with_motif" = yes; then
12339 ac_save_CPPFLAGS="$CPPFLAGS"
12340 if test \! -z "$includedir" ; then
12341 CPPFLAGS="$CPPFLAGS -I$includedir"
12343 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12344 echo "$as_me:$LINENO: checking for Xm/Xm.h" >&5
12345 echo $ECHO_N "checking for Xm/Xm.h... $ECHO_C" >&6
12346 if test "${ac_cv_header_Xm_Xm_h+set}" = set; then
12347 echo $ECHO_N "(cached) $ECHO_C" >&6
12349 cat >conftest.$ac_ext <<_ACEOF
12350 #line $LINENO "configure"
12351 #include "confdefs.h"
12352 #include <stdlib.h>
12354 #include <X11/Intrinsic.h>
12358 rm -f conftest.$ac_objext
12359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12360 (eval $ac_compile) 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } &&
12364 { ac_try='test -s conftest.$ac_objext'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12370 ac_cv_header_Xm_Xm_h=yes
12372 echo "$as_me: failed program was:" >&5
12373 cat conftest.$ac_ext >&5
12374 ac_cv_header_Xm_Xm_h=no
12376 rm -f conftest.$ac_objext conftest.$ac_ext
12378 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_Xm_h" >&5
12379 echo "${ECHO_T}$ac_cv_header_Xm_Xm_h" >&6
12380 if test $ac_cv_header_Xm_Xm_h = yes; then
12382 cat >>confdefs.h <<\_ACEOF
12383 #define HAVE_MOTIF 1
12386 MOTIF_LIBS="$MOTIF_LIBS -lXm"
12390 CPPFLAGS="$ac_save_CPPFLAGS"
12394 if test "$have_motif" = yes; then
12396 ac_save_CPPFLAGS="$CPPFLAGS"
12397 if test \! -z "$includedir" ; then
12398 CPPFLAGS="$CPPFLAGS -I$includedir"
12400 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12401 echo "$as_me:$LINENO: checking for Xm/ComboBox.h" >&5
12402 echo $ECHO_N "checking for Xm/ComboBox.h... $ECHO_C" >&6
12403 if test "${ac_cv_header_Xm_ComboBox_h+set}" = set; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 cat >conftest.$ac_ext <<_ACEOF
12407 #line $LINENO "configure"
12408 #include "confdefs.h"
12409 #include <stdlib.h>
12411 #include <X11/Intrinsic.h>
12413 #include <Xm/ComboBox.h>
12415 rm -f conftest.$ac_objext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12417 (eval $ac_compile) 2>&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } &&
12421 { ac_try='test -s conftest.$ac_objext'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; }; then
12427 ac_cv_header_Xm_ComboBox_h=yes
12429 echo "$as_me: failed program was:" >&5
12430 cat conftest.$ac_ext >&5
12431 ac_cv_header_Xm_ComboBox_h=no
12433 rm -f conftest.$ac_objext conftest.$ac_ext
12435 echo "$as_me:$LINENO: result: $ac_cv_header_Xm_ComboBox_h" >&5
12436 echo "${ECHO_T}$ac_cv_header_Xm_ComboBox_h" >&6
12437 if test $ac_cv_header_Xm_ComboBox_h = yes; then
12438 cat >>confdefs.h <<\_ACEOF
12439 #define HAVE_XMCOMBOBOX 1
12445 CPPFLAGS="$ac_save_CPPFLAGS"
12449 ###############################################################################
12451 # Check for -lgtk (and Gnome stuff)
12453 ###############################################################################
12457 with_gtk_req=unspecified
12459 # Check whether --with-gtk or --without-gtk was given.
12460 if test "${with_gtk+set}" = set; then
12461 withval="$with_gtk"
12462 with_gtk="$withval"; with_gtk_req="$withval"
12467 # if --with-gtk=/directory/ was specified, remember that directory so that
12468 # we can also look for the `gtk-config' program in that directory.
12469 case "$with_gtk" in
12471 gtk_dir="$with_gtk"
12479 case "$with_gtk" in
12484 echo "$as_me:$LINENO: checking for Gtk headers" >&5
12485 echo $ECHO_N "checking for Gtk headers... $ECHO_C" >&6
12486 d=$with_gtk/include
12487 if test -d $d; then
12488 X_CFLAGS="-I$d $X_CFLAGS"
12489 echo "$as_me:$LINENO: result: $d" >&5
12490 echo "${ECHO_T}$d" >&6
12492 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12493 echo "${ECHO_T}not found ($d: no such directory)" >&6
12496 echo "$as_me:$LINENO: checking for Gtk libs" >&5
12497 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
12499 if test -d $d; then
12500 X_LIBS="-L$d $X_LIBS"
12501 echo "$as_me:$LINENO: result: $d" >&5
12502 echo "${ECHO_T}$d" >&6
12504 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12505 echo "${ECHO_T}not found ($d: no such directory)" >&6
12508 # replace the directory string with "yes".
12510 with_gtk=$with_gtk_req
12515 echo "error: argument to --with-gtk must be \"yes\", \"no\", or a directory."
12516 echo " If it is a directory, then \`DIR/include' will be added to"
12517 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12523 if test "$with_gtk" != yes -a "$with_gtk" != no ; then
12524 echo "error: must be yes or no: --with-gtk=$with_gtk"
12529 with_gnome_req=unspecified
12531 # Check whether --with-gnome or --without-gnome was given.
12532 if test "${with_gnome+set}" = set; then
12533 withval="$with_gnome"
12534 with_gnome="$withval"; with_gnome_req="$withval"
12539 # if --with-gnome=/directory/ was specified, remember that directory so that
12540 # we can also look for the `gnome-config' program in that directory.
12541 case "$with_gnome" in
12543 gnome_dir="$with_gnome"
12551 case "$with_gnome" in
12556 echo "$as_me:$LINENO: checking for Gnome headers" >&5
12557 echo $ECHO_N "checking for Gnome headers... $ECHO_C" >&6
12558 d=$with_gnome/include
12559 if test -d $d; then
12560 X_CFLAGS="-I$d $X_CFLAGS"
12561 echo "$as_me:$LINENO: result: $d" >&5
12562 echo "${ECHO_T}$d" >&6
12564 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12565 echo "${ECHO_T}not found ($d: no such directory)" >&6
12568 echo "$as_me:$LINENO: checking for Gnome libs" >&5
12569 echo $ECHO_N "checking for Gnome libs... $ECHO_C" >&6
12571 if test -d $d; then
12572 X_LIBS="-L$d $X_LIBS"
12573 echo "$as_me:$LINENO: result: $d" >&5
12574 echo "${ECHO_T}$d" >&6
12576 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
12577 echo "${ECHO_T}not found ($d: no such directory)" >&6
12580 # replace the directory string with "yes".
12581 with_gnome_req="yes"
12582 with_gnome=$with_gnome_req
12587 echo "error: argument to --with-gnome must be \"yes\", \"no\", or a directory."
12588 echo " If it is a directory, then \`DIR/include' will be added to"
12589 echo " the -I list, and \`DIR/lib' will be added to the -L list."
12595 if test "$with_gnome" != yes -a "$with_gnome" != no ; then
12596 echo "error: must be yes or no: --with-gnome=$with_gnome"
12600 parse_gtk_version_string() {
12603 maj=`echo $ac_gtk_version_string | sed -n 's/\..*//p'`
12604 min=`echo $ac_gtk_version_string | sed -n 's/[^.]*\.\([^.]*\).*/\1/p'`
12606 ac_gtk_version=`echo "$maj * 1000 + $min" | bc`
12607 if test -z "$ac_gtk_version"; then
12608 ac_gtk_version=unknown
12609 ac_gtk_version_string=unknown
12617 if test "$with_gtk" = yes; then
12620 # if the user specified --with-gtk=/foo/ or --with-gnome=/foo/ then
12621 # look in /foo/bin/ for glib-config, gtk-config, and gnome-config.
12625 if test ! -z "$gtk_dir"; then
12626 # canonicalize slashes.
12627 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
12628 gtk_path="$foo:$gtk_path"
12631 if test ! -z "$gnome_dir"; then
12632 # canonicalize slashes.
12633 foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
12634 gtk_path="$foo:$gtk_path"
12637 for ac_prog in pkg-config
12639 # Extract the first word of "$ac_prog", so it can be a program name with args.
12640 set dummy $ac_prog; ac_word=$2
12641 echo "$as_me:$LINENO: checking for $ac_word" >&5
12642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12643 if test "${ac_cv_path_pkg_config+set}" = set; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12646 case $pkg_config in
12648 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path.
12651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12652 for as_dir in $gtk_path
12655 test -z "$as_dir" && as_dir=.
12656 for ac_exec_ext in '' $ac_executable_extensions; do
12657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12658 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext"
12659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12668 pkg_config=$ac_cv_path_pkg_config
12670 if test -n "$pkg_config"; then
12671 echo "$as_me:$LINENO: result: $pkg_config" >&5
12672 echo "${ECHO_T}$pkg_config" >&6
12674 echo "$as_me:$LINENO: result: no" >&5
12675 echo "${ECHO_T}no" >&6
12678 test -n "$pkg_config" && break
12682 if test -n "$pkg_config" ; then
12685 # run pkg-config based tests.
12689 pkg_check_version() {
12690 if test "$ok" = yes ; then
12693 echo "$as_me:$LINENO: checking for $req" >&5
12694 echo $ECHO_N "checking for $req... $ECHO_C" >&6
12695 if $pkg_config --exists "$req" ; then
12696 vers=`$pkg_config --modversion "$req"`
12697 if $pkg_config --exists "$req >= $min" ; then
12698 echo "$as_me:$LINENO: result: $vers" >&5
12699 echo "${ECHO_T}$vers" >&6
12703 echo "$as_me:$LINENO: result: $vers (wanted >= $min)" >&5
12704 echo "${ECHO_T}$vers (wanted >= $min)" >&6
12709 echo "$as_me:$LINENO: result: no" >&5
12710 echo "${ECHO_T}no" >&6
12718 pkg_check_version gtk+-2.0 2.0.1 ; ac_gtk_version_string="$vers"
12719 pkg_check_version gmodule-2.0 2.0.0
12720 pkg_check_version libxml-2.0 2.4.6
12721 pkg_check_version libglade-2.0 1.99.0
12724 if test "$have_gtk" = yes; then
12726 cat >>confdefs.h <<\_ACEOF
12727 #define HAVE_GTK2 1
12731 if test -n "$ac_gtk_version_string" ; then
12732 gtk2_halfassed="$ac_gtk_version_string"
12733 gtk2_halfassed_lib="$req"
12737 if test "$have_gtk" = no; then
12739 # we don't have GTK 2. Let's look for GTK 1.
12743 pkg_check_version gtk+ 1.2 ; ac_gtk_version_string="$vers"
12744 pkg_check_version glib 1.0
12747 # Now check for Gnome...
12749 if test "$have_gtk" = yes -a "$with_gnome" = yes; then
12752 pkg_check_version capplet 1.0
12753 pkg_check_version gnomeui 1.0
12754 pkg_check_version gdk_pixbuf 0.1
12757 if test "$have_gnome" = no; then
12760 cat >>confdefs.h <<\_ACEOF
12761 #define HAVE_CRAPPLET 1
12768 if test "$have_gtk" = yes; then
12769 parse_gtk_version_string
12775 if test "$have_gtk" = yes; then
12776 echo "$as_me:$LINENO: checking for Gtk includes" >&5
12777 echo $ECHO_N "checking for Gtk includes... $ECHO_C" >&6
12778 if test "${ac_cv_gtk_config_cflags+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 ac_cv_gtk_config_cflags=`$pkg_config --cflags $pkgs`
12783 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
12784 echo "${ECHO_T}$ac_cv_gtk_config_cflags" >&6
12785 echo "$as_me:$LINENO: checking for Gtk libs" >&5
12786 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
12787 if test "${ac_cv_gtk_config_libs+set}" = set; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12790 ac_cv_gtk_config_libs=`$pkg_config --libs $pkgs`
12792 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
12793 echo "${ECHO_T}$ac_cv_gtk_config_libs" >&6
12795 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
12796 ac_gtk_config_libs=$ac_cv_gtk_config_libs
12798 ac_gnome_config_cflags=$ac_gtk_config_cflags
12799 ac_gnome_config_libs=$ac_gtk_config_libs
12804 # run {gnome,gtk}-config based tests.
12807 for ac_prog in glib12-config glib-config
12809 # Extract the first word of "$ac_prog", so it can be a program name with args.
12810 set dummy $ac_prog; ac_word=$2
12811 echo "$as_me:$LINENO: checking for $ac_word" >&5
12812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12813 if test "${ac_cv_path_glib_config+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12816 case $glib_config in
12818 ac_cv_path_glib_config="$glib_config" # Let the user override the test with a path.
12821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822 for as_dir in $gtk_path
12825 test -z "$as_dir" && as_dir=.
12826 for ac_exec_ext in '' $ac_executable_extensions; do
12827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12828 ac_cv_path_glib_config="$as_dir/$ac_word$ac_exec_ext"
12829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12838 glib_config=$ac_cv_path_glib_config
12840 if test -n "$glib_config"; then
12841 echo "$as_me:$LINENO: result: $glib_config" >&5
12842 echo "${ECHO_T}$glib_config" >&6
12844 echo "$as_me:$LINENO: result: no" >&5
12845 echo "${ECHO_T}no" >&6
12848 test -n "$glib_config" && break
12851 for ac_prog in gtk12-config gtk-config
12853 # Extract the first word of "$ac_prog", so it can be a program name with args.
12854 set dummy $ac_prog; ac_word=$2
12855 echo "$as_me:$LINENO: checking for $ac_word" >&5
12856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12857 if test "${ac_cv_path_gtk_config+set}" = set; then
12858 echo $ECHO_N "(cached) $ECHO_C" >&6
12860 case $gtk_config in
12862 ac_cv_path_gtk_config="$gtk_config" # Let the user override the test with a path.
12865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12866 for as_dir in $gtk_path
12869 test -z "$as_dir" && as_dir=.
12870 for ac_exec_ext in '' $ac_executable_extensions; do
12871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12872 ac_cv_path_gtk_config="$as_dir/$ac_word$ac_exec_ext"
12873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12882 gtk_config=$ac_cv_path_gtk_config
12884 if test -n "$gtk_config"; then
12885 echo "$as_me:$LINENO: result: $gtk_config" >&5
12886 echo "${ECHO_T}$gtk_config" >&6
12888 echo "$as_me:$LINENO: result: no" >&5
12889 echo "${ECHO_T}no" >&6
12892 test -n "$gtk_config" && break
12896 if test "$with_gnome" = yes; then
12897 for ac_prog in gnome-config
12899 # Extract the first word of "$ac_prog", so it can be a program name with args.
12900 set dummy $ac_prog; ac_word=$2
12901 echo "$as_me:$LINENO: checking for $ac_word" >&5
12902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12903 if test "${ac_cv_path_gnome_config+set}" = set; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12906 case $gnome_config in
12908 ac_cv_path_gnome_config="$gnome_config" # Let the user override the test with a path.
12911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12912 for as_dir in $gtk_path
12915 test -z "$as_dir" && as_dir=.
12916 for ac_exec_ext in '' $ac_executable_extensions; do
12917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12918 ac_cv_path_gnome_config="$as_dir/$ac_word$ac_exec_ext"
12919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12928 gnome_config=$ac_cv_path_gnome_config
12930 if test -n "$gnome_config"; then
12931 echo "$as_me:$LINENO: result: $gnome_config" >&5
12932 echo "${ECHO_T}$gnome_config" >&6
12934 echo "$as_me:$LINENO: result: no" >&5
12935 echo "${ECHO_T}no" >&6
12938 test -n "$gnome_config" && break
12943 if test -n "$glib_config" -a -n "$gtk_config" ; then
12945 if test "$with_gnome" = yes -a -n "$gnome_config" ; then
12950 if test "$have_gtk" = yes; then
12951 echo "$as_me:$LINENO: checking Gtk version number" >&5
12952 echo $ECHO_N "checking Gtk version number... $ECHO_C" >&6
12953 if test "${ac_cv_gtk_version_string+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 ac_cv_gtk_version_string=`$gtk_config --version`
12958 echo "$as_me:$LINENO: result: $ac_cv_gtk_version_string" >&5
12959 echo "${ECHO_T}$ac_cv_gtk_version_string" >&6
12960 ac_gtk_version_string=$ac_cv_gtk_version_string
12961 parse_gtk_version_string
12964 if test "$have_gtk" = yes; then
12965 if test "$ac_gtk_version" = "unknown" || test "$ac_gtk_version" -lt 1002
12973 if test "$have_gtk" = yes; then
12974 echo "$as_me:$LINENO: checking for Gtk includes" >&5
12975 echo $ECHO_N "checking for Gtk includes... $ECHO_C" >&6
12976 if test "${ac_cv_gtk_config_cflags+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12979 ac_cv_gtk_config_cflags=`$gtk_config --cflags`
12981 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_cflags" >&5
12982 echo "${ECHO_T}$ac_cv_gtk_config_cflags" >&6
12983 echo "$as_me:$LINENO: checking for Gtk libs" >&5
12984 echo $ECHO_N "checking for Gtk libs... $ECHO_C" >&6
12985 if test "${ac_cv_gtk_config_libs+set}" = set; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12988 ac_cv_gtk_config_libs=`$gtk_config --libs`
12990 echo "$as_me:$LINENO: result: $ac_cv_gtk_config_libs" >&5
12991 echo "${ECHO_T}$ac_cv_gtk_config_libs" >&6
12993 ac_gtk_config_cflags=$ac_cv_gtk_config_cflags
12994 ac_gtk_config_libs=$ac_cv_gtk_config_libs
12996 # Check for Gnome Capplet support.
12997 # Note that this is only needed with Gnome 1.x, not Gnome 2.x.
12998 # In a Gnome 2.x world, libcapplet will not exist.
12999 # (In fact, this likely won't even be checked, since in a Gnome 2.x
13000 # world, we will probably be up in the "$pkg_config" branch instead
13001 # of here in the "$gnome_config" branch.)
13003 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
13004 gnome_config_libs="gtk capplet gnomeui gdk_pixbuf"
13005 echo "$as_me:$LINENO: checking for Gnome capplet includes" >&5
13006 echo $ECHO_N "checking for Gnome capplet includes... $ECHO_C" >&6
13007 if test "${ac_cv_gnome_config_cflags+set}" = set; then
13008 echo $ECHO_N "(cached) $ECHO_C" >&6
13010 if ( $gnome_config --cflags $gnome_config_libs 2>&1 | \
13011 grep Unknown >/dev/null ) ; then
13012 ac_cv_gnome_config_cflags=''
13014 ac_cv_gnome_config_cflags=`$gnome_config --cflags $gnome_config_libs`
13018 ac_gnome_config_cflags=$ac_cv_gnome_config_cflags
13019 if test "$ac_gnome_config_cflags" = "" ; then
13021 echo "$as_me:$LINENO: result: no" >&5
13022 echo "${ECHO_T}no" >&6
13024 echo "$as_me:$LINENO: result: $ac_gnome_config_cflags" >&5
13025 echo "${ECHO_T}$ac_gnome_config_cflags" >&6
13029 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
13030 echo "$as_me:$LINENO: checking for Gnome capplet libs" >&5
13031 echo $ECHO_N "checking for Gnome capplet libs... $ECHO_C" >&6
13032 if test "${ac_cv_gnome_config_libs+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13035 if ( $gnome_config --libs $gnome_config_libs 2>&1 |
13036 grep Unknown >/dev/null ) ; then
13037 ac_cv_gnome_config_libs=''
13039 ac_cv_gnome_config_libs=`$gnome_config --libs $gnome_config_libs`
13043 ac_gnome_config_libs=$ac_cv_gnome_config_libs
13044 if test "$ac_gnome_config_libs" = "" ; then
13046 echo "$as_me:$LINENO: result: no" >&5
13047 echo "${ECHO_T}no" >&6
13049 echo "$as_me:$LINENO: result: $ac_gnome_config_libs" >&5
13050 echo "${ECHO_T}$ac_gnome_config_libs" >&6
13054 # If we have Gnome, then override the gtk-config values with
13055 # the gnome-config values.
13057 if test "$have_gnome" = yes -a "$have_gtk" = yes; then
13058 ac_gtk_config_cflags=$ac_gnome_config_cflags
13059 ac_gtk_config_libs=$ac_gnome_config_libs
13060 cat >>confdefs.h <<\_ACEOF
13061 #define HAVE_CRAPPLET 1
13066 fi # end of {gnome,gtk}-config based tests
13068 if test "$have_gtk" = yes -a "$have_gtk2" = no; then
13069 # check for this function that was not in libcapplet 1.2.
13070 # (only needed in Gnome/Gtk 1.x, not Gnome/Gtk 2.x)
13072 ac_save_CPPFLAGS="$CPPFLAGS"
13073 ac_save_LDFLAGS="$LDFLAGS"
13074 # ac_save_LIBS="$LIBS"
13076 if test \! -z "$includedir" ; then
13077 CPPFLAGS="$CPPFLAGS -I$includedir"
13079 # note: $X_CFLAGS includes $x_includes
13080 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13082 if test \! -z "$libdir" ; then
13083 LDFLAGS="$LDFLAGS -L$libdir"
13085 # note: $X_LIBS includes $x_libraries
13086 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13088 echo "$as_me:$LINENO: checking for capplet_widget_changes_are_immediate in -lcapplet" >&5
13089 echo $ECHO_N "checking for capplet_widget_changes_are_immediate in -lcapplet... $ECHO_C" >&6
13090 if test "${ac_cv_lib_capplet_capplet_widget_changes_are_immediate+set}" = set; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
13093 ac_check_lib_save_LIBS=$LIBS
13094 LIBS="-lcapplet $ac_gnome_config_libs $LIBS"
13095 cat >conftest.$ac_ext <<_ACEOF
13096 #line $LINENO "configure"
13097 #include "confdefs.h"
13099 /* Override any gcc2 internal prototype to avoid an error. */
13103 /* We use char because int might match the return type of a gcc2
13104 builtin and then its argument prototype would still apply. */
13105 char capplet_widget_changes_are_immediate ();
13106 #ifdef F77_DUMMY_MAIN
13107 # ifdef __cplusplus
13110 int F77_DUMMY_MAIN() { return 1; }
13115 capplet_widget_changes_are_immediate ();
13120 rm -f conftest.$ac_objext conftest$ac_exeext
13121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13122 (eval $ac_link) 2>&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } &&
13126 { ac_try='test -s conftest$ac_exeext'
13127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128 (eval $ac_try) 2>&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; }; then
13132 ac_cv_lib_capplet_capplet_widget_changes_are_immediate=yes
13134 echo "$as_me: failed program was:" >&5
13135 cat conftest.$ac_ext >&5
13136 ac_cv_lib_capplet_capplet_widget_changes_are_immediate=no
13138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13139 LIBS=$ac_check_lib_save_LIBS
13141 echo "$as_me:$LINENO: result: $ac_cv_lib_capplet_capplet_widget_changes_are_immediate" >&5
13142 echo "${ECHO_T}$ac_cv_lib_capplet_capplet_widget_changes_are_immediate" >&6
13143 if test $ac_cv_lib_capplet_capplet_widget_changes_are_immediate = yes; then
13144 cat >>confdefs.h <<\_ACEOF
13145 #define HAVE_CRAPPLET_IMMEDIATE 1
13152 CPPFLAGS="$ac_save_CPPFLAGS"
13153 LDFLAGS="$ac_save_LDFLAGS"
13154 # LIBS="$ac_save_LIBS"
13160 if test "$have_gtk" = yes; then
13161 if test -n "$pkg_config"; then
13162 if test "$have_gtk2" = yes; then
13163 GNOME_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
13165 GNOME_DATADIR=`$pkg_config --variable=prefix gtk+`
13168 GNOME_DATADIR=`$gtk_config --prefix`
13170 GNOME_DATADIR="$GNOME_DATADIR/share"
13173 # .desktop files go in different places in Gnome 1.x and Gnome 2.x...
13174 if test "$have_gtk2" = yes; then
13175 GNOME_PANELDIR='$(GNOME_PANELDIR2)'
13177 GNOME_PANELDIR='$(GNOME_PANELDIR1)'
13181 if test "$have_gtk" = yes; then
13182 INCLUDES="$INCLUDES $ac_gtk_config_cflags"
13183 GTK_LIBS="$GTK_LIBS $ac_gtk_config_libs"
13184 cat >>confdefs.h <<\_ACEOF
13189 if test "$have_gtk2" = yes; then
13192 GTK_EXTRA_OBJS="\$(GTK_EXTRA_OBJS)"
13199 # Check for the Gnome Help Browser.
13201 if test "$have_gtk" = yes; then
13202 for ac_prog in yelp gnome-help-browser
13204 # Extract the first word of "$ac_prog", so it can be a program name with args.
13205 set dummy $ac_prog; ac_word=$2
13206 echo "$as_me:$LINENO: checking for $ac_word" >&5
13207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13208 if test "${ac_cv_prog_have_gnome_help+set}" = set; then
13209 echo $ECHO_N "(cached) $ECHO_C" >&6
13211 if test -n "$have_gnome_help"; then
13212 ac_cv_prog_have_gnome_help="$have_gnome_help" # Let the user override the test.
13214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215 for as_dir in $PATH
13218 test -z "$as_dir" && as_dir=.
13219 for ac_exec_ext in '' $ac_executable_extensions; do
13220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13221 ac_cv_prog_have_gnome_help="$ac_prog"
13222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13230 have_gnome_help=$ac_cv_prog_have_gnome_help
13231 if test -n "$have_gnome_help"; then
13232 echo "$as_me:$LINENO: result: $have_gnome_help" >&5
13233 echo "${ECHO_T}$have_gnome_help" >&6
13235 echo "$as_me:$LINENO: result: no" >&5
13236 echo "${ECHO_T}no" >&6
13239 test -n "$have_gnome_help" && break
13241 test -n "$have_gnome_help" || have_gnome_help="no"
13243 if test "$have_gnome_help" != no; then
13244 have_gnome_help=yes
13249 ###############################################################################
13253 ###############################################################################
13256 with_xml_req=unspecified
13259 # Check whether --with-xml or --without-xml was given.
13260 if test "${with_xml+set}" = set; then
13261 withval="$with_xml"
13262 with_xml="$withval"; with_xml_req="$withval"
13267 # if --with-xml=/directory/ was specified, remember that directory so that
13268 # we can also look for the `xml-config' program in that directory.
13269 case "$with_xml" in
13271 xml_dir="$with_xml"
13279 case "$with_xml" in
13284 echo "$as_me:$LINENO: checking for XML headers" >&5
13285 echo $ECHO_N "checking for XML headers... $ECHO_C" >&6
13286 d=$with_xml/include
13287 if test -d $d; then
13288 X_CFLAGS="-I$d $X_CFLAGS"
13289 echo "$as_me:$LINENO: result: $d" >&5
13290 echo "${ECHO_T}$d" >&6
13292 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13293 echo "${ECHO_T}not found ($d: no such directory)" >&6
13296 echo "$as_me:$LINENO: checking for XML libs" >&5
13297 echo $ECHO_N "checking for XML libs... $ECHO_C" >&6
13299 if test -d $d; then
13300 X_LIBS="-L$d $X_LIBS"
13301 echo "$as_me:$LINENO: result: $d" >&5
13302 echo "${ECHO_T}$d" >&6
13304 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
13305 echo "${ECHO_T}not found ($d: no such directory)" >&6
13308 # replace the directory string with "yes".
13310 with_xml=$with_xml_req
13315 echo "error: argument to --with-xml must be \"yes\", \"no\", or a directory."
13316 echo " If it is a directory, then \`DIR/include' will be added to"
13317 echo " the -I list, and \`DIR/lib' will be added to the -L list."
13323 if test "$with_xml" != yes -a "$with_xml" != no ; then
13324 echo "error: must be yes or no: --with-xml=$with_xml"
13328 if test "$with_xml" = yes; then
13332 # if the user specified --with-gtk=/foo/ or --with-gnome=/foo/ then
13333 # look in /foo/bin/ for for xml-config.
13337 if test ! -z "$gtk_dir"; then
13338 # canonicalize slashes.
13339 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
13340 xml_path="$foo:$xml_path"
13343 if test ! -z "$gnome_dir"; then
13344 # canonicalize slashes.
13345 foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
13346 xml_path="$foo:$xml_path"
13349 if test -n "$pkg_config" ; then
13352 # run pkg-config based tests.
13357 # If we have Gtk 2.x, then *only* XML 2.x will work.
13358 # If we have Gtk 1.x, or don't have Gtk at all, then
13359 # either XML 1.x or 2.x will work.
13361 # First check for XML 2.x.
13363 pkg_check_version libxml-2.0 2.4.6
13365 # If that didn't work (we don't have XML 2.x) and we *don't* have
13366 # Gtk 2.x, then check to see if we have XML 1.x
13368 if test "$ok" = no -a "$have_gtk2" = no; then
13370 pkg_check_version libxml 1.0
13375 if test "$have_xml" = yes; then
13376 echo "$as_me:$LINENO: checking for XML includes" >&5
13377 echo $ECHO_N "checking for XML includes... $ECHO_C" >&6
13378 if test "${ac_cv_xml_config_cflags+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13381 ac_cv_xml_config_cflags=`$pkg_config --cflags $pkgs`
13383 echo "$as_me:$LINENO: result: $ac_cv_xml_config_cflags" >&5
13384 echo "${ECHO_T}$ac_cv_xml_config_cflags" >&6
13385 echo "$as_me:$LINENO: checking for XML libs" >&5
13386 echo $ECHO_N "checking for XML libs... $ECHO_C" >&6
13387 if test "${ac_cv_xml_config_libs+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 ac_cv_xml_config_libs=`$pkg_config --libs $pkgs`
13392 echo "$as_me:$LINENO: result: $ac_cv_xml_config_libs" >&5
13393 echo "${ECHO_T}$ac_cv_xml_config_libs" >&6
13394 ac_xml_config_cflags=$ac_cv_xml_config_cflags
13395 ac_xml_config_libs=$ac_cv_xml_config_libs
13401 # run {xml2,xml}-config based tests.
13404 for ac_prog in xml2-config xml-config
13406 # Extract the first word of "$ac_prog", so it can be a program name with args.
13407 set dummy $ac_prog; ac_word=$2
13408 echo "$as_me:$LINENO: checking for $ac_word" >&5
13409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13410 if test "${ac_cv_path_xml_config+set}" = set; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13413 case $xml_config in
13415 ac_cv_path_xml_config="$xml_config" # Let the user override the test with a path.
13418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13419 for as_dir in $xml_path
13422 test -z "$as_dir" && as_dir=.
13423 for ac_exec_ext in '' $ac_executable_extensions; do
13424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13425 ac_cv_path_xml_config="$as_dir/$ac_word$ac_exec_ext"
13426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13435 xml_config=$ac_cv_path_xml_config
13437 if test -n "$xml_config"; then
13438 echo "$as_me:$LINENO: result: $xml_config" >&5
13439 echo "${ECHO_T}$xml_config" >&6
13441 echo "$as_me:$LINENO: result: no" >&5
13442 echo "${ECHO_T}no" >&6
13445 test -n "$xml_config" && break
13449 # If we found the xml-config program, run it to get flags.
13451 if test -n "$xml_config" ; then
13452 echo "$as_me:$LINENO: checking for XML includes" >&5
13453 echo $ECHO_N "checking for XML includes... $ECHO_C" >&6
13454 if test "${ac_cv_xml_config_cflags+set}" = set; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13457 ac_cv_xml_config_cflags=`$xml_config --cflags`
13459 echo "$as_me:$LINENO: result: $ac_cv_xml_config_cflags" >&5
13460 echo "${ECHO_T}$ac_cv_xml_config_cflags" >&6
13461 echo "$as_me:$LINENO: checking for XML libs" >&5
13462 echo $ECHO_N "checking for XML libs... $ECHO_C" >&6
13463 if test "${ac_cv_xml_config_libs+set}" = set; then
13464 echo $ECHO_N "(cached) $ECHO_C" >&6
13466 ac_cv_xml_config_libs=`$xml_config --libs`
13468 echo "$as_me:$LINENO: result: $ac_cv_xml_config_libs" >&5
13469 echo "${ECHO_T}$ac_cv_xml_config_libs" >&6
13470 ac_xml_config_cflags=$ac_cv_xml_config_cflags
13471 ac_xml_config_libs=$ac_cv_xml_config_libs
13474 ac_save_xml_CPPFLAGS="$CPPFLAGS"
13475 CPPFLAGS="$CPPFLAGS $ac_xml_config_cflags"
13477 # first try <libxml/parser.h> which is the new way...
13480 ac_save_CPPFLAGS="$CPPFLAGS"
13481 if test \! -z "$includedir" ; then
13482 CPPFLAGS="$CPPFLAGS -I$includedir"
13484 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13485 echo "$as_me:$LINENO: checking for libxml/xmlIO.h" >&5
13486 echo $ECHO_N "checking for libxml/xmlIO.h... $ECHO_C" >&6
13487 if test "${ac_cv_header_libxml_xmlIO_h+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 cat >conftest.$ac_ext <<_ACEOF
13491 #line $LINENO "configure"
13492 #include "confdefs.h"
13493 #include <libxml/parser.h>
13495 #include <libxml/xmlIO.h>
13497 rm -f conftest.$ac_objext
13498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13499 (eval $ac_compile) 2>&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } &&
13503 { ac_try='test -s conftest.$ac_objext'
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; }; then
13509 ac_cv_header_libxml_xmlIO_h=yes
13511 echo "$as_me: failed program was:" >&5
13512 cat conftest.$ac_ext >&5
13513 ac_cv_header_libxml_xmlIO_h=no
13515 rm -f conftest.$ac_objext conftest.$ac_ext
13517 echo "$as_me:$LINENO: result: $ac_cv_header_libxml_xmlIO_h" >&5
13518 echo "${ECHO_T}$ac_cv_header_libxml_xmlIO_h" >&6
13519 if test $ac_cv_header_libxml_xmlIO_h = yes; then
13524 CPPFLAGS="$ac_save_CPPFLAGS"
13526 # if that didn't work, then try just <parser.h> which is the old way...
13528 if test "$have_xml" = no; then
13530 ac_save_CPPFLAGS="$CPPFLAGS"
13531 if test \! -z "$includedir" ; then
13532 CPPFLAGS="$CPPFLAGS -I$includedir"
13534 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13535 echo "$as_me:$LINENO: checking for xmlIO.h" >&5
13536 echo $ECHO_N "checking for xmlIO.h... $ECHO_C" >&6
13537 if test "${ac_cv_header_xmlIO_h+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 cat >conftest.$ac_ext <<_ACEOF
13541 #line $LINENO "configure"
13542 #include "confdefs.h"
13543 #include <parser.h>
13547 rm -f conftest.$ac_objext
13548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13549 (eval $ac_compile) 2>&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } &&
13553 { ac_try='test -s conftest.$ac_objext'
13554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); }; }; then
13559 ac_cv_header_xmlIO_h=yes
13561 echo "$as_me: failed program was:" >&5
13562 cat conftest.$ac_ext >&5
13563 ac_cv_header_xmlIO_h=no
13565 rm -f conftest.$ac_objext conftest.$ac_ext
13567 echo "$as_me:$LINENO: result: $ac_cv_header_xmlIO_h" >&5
13568 echo "${ECHO_T}$ac_cv_header_xmlIO_h" >&6
13569 if test $ac_cv_header_xmlIO_h = yes; then
13570 have_xml=yes; have_old_xml=yes
13574 CPPFLAGS="$ac_save_CPPFLAGS"
13577 CPPFLAGS="$ac_save_xml_CPPFLAGS"
13582 if test "$have_xml" = yes; then
13583 # we have the XML headers; now make sure zlib is around.
13584 # yes, it's stupid we have to do this too, but there is
13585 # dependency screwage in Gnome.
13587 ac_save_CPPFLAGS="$CPPFLAGS"
13588 ac_save_LDFLAGS="$LDFLAGS"
13589 # ac_save_LIBS="$LIBS"
13591 if test \! -z "$includedir" ; then
13592 CPPFLAGS="$CPPFLAGS -I$includedir"
13594 # note: $X_CFLAGS includes $x_includes
13595 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13597 if test \! -z "$libdir" ; then
13598 LDFLAGS="$LDFLAGS -L$libdir"
13600 # note: $X_LIBS includes $x_libraries
13601 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13603 echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
13604 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6
13605 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13608 ac_check_lib_save_LIBS=$LIBS
13610 cat >conftest.$ac_ext <<_ACEOF
13611 #line $LINENO "configure"
13612 #include "confdefs.h"
13614 /* Override any gcc2 internal prototype to avoid an error. */
13618 /* We use char because int might match the return type of a gcc2
13619 builtin and then its argument prototype would still apply. */
13620 char zlibVersion ();
13621 #ifdef F77_DUMMY_MAIN
13622 # ifdef __cplusplus
13625 int F77_DUMMY_MAIN() { return 1; }
13635 rm -f conftest.$ac_objext conftest$ac_exeext
13636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13637 (eval $ac_link) 2>&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } &&
13641 { ac_try='test -s conftest$ac_exeext'
13642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643 (eval $ac_try) 2>&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; }; then
13647 ac_cv_lib_z_zlibVersion=yes
13649 echo "$as_me: failed program was:" >&5
13650 cat conftest.$ac_ext >&5
13651 ac_cv_lib_z_zlibVersion=no
13653 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13654 LIBS=$ac_check_lib_save_LIBS
13656 echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
13657 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6
13658 if test $ac_cv_lib_z_zlibVersion = yes; then
13662 CPPFLAGS="$ac_save_CPPFLAGS"
13663 LDFLAGS="$ac_save_LDFLAGS"
13664 # LIBS="$ac_save_LIBS"
13666 if test "$have_zlib" = no; then
13672 if test "$have_xml" = yes; then
13673 # we have the header, now check for the library
13677 ac_save_CPPFLAGS="$CPPFLAGS"
13678 ac_save_LDFLAGS="$LDFLAGS"
13679 # ac_save_LIBS="$LIBS"
13681 if test \! -z "$includedir" ; then
13682 CPPFLAGS="$CPPFLAGS -I$includedir"
13684 # note: $X_CFLAGS includes $x_includes
13685 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13687 if test \! -z "$libdir" ; then
13688 LDFLAGS="$LDFLAGS -L$libdir"
13690 # note: $X_LIBS includes $x_libraries
13691 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
13693 echo "$as_me:$LINENO: checking for xmlParseChunk in -lc" >&5
13694 echo $ECHO_N "checking for xmlParseChunk in -lc... $ECHO_C" >&6
13695 if test "${ac_cv_lib_c_xmlParseChunk+set}" = set; then
13696 echo $ECHO_N "(cached) $ECHO_C" >&6
13698 ac_check_lib_save_LIBS=$LIBS
13699 LIBS="-lc $ac_xml_config_libs $LIBS"
13700 cat >conftest.$ac_ext <<_ACEOF
13701 #line $LINENO "configure"
13702 #include "confdefs.h"
13704 /* Override any gcc2 internal prototype to avoid an error. */
13708 /* We use char because int might match the return type of a gcc2
13709 builtin and then its argument prototype would still apply. */
13710 char xmlParseChunk ();
13711 #ifdef F77_DUMMY_MAIN
13712 # ifdef __cplusplus
13715 int F77_DUMMY_MAIN() { return 1; }
13725 rm -f conftest.$ac_objext conftest$ac_exeext
13726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13727 (eval $ac_link) 2>&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); } &&
13731 { ac_try='test -s conftest$ac_exeext'
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
13737 ac_cv_lib_c_xmlParseChunk=yes
13739 echo "$as_me: failed program was:" >&5
13740 cat conftest.$ac_ext >&5
13741 ac_cv_lib_c_xmlParseChunk=no
13743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13744 LIBS=$ac_check_lib_save_LIBS
13746 echo "$as_me:$LINENO: result: $ac_cv_lib_c_xmlParseChunk" >&5
13747 echo "${ECHO_T}$ac_cv_lib_c_xmlParseChunk" >&6
13748 if test $ac_cv_lib_c_xmlParseChunk = yes; then
13751 XML_LIBS="$ac_xml_config_libs"
13752 cat >>confdefs.h <<\_ACEOF
13760 CPPFLAGS="$ac_save_CPPFLAGS"
13761 LDFLAGS="$ac_save_LDFLAGS"
13762 # LIBS="$ac_save_LIBS"
13766 if test "$have_xml" = yes; then
13767 INCLUDES="$INCLUDES $ac_xml_config_cflags"
13768 GTK_LIBS="$GTK_LIBS $ac_xml_config_libs"
13769 cat >>confdefs.h <<\_ACEOF
13773 if test "$have_old_xml" = yes; then
13774 cat >>confdefs.h <<\_ACEOF
13775 #define HAVE_OLD_XML_HEADERS 1
13784 ###############################################################################
13786 # Checking whether Motif is really Lesstif.
13788 ###############################################################################
13791 if test "$have_motif" = yes ; then
13792 echo "$as_me:$LINENO: checking whether Motif is really LessTif" >&5
13793 echo $ECHO_N "checking whether Motif is really LessTif... $ECHO_C" >&6
13794 if test "${ac_cv_have_lesstif+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13798 ac_save_CPPFLAGS="$CPPFLAGS"
13799 if test \! -z "$includedir" ; then
13800 CPPFLAGS="$CPPFLAGS -I$includedir"
13802 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13803 cat >conftest.$ac_ext <<_ACEOF
13804 #line $LINENO "configure"
13805 #include "confdefs.h"
13807 #ifdef F77_DUMMY_MAIN
13808 # ifdef __cplusplus
13811 int F77_DUMMY_MAIN() { return 1; }
13816 long vers = LesstifVersion;
13821 rm -f conftest.$ac_objext
13822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13823 (eval $ac_compile) 2>&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); } &&
13827 { ac_try='test -s conftest.$ac_objext'
13828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829 (eval $ac_try) 2>&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; }; then
13833 ac_cv_have_lesstif=yes
13835 echo "$as_me: failed program was:" >&5
13836 cat conftest.$ac_ext >&5
13837 ac_cv_have_lesstif=no
13839 rm -f conftest.$ac_objext conftest.$ac_ext
13840 CPPFLAGS="$ac_save_CPPFLAGS"
13842 echo "$as_me:$LINENO: result: $ac_cv_have_lesstif" >&5
13843 echo "${ECHO_T}$ac_cv_have_lesstif" >&6
13844 have_lesstif=$ac_cv_have_lesstif
13848 lesstif_version=unknown
13849 lesstif_version_string=unknown
13851 if test "$have_lesstif" = yes ; then
13853 echo unknown > conftest-lt
13854 echo "$as_me:$LINENO: checking LessTif version number" >&5
13855 echo $ECHO_N "checking LessTif version number... $ECHO_C" >&6
13856 if test "${ac_cv_lesstif_version_string+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13860 ac_save_CPPFLAGS="$CPPFLAGS"
13861 if test \! -z "$includedir" ; then
13862 CPPFLAGS="$CPPFLAGS -I$includedir"
13864 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13865 if test "$cross_compiling" = yes; then
13866 ac_cv_lesstif_version=unknown
13867 ac_cv_lesstif_version_string=unknown
13869 cat >conftest.$ac_ext <<_ACEOF
13870 #line $LINENO "configure"
13871 #include "confdefs.h"
13875 FILE *f = fopen("conftest-lt", "w");
13877 fprintf(f, "%d %d.%d\n", LesstifVersion,
13878 LESSTIF_VERSION, LESSTIF_REVISION);
13883 rm -f conftest$ac_exeext
13884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13885 (eval $ac_link) 2>&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; }; then
13894 ltv=`cat conftest-lt`
13895 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
13896 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
13898 echo "$as_me: program exited with status $ac_status" >&5
13899 echo "$as_me: failed program was:" >&5
13900 cat conftest.$ac_ext >&5
13901 ( exit $ac_status )
13902 ac_cv_lesstif_version=unknown
13903 ac_cv_lesstif_version_string=unknown
13905 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13907 CPPFLAGS="$ac_save_CPPFLAGS"
13909 echo "$as_me:$LINENO: result: $ac_cv_lesstif_version_string" >&5
13910 echo "${ECHO_T}$ac_cv_lesstif_version_string" >&6
13912 lesstif_version=$ac_cv_lesstif_version
13913 lesstif_version_string=$ac_cv_lesstif_version_string
13918 if test "$have_motif" = yes ; then
13920 echo unknown > conftest-mt
13921 echo "$as_me:$LINENO: checking Motif version number" >&5
13922 echo $ECHO_N "checking Motif version number... $ECHO_C" >&6
13923 if test "${ac_cv_motif_version_string+set}" = set; then
13924 echo $ECHO_N "(cached) $ECHO_C" >&6
13927 ac_save_CPPFLAGS="$CPPFLAGS"
13928 if test \! -z "$includedir" ; then
13929 CPPFLAGS="$CPPFLAGS -I$includedir"
13931 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
13932 if test "$cross_compiling" = yes; then
13933 ac_cv_motif_version=unknown
13934 ac_cv_motif_version_string=unknown
13936 cat >conftest.$ac_ext <<_ACEOF
13937 #line $LINENO "configure"
13938 #include "confdefs.h"
13942 FILE *f = fopen("conftest-mt", "w");
13944 fprintf(f, "%d %d.%d\n", XmVersion,
13945 XmVERSION, XmREVISION);
13950 rm -f conftest$ac_exeext
13951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13952 (eval $ac_link) 2>&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13957 (eval $ac_try) 2>&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); }; }; then
13961 mtv=`cat conftest-mt`
13962 ac_cv_motif_version=`echo $mtv | sed 's/ .*//'`
13963 ac_cv_motif_version_string=`echo $mtv | sed 's/.* //'`
13965 echo "$as_me: program exited with status $ac_status" >&5
13966 echo "$as_me: failed program was:" >&5
13967 cat conftest.$ac_ext >&5
13968 ( exit $ac_status )
13969 ac_cv_motif_version=unknown
13970 ac_cv_motif_version_string=unknown
13972 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13974 CPPFLAGS="$ac_save_CPPFLAGS"
13976 echo "$as_me:$LINENO: result: $ac_cv_motif_version_string" >&5
13977 echo "${ECHO_T}$ac_cv_motif_version_string" >&6
13979 motif_version=$ac_cv_motif_version
13980 motif_version_string=$ac_cv_motif_version_string
13985 ###############################################################################
13987 # Checking whether Motif requires -lXpm.
13989 # If this is Motif 2.x, and we have XPM, then link against XPM as well.
13990 # The deal is, Motif 2.x requires XPM -- but it's a compilation option
13991 # of the library whether to build the XPM code into libXm, or whether
13992 # to rely on an external libXm. So the only way to tell whether XPM is
13993 # a link-time requirement is to examine libXm.a, which is very
13994 # difficult to do in an autoconf script. So... if it's Motif 2.x, we
13995 # always link against XPM if the XPM lib exists (and this will be a
13996 # no-op if libXm happens to already have the XPM code in it.)
13998 ###############################################################################
14000 motif_requires_xpm=no
14001 if test "$have_motif" = yes ; then
14002 echo "$as_me:$LINENO: checking whether Motif requires XPM" >&5
14003 echo $ECHO_N "checking whether Motif requires XPM... $ECHO_C" >&6
14004 if test "$motif_version" = "unknown" || test "$motif_version" -ge 2000
14006 motif_requires_xpm=yes
14007 echo "$as_me:$LINENO: result: maybe" >&5
14008 echo "${ECHO_T}maybe" >&6
14010 echo "$as_me:$LINENO: result: no" >&5
14011 echo "${ECHO_T}no" >&6
14016 ###############################################################################
14018 # Checking whether Motif requires -lXp.
14020 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
14021 # Extension". Why this extension isn't in -lXext with all the others,
14024 ###############################################################################
14027 if test "$have_motif" = yes ; then
14030 ac_save_CPPFLAGS="$CPPFLAGS"
14031 ac_save_LDFLAGS="$LDFLAGS"
14032 # ac_save_LIBS="$LIBS"
14034 if test \! -z "$includedir" ; then
14035 CPPFLAGS="$CPPFLAGS -I$includedir"
14037 # note: $X_CFLAGS includes $x_includes
14038 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14040 if test \! -z "$libdir" ; then
14041 LDFLAGS="$LDFLAGS -L$libdir"
14043 # note: $X_LIBS includes $x_libraries
14044 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14046 echo "$as_me:$LINENO: checking for XpQueryExtension in -lXp" >&5
14047 echo $ECHO_N "checking for XpQueryExtension in -lXp... $ECHO_C" >&6
14048 if test "${ac_cv_lib_Xp_XpQueryExtension+set}" = set; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14051 ac_check_lib_save_LIBS=$LIBS
14052 LIBS="-lXp -lX11 -lXext -lm $LIBS"
14053 cat >conftest.$ac_ext <<_ACEOF
14054 #line $LINENO "configure"
14055 #include "confdefs.h"
14057 /* Override any gcc2 internal prototype to avoid an error. */
14061 /* We use char because int might match the return type of a gcc2
14062 builtin and then its argument prototype would still apply. */
14063 char XpQueryExtension ();
14064 #ifdef F77_DUMMY_MAIN
14065 # ifdef __cplusplus
14068 int F77_DUMMY_MAIN() { return 1; }
14073 XpQueryExtension ();
14078 rm -f conftest.$ac_objext conftest$ac_exeext
14079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14080 (eval $ac_link) 2>&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } &&
14084 { ac_try='test -s conftest$ac_exeext'
14085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14086 (eval $ac_try) 2>&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; }; then
14090 ac_cv_lib_Xp_XpQueryExtension=yes
14092 echo "$as_me: failed program was:" >&5
14093 cat conftest.$ac_ext >&5
14094 ac_cv_lib_Xp_XpQueryExtension=no
14096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14097 LIBS=$ac_check_lib_save_LIBS
14099 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpQueryExtension" >&5
14100 echo "${ECHO_T}$ac_cv_lib_Xp_XpQueryExtension" >&6
14101 if test $ac_cv_lib_Xp_XpQueryExtension = yes; then
14102 have_xp_ext=yes; MOTIF_LIBS="$MOTIF_LIBS -lXp"
14107 CPPFLAGS="$ac_save_CPPFLAGS"
14108 LDFLAGS="$ac_save_LDFLAGS"
14109 # LIBS="$ac_save_LIBS"
14114 ###############################################################################
14116 # Checking whether Motif requires -lXintl (for _Xsetlocale.)
14118 ###############################################################################
14121 if test "$have_motif" = yes ; then
14123 ac_save_CPPFLAGS="$CPPFLAGS"
14124 ac_save_LDFLAGS="$LDFLAGS"
14125 # ac_save_LIBS="$LIBS"
14127 if test \! -z "$includedir" ; then
14128 CPPFLAGS="$CPPFLAGS -I$includedir"
14130 # note: $X_CFLAGS includes $x_includes
14131 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14133 if test \! -z "$libdir" ; then
14134 LDFLAGS="$LDFLAGS -L$libdir"
14136 # note: $X_LIBS includes $x_libraries
14137 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14139 echo "$as_me:$LINENO: checking for _Xsetlocale in -lXintl" >&5
14140 echo $ECHO_N "checking for _Xsetlocale in -lXintl... $ECHO_C" >&6
14141 if test "${ac_cv_lib_Xintl__Xsetlocale+set}" = set; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 ac_check_lib_save_LIBS=$LIBS
14145 LIBS="-lXintl -lX11 -lXext -lm $LIBS"
14146 cat >conftest.$ac_ext <<_ACEOF
14147 #line $LINENO "configure"
14148 #include "confdefs.h"
14150 /* Override any gcc2 internal prototype to avoid an error. */
14154 /* We use char because int might match the return type of a gcc2
14155 builtin and then its argument prototype would still apply. */
14156 char _Xsetlocale ();
14157 #ifdef F77_DUMMY_MAIN
14158 # ifdef __cplusplus
14161 int F77_DUMMY_MAIN() { return 1; }
14171 rm -f conftest.$ac_objext conftest$ac_exeext
14172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14173 (eval $ac_link) 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try='test -s conftest$ac_exeext'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 ac_cv_lib_Xintl__Xsetlocale=yes
14185 echo "$as_me: failed program was:" >&5
14186 cat conftest.$ac_ext >&5
14187 ac_cv_lib_Xintl__Xsetlocale=no
14189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14190 LIBS=$ac_check_lib_save_LIBS
14192 echo "$as_me:$LINENO: result: $ac_cv_lib_Xintl__Xsetlocale" >&5
14193 echo "${ECHO_T}$ac_cv_lib_Xintl__Xsetlocale" >&6
14194 if test $ac_cv_lib_Xintl__Xsetlocale = yes; then
14200 CPPFLAGS="$ac_save_CPPFLAGS"
14201 LDFLAGS="$ac_save_LDFLAGS"
14202 # LIBS="$ac_save_LIBS"
14204 if test "$have_xintl" = yes; then
14205 MOTIF_LIBS="$MOTIF_LIBS -lXintl"
14210 ###############################################################################
14212 # Check for -lGL or -lMesaGL.
14214 ###############################################################################
14218 with_gl_req=unspecified
14221 # Check whether --with-gl or --without-gl was given.
14222 if test "${with_gl+set}" = set; then
14224 with_gl="$withval"; with_gl_req="$withval"
14235 echo "$as_me:$LINENO: checking for GL headers" >&5
14236 echo $ECHO_N "checking for GL headers... $ECHO_C" >&6
14238 if test -d $d; then
14239 X_CFLAGS="-I$d $X_CFLAGS"
14240 echo "$as_me:$LINENO: result: $d" >&5
14241 echo "${ECHO_T}$d" >&6
14243 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14244 echo "${ECHO_T}not found ($d: no such directory)" >&6
14247 echo "$as_me:$LINENO: checking for GL libs" >&5
14248 echo $ECHO_N "checking for GL libs... $ECHO_C" >&6
14250 if test -d $d; then
14251 X_LIBS="-L$d $X_LIBS"
14252 echo "$as_me:$LINENO: result: $d" >&5
14253 echo "${ECHO_T}$d" >&6
14255 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14256 echo "${ECHO_T}not found ($d: no such directory)" >&6
14259 # replace the directory string with "yes".
14261 with_gl=$with_gl_req
14266 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
14267 echo " If it is a directory, then \`DIR/include' will be added to"
14268 echo " the -I list, and \`DIR/lib' will be added to the -L list."
14274 ac_mesagl_version=unknown
14275 ac_mesagl_version_string=unknown
14277 if test "$with_gl" = yes; then
14279 ac_save_CPPFLAGS="$CPPFLAGS"
14280 if test \! -z "$includedir" ; then
14281 CPPFLAGS="$CPPFLAGS -I$includedir"
14283 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14284 if test "${ac_cv_header_GL_gl_h+set}" = set; then
14285 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
14286 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
14287 if test "${ac_cv_header_GL_gl_h+set}" = set; then
14288 echo $ECHO_N "(cached) $ECHO_C" >&6
14290 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
14291 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
14293 # Is the header compilable?
14294 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
14295 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
14296 cat >conftest.$ac_ext <<_ACEOF
14297 #line $LINENO "configure"
14298 #include "confdefs.h"
14299 $ac_includes_default
14302 rm -f conftest.$ac_objext
14303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14304 (eval $ac_compile) 2>&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); } &&
14308 { ac_try='test -s conftest.$ac_objext'
14309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; }; then
14314 ac_header_compiler=yes
14316 echo "$as_me: failed program was:" >&5
14317 cat conftest.$ac_ext >&5
14318 ac_header_compiler=no
14320 rm -f conftest.$ac_objext conftest.$ac_ext
14321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14322 echo "${ECHO_T}$ac_header_compiler" >&6
14324 # Is the header present?
14325 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
14326 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
14327 cat >conftest.$ac_ext <<_ACEOF
14328 #line $LINENO "configure"
14329 #include "confdefs.h"
14332 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14335 egrep -v '^ *\+' conftest.er1 >conftest.err
14337 cat conftest.err >&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); } >/dev/null; then
14340 if test -s conftest.err; then
14341 ac_cpp_err=$ac_c_preproc_warn_flag
14348 if test -z "$ac_cpp_err"; then
14349 ac_header_preproc=yes
14351 echo "$as_me: failed program was:" >&5
14352 cat conftest.$ac_ext >&5
14353 ac_header_preproc=no
14355 rm -f conftest.err conftest.$ac_ext
14356 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14357 echo "${ECHO_T}$ac_header_preproc" >&6
14359 # So? What about this header?
14360 case $ac_header_compiler:$ac_header_preproc in
14362 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14363 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14364 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
14365 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;};;
14367 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
14368 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
14369 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
14370 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
14371 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
14372 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;};;
14374 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
14375 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
14376 if test "${ac_cv_header_GL_gl_h+set}" = set; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14379 ac_cv_header_GL_gl_h=$ac_header_preproc
14381 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
14382 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
14385 if test $ac_cv_header_GL_gl_h = yes; then
14392 CPPFLAGS="$ac_save_CPPFLAGS"
14393 if test "$have_gl" = yes ; then
14395 ac_save_CPPFLAGS="$CPPFLAGS"
14396 if test \! -z "$includedir" ; then
14397 CPPFLAGS="$CPPFLAGS -I$includedir"
14399 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14400 echo "$as_me:$LINENO: checking for GL/glx.h" >&5
14401 echo $ECHO_N "checking for GL/glx.h... $ECHO_C" >&6
14402 if test "${ac_cv_header_GL_glx_h+set}" = set; then
14403 echo $ECHO_N "(cached) $ECHO_C" >&6
14405 cat >conftest.$ac_ext <<_ACEOF
14406 #line $LINENO "configure"
14407 #include "confdefs.h"
14410 #include <GL/glx.h>
14412 rm -f conftest.$ac_objext
14413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14414 (eval $ac_compile) 2>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
14418 { ac_try='test -s conftest.$ac_objext'
14419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14420 (eval $ac_try) 2>&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; }; then
14424 ac_cv_header_GL_glx_h=yes
14426 echo "$as_me: failed program was:" >&5
14427 cat conftest.$ac_ext >&5
14428 ac_cv_header_GL_glx_h=no
14430 rm -f conftest.$ac_objext conftest.$ac_ext
14432 echo "$as_me:$LINENO: result: $ac_cv_header_GL_glx_h" >&5
14433 echo "${ECHO_T}$ac_cv_header_GL_glx_h" >&6
14434 if test $ac_cv_header_GL_glx_h = yes; then
14441 CPPFLAGS="$ac_save_CPPFLAGS"
14444 # If we have the headers, try and figure out which vendor it's from.
14446 if test "$have_gl" = yes ; then
14448 # We need to know whether it's MesaGL so that we know which libraries
14451 echo "$as_me:$LINENO: checking whether GL is really MesaGL" >&5
14452 echo $ECHO_N "checking whether GL is really MesaGL... $ECHO_C" >&6
14453 if test "${ac_cv_have_mesa_gl+set}" = set; then
14454 echo $ECHO_N "(cached) $ECHO_C" >&6
14456 ac_cv_have_mesa_gl=no
14458 ac_save_CPPFLAGS="$CPPFLAGS"
14459 if test \! -z "$includedir" ; then
14460 CPPFLAGS="$CPPFLAGS -I$includedir"
14462 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14463 cat >conftest.$ac_ext <<_ACEOF
14464 #line $LINENO "configure"
14465 #include "confdefs.h"
14466 #include <GL/glx.h>
14469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14470 egrep "Mesa|MESA" >/dev/null 2>&1; then
14471 ac_cv_have_mesa_gl=yes
14475 CPPFLAGS="$ac_save_CPPFLAGS"
14478 echo "$as_me:$LINENO: result: $ac_cv_have_mesa_gl" >&5
14479 echo "${ECHO_T}$ac_cv_have_mesa_gl" >&6
14480 ac_have_mesa_gl=$ac_cv_have_mesa_gl
14487 # Some versions of MesaGL are compiled to require -lpthread.
14488 # So if the Mesa headers exist, and -lpthread exists, then always
14489 # link -lpthread after the Mesa libs (be they named -lGL or -lMesaGL.)
14491 if test "$ac_have_mesa_gl" = yes; then
14492 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
14493 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
14494 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
14495 echo $ECHO_N "(cached) $ECHO_C" >&6
14497 ac_check_lib_save_LIBS=$LIBS
14498 LIBS="-lpthread $LIBS"
14499 cat >conftest.$ac_ext <<_ACEOF
14500 #line $LINENO "configure"
14501 #include "confdefs.h"
14503 /* Override any gcc2 internal prototype to avoid an error. */
14507 /* We use char because int might match the return type of a gcc2
14508 builtin and then its argument prototype would still apply. */
14509 char pthread_create ();
14510 #ifdef F77_DUMMY_MAIN
14511 # ifdef __cplusplus
14514 int F77_DUMMY_MAIN() { return 1; }
14524 rm -f conftest.$ac_objext conftest$ac_exeext
14525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14526 (eval $ac_link) 2>&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } &&
14530 { ac_try='test -s conftest$ac_exeext'
14531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14532 (eval $ac_try) 2>&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); }; }; then
14536 ac_cv_lib_pthread_pthread_create=yes
14538 echo "$as_me: failed program was:" >&5
14539 cat conftest.$ac_ext >&5
14540 ac_cv_lib_pthread_pthread_create=no
14542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14543 LIBS=$ac_check_lib_save_LIBS
14545 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
14546 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
14547 if test $ac_cv_lib_pthread_pthread_create = yes; then
14548 GL_LIBS="-lpthread"
14554 # If we have Mesa headers, check to see if we can link against -lMesaGL.
14555 # If we don't have Mesa headers, or we don't have -lMesaGL, try -lGL.
14556 # Else, warn that GL is busted. (We have the headers, but no libs.)
14559 if test "$ac_have_mesa_gl" = yes ; then
14561 ac_save_CPPFLAGS="$CPPFLAGS"
14562 ac_save_LDFLAGS="$LDFLAGS"
14563 # ac_save_LIBS="$LIBS"
14565 if test \! -z "$includedir" ; then
14566 CPPFLAGS="$CPPFLAGS -I$includedir"
14568 # note: $X_CFLAGS includes $x_includes
14569 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14571 if test \! -z "$libdir" ; then
14572 LDFLAGS="$LDFLAGS -L$libdir"
14574 # note: $X_LIBS includes $x_libraries
14575 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14577 echo "$as_me:$LINENO: checking for glXCreateContext in -lMesaGL" >&5
14578 echo $ECHO_N "checking for glXCreateContext in -lMesaGL... $ECHO_C" >&6
14579 if test "${ac_cv_lib_MesaGL_glXCreateContext+set}" = set; then
14580 echo $ECHO_N "(cached) $ECHO_C" >&6
14582 ac_check_lib_save_LIBS=$LIBS
14583 LIBS="-lMesaGL -lMesaGLU $GL_LIBS -lX11 -lXext -lm $LIBS"
14584 cat >conftest.$ac_ext <<_ACEOF
14585 #line $LINENO "configure"
14586 #include "confdefs.h"
14588 /* Override any gcc2 internal prototype to avoid an error. */
14592 /* We use char because int might match the return type of a gcc2
14593 builtin and then its argument prototype would still apply. */
14594 char glXCreateContext ();
14595 #ifdef F77_DUMMY_MAIN
14596 # ifdef __cplusplus
14599 int F77_DUMMY_MAIN() { return 1; }
14604 glXCreateContext ();
14609 rm -f conftest.$ac_objext conftest$ac_exeext
14610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14611 (eval $ac_link) 2>&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } &&
14615 { ac_try='test -s conftest$ac_exeext'
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; }; then
14621 ac_cv_lib_MesaGL_glXCreateContext=yes
14623 echo "$as_me: failed program was:" >&5
14624 cat conftest.$ac_ext >&5
14625 ac_cv_lib_MesaGL_glXCreateContext=no
14627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14628 LIBS=$ac_check_lib_save_LIBS
14630 echo "$as_me:$LINENO: result: $ac_cv_lib_MesaGL_glXCreateContext" >&5
14631 echo "${ECHO_T}$ac_cv_lib_MesaGL_glXCreateContext" >&6
14632 if test $ac_cv_lib_MesaGL_glXCreateContext = yes; then
14634 GL_LIBS="-lMesaGL -lMesaGLU $GL_LIBS"
14637 CPPFLAGS="$ac_save_CPPFLAGS"
14638 LDFLAGS="$ac_save_LDFLAGS"
14639 # LIBS="$ac_save_LIBS"
14643 if test "$gl_lib_1" = "" ; then
14645 ac_save_CPPFLAGS="$CPPFLAGS"
14646 ac_save_LDFLAGS="$LDFLAGS"
14647 # ac_save_LIBS="$LIBS"
14649 if test \! -z "$includedir" ; then
14650 CPPFLAGS="$CPPFLAGS -I$includedir"
14652 # note: $X_CFLAGS includes $x_includes
14653 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14655 if test \! -z "$libdir" ; then
14656 LDFLAGS="$LDFLAGS -L$libdir"
14658 # note: $X_LIBS includes $x_libraries
14659 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14661 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
14662 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
14663 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14666 ac_check_lib_save_LIBS=$LIBS
14667 LIBS="-lGL -lGLU $GL_LIBS -lX11 -lXext -lm $LIBS"
14668 cat >conftest.$ac_ext <<_ACEOF
14669 #line $LINENO "configure"
14670 #include "confdefs.h"
14672 /* Override any gcc2 internal prototype to avoid an error. */
14676 /* We use char because int might match the return type of a gcc2
14677 builtin and then its argument prototype would still apply. */
14678 char glXCreateContext ();
14679 #ifdef F77_DUMMY_MAIN
14680 # ifdef __cplusplus
14683 int F77_DUMMY_MAIN() { return 1; }
14688 glXCreateContext ();
14693 rm -f conftest.$ac_objext conftest$ac_exeext
14694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14695 (eval $ac_link) 2>&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } &&
14699 { ac_try='test -s conftest$ac_exeext'
14700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701 (eval $ac_try) 2>&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; }; then
14705 ac_cv_lib_GL_glXCreateContext=yes
14707 echo "$as_me: failed program was:" >&5
14708 cat conftest.$ac_ext >&5
14709 ac_cv_lib_GL_glXCreateContext=no
14711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14712 LIBS=$ac_check_lib_save_LIBS
14714 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
14715 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
14716 if test $ac_cv_lib_GL_glXCreateContext = yes; then
14718 GL_LIBS="-lGL -lGLU $GL_LIBS"
14721 CPPFLAGS="$ac_save_CPPFLAGS"
14722 LDFLAGS="$ac_save_LDFLAGS"
14723 # LIBS="$ac_save_LIBS"
14727 if test "$gl_lib_1" = "" ; then
14728 # we have headers, but no libs -- bail.
14733 # linking works -- we can build the GL hacks.
14734 cat >>confdefs.h <<\_ACEOF
14738 if test "$ac_have_mesa_gl" = yes ; then
14739 cat >>confdefs.h <<\_ACEOF
14740 #define HAVE_MESA_GL 1
14748 # Now that we know we have GL headers and libs, do some more GL testing.
14751 if test "$have_gl" = yes ; then
14752 # If it's MesaGL, we'd like to issue a warning if the version number
14753 # is less than or equal to 2.6, because that version had a security bug.
14755 if test "$ac_have_mesa_gl" = yes; then
14757 echo "$as_me:$LINENO: checking MesaGL version number" >&5
14758 echo $ECHO_N "checking MesaGL version number... $ECHO_C" >&6
14759 if test "${ac_cv_mesagl_version_string+set}" = set; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14762 cat > conftest.$ac_ext <<EOF
14763 #line 14769 "configure"
14764 #include "confdefs.h"
14766 #ifndef MESA_MAJOR_VERSION
14767 # include <GL/xmesa.h>
14768 # ifdef XMESA_MAJOR_VERSION
14769 /* Around Mesa 3.2, they took out the Mesa version number, so instead,
14770 we have to check the XMesa version number (the number of the X protocol
14771 support, which seems to be the same as the Mesa version number.)
14773 # define MESA_MAJOR_VERSION XMESA_MAJOR_VERSION
14774 # define MESA_MINOR_VERSION XMESA_MINOR_VERSION
14776 /* Oh great. Some time after 3.4, they took out the xmesa.h header file,
14777 so we have no way of telling what version of Mesa this is at all.
14778 So, we'll guess that the osmesa version (the "offscreen protocol")
14779 is less than or equal to the real mesa version number. Except that
14780 if OSmesa is 3.3, assume at least Mesa 3.4, since OSmesa was 3.3 in
14781 Mesa 3.4. And Mesa 3.3 had xmesa.h. What a complete load of shit!
14783 # include <GL/osmesa.h>
14784 # define MESA_MAJOR_VERSION OSMESA_MAJOR_VERSION
14785 # define MESA_MINOR_VERSION OSMESA_MINOR_VERSION or newer, probably?
14786 # if OSMESA_MAJOR_VERSION == 3 && OSMESA_MINOR_VERSION == 3
14787 # undef MESA_MINOR_VERSION
14788 # define MESA_MINOR_VERSION 4 or newer, probably?
14792 configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
14795 ac_save_CPPFLAGS="$CPPFLAGS"
14796 if test \! -z "$includedir" ; then
14797 CPPFLAGS="$CPPFLAGS -I$includedir"
14799 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14801 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | grep configure:`
14805 mglv=`echo "$mglv" | sed -n \
14806 's/^configure: *\([0-9][0-9]*\) *\([0-9].*\)$/\1.\2/p'`
14809 rm -f conftest.$ac_ext
14811 CPPFLAGS="$ac_save_CPPFLAGS"
14813 if test "$mglv" = ""; then
14814 ac_mesagl_version=unknown
14815 ac_mesagl_version_string=unknown
14817 ac_mesagl_version_string="$mglv"
14820 maj=`echo "$mglv" | sed -n 's/^\([0-9][0-9]*\)\..*$/\1/p'`
14821 min=`echo "$mglv" | sed -n 's/^.*\.\([0-9][0-9]*\).*$/\1/p'`
14823 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
14824 if test -z "$ac_mesagl_version"; then
14825 ac_mesagl_version=unknown
14826 ac_mesagl_version_string=unknown
14829 ac_cv_mesagl_version=$ac_mesagl_version
14830 ac_cv_mesagl_version_string=$ac_mesagl_version_string
14833 echo "$as_me:$LINENO: result: $ac_cv_mesagl_version_string" >&5
14834 echo "${ECHO_T}$ac_cv_mesagl_version_string" >&6
14835 ac_mesagl_version=$ac_cv_mesagl_version
14836 ac_mesagl_version_string=$ac_cv_mesagl_version_string
14840 # Check for OpenGL 1.1 features.
14843 ac_save_CPPFLAGS="$CPPFLAGS"
14844 ac_save_LDFLAGS="$LDFLAGS"
14845 # ac_save_LIBS="$LIBS"
14847 if test \! -z "$includedir" ; then
14848 CPPFLAGS="$CPPFLAGS -I$includedir"
14850 # note: $X_CFLAGS includes $x_includes
14851 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
14853 if test \! -z "$libdir" ; then
14854 LDFLAGS="$LDFLAGS -L$libdir"
14856 # note: $X_LIBS includes $x_libraries
14857 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
14859 as_ac_Lib=`echo "ac_cv_lib_$gl_lib_1''_glBindTexture" | $as_tr_sh`
14860 echo "$as_me:$LINENO: checking for glBindTexture in -l$gl_lib_1" >&5
14861 echo $ECHO_N "checking for glBindTexture in -l$gl_lib_1... $ECHO_C" >&6
14862 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14863 echo $ECHO_N "(cached) $ECHO_C" >&6
14865 ac_check_lib_save_LIBS=$LIBS
14866 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
14867 cat >conftest.$ac_ext <<_ACEOF
14868 #line $LINENO "configure"
14869 #include "confdefs.h"
14871 /* Override any gcc2 internal prototype to avoid an error. */
14875 /* We use char because int might match the return type of a gcc2
14876 builtin and then its argument prototype would still apply. */
14877 char glBindTexture ();
14878 #ifdef F77_DUMMY_MAIN
14879 # ifdef __cplusplus
14882 int F77_DUMMY_MAIN() { return 1; }
14892 rm -f conftest.$ac_objext conftest$ac_exeext
14893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14894 (eval $ac_link) 2>&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } &&
14898 { ac_try='test -s conftest$ac_exeext'
14899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14900 (eval $ac_try) 2>&5
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); }; }; then
14904 eval "$as_ac_Lib=yes"
14906 echo "$as_me: failed program was:" >&5
14907 cat conftest.$ac_ext >&5
14908 eval "$as_ac_Lib=no"
14910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14911 LIBS=$ac_check_lib_save_LIBS
14913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14914 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14915 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14916 cat >>confdefs.h <<\_ACEOF
14917 #define HAVE_GLBINDTEXTURE 1
14924 CPPFLAGS="$ac_save_CPPFLAGS"
14925 LDFLAGS="$ac_save_LDFLAGS"
14926 # LIBS="$ac_save_LIBS"
14930 elif test "$with_gl" != no; then
14931 echo "error: must be yes or no: --with-gl=$with_gl"
14936 ###############################################################################
14940 ###############################################################################
14943 with_gle_req=unspecified
14946 # Check whether --with-gle or --without-gle was given.
14947 if test "${with_gle+set}" = set; then
14948 withval="$with_gle"
14949 with_gle="$withval"; with_gle_req="$withval"
14955 case "$with_gle" in
14960 echo "$as_me:$LINENO: checking for GLE headers" >&5
14961 echo $ECHO_N "checking for GLE headers... $ECHO_C" >&6
14962 d=$with_gle/include
14963 if test -d $d; then
14964 X_CFLAGS="-I$d $X_CFLAGS"
14965 echo "$as_me:$LINENO: result: $d" >&5
14966 echo "${ECHO_T}$d" >&6
14968 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14969 echo "${ECHO_T}not found ($d: no such directory)" >&6
14972 echo "$as_me:$LINENO: checking for GLE libs" >&5
14973 echo $ECHO_N "checking for GLE libs... $ECHO_C" >&6
14975 if test -d $d; then
14976 X_LIBS="-L$d $X_LIBS"
14977 echo "$as_me:$LINENO: result: $d" >&5
14978 echo "${ECHO_T}$d" >&6
14980 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
14981 echo "${ECHO_T}not found ($d: no such directory)" >&6
14984 # replace the directory string with "yes".
14986 with_gle=$with_gle_req
14991 echo "error: argument to --with-gle must be \"yes\", \"no\", or a directory."
14992 echo " If it is a directory, then \`DIR/include' will be added to"
14993 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15001 if test "$have_gl" = no ; then
15003 elif test "$with_gle" = yes; then
15006 ac_save_CPPFLAGS="$CPPFLAGS"
15007 if test \! -z "$includedir" ; then
15008 CPPFLAGS="$CPPFLAGS -I$includedir"
15010 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15011 echo "$as_me:$LINENO: checking for GL/gle.h" >&5
15012 echo $ECHO_N "checking for GL/gle.h... $ECHO_C" >&6
15013 if test "${ac_cv_header_GL_gle_h+set}" = set; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15016 cat >conftest.$ac_ext <<_ACEOF
15017 #line $LINENO "configure"
15018 #include "confdefs.h"
15021 #include <GL/gle.h>
15023 rm -f conftest.$ac_objext
15024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15025 (eval $ac_compile) 2>&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
15029 { ac_try='test -s conftest.$ac_objext'
15030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031 (eval $ac_try) 2>&5
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; }; then
15035 ac_cv_header_GL_gle_h=yes
15037 echo "$as_me: failed program was:" >&5
15038 cat conftest.$ac_ext >&5
15039 ac_cv_header_GL_gle_h=no
15041 rm -f conftest.$ac_objext conftest.$ac_ext
15043 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gle_h" >&5
15044 echo "${ECHO_T}$ac_cv_header_GL_gle_h" >&6
15045 if test $ac_cv_header_GL_gle_h = yes; then
15052 CPPFLAGS="$ac_save_CPPFLAGS"
15053 if test "$have_gle3" = yes ; then
15057 ac_save_CPPFLAGS="$CPPFLAGS"
15058 if test \! -z "$includedir" ; then
15059 CPPFLAGS="$CPPFLAGS -I$includedir"
15061 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15062 echo "$as_me:$LINENO: checking for GL/gutil.h" >&5
15063 echo $ECHO_N "checking for GL/gutil.h... $ECHO_C" >&6
15064 if test "${ac_cv_header_GL_gutil_h+set}" = set; then
15065 echo $ECHO_N "(cached) $ECHO_C" >&6
15067 cat >conftest.$ac_ext <<_ACEOF
15068 #line $LINENO "configure"
15069 #include "confdefs.h"
15072 #include <GL/gutil.h>
15074 rm -f conftest.$ac_objext
15075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15076 (eval $ac_compile) 2>&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); } &&
15080 { ac_try='test -s conftest.$ac_objext'
15081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082 (eval $ac_try) 2>&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }; }; then
15086 ac_cv_header_GL_gutil_h=yes
15088 echo "$as_me: failed program was:" >&5
15089 cat conftest.$ac_ext >&5
15090 ac_cv_header_GL_gutil_h=no
15092 rm -f conftest.$ac_objext conftest.$ac_ext
15094 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gutil_h" >&5
15095 echo "${ECHO_T}$ac_cv_header_GL_gutil_h" >&6
15096 if test $ac_cv_header_GL_gutil_h = yes; then
15103 CPPFLAGS="$ac_save_CPPFLAGS"
15104 if test "$have_gle" = yes ; then
15106 ac_save_CPPFLAGS="$CPPFLAGS"
15107 if test \! -z "$includedir" ; then
15108 CPPFLAGS="$CPPFLAGS -I$includedir"
15110 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15111 echo "$as_me:$LINENO: checking for GL/tube.h" >&5
15112 echo $ECHO_N "checking for GL/tube.h... $ECHO_C" >&6
15113 if test "${ac_cv_header_GL_tube_h+set}" = set; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15116 cat >conftest.$ac_ext <<_ACEOF
15117 #line $LINENO "configure"
15118 #include "confdefs.h"
15121 #include <GL/tube.h>
15123 rm -f conftest.$ac_objext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15125 (eval $ac_compile) 2>&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } &&
15129 { ac_try='test -s conftest.$ac_objext'
15130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15131 (eval $ac_try) 2>&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); }; }; then
15135 ac_cv_header_GL_tube_h=yes
15137 echo "$as_me: failed program was:" >&5
15138 cat conftest.$ac_ext >&5
15139 ac_cv_header_GL_tube_h=no
15141 rm -f conftest.$ac_objext conftest.$ac_ext
15143 echo "$as_me:$LINENO: result: $ac_cv_header_GL_tube_h" >&5
15144 echo "${ECHO_T}$ac_cv_header_GL_tube_h" >&6
15145 if test $ac_cv_header_GL_tube_h = yes; then
15152 CPPFLAGS="$ac_save_CPPFLAGS"
15156 if test "$have_gle" = yes ; then
15160 ac_save_CPPFLAGS="$CPPFLAGS"
15161 ac_save_LDFLAGS="$LDFLAGS"
15162 # ac_save_LIBS="$LIBS"
15164 if test \! -z "$includedir" ; then
15165 CPPFLAGS="$CPPFLAGS -I$includedir"
15167 # note: $X_CFLAGS includes $x_includes
15168 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15170 if test \! -z "$libdir" ; then
15171 LDFLAGS="$LDFLAGS -L$libdir"
15173 # note: $X_LIBS includes $x_libraries
15174 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15176 echo "$as_me:$LINENO: checking for gleCreateGC in -lgle" >&5
15177 echo $ECHO_N "checking for gleCreateGC in -lgle... $ECHO_C" >&6
15178 if test "${ac_cv_lib_gle_gleCreateGC+set}" = set; then
15179 echo $ECHO_N "(cached) $ECHO_C" >&6
15181 ac_check_lib_save_LIBS=$LIBS
15182 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
15183 cat >conftest.$ac_ext <<_ACEOF
15184 #line $LINENO "configure"
15185 #include "confdefs.h"
15187 /* Override any gcc2 internal prototype to avoid an error. */
15191 /* We use char because int might match the return type of a gcc2
15192 builtin and then its argument prototype would still apply. */
15193 char gleCreateGC ();
15194 #ifdef F77_DUMMY_MAIN
15195 # ifdef __cplusplus
15198 int F77_DUMMY_MAIN() { return 1; }
15208 rm -f conftest.$ac_objext conftest$ac_exeext
15209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15210 (eval $ac_link) 2>&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } &&
15214 { ac_try='test -s conftest$ac_exeext'
15215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216 (eval $ac_try) 2>&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; }; then
15220 ac_cv_lib_gle_gleCreateGC=yes
15222 echo "$as_me: failed program was:" >&5
15223 cat conftest.$ac_ext >&5
15224 ac_cv_lib_gle_gleCreateGC=no
15226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15227 LIBS=$ac_check_lib_save_LIBS
15229 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_gleCreateGC" >&5
15230 echo "${ECHO_T}$ac_cv_lib_gle_gleCreateGC" >&6
15231 if test $ac_cv_lib_gle_gleCreateGC = yes; then
15232 have_gle=yes; gle_halfassed=no; GLE_LIBS="-lgle"
15235 CPPFLAGS="$ac_save_CPPFLAGS"
15236 LDFLAGS="$ac_save_LDFLAGS"
15237 # LIBS="$ac_save_LIBS"
15240 if test "$have_gle" = yes ; then
15244 # sometimes the libmatrix stuff is included in libgle. look there first.
15246 # I don't get it. For some reason, this test passes on SGI, as if
15247 # uview_direction_d() was in libgle -- but it's not, it's in libmatrix.
15248 # Yet the link is succeeding. Why???
15250 # AC_CHECK_X_LIB(gle, uview_direction_d,
15251 # [have_gle=yes; gle_halfassed=no],
15252 # [], $GL_LIBS -lX11 -lXext -lm)
15254 # As of GLE 3 this is in libgle, and has changed name to uview_direction!
15256 if test "$have_gle3" = yes ; then
15258 ac_save_CPPFLAGS="$CPPFLAGS"
15259 ac_save_LDFLAGS="$LDFLAGS"
15260 # ac_save_LIBS="$LIBS"
15262 if test \! -z "$includedir" ; then
15263 CPPFLAGS="$CPPFLAGS -I$includedir"
15265 # note: $X_CFLAGS includes $x_includes
15266 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15268 if test \! -z "$libdir" ; then
15269 LDFLAGS="$LDFLAGS -L$libdir"
15271 # note: $X_LIBS includes $x_libraries
15272 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15274 echo "$as_me:$LINENO: checking for uview_direction in -lgle" >&5
15275 echo $ECHO_N "checking for uview_direction in -lgle... $ECHO_C" >&6
15276 if test "${ac_cv_lib_gle_uview_direction+set}" = set; then
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
15279 ac_check_lib_save_LIBS=$LIBS
15280 LIBS="-lgle $GL_LIBS -lX11 -lXext -lm $LIBS"
15281 cat >conftest.$ac_ext <<_ACEOF
15282 #line $LINENO "configure"
15283 #include "confdefs.h"
15285 /* Override any gcc2 internal prototype to avoid an error. */
15289 /* We use char because int might match the return type of a gcc2
15290 builtin and then its argument prototype would still apply. */
15291 char uview_direction ();
15292 #ifdef F77_DUMMY_MAIN
15293 # ifdef __cplusplus
15296 int F77_DUMMY_MAIN() { return 1; }
15301 uview_direction ();
15306 rm -f conftest.$ac_objext conftest$ac_exeext
15307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15308 (eval $ac_link) 2>&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } &&
15312 { ac_try='test -s conftest$ac_exeext'
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; }; then
15318 ac_cv_lib_gle_uview_direction=yes
15320 echo "$as_me: failed program was:" >&5
15321 cat conftest.$ac_ext >&5
15322 ac_cv_lib_gle_uview_direction=no
15324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15325 LIBS=$ac_check_lib_save_LIBS
15327 echo "$as_me:$LINENO: result: $ac_cv_lib_gle_uview_direction" >&5
15328 echo "${ECHO_T}$ac_cv_lib_gle_uview_direction" >&6
15329 if test $ac_cv_lib_gle_uview_direction = yes; then
15330 have_gle=yes; gle_halfassed=no
15333 CPPFLAGS="$ac_save_CPPFLAGS"
15334 LDFLAGS="$ac_save_LDFLAGS"
15335 # LIBS="$ac_save_LIBS"
15338 # if it wasn't in libgle, then look in libmatrix.
15339 if test "$have_gle" = no ; then
15341 ac_save_CPPFLAGS="$CPPFLAGS"
15342 ac_save_LDFLAGS="$LDFLAGS"
15343 # ac_save_LIBS="$LIBS"
15345 if test \! -z "$includedir" ; then
15346 CPPFLAGS="$CPPFLAGS -I$includedir"
15348 # note: $X_CFLAGS includes $x_includes
15349 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15351 if test \! -z "$libdir" ; then
15352 LDFLAGS="$LDFLAGS -L$libdir"
15354 # note: $X_LIBS includes $x_libraries
15355 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
15357 echo "$as_me:$LINENO: checking for uview_direction_d in -lmatrix" >&5
15358 echo $ECHO_N "checking for uview_direction_d in -lmatrix... $ECHO_C" >&6
15359 if test "${ac_cv_lib_matrix_uview_direction_d+set}" = set; then
15360 echo $ECHO_N "(cached) $ECHO_C" >&6
15362 ac_check_lib_save_LIBS=$LIBS
15363 LIBS="-lmatrix $GL_LIBS -lX11 -lXext -lm $LIBS"
15364 cat >conftest.$ac_ext <<_ACEOF
15365 #line $LINENO "configure"
15366 #include "confdefs.h"
15368 /* Override any gcc2 internal prototype to avoid an error. */
15372 /* We use char because int might match the return type of a gcc2
15373 builtin and then its argument prototype would still apply. */
15374 char uview_direction_d ();
15375 #ifdef F77_DUMMY_MAIN
15376 # ifdef __cplusplus
15379 int F77_DUMMY_MAIN() { return 1; }
15384 uview_direction_d ();
15389 rm -f conftest.$ac_objext conftest$ac_exeext
15390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15391 (eval $ac_link) 2>&5
15393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394 (exit $ac_status); } &&
15395 { ac_try='test -s conftest$ac_exeext'
15396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397 (eval $ac_try) 2>&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; }; then
15401 ac_cv_lib_matrix_uview_direction_d=yes
15403 echo "$as_me: failed program was:" >&5
15404 cat conftest.$ac_ext >&5
15405 ac_cv_lib_matrix_uview_direction_d=no
15407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15408 LIBS=$ac_check_lib_save_LIBS
15410 echo "$as_me:$LINENO: result: $ac_cv_lib_matrix_uview_direction_d" >&5
15411 echo "${ECHO_T}$ac_cv_lib_matrix_uview_direction_d" >&6
15412 if test $ac_cv_lib_matrix_uview_direction_d = yes; then
15413 have_gle=yes; gle_halfassed=no;
15414 GLE_LIBS="$GLE_LIBS -lmatrix"
15417 CPPFLAGS="$ac_save_CPPFLAGS"
15418 LDFLAGS="$ac_save_LDFLAGS"
15419 # LIBS="$ac_save_LIBS"
15424 if test "$have_gle" = yes ; then
15425 cat >>confdefs.h <<\_ACEOF
15429 if test "$have_gle3" = yes ; then
15430 cat >>confdefs.h <<\_ACEOF
15431 #define HAVE_GLE3 1
15437 elif test "$with_gle" != no; then
15438 echo "error: must be yes or no: --with-gle=$with_gle"
15445 ###############################################################################
15449 ###############################################################################
15452 with_xpm_req=unspecified
15454 # Check whether --with-xpm or --without-xpm was given.
15455 if test "${with_xpm+set}" = set; then
15456 withval="$with_xpm"
15457 with_xpm="$withval"; with_xpm_req="$withval"
15463 case "$with_xpm" in
15468 echo "$as_me:$LINENO: checking for XPM headers" >&5
15469 echo $ECHO_N "checking for XPM headers... $ECHO_C" >&6
15470 d=$with_xpm/include
15471 if test -d $d; then
15472 X_CFLAGS="-I$d $X_CFLAGS"
15473 echo "$as_me:$LINENO: result: $d" >&5
15474 echo "${ECHO_T}$d" >&6
15476 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15477 echo "${ECHO_T}not found ($d: no such directory)" >&6
15480 echo "$as_me:$LINENO: checking for XPM libs" >&5
15481 echo $ECHO_N "checking for XPM libs... $ECHO_C" >&6
15483 if test -d $d; then
15484 X_LIBS="-L$d $X_LIBS"
15485 echo "$as_me:$LINENO: result: $d" >&5
15486 echo "${ECHO_T}$d" >&6
15488 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15489 echo "${ECHO_T}not found ($d: no such directory)" >&6
15492 # replace the directory string with "yes".
15494 with_xpm=$with_xpm_req
15499 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
15500 echo " If it is a directory, then \`DIR/include' will be added to"
15501 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15507 if test "$with_xpm" = yes; then
15509 ac_save_CPPFLAGS="$CPPFLAGS"
15510 if test \! -z "$includedir" ; then
15511 CPPFLAGS="$CPPFLAGS -I$includedir"
15513 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15514 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
15515 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
15516 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
15517 echo $ECHO_N "(cached) $ECHO_C" >&6
15519 cat >conftest.$ac_ext <<_ACEOF
15520 #line $LINENO "configure"
15521 #include "confdefs.h"
15522 #include <X11/Xlib.h>
15524 #include <X11/xpm.h>
15526 rm -f conftest.$ac_objext
15527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15528 (eval $ac_compile) 2>&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } &&
15532 { ac_try='test -s conftest.$ac_objext'
15533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
15538 ac_cv_header_X11_xpm_h=yes
15540 echo "$as_me: failed program was:" >&5
15541 cat conftest.$ac_ext >&5
15542 ac_cv_header_X11_xpm_h=no
15544 rm -f conftest.$ac_objext conftest.$ac_ext
15546 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
15547 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
15548 if test $ac_cv_header_X11_xpm_h = yes; then
15550 cat >>confdefs.h <<\_ACEOF
15558 CPPFLAGS="$ac_save_CPPFLAGS"
15559 elif test "$with_xpm" != no; then
15560 echo "error: must be yes or no: --with-xpm=$with_xpm"
15564 # See comment near $motif_requires_xpm, above.
15565 # Need to do this here, after both Motif and XPM have been checked for.
15567 if test "$have_motif" = yes -a "$have_xpm" = yes ; then
15568 if test "$motif_requires_xpm" = yes ; then
15569 MOTIF_LIBS="$MOTIF_LIBS $XPM_LIBS"
15573 ###############################################################################
15575 # Check for -lgdk_pixbuf.
15577 ###############################################################################
15580 with_gdk_pixbuf_req=unspecified
15582 # Check whether --with-pixbuf or --without-pixbuf was given.
15583 if test "${with_pixbuf+set}" = set; then
15584 withval="$with_pixbuf"
15585 with_gdk_pixbuf="$withval"; with_gdk_pixbuf_req="$withval"
15587 with_gdk_pixbuf=yes
15590 # if --with-pixbuf=/directory/ was specified, remember that directory so that
15591 # we can also look for the `gdk-pixbuf-config' program in that directory.
15592 case "$with_gdk_pixbuf" in
15594 gdk_pixbuf_dir="$with_gdk_pixbuf"
15602 case "$with_gdk_pixbuf" in
15607 echo "$as_me:$LINENO: checking for GDK_PIXBUF headers" >&5
15608 echo $ECHO_N "checking for GDK_PIXBUF headers... $ECHO_C" >&6
15609 d=$with_gdk_pixbuf/include
15610 if test -d $d; then
15611 X_CFLAGS="-I$d $X_CFLAGS"
15612 echo "$as_me:$LINENO: result: $d" >&5
15613 echo "${ECHO_T}$d" >&6
15615 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15616 echo "${ECHO_T}not found ($d: no such directory)" >&6
15619 echo "$as_me:$LINENO: checking for GDK_PIXBUF libs" >&5
15620 echo $ECHO_N "checking for GDK_PIXBUF libs... $ECHO_C" >&6
15621 d=$with_gdk_pixbuf/lib
15622 if test -d $d; then
15623 X_LIBS="-L$d $X_LIBS"
15624 echo "$as_me:$LINENO: result: $d" >&5
15625 echo "${ECHO_T}$d" >&6
15627 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
15628 echo "${ECHO_T}not found ($d: no such directory)" >&6
15631 # replace the directory string with "yes".
15632 with_gdk_pixbuf_req="yes"
15633 with_gdk_pixbuf=$with_gdk_pixbuf_req
15638 echo "error: argument to --with-pixbuf must be \"yes\", \"no\", or a directory."
15639 echo " If it is a directory, then \`DIR/include' will be added to"
15640 echo " the -I list, and \`DIR/lib' will be added to the -L list."
15646 if test "$with_gdk_pixbuf" != yes -a "$with_gdk_pixbuf" != no ; then
15647 echo "error: must be yes or no: --with-pixbuf=$with_gdk_pixbuf"
15651 if test "$with_gdk_pixbuf" = yes; then
15653 have_gdk_pixbuf2=no
15655 if test -n "$pkg_config" ; then
15658 # run pkg-config based tests.
15663 # If we have Gtk 2.x, then *only* gdk-pixbuf 2.x will work.
15664 # If we have Gtk 1.x, then *only* gdk-pixbuf 1.x will work.
15665 # If we don't have Gtk at all, then either will work.
15667 if test "$have_gtk" = no -o "$have_gtk2" = yes; then
15669 # we don't have Gtk; or we have Gtk 2.x. Check for pixbuf 2.x.
15671 pkg_check_version gdk-pixbuf-2.0 2.0.0
15672 pkg_check_version gdk-pixbuf-xlib-2.0 2.0.0
15673 have_gdk_pixbuf="$ok"
15674 have_gdk_pixbuf2="$ok"
15677 if test "$have_gtk" = no -o "$have_gtk2" = no; then
15679 # we don't have Gtk; or we have Gtk 1.x.
15680 # If we don't have pixbuf 2.x, then check for pixbuf 1.x.
15682 if test "$have_gdk_pixbuf2" = no; then
15685 pkg_check_version gdk-pixbuf 0.0
15686 pkg_check_version gdk-pixbuf-xlib 0.0
15687 have_gdk_pixbuf="$ok"
15691 if test "$have_gdk_pixbuf" = yes; then
15692 echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
15693 echo $ECHO_N "checking for gdk-pixbuf includes... $ECHO_C" >&6
15694 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
15695 echo $ECHO_N "(cached) $ECHO_C" >&6
15697 ac_cv_gdk_pixbuf_config_cflags=`$pkg_config --cflags $pkgs`
15699 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
15700 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_cflags" >&6
15701 echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
15702 echo $ECHO_N "checking for gdk-pixbuf libs... $ECHO_C" >&6
15703 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
15704 echo $ECHO_N "(cached) $ECHO_C" >&6
15706 ac_cv_gdk_pixbuf_config_libs=`$pkg_config --libs $pkgs`
15708 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
15709 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_libs" >&6
15711 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
15712 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
15716 if test "$have_gdk_pixbuf" = no; then
15719 # run gdk-pixbuf-config based tests.
15720 # note that we can't assume that the existence of "pkg-config" means
15721 # that we don't have to look for gdk-pixbuf-config -- in Gnome 1.4,
15722 # pkg-config exists, but doesn't know about pixbuf.
15725 # if the user specified --with-gtk=/foo/ or --with-gnome=/foo/ then
15726 # look in /foo/bin/ for for gdk-pixbuf-config.
15728 gdk_pixbuf_path="$PATH"
15730 if test ! -z "$gtk_dir"; then
15731 # canonicalize slashes.
15732 foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
15733 gdk_pixbuf_path="$foo:$gdk_pixbuf_path"
15736 if test ! -z "$gnome_dir"; then
15737 # canonicalize slashes.
15738 foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
15739 gdk_pixbuf_path="$foo:$gdk_pixbuf_path"
15742 for ac_prog in gdk-pixbuf-config
15744 # Extract the first word of "$ac_prog", so it can be a program name with args.
15745 set dummy $ac_prog; ac_word=$2
15746 echo "$as_me:$LINENO: checking for $ac_word" >&5
15747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15748 if test "${ac_cv_path_gdk_pixbuf_config+set}" = set; then
15749 echo $ECHO_N "(cached) $ECHO_C" >&6
15751 case $gdk_pixbuf_config in
15753 ac_cv_path_gdk_pixbuf_config="$gdk_pixbuf_config" # Let the user override the test with a path.
15756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15757 for as_dir in $gdk_pixbuf_path
15760 test -z "$as_dir" && as_dir=.
15761 for ac_exec_ext in '' $ac_executable_extensions; do
15762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15763 ac_cv_path_gdk_pixbuf_config="$as_dir/$ac_word$ac_exec_ext"
15764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15773 gdk_pixbuf_config=$ac_cv_path_gdk_pixbuf_config
15775 if test -n "$gdk_pixbuf_config"; then
15776 echo "$as_me:$LINENO: result: $gdk_pixbuf_config" >&5
15777 echo "${ECHO_T}$gdk_pixbuf_config" >&6
15779 echo "$as_me:$LINENO: result: no" >&5
15780 echo "${ECHO_T}no" >&6
15783 test -n "$gdk_pixbuf_config" && break
15787 # If we found the gdk-pixbuf-config program, run it to get flags.
15789 if test -n "$gdk_pixbuf_config" ; then
15790 echo "$as_me:$LINENO: checking for gdk-pixbuf includes" >&5
15791 echo $ECHO_N "checking for gdk-pixbuf includes... $ECHO_C" >&6
15792 if test "${ac_cv_gdk_pixbuf_config_cflags+set}" = set; then
15793 echo $ECHO_N "(cached) $ECHO_C" >&6
15795 ac_cv_gdk_pixbuf_config_cflags=`$gdk_pixbuf_config --cflags`
15797 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_cflags" >&5
15798 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_cflags" >&6
15799 echo "$as_me:$LINENO: checking for gdk-pixbuf libs" >&5
15800 echo $ECHO_N "checking for gdk-pixbuf libs... $ECHO_C" >&6
15801 if test "${ac_cv_gdk_pixbuf_config_libs+set}" = set; then
15802 echo $ECHO_N "(cached) $ECHO_C" >&6
15804 ac_cv_gdk_pixbuf_config_libs=`$gdk_pixbuf_config --libs`
15806 echo "$as_me:$LINENO: result: $ac_cv_gdk_pixbuf_config_libs" >&5
15807 echo "${ECHO_T}$ac_cv_gdk_pixbuf_config_libs" >&6
15809 # note that "gdk-pixbuf-config --libs" produces a link line including
15810 # -lgdk_pixbuf, but there's no way to get it to produce one that also
15811 # includes -lgdk_pixbuf_xlib. Since we don't know *exactly* what the
15812 # name of the library will be, construct it with sed...
15815 ac_cv_gdk_pixbuf_config_libs=`echo $ac_cv_gdk_pixbuf_config_libs | \
15816 sed 's@ \(-lgdk_pixbuf\([-_a-zA-Z0-9.]*\)\) @ \1 -lgdk_pixbuf_xlib\2 @'`
15819 ac_gdk_pixbuf_config_cflags=$ac_cv_gdk_pixbuf_config_cflags
15820 ac_gdk_pixbuf_config_libs=$ac_cv_gdk_pixbuf_config_libs
15824 ac_save_gdk_pixbuf_CPPFLAGS="$CPPFLAGS"
15825 CPPFLAGS="$CPPFLAGS $ac_gdk_pixbuf_config_cflags"
15827 if test "$have_gdk_pixbuf" = no; then
15829 # we appear to have pixbuf; check for headers/libs to be sure.
15834 # check for header A...
15836 ac_save_CPPFLAGS="$CPPFLAGS"
15837 if test \! -z "$includedir" ; then
15838 CPPFLAGS="$CPPFLAGS -I$includedir"
15840 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15841 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
15842 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
15843 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
15844 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
15845 echo $ECHO_N "(cached) $ECHO_C" >&6
15847 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
15848 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
15850 # Is the header compilable?
15851 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h usability" >&5
15852 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h usability... $ECHO_C" >&6
15853 cat >conftest.$ac_ext <<_ACEOF
15854 #line $LINENO "configure"
15855 #include "confdefs.h"
15856 $ac_includes_default
15857 #include <gdk-pixbuf/gdk-pixbuf.h>
15859 rm -f conftest.$ac_objext
15860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15861 (eval $ac_compile) 2>&5
15863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864 (exit $ac_status); } &&
15865 { ac_try='test -s conftest.$ac_objext'
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; }; then
15871 ac_header_compiler=yes
15873 echo "$as_me: failed program was:" >&5
15874 cat conftest.$ac_ext >&5
15875 ac_header_compiler=no
15877 rm -f conftest.$ac_objext conftest.$ac_ext
15878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15879 echo "${ECHO_T}$ac_header_compiler" >&6
15881 # Is the header present?
15882 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf.h presence" >&5
15883 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf.h presence... $ECHO_C" >&6
15884 cat >conftest.$ac_ext <<_ACEOF
15885 #line $LINENO "configure"
15886 #include "confdefs.h"
15887 #include <gdk-pixbuf/gdk-pixbuf.h>
15889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15892 egrep -v '^ *\+' conftest.er1 >conftest.err
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } >/dev/null; then
15897 if test -s conftest.err; then
15898 ac_cpp_err=$ac_c_preproc_warn_flag
15905 if test -z "$ac_cpp_err"; then
15906 ac_header_preproc=yes
15908 echo "$as_me: failed program was:" >&5
15909 cat conftest.$ac_ext >&5
15910 ac_header_preproc=no
15912 rm -f conftest.err conftest.$ac_ext
15913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15914 echo "${ECHO_T}$ac_header_preproc" >&6
15916 # So? What about this header?
15917 case $ac_header_compiler:$ac_header_preproc in
15919 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&5
15920 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15921 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
15922 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;};;
15924 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&5
15925 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: present but cannot be compiled" >&2;}
15926 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&5
15927 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: check for missing prerequisite headers?" >&2;}
15928 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&5
15929 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf.h: proceeding with the preprocessor's result" >&2;};;
15931 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf.h" >&5
15932 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf.h... $ECHO_C" >&6
15933 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_h+set}" = set; then
15934 echo $ECHO_N "(cached) $ECHO_C" >&6
15936 ac_cv_header_gdk_pixbuf_gdk_pixbuf_h=$ac_header_preproc
15938 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&5
15939 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_h" >&6
15942 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_h = yes; then
15943 have_gdk_pixbuf=yes
15947 CPPFLAGS="$ac_save_CPPFLAGS"
15949 # if that worked, check for header B...
15950 if test "$have_gdk_pixbuf" = yes; then
15952 gdk_pixbuf_halfassed=yes
15954 ac_save_CPPFLAGS="$CPPFLAGS"
15955 if test \! -z "$includedir" ; then
15956 CPPFLAGS="$CPPFLAGS -I$includedir"
15958 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
15959 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
15960 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
15961 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
15962 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15965 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
15966 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
15968 # Is the header compilable?
15969 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h usability" >&5
15970 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
15971 cat >conftest.$ac_ext <<_ACEOF
15972 #line $LINENO "configure"
15973 #include "confdefs.h"
15974 $ac_includes_default
15975 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
15977 rm -f conftest.$ac_objext
15978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15979 (eval $ac_compile) 2>&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } &&
15983 { ac_try='test -s conftest.$ac_objext'
15984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985 (eval $ac_try) 2>&5
15987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); }; }; then
15989 ac_header_compiler=yes
15991 echo "$as_me: failed program was:" >&5
15992 cat conftest.$ac_ext >&5
15993 ac_header_compiler=no
15995 rm -f conftest.$ac_objext conftest.$ac_ext
15996 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15997 echo "${ECHO_T}$ac_header_compiler" >&6
15999 # Is the header present?
16000 echo "$as_me:$LINENO: checking gdk-pixbuf/gdk-pixbuf-xlib.h presence" >&5
16001 echo $ECHO_N "checking gdk-pixbuf/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
16002 cat >conftest.$ac_ext <<_ACEOF
16003 #line $LINENO "configure"
16004 #include "confdefs.h"
16005 #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
16007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16010 egrep -v '^ *\+' conftest.er1 >conftest.err
16012 cat conftest.err >&5
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); } >/dev/null; then
16015 if test -s conftest.err; then
16016 ac_cpp_err=$ac_c_preproc_warn_flag
16023 if test -z "$ac_cpp_err"; then
16024 ac_header_preproc=yes
16026 echo "$as_me: failed program was:" >&5
16027 cat conftest.$ac_ext >&5
16028 ac_header_preproc=no
16030 rm -f conftest.err conftest.$ac_ext
16031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16032 echo "${ECHO_T}$ac_header_preproc" >&6
16034 # So? What about this header?
16035 case $ac_header_compiler:$ac_header_preproc in
16037 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16038 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16039 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
16040 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;};;
16042 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
16043 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
16044 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
16045 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
16046 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
16047 echo "$as_me: WARNING: gdk-pixbuf/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;};;
16049 echo "$as_me:$LINENO: checking for gdk-pixbuf/gdk-pixbuf-xlib.h" >&5
16050 echo $ECHO_N "checking for gdk-pixbuf/gdk-pixbuf-xlib.h... $ECHO_C" >&6
16051 if test "${ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h+set}" = set; then
16052 echo $ECHO_N "(cached) $ECHO_C" >&6
16054 ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h=$ac_header_preproc
16056 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&5
16057 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h" >&6
16060 if test $ac_cv_header_gdk_pixbuf_gdk_pixbuf_xlib_h = yes; then
16061 have_gdk_pixbuf=yes
16062 gdk_pixbuf_halfassed=no
16066 CPPFLAGS="$ac_save_CPPFLAGS"
16068 # yay, it has a new name in Gtk 2.x...
16069 if test "$have_gdk_pixbuf" = no; then
16071 gdk_pixbuf_halfassed=yes
16073 ac_save_CPPFLAGS="$CPPFLAGS"
16074 if test \! -z "$includedir" ; then
16075 CPPFLAGS="$CPPFLAGS -I$includedir"
16077 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16078 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
16079 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
16080 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
16081 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
16082 echo $ECHO_N "(cached) $ECHO_C" >&6
16084 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
16085 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
16087 # Is the header compilable?
16088 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability" >&5
16089 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h usability... $ECHO_C" >&6
16090 cat >conftest.$ac_ext <<_ACEOF
16091 #line $LINENO "configure"
16092 #include "confdefs.h"
16093 $ac_includes_default
16094 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
16096 rm -f conftest.$ac_objext
16097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16098 (eval $ac_compile) 2>&5
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); } &&
16102 { ac_try='test -s conftest.$ac_objext'
16103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16104 (eval $ac_try) 2>&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; }; then
16108 ac_header_compiler=yes
16110 echo "$as_me: failed program was:" >&5
16111 cat conftest.$ac_ext >&5
16112 ac_header_compiler=no
16114 rm -f conftest.$ac_objext conftest.$ac_ext
16115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16116 echo "${ECHO_T}$ac_header_compiler" >&6
16118 # Is the header present?
16119 echo "$as_me:$LINENO: checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence" >&5
16120 echo $ECHO_N "checking gdk-pixbuf-xlib/gdk-pixbuf-xlib.h presence... $ECHO_C" >&6
16121 cat >conftest.$ac_ext <<_ACEOF
16122 #line $LINENO "configure"
16123 #include "confdefs.h"
16124 #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
16126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16129 egrep -v '^ *\+' conftest.er1 >conftest.err
16131 cat conftest.err >&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); } >/dev/null; then
16134 if test -s conftest.err; then
16135 ac_cpp_err=$ac_c_preproc_warn_flag
16142 if test -z "$ac_cpp_err"; then
16143 ac_header_preproc=yes
16145 echo "$as_me: failed program was:" >&5
16146 cat conftest.$ac_ext >&5
16147 ac_header_preproc=no
16149 rm -f conftest.err conftest.$ac_ext
16150 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16151 echo "${ECHO_T}$ac_header_preproc" >&6
16153 # So? What about this header?
16154 case $ac_header_compiler:$ac_header_preproc in
16156 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16157 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16158 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
16159 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;};;
16161 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&5
16162 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: present but cannot be compiled" >&2;}
16163 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&5
16164 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: check for missing prerequisite headers?" >&2;}
16165 { echo "$as_me:$LINENO: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&5
16166 echo "$as_me: WARNING: gdk-pixbuf-xlib/gdk-pixbuf-xlib.h: proceeding with the preprocessor's result" >&2;};;
16168 echo "$as_me:$LINENO: checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h" >&5
16169 echo $ECHO_N "checking for gdk-pixbuf-xlib/gdk-pixbuf-xlib.h... $ECHO_C" >&6
16170 if test "${ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h+set}" = set; then
16171 echo $ECHO_N "(cached) $ECHO_C" >&6
16173 ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h=$ac_header_preproc
16175 echo "$as_me:$LINENO: result: $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&5
16176 echo "${ECHO_T}$ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h" >&6
16179 if test $ac_cv_header_gdk_pixbuf_xlib_gdk_pixbuf_xlib_h = yes; then
16180 have_gdk_pixbuf=yes
16181 gdk_pixbuf_halfassed=no
16185 CPPFLAGS="$ac_save_CPPFLAGS"
16190 CPPFLAGS="$ac_save_gdk_pixbuf_CPPFLAGS"
16192 if test "$have_gdk_pixbuf" = yes; then
16193 # we have the headers, now check for the libraries
16195 gdk_pixbuf_halfassed=yes
16199 ac_save_CPPFLAGS="$CPPFLAGS"
16200 ac_save_LDFLAGS="$LDFLAGS"
16201 # ac_save_LIBS="$LIBS"
16203 if test \! -z "$includedir" ; then
16204 CPPFLAGS="$CPPFLAGS -I$includedir"
16206 # note: $X_CFLAGS includes $x_includes
16207 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16209 if test \! -z "$libdir" ; then
16210 LDFLAGS="$LDFLAGS -L$libdir"
16212 # note: $X_LIBS includes $x_libraries
16213 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16215 echo "$as_me:$LINENO: checking for gdk_pixbuf_new_from_file in -lc" >&5
16216 echo $ECHO_N "checking for gdk_pixbuf_new_from_file in -lc... $ECHO_C" >&6
16217 if test "${ac_cv_lib_c_gdk_pixbuf_new_from_file+set}" = set; then
16218 echo $ECHO_N "(cached) $ECHO_C" >&6
16220 ac_check_lib_save_LIBS=$LIBS
16221 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
16222 cat >conftest.$ac_ext <<_ACEOF
16223 #line $LINENO "configure"
16224 #include "confdefs.h"
16226 /* Override any gcc2 internal prototype to avoid an error. */
16230 /* We use char because int might match the return type of a gcc2
16231 builtin and then its argument prototype would still apply. */
16232 char gdk_pixbuf_new_from_file ();
16233 #ifdef F77_DUMMY_MAIN
16234 # ifdef __cplusplus
16237 int F77_DUMMY_MAIN() { return 1; }
16242 gdk_pixbuf_new_from_file ();
16247 rm -f conftest.$ac_objext conftest$ac_exeext
16248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16249 (eval $ac_link) 2>&5
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); } &&
16253 { ac_try='test -s conftest$ac_exeext'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
16259 ac_cv_lib_c_gdk_pixbuf_new_from_file=yes
16261 echo "$as_me: failed program was:" >&5
16262 cat conftest.$ac_ext >&5
16263 ac_cv_lib_c_gdk_pixbuf_new_from_file=no
16265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16266 LIBS=$ac_check_lib_save_LIBS
16268 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_new_from_file" >&5
16269 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_new_from_file" >&6
16270 if test $ac_cv_lib_c_gdk_pixbuf_new_from_file = yes; then
16271 have_gdk_pixbuf=yes
16274 CPPFLAGS="$ac_save_CPPFLAGS"
16275 LDFLAGS="$ac_save_LDFLAGS"
16276 # LIBS="$ac_save_LIBS"
16279 if test "$have_gdk_pixbuf" = yes; then
16282 ac_save_CPPFLAGS="$CPPFLAGS"
16283 ac_save_LDFLAGS="$LDFLAGS"
16284 # ac_save_LIBS="$LIBS"
16286 if test \! -z "$includedir" ; then
16287 CPPFLAGS="$CPPFLAGS -I$includedir"
16289 # note: $X_CFLAGS includes $x_includes
16290 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16292 if test \! -z "$libdir" ; then
16293 LDFLAGS="$LDFLAGS -L$libdir"
16295 # note: $X_LIBS includes $x_libraries
16296 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16298 echo "$as_me:$LINENO: checking for gdk_pixbuf_xlib_init in -lc" >&5
16299 echo $ECHO_N "checking for gdk_pixbuf_xlib_init in -lc... $ECHO_C" >&6
16300 if test "${ac_cv_lib_c_gdk_pixbuf_xlib_init+set}" = set; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16303 ac_check_lib_save_LIBS=$LIBS
16304 LIBS="-lc $ac_gdk_pixbuf_config_libs -lX11 -lXext -lm $LIBS"
16305 cat >conftest.$ac_ext <<_ACEOF
16306 #line $LINENO "configure"
16307 #include "confdefs.h"
16309 /* Override any gcc2 internal prototype to avoid an error. */
16313 /* We use char because int might match the return type of a gcc2
16314 builtin and then its argument prototype would still apply. */
16315 char gdk_pixbuf_xlib_init ();
16316 #ifdef F77_DUMMY_MAIN
16317 # ifdef __cplusplus
16320 int F77_DUMMY_MAIN() { return 1; }
16325 gdk_pixbuf_xlib_init ();
16330 rm -f conftest.$ac_objext conftest$ac_exeext
16331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16332 (eval $ac_link) 2>&5
16334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335 (exit $ac_status); } &&
16336 { ac_try='test -s conftest$ac_exeext'
16337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16338 (eval $ac_try) 2>&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); }; }; then
16342 ac_cv_lib_c_gdk_pixbuf_xlib_init=yes
16344 echo "$as_me: failed program was:" >&5
16345 cat conftest.$ac_ext >&5
16346 ac_cv_lib_c_gdk_pixbuf_xlib_init=no
16348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16349 LIBS=$ac_check_lib_save_LIBS
16351 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gdk_pixbuf_xlib_init" >&5
16352 echo "${ECHO_T}$ac_cv_lib_c_gdk_pixbuf_xlib_init" >&6
16353 if test $ac_cv_lib_c_gdk_pixbuf_xlib_init = yes; then
16354 have_gdk_pixbuf=yes
16355 gdk_pixbuf_halfassed=no
16358 CPPFLAGS="$ac_save_CPPFLAGS"
16359 LDFLAGS="$ac_save_LDFLAGS"
16360 # LIBS="$ac_save_LIBS"
16365 if test "$have_gdk_pixbuf" = yes; then
16366 INCLUDES="$INCLUDES $ac_gdk_pixbuf_config_cflags"
16367 XPM_LIBS="$ac_gdk_pixbuf_config_libs"
16368 cat >>confdefs.h <<\_ACEOF
16369 #define HAVE_GDK_PIXBUF 1
16373 have_gdk_pixbuf2=no
16378 ###############################################################################
16382 ###############################################################################
16385 with_jpeg_req=unspecified
16388 # Check whether --with-jpeg or --without-jpeg was given.
16389 if test "${with_jpeg+set}" = set; then
16390 withval="$with_jpeg"
16391 with_jpeg="$withval"; with_jpeg_req="$withval"
16397 case "$with_jpeg" in
16402 echo "$as_me:$LINENO: checking for JPEG headers" >&5
16403 echo $ECHO_N "checking for JPEG headers... $ECHO_C" >&6
16404 d=$with_jpeg/include
16405 if test -d $d; then
16406 X_CFLAGS="-I$d $X_CFLAGS"
16407 echo "$as_me:$LINENO: result: $d" >&5
16408 echo "${ECHO_T}$d" >&6
16410 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16411 echo "${ECHO_T}not found ($d: no such directory)" >&6
16414 echo "$as_me:$LINENO: checking for JPEG libs" >&5
16415 echo $ECHO_N "checking for JPEG libs... $ECHO_C" >&6
16417 if test -d $d; then
16418 X_LIBS="-L$d $X_LIBS"
16419 echo "$as_me:$LINENO: result: $d" >&5
16420 echo "${ECHO_T}$d" >&6
16422 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16423 echo "${ECHO_T}not found ($d: no such directory)" >&6
16426 # replace the directory string with "yes".
16427 with_jpeg_req="yes"
16428 with_jpeg=$with_jpeg_req
16433 echo "error: argument to --with-jpeg must be \"yes\", \"no\", or a directory."
16434 echo " If it is a directory, then \`DIR/include' will be added to"
16435 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16441 if test "$with_jpeg" != yes -a "$with_jpeg" != no ; then
16442 echo "error: must be yes or no: --with-jpeg=$with_jpeg"
16446 if test "$with_jpeg" = yes; then
16450 ac_save_CPPFLAGS="$CPPFLAGS"
16451 if test \! -z "$includedir" ; then
16452 CPPFLAGS="$CPPFLAGS -I$includedir"
16454 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16455 if test "${ac_cv_header_jpeglib_h+set}" = set; then
16456 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
16457 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
16458 if test "${ac_cv_header_jpeglib_h+set}" = set; then
16459 echo $ECHO_N "(cached) $ECHO_C" >&6
16461 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
16462 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
16464 # Is the header compilable?
16465 echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
16466 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
16467 cat >conftest.$ac_ext <<_ACEOF
16468 #line $LINENO "configure"
16469 #include "confdefs.h"
16470 $ac_includes_default
16471 #include <jpeglib.h>
16473 rm -f conftest.$ac_objext
16474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16475 (eval $ac_compile) 2>&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } &&
16479 { ac_try='test -s conftest.$ac_objext'
16480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16481 (eval $ac_try) 2>&5
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); }; }; then
16485 ac_header_compiler=yes
16487 echo "$as_me: failed program was:" >&5
16488 cat conftest.$ac_ext >&5
16489 ac_header_compiler=no
16491 rm -f conftest.$ac_objext conftest.$ac_ext
16492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16493 echo "${ECHO_T}$ac_header_compiler" >&6
16495 # Is the header present?
16496 echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
16497 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
16498 cat >conftest.$ac_ext <<_ACEOF
16499 #line $LINENO "configure"
16500 #include "confdefs.h"
16501 #include <jpeglib.h>
16503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16506 egrep -v '^ *\+' conftest.er1 >conftest.err
16508 cat conftest.err >&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); } >/dev/null; then
16511 if test -s conftest.err; then
16512 ac_cpp_err=$ac_c_preproc_warn_flag
16519 if test -z "$ac_cpp_err"; then
16520 ac_header_preproc=yes
16522 echo "$as_me: failed program was:" >&5
16523 cat conftest.$ac_ext >&5
16524 ac_header_preproc=no
16526 rm -f conftest.err conftest.$ac_ext
16527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16528 echo "${ECHO_T}$ac_header_preproc" >&6
16530 # So? What about this header?
16531 case $ac_header_compiler:$ac_header_preproc in
16533 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16534 echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16535 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
16536 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;};;
16538 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
16539 echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
16540 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
16541 echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
16542 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
16543 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;};;
16545 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
16546 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
16547 if test "${ac_cv_header_jpeglib_h+set}" = set; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16550 ac_cv_header_jpeglib_h=$ac_header_preproc
16552 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
16553 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
16556 if test $ac_cv_header_jpeglib_h = yes; then
16561 CPPFLAGS="$ac_save_CPPFLAGS"
16563 if test "$have_jpeg" = yes; then
16564 # we have the header, now check for the library
16568 ac_save_CPPFLAGS="$CPPFLAGS"
16569 ac_save_LDFLAGS="$LDFLAGS"
16570 # ac_save_LIBS="$LIBS"
16572 if test \! -z "$includedir" ; then
16573 CPPFLAGS="$CPPFLAGS -I$includedir"
16575 # note: $X_CFLAGS includes $x_includes
16576 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16578 if test \! -z "$libdir" ; then
16579 LDFLAGS="$LDFLAGS -L$libdir"
16581 # note: $X_LIBS includes $x_libraries
16582 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
16584 echo "$as_me:$LINENO: checking for jpeg_start_compress in -ljpeg" >&5
16585 echo $ECHO_N "checking for jpeg_start_compress in -ljpeg... $ECHO_C" >&6
16586 if test "${ac_cv_lib_jpeg_jpeg_start_compress+set}" = set; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16589 ac_check_lib_save_LIBS=$LIBS
16590 LIBS="-ljpeg $LIBS"
16591 cat >conftest.$ac_ext <<_ACEOF
16592 #line $LINENO "configure"
16593 #include "confdefs.h"
16595 /* Override any gcc2 internal prototype to avoid an error. */
16599 /* We use char because int might match the return type of a gcc2
16600 builtin and then its argument prototype would still apply. */
16601 char jpeg_start_compress ();
16602 #ifdef F77_DUMMY_MAIN
16603 # ifdef __cplusplus
16606 int F77_DUMMY_MAIN() { return 1; }
16611 jpeg_start_compress ();
16616 rm -f conftest.$ac_objext conftest$ac_exeext
16617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16618 (eval $ac_link) 2>&5
16620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621 (exit $ac_status); } &&
16622 { ac_try='test -s conftest$ac_exeext'
16623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16624 (eval $ac_try) 2>&5
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); }; }; then
16628 ac_cv_lib_jpeg_jpeg_start_compress=yes
16630 echo "$as_me: failed program was:" >&5
16631 cat conftest.$ac_ext >&5
16632 ac_cv_lib_jpeg_jpeg_start_compress=no
16634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16635 LIBS=$ac_check_lib_save_LIBS
16637 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
16638 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_compress" >&6
16639 if test $ac_cv_lib_jpeg_jpeg_start_compress = yes; then
16643 cat >>confdefs.h <<\_ACEOF
16644 #define HAVE_JPEGLIB 1
16649 CPPFLAGS="$ac_save_CPPFLAGS"
16650 LDFLAGS="$ac_save_LDFLAGS"
16651 # LIBS="$ac_save_LIBS"
16657 ###############################################################################
16659 # Check for the XSHM server extension.
16661 ###############################################################################
16664 with_xshm_req=unspecified
16666 # Check whether --with-xshm-ext or --without-xshm-ext was given.
16667 if test "${with_xshm_ext+set}" = set; then
16668 withval="$with_xshm_ext"
16669 with_xshm="$withval"; with_xshm_req="$withval"
16675 case "$with_xshm" in
16680 echo "$as_me:$LINENO: checking for XSHM headers" >&5
16681 echo $ECHO_N "checking for XSHM headers... $ECHO_C" >&6
16682 d=$with_xshm/include
16683 if test -d $d; then
16684 X_CFLAGS="-I$d $X_CFLAGS"
16685 echo "$as_me:$LINENO: result: $d" >&5
16686 echo "${ECHO_T}$d" >&6
16688 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16689 echo "${ECHO_T}not found ($d: no such directory)" >&6
16692 echo "$as_me:$LINENO: checking for XSHM libs" >&5
16693 echo $ECHO_N "checking for XSHM libs... $ECHO_C" >&6
16695 if test -d $d; then
16696 X_LIBS="-L$d $X_LIBS"
16697 echo "$as_me:$LINENO: result: $d" >&5
16698 echo "${ECHO_T}$d" >&6
16700 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
16701 echo "${ECHO_T}not found ($d: no such directory)" >&6
16704 # replace the directory string with "yes".
16705 with_xshm_req="yes"
16706 with_xshm=$with_xshm_req
16711 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
16712 echo " If it is a directory, then \`DIR/include' will be added to"
16713 echo " the -I list, and \`DIR/lib' will be added to the -L list."
16719 if test "$with_xshm" = yes; then
16721 # first check for Xshm.h.
16723 ac_save_CPPFLAGS="$CPPFLAGS"
16724 if test \! -z "$includedir" ; then
16725 CPPFLAGS="$CPPFLAGS -I$includedir"
16727 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16728 echo "$as_me:$LINENO: checking for X11/extensions/XShm.h" >&5
16729 echo $ECHO_N "checking for X11/extensions/XShm.h... $ECHO_C" >&6
16730 if test "${ac_cv_header_X11_extensions_XShm_h+set}" = set; then
16731 echo $ECHO_N "(cached) $ECHO_C" >&6
16733 cat >conftest.$ac_ext <<_ACEOF
16734 #line $LINENO "configure"
16735 #include "confdefs.h"
16736 #include <X11/Xlib.h>
16738 #include <X11/extensions/XShm.h>
16740 rm -f conftest.$ac_objext
16741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16742 (eval $ac_compile) 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); } &&
16746 { ac_try='test -s conftest.$ac_objext'
16747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16748 (eval $ac_try) 2>&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); }; }; then
16752 ac_cv_header_X11_extensions_XShm_h=yes
16754 echo "$as_me: failed program was:" >&5
16755 cat conftest.$ac_ext >&5
16756 ac_cv_header_X11_extensions_XShm_h=no
16758 rm -f conftest.$ac_objext conftest.$ac_ext
16760 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XShm_h" >&5
16761 echo "${ECHO_T}$ac_cv_header_X11_extensions_XShm_h" >&6
16762 if test $ac_cv_header_X11_extensions_XShm_h = yes; then
16767 CPPFLAGS="$ac_save_CPPFLAGS"
16769 # if that succeeded, then check for sys/ipc.h.
16770 if test "$have_xshm" = yes; then
16773 ac_save_CPPFLAGS="$CPPFLAGS"
16774 if test \! -z "$includedir" ; then
16775 CPPFLAGS="$CPPFLAGS -I$includedir"
16777 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16778 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
16779 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
16780 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
16781 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
16782 echo $ECHO_N "(cached) $ECHO_C" >&6
16784 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
16785 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
16787 # Is the header compilable?
16788 echo "$as_me:$LINENO: checking sys/ipc.h usability" >&5
16789 echo $ECHO_N "checking sys/ipc.h usability... $ECHO_C" >&6
16790 cat >conftest.$ac_ext <<_ACEOF
16791 #line $LINENO "configure"
16792 #include "confdefs.h"
16793 $ac_includes_default
16794 #include <sys/ipc.h>
16796 rm -f conftest.$ac_objext
16797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16798 (eval $ac_compile) 2>&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); } &&
16802 { ac_try='test -s conftest.$ac_objext'
16803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16804 (eval $ac_try) 2>&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); }; }; then
16808 ac_header_compiler=yes
16810 echo "$as_me: failed program was:" >&5
16811 cat conftest.$ac_ext >&5
16812 ac_header_compiler=no
16814 rm -f conftest.$ac_objext conftest.$ac_ext
16815 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16816 echo "${ECHO_T}$ac_header_compiler" >&6
16818 # Is the header present?
16819 echo "$as_me:$LINENO: checking sys/ipc.h presence" >&5
16820 echo $ECHO_N "checking sys/ipc.h presence... $ECHO_C" >&6
16821 cat >conftest.$ac_ext <<_ACEOF
16822 #line $LINENO "configure"
16823 #include "confdefs.h"
16824 #include <sys/ipc.h>
16826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16829 egrep -v '^ *\+' conftest.er1 >conftest.err
16831 cat conftest.err >&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); } >/dev/null; then
16834 if test -s conftest.err; then
16835 ac_cpp_err=$ac_c_preproc_warn_flag
16842 if test -z "$ac_cpp_err"; then
16843 ac_header_preproc=yes
16845 echo "$as_me: failed program was:" >&5
16846 cat conftest.$ac_ext >&5
16847 ac_header_preproc=no
16849 rm -f conftest.err conftest.$ac_ext
16850 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16851 echo "${ECHO_T}$ac_header_preproc" >&6
16853 # So? What about this header?
16854 case $ac_header_compiler:$ac_header_preproc in
16856 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16857 echo "$as_me: WARNING: sys/ipc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16858 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
16859 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;};;
16861 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: present but cannot be compiled" >&5
16862 echo "$as_me: WARNING: sys/ipc.h: present but cannot be compiled" >&2;}
16863 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&5
16864 echo "$as_me: WARNING: sys/ipc.h: check for missing prerequisite headers?" >&2;}
16865 { echo "$as_me:$LINENO: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&5
16866 echo "$as_me: WARNING: sys/ipc.h: proceeding with the preprocessor's result" >&2;};;
16868 echo "$as_me:$LINENO: checking for sys/ipc.h" >&5
16869 echo $ECHO_N "checking for sys/ipc.h... $ECHO_C" >&6
16870 if test "${ac_cv_header_sys_ipc_h+set}" = set; then
16871 echo $ECHO_N "(cached) $ECHO_C" >&6
16873 ac_cv_header_sys_ipc_h=$ac_header_preproc
16875 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ipc_h" >&5
16876 echo "${ECHO_T}$ac_cv_header_sys_ipc_h" >&6
16879 if test $ac_cv_header_sys_ipc_h = yes; then
16884 CPPFLAGS="$ac_save_CPPFLAGS"
16887 # if that succeeded, then check for sys/shm.h.
16888 if test "$have_xshm" = yes; then
16891 ac_save_CPPFLAGS="$CPPFLAGS"
16892 if test \! -z "$includedir" ; then
16893 CPPFLAGS="$CPPFLAGS -I$includedir"
16895 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
16896 if test "${ac_cv_header_sys_shm_h+set}" = set; then
16897 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
16898 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
16899 if test "${ac_cv_header_sys_shm_h+set}" = set; then
16900 echo $ECHO_N "(cached) $ECHO_C" >&6
16902 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
16903 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
16905 # Is the header compilable?
16906 echo "$as_me:$LINENO: checking sys/shm.h usability" >&5
16907 echo $ECHO_N "checking sys/shm.h usability... $ECHO_C" >&6
16908 cat >conftest.$ac_ext <<_ACEOF
16909 #line $LINENO "configure"
16910 #include "confdefs.h"
16911 $ac_includes_default
16912 #include <sys/shm.h>
16914 rm -f conftest.$ac_objext
16915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16916 (eval $ac_compile) 2>&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); } &&
16920 { ac_try='test -s conftest.$ac_objext'
16921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922 (eval $ac_try) 2>&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; }; then
16926 ac_header_compiler=yes
16928 echo "$as_me: failed program was:" >&5
16929 cat conftest.$ac_ext >&5
16930 ac_header_compiler=no
16932 rm -f conftest.$ac_objext conftest.$ac_ext
16933 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16934 echo "${ECHO_T}$ac_header_compiler" >&6
16936 # Is the header present?
16937 echo "$as_me:$LINENO: checking sys/shm.h presence" >&5
16938 echo $ECHO_N "checking sys/shm.h presence... $ECHO_C" >&6
16939 cat >conftest.$ac_ext <<_ACEOF
16940 #line $LINENO "configure"
16941 #include "confdefs.h"
16942 #include <sys/shm.h>
16944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16947 egrep -v '^ *\+' conftest.er1 >conftest.err
16949 cat conftest.err >&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); } >/dev/null; then
16952 if test -s conftest.err; then
16953 ac_cpp_err=$ac_c_preproc_warn_flag
16960 if test -z "$ac_cpp_err"; then
16961 ac_header_preproc=yes
16963 echo "$as_me: failed program was:" >&5
16964 cat conftest.$ac_ext >&5
16965 ac_header_preproc=no
16967 rm -f conftest.err conftest.$ac_ext
16968 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16969 echo "${ECHO_T}$ac_header_preproc" >&6
16971 # So? What about this header?
16972 case $ac_header_compiler:$ac_header_preproc in
16974 { echo "$as_me:$LINENO: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16975 echo "$as_me: WARNING: sys/shm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16976 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
16977 echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;};;
16979 { echo "$as_me:$LINENO: WARNING: sys/shm.h: present but cannot be compiled" >&5
16980 echo "$as_me: WARNING: sys/shm.h: present but cannot be compiled" >&2;}
16981 { echo "$as_me:$LINENO: WARNING: sys/shm.h: check for missing prerequisite headers?" >&5
16982 echo "$as_me: WARNING: sys/shm.h: check for missing prerequisite headers?" >&2;}
16983 { echo "$as_me:$LINENO: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&5
16984 echo "$as_me: WARNING: sys/shm.h: proceeding with the preprocessor's result" >&2;};;
16986 echo "$as_me:$LINENO: checking for sys/shm.h" >&5
16987 echo $ECHO_N "checking for sys/shm.h... $ECHO_C" >&6
16988 if test "${ac_cv_header_sys_shm_h+set}" = set; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16991 ac_cv_header_sys_shm_h=$ac_header_preproc
16993 echo "$as_me:$LINENO: result: $ac_cv_header_sys_shm_h" >&5
16994 echo "${ECHO_T}$ac_cv_header_sys_shm_h" >&6
16997 if test $ac_cv_header_sys_shm_h = yes; then
17002 CPPFLAGS="$ac_save_CPPFLAGS"
17005 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
17006 # to exist, but the library code to not exist. And even better, the library
17007 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
17008 # lib doesn't exist, give up. (This lib gets added to X_EXTRA_LIBS, and
17009 # that's not quite right, but close enough.)
17013 if `uname -v` -eq 3 ; then
17016 ac_save_CPPFLAGS="$CPPFLAGS"
17017 ac_save_LDFLAGS="$LDFLAGS"
17018 # ac_save_LIBS="$LIBS"
17020 if test \! -z "$includedir" ; then
17021 CPPFLAGS="$CPPFLAGS -I$includedir"
17023 # note: $X_CFLAGS includes $x_includes
17024 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17026 if test \! -z "$libdir" ; then
17027 LDFLAGS="$LDFLAGS -L$libdir"
17029 # note: $X_LIBS includes $x_libraries
17030 LDFLAGS="$LDFLAGS $X_LIBS $X_EXTRA_LIBS"
17032 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXextSam" >&5
17033 echo $ECHO_N "checking for XShmQueryExtension in -lXextSam... $ECHO_C" >&6
17034 if test "${ac_cv_lib_XextSam_XShmQueryExtension+set}" = set; then
17035 echo $ECHO_N "(cached) $ECHO_C" >&6
17037 ac_check_lib_save_LIBS=$LIBS
17038 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
17039 cat >conftest.$ac_ext <<_ACEOF
17040 #line $LINENO "configure"
17041 #include "confdefs.h"
17043 /* Override any gcc2 internal prototype to avoid an error. */
17047 /* We use char because int might match the return type of a gcc2
17048 builtin and then its argument prototype would still apply. */
17049 char XShmQueryExtension ();
17050 #ifdef F77_DUMMY_MAIN
17051 # ifdef __cplusplus
17054 int F77_DUMMY_MAIN() { return 1; }
17059 XShmQueryExtension ();
17064 rm -f conftest.$ac_objext conftest$ac_exeext
17065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17066 (eval $ac_link) 2>&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } &&
17070 { ac_try='test -s conftest$ac_exeext'
17071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17072 (eval $ac_try) 2>&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); }; }; then
17076 ac_cv_lib_XextSam_XShmQueryExtension=yes
17078 echo "$as_me: failed program was:" >&5
17079 cat conftest.$ac_ext >&5
17080 ac_cv_lib_XextSam_XShmQueryExtension=no
17082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17083 LIBS=$ac_check_lib_save_LIBS
17085 echo "$as_me:$LINENO: result: $ac_cv_lib_XextSam_XShmQueryExtension" >&5
17086 echo "${ECHO_T}$ac_cv_lib_XextSam_XShmQueryExtension" >&6
17087 if test $ac_cv_lib_XextSam_XShmQueryExtension = yes; then
17088 have_xshm=yes; X_EXTRA_LIBS="$X_EXTRA_LIBS -lXextSam"
17093 CPPFLAGS="$ac_save_CPPFLAGS"
17094 LDFLAGS="$ac_save_LDFLAGS"
17095 # LIBS="$ac_save_LIBS"
17101 # if that succeeded, then we've really got it.
17102 if test "$have_xshm" = yes; then
17103 cat >>confdefs.h <<\_ACEOF
17104 #define HAVE_XSHM_EXTENSION 1
17109 elif test "$with_xshm" != no; then
17110 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
17115 ###############################################################################
17117 # Check for the DOUBLE-BUFFER server extension.
17119 ###############################################################################
17122 with_xdbe_req=unspecified
17124 # Check whether --with-xdbe-ext or --without-xdbe-ext was given.
17125 if test "${with_xdbe_ext+set}" = set; then
17126 withval="$with_xdbe_ext"
17127 with_xdbe="$withval"; with_xdbe_req="$withval"
17133 case "$with_xdbe" in
17138 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER headers" >&5
17139 echo $ECHO_N "checking for DOUBLE-BUFFER headers... $ECHO_C" >&6
17140 d=$with_xdbe/include
17141 if test -d $d; then
17142 X_CFLAGS="-I$d $X_CFLAGS"
17143 echo "$as_me:$LINENO: result: $d" >&5
17144 echo "${ECHO_T}$d" >&6
17146 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17147 echo "${ECHO_T}not found ($d: no such directory)" >&6
17150 echo "$as_me:$LINENO: checking for DOUBLE-BUFFER libs" >&5
17151 echo $ECHO_N "checking for DOUBLE-BUFFER libs... $ECHO_C" >&6
17153 if test -d $d; then
17154 X_LIBS="-L$d $X_LIBS"
17155 echo "$as_me:$LINENO: result: $d" >&5
17156 echo "${ECHO_T}$d" >&6
17158 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17159 echo "${ECHO_T}not found ($d: no such directory)" >&6
17162 # replace the directory string with "yes".
17163 with_xdbe_req="yes"
17164 with_xdbe=$with_xdbe_req
17169 echo "error: argument to --with-xdbe-ext must be \"yes\", \"no\", or a directory."
17170 echo " If it is a directory, then \`DIR/include' will be added to"
17171 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17177 if test "$with_xdbe" = yes; then
17180 ac_save_CPPFLAGS="$CPPFLAGS"
17181 if test \! -z "$includedir" ; then
17182 CPPFLAGS="$CPPFLAGS -I$includedir"
17184 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17185 echo "$as_me:$LINENO: checking for X11/extensions/Xdbe.h" >&5
17186 echo $ECHO_N "checking for X11/extensions/Xdbe.h... $ECHO_C" >&6
17187 if test "${ac_cv_header_X11_extensions_Xdbe_h+set}" = set; then
17188 echo $ECHO_N "(cached) $ECHO_C" >&6
17190 cat >conftest.$ac_ext <<_ACEOF
17191 #line $LINENO "configure"
17192 #include "confdefs.h"
17193 #include <X11/Xlib.h>
17195 #include <X11/extensions/Xdbe.h>
17197 rm -f conftest.$ac_objext
17198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17199 (eval $ac_compile) 2>&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } &&
17203 { ac_try='test -s conftest.$ac_objext'
17204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205 (eval $ac_try) 2>&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; }; then
17209 ac_cv_header_X11_extensions_Xdbe_h=yes
17211 echo "$as_me: failed program was:" >&5
17212 cat conftest.$ac_ext >&5
17213 ac_cv_header_X11_extensions_Xdbe_h=no
17215 rm -f conftest.$ac_objext conftest.$ac_ext
17217 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xdbe_h" >&5
17218 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xdbe_h" >&6
17219 if test $ac_cv_header_X11_extensions_Xdbe_h = yes; then
17224 CPPFLAGS="$ac_save_CPPFLAGS"
17225 if test "$have_xdbe" = yes; then
17226 cat >>confdefs.h <<\_ACEOF
17227 #define HAVE_DOUBLE_BUFFER_EXTENSION 1
17232 elif test "$with_xdbe" != no; then
17233 echo "error: must be yes or no: --with-xdbe-ext=$with_xshm"
17238 ###############################################################################
17240 # Check for the SGI XReadDisplay server extension.
17242 # Note: this has to be down here, rather than up with the other server
17243 # extension tests, so that the output of `configure --help' is in the
17244 # right order. Arrgh!
17246 ###############################################################################
17248 have_readdisplay=no
17249 with_readdisplay_req=unspecified
17251 # Check whether --with-readdisplay or --without-readdisplay was given.
17252 if test "${with_readdisplay+set}" = set; then
17253 withval="$with_readdisplay"
17254 with_readdisplay="$withval"; with_readdisplay_req="$withval"
17256 with_readdisplay=yes
17260 case "$with_readdisplay" in
17265 echo "$as_me:$LINENO: checking for XReadDisplay headers" >&5
17266 echo $ECHO_N "checking for XReadDisplay headers... $ECHO_C" >&6
17267 d=$with_readdisplay/include
17268 if test -d $d; then
17269 X_CFLAGS="-I$d $X_CFLAGS"
17270 echo "$as_me:$LINENO: result: $d" >&5
17271 echo "${ECHO_T}$d" >&6
17273 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17274 echo "${ECHO_T}not found ($d: no such directory)" >&6
17277 echo "$as_me:$LINENO: checking for XReadDisplay libs" >&5
17278 echo $ECHO_N "checking for XReadDisplay libs... $ECHO_C" >&6
17279 d=$with_readdisplay/lib
17280 if test -d $d; then
17281 X_LIBS="-L$d $X_LIBS"
17282 echo "$as_me:$LINENO: result: $d" >&5
17283 echo "${ECHO_T}$d" >&6
17285 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17286 echo "${ECHO_T}not found ($d: no such directory)" >&6
17289 # replace the directory string with "yes".
17290 with_readdisplay_req="yes"
17291 with_readdisplay=$with_readdisplay_req
17296 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
17297 echo " If it is a directory, then \`DIR/include' will be added to"
17298 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17304 if test "$with_readdisplay" = yes; then
17306 ac_save_CPPFLAGS="$CPPFLAGS"
17307 if test \! -z "$includedir" ; then
17308 CPPFLAGS="$CPPFLAGS -I$includedir"
17310 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17311 echo "$as_me:$LINENO: checking for X11/extensions/readdisplay.h" >&5
17312 echo $ECHO_N "checking for X11/extensions/readdisplay.h... $ECHO_C" >&6
17313 if test "${ac_cv_header_X11_extensions_readdisplay_h+set}" = set; then
17314 echo $ECHO_N "(cached) $ECHO_C" >&6
17316 cat >conftest.$ac_ext <<_ACEOF
17317 #line $LINENO "configure"
17318 #include "confdefs.h"
17319 #include <X11/Xlib.h>
17321 #include <X11/extensions/readdisplay.h>
17323 rm -f conftest.$ac_objext
17324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17325 (eval $ac_compile) 2>&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); } &&
17329 { ac_try='test -s conftest.$ac_objext'
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 ac_cv_header_X11_extensions_readdisplay_h=yes
17337 echo "$as_me: failed program was:" >&5
17338 cat conftest.$ac_ext >&5
17339 ac_cv_header_X11_extensions_readdisplay_h=no
17341 rm -f conftest.$ac_objext conftest.$ac_ext
17343 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_readdisplay_h" >&5
17344 echo "${ECHO_T}$ac_cv_header_X11_extensions_readdisplay_h" >&6
17345 if test $ac_cv_header_X11_extensions_readdisplay_h = yes; then
17346 cat >>confdefs.h <<\_ACEOF
17347 #define HAVE_READ_DISPLAY_EXTENSION 1
17353 CPPFLAGS="$ac_save_CPPFLAGS"
17354 elif test "$with_readdisplay" != no; then
17355 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
17360 ###############################################################################
17362 # Check for a program to generate random text.
17364 # Zippy is funnier than the idiocy generally spat out by `fortune',
17365 # so first see if "fortune zippy" works. Else, use plain "fortune".
17367 # We used to dig around in Emacs to look for the "yow" program, but
17368 # most people who have Emacs also have "fortune zippy", so nevermind.
17370 ###############################################################################
17372 with_fortune_req=""
17374 # Check whether --with-fortune or --without-fortune was given.
17375 if test "${with_fortune+set}" = set; then
17376 withval="$with_fortune"
17377 with_fortune_req="$withval"; with_fortune="$withval"
17382 if test "$with_fortune" = no || test "$with_fortune" = yes ; then
17384 with_fortune_req=""
17387 if test -n "$with_fortune_req" ; then
17388 ac_cv_fortune_program=""
17389 case "$with_fortune_req" in
17392 set dummy $with_fortune_req ; fortune_tmp=$2
17393 echo "$as_me:$LINENO: checking for $fortune_tmp" >&5
17394 echo $ECHO_N "checking for $fortune_tmp... $ECHO_C" >&6
17395 if test -x "$fortune_tmp" ; then
17396 echo "$as_me:$LINENO: result: yes" >&5
17397 echo "${ECHO_T}yes" >&6
17399 echo "$as_me:$LINENO: result: no" >&5
17400 echo "${ECHO_T}no" >&6
17405 set dummy $with_fortune_req ; fortune_tmp=$2
17407 unset ac_cv_path_fortune_tmp
17408 # Extract the first word of "$fortune_tmp", so it can be a program name with args.
17409 set dummy $fortune_tmp; ac_word=$2
17410 echo "$as_me:$LINENO: checking for $ac_word" >&5
17411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17412 if test "${ac_cv_path_fortune_tmp+set}" = set; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17415 case $fortune_tmp in
17417 ac_cv_path_fortune_tmp="$fortune_tmp" # Let the user override the test with a path.
17420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17421 for as_dir in $PATH
17424 test -z "$as_dir" && as_dir=.
17425 for ac_exec_ext in '' $ac_executable_extensions; do
17426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17427 ac_cv_path_fortune_tmp="$as_dir/$ac_word$ac_exec_ext"
17428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17437 fortune_tmp=$ac_cv_path_fortune_tmp
17439 if test -n "$fortune_tmp"; then
17440 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
17441 echo "${ECHO_T}$fortune_tmp" >&6
17443 echo "$as_me:$LINENO: result: no" >&5
17444 echo "${ECHO_T}no" >&6
17447 if test -z "$fortune_tmp" ; then
17452 ac_cv_fortune_program="$with_fortune"
17454 elif test -n "$ac_cv_fortune_program"; then
17455 echo "$as_me:$LINENO: result: checking for fortune... (cached) $ac_cv_fortune_program" >&5
17456 echo "${ECHO_T}checking for fortune... (cached) $ac_cv_fortune_program" >&6
17459 unset ac_cv_path_fortune_tmp
17462 if test -z "$ac_cv_fortune_program" ; then
17464 # first look for fortune in /usr/games/ (and use absolute path)
17465 for ac_prog in fortune
17467 # Extract the first word of "$ac_prog", so it can be a program name with args.
17468 set dummy $ac_prog; ac_word=$2
17469 echo "$as_me:$LINENO: checking for $ac_word" >&5
17470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17471 if test "${ac_cv_path_fortune_tmp+set}" = set; then
17472 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 case $fortune_tmp in
17476 ac_cv_path_fortune_tmp="$fortune_tmp" # Let the user override the test with a path.
17479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17480 as_dummy=""/usr/games""
17481 for as_dir in $as_dummy
17484 test -z "$as_dir" && as_dir=.
17485 for ac_exec_ext in '' $ac_executable_extensions; do
17486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17487 ac_cv_path_fortune_tmp="$as_dir/$ac_word$ac_exec_ext"
17488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17497 fortune_tmp=$ac_cv_path_fortune_tmp
17499 if test -n "$fortune_tmp"; then
17500 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
17501 echo "${ECHO_T}$fortune_tmp" >&6
17503 echo "$as_me:$LINENO: result: no" >&5
17504 echo "${ECHO_T}no" >&6
17507 test -n "$fortune_tmp" && break
17511 # if it's not there, look on $PATH (and don't use absolute path)
17512 if test -z "$fortune_tmp" ; then
17513 for ac_prog in fortune
17515 # Extract the first word of "$ac_prog", so it can be a program name with args.
17516 set dummy $ac_prog; ac_word=$2
17517 echo "$as_me:$LINENO: checking for $ac_word" >&5
17518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17519 if test "${ac_cv_prog_fortune_tmp+set}" = set; then
17520 echo $ECHO_N "(cached) $ECHO_C" >&6
17522 if test -n "$fortune_tmp"; then
17523 ac_cv_prog_fortune_tmp="$fortune_tmp" # Let the user override the test.
17525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17526 for as_dir in $PATH
17529 test -z "$as_dir" && as_dir=.
17530 for ac_exec_ext in '' $ac_executable_extensions; do
17531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17532 ac_cv_prog_fortune_tmp="$ac_prog"
17533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17541 fortune_tmp=$ac_cv_prog_fortune_tmp
17542 if test -n "$fortune_tmp"; then
17543 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
17544 echo "${ECHO_T}$fortune_tmp" >&6
17546 echo "$as_me:$LINENO: result: no" >&5
17547 echo "${ECHO_T}no" >&6
17550 test -n "$fortune_tmp" && break
17555 # if we didn't find anything, then just assume /usr/games/
17556 if test -z "$fortune_tmp" ; then
17557 fortune_tmp="/usr/games/fortune"
17560 ac_cv_fortune_program="$fortune_tmp"
17562 # now check to see whether "fortune zippy" works.
17564 fortune_tmp="$fortune_tmp zippy"
17565 echo "$as_me:$LINENO: checking for zippy quotes" >&5
17566 echo $ECHO_N "checking for zippy quotes... $ECHO_C" >&6
17567 if ( $fortune_tmp >/dev/null 2>&1 ); then
17568 ac_cv_fortune_program="$fortune_tmp"
17569 echo "$as_me:$LINENO: result: $fortune_tmp" >&5
17570 echo "${ECHO_T}$fortune_tmp" >&6
17572 echo "$as_me:$LINENO: result: no" >&5
17573 echo "${ECHO_T}no" >&6
17578 unset ac_cv_path_fortune_tmp
17581 cat >>confdefs.h <<_ACEOF
17582 #define FORTUNE_PROGRAM "$ac_cv_fortune_program"
17587 ###############################################################################
17589 # Check whether it's ok to install some hacks as setuid (e.g., "sonar")
17590 # This should be safe, but let's give people the option.
17592 ###############################################################################
17594 setuid_hacks_default=no
17595 setuid_hacks="$setuid_hacks_default"
17597 # Check whether --with-setuid-hacks or --without-setuid-hacks was given.
17598 if test "${with_setuid_hacks+set}" = set; then
17599 withval="$with_setuid_hacks"
17600 setuid_hacks="$withval"
17602 setuid_hacks="$setuid_hacks_default"
17606 case "$setuid_hacks" in
17611 echo "$as_me:$LINENO: checking for setuid hacks headers" >&5
17612 echo $ECHO_N "checking for setuid hacks headers... $ECHO_C" >&6
17613 d=$setuid_hacks/include
17614 if test -d $d; then
17615 X_CFLAGS="-I$d $X_CFLAGS"
17616 echo "$as_me:$LINENO: result: $d" >&5
17617 echo "${ECHO_T}$d" >&6
17619 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17620 echo "${ECHO_T}not found ($d: no such directory)" >&6
17623 echo "$as_me:$LINENO: checking for setuid hacks libs" >&5
17624 echo $ECHO_N "checking for setuid hacks libs... $ECHO_C" >&6
17625 d=$setuid_hacks/lib
17626 if test -d $d; then
17627 X_LIBS="-L$d $X_LIBS"
17628 echo "$as_me:$LINENO: result: $d" >&5
17629 echo "${ECHO_T}$d" >&6
17631 echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
17632 echo "${ECHO_T}not found ($d: no such directory)" >&6
17635 # replace the directory string with "yes".
17636 setuid_hacks_req="yes"
17637 setuid_hacks=$setuid_hacks_req
17642 echo "error: argument to --with-setuid-hacks must be \"yes\", \"no\", or a directory."
17643 echo " If it is a directory, then \`DIR/include' will be added to"
17644 echo " the -I list, and \`DIR/lib' will be added to the -L list."
17650 if test "$setuid_hacks" = yes; then
17652 elif test "$setuid_hacks" != no; then
17653 echo "error: must be yes or no: --with-setuid-hacks=$setuid_hacks"
17658 ###############################################################################
17660 # Done testing. Now, set up the various -I and -L variables,
17661 # and decide which GUI program to build by default.
17663 ###############################################################################
17670 if test \! -z "$includedir" ; then
17671 INCLUDES="$INCLUDES -I$includedir"
17674 if test \! -z "$libdir" ; then
17675 LDFLAGS="$LDFLAGS -L$libdir"
17679 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
17681 if test "$have_motif" = yes; then
17682 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Xm
17683 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
17685 if test "$have_gtk" = yes; then
17686 PREFERRED_DEMO_PROGRAM=xscreensaver-demo-Gtk
17687 ALL_DEMO_PROGRAMS="$PREFERRED_DEMO_PROGRAM $ALL_DEMO_PROGRAMS"
17691 if test "$have_kerberos" = yes; then
17692 PASSWD_SRCS="$PASSWD_SRCS \$(KERBEROS_SRCS)"
17693 PASSWD_OBJS="$PASSWD_OBJS \$(KERBEROS_OBJS)"
17695 if test "$have_pam" = yes; then
17696 PASSWD_SRCS="$PASSWD_SRCS \$(PAM_SRCS)"
17697 PASSWD_OBJS="$PASSWD_OBJS \$(PAM_OBJS)"
17698 INSTALL_PAM="install-pam"
17700 PASSWD_SRCS="$PASSWD_SRCS \$(PWENT_SRCS)"
17701 PASSWD_OBJS="$PASSWD_OBJS \$(PWENT_OBJS)"
17704 if test "$enable_locking" = yes; then
17705 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
17706 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
17708 LOCK_SRCS='$(NOLOCK_SRCS_1)'
17709 LOCK_OBJS='$(NOLOCK_OBJS_1)'
17712 INSTALL_SETUID='$(INSTALL_PROGRAM) $(SUID_FLAGS)'
17714 if test "$need_setuid" = yes; then
17720 if test "$setuid_hacks" = yes; then
17727 if test "$have_gl" = yes; then
17728 GL_EXES='$(GL_EXES)'
17729 GL_UTIL_EXES='$(GL_UTIL_EXES)'
17731 GL_KLUDGE="${tab} "
17733 GL_KLUDGE="-${tab} "
17736 if test "$have_gle" = yes; then
17737 GLE_EXES='$(GLE_EXES)'
17738 GLE_KLUDGE="${tab} "
17740 GLE_KLUDGE="-${tab} "
17743 if test "$have_jpeg" = yes -a "$have_gdk_pixbuf" = yes; then
17744 JPEG_EXES='$(JPEG_EXES)'
17748 # Another substitution in the XScreenSaver.ad.in file:
17750 if test "$have_gnome_help" = yes; then
17759 # Now that we know whether we have Gnome, we can decide where the XML
17760 # config files get installed.
17762 if test -z "$HACK_CONF_DIR" ; then
17763 if test -n "$GNOME_DATADIR" ; then
17764 HACK_CONF_DIR='${GNOME_DATADIR}/control-center/screensavers'
17766 HACK_CONF_DIR='${prefix}/lib/xscreensaver/config'
17772 # After computing $HACK_CONF_DIR, make sure $GLADE_DATADIR has a value
17773 # so that we know where to install the Gtk pixmaps.
17775 # It should usually be "/usr/share/pixmaps/", but we can't just use
17776 # "$(prefix)/share/pixmaps" because that would usually result in
17777 # "/usr/X11R6/share/pixmaps/", which is wrong. It needs to be the
17778 # Gnome/Gtk prefix, not the overall prefix.
17780 if test -n "$GNOME_DATADIR" ; then
17781 GLADE_DATADIR='$(GNOME_DATADIR)/xscreensaver'
17782 elif test "$have_gtk" = yes; then
17783 if test -n "$pkg_config"; then
17784 if test "$have_gtk2" = yes; then
17785 GLADE_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
17787 GLADE_DATADIR=`$pkg_config --variable=prefix gtk+`
17790 GLADE_DATADIR=`$gtk_config --prefix`
17792 GLADE_DATADIR="$GLADE_DATADIR/share/xscreensaver"
17798 # Set PO_DATADIR to something sensible.
17800 echo "$as_me:$LINENO: checking for locale directory" >&5
17801 echo $ECHO_N "checking for locale directory... $ECHO_C" >&6
17802 if test -n "$GNOME_DATADIR" ; then
17803 PO_DATADIR="$GNOME_DATADIR"
17804 elif test "$have_gtk" = yes; then
17805 if test -n "$pkg_config"; then
17806 if test "$have_gtk2" = yes; then
17807 PO_DATADIR=`$pkg_config --variable=prefix gtk+-2.0`
17809 PO_DATADIR=`$pkg_config --variable=prefix gtk+`
17812 PO_DATADIR=`$gtk_config --prefix`
17814 PO_DATADIR="$PO_DATADIR/share"
17817 if test -z "$PO_DATADIR" ; then
17819 # #### Total fucking kludge --
17820 # Map /build/prefix/usr/X11R6/share/ to /build/prefix/usr/share/
17821 # but of course we need to expand all the nested variables to do that...
17829 PO_DATADIR=`echo $dd | sed 's@/X11R6/@/@'`
17832 echo "$as_me:$LINENO: result: $PO_DATADIR/locale" >&5
17833 echo "${ECHO_T}$PO_DATADIR/locale" >&6
17836 # canonicalize slashes.
17837 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
17839 # gcc 3.0 likes to issue this warning for every file:
17841 # cc1: warning: changing search order for system directory "/usr/local/include"
17842 # cc1: warning: as it has already been specified as a non-system directory
17844 # Yay. We can only avoid that by deleting "-I${prefix}/include" from the list.
17845 # Which *should* be totally redundant, and thus an ok thing to delete?
17847 INCLUDES=`echo "$INCLUDES" | sed 's@ -I${prefix}/include@@g;'`
17850 ###############################################################################
17852 # Perform substitutions and write Makefiles.
17854 ###############################################################################
17904 APPDEFAULTS=$ac_x_app_defaults
17912 ac_config_files="$ac_config_files Makefile utils/Makefile driver/Makefile hacks/Makefile hacks/glx/Makefile po/Makefile.in driver/XScreenSaver.ad driver/xscreensaver.kss"
17913 cat >confcache <<\_ACEOF
17914 # This file is a shell script that caches the results of configure
17915 # tests run on this system so they can be shared between configure
17916 # scripts and configure runs, see configure's option --config-cache.
17917 # It is not useful on other systems. If it contains results you don't
17918 # want to keep, you may remove or edit it.
17920 # config.status only pays attention to the cache file if you give it
17921 # the --recheck option to rerun configure.
17923 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17924 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17925 # following values.
17929 # The following way of writing the cache mishandles newlines in values,
17930 # but we know of no workaround that is simple, portable, and efficient.
17931 # So, don't put newlines in cache variables' values.
17932 # Ultrix sh set writes to stderr and can't be redirected directly,
17933 # and sets the high bit in the cache file unless we assign to the vars.
17936 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17938 # `set' does not quote correctly, so add quotes (double-quote
17939 # substitution turns \\\\ into \\, and sed turns \\ into \).
17942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17945 # `set' quotes correctly as required by POSIX, so do not add quotes.
17947 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17954 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17956 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17958 if cmp -s $cache_file confcache; then :; else
17959 if test -w $cache_file; then
17960 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17961 cat confcache >$cache_file
17963 echo "not updating unwritable cache $cache_file"
17968 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17969 # Let make expand exec_prefix.
17970 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17972 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17973 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17974 # trailing colons and then remove the whole line if VPATH becomes empty
17975 # (actually we leave an empty line to preserve line numbers).
17976 if test "x$srcdir" = x.; then
17977 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17978 s/:*\$(srcdir):*/:/;
17979 s/:*\${srcdir}:*/:/;
17981 s/^\([^=]*=[ ]*\):*/\1/;
17987 DEFS=-DHAVE_CONFIG_H
17991 mv -f po/POTFILES po/POTFILES.tmp
17992 sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
17993 rm -f po/POTFILES.tmp
17997 : ${CONFIG_STATUS=./config.status}
17998 ac_clean_files_save=$ac_clean_files
17999 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18000 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18001 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18002 cat >$CONFIG_STATUS <<_ACEOF
18004 # Generated by $as_me.
18005 # Run this file to recreate the current configuration.
18006 # Compiler output produced by configure, useful for debugging
18007 # configure, is in config.log if it exists.
18010 SHELL=\${CONFIG_SHELL-$SHELL}
18013 cat >>$CONFIG_STATUS <<\_ACEOF
18015 ## --------------------- ##
18016 ## M4sh Initialization. ##
18017 ## --------------------- ##
18019 # Be Bourne compatible
18020 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18023 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18028 # Support unset when possible.
18029 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18035 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
18036 { $as_unset LANG || test "${LANG+set}" != set; } ||
18037 { LANG=C; export LANG; }
18038 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
18039 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
18040 { LC_ALL=C; export LC_ALL; }
18041 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
18042 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
18043 { LC_TIME=C; export LC_TIME; }
18044 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
18045 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
18046 { LC_CTYPE=C; export LC_CTYPE; }
18047 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
18048 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
18049 { LANGUAGE=C; export LANGUAGE; }
18050 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
18051 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
18052 { LC_COLLATE=C; export LC_COLLATE; }
18053 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
18054 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
18055 { LC_NUMERIC=C; export LC_NUMERIC; }
18056 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
18057 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
18058 { LC_MESSAGES=C; export LC_MESSAGES; }
18061 # Name of the executable.
18062 as_me=`(basename "$0") 2>/dev/null ||
18063 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18064 X"$0" : 'X\(//\)$' \| \
18065 X"$0" : 'X\(/\)$' \| \
18066 . : '\(.\)' 2>/dev/null ||
18068 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18069 /^X\/\(\/\/\)$/{ s//\1/; q; }
18070 /^X\/\(\/\).*/{ s//\1/; q; }
18073 # PATH needs CR, and LINENO needs CR and PATH.
18074 # Avoid depending upon Character Ranges.
18075 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18076 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18077 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18078 as_cr_digits='0123456789'
18079 as_cr_alnum=$as_cr_Letters$as_cr_digits
18081 # The user is always right.
18082 if test "${PATH_SEPARATOR+set}" != set; then
18083 echo "#! /bin/sh" >conftest.sh
18084 echo "exit 0" >>conftest.sh
18085 chmod +x conftest.sh
18086 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
18095 as_lineno_1=$LINENO
18096 as_lineno_2=$LINENO
18097 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18098 test "x$as_lineno_1" != "x$as_lineno_2" &&
18099 test "x$as_lineno_3" = "x$as_lineno_2" || {
18100 # Find who we are. Look in the path if we contain no path at all
18103 *[\\/]* ) as_myself=$0 ;;
18104 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18105 for as_dir in $PATH
18108 test -z "$as_dir" && as_dir=.
18109 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18114 # We did not find ourselves, most probably we were run as `sh COMMAND'
18115 # in which case we are not to be found in the path.
18116 if test "x$as_myself" = x; then
18119 if test ! -f "$as_myself"; then
18120 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18121 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18122 { (exit 1); exit 1; }; }
18124 case $CONFIG_SHELL in
18126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18127 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18130 test -z "$as_dir" && as_dir=.
18131 for as_base in sh bash ksh sh5; do
18134 if ("$as_dir/$as_base" -c '
18135 as_lineno_1=$LINENO
18136 as_lineno_2=$LINENO
18137 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18138 test "x$as_lineno_1" != "x$as_lineno_2" &&
18139 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18140 CONFIG_SHELL=$as_dir/$as_base
18141 export CONFIG_SHELL
18142 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18150 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18151 # uniformly replaced by the line number. The first 'sed' inserts a
18152 # line-number line before each line; the second 'sed' does the real
18153 # work. The second script uses 'N' to pair each line-number line
18154 # with the numbered line, and appends trailing '-' during
18155 # substitution so that $LINENO is not a special case at line end.
18156 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18157 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18158 sed '=' <$as_myself |
18163 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18166 s,^['$as_cr_digits']*\n,,
18167 ' >$as_me.lineno &&
18168 chmod +x $as_me.lineno ||
18169 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18170 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18171 { (exit 1); exit 1; }; }
18173 # Don't try to exec as it changes $[0], causing all sort of problems
18174 # (the dirname of $[0] is not the place where we might find the
18175 # original and so on. Autoconf is especially sensible to this).
18177 # Exit status is that of the last command.
18182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18183 *c*,-n*) ECHO_N= ECHO_C='
18185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18189 if expr a : '\(a\)' >/dev/null 2>&1; then
18195 rm -f conf$$ conf$$.exe conf$$.file
18197 if ln -s conf$$.file conf$$ 2>/dev/null; then
18198 # We could just check for DJGPP; but this test a) works b) is more generic
18199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18200 if test -f conf$$.exe; then
18201 # Don't use ln at all; we don't have any links
18206 elif ln conf$$.file conf$$ 2>/dev/null; then
18211 rm -f conf$$ conf$$.exe conf$$.file
18213 as_executable_p="test -f"
18215 # Sed expression to map a string onto a valid CPP name.
18216 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18218 # Sed expression to map a string onto a valid variable name.
18219 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18223 # We need space, tab and new line, in precisely that order.
18229 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
18233 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18234 # report actual input values of CONFIG_FILES etc. instead of their
18235 # values after options handling. Logging --version etc. is OK.
18239 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18240 ## Running $as_me. ##
18245 This file was extended by $as_me, which was
18246 generated by GNU Autoconf 2.53. Invocation command line was
18248 CONFIG_FILES = $CONFIG_FILES
18249 CONFIG_HEADERS = $CONFIG_HEADERS
18250 CONFIG_LINKS = $CONFIG_LINKS
18251 CONFIG_COMMANDS = $CONFIG_COMMANDS
18255 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18259 # Files that config.status was made for.
18260 if test -n "$ac_config_files"; then
18261 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18264 if test -n "$ac_config_headers"; then
18265 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18268 if test -n "$ac_config_links"; then
18269 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18272 if test -n "$ac_config_commands"; then
18273 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18276 cat >>$CONFIG_STATUS <<\_ACEOF
18279 \`$as_me' instantiates files from templates according to the
18280 current configuration.
18282 Usage: $0 [OPTIONS] [FILE]...
18284 -h, --help print this help, then exit
18285 -V, --version print version number, then exit
18286 -d, --debug don't remove temporary files
18287 --recheck update $as_me by reconfiguring in the same conditions
18288 --file=FILE[:TEMPLATE]
18289 instantiate the configuration file FILE
18290 --header=FILE[:TEMPLATE]
18291 instantiate the configuration header FILE
18293 Configuration files:
18296 Configuration headers:
18299 Configuration commands:
18302 Report bugs to <bug-autoconf@gnu.org>."
18305 cat >>$CONFIG_STATUS <<_ACEOF
18308 configured by $0, generated by GNU Autoconf 2.53,
18309 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18311 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18312 Free Software Foundation, Inc.
18313 This config.status script is free software; the Free Software Foundation
18314 gives unlimited permission to copy, distribute and modify it."
18319 cat >>$CONFIG_STATUS <<\_ACEOF
18320 # If no file are specified by the user, then we need to provide default
18321 # value. By we need to know if files were specified by the user.
18327 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18328 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18330 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18334 *) # This is not an option, so the user has probably given explicit
18336 ac_need_defaults=false;;
18340 # Handling of the options.
18342 cat >>$CONFIG_STATUS <<_ACEOF
18343 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18344 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18345 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18347 cat >>$CONFIG_STATUS <<\_ACEOF
18348 --version | --vers* | -V )
18349 echo "$ac_cs_version"; exit 0 ;;
18351 # Conflict between --help and --header
18352 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18353 Try \`$0 --help' for more information." >&5
18354 echo "$as_me: error: ambiguous option: $1
18355 Try \`$0 --help' for more information." >&2;}
18356 { (exit 1); exit 1; }; };;
18357 --help | --hel | -h )
18358 echo "$ac_cs_usage"; exit 0 ;;
18359 --debug | --d* | -d )
18361 --file | --fil | --fi | --f )
18363 CONFIG_FILES="$CONFIG_FILES $1"
18364 ac_need_defaults=false;;
18365 --header | --heade | --head | --hea )
18367 CONFIG_HEADERS="$CONFIG_HEADERS $1"
18368 ac_need_defaults=false;;
18370 # This is an error.
18371 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18372 Try \`$0 --help' for more information." >&5
18373 echo "$as_me: error: unrecognized option: $1
18374 Try \`$0 --help' for more information." >&2;}
18375 { (exit 1); exit 1; }; } ;;
18377 *) ac_config_targets="$ac_config_targets $1" ;;
18385 cat >>$CONFIG_STATUS <<_ACEOF
18387 # INIT-COMMANDS section.
18390 INTLTOOL_PERL=${INTLTOOL_PERL}
18397 cat >>$CONFIG_STATUS <<\_ACEOF
18398 for ac_config_target in $ac_config_targets
18400 case "$ac_config_target" in
18401 # Handling of arguments.
18402 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18403 "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
18404 "driver/Makefile" ) CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;;
18405 "hacks/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/Makefile" ;;
18406 "hacks/glx/Makefile" ) CONFIG_FILES="$CONFIG_FILES hacks/glx/Makefile" ;;
18407 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18408 "driver/XScreenSaver.ad" ) CONFIG_FILES="$CONFIG_FILES driver/XScreenSaver.ad" ;;
18409 "driver/xscreensaver.kss" ) CONFIG_FILES="$CONFIG_FILES driver/xscreensaver.kss" ;;
18410 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18411 "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
18412 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18413 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18414 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18415 { (exit 1); exit 1; }; };;
18419 # If the user did not use the arguments to specify the items to instantiate,
18420 # then the envvar interface is used. Set only those that are not.
18421 # We use the long form for the default assignment because of an extremely
18422 # bizarre bug on SunOS 4.1.3.
18423 if $ac_need_defaults; then
18424 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18425 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18426 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18429 # Create a temporary directory, and hook for its removal unless debugging.
18432 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18433 trap '{ (exit 1); exit 1; }' 1 2 13 15
18436 # Create a (secure) tmp directory for tmp files.
18439 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18440 test -n "$tmp" && test -d "$tmp"
18443 tmp=$TMPDIR/cs$$-$RANDOM
18444 (umask 077 && mkdir $tmp)
18447 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18448 { (exit 1); exit 1; }
18453 cat >>$CONFIG_STATUS <<_ACEOF
18456 # CONFIG_FILES section.
18459 # No need to generate the scripts if there are no CONFIG_FILES.
18460 # This happens for instance when ./config.status config.h
18461 if test -n "\$CONFIG_FILES"; then
18462 # Protect against being on the right side of a sed subst in config.status.
18463 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18464 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18465 s,@SHELL@,$SHELL,;t t
18466 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18467 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18468 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18469 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18470 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18471 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18472 s,@exec_prefix@,$exec_prefix,;t t
18473 s,@prefix@,$prefix,;t t
18474 s,@program_transform_name@,$program_transform_name,;t t
18475 s,@bindir@,$bindir,;t t
18476 s,@sbindir@,$sbindir,;t t
18477 s,@libexecdir@,$libexecdir,;t t
18478 s,@datadir@,$datadir,;t t
18479 s,@sysconfdir@,$sysconfdir,;t t
18480 s,@sharedstatedir@,$sharedstatedir,;t t
18481 s,@localstatedir@,$localstatedir,;t t
18482 s,@libdir@,$libdir,;t t
18483 s,@includedir@,$includedir,;t t
18484 s,@oldincludedir@,$oldincludedir,;t t
18485 s,@infodir@,$infodir,;t t
18486 s,@mandir@,$mandir,;t t
18487 s,@build_alias@,$build_alias,;t t
18488 s,@host_alias@,$host_alias,;t t
18489 s,@target_alias@,$target_alias,;t t
18490 s,@DEFS@,$DEFS,;t t
18491 s,@ECHO_C@,$ECHO_C,;t t
18492 s,@ECHO_N@,$ECHO_N,;t t
18493 s,@ECHO_T@,$ECHO_T,;t t
18494 s,@LIBS@,$LIBS,;t t
18495 s,@build@,$build,;t t
18496 s,@build_cpu@,$build_cpu,;t t
18497 s,@build_vendor@,$build_vendor,;t t
18498 s,@build_os@,$build_os,;t t
18499 s,@host@,$host,;t t
18500 s,@host_cpu@,$host_cpu,;t t
18501 s,@host_vendor@,$host_vendor,;t t
18502 s,@host_os@,$host_os,;t t
18504 s,@CFLAGS@,$CFLAGS,;t t
18505 s,@LDFLAGS@,$LDFLAGS,;t t
18506 s,@CPPFLAGS@,$CPPFLAGS,;t t
18507 s,@ac_ct_CC@,$ac_ct_CC,;t t
18508 s,@EXEEXT@,$EXEEXT,;t t
18509 s,@OBJEXT@,$OBJEXT,;t t
18511 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18512 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18513 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18514 s,@SET_MAKE@,$SET_MAKE,;t t
18515 s,@PERL@,$PERL,;t t
18516 s,@X_CFLAGS@,$X_CFLAGS,;t t
18517 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18518 s,@X_LIBS@,$X_LIBS,;t t
18519 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18520 s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
18521 s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
18522 s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
18523 s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
18524 s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
18525 s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
18526 s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
18527 s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
18528 s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
18529 s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
18530 s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
18531 s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
18532 s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
18533 s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
18534 s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
18535 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
18536 s,@RANLIB@,$RANLIB,;t t
18537 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18538 s,@ALLOCA@,$ALLOCA,;t t
18539 s,@USE_NLS@,$USE_NLS,;t t
18540 s,@MSGFMT@,$MSGFMT,;t t
18541 s,@GMSGFMT@,$GMSGFMT,;t t
18542 s,@XGETTEXT@,$XGETTEXT,;t t
18543 s,@CATALOGS@,$CATALOGS,;t t
18544 s,@CATOBJEXT@,$CATOBJEXT,;t t
18545 s,@DATADIRNAME@,$DATADIRNAME,;t t
18546 s,@GMOFILES@,$GMOFILES,;t t
18547 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
18548 s,@INTLDEPS@,$INTLDEPS,;t t
18549 s,@INTLLIBS@,$INTLLIBS,;t t
18550 s,@INTLOBJS@,$INTLOBJS,;t t
18551 s,@POFILES@,$POFILES,;t t
18552 s,@POSUB@,$POSUB,;t t
18553 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
18554 s,@pkg_config@,$pkg_config,;t t
18555 s,@glib_config@,$glib_config,;t t
18556 s,@gtk_config@,$gtk_config,;t t
18557 s,@gnome_config@,$gnome_config,;t t
18558 s,@have_gnome_help@,$have_gnome_help,;t t
18559 s,@xml_config@,$xml_config,;t t
18560 s,@gdk_pixbuf_config@,$gdk_pixbuf_config,;t t
18561 s,@fortune_tmp@,$fortune_tmp,;t t
18562 s,@INCLUDES@,$INCLUDES,;t t
18563 s,@PREFERRED_DEMO_PROGRAM@,$PREFERRED_DEMO_PROGRAM,;t t
18564 s,@ALL_DEMO_PROGRAMS@,$ALL_DEMO_PROGRAMS,;t t
18565 s,@SAVER_LIBS@,$SAVER_LIBS,;t t
18566 s,@MOTIF_LIBS@,$MOTIF_LIBS,;t t
18567 s,@GTK_LIBS@,$GTK_LIBS,;t t
18568 s,@XML_LIBS@,$XML_LIBS,;t t
18569 s,@JPEG_LIBS@,$JPEG_LIBS,;t t
18570 s,@HACK_LIBS@,$HACK_LIBS,;t t
18571 s,@XPM_LIBS@,$XPM_LIBS,;t t
18572 s,@GL_LIBS@,$GL_LIBS,;t t
18573 s,@GLE_LIBS@,$GLE_LIBS,;t t
18574 s,@XDPMS_LIBS@,$XDPMS_LIBS,;t t
18575 s,@PASSWD_LIBS@,$PASSWD_LIBS,;t t
18576 s,@INSTALL_SETUID@,$INSTALL_SETUID,;t t
18577 s,@SETUID_HACKS@,$SETUID_HACKS,;t t
18578 s,@INSTALL_DIRS@,$INSTALL_DIRS,;t t
18579 s,@NEED_SETUID@,$NEED_SETUID,;t t
18580 s,@INSTALL_PAM@,$INSTALL_PAM,;t t
18581 s,@PASSWD_SRCS@,$PASSWD_SRCS,;t t
18582 s,@PASSWD_OBJS@,$PASSWD_OBJS,;t t
18583 s,@XMU_SRCS@,$XMU_SRCS,;t t
18584 s,@XMU_OBJS@,$XMU_OBJS,;t t
18585 s,@XMU_LIBS@,$XMU_LIBS,;t t
18586 s,@SAVER_GL_SRCS@,$SAVER_GL_SRCS,;t t
18587 s,@SAVER_GL_OBJS@,$SAVER_GL_OBJS,;t t
18588 s,@SAVER_GL_LIBS@,$SAVER_GL_LIBS,;t t
18589 s,@LOCK_SRCS@,$LOCK_SRCS,;t t
18590 s,@LOCK_OBJS@,$LOCK_OBJS,;t t
18591 s,@JPEG_EXES@,$JPEG_EXES,;t t
18592 s,@GL_EXES@,$GL_EXES,;t t
18593 s,@GL_UTIL_EXES@,$GL_UTIL_EXES,;t t
18594 s,@GL_MEN@,$GL_MEN,;t t
18595 s,@GL_KLUDGE@,$GL_KLUDGE,;t t
18596 s,@GLE_EXES@,$GLE_EXES,;t t
18597 s,@GLE_KLUDGE@,$GLE_KLUDGE,;t t
18598 s,@GNOMEHELP_Y@,$GNOMEHELP_Y,;t t
18599 s,@GNOMEHELP_N@,$GNOMEHELP_N,;t t
18600 s,@HACKDIR@,$HACKDIR,;t t
18601 s,@GNOME_DATADIR@,$GNOME_DATADIR,;t t
18602 s,@GLADE_DATADIR@,$GLADE_DATADIR,;t t
18603 s,@PO_DATADIR@,$PO_DATADIR,;t t
18604 s,@GNOME_PANELDIR@,$GNOME_PANELDIR,;t t
18605 s,@HACK_CONF_DIR@,$HACK_CONF_DIR,;t t
18606 s,@GTK_EXTRA_OBJS@,$GTK_EXTRA_OBJS,;t t
18607 s,@APPDEFAULTS@,$APPDEFAULTS,;t t
18608 s,@DEPEND@,$DEPEND,;t t
18609 s,@DEPEND_FLAGS@,$DEPEND_FLAGS,;t t
18610 s,@DEPEND_DEFINES@,$DEPEND_DEFINES,;t t
18615 cat >>$CONFIG_STATUS <<\_ACEOF
18616 # Split the substitutions into bite-sized pieces for seds with
18617 # small command number limits, like on Digital OSF/1 and HP-UX.
18618 ac_max_sed_lines=48
18619 ac_sed_frag=1 # Number of current file.
18620 ac_beg=1 # First line for current file.
18621 ac_end=$ac_max_sed_lines # Line after last line for current file.
18624 while $ac_more_lines; do
18625 if test $ac_beg -gt 1; then
18626 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18628 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18630 if test ! -s $tmp/subs.frag; then
18631 ac_more_lines=false
18633 # The purpose of the label and of the branching condition is to
18634 # speed up the sed processing (if there are no `@' at all, there
18635 # is no need to browse any of the substitutions).
18636 # These are the two extra sed commands mentioned above.
18638 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18639 if test -z "$ac_sed_cmds"; then
18640 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18642 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18644 ac_sed_frag=`expr $ac_sed_frag + 1`
18646 ac_end=`expr $ac_end + $ac_max_sed_lines`
18649 if test -z "$ac_sed_cmds"; then
18652 fi # test -n "$CONFIG_FILES"
18655 cat >>$CONFIG_STATUS <<\_ACEOF
18656 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18657 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18659 - | *:- | *:-:* ) # input from stdin
18661 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18662 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18663 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18664 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18665 * ) ac_file_in=$ac_file.in ;;
18668 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18669 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18670 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18671 X"$ac_file" : 'X\(//\)[^/]' \| \
18672 X"$ac_file" : 'X\(//\)$' \| \
18673 X"$ac_file" : 'X\(/\)' \| \
18674 . : '\(.\)' 2>/dev/null ||
18676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18677 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18678 /^X\(\/\/\)$/{ s//\1/; q; }
18679 /^X\(\/\).*/{ s//\1/; q; }
18681 { case "$ac_dir" in
18682 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18686 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18687 case $as_mkdir_dir in
18688 # Skip DOS drivespec
18689 ?:) as_incr_dir=$as_mkdir_dir ;;
18691 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18692 test -d "$as_incr_dir" ||
18693 mkdir "$as_incr_dir" ||
18694 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
18695 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
18696 { (exit 1); exit 1; }; }
18703 if test "$ac_dir" != .; then
18704 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18705 # A "../" for each directory in $ac_dir_suffix.
18706 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18708 ac_dir_suffix= ac_top_builddir=
18712 .) # No --srcdir option. We are building in place.
18714 if test -z "$ac_top_builddir"; then
18717 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18719 [\\/]* | ?:[\\/]* ) # Absolute path.
18720 ac_srcdir=$srcdir$ac_dir_suffix;
18721 ac_top_srcdir=$srcdir ;;
18722 *) # Relative path.
18723 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18724 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18726 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18728 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18729 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
18730 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18731 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18735 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18736 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18739 if test x"$ac_file" != x-; then
18740 { echo "$as_me:$LINENO: creating $ac_file" >&5
18741 echo "$as_me: creating $ac_file" >&6;}
18744 # Let's still pretend it is `configure' which instantiates (i.e., don't
18745 # use $as_me), people would be surprised to read:
18746 # /* config.h. Generated by config.status. */
18747 if test x"$ac_file" = x-; then
18750 configure_input="$ac_file. "
18752 configure_input=$configure_input"Generated from `echo $ac_file_in |
18753 sed 's,.*/,,'` by configure."
18755 # First look for the input files in the build tree, otherwise in the
18757 ac_file_inputs=`IFS=:
18758 for f in $ac_file_in; do
18760 -) echo $tmp/stdin ;;
18762 # Absolute (can't be DOS-style, as IFS=:)
18763 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18764 echo "$as_me: error: cannot find input file: $f" >&2;}
18765 { (exit 1); exit 1; }; }
18768 if test -f "$f"; then
18771 elif test -f "$srcdir/$f"; then
18776 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18777 echo "$as_me: error: cannot find input file: $f" >&2;}
18778 { (exit 1); exit 1; }; }
18781 done` || { (exit 1); exit 1; }
18783 cat >>$CONFIG_STATUS <<_ACEOF
18787 cat >>$CONFIG_STATUS <<\_ACEOF
18789 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18790 s,@configure_input@,$configure_input,;t t
18791 s,@srcdir@,$ac_srcdir,;t t
18792 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18793 s,@top_srcdir@,$ac_top_srcdir,;t t
18794 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18795 s,@builddir@,$ac_builddir,;t t
18796 s,@abs_builddir@,$ac_abs_builddir,;t t
18797 s,@top_builddir@,$ac_top_builddir,;t t
18798 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18799 s,@INSTALL@,$ac_INSTALL,;t t
18800 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18802 if test x"$ac_file" != x-; then
18803 mv $tmp/out $ac_file
18811 cat >>$CONFIG_STATUS <<\_ACEOF
18814 # CONFIG_HEADER section.
18817 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18818 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18820 # ac_d sets the value in "#define NAME VALUE" lines.
18821 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18822 ac_dB='[ ].*$,\1#\2'
18825 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18826 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18827 ac_uB='$,\1#\2define\3'
18831 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18832 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18834 - | *:- | *:-:* ) # input from stdin
18836 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18837 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18838 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18839 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18840 * ) ac_file_in=$ac_file.in ;;
18843 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18844 echo "$as_me: creating $ac_file" >&6;}
18846 # First look for the input files in the build tree, otherwise in the
18848 ac_file_inputs=`IFS=:
18849 for f in $ac_file_in; do
18851 -) echo $tmp/stdin ;;
18853 # Absolute (can't be DOS-style, as IFS=:)
18854 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18855 echo "$as_me: error: cannot find input file: $f" >&2;}
18856 { (exit 1); exit 1; }; }
18859 if test -f "$f"; then
18862 elif test -f "$srcdir/$f"; then
18867 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18868 echo "$as_me: error: cannot find input file: $f" >&2;}
18869 { (exit 1); exit 1; }; }
18872 done` || { (exit 1); exit 1; }
18873 # Remove the trailing spaces.
18874 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18878 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18879 # `conftest.undefs', that substitutes the proper values into
18880 # config.h.in to produce config.h. The first handles `#define'
18881 # templates, and the second `#undef' templates.
18882 # And first: Protect against being on the right side of a sed subst in
18883 # config.status. Protect against being in an unquoted here document
18884 # in config.status.
18885 rm -f conftest.defines conftest.undefs
18886 # Using a here document instead of a string reduces the quoting nightmare.
18887 # Putting comments in sed scripts is not portable.
18889 # `end' is used to avoid that the second main sed command (meant for
18890 # 0-ary CPP macros) applies to n-ary macro definitions.
18891 # See the Autoconf documentation for `clear'.
18892 cat >confdef2sed.sed <<\_ACEOF
18897 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18899 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18902 # If some macros were called several times there might be several times
18903 # the same #defines, which is useless. Nevertheless, we may not want to
18904 # sort them, since we want the *last* AC-DEFINE to be honored.
18905 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18906 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18907 rm -f confdef2sed.sed
18909 # This sed command replaces #undef with comments. This is necessary, for
18910 # example, in the case of _POSIX_SOURCE, which is predefined and required
18911 # on some systems where configure will not decide to define it.
18912 cat >>conftest.undefs <<\_ACEOF
18913 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18916 # Break up conftest.defines because some shells have a limit on the size
18917 # of here documents, and old seds have small limits too (100 cmds).
18918 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18919 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18920 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18921 echo ' :' >>$CONFIG_STATUS
18922 rm -f conftest.tail
18923 while grep . conftest.defines >/dev/null
18925 # Write a limited-size here document to $tmp/defines.sed.
18926 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18927 # Speed up: don't consider the non `#define' lines.
18928 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18929 # Work around the forget-to-reset-the-flag bug.
18930 echo 't clr' >>$CONFIG_STATUS
18931 echo ': clr' >>$CONFIG_STATUS
18932 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18934 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18936 mv $tmp/out $tmp/in
18938 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18939 rm -f conftest.defines
18940 mv conftest.tail conftest.defines
18942 rm -f conftest.defines
18943 echo ' fi # egrep' >>$CONFIG_STATUS
18944 echo >>$CONFIG_STATUS
18946 # Break up conftest.undefs because some shells have a limit on the size
18947 # of here documents, and old seds have small limits too (100 cmds).
18948 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18949 rm -f conftest.tail
18950 while grep . conftest.undefs >/dev/null
18952 # Write a limited-size here document to $tmp/undefs.sed.
18953 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18954 # Speed up: don't consider the non `#undef'
18955 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18956 # Work around the forget-to-reset-the-flag bug.
18957 echo 't clr' >>$CONFIG_STATUS
18958 echo ': clr' >>$CONFIG_STATUS
18959 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18961 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18963 mv $tmp/out $tmp/in
18965 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18966 rm -f conftest.undefs
18967 mv conftest.tail conftest.undefs
18969 rm -f conftest.undefs
18971 cat >>$CONFIG_STATUS <<\_ACEOF
18972 # Let's still pretend it is `configure' which instantiates (i.e., don't
18973 # use $as_me), people would be surprised to read:
18974 # /* config.h. Generated by config.status. */
18975 if test x"$ac_file" = x-; then
18976 echo "/* Generated by configure. */" >$tmp/config.h
18978 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18980 cat $tmp/in >>$tmp/config.h
18982 if test x"$ac_file" != x-; then
18983 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18984 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18985 echo "$as_me: $ac_file is unchanged" >&6;}
18987 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18988 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18989 X"$ac_file" : 'X\(//\)[^/]' \| \
18990 X"$ac_file" : 'X\(//\)$' \| \
18991 X"$ac_file" : 'X\(/\)' \| \
18992 . : '\(.\)' 2>/dev/null ||
18994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18995 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18996 /^X\(\/\/\)$/{ s//\1/; q; }
18997 /^X\(\/\).*/{ s//\1/; q; }
18999 { case "$ac_dir" in
19000 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19004 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19005 case $as_mkdir_dir in
19006 # Skip DOS drivespec
19007 ?:) as_incr_dir=$as_mkdir_dir ;;
19009 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19010 test -d "$as_incr_dir" ||
19011 mkdir "$as_incr_dir" ||
19012 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
19013 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
19014 { (exit 1); exit 1; }; }
19020 mv $tmp/config.h $ac_file
19024 rm -f $tmp/config.h
19028 cat >>$CONFIG_STATUS <<\_ACEOF
19031 # CONFIG_COMMANDS section.
19033 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19034 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19035 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19036 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19037 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19038 X"$ac_dest" : 'X\(//\)[^/]' \| \
19039 X"$ac_dest" : 'X\(//\)$' \| \
19040 X"$ac_dest" : 'X\(/\)' \| \
19041 . : '\(.\)' 2>/dev/null ||
19043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19044 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19045 /^X\(\/\/\)$/{ s//\1/; q; }
19046 /^X\(\/\).*/{ s//\1/; q; }
19050 if test "$ac_dir" != .; then
19051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19052 # A "../" for each directory in $ac_dir_suffix.
19053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19055 ac_dir_suffix= ac_top_builddir=
19059 .) # No --srcdir option. We are building in place.
19061 if test -z "$ac_top_builddir"; then
19064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19066 [\\/]* | ?:[\\/]* ) # Absolute path.
19067 ac_srcdir=$srcdir$ac_dir_suffix;
19068 ac_top_srcdir=$srcdir ;;
19069 *) # Relative path.
19070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19073 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19075 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19076 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
19077 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19078 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19081 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19082 echo "$as_me: executing $ac_dest commands" >&6;}
19086 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
19087 if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
19088 rm -f intltool-extract.out
19090 mv -f intltool-extract.out intltool-extract
19092 chmod ugo+x intltool-extract
19093 chmod u+w intltool-extract
19095 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
19096 if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
19097 rm -f intltool-merge.out
19099 mv -f intltool-merge.out intltool-merge
19101 chmod ugo+x intltool-merge
19102 chmod u+w intltool-merge
19104 sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
19105 if cmp -s intltool-update intltool-update.out 2>/dev/null; then
19106 rm -f intltool-update.out
19108 mv -f intltool-update.out intltool-update
19110 chmod ugo+x intltool-update
19111 chmod u+w intltool-update
19114 default-2 ) case "$CONFIG_FILES" in *po/Makefile.in*)
19115 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
19121 cat >>$CONFIG_STATUS <<\_ACEOF
19123 { (exit 0); exit 0; }
19125 chmod +x $CONFIG_STATUS
19126 ac_clean_files=$ac_clean_files_save
19129 # configure is writing to config.log, and then calls config.status.
19130 # config.status does its own redirection, appending to config.log.
19131 # Unfortunately, on DOS this fails, as config.log is still kept open
19132 # by configure, so config.status won't be able to write to it; its
19133 # output is simply discarded. So we exec the FD to /dev/null,
19134 # effectively closing config.log, so it can be properly (re)opened and
19135 # appended to by config.status. When coming back to configure, we
19136 # need to make the FD available again.
19137 if test "$no_create" != yes; then
19140 $SHELL $CONFIG_STATUS || ac_cs_success=false
19142 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19143 # would make configure fail if this is the last instruction.
19144 $ac_cs_success || { (exit 1); exit 1; }
19148 ###############################################################################
19150 # Print some warnings at the end.
19152 ###############################################################################
19154 warn_prefix_1=" Warning:"
19155 warn_prefix_2=" Note:"
19156 warn_prefix="$warn_prefix_1"
19159 warnsep=' #################################################################'
19162 if test "$warning" = no ; then
19163 echo '' ; echo "$warnsep" ; echo ''
19170 if test "$warning" = long ; then echo '' ; fi
19173 echo "$warn_prefix $rest"
19180 if test "$was" != no ; then echo '' ; fi
19182 echo "$warn_prefix $rest"
19192 warn_prefix="$warn_prefix_2"
19194 warn_prefix="$warn_prefix_1"
19198 warn_prefix="$warn_prefix_2"
19200 warn_prefix="$warn_prefix_1"
19204 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
19205 warn 'The SGI saver extension was requested, but was not found.'
19208 if test "$with_mit_req" = yes -a "$have_mit" = no ; then
19209 warn 'The MIT saver extension was requested, but was not found.'
19212 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
19213 warn 'The XIdle extension was requested, but was not found.'
19216 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
19217 warn 'The XSHM extension was requested, but was not found.'
19220 if test "$with_xdbe_req" = yes -a "$have_xdbe" = no ; then
19221 warn 'The DOUBLE-BUFFER extension was requested, but was not found.'
19224 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
19225 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
19228 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
19229 warn 'The DPMS extension was requested, but was not found.'
19232 if test "$with_xinerama_req" = yes -a "$have_xinerama" = no ; then
19233 warn 'The Xinerama extension was requested, but was not found.'
19236 if test "$with_xf86vmode_req" = yes -a "$have_xf86vmode" = no ; then
19237 warn 'The XF86VMODE extension was requested, but was not found.'
19240 if test "$with_proc_interrupts_req" = yes -a "$have_proc_interrupts" = no; then
19241 warn "Checking of /proc/interrupts was requested, but it's bogus."
19245 if test "$have_motif" = no -a "$have_gtk" = no; then
19246 warnL "Neither Motif nor Gtk seem to be available;"
19247 warn2 "the \`xscreensaver-demo' program requires one of these."
19249 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
19250 warnL "Use of Motif was requested, but it wasn't found;"
19251 warn2 "Gtk will be used instead."
19253 elif test "$jurassic_gtk" = yes ; then
19257 v="$ac_gtk_version_string"
19258 if test "$with_gtk_req" = yes -a "$ac_gtk_version" = "unknown" ; then
19259 warnL "Use of Gtk was requested, but its version number is unknown;"
19260 elif test "$with_gtk_req" = yes ; then
19261 warnL "Use of Gtk was requested, but it is version $v;"
19263 warnL "Gtk was found on this system, but it is version $v;"
19266 warn2 "Gtk $pref_gtk or newer is required. Motif will be used instead."
19268 elif test "$with_gtk_req" = yes -a "$have_gtk" = no ; then
19269 warnL "Use of Gtk was requested, but it wasn't found."
19270 if test "$have_motif" = yes; then
19271 warn2 "Motif will be used instead."
19275 if test "$gtk2_halfassed" != no ; then
19276 warnL "GTK version $gtk2_halfassed was found, but at least one supporting"
19277 warn2 "library ($gtk2_halfassed_lib) was not, so GTK 2.x can't be used."
19278 v="$ac_gtk_version_string"
19279 warn2 "GTK $v is also installed, so it will be used instead."
19280 warn2 "Please read the above output and the \`config.log' file"
19281 warn2 "for more details."
19285 if test "$with_gnome_req" = yes -a "$have_gnome" = no \
19286 -a "$have_gtk2" = no; then
19287 # don't issue this warning if we have GTK2 -- in that case, the
19288 # Gnome-specific code isn't needed.
19289 warn 'Use of the Gnome Control Panel was requested, but the necessary'
19290 warn2 'headers and/or libraries were not found.'
19293 if test "$have_gtk" = yes ; then
19294 if test "$have_xml" = no ; then
19295 if test "$with_xml_req" = yes ; then
19296 warn 'Use of the XML library was requested, but the necessary'
19297 warn2 'headers and/or libraries were not found.'
19299 warn 'GTK is being used, but the XML library was not found.'
19302 if test "$xml_halfassed" = yes ; then
19304 if test "$have_zlib" = yes ; then
19305 which="XML libraries"
19307 which="\`zlib' library"
19311 warn2 'More specifically, we found the headers, but not the'
19312 warn2 "$which; so either XML is half-installed on this"
19313 warn2 "system, or something else went wrong. The \`config.log'"
19314 warn2 'file might contain some clues.'
19318 warn2 "Without XML, the per-display-mode \`Settings' dialogs"
19319 warn2 'will not be available. Specify the location of the XML'
19320 warn2 'library through the --with-xml option to configure.'
19324 if test "$have_gtk" = yes -a "$have_gdk_pixbuf" = no ; then
19325 warn "GTK is being used, but the GDK-Pixbuf library and/or"
19326 warn2 "headers were not found. That can't be good. Please"
19327 warn2 "install the GDK-Pixbuf development kit and re-configure."
19330 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
19332 preferred_lesstif=0.92
19334 if test "$lesstif_version" = unknown; then
19335 warnL "Unable to determine the LessTif version number!"
19336 warn2 "Make sure you are using version $preferred_lesstif or newer."
19337 warn2 "See <http://www.lesstif.org/>."
19339 elif test \! $lesstif_version -gt 82; then
19340 warnL "LessTif version $lesstif_version_string is being used."
19341 warn2 "LessTif versions 0.82 and earlier are too buggy to"
19342 warn2 "use with XScreenSaver; it is strongly recommended"
19343 warn2 "that you upgrade to at least version $preferred_lesstif!"
19344 warn2 "See <http://www.lesstif.org/>."
19349 if test "$have_motif" = yes -a "$have_gtk" = no ; then
19350 warn 'Motif is being used, and GTK is not.'
19352 warn2 'Though the Motif front-end to xscreensaver is still'
19353 warn2 'maintained, it is no longer being updated with new'
19354 warn2 'features: all new development on the xscreensaver-demo'
19355 warn2 'program is happening in the GTK version, and not in the'
19356 warn2 'Motif version. It is recommended that you build against'
19357 warn2 'GTK instead of Motif. See <http://www.gtk.org/>.'
19361 if test "$with_xpm_req" = yes -a "$have_xpm" = no; then
19362 warnL 'Use of XPM was requested, but it was not found.'
19365 if test "$with_gdk_pixbuf_req" = yes -a "$have_gdk_pixbuf" = no; then
19366 warnL 'Use of GDK-Pixbuf was requested, but it was not found.'
19369 if test "$have_xpm" = no -a "$have_gdk_pixbuf" = no || \
19370 test "$gdk_pixbuf_halfassed" = yes; then
19372 if test "$with_xpm_req" = yes -o "$have_xpm" = yes ; then
19374 elif test "$with_xpm_req" = no ; then
19375 warnL 'The XPM library is not being used.'
19377 warnL 'The XPM library was not found.'
19380 if test "$with_gdk_pixbuf_req" = yes ; then
19382 elif test "$with_gdk_pixbuf_req" = no ; then
19383 warnL 'The GDK-Pixbuf library is not being used.'
19385 warnL 'The GDK-Pixbuf library was not found.'
19388 if test "$gdk_pixbuf_halfassed" = yes ; then
19390 warn2 'More specifically, we found the headers, but not the'
19391 warn2 'libraries; so either GDK-Pixbuf is half-installed on this'
19392 warn2 "system, or something else went wrong. The \`config.log'"
19393 warn2 'file might contain some clues.'
19397 warn2 'Some of the demos will not be as colorful as they'
19398 warn2 'could be. You should consider installing Pixbuf or'
19399 warn2 'XPM and re-running configure. The Pixbuf library is'
19400 warn2 'a part of GNOME. The XPM library comes with most'
19401 warn2 'X11 installations; you can also find it at the X11'
19402 warn2 'archive sites, such as <http://sunsite.unc.edu/>.'
19404 warn2 'GDK-Pixbuf is recommended over XPM, as it provides'
19405 warn2 'support for more image formats.'
19409 if test "$have_jpeg" = no ; then
19410 if test "$with_jpeg_req" = yes ; then
19411 warnL 'Use of libjpeg was requested, but it was not found.'
19412 elif test "$with_jpeg_req" = no ; then
19413 noteL 'The JPEG library is not being used.'
19415 noteL 'The JPEG library was not found.'
19418 if test "$jpeg_halfassed" = yes ; then
19420 warn2 'More specifically, we found the headers, but not the'
19421 warn2 'library; so either JPEG is half-installed on this'
19422 warn2 "system, or something else went wrong. The \`config.log'"
19423 warn2 'file might contain some clues.'
19427 if test "$have_gdk_pixbuf" = no ; then
19428 warn2 "This means that it won't be possible for the image-manipulating"
19429 warn2 "display modes to load files from disk; and it also means that"
19430 warn2 "the \`webcollage' program will be much slower."
19432 warn2 "This means the \`webcollage' program will be much slower."
19437 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
19438 preferred_mesagl=3.4
19439 mgv="$ac_mesagl_version_string"
19440 pgl="$preferred_mesagl"
19442 if test "$ac_mesagl_version" = unknown; then
19443 warnL "Unable to determine the MesaGL version number!"
19444 warn2 "Make sure you are using version $preferred_mesagl or newer."
19446 elif test \! "$ac_mesagl_version" -gt 2006; then
19447 warnL "MesaGL version number is $mgv --"
19448 warn2 "MesaGL 2.6 and earlier have a security bug. It is strongly"
19449 warn2 "recommended that you upgrade to at least version $preferred_mesagl."
19451 elif test \! "$ac_mesagl_version" -gt 3003; then
19452 warnL "MesaGL version number is $mgv --"
19453 warn2 "MesaGL 3.3 and earlier have some bugs; it is recommended"
19454 warn2 "that you upgrade to $pgl or newer."
19458 if test "$have_gl" = no ; then
19459 if test "$with_gl_req" = yes ; then
19460 warnL 'Use of GL was requested, but it was not found.'
19461 elif test "$with_gl_req" = no ; then
19462 noteL 'The OpenGL 3D library is not being used.'
19464 noteL 'The OpenGL 3D library was not found.'
19467 if test "$gl_halfassed" = yes ; then
19469 warn2 'More specifically, we found the headers, but not the'
19470 warn2 'libraries; so either GL is half-installed on this'
19471 warn2 "system, or something else went wrong. The \`config.log'"
19472 warn2 'file might contain some clues.'
19476 warn2 'Those demos which use 3D will not be built or installed.'
19477 warn2 'You might want to consider installing OpenGL and'
19478 warn2 "re-running configure. If your vendor doesn't ship"
19479 warn2 'their own implementation of OpenGL, you can get a free'
19480 warn2 'version at <http://www.mesa3d.org/>. For general OpenGL'
19481 warn2 'info, see <http://www.opengl.org/>.'
19486 if test "$have_gl" = yes -a "$have_gle" = no ; then
19488 # nobody cares about this; don't print the warning unless it was
19489 # requested and not found, or halfway-found.
19490 if test "$with_gle_req" = yes -o "$gle_halfassed" = yes ; then
19492 if test "$with_gle_req" = yes ; then
19493 noteL 'Use of the GLE (GL Extrusion) library was requested, but'
19494 warn2 'it was not found (though the OpenGL library was found, and'
19495 warn2 'is being used.)'
19496 elif test "$with_gle_req" = no ; then
19497 noteL 'The OpenGL Library is being used, but the GLE (GL Extrusion)'
19498 warn2 'library is not.'
19500 noteL 'The OpenGL Library was found, but the GLE (GL Extrusion)'
19504 if test "$gle_halfassed" = yes ; then
19506 warn2 'More specifically, we found the headers, but not the'
19507 warn2 'libraries; so either GLE is half-installed on this'
19508 warn2 "system, or something else went wrong. The \`config.log'"
19509 warn2 'file might contain some clues.'
19513 warn2 'Some of the OpenGL (3D) demos (those that depend on GLE)'
19514 warn2 'will not be built or installed. You might want to consider'
19515 warn2 'installing GLE and re-running configure. You can find the'
19516 warn2 'GLE library at <http://www.linas.org/gle/>. For general'
19517 warn2 'OpenGL info, see <http://www.opengl.org/>.'
19523 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
19524 warn 'Use of XReadDisplay was requested, but it was not found.'
19527 if test -n "$with_fortune_req"; then
19528 if test "$with_fortune_req" != "$ac_cv_fortune_program" ; then
19529 warnL "$with_fortune_req was requested as the Fortune program,"
19530 warn2 "but was not found. The default will be used instead."
19534 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
19535 warn 'Use of Kerberos was requested, but it was not found.'
19538 if test "$with_pam_req" = yes -a "$have_pam" = no ; then
19539 warn 'Use of PAM was requested, but it was not found.'
19542 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
19543 warn 'Use of shadow passwords was requested, but they were not found.'
19547 # You are in a twisty maze of namespaces and syntaxes, all alike.
19548 # Fuck the skull of Unix.
19550 eval bindir=${bindir}
19551 eval bindir=${bindir}
19552 eval bindir=${bindir}
19553 eval bindir=${bindir}
19554 eval bindir=${bindir}
19555 eval bindir=${bindir}
19556 eval HACKDIR=${HACKDIR}
19557 eval HACKDIR=${HACKDIR}
19558 eval HACKDIR=${HACKDIR}
19559 eval HACKDIR=${HACKDIR}
19560 eval HACKDIR=${HACKDIR}
19561 eval HACKDIR=${HACKDIR}
19562 eval HACK_CONF_DIR=${HACK_CONF_DIR}
19563 eval HACK_CONF_DIR=${HACK_CONF_DIR}
19564 eval HACK_CONF_DIR=${HACK_CONF_DIR}
19565 eval HACK_CONF_DIR=${HACK_CONF_DIR}
19566 eval HACK_CONF_DIR=${HACK_CONF_DIR}
19567 eval HACK_CONF_DIR=${HACK_CONF_DIR}
19569 # canonicalize slashes.
19570 bindir=`echo "${bindir}" | sed 's@/$@@;s@//*@/@g'`
19571 HACKDIR=`echo "${HACKDIR}" | sed 's@/$@@;s@//*@/@g'`
19572 HACK_CONF_DIR=`echo "${HACK_CONF_DIR}" | sed 's@/$@@;s@//*@/@g'`
19575 # Sanity check the hackdir
19576 for bad_choice in xscreensaver xscreensaver-demo xscreensaver-command ; do
19577 if test "${HACKDIR}" = "${bindir}/${bad_choice}" ; then
19579 { { echo "$as_me:$LINENO: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
19580 There will be an executable installed with that name, so
19581 that can't be the name of a directory as well. Please
19582 re-configure with a different directory name." >&5
19583 echo "$as_me: error: \"--with-hackdir=${bindir}/${bad_choice}\" won't work.
19584 There will be an executable installed with that name, so
19585 that can't be the name of a directory as well. Please
19586 re-configure with a different directory name." >&2;}
19587 { (exit 1); exit 1; }; }
19594 # Now let's see if there's a previous RPM version already installed. Blargh!
19598 rpmv=`(rpm -qv xscreensaver) 2>/dev/null | \
19599 sed -n 's/^xscreensaver-\([0-9][0-9]*[.][0-9][0-9]*\)-.*$/\1/p'`
19602 if test \! -z "$rpmv" ; then
19603 rpmbdir=`rpm -ql xscreensaver | sed -n 's@^\(.*\)/xscreensaver-demo$@\1@p'`
19604 rpmhdir=`rpm -ql xscreensaver | sed -n 's@^\(.*\)/attraction$@\1@p'`
19607 warnL "There is already an installed RPM of xscreensaver $rpmv"
19608 warn2 "on this system. You might want to remove it (with"
19609 warn2 '"rpm -ve xscreensaver") before running "make install"'
19610 warn2 "from this directory."
19612 warn2 "Alternately, you could build this version of xscreensaver"
19613 warn2 'as an RPM, and then install that. An "xscreensaver.spec"'
19614 warn2 "file is included. See the RPM documentation for more info."
19617 if test "$rpmbdir" = "$rpmhdir" ; then
19618 warn2 "The RPM version was installed in $rpmbdir/."
19620 warn2 "The RPM version was installed in $rpmbdir/,"
19621 warn2 "with demos in $rpmhdir/."
19628 if test "${bindir}" = "${HACKDIR}" ; then
19632 if test "$do_dir_warning" = yes; then
19636 echo ' When you run "make install", the "xscreensaver",'
19637 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
19638 echo " will be installed in ${bindir}/."
19640 echo " The various graphics demos (150+ different executables) will"
19641 echo " be installed in ${HACKDIR}/."
19643 echo " If you would prefer the demos to be installed elsewhere,"
19644 echo " you should re-run configure with the --with-hackdir=DIR"
19645 echo " option. For more information, run \`./configure --help'."
19649 if test "$warning" != no; then
19650 echo '' ; echo "$warnsep" ; echo ''
19653 if test "$do_dir_warning" = no; then
19654 if test "$warning" = no; then
19657 echo "User programs will be installed in ${bindir}/"
19658 echo "Screen savers will be installed in ${HACKDIR}/"
19659 echo "Configuration will be installed in ${HACK_CONF_DIR}/"