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:
18 --enable-subdir=DIR Put the demo programs in a subdirectory of \`bindir',
19 instead of putting them in bindir itself. You can
20 specify the name of the subdirectory. For example,
21 --exec-prefix=/usr/local/bin --enable-subdir=demos
22 would put xscreensaver in /usr/local/bin/, and would
23 put the demos in /usr/local/bin/demos/. Note that if
24 you do this, you must make sure that the directory
25 is on your \$PATH before xscreensaver is started: the
26 directory name is not hardcoded into the program.
27 This merely sets the default installation location.
29 --disable-subdir Just put the demos in \`bindir' (this is the default.)
32 --with-x use the X Window System"
37 --with-sgi-ext Include support for the SGI SCREEN_SAVER
38 server extension, if possible (this is the default).
39 --without-sgi-ext Do not compile in support for this extension."
41 --with-mit-ext Include support for the MIT-SCREEN-SAVER
42 server extension, if possible (this is the default).
43 --without-mit-ext Do not compile in support for this extension."
45 --with-xidle-ext Include support for the XIDLE server extension,
46 if possible (this is the default).
47 --without-xidle-ext Do not compile in support for this extension."
49 --with-xshm-ext Include support for the XSHM (Shared Memory) server
50 extension, if possible (this is the default).
51 --without-xshm-ext Do not compile in support for this extension."
53 --with-sgivc-ext Include support for the SGI-VIDEO-CONTROL server
54 extension, if possible (this is the default).
55 --without-sgivc-ext Do not compile in support for this extension."
57 --with-dpms-ext Include support for the DPMS server extension,
58 if possible (this is the default).
59 --without-dpms-ext Do not compile in support for this extension."
64 --with-motif Use the Motif toolkit for the user interface,
65 if possible (this is the default).
66 --without-motif Do not use Motif."
68 --with-athena Use the Athena toolkit for the user interface, if
69 possible (this is the default if Motif isn't used.)
70 --without-athena Do not use Athena."
75 --with-xpm Include support for XPM files in some demos,
76 if possible (this is the default).
77 --without-xpm Do not compile in support for XPM files."
79 --with-gl Build those demos which depend on OpenGL,
80 if possible (this is the default).
81 --without-gl Do not build the OpenGL demos."
83 --with-readdisplay Include support for the XReadDisplay server
84 extension if possible (this is the default).
85 --without-readdisplay Do not compile in support for this extension."
87 --with-sgivideo Include support for SGI's Iris Video Library
88 if possible (this is the default).
89 --without-sgivideo Do not compile in support for this library."
91 --with-zippy=PROGRAM Some demos are able to run an external program and
92 display its text; this names the program to use by
93 default (though it can be overridden with X
94 resources.) If you don't specify this, the default
95 is to use \"yow\" from the Emacs distribution (if you
96 have it) or else to use \"fortune\"."
101 --enable-locking Compile in support for locking the display
102 (this is the default.)
103 --disable-locking Do not allow locking at all."
106 --with-kerberos Include support for Kerberos authentication,
107 if possible (this is the default.)
108 --without-kerberos Do not compile in support for Kerberos."
110 --with-shadow Include support for shadow password authentication,
111 if possible (this is the default, if no Kerberos.)
112 --without-shadow Do not compile in support for shadow passwords.
115 # Initialize some variables set by options.
116 # The variables have the same names as the options, with
117 # dashes changed to underlines.
119 cache_file=./config.cache
128 program_transform_name=s,x,x,
136 bindir='${exec_prefix}/bin'
137 sbindir='${exec_prefix}/sbin'
138 libexecdir='${exec_prefix}/libexec'
139 datadir='${prefix}/share'
140 sysconfdir='${prefix}/etc'
141 sharedstatedir='${prefix}/com'
142 localstatedir='${prefix}/var'
143 libdir='${exec_prefix}/lib'
144 includedir='${prefix}/include'
145 oldincludedir='/usr/include'
146 infodir='${prefix}/info'
147 mandir='${prefix}/man'
149 # Initialize some other variables.
152 # Maximum number of lines to put in a shell here document.
159 # If the previous option needs an argument, assign it.
160 if test -n "$ac_prev"; then
161 eval "$ac_prev=\$ac_option"
167 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
171 # Accept the important Cygnus configure options, so we can diagnose typos.
175 -bindir | --bindir | --bindi | --bind | --bin | --bi)
177 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
178 bindir="$ac_optarg" ;;
180 -build | --build | --buil | --bui | --bu)
182 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
183 build="$ac_optarg" ;;
185 -cache-file | --cache-file | --cache-fil | --cache-fi \
186 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
187 ac_prev=cache_file ;;
188 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
189 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
190 cache_file="$ac_optarg" ;;
192 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
194 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
196 datadir="$ac_optarg" ;;
198 -disable-* | --disable-*)
199 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
200 # Reject names that are not valid shell variable names.
201 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
202 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
204 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
205 eval "enable_${ac_feature}=no" ;;
207 -enable-* | --enable-*)
208 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
209 # Reject names that are not valid shell variable names.
210 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
211 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
213 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
218 eval "enable_${ac_feature}='$ac_optarg'" ;;
220 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
221 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
222 | --exec | --exe | --ex)
223 ac_prev=exec_prefix ;;
224 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
225 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
226 | --exec=* | --exe=* | --ex=*)
227 exec_prefix="$ac_optarg" ;;
229 -gas | --gas | --ga | --g)
230 # Obsolete; use --with-gas.
233 -help | --help | --hel | --he)
234 # Omit some internal or obsolete options to make the list less imposing.
235 # This message is too long to be a string in the A/UX 3.1 sh.
237 Usage: configure [options] [host]
238 Options: [defaults in brackets after descriptions]
240 --cache-file=FILE cache test results in FILE
241 --help print this message
242 --no-create do not create output files
243 --quiet, --silent do not print \`checking...' messages
244 --version print the version of autoconf that created configure
245 Directory and file names:
246 --prefix=PREFIX install architecture-independent files in PREFIX
248 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
250 --bindir=DIR user executables in DIR [EPREFIX/bin]
251 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
252 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
253 --datadir=DIR read-only architecture-independent data in DIR
255 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
256 --sharedstatedir=DIR modifiable architecture-independent data in DIR
258 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
259 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
260 --includedir=DIR C header files in DIR [PREFIX/include]
261 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
262 --infodir=DIR info documentation in DIR [PREFIX/info]
263 --mandir=DIR man documentation in DIR [PREFIX/man]
264 --srcdir=DIR find the sources in DIR [configure dir or ..]
265 --program-prefix=PREFIX prepend PREFIX to installed program names
266 --program-suffix=SUFFIX append SUFFIX to installed program names
267 --program-transform-name=PROGRAM
268 run sed PROGRAM on installed program names
272 --build=BUILD configure for building on BUILD [BUILD=HOST]
273 --host=HOST configure for HOST [guessed]
274 --target=TARGET configure for TARGET [TARGET=HOST]
275 Features and packages:
276 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
277 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
278 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
279 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
280 --x-includes=DIR X include files are in DIR
281 --x-libraries=DIR X library files are in DIR
283 if test -n "$ac_help"; then
284 echo "--enable and --with options recognized:$ac_help"
288 -host | --host | --hos | --ho)
290 -host=* | --host=* | --hos=* | --ho=*)
293 -includedir | --includedir | --includedi | --included | --include \
294 | --includ | --inclu | --incl | --inc)
295 ac_prev=includedir ;;
296 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
297 | --includ=* | --inclu=* | --incl=* | --inc=*)
298 includedir="$ac_optarg" ;;
300 -infodir | --infodir | --infodi | --infod | --info | --inf)
302 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
303 infodir="$ac_optarg" ;;
305 -libdir | --libdir | --libdi | --libd)
307 -libdir=* | --libdir=* | --libdi=* | --libd=*)
308 libdir="$ac_optarg" ;;
310 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
311 | --libexe | --libex | --libe)
312 ac_prev=libexecdir ;;
313 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
314 | --libexe=* | --libex=* | --libe=*)
315 libexecdir="$ac_optarg" ;;
317 -localstatedir | --localstatedir | --localstatedi | --localstated \
318 | --localstate | --localstat | --localsta | --localst \
319 | --locals | --local | --loca | --loc | --lo)
320 ac_prev=localstatedir ;;
321 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
322 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
323 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
324 localstatedir="$ac_optarg" ;;
326 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
328 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
329 mandir="$ac_optarg" ;;
332 # Obsolete; use --without-fp.
335 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
339 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
340 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
343 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
344 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
345 | --oldin | --oldi | --old | --ol | --o)
346 ac_prev=oldincludedir ;;
347 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
348 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
349 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
350 oldincludedir="$ac_optarg" ;;
352 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
354 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
355 prefix="$ac_optarg" ;;
357 -program-prefix | --program-prefix | --program-prefi | --program-pref \
358 | --program-pre | --program-pr | --program-p)
359 ac_prev=program_prefix ;;
360 -program-prefix=* | --program-prefix=* | --program-prefi=* \
361 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
362 program_prefix="$ac_optarg" ;;
364 -program-suffix | --program-suffix | --program-suffi | --program-suff \
365 | --program-suf | --program-su | --program-s)
366 ac_prev=program_suffix ;;
367 -program-suffix=* | --program-suffix=* | --program-suffi=* \
368 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
369 program_suffix="$ac_optarg" ;;
371 -program-transform-name | --program-transform-name \
372 | --program-transform-nam | --program-transform-na \
373 | --program-transform-n | --program-transform- \
374 | --program-transform | --program-transfor \
375 | --program-transfo | --program-transf \
376 | --program-trans | --program-tran \
377 | --progr-tra | --program-tr | --program-t)
378 ac_prev=program_transform_name ;;
379 -program-transform-name=* | --program-transform-name=* \
380 | --program-transform-nam=* | --program-transform-na=* \
381 | --program-transform-n=* | --program-transform-=* \
382 | --program-transform=* | --program-transfor=* \
383 | --program-transfo=* | --program-transf=* \
384 | --program-trans=* | --program-tran=* \
385 | --progr-tra=* | --program-tr=* | --program-t=*)
386 program_transform_name="$ac_optarg" ;;
388 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
389 | -silent | --silent | --silen | --sile | --sil)
392 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
394 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
396 sbindir="$ac_optarg" ;;
398 -sharedstatedir | --sharedstatedir | --sharedstatedi \
399 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
400 | --sharedst | --shareds | --shared | --share | --shar \
402 ac_prev=sharedstatedir ;;
403 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
404 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
405 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
407 sharedstatedir="$ac_optarg" ;;
409 -site | --site | --sit)
411 -site=* | --site=* | --sit=*)
414 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
416 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
417 srcdir="$ac_optarg" ;;
419 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
420 | --syscon | --sysco | --sysc | --sys | --sy)
421 ac_prev=sysconfdir ;;
422 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
423 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
424 sysconfdir="$ac_optarg" ;;
426 -target | --target | --targe | --targ | --tar | --ta | --t)
428 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
429 target="$ac_optarg" ;;
431 -v | -verbose | --verbose | --verbos | --verbo | --verb)
434 -version | --version | --versio | --versi | --vers)
435 echo "configure generated by autoconf version 2.12"
439 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
440 # Reject names that are not valid shell variable names.
441 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
442 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
444 ac_package=`echo $ac_package| sed 's/-/_/g'`
449 eval "with_${ac_package}='$ac_optarg'" ;;
451 -without-* | --without-*)
452 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
453 # Reject names that are not valid shell variable names.
454 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
455 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
457 ac_package=`echo $ac_package| sed 's/-/_/g'`
458 eval "with_${ac_package}=no" ;;
461 # Obsolete; use --with-x.
464 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
465 | --x-incl | --x-inc | --x-in | --x-i)
466 ac_prev=x_includes ;;
467 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
468 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
469 x_includes="$ac_optarg" ;;
471 -x-libraries | --x-libraries | --x-librarie | --x-librari \
472 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
473 ac_prev=x_libraries ;;
474 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
475 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
476 x_libraries="$ac_optarg" ;;
478 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
482 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
483 echo "configure: warning: $ac_option: invalid host type" 1>&2
485 if test "x$nonopt" != xNONE; then
486 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
494 if test -n "$ac_prev"; then
495 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
498 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
500 # File descriptor usage:
503 # 2 errors and warnings
504 # 3 some systems may open it to /dev/tty
505 # 4 used on the Kubota Titan
506 # 6 checking for... messages and results
507 # 5 compiler messages saved in config.log
508 if test "$silent" = yes; then
516 This file contains any messages produced by compilers while
517 running configure, to aid debugging if configure makes a mistake.
520 # Strip out --no-create and --no-recursion so they do not pile up.
521 # Also quote any args containing shell metacharacters.
526 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
527 | --no-cr | --no-c) ;;
528 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
529 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
530 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
531 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
532 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
537 # Only set these to C if already set. These must not be set unconditionally
538 # because not all systems understand e.g. LANG=C (notably SCO).
539 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
540 # Non-C LC_CTYPE values break the ctype check.
541 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
542 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
543 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
544 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
546 # confdefs.h avoids OS command line length limits that DEFS can exceed.
547 rm -rf conftest* confdefs.h
548 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
551 # A filename unique to this package, relative to the directory that
552 # configure is in, which we can look for to find out if srcdir is correct.
553 ac_unique_file=driver/subprocs.c
555 # Find the source files, if location was not specified.
556 if test -z "$srcdir"; then
557 ac_srcdir_defaulted=yes
558 # Try the directory containing this script, then its parent.
560 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
561 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
563 if test ! -r $srcdir/$ac_unique_file; then
567 ac_srcdir_defaulted=no
569 if test ! -r $srcdir/$ac_unique_file; then
570 if test "$ac_srcdir_defaulted" = yes; then
571 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
573 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
576 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
578 # Prefer explicitly selected file to automatically selected ones.
579 if test -z "$CONFIG_SITE"; then
580 if test "x$prefix" != xNONE; then
581 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
583 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
586 for ac_site_file in $CONFIG_SITE; do
587 if test -r "$ac_site_file"; then
588 echo "loading site script $ac_site_file"
593 if test -r "$cache_file"; then
594 echo "loading cache $cache_file"
597 echo "creating cache $cache_file"
602 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
603 ac_cpp='$CPP $CPPFLAGS'
604 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
605 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
606 cross_compiling=$ac_cv_prog_cc_cross
608 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
609 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
610 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
617 ac_n= ac_c='\c' ac_t=
623 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
624 if test -f $ac_dir/install-sh; then
626 ac_install_sh="$ac_aux_dir/install-sh -c"
628 elif test -f $ac_dir/install.sh; then
630 ac_install_sh="$ac_aux_dir/install.sh -c"
634 if test -z "$ac_aux_dir"; then
635 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
637 ac_config_guess=$ac_aux_dir/config.guess
638 ac_config_sub=$ac_aux_dir/config.sub
639 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
642 # Make sure we can run config.sub.
643 if $ac_config_sub sun4 >/dev/null 2>&1; then :
644 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
647 echo $ac_n "checking host system type""... $ac_c" 1>&6
648 echo "configure:649: checking host system type" >&5
651 case "$host_alias" in
655 if host_alias=`$ac_config_guess`; then :
656 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
658 *) host_alias=$nonopt ;;
662 host=`$ac_config_sub $host_alias`
663 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
664 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
665 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
666 echo "$ac_t""$host" 1>&6
669 # Extract the first word of "gcc", so it can be a program name with args.
670 set dummy gcc; ac_word=$2
671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
672 echo "configure:673: checking for $ac_word" >&5
673 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
676 if test -n "$CC"; then
677 ac_cv_prog_CC="$CC" # Let the user override the test.
679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
680 for ac_dir in $PATH; do
681 test -z "$ac_dir" && ac_dir=.
682 if test -f $ac_dir/$ac_word; then
691 if test -n "$CC"; then
692 echo "$ac_t""$CC" 1>&6
694 echo "$ac_t""no" 1>&6
697 if test -z "$CC"; then
698 # Extract the first word of "cc", so it can be a program name with args.
699 set dummy cc; ac_word=$2
700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
701 echo "configure:702: checking for $ac_word" >&5
702 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
703 echo $ac_n "(cached) $ac_c" 1>&6
705 if test -n "$CC"; then
706 ac_cv_prog_CC="$CC" # Let the user override the test.
708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
710 for ac_dir in $PATH; do
711 test -z "$ac_dir" && ac_dir=.
712 if test -f $ac_dir/$ac_word; then
713 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
722 if test $ac_prog_rejected = yes; then
723 # We found a bogon in the path, so make sure we never use it.
724 set dummy $ac_cv_prog_CC
726 if test $# -gt 0; then
727 # We chose a different compiler from the bogus one.
728 # However, it has the same basename, so the bogon will be chosen
729 # first if we set CC to just the basename; use the full file name.
731 set dummy "$ac_dir/$ac_word" "$@"
739 if test -n "$CC"; then
740 echo "$ac_t""$CC" 1>&6
742 echo "$ac_t""no" 1>&6
745 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
748 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
749 echo "configure:750: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
752 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
753 ac_cpp='$CPP $CPPFLAGS'
754 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
755 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
756 cross_compiling=$ac_cv_prog_cc_cross
758 cat > conftest.$ac_ext <<EOF
759 #line 760 "configure"
760 #include "confdefs.h"
763 if { (eval echo configure:764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
764 ac_cv_prog_cc_works=yes
765 # If we can't run a trivial program, we are probably using a cross compiler.
766 if (./conftest; exit) 2>/dev/null; then
767 ac_cv_prog_cc_cross=no
769 ac_cv_prog_cc_cross=yes
772 echo "configure: failed program was:" >&5
773 cat conftest.$ac_ext >&5
774 ac_cv_prog_cc_works=no
778 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
779 if test $ac_cv_prog_cc_works = no; then
780 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
782 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
783 echo "configure:784: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
784 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
785 cross_compiling=$ac_cv_prog_cc_cross
787 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
788 echo "configure:789: checking whether we are using GNU C" >&5
789 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
790 echo $ac_n "(cached) $ac_c" 1>&6
792 cat > conftest.c <<EOF
797 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
804 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
806 if test $ac_cv_prog_gcc = yes; then
808 ac_test_CFLAGS="${CFLAGS+set}"
809 ac_save_CFLAGS="$CFLAGS"
811 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
812 echo "configure:813: checking whether ${CC-cc} accepts -g" >&5
813 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
814 echo $ac_n "(cached) $ac_c" 1>&6
816 echo 'void f(){}' > conftest.c
817 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
826 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
827 if test "$ac_test_CFLAGS" = set; then
828 CFLAGS="$ac_save_CFLAGS"
829 elif test $ac_cv_prog_cc_g = yes; then
836 test "${CFLAGS+set}" = set || CFLAGS="-g"
840 if test -z "$GCC"; then
841 echo $ac_n "checking how to request ANSI compilation""... $ac_c" 1>&6
842 echo "configure:843: checking how to request ANSI compilation" >&5
845 echo "$ac_t""HPUX: adding -Ae" 1>&6
849 echo "$ac_t""AIX: adding -qlanglvl=ansi -qhalt=e" 1>&6
850 CC="$CC -qlanglvl=ansi -qhalt=e"
853 # NOTE: for Digital, need to add -std1 to get ANSI, but I'm not sure
854 # yet what $host pattern we should be testing for...
857 echo "$ac_t""no idea" 1>&6
863 echo $ac_n "checking whether the compiler works on ANSI C""... $ac_c" 1>&6
864 echo "configure:865: checking whether the compiler works on ANSI C" >&5
865 if test "$cross_compiling" = yes; then
866 { echo "configure: error: Couldn't build even a trivial ANSI C program: check CC." 1>&2; exit 1; }
868 cat > conftest.$ac_ext <<EOF
869 #line 870 "configure"
870 #include "confdefs.h"
871 main(int ac, char **av) { return 0; }
873 if { (eval echo configure:874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
875 echo "$ac_t""yes" 1>&6
877 echo "configure: failed program was:" >&5
878 cat conftest.$ac_ext >&5
880 echo "$ac_t""no" 1>&6
881 { echo "configure: error: Couldn't build even a trivial ANSI C program: check CC." 1>&2; exit 1; }
889 if test -n "$GCC"; then
890 echo "$ac_t""Turning on gcc compiler warnings." 1>&6
891 CC="$CC -Wall -Wstrict-prototypes -Wnested-externs -Wno-format"
894 echo "$ac_t""Turning on SGI compiler warnings." 1>&6
895 CC="$CC -fullwarn -use_readonly_const -rdata_shared -g3"
901 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
902 echo "configure:903: checking how to run the C preprocessor" >&5
903 # On Suns, sometimes $CPP names a directory.
904 if test -n "$CPP" && test -d "$CPP"; then
907 if test -z "$CPP"; then
908 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
909 echo $ac_n "(cached) $ac_c" 1>&6
911 # This must be in double quotes, not single quotes, because CPP may get
912 # substituted into the Makefile and "${CC-cc}" will confuse make.
914 # On the NeXT, cc -E runs the code through the compiler's parser,
915 # not just through cpp.
916 cat > conftest.$ac_ext <<EOF
917 #line 918 "configure"
918 #include "confdefs.h"
922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
923 { (eval echo configure:924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
924 ac_err=`grep -v '^ *+' conftest.out`
925 if test -z "$ac_err"; then
929 echo "configure: failed program was:" >&5
930 cat conftest.$ac_ext >&5
932 CPP="${CC-cc} -E -traditional-cpp"
933 cat > conftest.$ac_ext <<EOF
934 #line 935 "configure"
935 #include "confdefs.h"
939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
940 { (eval echo configure:941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
941 ac_err=`grep -v '^ *+' conftest.out`
942 if test -z "$ac_err"; then
946 echo "configure: failed program was:" >&5
947 cat conftest.$ac_ext >&5
954 ac_cv_prog_CPP="$CPP"
956 CPP="$ac_cv_prog_CPP"
958 ac_cv_prog_CPP="$CPP"
960 echo "$ac_t""$CPP" 1>&6
962 # Find a good install program. We prefer a C program (faster),
963 # so one script is as good as another. But avoid the broken or
964 # incompatible versions:
965 # SysV /etc/install, /usr/sbin/install
966 # SunOS /usr/etc/install
969 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
970 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
971 # ./install, which can be erroneously created by make from ./install.sh.
972 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
973 echo "configure:974: checking for a BSD compatible install" >&5
974 if test -z "$INSTALL"; then
975 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
978 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
979 for ac_dir in $PATH; do
980 # Account for people who put trailing slashes in PATH elements.
982 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
984 # OSF1 and SCO ODT 3.0 have their own names for install.
985 for ac_prog in ginstall installbsd scoinst install; do
986 if test -f $ac_dir/$ac_prog; then
987 if test $ac_prog = install &&
988 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
989 # AIX install. It has an incompatible calling convention.
990 # OSF/1 installbsd also uses dspmsg, but is usable.
993 ac_cv_path_install="$ac_dir/$ac_prog -c"
1004 if test "${ac_cv_path_install+set}" = set; then
1005 INSTALL="$ac_cv_path_install"
1007 # As a last resort, use the slow shell script. We don't cache a
1008 # path for INSTALL within a source directory, because that will
1009 # break other packages using the cache if that directory is
1010 # removed, or if the path is relative.
1011 INSTALL="$ac_install_sh"
1014 echo "$ac_t""$INSTALL" 1>&6
1016 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1017 # It thinks the first close brace ends the variable substitution.
1018 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1020 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1022 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1023 echo "configure:1024: checking whether ${MAKE-make} sets \${MAKE}" >&5
1024 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1025 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1028 cat > conftestmake <<\EOF
1030 @echo 'ac_maketemp="${MAKE}"'
1032 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1033 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1034 if test -n "$ac_maketemp"; then
1035 eval ac_cv_prog_make_${ac_make}_set=yes
1037 eval ac_cv_prog_make_${ac_make}_set=no
1041 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1042 echo "$ac_t""yes" 1>&6
1045 echo "$ac_t""no" 1>&6
1046 SET_MAKE="MAKE=${MAKE-make}"
1050 echo $ac_n "checking for working const""... $ac_c" 1>&6
1051 echo "configure:1052: checking for working const" >&5
1052 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1053 echo $ac_n "(cached) $ac_c" 1>&6
1055 cat > conftest.$ac_ext <<EOF
1056 #line 1057 "configure"
1057 #include "confdefs.h"
1061 /* Ultrix mips cc rejects this. */
1062 typedef int charset[2]; const charset x;
1063 /* SunOS 4.1.1 cc rejects this. */
1064 char const *const *ccp;
1066 /* NEC SVR4.0.2 mips cc rejects this. */
1067 struct point {int x, y;};
1068 static struct point const zero = {0,0};
1069 /* AIX XL C 1.02.0.0 rejects this.
1070 It does not let you subtract one const X* pointer from another in an arm
1071 of an if-expression whose if-part is not a constant expression */
1072 const char *g = "string";
1073 ccp = &g + (g ? g-g : 0);
1074 /* HPUX 7.0 cc rejects these. */
1077 ccp = (char const *const *) p;
1078 { /* SCO 3.2v4 cc rejects this. */
1080 char const *s = 0 ? (char *) 0 : (char const *) 0;
1084 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1086 const int *foo = &x[0];
1089 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1090 typedef const int *iptr;
1094 { /* AIX XL C 1.02.0.0 rejects this saying
1095 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1096 struct s { int j; const int *ap[3]; };
1097 struct s *b; b->j = 5;
1099 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1105 if { (eval echo configure:1106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1109 echo "configure: failed program was:" >&5
1110 cat conftest.$ac_ext >&5
1117 echo "$ac_t""$ac_cv_c_const" 1>&6
1118 if test $ac_cv_c_const = no; then
1119 cat >> confdefs.h <<\EOF
1125 echo $ac_n "checking for inline""... $ac_c" 1>&6
1126 echo "configure:1127: checking for inline" >&5
1127 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1128 echo $ac_n "(cached) $ac_c" 1>&6
1131 for ac_kw in inline __inline__ __inline; do
1132 cat > conftest.$ac_ext <<EOF
1133 #line 1134 "configure"
1134 #include "confdefs.h"
1140 if { (eval echo configure:1141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1142 ac_cv_c_inline=$ac_kw; break
1144 echo "configure: failed program was:" >&5
1145 cat conftest.$ac_ext >&5
1152 echo "$ac_t""$ac_cv_c_inline" 1>&6
1153 case "$ac_cv_c_inline" in
1155 no) cat >> confdefs.h <<\EOF
1159 *) cat >> confdefs.h <<EOF
1160 #define inline $ac_cv_c_inline
1166 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1167 echo "configure:1168: checking for ANSI C header files" >&5
1168 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1169 echo $ac_n "(cached) $ac_c" 1>&6
1171 cat > conftest.$ac_ext <<EOF
1172 #line 1173 "configure"
1173 #include "confdefs.h"
1179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1180 { (eval echo configure:1181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1181 ac_err=`grep -v '^ *+' conftest.out`
1182 if test -z "$ac_err"; then
1184 ac_cv_header_stdc=yes
1187 echo "configure: failed program was:" >&5
1188 cat conftest.$ac_ext >&5
1190 ac_cv_header_stdc=no
1194 if test $ac_cv_header_stdc = yes; then
1195 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1196 cat > conftest.$ac_ext <<EOF
1197 #line 1198 "configure"
1198 #include "confdefs.h"
1201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1202 egrep "memchr" >/dev/null 2>&1; then
1206 ac_cv_header_stdc=no
1212 if test $ac_cv_header_stdc = yes; then
1213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1214 cat > conftest.$ac_ext <<EOF
1215 #line 1216 "configure"
1216 #include "confdefs.h"
1219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1220 egrep "free" >/dev/null 2>&1; then
1224 ac_cv_header_stdc=no
1230 if test $ac_cv_header_stdc = yes; then
1231 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1232 if test "$cross_compiling" = yes; then
1235 cat > conftest.$ac_ext <<EOF
1236 #line 1237 "configure"
1237 #include "confdefs.h"
1239 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1240 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1241 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1242 int main () { int i; for (i = 0; i < 256; i++)
1243 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1247 if { (eval echo configure:1248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1251 echo "configure: failed program was:" >&5
1252 cat conftest.$ac_ext >&5
1254 ac_cv_header_stdc=no
1262 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1263 if test $ac_cv_header_stdc = yes; then
1264 cat >> confdefs.h <<\EOF
1265 #define STDC_HEADERS 1
1270 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1271 echo "configure:1272: checking whether time.h and sys/time.h may both be included" >&5
1272 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1273 echo $ac_n "(cached) $ac_c" 1>&6
1275 cat > conftest.$ac_ext <<EOF
1276 #line 1277 "configure"
1277 #include "confdefs.h"
1278 #include <sys/types.h>
1279 #include <sys/time.h>
1285 if { (eval echo configure:1286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1287 ac_cv_header_time=yes
1289 echo "configure: failed program was:" >&5
1290 cat conftest.$ac_ext >&5
1292 ac_cv_header_time=no
1297 echo "$ac_t""$ac_cv_header_time" 1>&6
1298 if test $ac_cv_header_time = yes; then
1299 cat >> confdefs.h <<\EOF
1300 #define TIME_WITH_SYS_TIME 1
1305 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1306 echo "configure:1307: checking for sys/wait.h that is POSIX.1 compatible" >&5
1307 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1310 cat > conftest.$ac_ext <<EOF
1311 #line 1312 "configure"
1312 #include "confdefs.h"
1313 #include <sys/types.h>
1314 #include <sys/wait.h>
1316 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1319 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1324 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1327 if { (eval echo configure:1328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1329 ac_cv_header_sys_wait_h=yes
1331 echo "configure: failed program was:" >&5
1332 cat conftest.$ac_ext >&5
1334 ac_cv_header_sys_wait_h=no
1339 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1340 if test $ac_cv_header_sys_wait_h = yes; then
1341 cat >> confdefs.h <<\EOF
1342 #define HAVE_SYS_WAIT_H 1
1348 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1350 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1351 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1352 echo "configure:1353: checking for $ac_hdr that defines DIR" >&5
1353 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 cat > conftest.$ac_ext <<EOF
1357 #line 1358 "configure"
1358 #include "confdefs.h"
1359 #include <sys/types.h>
1365 if { (eval echo configure:1366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1367 eval "ac_cv_header_dirent_$ac_safe=yes"
1369 echo "configure: failed program was:" >&5
1370 cat conftest.$ac_ext >&5
1372 eval "ac_cv_header_dirent_$ac_safe=no"
1376 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1377 echo "$ac_t""yes" 1>&6
1378 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1379 cat >> confdefs.h <<EOF
1380 #define $ac_tr_hdr 1
1382 ac_header_dirent=$ac_hdr; break
1384 echo "$ac_t""no" 1>&6
1387 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1388 if test $ac_header_dirent = dirent.h; then
1389 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1390 echo "configure:1391: checking for opendir in -ldir" >&5
1391 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 ac_save_LIBS="$LIBS"
1397 cat > conftest.$ac_ext <<EOF
1398 #line 1399 "configure"
1399 #include "confdefs.h"
1400 /* Override any gcc2 internal prototype to avoid an error. */
1401 /* We use char because int might match the return type of a gcc2
1402 builtin and then its argument prototype would still apply. */
1409 if { (eval echo configure:1410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1411 eval "ac_cv_lib_$ac_lib_var=yes"
1413 echo "configure: failed program was:" >&5
1414 cat conftest.$ac_ext >&5
1416 eval "ac_cv_lib_$ac_lib_var=no"
1419 LIBS="$ac_save_LIBS"
1422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1423 echo "$ac_t""yes" 1>&6
1426 echo "$ac_t""no" 1>&6
1430 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1431 echo "configure:1432: checking for opendir in -lx" >&5
1432 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1436 ac_save_LIBS="$LIBS"
1438 cat > conftest.$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1441 /* Override any gcc2 internal prototype to avoid an error. */
1442 /* We use char because int might match the return type of a gcc2
1443 builtin and then its argument prototype would still apply. */
1450 if { (eval echo configure:1451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1452 eval "ac_cv_lib_$ac_lib_var=yes"
1454 echo "configure: failed program was:" >&5
1455 cat conftest.$ac_ext >&5
1457 eval "ac_cv_lib_$ac_lib_var=no"
1460 LIBS="$ac_save_LIBS"
1463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1464 echo "$ac_t""yes" 1>&6
1467 echo "$ac_t""no" 1>&6
1473 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1474 echo "configure:1475: checking for mode_t" >&5
1475 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1476 echo $ac_n "(cached) $ac_c" 1>&6
1478 cat > conftest.$ac_ext <<EOF
1479 #line 1480 "configure"
1480 #include "confdefs.h"
1481 #include <sys/types.h>
1487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1488 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1490 ac_cv_type_mode_t=yes
1493 ac_cv_type_mode_t=no
1498 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1499 if test $ac_cv_type_mode_t = no; then
1500 cat >> confdefs.h <<\EOF
1506 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1507 echo "configure:1508: checking for pid_t" >&5
1508 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1511 cat > conftest.$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1514 #include <sys/types.h>
1520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1521 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1523 ac_cv_type_pid_t=yes
1531 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1532 if test $ac_cv_type_pid_t = no; then
1533 cat >> confdefs.h <<\EOF
1539 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1540 echo "configure:1541: checking for size_t" >&5
1541 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1544 cat > conftest.$ac_ext <<EOF
1545 #line 1546 "configure"
1546 #include "confdefs.h"
1547 #include <sys/types.h>
1553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1554 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1556 ac_cv_type_size_t=yes
1559 ac_cv_type_size_t=no
1564 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1565 if test $ac_cv_type_size_t = no; then
1566 cat >> confdefs.h <<\EOF
1567 #define size_t unsigned
1572 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1573 echo "configure:1574: checking return type of signal handlers" >&5
1574 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1575 echo $ac_n "(cached) $ac_c" 1>&6
1577 cat > conftest.$ac_ext <<EOF
1578 #line 1579 "configure"
1579 #include "confdefs.h"
1580 #include <sys/types.h>
1586 extern "C" void (*signal (int, void (*)(int)))(int);
1588 void (*signal ()) ();
1595 if { (eval echo configure:1596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1597 ac_cv_type_signal=void
1599 echo "configure: failed program was:" >&5
1600 cat conftest.$ac_ext >&5
1602 ac_cv_type_signal=int
1607 echo "$ac_t""$ac_cv_type_signal" 1>&6
1608 cat >> confdefs.h <<EOF
1609 #define RETSIGTYPE $ac_cv_type_signal
1614 echo $ac_n "checking how to call gettimeofday""... $ac_c" 1>&6
1615 echo "configure:1616: checking how to call gettimeofday" >&5
1616 if eval "test \"`echo '$''{'ac_cv_gettimeofday_args'+set}'`\" = set"; then
1617 echo $ac_n "(cached) $ac_c" 1>&6
1619 cat > conftest.$ac_ext <<EOF
1620 #line 1621 "configure"
1621 #include "confdefs.h"
1623 #include <sys/time.h>
1625 struct timeval tv; struct timezone tzp;
1626 gettimeofday(&tv, &tzp);
1629 if { (eval echo configure:1630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1631 ac_gettimeofday_args=2
1633 echo "configure: failed program was:" >&5
1634 cat conftest.$ac_ext >&5
1636 cat > conftest.$ac_ext <<EOF
1637 #line 1638 "configure"
1638 #include "confdefs.h"
1640 #include <sys/time.h>
1642 struct timeval tv; gettimeofday(&tv);
1645 if { (eval echo configure:1646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1647 ac_gettimeofday_args=1
1649 echo "configure: failed program was:" >&5
1650 cat conftest.$ac_ext >&5
1652 ac_gettimeofday_args=0
1657 ac_cv_gettimeofday_args=$ac_gettimeofday_args
1660 ac_gettimeofday_args=$ac_cv_gettimeofday_args
1661 if test $ac_gettimeofday_args = 1 ; then
1662 cat >> confdefs.h <<\EOF
1663 #define HAVE_GETTIMEOFDAY 1
1666 echo "$ac_t""one argument" 1>&6
1667 elif test $ac_gettimeofday_args = 2 ; then
1668 cat >> confdefs.h <<\EOF
1669 #define HAVE_GETTIMEOFDAY 1
1672 cat >> confdefs.h <<\EOF
1673 #define GETTIMEOFDAY_TWO_ARGS 1
1676 echo "$ac_t""two arguments" 1>&6
1678 echo "$ac_t""unknown" 1>&6
1682 for ac_func in select fcntl uname nice setpriority getcwd getwd putenv
1684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1685 echo "configure:1686: checking for $ac_func" >&5
1686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1689 cat > conftest.$ac_ext <<EOF
1690 #line 1691 "configure"
1691 #include "confdefs.h"
1692 /* System header to define __stub macros and hopefully few prototypes,
1693 which can conflict with char $ac_func(); below. */
1695 /* Override any gcc2 internal prototype to avoid an error. */
1696 /* We use char because int might match the return type of a gcc2
1697 builtin and then its argument prototype would still apply. */
1702 /* The GNU C library defines this for functions which it implements
1703 to always fail with ENOSYS. Some functions are actually named
1704 something starting with __ and the normal name is an alias. */
1705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1713 if { (eval echo configure:1714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1715 eval "ac_cv_func_$ac_func=yes"
1717 echo "configure: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1720 eval "ac_cv_func_$ac_func=no"
1725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1726 echo "$ac_t""yes" 1>&6
1727 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1728 cat >> confdefs.h <<EOF
1729 #define $ac_tr_func 1
1733 echo "$ac_t""no" 1>&6
1737 for ac_func in sigaction
1739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1740 echo "configure:1741: checking for $ac_func" >&5
1741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1744 cat > conftest.$ac_ext <<EOF
1745 #line 1746 "configure"
1746 #include "confdefs.h"
1747 /* System header to define __stub macros and hopefully few prototypes,
1748 which can conflict with char $ac_func(); below. */
1750 /* Override any gcc2 internal prototype to avoid an error. */
1751 /* We use char because int might match the return type of a gcc2
1752 builtin and then its argument prototype would still apply. */
1757 /* The GNU C library defines this for functions which it implements
1758 to always fail with ENOSYS. Some functions are actually named
1759 something starting with __ and the normal name is an alias. */
1760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1768 if { (eval echo configure:1769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1770 eval "ac_cv_func_$ac_func=yes"
1772 echo "configure: failed program was:" >&5
1773 cat conftest.$ac_ext >&5
1775 eval "ac_cv_func_$ac_func=no"
1780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1781 echo "$ac_t""yes" 1>&6
1782 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1783 cat >> confdefs.h <<EOF
1784 #define $ac_tr_func 1
1788 echo "$ac_t""no" 1>&6
1793 for ac_hdr in unistd.h
1795 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1796 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1797 echo "configure:1798: checking for $ac_hdr" >&5
1798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1799 echo $ac_n "(cached) $ac_c" 1>&6
1801 cat > conftest.$ac_ext <<EOF
1802 #line 1803 "configure"
1803 #include "confdefs.h"
1806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1807 { (eval echo configure:1808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1808 ac_err=`grep -v '^ *+' conftest.out`
1809 if test -z "$ac_err"; then
1811 eval "ac_cv_header_$ac_safe=yes"
1814 echo "configure: failed program was:" >&5
1815 cat conftest.$ac_ext >&5
1817 eval "ac_cv_header_$ac_safe=no"
1821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1822 echo "$ac_t""yes" 1>&6
1823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1824 cat >> confdefs.h <<EOF
1825 #define $ac_tr_hdr 1
1829 echo "$ac_t""no" 1>&6
1836 # Check whether --enable-subdir or --disable-subdir was given.
1837 if test "${enable_subdir+set}" = set; then
1838 enableval="$enable_subdir"
1839 enable_subdir="$enableval"
1844 if test x"$enable_subdir" = xno; then
1846 elif test x"$enable_subdir" = xyes -o x"$enable_subdir" = x ; then
1847 echo "error: must be a subdirectory name: --enable-subdir=$enable_subdir"
1850 # there must be a better way than this...
1851 if test -z "`echo $enable_subdir | sed 's@^/.*@@'`" ; then
1853 HACKDIR=$enable_subdir
1856 HACKDIR='${bindir}/'$enable_subdir
1861 # If we find X, set shell vars x_includes and x_libraries to the
1862 # paths, otherwise set no_x=yes.
1863 # Uses ac_ vars as temps to allow command line to override cache and checks.
1864 # --without-x overrides everything else, but does not touch the cache.
1865 echo $ac_n "checking for X""... $ac_c" 1>&6
1866 echo "configure:1867: checking for X" >&5
1868 # Check whether --with-x or --without-x was given.
1869 if test "${with_x+set}" = set; then
1874 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1875 if test "x$with_x" = xno; then
1876 # The user explicitly disabled X.
1879 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1880 # Both variables are already set.
1883 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1884 echo $ac_n "(cached) $ac_c" 1>&6
1886 # One or both of the vars are not set, and there is no cached value.
1887 ac_x_includes=NO ac_x_libraries=NO
1889 if mkdir conftestdir; then
1891 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1892 cat > Imakefile <<'EOF'
1894 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1896 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1897 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1898 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1899 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1900 for ac_extension in a so sl; do
1901 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1902 test -f $ac_im_libdir/libX11.$ac_extension; then
1903 ac_im_usrlibdir=$ac_im_libdir; break
1906 # Screen out bogus values from the imake configuration. They are
1907 # bogus both because they are the default anyway, and because
1908 # using them would break gcc on systems where it needs fixed includes.
1909 case "$ac_im_incroot" in
1911 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1913 case "$ac_im_usrlibdir" in
1915 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1922 if test "$ac_x_includes" = NO; then
1923 # Guess where to find include files, by looking for this one X11 .h file.
1924 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1926 # First, try using that file with no special directory specified.
1927 cat > conftest.$ac_ext <<EOF
1928 #line 1929 "configure"
1929 #include "confdefs.h"
1930 #include <$x_direct_test_include>
1932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1933 { (eval echo configure:1934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1934 ac_err=`grep -v '^ *+' conftest.out`
1935 if test -z "$ac_err"; then
1937 # We can compile using X headers with no special include directory.
1941 echo "configure: failed program was:" >&5
1942 cat conftest.$ac_ext >&5
1944 # Look for the header file in a standard set of common directories.
1945 # Check X11 before X11Rn because it is often a symlink to the current release.
1948 /usr/X11R6/include \
1949 /usr/X11R5/include \
1950 /usr/X11R4/include \
1953 /usr/include/X11R6 \
1954 /usr/include/X11R5 \
1955 /usr/include/X11R4 \
1957 /usr/local/X11/include \
1958 /usr/local/X11R6/include \
1959 /usr/local/X11R5/include \
1960 /usr/local/X11R4/include \
1962 /usr/local/include/X11 \
1963 /usr/local/include/X11R6 \
1964 /usr/local/include/X11R5 \
1965 /usr/local/include/X11R4 \
1969 /usr/XFree86/include/X11 \
1972 /usr/local/include \
1973 /usr/unsupported/include \
1974 /usr/athena/include \
1975 /usr/local/x11r5/include \
1976 /usr/lpp/Xamples/include \
1978 /usr/openwin/include \
1979 /usr/openwin/share/include \
1982 if test -r "$ac_dir/$x_direct_test_include"; then
1983 ac_x_includes=$ac_dir
1989 fi # $ac_x_includes = NO
1991 if test "$ac_x_libraries" = NO; then
1992 # Check for the libraries.
1994 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1995 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1997 # See if we find them without any special options.
1998 # Don't add to $LIBS permanently.
1999 ac_save_LIBS="$LIBS"
2000 LIBS="-l$x_direct_test_library $LIBS"
2001 cat > conftest.$ac_ext <<EOF
2002 #line 2003 "configure"
2003 #include "confdefs.h"
2006 ${x_direct_test_function}()
2009 if { (eval echo configure:2010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2011 LIBS="$ac_save_LIBS"
2012 # We can link X programs with no special library path.
2015 echo "configure: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2018 LIBS="$ac_save_LIBS"
2019 # First see if replacing the include by lib works.
2020 # Check X11 before X11Rn because it is often a symlink to the current release.
2021 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2032 /usr/local/X11/lib \
2033 /usr/local/X11R6/lib \
2034 /usr/local/X11R5/lib \
2035 /usr/local/X11R4/lib \
2037 /usr/local/lib/X11 \
2038 /usr/local/lib/X11R6 \
2039 /usr/local/lib/X11R5 \
2040 /usr/local/lib/X11R4 \
2044 /usr/XFree86/lib/X11 \
2048 /usr/unsupported/lib \
2050 /usr/local/x11r5/lib \
2051 /usr/lpp/Xamples/lib \
2055 /usr/openwin/share/lib \
2058 for ac_extension in a so sl; do
2059 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2060 ac_x_libraries=$ac_dir
2067 fi # $ac_x_libraries = NO
2069 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2070 # Didn't find X anywhere. Cache the known absence of X.
2071 ac_cv_have_x="have_x=no"
2073 # Record where we found X for the cache.
2074 ac_cv_have_x="have_x=yes \
2075 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2079 eval "$ac_cv_have_x"
2082 if test "$have_x" != yes; then
2083 echo "$ac_t""$have_x" 1>&6
2086 # If each of the values was on the command line, it overrides each guess.
2087 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2088 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2089 # Update the cache value to reflect the command line values.
2090 ac_cv_have_x="have_x=yes \
2091 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2092 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2095 if test "$no_x" = yes; then
2096 # Not all programs may use this symbol, but it does not hurt to define it.
2097 cat >> confdefs.h <<\EOF
2098 #define X_DISPLAY_MISSING 1
2101 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2103 if test -n "$x_includes"; then
2104 X_CFLAGS="$X_CFLAGS -I$x_includes"
2107 # It would also be nice to do this for all -L options, not just this one.
2108 if test -n "$x_libraries"; then
2109 X_LIBS="$X_LIBS -L$x_libraries"
2110 # For Solaris; some versions of Sun CC require a space after -R and
2111 # others require no space. Words are not sufficient . . . .
2112 case "`(uname -sr) 2>/dev/null`" in
2114 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2115 echo "configure:2116: checking whether -R must be followed by a space" >&5
2116 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2117 cat > conftest.$ac_ext <<EOF
2118 #line 2119 "configure"
2119 #include "confdefs.h"
2125 if { (eval echo configure:2126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2129 echo "configure: failed program was:" >&5
2130 cat conftest.$ac_ext >&5
2135 if test $ac_R_nospace = yes; then
2136 echo "$ac_t""no" 1>&6
2137 X_LIBS="$X_LIBS -R$x_libraries"
2139 LIBS="$ac_xsave_LIBS -R $x_libraries"
2140 cat > conftest.$ac_ext <<EOF
2141 #line 2142 "configure"
2142 #include "confdefs.h"
2148 if { (eval echo configure:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2152 echo "configure: failed program was:" >&5
2153 cat conftest.$ac_ext >&5
2158 if test $ac_R_space = yes; then
2159 echo "$ac_t""yes" 1>&6
2160 X_LIBS="$X_LIBS -R $x_libraries"
2162 echo "$ac_t""neither works" 1>&6
2165 LIBS="$ac_xsave_LIBS"
2169 # Check for system-dependent libraries X programs must link with.
2170 # Do this before checking for the system-independent R6 libraries
2171 # (-lICE), since we may need -lsocket or whatever for X linking.
2173 if test "$ISC" = yes; then
2174 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2176 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2177 # libraries were built with DECnet support. And karl@cs.umb.edu says
2178 # the Alpha needs dnet_stub (dnet does not exist).
2179 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2180 echo "configure:2181: checking for dnet_ntoa in -ldnet" >&5
2181 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 ac_save_LIBS="$LIBS"
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2199 if { (eval echo configure:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2201 eval "ac_cv_lib_$ac_lib_var=yes"
2203 echo "configure: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2206 eval "ac_cv_lib_$ac_lib_var=no"
2209 LIBS="$ac_save_LIBS"
2212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2214 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2216 echo "$ac_t""no" 1>&6
2219 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2220 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2221 echo "configure:2222: checking for dnet_ntoa in -ldnet_stub" >&5
2222 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 ac_save_LIBS="$LIBS"
2227 LIBS="-ldnet_stub $LIBS"
2228 cat > conftest.$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2231 /* Override any gcc2 internal prototype to avoid an error. */
2232 /* We use char because int might match the return type of a gcc2
2233 builtin and then its argument prototype would still apply. */
2240 if { (eval echo configure:2241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2242 eval "ac_cv_lib_$ac_lib_var=yes"
2244 echo "configure: failed program was:" >&5
2245 cat conftest.$ac_ext >&5
2247 eval "ac_cv_lib_$ac_lib_var=no"
2250 LIBS="$ac_save_LIBS"
2253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2254 echo "$ac_t""yes" 1>&6
2255 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2257 echo "$ac_t""no" 1>&6
2262 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2263 # to get the SysV transport functions.
2264 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2266 # The nsl library prevents programs from opening the X display
2267 # on Irix 5.2, according to dickey@clark.net.
2268 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2269 echo "configure:2270: checking for gethostbyname" >&5
2270 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2273 cat > conftest.$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2276 /* System header to define __stub macros and hopefully few prototypes,
2277 which can conflict with char gethostbyname(); below. */
2279 /* Override any gcc2 internal prototype to avoid an error. */
2280 /* We use char because int might match the return type of a gcc2
2281 builtin and then its argument prototype would still apply. */
2282 char gethostbyname();
2286 /* The GNU C library defines this for functions which it implements
2287 to always fail with ENOSYS. Some functions are actually named
2288 something starting with __ and the normal name is an alias. */
2289 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2297 if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2299 eval "ac_cv_func_gethostbyname=yes"
2301 echo "configure: failed program was:" >&5
2302 cat conftest.$ac_ext >&5
2304 eval "ac_cv_func_gethostbyname=no"
2309 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2310 echo "$ac_t""yes" 1>&6
2313 echo "$ac_t""no" 1>&6
2316 if test $ac_cv_func_gethostbyname = no; then
2317 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2318 echo "configure:2319: checking for gethostbyname in -lnsl" >&5
2319 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2321 echo $ac_n "(cached) $ac_c" 1>&6
2323 ac_save_LIBS="$LIBS"
2325 cat > conftest.$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2328 /* Override any gcc2 internal prototype to avoid an error. */
2329 /* We use char because int might match the return type of a gcc2
2330 builtin and then its argument prototype would still apply. */
2331 char gethostbyname();
2337 if { (eval echo configure:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2339 eval "ac_cv_lib_$ac_lib_var=yes"
2341 echo "configure: failed program was:" >&5
2342 cat conftest.$ac_ext >&5
2344 eval "ac_cv_lib_$ac_lib_var=no"
2347 LIBS="$ac_save_LIBS"
2350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2351 echo "$ac_t""yes" 1>&6
2352 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2354 echo "$ac_t""no" 1>&6
2359 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2360 # socket/setsockopt and other routines are undefined under SCO ODT
2361 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2362 # on later versions), says simon@lia.di.epfl.ch: it contains
2363 # gethostby* variants that don't use the nameserver (or something).
2364 # -lsocket must be given before -lnsl if both are needed.
2365 # We assume that if connect needs -lnsl, so does gethostbyname.
2366 echo $ac_n "checking for connect""... $ac_c" 1>&6
2367 echo "configure:2368: checking for connect" >&5
2368 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2371 cat > conftest.$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 /* System header to define __stub macros and hopefully few prototypes,
2375 which can conflict with char connect(); below. */
2377 /* Override any gcc2 internal prototype to avoid an error. */
2378 /* We use char because int might match the return type of a gcc2
2379 builtin and then its argument prototype would still apply. */
2384 /* The GNU C library defines this for functions which it implements
2385 to always fail with ENOSYS. Some functions are actually named
2386 something starting with __ and the normal name is an alias. */
2387 #if defined (__stub_connect) || defined (__stub___connect)
2395 if { (eval echo configure:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2397 eval "ac_cv_func_connect=yes"
2399 echo "configure: failed program was:" >&5
2400 cat conftest.$ac_ext >&5
2402 eval "ac_cv_func_connect=no"
2407 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2408 echo "$ac_t""yes" 1>&6
2411 echo "$ac_t""no" 1>&6
2414 if test $ac_cv_func_connect = no; then
2415 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2416 echo "configure:2417: checking for connect in -lsocket" >&5
2417 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2419 echo $ac_n "(cached) $ac_c" 1>&6
2421 ac_save_LIBS="$LIBS"
2422 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2423 cat > conftest.$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2426 /* Override any gcc2 internal prototype to avoid an error. */
2427 /* We use char because int might match the return type of a gcc2
2428 builtin and then its argument prototype would still apply. */
2435 if { (eval echo configure:2436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2437 eval "ac_cv_lib_$ac_lib_var=yes"
2439 echo "configure: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2442 eval "ac_cv_lib_$ac_lib_var=no"
2445 LIBS="$ac_save_LIBS"
2448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2452 echo "$ac_t""no" 1>&6
2457 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2458 echo $ac_n "checking for remove""... $ac_c" 1>&6
2459 echo "configure:2460: checking for remove" >&5
2460 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2463 cat > conftest.$ac_ext <<EOF
2464 #line 2465 "configure"
2465 #include "confdefs.h"
2466 /* System header to define __stub macros and hopefully few prototypes,
2467 which can conflict with char remove(); below. */
2469 /* Override any gcc2 internal prototype to avoid an error. */
2470 /* We use char because int might match the return type of a gcc2
2471 builtin and then its argument prototype would still apply. */
2476 /* The GNU C library defines this for functions which it implements
2477 to always fail with ENOSYS. Some functions are actually named
2478 something starting with __ and the normal name is an alias. */
2479 #if defined (__stub_remove) || defined (__stub___remove)
2487 if { (eval echo configure:2488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2489 eval "ac_cv_func_remove=yes"
2491 echo "configure: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2494 eval "ac_cv_func_remove=no"
2499 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2500 echo "$ac_t""yes" 1>&6
2503 echo "$ac_t""no" 1>&6
2506 if test $ac_cv_func_remove = no; then
2507 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2508 echo "configure:2509: checking for remove in -lposix" >&5
2509 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2511 echo $ac_n "(cached) $ac_c" 1>&6
2513 ac_save_LIBS="$LIBS"
2514 LIBS="-lposix $LIBS"
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2518 /* Override any gcc2 internal prototype to avoid an error. */
2519 /* We use char because int might match the return type of a gcc2
2520 builtin and then its argument prototype would still apply. */
2527 if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2529 eval "ac_cv_lib_$ac_lib_var=yes"
2531 echo "configure: failed program was:" >&5
2532 cat conftest.$ac_ext >&5
2534 eval "ac_cv_lib_$ac_lib_var=no"
2537 LIBS="$ac_save_LIBS"
2540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2541 echo "$ac_t""yes" 1>&6
2542 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2544 echo "$ac_t""no" 1>&6
2549 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2550 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2551 echo "configure:2552: checking for shmat" >&5
2552 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2553 echo $ac_n "(cached) $ac_c" 1>&6
2555 cat > conftest.$ac_ext <<EOF
2556 #line 2557 "configure"
2557 #include "confdefs.h"
2558 /* System header to define __stub macros and hopefully few prototypes,
2559 which can conflict with char shmat(); below. */
2561 /* Override any gcc2 internal prototype to avoid an error. */
2562 /* We use char because int might match the return type of a gcc2
2563 builtin and then its argument prototype would still apply. */
2568 /* The GNU C library defines this for functions which it implements
2569 to always fail with ENOSYS. Some functions are actually named
2570 something starting with __ and the normal name is an alias. */
2571 #if defined (__stub_shmat) || defined (__stub___shmat)
2579 if { (eval echo configure:2580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2581 eval "ac_cv_func_shmat=yes"
2583 echo "configure: failed program was:" >&5
2584 cat conftest.$ac_ext >&5
2586 eval "ac_cv_func_shmat=no"
2591 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2592 echo "$ac_t""yes" 1>&6
2595 echo "$ac_t""no" 1>&6
2598 if test $ac_cv_func_shmat = no; then
2599 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2600 echo "configure:2601: checking for shmat in -lipc" >&5
2601 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&6
2605 ac_save_LIBS="$LIBS"
2607 cat > conftest.$ac_ext <<EOF
2608 #line 2609 "configure"
2609 #include "confdefs.h"
2610 /* Override any gcc2 internal prototype to avoid an error. */
2611 /* We use char because int might match the return type of a gcc2
2612 builtin and then its argument prototype would still apply. */
2619 if { (eval echo configure:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2621 eval "ac_cv_lib_$ac_lib_var=yes"
2623 echo "configure: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2626 eval "ac_cv_lib_$ac_lib_var=no"
2629 LIBS="$ac_save_LIBS"
2632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2633 echo "$ac_t""yes" 1>&6
2634 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2636 echo "$ac_t""no" 1>&6
2642 # Check for libraries that X11R6 Xt/Xaw programs need.
2643 ac_save_LDFLAGS="$LDFLAGS"
2644 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2645 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2646 # check for ICE first), but we must link in the order -lSM -lICE or
2647 # we get undefined symbols. So assume we have SM if we have ICE.
2648 # These have to be linked with before -lX11, unlike the other
2649 # libraries we check for below, so use a different variable.
2650 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2651 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2652 echo "configure:2653: checking for IceConnectionNumber in -lICE" >&5
2653 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2654 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2657 ac_save_LIBS="$LIBS"
2659 cat > conftest.$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2662 /* Override any gcc2 internal prototype to avoid an error. */
2663 /* We use char because int might match the return type of a gcc2
2664 builtin and then its argument prototype would still apply. */
2665 char IceConnectionNumber();
2668 IceConnectionNumber()
2671 if { (eval echo configure:2672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2673 eval "ac_cv_lib_$ac_lib_var=yes"
2675 echo "configure: failed program was:" >&5
2676 cat conftest.$ac_ext >&5
2678 eval "ac_cv_lib_$ac_lib_var=no"
2681 LIBS="$ac_save_LIBS"
2684 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2685 echo "$ac_t""yes" 1>&6
2686 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2688 echo "$ac_t""no" 1>&6
2691 LDFLAGS="$ac_save_LDFLAGS"
2696 # Try and find the app-defaults directory.
2697 # It sucks that autoconf doesn't do this already...
2707 echo $ac_n "checking for X app-defaults directory""... $ac_c" 1>&6
2708 echo "configure:2709: checking for X app-defaults directory" >&5
2709 if eval "test \"`echo '$''{'ac_cv_x_app_defaults'+set}'`\" = set"; then
2710 echo $ac_n "(cached) $ac_c" 1>&6
2714 if mkdir conftestdir; then
2716 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2717 cat > Imakefile <<'EOF'
2719 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"'
2721 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2722 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us.
2723 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2728 # Look for the directory under a standard set of common directories.
2729 # Check X11 before X11Rn because it's often a symlink to the current release.
2731 /usr/X11/lib/app-defaults \
2732 /usr/X11R6/lib/app-defaults \
2733 /usr/X11R6/lib/X11/app-defaults \
2734 /usr/X11R5/lib/app-defaults \
2735 /usr/X11R5/lib/X11/app-defaults \
2736 /usr/X11R4/lib/app-defaults \
2737 /usr/X11R4/lib/X11/app-defaults \
2739 /usr/lib/X11/app-defaults \
2740 /usr/lib/X11R6/app-defaults \
2741 /usr/lib/X11R5/app-defaults \
2742 /usr/lib/X11R4/app-defaults \
2744 /usr/local/X11/lib/app-defaults \
2745 /usr/local/X11R6/lib/app-defaults \
2746 /usr/local/X11R5/lib/app-defaults \
2747 /usr/local/X11R4/lib/app-defaults \
2749 /usr/local/lib/X11/app-defaults \
2750 /usr/local/lib/X11R6/app-defaults \
2751 /usr/local/lib/X11R6/X11/app-defaults \
2752 /usr/local/lib/X11R5/app-defaults \
2753 /usr/local/lib/X11R5/X11/app-defaults \
2754 /usr/local/lib/X11R4/app-defaults \
2755 /usr/local/lib/X11R4/X11/app-defaults \
2757 /usr/X386/lib/X11/app-defaults \
2758 /usr/x386/lib/X11/app-defaults \
2759 /usr/XFree86/lib/X11/app-defaults \
2761 /usr/lib/X11/app-defaults \
2762 /usr/local/lib/X11/app-defaults \
2763 /usr/unsupported/lib/X11/app-defaults \
2764 /usr/athena/lib/X11/app-defaults \
2765 /usr/local/x11r5/lib/X11/app-defaults \
2766 /usr/lpp/Xamples/lib/X11/app-defaults \
2767 /lib/usr/lib/X11/app-defaults \
2769 /usr/openwin/lib/app-defaults \
2770 /usr/openwin/lib/X11/app-defaults \
2771 /usr/openwin/share/lib/app-defaults \
2772 /usr/openwin/share/lib/X11/app-defaults \
2774 /X11R6/lib/app-defaults \
2775 /X11R5/lib/app-defaults \
2776 /X11R4/lib/app-defaults \
2779 if test -d "$ac_dir"; then
2780 ac_x_app_defaults=$ac_dir
2785 if test x"$ac_x_app_defaults" = x; then
2786 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults"
2788 # Record where we found app-defaults for the cache.
2789 ac_cv_x_app_defaults="$ac_x_app_defaults"
2793 echo "$ac_t""$ac_cv_x_app_defaults" 1>&6
2794 eval ac_x_app_defaults="$ac_cv_x_app_defaults"
2796 APPDEFAULTS=$ac_x_app_defaults
2799 # Like AC_CHECK_HEADER, but it uses the already-computed -I directories.
2803 # Like AC_EGREP_HEADER, but it uses the already-computed -I directories.
2807 # Like AC_TRY_COMPILE, but it uses the already-computed -I directories.
2812 # Like AC_CHECK_LIB, but it uses the already-computed -I and -L directories.
2813 # Use this sparingly; it probably doesn't work very well on X programs.
2817 # Like AC_TRY_RUN, but it uses the already-computed -I directories.
2818 # (But not the -L directories!)
2826 # check for the HP XHPDisableReset server extension headers.
2829 ac_save_CPPFLAGS="$CPPFLAGS"
2830 if test \! -z "$includedir" ; then
2831 CPPFLAGS="$CPPFLAGS -I$includedir"
2833 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2834 cat > conftest.$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2837 #include <X11/XHPlib.h>
2839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2840 egrep "XHPDisableReset" >/dev/null 2>&1; then
2842 cat >> confdefs.h <<\EOF
2843 #define HAVE_XHPDISABLERESET 1
2846 SAVER_LIBS="-lXhp11 $SAVER_LIBS"
2850 CPPFLAGS="$ac_save_CPPFLAGS"
2853 # Check for the availability of the XPointer typedef, and define it otherwise.
2855 echo $ac_n "checking for XPointer""... $ac_c" 1>&6
2856 echo "configure:2857: checking for XPointer" >&5
2857 if eval "test \"`echo '$''{'ac_cv_xpointer'+set}'`\" = set"; then
2858 echo $ac_n "(cached) $ac_c" 1>&6
2861 ac_save_CPPFLAGS="$CPPFLAGS"
2862 if test \! -z "$includedir" ; then
2863 CPPFLAGS="$CPPFLAGS -I$includedir"
2865 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2866 cat > conftest.$ac_ext <<EOF
2867 #line 2868 "configure"
2868 #include "confdefs.h"
2869 #include <X11/Xlib.h>
2871 XPointer foo = (XPointer) 0;
2874 if { (eval echo configure:2875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2878 echo "configure: failed program was:" >&5
2879 cat conftest.$ac_ext >&5
2884 CPPFLAGS="$ac_save_CPPFLAGS"
2887 echo "$ac_t""$ac_cv_xpointer" 1>&6
2888 if test $ac_cv_xpointer != yes; then
2889 cat >> confdefs.h <<\EOF
2890 #define XPointer char*
2898 # Thanks for not making xmkmf find this by default, you losers.
2899 if test -d /usr/lib/Motif1.2 ; then
2900 X_CFLAGS="-I/usr/include/Motif1.2 $X_CFLAGS"
2901 X_LIBS="-L/usr/lib/Motif1.2 $X_LIBS"
2902 elif test -d /usr/lib/Motif1.1 ; then
2903 X_CFLAGS="-I/usr/include/Motif1.1 $X_CFLAGS"
2904 X_LIBS="-L/usr/lib/Motif1.1 $X_LIBS"
2907 # This too. You losers.
2908 if test -d /usr/contrib/X11R6/include ; then
2909 X_CFLAGS="-I/usr/contrib/X11R6/include $X_CFLAGS"
2910 X_LIBS="-L/usr/contrib/X11R6/lib $X_LIBS"
2911 elif test -d /usr/X11R6/include ; then
2912 X_CFLAGS="-I/usr/X11R6/include $X_CFLAGS"
2913 X_LIBS="-L/usr/X11R6/lib $X_LIBS"
2914 elif test -d /usr/contrib/X11R5/include ; then
2915 X_CFLAGS="-I/usr/contrib/X11R5/include $X_CFLAGS"
2916 X_LIBS="-L/usr/contrib/X11R5/lib $X_LIBS"
2917 elif test -d /usr/X11R5/include ; then
2918 X_CFLAGS="-I/usr/X11R5/include $X_CFLAGS"
2919 X_LIBS="-L/usr/X11R5/lib $X_LIBS"
2924 # Same to you, pinheads. (Is this really the standard location now?
2925 # What happened to the joke that this kind of thing went in /opt?)
2926 # cthomp says "answer: CDE (Common Disorganized Environment)"
2927 if test -f /usr/dt/include/Xm/Xm.h ; then
2928 X_CFLAGS="$X_CFLAGS -I/usr/dt/include"
2929 X_LIBS="$X_LIBS -L/usr/dt/lib -R:/usr/dt/lib"
2931 # Some versions of Slowlaris Motif require -lgen. But not all. Why?
2932 echo $ac_n "checking for regcmp in -lgen""... $ac_c" 1>&6
2933 echo "configure:2934: checking for regcmp in -lgen" >&5
2934 ac_lib_var=`echo gen'_'regcmp | sed 'y%./+-%__p_%'`
2935 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2936 echo $ac_n "(cached) $ac_c" 1>&6
2938 ac_save_LIBS="$LIBS"
2940 cat > conftest.$ac_ext <<EOF
2941 #line 2942 "configure"
2942 #include "confdefs.h"
2943 /* Override any gcc2 internal prototype to avoid an error. */
2944 /* We use char because int might match the return type of a gcc2
2945 builtin and then its argument prototype would still apply. */
2952 if { (eval echo configure:2953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2954 eval "ac_cv_lib_$ac_lib_var=yes"
2956 echo "configure: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2959 eval "ac_cv_lib_$ac_lib_var=no"
2962 LIBS="$ac_save_LIBS"
2965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2966 echo "$ac_t""yes" 1>&6
2967 X_LIBS="$X_LIBS -lgen"
2969 echo "$ac_t""no" 1>&6
2978 # Check for Xmu (some fucked up vendors don't ship it...)
2982 ac_save_CPPFLAGS="$CPPFLAGS"
2983 if test \! -z "$includedir" ; then
2984 CPPFLAGS="$CPPFLAGS -I$includedir"
2986 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2987 ac_safe=`echo "X11/Xmu/Error.h" | sed 'y%./+-%__p_%'`
2988 echo $ac_n "checking for X11/Xmu/Error.h""... $ac_c" 1>&6
2989 echo "configure:2990: checking for X11/Xmu/Error.h" >&5
2990 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2991 echo $ac_n "(cached) $ac_c" 1>&6
2993 cat > conftest.$ac_ext <<EOF
2994 #line 2995 "configure"
2995 #include "confdefs.h"
2996 #include <X11/Xmu/Error.h>
2998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2999 { (eval echo configure:3000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3000 ac_err=`grep -v '^ *+' conftest.out`
3001 if test -z "$ac_err"; then
3003 eval "ac_cv_header_$ac_safe=yes"
3006 echo "configure: failed program was:" >&5
3007 cat conftest.$ac_ext >&5
3009 eval "ac_cv_header_$ac_safe=no"
3013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3014 echo "$ac_t""yes" 1>&6
3017 echo "$ac_t""no" 1>&6
3020 CPPFLAGS="$ac_save_CPPFLAGS"
3021 if test $have_xmu = no ; then
3022 XMU_SRCS='$(UTILS_SRC)/xmu.c'
3023 XMU_OBJS='$(UTILS_BIN)/xmu.o'
3027 SAVER_LIBS="-lXmu $SAVER_LIBS"
3028 HACK_LIBS="-lXmu $HACK_LIBS"
3029 cat >> confdefs.h <<\EOF
3036 # See comp.windows.x FAQ question 124 about _get_wmShellWidgetClass on 4.1.x.
3037 # The right fix is to get OpenWindows 3.0 patches 100512-02 and 100573-03.
3039 if test $have_xmu = yes ; then
3042 echo $ac_n "checking for the SunOS 4.1.x _get_wmShellWidgetClass bug""... $ac_c" 1>&6
3043 echo "configure:3044: checking for the SunOS 4.1.x _get_wmShellWidgetClass bug" >&5
3044 if eval "test \"`echo '$''{'ac_cv_sunos_xmu_bug'+set}'`\" = set"; then
3045 echo $ac_n "(cached) $ac_c" 1>&6
3047 ac_save_LDFLAGS="$LDFLAGS"
3048 if test \! -z "$x_libraries" ; then
3049 LDFLAGS="$LDFLAGS -L$x_libraries"
3051 # Note: this trick never works! (Generally.)
3052 # We're only getting away with using AC_TRY_LINK
3053 # with X libraries because we know it's SunOS.
3054 LDFLAGS="$LDFLAGS -lXmu -lXt -lX11 -lXext -lm"
3055 cat > conftest.$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3063 if { (eval echo configure:3064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3065 ac_cv_sunos_xmu_bug=no
3067 echo "configure: failed program was:" >&5
3068 cat conftest.$ac_ext >&5
3070 ac_cv_sunos_xmu_bug=yes
3073 LDFLAGS="$ac_save_LDFLAGS"
3076 echo "$ac_t""$ac_cv_sunos_xmu_bug" 1>&6
3077 if test $ac_cv_sunos_xmu_bug = yes ; then
3078 echo $ac_n "checking whether the compiler understands -static""... $ac_c" 1>&6
3079 echo "configure:3080: checking whether the compiler understands -static" >&5
3080 if eval "test \"`echo '$''{'ac_cv_ld_static'+set}'`\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 ac_save_LDFLAGS="$LDFLAGS"
3084 LDFLAGS="$LDFLAGS -static"
3085 cat > conftest.$ac_ext <<EOF
3086 #line 3087 "configure"
3087 #include "confdefs.h"
3093 if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3097 echo "configure: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3103 LDFLAGS="$ac_save_LDFLAGS"
3106 echo "$ac_t""$ac_cv_ld_static" 1>&6
3107 if test $ac_cv_ld_static = yes ; then
3108 LDFLAGS="$LDFLAGS -static"
3110 LDFLAGS="$LDFLAGS -Bstatic"
3118 # Check for the SGI SCREEN_SAVER server extension header.
3121 with_sgi_req=unspecified
3122 # Check whether --with-sgi-ext or --without-sgi-ext was given.
3123 if test "${with_sgi_ext+set}" = set; then
3124 withval="$with_sgi_ext"
3125 with_sgi="$withval"; with_sgi_req="$withval"
3130 if test $with_sgi = yes; then
3132 ac_save_CPPFLAGS="$CPPFLAGS"
3133 if test \! -z "$includedir" ; then
3134 CPPFLAGS="$CPPFLAGS -I$includedir"
3136 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3137 ac_safe=`echo "X11/extensions/XScreenSaver.h" | sed 'y%./+-%__p_%'`
3138 echo $ac_n "checking for X11/extensions/XScreenSaver.h""... $ac_c" 1>&6
3139 echo "configure:3140: checking for X11/extensions/XScreenSaver.h" >&5
3140 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3143 cat > conftest.$ac_ext <<EOF
3144 #line 3145 "configure"
3145 #include "confdefs.h"
3146 #include <X11/extensions/XScreenSaver.h>
3148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3149 { (eval echo configure:3150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3150 ac_err=`grep -v '^ *+' conftest.out`
3151 if test -z "$ac_err"; then
3153 eval "ac_cv_header_$ac_safe=yes"
3156 echo "configure: failed program was:" >&5
3157 cat conftest.$ac_ext >&5
3159 eval "ac_cv_header_$ac_safe=no"
3163 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3164 echo "$ac_t""yes" 1>&6
3166 cat >> confdefs.h <<\EOF
3167 #define HAVE_SGI_SAVER_EXTENSION 1
3171 echo "$ac_t""no" 1>&6
3174 CPPFLAGS="$ac_save_CPPFLAGS"
3176 elif test $with_sgi != no; then
3177 echo "error: must be yes or no: --with-sgi-ext=$with_sgi"
3181 # Check for the MIT-SCREEN-SAVER server extension header,
3182 # unless the SGI extension has already been found.
3185 with_mit_req=unspecified
3186 # Check whether --with-mit-ext or --without-mit-ext was given.
3187 if test "${with_mit_ext+set}" = set; then
3188 withval="$with_mit_ext"
3189 with_mit="$withval"; with_mit_req="$withval"
3194 if test $have_sgi != yes; then
3195 if test $with_mit = yes; then
3197 ac_save_CPPFLAGS="$CPPFLAGS"
3198 if test \! -z "$includedir" ; then
3199 CPPFLAGS="$CPPFLAGS -I$includedir"
3201 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3202 ac_safe=`echo "X11/extensions/scrnsaver.h" | sed 'y%./+-%__p_%'`
3203 echo $ac_n "checking for X11/extensions/scrnsaver.h""... $ac_c" 1>&6
3204 echo "configure:3205: checking for X11/extensions/scrnsaver.h" >&5
3205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3206 echo $ac_n "(cached) $ac_c" 1>&6
3208 cat > conftest.$ac_ext <<EOF
3209 #line 3210 "configure"
3210 #include "confdefs.h"
3211 #include <X11/extensions/scrnsaver.h>
3213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3214 { (eval echo configure:3215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3215 ac_err=`grep -v '^ *+' conftest.out`
3216 if test -z "$ac_err"; then
3218 eval "ac_cv_header_$ac_safe=yes"
3221 echo "configure: failed program was:" >&5
3222 cat conftest.$ac_ext >&5
3224 eval "ac_cv_header_$ac_safe=no"
3228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3229 echo "$ac_t""yes" 1>&6
3232 echo "$ac_t""no" 1>&6
3235 CPPFLAGS="$ac_save_CPPFLAGS"
3237 # Now check to see if it's really in the library; XF86Free-3.3 ships
3238 # scrnsaver.h, but doesn't include the code in libXext.a, the idiots!
3240 if test $have_mit = yes; then
3242 ac_save_CPPFLAGS="$CPPFLAGS"
3243 ac_save_LDFLAGS="$LDFLAGS"
3244 if test \! -z "$includedir" ; then
3245 CPPFLAGS="$CPPFLAGS -I$includedir"
3247 if test \! -z "$includedir" ; then
3248 CPPFLAGS="$CPPFLAGS -I$includedir"
3250 if test \! -z "$libdir" ; then
3251 LDFLAGS="$LDFLAGS -L$libdir"
3253 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3254 if test \! -z "$x_libraries" ; then
3255 LDFLAGS="$LDFLAGS -L$x_libraries"
3257 echo $ac_n "checking for XScreenSaverRegister in -lXext""... $ac_c" 1>&6
3258 echo "configure:3259: checking for XScreenSaverRegister in -lXext" >&5
3259 ac_lib_var=`echo Xext'_'XScreenSaverRegister | sed 'y%./+-%__p_%'`
3260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3263 ac_save_LIBS="$LIBS"
3264 LIBS="-lXext -lm $LIBS"
3265 cat > conftest.$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3268 /* Override any gcc2 internal prototype to avoid an error. */
3269 /* We use char because int might match the return type of a gcc2
3270 builtin and then its argument prototype would still apply. */
3271 char XScreenSaverRegister();
3274 XScreenSaverRegister()
3277 if { (eval echo configure:3278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3279 eval "ac_cv_lib_$ac_lib_var=yes"
3281 echo "configure: failed program was:" >&5
3282 cat conftest.$ac_ext >&5
3284 eval "ac_cv_lib_$ac_lib_var=no"
3287 LIBS="$ac_save_LIBS"
3290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3291 echo "$ac_t""yes" 1>&6
3292 ac_tr_lib=HAVE_LIB`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3293 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3294 cat >> confdefs.h <<EOF
3295 #define $ac_tr_lib 1
3301 echo "$ac_t""no" 1>&6
3305 CPPFLAGS="$ac_save_CPPFLAGS"
3306 LDFLAGS="$ac_save_LDFLAGS"
3308 if test $have_mit = no; then
3309 # Fuck! Looks like XF86Free-3.3 actually puts it in XExExt instead
3310 # of in Xext. Thank you master, may I have another.
3312 ac_save_CPPFLAGS="$CPPFLAGS"
3313 ac_save_LDFLAGS="$LDFLAGS"
3314 if test \! -z "$includedir" ; then
3315 CPPFLAGS="$CPPFLAGS -I$includedir"
3317 if test \! -z "$includedir" ; then
3318 CPPFLAGS="$CPPFLAGS -I$includedir"
3320 if test \! -z "$libdir" ; then
3321 LDFLAGS="$LDFLAGS -L$libdir"
3323 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3324 if test \! -z "$x_libraries" ; then
3325 LDFLAGS="$LDFLAGS -L$x_libraries"
3327 echo $ac_n "checking for XScreenSaverRegister in -lXExExt""... $ac_c" 1>&6
3328 echo "configure:3329: checking for XScreenSaverRegister in -lXExExt" >&5
3329 ac_lib_var=`echo XExExt'_'XScreenSaverRegister | sed 'y%./+-%__p_%'`
3330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3331 echo $ac_n "(cached) $ac_c" 1>&6
3333 ac_save_LIBS="$LIBS"
3334 LIBS="-lXExExt -lX11 -lXext -lm $LIBS"
3335 cat > conftest.$ac_ext <<EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3338 /* Override any gcc2 internal prototype to avoid an error. */
3339 /* We use char because int might match the return type of a gcc2
3340 builtin and then its argument prototype would still apply. */
3341 char XScreenSaverRegister();
3344 XScreenSaverRegister()
3347 if { (eval echo configure:3348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3349 eval "ac_cv_lib_$ac_lib_var=yes"
3351 echo "configure: failed program was:" >&5
3352 cat conftest.$ac_ext >&5
3354 eval "ac_cv_lib_$ac_lib_var=no"
3357 LIBS="$ac_save_LIBS"
3360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3361 echo "$ac_t""yes" 1>&6
3362 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXExExt"
3364 echo "$ac_t""no" 1>&6
3367 CPPFLAGS="$ac_save_CPPFLAGS"
3368 LDFLAGS="$ac_save_LDFLAGS"
3371 if test $have_mit = no; then
3372 # Double fuck! Looks like some versions of XFree86 (whichever version
3373 # it is that comes with RedHat Linux 2.0 -- I can't find a version
3374 # number) put this garbage in Xss instead of Xext. Thank you master,
3375 # may I have another.
3377 ac_save_CPPFLAGS="$CPPFLAGS"
3378 ac_save_LDFLAGS="$LDFLAGS"
3379 if test \! -z "$includedir" ; then
3380 CPPFLAGS="$CPPFLAGS -I$includedir"
3382 if test \! -z "$includedir" ; then
3383 CPPFLAGS="$CPPFLAGS -I$includedir"
3385 if test \! -z "$libdir" ; then
3386 LDFLAGS="$LDFLAGS -L$libdir"
3388 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3389 if test \! -z "$x_libraries" ; then
3390 LDFLAGS="$LDFLAGS -L$x_libraries"
3392 echo $ac_n "checking for XScreenSaverRegister in -lXss""... $ac_c" 1>&6
3393 echo "configure:3394: checking for XScreenSaverRegister in -lXss" >&5
3394 ac_lib_var=`echo Xss'_'XScreenSaverRegister | sed 'y%./+-%__p_%'`
3395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3398 ac_save_LIBS="$LIBS"
3399 LIBS="-lXss -lX11 -lXext -lm $LIBS"
3400 cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 /* Override any gcc2 internal prototype to avoid an error. */
3404 /* We use char because int might match the return type of a gcc2
3405 builtin and then its argument prototype would still apply. */
3406 char XScreenSaverRegister();
3409 XScreenSaverRegister()
3412 if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3414 eval "ac_cv_lib_$ac_lib_var=yes"
3416 echo "configure: failed program was:" >&5
3417 cat conftest.$ac_ext >&5
3419 eval "ac_cv_lib_$ac_lib_var=no"
3422 LIBS="$ac_save_LIBS"
3425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3426 echo "$ac_t""yes" 1>&6
3427 have_mit=yes; SAVER_LIBS="$SAVER_LIBS -lXss"
3429 echo "$ac_t""no" 1>&6
3432 CPPFLAGS="$ac_save_CPPFLAGS"
3433 LDFLAGS="$ac_save_LDFLAGS"
3436 if test $have_mit = yes; then
3437 cat >> confdefs.h <<\EOF
3438 #define HAVE_MIT_SAVER_EXTENSION 1
3445 elif test $with_mit != no; then
3446 echo "error: must be yes or no: --with-mit-ext=$with_mit"
3452 # Check for the XIDLE server extension header.
3455 with_xidle_req=unspecified
3456 # Check whether --with-xidle-ext or --without-xidle-ext was given.
3457 if test "${with_xidle_ext+set}" = set; then
3458 withval="$with_xidle_ext"
3459 with_xidle="$withval"; with_xidle_req="$withval"
3464 if test $with_xidle = yes; then
3466 ac_save_CPPFLAGS="$CPPFLAGS"
3467 if test \! -z "$includedir" ; then
3468 CPPFLAGS="$CPPFLAGS -I$includedir"
3470 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3471 ac_safe=`echo "X11/extensions/xidle.h" | sed 'y%./+-%__p_%'`
3472 echo $ac_n "checking for X11/extensions/xidle.h""... $ac_c" 1>&6
3473 echo "configure:3474: checking for X11/extensions/xidle.h" >&5
3474 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3475 echo $ac_n "(cached) $ac_c" 1>&6
3477 cat > conftest.$ac_ext <<EOF
3478 #line 3479 "configure"
3479 #include "confdefs.h"
3480 #include <X11/extensions/xidle.h>
3482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3483 { (eval echo configure:3484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3484 ac_err=`grep -v '^ *+' conftest.out`
3485 if test -z "$ac_err"; then
3487 eval "ac_cv_header_$ac_safe=yes"
3490 echo "configure: failed program was:" >&5
3491 cat conftest.$ac_ext >&5
3493 eval "ac_cv_header_$ac_safe=no"
3497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3498 echo "$ac_t""yes" 1>&6
3500 cat >> confdefs.h <<\EOF
3501 #define HAVE_XIDLE_EXTENSION 1
3505 echo "$ac_t""no" 1>&6
3508 CPPFLAGS="$ac_save_CPPFLAGS"
3509 elif test $with_xidle != no; then
3510 echo "error: must be yes or no: --with-xidle-ext=$with_xidle"
3515 # Check for the XSHM server extension header.
3518 with_xshm_req=unspecified
3519 # Check whether --with-xshm-ext or --without-xshm-ext was given.
3520 if test "${with_xshm_ext+set}" = set; then
3521 withval="$with_xshm_ext"
3522 with_xshm="$withval"; with_xshm_req="$withval"
3527 if test $with_xshm = yes; then
3529 # first check for Xshm.h.
3531 ac_save_CPPFLAGS="$CPPFLAGS"
3532 if test \! -z "$includedir" ; then
3533 CPPFLAGS="$CPPFLAGS -I$includedir"
3535 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3536 ac_safe=`echo "X11/extensions/XShm.h" | sed 'y%./+-%__p_%'`
3537 echo $ac_n "checking for X11/extensions/XShm.h""... $ac_c" 1>&6
3538 echo "configure:3539: checking for X11/extensions/XShm.h" >&5
3539 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3542 cat > conftest.$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3545 #include <X11/extensions/XShm.h>
3547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3548 { (eval echo configure:3549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3549 ac_err=`grep -v '^ *+' conftest.out`
3550 if test -z "$ac_err"; then
3552 eval "ac_cv_header_$ac_safe=yes"
3555 echo "configure: failed program was:" >&5
3556 cat conftest.$ac_ext >&5
3558 eval "ac_cv_header_$ac_safe=no"
3562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3563 echo "$ac_t""yes" 1>&6
3566 echo "$ac_t""no" 1>&6
3569 CPPFLAGS="$ac_save_CPPFLAGS"
3571 # if that succeeded, then check for sys/ipc.h.
3572 if test $have_xshm = yes; then
3575 ac_save_CPPFLAGS="$CPPFLAGS"
3576 if test \! -z "$includedir" ; then
3577 CPPFLAGS="$CPPFLAGS -I$includedir"
3579 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3580 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
3581 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
3582 echo "configure:3583: checking for sys/ipc.h" >&5
3583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3586 cat > conftest.$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3589 #include <sys/ipc.h>
3591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3592 { (eval echo configure:3593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3593 ac_err=`grep -v '^ *+' conftest.out`
3594 if test -z "$ac_err"; then
3596 eval "ac_cv_header_$ac_safe=yes"
3599 echo "configure: failed program was:" >&5
3600 cat conftest.$ac_ext >&5
3602 eval "ac_cv_header_$ac_safe=no"
3606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3607 echo "$ac_t""yes" 1>&6
3610 echo "$ac_t""no" 1>&6
3613 CPPFLAGS="$ac_save_CPPFLAGS"
3616 # if that succeeded, then check for sys/shm.h.
3617 if test $have_xshm = yes; then
3620 ac_save_CPPFLAGS="$CPPFLAGS"
3621 if test \! -z "$includedir" ; then
3622 CPPFLAGS="$CPPFLAGS -I$includedir"
3624 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3625 ac_safe=`echo "sys/shm.h" | sed 'y%./+-%__p_%'`
3626 echo $ac_n "checking for sys/shm.h""... $ac_c" 1>&6
3627 echo "configure:3628: checking for sys/shm.h" >&5
3628 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3634 #include <sys/shm.h>
3636 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3637 { (eval echo configure:3638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3638 ac_err=`grep -v '^ *+' conftest.out`
3639 if test -z "$ac_err"; then
3641 eval "ac_cv_header_$ac_safe=yes"
3644 echo "configure: failed program was:" >&5
3645 cat conftest.$ac_ext >&5
3647 eval "ac_cv_header_$ac_safe=no"
3651 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3652 echo "$ac_t""yes" 1>&6
3655 echo "$ac_t""no" 1>&6
3658 CPPFLAGS="$ac_save_CPPFLAGS"
3661 # AIX is pathological, as usual: apparently it's normal for the Xshm headers
3662 # to exist, but the library code to not exist. And even better, the library
3663 # code is in its own library: libXextSam.a. So, if we're on AIX, and that
3664 # lib doesn't exist, give up.
3670 ac_save_CPPFLAGS="$CPPFLAGS"
3671 ac_save_LDFLAGS="$LDFLAGS"
3672 if test \! -z "$includedir" ; then
3673 CPPFLAGS="$CPPFLAGS -I$includedir"
3675 if test \! -z "$includedir" ; then
3676 CPPFLAGS="$CPPFLAGS -I$includedir"
3678 if test \! -z "$libdir" ; then
3679 LDFLAGS="$LDFLAGS -L$libdir"
3681 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3682 if test \! -z "$x_libraries" ; then
3683 LDFLAGS="$LDFLAGS -L$x_libraries"
3685 echo $ac_n "checking for XShmQueryExtension in -lXextSam""... $ac_c" 1>&6
3686 echo "configure:3687: checking for XShmQueryExtension in -lXextSam" >&5
3687 ac_lib_var=`echo XextSam'_'XShmQueryExtension | sed 'y%./+-%__p_%'`
3688 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3691 ac_save_LIBS="$LIBS"
3692 LIBS="-lXextSam -lX11 -lXext -lm $LIBS"
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3696 /* Override any gcc2 internal prototype to avoid an error. */
3697 /* We use char because int might match the return type of a gcc2
3698 builtin and then its argument prototype would still apply. */
3699 char XShmQueryExtension();
3702 XShmQueryExtension()
3705 if { (eval echo configure:3706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3707 eval "ac_cv_lib_$ac_lib_var=yes"
3709 echo "configure: failed program was:" >&5
3710 cat conftest.$ac_ext >&5
3712 eval "ac_cv_lib_$ac_lib_var=no"
3715 LIBS="$ac_save_LIBS"
3718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3719 echo "$ac_t""yes" 1>&6
3720 have_xshm=yes; SAVER_LIBS="$SAVER_LIBS -lXextSam"
3722 echo "$ac_t""no" 1>&6
3725 CPPFLAGS="$ac_save_CPPFLAGS"
3726 LDFLAGS="$ac_save_LDFLAGS"
3730 # if that succeeded, then we've really got it.
3731 if test $have_xshm = yes; then
3732 cat >> confdefs.h <<\EOF
3733 #define HAVE_XSHM_EXTENSION 1
3738 elif test $with_xshm != no; then
3739 echo "error: must be yes or no: --with-xshm-ext=$with_xshm"
3744 # Check for the SGI-VIDEO-CONTROL server extension header.
3747 with_sgivc_req=unspecified
3748 # Check whether --with-sgivc-ext or --without-sgivc-ext was given.
3749 if test "${with_sgivc_ext+set}" = set; then
3750 withval="$with_sgivc_ext"
3751 with_sgivc="$withval"; with_sgivc_req="$withval"
3756 if test $with_sgivc = yes; then
3758 # first check for XSGIvc.h
3760 ac_save_CPPFLAGS="$CPPFLAGS"
3761 if test \! -z "$includedir" ; then
3762 CPPFLAGS="$CPPFLAGS -I$includedir"
3764 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3765 ac_safe=`echo "X11/extensions/XSGIvc.h" | sed 'y%./+-%__p_%'`
3766 echo $ac_n "checking for X11/extensions/XSGIvc.h""... $ac_c" 1>&6
3767 echo "configure:3768: checking for X11/extensions/XSGIvc.h" >&5
3768 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3769 echo $ac_n "(cached) $ac_c" 1>&6
3771 cat > conftest.$ac_ext <<EOF
3772 #line 3773 "configure"
3773 #include "confdefs.h"
3774 #include <X11/extensions/XSGIvc.h>
3776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3777 { (eval echo configure:3778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3778 ac_err=`grep -v '^ *+' conftest.out`
3779 if test -z "$ac_err"; then
3781 eval "ac_cv_header_$ac_safe=yes"
3784 echo "configure: failed program was:" >&5
3785 cat conftest.$ac_ext >&5
3787 eval "ac_cv_header_$ac_safe=no"
3791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3792 echo "$ac_t""yes" 1>&6
3795 echo "$ac_t""no" 1>&6
3798 CPPFLAGS="$ac_save_CPPFLAGS"
3800 # if that succeeded, then check for the -lXsgivc
3801 if test $have_sgivc = yes; then
3804 ac_save_CPPFLAGS="$CPPFLAGS"
3805 ac_save_LDFLAGS="$LDFLAGS"
3806 if test \! -z "$includedir" ; then
3807 CPPFLAGS="$CPPFLAGS -I$includedir"
3809 if test \! -z "$includedir" ; then
3810 CPPFLAGS="$CPPFLAGS -I$includedir"
3812 if test \! -z "$libdir" ; then
3813 LDFLAGS="$LDFLAGS -L$libdir"
3815 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3816 if test \! -z "$x_libraries" ; then
3817 LDFLAGS="$LDFLAGS -L$x_libraries"
3819 echo $ac_n "checking for XSGIvcQueryGammaMap in -lXsgivc""... $ac_c" 1>&6
3820 echo "configure:3821: checking for XSGIvcQueryGammaMap in -lXsgivc" >&5
3821 ac_lib_var=`echo Xsgivc'_'XSGIvcQueryGammaMap | sed 'y%./+-%__p_%'`
3822 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3823 echo $ac_n "(cached) $ac_c" 1>&6
3825 ac_save_LIBS="$LIBS"
3826 LIBS="-lXsgivc -lXext -lX11 $LIBS"
3827 cat > conftest.$ac_ext <<EOF
3828 #line 3829 "configure"
3829 #include "confdefs.h"
3830 /* Override any gcc2 internal prototype to avoid an error. */
3831 /* We use char because int might match the return type of a gcc2
3832 builtin and then its argument prototype would still apply. */
3833 char XSGIvcQueryGammaMap();
3836 XSGIvcQueryGammaMap()
3839 if { (eval echo configure:3840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3841 eval "ac_cv_lib_$ac_lib_var=yes"
3843 echo "configure: failed program was:" >&5
3844 cat conftest.$ac_ext >&5
3846 eval "ac_cv_lib_$ac_lib_var=no"
3849 LIBS="$ac_save_LIBS"
3852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3853 echo "$ac_t""yes" 1>&6
3854 have_sgivc=yes; SAVER_LIBS="$SAVER_LIBS -lXsgivc"
3856 echo "$ac_t""no" 1>&6
3859 CPPFLAGS="$ac_save_CPPFLAGS"
3860 LDFLAGS="$ac_save_LDFLAGS"
3863 # if that succeeded, then we've really got it.
3864 if test $have_sgivc = yes; then
3865 cat >> confdefs.h <<\EOF
3866 #define HAVE_SGI_VC_EXTENSION 1
3871 elif test $with_sgivc != no; then
3872 echo "error: must be yes or no: --with-sgivc-ext=$with_sgivc"
3877 # Check for the DPMS server extension header.
3880 with_dpms_req=unspecified
3881 # Check whether --with-dpms-ext or --without-dpms-ext was given.
3882 if test "${with_dpms_ext+set}" = set; then
3883 withval="$with_dpms_ext"
3884 with_dpms="$withval"; with_dpms_req="$withval"
3889 if test $with_dpms = yes; then
3891 # first check for dpms.h
3893 ac_save_CPPFLAGS="$CPPFLAGS"
3894 if test \! -z "$includedir" ; then
3895 CPPFLAGS="$CPPFLAGS -I$includedir"
3897 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3898 ac_safe=`echo "X11/extensions/dpms.h" | sed 'y%./+-%__p_%'`
3899 echo $ac_n "checking for X11/extensions/dpms.h""... $ac_c" 1>&6
3900 echo "configure:3901: checking for X11/extensions/dpms.h" >&5
3901 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3904 cat > conftest.$ac_ext <<EOF
3905 #line 3906 "configure"
3906 #include "confdefs.h"
3907 #include <X11/extensions/dpms.h>
3909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3910 { (eval echo configure:3911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3911 ac_err=`grep -v '^ *+' conftest.out`
3912 if test -z "$ac_err"; then
3914 eval "ac_cv_header_$ac_safe=yes"
3917 echo "configure: failed program was:" >&5
3918 cat conftest.$ac_ext >&5
3920 eval "ac_cv_header_$ac_safe=no"
3924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3925 echo "$ac_t""yes" 1>&6
3928 echo "$ac_t""no" 1>&6
3931 CPPFLAGS="$ac_save_CPPFLAGS"
3933 # if that succeeded, then check for the -lXdpms
3934 if test $have_dpms = yes; then
3937 ac_save_CPPFLAGS="$CPPFLAGS"
3938 ac_save_LDFLAGS="$LDFLAGS"
3939 if test \! -z "$includedir" ; then
3940 CPPFLAGS="$CPPFLAGS -I$includedir"
3942 if test \! -z "$includedir" ; then
3943 CPPFLAGS="$CPPFLAGS -I$includedir"
3945 if test \! -z "$libdir" ; then
3946 LDFLAGS="$LDFLAGS -L$libdir"
3948 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3949 if test \! -z "$x_libraries" ; then
3950 LDFLAGS="$LDFLAGS -L$x_libraries"
3952 echo $ac_n "checking for DPMSInfo in -lXdpms""... $ac_c" 1>&6
3953 echo "configure:3954: checking for DPMSInfo in -lXdpms" >&5
3954 ac_lib_var=`echo Xdpms'_'DPMSInfo | sed 'y%./+-%__p_%'`
3955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3956 echo $ac_n "(cached) $ac_c" 1>&6
3958 ac_save_LIBS="$LIBS"
3959 LIBS="-lXdpms -lXext -lX11 $LIBS"
3960 cat > conftest.$ac_ext <<EOF
3961 #line 3962 "configure"
3962 #include "confdefs.h"
3963 /* Override any gcc2 internal prototype to avoid an error. */
3964 /* We use char because int might match the return type of a gcc2
3965 builtin and then its argument prototype would still apply. */
3972 if { (eval echo configure:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3974 eval "ac_cv_lib_$ac_lib_var=yes"
3976 echo "configure: failed program was:" >&5
3977 cat conftest.$ac_ext >&5
3979 eval "ac_cv_lib_$ac_lib_var=no"
3982 LIBS="$ac_save_LIBS"
3985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3986 echo "$ac_t""yes" 1>&6
3987 have_dpms=yes; SAVER_LIBS="$SAVER_LIBS -lXdpms"
3989 echo "$ac_t""no" 1>&6
3992 CPPFLAGS="$ac_save_CPPFLAGS"
3993 LDFLAGS="$ac_save_LDFLAGS"
3996 # if that succeeded, then we've really got it.
3997 if test $have_dpms = yes; then
3998 cat >> confdefs.h <<\EOF
3999 #define HAVE_DPMS_EXTENSION 1
4004 elif test $with_dpms != no; then
4005 echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
4011 # Check for Motif and Athena --with and --without arguments.
4016 with_motif_req=unspecified
4017 with_athena_req=unspecified
4019 # Check whether --with-motif or --without-motif was given.
4020 if test "${with_motif+set}" = set; then
4021 withval="$with_motif"
4022 with_motif="$withval"; with_motif_req="$withval"
4028 # Check whether --with-athena or --without-athena was given.
4029 if test "${with_athena+set}" = set; then
4030 withval="$with_athena"
4031 with_athena="$withval"; with_athena_req="$withval"
4037 if test $with_motif != yes -a $with_motif != no ; then
4038 echo "error: must be yes or no: --with-motif=$with_motif"
4042 if test $with_athena != yes -a $with_athena != no ; then
4043 echo "error: must be yes or no: --with-athena=$with_athena"
4048 # Saying --without-motif is the same as saying --with-athena.
4049 if test $with_motif_req = no ; then
4054 # Saying --without-athena is the same as saying --with-motif.
4055 if test $with_athena_req = no ; then
4060 # Check for Motif and Athena headers.
4064 ac_save_CPPFLAGS="$CPPFLAGS"
4065 if test \! -z "$includedir" ; then
4066 CPPFLAGS="$CPPFLAGS -I$includedir"
4068 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4069 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
4070 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
4071 echo "configure:4072: checking for Xm/Xm.h" >&5
4072 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6
4075 cat > conftest.$ac_ext <<EOF
4076 #line 4077 "configure"
4077 #include "confdefs.h"
4080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4081 { (eval echo configure:4082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4082 ac_err=`grep -v '^ *+' conftest.out`
4083 if test -z "$ac_err"; then
4085 eval "ac_cv_header_$ac_safe=yes"
4088 echo "configure: failed program was:" >&5
4089 cat conftest.$ac_ext >&5
4091 eval "ac_cv_header_$ac_safe=no"
4095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4096 echo "$ac_t""yes" 1>&6
4098 cat >> confdefs.h <<\EOF
4099 #define HAVE_MOTIF 1
4102 SAVER_LIBS="-lXm $SAVER_LIBS"
4104 echo "$ac_t""no" 1>&6
4107 CPPFLAGS="$ac_save_CPPFLAGS"
4114 ac_save_CPPFLAGS="$CPPFLAGS"
4115 if test \! -z "$includedir" ; then
4116 CPPFLAGS="$CPPFLAGS -I$includedir"
4118 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4119 ac_safe=`echo "X11/Xaw/Dialog.h" | sed 'y%./+-%__p_%'`
4120 echo $ac_n "checking for X11/Xaw/Dialog.h""... $ac_c" 1>&6
4121 echo "configure:4122: checking for X11/Xaw/Dialog.h" >&5
4122 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4123 echo $ac_n "(cached) $ac_c" 1>&6
4125 cat > conftest.$ac_ext <<EOF
4126 #line 4127 "configure"
4127 #include "confdefs.h"
4128 #include <X11/Xaw/Dialog.h>
4130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4131 { (eval echo configure:4132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4132 ac_err=`grep -v '^ *+' conftest.out`
4133 if test -z "$ac_err"; then
4135 eval "ac_cv_header_$ac_safe=yes"
4138 echo "configure: failed program was:" >&5
4139 cat conftest.$ac_ext >&5
4141 eval "ac_cv_header_$ac_safe=no"
4145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4146 echo "$ac_t""yes" 1>&6
4149 echo "$ac_t""no" 1>&6
4152 CPPFLAGS="$ac_save_CPPFLAGS"
4154 ac_save_CPPFLAGS="$CPPFLAGS"
4155 ac_save_LDFLAGS="$LDFLAGS"
4156 if test \! -z "$includedir" ; then
4157 CPPFLAGS="$CPPFLAGS -I$includedir"
4159 if test \! -z "$includedir" ; then
4160 CPPFLAGS="$CPPFLAGS -I$includedir"
4162 if test \! -z "$libdir" ; then
4163 LDFLAGS="$LDFLAGS -L$libdir"
4165 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4166 if test \! -z "$x_libraries" ; then
4167 LDFLAGS="$LDFLAGS -L$x_libraries"
4169 echo $ac_n "checking for Xaw3dComputeTopShadowRGB in -lXaw3d""... $ac_c" 1>&6
4170 echo "configure:4171: checking for Xaw3dComputeTopShadowRGB in -lXaw3d" >&5
4171 ac_lib_var=`echo Xaw3d'_'Xaw3dComputeTopShadowRGB | sed 'y%./+-%__p_%'`
4172 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4173 echo $ac_n "(cached) $ac_c" 1>&6
4175 ac_save_LIBS="$LIBS"
4176 LIBS="-lXaw3d -lXt -lXmu -lXext -lX11 $LIBS"
4177 cat > conftest.$ac_ext <<EOF
4178 #line 4179 "configure"
4179 #include "confdefs.h"
4180 /* Override any gcc2 internal prototype to avoid an error. */
4181 /* We use char because int might match the return type of a gcc2
4182 builtin and then its argument prototype would still apply. */
4183 char Xaw3dComputeTopShadowRGB();
4186 Xaw3dComputeTopShadowRGB()
4189 if { (eval echo configure:4190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4191 eval "ac_cv_lib_$ac_lib_var=yes"
4193 echo "configure: failed program was:" >&5
4194 cat conftest.$ac_ext >&5
4196 eval "ac_cv_lib_$ac_lib_var=no"
4199 LIBS="$ac_save_LIBS"
4202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4203 echo "$ac_t""yes" 1>&6
4204 have_athena=yes; have_athena3d=yes
4206 echo "$ac_t""no" 1>&6
4209 CPPFLAGS="$ac_save_CPPFLAGS"
4210 LDFLAGS="$ac_save_LDFLAGS"
4212 if test $have_athena3d = yes; then
4213 SAVER_LIBS="-lXaw3d $SAVER_LIBS"
4214 elif test $have_athena = yes; then
4215 SAVER_LIBS="-lXaw $SAVER_LIBS"
4220 # If they asked for both motif and athena, check motif then athena.
4221 # If they asked for only motif, check motif then athena.
4222 # If they asked for only athena, check athena then motif.
4223 # If they asked for neither, check motif then athena.
4225 proselytize_motif=yes
4226 if test $with_motif = yes; then
4227 # asked for both, or for motif only
4229 if test $have_motif = yes; then
4236 elif test $with_athena = yes; then
4237 # asked for athena only
4239 if test $have_athena = yes; then
4241 proselytize_motif=no
4249 if test $have_motif = yes; then
4257 if test $have_motif = yes; then
4258 proselytize_motif=no
4261 # If we have Athena, check whether it's a version that includes
4262 # XawViewportSetCoordinates in Viewport.h (R3 (or R4?) don't.)
4263 if test $have_athena = yes ; then
4264 echo $ac_n "checking for XawViewportSetCoordinates in Viewport.h""... $ac_c" 1>&6
4265 echo "configure:4266: checking for XawViewportSetCoordinates in Viewport.h" >&5
4266 if eval "test \"`echo '$''{'ac_cv_have_XawViewportSetCoordinates'+set}'`\" = set"; then
4267 echo $ac_n "(cached) $ac_c" 1>&6
4269 ac_cv_have_XawViewportSetCoordinates=no
4271 ac_save_CPPFLAGS="$CPPFLAGS"
4272 if test \! -z "$includedir" ; then
4273 CPPFLAGS="$CPPFLAGS -I$includedir"
4275 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4276 cat > conftest.$ac_ext <<EOF
4277 #line 4278 "configure"
4278 #include "confdefs.h"
4279 #include <X11/Xaw/Viewport.h>
4281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4282 egrep "XawViewportSetCoordinates" >/dev/null 2>&1; then
4284 ac_cv_have_XawViewportSetCoordinates=yes
4288 CPPFLAGS="$ac_save_CPPFLAGS"
4291 echo "$ac_t""$ac_cv_have_XawViewportSetCoordinates" 1>&6
4292 if test $ac_cv_have_XawViewportSetCoordinates = yes ; then
4293 cat >> confdefs.h <<\EOF
4294 #define HAVE_XawViewportSetCoordinates 1
4301 # If we have Motif, check whether it's really LessTif.
4304 if test $have_motif = yes ; then
4305 echo $ac_n "checking whether Motif is really LessTif""... $ac_c" 1>&6
4306 echo "configure:4307: checking whether Motif is really LessTif" >&5
4307 if eval "test \"`echo '$''{'ac_cv_have_lesstif'+set}'`\" = set"; then
4308 echo $ac_n "(cached) $ac_c" 1>&6
4311 ac_save_CPPFLAGS="$CPPFLAGS"
4312 if test \! -z "$includedir" ; then
4313 CPPFLAGS="$CPPFLAGS -I$includedir"
4315 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4316 cat > conftest.$ac_ext <<EOF
4317 #line 4318 "configure"
4318 #include "confdefs.h"
4321 long vers = LesstifVersion;
4324 if { (eval echo configure:4325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4326 ac_cv_have_lesstif=yes
4328 echo "configure: failed program was:" >&5
4329 cat conftest.$ac_ext >&5
4331 ac_cv_have_lesstif=no
4334 CPPFLAGS="$ac_save_CPPFLAGS"
4337 echo "$ac_t""$ac_cv_have_lesstif" 1>&6
4338 have_lesstif=$ac_cv_have_lesstif
4342 unset ac_cv_good_lesstif
4345 if test $have_lesstif = yes ; then
4346 # It must be at least "GNU Lesstif 0.82".
4347 # #### If you change this, also sync the warning message lower down.
4348 echo $ac_n "checking whether LessTif is of a recent enough vintage""... $ac_c" 1>&6
4349 echo "configure:4350: checking whether LessTif is of a recent enough vintage" >&5
4350 if eval "test \"`echo '$''{'ac_cv_good_lesstif'+set}'`\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4354 ac_save_CPPFLAGS="$CPPFLAGS"
4355 if test \! -z "$includedir" ; then
4356 CPPFLAGS="$CPPFLAGS -I$includedir"
4358 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4359 if test "$cross_compiling" = yes; then
4360 # cross compiling? Make an ass out of umption.
4361 ac_cv_good_lesstif=yes
4363 cat > conftest.$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4367 int main() { exit(LesstifVersion < 82); }
4369 if { (eval echo configure:4370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4371 ac_cv_good_lesstif=yes
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4376 ac_cv_good_lesstif=no
4381 CPPFLAGS="$ac_save_CPPFLAGS"
4384 echo "$ac_t""$ac_cv_good_lesstif" 1>&6
4385 good_lesstif=$ac_cv_good_lesstif
4389 # Some versions of Motif (2.1.0, at least) require -lXp, the "X Printing
4390 # Extension". Why this extension isn't in -lXext with all the others,
4394 if test $have_motif = yes ; then
4397 ac_save_CPPFLAGS="$CPPFLAGS"
4398 ac_save_LDFLAGS="$LDFLAGS"
4399 if test \! -z "$includedir" ; then
4400 CPPFLAGS="$CPPFLAGS -I$includedir"
4402 if test \! -z "$includedir" ; then
4403 CPPFLAGS="$CPPFLAGS -I$includedir"
4405 if test \! -z "$libdir" ; then
4406 LDFLAGS="$LDFLAGS -L$libdir"
4408 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4409 if test \! -z "$x_libraries" ; then
4410 LDFLAGS="$LDFLAGS -L$x_libraries"
4412 echo $ac_n "checking for XpQueryExtension in -lXp""... $ac_c" 1>&6
4413 echo "configure:4414: checking for XpQueryExtension in -lXp" >&5
4414 ac_lib_var=`echo Xp'_'XpQueryExtension | sed 'y%./+-%__p_%'`
4415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4416 echo $ac_n "(cached) $ac_c" 1>&6
4418 ac_save_LIBS="$LIBS"
4419 LIBS="-lXp -lX11 -lXext -lm $LIBS"
4420 cat > conftest.$ac_ext <<EOF
4421 #line 4422 "configure"
4422 #include "confdefs.h"
4423 /* Override any gcc2 internal prototype to avoid an error. */
4424 /* We use char because int might match the return type of a gcc2
4425 builtin and then its argument prototype would still apply. */
4426 char XpQueryExtension();
4432 if { (eval echo configure:4433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4434 eval "ac_cv_lib_$ac_lib_var=yes"
4436 echo "configure: failed program was:" >&5
4437 cat conftest.$ac_ext >&5
4439 eval "ac_cv_lib_$ac_lib_var=no"
4442 LIBS="$ac_save_LIBS"
4445 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4446 echo "$ac_t""yes" 1>&6
4447 have_xp_ext=yes; SAVER_LIBS="$SAVER_LIBS -lXp"
4449 echo "$ac_t""no" 1>&6
4452 CPPFLAGS="$ac_save_CPPFLAGS"
4453 LDFLAGS="$ac_save_LDFLAGS"
4457 # check for XPM header.
4460 with_xpm_req=unspecified
4461 # Check whether --with-xpm or --without-xpm was given.
4462 if test "${with_xpm+set}" = set; then
4464 with_xpm="$withval"; with_xpm_req="$withval"
4469 if test $with_xpm = yes; then
4471 ac_save_CPPFLAGS="$CPPFLAGS"
4472 if test \! -z "$includedir" ; then
4473 CPPFLAGS="$CPPFLAGS -I$includedir"
4475 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4476 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4477 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4478 echo "configure:4479: checking for X11/xpm.h" >&5
4479 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4480 echo $ac_n "(cached) $ac_c" 1>&6
4482 cat > conftest.$ac_ext <<EOF
4483 #line 4484 "configure"
4484 #include "confdefs.h"
4485 #include <X11/xpm.h>
4487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4488 { (eval echo configure:4489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4489 ac_err=`grep -v '^ *+' conftest.out`
4490 if test -z "$ac_err"; then
4492 eval "ac_cv_header_$ac_safe=yes"
4495 echo "configure: failed program was:" >&5
4496 cat conftest.$ac_ext >&5
4498 eval "ac_cv_header_$ac_safe=no"
4502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4503 echo "$ac_t""yes" 1>&6
4505 cat >> confdefs.h <<\EOF
4511 echo "$ac_t""no" 1>&6
4514 CPPFLAGS="$ac_save_CPPFLAGS"
4515 elif test $with_xpm != no; then
4516 echo "error: must be yes or no: --with-xpm=$with_xpm"
4521 # check for the GL header
4524 with_gl_req=unspecified
4525 # Check whether --with-gl or --without-gl was given.
4526 if test "${with_gl+set}" = set; then
4528 with_gl="$withval"; with_gl_req="$withval"
4534 if test $with_gl = yes; then
4536 ac_save_CPPFLAGS="$CPPFLAGS"
4537 if test \! -z "$includedir" ; then
4538 CPPFLAGS="$CPPFLAGS -I$includedir"
4540 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4541 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
4542 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
4543 echo "configure:4544: checking for GL/gl.h" >&5
4544 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4545 echo $ac_n "(cached) $ac_c" 1>&6
4547 cat > conftest.$ac_ext <<EOF
4548 #line 4549 "configure"
4549 #include "confdefs.h"
4552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4553 { (eval echo configure:4554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4554 ac_err=`grep -v '^ *+' conftest.out`
4555 if test -z "$ac_err"; then
4557 eval "ac_cv_header_$ac_safe=yes"
4560 echo "configure: failed program was:" >&5
4561 cat conftest.$ac_ext >&5
4563 eval "ac_cv_header_$ac_safe=no"
4567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4568 echo "$ac_t""yes" 1>&6
4571 echo "$ac_t""no" 1>&6
4574 CPPFLAGS="$ac_save_CPPFLAGS"
4575 if test $have_gl = yes ; then
4577 ac_save_CPPFLAGS="$CPPFLAGS"
4578 if test \! -z "$includedir" ; then
4579 CPPFLAGS="$CPPFLAGS -I$includedir"
4581 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4582 ac_safe=`echo "GL/glx.h" | sed 'y%./+-%__p_%'`
4583 echo $ac_n "checking for GL/glx.h""... $ac_c" 1>&6
4584 echo "configure:4585: checking for GL/glx.h" >&5
4585 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4586 echo $ac_n "(cached) $ac_c" 1>&6
4588 cat > conftest.$ac_ext <<EOF
4589 #line 4590 "configure"
4590 #include "confdefs.h"
4593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4594 { (eval echo configure:4595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4595 ac_err=`grep -v '^ *+' conftest.out`
4596 if test -z "$ac_err"; then
4598 eval "ac_cv_header_$ac_safe=yes"
4601 echo "configure: failed program was:" >&5
4602 cat conftest.$ac_ext >&5
4604 eval "ac_cv_header_$ac_safe=no"
4608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4609 echo "$ac_t""yes" 1>&6
4612 echo "$ac_t""no" 1>&6
4615 CPPFLAGS="$ac_save_CPPFLAGS"
4618 # If we have the headers, try and figure out which vendor it's from.
4620 if test $have_gl = yes ; then
4622 cat >> confdefs.h <<\EOF
4628 ac_save_CPPFLAGS="$CPPFLAGS"
4629 if test \! -z "$includedir" ; then
4630 CPPFLAGS="$CPPFLAGS -I$includedir"
4632 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4633 cat > conftest.$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4639 egrep "Mesa" >/dev/null 2>&1; then
4645 CPPFLAGS="$ac_save_CPPFLAGS"
4646 if test $have_mesa_gl = no ; then
4647 GL_LIBS="-lGL -lGLU"
4649 cat >> confdefs.h <<\EOF
4650 #define HAVE_MESA_GL 1
4653 GL_LIBS="-lMesaGL -lMesaGLU"
4657 elif test $with_gl != no; then
4658 echo "error: must be yes or no: --with-gl=$with_gl"
4663 # check for SGI XReadDisplay server extension header.
4666 with_readdisplay_req=unspecified
4667 # Check whether --with-readdisplay or --without-readdisplay was given.
4668 if test "${with_readdisplay+set}" = set; then
4669 withval="$with_readdisplay"
4670 with_readdisplay="$withval"; with_readdisplay_req="$withval"
4672 with_readdisplay=yes
4675 if test $with_readdisplay = yes; then
4677 ac_save_CPPFLAGS="$CPPFLAGS"
4678 if test \! -z "$includedir" ; then
4679 CPPFLAGS="$CPPFLAGS -I$includedir"
4681 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4682 ac_safe=`echo "X11/extensions/readdisplay.h" | sed 'y%./+-%__p_%'`
4683 echo $ac_n "checking for X11/extensions/readdisplay.h""... $ac_c" 1>&6
4684 echo "configure:4685: checking for X11/extensions/readdisplay.h" >&5
4685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4686 echo $ac_n "(cached) $ac_c" 1>&6
4688 cat > conftest.$ac_ext <<EOF
4689 #line 4690 "configure"
4690 #include "confdefs.h"
4691 #include <X11/extensions/readdisplay.h>
4693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4694 { (eval echo configure:4695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4695 ac_err=`grep -v '^ *+' conftest.out`
4696 if test -z "$ac_err"; then
4698 eval "ac_cv_header_$ac_safe=yes"
4701 echo "configure: failed program was:" >&5
4702 cat conftest.$ac_ext >&5
4704 eval "ac_cv_header_$ac_safe=no"
4708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4709 echo "$ac_t""yes" 1>&6
4710 cat >> confdefs.h <<\EOF
4711 #define HAVE_READ_DISPLAY_EXTENSION 1
4715 echo "$ac_t""no" 1>&6
4718 CPPFLAGS="$ac_save_CPPFLAGS"
4719 elif test $with_readdisplay != no; then
4720 echo "error: must be yes or no: --with-readdisplay=$with_readdisplay"
4725 # check for SGI's Iris Video Library header.
4728 with_sgivideo_req=unspecified
4729 # Check whether --with-sgivideo or --without-sgivideo was given.
4730 if test "${with_sgivideo+set}" = set; then
4731 withval="$with_sgivideo"
4732 with_sgivideo="$withval"; with_sgivideo_req="$withval"
4737 if test $with_sgivideo = yes; then
4739 ac_save_CPPFLAGS="$CPPFLAGS"
4740 if test \! -z "$includedir" ; then
4741 CPPFLAGS="$CPPFLAGS -I$includedir"
4743 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
4744 ac_safe=`echo "dmedia/vl.h" | sed 'y%./+-%__p_%'`
4745 echo $ac_n "checking for dmedia/vl.h""... $ac_c" 1>&6
4746 echo "configure:4747: checking for dmedia/vl.h" >&5
4747 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4750 cat > conftest.$ac_ext <<EOF
4751 #line 4752 "configure"
4752 #include "confdefs.h"
4753 #include <dmedia/vl.h>
4755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4756 { (eval echo configure:4757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4757 ac_err=`grep -v '^ *+' conftest.out`
4758 if test -z "$ac_err"; then
4760 eval "ac_cv_header_$ac_safe=yes"
4763 echo "configure: failed program was:" >&5
4764 cat conftest.$ac_ext >&5
4766 eval "ac_cv_header_$ac_safe=no"
4770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4771 echo "$ac_t""yes" 1>&6
4774 echo "$ac_t""no" 1>&6
4777 CPPFLAGS="$ac_save_CPPFLAGS"
4778 if test $have_sgivideo = yes; then
4780 echo $ac_n "checking for vlOpenVideo in -lvl""... $ac_c" 1>&6
4781 echo "configure:4782: checking for vlOpenVideo in -lvl" >&5
4782 ac_lib_var=`echo vl'_'vlOpenVideo | sed 'y%./+-%__p_%'`
4783 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4784 echo $ac_n "(cached) $ac_c" 1>&6
4786 ac_save_LIBS="$LIBS"
4788 cat > conftest.$ac_ext <<EOF
4789 #line 4790 "configure"
4790 #include "confdefs.h"
4791 /* Override any gcc2 internal prototype to avoid an error. */
4792 /* We use char because int might match the return type of a gcc2
4793 builtin and then its argument prototype would still apply. */
4800 if { (eval echo configure:4801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4802 eval "ac_cv_lib_$ac_lib_var=yes"
4804 echo "configure: failed program was:" >&5
4805 cat conftest.$ac_ext >&5
4807 eval "ac_cv_lib_$ac_lib_var=no"
4810 LIBS="$ac_save_LIBS"
4813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4814 echo "$ac_t""yes" 1>&6
4817 echo "$ac_t""no" 1>&6
4820 if test $have_sgivideo = yes; then
4821 SGI_VIDEO_OBJS="$(UTILS_BIN)/sgivideo.o"
4822 SGI_VIDEO_LIBS="-lvl"
4823 cat >> confdefs.h <<\EOF
4824 #define HAVE_SGI_VIDEO 1
4829 elif test $with_sgivideo != no; then
4830 echo "error: must be yes or no: --with-sgivideo=$with_sgivideo"
4836 # Try to find a program to generate random text.
4838 # Zippy is funnier than the idiocy generally spat out by `fortune',
4839 # so try to find that, by invoking Emacs and asking it where its
4840 # libexec directory is ("yow" lives in there.)
4842 # If that doesn't work, see if fortune, zippy, or yow are on $PATH,
4843 # and if so, use them.
4845 # If that doesn't work, look in /usr/games, and if it's there, use
4846 # the full pathname.
4849 # Check whether --with-zippy or --without-zippy was given.
4850 if test "${with_zippy+set}" = set; then
4851 withval="$with_zippy"
4852 with_zippy_req="$withval"; with_zippy="$withval"
4854 with_zippy_req="$withval"; with_zippy="$withval"
4858 if test "$with_zippy" = no || test "$with_zippy" = yes ; then
4863 if test -n "$with_zippy_req" ; then
4864 ac_cv_zippy_program=""
4865 case "$with_zippy_req" in
4867 echo $ac_n "checking for $with_zippy_req""... $ac_c" 1>&6
4868 echo "configure:4869: checking for $with_zippy_req" >&5
4869 if test -x "$with_zippy_req" ; then
4870 echo "$ac_t""yes" 1>&6
4872 echo "$ac_t""no" 1>&6
4878 unset ac_cv_path_zip2
4879 # Extract the first word of "$with_zippy_req", so it can be a program name with args.
4880 set dummy $with_zippy_req; ac_word=$2
4881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4882 echo "configure:4883: checking for $ac_word" >&5
4883 if eval "test \"`echo '$''{'ac_cv_path_zip2'+set}'`\" = set"; then
4884 echo $ac_n "(cached) $ac_c" 1>&6
4888 ac_cv_path_zip2="$zip2" # Let the user override the test with a path.
4891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4892 for ac_dir in $PATH; do
4893 test -z "$ac_dir" && ac_dir=.
4894 if test -f $ac_dir/$ac_word; then
4895 ac_cv_path_zip2="$ac_dir/$ac_word"
4903 zip2="$ac_cv_path_zip2"
4904 if test -n "$zip2"; then
4905 echo "$ac_t""$zip2" 1>&6
4907 echo "$ac_t""no" 1>&6
4910 if test "$zip2" = ""; then
4915 ac_cv_zippy_program="$with_zippy"
4917 elif test -n "$ac_cv_zippy_program"; then
4918 echo "$ac_t""checking for zippy... (cached) $ac_cv_zippy_program" 1>&6
4921 if test ! -n "$ac_cv_zippy_program"; then
4923 for ac_prog in emacs
4925 # Extract the first word of "$ac_prog", so it can be a program name with args.
4926 set dummy $ac_prog; ac_word=$2
4927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4928 echo "configure:4929: checking for $ac_word" >&5
4929 if eval "test \"`echo '$''{'ac_cv_prog_emacs_exe'+set}'`\" = set"; then
4930 echo $ac_n "(cached) $ac_c" 1>&6
4932 if test -n "$emacs_exe"; then
4933 ac_cv_prog_emacs_exe="$emacs_exe" # Let the user override the test.
4935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4936 for ac_dir in $PATH; do
4937 test -z "$ac_dir" && ac_dir=.
4938 if test -f $ac_dir/$ac_word; then
4939 ac_cv_prog_emacs_exe="$ac_prog"
4946 emacs_exe="$ac_cv_prog_emacs_exe"
4947 if test -n "$emacs_exe"; then
4948 echo "$ac_t""$emacs_exe" 1>&6
4950 echo "$ac_t""no" 1>&6
4953 test -n "$emacs_exe" && break
4956 for ac_prog in xemacs
4958 # Extract the first word of "$ac_prog", so it can be a program name with args.
4959 set dummy $ac_prog; ac_word=$2
4960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4961 echo "configure:4962: checking for $ac_word" >&5
4962 if eval "test \"`echo '$''{'ac_cv_prog_xemacs_exe'+set}'`\" = set"; then
4963 echo $ac_n "(cached) $ac_c" 1>&6
4965 if test -n "$xemacs_exe"; then
4966 ac_cv_prog_xemacs_exe="$xemacs_exe" # Let the user override the test.
4968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4969 for ac_dir in $PATH; do
4970 test -z "$ac_dir" && ac_dir=.
4971 if test -f $ac_dir/$ac_word; then
4972 ac_cv_prog_xemacs_exe="$ac_prog"
4979 xemacs_exe="$ac_cv_prog_xemacs_exe"
4980 if test -n "$xemacs_exe"; then
4981 echo "$ac_t""$xemacs_exe" 1>&6
4983 echo "$ac_t""no" 1>&6
4986 test -n "$xemacs_exe" && break
4990 ac_cv_zippy_program=""
4991 eargs='-batch -q -nw --eval'
4993 if test -n "$emacs_exe" ; then
4994 echo $ac_n "checking for emacs yow""... $ac_c" 1>&6
4995 echo "configure:4996: checking for emacs yow" >&5
4997 # get emacs to tell us where the libexec directory is.
4999 dir=`$emacs_exe $eargs '(princ (concat exec-directory "\n"))' \
5000 2>/dev/null | tail -1`
5001 dir=`echo "$dir" | sed 's@///*@/@g;s@/$@@'`
5003 # try running libexec/yow and see if it exits without error.
5005 if test x"$dir" != x -a -x $dir/yow ; then
5006 if $dir/yow >&- 2>&- ; then
5007 ac_cv_zippy_program="$dir/yow"
5008 echo "$ac_t""$ac_cv_zippy_program" 1>&6
5010 echo "$ac_t""no" 1>&6
5015 if test -z "$ac_cv_zippy_program" ; then
5016 echo $ac_n "checking for xemacs yow""... $ac_c" 1>&6
5017 echo "configure:5018: checking for xemacs yow" >&5
5018 if test -n "$xemacs_exe" ; then
5020 # get xemacs to tell us where the libexec directory is.
5022 dir=`$xemacs_exe $eargs '(princ (concat exec-directory "\n"))' \
5023 2>/dev/null | tail -1`
5024 dir=`echo "$dir" | sed 's@///*@/@g;s@/$@@'`
5026 # try running libexec/yow and see if it exits without error.
5028 if test x"$dir" != x -a -x $dir/yow ; then
5029 if $dir/yow >&- 2>&- ; then
5030 ac_cv_zippy_program="$dir/yow"
5031 echo "$ac_t""$ac_cv_zippy_program" 1>&6
5034 # in some xemacs installations, the pathname of the yow.lines file
5035 # isn't hardcoded into the yow executable, and must be passed on
5036 # the command line. See if it's in libexec/../etc/.
5040 dir_up=`echo "$dir" | sed 's@/[^/]*$@@'`
5043 yow="yow -f $dir_up/etc/yow.lines"
5044 if $dir/$yow >&- 2>&- ; then
5045 ac_cv_zippy_program="$dir/$yow"
5046 echo "$ac_t""$ac_cv_zippy_program" 1>&6
5048 echo "$ac_t""no" 1>&6
5055 # if that didn't work, try for some other programs...
5056 if test -z "$ac_cv_zippy_program" ; then
5058 for ac_prog in fortune zippy yow
5060 # Extract the first word of "$ac_prog", so it can be a program name with args.
5061 set dummy $ac_prog; ac_word=$2
5062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5063 echo "configure:5064: checking for $ac_word" >&5
5064 if eval "test \"`echo '$''{'ac_cv_prog_fortune'+set}'`\" = set"; then
5065 echo $ac_n "(cached) $ac_c" 1>&6
5067 if test -n "$fortune"; then
5068 ac_cv_prog_fortune="$fortune" # Let the user override the test.
5070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5071 for ac_dir in $PATH; do
5072 test -z "$ac_dir" && ac_dir=.
5073 if test -f $ac_dir/$ac_word; then
5074 ac_cv_prog_fortune="$ac_prog"
5081 fortune="$ac_cv_prog_fortune"
5082 if test -n "$fortune"; then
5083 echo "$ac_t""$fortune" 1>&6
5085 echo "$ac_t""no" 1>&6
5088 test -n "$fortune" && break
5091 # if that didn't work, try for those programs in /usr/games...
5092 if test -z "$fortune" ; then
5093 for ac_prog in fortune zippy yow
5095 # Extract the first word of "$ac_prog", so it can be a program name with args.
5096 set dummy $ac_prog; ac_word=$2
5097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5098 echo "configure:5099: checking for $ac_word" >&5
5099 if eval "test \"`echo '$''{'ac_cv_path_fortune'+set}'`\" = set"; then
5100 echo $ac_n "(cached) $ac_c" 1>&6
5104 ac_cv_path_fortune="$fortune" # Let the user override the test with a path.
5107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5108 for ac_dir in /usr/games:/usr/local/games$ac_dummy; do
5109 test -z "$ac_dir" && ac_dir=.
5110 if test -f $ac_dir/$ac_word; then
5111 ac_cv_path_fortune="$ac_dir/$ac_word"
5119 fortune="$ac_cv_path_fortune"
5120 if test -n "$fortune"; then
5121 echo "$ac_t""$fortune" 1>&6
5123 echo "$ac_t""no" 1>&6
5126 test -n "$fortune" && break
5128 test -n "$fortune" || fortune="fortune"
5134 if test -z "$ac_cv_zippy_program" ; then
5135 ac_cv_zippy_program=fortune
5138 cat >> confdefs.h <<EOF
5139 #define ZIPPY_PROGRAM "$ac_cv_zippy_program"
5146 # Allow locking to be disabled at compile-time.
5150 with_kerberos_req=unspecified
5152 with_shadow_req=unspecified
5155 # Check whether --enable-locking or --disable-locking was given.
5156 if test "${enable_locking+set}" = set; then
5157 enableval="$enable_locking"
5158 enable_locking="$enableval"
5163 if test $enable_locking = yes; then
5165 # Check for Kerberos.
5167 # Check whether --with-kerberos or --without-kerberos was given.
5168 if test "${with_kerberos+set}" = set; then
5169 withval="$with_kerberos"
5170 with_kerberos="$withval"; with_kerberos_req="$withval"
5175 if test $with_kerberos = yes; then
5176 echo $ac_n "checking for Kerberos""... $ac_c" 1>&6
5177 echo "configure:5178: checking for Kerberos" >&5
5178 if eval "test \"`echo '$''{'ac_cv_kerberos'+set}'`\" = set"; then
5179 echo $ac_n "(cached) $ac_c" 1>&6
5182 ac_save_CPPFLAGS="$CPPFLAGS"
5183 if test \! -z "$includedir" ; then
5184 CPPFLAGS="$CPPFLAGS -I$includedir"
5186 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5187 cat > conftest.$ac_ext <<EOF
5188 #line 5189 "configure"
5189 #include "confdefs.h"
5195 if { (eval echo configure:5196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5199 echo "configure: failed program was:" >&5
5200 cat conftest.$ac_ext >&5
5205 CPPFLAGS="$ac_save_CPPFLAGS"
5208 echo "$ac_t""$ac_cv_kerberos" 1>&6
5209 if test $ac_cv_kerberos = yes ; then
5211 cat >> confdefs.h <<\EOF
5212 #define HAVE_KERBEROS 1
5215 PASSWD_LIBS="$PASSWD_LIBS -lkrb -ldes -lnsl -lsocket"
5217 elif test $with_kerberos != no; then
5218 echo "error: must be yes or no: --with-kerberos=$with_kerberos"
5222 # Next, check for the nine billion variants of shadow passwords...
5224 passwd_cruft_done=no
5225 # Check whether --with-shadow or --without-shadow was given.
5226 if test "${with_shadow+set}" = set; then
5227 withval="$with_shadow"
5228 with_shadow="$withval"; with_shadow_req="$withval"
5233 if test $with_shadow = no; then
5234 passwd_cruft_done=yes
5235 elif test $with_shadow != yes; then
5236 echo "error: must be yes or no: --with-shadow=$with_shadow"
5241 # Sun's "adjunct" passwords.
5243 if test $passwd_cruft_done = no ; then
5244 echo $ac_n "checking for Sun-style shadow passwords""... $ac_c" 1>&6
5245 echo "configure:5246: checking for Sun-style shadow passwords" >&5
5246 if eval "test \"`echo '$''{'ac_cv_sun_adjunct'+set}'`\" = set"; then
5247 echo $ac_n "(cached) $ac_c" 1>&6
5250 ac_save_CPPFLAGS="$CPPFLAGS"
5251 if test \! -z "$includedir" ; then
5252 CPPFLAGS="$CPPFLAGS -I$includedir"
5254 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5255 cat > conftest.$ac_ext <<EOF
5256 #line 5257 "configure"
5257 #include "confdefs.h"
5260 #include <sys/types.h>
5261 #include <sys/label.h>
5262 #include <sys/audit.h>
5265 struct passwd_adjunct *p = getpwanam("nobody");
5266 const char *pw = p->pwa_passwd;
5269 if { (eval echo configure:5270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5271 ac_cv_sun_adjunct=yes
5273 echo "configure: failed program was:" >&5
5274 cat conftest.$ac_ext >&5
5276 ac_cv_sun_adjunct=no
5279 CPPFLAGS="$ac_save_CPPFLAGS"
5282 echo "$ac_t""$ac_cv_sun_adjunct" 1>&6
5283 if test $ac_cv_sun_adjunct = yes; then
5286 passwd_cruft_done=yes
5287 cat >> confdefs.h <<\EOF
5288 #define HAVE_ADJUNCT_PASSWD 1
5294 # DEC and SCO so-called "enhanced" security.
5296 if test $passwd_cruft_done = no ; then
5297 echo $ac_n "checking for DEC-style shadow passwords""... $ac_c" 1>&6
5298 echo "configure:5299: checking for DEC-style shadow passwords" >&5
5299 if eval "test \"`echo '$''{'ac_cv_enhanced_passwd'+set}'`\" = set"; then
5300 echo $ac_n "(cached) $ac_c" 1>&6
5303 ac_save_CPPFLAGS="$CPPFLAGS"
5304 if test \! -z "$includedir" ; then
5305 CPPFLAGS="$CPPFLAGS -I$includedir"
5307 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5308 cat > conftest.$ac_ext <<EOF
5309 #line 5310 "configure"
5310 #include "confdefs.h"
5313 #include <sys/types.h>
5315 #include <sys/security.h>
5318 struct pr_passwd *p;
5320 set_auth_parameters(0, 0);
5321 check_auth_parameters();
5322 p = getprpwnam("nobody");
5323 pw = p->ufld.fd_encrypt;
5326 if { (eval echo configure:5327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5328 ac_cv_enhanced_passwd=yes
5330 echo "configure: failed program was:" >&5
5331 cat conftest.$ac_ext >&5
5333 ac_cv_enhanced_passwd=no
5336 CPPFLAGS="$ac_save_CPPFLAGS"
5339 echo "$ac_t""$ac_cv_enhanced_passwd" 1>&6
5340 if test $ac_cv_enhanced_passwd = yes; then
5343 passwd_cruft_done=yes
5344 cat >> confdefs.h <<\EOF
5345 #define HAVE_ENHANCED_PASSWD 1
5349 # On SCO, getprpwnam() is in -lprot (which uses nap() from -lx)
5350 # (I'm told it needs -lcurses too, but I don't understand why.)
5351 echo $ac_n "checking for getprpwnam in -lprot""... $ac_c" 1>&6
5352 echo "configure:5353: checking for getprpwnam in -lprot" >&5
5353 ac_lib_var=`echo prot'_'getprpwnam | sed 'y%./+-%__p_%'`
5354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5355 echo $ac_n "(cached) $ac_c" 1>&6
5357 ac_save_LIBS="$LIBS"
5358 LIBS="-lprot -lx $LIBS"
5359 cat > conftest.$ac_ext <<EOF
5360 #line 5361 "configure"
5361 #include "confdefs.h"
5362 /* Override any gcc2 internal prototype to avoid an error. */
5363 /* We use char because int might match the return type of a gcc2
5364 builtin and then its argument prototype would still apply. */
5371 if { (eval echo configure:5372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5373 eval "ac_cv_lib_$ac_lib_var=yes"
5375 echo "configure: failed program was:" >&5
5376 cat conftest.$ac_ext >&5
5378 eval "ac_cv_lib_$ac_lib_var=no"
5381 LIBS="$ac_save_LIBS"
5384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5385 echo "$ac_t""yes" 1>&6
5386 PASSWD_LIBS="$PASSWD_LIBS -lprot -lcurses -lx"
5388 echo "$ac_t""no" 1>&6
5389 # On DEC, getprpwnam() is in -lsecurity
5390 echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
5391 echo "configure:5392: checking for getprpwnam in -lsecurity" >&5
5392 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
5393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5394 echo $ac_n "(cached) $ac_c" 1>&6
5396 ac_save_LIBS="$LIBS"
5397 LIBS="-lsecurity $LIBS"
5398 cat > conftest.$ac_ext <<EOF
5399 #line 5400 "configure"
5400 #include "confdefs.h"
5401 /* Override any gcc2 internal prototype to avoid an error. */
5402 /* We use char because int might match the return type of a gcc2
5403 builtin and then its argument prototype would still apply. */
5410 if { (eval echo configure:5411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5412 eval "ac_cv_lib_$ac_lib_var=yes"
5414 echo "configure: failed program was:" >&5
5415 cat conftest.$ac_ext >&5
5417 eval "ac_cv_lib_$ac_lib_var=no"
5420 LIBS="$ac_save_LIBS"
5423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5424 echo "$ac_t""yes" 1>&6
5425 PASSWD_LIBS="$PASSWD_LIBS -lsecurity"
5427 echo "$ac_t""no" 1>&6
5435 # HP's entry in the "Not Invented Here" Sweepstakes.
5437 if test $passwd_cruft_done = no ; then
5438 echo $ac_n "checking for HP-style shadow passwords""... $ac_c" 1>&6
5439 echo "configure:5440: checking for HP-style shadow passwords" >&5
5440 if eval "test \"`echo '$''{'ac_cv_hpux_passwd'+set}'`\" = set"; then
5441 echo $ac_n "(cached) $ac_c" 1>&6
5444 ac_save_CPPFLAGS="$CPPFLAGS"
5445 if test \! -z "$includedir" ; then
5446 CPPFLAGS="$CPPFLAGS -I$includedir"
5448 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5449 cat > conftest.$ac_ext <<EOF
5450 #line 5451 "configure"
5451 #include "confdefs.h"
5454 #include <sys/types.h>
5456 #include <hpsecurity.h>
5459 struct s_passwd *p = getspwnam("nobody");
5460 const char *pw = p->pw_passwd;
5463 if { (eval echo configure:5464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5465 ac_cv_hpux_passwd=yes
5467 echo "configure: failed program was:" >&5
5468 cat conftest.$ac_ext >&5
5470 ac_cv_hpux_passwd=no
5473 CPPFLAGS="$ac_save_CPPFLAGS"
5476 echo "$ac_t""$ac_cv_hpux_passwd" 1>&6
5477 if test $ac_cv_hpux_passwd = yes; then
5480 passwd_cruft_done=yes
5481 cat >> confdefs.h <<\EOF
5482 #define HAVE_HPUX_PASSWD 1
5486 # on HPUX, bigcrypt is in -lsec
5487 echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
5488 echo "configure:5489: checking for bigcrypt in -lsec" >&5
5489 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
5490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5491 echo $ac_n "(cached) $ac_c" 1>&6
5493 ac_save_LIBS="$LIBS"
5495 cat > conftest.$ac_ext <<EOF
5496 #line 5497 "configure"
5497 #include "confdefs.h"
5498 /* Override any gcc2 internal prototype to avoid an error. */
5499 /* We use char because int might match the return type of a gcc2
5500 builtin and then its argument prototype would still apply. */
5507 if { (eval echo configure:5508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5509 eval "ac_cv_lib_$ac_lib_var=yes"
5511 echo "configure: failed program was:" >&5
5512 cat conftest.$ac_ext >&5
5514 eval "ac_cv_lib_$ac_lib_var=no"
5517 LIBS="$ac_save_LIBS"
5520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5521 echo "$ac_t""yes" 1>&6
5522 PASSWD_LIBS="$PASSWD_LIBS -lsec"
5524 echo "$ac_t""no" 1>&6
5530 # Traditional (ha!) shadow passwords.
5532 if test $passwd_cruft_done = no ; then
5533 echo $ac_n "checking for generic shadow passwords""... $ac_c" 1>&6
5534 echo "configure:5535: checking for generic shadow passwords" >&5
5535 if eval "test \"`echo '$''{'ac_cv_shadow'+set}'`\" = set"; then
5536 echo $ac_n "(cached) $ac_c" 1>&6
5539 ac_save_CPPFLAGS="$CPPFLAGS"
5540 if test \! -z "$includedir" ; then
5541 CPPFLAGS="$CPPFLAGS -I$includedir"
5543 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
5544 cat > conftest.$ac_ext <<EOF
5545 #line 5546 "configure"
5546 #include "confdefs.h"
5549 #include <sys/types.h>
5553 struct spwd *p = getspnam("nobody");
5554 const char *pw = p->sp_pwdp;
5557 if { (eval echo configure:5558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5561 echo "configure: failed program was:" >&5
5562 cat conftest.$ac_ext >&5
5567 CPPFLAGS="$ac_save_CPPFLAGS"
5570 echo "$ac_t""$ac_cv_shadow" 1>&6
5571 if test $ac_cv_shadow = yes; then
5574 passwd_cruft_done=yes
5575 cat >> confdefs.h <<\EOF
5576 #define HAVE_SHADOW_PASSWD 1
5580 # On some systems (UnixWare 2.1), getspnam() is in -lgen instead of -lc.
5582 echo $ac_n "checking for getspnam in -lc""... $ac_c" 1>&6
5583 echo "configure:5584: checking for getspnam in -lc" >&5
5584 ac_lib_var=`echo c'_'getspnam | sed 'y%./+-%__p_%'`
5585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5586 echo $ac_n "(cached) $ac_c" 1>&6
5588 ac_save_LIBS="$LIBS"
5590 cat > conftest.$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5593 /* Override any gcc2 internal prototype to avoid an error. */
5594 /* We use char because int might match the return type of a gcc2
5595 builtin and then its argument prototype would still apply. */
5602 if { (eval echo configure:5603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5604 eval "ac_cv_lib_$ac_lib_var=yes"
5606 echo "configure: failed program was:" >&5
5607 cat conftest.$ac_ext >&5
5609 eval "ac_cv_lib_$ac_lib_var=no"
5612 LIBS="$ac_save_LIBS"
5615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5616 echo "$ac_t""yes" 1>&6
5619 echo "$ac_t""no" 1>&6
5622 if test $have_getspnam = no ; then
5623 echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
5624 echo "configure:5625: checking for getspnam in -lgen" >&5
5625 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
5626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5627 echo $ac_n "(cached) $ac_c" 1>&6
5629 ac_save_LIBS="$LIBS"
5631 cat > conftest.$ac_ext <<EOF
5632 #line 5633 "configure"
5633 #include "confdefs.h"
5634 /* Override any gcc2 internal prototype to avoid an error. */
5635 /* We use char because int might match the return type of a gcc2
5636 builtin and then its argument prototype would still apply. */
5643 if { (eval echo configure:5644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5645 eval "ac_cv_lib_$ac_lib_var=yes"
5647 echo "configure: failed program was:" >&5
5648 cat conftest.$ac_ext >&5
5650 eval "ac_cv_lib_$ac_lib_var=no"
5653 LIBS="$ac_save_LIBS"
5656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5657 echo "$ac_t""yes" 1>&6
5658 have_getspnam=yes; PASSWD_LIBS="$PASSWD_LIBS -lgen"
5660 echo "$ac_t""no" 1>&6
5667 # On FreeBSD, getpwnam() and friends work just like on non-shadow-password
5668 # systems -- except you only get stuff in the pw_passwd field if the running
5669 # program is setuid. So, guess that we've got this lossage to contend with
5670 # if /etc/master.passwd exists, and default to a setuid installation.
5672 if test $passwd_cruft_done = no ; then
5673 echo $ac_n "checking for FreeBSD-style shadow passwords""... $ac_c" 1>&6
5674 echo "configure:5675: checking for FreeBSD-style shadow passwords" >&5
5675 if eval "test \"`echo '$''{'ac_cv_master_passwd'+set}'`\" = set"; then
5676 echo $ac_n "(cached) $ac_c" 1>&6
5678 if test -f /etc/master.passwd ; then
5679 ac_cv_master_passwd=yes
5681 ac_cv_master_passwd=no
5685 echo "$ac_t""$ac_cv_master_passwd" 1>&6
5686 if test $ac_cv_master_passwd = yes; then
5688 passwd_cruft_done=yes
5692 # On some systems (UnixWare 2.1), crypt() is in -lcrypt instead of -lc.
5694 echo $ac_n "checking for crypt in -lc""... $ac_c" 1>&6
5695 echo "configure:5696: checking for crypt in -lc" >&5
5696 ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'`
5697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5698 echo $ac_n "(cached) $ac_c" 1>&6
5700 ac_save_LIBS="$LIBS"
5702 cat > conftest.$ac_ext <<EOF
5703 #line 5704 "configure"
5704 #include "confdefs.h"
5705 /* Override any gcc2 internal prototype to avoid an error. */
5706 /* We use char because int might match the return type of a gcc2
5707 builtin and then its argument prototype would still apply. */
5714 if { (eval echo configure:5715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5716 eval "ac_cv_lib_$ac_lib_var=yes"
5718 echo "configure: failed program was:" >&5
5719 cat conftest.$ac_ext >&5
5721 eval "ac_cv_lib_$ac_lib_var=no"
5724 LIBS="$ac_save_LIBS"
5727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5728 echo "$ac_t""yes" 1>&6
5731 echo "$ac_t""no" 1>&6
5734 if test $have_crypt = no ; then
5735 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
5736 echo "configure:5737: checking for crypt in -lcrypt" >&5
5737 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
5738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5739 echo $ac_n "(cached) $ac_c" 1>&6
5741 ac_save_LIBS="$LIBS"
5742 LIBS="-lcrypt $LIBS"
5743 cat > conftest.$ac_ext <<EOF
5744 #line 5745 "configure"
5745 #include "confdefs.h"
5746 /* Override any gcc2 internal prototype to avoid an error. */
5747 /* We use char because int might match the return type of a gcc2
5748 builtin and then its argument prototype would still apply. */
5755 if { (eval echo configure:5756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5757 eval "ac_cv_lib_$ac_lib_var=yes"
5759 echo "configure: failed program was:" >&5
5760 cat conftest.$ac_ext >&5
5762 eval "ac_cv_lib_$ac_lib_var=no"
5765 LIBS="$ac_save_LIBS"
5768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5769 echo "$ac_t""yes" 1>&6
5770 have_crypt=yes; PASSWD_LIBS="$PASSWD_LIBS -lcrypt"
5772 echo "$ac_t""no" 1>&6
5778 # Most of the above shadow mechanisms will have set need_setuid to yes,
5779 # if they were found. But, on some systems, we need setuid even when
5780 # using plain old vanilla passwords.
5782 if test $need_setuid = no ; then
5784 *-hpux* | *-aix* | *-netbsd* | *-freebsd* | *-openbsd* )
5790 elif test $enable_locking = no; then
5791 cat >> confdefs.h <<\EOF
5792 #define NO_LOCKING 1
5796 echo "error: must be yes or no: --enable-locking=$enable_locking"
5802 if test \! -z "$includedir" ; then
5803 INCLUDES="-I$includedir"
5806 if test \! -z "$libdir" ; then
5807 LDFLAGS="$LDFLAGS -L$libdir"
5811 ##### should have options to override the DEPEND crap, I guess...
5817 # Autoconf doesn't seem to have an INSTALL_DIRS, so let's define our own...
5818 INSTALL_DIRS='$(INSTALL) -d'
5820 # Done testing things -- now substitute in some stuff for the Makefiles.
5822 if test $have_motif = yes; then
5823 cat >> confdefs.h <<\EOF
5824 #define HAVE_MOTIF 1
5827 DIALOG_SRCS='$(MOTIF_SRCS)'
5828 DIALOG_OBJS='$(MOTIF_OBJS)'
5829 elif test $have_athena = yes; then
5830 cat >> confdefs.h <<\EOF
5831 #define HAVE_ATHENA 1
5834 DIALOG_SRCS='$(ATHENA_SRCS)'
5835 DIALOG_OBJS='$(ATHENA_OBJS)'
5841 if test $have_kerberos = yes; then
5842 PASSWD_SRCS='$(KERBEROS_SRCS)'
5843 PASSWD_OBJS='$(KERBEROS_OBJS)'
5845 PASSWD_SRCS='$(PWENT_SRCS)'
5846 PASSWD_OBJS='$(PWENT_OBJS)'
5849 if test $enable_locking = yes; then
5850 LOCK_SRCS='$(LOCK_SRCS_1) $(PASSWD_SRCS)'
5851 LOCK_OBJS='$(LOCK_OBJS_1) $(PASSWD_OBJS)'
5857 if test $need_setuid = yes; then
5859 INSTALL_SETUID='$(INSTALL) $(SUID_FLAGS)'
5862 INSTALL_SETUID='$(INSTALL_PROGRAM)'
5866 if test $have_gl = yes; then
5867 GL_EXES='$(GL_EXES)'
5868 GL_KLUDGE_1=${tab}${tab}${tab}${tab}${tab}${tab}${tab}${tab}${tab}' \'
5871 GL_KLUDGE_1=${tab}${tab}${tab}${tab}${tab}${tab}${tab}${tab}${tab}'\n'
5872 GL_KLUDGE_2='!'${tab}
5906 # Print some warnings before emitting the Makefiles.
5909 warnsep=' #################################################################'
5911 if test $warning = no ; then
5912 echo '' ; echo "$warnsep" ; echo ''
5919 if test $warning = long ; then echo '' ; fi
5928 if test $was != no ; then echo '' ; fi
5937 if test $with_sgi_req = yes -a $have_sgi = no ; then
5938 warn 'The SGI saver extension was requested, but was not found.'
5941 if test $with_mit_req = yes -a $have_mit = no ; then
5942 warn 'The MIT saver extension was requested, but was not found.'
5945 if test $with_xidle_req = yes -a $have_xidle = no ; then
5946 warn 'The XIdle extension was requested, but was not found.'
5949 if test $with_xshm_req = yes -a $have_xshm = no ; then
5950 warn 'The XSHM extension was requested, but was not found.'
5953 if test $with_sgivc_req = yes -a $have_sgivc = no ; then
5954 warn 'The SGI-VIDEO-CONTROL extension was requested, but was not found.'
5957 if test $with_dpms_req = yes -a $have_dpms = no ; then
5958 warn 'The DPMS extension was requested, but was not found.'
5961 if test $have_motif = no -a $have_athena = no ; then
5962 warnL "Neither Motif nor Athena widgets seem to be available;"
5963 warn2 "one or the other is required."
5964 proselytize_motif=no
5966 elif test $with_motif_req = yes -a $have_motif = no ; then
5967 warnL "Use of Motif was requested, but it wasn't found;"
5968 warn2 "Athena will be used instead."
5970 elif test $with_athena_req = yes -a $have_athena = no ; then
5971 warnL "Use of Athena was requested, but it wasn't found;"
5972 warn2 "Motif will be used instead."
5975 if test $have_motif = yes -a $have_lesstif = yes ; then
5976 if test $good_lesstif != yes ; then
5977 warnL "Motif is being used, but it appears to actually be"
5978 warn2 "LessTif, and the version number is less than 0.82!"
5979 warn2 "Such old versions of LessTif are too buggy to use"
5980 warn2 "with XScreenSaver; it is strongly recommended that"
5981 warn2 "you upgrade! See <http://www.lesstif.org/>."
5985 if test $proselytize_motif = yes ; then
5986 warnL "Athena widgets are being used instead of Motif."
5987 warn2 "XScreenSaver looks much better with Motif, and has"
5988 warn2 "a few extra features as well. Wouldn't you rather"
5989 warn2 "be using Motif? It is shipped by every commercial"
5990 warn2 "Unix vendor; and there is a free implementation"
5991 warn2 "available as well: see <http://www.lesstif.org/>."
5994 if test $with_xpm_req = yes -a $have_xpm = no ; then
5995 warn 'Use of XPM was requested, but it was not found.'
5998 if test $with_gl_req = yes -a $have_gl = no ; then
5999 warn 'Use of GL was requested, but it was not found.'
6002 if test $with_readdisplay_req = yes -a $have_readdisplay = no ; then
6003 warn 'Use of XReadDisplay was requested, but it was not found.'
6006 if test $with_sgivideo_req = yes -a $have_sgivideo = no ; then
6007 warn 'Use of the Iris Video Library was requested, but it was not found.'
6010 if test $with_kerberos_req = yes -a $have_kerberos = no ; then
6011 warn 'Use of Kerberos was requested, but it was not found.'
6014 if test $with_shadow_req = yes -a $have_shadow = no ; then
6015 warn 'Use of shadow passwords was requested, but they were not found.'
6018 if test -n "$with_zippy_req"; then
6019 if test "$with_zippy_req" != "$ac_cv_zippy_program" ; then
6020 warnL "$with_zippy_req was requested as the Zippy program,"
6021 warn2 "but was not found. The default will be used instead."
6025 if test $warning != no; then
6026 echo '' ; echo "$warnsep" ; echo ''
6031 cat > confcache <<\EOF
6032 # This file is a shell script that caches the results of configure
6033 # tests run on this system so they can be shared between configure
6034 # scripts and configure runs. It is not useful on other systems.
6035 # If it contains results you don't want to keep, you may remove or edit it.
6037 # By default, configure uses ./config.cache as the cache file,
6038 # creating it if it does not exist already. You can give configure
6039 # the --cache-file=FILE option to use a different cache file; that is
6040 # what configure does when it calls configure scripts in
6041 # subdirectories, so they share the cache.
6042 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6043 # config.status only pays attention to the cache file if you give it the
6044 # --recheck option to rerun configure.
6047 # The following way of writing the cache mishandles newlines in values,
6048 # but we know of no workaround that is simple, portable, and efficient.
6049 # So, don't put newlines in cache variables' values.
6050 # Ultrix sh set writes to stderr and can't be redirected directly,
6051 # and sets the high bit in the cache file unless we assign to the vars.
6053 case `(ac_space=' '; set) 2>&1` in
6055 # `set' does not quote correctly, so add quotes (double-quote substitution
6056 # turns \\\\ into \\, and sed turns \\ into \).
6058 -e "s/'/'\\\\''/g" \
6059 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6062 # `set' quotes correctly as required by POSIX, so do not add quotes.
6063 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6066 if cmp -s $cache_file confcache; then
6069 if test -w $cache_file; then
6070 echo "updating cache $cache_file"
6071 cat confcache > $cache_file
6073 echo "not updating unwritable cache $cache_file"
6078 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6080 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6081 # Let make expand exec_prefix.
6082 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6084 # Any assignment to VPATH causes Sun make to only execute
6085 # the first set of double-colon rules, so remove it if not needed.
6086 # If there is a colon in the path, we need to keep it.
6087 if test "x$srcdir" = x.; then
6088 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6091 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6093 DEFS=-DHAVE_CONFIG_H
6095 # Without the "./", some shells look in PATH for config.status.
6096 : ${CONFIG_STATUS=./config.status}
6098 echo creating $CONFIG_STATUS
6099 rm -f $CONFIG_STATUS
6100 cat > $CONFIG_STATUS <<EOF
6102 # Generated automatically by configure.
6103 # Run this file to recreate the current configuration.
6104 # This directory was configured as follows,
6105 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6107 # $0 $ac_configure_args
6109 # Compiler output produced by configure, useful for debugging
6110 # configure, is in ./config.log if it exists.
6112 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6115 case "\$ac_option" in
6116 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6117 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6118 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6119 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6120 echo "$CONFIG_STATUS generated by autoconf version 2.12"
6122 -help | --help | --hel | --he | --h)
6123 echo "\$ac_cs_usage"; exit 0 ;;
6124 *) echo "\$ac_cs_usage"; exit 1 ;;
6128 ac_given_srcdir=$srcdir
6129 ac_given_INSTALL="$INSTALL"
6131 trap 'rm -fr `echo "Makefile
6136 driver/XScreenSaver.ad config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6138 cat >> $CONFIG_STATUS <<EOF
6140 # Protect against being on the right side of a sed subst in config.status.
6141 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6142 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6145 s%@CFLAGS@%$CFLAGS%g
6146 s%@CPPFLAGS@%$CPPFLAGS%g
6147 s%@CXXFLAGS@%$CXXFLAGS%g
6149 s%@LDFLAGS@%$LDFLAGS%g
6151 s%@exec_prefix@%$exec_prefix%g
6152 s%@prefix@%$prefix%g
6153 s%@program_transform_name@%$program_transform_name%g
6154 s%@bindir@%$bindir%g
6155 s%@sbindir@%$sbindir%g
6156 s%@libexecdir@%$libexecdir%g
6157 s%@datadir@%$datadir%g
6158 s%@sysconfdir@%$sysconfdir%g
6159 s%@sharedstatedir@%$sharedstatedir%g
6160 s%@localstatedir@%$localstatedir%g
6161 s%@libdir@%$libdir%g
6162 s%@includedir@%$includedir%g
6163 s%@oldincludedir@%$oldincludedir%g
6164 s%@infodir@%$infodir%g
6165 s%@mandir@%$mandir%g
6167 s%@host_alias@%$host_alias%g
6168 s%@host_cpu@%$host_cpu%g
6169 s%@host_vendor@%$host_vendor%g
6170 s%@host_os@%$host_os%g
6173 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6174 s%@INSTALL_DATA@%$INSTALL_DATA%g
6175 s%@SET_MAKE@%$SET_MAKE%g
6176 s%@X_CFLAGS@%$X_CFLAGS%g
6177 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6178 s%@X_LIBS@%$X_LIBS%g
6179 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6181 s%@emacs_exe@%$emacs_exe%g
6182 s%@xemacs_exe@%$xemacs_exe%g
6183 s%@fortune@%$fortune%g
6184 s%@INCLUDES@%$INCLUDES%g
6185 s%@SAVER_LIBS@%$SAVER_LIBS%g
6186 s%@HACK_LIBS@%$HACK_LIBS%g
6187 s%@XPM_LIBS@%$XPM_LIBS%g
6188 s%@GL_LIBS@%$GL_LIBS%g
6189 s%@PASSWD_LIBS@%$PASSWD_LIBS%g
6190 s%@INSTALL_SETUID@%$INSTALL_SETUID%g
6191 s%@INSTALL_DIRS@%$INSTALL_DIRS%g
6192 s%@NEED_SETUID@%$NEED_SETUID%g
6193 s%@SGI_VIDEO_OBJS@%$SGI_VIDEO_OBJS%g
6194 s%@SGI_VIDEO_LIBS@%$SGI_VIDEO_LIBS%g
6195 s%@DIALOG_SRCS@%$DIALOG_SRCS%g
6196 s%@DIALOG_OBJS@%$DIALOG_OBJS%g
6197 s%@PASSWD_SRCS@%$PASSWD_SRCS%g
6198 s%@PASSWD_OBJS@%$PASSWD_OBJS%g
6199 s%@XMU_SRCS@%$XMU_SRCS%g
6200 s%@XMU_OBJS@%$XMU_OBJS%g
6201 s%@LOCK_SRCS@%$LOCK_SRCS%g
6202 s%@LOCK_OBJS@%$LOCK_OBJS%g
6203 s%@GL_EXES@%$GL_EXES%g
6204 s%@GL_KLUDGE_1@%$GL_KLUDGE_1%g
6205 s%@GL_KLUDGE_2@%$GL_KLUDGE_2%g
6206 s%@HACKDIR@%$HACKDIR%g
6207 s%@APPDEFAULTS@%$APPDEFAULTS%g
6208 s%@DEPEND@%$DEPEND%g
6209 s%@DEPEND_FLAGS@%$DEPEND_FLAGS%g
6210 s%@DEPEND_DEFINES@%$DEPEND_DEFINES%g
6215 cat >> $CONFIG_STATUS <<\EOF
6217 # Split the substitutions into bite-sized pieces for seds with
6218 # small command number limits, like on Digital OSF/1 and HP-UX.
6219 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6220 ac_file=1 # Number of current file.
6221 ac_beg=1 # First line for current file.
6222 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6225 while $ac_more_lines; do
6226 if test $ac_beg -gt 1; then
6227 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6229 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6231 if test ! -s conftest.s$ac_file; then
6233 rm -f conftest.s$ac_file
6235 if test -z "$ac_sed_cmds"; then
6236 ac_sed_cmds="sed -f conftest.s$ac_file"
6238 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6240 ac_file=`expr $ac_file + 1`
6242 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6245 if test -z "$ac_sed_cmds"; then
6250 cat >> $CONFIG_STATUS <<EOF
6252 CONFIG_FILES=\${CONFIG_FILES-"Makefile
6257 driver/XScreenSaver.ad"}
6259 cat >> $CONFIG_STATUS <<\EOF
6260 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6261 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6263 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6264 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6265 *) ac_file_in="${ac_file}.in" ;;
6268 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6270 # Remove last slash and all that follows it. Not all systems have dirname.
6271 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6272 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6273 # The file is in a subdirectory.
6274 test ! -d "$ac_dir" && mkdir "$ac_dir"
6275 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6276 # A "../" for each directory in $ac_dir_suffix.
6277 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6279 ac_dir_suffix= ac_dots=
6282 case "$ac_given_srcdir" in
6284 if test -z "$ac_dots"; then top_srcdir=.
6285 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6286 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6288 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6289 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6292 case "$ac_given_INSTALL" in
6293 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6294 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6297 echo creating "$ac_file"
6299 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6301 *Makefile*) ac_comsub="1i\\
6302 # $configure_input" ;;
6306 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6308 s%@configure_input@%$configure_input%g
6309 s%@srcdir@%$srcdir%g
6310 s%@top_srcdir@%$top_srcdir%g
6311 s%@INSTALL@%$INSTALL%g
6312 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6316 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6317 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6319 # ac_d sets the value in "#define NAME VALUE" lines.
6320 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6321 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6324 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6325 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6326 ac_uB='\([ ]\)%\1#\2define\3'
6329 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6330 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6331 ac_eB='$%\1#\2define\3'
6335 if test "${CONFIG_HEADERS+set}" != set; then
6337 cat >> $CONFIG_STATUS <<EOF
6338 CONFIG_HEADERS="config.h"
6340 cat >> $CONFIG_STATUS <<\EOF
6342 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6343 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6345 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6346 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6347 *) ac_file_in="${ac_file}.in" ;;
6350 echo creating $ac_file
6352 rm -f conftest.frag conftest.in conftest.out
6353 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6354 cat $ac_file_inputs > conftest.in
6358 # Transform confdefs.h into a sed script conftest.vals that substitutes
6359 # the proper values into config.h.in to produce config.h. And first:
6360 # Protect against being on the right side of a sed subst in config.status.
6361 # Protect against being in an unquoted here document in config.status.
6363 cat > conftest.hdr <<\EOF
6366 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6370 sed -n -f conftest.hdr confdefs.h > conftest.vals
6373 # This sed command replaces #undef with comments. This is necessary, for
6374 # example, in the case of _POSIX_SOURCE, which is predefined and required
6375 # on some systems where configure will not decide to define it.
6376 cat >> conftest.vals <<\EOF
6377 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6380 # Break up conftest.vals because some shells have a limit on
6381 # the size of here documents, and old seds have small limits too.
6386 ac_lines=`grep -c . conftest.vals`
6387 # grep -c gives empty output for an empty file on some AIX systems.
6388 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6389 # Write a limited-size here document to conftest.frag.
6390 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6391 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6393 sed -f conftest.frag conftest.in > conftest.out
6395 mv conftest.out conftest.in
6397 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6399 mv conftest.tail conftest.vals
6403 cat >> $CONFIG_STATUS <<\EOF
6404 rm -f conftest.frag conftest.h
6405 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6406 cat conftest.in >> conftest.h
6408 if cmp -s $ac_file conftest.h 2>/dev/null; then
6409 echo "$ac_file is unchanged"
6412 # Remove last slash and all that follows it. Not all systems have dirname.
6413 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6414 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6415 # The file is in a subdirectory.
6416 test ! -d "$ac_dir" && mkdir "$ac_dir"
6419 mv conftest.h $ac_file
6424 cat >> $CONFIG_STATUS <<EOF
6427 cat >> $CONFIG_STATUS <<\EOF
6431 chmod +x $CONFIG_STATUS
6432 rm -fr confdefs* $ac_clean_files
6433 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6436 # You are in a twisty maze of namespaces and syntaxes, all alike.
6437 # Fuck the skull of Unix.
6439 eval bindir=${bindir}
6440 eval bindir=${bindir}
6441 eval bindir=${bindir}
6442 eval bindir=${bindir}
6443 eval bindir=${bindir}
6444 eval bindir=${bindir}
6445 eval HACKDIR=${HACKDIR}
6446 eval HACKDIR=${HACKDIR}
6447 eval HACKDIR=${HACKDIR}
6448 eval HACKDIR=${HACKDIR}
6449 eval HACKDIR=${HACKDIR}
6450 eval HACKDIR=${HACKDIR}
6455 echo ' When you run "make install", the "xscreensaver" and'
6456 echo ' "xscreensaver-command" executables will be installed in'
6459 echo " The various graphics demos (60+ different executables) will"
6460 echo " be installed in ${HACKDIR}."
6462 echo " If you would prefer the demos to be installed elsewhere"
6463 echo " (for example, in a dedicated directory) you should re-run"
6464 echo " configure with the --enable-subdir=DIR option. For more"
6465 echo " information, run $0 --help."