3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
17 --enable-subdir=DIR Put the demo programs in a subdirectory of \`bindir',
18 instead of putting them in bindir itself. You can
19 specify the name of the subdirectory. For example,
20 --exec-prefix=/usr/local/bin --enable-subdir=demos
21 would put xscreensaver in /usr/local/bin/, and would
22 put the demos in /usr/local/bin/demos/. (If DIR
23 begins with /, then bindir will not be prepended.)
25 --disable-subdir Just put the demos in \`bindir' (this is the default.)
29 Except where noted, all of the --with options below can also take a
30 directory argument: for example, --with-motif=/opt/Motif. That would
31 cause /opt/Motif/include/ to be added to the -I list, and /opt/Motif/lib/
32 to be added to the -L list, assuming those directories exist.
34 X Server Extension options:
36 --with-sgi-ext Include support for the SGI SCREEN_SAVER
37 server extension, if possible (this is the default).
38 --without-sgi-ext Do not compile in support for this extension."
40 --with-mit-ext Include support for the MIT-SCREEN-SAVER
41 server extension, if possible (this is the default).
42 --without-mit-ext Do not compile in support for this extension."
44 --with-xidle-ext Include support for the XIDLE server extension,
45 if possible (this is the default).
46 --without-xidle-ext Do not compile in support for this extension."
48 --with-xshm-ext Include support for the XSHM (Shared Memory) server
49 extension, if possible (this is the default).
50 --without-xshm-ext Do not compile in support for this extension."
52 --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL server
53 extension, if possible (this is the default).
54 --without-sgivc-ext Do not compile in support for this extension."
56 --with-dpms-ext Include support for the DPMS server extension,
57 if possible (this is the default).
58 --without-dpms-ext Do not compile in support for this extension."
61 X Client Toolkit options:
63 --with-motif Use the Motif toolkit for the user interface, if
64 possible (this is the default).
65 --without-motif Do not use Motif."
67 --with-athena Use the Athena toolkit for the user interface, if
68 possible (this is the default if Motif isn't used.)
69 --without-athena Do not use Athena."
72 Graphics Demo options:
74 --with-xpm Include support for XPM files in some demos,
75 if possible (this is the default).
76 --without-xpm Do not compile in support for XPM files."
78 --with-gl Build those demos which depend on OpenGL,
79 if possible (this is the default).
80 --without-gl Do not build the OpenGL demos."
82 --with-readdisplay Include support for the XReadDisplay server
83 extension if possible (this is the default).
84 --without-readdisplay Do not compile in support for this extension."
86 --with-sgivideo Include support for SGI's Iris Video Library
87 if possible (this is the default).
88 --without-sgivideo Do not compile in support for this library."
90 --with-zippy=PROGRAM Some demos are able to run an external program and
91 display its text; this names the program to use by
92 default (though it can be overridden with X
93 resources.) If you don't specify this, the default
94 is to use \"yow\" from the Emacs distribution (if you
95 have it) or else to use \"fortune\"."
98 Screen Locking options:
100 --enable-locking Compile in support for locking the display
101 (this is the default.)
102 --disable-locking Do not allow locking at all."
105 --enable-vt-locking Compile in support for locking Virtual Terminals.
106 This is the default if the system supports it, and
107 if locking support is included (--enable-locking.)
108 --disable-vt-locking Do not allow locking of VTs, even if locking is
112 --with-kerberos Include support for Kerberos authentication,
113 if possible (this is the default.)
114 --without-kerberos Do not compile in support for Kerberos."
116 --with-shadow Include support for shadow password authentication,
117 if possible (this is the default, if no Kerberos.)
118 --without-shadow Do not compile in support for shadow passwords.
121 # Initialize some variables set by options.
122 # The variables have the same names as the options, with
123 # dashes changed to underlines.
125 cache_file=./config.cache
134 program_transform_name=s,x,x,
142 bindir='${exec_prefix}/bin'
143 sbindir='${exec_prefix}/sbin'
144 libexecdir='${exec_prefix}/libexec'
145 datadir='${prefix}/share'
146 sysconfdir='${prefix}/etc'
147 sharedstatedir='${prefix}/com'
148 localstatedir='${prefix}/var'
149 libdir='${exec_prefix}/lib'
150 includedir='${prefix}/include'
151 oldincludedir='/usr/include'
152 infodir='${prefix}/info'
153 mandir='${prefix}/man'
155 # Initialize some other variables.
158 # Maximum number of lines to put in a shell here document.
165 # If the previous option needs an argument, assign it.
166 if test -n "$ac_prev"; then
167 eval "$ac_prev=\$ac_option"
173 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
177 # Accept the important Cygnus configure options, so we can diagnose typos.
181 -bindir | --bindir | --bindi | --bind | --bin | --bi)
183 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
184 bindir="$ac_optarg" ;;
186 -build | --build | --buil | --bui | --bu)
188 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
189 build="$ac_optarg" ;;
191 -cache-file | --cache-file | --cache-fil | --cache-fi \
192 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
193 ac_prev=cache_file ;;
194 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
195 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
196 cache_file="$ac_optarg" ;;
198 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
200 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
202 datadir="$ac_optarg" ;;
204 -disable-* | --disable-*)
205 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
206 # Reject names that are not valid shell variable names.
207 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
208 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
210 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
211 eval "enable_${ac_feature}=no" ;;
213 -enable-* | --enable-*)
214 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
215 # Reject names that are not valid shell variable names.
216 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
217 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
219 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
224 eval "enable_${ac_feature}='$ac_optarg'" ;;
226 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
227 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
228 | --exec | --exe | --ex)
229 ac_prev=exec_prefix ;;
230 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
231 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
232 | --exec=* | --exe=* | --ex=*)
233 exec_prefix="$ac_optarg" ;;
235 -gas | --gas | --ga | --g)
236 # Obsolete; use --with-gas.
239 -help | --help | --hel | --he)
240 # Omit some internal or obsolete options to make the list less imposing.
241 # This message is too long to be a string in the A/UX 3.1 sh.
243 Usage: configure [options] [host]
244 Options: [defaults in brackets after descriptions]
248 --cache-file=FILE cache test results in FILE
249 --help print this message
250 --no-create do not create output files
251 --quiet, --silent do not print \`checking...' messages
252 --version print the version of autoconf that created configure
254 Directory and file names:
256 --prefix=PREFIX install architecture-independent files in PREFIX
258 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
260 --bindir=DIR user executables in DIR [EPREFIX/bin]
261 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
262 --includedir=DIR C header files in DIR [PREFIX/include]
263 --x-includes=DIR X include files are in DIR
264 --x-libraries=DIR X library files are in DIR
265 --mandir=DIR man documentation in DIR [PREFIX/man]
266 --srcdir=DIR find the sources in DIR [configure dir or ..]
267 --program-prefix=PREFIX prepend PREFIX to installed program names
268 --program-suffix=SUFFIX append SUFFIX to installed program names
269 --program-transform-name=PROGRAM
270 run sed PROGRAM on installed program names
276 --build=BUILD configure for building on BUILD [BUILD=HOST]
277 --host=HOST configure for HOST [guessed]
278 --target=TARGET configure for TARGET [TARGET=HOST]
280 if test -n "$ac_help"; then
285 -host | --host | --hos | --ho)
287 -host=* | --host=* | --hos=* | --ho=*)
290 -includedir | --includedir | --includedi | --included | --include \
291 | --includ | --inclu | --incl | --inc)
292 ac_prev=includedir ;;
293 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
294 | --includ=* | --inclu=* | --incl=* | --inc=*)
295 includedir="$ac_optarg" ;;
297 -infodir | --infodir | --infodi | --infod | --info | --inf)
299 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
300 infodir="$ac_optarg" ;;
302 -libdir | --libdir | --libdi | --libd)
304 -libdir=* | --libdir=* | --libdi=* | --libd=*)
305 libdir="$ac_optarg" ;;
307 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
308 | --libexe | --libex | --libe)
309 ac_prev=libexecdir ;;
310 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
311 | --libexe=* | --libex=* | --libe=*)
312 libexecdir="$ac_optarg" ;;
314 -localstatedir | --localstatedir | --localstatedi | --localstated \
315 | --localstate | --localstat | --localsta | --localst \
316 | --locals | --local | --loca | --loc | --lo)
317 ac_prev=localstatedir ;;
318 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
319 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
320 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
321 localstatedir="$ac_optarg" ;;
323 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
325 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
326 mandir="$ac_optarg" ;;
329 # Obsolete; use --without-fp.
332 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
336 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
337 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
340 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
341 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
342 | --oldin | --oldi | --old | --ol | --o)
343 ac_prev=oldincludedir ;;
344 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
345 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
346 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
347 oldincludedir="$ac_optarg" ;;
349 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
351 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
352 prefix="$ac_optarg" ;;
354 -program-prefix | --program-prefix | --program-prefi | --program-pref \
355 | --program-pre | --program-pr | --program-p)
356 ac_prev=program_prefix ;;
357 -program-prefix=* | --program-prefix=* | --program-prefi=* \
358 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
359 program_prefix="$ac_optarg" ;;
361 -program-suffix | --program-suffix | --program-suffi | --program-suff \
362 | --program-suf | --program-su | --program-s)
363 ac_prev=program_suffix ;;
364 -program-suffix=* | --program-suffix=* | --program-suffi=* \
365 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
366 program_suffix="$ac_optarg" ;;
368 -program-transform-name | --program-transform-name \
369 | --program-transform-nam | --program-transform-na \
370 | --program-transform-n | --program-transform- \
371 | --program-transform | --program-transfor \
372 | --program-transfo | --program-transf \
373 | --program-trans | --program-tran \
374 | --progr-tra | --program-tr | --program-t)
375 ac_prev=program_transform_name ;;
376 -program-transform-name=* | --program-transform-name=* \
377 | --program-transform-nam=* | --program-transform-na=* \
378 | --program-transform-n=* | --program-transform-=* \
379 | --program-transform=* | --program-transfor=* \
380 | --program-transfo=* | --program-transf=* \
381 | --program-trans=* | --program-tran=* \
382 | --progr-tra=* | --program-tr=* | --program-t=*)
383 program_transform_name="$ac_optarg" ;;
385 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
386 | -silent | --silent | --silen | --sile | --sil)
389 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
391 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
393 sbindir="$ac_optarg" ;;
395 -sharedstatedir | --sharedstatedir | --sharedstatedi \
396 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
397 | --sharedst | --shareds | --shared | --share | --shar \
399 ac_prev=sharedstatedir ;;
400 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
401 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
402 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
404 sharedstatedir="$ac_optarg" ;;
406 -site | --site | --sit)
408 -site=* | --site=* | --sit=*)
411 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
413 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
414 srcdir="$ac_optarg" ;;
416 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
417 | --syscon | --sysco | --sysc | --sys | --sy)
418 ac_prev=sysconfdir ;;
419 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
420 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
421 sysconfdir="$ac_optarg" ;;
423 -target | --target | --targe | --targ | --tar | --ta | --t)
425 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
426 target="$ac_optarg" ;;
428 -v | -verbose | --verbose | --verbos | --verbo | --verb)
431 -version | --version | --versio | --versi | --vers)
432 echo "configure generated by autoconf version 2.12"
436 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
437 # Reject names that are not valid shell variable names.
438 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
439 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
441 ac_package=`echo $ac_package| sed 's/-/_/g'`
446 eval "with_${ac_package}='$ac_optarg'" ;;
448 -without-* | --without-*)
449 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
450 # Reject names that are not valid shell variable names.
451 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
452 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
454 ac_package=`echo $ac_package| sed 's/-/_/g'`
455 eval "with_${ac_package}=no" ;;
458 # Obsolete; use --with-x.
461 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
462 | --x-incl | --x-inc | --x-in | --x-i)
463 ac_prev=x_includes ;;
464 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
465 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
466 x_includes="$ac_optarg" ;;
468 -x-libraries | --x-libraries | --x-librarie | --x-librari \
469 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
470 ac_prev=x_libraries ;;
471 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
472 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
473 x_libraries="$ac_optarg" ;;
475 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
479 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
480 echo "configure: warning: $ac_option: invalid host type" 1>&2
482 if test "x$nonopt" != xNONE; then
483 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
491 if test -n "$ac_prev"; then
492 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
495 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
497 # File descriptor usage:
500 # 2 errors and warnings
501 # 3 some systems may open it to /dev/tty
502 # 4 used on the Kubota Titan
503 # 6 checking for... messages and results
504 # 5 compiler messages saved in config.log
505 if test "$silent" = yes; then
513 This file contains any messages produced by compilers while
514 running configure, to aid debugging if configure makes a mistake.
517 # Strip out --no-create and --no-recursion so they do not pile up.
518 # Also quote any args containing shell metacharacters.
523 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
524 | --no-cr | --no-c) ;;
525 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
526 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
527 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
528 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
529 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
534 # Only set these to C if already set. These must not be set unconditionally
535 # because not all systems understand e.g. LANG=C (notably SCO).
536 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
537 # Non-C LC_CTYPE values break the ctype check.
538 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
539 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
540 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
541 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
543 # confdefs.h avoids OS command line length limits that DEFS can exceed.
544 rm -rf conftest* confdefs.h
545 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
548 # A filename unique to this package, relative to the directory that
549 # configure is in, which we can look for to find out if srcdir is correct.
550 ac_unique_file=driver/subprocs.c
552 # Find the source files, if location was not specified.
553 if test -z "$srcdir"; then
554 ac_srcdir_defaulted=yes
555 # Try the directory containing this script, then its parent.
557 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
558 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
560 if test ! -r $srcdir/$ac_unique_file; then
564 ac_srcdir_defaulted=no
566 if test ! -r $srcdir/$ac_unique_file; then
567 if test "$ac_srcdir_defaulted" = yes; then
568 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
570 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
573 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
575 # Prefer explicitly selected file to automatically selected ones.
576 if test -z "$CONFIG_SITE"; then
577 if test "x$prefix" != xNONE; then
578 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
580 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
583 for ac_site_file in $CONFIG_SITE; do
584 if test -r "$ac_site_file"; then
585 echo "loading site script $ac_site_file"
590 if test -r "$cache_file"; then
591 echo "loading cache $cache_file"
594 echo "creating cache $cache_file"
599 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
600 ac_cpp='$CPP $CPPFLAGS'
601 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
602 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
603 cross_compiling=$ac_cv_prog_cc_cross
605 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
606 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
607 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
614 ac_n= ac_c='\c' ac_t=
619 echo -n "current directory: "
621 echo "command line was: $0 $@"
625 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
626 if test -f $ac_dir/install-sh; then
628 ac_install_sh="$ac_aux_dir/install-sh -c"
630 elif test -f $ac_dir/install.sh; then
632 ac_install_sh="$ac_aux_dir/install.sh -c"
636 if test -z "$ac_aux_dir"; then
637 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
639 ac_config_guess=$ac_aux_dir/config.guess
640 ac_config_sub=$ac_aux_dir/config.sub
641 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
644 # Make sure we can run config.sub.
645 if $ac_config_sub sun4 >/dev/null 2>&1; then :
646 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
649 echo $ac_n "checking host system type""... $ac_c" 1>&6
650 echo "configure:662: checking host system type" >&5
653 case "$host_alias" in
657 if host_alias=`$ac_config_guess`; then :
658 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
660 *) host_alias=$nonopt ;;
664 host=`$ac_config_sub $host_alias`
665 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
666 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
667 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
668 echo "$ac_t""$host" 1>&6
671 # Extract the first word of "gcc", so it can be a program name with args.
672 set dummy gcc; ac_word=$2
673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
674 echo "configure:686: checking for $ac_word" >&5
675 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
676 echo $ac_n "(cached) $ac_c" 1>&6
678 if test -n "$CC"; then
679 ac_cv_prog_CC="$CC" # Let the user override the test.
681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
682 for ac_dir in $PATH; do
683 test -z "$ac_dir" && ac_dir=.
684 if test -f $ac_dir/$ac_word; then
693 if test -n "$CC"; then
694 echo "$ac_t""$CC" 1>&6
696 echo "$ac_t""no" 1>&6
699 if test -z "$CC"; then
700 # Extract the first word of "cc", so it can be a program name with args.
701 set dummy cc; ac_word=$2
702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
703 echo "configure:715: checking for $ac_word" >&5
704 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
705 echo $ac_n "(cached) $ac_c" 1>&6
707 if test -n "$CC"; then
708 ac_cv_prog_CC="$CC" # Let the user override the test.
710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
712 for ac_dir in $PATH; do
713 test -z "$ac_dir" && ac_dir=.
714 if test -f $ac_dir/$ac_word; then
715 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
724 if test $ac_prog_rejected = yes; then
725 # We found a bogon in the path, so make sure we never use it.
726 set dummy $ac_cv_prog_CC
728 if test $# -gt 0; then
729 # We chose a different compiler from the bogus one.
730 # However, it has the same basename, so the bogon will be chosen
731 # first if we set CC to just the basename; use the full file name.
733 set dummy "$ac_dir/$ac_word" "$@"
741 if test -n "$CC"; then
742 echo "$ac_t""$CC" 1>&6
744 echo "$ac_t""no" 1>&6
747 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
750 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
751 echo "configure:763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
754 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
755 ac_cpp='$CPP $CPPFLAGS'
756 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
757 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
758 cross_compiling=$ac_cv_prog_cc_cross
760 cat > conftest.$ac_ext <<EOF
761 #line 773 "configure"
762 #include "confdefs.h"
765 if { (eval echo configure:777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
766 ac_cv_prog_cc_works=yes
767 # If we can't run a trivial program, we are probably using a cross compiler.
768 if (./conftest; exit) 2>/dev/null; then
769 ac_cv_prog_cc_cross=no
771 ac_cv_prog_cc_cross=yes
774 echo "configure: failed program was:" >&5
775 cat conftest.$ac_ext >&5
776 ac_cv_prog_cc_works=no
780 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
781 if test $ac_cv_prog_cc_works = no; then
782 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
784 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
785 echo "configure:797: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
786 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
787 cross_compiling=$ac_cv_prog_cc_cross
789 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
790 echo "configure:802: checking whether we are using GNU C" >&5
791 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
792 echo $ac_n "(cached) $ac_c" 1>&6
794 cat > conftest.c <<EOF
799 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
806 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
808 if test $ac_cv_prog_gcc = yes; then
810 ac_test_CFLAGS="${CFLAGS+set}"
811 ac_save_CFLAGS="$CFLAGS"
813 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
814 echo "configure:826: checking whether ${CC-cc} accepts -g" >&5
815 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
816 echo $ac_n "(cached) $ac_c" 1>&6
818 echo 'void f(){}' > conftest.c
819 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
828 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
829 if test "$ac_test_CFLAGS" = set; then
830 CFLAGS="$ac_save_CFLAGS"
831 elif test $ac_cv_prog_cc_g = yes; then
838 test "${CFLAGS+set}" = set || CFLAGS="-g"
842 if test -z "$GCC"; then
843 echo $ac_n "checking how to request ANSI compilation""... $ac_c" 1>&6
844 echo "configure:856: checking how to request ANSI compilation" >&5
847 echo "$ac_t""HPUX: adding -Ae" 1>&6
851 echo "$ac_t""AIX: adding -qlanglvl=ansi -qhalt=e" 1>&6
852 CC="$CC -qlanglvl=ansi -qhalt=e"
856 echo "$ac_t""DEC: adding -std1" 1>&6
861 echo "$ac_t""no idea" 1>&6
867 echo $ac_n "checking whether the compiler works on ANSI C""... $ac_c" 1>&6
868 echo "configure:880: checking whether the compiler works on ANSI C" >&5
869 if test "$cross_compiling" = yes; then
870 { echo "configure: error: Couldn't build even a trivial ANSI C program: check CC." 1>&2; exit 1; }
872 cat > conftest.$ac_ext <<EOF
873 #line 885 "configure"
874 #include "confdefs.h"
875 main(int ac, char **av) { return 0; }
877 if { (eval echo configure:889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
879 echo "$ac_t""yes" 1>&6
881 echo "configure: failed program was:" >&5
882 cat conftest.$ac_ext >&5
884 echo "$ac_t""no" 1>&6
885 { echo "configure: error: Couldn't build even a trivial ANSI C program: check CC." 1>&2; exit 1; }
892 *-irix5* |*-irix6.0-3* )
893 if test -n "$GCC"; then
894 echo "$ac_t""Turning on gcc compiler warnings." 1>&6
895 CC="$CC -Wall -Wstrict-prototypes -Wnested-externs -Wno-format"
898 echo "$ac_t""Turning on SGI compiler warnings." 1>&6
899 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
904 echo "$ac_t""Turning on gcc compiler warnings." 1>&6
905 CC="$CC -Wall -Wstrict-prototypes -Wnested-externs -Wno-format"
909 # if test -z "$GCC"; then
910 # AC_MSG_RESULT(Turning on DEC C compiler warnings.)
911 # CC="$CC -migrate -w0 -verbose -warnprotos"
918 # Try and determine whether ${INSTALL} can create intermediate directories,
919 # and if not, whether "mkdir -p" works instead. This sets ${INSTALL_DIRS}.
920 # (But autoconf should earn its keep and do this for us!)
925 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
926 echo "configure:938: checking how to run the C preprocessor" >&5
927 # On Suns, sometimes $CPP names a directory.
928 if test -n "$CPP" && test -d "$CPP"; then
931 if test -z "$CPP"; then
932 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
933 echo $ac_n "(cached) $ac_c" 1>&6
935 # This must be in double quotes, not single quotes, because CPP may get
936 # substituted into the Makefile and "${CC-cc}" will confuse make.
938 # On the NeXT, cc -E runs the code through the compiler's parser,
939 # not just through cpp.
940 cat > conftest.$ac_ext <<EOF
941 #line 953 "configure"
942 #include "confdefs.h"
946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
947 { (eval echo configure:959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
948 ac_err=`grep -v '^ *+' conftest.out`
949 if test -z "$ac_err"; then
953 echo "configure: failed program was:" >&5
954 cat conftest.$ac_ext >&5
956 CPP="${CC-cc} -E -traditional-cpp"
957 cat > conftest.$ac_ext <<EOF
958 #line 970 "configure"
959 #include "confdefs.h"
963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
964 { (eval echo configure:976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
965 ac_err=`grep -v '^ *+' conftest.out`
966 if test -z "$ac_err"; then
970 echo "configure: failed program was:" >&5
971 cat conftest.$ac_ext >&5
978 ac_cv_prog_CPP="$CPP"
980 CPP="$ac_cv_prog_CPP"
982 ac_cv_prog_CPP="$CPP"
984 echo "$ac_t""$CPP" 1>&6
986 # Find a good install program. We prefer a C program (faster),
987 # so one script is as good as another. But avoid the broken or
988 # incompatible versions:
989 # SysV /etc/install, /usr/sbin/install
990 # SunOS /usr/etc/install
993 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
994 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
995 # ./install, which can be erroneously created by make from ./install.sh.
996 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
997 echo "configure:1009: checking for a BSD compatible install" >&5
998 if test -z "$INSTALL"; then
999 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1000 echo $ac_n "(cached) $ac_c" 1>&6
1002 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1003 for ac_dir in $PATH; do
1004 # Account for people who put trailing slashes in PATH elements.
1006 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1008 # OSF1 and SCO ODT 3.0 have their own names for install.
1009 for ac_prog in ginstall installbsd scoinst install; do
1010 if test -f $ac_dir/$ac_prog; then
1011 if test $ac_prog = install &&
1012 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1013 # AIX install. It has an incompatible calling convention.
1014 # OSF/1 installbsd also uses dspmsg, but is usable.
1017 ac_cv_path_install="$ac_dir/$ac_prog -c"
1028 if test "${ac_cv_path_install+set}" = set; then
1029 INSTALL="$ac_cv_path_install"
1031 # As a last resort, use the slow shell script. We don't cache a
1032 # path for INSTALL within a source directory, because that will
1033 # break other packages using the cache if that directory is
1034 # removed, or if the path is relative.
1035 INSTALL="$ac_install_sh"
1038 echo "$ac_t""$INSTALL" 1>&6
1040 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1041 # It thinks the first close brace ends the variable substitution.
1042 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1044 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1046 INSTALL_DIRS='${INSTALL} -d'
1047 echo $ac_n "checking whether \"\${INSTALL} -d\" creates intermediate directories""... $ac_c" 1>&6
1048 echo "configure:1060: checking whether \"\${INSTALL} -d\" creates intermediate directories" >&5
1050 if mkdir conftestdir; then
1053 ${INSTALL} -d `pwd`/dir1/dir2 >&- 2>&-
1054 if test -d dir1/dir2 ; then
1055 echo "$ac_t""yes" 1>&6
1057 echo "$ac_t""no" 1>&6
1058 echo $ac_n "checking whether \"mkdir -p\" creates intermediate directories""... $ac_c" 1>&6
1059 echo "configure:1071: checking whether \"mkdir -p\" creates intermediate directories" >&5
1061 mkdir -p dir1/dir2 >&- 2>&-
1062 if test -d dir1/dir2/. ; then
1063 echo "$ac_t""yes" 1>&6
1064 INSTALL_DIRS='mkdir -p'
1066 echo "$ac_t""no" 1>&6
1073 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1074 echo "configure:1086: checking whether ${MAKE-make} sets \${MAKE}" >&5
1075 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1076 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1077 echo $ac_n "(cached) $ac_c" 1>&6
1079 cat > conftestmake <<\EOF
1081 @echo 'ac_maketemp="${MAKE}"'
1083 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1084 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1085 if test -n "$ac_maketemp"; then
1086 eval ac_cv_prog_make_${ac_make}_set=yes
1088 eval ac_cv_prog_make_${ac_make}_set=no
1092 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1093 echo "$ac_t""yes" 1>&6
1096 echo "$ac_t""no" 1>&6
1097 SET_MAKE="MAKE=${MAKE-make}"
1101 echo $ac_n "checking for working const""... $ac_c" 1>&6
1102 echo "configure:1114: checking for working const" >&5
1103 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&6
1106 cat > conftest.$ac_ext <<EOF
1107 #line 1119 "configure"
1108 #include "confdefs.h"
1112 /* Ultrix mips cc rejects this. */
1113 typedef int charset[2]; const charset x;
1114 /* SunOS 4.1.1 cc rejects this. */
1115 char const *const *ccp;
1117 /* NEC SVR4.0.2 mips cc rejects this. */
1118 struct point {int x, y;};
1119 static struct point const zero = {0,0};
1120 /* AIX XL C 1.02.0.0 rejects this.
1121 It does not let you subtract one const X* pointer from another in an arm
1122 of an if-expression whose if-part is not a constant expression */
1123 const char *g = "string";
1124 ccp = &g + (g ? g-g : 0);
1125 /* HPUX 7.0 cc rejects these. */
1128 ccp = (char const *const *) p;
1129 { /* SCO 3.2v4 cc rejects this. */
1131 char const *s = 0 ? (char *) 0 : (char const *) 0;
1135 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1137 const int *foo = &x[0];
1140 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1141 typedef const int *iptr;
1145 { /* AIX XL C 1.02.0.0 rejects this saying
1146 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1147 struct s { int j; const int *ap[3]; };
1148 struct s *b; b->j = 5;
1150 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1156 if { (eval echo configure:1168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1160 echo "configure: failed program was:" >&5
1161 cat conftest.$ac_ext >&5
1168 echo "$ac_t""$ac_cv_c_const" 1>&6
1169 if test $ac_cv_c_const = no; then
1170 cat >> confdefs.h <<\EOF
1176 echo $ac_n "checking for inline""... $ac_c" 1>&6
1177 echo "configure:1189: checking for inline" >&5
1178 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1182 for ac_kw in inline __inline__ __inline; do
1183 cat > conftest.$ac_ext <<EOF
1184 #line 1196 "configure"
1185 #include "confdefs.h"
1191 if { (eval echo configure:1203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1193 ac_cv_c_inline=$ac_kw; break
1195 echo "configure: failed program was:" >&5
1196 cat conftest.$ac_ext >&5
1203 echo "$ac_t""$ac_cv_c_inline" 1>&6
1204 case "$ac_cv_c_inline" in
1206 no) cat >> confdefs.h <<\EOF
1210 *) cat >> confdefs.h <<EOF
1211 #define inline $ac_cv_c_inline
1217 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1218 echo "configure:1230: checking for ANSI C header files" >&5
1219 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1222 cat > conftest.$ac_ext <<EOF
1223 #line 1235 "configure"
1224 #include "confdefs.h"
1230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1231 { (eval echo configure:1243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1232 ac_err=`grep -v '^ *+' conftest.out`
1233 if test -z "$ac_err"; then
1235 ac_cv_header_stdc=yes
1238 echo "configure: failed program was:" >&5
1239 cat conftest.$ac_ext >&5
1241 ac_cv_header_stdc=no
1245 if test $ac_cv_header_stdc = yes; then
1246 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1247 cat > conftest.$ac_ext <<EOF
1248 #line 1260 "configure"
1249 #include "confdefs.h"
1252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1253 egrep "memchr" >/dev/null 2>&1; then
1257 ac_cv_header_stdc=no
1263 if test $ac_cv_header_stdc = yes; then
1264 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1265 cat > conftest.$ac_ext <<EOF
1266 #line 1278 "configure"
1267 #include "confdefs.h"
1270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1271 egrep "free" >/dev/null 2>&1; then
1275 ac_cv_header_stdc=no
1281 if test $ac_cv_header_stdc = yes; then
1282 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1283 if test "$cross_compiling" = yes; then
1286 cat > conftest.$ac_ext <<EOF
1287 #line 1299 "configure"
1288 #include "confdefs.h"
1290 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1291 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1292 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1293 int main () { int i; for (i = 0; i < 256; i++)
1294 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1298 if { (eval echo configure:1310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1302 echo "configure: failed program was:" >&5
1303 cat conftest.$ac_ext >&5
1305 ac_cv_header_stdc=no
1313 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1314 if test $ac_cv_header_stdc = yes; then
1315 cat >> confdefs.h <<\EOF
1316 #define STDC_HEADERS 1
1321 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1322 echo "configure:1334: checking whether time.h and sys/time.h may both be included" >&5
1323 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1326 cat > conftest.$ac_ext <<EOF
1327 #line 1339 "configure"
1328 #include "confdefs.h"
1329 #include <sys/types.h>
1330 #include <sys/time.h>
1336 if { (eval echo configure:1348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1338 ac_cv_header_time=yes
1340 echo "configure: failed program was:" >&5
1341 cat conftest.$ac_ext >&5
1343 ac_cv_header_time=no
1348 echo "$ac_t""$ac_cv_header_time" 1>&6
1349 if test $ac_cv_header_time = yes; then
1350 cat >> confdefs.h <<\EOF
1351 #define TIME_WITH_SYS_TIME 1
1356 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1357 echo "configure:1369: checking for sys/wait.h that is POSIX.1 compatible" >&5
1358 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1361 cat > conftest.$ac_ext <<EOF
1362 #line 1374 "configure"
1363 #include "confdefs.h"
1364 #include <sys/types.h>
1365 #include <sys/wait.h>
1367 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1370 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1375 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1378 if { (eval echo configure:1390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1380 ac_cv_header_sys_wait_h=yes
1382 echo "configure: failed program was:" >&5
1383 cat conftest.$ac_ext >&5
1385 ac_cv_header_sys_wait_h=no
1390 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1391 if test $ac_cv_header_sys_wait_h = yes; then
1392 cat >> confdefs.h <<\EOF
1393 #define HAVE_SYS_WAIT_H 1
1399 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1401 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1402 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1403 echo "configure:1415: checking for $ac_hdr that defines DIR" >&5
1404 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1407 cat > conftest.$ac_ext <<EOF
1408 #line 1420 "configure"
1409 #include "confdefs.h"
1410 #include <sys/types.h>
1416 if { (eval echo configure:1428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1418 eval "ac_cv_header_dirent_$ac_safe=yes"
1420 echo "configure: failed program was:" >&5
1421 cat conftest.$ac_ext >&5
1423 eval "ac_cv_header_dirent_$ac_safe=no"
1427 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1428 echo "$ac_t""yes" 1>&6
1429 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1430 cat >> confdefs.h <<EOF
1431 #define $ac_tr_hdr 1
1433 ac_header_dirent=$ac_hdr; break
1435 echo "$ac_t""no" 1>&6
1438 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1439 if test $ac_header_dirent = dirent.h; then
1440 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1441 echo "configure:1453: checking for opendir in -ldir" >&5
1442 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1446 ac_save_LIBS="$LIBS"
1448 cat > conftest.$ac_ext <<EOF
1449 #line 1461 "configure"
1450 #include "confdefs.h"
1451 /* Override any gcc2 internal prototype to avoid an error. */
1452 /* We use char because int might match the return type of a gcc2
1453 builtin and then its argument prototype would still apply. */
1460 if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1462 eval "ac_cv_lib_$ac_lib_var=yes"
1464 echo "configure: failed program was:" >&5
1465 cat conftest.$ac_ext >&5
1467 eval "ac_cv_lib_$ac_lib_var=no"
1470 LIBS="$ac_save_LIBS"
1473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1474 echo "$ac_t""yes" 1>&6
1477 echo "$ac_t""no" 1>&6
1481 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1482 echo "configure:1494: checking for opendir in -lx" >&5
1483 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1485 echo $ac_n "(cached) $ac_c" 1>&6
1487 ac_save_LIBS="$LIBS"
1489 cat > conftest.$ac_ext <<EOF
1490 #line 1502 "configure"
1491 #include "confdefs.h"
1492 /* Override any gcc2 internal prototype to avoid an error. */
1493 /* We use char because int might match the return type of a gcc2
1494 builtin and then its argument prototype would still apply. */
1501 if { (eval echo configure:1513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1503 eval "ac_cv_lib_$ac_lib_var=yes"
1505 echo "configure: failed program was:" >&5
1506 cat conftest.$ac_ext >&5
1508 eval "ac_cv_lib_$ac_lib_var=no"
1511 LIBS="$ac_save_LIBS"
1514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1515 echo "$ac_t""yes" 1>&6
1518 echo "$ac_t""no" 1>&6
1524 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1525 echo "configure:1537: checking for mode_t" >&5
1526 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1529 cat > conftest.$ac_ext <<EOF
1530 #line 1542 "configure"
1531 #include "confdefs.h"
1532 #include <sys/types.h>
1538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1539 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1541 ac_cv_type_mode_t=yes
1544 ac_cv_type_mode_t=no
1549 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1550 if test $ac_cv_type_mode_t = no; then
1551 cat >> confdefs.h <<\EOF
1557 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1558 echo "configure:1570: checking for pid_t" >&5
1559 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1562 cat > conftest.$ac_ext <<EOF
1563 #line 1575 "configure"
1564 #include "confdefs.h"
1565 #include <sys/types.h>
1571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1572 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1574 ac_cv_type_pid_t=yes
1582 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1583 if test $ac_cv_type_pid_t = no; then
1584 cat >> confdefs.h <<\EOF
1590 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1591 echo "configure:1603: checking for size_t" >&5
1592 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1595 cat > conftest.$ac_ext <<EOF
1596 #line 1608 "configure"
1597 #include "confdefs.h"
1598 #include <sys/types.h>
1604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1605 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1607 ac_cv_type_size_t=yes
1610 ac_cv_type_size_t=no
1615 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1616 if test $ac_cv_type_size_t = no; then
1617 cat >> confdefs.h <<\EOF
1618 #define size_t unsigned
1623 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1624 echo "configure:1636: checking return type of signal handlers" >&5
1625 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1626 echo $ac_n "(cached) $ac_c" 1>&6
1628 cat > conftest.$ac_ext <<EOF
1629 #line 1641 "configure"
1630 #include "confdefs.h"
1631 #include <sys/types.h>
1637 extern "C" void (*signal (int, void (*)(int)))(int);
1639 void (*signal ()) ();
1646 if { (eval echo configure:1658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1648 ac_cv_type_signal=void
1650 echo "configure: failed program was:" >&5
1651 cat conftest.$ac_ext >&5
1653 ac_cv_type_signal=int
1658 echo "$ac_t""$ac_cv_type_signal" 1>&6
1659 cat >> confdefs.h <<EOF
1660 #define RETSIGTYPE $ac_cv_type_signal
1665 echo $ac_n "checking how to call gettimeofday""... $ac_c" 1>&6
1666 echo "configure:1678: checking how to call gettimeofday" >&5
1667 if eval "test \"`echo '$''{'ac_cv_gettimeofday_args'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1670 cat > conftest.$ac_ext <<EOF
1671 #line 1683 "configure"
1672 #include "confdefs.h"
1674 #include <sys/time.h>
1676 struct timeval tv; struct timezone tzp;
1677 gettimeofday(&tv, &tzp);
1680 if { (eval echo configure:1692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1682 ac_gettimeofday_args=2
1684 echo "configure: failed program was:" >&5
1685 cat conftest.$ac_ext >&5
1687 cat > conftest.$ac_ext <<EOF
1688 #line 1700 "configure"
1689 #include "confdefs.h"
1691 #include <sys/time.h>
1693 struct timeval tv; gettimeofday(&tv);
1696 if { (eval echo configure:1708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1698 ac_gettimeofday_args=1
1700 echo "configure: failed program was:" >&5
1701 cat conftest.$ac_ext >&5
1703 ac_gettimeofday_args=0
1708 ac_cv_gettimeofday_args=$ac_gettimeofday_args
1711 ac_gettimeofday_args=$ac_cv_gettimeofday_args
1712 if test "$ac_gettimeofday_args" = 1 ; then
1713 cat >> confdefs.h <<\EOF
1714 #define HAVE_GETTIMEOFDAY 1
1717 echo "$ac_t""one argument" 1>&6
1718 elif test "$ac_gettimeofday_args" = 2 ; then
1719 cat >> confdefs.h <<\EOF
1720 #define HAVE_GETTIMEOFDAY 1
1723 cat >> confdefs.h <<\EOF
1724 #define GETTIMEOFDAY_TWO_ARGS 1
1727 echo "$ac_t""two arguments" 1>&6
1729 echo "$ac_t""unknown" 1>&6
1733 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv
1735 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1736 echo "configure:1748: checking for $ac_func" >&5
1737 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1740 cat > conftest.$ac_ext <<EOF
1741 #line 1753 "configure"
1742 #include "confdefs.h"
1743 /* System header to define __stub macros and hopefully few prototypes,
1744 which can conflict with char $ac_func(); below. */
1746 /* Override any gcc2 internal prototype to avoid an error. */
1747 /* We use char because int might match the return type of a gcc2
1748 builtin and then its argument prototype would still apply. */
1753 /* The GNU C library defines this for functions which it implements
1754 to always fail with ENOSYS. Some functions are actually named
1755 something starting with __ and the normal name is an alias. */
1756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1764 if { (eval echo configure:1776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1766 eval "ac_cv_func_$ac_func=yes"
1768 echo "configure: failed program was:" >&5
1769 cat conftest.$ac_ext >&5
1771 eval "ac_cv_func_$ac_func=no"
1776 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1777 echo "$ac_t""yes" 1>&6
1778 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1779 cat >> confdefs.h <<EOF
1780 #define $ac_tr_func 1
1784 echo "$ac_t""no" 1>&6
1788 for ac_func in sigaction syslog
1790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1791 echo "configure:1803: checking for $ac_func" >&5
1792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1793 echo $ac_n "(cached) $ac_c" 1>&6
1795 cat > conftest.$ac_ext <<EOF
1796 #line 1808 "configure"
1797 #include "confdefs.h"
1798 /* System header to define __stub macros and hopefully few prototypes,
1799 which can conflict with char $ac_func(); below. */
1801 /* Override any gcc2 internal prototype to avoid an error. */
1802 /* We use char because int might match the return type of a gcc2
1803 builtin and then its argument prototype would still apply. */
1808 /* The GNU C library defines this for functions which it implements
1809 to always fail with ENOSYS. Some functions are actually named
1810 something starting with __ and the normal name is an alias. */
1811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1819 if { (eval echo configure:1831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1821 eval "ac_cv_func_$ac_func=yes"
1823 echo "configure: failed program was:" >&5
1824 cat conftest.$ac_ext >&5
1826 eval "ac_cv_func_$ac_func=no"
1831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1832 echo "$ac_t""yes" 1>&6
1833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1834 cat >> confdefs.h <<EOF
1835 #define $ac_tr_func 1
1839 echo "$ac_t""no" 1>&6
1844 for ac_hdr in unistd.h crypt.h
1846 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1847 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1848 echo "configure:1860: checking for $ac_hdr" >&5
1849 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1852 cat > conftest.$ac_ext <<EOF
1853 #line 1865 "configure"
1854 #include "confdefs.h"
1857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1858 { (eval echo configure:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1859 ac_err=`grep -v '^ *+' conftest.out`
1860 if test -z "$ac_err"; then
1862 eval "ac_cv_header_$ac_safe=yes"
1865 echo "configure: failed program was:" >&5
1866 cat conftest.$ac_ext >&5
1868 eval "ac_cv_header_$ac_safe=no"
1872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1873 echo "$ac_t""yes" 1>&6
1874 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1875 cat >> confdefs.h <<EOF
1876 #define $ac_tr_hdr 1
1880 echo "$ac_t""no" 1>&6
1887 # Check whether --enable-subdir or --disable-subdir was given.
1888 if test "${enable_subdir+set}" = set; then
1889 enableval="$enable_subdir"
1890 enable_subdir="$enableval"
1895 if test x"$enable_subdir" = xno; then
1897 elif test x"$enable_subdir" = xyes -o x"$enable_subdir" = x ; then
1898 echo "error: must be a subdirectory name: --enable-subdir=$enable_subdir"
1901 # there must be a better way than this...
1902 if test -z "`echo $enable_subdir | sed 's@^/.*@@'`" ; then
1904 HACKDIR=$enable_subdir
1907 HACKDIR='${bindir}/'$enable_subdir
1912 # If we find X, set shell vars x_includes and x_libraries to the
1913 # paths, otherwise set no_x=yes.
1914 # Uses ac_ vars as temps to allow command line to override cache and checks.
1915 # --without-x overrides everything else, but does not touch the cache.
1916 echo $ac_n "checking for X""... $ac_c" 1>&6
1917 echo "configure:1929: checking for X" >&5
1919 # Check whether --with-x or --without-x was given.
1920 if test "${with_x+set}" = set; then
1925 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1926 if test "x$with_x" = xno; then
1927 # The user explicitly disabled X.
1930 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1931 # Both variables are already set.
1934 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1937 # One or both of the vars are not set, and there is no cached value.
1938 ac_x_includes=NO ac_x_libraries=NO
1940 if mkdir conftestdir; then
1942 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1943 cat > Imakefile <<'EOF'
1945 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1947 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1948 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1949 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1950 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1951 for ac_extension in a so sl; do
1952 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1953 test -f $ac_im_libdir/libX11.$ac_extension; then
1954 ac_im_usrlibdir=$ac_im_libdir; break
1957 # Screen out bogus values from the imake configuration. They are
1958 # bogus both because they are the default anyway, and because
1959 # using them would break gcc on systems where it needs fixed includes.
1960 case "$ac_im_incroot" in
1962 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1964 case "$ac_im_usrlibdir" in
1966 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1973 if test "$ac_x_includes" = NO; then
1974 # Guess where to find include files, by looking for this one X11 .h file.
1975 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1977 # First, try using that file with no special directory specified.
1978 cat > conftest.$ac_ext <<EOF
1979 #line 1991 "configure"
1980 #include "confdefs.h"
1981 #include <$x_direct_test_include>
1983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1984 { (eval echo configure:1996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1985 ac_err=`grep -v '^ *+' conftest.out`
1986 if test -z "$ac_err"; then
1988 # We can compile using X headers with no special include directory.
1992 echo "configure: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1995 # Look for the header file in a standard set of common directories.
1996 # Check X11 before X11Rn because it is often a symlink to the current release.
1999 /usr/X11R6/include \
2000 /usr/X11R5/include \
2001 /usr/X11R4/include \
2004 /usr/include/X11R6 \
2005 /usr/include/X11R5 \
2006 /usr/include/X11R4 \
2008 /usr/local/X11/include \
2009 /usr/local/X11R6/include \
2010 /usr/local/X11R5/include \
2011 /usr/local/X11R4/include \
2013 /usr/local/include/X11 \
2014 /usr/local/include/X11R6 \
2015 /usr/local/include/X11R5 \
2016 /usr/local/include/X11R4 \
2020 /usr/XFree86/include/X11 \
2023 /usr/local/include \
2024 /usr/unsupported/include \
2025 /usr/athena/include \
2026 /usr/local/x11r5/include \
2027 /usr/lpp/Xamples/include \
2029 /usr/openwin/include \
2030 /usr/openwin/share/include \
2033 if test -r "$ac_dir/$x_direct_test_include"; then
2034 ac_x_includes=$ac_dir
2040 fi # $ac_x_includes = NO
2042 if test "$ac_x_libraries" = NO; then
2043 # Check for the libraries.
2045 test -z "$x_direct_test_library" && x_direct_test_library=Xt
2046 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2048 # See if we find them without any special options.
2049 # Don't add to $LIBS permanently.
2050 ac_save_LIBS="$LIBS"
2051 LIBS="-l$x_direct_test_library $LIBS"
2052 cat > conftest.$ac_ext <<EOF
2053 #line 2065 "configure"
2054 #include "confdefs.h"
2057 ${x_direct_test_function}()
2060 if { (eval echo configure:2072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2062 LIBS="$ac_save_LIBS"
2063 # We can link X programs with no special library path.
2066 echo "configure: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2069 LIBS="$ac_save_LIBS"
2070 # First see if replacing the include by lib works.
2071 # Check X11 before X11Rn because it is often a symlink to the current release.
2072 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2083 /usr/local/X11/lib \
2084 /usr/local/X11R6/lib \
2085 /usr/local/X11R5/lib \
2086 /usr/local/X11R4/lib \
2088 /usr/local/lib/X11 \
2089 /usr/local/lib/X11R6 \
2090 /usr/local/lib/X11R5 \
2091 /usr/local/lib/X11R4 \
2095 /usr/XFree86/lib/X11 \
2099 /usr/unsupported/lib \
2101 /usr/local/x11r5/lib \
2102 /usr/lpp/Xamples/lib \
2106 /usr/openwin/share/lib \
2109 for ac_extension in a so sl; do
2110 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2111 ac_x_libraries=$ac_dir
2118 fi # $ac_x_libraries = NO
2120 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2121 # Didn't find X anywhere. Cache the known absence of X.
2122 ac_cv_have_x="have_x=no"
2124 # Record where we found X for the cache.
2125 ac_cv_have_x="have_x=yes \
2126 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2130 eval "$ac_cv_have_x"
2133 if test "$have_x" != yes; then
2134 echo "$ac_t""$have_x" 1>&6
2137 # If each of the values was on the command line, it overrides each guess.
2138 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2139 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2140 # Update the cache value to reflect the command line values.
2141 ac_cv_have_x="have_x=yes \
2142 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2143 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2146 if test "$no_x" = yes; then
2147 # Not all programs may use this symbol, but it does not hurt to define it.
2148 cat >> confdefs.h <<\EOF
2149 #define X_DISPLAY_MISSING 1
2152 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2154 if test -n "$x_includes"; then
2155 X_CFLAGS="$X_CFLAGS -I$x_includes"
2158 # It would also be nice to do this for all -L options, not just this one.
2159 if test -n "$x_libraries"; then
2160 X_LIBS="$X_LIBS -L$x_libraries"
2161 # For Solaris; some versions of Sun CC require a space after -R and
2162 # others require no space. Words are not sufficient . . . .
2163 case "`(uname -sr) 2>/dev/null`" in
2165 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2166 echo "configure:2178: checking whether -R must be followed by a space" >&5
2167 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2168 cat > conftest.$ac_ext <<EOF
2169 #line 2181 "configure"
2170 #include "confdefs.h"
2176 if { (eval echo configure:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2180 echo "configure: failed program was:" >&5
2181 cat conftest.$ac_ext >&5
2186 if test $ac_R_nospace = yes; then
2187 echo "$ac_t""no" 1>&6
2188 X_LIBS="$X_LIBS -R$x_libraries"
2190 LIBS="$ac_xsave_LIBS -R $x_libraries"
2191 cat > conftest.$ac_ext <<EOF
2192 #line 2204 "configure"
2193 #include "confdefs.h"
2199 if { (eval echo configure:2211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2203 echo "configure: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2209 if test $ac_R_space = yes; then
2210 echo "$ac_t""yes" 1>&6
2211 X_LIBS="$X_LIBS -R $x_libraries"
2213 echo "$ac_t""neither works" 1>&6
2216 LIBS="$ac_xsave_LIBS"
2220 # Check for system-dependent libraries X programs must link with.
2221 # Do this before checking for the system-independent R6 libraries
2222 # (-lICE), since we may need -lsocket or whatever for X linking.
2224 if test "$ISC" = yes; then
2225 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2227 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2228 # libraries were built with DECnet support. And karl@cs.umb.edu says
2229 # the Alpha needs dnet_stub (dnet does not exist).
2230 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2231 echo "configure:2243: checking for dnet_ntoa in -ldnet" >&5
2232 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2233 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2236 ac_save_LIBS="$LIBS"
2238 cat > conftest.$ac_ext <<EOF
2239 #line 2251 "configure"
2240 #include "confdefs.h"
2241 /* Override any gcc2 internal prototype to avoid an error. */
2242 /* We use char because int might match the return type of a gcc2
2243 builtin and then its argument prototype would still apply. */
2250 if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2252 eval "ac_cv_lib_$ac_lib_var=yes"
2254 echo "configure: failed program was:" >&5
2255 cat conftest.$ac_ext >&5
2257 eval "ac_cv_lib_$ac_lib_var=no"
2260 LIBS="$ac_save_LIBS"
2263 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2264 echo "$ac_t""yes" 1>&6
2265 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2267 echo "$ac_t""no" 1>&6
2270 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2271 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2272 echo "configure:2284: checking for dnet_ntoa in -ldnet_stub" >&5
2273 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2274 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 ac_save_LIBS="$LIBS"
2278 LIBS="-ldnet_stub $LIBS"
2279 cat > conftest.$ac_ext <<EOF
2280 #line 2292 "configure"
2281 #include "confdefs.h"
2282 /* Override any gcc2 internal prototype to avoid an error. */
2283 /* We use char because int might match the return type of a gcc2
2284 builtin and then its argument prototype would still apply. */
2291 if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2293 eval "ac_cv_lib_$ac_lib_var=yes"
2295 echo "configure: failed program was:" >&5
2296 cat conftest.$ac_ext >&5
2298 eval "ac_cv_lib_$ac_lib_var=no"
2301 LIBS="$ac_save_LIBS"
2304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2305 echo "$ac_t""yes" 1>&6
2306 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2308 echo "$ac_t""no" 1>&6
2313 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2314 # to get the SysV transport functions.
2315 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2317 # The nsl library prevents programs from opening the X display
2318 # on Irix 5.2, according to dickey@clark.net.
2319 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2320 echo "configure:2332: checking for gethostbyname" >&5
2321 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2322 echo $ac_n "(cached) $ac_c" 1>&6
2324 cat > conftest.$ac_ext <<EOF
2325 #line 2337 "configure"
2326 #include "confdefs.h"
2327 /* System header to define __stub macros and hopefully few prototypes,
2328 which can conflict with char gethostbyname(); below. */
2330 /* Override any gcc2 internal prototype to avoid an error. */
2331 /* We use char because int might match the return type of a gcc2
2332 builtin and then its argument prototype would still apply. */
2333 char gethostbyname();
2337 /* The GNU C library defines this for functions which it implements
2338 to always fail with ENOSYS. Some functions are actually named
2339 something starting with __ and the normal name is an alias. */
2340 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2348 if { (eval echo configure:2360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2350 eval "ac_cv_func_gethostbyname=yes"
2352 echo "configure: failed program was:" >&5
2353 cat conftest.$ac_ext >&5
2355 eval "ac_cv_func_gethostbyname=no"
2360 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2361 echo "$ac_t""yes" 1>&6
2364 echo "$ac_t""no" 1>&6
2367 if test $ac_cv_func_gethostbyname = no; then
2368 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2369 echo "configure:2381: checking for gethostbyname in -lnsl" >&5
2370 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 ac_save_LIBS="$LIBS"
2376 cat > conftest.$ac_ext <<EOF
2377 #line 2389 "configure"
2378 #include "confdefs.h"
2379 /* Override any gcc2 internal prototype to avoid an error. */
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2382 char gethostbyname();
2388 if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2390 eval "ac_cv_lib_$ac_lib_var=yes"
2392 echo "configure: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2395 eval "ac_cv_lib_$ac_lib_var=no"
2398 LIBS="$ac_save_LIBS"
2401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2402 echo "$ac_t""yes" 1>&6
2403 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2405 echo "$ac_t""no" 1>&6
2410 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2411 # socket/setsockopt and other routines are undefined under SCO ODT
2412 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2413 # on later versions), says simon@lia.di.epfl.ch: it contains
2414 # gethostby* variants that don't use the nameserver (or something).
2415 # -lsocket must be given before -lnsl if both are needed.
2416 # We assume that if connect needs -lnsl, so does gethostbyname.
2417 echo $ac_n "checking for connect""... $ac_c" 1>&6
2418 echo "configure:2430: checking for connect" >&5
2419 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2420 echo $ac_n "(cached) $ac_c" 1>&6
2422 cat > conftest.$ac_ext <<EOF
2423 #line 2435 "configure"
2424 #include "confdefs.h"
2425 /* System header to define __stub macros and hopefully few prototypes,
2426 which can conflict with char connect(); below. */
2428 /* Override any gcc2 internal prototype to avoid an error. */
2429 /* We use char because int might match the return type of a gcc2
2430 builtin and then its argument prototype would still apply. */
2435 /* The GNU C library defines this for functions which it implements
2436 to always fail with ENOSYS. Some functions are actually named
2437 something starting with __ and the normal name is an alias. */
2438 #if defined (__stub_connect) || defined (__stub___connect)
2446 if { (eval echo configure:2458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2448 eval "ac_cv_func_connect=yes"
2450 echo "configure: failed program was:" >&5
2451 cat conftest.$ac_ext >&5
2453 eval "ac_cv_func_connect=no"
2458 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2459 echo "$ac_t""yes" 1>&6
2462 echo "$ac_t""no" 1>&6
2465 if test $ac_cv_func_connect = no; then
2466 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2467 echo "configure:2479: checking for connect in -lsocket" >&5
2468 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2469 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2470 echo $ac_n "(cached) $ac_c" 1>&6
2472 ac_save_LIBS="$LIBS"
2473 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2474 cat > conftest.$ac_ext <<EOF
2475 #line 2487 "configure"
2476 #include "confdefs.h"
2477 /* Override any gcc2 internal prototype to avoid an error. */
2478 /* We use char because int might match the return type of a gcc2
2479 builtin and then its argument prototype would still apply. */
2486 if { (eval echo configure:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2488 eval "ac_cv_lib_$ac_lib_var=yes"
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2493 eval "ac_cv_lib_$ac_lib_var=no"
2496 LIBS="$ac_save_LIBS"
2499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2500 echo "$ac_t""yes" 1>&6
2501 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2503 echo "$ac_t""no" 1>&6
2508 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2509 echo $ac_n "checking for remove""... $ac_c" 1>&6
2510 echo "configure:2522: checking for remove" >&5
2511 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2514 cat > conftest.$ac_ext <<EOF
2515 #line 2527 "configure"
2516 #include "confdefs.h"
2517 /* System header to define __stub macros and hopefully few prototypes,
2518 which can conflict with char remove(); below. */
2520 /* Override any gcc2 internal prototype to avoid an error. */
2521 /* We use char because int might match the return type of a gcc2
2522 builtin and then its argument prototype would still apply. */
2527 /* The GNU C library defines this for functions which it implements
2528 to always fail with ENOSYS. Some functions are actually named
2529 something starting with __ and the normal name is an alias. */
2530 #if defined (__stub_remove) || defined (__stub___remove)
2538 if { (eval echo configure:2550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2540 eval "ac_cv_func_remove=yes"
2542 echo "configure: failed program was:" >&5
2543 cat conftest.$ac_ext >&5
2545 eval "ac_cv_func_remove=no"
2550 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2551 echo "$ac_t""yes" 1>&6
2554 echo "$ac_t""no" 1>&6
2557 if test $ac_cv_func_remove = no; then
2558 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2559 echo "configure:2571: checking for remove in -lposix" >&5
2560 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2564 ac_save_LIBS="$LIBS"
2565 LIBS="-lposix $LIBS"
2566 cat > conftest.$ac_ext <<EOF
2567 #line 2579 "configure"
2568 #include "confdefs.h"
2569 /* Override any gcc2 internal prototype to avoid an error. */
2570 /* We use char because int might match the return type of a gcc2
2571 builtin and then its argument prototype would still apply. */
2578 if { (eval echo configure:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2580 eval "ac_cv_lib_$ac_lib_var=yes"
2582 echo "configure: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2585 eval "ac_cv_lib_$ac_lib_var=no"
2588 LIBS="$ac_save_LIBS"
2591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2592 echo "$ac_t""yes" 1>&6
2593 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2595 echo "$ac_t""no" 1>&6
2600 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2601 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2602 echo "configure:2614: checking for shmat" >&5
2603 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2604 echo $ac_n "(cached) $ac_c" 1>&6
2606 cat > conftest.$ac_ext <<EOF
2607 #line 2619 "configure"
2608 #include "confdefs.h"
2609 /* System header to define __stub macros and hopefully few prototypes,
2610 which can conflict with char shmat(); below. */
2612 /* Override any gcc2 internal prototype to avoid an error. */
2613 /* We use char because int might match the return type of a gcc2
2614 builtin and then its argument prototype would still apply. */
2619 /* The GNU C library defines this for functions which it implements
2620 to always fail with ENOSYS. Some functions are actually named
2621 something starting with __ and the normal name is an alias. */
2622 #if defined (__stub_shmat) || defined (__stub___shmat)
2630 if { (eval echo configure:2642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2632 eval "ac_cv_func_shmat=yes"
2634 echo "configure: failed program was:" >&5
2635 cat conftest.$ac_ext >&5
2637 eval "ac_cv_func_shmat=no"
2642 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2643 echo "$ac_t""yes" 1>&6
2646 echo "$ac_t""no" 1>&6
2649 if test $ac_cv_func_shmat = no; then
2650 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2651 echo "configure:2663: checking for shmat in -lipc" >&5
2652 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2653 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2656 ac_save_LIBS="$LIBS"
2658 cat > conftest.$ac_ext <<EOF
2659 #line 2671 "configure"
2660 #include "confdefs.h"
2661 /* Override any gcc2 internal prototype to avoid an error. */
2662 /* We use char because int might match the return type of a gcc2
2663 builtin and then its argument prototype would still apply. */
2670 if { (eval echo configure:2682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2672 eval "ac_cv_lib_$ac_lib_var=yes"
2674 echo "configure: failed program was:" >&5
2675 cat conftest.$ac_ext >&5
2677 eval "ac_cv_lib_$ac_lib_var=no"
2680 LIBS="$ac_save_LIBS"
2683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2684 echo "$ac_t""yes" 1>&6
2685 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2687 echo "$ac_t""no" 1>&6
2693 # Check for libraries that X11R6 Xt/Xaw programs need.
2694 ac_save_LDFLAGS="$LDFLAGS"
2695 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2696 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2697 # check for ICE first), but we must link in the order -lSM -lICE or
2698 # we get undefined symbols. So assume we have SM if we have ICE.
2699 # These have to be linked with before -lX11, unlike the other
2700 # libraries we check for below, so use a different variable.
2701 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2702 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2703 echo "configure:2715: checking for IceConnectionNumber in -lICE" >&5
2704 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2705 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2706 echo $ac_n "(cached) $ac_c" 1>&6
2708 ac_save_LIBS="$LIBS"
2710 cat > conftest.$ac_ext <<EOF
2711 #line 2723 "configure"
2712 #include "confdefs.h"
2713 /* Override any gcc2 internal prototype to avoid an error. */
2714 /* We use char because int might match the return type of a gcc2
2715 builtin and then its argument prototype would still apply. */
2716 char IceConnectionNumber();
2719 IceConnectionNumber()
2722 if { (eval echo configure:2734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2724 eval "ac_cv_lib_$ac_lib_var=yes"
2726 echo "configure: failed program was:" >&5
2727 cat conftest.$ac_ext >&5
2729 eval "ac_cv_lib_$ac_lib_var=no"
2732 LIBS="$ac_save_LIBS"
2735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2736 echo "$ac_t""yes" 1>&6
2737 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2739 echo "$ac_t""no" 1>&6
2742 LDFLAGS="$ac_save_LDFLAGS"
2747 # Try and find the app-defaults directory.
2748 # It sucks that autoconf doesn't do this already...
2758 echo $ac_n "checking for X app-defaults directory""... $ac_c" 1>&6
2759 echo "configure:2771: checking for X app-defaults directory" >&5
2760 if eval "test \"`echo '$''{'ac_cv_x_app_defaults'+set}'`\" = set"; then
2761 echo $ac_n "(cached) $ac_c" 1>&6
2765 if mkdir conftestdir; then
2767 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2768 cat > Imakefile <<'EOF'
2770 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
2772 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2773 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
2774 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2779 if test x"$ac_x_app_defaults" = x; then
2781 # Look for the directory under a standard set of common directories.
2782 # Check X11 before X11Rn because it's often a symlink to the current release.
2784 /usr/X11/lib/app-defaults \
2785 /usr/X11R6/lib/app-defaults \
2786 /usr/X11R6/lib/X11/app-defaults \
2787 /usr/X11R5/lib/app-defaults \
2788 /usr/X11R5/lib/X11/app-defaults \
2789 /usr/X11R4/lib/app-defaults \
2790 /usr/X11R4/lib/X11/app-defaults \
2792 /usr/lib/X11/app-defaults \
2793 /usr/lib/X11R6/app-defaults \
2794 /usr/lib/X11R5/app-defaults \
2795 /usr/lib/X11R4/app-defaults \
2797 /usr/local/X11/lib/app-defaults \
2798 /usr/local/X11R6/lib/app-defaults \
2799 /usr/local/X11R5/lib/app-defaults \
2800 /usr/local/X11R4/lib/app-defaults \
2802 /usr/local/lib/X11/app-defaults \
2803 /usr/local/lib/X11R6/app-defaults \
2804 /usr/local/lib/X11R6/X11/app-defaults \
2805 /usr/local/lib/X11R5/app-defaults \
2806 /usr/local/lib/X11R5/X11/app-defaults \
2807 /usr/local/lib/X11R4/app-defaults \
2808 /usr/local/lib/X11R4/X11/app-defaults \
2810 /usr/X386/lib/X11/app-defaults \
2811 /usr/x386/lib/X11/app-defaults \
2812 /usr/XFree86/lib/X11/app-defaults \
2814 /usr/lib/X11/app-defaults \
2815 /usr/local/lib/X11/app-defaults \
2816 /usr/unsupported/lib/X11/app-defaults \
2817 /usr/athena/lib/X11/app-defaults \
2818 /usr/local/x11r5/lib/X11/app-defaults \
2819 /usr/lpp/Xamples/lib/X11/app-defaults \
2820 /lib/usr/lib/X11/app-defaults \
2822 /usr/openwin/lib/app-defaults \
2823 /usr/openwin/lib/X11/app-defaults \
2824 /usr/openwin/share/lib/app-defaults \
2825 /usr/openwin/share/lib/X11/app-defaults \
2827 /X11R6/lib/app-defaults \
2828 /X11R5/lib/app-defaults \
2829 /X11R4/lib/app-defaults \
2832 if test -d "$ac_dir"; then
2833 ac_x_app_defaults=$ac_dir
2839 if test x"$ac_x_app_defaults" = x; then
2840 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
2842 # Record where we found app-defaults for the cache.
2843 ac_cv_x_app_defaults="$ac_x_app_defaults"
2847 echo "$ac_t""$ac_cv_x_app_defaults" 1>&6
2848 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
2850 APPDEFAULTS=$ac_x_app_defaults
2853 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
2857 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
2861 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
2866 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
2867 # Use this sparingly; it probably doesn't work very well on X programs.
2871 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
2872 # (But not the -L directories!)
2878 # Usage: HANDLE_X_PATH_ARG([variable_name],
2879 # [--command-line-option],
2880 # [descriptive string])
2882 # All of the --with options take three forms:
2884 # --with-foo (or --with-foo=yes)
2885 # --without-foo (or --with-foo=no)
2888 # This function, HANDLE_X_PATH_ARG, deals with the /DIR case. When it sees
2889 # a directory (string beginning with a slash) it checks to see whether
2890 # /DIR/include and /DIR/lib exist, and adds them to $X_CFLAGS and $X_LIBS
2897 # check for the HP XHPDisableReset server extension headers.
2900 ac_save_CPPFLAGS="$CPPFLAGS"
2901 if test \! -z "$includedir" ; then
2902 CPPFLAGS="$CPPFLAGS -I$includedir"
2904 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2905 cat > conftest.$ac_ext <<EOF
2906 #line 2918 "configure"
2907 #include "confdefs.h"
2908 #include <X11/XHPlib.h>
2910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2911 egrep "XHPDisableReset" >/dev/null 2>&1; then
2913 cat >> confdefs.h <<\EOF
2914 #define HAVE_XHPDISABLERESET 1
2917 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
2921 CPPFLAGS="$ac_save_CPPFLAGS"
2924 # Check for the availability of the XPointer typedef, and define it otherwise.
2926 echo $ac_n "checking for XPointer""... $ac_c" 1>&6
2927 echo "configure:2939: checking for XPointer" >&5
2928 if eval "test \"`echo '$''{'ac_cv_xpointer'+set}'`\" = set"; then
2929 echo $ac_n "(cached) $ac_c" 1>&6
2932 ac_save_CPPFLAGS="$CPPFLAGS"
2933 if test \! -z "$includedir" ; then
2934 CPPFLAGS="$CPPFLAGS -I$includedir"
2936 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2937 cat > conftest.$ac_ext <<EOF
2938 #line 2950 "configure"
2939 #include "confdefs.h"
2940 #include <X11/Xlib.h>
2942 XPointer foo = (XPointer) 0;
2945 if { (eval echo configure:2957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2949 echo "configure: failed program was:" >&5
2950 cat conftest.$ac_ext >&5
2955 CPPFLAGS="$ac_save_CPPFLAGS"
2958 echo "$ac_t""$ac_cv_xpointer" 1>&6
2959 if test "$ac_cv_xpointer" != yes; then
2960 cat >> confdefs.h <<\EOF
2961 #define XPointer char*
2967 # Random special-cases for certain pathological OSes. You know who you are.
2972 # The following arcana was gleaned from conversations with
2973 # Eric Schwartz <erics@col.hp.com>:
2975 # On HPUX 10.x, the parts of X that HP considers "standard" live in
2976 # /usr/{include,lib}/X11R6/. The parts that HP doesn't consider
2977 # "standard", notably, Xaw and Xmu, live in /usr/contrib/X11R6/.
2978 # Also, there are symlinks from /usr/include/ and /usr/lib/ into
2979 # /usr/{include,lib}/X11R6/, so that (if you don't use Xmu at all)
2980 # you don't need any -I or -L arguments.
2982 # On HPUX 9.x, /usr/{include,lib}/X11R5/ and /usr/contrib/X11R5/
2983 # are the same division as 10.x. However, there are no symlinks to
2984 # the X stuff from /usr/include/ and /usr/lib/, so -I and -L
2985 # arguments are always necessary.
2987 # However, X11R6 was available on HPUX 9.x as a patch: if that
2988 # patch was installed, then all of X11R6 went in to
2989 # /usr/contrib/X11R6/ (there was no /usr/{include,lib}/X11R6/.)
2991 # HPUX 8.x was the same as 9.x, but was X11R4 instead (I don't know
2992 # whether R5 was available as a patch; R6 undoubtedly was not.)
2994 # So. We try and use the highest numbered pair of
2995 # /usr/{include,lib}/X11R?/ and /usr/contrib/X11R?/{include,lib}/
2996 # that are available. We do not mix and match different versions
2999 # Questions I still don't know the answers to: (do you?)
3001 # * Does HPUX 10.x come with /usr/contrib/X11R6/ standard?
3002 # Or does that need to be installed separately?
3004 # * On HPUX 9.x, where /usr/include/X11R5/ was standard, and
3005 # /usr/contrib/X11R6/ could be installed as a patch, what was in
3006 # that contrib directory? Did it contain so-called "standard"
3007 # X11R6, or did it include Xaw and Xmu as well? If the former,
3008 # where did one find Xaw and Xmu on 9.x R6 systems? Would this
3009 # be a situation where one had to reach into the R5 headers and
3010 # libs to find Xmu? That is, must both R6 and R5 directories
3011 # be on the -I and -L lists in that case?
3013 for version in X11R6 X11R5 X11R4 ; do
3014 # if either pair of directories exists...
3015 if test -d /usr/lib/$version || test -d /usr/contrib/$version/lib ; then
3016 # if contrib exists, use it...
3017 if test -d /usr/contrib/$version/lib ; then
3018 X_CFLAGS="$X_CFLAGS -I/usr/contrib/$version/include"
3019 X_LIBS="$X_LIBS -L/usr/contrib/$version/lib"
3021 # if the "standard" one exists, use it.
3022 if test -d /usr/lib/$version ; then
3023 X_CFLAGS="$X_CFLAGS -I/usr/include/$version"
3024 X_LIBS="$X_LIBS -L/usr/lib/$version"
3026 # since at least one of the pair exists, go no farther.
3031 # Now find Motif. Thanks for not making xmkmf find this by
3032 # default, you losers.
3034 if test -d /usr/lib/Motif1.2 ; then
3035 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.2"
3036 X_LIBS="$X_LIBS -L/usr/lib/Motif1.2"
3037 elif test -d /usr/lib/Motif1.1 ; then
3038 X_CFLAGS="$X_CFLAGS -I/usr/include/Motif1.1"
3039 X_LIBS="$X_LIBS -L/usr/lib/Motif1.1"
3042 # Now let's check for the pseudo-standard locations for OpenGL and XPM.
3044 if test -d /opt/Mesa/lib ; then
3045 X_CFLAGS="-I/opt/Mesa/include $X_CFLAGS"
3046 X_LIBS="-L/opt/Mesa/lib $X_LIBS"
3049 if test -d /opt/xpm/lib/X11 ; then
3050 X_CFLAGS="-I/opt/xpm/include $X_CFLAGS"
3051 X_LIBS="-L/opt/xpm/lib/X11 $X_LIBS"
3054 # On HPUX, default to installing in /opt/xscreensaver/ instead of
3055 # in /usr/local/, unless there is already an xscreensaver in
3056 # /usr/local/bin/. This can be overridden with the --prefix arg
3057 # to configure. I'm not sure this is the right thing to do, but
3058 # Richard Lloyd says so...
3060 if test \! -x /usr/local/bin/xscreensaver ; then
3061 ac_default_prefix=/opt/xscreensaver
3067 # Thanks for not making xmkmf find this by default, pinheads.
3068 # And thanks for moving things around again, too. Is this
3069 # really the standard location now? What happened to the
3070 # joke that this kind of thing went in /opt?
3071 # cthomp says "answer: CDE (Common Disorganized Environment)"
3073 if test -f /usr/dt/include/Xm/Xm.h ; then
3074 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
3075 X_LIBS="$X_LIBS -L/usr/dt/lib -R:/usr/dt/lib"
3077 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
3078 echo $ac_n "checking for regcmp in -lgen""... $ac_c" 1>&6
3079 echo "configure:3091: checking for regcmp in -lgen" >&5
3080 ac_lib_var=`echo gen'_'regcmp | sed 'y%./+-%__p_%'`
3081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 ac_save_LIBS="$LIBS"
3086 cat > conftest.$ac_ext <<EOF
3087 #line 3099 "configure"
3088 #include "confdefs.h"
3089 /* Override any gcc2 internal prototype to avoid an error. */
3090 /* We use char because int might match the return type of a gcc2
3091 builtin and then its argument prototype would still apply. */
3098 if { (eval echo configure:3110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3100 eval "ac_cv_lib_$ac_lib_var=yes"
3102 echo "configure: failed program was:" >&5
3103 cat conftest.$ac_ext >&5
3105 eval "ac_cv_lib_$ac_lib_var=no"
3108 LIBS="$ac_save_LIBS"
3111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3112 echo "$ac_t""yes" 1>&6
3113 X_LIBS="$X_LIBS -lgen"
3115 echo "$ac_t""no" 1>&6
3124 # Check for Xmu (some fucked up vendors don't ship it...)
3128 ac_save_CPPFLAGS="$CPPFLAGS"
3129 if test \! -z "$includedir" ; then
3130 CPPFLAGS="$CPPFLAGS -I$includedir"
3132 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3133 ac_safe=`echo "X11/Xmu/Error.h" | sed 'y%./+-%__p_%'`
3134 echo $ac_n "checking for X11/Xmu/Error.h""... $ac_c" 1>&6
3135 echo "configure:3147: checking for X11/Xmu/Error.h" >&5
3136 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3137 echo $ac_n "(cached) $ac_c" 1>&6
3139 cat > conftest.$ac_ext <<EOF
3140 #line 3152 "configure"
3141 #include "confdefs.h"
3142 #include <X11/Xmu/Error.h>
3144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3145 { (eval echo configure:3157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3146 ac_err=`grep -v '^ *+' conftest.out`
3147 if test -z "$ac_err"; then
3149 eval "ac_cv_header_$ac_safe=yes"
3152 echo "configure: failed program was:" >&5
3153 cat conftest.$ac_ext >&5
3155 eval "ac_cv_header_$ac_safe=no"
3159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3160 echo "$ac_t""yes" 1>&6
3163 echo "$ac_t""no" 1>&6
3166 CPPFLAGS="$ac_save_CPPFLAGS"
3167 if test "$have_xmu" = no ; then
3168 XMU_SRCS='$(UTILS_SRC)/xmu.c'
3169 XMU_OBJS='$(UTILS_BIN)/xmu.o'
3173 SAVER_LIBS="-lXmu $SAVER_LIBS"
3174 HACK_LIBS="-lXmu $HACK_LIBS"
3175 cat >> confdefs.h <<\EOF
3182 # See comp.windows.x FAQ question 124 about _get_wmShellWidgetClass on 4.1.x.
3183 # The right fix is to get OpenWindows 3.0 patches 100512-02 and 100573-03.
3185 if test "$have_xmu" = yes ; then
3188 echo $ac_n "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug""... $ac_c" 1>&6
3189 echo "configure:3201: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
3190 if eval "test \"`echo '$''{'ac_cv_sunos_xmu_bug'+set}'`\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3193 ac_save_LDFLAGS="$LDFLAGS"
3194 if test \! -z "$x_libraries" ; then
3195 LDFLAGS="$LDFLAGS -L$x_libraries"
3197 # Note: this trick never works! (Generally.)
3198 # We're only getting away with using AC_TRY_LINK
3199 # with X libraries because we know it's SunOS.
3200 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
3201 cat > conftest.$ac_ext <<EOF
3202 #line 3214 "configure"
3203 #include "confdefs.h"
3209 if { (eval echo configure:3221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3211 ac_cv_sunos_xmu_bug=no
3213 echo "configure: failed program was:" >&5
3214 cat conftest.$ac_ext >&5
3216 ac_cv_sunos_xmu_bug=yes
3219 LDFLAGS="$ac_save_LDFLAGS"
3222 echo "$ac_t""$ac_cv_sunos_xmu_bug" 1>&6
3223 if test "$ac_cv_sunos_xmu_bug" = yes ; then
3224 echo $ac_n "checking whether the compiler understands -static""... $ac_c" 1>&6
3225 echo "configure:3237: checking whether the compiler understands -static" >&5
3226 if eval "test \"`echo '$''{'ac_cv_ld_static'+set}'`\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3229 ac_save_LDFLAGS="$LDFLAGS"
3230 LDFLAGS="$LDFLAGS -static"
3231 cat > conftest.$ac_ext <<EOF
3232 #line 3244 "configure"
3233 #include "confdefs.h"
3239 if { (eval echo configure:3251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3243 echo "configure: failed program was:" >&5
3244 cat conftest.$ac_ext >&5
3249 LDFLAGS="$ac_save_LDFLAGS"
3252 echo "$ac_t""$ac_cv_ld_static" 1>&6
3253 if test "$ac_cv_ld_static" = yes ; then
3254 LDFLAGS="$LDFLAGS -static"
3256 LDFLAGS="$LDFLAGS -Bstatic"
3264 # Check for the SGI SCREEN_SAVER server extension header.
3267 with_sgi_req=unspecified
3268 # Check whether --with-sgi-ext or --without-sgi-ext was given.
3269 if test "${with_sgi_ext+set}" = set; then
3270 withval="$with_sgi_ext"
3271 with_sgi="$withval"; with_sgi_req="$withval"
3283 echo $ac_n "checking for SGI SCREEN_SAVER headers""... $ac_c" 1>&6
3284 echo "configure:3296: checking for SGI SCREEN_SAVER headers" >&5
3287 X_CFLAGS="-I$d $X_CFLAGS"
3288 echo "$ac_t""$d" 1>&6
3290 echo "$ac_t""not found ($d: no such directory)" 1>&6
3293 echo $ac_n "checking for SGI SCREEN_SAVER libs""... $ac_c" 1>&6
3294 echo "configure:3306: checking for SGI SCREEN_SAVER libs" >&5
3297 X_LIBS="-L$d $X_LIBS"
3298 echo "$ac_t""$d" 1>&6
3300 echo "$ac_t""not found ($d: no such directory)" 1>&6
3303 # replace the directory string with "yes".
3305 with_sgi=$with_sgi_req
3310 echo "error: argument to --with-sgi-ext must be \"yes\", \"no\", or a directory."
3311 echo " If it is a directory, then \`DIR/include' will be added to"
3312 echo " the -I list, and \`DIR/lib' will be added to the -L list."
3317 # why is this necessary?
3318 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
3319 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
3323 if test "$with_sgi" = yes; then
3325 ac_save_CPPFLAGS="$CPPFLAGS"
3326 if test \! -z "$includedir" ; then
3327 CPPFLAGS="$CPPFLAGS -I$includedir"
3329 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3330 ac_safe=`echo "X11/extensions/XScreenSaver.h" | sed 'y%./+-%__p_%'`
3331 echo $ac_n "checking for X11/extensions/XScreenSaver.h""... $ac_c" 1>&6
3332 echo "configure:3344: checking for X11/extensions/XScreenSaver.h" >&5
3333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3334 echo $ac_n "(cached) $ac_c" 1>&6
3336 cat > conftest.$ac_ext <<EOF
3337 #line 3349 "configure"
3338 #include "confdefs.h"
3339 #include <X11/extensions/XScreenSaver.h>
3341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3342 { (eval echo configure:3354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3343 ac_err=`grep -v '^ *+' conftest.out`
3344 if test -z "$ac_err"; then
3346 eval "ac_cv_header_$ac_safe=yes"
3349 echo "configure: failed program was:" >&5
3350 cat conftest.$ac_ext >&5
3352 eval "ac_cv_header_$ac_safe=no"
3356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3357 echo "$ac_t""yes" 1>&6
3359 cat >> confdefs.h <<\EOF
3360 #define HAVE_SGI_SAVER_EXTENSION 1
3364 echo "$ac_t""no" 1>&6
3367 CPPFLAGS="$ac_save_CPPFLAGS"
3369 elif test "$with_sgi" != no; then
3370 echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
3374 # Check for the MIT-SCREEN-SAVER server extension header,
3375 # unless the SGI extension has already been found.
3378 with_mit_req=unspecified
3379 # Check whether --with-mit-ext or --without-mit-ext was given.
3380 if test "${with_mit_ext+set}" = set; then
3381 withval="$with_mit_ext"
3382 with_mit="$withval"; with_mit_req="$withval"
3394 echo $ac_n "checking for MIT-SCREEN-SAVER headers""... $ac_c" 1>&6
3395 echo "configure:3407: checking for MIT-SCREEN-SAVER headers" >&5
3398 X_CFLAGS="-I$d $X_CFLAGS"
3399 echo "$ac_t""$d" 1>&6
3401 echo "$ac_t""not found ($d: no such directory)" 1>&6
3404 echo $ac_n "checking for MIT-SCREEN-SAVER libs""... $ac_c" 1>&6
3405 echo "configure:3417: checking for MIT-SCREEN-SAVER libs" >&5
3408 X_LIBS="-L$d $X_LIBS"
3409 echo "$ac_t""$d" 1>&6
3411 echo "$ac_t""not found ($d: no such directory)" 1>&6
3414 # replace the directory string with "yes".
3416 with_mit=$with_mit_req
3421 echo "error: argument to --with-mit-ext must be \"yes\", \"no\", or a directory."
3422 echo " If it is a directory, then \`DIR/include' will be added to"
3423 echo " the -I list, and \`DIR/lib' will be added to the -L list."
3428 # why is this necessary?
3429 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
3430 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
3434 if test "$have_sgi" != yes; then
3435 if test "$with_mit" = yes; then
3437 ac_save_CPPFLAGS="$CPPFLAGS"
3438 if test \! -z "$includedir" ; then
3439 CPPFLAGS="$CPPFLAGS -I$includedir"
3441 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3442 ac_safe=`echo "X11/extensions/scrnsaver.h" | sed 'y%./+-%__p_%'`
3443 echo $ac_n "checking for X11/extensions/scrnsaver.h""... $ac_c" 1>&6
3444 echo "configure:3456: checking for X11/extensions/scrnsaver.h" >&5
3445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3446 echo $ac_n "(cached) $ac_c" 1>&6
3448 cat > conftest.$ac_ext <<EOF
3449 #line 3461 "configure"
3450 #include "confdefs.h"
3451 #include <X11/extensions/scrnsaver.h>
3453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3454 { (eval echo configure:3466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3455 ac_err=`grep -v '^ *+' conftest.out`
3456 if test -z "$ac_err"; then
3458 eval "ac_cv_header_$ac_safe=yes"
3461 echo "configure: failed program was:" >&5
3462 cat conftest.$ac_ext >&5
3464 eval "ac_cv_header_$ac_safe=no"
3468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3469 echo "$ac_t""yes" 1>&6
3472 echo "$ac_t""no" 1>&6
3475 CPPFLAGS="$ac_save_CPPFLAGS"
3477 # Now check to see if it's really in the library; XF86Free-3.3 ships
3478 # scrnsaver.h, but doesn't include the code in libXext.a, the idiots!
3480 if test "$have_mit" = yes; then
3482 ac_save_CPPFLAGS="$CPPFLAGS"
3483 ac_save_LDFLAGS="$LDFLAGS"
3485 if test \! -z "$includedir" ; then
3486 CPPFLAGS="$CPPFLAGS -I$includedir"
3488 # note: $X_CFLAGS includes $x_includes
3489 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3491 if test \! -z "$libdir" ; then
3492 LDFLAGS="$LDFLAGS -L$libdir"
3494 # note: $X_LIBS includes $x_libraries
3495 LDFLAGS="$LDFLAGS $X_LIBS"
3497 echo $ac_n "checking for XScreenSaverRegister in -lXext""... $ac_c" 1>&6
3498 echo "configure:3510: checking for XScreenSaverRegister in -lXext" >&5
3499 ac_lib_var=`echo Xext'_'XScreenSaverRegister | sed 'y%./+-%__p_%'`
3500 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3501 echo $ac_n "(cached) $ac_c" 1>&6
3503 ac_save_LIBS="$LIBS"
3504 LIBS="-lXext -lm $LIBS"
3505 cat > conftest.$ac_ext <<EOF
3506 #line 3518 "configure"
3507 #include "confdefs.h"
3508 /* Override any gcc2 internal prototype to avoid an error. */
3509 /* We use char because int might match the return type of a gcc2
3510 builtin and then its argument prototype would still apply. */
3511 char XScreenSaverRegister();
3514 XScreenSaverRegister()
3517 if { (eval echo configure:3529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3519 eval "ac_cv_lib_$ac_lib_var=yes"
3521 echo "configure: failed program was:" >&5
3522 cat conftest.$ac_ext >&5
3524 eval "ac_cv_lib_$ac_lib_var=no"
3527 LIBS="$ac_save_LIBS"
3530 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3531 echo "$ac_t""yes" 1>&6
3532 ac_tr_lib=HAVE_LIB`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3533 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3534 cat >> confdefs.h <<EOF
3535 #define $ac_tr_lib 1
3541 echo "$ac_t""no" 1>&6
3545 CPPFLAGS="$ac_save_CPPFLAGS"
3546 LDFLAGS="$ac_save_LDFLAGS"
3548 if test "$have_mit" = no; then
3549 # Fuck! Looks like XF86Free-3.3 actually puts it in XExExt instead
3550 # of in Xext. Thank you master, may I have another.
3552 ac_save_CPPFLAGS="$CPPFLAGS"
3553 ac_save_LDFLAGS="$LDFLAGS"
3555 if test \! -z "$includedir" ; then
3556 CPPFLAGS="$CPPFLAGS -I$includedir"
3558 # note: $X_CFLAGS includes $x_includes
3559 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3561 if test \! -z "$libdir" ; then
3562 LDFLAGS="$LDFLAGS -L$libdir"
3564 # note: $X_LIBS includes $x_libraries
3565 LDFLAGS="$LDFLAGS $X_LIBS"
3567 echo $ac_n "checking for XScreenSaverRegister in -lXExExt""... $ac_c" 1>&6
3568 echo "configure:3580: checking for XScreenSaverRegister in -lXExExt" >&5
3569 ac_lib_var=`echo XExExt'_'XScreenSaverRegister | sed 'y%./+-%__p_%'`
3570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3573 ac_save_LIBS="$LIBS"
3574 LIBS="-lXExExt -lX11 -lXext -lm $LIBS"
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3588 "configure"
3577 #include "confdefs.h"
3578 /* Override any gcc2 internal prototype to avoid an error. */
3579 /* We use char because int might match the return type of a gcc2
3580 builtin and then its argument prototype would still apply. */
3581 char XScreenSaverRegister();
3584 XScreenSaverRegister()
3587 if { (eval echo configure:3599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3589 eval "ac_cv_lib_$ac_lib_var=yes"
3591 echo "configure: failed program was:" >&5
3592 cat conftest.$ac_ext >&5
3594 eval "ac_cv_lib_$ac_lib_var=no"
3597 LIBS="$ac_save_LIBS"
3600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3601 echo "$ac_t""yes" 1>&6
3602 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXExExt"
3604 echo "$ac_t""no" 1>&6
3607 CPPFLAGS="$ac_save_CPPFLAGS"
3608 LDFLAGS="$ac_save_LDFLAGS"
3611 if test "$have_mit" = no; then
3612 # Double fuck! Looks like some versions of XFree86 (whichever version
3613 # it is that comes with RedHat Linux 2.0 -- I can't find a version
3614 # number) put this garbage in Xss instead of Xext. Thank you master,
3615 # may I have another.
3617 ac_save_CPPFLAGS="$CPPFLAGS"
3618 ac_save_LDFLAGS="$LDFLAGS"
3620 if test \! -z "$includedir" ; then
3621 CPPFLAGS="$CPPFLAGS -I$includedir"
3623 # note: $X_CFLAGS includes $x_includes
3624 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3626 if test \! -z "$libdir" ; then
3627 LDFLAGS="$LDFLAGS -L$libdir"
3629 # note: $X_LIBS includes $x_libraries
3630 LDFLAGS="$LDFLAGS $X_LIBS"
3632 echo $ac_n "checking for XScreenSaverRegister in -lXss""... $ac_c" 1>&6
3633 echo "configure:3645: checking for XScreenSaverRegister in -lXss" >&5
3634 ac_lib_var=`echo Xss'_'XScreenSaverRegister | sed 'y%./+-%__p_%'`
3635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3638 ac_save_LIBS="$LIBS"
3639 LIBS="-lXss -lX11 -lXext -lm $LIBS"
3640 cat > conftest.$ac_ext <<EOF
3641 #line 3653 "configure"
3642 #include "confdefs.h"
3643 /* Override any gcc2 internal prototype to avoid an error. */
3644 /* We use char because int might match the return type of a gcc2
3645 builtin and then its argument prototype would still apply. */
3646 char XScreenSaverRegister();
3649 XScreenSaverRegister()
3652 if { (eval echo configure:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3654 eval "ac_cv_lib_$ac_lib_var=yes"
3656 echo "configure: failed program was:" >&5
3657 cat conftest.$ac_ext >&5
3659 eval "ac_cv_lib_$ac_lib_var=no"
3662 LIBS="$ac_save_LIBS"
3665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3666 echo "$ac_t""yes" 1>&6
3667 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXss"
3669 echo "$ac_t""no" 1>&6
3672 CPPFLAGS="$ac_save_CPPFLAGS"
3673 LDFLAGS="$ac_save_LDFLAGS"
3676 if test "$have_mit" = yes; then
3677 cat >> confdefs.h <<\EOF
3678 #define HAVE_MIT_SAVER_EXTENSION 1
3685 elif test "$with_mit" != no; then
3686 echo "error: must be yes or no: --with-mit-ext=$with_mit"
3692 # Check for the XIDLE server extension header.
3695 with_xidle_req=unspecified
3696 # Check whether --with-xidle-ext or --without-xidle-ext was given.
3697 if test "${with_xidle_ext+set}" = set; then
3698 withval="$with_xidle_ext"
3699 with_xidle="$withval"; with_xidle_req="$withval"
3706 case "$with_xidle" in
3711 echo $ac_n "checking for XIDLE headers""... $ac_c" 1>&6
3712 echo "configure:3724: checking for XIDLE headers" >&5
3713 d=$with_xidle/include
3715 X_CFLAGS="-I$d $X_CFLAGS"
3716 echo "$ac_t""$d" 1>&6
3718 echo "$ac_t""not found ($d: no such directory)" 1>&6
3721 echo $ac_n "checking for XIDLE libs""... $ac_c" 1>&6
3722 echo "configure:3734: checking for XIDLE libs" >&5
3725 X_LIBS="-L$d $X_LIBS"
3726 echo "$ac_t""$d" 1>&6
3728 echo "$ac_t""not found ($d: no such directory)" 1>&6
3731 # replace the directory string with "yes".
3732 with_xidle_req="yes"
3733 with_xidle=$with_xidle_req
3738 echo "error: argument to --with-xidle-ext must be \"yes\", \"no\", or a directory."
3739 echo " If it is a directory, then \`DIR/include' will be added to"
3740 echo " the -I list, and \`DIR/lib' will be added to the -L list."
3745 # why is this necessary?
3746 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
3747 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
3751 if test "$with_xidle" = yes; then
3753 ac_save_CPPFLAGS="$CPPFLAGS"
3754 if test \! -z "$includedir" ; then
3755 CPPFLAGS="$CPPFLAGS -I$includedir"
3757 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3758 ac_safe=`echo "X11/extensions/xidle.h" | sed 'y%./+-%__p_%'`
3759 echo $ac_n "checking for X11/extensions/xidle.h""... $ac_c" 1>&6
3760 echo "configure:3772: checking for X11/extensions/xidle.h" >&5
3761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3764 cat > conftest.$ac_ext <<EOF
3765 #line 3777 "configure"
3766 #include "confdefs.h"
3767 #include <X11/extensions/xidle.h>
3769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3770 { (eval echo configure:3782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3771 ac_err=`grep -v '^ *+' conftest.out`
3772 if test -z "$ac_err"; then
3774 eval "ac_cv_header_$ac_safe=yes"
3777 echo "configure: failed program was:" >&5
3778 cat conftest.$ac_ext >&5
3780 eval "ac_cv_header_$ac_safe=no"
3784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3785 echo "$ac_t""yes" 1>&6
3787 cat >> confdefs.h <<\EOF
3788 #define HAVE_XIDLE_EXTENSION 1
3792 echo "$ac_t""no" 1>&6
3795 CPPFLAGS="$ac_save_CPPFLAGS"
3796 elif test "$with_xidle" != no; then
3797 echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
3802 # Check for the XSHM server extension header.
3805 with_xshm_req=unspecified
3806 # Check whether --with-xshm-ext or --without-xshm-ext was given.
3807 if test "${with_xshm_ext+set}" = set; then
3808 withval="$with_xshm_ext"
3809 with_xshm="$withval"; with_xshm_req="$withval"
3816 case "$with_xshm" in
3821 echo $ac_n "checking for XSHM headers""... $ac_c" 1>&6
3822 echo "configure:3834: checking for XSHM headers" >&5
3823 d=$with_xshm/include
3825 X_CFLAGS="-I$d $X_CFLAGS"
3826 echo "$ac_t""$d" 1>&6
3828 echo "$ac_t""not found ($d: no such directory)" 1>&6
3831 echo $ac_n "checking for XSHM libs""... $ac_c" 1>&6
3832 echo "configure:3844: checking for XSHM libs" >&5
3835 X_LIBS="-L$d $X_LIBS"
3836 echo "$ac_t""$d" 1>&6
3838 echo "$ac_t""not found ($d: no such directory)" 1>&6
3841 # replace the directory string with "yes".
3843 with_xshm=$with_xshm_req
3848 echo "error: argument to --with-xshm-ext must be \"yes\", \"no\", or a directory."
3849 echo " If it is a directory, then \`DIR/include' will be added to"
3850 echo " the -I list, and \`DIR/lib' will be added to the -L list."
3855 # why is this necessary?
3856 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
3857 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
3861 if test "$with_xshm" = yes; then
3863 # first check for Xshm.h.
3865 ac_save_CPPFLAGS="$CPPFLAGS"
3866 if test \! -z "$includedir" ; then
3867 CPPFLAGS="$CPPFLAGS -I$includedir"
3869 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3870 ac_safe=`echo "X11/extensions/XShm.h" | sed 'y%./+-%__p_%'`
3871 echo $ac_n "checking for X11/extensions/XShm.h""... $ac_c" 1>&6
3872 echo "configure:3884: checking for X11/extensions/XShm.h" >&5
3873 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3874 echo $ac_n "(cached) $ac_c" 1>&6
3876 cat > conftest.$ac_ext <<EOF
3877 #line 3889 "configure"
3878 #include "confdefs.h"
3879 #include <X11/extensions/XShm.h>
3881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3882 { (eval echo configure:3894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3883 ac_err=`grep -v '^ *+' conftest.out`
3884 if test -z "$ac_err"; then
3886 eval "ac_cv_header_$ac_safe=yes"
3889 echo "configure: failed program was:" >&5
3890 cat conftest.$ac_ext >&5
3892 eval "ac_cv_header_$ac_safe=no"
3896 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3897 echo "$ac_t""yes" 1>&6
3900 echo "$ac_t""no" 1>&6
3903 CPPFLAGS="$ac_save_CPPFLAGS"
3905 # if that succeeded, then check for sys/ipc.h.
3906 if test "$have_xshm" = yes; then
3909 ac_save_CPPFLAGS="$CPPFLAGS"
3910 if test \! -z "$includedir" ; then
3911 CPPFLAGS="$CPPFLAGS -I$includedir"
3913 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3914 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
3915 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
3916 echo "configure:3928: checking for sys/ipc.h" >&5
3917 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3918 echo $ac_n "(cached) $ac_c" 1>&6
3920 cat > conftest.$ac_ext <<EOF
3921 #line 3933 "configure"
3922 #include "confdefs.h"
3923 #include <sys/ipc.h>
3925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3926 { (eval echo configure:3938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3927 ac_err=`grep -v '^ *+' conftest.out`
3928 if test -z "$ac_err"; then
3930 eval "ac_cv_header_$ac_safe=yes"
3933 echo "configure: failed program was:" >&5
3934 cat conftest.$ac_ext >&5
3936 eval "ac_cv_header_$ac_safe=no"
3940 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3941 echo "$ac_t""yes" 1>&6
3944 echo "$ac_t""no" 1>&6
3947 CPPFLAGS="$ac_save_CPPFLAGS"
3950 # if that succeeded, then check for sys/shm.h.
3951 if test "$have_xshm" = yes; then
3954 ac_save_CPPFLAGS="$CPPFLAGS"
3955 if test \! -z "$includedir" ; then
3956 CPPFLAGS="$CPPFLAGS -I$includedir"
3958 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3959 ac_safe=`echo "sys/shm.h" | sed 'y%./+-%__p_%'`
3960 echo $ac_n "checking for sys/shm.h""... $ac_c" 1>&6
3961 echo "configure:3973: checking for sys/shm.h" >&5
3962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3965 cat > conftest.$ac_ext <<EOF
3966 #line 3978 "configure"
3967 #include "confdefs.h"
3968 #include <sys/shm.h>
3970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3971 { (eval echo configure:3983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3972 ac_err=`grep -v '^ *+' conftest.out`
3973 if test -z "$ac_err"; then
3975 eval "ac_cv_header_$ac_safe=yes"
3978 echo "configure: failed program was:" >&5
3979 cat conftest.$ac_ext >&5
3981 eval "ac_cv_header_$ac_safe=no"
3985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3986 echo "$ac_t""yes" 1>&6
3989 echo "$ac_t""no" 1>&6
3992 CPPFLAGS="$ac_save_CPPFLAGS"
3995 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
3996 # to exist, but the library code to not exist. And even better, the library
3997 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
3998 # lib doesn't exist, give up.
4004 ac_save_CPPFLAGS="$CPPFLAGS"
4005 ac_save_LDFLAGS="$LDFLAGS"
4007 if test \! -z "$includedir" ; then
4008 CPPFLAGS="$CPPFLAGS -I$includedir"
4010 # note: $X_CFLAGS includes $x_includes
4011 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4013 if test \! -z "$libdir" ; then
4014 LDFLAGS="$LDFLAGS -L$libdir"
4016 # note: $X_LIBS includes $x_libraries
4017 LDFLAGS="$LDFLAGS $X_LIBS"
4019 echo $ac_n "checking for XShmQueryExtension in -lXextSam""... $ac_c" 1>&6
4020 echo "configure:4032: checking for XShmQueryExtension in -lXextSam" >&5
4021 ac_lib_var=`echo XextSam'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
4022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4025 ac_save_LIBS="$LIBS"
4026 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
4027 cat > conftest.$ac_ext <<EOF
4028 #line 4040 "configure"
4029 #include "confdefs.h"
4030 /* Override any gcc2 internal prototype to avoid an error. */
4031 /* We use char because int might match the return type of a gcc2
4032 builtin and then its argument prototype would still apply. */
4033 char XShmQueryExtension();
4036 XShmQueryExtension()
4039 if { (eval echo configure:4051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4041 eval "ac_cv_lib_$ac_lib_var=yes"
4043 echo "configure: failed program was:" >&5
4044 cat conftest.$ac_ext >&5
4046 eval "ac_cv_lib_$ac_lib_var=no"
4049 LIBS="$ac_save_LIBS"
4052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4053 echo "$ac_t""yes" 1>&6
4054 have_xshm=yes; SAVER_LIBS="$SAVER_LIBS -lXextSam"
4056 echo "$ac_t""no" 1>&6
4059 CPPFLAGS="$ac_save_CPPFLAGS"
4060 LDFLAGS="$ac_save_LDFLAGS"
4064 # if that succeeded, then we've really got it.
4065 if test "$have_xshm" = yes; then
4066 cat >> confdefs.h <<\EOF
4067 #define HAVE_XSHM_EXTENSION 1
4072 elif test "$with_xshm" != no; then
4073 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
4078 # Check for the SGI-VIDEO-CONTROL server extension header.
4081 with_sgivc_req=unspecified
4082 # Check whether --with-sgivc-ext or --without-sgivc-ext was given.
4083 if test "${with_sgivc_ext+set}" = set; then
4084 withval="$with_sgivc_ext"
4085 with_sgivc="$withval"; with_sgivc_req="$withval"
4092 case "$with_sgivc" in
4097 echo $ac_n "checking for SGI-VIDEO-CONTROL headers""... $ac_c" 1>&6
4098 echo "configure:4110: checking for SGI-VIDEO-CONTROL headers" >&5
4099 d=$with_sgivc/include
4101 X_CFLAGS="-I$d $X_CFLAGS"
4102 echo "$ac_t""$d" 1>&6
4104 echo "$ac_t""not found ($d: no such directory)" 1>&6
4107 echo $ac_n "checking for SGI-VIDEO-CONTROL libs""... $ac_c" 1>&6
4108 echo "configure:4120: checking for SGI-VIDEO-CONTROL libs" >&5
4111 X_LIBS="-L$d $X_LIBS"
4112 echo "$ac_t""$d" 1>&6
4114 echo "$ac_t""not found ($d: no such directory)" 1>&6
4117 # replace the directory string with "yes".
4118 with_sgivc_req="yes"
4119 with_sgivc=$with_sgivc_req
4124 echo "error: argument to --with-sgivc-ext must be \"yes\", \"no\", or a directory."
4125 echo " If it is a directory, then \`DIR/include' will be added to"
4126 echo " the -I list, and \`DIR/lib' will be added to the -L list."
4131 # why is this necessary?
4132 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
4133 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
4137 if test "$with_sgivc" = yes; then
4139 # first check for XSGIvc.h
4141 ac_save_CPPFLAGS="$CPPFLAGS"
4142 if test \! -z "$includedir" ; then
4143 CPPFLAGS="$CPPFLAGS -I$includedir"
4145 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4146 ac_safe=`echo "X11/extensions/XSGIvc.h" | sed 'y%./+-%__p_%'`
4147 echo $ac_n "checking for X11/extensions/XSGIvc.h""... $ac_c" 1>&6
4148 echo "configure:4160: checking for X11/extensions/XSGIvc.h" >&5
4149 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4150 echo $ac_n "(cached) $ac_c" 1>&6
4152 cat > conftest.$ac_ext <<EOF
4153 #line 4165 "configure"
4154 #include "confdefs.h"
4155 #include <X11/extensions/XSGIvc.h>
4157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4158 { (eval echo configure:4170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4159 ac_err=`grep -v '^ *+' conftest.out`
4160 if test -z "$ac_err"; then
4162 eval "ac_cv_header_$ac_safe=yes"
4165 echo "configure: failed program was:" >&5
4166 cat conftest.$ac_ext >&5
4168 eval "ac_cv_header_$ac_safe=no"
4172 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4173 echo "$ac_t""yes" 1>&6
4176 echo "$ac_t""no" 1>&6
4179 CPPFLAGS="$ac_save_CPPFLAGS"
4181 # if that succeeded, then check for the -lXsgivc
4182 if test "$have_sgivc" = yes; then
4185 ac_save_CPPFLAGS="$CPPFLAGS"
4186 ac_save_LDFLAGS="$LDFLAGS"
4188 if test \! -z "$includedir" ; then
4189 CPPFLAGS="$CPPFLAGS -I$includedir"
4191 # note: $X_CFLAGS includes $x_includes
4192 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4194 if test \! -z "$libdir" ; then
4195 LDFLAGS="$LDFLAGS -L$libdir"
4197 # note: $X_LIBS includes $x_libraries
4198 LDFLAGS="$LDFLAGS $X_LIBS"
4200 echo $ac_n "checking for XSGIvcQueryGammaMap in -lXsgivc""... $ac_c" 1>&6
4201 echo "configure:4213: checking for XSGIvcQueryGammaMap in -lXsgivc" >&5
4202 ac_lib_var=`echo Xsgivc'_'XSGIvcQueryGammaMap | sed 'y%./+-%__p_%'`
4203 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4204 echo $ac_n "(cached) $ac_c" 1>&6
4206 ac_save_LIBS="$LIBS"
4207 LIBS="-lXsgivc -lXext -lX11 $LIBS"
4208 cat > conftest.$ac_ext <<EOF
4209 #line 4221 "configure"
4210 #include "confdefs.h"
4211 /* Override any gcc2 internal prototype to avoid an error. */
4212 /* We use char because int might match the return type of a gcc2
4213 builtin and then its argument prototype would still apply. */
4214 char XSGIvcQueryGammaMap();
4217 XSGIvcQueryGammaMap()
4220 if { (eval echo configure:4232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4222 eval "ac_cv_lib_$ac_lib_var=yes"
4224 echo "configure: failed program was:" >&5
4225 cat conftest.$ac_ext >&5
4227 eval "ac_cv_lib_$ac_lib_var=no"
4230 LIBS="$ac_save_LIBS"
4233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4234 echo "$ac_t""yes" 1>&6
4235 have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"
4237 echo "$ac_t""no" 1>&6
4240 CPPFLAGS="$ac_save_CPPFLAGS"
4241 LDFLAGS="$ac_save_LDFLAGS"
4244 # if that succeeded, then we've really got it.
4245 if test "$have_sgivc" = yes; then
4246 cat >> confdefs.h <<\EOF
4247 #define HAVE_SGI_VC_EXTENSION 1
4252 elif test "$with_sgivc" != no; then
4253 echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
4258 # Check for the DPMS server extension header.
4261 with_dpms_req=unspecified
4262 # Check whether --with-dpms-ext or --without-dpms-ext was given.
4263 if test "${with_dpms_ext+set}" = set; then
4264 withval="$with_dpms_ext"
4265 with_dpms="$withval"; with_dpms_req="$withval"
4272 case "$with_dpms" in
4277 echo $ac_n "checking for DPMS headers""... $ac_c" 1>&6
4278 echo "configure:4290: checking for DPMS headers" >&5
4279 d=$with_dpms/include
4281 X_CFLAGS="-I$d $X_CFLAGS"
4282 echo "$ac_t""$d" 1>&6
4284 echo "$ac_t""not found ($d: no such directory)" 1>&6
4287 echo $ac_n "checking for DPMS libs""... $ac_c" 1>&6
4288 echo "configure:4300: checking for DPMS libs" >&5
4291 X_LIBS="-L$d $X_LIBS"
4292 echo "$ac_t""$d" 1>&6
4294 echo "$ac_t""not found ($d: no such directory)" 1>&6
4297 # replace the directory string with "yes".
4299 with_dpms=$with_dpms_req
4304 echo "error: argument to --with-dpms-ext must be \"yes\", \"no\", or a directory."
4305 echo " If it is a directory, then \`DIR/include' will be added to"
4306 echo " the -I list, and \`DIR/lib' will be added to the -L list."
4311 # why is this necessary?
4312 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
4313 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
4317 if test "$with_dpms" = yes; then
4319 # first check for dpms.h
4321 ac_save_CPPFLAGS="$CPPFLAGS"
4322 if test \! -z "$includedir" ; then
4323 CPPFLAGS="$CPPFLAGS -I$includedir"
4325 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4326 ac_safe=`echo "X11/extensions/dpms.h" | sed 'y%./+-%__p_%'`
4327 echo $ac_n "checking for X11/extensions/dpms.h""... $ac_c" 1>&6
4328 echo "configure:4340: checking for X11/extensions/dpms.h" >&5
4329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4330 echo $ac_n "(cached) $ac_c" 1>&6
4332 cat > conftest.$ac_ext <<EOF
4333 #line 4345 "configure"
4334 #include "confdefs.h"
4335 #include <X11/extensions/dpms.h>
4337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4338 { (eval echo configure:4350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4339 ac_err=`grep -v '^ *+' conftest.out`
4340 if test -z "$ac_err"; then
4342 eval "ac_cv_header_$ac_safe=yes"
4345 echo "configure: failed program was:" >&5
4346 cat conftest.$ac_ext >&5
4348 eval "ac_cv_header_$ac_safe=no"
4352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4353 echo "$ac_t""yes" 1>&6
4356 echo "$ac_t""no" 1>&6
4359 CPPFLAGS="$ac_save_CPPFLAGS"
4361 # if that succeeded, then check for the -lXdpms
4362 if test "$have_dpms" = yes; then
4365 ac_save_CPPFLAGS="$CPPFLAGS"
4366 ac_save_LDFLAGS="$LDFLAGS"
4368 if test \! -z "$includedir" ; then
4369 CPPFLAGS="$CPPFLAGS -I$includedir"
4371 # note: $X_CFLAGS includes $x_includes
4372 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4374 if test \! -z "$libdir" ; then
4375 LDFLAGS="$LDFLAGS -L$libdir"
4377 # note: $X_LIBS includes $x_libraries
4378 LDFLAGS="$LDFLAGS $X_LIBS"
4380 echo $ac_n "checking for DPMSInfo in -lXdpms""... $ac_c" 1>&6
4381 echo "configure:4393: checking for DPMSInfo in -lXdpms" >&5
4382 ac_lib_var=`echo Xdpms'_'DPMSInfo | sed 'y%./+-%__p_%'`
4383 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4384 echo $ac_n "(cached) $ac_c" 1>&6
4386 ac_save_LIBS="$LIBS"
4387 LIBS="-lXdpms -lXext -lX11 $LIBS"
4388 cat > conftest.$ac_ext <<EOF
4389 #line 4401 "configure"
4390 #include "confdefs.h"
4391 /* Override any gcc2 internal prototype to avoid an error. */
4392 /* We use char because int might match the return type of a gcc2
4393 builtin and then its argument prototype would still apply. */
4400 if { (eval echo configure:4412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4402 eval "ac_cv_lib_$ac_lib_var=yes"
4404 echo "configure: failed program was:" >&5
4405 cat conftest.$ac_ext >&5
4407 eval "ac_cv_lib_$ac_lib_var=no"
4410 LIBS="$ac_save_LIBS"
4413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4414 echo "$ac_t""yes" 1>&6
4415 have_dpms=yes; SAVER_LIBS="$SAVER_LIBS -lXdpms"
4417 echo "$ac_t""no" 1>&6
4420 CPPFLAGS="$ac_save_CPPFLAGS"
4421 LDFLAGS="$ac_save_LDFLAGS"
4424 # if that succeeded, then we've really got it.
4425 if test "$have_dpms" = yes; then
4426 cat >> confdefs.h <<\EOF
4427 #define HAVE_DPMS_EXTENSION 1
4432 elif test "$with_dpms" != no; then
4433 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
4439 # Check for Motif and Athena --with and --without arguments.
4444 with_motif_req=unspecified
4445 with_athena_req=unspecified
4447 # Check whether --with-motif or --without-motif was given.
4448 if test "${with_motif+set}" = set; then
4449 withval="$with_motif"
4450 with_motif="$withval"; with_motif_req="$withval"
4457 case "$with_motif" in
4462 echo $ac_n "checking for Motif headers""... $ac_c" 1>&6
4463 echo "configure:4475: checking for Motif headers" >&5
4464 d=$with_motif/include
4466 X_CFLAGS="-I$d $X_CFLAGS"
4467 echo "$ac_t""$d" 1>&6
4469 echo "$ac_t""not found ($d: no such directory)" 1>&6
4472 echo $ac_n "checking for Motif libs""... $ac_c" 1>&6
4473 echo "configure:4485: checking for Motif libs" >&5
4476 X_LIBS="-L$d $X_LIBS"
4477 echo "$ac_t""$d" 1>&6
4479 echo "$ac_t""not found ($d: no such directory)" 1>&6
4482 # replace the directory string with "yes".
4483 with_motif_req="yes"
4484 with_motif=$with_motif_req
4489 echo "error: argument to --with-motif must be \"yes\", \"no\", or a directory."
4490 echo " If it is a directory, then \`DIR/include' will be added to"
4491 echo " the -I list, and \`DIR/lib' will be added to the -L list."
4496 # why is this necessary?
4497 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
4498 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
4502 # Check whether --with-athena or --without-athena was given.
4503 if test "${with_athena+set}" = set; then
4504 withval="$with_athena"
4505 with_athena="$withval"; with_athena_req="$withval"
4512 case "$with_athena" in
4517 echo $ac_n "checking for Athena headers""... $ac_c" 1>&6
4518 echo "configure:4530: checking for Athena headers" >&5
4519 d=$with_athena/include
4521 X_CFLAGS="-I$d $X_CFLAGS"
4522 echo "$ac_t""$d" 1>&6
4524 echo "$ac_t""not found ($d: no such directory)" 1>&6
4527 echo $ac_n "checking for Athena libs""... $ac_c" 1>&6
4528 echo "configure:4540: checking for Athena libs" >&5
4531 X_LIBS="-L$d $X_LIBS"
4532 echo "$ac_t""$d" 1>&6
4534 echo "$ac_t""not found ($d: no such directory)" 1>&6
4537 # replace the directory string with "yes".
4538 with_athena_req="yes"
4539 with_athena=$with_athena_req
4544 echo "error: argument to --with-athena must be \"yes\", \"no\", or a directory."
4545 echo " If it is a directory, then \`DIR/include' will be added to"
4546 echo " the -I list, and \`DIR/lib' will be added to the -L list."
4551 # why is this necessary?
4552 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
4553 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
4557 if test "$with_motif" != yes -a "$with_motif" != no ; then
4558 echo "error: must be yes or no: --with-motif=$with_motif"
4562 if test "$with_athena" != yes -a "$with_athena" != no ; then
4563 echo "error: must be yes or no: --with-athena=$with_athena"
4568 # Saying --without-motif is the same as saying --with-athena.
4569 if test "$with_motif_req" = no ; then
4574 # Saying --without-athena is the same as saying --with-motif.
4575 if test "$with_athena_req" = no ; then
4580 # Check for Motif and Athena headers.
4584 ac_save_CPPFLAGS="$CPPFLAGS"
4585 if test \! -z "$includedir" ; then
4586 CPPFLAGS="$CPPFLAGS -I$includedir"
4588 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4589 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
4590 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
4591 echo "configure:4603: checking for Xm/Xm.h" >&5
4592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4593 echo $ac_n "(cached) $ac_c" 1>&6
4595 cat > conftest.$ac_ext <<EOF
4596 #line 4608 "configure"
4597 #include "confdefs.h"
4600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4601 { (eval echo configure:4613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4602 ac_err=`grep -v '^ *+' conftest.out`
4603 if test -z "$ac_err"; then
4605 eval "ac_cv_header_$ac_safe=yes"
4608 echo "configure: failed program was:" >&5
4609 cat conftest.$ac_ext >&5
4611 eval "ac_cv_header_$ac_safe=no"
4615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4616 echo "$ac_t""yes" 1>&6
4618 cat >> confdefs.h <<\EOF
4619 #define HAVE_MOTIF 1
4622 TOOLKIT_LIBS="-lXm $TOOLKIT_LIBS"
4624 echo "$ac_t""no" 1>&6
4627 CPPFLAGS="$ac_save_CPPFLAGS"
4634 ac_save_CPPFLAGS="$CPPFLAGS"
4635 if test \! -z "$includedir" ; then
4636 CPPFLAGS="$CPPFLAGS -I$includedir"
4638 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4639 ac_safe=`echo "X11/Xaw/Dialog.h" | sed 'y%./+-%__p_%'`
4640 echo $ac_n "checking for X11/Xaw/Dialog.h""... $ac_c" 1>&6
4641 echo "configure:4653: checking for X11/Xaw/Dialog.h" >&5
4642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4643 echo $ac_n "(cached) $ac_c" 1>&6
4645 cat > conftest.$ac_ext <<EOF
4646 #line 4658 "configure"
4647 #include "confdefs.h"
4648 #include <X11/Xaw/Dialog.h>
4650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4651 { (eval echo configure:4663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4652 ac_err=`grep -v '^ *+' conftest.out`
4653 if test -z "$ac_err"; then
4655 eval "ac_cv_header_$ac_safe=yes"
4658 echo "configure: failed program was:" >&5
4659 cat conftest.$ac_ext >&5
4661 eval "ac_cv_header_$ac_safe=no"
4665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4666 echo "$ac_t""yes" 1>&6
4669 echo "$ac_t""no" 1>&6
4672 CPPFLAGS="$ac_save_CPPFLAGS"
4673 if test "$have_athena" = yes; then
4675 ac_save_CPPFLAGS="$CPPFLAGS"
4676 ac_save_LDFLAGS="$LDFLAGS"
4678 if test \! -z "$includedir" ; then
4679 CPPFLAGS="$CPPFLAGS -I$includedir"
4681 # note: $X_CFLAGS includes $x_includes
4682 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4684 if test \! -z "$libdir" ; then
4685 LDFLAGS="$LDFLAGS -L$libdir"
4687 # note: $X_LIBS includes $x_libraries
4688 LDFLAGS="$LDFLAGS $X_LIBS"
4690 echo $ac_n "checking for Xaw3dComputeTopShadowRGB in -lXaw3d""... $ac_c" 1>&6
4691 echo "configure:4703: checking for Xaw3dComputeTopShadowRGB in -lXaw3d" >&5
4692 ac_lib_var=`echo Xaw3d'_'Xaw3dComputeTopShadowRGB | sed 'y%./+-%__p_%'`
4693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4694 echo $ac_n "(cached) $ac_c" 1>&6
4696 ac_save_LIBS="$LIBS"
4697 LIBS="-lXaw3d -lXt -lXmu -lXext -lX11 $LIBS"
4698 cat > conftest.$ac_ext <<EOF
4699 #line 4711 "configure"
4700 #include "confdefs.h"
4701 /* Override any gcc2 internal prototype to avoid an error. */
4702 /* We use char because int might match the return type of a gcc2
4703 builtin and then its argument prototype would still apply. */
4704 char Xaw3dComputeTopShadowRGB();
4707 Xaw3dComputeTopShadowRGB()
4710 if { (eval echo configure:4722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4712 eval "ac_cv_lib_$ac_lib_var=yes"
4714 echo "configure: failed program was:" >&5
4715 cat conftest.$ac_ext >&5
4717 eval "ac_cv_lib_$ac_lib_var=no"
4720 LIBS="$ac_save_LIBS"
4723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4724 echo "$ac_t""yes" 1>&6
4725 have_athena=yes; have_athena3d=yes
4727 echo "$ac_t""no" 1>&6
4730 CPPFLAGS="$ac_save_CPPFLAGS"
4731 LDFLAGS="$ac_save_LDFLAGS"
4734 if test "$have_athena3d" = yes; then
4735 TOOLKIT_LIBS="-lXaw3d $TOOLKIT_LIBS"
4736 elif test "$have_athena" = yes; then
4737 TOOLKIT_LIBS="-lXaw $TOOLKIT_LIBS"
4742 # If they asked for both motif and athena, check motif then athena.
4743 # If they asked for only motif, check motif then athena.
4744 # If they asked for only athena, check athena then motif.
4745 # If they asked for neither, check motif then athena.
4747 proselytize_motif=yes
4748 if test "$with_motif" = yes; then
4749 # asked for both, or for motif only
4751 if test "$have_motif" = yes; then
4758 elif test "$with_athena" = yes; then
4759 # asked for athena only
4761 if test "$have_athena" = yes; then
4763 proselytize_motif=no
4771 if test "$have_motif" = yes; then
4779 if test "$have_motif" = yes; then
4780 proselytize_motif=no
4783 # If we have Athena, check whether it's a version that includes
4784 # XawViewportSetCoordinates in Viewport.h (R3 (or R4?) don't.)
4785 if test "$have_athena" = yes ; then
4786 echo $ac_n "checking for XawViewportSetCoordinates in Viewport.h""... $ac_c" 1>&6
4787 echo "configure:4799: checking for XawViewportSetCoordinates in Viewport.h" >&5
4788 if eval "test \"`echo '$''{'ac_cv_have_XawViewportSetCoordinates'+set}'`\" = set"; then
4789 echo $ac_n "(cached) $ac_c" 1>&6
4791 ac_cv_have_XawViewportSetCoordinates=no
4793 ac_save_CPPFLAGS="$CPPFLAGS"
4794 if test \! -z "$includedir" ; then
4795 CPPFLAGS="$CPPFLAGS -I$includedir"
4797 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4798 cat > conftest.$ac_ext <<EOF
4799 #line 4811 "configure"
4800 #include "confdefs.h"
4801 #include <X11/Xaw/Viewport.h>
4803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4804 egrep "XawViewportSetCoordinates" >/dev/null 2>&1; then
4806 ac_cv_have_XawViewportSetCoordinates=yes
4810 CPPFLAGS="$ac_save_CPPFLAGS"
4813 echo "$ac_t""$ac_cv_have_XawViewportSetCoordinates" 1>&6
4814 if test "$ac_cv_have_XawViewportSetCoordinates" = yes ; then
4815 cat >> confdefs.h <<\EOF
4816 #define HAVE_XawViewportSetCoordinates 1
4823 # If we have Motif, check whether it's really LessTif.
4826 if test "$have_motif" = yes ; then
4827 echo $ac_n "checking whether Motif is really LessTif""... $ac_c" 1>&6
4828 echo "configure:4840: checking whether Motif is really LessTif" >&5
4829 if eval "test \"`echo '$''{'ac_cv_have_lesstif'+set}'`\" = set"; then
4830 echo $ac_n "(cached) $ac_c" 1>&6
4833 ac_save_CPPFLAGS="$CPPFLAGS"
4834 if test \! -z "$includedir" ; then
4835 CPPFLAGS="$CPPFLAGS -I$includedir"
4837 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4838 cat > conftest.$ac_ext <<EOF
4839 #line 4851 "configure"
4840 #include "confdefs.h"
4843 long vers = LesstifVersion;
4846 if { (eval echo configure:4858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4848 ac_cv_have_lesstif=yes
4850 echo "configure: failed program was:" >&5
4851 cat conftest.$ac_ext >&5
4853 ac_cv_have_lesstif=no
4856 CPPFLAGS="$ac_save_CPPFLAGS"
4859 echo "$ac_t""$ac_cv_have_lesstif" 1>&6
4860 have_lesstif=$ac_cv_have_lesstif
4864 unset ac_cv_lesstif_version
4865 unset ac_cv_lesstif_version_string
4867 lesstif_version=unknown
4868 lesstif_version_string=unknown
4870 if test "$have_lesstif" = yes ; then
4872 echo unknown > conftest-lt
4873 echo $ac_n "checking LessTif version number""... $ac_c" 1>&6
4874 echo "configure:4886: checking LessTif version number" >&5
4875 if eval "test \"`echo '$''{'ac_cv_lesstif_version_string'+set}'`\" = set"; then
4876 echo $ac_n "(cached) $ac_c" 1>&6
4879 ac_save_CPPFLAGS="$CPPFLAGS"
4880 if test \! -z "$includedir" ; then
4881 CPPFLAGS="$CPPFLAGS -I$includedir"
4883 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4884 if test "$cross_compiling" = yes; then
4885 ac_cv_lesstif_version=unknown
4886 ac_cv_lesstif_version_string=unknown
4888 cat > conftest.$ac_ext <<EOF
4889 #line 4901 "configure"
4890 #include "confdefs.h"
4894 FILE *f = fopen("conftest-lt", "w");
4896 fprintf(f, "%d %d.%d\n", LesstifVersion,
4897 LESSTIF_VERSION, LESSTIF_REVISION);
4902 if { (eval echo configure:4914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4904 ltv=`cat conftest-lt`
4905 ac_cv_lesstif_version=`echo $ltv | sed 's/ .*//'`
4906 ac_cv_lesstif_version_string=`echo $ltv | sed 's/.* //'`
4908 echo "configure: failed program was:" >&5
4909 cat conftest.$ac_ext >&5
4911 ac_cv_lesstif_version=unknown
4912 ac_cv_lesstif_version_string=unknown
4917 CPPFLAGS="$ac_save_CPPFLAGS"
4920 echo "$ac_t""$ac_cv_lesstif_version_string" 1>&6
4922 lesstif_version=$ac_cv_lesstif_version
4923 lesstif_version_string=$ac_cv_lesstif_version_string
4928 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
4929 # Extension". Why this extension isn't in -lXext with all the others,
4933 if test "$have_motif" = yes ; then
4936 ac_save_CPPFLAGS="$CPPFLAGS"
4937 ac_save_LDFLAGS="$LDFLAGS"
4939 if test \! -z "$includedir" ; then
4940 CPPFLAGS="$CPPFLAGS -I$includedir"
4942 # note: $X_CFLAGS includes $x_includes
4943 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4945 if test \! -z "$libdir" ; then
4946 LDFLAGS="$LDFLAGS -L$libdir"
4948 # note: $X_LIBS includes $x_libraries
4949 LDFLAGS="$LDFLAGS $X_LIBS"
4951 echo $ac_n "checking for XpQueryExtension in -lXp""... $ac_c" 1>&6
4952 echo "configure:4964: checking for XpQueryExtension in -lXp" >&5
4953 ac_lib_var=`echo Xp'_'XpQueryExtension | sed 'y%./+-%__p_%'`
4954 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4955 echo $ac_n "(cached) $ac_c" 1>&6
4957 ac_save_LIBS="$LIBS"
4958 LIBS="-lXp -lX11 -lXext -lm $LIBS"
4959 cat > conftest.$ac_ext <<EOF
4960 #line 4972 "configure"
4961 #include "confdefs.h"
4962 /* Override any gcc2 internal prototype to avoid an error. */
4963 /* We use char because int might match the return type of a gcc2
4964 builtin and then its argument prototype would still apply. */
4965 char XpQueryExtension();
4971 if { (eval echo configure:4983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4973 eval "ac_cv_lib_$ac_lib_var=yes"
4975 echo "configure: failed program was:" >&5
4976 cat conftest.$ac_ext >&5
4978 eval "ac_cv_lib_$ac_lib_var=no"
4981 LIBS="$ac_save_LIBS"
4984 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4985 echo "$ac_t""yes" 1>&6
4986 have_xp_ext=yes; TOOLKIT_LIBS="$TOOLKIT_LIBS -lXp"
4988 echo "$ac_t""no" 1>&6
4991 CPPFLAGS="$ac_save_CPPFLAGS"
4992 LDFLAGS="$ac_save_LDFLAGS"
4996 # check for XPM header.
4999 with_xpm_req=unspecified
5000 # Check whether --with-xpm or --without-xpm was given.
5001 if test "${with_xpm+set}" = set; then
5003 with_xpm="$withval"; with_xpm_req="$withval"
5015 echo $ac_n "checking for XPM headers""... $ac_c" 1>&6
5016 echo "configure:5028: checking for XPM headers" >&5
5019 X_CFLAGS="-I$d $X_CFLAGS"
5020 echo "$ac_t""$d" 1>&6
5022 echo "$ac_t""not found ($d: no such directory)" 1>&6
5025 echo $ac_n "checking for XPM libs""... $ac_c" 1>&6
5026 echo "configure:5038: checking for XPM libs" >&5
5029 X_LIBS="-L$d $X_LIBS"
5030 echo "$ac_t""$d" 1>&6
5032 echo "$ac_t""not found ($d: no such directory)" 1>&6
5035 # replace the directory string with "yes".
5037 with_xpm=$with_xpm_req
5042 echo "error: argument to --with-xpm must be \"yes\", \"no\", or a directory."
5043 echo " If it is a directory, then \`DIR/include' will be added to"
5044 echo " the -I list, and \`DIR/lib' will be added to the -L list."
5049 # why is this necessary?
5050 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
5051 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
5055 if test "$with_xpm" = yes; then
5057 ac_save_CPPFLAGS="$CPPFLAGS"
5058 if test \! -z "$includedir" ; then
5059 CPPFLAGS="$CPPFLAGS -I$includedir"
5061 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5062 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
5063 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
5064 echo "configure:5076: checking for X11/xpm.h" >&5
5065 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5066 echo $ac_n "(cached) $ac_c" 1>&6
5068 cat > conftest.$ac_ext <<EOF
5069 #line 5081 "configure"
5070 #include "confdefs.h"
5071 #include <X11/xpm.h>
5073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5074 { (eval echo configure:5086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5075 ac_err=`grep -v '^ *+' conftest.out`
5076 if test -z "$ac_err"; then
5078 eval "ac_cv_header_$ac_safe=yes"
5081 echo "configure: failed program was:" >&5
5082 cat conftest.$ac_ext >&5
5084 eval "ac_cv_header_$ac_safe=no"
5088 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5089 echo "$ac_t""yes" 1>&6
5091 cat >> confdefs.h <<\EOF
5097 echo "$ac_t""no" 1>&6
5100 CPPFLAGS="$ac_save_CPPFLAGS"
5101 elif test "$with_xpm" != no; then
5102 echo "error: must be yes or no: --with-xpm=$with_xpm"
5107 # check for the GL header
5111 with_gl_req=unspecified
5112 # Check whether --with-gl or --without-gl was given.
5113 if test "${with_gl+set}" = set; then
5115 with_gl="$withval"; with_gl_req="$withval"
5127 echo $ac_n "checking for GL headers""... $ac_c" 1>&6
5128 echo "configure:5140: checking for GL headers" >&5
5131 X_CFLAGS="-I$d $X_CFLAGS"
5132 echo "$ac_t""$d" 1>&6
5134 echo "$ac_t""not found ($d: no such directory)" 1>&6
5137 echo $ac_n "checking for GL libs""... $ac_c" 1>&6
5138 echo "configure:5150: checking for GL libs" >&5
5141 X_LIBS="-L$d $X_LIBS"
5142 echo "$ac_t""$d" 1>&6
5144 echo "$ac_t""not found ($d: no such directory)" 1>&6
5147 # replace the directory string with "yes".
5149 with_gl=$with_gl_req
5154 echo "error: argument to --with-gl must be \"yes\", \"no\", or a directory."
5155 echo " If it is a directory, then \`DIR/include' will be added to"
5156 echo " the -I list, and \`DIR/lib' will be added to the -L list."
5161 # why is this necessary?
5162 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
5163 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
5167 ac_mesagl_version=unknown
5168 ac_mesagl_version_string=unknown
5170 if test "$with_gl" = yes; then
5172 ac_save_CPPFLAGS="$CPPFLAGS"
5173 if test \! -z "$includedir" ; then
5174 CPPFLAGS="$CPPFLAGS -I$includedir"
5176 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5177 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
5178 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
5179 echo "configure:5191: checking for GL/gl.h" >&5
5180 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5181 echo $ac_n "(cached) $ac_c" 1>&6
5183 cat > conftest.$ac_ext <<EOF
5184 #line 5196 "configure"
5185 #include "confdefs.h"
5188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5189 { (eval echo configure:5201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5190 ac_err=`grep -v '^ *+' conftest.out`
5191 if test -z "$ac_err"; then
5193 eval "ac_cv_header_$ac_safe=yes"
5196 echo "configure: failed program was:" >&5
5197 cat conftest.$ac_ext >&5
5199 eval "ac_cv_header_$ac_safe=no"
5203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5204 echo "$ac_t""yes" 1>&6
5207 echo "$ac_t""no" 1>&6
5210 CPPFLAGS="$ac_save_CPPFLAGS"
5211 if test "$have_gl" = yes ; then
5213 ac_save_CPPFLAGS="$CPPFLAGS"
5214 if test \! -z "$includedir" ; then
5215 CPPFLAGS="$CPPFLAGS -I$includedir"
5217 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5218 ac_safe=`echo "GL/glx.h" | sed 'y%./+-%__p_%'`
5219 echo $ac_n "checking for GL/glx.h""... $ac_c" 1>&6
5220 echo "configure:5232: checking for GL/glx.h" >&5
5221 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5222 echo $ac_n "(cached) $ac_c" 1>&6
5224 cat > conftest.$ac_ext <<EOF
5225 #line 5237 "configure"
5226 #include "confdefs.h"
5229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5230 { (eval echo configure:5242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5231 ac_err=`grep -v '^ *+' conftest.out`
5232 if test -z "$ac_err"; then
5234 eval "ac_cv_header_$ac_safe=yes"
5237 echo "configure: failed program was:" >&5
5238 cat conftest.$ac_ext >&5
5240 eval "ac_cv_header_$ac_safe=no"
5244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5245 echo "$ac_t""yes" 1>&6
5248 echo "$ac_t""no" 1>&6
5251 CPPFLAGS="$ac_save_CPPFLAGS"
5254 # If we have the headers, try and figure out which vendor it's from.
5256 if test "$have_gl" = yes ; then
5258 cat >> confdefs.h <<\EOF
5263 # We need to know whether it's MesaGL so that we know which libraries
5266 echo $ac_n "checking whether GL is really MesaGL""... $ac_c" 1>&6
5267 echo "configure:5279: checking whether GL is really MesaGL" >&5
5268 if eval "test \"`echo '$''{'ac_cv_have_mesa_gl'+set}'`\" = set"; then
5269 echo $ac_n "(cached) $ac_c" 1>&6
5271 ac_cv_have_mesa_gl=no
5273 ac_save_CPPFLAGS="$CPPFLAGS"
5274 if test \! -z "$includedir" ; then
5275 CPPFLAGS="$CPPFLAGS -I$includedir"
5277 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5278 cat > conftest.$ac_ext <<EOF
5279 #line 5291 "configure"
5280 #include "confdefs.h"
5283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5284 egrep "Mesa" >/dev/null 2>&1; then
5286 ac_cv_have_mesa_gl=yes
5290 CPPFLAGS="$ac_save_CPPFLAGS"
5294 ac_have_mesa_gl=$ac_cv_have_mesa_gl
5295 echo "$ac_t""$ac_have_mesa_gl" 1>&6
5297 if test "$ac_have_mesa_gl" = no ; then
5299 GL_LIBS="-lGL -lGLU"
5301 cat >> confdefs.h <<\EOF
5302 #define HAVE_MESA_GL 1
5306 GL_LIBS="-lMesaGL -lMesaGLU"
5310 # If it's MesaGL, we'd like to issue a warning if the version number
5311 # is less than or equal to 2.6, because that version had a security bug.
5313 if test "$ac_have_mesa_gl" = yes; then
5315 # don't cache these.
5316 unset ac_cv_mesagl_version
5317 unset ac_cv_mesagl_version_string
5319 echo $ac_n "checking MesaGL version number""... $ac_c" 1>&6
5320 echo "configure:5332: checking MesaGL version number" >&5
5321 if eval "test \"`echo '$''{'ac_cv_mesagl_version_string'+set}'`\" = set"; then
5322 echo $ac_n "(cached) $ac_c" 1>&6
5324 cat > conftest.$ac_ext <<EOF
5325 #line 5337 "configure"
5326 #include "confdefs.h"
5328 #configure: MESA_MAJOR_VERSION MESA_MINOR_VERSION
5331 ac_save_CPPFLAGS="$CPPFLAGS"
5332 if test \! -z "$includedir" ; then
5333 CPPFLAGS="$CPPFLAGS -I$includedir"
5335 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5337 mglv=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 | sed -n \
5338 's/^#configure:.*\([0-9][0-9]*\).*\([0-9][0-9]*\).*$/\1.\2/p'`
5339 rm -f conftest.$ac_ext
5341 CPPFLAGS="$ac_save_CPPFLAGS"
5343 if test "$mglv" = ""; then
5344 ac_mesagl_version=unknown
5345 ac_mesagl_version_string=unknown
5347 ac_mesagl_version_string=$mglv
5348 maj=`echo $mglv | sed -n 's/\..*//p'`
5349 min=`echo $mglv | sed -n 's/.*\.//p'`
5350 ac_mesagl_version=`echo "$maj * 1000 + $min" | bc`
5351 if test -z "$ac_mesagl_version"; then
5352 ac_mesagl_version=unknown
5353 ac_mesagl_version_string=unknown
5356 ac_cv_mesagl_version=$ac_mesagl_version
5357 ac_cv_mesagl_version_string=$ac_mesagl_version_string
5361 ac_mesagl_version=$ac_cv_mesagl_version
5362 ac_mesagl_version_string=$ac_cv_mesagl_version_string
5363 echo "$ac_t""$ac_cv_mesagl_version_string" 1>&6
5367 # Check for OpenGL 1.1 features.
5370 ac_save_CPPFLAGS="$CPPFLAGS"
5371 ac_save_LDFLAGS="$LDFLAGS"
5373 if test \! -z "$includedir" ; then
5374 CPPFLAGS="$CPPFLAGS -I$includedir"
5376 # note: $X_CFLAGS includes $x_includes
5377 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5379 if test \! -z "$libdir" ; then
5380 LDFLAGS="$LDFLAGS -L$libdir"
5382 # note: $X_LIBS includes $x_libraries
5383 LDFLAGS="$LDFLAGS $X_LIBS"
5385 echo $ac_n "checking for glBindTexture in -l$gl_lib_1""... $ac_c" 1>&6
5386 echo "configure:5398: checking for glBindTexture in -l$gl_lib_1" >&5
5387 ac_lib_var=`echo $gl_lib_1'_'glBindTexture | sed 'y%./+-%__p_%'`
5388 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5389 echo $ac_n "(cached) $ac_c" 1>&6
5391 ac_save_LIBS="$LIBS"
5392 LIBS="-l$gl_lib_1 $GL_LIBS -lX11 -lXext -lm $LIBS"
5393 cat > conftest.$ac_ext <<EOF
5394 #line 5406 "configure"
5395 #include "confdefs.h"
5396 /* Override any gcc2 internal prototype to avoid an error. */
5397 /* We use char because int might match the return type of a gcc2
5398 builtin and then its argument prototype would still apply. */
5399 char glBindTexture();
5405 if { (eval echo configure:5417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5407 eval "ac_cv_lib_$ac_lib_var=yes"
5409 echo "configure: failed program was:" >&5
5410 cat conftest.$ac_ext >&5
5412 eval "ac_cv_lib_$ac_lib_var=no"
5415 LIBS="$ac_save_LIBS"
5418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5419 echo "$ac_t""yes" 1>&6
5420 cat >> confdefs.h <<\EOF
5421 #define HAVE_GLBINDTEXTURE 1
5425 echo "$ac_t""no" 1>&6
5428 CPPFLAGS="$ac_save_CPPFLAGS"
5429 LDFLAGS="$ac_save_LDFLAGS"
5433 elif test "$with_gl" != no; then
5434 echo "error: must be yes or no: --with-gl=$with_gl"
5439 # check for SGI XReadDisplay server extension header.
5442 with_readdisplay_req=unspecified
5443 # Check whether --with-readdisplay or --without-readdisplay was given.
5444 if test "${with_readdisplay+set}" = set; then
5445 withval="$with_readdisplay"
5446 with_readdisplay="$withval"; with_readdisplay_req="$withval"
5448 with_readdisplay=yes
5453 case "$with_readdisplay" in
5458 echo $ac_n "checking for XReadDisplay headers""... $ac_c" 1>&6
5459 echo "configure:5471: checking for XReadDisplay headers" >&5
5460 d=$with_readdisplay/include
5462 X_CFLAGS="-I$d $X_CFLAGS"
5463 echo "$ac_t""$d" 1>&6
5465 echo "$ac_t""not found ($d: no such directory)" 1>&6
5468 echo $ac_n "checking for XReadDisplay libs""... $ac_c" 1>&6
5469 echo "configure:5481: checking for XReadDisplay libs" >&5
5470 d=$with_readdisplay/lib
5472 X_LIBS="-L$d $X_LIBS"
5473 echo "$ac_t""$d" 1>&6
5475 echo "$ac_t""not found ($d: no such directory)" 1>&6
5478 # replace the directory string with "yes".
5479 with_readdisplay_req="yes"
5480 with_readdisplay=$with_readdisplay_req
5485 echo "error: argument to --with-readdisplay must be \"yes\", \"no\", or a directory."
5486 echo " If it is a directory, then \`DIR/include' will be added to"
5487 echo " the -I list, and \`DIR/lib' will be added to the -L list."
5492 # why is this necessary?
5493 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
5494 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
5498 if test "$with_readdisplay" = yes; then
5500 ac_save_CPPFLAGS="$CPPFLAGS"
5501 if test \! -z "$includedir" ; then
5502 CPPFLAGS="$CPPFLAGS -I$includedir"
5504 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5505 ac_safe=`echo "X11/extensions/readdisplay.h" | sed 'y%./+-%__p_%'`
5506 echo $ac_n "checking for X11/extensions/readdisplay.h""... $ac_c" 1>&6
5507 echo "configure:5519: checking for X11/extensions/readdisplay.h" >&5
5508 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5509 echo $ac_n "(cached) $ac_c" 1>&6
5511 cat > conftest.$ac_ext <<EOF
5512 #line 5524 "configure"
5513 #include "confdefs.h"
5514 #include <X11/extensions/readdisplay.h>
5516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5517 { (eval echo configure:5529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5518 ac_err=`grep -v '^ *+' conftest.out`
5519 if test -z "$ac_err"; then
5521 eval "ac_cv_header_$ac_safe=yes"
5524 echo "configure: failed program was:" >&5
5525 cat conftest.$ac_ext >&5
5527 eval "ac_cv_header_$ac_safe=no"
5531 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5532 echo "$ac_t""yes" 1>&6
5533 cat >> confdefs.h <<\EOF
5534 #define HAVE_READ_DISPLAY_EXTENSION 1
5538 echo "$ac_t""no" 1>&6
5541 CPPFLAGS="$ac_save_CPPFLAGS"
5542 elif test "$with_readdisplay" != no; then
5543 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
5548 # check for SGI's Iris Video Library header.
5551 with_sgivideo_req=unspecified
5552 # Check whether --with-sgivideo or --without-sgivideo was given.
5553 if test "${with_sgivideo+set}" = set; then
5554 withval="$with_sgivideo"
5555 with_sgivideo="$withval"; with_sgivideo_req="$withval"
5562 case "$with_sgivideo" in
5567 echo $ac_n "checking for Iris Video headers""... $ac_c" 1>&6
5568 echo "configure:5580: checking for Iris Video headers" >&5
5569 d=$with_sgivideo/include
5571 X_CFLAGS="-I$d $X_CFLAGS"
5572 echo "$ac_t""$d" 1>&6
5574 echo "$ac_t""not found ($d: no such directory)" 1>&6
5577 echo $ac_n "checking for Iris Video libs""... $ac_c" 1>&6
5578 echo "configure:5590: checking for Iris Video libs" >&5
5579 d=$with_sgivideo/lib
5581 X_LIBS="-L$d $X_LIBS"
5582 echo "$ac_t""$d" 1>&6
5584 echo "$ac_t""not found ($d: no such directory)" 1>&6
5587 # replace the directory string with "yes".
5588 with_sgivideo_req="yes"
5589 with_sgivideo=$with_sgivideo_req
5594 echo "error: argument to --with-sgivideo must be \"yes\", \"no\", or a directory."
5595 echo " If it is a directory, then \`DIR/include' will be added to"
5596 echo " the -I list, and \`DIR/lib' will be added to the -L list."
5601 # why is this necessary?
5602 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
5603 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
5607 if test "$with_sgivideo" = yes; then
5609 ac_save_CPPFLAGS="$CPPFLAGS"
5610 if test \! -z "$includedir" ; then
5611 CPPFLAGS="$CPPFLAGS -I$includedir"
5613 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5614 ac_safe=`echo "dmedia/vl.h" | sed 'y%./+-%__p_%'`
5615 echo $ac_n "checking for dmedia/vl.h""... $ac_c" 1>&6
5616 echo "configure:5628: checking for dmedia/vl.h" >&5
5617 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5618 echo $ac_n "(cached) $ac_c" 1>&6
5620 cat > conftest.$ac_ext <<EOF
5621 #line 5633 "configure"
5622 #include "confdefs.h"
5623 #include <dmedia/vl.h>
5625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5626 { (eval echo configure:5638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5627 ac_err=`grep -v '^ *+' conftest.out`
5628 if test -z "$ac_err"; then
5630 eval "ac_cv_header_$ac_safe=yes"
5633 echo "configure: failed program was:" >&5
5634 cat conftest.$ac_ext >&5
5636 eval "ac_cv_header_$ac_safe=no"
5640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5641 echo "$ac_t""yes" 1>&6
5644 echo "$ac_t""no" 1>&6
5647 CPPFLAGS="$ac_save_CPPFLAGS"
5648 if test "$have_sgivideo" = yes; then
5650 echo $ac_n "checking for vlOpenVideo in -lvl""... $ac_c" 1>&6
5651 echo "configure:5663: checking for vlOpenVideo in -lvl" >&5
5652 ac_lib_var=`echo vl'_'vlOpenVideo | sed 'y%./+-%__p_%'`
5653 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5654 echo $ac_n "(cached) $ac_c" 1>&6
5656 ac_save_LIBS="$LIBS"
5658 cat > conftest.$ac_ext <<EOF
5659 #line 5671 "configure"
5660 #include "confdefs.h"
5661 /* Override any gcc2 internal prototype to avoid an error. */
5662 /* We use char because int might match the return type of a gcc2
5663 builtin and then its argument prototype would still apply. */
5670 if { (eval echo configure:5682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5672 eval "ac_cv_lib_$ac_lib_var=yes"
5674 echo "configure: failed program was:" >&5
5675 cat conftest.$ac_ext >&5
5677 eval "ac_cv_lib_$ac_lib_var=no"
5680 LIBS="$ac_save_LIBS"
5683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5684 echo "$ac_t""yes" 1>&6
5687 echo "$ac_t""no" 1>&6
5690 if test "$have_sgivideo" = yes; then
5691 SGI_VIDEO_OBJS="$(UTILS_BIN)/sgivideo.o"
5692 SGI_VIDEO_LIBS="-lvl"
5693 cat >> confdefs.h <<\EOF
5694 #define HAVE_SGI_VIDEO 1
5699 elif test "$with_sgivideo" != no; then
5700 echo "error: must be yes or no: --with-sgivideo=$with_sgivideo"
5706 # Try to find a program to generate random text.
5708 # Zippy is funnier than the idiocy generally spat out by `fortune',
5709 # so try to find that, by invoking Emacs and asking it where its
5710 # libexec directory is ("yow" lives in there.)
5712 # If that doesn't work, see if fortune, zippy, or yow are on $PATH,
5713 # and if so, use them.
5715 # If that doesn't work, look in /usr/games, and if it's there, use
5716 # the full pathname.
5719 # Check whether --with-zippy or --without-zippy was given.
5720 if test "${with_zippy+set}" = set; then
5721 withval="$with_zippy"
5722 with_zippy_req="$withval"; with_zippy="$withval"
5724 with_zippy_req="$withval"; with_zippy="$withval"
5728 if test "$with_zippy" = no || test "$with_zippy" = yes ; then
5733 if test -n "$with_zippy_req" ; then
5734 ac_cv_zippy_program=""
5735 case "$with_zippy_req" in
5737 echo $ac_n "checking for $with_zippy_req""... $ac_c" 1>&6
5738 echo "configure:5750: checking for $with_zippy_req" >&5
5739 if test -x "$with_zippy_req" ; then
5740 echo "$ac_t""yes" 1>&6
5742 echo "$ac_t""no" 1>&6
5748 unset ac_cv_path_zip2
5749 # Extract the first word of "$with_zippy_req", so it can be a program name with args.
5750 set dummy $with_zippy_req; ac_word=$2
5751 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5752 echo "configure:5764: checking for $ac_word" >&5
5753 if eval "test \"`echo '$''{'ac_cv_path_zip2'+set}'`\" = set"; then
5754 echo $ac_n "(cached) $ac_c" 1>&6
5758 ac_cv_path_zip2="$zip2" # Let the user override the test with a path.
5761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5762 for ac_dir in $PATH; do
5763 test -z "$ac_dir" && ac_dir=.
5764 if test -f $ac_dir/$ac_word; then
5765 ac_cv_path_zip2="$ac_dir/$ac_word"
5773 zip2="$ac_cv_path_zip2"
5774 if test -n "$zip2"; then
5775 echo "$ac_t""$zip2" 1>&6
5777 echo "$ac_t""no" 1>&6
5780 if test "$zip2" = ""; then
5785 ac_cv_zippy_program="$with_zippy"
5787 elif test -n "$ac_cv_zippy_program"; then
5788 echo "$ac_t""checking for zippy... (cached) $ac_cv_zippy_program" 1>&6
5791 if test ! -n "$ac_cv_zippy_program"; then
5793 for ac_prog in emacs
5795 # Extract the first word of "$ac_prog", so it can be a program name with args.
5796 set dummy $ac_prog; ac_word=$2
5797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5798 echo "configure:5810: checking for $ac_word" >&5
5799 if eval "test \"`echo '$''{'ac_cv_prog_emacs_exe'+set}'`\" = set"; then
5800 echo $ac_n "(cached) $ac_c" 1>&6
5802 if test -n "$emacs_exe"; then
5803 ac_cv_prog_emacs_exe="$emacs_exe" # Let the user override the test.
5805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5806 for ac_dir in $PATH; do
5807 test -z "$ac_dir" && ac_dir=.
5808 if test -f $ac_dir/$ac_word; then
5809 ac_cv_prog_emacs_exe="$ac_prog"
5816 emacs_exe="$ac_cv_prog_emacs_exe"
5817 if test -n "$emacs_exe"; then
5818 echo "$ac_t""$emacs_exe" 1>&6
5820 echo "$ac_t""no" 1>&6
5823 test -n "$emacs_exe" && break
5826 for ac_prog in xemacs
5828 # Extract the first word of "$ac_prog", so it can be a program name with args.
5829 set dummy $ac_prog; ac_word=$2
5830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5831 echo "configure:5843: checking for $ac_word" >&5
5832 if eval "test \"`echo '$''{'ac_cv_prog_xemacs_exe'+set}'`\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5835 if test -n "$xemacs_exe"; then
5836 ac_cv_prog_xemacs_exe="$xemacs_exe" # Let the user override the test.
5838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5839 for ac_dir in $PATH; do
5840 test -z "$ac_dir" && ac_dir=.
5841 if test -f $ac_dir/$ac_word; then
5842 ac_cv_prog_xemacs_exe="$ac_prog"
5849 xemacs_exe="$ac_cv_prog_xemacs_exe"
5850 if test -n "$xemacs_exe"; then
5851 echo "$ac_t""$xemacs_exe" 1>&6
5853 echo "$ac_t""no" 1>&6
5856 test -n "$xemacs_exe" && break
5860 ac_cv_zippy_program=""
5861 eargs='-batch -q -nw --eval'
5863 if test -n "$emacs_exe" ; then
5864 echo $ac_n "checking for emacs yow""... $ac_c" 1>&6
5865 echo "configure:5877: checking for emacs yow" >&5
5867 # get emacs to tell us where the libexec directory is.
5869 dir=`$emacs_exe $eargs '(princ (concat exec-directory "\n"))' \
5870 2>/dev/null | tail -1`
5871 dir=`echo "$dir" | sed 's@///*@/@g;s@/$@@'`
5873 # try running libexec/yow and see if it exits without error.
5875 if test x"$dir" != x -a -x "$dir/yow" ; then
5876 if $dir/yow >&- 2>&- ; then
5877 ac_cv_zippy_program="$dir/yow"
5878 echo "$ac_t""$ac_cv_zippy_program" 1>&6
5880 echo "$ac_t""no" 1>&6
5885 if test -z "$ac_cv_zippy_program" ; then
5886 echo $ac_n "checking for xemacs yow""... $ac_c" 1>&6
5887 echo "configure:5899: checking for xemacs yow" >&5
5888 if test -n "$xemacs_exe" ; then
5890 # get xemacs to tell us where the libexec directory is.
5892 dir=`$xemacs_exe $eargs '(princ (concat exec-directory "\n"))' \
5893 2>/dev/null | tail -1`
5894 dir=`echo "$dir" | sed 's@///*@/@g;s@/$@@'`
5896 # try running libexec/yow and see if it exits without error.
5898 if test x"$dir" != x -a -x "$dir/yow" ; then
5899 if $dir/yow >&- 2>&- ; then
5900 ac_cv_zippy_program="$dir/yow"
5901 echo "$ac_t""$ac_cv_zippy_program" 1>&6
5904 # in some xemacs installations, the pathname of the yow.lines file
5905 # isn't hardcoded into the yow executable, and must be passed on
5906 # the command line. See if it's in libexec/../etc/.
5910 dir_up=`echo "$dir" | sed 's@/[^/]*$@@'`
5913 yow="yow -f $dir_up/etc/yow.lines"
5914 if $dir/$yow >&- 2>&- ; then
5915 ac_cv_zippy_program="$dir/$yow"
5916 echo "$ac_t""$ac_cv_zippy_program" 1>&6
5918 echo "$ac_t""no" 1>&6
5925 # if that didn't work, try for some other programs...
5926 if test -z "$ac_cv_zippy_program" ; then
5928 for ac_prog in fortune zippy yow
5930 # Extract the first word of "$ac_prog", so it can be a program name with args.
5931 set dummy $ac_prog; ac_word=$2
5932 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5933 echo "configure:5945: checking for $ac_word" >&5
5934 if eval "test \"`echo '$''{'ac_cv_prog_fortune'+set}'`\" = set"; then
5935 echo $ac_n "(cached) $ac_c" 1>&6
5937 if test -n "$fortune"; then
5938 ac_cv_prog_fortune="$fortune" # Let the user override the test.
5940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5941 for ac_dir in $PATH; do
5942 test -z "$ac_dir" && ac_dir=.
5943 if test -f $ac_dir/$ac_word; then
5944 ac_cv_prog_fortune="$ac_prog"
5951 fortune="$ac_cv_prog_fortune"
5952 if test -n "$fortune"; then
5953 echo "$ac_t""$fortune" 1>&6
5955 echo "$ac_t""no" 1>&6
5958 test -n "$fortune" && break
5961 # if that didn't work, try for those programs in /usr/games...
5962 if test -z "$fortune" ; then
5963 for ac_prog in fortune zippy yow
5965 # Extract the first word of "$ac_prog", so it can be a program name with args.
5966 set dummy $ac_prog; ac_word=$2
5967 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5968 echo "configure:5980: checking for $ac_word" >&5
5969 if eval "test \"`echo '$''{'ac_cv_path_fortune'+set}'`\" = set"; then
5970 echo $ac_n "(cached) $ac_c" 1>&6
5974 ac_cv_path_fortune="$fortune" # Let the user override the test with a path.
5977 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5978 for ac_dir in /usr/games:/usr/local/games$ac_dummy; do
5979 test -z "$ac_dir" && ac_dir=.
5980 if test -f $ac_dir/$ac_word; then
5981 ac_cv_path_fortune="$ac_dir/$ac_word"
5989 fortune="$ac_cv_path_fortune"
5990 if test -n "$fortune"; then
5991 echo "$ac_t""$fortune" 1>&6
5993 echo "$ac_t""no" 1>&6
5996 test -n "$fortune" && break
5998 test -n "$fortune" || fortune="fortune"
6004 if test -z "$ac_cv_zippy_program" ; then
6005 ac_cv_zippy_program=fortune
6008 cat >> confdefs.h <<EOF
6009 #define ZIPPY_PROGRAM "$ac_cv_zippy_program"
6016 # Allow locking to be disabled at compile-time.
6019 with_kerberos_req=unspecified
6021 with_shadow_req=unspecified
6024 # Check whether --enable-locking or --disable-locking was given.
6025 if test "${enable_locking+set}" = set; then
6026 enableval="$enable_locking"
6027 enable_locking="$enableval"
6032 if test "$enable_locking" = yes; then
6034 elif test "$enable_locking" = no; then
6035 cat >> confdefs.h <<\EOF
6036 #define NO_LOCKING 1
6040 echo "error: must be yes or no: --enable-locking=$enable_locking"
6046 # Check to see if we can lock Virtual-Terminal switching, but allow that
6047 # to be disabled at compile-time.
6050 # Check whether --enable-vt-locking or --disable-vt-locking was given.
6051 if test "${enable_vt_locking+set}" = set; then
6052 enableval="$enable_vt_locking"
6053 enable_vt_locking="$enableval"
6055 enable_vt_locking=yes
6058 if test "$enable_vt_locking" = yes; then
6060 echo $ac_n "checking for the VT_LOCKSWITCH ioctl""... $ac_c" 1>&6
6061 echo "configure:6073: checking for the VT_LOCKSWITCH ioctl" >&5
6062 if eval "test \"`echo '$''{'ac_cv_vt_lockswitch'+set}'`\" = set"; then
6063 echo $ac_n "(cached) $ac_c" 1>&6
6065 cat > conftest.$ac_ext <<EOF
6066 #line 6078 "configure"
6067 #include "confdefs.h"
6069 #include <sys/ioctl.h>
6072 int x = VT_LOCKSWITCH; int y = VT_UNLOCKSWITCH;
6075 if { (eval echo configure:6087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6077 ac_cv_vt_lockswitch=yes
6079 echo "configure: failed program was:" >&5
6080 cat conftest.$ac_ext >&5
6082 ac_cv_vt_lockswitch=no
6087 ac_vt_lockswitch=$ac_cv_vt_lockswitch
6088 echo "$ac_t""$ac_vt_lockswitch" 1>&6
6090 elif test "$enable_locking" = no; then
6093 echo "error: must be yes or no: --enable-vt-locking=$enable_vt_locking"
6097 if test "$ac_vt_lockswitch" = yes; then
6098 cat >> confdefs.h <<\EOF
6099 #define HAVE_VT_LOCKSWITCH 1
6102 # the VT_LOCKSWITCH ioctl can only be used when running as root.
6103 # #### but it doesn't work yet, so don't worry about that for now.
6109 if test "$enable_locking" = yes; then
6111 # Check for Kerberos.
6113 # Check whether --with-kerberos or --without-kerberos was given.
6114 if test "${with_kerberos+set}" = set; then
6115 withval="$with_kerberos"
6116 with_kerberos="$withval"; with_kerberos_req="$withval"
6123 case "$with_kerberos" in
6128 echo $ac_n "checking for Kerberos headers""... $ac_c" 1>&6
6129 echo "configure:6141: checking for Kerberos headers" >&5
6130 d=$with_kerberos/include
6132 X_CFLAGS="-I$d $X_CFLAGS"
6133 echo "$ac_t""$d" 1>&6
6135 echo "$ac_t""not found ($d: no such directory)" 1>&6
6138 echo $ac_n "checking for Kerberos libs""... $ac_c" 1>&6
6139 echo "configure:6151: checking for Kerberos libs" >&5
6140 d=$with_kerberos/lib
6142 X_LIBS="-L$d $X_LIBS"
6143 echo "$ac_t""$d" 1>&6
6145 echo "$ac_t""not found ($d: no such directory)" 1>&6
6148 # replace the directory string with "yes".
6149 with_kerberos_req="yes"
6150 with_kerberos=$with_kerberos_req
6155 echo "error: argument to --with-kerberos must be \"yes\", \"no\", or a directory."
6156 echo " If it is a directory, then \`DIR/include' will be added to"
6157 echo " the -I list, and \`DIR/lib' will be added to the -L list."
6162 # why is this necessary?
6163 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
6164 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
6168 if test "$with_kerberos" = yes; then
6169 echo $ac_n "checking for Kerberos""... $ac_c" 1>&6
6170 echo "configure:6182: checking for Kerberos" >&5
6171 if eval "test \"`echo '$''{'ac_cv_kerberos'+set}'`\" = set"; then
6172 echo $ac_n "(cached) $ac_c" 1>&6
6175 ac_save_CPPFLAGS="$CPPFLAGS"
6176 if test \! -z "$includedir" ; then
6177 CPPFLAGS="$CPPFLAGS -I$includedir"
6179 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6180 cat > conftest.$ac_ext <<EOF
6181 #line 6193 "configure"
6182 #include "confdefs.h"
6188 if { (eval echo configure:6200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6192 echo "configure: failed program was:" >&5
6193 cat conftest.$ac_ext >&5
6198 CPPFLAGS="$ac_save_CPPFLAGS"
6201 echo "$ac_t""$ac_cv_kerberos" 1>&6
6202 if test "$ac_cv_kerberos" = yes ; then
6204 cat >> confdefs.h <<\EOF
6205 #define HAVE_KERBEROS 1
6209 # from Tim Showalter <tjs+@andrew.cmu.edu>
6210 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes"
6211 echo $ac_n "checking for res_search""... $ac_c" 1>&6
6212 echo "configure:6224: checking for res_search" >&5
6213 if eval "test \"`echo '$''{'ac_cv_func_res_search'+set}'`\" = set"; then
6214 echo $ac_n "(cached) $ac_c" 1>&6
6216 cat > conftest.$ac_ext <<EOF
6217 #line 6229 "configure"
6218 #include "confdefs.h"
6219 /* System header to define __stub macros and hopefully few prototypes,
6220 which can conflict with char res_search(); below. */
6222 /* Override any gcc2 internal prototype to avoid an error. */
6223 /* We use char because int might match the return type of a gcc2
6224 builtin and then its argument prototype would still apply. */
6229 /* The GNU C library defines this for functions which it implements
6230 to always fail with ENOSYS. Some functions are actually named
6231 something starting with __ and the normal name is an alias. */
6232 #if defined (__stub_res_search) || defined (__stub___res_search)
6240 if { (eval echo configure:6252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6242 eval "ac_cv_func_res_search=yes"
6244 echo "configure: failed program was:" >&5
6245 cat conftest.$ac_ext >&5
6247 eval "ac_cv_func_res_search=no"
6252 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
6253 echo "$ac_t""yes" 1>&6
6256 echo "$ac_t""no" 1>&6
6257 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
6258 echo "configure:6270: checking for res_search in -lresolv" >&5
6259 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-%__p_%'`
6260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6261 echo $ac_n "(cached) $ac_c" 1>&6
6263 ac_save_LIBS="$LIBS"
6264 LIBS="-lresolv $LIBS"
6265 cat > conftest.$ac_ext <<EOF
6266 #line 6278 "configure"
6267 #include "confdefs.h"
6268 /* Override any gcc2 internal prototype to avoid an error. */
6269 /* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */
6277 if { (eval echo configure:6289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6279 eval "ac_cv_lib_$ac_lib_var=yes"
6281 echo "configure: failed program was:" >&5
6282 cat conftest.$ac_ext >&5
6284 eval "ac_cv_lib_$ac_lib_var=no"
6287 LIBS="$ac_save_LIBS"
6290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6291 echo "$ac_t""yes" 1>&6
6292 PASSWD_LIBS="${PASSWD_LIBS} -lresolv"
6294 echo "$ac_t""no" 1>&6
6295 echo "configure: warning: Can't find DNS resolver libraries needed for Kerberos" 1>&2
6303 elif test "$with_kerberos" != no; then
6304 echo "error: must be yes or no: --with-kerberos=$with_kerberos"
6308 # Next, check for the nine billion variants of shadow passwords...
6310 passwd_cruft_done=no
6311 # Check whether --with-shadow or --without-shadow was given.
6312 if test "${with_shadow+set}" = set; then
6313 withval="$with_shadow"
6314 with_shadow="$withval"; with_shadow_req="$withval"
6321 case "$with_shadow" in
6326 echo $ac_n "checking for shadow password headers""... $ac_c" 1>&6
6327 echo "configure:6339: checking for shadow password headers" >&5
6328 d=$with_shadow/include
6330 X_CFLAGS="-I$d $X_CFLAGS"
6331 echo "$ac_t""$d" 1>&6
6333 echo "$ac_t""not found ($d: no such directory)" 1>&6
6336 echo $ac_n "checking for shadow password libs""... $ac_c" 1>&6
6337 echo "configure:6349: checking for shadow password libs" >&5
6340 X_LIBS="-L$d $X_LIBS"
6341 echo "$ac_t""$d" 1>&6
6343 echo "$ac_t""not found ($d: no such directory)" 1>&6
6346 # replace the directory string with "yes".
6347 with_shadow_req="yes"
6348 with_shadow=$with_shadow_req
6353 echo "error: argument to --with-shadow must be \"yes\", \"no\", or a directory."
6354 echo " If it is a directory, then \`DIR/include' will be added to"
6355 echo " the -I list, and \`DIR/lib' will be added to the -L list."
6360 # why is this necessary?
6361 # if we don't do this, then "./configure --with-motif=/usr/local/lesstif"
6362 # behaves as if "--with-zippy=/usr/local/lesstif" was also present!
6366 if test "$with_shadow" = no; then
6367 passwd_cruft_done=yes
6368 elif test "$with_shadow" != yes; then
6369 echo "error: must be yes or no: --with-shadow=$with_shadow"
6374 # Sun's "adjunct" passwords.
6376 if test "$passwd_cruft_done" = no ; then
6377 echo $ac_n "checking for Sun-style shadow passwords""... $ac_c" 1>&6
6378 echo "configure:6390: checking for Sun-style shadow passwords" >&5
6379 if eval "test \"`echo '$''{'ac_cv_sun_adjunct'+set}'`\" = set"; then
6380 echo $ac_n "(cached) $ac_c" 1>&6
6383 ac_save_CPPFLAGS="$CPPFLAGS"
6384 if test \! -z "$includedir" ; then
6385 CPPFLAGS="$CPPFLAGS -I$includedir"
6387 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6388 cat > conftest.$ac_ext <<EOF
6389 #line 6401 "configure"
6390 #include "confdefs.h"
6393 #include <sys/types.h>
6394 #include <sys/label.h>
6395 #include <sys/audit.h>
6398 struct passwd_adjunct *p = getpwanam("nobody");
6399 const char *pw = p->pwa_passwd;
6402 if { (eval echo configure:6414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6404 ac_cv_sun_adjunct=yes
6406 echo "configure: failed program was:" >&5
6407 cat conftest.$ac_ext >&5
6409 ac_cv_sun_adjunct=no
6412 CPPFLAGS="$ac_save_CPPFLAGS"
6415 echo "$ac_t""$ac_cv_sun_adjunct" 1>&6
6416 if test "$ac_cv_sun_adjunct" = yes; then
6419 passwd_cruft_done=yes
6420 cat >> confdefs.h <<\EOF
6421 #define HAVE_ADJUNCT_PASSWD 1
6427 # DEC and SCO so-called "enhanced" security.
6429 if test "$passwd_cruft_done" = no ; then
6430 echo $ac_n "checking for DEC-style shadow passwords""... $ac_c" 1>&6
6431 echo "configure:6443: checking for DEC-style shadow passwords" >&5
6432 if eval "test \"`echo '$''{'ac_cv_enhanced_passwd'+set}'`\" = set"; then
6433 echo $ac_n "(cached) $ac_c" 1>&6
6436 ac_save_CPPFLAGS="$CPPFLAGS"
6437 if test \! -z "$includedir" ; then
6438 CPPFLAGS="$CPPFLAGS -I$includedir"
6440 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6441 cat > conftest.$ac_ext <<EOF
6442 #line 6454 "configure"
6443 #include "confdefs.h"
6446 #include <sys/types.h>
6448 #include <sys/security.h>
6451 struct pr_passwd *p;
6453 set_auth_parameters(0, 0);
6454 check_auth_parameters();
6455 p = getprpwnam("nobody");
6456 pw = p->ufld.fd_encrypt;
6459 if { (eval echo configure:6471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6461 ac_cv_enhanced_passwd=yes
6463 echo "configure: failed program was:" >&5
6464 cat conftest.$ac_ext >&5
6466 ac_cv_enhanced_passwd=no
6469 CPPFLAGS="$ac_save_CPPFLAGS"
6472 echo "$ac_t""$ac_cv_enhanced_passwd" 1>&6
6473 if test $ac_cv_enhanced_passwd = yes; then
6476 passwd_cruft_done=yes
6477 cat >> confdefs.h <<\EOF
6478 #define HAVE_ENHANCED_PASSWD 1
6482 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
6483 # (I'm told it needs -lcurses too, but I don't understand why.)
6484 echo $ac_n "checking for getprpwnam in -lprot""... $ac_c" 1>&6
6485 echo "configure:6497: checking for getprpwnam in -lprot" >&5
6486 ac_lib_var=`echo prot'_'getprpwnam | sed 'y%./+-%__p_%'`
6487 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6488 echo $ac_n "(cached) $ac_c" 1>&6
6490 ac_save_LIBS="$LIBS"
6491 LIBS="-lprot -lx $LIBS"
6492 cat > conftest.$ac_ext <<EOF
6493 #line 6505 "configure"
6494 #include "confdefs.h"
6495 /* Override any gcc2 internal prototype to avoid an error. */
6496 /* We use char because int might match the return type of a gcc2
6497 builtin and then its argument prototype would still apply. */
6504 if { (eval echo configure:6516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6506 eval "ac_cv_lib_$ac_lib_var=yes"
6508 echo "configure: failed program was:" >&5
6509 cat conftest.$ac_ext >&5
6511 eval "ac_cv_lib_$ac_lib_var=no"
6514 LIBS="$ac_save_LIBS"
6517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6518 echo "$ac_t""yes" 1>&6
6519 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
6521 echo "$ac_t""no" 1>&6
6522 # On DEC, getprpwnam() is in -lsecurity
6523 echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
6524 echo "configure:6536: checking for getprpwnam in -lsecurity" >&5
6525 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
6526 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6527 echo $ac_n "(cached) $ac_c" 1>&6
6529 ac_save_LIBS="$LIBS"
6530 LIBS="-lsecurity $LIBS"
6531 cat > conftest.$ac_ext <<EOF
6532 #line 6544 "configure"
6533 #include "confdefs.h"
6534 /* Override any gcc2 internal prototype to avoid an error. */
6535 /* We use char because int might match the return type of a gcc2
6536 builtin and then its argument prototype would still apply. */
6543 if { (eval echo configure:6555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6545 eval "ac_cv_lib_$ac_lib_var=yes"
6547 echo "configure: failed program was:" >&5
6548 cat conftest.$ac_ext >&5
6550 eval "ac_cv_lib_$ac_lib_var=no"
6553 LIBS="$ac_save_LIBS"
6556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6557 echo "$ac_t""yes" 1>&6
6558 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
6560 echo "$ac_t""no" 1>&6
6568 # HP's entry in the "Not Invented Here" Sweepstakes.
6570 if test "$passwd_cruft_done" = no ; then
6571 echo $ac_n "checking for HP-style shadow passwords""... $ac_c" 1>&6
6572 echo "configure:6584: checking for HP-style shadow passwords" >&5
6573 if eval "test \"`echo '$''{'ac_cv_hpux_passwd'+set}'`\" = set"; then
6574 echo $ac_n "(cached) $ac_c" 1>&6
6577 ac_save_CPPFLAGS="$CPPFLAGS"
6578 if test \! -z "$includedir" ; then
6579 CPPFLAGS="$CPPFLAGS -I$includedir"
6581 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6582 cat > conftest.$ac_ext <<EOF
6583 #line 6595 "configure"
6584 #include "confdefs.h"
6587 #include <sys/types.h>
6589 #include <hpsecurity.h>
6592 struct s_passwd *p = getspwnam("nobody");
6593 const char *pw = p->pw_passwd;
6596 if { (eval echo configure:6608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6598 ac_cv_hpux_passwd=yes
6600 echo "configure: failed program was:" >&5
6601 cat conftest.$ac_ext >&5
6603 ac_cv_hpux_passwd=no
6606 CPPFLAGS="$ac_save_CPPFLAGS"
6609 echo "$ac_t""$ac_cv_hpux_passwd" 1>&6
6610 if test "$ac_cv_hpux_passwd" = yes; then
6613 passwd_cruft_done=yes
6614 cat >> confdefs.h <<\EOF
6615 #define HAVE_HPUX_PASSWD 1
6619 # on HPUX, bigcrypt is in -lsec
6620 echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
6621 echo "configure:6633: checking for bigcrypt in -lsec" >&5
6622 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
6623 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6624 echo $ac_n "(cached) $ac_c" 1>&6
6626 ac_save_LIBS="$LIBS"
6628 cat > conftest.$ac_ext <<EOF
6629 #line 6641 "configure"
6630 #include "confdefs.h"
6631 /* Override any gcc2 internal prototype to avoid an error. */
6632 /* We use char because int might match the return type of a gcc2
6633 builtin and then its argument prototype would still apply. */
6640 if { (eval echo configure:6652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6642 eval "ac_cv_lib_$ac_lib_var=yes"
6644 echo "configure: failed program was:" >&5
6645 cat conftest.$ac_ext >&5
6647 eval "ac_cv_lib_$ac_lib_var=no"
6650 LIBS="$ac_save_LIBS"
6653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6654 echo "$ac_t""yes" 1>&6
6655 PASSWD_LIBS="$PASSWD_LIBS -lsec"
6657 echo "$ac_t""no" 1>&6
6663 # Traditional (ha!) shadow passwords.
6665 if test "$passwd_cruft_done" = no ; then
6666 echo $ac_n "checking for generic shadow passwords""... $ac_c" 1>&6
6667 echo "configure:6679: checking for generic shadow passwords" >&5
6668 if eval "test \"`echo '$''{'ac_cv_shadow'+set}'`\" = set"; then
6669 echo $ac_n "(cached) $ac_c" 1>&6
6672 ac_save_CPPFLAGS="$CPPFLAGS"
6673 if test \! -z "$includedir" ; then
6674 CPPFLAGS="$CPPFLAGS -I$includedir"
6676 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6677 cat > conftest.$ac_ext <<EOF
6678 #line 6690 "configure"
6679 #include "confdefs.h"
6682 #include <sys/types.h>
6686 struct spwd *p = getspnam("nobody");
6687 const char *pw = p->sp_pwdp;
6690 if { (eval echo configure:6702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6694 echo "configure: failed program was:" >&5
6695 cat conftest.$ac_ext >&5
6700 CPPFLAGS="$ac_save_CPPFLAGS"
6703 echo "$ac_t""$ac_cv_shadow" 1>&6
6704 if test "$ac_cv_shadow" = yes; then
6707 passwd_cruft_done=yes
6708 cat >> confdefs.h <<\EOF
6709 #define HAVE_SHADOW_PASSWD 1
6713 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
6715 echo $ac_n "checking for getspnam in -lc""... $ac_c" 1>&6
6716 echo "configure:6728: checking for getspnam in -lc" >&5
6717 ac_lib_var=`echo c'_'getspnam | sed 'y%./+-%__p_%'`
6718 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6719 echo $ac_n "(cached) $ac_c" 1>&6
6721 ac_save_LIBS="$LIBS"
6723 cat > conftest.$ac_ext <<EOF
6724 #line 6736 "configure"
6725 #include "confdefs.h"
6726 /* Override any gcc2 internal prototype to avoid an error. */
6727 /* We use char because int might match the return type of a gcc2
6728 builtin and then its argument prototype would still apply. */
6735 if { (eval echo configure:6747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6737 eval "ac_cv_lib_$ac_lib_var=yes"
6739 echo "configure: failed program was:" >&5
6740 cat conftest.$ac_ext >&5
6742 eval "ac_cv_lib_$ac_lib_var=no"
6745 LIBS="$ac_save_LIBS"
6748 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6749 echo "$ac_t""yes" 1>&6
6752 echo "$ac_t""no" 1>&6
6755 if test "$have_getspnam" = no ; then
6756 echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
6757 echo "configure:6769: checking for getspnam in -lgen" >&5
6758 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
6759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6760 echo $ac_n "(cached) $ac_c" 1>&6
6762 ac_save_LIBS="$LIBS"
6764 cat > conftest.$ac_ext <<EOF
6765 #line 6777 "configure"
6766 #include "confdefs.h"
6767 /* Override any gcc2 internal prototype to avoid an error. */
6768 /* We use char because int might match the return type of a gcc2
6769 builtin and then its argument prototype would still apply. */
6776 if { (eval echo configure:6788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6778 eval "ac_cv_lib_$ac_lib_var=yes"
6780 echo "configure: failed program was:" >&5
6781 cat conftest.$ac_ext >&5
6783 eval "ac_cv_lib_$ac_lib_var=no"
6786 LIBS="$ac_save_LIBS"
6789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6790 echo "$ac_t""yes" 1>&6
6791 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
6793 echo "$ac_t""no" 1>&6
6800 # On FreeBSD, getpwnam() and friends work just like on non-shadow-password
6801 # systems -- except you only get stuff in the pw_passwd field if the running
6802 # program is setuid. So, guess that we've got this lossage to contend with
6803 # if /etc/master.passwd exists, and default to a setuid installation.
6805 if test "$passwd_cruft_done" = no ; then
6806 echo $ac_n "checking for FreeBSD-style shadow passwords""... $ac_c" 1>&6
6807 echo "configure:6819: checking for FreeBSD-style shadow passwords" >&5
6808 if eval "test \"`echo '$''{'ac_cv_master_passwd'+set}'`\" = set"; then
6809 echo $ac_n "(cached) $ac_c" 1>&6
6811 if test -f /etc/master.passwd ; then
6812 ac_cv_master_passwd=yes
6814 ac_cv_master_passwd=no
6818 echo "$ac_t""$ac_cv_master_passwd" 1>&6
6819 if test "$ac_cv_master_passwd" = yes; then
6821 passwd_cruft_done=yes
6825 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
6827 echo $ac_n "checking for crypt in -lc""... $ac_c" 1>&6
6828 echo "configure:6840: checking for crypt in -lc" >&5
6829 ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'`
6830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6831 echo $ac_n "(cached) $ac_c" 1>&6
6833 ac_save_LIBS="$LIBS"
6835 cat > conftest.$ac_ext <<EOF
6836 #line 6848 "configure"
6837 #include "confdefs.h"
6838 /* Override any gcc2 internal prototype to avoid an error. */
6839 /* We use char because int might match the return type of a gcc2
6840 builtin and then its argument prototype would still apply. */
6847 if { (eval echo configure:6859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6849 eval "ac_cv_lib_$ac_lib_var=yes"
6851 echo "configure: failed program was:" >&5
6852 cat conftest.$ac_ext >&5
6854 eval "ac_cv_lib_$ac_lib_var=no"
6857 LIBS="$ac_save_LIBS"
6860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6861 echo "$ac_t""yes" 1>&6
6864 echo "$ac_t""no" 1>&6
6867 if test "$have_crypt" = no ; then
6868 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
6869 echo "configure:6881: checking for crypt in -lcrypt" >&5
6870 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
6871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6872 echo $ac_n "(cached) $ac_c" 1>&6
6874 ac_save_LIBS="$LIBS"
6875 LIBS="-lcrypt $LIBS"
6876 cat > conftest.$ac_ext <<EOF
6877 #line 6889 "configure"
6878 #include "confdefs.h"
6879 /* Override any gcc2 internal prototype to avoid an error. */
6880 /* We use char because int might match the return type of a gcc2
6881 builtin and then its argument prototype would still apply. */
6888 if { (eval echo configure:6900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6890 eval "ac_cv_lib_$ac_lib_var=yes"
6892 echo "configure: failed program was:" >&5
6893 cat conftest.$ac_ext >&5
6895 eval "ac_cv_lib_$ac_lib_var=no"
6898 LIBS="$ac_save_LIBS"
6901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6902 echo "$ac_t""yes" 1>&6
6903 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
6905 echo "$ac_t""no" 1>&6
6911 # Most of the above shadow mechanisms will have set need_setuid to yes,
6912 # if they were found. But, on some systems, we need setuid even when
6913 # using plain old vanilla passwords.
6915 if test "$need_setuid" = no ; then
6917 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
6927 if test \! -z "$includedir" ; then
6928 INCLUDES="-I$includedir"
6931 if test \! -z "$libdir" ; then
6932 LDFLAGS="$LDFLAGS -L$libdir"
6936 ##### should have options to override the DEPEND crap, I guess...
6942 # Done testing things -- now substitute in some stuff for the Makefiles.
6944 if test "$have_motif" = yes; then
6945 cat >> confdefs.h <<\EOF
6946 #define HAVE_MOTIF 1
6949 TOOLKIT_SRCS='$(MOTIF_SRCS)'
6950 TOOLKIT_OBJS='$(MOTIF_OBJS)'
6951 elif test "$have_athena" = yes; then
6952 cat >> confdefs.h <<\EOF
6953 #define HAVE_ATHENA 1
6956 TOOLKIT_SRCS='$(ATHENA_SRCS)'
6957 TOOLKIT_OBJS='$(ATHENA_OBJS)'
6963 if test "$have_kerberos" = yes; then
6964 PASSWD_SRCS='$(KERBEROS_SRCS)'
6965 PASSWD_OBJS='$(KERBEROS_OBJS)'
6967 PASSWD_SRCS='$(PWENT_SRCS)'
6968 PASSWD_OBJS='$(PWENT_OBJS)'
6971 if test "$enable_locking" = yes; then
6972 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
6973 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
6979 if test "$need_setuid" = yes; then
6981 INSTALL_SETUID='$(INSTALL) $(SUID_FLAGS)'
6984 INSTALL_SETUID='$(INSTALL_PROGRAM)'
6988 if test "$have_gl" = yes; then
6989 GL_EXES='$(GL_EXES)'
6992 GL_KLUDGE=' -'${tab}
7026 # Print some warnings before emitting the Makefiles.
7028 warn_prefix_1=" Warning:"
7029 warn_prefix_2=" Note:"
7030 warn_prefix="$warn_prefix_1"
7033 warnsep=' #################################################################'
7036 if test "$warning" = no ; then
7037 echo '' ; echo "$warnsep" ; echo ''
7044 if test "$warning" = long ; then echo '' ; fi
7046 echo "$warn_prefix $@"
7053 if test "$was" != no ; then echo '' ; fi
7054 echo "$warn_prefix $@"
7063 warn_prefix="$warn_prefix_2"
7065 warn_prefix="$warn_prefix_1"
7069 warn_prefix="$warn_prefix_2"
7071 warn_prefix="$warn_prefix_1"
7075 if test "$with_sgi_req" = yes -a "$have_sgi" = no ; then
7076 warn 'The SGI saver extension was requested, but was not found.'
7079 if test "$with_mit_req" = yes -a "$have_mit" = no ; then
7080 warn 'The MIT saver extension was requested, but was not found.'
7083 if test "$with_xidle_req" = yes -a "$have_xidle" = no ; then
7084 warn 'The XIdle extension was requested, but was not found.'
7087 if test "$with_xshm_req" = yes -a "$have_xshm" = no ; then
7088 warn 'The XSHM extension was requested, but was not found.'
7091 if test "$with_sgivc_req" = yes -a "$have_sgivc" = no ; then
7092 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
7095 if test "$with_dpms_req" = yes -a "$have_dpms" = no ; then
7096 warn 'The DPMS extension was requested, but was not found.'
7099 if test "$have_motif" = no -a "$have_athena" = no ; then
7100 warnL "Neither Motif nor Athena widgets seem to be available;"
7101 warn2 "the \`xscreensaver-demo' program requires one or the"
7103 proselytize_motif=no
7105 elif test "$with_motif_req" = yes -a "$have_motif" = no ; then
7106 warnL "Use of Motif was requested, but it wasn't found;"
7107 warn2 "Athena will be used instead."
7109 elif test "$with_athena_req" = yes -a "$have_athena" = no ; then
7110 warnL "Use of Athena was requested, but it wasn't found;"
7111 warn2 "Motif will be used instead."
7114 if test "$have_motif" = yes -a "$have_lesstif" = yes ; then
7116 preferred_lesstif=0.86
7118 if test "$lesstif_version" = unknown; then
7119 warnL "Unable to determine the LessTif version number!"
7120 warn2 "Make sure you are using version $preferred_lesstif or newer."
7121 warn2 "See <http://www.lesstif.org/>."
7123 elif test \! $lesstif_version -gt 82; then
7124 warnL "LessTif version $lesstif_version_string is being used."
7125 warn2 "LessTif versions 0.82 and earlier are too buggy to"
7126 warn2 "use with XScreenSaver; it is strongly recommended"
7127 warn2 "that you upgrade to at least version $preferred_lesstif!"
7128 warn2 "See <http://www.lesstif.org/>."
7132 if test "$proselytize_motif" = yes ; then
7133 warnL "Athena widgets are being used instead of Motif."
7134 warn2 "The \`xscreensaver-demo' program looks much better"
7135 warn2 "with Motif. Wouldn't you rather be using Motif?"
7136 warn2 "It is shipped by every commercial Unix vendor;"
7137 warn2 "and there is a free implementation available as"
7138 warn2 "well: see <http://www.lesstif.org/>."
7142 if test "$have_gl" = yes -a "$ac_have_mesa_gl" = yes ; then
7143 preferred_mesagl=2.7
7145 if test "$ac_mesagl_version" = unknown; then
7146 warnL "Unable to determine the MesaGL version number!"
7147 warn2 "Make sure you are using version $preferred_mesagl or newer."
7149 elif test \! "$ac_mesagl_version" -gt 2006; then
7150 warnL "MesaGL version $ac_mesagl_version_string is being used."
7151 warn2 "MesaGL versions 2.6 and earlier have a security bug."
7152 warn2 "It is strongly recommended that you upgrade to at"
7153 warn2 "least version $preferred_mesagl."
7158 if test "$have_xpm" = no ; then
7159 if test "$with_xpm_req" = yes ; then
7160 warnL 'Use of XPM was requested, but it was not found.'
7161 elif test "$with_xpm_req" = no ; then
7162 noteL 'The XPM library is not being used.'
7164 noteL 'The XPM library was not found.'
7168 warn2 'Some of the demos will not be as colorful as they'
7169 warn2 'could be. You might want to consider installing XPM'
7170 warn2 'and re-running configure. (Remember to delete the'
7171 warn2 'config.cache file first.) You can find XPM at most'
7172 warn2 'X11 archive sites, such as <http://sunsite.unc.edu/>.'
7175 if test "$have_gl" = no ; then
7176 if test "$with_gl_req" = yes ; then
7177 warnL 'Use of GL was requested, but it was not found.'
7178 elif test "$with_gl_req" = no ; then
7179 noteL 'The OpenGL 3D library is not being used.'
7181 noteL 'The OpenGL 3D library was not found.'
7185 warn2 'Those demos which use 3D will not be built or installed.'
7186 warn2 'You might want to consider installing OpenGL and'
7187 warn2 're-running configure. (Remember to delete the'
7188 warn2 "config.cache file first.) If your vendor doesn't ship"
7189 warn2 'their own implementation of OpenGL, you can get a free'
7190 warn2 'version at <http://www.ssec.wisc.edu/~brianp/Mesa.html>.'
7191 warn2 'For general OpenGL info, see <http://www.opengl.org/>.'
7195 if test "$with_readdisplay_req" = yes -a "$have_readdisplay" = no ; then
7196 warn 'Use of XReadDisplay was requested, but it was not found.'
7199 if test "$with_sgivideo_req" = yes -a "$have_sgivideo" = no ; then
7200 warn 'Use of the Iris Video Library was requested, but it was not found.'
7203 if test "$with_kerberos_req" = yes -a "$have_kerberos" = no ; then
7204 warn 'Use of Kerberos was requested, but it was not found.'
7207 if test "$with_shadow_req" = yes -a "$have_shadow" = no ; then
7208 warn 'Use of shadow passwords was requested, but they were not found.'
7211 if test -n "$with_zippy_req"; then
7212 if test "$with_zippy_req" != "$ac_cv_zippy_program" ; then
7213 warnL "$with_zippy_req was requested as the Zippy program,"
7214 warn2 "but was not found. The default will be used instead."
7218 if test "$warning" != no; then
7219 echo '' ; echo "$warnsep" ; echo ''
7224 cat > confcache <<\EOF
7225 # This file is a shell script that caches the results of configure
7226 # tests run on this system so they can be shared between configure
7227 # scripts and configure runs. It is not useful on other systems.
7228 # If it contains results you don't want to keep, you may remove or edit it.
7230 # By default, configure uses ./config.cache as the cache file,
7231 # creating it if it does not exist already. You can give configure
7232 # the --cache-file=FILE option to use a different cache file; that is
7233 # what configure does when it calls configure scripts in
7234 # subdirectories, so they share the cache.
7235 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7236 # config.status only pays attention to the cache file if you give it the
7237 # --recheck option to rerun configure.
7240 # The following way of writing the cache mishandles newlines in values,
7241 # but we know of no workaround that is simple, portable, and efficient.
7242 # So, don't put newlines in cache variables' values.
7243 # Ultrix sh set writes to stderr and can't be redirected directly,
7244 # and sets the high bit in the cache file unless we assign to the vars.
7246 case `(ac_space=' '; set) 2>&1` in
7248 # `set' does not quote correctly, so add quotes (double-quote substitution
7249 # turns \\\\ into \\, and sed turns \\ into \).
7251 -e "s/'/'\\\\''/g" \
7252 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7255 # `set' quotes correctly as required by POSIX, so do not add quotes.
7256 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7259 if cmp -s $cache_file confcache; then
7262 if test -w $cache_file; then
7263 echo "updating cache $cache_file"
7264 cat confcache > $cache_file
7266 echo "not updating unwritable cache $cache_file"
7271 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7273 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7274 # Let make expand exec_prefix.
7275 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7277 # Any assignment to VPATH causes Sun make to only execute
7278 # the first set of double-colon rules, so remove it if not needed.
7279 # If there is a colon in the path, we need to keep it.
7280 if test "x$srcdir" = x.; then
7281 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7284 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7286 DEFS=-DHAVE_CONFIG_H
7288 # Without the "./", some shells look in PATH for config.status.
7289 : ${CONFIG_STATUS=./config.status}
7291 echo creating $CONFIG_STATUS
7292 rm -f $CONFIG_STATUS
7293 cat > $CONFIG_STATUS <<EOF
7295 # Generated automatically by configure.
7296 # Run this file to recreate the current configuration.
7297 # This directory was configured as follows,
7298 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7300 # $0 $ac_configure_args
7302 # Compiler output produced by configure, useful for debugging
7303 # configure, is in ./config.log if it exists.
7305 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7308 case "\$ac_option" in
7309 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7310 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7311 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7312 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7313 echo "$CONFIG_STATUS generated by autoconf version 2.12"
7315 -help | --help | --hel | --he | --h)
7316 echo "\$ac_cs_usage"; exit 0 ;;
7317 *) echo "\$ac_cs_usage"; exit 1 ;;
7321 ac_given_srcdir=$srcdir
7322 ac_given_INSTALL="$INSTALL"
7324 trap 'rm -fr `echo "Makefile
7329 driver/XScreenSaver.ad config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7331 cat >> $CONFIG_STATUS <<EOF
7333 # Protect against being on the right side of a sed subst in config.status.
7334 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7335 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7338 s%@CFLAGS@%$CFLAGS%g
7339 s%@CPPFLAGS@%$CPPFLAGS%g
7340 s%@CXXFLAGS@%$CXXFLAGS%g
7342 s%@LDFLAGS@%$LDFLAGS%g
7344 s%@exec_prefix@%$exec_prefix%g
7345 s%@prefix@%$prefix%g
7346 s%@program_transform_name@%$program_transform_name%g
7347 s%@bindir@%$bindir%g
7348 s%@sbindir@%$sbindir%g
7349 s%@libexecdir@%$libexecdir%g
7350 s%@datadir@%$datadir%g
7351 s%@sysconfdir@%$sysconfdir%g
7352 s%@sharedstatedir@%$sharedstatedir%g
7353 s%@localstatedir@%$localstatedir%g
7354 s%@libdir@%$libdir%g
7355 s%@includedir@%$includedir%g
7356 s%@oldincludedir@%$oldincludedir%g
7357 s%@infodir@%$infodir%g
7358 s%@mandir@%$mandir%g
7360 s%@host_alias@%$host_alias%g
7361 s%@host_cpu@%$host_cpu%g
7362 s%@host_vendor@%$host_vendor%g
7363 s%@host_os@%$host_os%g
7366 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7367 s%@INSTALL_DATA@%$INSTALL_DATA%g
7368 s%@SET_MAKE@%$SET_MAKE%g
7369 s%@X_CFLAGS@%$X_CFLAGS%g
7370 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7371 s%@X_LIBS@%$X_LIBS%g
7372 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7374 s%@emacs_exe@%$emacs_exe%g
7375 s%@xemacs_exe@%$xemacs_exe%g
7376 s%@fortune@%$fortune%g
7377 s%@INCLUDES@%$INCLUDES%g
7378 s%@SAVER_LIBS@%$SAVER_LIBS%g
7379 s%@TOOLKIT_LIBS@%$TOOLKIT_LIBS%g
7380 s%@HACK_LIBS@%$HACK_LIBS%g
7381 s%@XPM_LIBS@%$XPM_LIBS%g
7382 s%@GL_LIBS@%$GL_LIBS%g
7383 s%@PASSWD_LIBS@%$PASSWD_LIBS%g
7384 s%@INSTALL_SETUID@%$INSTALL_SETUID%g
7385 s%@INSTALL_DIRS@%$INSTALL_DIRS%g
7386 s%@NEED_SETUID@%$NEED_SETUID%g
7387 s%@SGI_VIDEO_OBJS@%$SGI_VIDEO_OBJS%g
7388 s%@SGI_VIDEO_LIBS@%$SGI_VIDEO_LIBS%g
7389 s%@TOOLKIT_SRCS@%$TOOLKIT_SRCS%g
7390 s%@TOOLKIT_OBJS@%$TOOLKIT_OBJS%g
7391 s%@PASSWD_SRCS@%$PASSWD_SRCS%g
7392 s%@PASSWD_OBJS@%$PASSWD_OBJS%g
7393 s%@XMU_SRCS@%$XMU_SRCS%g
7394 s%@XMU_OBJS@%$XMU_OBJS%g
7395 s%@LOCK_SRCS@%$LOCK_SRCS%g
7396 s%@LOCK_OBJS@%$LOCK_OBJS%g
7397 s%@GL_EXES@%$GL_EXES%g
7398 s%@GL_KLUDGE@%$GL_KLUDGE%g
7399 s%@HACKDIR@%$HACKDIR%g
7400 s%@APPDEFAULTS@%$APPDEFAULTS%g
7401 s%@DEPEND@%$DEPEND%g
7402 s%@DEPEND_FLAGS@%$DEPEND_FLAGS%g
7403 s%@DEPEND_DEFINES@%$DEPEND_DEFINES%g
7408 cat >> $CONFIG_STATUS <<\EOF
7410 # Split the substitutions into bite-sized pieces for seds with
7411 # small command number limits, like on Digital OSF/1 and HP-UX.
7412 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7413 ac_file=1 # Number of current file.
7414 ac_beg=1 # First line for current file.
7415 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7418 while $ac_more_lines; do
7419 if test $ac_beg -gt 1; then
7420 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7422 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7424 if test ! -s conftest.s$ac_file; then
7426 rm -f conftest.s$ac_file
7428 if test -z "$ac_sed_cmds"; then
7429 ac_sed_cmds="sed -f conftest.s$ac_file"
7431 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7433 ac_file=`expr $ac_file + 1`
7435 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7438 if test -z "$ac_sed_cmds"; then
7443 cat >> $CONFIG_STATUS <<EOF
7445 CONFIG_FILES=\${CONFIG_FILES-"Makefile
7450 driver/XScreenSaver.ad"}
7452 cat >> $CONFIG_STATUS <<\EOF
7453 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7454 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7456 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7457 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7458 *) ac_file_in="${ac_file}.in" ;;
7461 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7463 # Remove last slash and all that follows it. Not all systems have dirname.
7464 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7465 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7466 # The file is in a subdirectory.
7467 test ! -d "$ac_dir" && mkdir "$ac_dir"
7468 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7469 # A "../" for each directory in $ac_dir_suffix.
7470 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7472 ac_dir_suffix= ac_dots=
7475 case "$ac_given_srcdir" in
7477 if test -z "$ac_dots"; then top_srcdir=.
7478 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7479 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7481 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7482 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7485 case "$ac_given_INSTALL" in
7486 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7487 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7490 echo creating "$ac_file"
7492 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7494 *Makefile*) ac_comsub="1i\\
7495 # $configure_input" ;;
7499 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7501 s%@configure_input@%$configure_input%g
7502 s%@srcdir@%$srcdir%g
7503 s%@top_srcdir@%$top_srcdir%g
7504 s%@INSTALL@%$INSTALL%g
7505 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7509 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7510 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7512 # ac_d sets the value in "#define NAME VALUE" lines.
7513 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7514 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7517 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7518 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7519 ac_uB='\([ ]\)%\1#\2define\3'
7522 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7523 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7524 ac_eB='$%\1#\2define\3'
7528 if test "${CONFIG_HEADERS+set}" != set; then
7530 cat >> $CONFIG_STATUS <<EOF
7531 CONFIG_HEADERS="config.h"
7533 cat >> $CONFIG_STATUS <<\EOF
7535 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7536 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7538 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7539 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7540 *) ac_file_in="${ac_file}.in" ;;
7543 echo creating $ac_file
7545 rm -f conftest.frag conftest.in conftest.out
7546 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7547 cat $ac_file_inputs > conftest.in
7551 # Transform confdefs.h into a sed script conftest.vals that substitutes
7552 # the proper values into config.h.in to produce config.h. And first:
7553 # Protect against being on the right side of a sed subst in config.status.
7554 # Protect against being in an unquoted here document in config.status.
7556 cat > conftest.hdr <<\EOF
7559 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7563 sed -n -f conftest.hdr confdefs.h > conftest.vals
7566 # This sed command replaces #undef with comments. This is necessary, for
7567 # example, in the case of _POSIX_SOURCE, which is predefined and required
7568 # on some systems where configure will not decide to define it.
7569 cat >> conftest.vals <<\EOF
7570 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7573 # Break up conftest.vals because some shells have a limit on
7574 # the size of here documents, and old seds have small limits too.
7579 ac_lines=`grep -c . conftest.vals`
7580 # grep -c gives empty output for an empty file on some AIX systems.
7581 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7582 # Write a limited-size here document to conftest.frag.
7583 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7584 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7586 sed -f conftest.frag conftest.in > conftest.out
7588 mv conftest.out conftest.in
7590 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7592 mv conftest.tail conftest.vals
7596 cat >> $CONFIG_STATUS <<\EOF
7597 rm -f conftest.frag conftest.h
7598 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7599 cat conftest.in >> conftest.h
7601 if cmp -s $ac_file conftest.h 2>/dev/null; then
7602 echo "$ac_file is unchanged"
7605 # Remove last slash and all that follows it. Not all systems have dirname.
7606 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7607 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7608 # The file is in a subdirectory.
7609 test ! -d "$ac_dir" && mkdir "$ac_dir"
7612 mv conftest.h $ac_file
7617 cat >> $CONFIG_STATUS <<EOF
7620 cat >> $CONFIG_STATUS <<\EOF
7624 chmod +x $CONFIG_STATUS
7625 rm -fr confdefs* $ac_clean_files
7626 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7629 # You are in a twisty maze of namespaces and syntaxes, all alike.
7630 # Fuck the skull of Unix.
7632 eval bindir=${bindir}
7633 eval bindir=${bindir}
7634 eval bindir=${bindir}
7635 eval bindir=${bindir}
7636 eval bindir=${bindir}
7637 eval bindir=${bindir}
7638 eval HACKDIR=${HACKDIR}
7639 eval HACKDIR=${HACKDIR}
7640 eval HACKDIR=${HACKDIR}
7641 eval HACKDIR=${HACKDIR}
7642 eval HACKDIR=${HACKDIR}
7643 eval HACKDIR=${HACKDIR}
7648 echo ' When you run "make install", the "xscreensaver",'
7649 echo ' "xscreensaver-demo", and "xscreensaver-command" executables'
7650 echo " will be installed in ${bindir}."
7652 echo " The various graphics demos (80+ different executables) will"
7653 echo " be installed in ${HACKDIR}."
7655 echo " If you would prefer the demos to be installed elsewhere"
7656 echo " (for example, in a dedicated directory) you should re-run"
7657 echo " configure with the --enable-subdir=DIR option. For more"
7658 echo " information, run $0 --help."