3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
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:
15 --without-gcc don't use GCC to compile Emacs if GCC is found"
17 --without-pop don't support POP mail retrieval with movemail"
19 --with-kerberos support Kerberos-authenticated POP"
21 --with-kerberos5 support Kerberos version 5 authenticated POP"
23 --with-hesiod support Hesiod to get the POP server host"
25 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)"
27 --with-xpm use -lXpm for displaying XPM images"
29 --with-jpeg use -ljpeg for displaying JPEG images"
31 --with-tiff use -ltiff for displaying TIFF images"
33 --with-gif use -lungif for displaying GIF images"
35 --with-png use -lpng for displaying PNG images"
37 --without-toolkit-scroll-bars
38 don't use Motif or Xaw3d scroll bars"
40 --without-xim don't use X11 XIM"
42 --disable-largefile omit support for large files"
44 --with-x use the X Window System"
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
50 cache_file
=.
/config.cache
59 program_transform_name
=s
,x
,x
,
67 bindir
='${exec_prefix}/bin'
68 sbindir
='${exec_prefix}/sbin'
69 libexecdir
='${exec_prefix}/libexec'
70 datadir
='${prefix}/share'
71 sysconfdir
='${prefix}/etc'
72 sharedstatedir
='${prefix}/com'
73 localstatedir
='${prefix}/var'
74 libdir
='${exec_prefix}/lib'
75 includedir
='${prefix}/include'
76 oldincludedir
='/usr/include'
77 infodir
='${prefix}/info'
78 mandir
='${prefix}/man'
80 # Initialize some other variables.
83 SHELL
=${CONFIG_SHELL-/bin/sh}
84 # Maximum number of lines to put in a shell here document.
91 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
99 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
103 # Accept the important Cygnus configure options, so we can diagnose typos.
107 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
109 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
110 bindir
="$ac_optarg" ;;
112 -build |
--build |
--buil |
--bui |
--bu)
114 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
115 build
="$ac_optarg" ;;
117 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
118 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
119 ac_prev
=cache_file
;;
120 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
121 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
122 cache_file
="$ac_optarg" ;;
124 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
126 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
128 datadir
="$ac_optarg" ;;
130 -disable-* |
--disable-*)
131 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
139 -enable-* |
--enable-*)
140 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}='$ac_optarg'" ;;
152 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
153 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
154 |
--exec |
--exe |
--ex)
155 ac_prev
=exec_prefix
;;
156 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
157 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
158 |
--exec=* |
--exe=* |
--ex=*)
159 exec_prefix
="$ac_optarg" ;;
161 -gas |
--gas |
--ga |
--g)
162 # Obsolete; use --with-gas.
165 -help |
--help |
--hel |
--he)
166 # Omit some internal or obsolete options to make the list less imposing.
167 # This message is too long to be a string in the A/UX 3.1 sh.
169 Usage: configure [options] [host]
170 Options: [defaults in brackets after descriptions]
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
176 --version print the version of autoconf that created configure
177 Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207 Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
220 -host |
--host |
--hos |
--ho)
222 -host=* |
--host=* |
--hos=* |
--ho=*)
225 -includedir |
--includedir |
--includedi |
--included |
--include \
226 |
--includ |
--inclu |
--incl |
--inc)
227 ac_prev
=includedir
;;
228 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
229 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
230 includedir
="$ac_optarg" ;;
232 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
234 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
235 infodir
="$ac_optarg" ;;
237 -libdir |
--libdir |
--libdi |
--libd)
239 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
240 libdir
="$ac_optarg" ;;
242 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
243 |
--libexe |
--libex |
--libe)
244 ac_prev
=libexecdir
;;
245 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
246 |
--libexe=* |
--libex=* |
--libe=*)
247 libexecdir
="$ac_optarg" ;;
249 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
250 |
--localstate |
--localstat |
--localsta |
--localst \
251 |
--locals |
--local |
--loca |
--loc |
--lo)
252 ac_prev
=localstatedir
;;
253 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
254 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
255 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
256 localstatedir
="$ac_optarg" ;;
258 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
260 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
261 mandir
="$ac_optarg" ;;
264 # Obsolete; use --without-fp.
267 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
271 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
272 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
275 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
276 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
277 |
--oldin |
--oldi |
--old |
--ol |
--o)
278 ac_prev
=oldincludedir
;;
279 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
280 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
281 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
282 oldincludedir
="$ac_optarg" ;;
284 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
286 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
287 prefix
="$ac_optarg" ;;
289 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
290 |
--program-pre |
--program-pr |
--program-p)
291 ac_prev
=program_prefix
;;
292 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
293 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
294 program_prefix
="$ac_optarg" ;;
296 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
297 |
--program-suf |
--program-su |
--program-s)
298 ac_prev
=program_suffix
;;
299 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
300 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
301 program_suffix
="$ac_optarg" ;;
303 -program-transform-name |
--program-transform-name \
304 |
--program-transform-nam |
--program-transform-na \
305 |
--program-transform-n |
--program-transform- \
306 |
--program-transform |
--program-transfor \
307 |
--program-transfo |
--program-transf \
308 |
--program-trans |
--program-tran \
309 |
--progr-tra |
--program-tr |
--program-t)
310 ac_prev
=program_transform_name
;;
311 -program-transform-name=* |
--program-transform-name=* \
312 |
--program-transform-nam=* |
--program-transform-na=* \
313 |
--program-transform-n=* |
--program-transform-=* \
314 |
--program-transform=* |
--program-transfor=* \
315 |
--program-transfo=* |
--program-transf=* \
316 |
--program-trans=* |
--program-tran=* \
317 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
318 program_transform_name
="$ac_optarg" ;;
320 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
321 |
-silent |
--silent |
--silen |
--sile |
--sil)
324 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
326 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
328 sbindir
="$ac_optarg" ;;
330 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
331 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
332 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
334 ac_prev
=sharedstatedir
;;
335 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
336 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
337 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
339 sharedstatedir
="$ac_optarg" ;;
341 -site |
--site |
--sit)
343 -site=* |
--site=* |
--sit=*)
346 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
348 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
349 srcdir
="$ac_optarg" ;;
351 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
352 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
353 ac_prev
=sysconfdir
;;
354 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
355 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
356 sysconfdir
="$ac_optarg" ;;
358 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
360 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
361 target
="$ac_optarg" ;;
363 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
366 -version |
--version |
--versio |
--versi |
--vers)
367 echo "configure generated by autoconf version 2.13"
371 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package
=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}='$ac_optarg'" ;;
383 -without-* |
--without-*)
384 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package
=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
393 # Obsolete; use --with-x.
396 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
397 |
--x-incl |
--x-inc |
--x-in |
--x-i)
398 ac_prev
=x_includes
;;
399 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
400 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
401 x_includes
="$ac_optarg" ;;
403 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
404 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
405 ac_prev
=x_libraries
;;
406 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
407 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
408 x_libraries
="$ac_optarg" ;;
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
417 if test "x$nonopt" != xNONE
; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
426 if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
432 # File descriptor usage:
435 # 2 errors and warnings
436 # 3 some systems may open it to /dev/tty
437 # 4 used on the Kubota Titan
438 # 6 checking for... messages and results
439 # 5 compiler messages saved in config.log
440 if test "$silent" = yes; then
448 This file contains any messages produced by compilers while
449 running configure, to aid debugging if configure makes a mistake.
452 # Strip out --no-create and --no-recursion so they do not pile up.
453 # Also quote any args containing shell metacharacters.
458 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
459 |
--no-cr |
--no-c) ;;
460 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
461 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
462 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
469 # Only set these to C if already set. These must not be set unconditionally
470 # because not all systems understand e.g. LANG=C (notably SCO).
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472 # Non-C LC_CTYPE values break the ctype check.
473 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
474 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
476 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
479 rm -rf conftest
* confdefs.h
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
483 # A filename unique to this package, relative to the directory that
484 # configure is in, which we can look for to find out if srcdir is correct.
485 ac_unique_file
=src
/lisp.h
487 # Find the source files, if location was not specified.
488 if test -z "$srcdir"; then
489 ac_srcdir_defaulted
=yes
490 # Try the directory containing this script, then its parent.
492 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
495 if test ! -r $srcdir/$ac_unique_file; then
499 ac_srcdir_defaulted
=no
501 if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
508 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
510 # Prefer explicitly selected file to automatically selected ones.
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE
; then
513 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
515 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
518 for ac_site_file
in $CONFIG_SITE; do
519 if test -r "$ac_site_file"; then
520 echo "loading site script $ac_site_file"
525 if test -r "$cache_file"; then
526 echo "loading cache $cache_file"
529 echo "creating cache $cache_file"
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535 ac_cpp
='$CPP $CPPFLAGS'
536 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538 cross_compiling
=$ac_cv_prog_cc_cross
542 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
551 ac_n
= ac_c
='\c' ac_t
=
557 lispdir
='${datadir}/emacs/${version}/lisp'
558 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
559 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
560 lisppath
='${locallisppath}:${lispdir}'
561 etcdir
='${datadir}/emacs/${version}/etc'
562 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
563 docdir
='${datadir}/emacs/${version}/etc'
565 # Check whether --with-gcc or --without-gcc was given.
566 if test "${with_gcc+set}" = set; then
571 # Check whether --with-pop or --without-pop was given.
572 if test "${with_pop+set}" = set; then
574 if test "$withval" = yes; then
575 cat >> confdefs.h
<<\EOF
576 #define MAIL_USE_POP 1
582 cat >> confdefs.h
<<\EOF
583 #define MAIL_USE_POP 1
588 # Check whether --with-kerberos or --without-kerberos was given.
589 if test "${with_kerberos+set}" = set; then
590 withval
="$with_kerberos"
591 cat >> confdefs.h
<<\EOF
597 # Check whether --with-kerberos5 or --without-kerberos5 was given.
598 if test "${with_kerberos5+set}" = set; then
599 withval
="$with_kerberos5"
600 if test "${with_kerberos5+set}" = set; then
601 if test "${with_kerberos+set}" != set; then
603 cat >> confdefs.h
<<\EOF
609 cat >> confdefs.h
<<\EOF
615 # Check whether --with-hesiod or --without-hesiod was given.
616 if test "${with_hesiod+set}" = set; then
617 withval
="$with_hesiod"
618 cat >> confdefs.h
<<\EOF
624 # Check whether --with-x-toolkit or --without-x-toolkit was given.
625 if test "${with_x_toolkit+set}" = set; then
626 withval
="$with_x_toolkit"
628 y | ye |
yes ) val
=athena
;;
630 l | lu | luc | luci | lucid
) val
=lucid
;;
631 a |
at | ath | athe | athen | athena
) val
=athena
;;
632 m | mo | mot | moti | motif
) val
=motif
;;
634 { echo "configure: error: \`--with-x-toolkit=$withval' is invalid\;
635 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
636 Currently, \`yes', \`athena' and \`lucid' are synonyms." 1>&2; exit 1; }
643 # Check whether --with-xpm or --without-xpm was given.
644 if test "${with_xpm+set}" = set; then
649 # Check whether --with-jpeg or --without-jpeg was given.
650 if test "${with_jpeg+set}" = set; then
655 # Check whether --with-tiff or --without-tiff was given.
656 if test "${with_tiff+set}" = set; then
661 # Check whether --with-gif or --without-gif was given.
662 if test "${with_gif+set}" = set; then
667 # Check whether --with-png or --without-png was given.
668 if test "${with_png+set}" = set; then
673 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
674 if test "${with_toolkit_scroll_bars+set}" = set; then
675 withval
="$with_toolkit_scroll_bars"
679 # Check whether --with-xim or --without-xim was given.
680 if test "${with_xim+set}" = set; then
686 #### Make srcdir absolute, if it isn't already. It's important to
687 #### avoid running the path through pwd unnecessarily, since pwd can
688 #### give you automounter prefixes, which can go away. We do all this
689 #### so Emacs can find its files when run uninstalled.
690 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
695 ## We may be able to use the $PWD environment variable to make this
696 ## absolute. But sometimes PWD is inaccurate.
697 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}" ;
701 srcdir
="`(cd ${srcdir}; pwd)`"
704 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
707 #### Check if the source directory already has a configured system in it.
708 if test `pwd` != `(cd ${srcdir} && pwd)` \
709 && test -f "${srcdir}/src/config.h" ; then
710 echo "configure: warning: The directory tree \`${srcdir}' is being used
711 as a build directory right now; it has been configured in its own
712 right. To configure in another directory as well, you MUST
713 use GNU make. If you do not have GNU make, then you must
714 now do \`make distclean' in ${srcdir},
715 and then run $0 again." 1>&2
717 extrasub
='/^VPATH[ ]*=/c\
723 vpath %.in $(srcdir)\
724 vpath %.texi $(srcdir)'
727 #### Given the configuration name, set machfile and opsysfile to the
728 #### names of the m/*.h and s/*.h files we should use.
730 ### Canonicalize the configuration name.
733 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
734 if test -f $ac_dir/install-sh
; then
736 ac_install_sh
="$ac_aux_dir/install-sh -c"
738 elif test -f $ac_dir/install.sh
; then
740 ac_install_sh
="$ac_aux_dir/install.sh -c"
744 if test -z "$ac_aux_dir"; then
745 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
747 ac_config_guess
=$ac_aux_dir/config.guess
748 ac_config_sub
=$ac_aux_dir/config.sub
749 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
752 # Make sure we can run config.sub.
753 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
754 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
757 echo $ac_n "checking host system type""... $ac_c" 1>&6
758 echo "configure:759: checking host system type" >&5
761 case "$host_alias" in
765 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
766 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
768 *) host_alias
=$nonopt ;;
772 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
773 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
774 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
775 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
776 echo "$ac_t""$host" 1>&6
779 configuration
=$host_alias
782 ### If you add support for a new configuration, add code to this
783 ### switch statement to recognize your configuration name and select
784 ### the appropriate operating system and machine description files.
786 ### You would hope that you could choose an m/*.h file pretty much
787 ### based on the machine portion of the configuration name, and an s-
788 ### file based on the operating system portion. However, it turns out
789 ### that each m/*.h file is pretty manufacturer-specific - for
790 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
791 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
792 ### machines. So we basically have to have a special case for each
793 ### configuration name.
795 ### As far as handling version numbers on operating systems is
796 ### concerned, make sure things will fail in a fixable way. If
797 ### /etc/MACHINES doesn't say anything about version numbers, be
798 ### prepared to handle anything reasonably. If version numbers
799 ### matter, be sure /etc/MACHINES says something about it.
801 ### Eric Raymond says we should accept strings like "sysvr4" to mean
802 ### "System V Release 4"; he writes, "The old convention encouraged
803 ### confusion between `system' and `release' levels'."
805 machine
='' opsys
='' unported
=no
806 case "${canonical}" in
811 case "${canonical}" in
812 alpha
*-*-netbsd*) machine
=alpha
;;
813 i
[3456]86-*-netbsd*) machine
=intel386
;;
815 # This is somewhat bogus.
816 machine
=hp9000s300
;;
817 powerpc-apple-netbsd
*) machine
=macppc
;;
818 mips-
*-netbsd*) machine
=pmax
;;
819 mipsel-
*-netbsd*) machine
=pmax
;;
820 ns32k-
*-netbsd*) machine
=ns32000
;;
821 powerpc-
*-netbsd*) machine
=macppc
;;
822 sparc
*-*-netbsd*) machine
=sparc
;;
823 vax-
*-netbsd*) machine
=vax
;;
824 arm-
*-netbsd*) machine
=arm
;;
831 case "${canonical}" in
832 alpha
*-*-openbsd*) machine
=alpha
;;
833 i386-
*-openbsd*) machine
=intel386
;;
834 m68k-
*-openbsd*) machine
=hp9000s300
;;
835 mipsel-
*-openbsd*) machine
=pmax
;;
836 ns32k-
*-openbsd*) machine
=ns32000
;;
837 sparc-
*-openbsd*) machine
=sparc
;;
838 vax-
*-openbsd*) machine
=vax
;;
843 arm-acorn-riscix1.1
* )
844 machine
=acorn opsys
=riscix1-1
846 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
847 ## This name is riscix12 instead of riscix1.2
848 ## to avoid a file name conflict on MSDOS.
849 machine
=acorn opsys
=riscix12
855 case "${canonical}" in
856 i
[345]86-*-bsdi*) machine
=intel386
;;
857 sparc-
*-bsdi*) machine
=sparc
;;
858 powerpc-
*-bsdi*) machine
=macppc
;;
860 case "${canonical}" in
861 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
862 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
863 *-*-bsdi2* ) opsys
=bsdos2-1
;;
864 *-*-bsdi3* ) opsys
=bsdos3
;;
865 *-*-bsdi[45]* ) opsys
=bsdos4
;;
870 ## Strictly speaking, we need the version of the alliant operating
871 ## system to choose the right machine file, but currently the
872 ## configuration name doesn't tell us enough to choose the right
873 ## one; we need to give alliants their own operating system name to
874 ## do this right. When someone cares, they can help us.
876 machine
=alliant4 opsys
=bsd4-2
879 machine
=alliant-2800 opsys
=bsd4-3
882 ## Alpha (DEC) machines.
884 machine
=alpha opsys
=osf1
885 # This is needed to find X11R6.1 libraries for certain tests.
886 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
887 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
888 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
889 # due to non-traditional preprocessing with the current compiler
890 # defaults. OSF 4 can also have that compiler version, and there
891 # seems always to have been a usable /usr/bin/cpp.
892 NON_GNU_CPP
=/usr
/bin
/cpp
893 case "${canonical}" in
894 alpha
*-dec-osf[5-9]*)
899 alpha
*-*-linux-gnu* )
900 machine
=alpha opsys
=gnu-linux
904 machine
=arm opsys
=gnu-linux
909 machine
=macppc opsys
=gnu-linux
914 machine
=altos opsys
=usg5-2
919 machine
=amdahl opsys
=usg5-2-2
924 machine
=apollo opsys
=bsd4-3
927 ## AT&T 3b2, 3b5, 3b15, 3b20
929 machine
=att3b opsys
=usg5-2-2
932 ## AT&T 3b1 - The Mighty Unix PC!
934 machine
=7300 opsys
=usg5-2-2
939 machine
=ibmrs6000 opsys
=aix3-2
944 machine
=dpx2 opsys
=usg5-3
949 machine
=sps7 opsys
=usg5-2
952 ## CCI 5/32, 6/32 -- see "Tahoe".
955 ## I don't know what configuration name to use for this; config.sub
956 ## doesn't seem to know anything about it. Hey, Celerity users, get
958 celerity-celerity-bsd
* )
959 machine
=celerity opsys
=bsd4-2
963 ## What operating systems does this chip run that Emacs has been
967 ## We'll use the catch-all code at the bottom to guess the
972 *-convex-bsd* |
*-convex-convexos* )
973 machine
=convex opsys
=bsd4-3
974 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
975 NON_GNU_CPP
="cc -E -P"
979 i
[3456]86-cubix-sysv* )
980 machine
=intel386 opsys
=usg5-3
984 cydra
*-cydrome-sysv* )
985 machine
=cydra5 opsys
=usg5-3
988 ## Data General AViiON Machines
989 ## DG changed naming conventions with the release of 5.4.4.10, they
990 ## dropped the initial 5.4 but left the intervening R. Because of the
991 ## R this shouldn't conflict with older versions of the OS (which I
992 ## think were named like dgux4.*). In addition, DG new AViiONs series
993 ## uses either Motorola M88k or Intel Pentium CPUs.
994 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
995 machine
=aviion opsys
=dgux4
997 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
998 ## This name is dgux5-4-3 instead of dgux5-4r3
999 ## to avoid a file name conflict on MSDOS.
1000 machine
=aviion opsys
=dgux5-4-3
1002 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1003 machine
=aviion opsys
=dgux5-4r2
1006 machine
=aviion opsys
=dgux
1009 ## Data General AViiON Intel (x86) Machines
1010 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1011 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1012 i
[345]86-dg-dguxR4* )
1013 machine
=aviion-intel opsys
=dgux4
1017 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1018 machine
=pmax opsys
=bsd4-2
1020 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1021 machine
=pmax opsys
=bsd4-3
1024 machine
=pmax opsys
=ultrix4-3
1027 machine
=pmax opsys
=osf1
1029 mips-dec-mach_bsd4.3
* )
1030 machine
=pmax opsys
=mach-bsd4-3
1033 ## Motorola Delta machines
1034 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1035 machine
=delta opsys
=usg5-3
1036 if test -z "`type gnucc | grep 'not found'`"
1038 if test -s /etc
/167config
1039 then CC
="gnucc -m68040"
1040 else CC
="gnucc -m68881"
1043 if test -z "`type gcc | grep 'not found'`"
1049 m88k-motorola-sysv4
* )
1050 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1051 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1052 # I hope there are not other 4.0 versions for this machine
1053 # which really need usg5-4 instead.
1054 machine
=delta88k opsys
=usg5-4-2
1056 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1057 machine
=delta88k opsys
=usg5-3
1062 machine
=dual opsys
=usg5-2
1064 m68
*-dual-uniplus* )
1065 machine
=dual opsys
=unipl5-2
1070 machine
=elxsi opsys
=usg5-2
1075 machine
=ns16000 opsys
=umax
1078 ## The GEC 63 - apparently, this port isn't really finished yet.
1079 # I'm sure we finished off the last of the machines, though. -- fx
1081 ## Gould Power Node and NP1
1083 machine
=gould opsys
=bsd4-2
1086 machine
=gould opsys
=bsd4-3
1089 machine
=gould-np1 opsys
=bsd4-3
1092 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1093 ## as far as Emacs is concerned).
1095 # Build needs to be different on 7.0 and later releases
1096 case "`uname -r`" in
1097 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1098 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1100 NON_GNU_CPP
="/lib/cpp"
1102 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1104 machine
=nh3000 opsys
=cxux
1106 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1107 powerpc-harris-powerunix
)
1108 machine
=nh6000 opsys
=powerunix
1109 NON_GNU_CPP
="cc -Xo -E -P"
1111 ## SR2001/SR2201 running HI-UX/MPP
1112 hppa1.1
-hitachi-hiuxmpp* )
1113 machine
=sr2k opsys
=hiuxmpp
1115 hppa1.1
-hitachi-hiuxwe2* )
1116 machine
=sr2k opsys
=hiuxwe2
1119 xps
*-honeywell-sysv* )
1120 machine
=xps100 opsys
=usg5-2
1123 ## HP 9000 series 200 or 300
1125 machine
=hp9000s300 opsys
=bsd4-3
1127 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1129 case "`uname -r`" in
1130 ## Someone's system reports A.B8.05 for this.
1131 ## I wonder what other possibilities there are.
1132 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1133 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1134 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1135 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1136 *) machine
=hp9000s300 opsys
=hpux
;;
1140 ## HP 9000 series 700 and 800, running HP/UX
1142 machine
=hp800 opsys
=hpux
1145 machine
=hp800 opsys
=hpux8
1147 hppa
*-hp-hpux9shr* )
1148 machine
=hp800 opsys
=hpux9shr
1151 machine
=hp800 opsys
=hpux9
1155 machine
=hp800 opsys
=hpux10
1157 hppa
*-hp-hpux1[1-9]* )
1158 machine
=hp800 opsys
=hpux11
1161 ## HP 9000 series 700 and 800, running HP/UX
1163 ## Cross-compilation? Nah!
1164 case "`uname -r`" in
1165 ## Someone's system reports A.B8.05 for this.
1166 ## I wonder what other possibilities there are.
1167 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1168 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1169 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1170 *) machine
=hp800 opsys
=hpux10
;;
1174 machine
=hp800 opsys
=nextstep
1179 machine
=orion opsys
=bsd4-2
1181 clipper-orion-bsd
* )
1182 machine
=orion105 opsys
=bsd4-2
1186 i
[3456]86-ibm-aix1.1
* )
1187 machine
=ibmps2-aix opsys
=usg5-2-2
1189 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1190 machine
=ibmps2-aix opsys
=usg5-3
1193 machine
=ibm370aix opsys
=usg5-3
1195 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
1196 machine
=ibmrs6000 opsys
=aix3-1
1198 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
1199 machine
=ibmrs6000 opsys
=aix3-2-5
1201 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
1202 machine
=ibmrs6000 opsys
=aix4-1
1204 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
1205 machine
=ibmrs6000 opsys
=aix4-2
1207 rs6000-ibm-aix5.1
* | powerpc-ibm-aix5.1
* )
1208 machine
=ibmrs6000 opsys
=aix4-2
1210 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
1211 machine
=ibmrs6000 opsys
=aix4
1213 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
1214 machine
=ibmrs6000 opsys
=aix4-1
1216 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
1217 machine
=ibmrs6000 opsys
=aix3-2
1220 machine
=ibmrt opsys
=bsd4-3
1223 machine
=ibmrt opsys
=bsd4-2
1226 machine
=ibmrt opsys
=bsd4-3
1229 machine
=ibmrt opsys
=bsd4-2
1232 machine
=ibmrt opsys
=bsd4-3
1235 machine
=ibmrt opsys
=bsd4-3
1238 machine
=ibmrt-aix opsys
=usg5-2-2
1241 ## Integrated Solutions `Optimum V'
1243 machine
=isi-ov opsys
=bsd4-2
1246 machine
=isi-ov opsys
=bsd4-3
1249 ## Intel 386 machines where we do care about the manufacturer
1250 i
[3456]86-intsys-sysv* )
1251 machine
=is386 opsys
=usg5-2-2
1255 i
[3456]86-prime-sysv* )
1256 machine
=i386 opsys
=usg5-3
1259 ## Sequent Symmetry running Dynix
1260 i
[3456]86-sequent-bsd* )
1261 machine
=symmetry opsys
=bsd4-3
1264 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1265 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
1266 machine
=sequent-ptx opsys
=ptx4
1267 NON_GNU_CPP
=/lib
/cpp
1270 ## Sequent Symmetry running DYNIX/ptx
1271 ## Use the old cpp rather than the newer ANSI one.
1272 i
[3456]86-sequent-ptx* )
1273 machine
=sequent-ptx opsys
=ptx
1274 NON_GNU_CPP
="/lib/cpp"
1277 ## ncr machine running svr4.3.
1278 i
[3456]86-ncr-sysv4.3
)
1279 machine
=ncr386 opsys
=usg5-4-3
1282 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1283 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1284 i
[3456]86-ncr-sysv* )
1285 machine
=ncr386 opsys
=usg5-4-2
1288 ## Intel Paragon OSF/1
1290 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
1295 machine
=i860 opsys
=usg5-4
1296 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1297 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1300 ## Macintosh PowerPC
1301 powerpc
*-*-linux-gnu* )
1302 machine
=macppc opsys
=gnu-linux
1305 ## Masscomp machines
1306 m68
*-masscomp-rtu* )
1307 machine
=masscomp opsys
=rtu
1310 ## Megatest machines
1311 m68
*-megatest-bsd* )
1312 machine
=mega68 opsys
=bsd4-2
1315 ## Workstations sold by MIPS
1316 ## This is not necessarily all workstations using the MIPS processor -
1317 ## Irises are produced by SGI, and DECstations by DEC.
1319 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1320 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1321 ## it gives for choosing between the alternatives seems to be "Use
1322 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1323 ## the BSD world." I'll assume that these are instructions for
1324 ## handling two odd situations, and that every other situation
1325 ## should use mips.h and usg5-2-2, they being listed first.
1328 ## Fall through to the general code at the bottom to decide on the OS.
1330 mips-mips-riscos4
* )
1331 machine
=mips4 opsys
=bsd4-3
1332 NON_GNU_CC
="cc -systype bsd43"
1333 NON_GNU_CPP
="cc -systype bsd43 -E"
1335 mips-mips-riscos5
* )
1336 machine
=mips4 opsys
=riscos5
1337 NON_GNU_CC
="cc -systype bsd43"
1338 NON_GNU_CPP
="cc -systype bsd43 -E"
1341 machine
=mips opsys
=bsd4-3
1344 machine
=mips opsys
=usg5-2-2
1348 m68
*-next-* | m68k-
*-nextstep* )
1349 machine
=m68k opsys
=nextstep
1352 ## The complete machine from National Semiconductor
1354 machine
=ns32000 opsys
=usg5-2
1358 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
1359 machine
=tower32 opsys
=usg5-2-2
1361 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
1362 machine
=tower32v3 opsys
=usg5-3
1367 machine
=ews4800 opsys
=ux4800
1370 ## Nixdorf Targon 31
1371 m68
*-nixdorf-sysv* )
1372 machine
=targon31 opsys
=usg5-2-2
1377 machine
=nu opsys
=usg5-2
1382 machine
=plexus opsys
=usg5-2
1385 ## PowerPC reference platform
1386 powerpcle-
*-solaris2* )
1392 ## I don't really have any idea what sort of processor the Pyramid has,
1393 ## so I'm assuming it is its own architecture.
1394 pyramid-pyramid-bsd
* )
1395 machine
=pyramid opsys
=bsd4-2
1399 ns32k-sequent-bsd4.2
* )
1400 machine
=sequent opsys
=bsd4-2
1402 ns32k-sequent-bsd4.3
* )
1403 machine
=sequent opsys
=bsd4-3
1407 mips-siemens-sysv
* | mips-sni-sysv
*)
1408 machine
=mips-siemens opsys
=usg5-4
1409 NON_GNU_CC
=/usr
/ccs
/bin
/cc
1410 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1413 ## Silicon Graphics machines
1414 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1416 machine
=irist opsys
=iris3-5
1418 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
1419 machine
=irist opsys
=iris3-6
1423 machine
=iris4d opsys
=irix3-3
1426 machine
=iris4d opsys
=irix4-0
1429 machine
=iris4d opsys
=irix6-5
1430 # Without defining _LANGUAGE_C, things get masked out in the headers
1431 # so that, for instance, grepping for `free' in stdlib.h fails and
1432 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1433 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1434 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
1437 machine
=iris4d opsys
=irix6-0
1438 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1439 # but presumably it does no harm.
1440 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
1441 # -32 probably isn't necessary in later v.6s -- anyone know which?
1442 NON_GCC_TEST_OPTIONS
=-32
1444 mips-sgi-irix5.
[01]* )
1445 machine
=iris4d opsys
=irix5-0
1447 mips-sgi-irix5
* | mips-sgi-irix
* )
1448 machine
=iris4d opsys
=irix5-2
1453 machine
=news opsys
=bsd4-2
1456 machine
=news opsys
=bsd4-3
1458 m68
*-sony-newsos3* | m68
*-sony-news3*)
1459 machine
=news opsys
=bsd4-3
1461 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
1462 machine
=news-risc opsys
=bsd4-3
1464 mips-sony-newsos6
* )
1465 machine
=news-r6 opsys
=newsos6
1468 machine
=news-risc opsys
=newsos5
1473 machine
=stride opsys
=usg5-2
1477 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
1478 machine
=sparc opsys
=gnu-linux
1481 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
1482 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
1483 | rs6000-
*-solaris2*)
1484 case "${canonical}" in
1485 m68
*-sunos1* ) machine
=sun1
;;
1486 m68
*-sunos2* ) machine
=sun2
;;
1487 m68
* ) machine
=sun3
;;
1488 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
1489 i
[3456]86-*-* ) machine
=intel386
;;
1490 powerpcle
* ) machine
=powerpcle
;;
1491 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
1492 sparc
* ) machine
=sparc
;;
1495 case "${canonical}" in
1496 ## The Sun386 didn't get past 4.0.
1497 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
1498 *-sunos4.0
* ) opsys
=sunos4-0
;;
1499 *-sunos4.1.
[3-9]*noshare
)
1500 ## This name is sunos413 instead of sunos4-1-3
1501 ## to avoid a file name conflict on MSDOS.
1503 NON_GNU_CPP
=/usr
/lib
/cpp
1504 NON_GCC_TEST_OPTIONS
=-Bstatic
1505 GCC_TEST_OPTIONS
=-static
1507 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
1509 NON_GNU_CPP
=/usr
/lib
/cpp
1511 *-sunos4* |
*-sunos )
1513 NON_GCC_TEST_OPTIONS
=-Bstatic
1514 GCC_TEST_OPTIONS
=-static
1516 *-sunos5.3
* |
*-solaris2.3
* )
1518 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1520 *-sunos5.4
* |
*-solaris2.4
* )
1522 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1525 *-sunos5.5
* |
*-solaris2.5
* )
1527 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1530 *-sunos5* |
*-solaris* )
1532 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1536 ## Watch out for a compiler that we know will not work.
1537 case "${canonical}" in
1538 *-solaris* |
*-sunos5* )
1539 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
1540 ## /usr/ucb/cc doesn't work;
1541 ## we should find some other compiler that does work.
1549 machine
=sparc opsys
=nextstep
1553 m68
*-tadpole-sysv* )
1554 machine
=tad68k opsys
=usg5-3
1558 tahoe-tahoe-bsd4.2
* )
1559 machine
=tahoe opsys
=bsd4-2
1561 tahoe-tahoe-bsd4.3
* )
1562 machine
=tahoe opsys
=bsd4-3
1565 ## Tandem Integrity S2
1567 machine
=tandem-s2 opsys
=usg5-3
1571 m88k-tektronix-sysv3
* )
1572 machine
=tekxd88 opsys
=usg5-3
1575 ## Tektronix 16000 box (6130?)
1576 ns16k-tektronix-bsd
* )
1577 machine
=ns16000 opsys
=bsd4-2
1580 ## src/m/tek4300.h hints that this is a m68k machine.
1581 m68
*-tektronix-bsd* )
1582 machine
=tek4300 opsys
=bsd4-3
1586 ## We seem to have lost the machine-description file titan.h!
1588 machine
=titan opsys
=usg5-3
1591 ## Ustation E30 (SS5E)
1592 m68
*-unisys-uniplus* )
1593 machine
=ustation opsystem
=unipl5-2
1599 case "${canonical}" in
1600 *-bsd4.1
* ) opsys
=bsd4-1
;;
1601 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
1602 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
1603 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
1604 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
1605 *-vms* ) opsys
=vms
;;
1611 ns16k-whitechapel-
* )
1613 ## We don't know what sort of OS runs on these; we'll let the
1614 ## operating system guessing code below try.
1619 machine
=wicat opsys
=usg5-2
1624 machine
=ia64 opsys
=gnu-linux
1627 ## Intel 386 machines where we don't care about the manufacturer
1630 case "${canonical}" in
1631 *-lynxos* ) opsys
=lynxos
;;
1632 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
1633 *-isc2.2
* ) opsys
=isc2-2
;;
1634 *-isc4.0
* ) opsys
=isc4-0
;;
1635 *-isc4.
* ) opsys
=isc4-1
1636 GCC_TEST_OPTIONS
=-posix
1637 NON_GCC_TEST_OPTIONS
=-Xp
1639 *-isc* ) opsys
=isc3-0
;;
1640 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
1641 *-esix* ) opsys
=esix
;;
1642 *-xenix* ) opsys
=xenix
;;
1643 *-linux-gnu* ) opsys
=gnu-linux
;;
1644 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
1645 *-sco3.2v5
* ) opsys
=sco5
1646 NON_GNU_CPP
=/lib
/cpp
1647 # Prevent -belf from being passed to $CPP.
1648 # /lib/cpp does not accept it.
1649 OVERRIDE_CPPFLAGS
=" "
1651 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
1652 *-386bsd* ) opsys
=386bsd
;;
1653 *-freebsd* ) opsys
=freebsd
;;
1654 *-nextstep* ) opsys
=nextstep
;;
1655 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
1659 ## m68k Linux-based GNU system
1661 machine
=m68k opsys
=gnu-linux
1664 ## Mips Linux-based GNU system
1666 machine
=mips opsys
=gnu-linux
1670 sparc-fujitsu-sysv4
* )
1671 machine
=sparc opsys
=uxpds
1672 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1677 f301-fujitsu-uxpv4.1
)
1678 machine
=f301 opsys
=uxpv
1686 ### If the code above didn't choose an operating system, just choose
1687 ### an operating system based on the configuration name. You really
1688 ### only want to use this when you have no idea what the right
1689 ### operating system is; if you know what operating systems a machine
1690 ### runs, it's cleaner to make it explicit in the case statement
1692 if test x
"${opsys}" = x
; then
1693 case "${canonical}" in
1694 *-gnu* ) opsys
=gnu
;;
1695 *-bsd4.
[01] ) opsys
=bsd4-1
;;
1696 *-bsd4.2
) opsys
=bsd4-2
;;
1697 *-bsd4.3
) opsys
=bsd4-3
;;
1698 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
1699 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
1700 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
1701 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
1702 *-sysv4.2uw
* ) opsys
=unixware
;;
1703 *-sysv4.1
* |
*-sysvr4.1
* )
1704 NON_GNU_CPP
=/usr
/lib
/cpp
1706 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
1707 if [ x
$NON_GNU_CPP = x
]; then
1708 if [ -f /usr
/ccs
/lib
/cpp
]; then
1709 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1711 NON_GNU_CPP
=/lib
/cpp
1715 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
1723 if test $unported = yes; then
1724 { echo "configure: error: Emacs hasn't been ported to \`${canonical}' systems.
1725 Check \`etc/MACHINES' for recognized configuration names." 1>&2; exit 1; }
1728 machfile
="m/${machine}.h"
1729 opsysfile
="s/${opsys}.h"
1732 #### Choose a compiler.
1733 test -n "$CC" && cc_specified
=yes
1735 # Save the value of CFLAGS that the user specified.
1736 SPECIFIED_CFLAGS
="$CFLAGS"
1739 "yes" ) CC
="gcc" GCC
=yes ;;
1740 "no" ) : ${CC=cc} ;;
1741 * ) # Extract the first word of "gcc", so it can be a program name with args.
1742 set dummy gcc
; ac_word
=$2
1743 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1744 echo "configure:1745: checking for $ac_word" >&5
1745 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1748 if test -n "$CC"; then
1749 ac_cv_prog_CC
="$CC" # Let the user override the test.
1751 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1753 for ac_dir
in $ac_dummy; do
1754 test -z "$ac_dir" && ac_dir
=.
1755 if test -f $ac_dir/$ac_word; then
1764 if test -n "$CC"; then
1765 echo "$ac_t""$CC" 1>&6
1767 echo "$ac_t""no" 1>&6
1770 if test -z "$CC"; then
1771 # Extract the first word of "cc", so it can be a program name with args.
1772 set dummy cc
; ac_word
=$2
1773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1774 echo "configure:1775: checking for $ac_word" >&5
1775 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1778 if test -n "$CC"; then
1779 ac_cv_prog_CC
="$CC" # Let the user override the test.
1781 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1784 for ac_dir
in $ac_dummy; do
1785 test -z "$ac_dir" && ac_dir
=.
1786 if test -f $ac_dir/$ac_word; then
1787 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1788 ac_prog_rejected
=yes
1796 if test $ac_prog_rejected = yes; then
1797 # We found a bogon in the path, so make sure we never use it.
1798 set dummy
$ac_cv_prog_CC
1800 if test $# -gt 0; then
1801 # We chose a different compiler from the bogus one.
1802 # However, it has the same basename, so the bogon will be chosen
1803 # first if we set CC to just the basename; use the full file name.
1805 set dummy
"$ac_dir/$ac_word" "$@"
1813 if test -n "$CC"; then
1814 echo "$ac_t""$CC" 1>&6
1816 echo "$ac_t""no" 1>&6
1819 if test -z "$CC"; then
1820 case "`uname -s`" in
1822 # Extract the first word of "cl", so it can be a program name with args.
1823 set dummy cl
; ac_word
=$2
1824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1825 echo "configure:1826: checking for $ac_word" >&5
1826 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1829 if test -n "$CC"; then
1830 ac_cv_prog_CC
="$CC" # Let the user override the test.
1832 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1834 for ac_dir
in $ac_dummy; do
1835 test -z "$ac_dir" && ac_dir
=.
1836 if test -f $ac_dir/$ac_word; then
1845 if test -n "$CC"; then
1846 echo "$ac_t""$CC" 1>&6
1848 echo "$ac_t""no" 1>&6
1853 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1856 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1857 echo "configure:1858: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1860 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1861 ac_cpp
='$CPP $CPPFLAGS'
1862 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1863 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1864 cross_compiling
=$ac_cv_prog_cc_cross
1866 cat > conftest.
$ac_ext << EOF
1868 #line 1869 "configure"
1869 #include "confdefs.h"
1873 if { (eval echo configure
:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1874 ac_cv_prog_cc_works
=yes
1875 # If we can't run a trivial program, we are probably using a cross compiler.
1876 if (.
/conftest
; exit) 2>/dev
/null
; then
1877 ac_cv_prog_cc_cross
=no
1879 ac_cv_prog_cc_cross
=yes
1882 echo "configure: failed program was:" >&5
1883 cat conftest.
$ac_ext >&5
1884 ac_cv_prog_cc_works
=no
1888 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1889 ac_cpp
='$CPP $CPPFLAGS'
1890 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1891 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1892 cross_compiling
=$ac_cv_prog_cc_cross
1894 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1895 if test $ac_cv_prog_cc_works = no
; then
1896 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1898 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1899 echo "configure:1900: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1900 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1901 cross_compiling
=$ac_cv_prog_cc_cross
1903 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1904 echo "configure:1905: checking whether we are using GNU C" >&5
1905 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1908 cat > conftest.c
<<EOF
1913 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1920 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1922 if test $ac_cv_prog_gcc = yes; then
1928 ac_test_CFLAGS
="${CFLAGS+set}"
1929 ac_save_CFLAGS
="$CFLAGS"
1931 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1932 echo "configure:1933: checking whether ${CC-cc} accepts -g" >&5
1933 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1934 echo $ac_n "(cached) $ac_c" 1>&6
1936 echo 'void f(){}' > conftest.c
1937 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1946 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1947 if test "$ac_test_CFLAGS" = set; then
1948 CFLAGS
="$ac_save_CFLAGS"
1949 elif test $ac_cv_prog_cc_g = yes; then
1950 if test "$GCC" = yes; then
1956 if test "$GCC" = yes; then
1965 # On Suns, sometimes $CPP names a directory.
1966 if test -n "$CPP" && test -d "$CPP"; then
1970 #### Some systems specify a CPP to use unless we are using GCC.
1971 #### Now that we know whether we are using GCC, we can decide whether
1972 #### to use that one.
1973 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
1978 #### Some systems specify a CC to use unless we are using GCC.
1979 #### Now that we know whether we are using GCC, we can decide whether
1980 #### to use that one.
1981 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
1982 test x
$cc_specified != xyes
1987 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
1989 CC
="$CC $GCC_TEST_OPTIONS"
1992 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
1994 CC
="$CC $NON_GCC_TEST_OPTIONS"
1997 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
1999 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
2002 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
2004 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
2007 #### Some other nice autoconf tests. If you add a test here which
2008 #### should make an entry in src/config.h, don't forget to add an
2009 #### #undef clause to src/config.h.in for autoconf to modify.
2011 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2012 echo "configure:2013: checking whether ln -s works" >&5
2013 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2017 if ln -s X conftestdata
2>/dev
/null
2020 ac_cv_prog_LN_S
="ln -s"
2025 LN_S
="$ac_cv_prog_LN_S"
2026 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2027 echo "$ac_t""yes" 1>&6
2029 echo "$ac_t""no" 1>&6
2032 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2033 echo "configure:2034: checking how to run the C preprocessor" >&5
2034 # On Suns, sometimes $CPP names a directory.
2035 if test -n "$CPP" && test -d "$CPP"; then
2038 if test -z "$CPP"; then
2039 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2042 # This must be in double quotes, not single quotes, because CPP may get
2043 # substituted into the Makefile and "${CC-cc}" will confuse make.
2045 # On the NeXT, cc -E runs the code through the compiler's parser,
2046 # not just through cpp.
2047 cat > conftest.
$ac_ext <<EOF
2048 #line 2049 "configure"
2049 #include "confdefs.h"
2053 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2054 { (eval echo configure
:2055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2055 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2056 if test -z "$ac_err"; then
2060 echo "configure: failed program was:" >&5
2061 cat conftest.
$ac_ext >&5
2063 CPP
="${CC-cc} -E -traditional-cpp"
2064 cat > conftest.
$ac_ext <<EOF
2065 #line 2066 "configure"
2066 #include "confdefs.h"
2070 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2071 { (eval echo configure
:2072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2072 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2073 if test -z "$ac_err"; then
2077 echo "configure: failed program was:" >&5
2078 cat conftest.
$ac_ext >&5
2080 CPP
="${CC-cc} -nologo -E"
2081 cat > conftest.
$ac_ext <<EOF
2082 #line 2083 "configure"
2083 #include "confdefs.h"
2087 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2088 { (eval echo configure
:2089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2089 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2090 if test -z "$ac_err"; then
2094 echo "configure: failed program was:" >&5
2095 cat conftest.
$ac_ext >&5
2104 ac_cv_prog_CPP
="$CPP"
2106 CPP
="$ac_cv_prog_CPP"
2108 ac_cv_prog_CPP
="$CPP"
2110 echo "$ac_t""$CPP" 1>&6
2112 # Find a good install program. We prefer a C program (faster),
2113 # so one script is as good as another. But avoid the broken or
2114 # incompatible versions:
2115 # SysV /etc/install, /usr/sbin/install
2116 # SunOS /usr/etc/install
2117 # IRIX /sbin/install
2119 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2120 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2121 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2122 # ./install, which can be erroneously created by make from ./install.sh.
2123 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2124 echo "configure:2125: checking for a BSD compatible install" >&5
2125 if test -z "$INSTALL"; then
2126 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2130 for ac_dir
in $PATH; do
2131 # Account for people who put trailing slashes in PATH elements.
2133 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2135 # OSF1 and SCO ODT 3.0 have their own names for install.
2136 # Don't use installbsd from OSF since it installs stuff as root
2138 for ac_prog
in ginstall scoinst
install; do
2139 if test -f $ac_dir/$ac_prog; then
2140 if test $ac_prog = install &&
2141 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2142 # AIX install. It has an incompatible calling convention.
2145 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2156 if test "${ac_cv_path_install+set}" = set; then
2157 INSTALL
="$ac_cv_path_install"
2159 # As a last resort, use the slow shell script. We don't cache a
2160 # path for INSTALL within a source directory, because that will
2161 # break other packages using the cache if that directory is
2162 # removed, or if the path is relative.
2163 INSTALL
="$ac_install_sh"
2166 echo "$ac_t""$INSTALL" 1>&6
2168 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2169 # It thinks the first close brace ends the variable substitution.
2170 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2172 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2174 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2176 for ac_prog
in 'bison -y' byacc
2178 # Extract the first word of "$ac_prog", so it can be a program name with args.
2179 set dummy
$ac_prog; ac_word
=$2
2180 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2181 echo "configure:2182: checking for $ac_word" >&5
2182 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 if test -n "$YACC"; then
2186 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2188 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2190 for ac_dir
in $ac_dummy; do
2191 test -z "$ac_dir" && ac_dir
=.
2192 if test -f $ac_dir/$ac_word; then
2193 ac_cv_prog_YACC
="$ac_prog"
2200 YACC
="$ac_cv_prog_YACC"
2201 if test -n "$YACC"; then
2202 echo "$ac_t""$YACC" 1>&6
2204 echo "$ac_t""no" 1>&6
2207 test -n "$YACC" && break
2209 test -n "$YACC" || YACC
="yacc"
2211 if test "x$RANLIB" = x
; then
2212 # Extract the first word of "ranlib", so it can be a program name with args.
2213 set dummy ranlib
; ac_word
=$2
2214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2215 echo "configure:2216: checking for $ac_word" >&5
2216 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2217 echo $ac_n "(cached) $ac_c" 1>&6
2219 if test -n "$RANLIB"; then
2220 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2222 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2224 for ac_dir
in $ac_dummy; do
2225 test -z "$ac_dir" && ac_dir
=.
2226 if test -f $ac_dir/$ac_word; then
2227 ac_cv_prog_RANLIB
="ranlib"
2232 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2235 RANLIB
="$ac_cv_prog_RANLIB"
2236 if test -n "$RANLIB"; then
2237 echo "$ac_t""$RANLIB" 1>&6
2239 echo "$ac_t""no" 1>&6
2244 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2245 echo "configure:2246: checking for AIX" >&5
2246 cat > conftest.
$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2255 egrep "yes" >/dev
/null
2>&1; then
2257 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
2258 #define _ALL_SOURCE 1
2263 echo "$ac_t""no" 1>&6
2269 #### Extract some information from the operating system and machine files.
2271 echo "checking the machine- and system-dependent files to find out
2272 - which libraries the lib-src programs will want, and
2273 - whether the GNU malloc routines are usable" 1>&6
2274 echo "configure:2275: checking the machine- and system-dependent files to find out
2275 - which libraries the lib-src programs will want, and
2276 - whether the GNU malloc routines are usable" >&5
2278 ### First figure out CFLAGS (which we use for running the compiler here)
2279 ### and REAL_CFLAGS (which we use for real compilation).
2280 ### The two are the same except on a few systems, where they are made
2281 ### different to work around various lossages. For example,
2282 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
2283 ### as implying static linking.
2285 ### If the CFLAGS env var is specified, we use that value
2286 ### instead of the default.
2288 ### It's not important that this name contain the PID; you can't run
2289 ### two configures in the same directory and have anything work
2291 tempcname
="conftest.c"
2294 #include "'${srcdir}'/src/'${opsysfile}'"
2295 #include "'${srcdir}'/src/'${machfile}'"
2296 #ifndef LIBS_MACHINE
2297 #define LIBS_MACHINE
2302 #ifndef C_SWITCH_SYSTEM
2303 #define C_SWITCH_SYSTEM
2305 #ifndef C_SWITCH_MACHINE
2306 #define C_SWITCH_MACHINE
2308 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
2309 configure___ c_switch_system=C_SWITCH_SYSTEM
2310 configure___ c_switch_machine=C_SWITCH_MACHINE
2313 #define LIB_X11_LIB -lX11
2316 #ifndef LIBX11_MACHINE
2317 #define LIBX11_MACHINE
2320 #ifndef LIBX11_SYSTEM
2321 #define LIBX11_SYSTEM
2323 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
2326 configure___ unexec=UNEXEC
2328 configure___ unexec=unexec.o
2331 #ifdef SYSTEM_MALLOC
2332 configure___ system_malloc=yes
2334 configure___ system_malloc=no
2337 #ifdef USE_MMAP_FOR_BUFFERS
2338 configure___ use_mmap_for_buffers=yes
2340 configure___ use_mmap_for_buffers=no
2343 #ifndef C_DEBUG_SWITCH
2344 #define C_DEBUG_SWITCH -g
2347 #ifndef C_OPTIMIZE_SWITCH
2349 #define C_OPTIMIZE_SWITCH -O2
2351 #define C_OPTIMIZE_SWITCH -O
2355 #ifndef LD_SWITCH_MACHINE
2356 #define LD_SWITCH_MACHINE
2359 #ifndef LD_SWITCH_SYSTEM
2360 #define LD_SWITCH_SYSTEM
2363 #ifndef LD_SWITCH_X_SITE_AUX
2364 #define LD_SWITCH_X_SITE_AUX
2367 configure___ ld_switch_system=LD_SWITCH_SYSTEM
2368 configure___ ld_switch_machine=LD_SWITCH_MACHINE
2370 #ifdef THIS_IS_CONFIGURE
2372 /* Get the CFLAGS for tests in configure. */
2374 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
2376 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
2379 #else /* not THIS_IS_CONFIGURE */
2381 /* Get the CFLAGS for real compilation. */
2383 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
2385 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
2388 #endif /* not THIS_IS_CONFIGURE */
2391 # The value of CPP is a quoted variable reference, so we need to do this
2392 # to get its actual value...
2393 CPP
=`eval "echo $CPP"`
2394 eval `${CPP} -Isrc ${tempcname} \
2395 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
2396 if test "x$SPECIFIED_CFLAGS" = x
; then
2397 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
2398 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
2400 REAL_CFLAGS
="$CFLAGS"
2404 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
2406 ### Make sure subsequent tests use flags consistent with the build flags.
2408 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
2409 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
2411 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
2415 # Check whether --enable-largefile or --disable-largefile was given.
2416 if test "${enable_largefile+set}" = set; then
2417 enableval
="$enable_largefile"
2421 if test "$enable_largefile" != no
; then
2423 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
2424 echo "configure:2425: checking for special C compiler options needed for large files" >&5
2425 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2428 ac_cv_sys_largefile_CC
=no
2429 if test "$GCC" != yes; then
2430 # IRIX 6.2 and later do not support large files by default,
2431 # so use the C compiler's -n32 option if that helps.
2432 cat > conftest.
$ac_ext <<EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2435 #include <sys/types.h>
2436 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2442 if { (eval echo configure
:2443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2445 echo "configure: failed program was:" >&5
2446 cat conftest.
$ac_ext >&5
2450 cat > conftest.
$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2453 #include <sys/types.h>
2454 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2460 if { (eval echo configure
:2461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2462 ac_cv_sys_largefile_CC
=' -n32'
2464 echo "configure: failed program was:" >&5
2465 cat conftest.
$ac_ext >&5
2474 echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
2475 if test "$ac_cv_sys_largefile_CC" != no
; then
2476 CC
="$CC$ac_cv_sys_largefile_CC"
2479 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
2480 echo "configure:2481: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2481 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2484 ac_cv_sys_file_offset_bits
=no
2485 cat > conftest.
$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488 #include <sys/types.h>
2489 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2495 if { (eval echo configure
:2496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2498 echo "configure: failed program was:" >&5
2499 cat conftest.
$ac_ext >&5
2501 cat > conftest.
$ac_ext <<EOF
2502 #line 2503 "configure"
2503 #include "confdefs.h"
2504 #define _FILE_OFFSET_BITS 64
2505 #include <sys/types.h>
2506 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
2513 if { (eval echo configure
:2514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2515 ac_cv_sys_file_offset_bits
=64
2517 echo "configure: failed program was:" >&5
2518 cat conftest.
$ac_ext >&5
2525 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
2526 if test "$ac_cv_sys_file_offset_bits" != no
; then
2527 cat >> confdefs.h
<<EOF
2528 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2532 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
2533 echo "configure:2534: checking for _LARGE_FILES value needed for large files" >&5
2534 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6
2537 ac_cv_sys_large_files
=no
2538 cat > conftest.
$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2546 if { (eval echo configure
:2547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2549 echo "configure: failed program was:" >&5
2550 cat conftest.
$ac_ext >&5
2552 cat > conftest.
$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2555 #define _LARGE_FILES 1
2562 if { (eval echo configure
:2563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2564 ac_cv_sys_large_files
=1
2566 echo "configure: failed program was:" >&5
2567 cat conftest.
$ac_ext >&5
2574 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
2575 if test "$ac_cv_sys_large_files" != no
; then
2576 cat >> confdefs.h
<<EOF
2577 #define _LARGE_FILES $ac_cv_sys_large_files
2584 # Sound support for GNU/Linux and the free BSDs.
2585 for ac_hdr
in machine
/soundcard.h sys
/soundcard.h soundcard.h
2587 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2588 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2589 echo "configure:2590: checking for $ac_hdr" >&5
2590 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2593 cat > conftest.
$ac_ext <<EOF
2594 #line 2595 "configure"
2595 #include "confdefs.h"
2598 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2599 { (eval echo configure
:2600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2600 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2601 if test -z "$ac_err"; then
2603 eval "ac_cv_header_$ac_safe=yes"
2606 echo "configure: failed program was:" >&5
2607 cat conftest.
$ac_ext >&5
2609 eval "ac_cv_header_$ac_safe=no"
2613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2614 echo "$ac_t""yes" 1>&6
2615 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2616 cat >> confdefs.h
<<EOF
2617 #define $ac_tr_hdr 1
2621 echo "$ac_t""no" 1>&6
2625 # Emulation library used on NetBSD.
2626 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2627 echo "configure:2628: checking for _oss_ioctl in -lossaudio" >&5
2628 ac_lib_var
=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2629 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2632 ac_save_LIBS
="$LIBS"
2633 LIBS
="-lossaudio $LIBS"
2634 cat > conftest.
$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2637 /* Override any gcc2 internal prototype to avoid an error. */
2638 /* We use char because int might match the return type of a gcc2
2639 builtin and then its argument prototype would still apply. */
2646 if { (eval echo configure
:2647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2648 eval "ac_cv_lib_$ac_lib_var=yes"
2650 echo "configure: failed program was:" >&5
2651 cat conftest.
$ac_ext >&5
2653 eval "ac_cv_lib_$ac_lib_var=no"
2656 LIBS
="$ac_save_LIBS"
2659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2660 echo "$ac_t""yes" 1>&6
2663 echo "$ac_t""no" 1>&6
2669 for ac_hdr
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
2670 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
2671 termcap.h stdio_ext.h fcntl.h term.h
strings.h
2673 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2674 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2675 echo "configure:2676: checking for $ac_hdr" >&5
2676 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2679 cat > conftest.
$ac_ext <<EOF
2680 #line 2681 "configure"
2681 #include "confdefs.h"
2684 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2685 { (eval echo configure
:2686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2686 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2687 if test -z "$ac_err"; then
2689 eval "ac_cv_header_$ac_safe=yes"
2692 echo "configure: failed program was:" >&5
2693 cat conftest.
$ac_ext >&5
2695 eval "ac_cv_header_$ac_safe=no"
2699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2700 echo "$ac_t""yes" 1>&6
2701 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2702 cat >> confdefs.h
<<EOF
2703 #define $ac_tr_hdr 1
2707 echo "$ac_t""no" 1>&6
2711 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2712 echo "configure:2713: checking for ANSI C header files" >&5
2713 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2716 cat > conftest.
$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2724 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2725 { (eval echo configure
:2726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2726 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2727 if test -z "$ac_err"; then
2729 ac_cv_header_stdc
=yes
2732 echo "configure: failed program was:" >&5
2733 cat conftest.
$ac_ext >&5
2735 ac_cv_header_stdc
=no
2739 if test $ac_cv_header_stdc = yes; then
2740 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2741 cat > conftest.
$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2747 egrep "memchr" >/dev
/null
2>&1; then
2751 ac_cv_header_stdc
=no
2757 if test $ac_cv_header_stdc = yes; then
2758 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2759 cat > conftest.
$ac_ext <<EOF
2760 #line 2761 "configure"
2761 #include "confdefs.h"
2764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2765 egrep "free" >/dev
/null
2>&1; then
2769 ac_cv_header_stdc
=no
2775 if test $ac_cv_header_stdc = yes; then
2776 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2777 if test "$cross_compiling" = yes; then
2780 cat > conftest.
$ac_ext <<EOF
2781 #line 2782 "configure"
2782 #include "confdefs.h"
2784 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2785 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2786 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2787 int main () { int i; for (i = 0; i < 256; i++)
2788 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2792 if { (eval echo configure
:2793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2796 echo "configure: failed program was:" >&5
2797 cat conftest.
$ac_ext >&5
2799 ac_cv_header_stdc
=no
2807 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2808 if test $ac_cv_header_stdc = yes; then
2809 cat >> confdefs.h
<<\EOF
2810 #define STDC_HEADERS 1
2815 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2816 echo "configure:2817: checking whether time.h and sys/time.h may both be included" >&5
2817 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2820 cat > conftest.
$ac_ext <<EOF
2821 #line 2822 "configure"
2822 #include "confdefs.h"
2823 #include <sys/types.h>
2824 #include <sys/time.h>
2830 if { (eval echo configure
:2831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2832 ac_cv_header_time
=yes
2834 echo "configure: failed program was:" >&5
2835 cat conftest.
$ac_ext >&5
2837 ac_cv_header_time
=no
2842 echo "$ac_t""$ac_cv_header_time" 1>&6
2843 if test $ac_cv_header_time = yes; then
2844 cat >> confdefs.h
<<\EOF
2845 #define TIME_WITH_SYS_TIME 1
2850 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2851 echo "configure:2852: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2852 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2855 cat > conftest.
$ac_ext <<EOF
2856 #line 2857 "configure"
2857 #include "confdefs.h"
2858 #include <sys/types.h>
2860 /* NetBSD declares sys_siglist in unistd.h. */
2861 #ifdef HAVE_UNISTD_H
2865 char *msg = *(sys_siglist + 1);
2868 if { (eval echo configure
:2869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2870 ac_cv_decl_sys_siglist
=yes
2872 echo "configure: failed program was:" >&5
2873 cat conftest.
$ac_ext >&5
2875 ac_cv_decl_sys_siglist
=no
2880 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2881 if test $ac_cv_decl_sys_siglist = yes; then
2882 cat >> confdefs.h
<<\EOF
2883 #define SYS_SIGLIST_DECLARED 1
2888 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2889 echo "configure:2890: checking for sys/wait.h that is POSIX.1 compatible" >&5
2890 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2893 cat > conftest.
$ac_ext <<EOF
2894 #line 2895 "configure"
2895 #include "confdefs.h"
2896 #include <sys/types.h>
2897 #include <sys/wait.h>
2899 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2902 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2907 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2910 if { (eval echo configure
:2911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2912 ac_cv_header_sys_wait_h
=yes
2914 echo "configure: failed program was:" >&5
2915 cat conftest.
$ac_ext >&5
2917 ac_cv_header_sys_wait_h
=no
2922 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2923 if test $ac_cv_header_sys_wait_h = yes; then
2924 cat >> confdefs.h
<<\EOF
2925 #define HAVE_SYS_WAIT_H 1
2931 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2932 echo "configure:2933: checking for struct utimbuf" >&5
2933 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2934 echo $ac_n "(cached) $ac_c" 1>&6
2936 cat > conftest.
$ac_ext <<EOF
2937 #line 2938 "configure"
2938 #include "confdefs.h"
2939 #ifdef TIME_WITH_SYS_TIME
2940 #include <sys/time.h>
2943 #ifdef HAVE_SYS_TIME_H
2944 #include <sys/time.h>
2953 static struct utimbuf x; x.actime = x.modtime;
2956 if { (eval echo configure
:2957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2958 emacs_cv_struct_utimbuf
=yes
2960 echo "configure: failed program was:" >&5
2961 cat conftest.
$ac_ext >&5
2963 emacs_cv_struct_utimbuf
=no
2968 echo "$ac_t""$emacs_cv_struct_utimbuf" 1>&6
2969 if test $emacs_cv_struct_utimbuf = yes; then
2970 cat >> confdefs.h
<<\EOF
2971 #define HAVE_STRUCT_UTIMBUF 1
2976 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2977 echo "configure:2978: checking return type of signal handlers" >&5
2978 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2981 cat > conftest.
$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2984 #include <sys/types.h>
2990 extern "C" void (*signal (int, void (*)(int)))(int);
2992 void (*signal ()) ();
2999 if { (eval echo configure
:3000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3001 ac_cv_type_signal
=void
3003 echo "configure: failed program was:" >&5
3004 cat conftest.
$ac_ext >&5
3006 ac_cv_type_signal
=int
3011 echo "$ac_t""$ac_cv_type_signal" 1>&6
3012 cat >> confdefs.h
<<EOF
3013 #define RETSIGTYPE $ac_cv_type_signal
3018 echo $ac_n "checking for speed_t""... $ac_c" 1>&6
3019 echo "configure:3020: checking for speed_t" >&5
3020 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then
3021 echo $ac_n "(cached) $ac_c" 1>&6
3023 cat > conftest.
$ac_ext <<EOF
3024 #line 3025 "configure"
3025 #include "confdefs.h"
3026 #include <termios.h>
3031 if { (eval echo configure
:3032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3033 emacs_cv_speed_t
=yes
3035 echo "configure: failed program was:" >&5
3036 cat conftest.
$ac_ext >&5
3043 echo "$ac_t""$emacs_cv_speed_t" 1>&6
3044 if test $emacs_cv_speed_t = yes; then
3045 cat >> confdefs.h
<<\EOF
3046 #define HAVE_SPEED_T 1
3051 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3052 echo "configure:3053: checking for struct timeval" >&5
3053 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
3054 echo $ac_n "(cached) $ac_c" 1>&6
3056 cat > conftest.
$ac_ext <<EOF
3057 #line 3058 "configure"
3058 #include "confdefs.h"
3059 #ifdef TIME_WITH_SYS_TIME
3060 #include <sys/time.h>
3063 #ifdef HAVE_SYS_TIME_H
3064 #include <sys/time.h>
3070 static struct timeval x; x.tv_sec = x.tv_usec;
3073 if { (eval echo configure
:3074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3075 emacs_cv_struct_timeval
=yes
3077 echo "configure: failed program was:" >&5
3078 cat conftest.
$ac_ext >&5
3080 emacs_cv_struct_timeval
=no
3085 echo "$ac_t""$emacs_cv_struct_timeval" 1>&6
3086 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
3087 if test $emacs_cv_struct_timeval = yes; then
3088 cat >> confdefs.h
<<\EOF
3089 #define HAVE_TIMEVAL 1
3094 echo $ac_n "checking for struct exception""... $ac_c" 1>&6
3095 echo "configure:3096: checking for struct exception" >&5
3096 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then
3097 echo $ac_n "(cached) $ac_c" 1>&6
3099 cat > conftest.
$ac_ext <<EOF
3100 #line 3101 "configure"
3101 #include "confdefs.h"
3104 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
3107 if { (eval echo configure
:3108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3109 emacs_cv_struct_exception
=yes
3111 echo "configure: failed program was:" >&5
3112 cat conftest.
$ac_ext >&5
3114 emacs_cv_struct_exception
=no
3119 echo "$ac_t""$emacs_cv_struct_exception" 1>&6
3120 HAVE_EXCEPTION
=$emacs_cv_struct_exception
3121 if test $emacs_cv_struct_exception != yes; then
3122 cat >> confdefs.h
<<\EOF
3123 #define NO_MATHERR 1
3128 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3129 echo "configure:3130: checking whether struct tm is in sys/time.h or time.h" >&5
3130 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3131 echo $ac_n "(cached) $ac_c" 1>&6
3133 cat > conftest.
$ac_ext <<EOF
3134 #line 3135 "configure"
3135 #include "confdefs.h"
3136 #include <sys/types.h>
3139 struct tm *tp; tp->tm_sec;
3142 if { (eval echo configure
:3143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3144 ac_cv_struct_tm
=time.h
3146 echo "configure: failed program was:" >&5
3147 cat conftest.
$ac_ext >&5
3149 ac_cv_struct_tm
=sys
/time.h
3154 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3155 if test $ac_cv_struct_tm = sys
/time.h
; then
3156 cat >> confdefs.h
<<\EOF
3157 #define TM_IN_SYS_TIME 1
3162 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3163 echo "configure:3164: checking for tm_zone in struct tm" >&5
3164 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3165 echo $ac_n "(cached) $ac_c" 1>&6
3167 cat > conftest.
$ac_ext <<EOF
3168 #line 3169 "configure"
3169 #include "confdefs.h"
3170 #include <sys/types.h>
3171 #include <$ac_cv_struct_tm>
3173 struct tm tm; tm.tm_zone;
3176 if { (eval echo configure
:3177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3178 ac_cv_struct_tm_zone
=yes
3180 echo "configure: failed program was:" >&5
3181 cat conftest.
$ac_ext >&5
3183 ac_cv_struct_tm_zone
=no
3188 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3189 if test "$ac_cv_struct_tm_zone" = yes; then
3190 cat >> confdefs.h
<<\EOF
3191 #define HAVE_TM_ZONE 1
3195 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3196 echo "configure:3197: checking for tzname" >&5
3197 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3200 cat > conftest.
$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3204 #ifndef tzname /* For SGI. */
3205 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3211 if { (eval echo configure
:3212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3213 ac_cv_var_tzname
=yes
3215 echo "configure: failed program was:" >&5
3216 cat conftest.
$ac_ext >&5
3223 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3224 if test $ac_cv_var_tzname = yes; then
3225 cat >> confdefs.h
<<\EOF
3226 #define HAVE_TZNAME 1
3232 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
3233 echo "configure:3234: checking for tm_gmtoff in struct tm" >&5
3234 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
3235 echo $ac_n "(cached) $ac_c" 1>&6
3237 cat > conftest.
$ac_ext <<EOF
3238 #line 3239 "configure"
3239 #include "confdefs.h"
3242 struct tm t; t.tm_gmtoff = 0
3245 if { (eval echo configure
:3246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3247 emacs_cv_tm_gmtoff
=yes
3249 echo "configure: failed program was:" >&5
3250 cat conftest.
$ac_ext >&5
3252 emacs_cv_tm_gmtoff
=no
3257 echo "$ac_t""$emacs_cv_tm_gmtoff" 1>&6
3258 if test $emacs_cv_tm_gmtoff = yes; then
3259 cat >> confdefs.h
<<\EOF
3260 #define HAVE_TM_GMTOFF 1
3266 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3267 echo "configure:3268: checking for ${CC-cc} option to accept ANSI C" >&5
3268 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
3269 echo $ac_n "(cached) $ac_c" 1>&6
3271 ac_cv_prog_cc_stdc
=no
3273 # Don't try gcc -ansi; that turns off useful extensions and
3274 # breaks some systems' header files.
3275 # AIX -qlanglvl=ansi
3276 # Ultrix and OSF/1 -std1
3277 # HP-UX 10.20 and later -Ae
3278 # HP-UX older versions -Aa -D_HPUX_SOURCE
3279 # SVR4 -Xc -D__EXTENSIONS__
3280 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3282 CC
="$ac_save_CC $ac_arg"
3283 cat > conftest.
$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3288 #include <sys/types.h>
3289 #include <sys/stat.h>
3290 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3291 struct buf { int x; };
3292 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3293 static char *e (p, i)
3299 static char *f (char * (*g) (char **, int), char **p, ...)
3304 s = g (p, va_arg (v,int));
3308 int test (int i, double x);
3309 struct s1 {int (*f) (int a);};
3310 struct s2 {int (*f) (double a);};
3311 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3315 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3318 if { (eval echo configure
:3319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3320 ac_cv_prog_cc_stdc
="$ac_arg"; break
3322 echo "configure: failed program was:" >&5
3323 cat conftest.
$ac_ext >&5
3331 case "x$ac_cv_prog_cc_stdc" in
3333 echo "$ac_t""none needed" 1>&6 ;;
3335 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
3336 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3339 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
3340 echo "configure:3341: checking for function prototypes" >&5
3341 if test "$ac_cv_prog_cc_stdc" != no
; then
3342 echo "$ac_t""yes" 1>&6
3343 cat >> confdefs.h
<<\EOF
3344 #define PROTOTYPES 1
3348 echo "$ac_t""no" 1>&6
3351 echo $ac_n "checking for working volatile""... $ac_c" 1>&6
3352 echo "configure:3353: checking for working volatile" >&5
3353 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3356 cat > conftest.
$ac_ext <<EOF
3357 #line 3358 "configure"
3358 #include "confdefs.h"
3366 if { (eval echo configure
:3367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3368 ac_cv_c_volatile
=yes
3370 echo "configure: failed program was:" >&5
3371 cat conftest.
$ac_ext >&5
3378 echo "$ac_t""$ac_cv_c_volatile" 1>&6
3379 if test $ac_cv_c_volatile = no
; then
3380 cat >> confdefs.h
<<\EOF
3386 echo $ac_n "checking for working const""... $ac_c" 1>&6
3387 echo "configure:3388: checking for working const" >&5
3388 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3389 echo $ac_n "(cached) $ac_c" 1>&6
3391 cat > conftest.
$ac_ext <<EOF
3392 #line 3393 "configure"
3393 #include "confdefs.h"
3397 /* Ultrix mips cc rejects this. */
3398 typedef int charset[2]; const charset x;
3399 /* SunOS 4.1.1 cc rejects this. */
3400 char const *const *ccp;
3402 /* NEC SVR4.0.2 mips cc rejects this. */
3403 struct point {int x, y;};
3404 static struct point const zero = {0,0};
3405 /* AIX XL C 1.02.0.0 rejects this.
3406 It does not let you subtract one const X* pointer from another in an arm
3407 of an if-expression whose if-part is not a constant expression */
3408 const char *g = "string";
3409 ccp = &g + (g ? g-g : 0);
3410 /* HPUX 7.0 cc rejects these. */
3413 ccp = (char const *const *) p;
3414 { /* SCO 3.2v4 cc rejects this. */
3416 char const *s = 0 ? (char *) 0 : (char const *) 0;
3420 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3422 const int *foo = &x[0];
3425 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3426 typedef const int *iptr;
3430 { /* AIX XL C 1.02.0.0 rejects this saying
3431 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3432 struct s { int j; const int *ap[3]; };
3433 struct s *b; b->j = 5;
3435 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3441 if { (eval echo configure
:3442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3445 echo "configure: failed program was:" >&5
3446 cat conftest.
$ac_ext >&5
3453 echo "$ac_t""$ac_cv_c_const" 1>&6
3454 if test $ac_cv_c_const = no
; then
3455 cat >> confdefs.h
<<\EOF
3461 echo $ac_n "checking for void * support""... $ac_c" 1>&6
3462 echo "configure:3463: checking for void * support" >&5
3463 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then
3464 echo $ac_n "(cached) $ac_c" 1>&6
3466 cat > conftest.
$ac_ext <<EOF
3467 #line 3468 "configure"
3468 #include "confdefs.h"
3474 if { (eval echo configure
:3475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3476 emacs_cv_void_star
=yes
3478 echo "configure: failed program was:" >&5
3479 cat conftest.
$ac_ext >&5
3481 emacs_cv_void_star
=no
3486 echo "$ac_t""$emacs_cv_void_star" 1>&6
3487 if test $emacs_cv_void_star = yes; then
3488 cat >> confdefs.h
<<\EOF
3489 #define POINTER_TYPE void
3493 cat >> confdefs.h
<<\EOF
3494 #define POINTER_TYPE char
3499 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3500 echo "configure:3501: checking whether ${MAKE-make} sets \${MAKE}" >&5
3501 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
3502 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3505 cat > conftestmake
<<\EOF
3507 @
echo 'ac_maketemp="${MAKE}"'
3509 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3510 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3511 if test -n "$ac_maketemp"; then
3512 eval ac_cv_prog_make_
${ac_make}_set
=yes
3514 eval ac_cv_prog_make_
${ac_make}_set
=no
3518 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3519 echo "$ac_t""yes" 1>&6
3522 echo "$ac_t""no" 1>&6
3523 SET_MAKE
="MAKE=${MAKE-make}"
3527 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3528 echo "configure:3529: checking for long file names" >&5
3529 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3532 ac_cv_sys_long_file_names
=yes
3533 # Test for long file names in all the places we know might matter:
3534 # . the current directory, where building will happen
3535 # $prefix/lib where we will be installing things
3536 # $exec_prefix/lib likewise
3537 # eval it to expand exec_prefix.
3538 # $TMPDIR if set, where it might want to write temporary files
3539 # if $TMPDIR is not set:
3540 # /tmp where it might want to write temporary files
3543 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3544 ac_tmpdirs
="$TMPDIR"
3546 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
3548 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3549 test -d $ac_dir ||
continue
3550 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
3551 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
3552 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
3553 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
3554 if test ! -f $ac_dir/conftest9012345 ||
test "$val" != 1; then
3555 ac_cv_sys_long_file_names
=no
3556 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
3559 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
3563 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
3564 if test $ac_cv_sys_long_file_names = yes; then
3565 cat >> confdefs.h
<<\EOF
3566 #define HAVE_LONG_FILE_NAMES 1
3572 #### Choose a window system.
3574 # If we find X, set shell vars x_includes and x_libraries to the
3575 # paths, otherwise set no_x=yes.
3576 # Uses ac_ vars as temps to allow command line to override cache and checks.
3577 # --without-x overrides everything else, but does not touch the cache.
3578 echo $ac_n "checking for X""... $ac_c" 1>&6
3579 echo "configure:3580: checking for X" >&5
3581 # Check whether --with-x or --without-x was given.
3582 if test "${with_x+set}" = set; then
3587 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3588 if test "x$with_x" = xno
; then
3589 # The user explicitly disabled X.
3592 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3593 # Both variables are already set.
3596 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3597 echo $ac_n "(cached) $ac_c" 1>&6
3599 # One or both of the vars are not set, and there is no cached value.
3600 ac_x_includes
=NO ac_x_libraries
=NO
3602 if mkdir conftestdir
; then
3604 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3605 cat > Imakefile
<<'EOF'
3607 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3609 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3610 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3611 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3612 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3613 for ac_extension
in a so sl
; do
3614 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
3615 test -f $ac_im_libdir/libX11.
$ac_extension; then
3616 ac_im_usrlibdir
=$ac_im_libdir; break
3619 # Screen out bogus values from the imake configuration. They are
3620 # bogus both because they are the default anyway, and because
3621 # using them would break gcc on systems where it needs fixed includes.
3622 case "$ac_im_incroot" in
3624 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
3626 case "$ac_im_usrlibdir" in
3628 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
3635 if test "$ac_x_includes" = NO
; then
3636 # Guess where to find include files, by looking for this one X11 .h file.
3637 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
3639 # First, try using that file with no special directory specified.
3640 cat > conftest.
$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3643 #include <$x_direct_test_include>
3645 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3646 { (eval echo configure
:3647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3647 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3648 if test -z "$ac_err"; then
3650 # We can compile using X headers with no special include directory.
3654 echo "configure: failed program was:" >&5
3655 cat conftest.
$ac_ext >&5
3657 # Look for the header file in a standard set of common directories.
3658 # Check X11 before X11Rn because it is often a symlink to the current release.
3661 /usr
/X11R
6/include \
3662 /usr
/X11R
5/include \
3663 /usr
/X11R
4/include \
3666 /usr
/include
/X11R6 \
3667 /usr
/include
/X11R5 \
3668 /usr
/include
/X11R4 \
3670 /usr
/local
/X11
/include \
3671 /usr
/local
/X11R
6/include \
3672 /usr
/local
/X11R
5/include \
3673 /usr
/local
/X11R
4/include \
3675 /usr
/local
/include
/X11 \
3676 /usr
/local
/include
/X11R6 \
3677 /usr
/local
/include
/X11R5 \
3678 /usr
/local
/include
/X11R4 \
3682 /usr
/XFree86
/include
/X11 \
3685 /usr
/local
/include \
3686 /usr
/unsupported
/include \
3687 /usr
/athena
/include \
3688 /usr
/local
/x11r
5/include \
3689 /usr
/lpp
/Xamples
/include \
3691 /usr
/openwin
/include \
3692 /usr
/openwin
/share
/include \
3695 if test -r "$ac_dir/$x_direct_test_include"; then
3696 ac_x_includes
=$ac_dir
3702 fi # $ac_x_includes = NO
3704 if test "$ac_x_libraries" = NO
; then
3705 # Check for the libraries.
3707 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
3708 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
3710 # See if we find them without any special options.
3711 # Don't add to $LIBS permanently.
3712 ac_save_LIBS
="$LIBS"
3713 LIBS
="-l$x_direct_test_library $LIBS"
3714 cat > conftest.
$ac_ext <<EOF
3715 #line 3716 "configure"
3716 #include "confdefs.h"
3719 ${x_direct_test_function}()
3722 if { (eval echo configure
:3723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3724 LIBS
="$ac_save_LIBS"
3725 # We can link X programs with no special library path.
3728 echo "configure: failed program was:" >&5
3729 cat conftest.
$ac_ext >&5
3731 LIBS
="$ac_save_LIBS"
3732 # First see if replacing the include by lib works.
3733 # Check X11 before X11Rn because it is often a symlink to the current release.
3734 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
3745 /usr
/local
/X11
/lib \
3746 /usr
/local
/X11R
6/lib \
3747 /usr
/local
/X11R
5/lib \
3748 /usr
/local
/X11R
4/lib \
3750 /usr
/local
/lib
/X11 \
3751 /usr
/local
/lib
/X11R6 \
3752 /usr
/local
/lib
/X11R5 \
3753 /usr
/local
/lib
/X11R4 \
3757 /usr
/XFree86
/lib
/X11 \
3761 /usr
/unsupported
/lib \
3763 /usr
/local
/x11r
5/lib \
3764 /usr
/lpp
/Xamples
/lib \
3768 /usr
/openwin
/share
/lib \
3771 for ac_extension
in a so sl
; do
3772 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
3773 ac_x_libraries
=$ac_dir
3780 fi # $ac_x_libraries = NO
3782 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
3783 # Didn't find X anywhere. Cache the known absence of X.
3784 ac_cv_have_x
="have_x=no"
3786 # Record where we found X for the cache.
3787 ac_cv_have_x
="have_x=yes \
3788 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3792 eval "$ac_cv_have_x"
3795 if test "$have_x" != yes; then
3796 echo "$ac_t""$have_x" 1>&6
3799 # If each of the values was on the command line, it overrides each guess.
3800 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3801 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3802 # Update the cache value to reflect the command line values.
3803 ac_cv_have_x
="have_x=yes \
3804 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3805 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3808 if test "$no_x" = yes; then
3814 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
3815 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
3816 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
3817 x_default_search_path
=""
3818 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
3820 ${x_library}/X11/%L/%T/%N%C%S:\
3821 ${x_library}/X11/%l/%T/%N%C%S:\
3822 ${x_library}/X11/%T/%N%C%S:\
3823 ${x_library}/X11/%L/%T/%N%S:\
3824 ${x_library}/X11/%l/%T/%N%S:\
3825 ${x_library}/X11/%T/%N%S"
3826 if test x
"${x_default_search_path}" = x
; then
3827 x_default_search_path
=${x_search_path}
3829 x_default_search_path
="${x_search_path}:${x_default_search_path}"
3833 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
3834 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
3837 if test x
"${x_includes}" = x
; then
3838 bitmapdir
=/usr
/include
/X11
/bitmaps
3840 # accumulate include directories that have X11 bitmap subdirectories
3842 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
3843 if test -d "${bmd}/X11/bitmaps"; then
3844 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
3846 if test -d "${bmd}/bitmaps"; then
3847 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
3850 if test ${bmd_acc} != "dummyval"; then
3851 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
3855 case "${window_system}" in
3859 case "${with_x_toolkit}" in
3860 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
3861 motif
) USE_X_TOOLKIT
=MOTIF
;;
3862 no
) USE_X_TOOLKIT
=none
;;
3863 * ) USE_X_TOOLKIT
=maybe
;;
3873 ### If we're using X11, we should use the X menu package.
3876 yes ) HAVE_MENUS
=yes ;;
3879 if test "${opsys}" = "hpux9"; then
3880 case "${x_libraries}" in
3882 opsysfile
="s/hpux9-x11r4.h"
3887 if test "${opsys}" = "hpux9shr"; then
3888 case "${x_libraries}" in
3890 opsysfile
="s/hpux9shxr4.h"
3895 ### Compute the unexec source name from the object name.
3896 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
3898 # Do the opsystem or machine files prohibit the use of the GNU malloc?
3899 # Assume not, until told otherwise.
3902 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3903 echo "configure:3904: checking for malloc_get_state" >&5
3904 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3907 cat > conftest.
$ac_ext <<EOF
3908 #line 3909 "configure"
3909 #include "confdefs.h"
3910 /* System header to define __stub macros and hopefully few prototypes,
3911 which can conflict with char malloc_get_state(); below. */
3913 /* Override any gcc2 internal prototype to avoid an error. */
3914 /* We use char because int might match the return type of a gcc2
3915 builtin and then its argument prototype would still apply. */
3916 char malloc_get_state();
3920 /* The GNU C library defines this for functions which it implements
3921 to always fail with ENOSYS. Some functions are actually named
3922 something starting with __ and the normal name is an alias. */
3923 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
3931 if { (eval echo configure
:3932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3933 eval "ac_cv_func_malloc_get_state=yes"
3935 echo "configure: failed program was:" >&5
3936 cat conftest.
$ac_ext >&5
3938 eval "ac_cv_func_malloc_get_state=no"
3943 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
3944 echo "$ac_t""yes" 1>&6
3947 echo "$ac_t""no" 1>&6
3951 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3952 echo "configure:3953: checking for malloc_set_state" >&5
3953 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3956 cat > conftest.
$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3959 /* System header to define __stub macros and hopefully few prototypes,
3960 which can conflict with char malloc_set_state(); below. */
3962 /* Override any gcc2 internal prototype to avoid an error. */
3963 /* We use char because int might match the return type of a gcc2
3964 builtin and then its argument prototype would still apply. */
3965 char malloc_set_state();
3969 /* The GNU C library defines this for functions which it implements
3970 to always fail with ENOSYS. Some functions are actually named
3971 something starting with __ and the normal name is an alias. */
3972 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3980 if { (eval echo configure
:3981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3982 eval "ac_cv_func_malloc_set_state=yes"
3984 echo "configure: failed program was:" >&5
3985 cat conftest.
$ac_ext >&5
3987 eval "ac_cv_func_malloc_set_state=no"
3992 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3993 echo "$ac_t""yes" 1>&6
3996 echo "$ac_t""no" 1>&6
4000 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
4001 echo "configure:4002: checking whether __after_morecore_hook exists" >&5
4002 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
4003 echo $ac_n "(cached) $ac_c" 1>&6
4005 cat > conftest.
$ac_ext <<EOF
4006 #line 4007 "configure"
4007 #include "confdefs.h"
4008 extern void (* __after_morecore_hook)();
4010 __after_morecore_hook = 0
4013 if { (eval echo configure
:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4015 emacs_cv_var___after_morecore_hook
=yes
4017 echo "configure: failed program was:" >&5
4018 cat conftest.
$ac_ext >&5
4020 emacs_cv_var___after_morecore_hook
=no
4025 echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6
4026 if test $emacs_cv_var___after_morecore_hook = no
; then
4029 if test "${system_malloc}" = "yes"; then
4032 (The GNU allocators don't work with this system configuration.)"
4034 if test "$doug_lea_malloc" = "yes" ; then
4035 if test "$GNU_MALLOC" = yes ; then
4037 (Using Doug Lea's new malloc from the GNU C Library.)"
4039 cat >> confdefs.h
<<\EOF
4040 #define DOUG_LEA_MALLOC 1
4045 if test x
"${REL_ALLOC}" = x
; then
4046 REL_ALLOC
=${GNU_MALLOC}
4050 for ac_hdr
in stdlib.h unistd.h sys
/stat.h
4052 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4053 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4054 echo "configure:4055: checking for $ac_hdr" >&5
4055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4056 echo $ac_n "(cached) $ac_c" 1>&6
4058 cat > conftest.
$ac_ext <<EOF
4059 #line 4060 "configure"
4060 #include "confdefs.h"
4063 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4064 { (eval echo configure
:4065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4065 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4066 if test -z "$ac_err"; then
4068 eval "ac_cv_header_$ac_safe=yes"
4071 echo "configure: failed program was:" >&5
4072 cat conftest.
$ac_ext >&5
4074 eval "ac_cv_header_$ac_safe=no"
4078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4079 echo "$ac_t""yes" 1>&6
4080 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4081 cat >> confdefs.h
<<EOF
4082 #define $ac_tr_hdr 1
4086 echo "$ac_t""no" 1>&6
4090 for ac_func
in getpagesize
4092 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4093 echo "configure:4094: checking for $ac_func" >&5
4094 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4095 echo $ac_n "(cached) $ac_c" 1>&6
4097 cat > conftest.
$ac_ext <<EOF
4098 #line 4099 "configure"
4099 #include "confdefs.h"
4100 /* System header to define __stub macros and hopefully few prototypes,
4101 which can conflict with char $ac_func(); below. */
4103 /* Override any gcc2 internal prototype to avoid an error. */
4104 /* We use char because int might match the return type of a gcc2
4105 builtin and then its argument prototype would still apply. */
4110 /* The GNU C library defines this for functions which it implements
4111 to always fail with ENOSYS. Some functions are actually named
4112 something starting with __ and the normal name is an alias. */
4113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4121 if { (eval echo configure
:4122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4123 eval "ac_cv_func_$ac_func=yes"
4125 echo "configure: failed program was:" >&5
4126 cat conftest.
$ac_ext >&5
4128 eval "ac_cv_func_$ac_func=no"
4133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4134 echo "$ac_t""yes" 1>&6
4135 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4136 cat >> confdefs.h
<<EOF
4137 #define $ac_tr_func 1
4141 echo "$ac_t""no" 1>&6
4145 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4146 echo "configure:4147: checking for working mmap" >&5
4147 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4150 if test "$cross_compiling" = yes; then
4151 ac_cv_func_mmap_fixed_mapped
=no
4153 cat > conftest.
$ac_ext <<EOF
4154 #line 4155 "configure"
4155 #include "confdefs.h"
4156 /* Thanks to Mike Haertel and Jim Avera for this test.
4157 Here is a matrix of mmap possibilities:
4158 mmap private not fixed
4159 mmap private fixed at somewhere currently unmapped
4160 mmap private fixed at somewhere already mapped
4161 mmap shared not fixed
4162 mmap shared fixed at somewhere currently unmapped
4163 mmap shared fixed at somewhere already mapped
4164 For private mappings, we should verify that changes cannot be read()
4165 back from the file, nor mmap's back from the file at a different
4166 address. (There have been systems where private was not correctly
4167 implemented like the infamous i386 svr4.0, and systems where the
4168 VM page cache was not coherent with the file system buffer cache
4169 like early versions of FreeBSD and possibly contemporary NetBSD.)
4170 For shared mappings, we should conversely verify that changes get
4171 propogated back to all the places they're supposed to be.
4173 Grep wants private fixed already mapped.
4174 The main things grep needs to know about mmap are:
4175 * does it exist and is it safe to write into the mmap'd area
4176 * how to use it (BSD variants) */
4177 #include <sys/types.h>
4179 #include <sys/mman.h>
4181 #if STDC_HEADERS || HAVE_STDLIB_H
4182 # include <stdlib.h>
4187 # include <unistd.h>
4190 # include <sys/stat.h>
4193 /* This mess was copied from the GNU getpagesize.h. */
4194 #if !HAVE_GETPAGESIZE
4195 /* Assume that all systems that can run configure have sys/param.h. */
4196 # if !HAVE_SYS_PARAM_H
4197 # define HAVE_SYS_PARAM_H 1
4200 # ifdef _SC_PAGESIZE
4201 # define getpagesize() sysconf(_SC_PAGESIZE)
4202 # else /* no _SC_PAGESIZE */
4203 # if HAVE_SYS_PARAM_H
4204 # include <sys/param.h>
4205 # ifdef EXEC_PAGESIZE
4206 # define getpagesize() EXEC_PAGESIZE
4207 # else /* no EXEC_PAGESIZE */
4209 # define getpagesize() NBPG * CLSIZE
4212 # endif /* no CLSIZE */
4213 # else /* no NBPG */
4215 # define getpagesize() NBPC
4216 # else /* no NBPC */
4218 # define getpagesize() PAGESIZE
4219 # endif /* PAGESIZE */
4220 # endif /* no NBPC */
4221 # endif /* no NBPG */
4222 # endif /* no EXEC_PAGESIZE */
4223 # else /* no HAVE_SYS_PARAM_H */
4224 # define getpagesize() 8192 /* punt totally */
4225 # endif /* no HAVE_SYS_PARAM_H */
4226 # endif /* no _SC_PAGESIZE */
4228 #endif /* no HAVE_GETPAGESIZE */
4233 char *data, *data2, *data3;
4237 pagesize = getpagesize ();
4239 /* First, make a file with some known garbage in it. */
4240 data = (char *) malloc (pagesize);
4243 for (i = 0; i < pagesize; ++i)
4244 *(data + i) = rand ();
4246 fd = creat ("conftestmmap", 0600);
4249 if (write (fd, data, pagesize) != pagesize)
4253 /* Next, try to mmap the file at a fixed address which already has
4254 something else allocated at it. If we can, also make sure that
4255 we see the same garbage. */
4256 fd = open ("conftestmmap", O_RDWR);
4259 data2 = (char *) malloc (2 * pagesize);
4262 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4263 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4264 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4266 for (i = 0; i < pagesize; ++i)
4267 if (*(data + i) != *(data2 + i))
4270 /* Finally, make sure that changes to the mapped area do not
4271 percolate back to the file as seen by read(). (This is a bug on
4272 some variants of i386 svr4.0.) */
4273 for (i = 0; i < pagesize; ++i)
4274 *(data2 + i) = *(data2 + i) + 1;
4275 data3 = (char *) malloc (pagesize);
4278 if (read (fd, data3, pagesize) != pagesize)
4280 for (i = 0; i < pagesize; ++i)
4281 if (*(data + i) != *(data3 + i))
4284 unlink ("conftestmmap");
4288 if { (eval echo configure
:4289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4290 ac_cv_func_mmap_fixed_mapped
=yes
4292 echo "configure: failed program was:" >&5
4293 cat conftest.
$ac_ext >&5
4295 ac_cv_func_mmap_fixed_mapped
=no
4302 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4303 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4304 cat >> confdefs.h
<<\EOF
4310 if test $use_mmap_for_buffers = yes; then
4314 LIBS
="$libsrc_libs $LIBS"
4316 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4317 echo "configure:4318: checking for dnet_ntoa in -ldnet" >&5
4318 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4319 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4320 echo $ac_n "(cached) $ac_c" 1>&6
4322 ac_save_LIBS
="$LIBS"
4324 cat > conftest.
$ac_ext <<EOF
4325 #line 4326 "configure"
4326 #include "confdefs.h"
4327 /* Override any gcc2 internal prototype to avoid an error. */
4328 /* We use char because int might match the return type of a gcc2
4329 builtin and then its argument prototype would still apply. */
4336 if { (eval echo configure
:4337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4338 eval "ac_cv_lib_$ac_lib_var=yes"
4340 echo "configure: failed program was:" >&5
4341 cat conftest.
$ac_ext >&5
4343 eval "ac_cv_lib_$ac_lib_var=no"
4346 LIBS
="$ac_save_LIBS"
4349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4350 echo "$ac_t""yes" 1>&6
4351 ac_tr_lib
=HAVE_LIB
`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4352 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4353 cat >> confdefs.h
<<EOF
4354 #define $ac_tr_lib 1
4360 echo "$ac_t""no" 1>&6
4364 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
4365 echo "configure:4366: checking for main in -lXbsd" >&5
4366 ac_lib_var
=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
4367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4370 ac_save_LIBS
="$LIBS"
4372 cat > conftest.
$ac_ext <<EOF
4373 #line 4374 "configure"
4374 #include "confdefs.h"
4380 if { (eval echo configure
:4381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4382 eval "ac_cv_lib_$ac_lib_var=yes"
4384 echo "configure: failed program was:" >&5
4385 cat conftest.
$ac_ext >&5
4387 eval "ac_cv_lib_$ac_lib_var=no"
4390 LIBS
="$ac_save_LIBS"
4393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4394 echo "$ac_t""yes" 1>&6
4395 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
4397 echo "$ac_t""no" 1>&6
4401 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4402 echo "configure:4403: checking for cma_open in -lpthreads" >&5
4403 ac_lib_var
=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4405 echo $ac_n "(cached) $ac_c" 1>&6
4407 ac_save_LIBS
="$LIBS"
4408 LIBS
="-lpthreads $LIBS"
4409 cat > conftest.
$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4412 /* Override any gcc2 internal prototype to avoid an error. */
4413 /* We use char because int might match the return type of a gcc2
4414 builtin and then its argument prototype would still apply. */
4421 if { (eval echo configure
:4422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4423 eval "ac_cv_lib_$ac_lib_var=yes"
4425 echo "configure: failed program was:" >&5
4426 cat conftest.
$ac_ext >&5
4428 eval "ac_cv_lib_$ac_lib_var=no"
4431 LIBS
="$ac_save_LIBS"
4434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4435 echo "$ac_t""yes" 1>&6
4436 ac_tr_lib
=HAVE_LIB
`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4437 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4438 cat >> confdefs.h
<<EOF
4439 #define $ac_tr_lib 1
4442 LIBS
="-lpthreads $LIBS"
4445 echo "$ac_t""no" 1>&6
4449 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
4450 echo "configure:4451: checking for XFree86 in /usr/X386" >&5
4451 if test -d /usr
/X386
/include
; then
4453 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
4457 echo "$ac_t""$HAVE_XFREE386" 1>&6
4459 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
4460 # for the tests that follow. We set it back to REAL_CFLAGS later on.
4462 REAL_CPPFLAGS
="$CPPFLAGS"
4464 if test "${HAVE_X11}" = "yes"; then
4465 DEFS
="$C_SWITCH_X_SITE $DEFS"
4466 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
4468 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
4469 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
4471 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
4472 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
4473 # but it's more convenient here to set LD_RUN_PATH
4474 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
4475 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
4476 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
4480 if test "${opsys}" = "gnu-linux"; then
4481 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
4482 echo "configure:4483: checking whether X on GNU/Linux needs -b to link" >&5
4483 cat > conftest.
$ac_ext <<EOF
4484 #line 4485 "configure"
4485 #include "confdefs.h"
4488 XOpenDisplay ("foo");
4491 if { (eval echo configure
:4492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4493 xlinux_first_failure
=no
4495 echo "configure: failed program was:" >&5
4496 cat conftest.
$ac_ext >&5
4498 xlinux_first_failure
=yes
4501 if test "${xlinux_first_failure}" = "yes"; then
4502 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
4503 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
4504 OLD_CPPFLAGS
="$CPPFLAGS"
4506 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
4507 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
4508 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
4509 LIBS
="$LIBS -b i486-linuxaout"
4510 cat > conftest.
$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4515 XOpenDisplay ("foo");
4518 if { (eval echo configure
:4519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4520 xlinux_second_failure
=no
4522 echo "configure: failed program was:" >&5
4523 cat conftest.
$ac_ext >&5
4525 xlinux_second_failure
=yes
4528 if test "${xlinux_second_failure}" = "yes"; then
4529 # If we get the same failure with -b, there is no use adding -b.
4530 # So take it out. This plays safe.
4531 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
4532 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
4533 CPPFLAGS
="$OLD_CPPFLAGS"
4535 echo "$ac_t""no" 1>&6
4537 echo "$ac_t""yes" 1>&6
4540 echo "$ac_t""no" 1>&6
4544 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
4545 # header files included from there.
4546 echo $ac_n "checking for Xkb""... $ac_c" 1>&6
4547 echo "configure:4548: checking for Xkb" >&5
4548 cat > conftest.
$ac_ext <<EOF
4549 #line 4550 "configure"
4550 #include "confdefs.h"
4551 #include <X11/Xlib.h>
4552 #include <X11/XKBlib.h>
4554 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
4557 if { (eval echo configure
:4558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4561 echo "configure: failed program was:" >&5
4562 cat conftest.
$ac_ext >&5
4567 echo "$ac_t""$emacs_xkb" 1>&6
4568 if test $emacs_xkb = yes; then
4569 cat >> confdefs.h
<<\EOF
4570 #define HAVE_XKBGETKEYBOARD 1
4575 for ac_func
in XrmSetDatabase XScreenResourceString \
4576 XScreenNumberOfScreen XSetWMProtocols
4578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4579 echo "configure:4580: checking for $ac_func" >&5
4580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4581 echo $ac_n "(cached) $ac_c" 1>&6
4583 cat > conftest.
$ac_ext <<EOF
4584 #line 4585 "configure"
4585 #include "confdefs.h"
4586 /* System header to define __stub macros and hopefully few prototypes,
4587 which can conflict with char $ac_func(); below. */
4589 /* Override any gcc2 internal prototype to avoid an error. */
4590 /* We use char because int might match the return type of a gcc2
4591 builtin and then its argument prototype would still apply. */
4596 /* The GNU C library defines this for functions which it implements
4597 to always fail with ENOSYS. Some functions are actually named
4598 something starting with __ and the normal name is an alias. */
4599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4607 if { (eval echo configure
:4608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4609 eval "ac_cv_func_$ac_func=yes"
4611 echo "configure: failed program was:" >&5
4612 cat conftest.
$ac_ext >&5
4614 eval "ac_cv_func_$ac_func=no"
4619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4620 echo "$ac_t""yes" 1>&6
4621 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4622 cat >> confdefs.h
<<EOF
4623 #define $ac_tr_func 1
4627 echo "$ac_t""no" 1>&6
4633 if test "${window_system}" = "x11"; then
4634 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
4635 echo "configure:4636: checking X11 version 6" >&5
4636 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
4637 echo $ac_n "(cached) $ac_c" 1>&6
4639 cat > conftest.
$ac_ext <<EOF
4640 #line 4641 "configure"
4641 #include "confdefs.h"
4642 #include <X11/Xlib.h>
4644 #if XlibSpecificationRelease < 6
4650 if { (eval echo configure
:4651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4652 emacs_cv_x11_version_6
=yes
4654 echo "configure: failed program was:" >&5
4655 cat conftest.
$ac_ext >&5
4657 emacs_cv_x11_version_6
=no
4662 if test $emacs_cv_x11_version_6 = yes; then
4663 echo "$ac_t""6 or newer" 1>&6
4664 cat >> confdefs.h
<<\EOF
4665 #define HAVE_X11R6 1
4669 echo "$ac_t""before 6" 1>&6
4673 if test "${window_system}" = "x11"; then
4674 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
4675 echo "configure:4676: checking X11 version 5" >&5
4676 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
4677 echo $ac_n "(cached) $ac_c" 1>&6
4679 cat > conftest.
$ac_ext <<EOF
4680 #line 4681 "configure"
4681 #include "confdefs.h"
4682 #include <X11/Xlib.h>
4684 #if XlibSpecificationRelease < 5
4690 if { (eval echo configure
:4691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4692 emacs_cv_x11_version_5
=yes
4694 echo "configure: failed program was:" >&5
4695 cat conftest.
$ac_ext >&5
4697 emacs_cv_x11_version_5
=no
4702 if test $emacs_cv_x11_version_5 = yes; then
4703 echo "$ac_t""5 or newer" 1>&6
4705 cat >> confdefs.h
<<\EOF
4706 #define HAVE_X11R5 1
4711 echo "$ac_t""before 5" 1>&6
4715 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
4716 if test x
"${HAVE_X11R5}" = xyes
; then
4717 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
4718 echo "configure:4719: checking X11 version 5 with Xaw" >&5
4719 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
4720 echo $ac_n "(cached) $ac_c" 1>&6
4722 cat > conftest.
$ac_ext <<EOF
4723 #line 4724 "configure"
4724 #include "confdefs.h"
4726 #include <X11/Intrinsic.h>
4727 #include <X11/Xaw/Simple.h>
4732 if { (eval echo configure
:4733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4734 emacs_cv_x11_version_5_with_xaw
=yes
4736 echo "configure: failed program was:" >&5
4737 cat conftest.
$ac_ext >&5
4739 emacs_cv_x11_version_5_with_xaw
=no
4744 if test $emacs_cv_x11_version_5_with_xaw = yes; then
4745 echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6
4748 echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6
4756 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
4758 if test "${USE_X_TOOLKIT}" != "none"; then
4759 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
4760 echo "configure:4761: checking X11 toolkit version" >&5
4761 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
4762 echo $ac_n "(cached) $ac_c" 1>&6
4764 cat > conftest.
$ac_ext <<EOF
4765 #line 4766 "configure"
4766 #include "confdefs.h"
4767 #include <X11/Intrinsic.h>
4769 #if XtSpecificationRelease < 6
4775 if { (eval echo configure
:4776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4777 emacs_cv_x11_toolkit_version_6
=yes
4779 echo "configure: failed program was:" >&5
4780 cat conftest.
$ac_ext >&5
4782 emacs_cv_x11_toolkit_version_6
=no
4787 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
4788 if test $emacs_cv_x11_toolkit_version_6 = yes; then
4789 echo "$ac_t""6 or newer" 1>&6
4790 cat >> confdefs.h
<<\EOF
4791 #define HAVE_X11XTR6 1
4795 echo "$ac_t""before 6" 1>&6
4799 if test x
$HAVE_X11XTR6 = xyes
; then
4800 LIBS
="-lXt -lSM -lICE $LIBS"
4804 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
4805 echo "configure:4806: checking for XmuConvertStandardSelection in -lXmu" >&5
4806 ac_lib_var
=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
4807 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4808 echo $ac_n "(cached) $ac_c" 1>&6
4810 ac_save_LIBS
="$LIBS"
4812 cat > conftest.
$ac_ext <<EOF
4813 #line 4814 "configure"
4814 #include "confdefs.h"
4815 /* Override any gcc2 internal prototype to avoid an error. */
4816 /* We use char because int might match the return type of a gcc2
4817 builtin and then its argument prototype would still apply. */
4818 char XmuConvertStandardSelection();
4821 XmuConvertStandardSelection()
4824 if { (eval echo configure
:4825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4826 eval "ac_cv_lib_$ac_lib_var=yes"
4828 echo "configure: failed program was:" >&5
4829 cat conftest.
$ac_ext >&5
4831 eval "ac_cv_lib_$ac_lib_var=no"
4834 LIBS
="$ac_save_LIBS"
4837 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4838 echo "$ac_t""yes" 1>&6
4839 ac_tr_lib
=HAVE_LIB
`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4840 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4841 cat >> confdefs.h
<<EOF
4842 #define $ac_tr_lib 1
4848 echo "$ac_t""no" 1>&6
4851 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
4854 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
4855 if test "${HAVE_X11}" = "yes"; then
4856 if test "${USE_X_TOOLKIT}" != "none"; then
4857 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
4858 echo "configure:4859: checking for XShapeQueryExtension in -lXext" >&5
4859 ac_lib_var
=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
4860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4861 echo $ac_n "(cached) $ac_c" 1>&6
4863 ac_save_LIBS
="$LIBS"
4865 cat > conftest.
$ac_ext <<EOF
4866 #line 4867 "configure"
4867 #include "confdefs.h"
4868 /* Override any gcc2 internal prototype to avoid an error. */
4869 /* We use char because int might match the return type of a gcc2
4870 builtin and then its argument prototype would still apply. */
4871 char XShapeQueryExtension();
4874 XShapeQueryExtension()
4877 if { (eval echo configure
:4878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4879 eval "ac_cv_lib_$ac_lib_var=yes"
4881 echo "configure: failed program was:" >&5
4882 cat conftest.
$ac_ext >&5
4884 eval "ac_cv_lib_$ac_lib_var=no"
4887 LIBS
="$ac_save_LIBS"
4890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4891 echo "$ac_t""yes" 1>&6
4892 ac_tr_lib
=HAVE_LIB
`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4893 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4894 cat >> confdefs.h
<<EOF
4895 #define $ac_tr_lib 1
4901 echo "$ac_t""no" 1>&6
4907 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4908 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
4909 echo "configure:4910: checking for Motif version 2.1" >&5
4910 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
4911 echo $ac_n "(cached) $ac_c" 1>&6
4913 cat > conftest.
$ac_ext <<EOF
4914 #line 4915 "configure"
4915 #include "confdefs.h"
4918 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
4921 Motif version prior to 2.1.
4925 if { (eval echo configure
:4926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4927 emacs_cv_motif_version_2_1
=yes
4929 echo "configure: failed program was:" >&5
4930 cat conftest.
$ac_ext >&5
4932 emacs_cv_motif_version_2_1
=no
4937 echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6
4938 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
4939 if test $emacs_cv_motif_version_2_1 = yes; then
4941 cat >> confdefs.h
<<\EOF
4942 #define HAVE_MOTIF_2_1 1
4945 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
4946 echo "configure:4947: checking for XpCreateContext in -lXp" >&5
4947 ac_lib_var
=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
4948 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4949 echo $ac_n "(cached) $ac_c" 1>&6
4951 ac_save_LIBS
="$LIBS"
4953 cat > conftest.
$ac_ext <<EOF
4954 #line 4955 "configure"
4955 #include "confdefs.h"
4956 /* Override any gcc2 internal prototype to avoid an error. */
4957 /* We use char because int might match the return type of a gcc2
4958 builtin and then its argument prototype would still apply. */
4959 char XpCreateContext();
4965 if { (eval echo configure
:4966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4967 eval "ac_cv_lib_$ac_lib_var=yes"
4969 echo "configure: failed program was:" >&5
4970 cat conftest.
$ac_ext >&5
4972 eval "ac_cv_lib_$ac_lib_var=no"
4975 LIBS
="$ac_save_LIBS"
4978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4979 echo "$ac_t""yes" 1>&6
4982 echo "$ac_t""no" 1>&6
4985 if test ${HAVE_LIBXP} = yes; then
4986 cat >> confdefs.h
<<\EOF
4987 #define HAVE_LIBXP 1
4994 ### Is -lXaw3d available?
4996 if test "${HAVE_X11}" = "yes"; then
4997 if test "${USE_X_TOOLKIT}" != "none"; then
4998 ac_safe
=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4999 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
5000 echo "configure:5001: checking for X11/Xaw3d/Scrollbar.h" >&5
5001 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5002 echo $ac_n "(cached) $ac_c" 1>&6
5004 cat > conftest.
$ac_ext <<EOF
5005 #line 5006 "configure"
5006 #include "confdefs.h"
5007 #include <X11/Xaw3d/Scrollbar.h>
5009 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5010 { (eval echo configure
:5011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5011 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5012 if test -z "$ac_err"; then
5014 eval "ac_cv_header_$ac_safe=yes"
5017 echo "configure: failed program was:" >&5
5018 cat conftest.
$ac_ext >&5
5020 eval "ac_cv_header_$ac_safe=no"
5024 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5025 echo "$ac_t""yes" 1>&6
5026 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
5027 echo "configure:5028: checking for XawScrollbarSetThumb in -lXaw3d" >&5
5028 ac_lib_var
=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
5029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5030 echo $ac_n "(cached) $ac_c" 1>&6
5032 ac_save_LIBS
="$LIBS"
5033 LIBS
="-lXaw3d $LIBS"
5034 cat > conftest.
$ac_ext <<EOF
5035 #line 5036 "configure"
5036 #include "confdefs.h"
5037 /* Override any gcc2 internal prototype to avoid an error. */
5038 /* We use char because int might match the return type of a gcc2
5039 builtin and then its argument prototype would still apply. */
5040 char XawScrollbarSetThumb();
5043 XawScrollbarSetThumb()
5046 if { (eval echo configure
:5047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5048 eval "ac_cv_lib_$ac_lib_var=yes"
5050 echo "configure: failed program was:" >&5
5051 cat conftest.
$ac_ext >&5
5053 eval "ac_cv_lib_$ac_lib_var=no"
5056 LIBS
="$ac_save_LIBS"
5059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5060 echo "$ac_t""yes" 1>&6
5063 echo "$ac_t""no" 1>&6
5067 echo "$ac_t""no" 1>&6
5070 if test "${HAVE_XAW3D}" = "yes"; then
5071 cat >> confdefs.h
<<\EOF
5072 #define HAVE_XAW3D 1
5080 USE_TOOLKIT_SCROLL_BARS
=no
5081 if test "${with_toolkit_scroll_bars}" != "no"; then
5082 if test "${USE_X_TOOLKIT}" != "none"; then
5083 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
5084 cat >> confdefs.h
<<\EOF
5085 #define USE_TOOLKIT_SCROLL_BARS 1
5089 USE_TOOLKIT_SCROLL_BARS
=yes
5090 elif test "${HAVE_XAW3D}" = "yes"; then
5091 cat >> confdefs.h
<<\EOF
5092 #define USE_TOOLKIT_SCROLL_BARS 1
5095 USE_TOOLKIT_SCROLL_BARS
=yes
5101 if test "${with_xim}" != "no"; then
5102 cat >> confdefs.h
<<\EOF
5108 ### Use -lXpm if available, unless `--with-xpm=no'.
5110 if test "${HAVE_X11}" = "yes"; then
5111 if test "${with_xpm}" != "no"; then
5112 ac_safe
=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
5113 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
5114 echo "configure:5115: checking for X11/xpm.h" >&5
5115 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5118 cat > conftest.
$ac_ext <<EOF
5119 #line 5120 "configure"
5120 #include "confdefs.h"
5121 #include <X11/xpm.h>
5123 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5124 { (eval echo configure
:5125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5125 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5126 if test -z "$ac_err"; then
5128 eval "ac_cv_header_$ac_safe=yes"
5131 echo "configure: failed program was:" >&5
5132 cat conftest.
$ac_ext >&5
5134 eval "ac_cv_header_$ac_safe=no"
5138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5139 echo "$ac_t""yes" 1>&6
5140 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
5141 echo "configure:5142: checking for XpmReadFileToPixmap in -lXpm" >&5
5142 ac_lib_var
=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
5143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5144 echo $ac_n "(cached) $ac_c" 1>&6
5146 ac_save_LIBS
="$LIBS"
5147 LIBS
="-lXpm -lX11 $LIBS"
5148 cat > conftest.
$ac_ext <<EOF
5149 #line 5150 "configure"
5150 #include "confdefs.h"
5151 /* Override any gcc2 internal prototype to avoid an error. */
5152 /* We use char because int might match the return type of a gcc2
5153 builtin and then its argument prototype would still apply. */
5154 char XpmReadFileToPixmap();
5157 XpmReadFileToPixmap()
5160 if { (eval echo configure
:5161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5162 eval "ac_cv_lib_$ac_lib_var=yes"
5164 echo "configure: failed program was:" >&5
5165 cat conftest.
$ac_ext >&5
5167 eval "ac_cv_lib_$ac_lib_var=no"
5170 LIBS
="$ac_save_LIBS"
5173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5174 echo "$ac_t""yes" 1>&6
5177 echo "$ac_t""no" 1>&6
5181 echo "$ac_t""no" 1>&6
5184 if test "${HAVE_XPM}" = "yes"; then
5185 echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6
5186 echo "configure:5187: checking for XpmReturnAllocPixels preprocessor define" >&5
5187 cat > conftest.
$ac_ext <<EOF
5188 #line 5189 "configure"
5189 #include "confdefs.h"
5190 #include "X11/xpm.h"
5191 #ifndef XpmReturnAllocPixels
5192 no_return_alloc_pixels
5196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5197 egrep "no_return_alloc_pixels" >/dev
/null
2>&1; then
5207 if test "${HAVE_XPM}" = "yes"; then
5208 echo "$ac_t""yes" 1>&6
5210 echo "$ac_t""no" 1>&6
5215 if test "${HAVE_XPM}" = "yes"; then
5216 cat >> confdefs.h
<<\EOF
5223 ### Use -ljpeg if available, unless `--with-jpeg=no'.
5225 if test "${HAVE_X11}" = "yes"; then
5226 if test "${with_jpeg}" != "no"; then
5227 ac_safe
=`echo "jerror.h" | sed 'y%./+-%__p_%'`
5228 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6
5229 echo "configure:5230: checking for jerror.h" >&5
5230 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5231 echo $ac_n "(cached) $ac_c" 1>&6
5233 cat > conftest.
$ac_ext <<EOF
5234 #line 5235 "configure"
5235 #include "confdefs.h"
5238 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5239 { (eval echo configure
:5240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5240 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5241 if test -z "$ac_err"; then
5243 eval "ac_cv_header_$ac_safe=yes"
5246 echo "configure: failed program was:" >&5
5247 cat conftest.
$ac_ext >&5
5249 eval "ac_cv_header_$ac_safe=no"
5253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5254 echo "$ac_t""yes" 1>&6
5255 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
5256 echo "configure:5257: checking for jpeg_destroy_compress in -ljpeg" >&5
5257 ac_lib_var
=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
5258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5259 echo $ac_n "(cached) $ac_c" 1>&6
5261 ac_save_LIBS
="$LIBS"
5263 cat > conftest.
$ac_ext <<EOF
5264 #line 5265 "configure"
5265 #include "confdefs.h"
5266 /* Override any gcc2 internal prototype to avoid an error. */
5267 /* We use char because int might match the return type of a gcc2
5268 builtin and then its argument prototype would still apply. */
5269 char jpeg_destroy_compress();
5272 jpeg_destroy_compress()
5275 if { (eval echo configure
:5276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5277 eval "ac_cv_lib_$ac_lib_var=yes"
5279 echo "configure: failed program was:" >&5
5280 cat conftest.
$ac_ext >&5
5282 eval "ac_cv_lib_$ac_lib_var=no"
5285 LIBS
="$ac_save_LIBS"
5288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5289 echo "$ac_t""yes" 1>&6
5292 echo "$ac_t""no" 1>&6
5296 echo "$ac_t""no" 1>&6
5301 if test "${HAVE_JPEG}" = "yes"; then
5302 cat >> confdefs.h
<<\EOF
5309 ### Use -lpng if available, unless `--with-png=no'.
5311 if test "${HAVE_X11}" = "yes"; then
5312 if test "${with_png}" != "no"; then
5313 ac_safe
=`echo "png.h" | sed 'y%./+-%__p_%'`
5314 echo $ac_n "checking for png.h""... $ac_c" 1>&6
5315 echo "configure:5316: checking for png.h" >&5
5316 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5317 echo $ac_n "(cached) $ac_c" 1>&6
5319 cat > conftest.
$ac_ext <<EOF
5320 #line 5321 "configure"
5321 #include "confdefs.h"
5324 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5325 { (eval echo configure
:5326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5326 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5327 if test -z "$ac_err"; then
5329 eval "ac_cv_header_$ac_safe=yes"
5332 echo "configure: failed program was:" >&5
5333 cat conftest.
$ac_ext >&5
5335 eval "ac_cv_header_$ac_safe=no"
5339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5340 echo "$ac_t""yes" 1>&6
5341 echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6
5342 echo "configure:5343: checking for png_get_channels in -lpng" >&5
5343 ac_lib_var
=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'`
5344 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5345 echo $ac_n "(cached) $ac_c" 1>&6
5347 ac_save_LIBS
="$LIBS"
5348 LIBS
="-lpng -lz -lm $LIBS"
5349 cat > conftest.
$ac_ext <<EOF
5350 #line 5351 "configure"
5351 #include "confdefs.h"
5352 /* Override any gcc2 internal prototype to avoid an error. */
5353 /* We use char because int might match the return type of a gcc2
5354 builtin and then its argument prototype would still apply. */
5355 char png_get_channels();
5361 if { (eval echo configure
:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5363 eval "ac_cv_lib_$ac_lib_var=yes"
5365 echo "configure: failed program was:" >&5
5366 cat conftest.
$ac_ext >&5
5368 eval "ac_cv_lib_$ac_lib_var=no"
5371 LIBS
="$ac_save_LIBS"
5374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5375 echo "$ac_t""yes" 1>&6
5378 echo "$ac_t""no" 1>&6
5382 echo "$ac_t""no" 1>&6
5387 if test "${HAVE_PNG}" = "yes"; then
5388 cat >> confdefs.h
<<\EOF
5395 ### Use -ltiff if available, unless `--with-tiff=no'.
5397 if test "${HAVE_X11}" = "yes"; then
5398 if test "${with_tiff}" != "no"; then
5399 ac_safe
=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5400 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5401 echo "configure:5402: checking for tiffio.h" >&5
5402 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5403 echo $ac_n "(cached) $ac_c" 1>&6
5405 cat > conftest.
$ac_ext <<EOF
5406 #line 5407 "configure"
5407 #include "confdefs.h"
5410 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5411 { (eval echo configure
:5412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5412 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5413 if test -z "$ac_err"; then
5415 eval "ac_cv_header_$ac_safe=yes"
5418 echo "configure: failed program was:" >&5
5419 cat conftest.
$ac_ext >&5
5421 eval "ac_cv_header_$ac_safe=no"
5425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5426 echo "$ac_t""yes" 1>&6
5428 # At least one tiff package requires the jpeg library.
5429 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
5430 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5431 echo "configure:5432: checking for TIFFGetVersion in -ltiff" >&5
5432 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5434 echo $ac_n "(cached) $ac_c" 1>&6
5436 ac_save_LIBS
="$LIBS"
5437 LIBS
="-ltiff $tifflibs $LIBS"
5438 cat > conftest.
$ac_ext <<EOF
5439 #line 5440 "configure"
5440 #include "confdefs.h"
5441 /* Override any gcc2 internal prototype to avoid an error. */
5442 /* We use char because int might match the return type of a gcc2
5443 builtin and then its argument prototype would still apply. */
5444 char TIFFGetVersion();
5450 if { (eval echo configure
:5451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5452 eval "ac_cv_lib_$ac_lib_var=yes"
5454 echo "configure: failed program was:" >&5
5455 cat conftest.
$ac_ext >&5
5457 eval "ac_cv_lib_$ac_lib_var=no"
5460 LIBS
="$ac_save_LIBS"
5463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5464 echo "$ac_t""yes" 1>&6
5467 echo "$ac_t""no" 1>&6
5471 echo "$ac_t""no" 1>&6
5476 if test "${HAVE_TIFF}" = "yes"; then
5477 cat >> confdefs.h
<<\EOF
5484 ### Use -lgif if available, unless `--with-gif=no'.
5486 if test "${HAVE_X11}" = "yes"; then
5487 if test "${with_gif}" != "no"; then
5488 ac_safe
=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
5489 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
5490 echo "configure:5491: checking for gif_lib.h" >&5
5491 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5492 echo $ac_n "(cached) $ac_c" 1>&6
5494 cat > conftest.
$ac_ext <<EOF
5495 #line 5496 "configure"
5496 #include "confdefs.h"
5497 #include <gif_lib.h>
5499 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5500 { (eval echo configure
:5501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5501 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5502 if test -z "$ac_err"; then
5504 eval "ac_cv_header_$ac_safe=yes"
5507 echo "configure: failed program was:" >&5
5508 cat conftest.
$ac_ext >&5
5510 eval "ac_cv_header_$ac_safe=no"
5514 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5515 echo "$ac_t""yes" 1>&6
5516 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6
5517 echo "configure:5518: checking for DGifOpen in -lungif" >&5
5518 ac_lib_var
=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'`
5519 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5520 echo $ac_n "(cached) $ac_c" 1>&6
5522 ac_save_LIBS
="$LIBS"
5523 LIBS
="-lungif $LIBS"
5524 cat > conftest.
$ac_ext <<EOF
5525 #line 5526 "configure"
5526 #include "confdefs.h"
5527 /* Override any gcc2 internal prototype to avoid an error. */
5528 /* We use char because int might match the return type of a gcc2
5529 builtin and then its argument prototype would still apply. */
5536 if { (eval echo configure
:5537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5538 eval "ac_cv_lib_$ac_lib_var=yes"
5540 echo "configure: failed program was:" >&5
5541 cat conftest.
$ac_ext >&5
5543 eval "ac_cv_lib_$ac_lib_var=no"
5546 LIBS
="$ac_save_LIBS"
5549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5550 echo "$ac_t""yes" 1>&6
5553 echo "$ac_t""no" 1>&6
5557 echo "$ac_t""no" 1>&6
5562 if test "${HAVE_GIF}" = "yes"; then
5563 cat >> confdefs.h
<<\EOF
5570 # If netdb.h doesn't declare h_errno, we must declare it by hand.
5571 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
5572 echo "configure:5573: checking whether netdb declares h_errno" >&5
5573 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
5574 echo $ac_n "(cached) $ac_c" 1>&6
5576 cat > conftest.
$ac_ext <<EOF
5577 #line 5578 "configure"
5578 #include "confdefs.h"
5584 if { (eval echo configure
:5585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5586 emacs_cv_netdb_declares_h_errno
=yes
5588 echo "configure: failed program was:" >&5
5589 cat conftest.
$ac_ext >&5
5591 emacs_cv_netdb_declares_h_errno
=no
5596 echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6
5597 if test $emacs_cv_netdb_declares_h_errno = yes; then
5598 cat >> confdefs.h
<<\EOF
5599 #define HAVE_H_ERRNO 1
5604 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5605 # for constant arguments. Useless!
5606 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5607 echo "configure:5608: checking for working alloca.h" >&5
5608 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5609 echo $ac_n "(cached) $ac_c" 1>&6
5611 cat > conftest.
$ac_ext <<EOF
5612 #line 5613 "configure"
5613 #include "confdefs.h"
5616 char *p = alloca(2 * sizeof(int));
5619 if { (eval echo configure
:5620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5621 ac_cv_header_alloca_h
=yes
5623 echo "configure: failed program was:" >&5
5624 cat conftest.
$ac_ext >&5
5626 ac_cv_header_alloca_h
=no
5631 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5632 if test $ac_cv_header_alloca_h = yes; then
5633 cat >> confdefs.h
<<\EOF
5634 #define HAVE_ALLOCA_H 1
5639 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5640 echo "configure:5641: checking for alloca" >&5
5641 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5642 echo $ac_n "(cached) $ac_c" 1>&6
5644 cat > conftest.
$ac_ext <<EOF
5645 #line 5646 "configure"
5646 #include "confdefs.h"
5649 # define alloca __builtin_alloca
5652 # include <malloc.h>
5653 # define alloca _alloca
5656 # include <alloca.h>
5661 # ifndef alloca /* predefined by HP cc +Olibcalls */
5670 char *p = (char *) alloca(1);
5673 if { (eval echo configure
:5674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5675 ac_cv_func_alloca_works
=yes
5677 echo "configure: failed program was:" >&5
5678 cat conftest.
$ac_ext >&5
5680 ac_cv_func_alloca_works
=no
5685 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5686 if test $ac_cv_func_alloca_works = yes; then
5687 cat >> confdefs.h
<<\EOF
5688 #define HAVE_ALLOCA 1
5693 if test $ac_cv_func_alloca_works = no
; then
5694 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5695 # that cause trouble. Some versions do not even contain alloca or
5696 # contain a buggy version. If you still want to use their alloca,
5697 # use ar to extract alloca.o from them instead of compiling alloca.c.
5698 ALLOCA
=alloca.
${ac_objext}
5699 cat >> confdefs.h
<<\EOF
5704 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5705 echo "configure:5706: checking whether alloca needs Cray hooks" >&5
5706 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5707 echo $ac_n "(cached) $ac_c" 1>&6
5709 cat > conftest.
$ac_ext <<EOF
5710 #line 5711 "configure"
5711 #include "confdefs.h"
5712 #if defined(CRAY) && ! defined(CRAY2)
5719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5720 egrep "webecray" >/dev
/null
2>&1; then
5731 echo "$ac_t""$ac_cv_os_cray" 1>&6
5732 if test $ac_cv_os_cray = yes; then
5733 for ac_func
in _getb67 GETB67 getb67
; do
5734 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5735 echo "configure:5736: checking for $ac_func" >&5
5736 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5737 echo $ac_n "(cached) $ac_c" 1>&6
5739 cat > conftest.
$ac_ext <<EOF
5740 #line 5741 "configure"
5741 #include "confdefs.h"
5742 /* System header to define __stub macros and hopefully few prototypes,
5743 which can conflict with char $ac_func(); below. */
5745 /* Override any gcc2 internal prototype to avoid an error. */
5746 /* We use char because int might match the return type of a gcc2
5747 builtin and then its argument prototype would still apply. */
5752 /* The GNU C library defines this for functions which it implements
5753 to always fail with ENOSYS. Some functions are actually named
5754 something starting with __ and the normal name is an alias. */
5755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5763 if { (eval echo configure
:5764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5765 eval "ac_cv_func_$ac_func=yes"
5767 echo "configure: failed program was:" >&5
5768 cat conftest.
$ac_ext >&5
5770 eval "ac_cv_func_$ac_func=no"
5775 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5776 echo "$ac_t""yes" 1>&6
5777 cat >> confdefs.h
<<EOF
5778 #define CRAY_STACKSEG_END $ac_func
5783 echo "$ac_t""no" 1>&6
5789 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5790 echo "configure:5791: checking stack direction for C alloca" >&5
5791 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5792 echo $ac_n "(cached) $ac_c" 1>&6
5794 if test "$cross_compiling" = yes; then
5795 ac_cv_c_stack_direction
=0
5797 cat > conftest.
$ac_ext <<EOF
5798 #line 5799 "configure"
5799 #include "confdefs.h"
5800 find_stack_direction ()
5802 static char *addr = 0;
5807 return find_stack_direction ();
5810 return (&dummy > addr) ? 1 : -1;
5814 exit (find_stack_direction() < 0);
5817 if { (eval echo configure
:5818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5819 ac_cv_c_stack_direction
=1
5821 echo "configure: failed program was:" >&5
5822 cat conftest.
$ac_ext >&5
5824 ac_cv_c_stack_direction
=-1
5831 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5832 cat >> confdefs.h
<<EOF
5833 #define STACK_DIRECTION $ac_cv_c_stack_direction
5839 # fmod, logb, and frexp are found in -lm on most systems.
5840 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
5841 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
5842 echo "configure:5843: checking for sqrt in -lm" >&5
5843 ac_lib_var
=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
5844 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5845 echo $ac_n "(cached) $ac_c" 1>&6
5847 ac_save_LIBS
="$LIBS"
5849 cat > conftest.
$ac_ext <<EOF
5850 #line 5851 "configure"
5851 #include "confdefs.h"
5852 /* Override any gcc2 internal prototype to avoid an error. */
5853 /* We use char because int might match the return type of a gcc2
5854 builtin and then its argument prototype would still apply. */
5861 if { (eval echo configure
:5862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5863 eval "ac_cv_lib_$ac_lib_var=yes"
5865 echo "configure: failed program was:" >&5
5866 cat conftest.
$ac_ext >&5
5868 eval "ac_cv_lib_$ac_lib_var=no"
5871 LIBS
="$ac_save_LIBS"
5874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5875 echo "$ac_t""yes" 1>&6
5876 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5877 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5878 cat >> confdefs.h
<<EOF
5879 #define $ac_tr_lib 1
5885 echo "$ac_t""no" 1>&6
5889 # Check for mail-locking functions in a "mail" library
5890 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
5891 echo "configure:5892: checking for maillock in -lmail" >&5
5892 ac_lib_var
=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
5893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5894 echo $ac_n "(cached) $ac_c" 1>&6
5896 ac_save_LIBS
="$LIBS"
5898 cat > conftest.
$ac_ext <<EOF
5899 #line 5900 "configure"
5900 #include "confdefs.h"
5901 /* Override any gcc2 internal prototype to avoid an error. */
5902 /* We use char because int might match the return type of a gcc2
5903 builtin and then its argument prototype would still apply. */
5910 if { (eval echo configure
:5911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5912 eval "ac_cv_lib_$ac_lib_var=yes"
5914 echo "configure: failed program was:" >&5
5915 cat conftest.
$ac_ext >&5
5917 eval "ac_cv_lib_$ac_lib_var=no"
5920 LIBS
="$ac_save_LIBS"
5923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5924 echo "$ac_t""yes" 1>&6
5925 ac_tr_lib
=HAVE_LIB
`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5926 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5927 cat >> confdefs.h
<<EOF
5928 #define $ac_tr_lib 1
5934 echo "$ac_t""no" 1>&6
5937 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
5938 echo "configure:5939: checking for maillock in -llockfile" >&5
5939 ac_lib_var
=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
5940 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5941 echo $ac_n "(cached) $ac_c" 1>&6
5943 ac_save_LIBS
="$LIBS"
5944 LIBS
="-llockfile $LIBS"
5945 cat > conftest.
$ac_ext <<EOF
5946 #line 5947 "configure"
5947 #include "confdefs.h"
5948 /* Override any gcc2 internal prototype to avoid an error. */
5949 /* We use char because int might match the return type of a gcc2
5950 builtin and then its argument prototype would still apply. */
5957 if { (eval echo configure
:5958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5959 eval "ac_cv_lib_$ac_lib_var=yes"
5961 echo "configure: failed program was:" >&5
5962 cat conftest.
$ac_ext >&5
5964 eval "ac_cv_lib_$ac_lib_var=no"
5967 LIBS
="$ac_save_LIBS"
5970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5971 echo "$ac_t""yes" 1>&6
5972 ac_tr_lib
=HAVE_LIB
`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5973 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5974 cat >> confdefs.h
<<EOF
5975 #define $ac_tr_lib 1
5978 LIBS
="-llockfile $LIBS"
5981 echo "$ac_t""no" 1>&6
5984 # If we have the shared liblockfile, assume we must use it for mail
5985 # locking (e.g. Debian). If we couldn't link against liblockfile
5986 # (no liblockfile.a installed), ensure that we don't need to.
5987 if test "$ac_cv_lib_lockfile_maillock" = no
; then
5988 # Extract the first word of "liblockfile.so", so it can be a program name with args.
5989 set dummy liblockfile.so
; ac_word
=$2
5990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5991 echo "configure:5992: checking for $ac_word" >&5
5992 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
5993 echo $ac_n "(cached) $ac_c" 1>&6
5995 if test -n "$liblockfile"; then
5996 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
5998 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5999 ac_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
6000 for ac_dir
in $ac_dummy; do
6001 test -z "$ac_dir" && ac_dir
=.
6002 if test -f $ac_dir/$ac_word; then
6003 ac_cv_prog_liblockfile
="yes"
6008 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
6011 liblockfile
="$ac_cv_prog_liblockfile"
6012 if test -n "$liblockfile"; then
6013 echo "$ac_t""$liblockfile" 1>&6
6015 echo "$ac_t""no" 1>&6
6018 if test $ac_cv_prog_liblockfile = yes; then
6019 { echo "configure: error: Shared liblockfile found but can't link against it.
6020 This probably means that movemail could lose mail.
6021 There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; }
6022 else cat >> confdefs.h
<<\EOF
6023 #define LIBMAIL -llockfile
6029 for ac_func
in touchlock
6031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6032 echo "configure:6033: checking for $ac_func" >&5
6033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6034 echo $ac_n "(cached) $ac_c" 1>&6
6036 cat > conftest.
$ac_ext <<EOF
6037 #line 6038 "configure"
6038 #include "confdefs.h"
6039 /* System header to define __stub macros and hopefully few prototypes,
6040 which can conflict with char $ac_func(); below. */
6042 /* Override any gcc2 internal prototype to avoid an error. */
6043 /* We use char because int might match the return type of a gcc2
6044 builtin and then its argument prototype would still apply. */
6049 /* The GNU C library defines this for functions which it implements
6050 to always fail with ENOSYS. Some functions are actually named
6051 something starting with __ and the normal name is an alias. */
6052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6060 if { (eval echo configure
:6061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6062 eval "ac_cv_func_$ac_func=yes"
6064 echo "configure: failed program was:" >&5
6065 cat conftest.
$ac_ext >&5
6067 eval "ac_cv_func_$ac_func=no"
6072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6073 echo "$ac_t""yes" 1>&6
6074 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6075 cat >> confdefs.h
<<EOF
6076 #define $ac_tr_func 1
6080 echo "$ac_t""no" 1>&6
6084 for ac_hdr
in maillock.h
6086 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6087 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6088 echo "configure:6089: checking for $ac_hdr" >&5
6089 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6090 echo $ac_n "(cached) $ac_c" 1>&6
6092 cat > conftest.
$ac_ext <<EOF
6093 #line 6094 "configure"
6094 #include "confdefs.h"
6097 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6098 { (eval echo configure
:6099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6099 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6100 if test -z "$ac_err"; then
6102 eval "ac_cv_header_$ac_safe=yes"
6105 echo "configure: failed program was:" >&5
6106 cat conftest.
$ac_ext >&5
6108 eval "ac_cv_header_$ac_safe=no"
6112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6113 echo "$ac_t""yes" 1>&6
6114 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6115 cat >> confdefs.h
<<EOF
6116 #define $ac_tr_hdr 1
6120 echo "$ac_t""no" 1>&6
6125 for ac_func
in gethostname getdomainname dup2 \
6126 rename closedir mkdir
rmdir sysinfo \
6127 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
6128 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
6129 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
6130 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \
6131 gai_strerror mkstemp
6133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6134 echo "configure:6135: checking for $ac_func" >&5
6135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6136 echo $ac_n "(cached) $ac_c" 1>&6
6138 cat > conftest.
$ac_ext <<EOF
6139 #line 6140 "configure"
6140 #include "confdefs.h"
6141 /* System header to define __stub macros and hopefully few prototypes,
6142 which can conflict with char $ac_func(); below. */
6144 /* Override any gcc2 internal prototype to avoid an error. */
6145 /* We use char because int might match the return type of a gcc2
6146 builtin and then its argument prototype would still apply. */
6151 /* The GNU C library defines this for functions which it implements
6152 to always fail with ENOSYS. Some functions are actually named
6153 something starting with __ and the normal name is an alias. */
6154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6162 if { (eval echo configure
:6163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6164 eval "ac_cv_func_$ac_func=yes"
6166 echo "configure: failed program was:" >&5
6167 cat conftest.
$ac_ext >&5
6169 eval "ac_cv_func_$ac_func=no"
6174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6175 echo "$ac_t""yes" 1>&6
6176 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6177 cat >> confdefs.h
<<EOF
6178 #define $ac_tr_func 1
6182 echo "$ac_t""no" 1>&6
6187 for ac_hdr
in sys
/time.h unistd.h
6189 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6190 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6191 echo "configure:6192: checking for $ac_hdr" >&5
6192 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6193 echo $ac_n "(cached) $ac_c" 1>&6
6195 cat > conftest.
$ac_ext <<EOF
6196 #line 6197 "configure"
6197 #include "confdefs.h"
6200 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6201 { (eval echo configure
:6202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6202 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6203 if test -z "$ac_err"; then
6205 eval "ac_cv_header_$ac_safe=yes"
6208 echo "configure: failed program was:" >&5
6209 cat conftest.
$ac_ext >&5
6211 eval "ac_cv_header_$ac_safe=no"
6215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6216 echo "$ac_t""yes" 1>&6
6217 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6218 cat >> confdefs.h
<<EOF
6219 #define $ac_tr_hdr 1
6223 echo "$ac_t""no" 1>&6
6227 for ac_func
in alarm
6229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6230 echo "configure:6231: checking for $ac_func" >&5
6231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6232 echo $ac_n "(cached) $ac_c" 1>&6
6234 cat > conftest.
$ac_ext <<EOF
6235 #line 6236 "configure"
6236 #include "confdefs.h"
6237 /* System header to define __stub macros and hopefully few prototypes,
6238 which can conflict with char $ac_func(); below. */
6240 /* Override any gcc2 internal prototype to avoid an error. */
6241 /* We use char because int might match the return type of a gcc2
6242 builtin and then its argument prototype would still apply. */
6247 /* The GNU C library defines this for functions which it implements
6248 to always fail with ENOSYS. Some functions are actually named
6249 something starting with __ and the normal name is an alias. */
6250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6258 if { (eval echo configure
:6259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6260 eval "ac_cv_func_$ac_func=yes"
6262 echo "configure: failed program was:" >&5
6263 cat conftest.
$ac_ext >&5
6265 eval "ac_cv_func_$ac_func=no"
6270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6271 echo "$ac_t""yes" 1>&6
6272 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6273 cat >> confdefs.h
<<EOF
6274 #define $ac_tr_func 1
6278 echo "$ac_t""no" 1>&6
6282 echo $ac_n "checking for working mktime""... $ac_c" 1>&6
6283 echo "configure:6284: checking for working mktime" >&5
6284 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then
6285 echo $ac_n "(cached) $ac_c" 1>&6
6287 if test "$cross_compiling" = yes; then
6288 ac_cv_func_working_mktime
=no
6290 cat > conftest.
$ac_ext <<EOF
6291 #line 6292 "configure"
6292 #include "confdefs.h"
6293 /* Test program from Paul Eggert (eggert@twinsun.com)
6294 and Tony Leneis (tony@plaza.ds.adp.com). */
6295 #if TIME_WITH_SYS_TIME
6296 # include <sys/time.h>
6299 # if HAVE_SYS_TIME_H
6300 # include <sys/time.h>
6307 # include <unistd.h>
6311 # define alarm(X) /* empty */
6314 /* Work around redefinition to rpl_putenv by other config tests. */
6317 static time_t time_t_max;
6319 /* Values we'll use to set the TZ environment variable. */
6320 static const char *const tz_strings[] = {
6321 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
6322 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
6324 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
6326 /* Fail if mktime fails to convert a date in the spring-forward gap.
6327 Based on a problem report from Andreas Jaeger. */
6329 spring_forward_gap ()
6331 /* glibc (up to about 1998-10-07) failed this test) */
6334 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
6335 instead of "TZ=America/Vancouver" in order to detect the bug even
6336 on systems that don't support the Olson extension, or don't have the
6337 full zoneinfo tables installed. */
6338 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
6347 if (mktime (&tm) == (time_t)-1)
6356 if ((lt = localtime (&now)) && mktime (lt) != now)
6358 now = time_t_max - now;
6359 if ((lt = localtime (&now)) && mktime (lt) != now)
6366 /* Based on code from Ariel Faigon. */
6376 if (tm.tm_mon != 2 || tm.tm_mday != 31)
6386 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
6388 if (now != (time_t) -1)
6390 struct tm *lt = localtime (&now);
6392 && lt->tm_year == tm.tm_year
6393 && lt->tm_mon == tm.tm_mon
6394 && lt->tm_mday == tm.tm_mday
6395 && lt->tm_hour == tm.tm_hour
6396 && lt->tm_min == tm.tm_min
6397 && lt->tm_sec == tm.tm_sec
6398 && lt->tm_yday == tm.tm_yday
6399 && lt->tm_wday == tm.tm_wday
6400 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
6401 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
6412 /* This test makes some buggy mktime implementations loop.
6413 Give up after 60 seconds; a mktime slower than that
6414 isn't worth using anyway. */
6417 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
6420 delta = time_t_max / 997; /* a suitable prime number */
6421 for (i = 0; i < N_STRINGS; i++)
6424 putenv (tz_strings[i]);
6426 for (t = 0; t <= time_t_max - delta; t += delta)
6428 mktime_test ((time_t) 60 * 60);
6429 mktime_test ((time_t) 60 * 60 * 24);
6431 for (j = 1; 0 < j; j *= 2)
6433 bigtime_test (j - 1);
6436 spring_forward_gap ();
6440 if { (eval echo configure
:6441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6442 ac_cv_func_working_mktime
=yes
6444 echo "configure: failed program was:" >&5
6445 cat conftest.
$ac_ext >&5
6447 ac_cv_func_working_mktime
=no
6454 echo "$ac_t""$ac_cv_func_working_mktime" 1>&6
6455 if test $ac_cv_func_working_mktime = no
; then
6456 LIBOBJS
="$LIBOBJS mktime.${ac_objext}"
6459 if test "$ac_cv_func_working_mktime" = no
; then
6460 cat >> confdefs.h
<<\EOF
6461 #define BROKEN_MKTIME 1
6466 ac_have_func
=no
# yes means we've found a way to get the load average.
6468 # Some systems have getloadavg without any extra libraries.
6469 echo $ac_n "checking for getloadavg""... $ac_c" 1>&6
6470 echo "configure:6471: checking for getloadavg" >&5
6471 if eval "test \"`echo '$''{'ac_cv_func_getloadavg'+set}'`\" = set"; then
6472 echo $ac_n "(cached) $ac_c" 1>&6
6474 cat > conftest.
$ac_ext <<EOF
6475 #line 6476 "configure"
6476 #include "confdefs.h"
6477 /* System header to define __stub macros and hopefully few prototypes,
6478 which can conflict with char getloadavg(); below. */
6480 /* Override any gcc2 internal prototype to avoid an error. */
6481 /* We use char because int might match the return type of a gcc2
6482 builtin and then its argument prototype would still apply. */
6487 /* The GNU C library defines this for functions which it implements
6488 to always fail with ENOSYS. Some functions are actually named
6489 something starting with __ and the normal name is an alias. */
6490 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
6498 if { (eval echo configure
:6499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6500 eval "ac_cv_func_getloadavg=yes"
6502 echo "configure: failed program was:" >&5
6503 cat conftest.
$ac_ext >&5
6505 eval "ac_cv_func_getloadavg=no"
6510 if eval "test \"`echo '$ac_cv_func_'getloadavg`\" = yes"; then
6511 echo "$ac_t""yes" 1>&6
6514 echo "$ac_t""no" 1>&6
6518 if test $ac_have_func = no
; then
6519 # Some systems with -lutil have (and need) -lkvm as well, some do not.
6520 # On Solaris, -lkvm requires nlist from -lelf, so check that first
6521 # to get the right answer into the cache.
6522 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6
6523 echo "configure:6524: checking for elf_begin in -lelf" >&5
6524 ac_lib_var
=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'`
6525 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6526 echo $ac_n "(cached) $ac_c" 1>&6
6528 ac_save_LIBS
="$LIBS"
6530 cat > conftest.
$ac_ext <<EOF
6531 #line 6532 "configure"
6532 #include "confdefs.h"
6533 /* Override any gcc2 internal prototype to avoid an error. */
6534 /* We use char because int might match the return type of a gcc2
6535 builtin and then its argument prototype would still apply. */
6542 if { (eval echo configure
:6543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6544 eval "ac_cv_lib_$ac_lib_var=yes"
6546 echo "configure: failed program was:" >&5
6547 cat conftest.
$ac_ext >&5
6549 eval "ac_cv_lib_$ac_lib_var=no"
6552 LIBS
="$ac_save_LIBS"
6555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6556 echo "$ac_t""yes" 1>&6
6559 echo "$ac_t""no" 1>&6
6562 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
6563 echo "configure:6564: checking for kvm_open in -lkvm" >&5
6564 ac_lib_var
=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`
6565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6566 echo $ac_n "(cached) $ac_c" 1>&6
6568 ac_save_LIBS
="$LIBS"
6570 cat > conftest.
$ac_ext <<EOF
6571 #line 6572 "configure"
6572 #include "confdefs.h"
6573 /* Override any gcc2 internal prototype to avoid an error. */
6574 /* We use char because int might match the return type of a gcc2
6575 builtin and then its argument prototype would still apply. */
6582 if { (eval echo configure
:6583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6584 eval "ac_cv_lib_$ac_lib_var=yes"
6586 echo "configure: failed program was:" >&5
6587 cat conftest.
$ac_ext >&5
6589 eval "ac_cv_lib_$ac_lib_var=no"
6592 LIBS
="$ac_save_LIBS"
6595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6596 echo "$ac_t""yes" 1>&6
6599 echo "$ac_t""no" 1>&6
6602 # Check for the 4.4BSD definition of getloadavg.
6603 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6
6604 echo "configure:6605: checking for getloadavg in -lutil" >&5
6605 ac_lib_var
=`echo util'_'getloadavg | sed 'y%./+-%__p_%'`
6606 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6607 echo $ac_n "(cached) $ac_c" 1>&6
6609 ac_save_LIBS
="$LIBS"
6611 cat > conftest.
$ac_ext <<EOF
6612 #line 6613 "configure"
6613 #include "confdefs.h"
6614 /* Override any gcc2 internal prototype to avoid an error. */
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6623 if { (eval echo configure
:6624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6625 eval "ac_cv_lib_$ac_lib_var=yes"
6627 echo "configure: failed program was:" >&5
6628 cat conftest.
$ac_ext >&5
6630 eval "ac_cv_lib_$ac_lib_var=no"
6633 LIBS
="$ac_save_LIBS"
6636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6637 echo "$ac_t""yes" 1>&6
6638 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
6640 echo "$ac_t""no" 1>&6
6645 if test $ac_have_func = no
; then
6646 # There is a commonly available library for RS/6000 AIX.
6647 # Since it is not a standard part of AIX, it might be installed locally.
6648 ac_getloadavg_LIBS
="$LIBS"; LIBS
="-L/usr/local/lib $LIBS"
6649 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6
6650 echo "configure:6651: checking for getloadavg in -lgetloadavg" >&5
6651 ac_lib_var
=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'`
6652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6653 echo $ac_n "(cached) $ac_c" 1>&6
6655 ac_save_LIBS
="$LIBS"
6656 LIBS
="-lgetloadavg $LIBS"
6657 cat > conftest.
$ac_ext <<EOF
6658 #line 6659 "configure"
6659 #include "confdefs.h"
6660 /* Override any gcc2 internal prototype to avoid an error. */
6661 /* We use char because int might match the return type of a gcc2
6662 builtin and then its argument prototype would still apply. */
6669 if { (eval echo configure
:6670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6671 eval "ac_cv_lib_$ac_lib_var=yes"
6673 echo "configure: failed program was:" >&5
6674 cat conftest.
$ac_ext >&5
6676 eval "ac_cv_lib_$ac_lib_var=no"
6679 LIBS
="$ac_save_LIBS"
6682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6683 echo "$ac_t""yes" 1>&6
6684 LIBS
="-lgetloadavg $LIBS"
6686 echo "$ac_t""no" 1>&6
6687 LIBS
="$ac_getloadavg_LIBS"
6692 # Make sure it is really in the library, if we think we found it.
6693 for ac_func
in getloadavg
6695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6696 echo "configure:6697: checking for $ac_func" >&5
6697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6698 echo $ac_n "(cached) $ac_c" 1>&6
6700 cat > conftest.
$ac_ext <<EOF
6701 #line 6702 "configure"
6702 #include "confdefs.h"
6703 /* System header to define __stub macros and hopefully few prototypes,
6704 which can conflict with char $ac_func(); below. */
6706 /* Override any gcc2 internal prototype to avoid an error. */
6707 /* We use char because int might match the return type of a gcc2
6708 builtin and then its argument prototype would still apply. */
6713 /* The GNU C library defines this for functions which it implements
6714 to always fail with ENOSYS. Some functions are actually named
6715 something starting with __ and the normal name is an alias. */
6716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6724 if { (eval echo configure
:6725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6726 eval "ac_cv_func_$ac_func=yes"
6728 echo "configure: failed program was:" >&5
6729 cat conftest.
$ac_ext >&5
6731 eval "ac_cv_func_$ac_func=no"
6736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6737 echo "$ac_t""yes" 1>&6
6738 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6739 cat >> confdefs.h
<<EOF
6740 #define $ac_tr_func 1
6744 echo "$ac_t""no" 1>&6
6745 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
6751 if test $ac_cv_func_getloadavg = yes; then
6752 cat >> confdefs.h
<<\EOF
6753 #define HAVE_GETLOADAVG 1
6758 # Figure out what our getloadavg.c needs.
6760 ac_safe
=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`
6761 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
6762 echo "configure:6763: checking for sys/dg_sys_info.h" >&5
6763 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6764 echo $ac_n "(cached) $ac_c" 1>&6
6766 cat > conftest.
$ac_ext <<EOF
6767 #line 6768 "configure"
6768 #include "confdefs.h"
6769 #include <sys/dg_sys_info.h>
6771 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6772 { (eval echo configure
:6773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6773 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6774 if test -z "$ac_err"; then
6776 eval "ac_cv_header_$ac_safe=yes"
6779 echo "configure: failed program was:" >&5
6780 cat conftest.
$ac_ext >&5
6782 eval "ac_cv_header_$ac_safe=no"
6786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6787 echo "$ac_t""yes" 1>&6
6788 ac_have_func
=yes; cat >> confdefs.h
<<\EOF
6792 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6
6793 echo "configure:6794: checking for dg_sys_info in -ldgc" >&5
6794 ac_lib_var
=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'`
6795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6796 echo $ac_n "(cached) $ac_c" 1>&6
6798 ac_save_LIBS
="$LIBS"
6800 cat > conftest.
$ac_ext <<EOF
6801 #line 6802 "configure"
6802 #include "confdefs.h"
6803 /* Override any gcc2 internal prototype to avoid an error. */
6804 /* We use char because int might match the return type of a gcc2
6805 builtin and then its argument prototype would still apply. */
6812 if { (eval echo configure
:6813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6814 eval "ac_cv_lib_$ac_lib_var=yes"
6816 echo "configure: failed program was:" >&5
6817 cat conftest.
$ac_ext >&5
6819 eval "ac_cv_lib_$ac_lib_var=no"
6822 LIBS
="$ac_save_LIBS"
6825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6826 echo "$ac_t""yes" 1>&6
6827 ac_tr_lib
=HAVE_LIB
`echo dgc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6828 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6829 cat >> confdefs.h
<<EOF
6830 #define $ac_tr_lib 1
6836 echo "$ac_t""no" 1>&6
6840 echo "$ac_t""no" 1>&6
6844 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
6845 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
6846 # Irix 4.0.5F has the header but not the library.
6847 if test $ac_have_func = no
&& test $ac_cv_lib_elf_elf_begin = yes; then
6848 ac_have_func
=yes; cat >> confdefs.h
<<\EOF
6854 if test $ac_have_func = no
; then
6855 ac_safe
=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'`
6856 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6
6857 echo "configure:6858: checking for inq_stats/cpustats.h" >&5
6858 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6859 echo $ac_n "(cached) $ac_c" 1>&6
6861 cat > conftest.
$ac_ext <<EOF
6862 #line 6863 "configure"
6863 #include "confdefs.h"
6864 #include <inq_stats/cpustats.h>
6866 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6867 { (eval echo configure
:6868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6868 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6869 if test -z "$ac_err"; then
6871 eval "ac_cv_header_$ac_safe=yes"
6874 echo "configure: failed program was:" >&5
6875 cat conftest.
$ac_ext >&5
6877 eval "ac_cv_header_$ac_safe=no"
6881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6882 echo "$ac_t""yes" 1>&6
6883 ac_have_func
=yes; cat >> confdefs.h
<<\EOF
6887 cat >> confdefs.h
<<\EOF
6892 echo "$ac_t""no" 1>&6
6897 if test $ac_have_func = no
; then
6898 ac_safe
=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'`
6899 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6
6900 echo "configure:6901: checking for sys/cpustats.h" >&5
6901 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6902 echo $ac_n "(cached) $ac_c" 1>&6
6904 cat > conftest.
$ac_ext <<EOF
6905 #line 6906 "configure"
6906 #include "confdefs.h"
6907 #include <sys/cpustats.h>
6909 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6910 { (eval echo configure
:6911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6911 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6912 if test -z "$ac_err"; then
6914 eval "ac_cv_header_$ac_safe=yes"
6917 echo "configure: failed program was:" >&5
6918 cat conftest.
$ac_ext >&5
6920 eval "ac_cv_header_$ac_safe=no"
6924 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6925 echo "$ac_t""yes" 1>&6
6926 ac_have_func
=yes; cat >> confdefs.h
<<\EOF
6931 echo "$ac_t""no" 1>&6
6936 if test $ac_have_func = no
; then
6937 for ac_hdr
in mach
/mach.h
6939 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6940 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6941 echo "configure:6942: checking for $ac_hdr" >&5
6942 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6943 echo $ac_n "(cached) $ac_c" 1>&6
6945 cat > conftest.
$ac_ext <<EOF
6946 #line 6947 "configure"
6947 #include "confdefs.h"
6950 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6951 { (eval echo configure
:6952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6952 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6953 if test -z "$ac_err"; then
6955 eval "ac_cv_header_$ac_safe=yes"
6958 echo "configure: failed program was:" >&5
6959 cat conftest.
$ac_ext >&5
6961 eval "ac_cv_header_$ac_safe=no"
6965 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6966 echo "$ac_t""yes" 1>&6
6967 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6968 cat >> confdefs.h
<<EOF
6969 #define $ac_tr_hdr 1
6973 echo "$ac_t""no" 1>&6
6979 ac_safe
=`echo "nlist.h" | sed 'y%./+-%__p_%'`
6980 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
6981 echo "configure:6982: checking for nlist.h" >&5
6982 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6983 echo $ac_n "(cached) $ac_c" 1>&6
6985 cat > conftest.
$ac_ext <<EOF
6986 #line 6987 "configure"
6987 #include "confdefs.h"
6990 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6991 { (eval echo configure
:6992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6992 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6993 if test -z "$ac_err"; then
6995 eval "ac_cv_header_$ac_safe=yes"
6998 echo "configure: failed program was:" >&5
6999 cat conftest.
$ac_ext >&5
7001 eval "ac_cv_header_$ac_safe=no"
7005 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7006 echo "$ac_t""yes" 1>&6
7007 cat >> confdefs.h
<<\EOF
7008 #define NLIST_STRUCT 1
7011 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
7012 echo "configure:7013: checking for n_un in struct nlist" >&5
7013 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
7014 echo $ac_n "(cached) $ac_c" 1>&6
7016 cat > conftest.
$ac_ext <<EOF
7017 #line 7018 "configure"
7018 #include "confdefs.h"
7021 struct nlist n; n.n_un.n_name = 0;
7024 if { (eval echo configure
:7025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7026 ac_cv_struct_nlist_n_un
=yes
7028 echo "configure: failed program was:" >&5
7029 cat conftest.
$ac_ext >&5
7031 ac_cv_struct_nlist_n_un
=no
7036 echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6
7037 if test $ac_cv_struct_nlist_n_un = yes; then
7038 cat >> confdefs.h
<<\EOF
7039 #define NLIST_NAME_UNION 1
7045 echo "$ac_t""no" 1>&6
7047 fi # Do not have getloadavg in system libraries.
7049 # Some definitions of getloadavg require that the program be installed setgid.
7050 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6
7051 echo "configure:7052: checking whether getloadavg requires setgid" >&5
7052 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then
7053 echo $ac_n "(cached) $ac_c" 1>&6
7055 cat > conftest.
$ac_ext <<EOF
7056 #line 7057 "configure"
7057 #include "confdefs.h"
7058 #include "$srcdir/getloadavg.c"
7059 #ifdef LDAV_PRIVILEGED
7060 Yowza Am I SETGID yet
7063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7064 egrep "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
7066 ac_cv_func_getloadavg_setgid
=yes
7069 ac_cv_func_getloadavg_setgid
=no
7075 echo "$ac_t""$ac_cv_func_getloadavg_setgid" 1>&6
7076 if test $ac_cv_func_getloadavg_setgid = yes; then
7077 NEED_SETGID
=true
; cat >> confdefs.h
<<\EOF
7078 #define GETLOADAVG_PRIVILEGED 1
7085 if test $ac_cv_func_getloadavg_setgid = yes; then
7086 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6
7087 echo "configure:7088: checking group of /dev/kmem" >&5
7088 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then
7089 echo $ac_n "(cached) $ac_c" 1>&6
7091 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
7092 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
7093 # If we got an error (system does not support symlinks), try without -L.
7094 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
7095 ac_cv_group_kmem
=`echo $ac_ls_output \
7096 | sed -ne 's/[ ][ ]*/ /g;
7097 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
7102 echo "$ac_t""$ac_cv_group_kmem" 1>&6
7103 KMEM_GROUP
=$ac_cv_group_kmem
7107 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
7108 echo "configure:7109: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7109 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
7110 echo $ac_n "(cached) $ac_c" 1>&6
7112 ac_cv_sys_largefile_source
=no
7113 cat > conftest.
$ac_ext <<EOF
7114 #line 7115 "configure"
7115 #include "confdefs.h"
7121 if { (eval echo configure
:7122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7124 echo "configure: failed program was:" >&5
7125 cat conftest.
$ac_ext >&5
7127 cat > conftest.
$ac_ext <<EOF
7128 #line 7129 "configure"
7129 #include "confdefs.h"
7130 #define _LARGEFILE_SOURCE 1
7137 if { (eval echo configure
:7138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7139 ac_cv_sys_largefile_source
=1
7141 echo "configure: failed program was:" >&5
7142 cat conftest.
$ac_ext >&5
7149 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
7150 if test "$ac_cv_sys_largefile_source" != no
; then
7151 cat >> confdefs.h
<<EOF
7152 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7156 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7157 # in glibc 2.1.3, but that breaks too many other things.
7158 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7160 echo $ac_n "checking for fseeko""... $ac_c" 1>&6
7161 echo "configure:7162: checking for fseeko" >&5
7162 if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then
7163 echo $ac_n "(cached) $ac_c" 1>&6
7165 ac_cv_func_fseeko
=no
7166 cat > conftest.
$ac_ext <<EOF
7167 #line 7168 "configure"
7168 #include "confdefs.h"
7171 return fseeko && fseeko (stdin, 0, 0);
7174 if { (eval echo configure
:7175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7176 ac_cv_func_fseeko
=yes
7178 echo "configure: failed program was:" >&5
7179 cat conftest.
$ac_ext >&5
7184 echo "$ac_t""$ac_cv_func_fseeko" 1>&6
7185 if test $ac_cv_func_fseeko != no
; then
7186 cat >> confdefs.h
<<\EOF
7187 #define HAVE_FSEEKO 1
7193 for ac_func
in grantpt
7195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7196 echo "configure:7197: checking for $ac_func" >&5
7197 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7198 echo $ac_n "(cached) $ac_c" 1>&6
7200 cat > conftest.
$ac_ext <<EOF
7201 #line 7202 "configure"
7202 #include "confdefs.h"
7203 /* System header to define __stub macros and hopefully few prototypes,
7204 which can conflict with char $ac_func(); below. */
7206 /* Override any gcc2 internal prototype to avoid an error. */
7207 /* We use char because int might match the return type of a gcc2
7208 builtin and then its argument prototype would still apply. */
7213 /* The GNU C library defines this for functions which it implements
7214 to always fail with ENOSYS. Some functions are actually named
7215 something starting with __ and the normal name is an alias. */
7216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7224 if { (eval echo configure
:7225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7226 eval "ac_cv_func_$ac_func=yes"
7228 echo "configure: failed program was:" >&5
7229 cat conftest.
$ac_ext >&5
7231 eval "ac_cv_func_$ac_func=no"
7236 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7237 echo "$ac_t""yes" 1>&6
7238 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7239 cat >> confdefs.h
<<EOF
7240 #define $ac_tr_func 1
7244 echo "$ac_t""no" 1>&6
7249 # PTY-related GNU extensions.
7250 for ac_func
in getpt
7252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7253 echo "configure:7254: checking for $ac_func" >&5
7254 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7255 echo $ac_n "(cached) $ac_c" 1>&6
7257 cat > conftest.
$ac_ext <<EOF
7258 #line 7259 "configure"
7259 #include "confdefs.h"
7260 /* System header to define __stub macros and hopefully few prototypes,
7261 which can conflict with char $ac_func(); below. */
7263 /* Override any gcc2 internal prototype to avoid an error. */
7264 /* We use char because int might match the return type of a gcc2
7265 builtin and then its argument prototype would still apply. */
7270 /* The GNU C library defines this for functions which it implements
7271 to always fail with ENOSYS. Some functions are actually named
7272 something starting with __ and the normal name is an alias. */
7273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7281 if { (eval echo configure
:7282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7283 eval "ac_cv_func_$ac_func=yes"
7285 echo "configure: failed program was:" >&5
7286 cat conftest.
$ac_ext >&5
7288 eval "ac_cv_func_$ac_func=no"
7293 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7294 echo "$ac_t""yes" 1>&6
7295 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7296 cat >> confdefs.h
<<EOF
7297 #define $ac_tr_func 1
7301 echo "$ac_t""no" 1>&6
7306 # Check this now, so that we will NOT find the above functions in ncurses.
7307 # That is because we have not set up to link ncurses in lib-src.
7308 # It's better to believe a function is not available
7309 # than to expect to find it in ncurses.
7310 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
7311 echo "configure:7312: checking for tparm in -lncurses" >&5
7312 ac_lib_var
=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
7313 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7314 echo $ac_n "(cached) $ac_c" 1>&6
7316 ac_save_LIBS
="$LIBS"
7317 LIBS
="-lncurses $LIBS"
7318 cat > conftest.
$ac_ext <<EOF
7319 #line 7320 "configure"
7320 #include "confdefs.h"
7321 /* Override any gcc2 internal prototype to avoid an error. */
7322 /* We use char because int might match the return type of a gcc2
7323 builtin and then its argument prototype would still apply. */
7330 if { (eval echo configure
:7331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7332 eval "ac_cv_lib_$ac_lib_var=yes"
7334 echo "configure: failed program was:" >&5
7335 cat conftest.
$ac_ext >&5
7337 eval "ac_cv_lib_$ac_lib_var=no"
7340 LIBS
="$ac_save_LIBS"
7343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7344 echo "$ac_t""yes" 1>&6
7345 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7346 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7347 cat >> confdefs.h
<<EOF
7348 #define $ac_tr_lib 1
7351 LIBS
="-lncurses $LIBS"
7354 echo "$ac_t""no" 1>&6
7358 # Do we need the Hesiod library to provide the support routines?
7359 if test "$with_hesiod" = yes ; then
7360 # Don't set $LIBS here -- see comments above.
7362 echo $ac_n "checking for res_send""... $ac_c" 1>&6
7363 echo "configure:7364: checking for res_send" >&5
7364 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
7365 echo $ac_n "(cached) $ac_c" 1>&6
7367 cat > conftest.
$ac_ext <<EOF
7368 #line 7369 "configure"
7369 #include "confdefs.h"
7370 /* System header to define __stub macros and hopefully few prototypes,
7371 which can conflict with char res_send(); below. */
7373 /* Override any gcc2 internal prototype to avoid an error. */
7374 /* We use char because int might match the return type of a gcc2
7375 builtin and then its argument prototype would still apply. */
7380 /* The GNU C library defines this for functions which it implements
7381 to always fail with ENOSYS. Some functions are actually named
7382 something starting with __ and the normal name is an alias. */
7383 #if defined (__stub_res_send) || defined (__stub___res_send)
7391 if { (eval echo configure
:7392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7393 eval "ac_cv_func_res_send=yes"
7395 echo "configure: failed program was:" >&5
7396 cat conftest.
$ac_ext >&5
7398 eval "ac_cv_func_res_send=no"
7403 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
7404 echo "$ac_t""yes" 1>&6
7407 echo "$ac_t""no" 1>&6
7408 echo $ac_n "checking for __res_send""... $ac_c" 1>&6
7409 echo "configure:7410: checking for __res_send" >&5
7410 if eval "test \"`echo '$''{'ac_cv_func___res_send'+set}'`\" = set"; then
7411 echo $ac_n "(cached) $ac_c" 1>&6
7413 cat > conftest.
$ac_ext <<EOF
7414 #line 7415 "configure"
7415 #include "confdefs.h"
7416 /* System header to define __stub macros and hopefully few prototypes,
7417 which can conflict with char __res_send(); below. */
7419 /* Override any gcc2 internal prototype to avoid an error. */
7420 /* We use char because int might match the return type of a gcc2
7421 builtin and then its argument prototype would still apply. */
7426 /* The GNU C library defines this for functions which it implements
7427 to always fail with ENOSYS. Some functions are actually named
7428 something starting with __ and the normal name is an alias. */
7429 #if defined (__stub___res_send) || defined (__stub_____res_send)
7437 if { (eval echo configure
:7438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7439 eval "ac_cv_func___res_send=yes"
7441 echo "configure: failed program was:" >&5
7442 cat conftest.
$ac_ext >&5
7444 eval "ac_cv_func___res_send=no"
7449 if eval "test \"`echo '$ac_cv_func_'__res_send`\" = yes"; then
7450 echo "$ac_t""yes" 1>&6
7453 echo "$ac_t""no" 1>&6
7454 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
7455 echo "configure:7456: checking for res_send in -lresolv" >&5
7456 ac_lib_var
=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
7457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7458 echo $ac_n "(cached) $ac_c" 1>&6
7460 ac_save_LIBS
="$LIBS"
7461 LIBS
="-lresolv $LIBS"
7462 cat > conftest.
$ac_ext <<EOF
7463 #line 7464 "configure"
7464 #include "confdefs.h"
7465 /* Override any gcc2 internal prototype to avoid an error. */
7466 /* We use char because int might match the return type of a gcc2
7467 builtin and then its argument prototype would still apply. */
7474 if { (eval echo configure
:7475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7476 eval "ac_cv_lib_$ac_lib_var=yes"
7478 echo "configure: failed program was:" >&5
7479 cat conftest.
$ac_ext >&5
7481 eval "ac_cv_lib_$ac_lib_var=no"
7484 LIBS
="$ac_save_LIBS"
7487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7488 echo "$ac_t""yes" 1>&6
7491 echo "$ac_t""no" 1>&6
7492 echo $ac_n "checking for __res_send in -lresolv""... $ac_c" 1>&6
7493 echo "configure:7494: checking for __res_send in -lresolv" >&5
7494 ac_lib_var
=`echo resolv'_'__res_send | sed 'y%./+-%__p_%'`
7495 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7496 echo $ac_n "(cached) $ac_c" 1>&6
7498 ac_save_LIBS
="$LIBS"
7499 LIBS
="-lresolv $LIBS"
7500 cat > conftest.
$ac_ext <<EOF
7501 #line 7502 "configure"
7502 #include "confdefs.h"
7503 /* Override any gcc2 internal prototype to avoid an error. */
7504 /* We use char because int might match the return type of a gcc2
7505 builtin and then its argument prototype would still apply. */
7512 if { (eval echo configure
:7513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7514 eval "ac_cv_lib_$ac_lib_var=yes"
7516 echo "configure: failed program was:" >&5
7517 cat conftest.
$ac_ext >&5
7519 eval "ac_cv_lib_$ac_lib_var=no"
7522 LIBS
="$ac_save_LIBS"
7525 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7526 echo "$ac_t""yes" 1>&6
7529 echo "$ac_t""no" 1>&6
7538 if test "$resolv" = yes ; then
7540 cat >> confdefs.h
<<\EOF
7541 #define HAVE_LIBRESOLV 1
7547 echo $ac_n "checking for hes_getmailhost""... $ac_c" 1>&6
7548 echo "configure:7549: checking for hes_getmailhost" >&5
7549 if eval "test \"`echo '$''{'ac_cv_func_hes_getmailhost'+set}'`\" = set"; then
7550 echo $ac_n "(cached) $ac_c" 1>&6
7552 cat > conftest.
$ac_ext <<EOF
7553 #line 7554 "configure"
7554 #include "confdefs.h"
7555 /* System header to define __stub macros and hopefully few prototypes,
7556 which can conflict with char hes_getmailhost(); below. */
7558 /* Override any gcc2 internal prototype to avoid an error. */
7559 /* We use char because int might match the return type of a gcc2
7560 builtin and then its argument prototype would still apply. */
7561 char hes_getmailhost();
7565 /* The GNU C library defines this for functions which it implements
7566 to always fail with ENOSYS. Some functions are actually named
7567 something starting with __ and the normal name is an alias. */
7568 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
7576 if { (eval echo configure
:7577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7578 eval "ac_cv_func_hes_getmailhost=yes"
7580 echo "configure: failed program was:" >&5
7581 cat conftest.
$ac_ext >&5
7583 eval "ac_cv_func_hes_getmailhost=no"
7588 if eval "test \"`echo '$ac_cv_func_'hes_getmailhost`\" = yes"; then
7589 echo "$ac_t""yes" 1>&6
7592 echo "$ac_t""no" 1>&6
7593 echo $ac_n "checking for hes_getmailhost in -lhesiod""... $ac_c" 1>&6
7594 echo "configure:7595: checking for hes_getmailhost in -lhesiod" >&5
7595 ac_lib_var
=`echo hesiod'_'hes_getmailhost | sed 'y%./+-%__p_%'`
7596 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7597 echo $ac_n "(cached) $ac_c" 1>&6
7599 ac_save_LIBS
="$LIBS"
7600 LIBS
="-lhesiod $RESOLVLIB $LIBS"
7601 cat > conftest.
$ac_ext <<EOF
7602 #line 7603 "configure"
7603 #include "confdefs.h"
7604 /* Override any gcc2 internal prototype to avoid an error. */
7605 /* We use char because int might match the return type of a gcc2
7606 builtin and then its argument prototype would still apply. */
7607 char hes_getmailhost();
7613 if { (eval echo configure
:7614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7615 eval "ac_cv_lib_$ac_lib_var=yes"
7617 echo "configure: failed program was:" >&5
7618 cat conftest.
$ac_ext >&5
7620 eval "ac_cv_lib_$ac_lib_var=no"
7623 LIBS
="$ac_save_LIBS"
7626 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7627 echo "$ac_t""yes" 1>&6
7628 cat >> confdefs.h
<<\EOF
7629 #define HAVE_LIBHESIOD 1
7633 echo "$ac_t""no" 1>&6
7641 # These tell us which Kerberos-related libraries to use.
7642 if test "${with_kerberos+set}" = set; then
7643 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
7644 echo "configure:7645: checking for com_err in -lcom_err" >&5
7645 ac_lib_var
=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
7646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7647 echo $ac_n "(cached) $ac_c" 1>&6
7649 ac_save_LIBS
="$LIBS"
7650 LIBS
="-lcom_err $LIBS"
7651 cat > conftest.
$ac_ext <<EOF
7652 #line 7653 "configure"
7653 #include "confdefs.h"
7654 /* Override any gcc2 internal prototype to avoid an error. */
7655 /* We use char because int might match the return type of a gcc2
7656 builtin and then its argument prototype would still apply. */
7663 if { (eval echo configure
:7664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7665 eval "ac_cv_lib_$ac_lib_var=yes"
7667 echo "configure: failed program was:" >&5
7668 cat conftest.
$ac_ext >&5
7670 eval "ac_cv_lib_$ac_lib_var=no"
7673 LIBS
="$ac_save_LIBS"
7676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7677 echo "$ac_t""yes" 1>&6
7678 ac_tr_lib
=HAVE_LIB
`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7679 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7680 cat >> confdefs.h
<<EOF
7681 #define $ac_tr_lib 1
7684 LIBS
="-lcom_err $LIBS"
7687 echo "$ac_t""no" 1>&6
7690 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
7691 echo "configure:7692: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
7692 ac_lib_var
=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7694 echo $ac_n "(cached) $ac_c" 1>&6
7696 ac_save_LIBS
="$LIBS"
7697 LIBS
="-lk5crypto $LIBS"
7698 cat > conftest.
$ac_ext <<EOF
7699 #line 7700 "configure"
7700 #include "confdefs.h"
7701 /* Override any gcc2 internal prototype to avoid an error. */
7702 /* We use char because int might match the return type of a gcc2
7703 builtin and then its argument prototype would still apply. */
7704 char mit_des_cbc_encrypt();
7707 mit_des_cbc_encrypt()
7710 if { (eval echo configure
:7711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7712 eval "ac_cv_lib_$ac_lib_var=yes"
7714 echo "configure: failed program was:" >&5
7715 cat conftest.
$ac_ext >&5
7717 eval "ac_cv_lib_$ac_lib_var=no"
7720 LIBS
="$ac_save_LIBS"
7723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7724 echo "$ac_t""yes" 1>&6
7725 ac_tr_lib
=HAVE_LIB
`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7726 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7727 cat >> confdefs.h
<<EOF
7728 #define $ac_tr_lib 1
7731 LIBS
="-lk5crypto $LIBS"
7734 echo "$ac_t""no" 1>&6
7737 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
7738 echo "configure:7739: checking for mit_des_cbc_encrypt in -lcrypto" >&5
7739 ac_lib_var
=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7741 echo $ac_n "(cached) $ac_c" 1>&6
7743 ac_save_LIBS
="$LIBS"
7744 LIBS
="-lcrypto $LIBS"
7745 cat > conftest.
$ac_ext <<EOF
7746 #line 7747 "configure"
7747 #include "confdefs.h"
7748 /* Override any gcc2 internal prototype to avoid an error. */
7749 /* We use char because int might match the return type of a gcc2
7750 builtin and then its argument prototype would still apply. */
7751 char mit_des_cbc_encrypt();
7754 mit_des_cbc_encrypt()
7757 if { (eval echo configure
:7758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7759 eval "ac_cv_lib_$ac_lib_var=yes"
7761 echo "configure: failed program was:" >&5
7762 cat conftest.
$ac_ext >&5
7764 eval "ac_cv_lib_$ac_lib_var=no"
7767 LIBS
="$ac_save_LIBS"
7770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7771 echo "$ac_t""yes" 1>&6
7772 ac_tr_lib
=HAVE_LIB
`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7773 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7774 cat >> confdefs.h
<<EOF
7775 #define $ac_tr_lib 1
7778 LIBS
="-lcrypto $LIBS"
7781 echo "$ac_t""no" 1>&6
7784 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
7785 echo "configure:7786: checking for krb5_init_context in -lkrb5" >&5
7786 ac_lib_var
=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
7787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7788 echo $ac_n "(cached) $ac_c" 1>&6
7790 ac_save_LIBS
="$LIBS"
7792 cat > conftest.
$ac_ext <<EOF
7793 #line 7794 "configure"
7794 #include "confdefs.h"
7795 /* Override any gcc2 internal prototype to avoid an error. */
7796 /* We use char because int might match the return type of a gcc2
7797 builtin and then its argument prototype would still apply. */
7798 char krb5_init_context();
7804 if { (eval echo configure
:7805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7806 eval "ac_cv_lib_$ac_lib_var=yes"
7808 echo "configure: failed program was:" >&5
7809 cat conftest.
$ac_ext >&5
7811 eval "ac_cv_lib_$ac_lib_var=no"
7814 LIBS
="$ac_save_LIBS"
7817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7818 echo "$ac_t""yes" 1>&6
7819 ac_tr_lib
=HAVE_LIB
`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7820 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7821 cat >> confdefs.h
<<EOF
7822 #define $ac_tr_lib 1
7828 echo "$ac_t""no" 1>&6
7831 if test "${with_kerberos5+set}" != set; then
7832 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
7833 echo "configure:7834: checking for des_cbc_encrypt in -ldes425" >&5
7834 ac_lib_var
=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7836 echo $ac_n "(cached) $ac_c" 1>&6
7838 ac_save_LIBS
="$LIBS"
7839 LIBS
="-ldes425 $LIBS"
7840 cat > conftest.
$ac_ext <<EOF
7841 #line 7842 "configure"
7842 #include "confdefs.h"
7843 /* Override any gcc2 internal prototype to avoid an error. */
7844 /* We use char because int might match the return type of a gcc2
7845 builtin and then its argument prototype would still apply. */
7846 char des_cbc_encrypt();
7852 if { (eval echo configure
:7853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7854 eval "ac_cv_lib_$ac_lib_var=yes"
7856 echo "configure: failed program was:" >&5
7857 cat conftest.
$ac_ext >&5
7859 eval "ac_cv_lib_$ac_lib_var=no"
7862 LIBS
="$ac_save_LIBS"
7865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7866 echo "$ac_t""yes" 1>&6
7867 ac_tr_lib
=HAVE_LIB
`echo des425 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7868 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7869 cat >> confdefs.h
<<EOF
7870 #define $ac_tr_lib 1
7873 LIBS
="-ldes425 $LIBS"
7876 echo "$ac_t""no" 1>&6
7877 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
7878 echo "configure:7879: checking for des_cbc_encrypt in -ldes" >&5
7879 ac_lib_var
=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7880 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7881 echo $ac_n "(cached) $ac_c" 1>&6
7883 ac_save_LIBS
="$LIBS"
7885 cat > conftest.
$ac_ext <<EOF
7886 #line 7887 "configure"
7887 #include "confdefs.h"
7888 /* Override any gcc2 internal prototype to avoid an error. */
7889 /* We use char because int might match the return type of a gcc2
7890 builtin and then its argument prototype would still apply. */
7891 char des_cbc_encrypt();
7897 if { (eval echo configure
:7898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7899 eval "ac_cv_lib_$ac_lib_var=yes"
7901 echo "configure: failed program was:" >&5
7902 cat conftest.
$ac_ext >&5
7904 eval "ac_cv_lib_$ac_lib_var=no"
7907 LIBS
="$ac_save_LIBS"
7910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7911 echo "$ac_t""yes" 1>&6
7912 ac_tr_lib
=HAVE_LIB
`echo des | sed -e 's/^a-zA-Z0-9_/_/g' \
7913 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7914 cat >> confdefs.h
<<EOF
7915 #define $ac_tr_lib 1
7921 echo "$ac_t""no" 1>&6
7926 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
7927 echo "configure:7928: checking for krb_get_cred in -lkrb4" >&5
7928 ac_lib_var
=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
7929 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7930 echo $ac_n "(cached) $ac_c" 1>&6
7932 ac_save_LIBS
="$LIBS"
7934 cat > conftest.
$ac_ext <<EOF
7935 #line 7936 "configure"
7936 #include "confdefs.h"
7937 /* Override any gcc2 internal prototype to avoid an error. */
7938 /* We use char because int might match the return type of a gcc2
7939 builtin and then its argument prototype would still apply. */
7940 char krb_get_cred();
7946 if { (eval echo configure
:7947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7948 eval "ac_cv_lib_$ac_lib_var=yes"
7950 echo "configure: failed program was:" >&5
7951 cat conftest.
$ac_ext >&5
7953 eval "ac_cv_lib_$ac_lib_var=no"
7956 LIBS
="$ac_save_LIBS"
7959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7960 echo "$ac_t""yes" 1>&6
7961 ac_tr_lib
=HAVE_LIB
`echo krb4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7962 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7963 cat >> confdefs.h
<<EOF
7964 #define $ac_tr_lib 1
7970 echo "$ac_t""no" 1>&6
7971 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
7972 echo "configure:7973: checking for krb_get_cred in -lkrb" >&5
7973 ac_lib_var
=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
7974 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7975 echo $ac_n "(cached) $ac_c" 1>&6
7977 ac_save_LIBS
="$LIBS"
7979 cat > conftest.
$ac_ext <<EOF
7980 #line 7981 "configure"
7981 #include "confdefs.h"
7982 /* Override any gcc2 internal prototype to avoid an error. */
7983 /* We use char because int might match the return type of a gcc2
7984 builtin and then its argument prototype would still apply. */
7985 char krb_get_cred();
7991 if { (eval echo configure
:7992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7993 eval "ac_cv_lib_$ac_lib_var=yes"
7995 echo "configure: failed program was:" >&5
7996 cat conftest.
$ac_ext >&5
7998 eval "ac_cv_lib_$ac_lib_var=no"
8001 LIBS
="$ac_save_LIBS"
8004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8005 echo "$ac_t""yes" 1>&6
8006 ac_tr_lib
=HAVE_LIB
`echo krb | sed -e 's/^a-zA-Z0-9_/_/g' \
8007 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8008 cat >> confdefs.h
<<EOF
8009 #define $ac_tr_lib 1
8015 echo "$ac_t""no" 1>&6
8022 if test "${with_kerberos5+set}" = set; then
8023 for ac_hdr
in krb5.h
8025 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8027 echo "configure:8028: checking for $ac_hdr" >&5
8028 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8029 echo $ac_n "(cached) $ac_c" 1>&6
8031 cat > conftest.
$ac_ext <<EOF
8032 #line 8033 "configure"
8033 #include "confdefs.h"
8036 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8037 { (eval echo configure
:8038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8038 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8039 if test -z "$ac_err"; then
8041 eval "ac_cv_header_$ac_safe=yes"
8044 echo "configure: failed program was:" >&5
8045 cat conftest.
$ac_ext >&5
8047 eval "ac_cv_header_$ac_safe=no"
8051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8052 echo "$ac_t""yes" 1>&6
8053 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8054 cat >> confdefs.h
<<EOF
8055 #define $ac_tr_hdr 1
8059 echo "$ac_t""no" 1>&6
8066 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8067 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8068 echo "configure:8069: checking for $ac_hdr" >&5
8069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8070 echo $ac_n "(cached) $ac_c" 1>&6
8072 cat > conftest.
$ac_ext <<EOF
8073 #line 8074 "configure"
8074 #include "confdefs.h"
8077 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8078 { (eval echo configure
:8079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8079 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8080 if test -z "$ac_err"; then
8082 eval "ac_cv_header_$ac_safe=yes"
8085 echo "configure: failed program was:" >&5
8086 cat conftest.
$ac_ext >&5
8088 eval "ac_cv_header_$ac_safe=no"
8092 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8093 echo "$ac_t""yes" 1>&6
8094 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8095 cat >> confdefs.h
<<EOF
8096 #define $ac_tr_hdr 1
8100 echo "$ac_t""no" 1>&6
8101 for ac_hdr
in kerberosIV
/des.h
8103 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8104 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8105 echo "configure:8106: checking for $ac_hdr" >&5
8106 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8107 echo $ac_n "(cached) $ac_c" 1>&6
8109 cat > conftest.
$ac_ext <<EOF
8110 #line 8111 "configure"
8111 #include "confdefs.h"
8114 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8115 { (eval echo configure
:8116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8116 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8117 if test -z "$ac_err"; then
8119 eval "ac_cv_header_$ac_safe=yes"
8122 echo "configure: failed program was:" >&5
8123 cat conftest.
$ac_ext >&5
8125 eval "ac_cv_header_$ac_safe=no"
8129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8130 echo "$ac_t""yes" 1>&6
8131 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8132 cat >> confdefs.h
<<EOF
8133 #define $ac_tr_hdr 1
8137 echo "$ac_t""no" 1>&6
8138 for ac_hdr
in kerberos
/des.h
8140 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8141 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8142 echo "configure:8143: checking for $ac_hdr" >&5
8143 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8144 echo $ac_n "(cached) $ac_c" 1>&6
8146 cat > conftest.
$ac_ext <<EOF
8147 #line 8148 "configure"
8148 #include "confdefs.h"
8151 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8152 { (eval echo configure
:8153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8153 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8154 if test -z "$ac_err"; then
8156 eval "ac_cv_header_$ac_safe=yes"
8159 echo "configure: failed program was:" >&5
8160 cat conftest.
$ac_ext >&5
8162 eval "ac_cv_header_$ac_safe=no"
8166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8167 echo "$ac_t""yes" 1>&6
8168 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8169 cat >> confdefs.h
<<EOF
8170 #define $ac_tr_hdr 1
8174 echo "$ac_t""no" 1>&6
8186 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8187 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8188 echo "configure:8189: checking for $ac_hdr" >&5
8189 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8190 echo $ac_n "(cached) $ac_c" 1>&6
8192 cat > conftest.
$ac_ext <<EOF
8193 #line 8194 "configure"
8194 #include "confdefs.h"
8197 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8198 { (eval echo configure
:8199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8199 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8200 if test -z "$ac_err"; then
8202 eval "ac_cv_header_$ac_safe=yes"
8205 echo "configure: failed program was:" >&5
8206 cat conftest.
$ac_ext >&5
8208 eval "ac_cv_header_$ac_safe=no"
8212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8213 echo "$ac_t""yes" 1>&6
8214 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8215 cat >> confdefs.h
<<EOF
8216 #define $ac_tr_hdr 1
8220 echo "$ac_t""no" 1>&6
8221 for ac_hdr
in kerberosIV
/krb.h
8223 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8225 echo "configure:8226: checking for $ac_hdr" >&5
8226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8227 echo $ac_n "(cached) $ac_c" 1>&6
8229 cat > conftest.
$ac_ext <<EOF
8230 #line 8231 "configure"
8231 #include "confdefs.h"
8234 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8235 { (eval echo configure
:8236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8236 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8237 if test -z "$ac_err"; then
8239 eval "ac_cv_header_$ac_safe=yes"
8242 echo "configure: failed program was:" >&5
8243 cat conftest.
$ac_ext >&5
8245 eval "ac_cv_header_$ac_safe=no"
8249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8250 echo "$ac_t""yes" 1>&6
8251 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8252 cat >> confdefs.h
<<EOF
8253 #define $ac_tr_hdr 1
8257 echo "$ac_t""no" 1>&6
8258 for ac_hdr
in kerberos
/krb.h
8260 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8261 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8262 echo "configure:8263: checking for $ac_hdr" >&5
8263 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8264 echo $ac_n "(cached) $ac_c" 1>&6
8266 cat > conftest.
$ac_ext <<EOF
8267 #line 8268 "configure"
8268 #include "confdefs.h"
8271 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8272 { (eval echo configure
:8273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8273 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8274 if test -z "$ac_err"; then
8276 eval "ac_cv_header_$ac_safe=yes"
8279 echo "configure: failed program was:" >&5
8280 cat conftest.
$ac_ext >&5
8282 eval "ac_cv_header_$ac_safe=no"
8286 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8287 echo "$ac_t""yes" 1>&6
8288 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8289 cat >> confdefs.h
<<EOF
8290 #define $ac_tr_hdr 1
8294 echo "$ac_t""no" 1>&6
8305 for ac_hdr
in com_err.h
8307 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8308 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8309 echo "configure:8310: checking for $ac_hdr" >&5
8310 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8311 echo $ac_n "(cached) $ac_c" 1>&6
8313 cat > conftest.
$ac_ext <<EOF
8314 #line 8315 "configure"
8315 #include "confdefs.h"
8318 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8319 { (eval echo configure
:8320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8320 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8321 if test -z "$ac_err"; then
8323 eval "ac_cv_header_$ac_safe=yes"
8326 echo "configure: failed program was:" >&5
8327 cat conftest.
$ac_ext >&5
8329 eval "ac_cv_header_$ac_safe=no"
8333 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8334 echo "$ac_t""yes" 1>&6
8335 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8336 cat >> confdefs.h
<<EOF
8337 #define $ac_tr_hdr 1
8341 echo "$ac_t""no" 1>&6
8347 # Solaris requires -lintl if you want strerror (which calls dgettext)
8348 # to return localized messages.
8349 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
8350 echo "configure:8351: checking for dgettext in -lintl" >&5
8351 ac_lib_var
=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
8352 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8353 echo $ac_n "(cached) $ac_c" 1>&6
8355 ac_save_LIBS
="$LIBS"
8357 cat > conftest.
$ac_ext <<EOF
8358 #line 8359 "configure"
8359 #include "confdefs.h"
8360 /* Override any gcc2 internal prototype to avoid an error. */
8361 /* We use char because int might match the return type of a gcc2
8362 builtin and then its argument prototype would still apply. */
8369 if { (eval echo configure
:8370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8371 eval "ac_cv_lib_$ac_lib_var=yes"
8373 echo "configure: failed program was:" >&5
8374 cat conftest.
$ac_ext >&5
8376 eval "ac_cv_lib_$ac_lib_var=no"
8379 LIBS
="$ac_save_LIBS"
8382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8383 echo "$ac_t""yes" 1>&6
8384 ac_tr_lib
=HAVE_LIB
`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8385 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8386 cat >> confdefs.h
<<EOF
8387 #define $ac_tr_lib 1
8393 echo "$ac_t""no" 1>&6
8397 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
8398 echo "configure:8399: checking whether localtime caches TZ" >&5
8399 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
8400 echo $ac_n "(cached) $ac_c" 1>&6
8402 if test x
$ac_cv_func_tzset = xyes
; then
8403 if test "$cross_compiling" = yes; then
8404 # If we have tzset, assume the worst when cross-compiling.
8405 emacs_cv_localtime_cache
=yes
8407 cat > conftest.
$ac_ext <<EOF
8408 #line 8409 "configure"
8409 #include "confdefs.h"
8411 extern char **environ;
8415 for (to = from = environ; (*to = *from); from++)
8416 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
8419 char TZ_GMT0[] = "TZ=GMT0";
8420 char TZ_PST8[] = "TZ=PST8";
8423 time_t now = time ((time_t *) 0);
8424 int hour_GMT0, hour_unset;
8425 if (putenv (TZ_GMT0) != 0)
8427 hour_GMT0 = localtime (&now)->tm_hour;
8429 hour_unset = localtime (&now)->tm_hour;
8430 if (putenv (TZ_PST8) != 0)
8432 if (localtime (&now)->tm_hour == hour_GMT0)
8435 if (localtime (&now)->tm_hour != hour_unset)
8440 if { (eval echo configure
:8441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8442 emacs_cv_localtime_cache
=no
8444 echo "configure: failed program was:" >&5
8445 cat conftest.
$ac_ext >&5
8447 emacs_cv_localtime_cache
=yes
8453 # If we lack tzset, report that localtime does not cache TZ,
8454 # since we can't invalidate the cache if we don't have tzset.
8455 emacs_cv_localtime_cache
=no
8458 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
8459 if test $emacs_cv_localtime_cache = yes; then
8460 cat >> confdefs.h
<<\EOF
8461 #define LOCALTIME_CACHE 1
8466 if test "x$HAVE_TIMEVAL" = xyes
; then
8467 for ac_func
in gettimeofday
8469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8470 echo "configure:8471: checking for $ac_func" >&5
8471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8472 echo $ac_n "(cached) $ac_c" 1>&6
8474 cat > conftest.
$ac_ext <<EOF
8475 #line 8476 "configure"
8476 #include "confdefs.h"
8477 /* System header to define __stub macros and hopefully few prototypes,
8478 which can conflict with char $ac_func(); below. */
8480 /* Override any gcc2 internal prototype to avoid an error. */
8481 /* We use char because int might match the return type of a gcc2
8482 builtin and then its argument prototype would still apply. */
8487 /* The GNU C library defines this for functions which it implements
8488 to always fail with ENOSYS. Some functions are actually named
8489 something starting with __ and the normal name is an alias. */
8490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8498 if { (eval echo configure
:8499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8500 eval "ac_cv_func_$ac_func=yes"
8502 echo "configure: failed program was:" >&5
8503 cat conftest.
$ac_ext >&5
8505 eval "ac_cv_func_$ac_func=no"
8510 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8511 echo "$ac_t""yes" 1>&6
8512 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8513 cat >> confdefs.h
<<EOF
8514 #define $ac_tr_func 1
8518 echo "$ac_t""no" 1>&6
8522 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
8523 echo "configure:8524: checking whether gettimeofday can accept two arguments" >&5
8524 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
8525 echo $ac_n "(cached) $ac_c" 1>&6
8527 cat > conftest.
$ac_ext <<EOF
8528 #line 8529 "configure"
8529 #include "confdefs.h"
8531 #ifdef TIME_WITH_SYS_TIME
8532 #include <sys/time.h>
8535 #ifdef HAVE_SYS_TIME_H
8536 #include <sys/time.h>
8542 struct timeval time;
8543 gettimeofday (&time, 0);
8546 if { (eval echo configure
:8547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8548 emacs_cv_gettimeofday_two_arguments
=yes
8550 echo "configure: failed program was:" >&5
8551 cat conftest.
$ac_ext >&5
8553 emacs_cv_gettimeofday_two_arguments
=no
8558 echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6
8559 if test $emacs_cv_gettimeofday_two_arguments = no
; then
8560 cat >> confdefs.h
<<\EOF
8561 #define GETTIMEOFDAY_ONE_ARGUMENT 1
8567 if test "$ac_cv_func_gettimeofday" = yes; then
8568 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6
8569 echo "configure:8570: checking for struct timezone" >&5
8570 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then
8571 echo $ac_n "(cached) $ac_c" 1>&6
8573 cat > conftest.
$ac_ext <<EOF
8574 #line 8575 "configure"
8575 #include "confdefs.h"
8576 #include <sys/time.h>
8581 if { (eval echo configure
:8582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8583 if test "$cross_compiling" = yes; then
8584 emacs_cv_struct_timezone
=yes
8586 cat > conftest.
$ac_ext <<EOF
8587 #line 8588 "configure"
8588 #include "confdefs.h"
8590 #ifdef TIME_WITH_SYS_TIME
8591 #include <sys/time.h>
8594 #ifdef HAVE_SYS_TIME_H
8595 #include <sys/time.h>
8601 struct timeval time;
8602 struct timezone dummy;
8603 exit (gettimeofday (&time, &dummy));
8606 if { (eval echo configure
:8607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8608 emacs_cv_struct_timezone
=yes
8610 echo "configure: failed program was:" >&5
8611 cat conftest.
$ac_ext >&5
8613 emacs_cv_struct_timezone
=no
8619 echo "configure: failed program was:" >&5
8620 cat conftest.
$ac_ext >&5
8622 emacs_cv_struct_timezone
=no
8627 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6
8631 echo $ac_n "checking for socket""... $ac_c" 1>&6
8632 echo "configure:8633: checking for socket" >&5
8633 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
8634 echo $ac_n "(cached) $ac_c" 1>&6
8636 cat > conftest.
$ac_ext <<EOF
8637 #line 8638 "configure"
8638 #include "confdefs.h"
8639 /* System header to define __stub macros and hopefully few prototypes,
8640 which can conflict with char socket(); below. */
8642 /* Override any gcc2 internal prototype to avoid an error. */
8643 /* We use char because int might match the return type of a gcc2
8644 builtin and then its argument prototype would still apply. */
8649 /* The GNU C library defines this for functions which it implements
8650 to always fail with ENOSYS. Some functions are actually named
8651 something starting with __ and the normal name is an alias. */
8652 #if defined (__stub_socket) || defined (__stub___socket)
8660 if { (eval echo configure
:8661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8662 eval "ac_cv_func_socket=yes"
8664 echo "configure: failed program was:" >&5
8665 cat conftest.
$ac_ext >&5
8667 eval "ac_cv_func_socket=no"
8672 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8673 echo "$ac_t""yes" 1>&6
8676 echo "$ac_t""no" 1>&6
8680 if test $ok_so_far = yes; then
8681 ac_safe
=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8682 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8683 echo "configure:8684: checking for netinet/in.h" >&5
8684 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8685 echo $ac_n "(cached) $ac_c" 1>&6
8687 cat > conftest.
$ac_ext <<EOF
8688 #line 8689 "configure"
8689 #include "confdefs.h"
8690 #include <netinet/in.h>
8692 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8693 { (eval echo configure
:8694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8694 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8695 if test -z "$ac_err"; then
8697 eval "ac_cv_header_$ac_safe=yes"
8700 echo "configure: failed program was:" >&5
8701 cat conftest.
$ac_ext >&5
8703 eval "ac_cv_header_$ac_safe=no"
8707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8708 echo "$ac_t""yes" 1>&6
8711 echo "$ac_t""no" 1>&6
8716 if test $ok_so_far = yes; then
8717 ac_safe
=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8718 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8719 echo "configure:8720: checking for arpa/inet.h" >&5
8720 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8721 echo $ac_n "(cached) $ac_c" 1>&6
8723 cat > conftest.
$ac_ext <<EOF
8724 #line 8725 "configure"
8725 #include "confdefs.h"
8726 #include <arpa/inet.h>
8728 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8729 { (eval echo configure
:8730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8730 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8731 if test -z "$ac_err"; then
8733 eval "ac_cv_header_$ac_safe=yes"
8736 echo "configure: failed program was:" >&5
8737 cat conftest.
$ac_ext >&5
8739 eval "ac_cv_header_$ac_safe=no"
8743 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8744 echo "$ac_t""yes" 1>&6
8747 echo "$ac_t""no" 1>&6
8752 if test $ok_so_far = yes; then
8753 cat >> confdefs.h
<<\EOF
8754 #define HAVE_INET_SOCKETS 1
8759 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
8760 cat >> confdefs.h
<<\EOF
8761 #define HAVE_AIX_SMT_EXP 1
8766 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
8767 echo "configure:8768: checking whether system supports dynamic ptys" >&5
8768 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
8769 echo "$ac_t""yes" 1>&6
8770 cat >> confdefs.h
<<\EOF
8771 #define HAVE_DEV_PTMX 1
8775 echo "$ac_t""no" 1>&6
8778 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8779 echo "configure:8780: checking for pid_t" >&5
8780 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8781 echo $ac_n "(cached) $ac_c" 1>&6
8783 cat > conftest.
$ac_ext <<EOF
8784 #line 8785 "configure"
8785 #include "confdefs.h"
8786 #include <sys/types.h>
8792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8793 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
8795 ac_cv_type_pid_t
=yes
8803 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8804 if test $ac_cv_type_pid_t = no
; then
8805 cat >> confdefs.h
<<\EOF
8811 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
8812 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
8813 echo "configure:8814: checking for vfork.h" >&5
8814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8815 echo $ac_n "(cached) $ac_c" 1>&6
8817 cat > conftest.
$ac_ext <<EOF
8818 #line 8819 "configure"
8819 #include "confdefs.h"
8822 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8823 { (eval echo configure
:8824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8824 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8825 if test -z "$ac_err"; then
8827 eval "ac_cv_header_$ac_safe=yes"
8830 echo "configure: failed program was:" >&5
8831 cat conftest.
$ac_ext >&5
8833 eval "ac_cv_header_$ac_safe=no"
8837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8838 echo "$ac_t""yes" 1>&6
8839 cat >> confdefs.h
<<\EOF
8840 #define HAVE_VFORK_H 1
8844 echo "$ac_t""no" 1>&6
8847 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8848 echo "configure:8849: checking for working vfork" >&5
8849 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
8850 echo $ac_n "(cached) $ac_c" 1>&6
8852 if test "$cross_compiling" = yes; then
8853 echo $ac_n "checking for vfork""... $ac_c" 1>&6
8854 echo "configure:8855: checking for vfork" >&5
8855 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
8856 echo $ac_n "(cached) $ac_c" 1>&6
8858 cat > conftest.
$ac_ext <<EOF
8859 #line 8860 "configure"
8860 #include "confdefs.h"
8861 /* System header to define __stub macros and hopefully few prototypes,
8862 which can conflict with char vfork(); below. */
8864 /* Override any gcc2 internal prototype to avoid an error. */
8865 /* We use char because int might match the return type of a gcc2
8866 builtin and then its argument prototype would still apply. */
8871 /* The GNU C library defines this for functions which it implements
8872 to always fail with ENOSYS. Some functions are actually named
8873 something starting with __ and the normal name is an alias. */
8874 #if defined (__stub_vfork) || defined (__stub___vfork)
8882 if { (eval echo configure
:8883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8884 eval "ac_cv_func_vfork=yes"
8886 echo "configure: failed program was:" >&5
8887 cat conftest.
$ac_ext >&5
8889 eval "ac_cv_func_vfork=no"
8894 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
8895 echo "$ac_t""yes" 1>&6
8898 echo "$ac_t""no" 1>&6
8901 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8903 cat > conftest.
$ac_ext <<EOF
8904 #line 8905 "configure"
8905 #include "confdefs.h"
8906 /* Thanks to Paul Eggert for this test. */
8908 #include <sys/types.h>
8909 #include <sys/stat.h>
8910 #ifdef HAVE_UNISTD_H
8916 /* On some sparc systems, changes by the child to local and incoming
8917 argument registers are propagated back to the parent.
8918 The compiler is told about this with #include <vfork.h>,
8919 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
8920 Test for this by using a static variable whose address
8921 is put into a register that is clobbered by the vfork. */
8924 sparc_address_test (int arg)
8926 sparc_address_test (arg) int arg;
8944 pid_t parent = getpid ();
8947 sparc_address_test ();
8952 /* Here is another test for sparc vfork register problems.
8953 This test uses lots of local variables, at least
8954 as many local variables as main has allocated so far
8955 including compiler temporaries. 4 locals are enough for
8956 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
8957 A buggy compiler should reuse the register of parent
8958 for one of the local variables, since it will think that
8959 parent can't possibly be used any more in this routine.
8960 Assigning to the local variable will thus munge parent
8961 in the parent process. */
8963 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8964 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8965 /* Convince the compiler that p..p7 are live; otherwise, it might
8966 use the same hardware register for all 8 local variables. */
8967 if (p != p1 || p != p2 || p != p3 || p != p4
8968 || p != p5 || p != p6 || p != p7)
8971 /* On some systems (e.g. IRIX 3.3),
8972 vfork doesn't separate parent from child file descriptors.
8973 If the child closes a descriptor before it execs or exits,
8974 this munges the parent's descriptor as well.
8975 Test for this by closing stdout in the child. */
8976 _exit(close(fileno(stdout)) != 0);
8981 while (wait(&status) != child)
8984 /* Was there some problem with vforking? */
8987 /* Did the child fail? (This shouldn't happen.) */
8990 /* Did the vfork/compiler bug occur? */
8991 || parent != getpid()
8993 /* Did the file descriptor bug occur? */
8994 || fstat(fileno(stdout), &st) != 0
8999 if { (eval echo configure
:9000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9001 ac_cv_func_vfork_works
=yes
9003 echo "configure: failed program was:" >&5
9004 cat conftest.
$ac_ext >&5
9006 ac_cv_func_vfork_works
=no
9013 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
9014 if test $ac_cv_func_vfork_works = no
; then
9015 cat >> confdefs.h
<<\EOF
9022 # Fixme: This should be replaced when we have autoconf 2.14.
9023 echo $ac_n "checking for size_t""... $ac_c" 1>&6
9024 echo "configure:9025: checking for size_t" >&5
9025 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9026 echo $ac_n "(cached) $ac_c" 1>&6
9028 cat > conftest.
$ac_ext <<EOF
9029 #line 9030 "configure"
9030 #include "confdefs.h"
9031 #include <sys/types.h>
9037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9038 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
9040 ac_cv_type_size_t
=yes
9043 ac_cv_type_size_t
=no
9048 echo "$ac_t""$ac_cv_type_size_t" 1>&6
9049 if test $ac_cv_type_size_t = no
; then
9050 cat >> confdefs.h
<<\EOF
9051 #define size_t unsigned
9057 # Set up the CFLAGS for real compilation, so we can substitute it.
9058 CFLAGS
="$REAL_CFLAGS"
9059 CPPFLAGS
="$REAL_CPPFLAGS"
9061 #### Find out which version of Emacs this is.
9062 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
9063 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
9064 if test x
"${version}" = x
; then
9065 { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; }
9068 ### Specify what sort of things we'll be editing into Makefile and config.h.
9069 ### Use configuration here uncanonicalized to avoid exceeding size limits.
9101 cat >> confdefs.h
<<EOF
9102 #define EMACS_CONFIGURATION "${canonical}"
9105 cat >> confdefs.h
<<EOF
9106 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
9109 cat >> confdefs.h
<<EOF
9110 #define config_machfile "${machfile}"
9113 cat >> confdefs.h
<<EOF
9114 #define config_opsysfile "${opsysfile}"
9117 cat >> confdefs.h
<<EOF
9118 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
9121 cat >> confdefs.h
<<EOF
9122 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
9125 cat >> confdefs.h
<<EOF
9126 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
9129 cat >> confdefs.h
<<EOF
9130 #define UNEXEC_SRC ${UNEXEC_SRC}
9134 if test "${HAVE_X_WINDOWS}" = "yes" ; then
9135 cat >> confdefs.h
<<\EOF
9136 #define HAVE_X_WINDOWS 1
9140 if test "${USE_X_TOOLKIT}" != "none" ; then
9141 cat >> confdefs.h
<<\EOF
9142 #define USE_X_TOOLKIT 1
9146 if test "${HAVE_X11}" = "yes" ; then
9147 cat >> confdefs.h
<<\EOF
9152 if test "${HAVE_XFREE386}" = "yes" ; then
9153 cat >> confdefs.h
<<\EOF
9154 #define HAVE_XFREE386 1
9158 if test "${HAVE_MENUS}" = "yes" ; then
9159 cat >> confdefs.h
<<\EOF
9160 #define HAVE_MENUS 1
9164 if test "${GNU_MALLOC}" = "yes" ; then
9165 cat >> confdefs.h
<<\EOF
9166 #define GNU_MALLOC 1
9170 if test "${REL_ALLOC}" = "yes" ; then
9171 cat >> confdefs.h
<<\EOF
9177 #### Report on what we decided to do.
9179 Configured for \`${canonical}'.
9181 Where should the build process find the source code? ${srcdir}
9182 What operating system and machine description files should Emacs use?
9183 \`${opsysfile}' and \`${machfile}'
9184 What compiler should emacs be built with? ${CC} ${CFLAGS}
9185 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
9186 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
9187 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
9188 What window system should Emacs use? ${window_system}
9189 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
9191 if test -n "${x_includes}"; then
9192 echo " Where do we find X Windows header files? ${x_includes}"
9194 echo " Where do we find X Windows header files? Standard dirs"
9196 if test -n "${x_libraries}"; then
9197 echo " Where do we find X Windows libraries? ${x_libraries}"
9199 echo " Where do we find X Windows libraries? Standard dirs"
9202 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
9203 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
9204 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
9205 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
9206 echo " Does Emacs use -lungif? ${HAVE_GIF}"
9207 echo " Does Emacs use -lpng? ${HAVE_PNG}"
9208 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
9211 # Remove any trailing slashes in these variables.
9212 test "${prefix}" != NONE
&&
9213 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
9214 test "${exec_prefix}" != NONE
&&
9215 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
9217 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
9218 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
9219 ## from Makefile.c can correctly provide the arg `-traditional' to the
9222 cat > conftest.
$ac_ext <<EOF
9223 #line 9224 "configure"
9224 #include "confdefs.h"
9227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9228 egrep "yes..yes" >/dev
/null
2>&1; then
9230 CPP_NEED_TRADITIONAL
=no
9233 CPP_NEED_TRADITIONAL
=yes
9239 cat > confcache
<<\EOF
9240 # This file is a shell script that caches the results of configure
9241 # tests run on this system so they can be shared between configure
9242 # scripts and configure runs. It is not useful on other systems.
9243 # If it contains results you don't want to keep, you may remove or edit it.
9245 # By default, configure uses ./config.cache as the cache file,
9246 # creating it if it does not exist already. You can give configure
9247 # the --cache-file=FILE option to use a different cache file; that is
9248 # what configure does when it calls configure scripts in
9249 # subdirectories, so they share the cache.
9250 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9251 # config.status only pays attention to the cache file if you give it the
9252 # --recheck option to rerun configure.
9255 # The following way of writing the cache mishandles newlines in values,
9256 # but we know of no workaround that is simple, portable, and efficient.
9257 # So, don't put newlines in cache variables' values.
9258 # Ultrix sh set writes to stderr and can't be redirected directly,
9259 # and sets the high bit in the cache file unless we assign to the vars.
9261 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9263 # `set' does not quote correctly, so add quotes (double-quote substitution
9264 # turns \\\\ into \\, and sed turns \\ into \).
9266 -e "s/'/'\\\\''/g" \
9267 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9270 # `set' quotes correctly as required by POSIX, so do not add quotes.
9271 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9274 if cmp -s $cache_file confcache
; then
9277 if test -w $cache_file; then
9278 echo "updating cache $cache_file"
9279 cat confcache
> $cache_file
9281 echo "not updating unwritable cache $cache_file"
9286 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9288 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9289 # Let make expand exec_prefix.
9290 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9292 # Any assignment to VPATH causes Sun make to only execute
9293 # the first set of double-colon rules, so remove it if not needed.
9294 # If there is a colon in the path, we need to keep it.
9295 if test "x$srcdir" = x.
; then
9296 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9299 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9301 DEFS
=-DHAVE_CONFIG_H
9303 # Without the "./", some shells look in PATH for config.status.
9304 : ${CONFIG_STATUS=./config.status}
9306 echo creating
$CONFIG_STATUS
9307 rm -f $CONFIG_STATUS
9308 cat > $CONFIG_STATUS <<EOF
9310 # Generated automatically by configure.
9311 # Run this file to recreate the current configuration.
9312 # This directory was configured as follows,
9313 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9315 # $0 $ac_configure_args
9317 # Compiler output produced by configure, useful for debugging
9318 # configure, is in ./config.log if it exists.
9320 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9323 case "\$ac_option" in
9324 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9325 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9326 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9327 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9328 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9330 -help | --help | --hel | --he | --h)
9331 echo "\$ac_cs_usage"; exit 0 ;;
9332 *) echo "\$ac_cs_usage"; exit 1 ;;
9336 ac_given_srcdir=$srcdir
9337 ac_given_INSTALL="$INSTALL"
9339 trap 'rm -fr `echo "Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
9340 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
9341 lisp/Makefile leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9343 cat >> $CONFIG_STATUS <<EOF
9345 # Protect against being on the right side of a sed subst in config.status.
9346 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9347 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9351 s%@CFLAGS@%$CFLAGS%g
9352 s%@CPPFLAGS@%$CPPFLAGS%g
9353 s%@CXXFLAGS@%$CXXFLAGS%g
9354 s%@FFLAGS@%$FFLAGS%g
9356 s%@LDFLAGS@%$LDFLAGS%g
9358 s%@exec_prefix@%$exec_prefix%g
9359 s%@prefix@%$prefix%g
9360 s%@program_transform_name@%$program_transform_name%g
9361 s%@bindir@%$bindir%g
9362 s%@sbindir@%$sbindir%g
9363 s%@libexecdir@%$libexecdir%g
9364 s%@datadir@%$datadir%g
9365 s%@sysconfdir@%$sysconfdir%g
9366 s%@sharedstatedir@%$sharedstatedir%g
9367 s%@localstatedir@%$localstatedir%g
9368 s%@libdir@%$libdir%g
9369 s%@includedir@%$includedir%g
9370 s%@oldincludedir@%$oldincludedir%g
9371 s%@infodir@%$infodir%g
9372 s%@mandir@%$mandir%g
9374 s%@host_alias@%$host_alias%g
9375 s%@host_cpu@%$host_cpu%g
9376 s%@host_vendor@%$host_vendor%g
9377 s%@host_os@%$host_os%g
9381 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9382 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9383 s%@INSTALL_DATA@%$INSTALL_DATA%g
9385 s%@RANLIB@%$RANLIB%g
9386 s%@LIBSOUND@%$LIBSOUND%g
9387 s%@SET_MAKE@%$SET_MAKE%g
9388 s%@ALLOCA@%$ALLOCA%g
9389 s%@liblockfile@%$liblockfile%g
9390 s%@LIBOBJS@%$LIBOBJS%g
9391 s%@NEED_SETGID@%$NEED_SETGID%g
9392 s%@KMEM_GROUP@%$KMEM_GROUP%g
9393 s%@version@%$version%g
9394 s%@configuration@%$configuration%g
9395 s%@canonical@%$canonical%g
9396 s%@srcdir@%$srcdir%g
9397 s%@lispdir@%$lispdir%g
9398 s%@locallisppath@%$locallisppath%g
9399 s%@lisppath@%$lisppath%g
9400 s%@x_default_search_path@%$x_default_search_path%g
9401 s%@etcdir@%$etcdir%g
9402 s%@archlibdir@%$archlibdir%g
9403 s%@docdir@%$docdir%g
9404 s%@bitmapdir@%$bitmapdir%g
9405 s%@c_switch_system@%$c_switch_system%g
9406 s%@c_switch_machine@%$c_switch_machine%g
9407 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g
9408 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g
9409 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g
9410 s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g
9411 s%@machfile@%$machfile%g
9412 s%@opsysfile@%$opsysfile%g
9413 s%@GETLOADAVG_LIBS@%$GETLOADAVG_LIBS%g
9418 cat >> $CONFIG_STATUS <<\EOF
9420 # Split the substitutions into bite-sized pieces for seds with
9421 # small command number limits, like on Digital OSF/1 and HP-UX.
9422 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9423 ac_file
=1 # Number of current file.
9424 ac_beg
=1 # First line for current file.
9425 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9428 while $ac_more_lines; do
9429 if test $ac_beg -gt 1; then
9430 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9432 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9434 if test ! -s conftest.s
$ac_file; then
9436 rm -f conftest.s
$ac_file
9438 if test -z "$ac_sed_cmds"; then
9439 ac_sed_cmds
="sed -f conftest.s$ac_file"
9441 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9443 ac_file
=`expr $ac_file + 1`
9445 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9448 if test -z "$ac_sed_cmds"; then
9453 cat >> $CONFIG_STATUS <<EOF
9455 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
9456 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
9457 lisp/Makefile leim/Makefile"}
9459 cat >> $CONFIG_STATUS <<\EOF
9460 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9461 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9463 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9464 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9465 *) ac_file_in
="${ac_file}.in" ;;
9468 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9470 # Remove last slash and all that follows it. Not all systems have dirname.
9471 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9472 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9473 # The file is in a subdirectory.
9474 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9475 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9476 # A "../" for each directory in $ac_dir_suffix.
9477 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9479 ac_dir_suffix
= ac_dots
=
9482 case "$ac_given_srcdir" in
9484 if test -z "$ac_dots"; then top_srcdir
=.
9485 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9486 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9488 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9489 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9492 case "$ac_given_INSTALL" in
9493 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
9494 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
9497 echo creating
"$ac_file"
9499 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9501 *Makefile
*) ac_comsub
="1i\\
9502 # $configure_input" ;;
9506 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9508 s%@configure_input@%$configure_input%g
9509 s%@srcdir@%$srcdir%g
9510 s%@top_srcdir@%$top_srcdir%g
9511 s%@INSTALL@%$INSTALL%g
9512 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9516 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9517 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9519 # ac_d sets the value in "#define NAME VALUE" lines.
9520 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9521 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9524 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9525 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9526 ac_uB
='\([ ]\)%\1#\2define\3'
9529 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9530 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9531 ac_eB
='$%\1#\2define\3'
9535 if test "${CONFIG_HEADERS+set}" != set; then
9537 cat >> $CONFIG_STATUS <<EOF
9538 CONFIG_HEADERS="src/config.h:src/config.in"
9540 cat >> $CONFIG_STATUS <<\EOF
9542 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9543 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9545 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9546 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9547 *) ac_file_in
="${ac_file}.in" ;;
9550 echo creating
$ac_file
9552 rm -f conftest.frag conftest.
in conftest.out
9553 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9554 cat $ac_file_inputs > conftest.
in
9558 # Transform confdefs.h into a sed script conftest.vals that substitutes
9559 # the proper values into config.h.in to produce config.h. And first:
9560 # Protect against being on the right side of a sed subst in config.status.
9561 # Protect against being in an unquoted here document in config.status.
9563 cat > conftest.hdr
<<\EOF
9566 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9570 sed -n -f conftest.hdr confdefs.h > conftest.vals
9573 # This sed command replaces #undef with comments. This is necessary, for
9574 # example, in the case of _POSIX_SOURCE, which is predefined and required
9575 # on some systems where configure will not decide to define it.
9576 cat >> conftest.vals <<\EOF
9577 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9580 # Break up conftest.vals because some shells have a limit on
9581 # the size of here documents, and old seds have small limits too.
9586 ac_lines=`grep -c . conftest.vals
`
9587 # grep -c gives empty output for an empty file on some AIX systems.
9588 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9589 # Write a limited-size here document to conftest.frag.
9590 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9591 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9593 sed -f conftest.frag conftest.in > conftest.out
9595 mv conftest.out conftest.in
9597 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9599 mv conftest.tail conftest.vals
9603 cat >> $CONFIG_STATUS <<\EOF
9604 rm -f conftest.frag conftest.h
9605 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9606 cat conftest.in >> conftest.h
9608 if cmp -s $ac_file conftest.h 2>/dev/null; then
9609 echo "$ac_file is unchanged"
9612 # Remove last slash and all that follows it. Not all systems have dirname.
9613 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9614 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9615 # The file is in a subdirectory.
9616 test ! -d "$ac_dir" && mkdir "$ac_dir"
9619 mv conftest.h $ac_file
9624 cat >> $CONFIG_STATUS <<EOF
9625 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
9627 cat >> $CONFIG_STATUS <<\EOF
9630 ### Make the necessary directories, if they don't exist.
9631 for dir in etc lisp ; do
9632 test -d ${dir} || mkdir ${dir}
9635 # Build src/Makefile from ${srcdir}/src/Makefile.c
9636 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
9637 # This must be done after src/config.h is built, since we rely on that file.
9639 # Now get this: Some word that is part of the ${srcdir} directory name
9640 # or the ${configuration} value might, just might, happen to be an
9641 # identifier like `sun4
' or `i386' or something
, and be predefined by
9642 # the C preprocessor to some helpful value like 1, or maybe the empty
9643 # string. Needless to say consequent macro substitutions are less
9644 # than conducive to the makefile finding the correct directory.
9645 undefs
="`echo $top_srcdir $configuration $canonical |
9646 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
9647 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
9650 echo creating src
/epaths.h
9651 ${MAKE-make} epaths-force
9653 # As of 2000-11-19, newest development versions of GNU cpp preprocess
9654 # `..' to `. .' unless invoked with -traditional
9656 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
9657 CPPFLAGS
="$CPPFLAGS -traditional"
9660 echo creating lib-src
/Makefile
9662 rm -f junk.c junk1.c junk2.c
9663 sed -e '/start of cpp stuff/q' \
9664 < Makefile.c
> junk1.c
9665 sed -e '1,/start of cpp stuff/d'\
9666 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
9667 < Makefile.c
> junk.c
9668 $CPP $undefs -I.
-I$top_srcdir/src
$CPPFLAGS junk.c | \
9669 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
9670 cat junk1.c junk2.c
> Makefile.new
9671 rm -f junk.c junk1.c junk2.c
9672 chmod 444 Makefile.new
9673 mv -f Makefile.new Makefile
9676 echo creating src
/Makefile
9678 rm -f junk.c junk1.c junk2.c
9679 sed -e '/start of cpp stuff/q' \
9680 < Makefile.c
> junk1.c
9681 sed -e '1,/start of cpp stuff/d'\
9682 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
9683 < Makefile.c
> junk.c
9684 $CPP $undefs -I.
-I$top_srcdir/src
$CPPFLAGS junk.c | \
9685 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
9686 cat junk1.c junk2.c
> Makefile.new
9687 rm -f junk.c junk1.c junk2.c
9688 chmod 444 Makefile.new
9689 mv -f Makefile.new Makefile
9692 if test ! -f src
/.gdbinit
&& test -f $top_srcdir/src
/.gdbinit
; then
9693 echo creating src
/.gdbinit
9694 echo source $top_srcdir/src
/.gdbinit
> src
/.gdbinit
9697 # This is how we know whether to re-run configure in certain cases.
9698 touch src
/config.stamp
9703 chmod +x
$CONFIG_STATUS
9704 rm -fr confdefs
* $ac_clean_files
9705 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1