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
3041 echo "$ac_t""$emacs_cv_speed_t" 1>&6
3042 if test $emacs_cv_speed_t = yes; then
3043 cat >> confdefs.h
<<\EOF
3044 #define HAVE_SPEED_T 1
3049 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3050 echo "configure:3051: checking for struct timeval" >&5
3051 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3054 cat > conftest.
$ac_ext <<EOF
3055 #line 3056 "configure"
3056 #include "confdefs.h"
3057 #ifdef TIME_WITH_SYS_TIME
3058 #include <sys/time.h>
3061 #ifdef HAVE_SYS_TIME_H
3062 #include <sys/time.h>
3068 static struct timeval x; x.tv_sec = x.tv_usec;
3071 if { (eval echo configure
:3072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3073 emacs_cv_struct_timeval
=yes
3075 echo "configure: failed program was:" >&5
3076 cat conftest.
$ac_ext >&5
3078 emacs_cv_struct_timeval
=no
3083 echo "$ac_t""$emacs_cv_struct_timeval" 1>&6
3084 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
3085 if test $emacs_cv_struct_timeval = yes; then
3086 cat >> confdefs.h
<<\EOF
3087 #define HAVE_TIMEVAL 1
3092 echo $ac_n "checking for struct exception""... $ac_c" 1>&6
3093 echo "configure:3094: checking for struct exception" >&5
3094 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then
3095 echo $ac_n "(cached) $ac_c" 1>&6
3097 cat > conftest.
$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3102 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
3105 if { (eval echo configure
:3106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3107 emacs_cv_struct_exception
=yes
3109 echo "configure: failed program was:" >&5
3110 cat conftest.
$ac_ext >&5
3112 emacs_cv_struct_exception
=no
3117 echo "$ac_t""$emacs_cv_struct_exception" 1>&6
3118 HAVE_EXCEPTION
=$emacs_cv_struct_exception
3119 if test $emacs_cv_struct_exception != yes; then
3120 cat >> confdefs.h
<<\EOF
3121 #define NO_MATHERR 1
3126 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3127 echo "configure:3128: checking whether struct tm is in sys/time.h or time.h" >&5
3128 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3131 cat > conftest.
$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 #include <sys/types.h>
3137 struct tm *tp; tp->tm_sec;
3140 if { (eval echo configure
:3141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3142 ac_cv_struct_tm
=time.h
3144 echo "configure: failed program was:" >&5
3145 cat conftest.
$ac_ext >&5
3147 ac_cv_struct_tm
=sys
/time.h
3152 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3153 if test $ac_cv_struct_tm = sys
/time.h
; then
3154 cat >> confdefs.h
<<\EOF
3155 #define TM_IN_SYS_TIME 1
3160 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3161 echo "configure:3162: checking for tm_zone in struct tm" >&5
3162 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6
3165 cat > conftest.
$ac_ext <<EOF
3166 #line 3167 "configure"
3167 #include "confdefs.h"
3168 #include <sys/types.h>
3169 #include <$ac_cv_struct_tm>
3171 struct tm tm; tm.tm_zone;
3174 if { (eval echo configure
:3175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3176 ac_cv_struct_tm_zone
=yes
3178 echo "configure: failed program was:" >&5
3179 cat conftest.
$ac_ext >&5
3181 ac_cv_struct_tm_zone
=no
3186 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3187 if test "$ac_cv_struct_tm_zone" = yes; then
3188 cat >> confdefs.h
<<\EOF
3189 #define HAVE_TM_ZONE 1
3193 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3194 echo "configure:3195: checking for tzname" >&5
3195 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3196 echo $ac_n "(cached) $ac_c" 1>&6
3198 cat > conftest.
$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3202 #ifndef tzname /* For SGI. */
3203 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3209 if { (eval echo configure
:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3211 ac_cv_var_tzname
=yes
3213 echo "configure: failed program was:" >&5
3214 cat conftest.
$ac_ext >&5
3221 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3222 if test $ac_cv_var_tzname = yes; then
3223 cat >> confdefs.h
<<\EOF
3224 #define HAVE_TZNAME 1
3230 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
3231 echo "configure:3232: checking for tm_gmtoff in struct tm" >&5
3232 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
3233 echo $ac_n "(cached) $ac_c" 1>&6
3235 cat > conftest.
$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3240 struct tm t; t.tm_gmtoff = 0
3243 if { (eval echo configure
:3244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3245 emacs_cv_tm_gmtoff
=yes
3247 echo "configure: failed program was:" >&5
3248 cat conftest.
$ac_ext >&5
3250 emacs_cv_tm_gmtoff
=no
3255 echo "$ac_t""$emacs_cv_tm_gmtoff" 1>&6
3256 if test $emacs_cv_tm_gmtoff = yes; then
3257 cat >> confdefs.h
<<\EOF
3258 #define HAVE_TM_GMTOFF 1
3264 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3265 echo "configure:3266: checking for ${CC-cc} option to accept ANSI C" >&5
3266 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
3267 echo $ac_n "(cached) $ac_c" 1>&6
3269 ac_cv_prog_cc_stdc
=no
3271 # Don't try gcc -ansi; that turns off useful extensions and
3272 # breaks some systems' header files.
3273 # AIX -qlanglvl=ansi
3274 # Ultrix and OSF/1 -std1
3275 # HP-UX 10.20 and later -Ae
3276 # HP-UX older versions -Aa -D_HPUX_SOURCE
3277 # SVR4 -Xc -D__EXTENSIONS__
3278 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3280 CC
="$ac_save_CC $ac_arg"
3281 cat > conftest.
$ac_ext <<EOF
3282 #line 3283 "configure"
3283 #include "confdefs.h"
3286 #include <sys/types.h>
3287 #include <sys/stat.h>
3288 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3289 struct buf { int x; };
3290 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3291 static char *e (p, i)
3297 static char *f (char * (*g) (char **, int), char **p, ...)
3302 s = g (p, va_arg (v,int));
3306 int test (int i, double x);
3307 struct s1 {int (*f) (int a);};
3308 struct s2 {int (*f) (double a);};
3309 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3313 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3316 if { (eval echo configure
:3317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3318 ac_cv_prog_cc_stdc
="$ac_arg"; break
3320 echo "configure: failed program was:" >&5
3321 cat conftest.
$ac_ext >&5
3329 case "x$ac_cv_prog_cc_stdc" in
3331 echo "$ac_t""none needed" 1>&6 ;;
3333 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
3334 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3337 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
3338 echo "configure:3339: checking for function prototypes" >&5
3339 if test "$ac_cv_prog_cc_stdc" != no
; then
3340 echo "$ac_t""yes" 1>&6
3341 cat >> confdefs.h
<<\EOF
3342 #define PROTOTYPES 1
3346 echo "$ac_t""no" 1>&6
3349 echo $ac_n "checking for working volatile""... $ac_c" 1>&6
3350 echo "configure:3351: checking for working volatile" >&5
3351 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3354 cat > conftest.
$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3364 if { (eval echo configure
:3365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3366 ac_cv_c_volatile
=yes
3368 echo "configure: failed program was:" >&5
3369 cat conftest.
$ac_ext >&5
3376 echo "$ac_t""$ac_cv_c_volatile" 1>&6
3377 if test $ac_cv_c_volatile = no
; then
3378 cat >> confdefs.h
<<\EOF
3384 echo $ac_n "checking for working const""... $ac_c" 1>&6
3385 echo "configure:3386: checking for working const" >&5
3386 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3387 echo $ac_n "(cached) $ac_c" 1>&6
3389 cat > conftest.
$ac_ext <<EOF
3390 #line 3391 "configure"
3391 #include "confdefs.h"
3395 /* Ultrix mips cc rejects this. */
3396 typedef int charset[2]; const charset x;
3397 /* SunOS 4.1.1 cc rejects this. */
3398 char const *const *ccp;
3400 /* NEC SVR4.0.2 mips cc rejects this. */
3401 struct point {int x, y;};
3402 static struct point const zero = {0,0};
3403 /* AIX XL C 1.02.0.0 rejects this.
3404 It does not let you subtract one const X* pointer from another in an arm
3405 of an if-expression whose if-part is not a constant expression */
3406 const char *g = "string";
3407 ccp = &g + (g ? g-g : 0);
3408 /* HPUX 7.0 cc rejects these. */
3411 ccp = (char const *const *) p;
3412 { /* SCO 3.2v4 cc rejects this. */
3414 char const *s = 0 ? (char *) 0 : (char const *) 0;
3418 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3420 const int *foo = &x[0];
3423 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3424 typedef const int *iptr;
3428 { /* AIX XL C 1.02.0.0 rejects this saying
3429 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3430 struct s { int j; const int *ap[3]; };
3431 struct s *b; b->j = 5;
3433 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3439 if { (eval echo configure
:3440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3443 echo "configure: failed program was:" >&5
3444 cat conftest.
$ac_ext >&5
3451 echo "$ac_t""$ac_cv_c_const" 1>&6
3452 if test $ac_cv_c_const = no
; then
3453 cat >> confdefs.h
<<\EOF
3459 echo $ac_n "checking for void * support""... $ac_c" 1>&6
3460 echo "configure:3461: checking for void * support" >&5
3461 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then
3462 echo $ac_n "(cached) $ac_c" 1>&6
3464 cat > conftest.
$ac_ext <<EOF
3465 #line 3466 "configure"
3466 #include "confdefs.h"
3472 if { (eval echo configure
:3473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3474 emacs_cv_void_star
=yes
3476 echo "configure: failed program was:" >&5
3477 cat conftest.
$ac_ext >&5
3479 emacs_cv_void_star
=no
3484 echo "$ac_t""$emacs_cv_void_star" 1>&6
3485 if test $emacs_cv_void_star = yes; then
3486 cat >> confdefs.h
<<\EOF
3487 #define POINTER_TYPE void
3491 cat >> confdefs.h
<<\EOF
3492 #define POINTER_TYPE char
3497 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3498 echo "configure:3499: checking whether ${MAKE-make} sets \${MAKE}" >&5
3499 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
3500 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3501 echo $ac_n "(cached) $ac_c" 1>&6
3503 cat > conftestmake
<<\EOF
3505 @
echo 'ac_maketemp="${MAKE}"'
3507 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3508 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3509 if test -n "$ac_maketemp"; then
3510 eval ac_cv_prog_make_
${ac_make}_set
=yes
3512 eval ac_cv_prog_make_
${ac_make}_set
=no
3516 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3517 echo "$ac_t""yes" 1>&6
3520 echo "$ac_t""no" 1>&6
3521 SET_MAKE
="MAKE=${MAKE-make}"
3525 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3526 echo "configure:3527: checking for long file names" >&5
3527 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3530 ac_cv_sys_long_file_names
=yes
3531 # Test for long file names in all the places we know might matter:
3532 # . the current directory, where building will happen
3533 # $prefix/lib where we will be installing things
3534 # $exec_prefix/lib likewise
3535 # eval it to expand exec_prefix.
3536 # $TMPDIR if set, where it might want to write temporary files
3537 # if $TMPDIR is not set:
3538 # /tmp where it might want to write temporary files
3541 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3542 ac_tmpdirs
="$TMPDIR"
3544 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
3546 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3547 test -d $ac_dir ||
continue
3548 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
3549 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
3550 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
3551 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
3552 if test ! -f $ac_dir/conftest9012345 ||
test "$val" != 1; then
3553 ac_cv_sys_long_file_names
=no
3554 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
3557 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
3561 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
3562 if test $ac_cv_sys_long_file_names = yes; then
3563 cat >> confdefs.h
<<\EOF
3564 #define HAVE_LONG_FILE_NAMES 1
3570 #### Choose a window system.
3572 # If we find X, set shell vars x_includes and x_libraries to the
3573 # paths, otherwise set no_x=yes.
3574 # Uses ac_ vars as temps to allow command line to override cache and checks.
3575 # --without-x overrides everything else, but does not touch the cache.
3576 echo $ac_n "checking for X""... $ac_c" 1>&6
3577 echo "configure:3578: checking for X" >&5
3579 # Check whether --with-x or --without-x was given.
3580 if test "${with_x+set}" = set; then
3585 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3586 if test "x$with_x" = xno
; then
3587 # The user explicitly disabled X.
3590 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3591 # Both variables are already set.
3594 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3597 # One or both of the vars are not set, and there is no cached value.
3598 ac_x_includes
=NO ac_x_libraries
=NO
3600 if mkdir conftestdir
; then
3602 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3603 cat > Imakefile
<<'EOF'
3605 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3607 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3608 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3609 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3610 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3611 for ac_extension
in a so sl
; do
3612 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
3613 test -f $ac_im_libdir/libX11.
$ac_extension; then
3614 ac_im_usrlibdir
=$ac_im_libdir; break
3617 # Screen out bogus values from the imake configuration. They are
3618 # bogus both because they are the default anyway, and because
3619 # using them would break gcc on systems where it needs fixed includes.
3620 case "$ac_im_incroot" in
3622 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
3624 case "$ac_im_usrlibdir" in
3626 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
3633 if test "$ac_x_includes" = NO
; then
3634 # Guess where to find include files, by looking for this one X11 .h file.
3635 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
3637 # First, try using that file with no special directory specified.
3638 cat > conftest.
$ac_ext <<EOF
3639 #line 3640 "configure"
3640 #include "confdefs.h"
3641 #include <$x_direct_test_include>
3643 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3644 { (eval echo configure
:3645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3645 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3646 if test -z "$ac_err"; then
3648 # We can compile using X headers with no special include directory.
3652 echo "configure: failed program was:" >&5
3653 cat conftest.
$ac_ext >&5
3655 # Look for the header file in a standard set of common directories.
3656 # Check X11 before X11Rn because it is often a symlink to the current release.
3659 /usr
/X11R
6/include \
3660 /usr
/X11R
5/include \
3661 /usr
/X11R
4/include \
3664 /usr
/include
/X11R6 \
3665 /usr
/include
/X11R5 \
3666 /usr
/include
/X11R4 \
3668 /usr
/local
/X11
/include \
3669 /usr
/local
/X11R
6/include \
3670 /usr
/local
/X11R
5/include \
3671 /usr
/local
/X11R
4/include \
3673 /usr
/local
/include
/X11 \
3674 /usr
/local
/include
/X11R6 \
3675 /usr
/local
/include
/X11R5 \
3676 /usr
/local
/include
/X11R4 \
3680 /usr
/XFree86
/include
/X11 \
3683 /usr
/local
/include \
3684 /usr
/unsupported
/include \
3685 /usr
/athena
/include \
3686 /usr
/local
/x11r
5/include \
3687 /usr
/lpp
/Xamples
/include \
3689 /usr
/openwin
/include \
3690 /usr
/openwin
/share
/include \
3693 if test -r "$ac_dir/$x_direct_test_include"; then
3694 ac_x_includes
=$ac_dir
3700 fi # $ac_x_includes = NO
3702 if test "$ac_x_libraries" = NO
; then
3703 # Check for the libraries.
3705 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
3706 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
3708 # See if we find them without any special options.
3709 # Don't add to $LIBS permanently.
3710 ac_save_LIBS
="$LIBS"
3711 LIBS
="-l$x_direct_test_library $LIBS"
3712 cat > conftest.
$ac_ext <<EOF
3713 #line 3714 "configure"
3714 #include "confdefs.h"
3717 ${x_direct_test_function}()
3720 if { (eval echo configure
:3721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3722 LIBS
="$ac_save_LIBS"
3723 # We can link X programs with no special library path.
3726 echo "configure: failed program was:" >&5
3727 cat conftest.
$ac_ext >&5
3729 LIBS
="$ac_save_LIBS"
3730 # First see if replacing the include by lib works.
3731 # Check X11 before X11Rn because it is often a symlink to the current release.
3732 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
3743 /usr
/local
/X11
/lib \
3744 /usr
/local
/X11R
6/lib \
3745 /usr
/local
/X11R
5/lib \
3746 /usr
/local
/X11R
4/lib \
3748 /usr
/local
/lib
/X11 \
3749 /usr
/local
/lib
/X11R6 \
3750 /usr
/local
/lib
/X11R5 \
3751 /usr
/local
/lib
/X11R4 \
3755 /usr
/XFree86
/lib
/X11 \
3759 /usr
/unsupported
/lib \
3761 /usr
/local
/x11r
5/lib \
3762 /usr
/lpp
/Xamples
/lib \
3766 /usr
/openwin
/share
/lib \
3769 for ac_extension
in a so sl
; do
3770 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
3771 ac_x_libraries
=$ac_dir
3778 fi # $ac_x_libraries = NO
3780 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
3781 # Didn't find X anywhere. Cache the known absence of X.
3782 ac_cv_have_x
="have_x=no"
3784 # Record where we found X for the cache.
3785 ac_cv_have_x
="have_x=yes \
3786 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3790 eval "$ac_cv_have_x"
3793 if test "$have_x" != yes; then
3794 echo "$ac_t""$have_x" 1>&6
3797 # If each of the values was on the command line, it overrides each guess.
3798 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3799 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3800 # Update the cache value to reflect the command line values.
3801 ac_cv_have_x
="have_x=yes \
3802 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3803 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3806 if test "$no_x" = yes; then
3812 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
3813 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
3814 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
3815 x_default_search_path
=""
3816 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
3818 ${x_library}/X11/%L/%T/%N%C%S:\
3819 ${x_library}/X11/%l/%T/%N%C%S:\
3820 ${x_library}/X11/%T/%N%C%S:\
3821 ${x_library}/X11/%L/%T/%N%S:\
3822 ${x_library}/X11/%l/%T/%N%S:\
3823 ${x_library}/X11/%T/%N%S"
3824 if test x
"${x_default_search_path}" = x
; then
3825 x_default_search_path
=${x_search_path}
3827 x_default_search_path
="${x_search_path}:${x_default_search_path}"
3831 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
3832 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
3835 if test x
"${x_includes}" = x
; then
3836 bitmapdir
=/usr
/include
/X11
/bitmaps
3838 # accumulate include directories that have X11 bitmap subdirectories
3840 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
3841 if test -d "${bmd}/X11/bitmaps"; then
3842 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
3844 if test -d "${bmd}/bitmaps"; then
3845 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
3848 if test ${bmd_acc} != "dummyval"; then
3849 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
3853 case "${window_system}" in
3857 case "${with_x_toolkit}" in
3858 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
3859 motif
) USE_X_TOOLKIT
=MOTIF
;;
3860 no
) USE_X_TOOLKIT
=none
;;
3861 * ) USE_X_TOOLKIT
=maybe
;;
3871 ### If we're using X11, we should use the X menu package.
3874 yes ) HAVE_MENUS
=yes ;;
3877 if test "${opsys}" = "hpux9"; then
3878 case "${x_libraries}" in
3880 opsysfile
="s/hpux9-x11r4.h"
3885 if test "${opsys}" = "hpux9shr"; then
3886 case "${x_libraries}" in
3888 opsysfile
="s/hpux9shxr4.h"
3893 ### Compute the unexec source name from the object name.
3894 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
3896 # Do the opsystem or machine files prohibit the use of the GNU malloc?
3897 # Assume not, until told otherwise.
3900 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3901 echo "configure:3902: checking for malloc_get_state" >&5
3902 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3903 echo $ac_n "(cached) $ac_c" 1>&6
3905 cat > conftest.
$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3908 /* System header to define __stub macros and hopefully few prototypes,
3909 which can conflict with char malloc_get_state(); below. */
3911 /* Override any gcc2 internal prototype to avoid an error. */
3912 /* We use char because int might match the return type of a gcc2
3913 builtin and then its argument prototype would still apply. */
3914 char malloc_get_state();
3918 /* The GNU C library defines this for functions which it implements
3919 to always fail with ENOSYS. Some functions are actually named
3920 something starting with __ and the normal name is an alias. */
3921 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
3929 if { (eval echo configure
:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3931 eval "ac_cv_func_malloc_get_state=yes"
3933 echo "configure: failed program was:" >&5
3934 cat conftest.
$ac_ext >&5
3936 eval "ac_cv_func_malloc_get_state=no"
3941 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
3942 echo "$ac_t""yes" 1>&6
3945 echo "$ac_t""no" 1>&6
3949 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3950 echo "configure:3951: checking for malloc_set_state" >&5
3951 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3952 echo $ac_n "(cached) $ac_c" 1>&6
3954 cat > conftest.
$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3957 /* System header to define __stub macros and hopefully few prototypes,
3958 which can conflict with char malloc_set_state(); below. */
3960 /* Override any gcc2 internal prototype to avoid an error. */
3961 /* We use char because int might match the return type of a gcc2
3962 builtin and then its argument prototype would still apply. */
3963 char malloc_set_state();
3967 /* The GNU C library defines this for functions which it implements
3968 to always fail with ENOSYS. Some functions are actually named
3969 something starting with __ and the normal name is an alias. */
3970 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3978 if { (eval echo configure
:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3980 eval "ac_cv_func_malloc_set_state=yes"
3982 echo "configure: failed program was:" >&5
3983 cat conftest.
$ac_ext >&5
3985 eval "ac_cv_func_malloc_set_state=no"
3990 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3991 echo "$ac_t""yes" 1>&6
3994 echo "$ac_t""no" 1>&6
3998 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3999 echo "configure:4000: checking whether __after_morecore_hook exists" >&5
4000 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
4001 echo $ac_n "(cached) $ac_c" 1>&6
4003 cat > conftest.
$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4006 extern void (* __after_morecore_hook)();
4008 __after_morecore_hook = 0
4011 if { (eval echo configure
:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4013 emacs_cv_var___after_morecore_hook
=yes
4015 echo "configure: failed program was:" >&5
4016 cat conftest.
$ac_ext >&5
4018 emacs_cv_var___after_morecore_hook
=no
4023 echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6
4024 if test $emacs_cv_var___after_morecore_hook = no
; then
4027 if test "${system_malloc}" = "yes"; then
4030 (The GNU allocators don't work with this system configuration.)"
4032 if test "$doug_lea_malloc" = "yes" ; then
4033 if test "$GNU_MALLOC" = yes ; then
4035 (Using Doug Lea's new malloc from the GNU C Library.)"
4037 cat >> confdefs.h
<<\EOF
4038 #define DOUG_LEA_MALLOC 1
4043 if test x
"${REL_ALLOC}" = x
; then
4044 REL_ALLOC
=${GNU_MALLOC}
4048 for ac_hdr
in stdlib.h unistd.h sys
/stat.h
4050 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4051 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4052 echo "configure:4053: checking for $ac_hdr" >&5
4053 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6
4056 cat > conftest.
$ac_ext <<EOF
4057 #line 4058 "configure"
4058 #include "confdefs.h"
4061 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4062 { (eval echo configure
:4063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4063 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4064 if test -z "$ac_err"; then
4066 eval "ac_cv_header_$ac_safe=yes"
4069 echo "configure: failed program was:" >&5
4070 cat conftest.
$ac_ext >&5
4072 eval "ac_cv_header_$ac_safe=no"
4076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4077 echo "$ac_t""yes" 1>&6
4078 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4079 cat >> confdefs.h
<<EOF
4080 #define $ac_tr_hdr 1
4084 echo "$ac_t""no" 1>&6
4088 for ac_func
in getpagesize
4090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4091 echo "configure:4092: checking for $ac_func" >&5
4092 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4093 echo $ac_n "(cached) $ac_c" 1>&6
4095 cat > conftest.
$ac_ext <<EOF
4096 #line 4097 "configure"
4097 #include "confdefs.h"
4098 /* System header to define __stub macros and hopefully few prototypes,
4099 which can conflict with char $ac_func(); below. */
4101 /* Override any gcc2 internal prototype to avoid an error. */
4102 /* We use char because int might match the return type of a gcc2
4103 builtin and then its argument prototype would still apply. */
4108 /* The GNU C library defines this for functions which it implements
4109 to always fail with ENOSYS. Some functions are actually named
4110 something starting with __ and the normal name is an alias. */
4111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4119 if { (eval echo configure
:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4121 eval "ac_cv_func_$ac_func=yes"
4123 echo "configure: failed program was:" >&5
4124 cat conftest.
$ac_ext >&5
4126 eval "ac_cv_func_$ac_func=no"
4131 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4132 echo "$ac_t""yes" 1>&6
4133 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4134 cat >> confdefs.h
<<EOF
4135 #define $ac_tr_func 1
4139 echo "$ac_t""no" 1>&6
4143 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4144 echo "configure:4145: checking for working mmap" >&5
4145 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4146 echo $ac_n "(cached) $ac_c" 1>&6
4148 if test "$cross_compiling" = yes; then
4149 ac_cv_func_mmap_fixed_mapped
=no
4151 cat > conftest.
$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4154 /* Thanks to Mike Haertel and Jim Avera for this test.
4155 Here is a matrix of mmap possibilities:
4156 mmap private not fixed
4157 mmap private fixed at somewhere currently unmapped
4158 mmap private fixed at somewhere already mapped
4159 mmap shared not fixed
4160 mmap shared fixed at somewhere currently unmapped
4161 mmap shared fixed at somewhere already mapped
4162 For private mappings, we should verify that changes cannot be read()
4163 back from the file, nor mmap's back from the file at a different
4164 address. (There have been systems where private was not correctly
4165 implemented like the infamous i386 svr4.0, and systems where the
4166 VM page cache was not coherent with the file system buffer cache
4167 like early versions of FreeBSD and possibly contemporary NetBSD.)
4168 For shared mappings, we should conversely verify that changes get
4169 propogated back to all the places they're supposed to be.
4171 Grep wants private fixed already mapped.
4172 The main things grep needs to know about mmap are:
4173 * does it exist and is it safe to write into the mmap'd area
4174 * how to use it (BSD variants) */
4175 #include <sys/types.h>
4177 #include <sys/mman.h>
4179 #if STDC_HEADERS || HAVE_STDLIB_H
4180 # include <stdlib.h>
4185 # include <unistd.h>
4188 # include <sys/stat.h>
4191 /* This mess was copied from the GNU getpagesize.h. */
4192 #if !HAVE_GETPAGESIZE
4193 /* Assume that all systems that can run configure have sys/param.h. */
4194 # if !HAVE_SYS_PARAM_H
4195 # define HAVE_SYS_PARAM_H 1
4198 # ifdef _SC_PAGESIZE
4199 # define getpagesize() sysconf(_SC_PAGESIZE)
4200 # else /* no _SC_PAGESIZE */
4201 # if HAVE_SYS_PARAM_H
4202 # include <sys/param.h>
4203 # ifdef EXEC_PAGESIZE
4204 # define getpagesize() EXEC_PAGESIZE
4205 # else /* no EXEC_PAGESIZE */
4207 # define getpagesize() NBPG * CLSIZE
4210 # endif /* no CLSIZE */
4211 # else /* no NBPG */
4213 # define getpagesize() NBPC
4214 # else /* no NBPC */
4216 # define getpagesize() PAGESIZE
4217 # endif /* PAGESIZE */
4218 # endif /* no NBPC */
4219 # endif /* no NBPG */
4220 # endif /* no EXEC_PAGESIZE */
4221 # else /* no HAVE_SYS_PARAM_H */
4222 # define getpagesize() 8192 /* punt totally */
4223 # endif /* no HAVE_SYS_PARAM_H */
4224 # endif /* no _SC_PAGESIZE */
4226 #endif /* no HAVE_GETPAGESIZE */
4231 char *data, *data2, *data3;
4235 pagesize = getpagesize ();
4237 /* First, make a file with some known garbage in it. */
4238 data = (char *) malloc (pagesize);
4241 for (i = 0; i < pagesize; ++i)
4242 *(data + i) = rand ();
4244 fd = creat ("conftestmmap", 0600);
4247 if (write (fd, data, pagesize) != pagesize)
4251 /* Next, try to mmap the file at a fixed address which already has
4252 something else allocated at it. If we can, also make sure that
4253 we see the same garbage. */
4254 fd = open ("conftestmmap", O_RDWR);
4257 data2 = (char *) malloc (2 * pagesize);
4260 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4261 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4262 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4264 for (i = 0; i < pagesize; ++i)
4265 if (*(data + i) != *(data2 + i))
4268 /* Finally, make sure that changes to the mapped area do not
4269 percolate back to the file as seen by read(). (This is a bug on
4270 some variants of i386 svr4.0.) */
4271 for (i = 0; i < pagesize; ++i)
4272 *(data2 + i) = *(data2 + i) + 1;
4273 data3 = (char *) malloc (pagesize);
4276 if (read (fd, data3, pagesize) != pagesize)
4278 for (i = 0; i < pagesize; ++i)
4279 if (*(data + i) != *(data3 + i))
4282 unlink ("conftestmmap");
4286 if { (eval echo configure
:4287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4288 ac_cv_func_mmap_fixed_mapped
=yes
4290 echo "configure: failed program was:" >&5
4291 cat conftest.
$ac_ext >&5
4293 ac_cv_func_mmap_fixed_mapped
=no
4300 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4301 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4302 cat >> confdefs.h
<<\EOF
4308 if test $use_mmap_for_buffers = yes; then
4312 LIBS
="$libsrc_libs $LIBS"
4314 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4315 echo "configure:4316: checking for dnet_ntoa in -ldnet" >&5
4316 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4320 ac_save_LIBS
="$LIBS"
4322 cat > conftest.
$ac_ext <<EOF
4323 #line 4324 "configure"
4324 #include "confdefs.h"
4325 /* Override any gcc2 internal prototype to avoid an error. */
4326 /* We use char because int might match the return type of a gcc2
4327 builtin and then its argument prototype would still apply. */
4334 if { (eval echo configure
:4335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4336 eval "ac_cv_lib_$ac_lib_var=yes"
4338 echo "configure: failed program was:" >&5
4339 cat conftest.
$ac_ext >&5
4341 eval "ac_cv_lib_$ac_lib_var=no"
4344 LIBS
="$ac_save_LIBS"
4347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4348 echo "$ac_t""yes" 1>&6
4349 ac_tr_lib
=HAVE_LIB
`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4351 cat >> confdefs.h
<<EOF
4352 #define $ac_tr_lib 1
4358 echo "$ac_t""no" 1>&6
4362 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
4363 echo "configure:4364: checking for main in -lXbsd" >&5
4364 ac_lib_var
=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
4365 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4366 echo $ac_n "(cached) $ac_c" 1>&6
4368 ac_save_LIBS
="$LIBS"
4370 cat > conftest.
$ac_ext <<EOF
4371 #line 4372 "configure"
4372 #include "confdefs.h"
4378 if { (eval echo configure
:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4380 eval "ac_cv_lib_$ac_lib_var=yes"
4382 echo "configure: failed program was:" >&5
4383 cat conftest.
$ac_ext >&5
4385 eval "ac_cv_lib_$ac_lib_var=no"
4388 LIBS
="$ac_save_LIBS"
4391 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4392 echo "$ac_t""yes" 1>&6
4393 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
4395 echo "$ac_t""no" 1>&6
4399 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4400 echo "configure:4401: checking for cma_open in -lpthreads" >&5
4401 ac_lib_var
=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4403 echo $ac_n "(cached) $ac_c" 1>&6
4405 ac_save_LIBS
="$LIBS"
4406 LIBS
="-lpthreads $LIBS"
4407 cat > conftest.
$ac_ext <<EOF
4408 #line 4409 "configure"
4409 #include "confdefs.h"
4410 /* Override any gcc2 internal prototype to avoid an error. */
4411 /* We use char because int might match the return type of a gcc2
4412 builtin and then its argument prototype would still apply. */
4419 if { (eval echo configure
:4420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4421 eval "ac_cv_lib_$ac_lib_var=yes"
4423 echo "configure: failed program was:" >&5
4424 cat conftest.
$ac_ext >&5
4426 eval "ac_cv_lib_$ac_lib_var=no"
4429 LIBS
="$ac_save_LIBS"
4432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4433 echo "$ac_t""yes" 1>&6
4434 ac_tr_lib
=HAVE_LIB
`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4435 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4436 cat >> confdefs.h
<<EOF
4437 #define $ac_tr_lib 1
4440 LIBS
="-lpthreads $LIBS"
4443 echo "$ac_t""no" 1>&6
4447 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
4448 echo "configure:4449: checking for XFree86 in /usr/X386" >&5
4449 if test -d /usr
/X386
/include
; then
4451 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
4455 echo "$ac_t""$HAVE_XFREE386" 1>&6
4457 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
4458 # for the tests that follow. We set it back to REAL_CFLAGS later on.
4460 REAL_CPPFLAGS
="$CPPFLAGS"
4462 if test "${HAVE_X11}" = "yes"; then
4463 DEFS
="$C_SWITCH_X_SITE $DEFS"
4464 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
4466 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
4467 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
4469 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
4470 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
4471 # but it's more convenient here to set LD_RUN_PATH
4472 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
4473 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
4474 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
4478 if test "${opsys}" = "gnu-linux"; then
4479 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
4480 echo "configure:4481: checking whether X on GNU/Linux needs -b to link" >&5
4481 cat > conftest.
$ac_ext <<EOF
4482 #line 4483 "configure"
4483 #include "confdefs.h"
4486 XOpenDisplay ("foo");
4489 if { (eval echo configure
:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4491 xlinux_first_failure
=no
4493 echo "configure: failed program was:" >&5
4494 cat conftest.
$ac_ext >&5
4496 xlinux_first_failure
=yes
4499 if test "${xlinux_first_failure}" = "yes"; then
4500 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
4501 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
4502 OLD_CPPFLAGS
="$CPPFLAGS"
4504 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
4505 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
4506 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
4507 LIBS
="$LIBS -b i486-linuxaout"
4508 cat > conftest.
$ac_ext <<EOF
4509 #line 4510 "configure"
4510 #include "confdefs.h"
4513 XOpenDisplay ("foo");
4516 if { (eval echo configure
:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4518 xlinux_second_failure
=no
4520 echo "configure: failed program was:" >&5
4521 cat conftest.
$ac_ext >&5
4523 xlinux_second_failure
=yes
4526 if test "${xlinux_second_failure}" = "yes"; then
4527 # If we get the same failure with -b, there is no use adding -b.
4528 # So take it out. This plays safe.
4529 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
4530 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
4531 CPPFLAGS
="$OLD_CPPFLAGS"
4533 echo "$ac_t""no" 1>&6
4535 echo "$ac_t""yes" 1>&6
4538 echo "$ac_t""no" 1>&6
4542 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
4543 # header files included from there.
4544 echo $ac_n "checking for Xkb""... $ac_c" 1>&6
4545 echo "configure:4546: checking for Xkb" >&5
4546 cat > conftest.
$ac_ext <<EOF
4547 #line 4548 "configure"
4548 #include "confdefs.h"
4549 #include <X11/Xlib.h>
4550 #include <X11/XKBlib.h>
4552 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
4555 if { (eval echo configure
:4556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4559 echo "configure: failed program was:" >&5
4560 cat conftest.
$ac_ext >&5
4565 echo "$ac_t""$emacs_xkb" 1>&6
4566 if test $emacs_xkb = yes; then
4567 cat >> confdefs.h
<<\EOF
4568 #define HAVE_XKBGETKEYBOARD 1
4573 for ac_func
in XrmSetDatabase XScreenResourceString \
4574 XScreenNumberOfScreen XSetWMProtocols
4576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4577 echo "configure:4578: checking for $ac_func" >&5
4578 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6
4581 cat > conftest.
$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4584 /* System header to define __stub macros and hopefully few prototypes,
4585 which can conflict with char $ac_func(); below. */
4587 /* Override any gcc2 internal prototype to avoid an error. */
4588 /* We use char because int might match the return type of a gcc2
4589 builtin and then its argument prototype would still apply. */
4594 /* The GNU C library defines this for functions which it implements
4595 to always fail with ENOSYS. Some functions are actually named
4596 something starting with __ and the normal name is an alias. */
4597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4605 if { (eval echo configure
:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4607 eval "ac_cv_func_$ac_func=yes"
4609 echo "configure: failed program was:" >&5
4610 cat conftest.
$ac_ext >&5
4612 eval "ac_cv_func_$ac_func=no"
4617 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4618 echo "$ac_t""yes" 1>&6
4619 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4620 cat >> confdefs.h
<<EOF
4621 #define $ac_tr_func 1
4625 echo "$ac_t""no" 1>&6
4631 if test "${window_system}" = "x11"; then
4632 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
4633 echo "configure:4634: checking X11 version 6" >&5
4634 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
4635 echo $ac_n "(cached) $ac_c" 1>&6
4637 cat > conftest.
$ac_ext <<EOF
4638 #line 4639 "configure"
4639 #include "confdefs.h"
4640 #include <X11/Xlib.h>
4642 #if XlibSpecificationRelease < 6
4648 if { (eval echo configure
:4649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4650 emacs_cv_x11_version_6
=yes
4652 echo "configure: failed program was:" >&5
4653 cat conftest.
$ac_ext >&5
4655 emacs_cv_x11_version_6
=no
4660 if test $emacs_cv_x11_version_6 = yes; then
4661 echo "$ac_t""6 or newer" 1>&6
4662 cat >> confdefs.h
<<\EOF
4663 #define HAVE_X11R6 1
4667 echo "$ac_t""before 6" 1>&6
4671 if test "${window_system}" = "x11"; then
4672 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
4673 echo "configure:4674: checking X11 version 5" >&5
4674 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
4675 echo $ac_n "(cached) $ac_c" 1>&6
4677 cat > conftest.
$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4680 #include <X11/Xlib.h>
4682 #if XlibSpecificationRelease < 5
4688 if { (eval echo configure
:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4690 emacs_cv_x11_version_5
=yes
4692 echo "configure: failed program was:" >&5
4693 cat conftest.
$ac_ext >&5
4695 emacs_cv_x11_version_5
=no
4700 if test $emacs_cv_x11_version_5 = yes; then
4701 echo "$ac_t""5 or newer" 1>&6
4703 cat >> confdefs.h
<<\EOF
4704 #define HAVE_X11R5 1
4709 echo "$ac_t""before 5" 1>&6
4713 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
4714 if test x
"${HAVE_X11R5}" = xyes
; then
4715 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
4716 echo "configure:4717: checking X11 version 5 with Xaw" >&5
4717 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
4718 echo $ac_n "(cached) $ac_c" 1>&6
4720 cat > conftest.
$ac_ext <<EOF
4721 #line 4722 "configure"
4722 #include "confdefs.h"
4724 #include <X11/Intrinsic.h>
4725 #include <X11/Xaw/Simple.h>
4730 if { (eval echo configure
:4731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4732 emacs_cv_x11_version_5_with_xaw
=yes
4734 echo "configure: failed program was:" >&5
4735 cat conftest.
$ac_ext >&5
4737 emacs_cv_x11_version_5_with_xaw
=no
4742 if test $emacs_cv_x11_version_5_with_xaw = yes; then
4743 echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6
4746 echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6
4754 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
4756 if test "${USE_X_TOOLKIT}" != "none"; then
4757 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
4758 echo "configure:4759: checking X11 toolkit version" >&5
4759 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
4760 echo $ac_n "(cached) $ac_c" 1>&6
4762 cat > conftest.
$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4765 #include <X11/Intrinsic.h>
4767 #if XtSpecificationRelease < 6
4773 if { (eval echo configure
:4774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4775 emacs_cv_x11_toolkit_version_6
=yes
4777 echo "configure: failed program was:" >&5
4778 cat conftest.
$ac_ext >&5
4780 emacs_cv_x11_toolkit_version_6
=no
4785 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
4786 if test $emacs_cv_x11_toolkit_version_6 = yes; then
4787 echo "$ac_t""6 or newer" 1>&6
4788 cat >> confdefs.h
<<\EOF
4789 #define HAVE_X11XTR6 1
4793 echo "$ac_t""before 6" 1>&6
4797 if test x
$HAVE_X11XTR6 = xyes
; then
4798 LIBS
="-lXt -lSM -lICE $LIBS"
4802 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
4803 echo "configure:4804: checking for XmuConvertStandardSelection in -lXmu" >&5
4804 ac_lib_var
=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
4805 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4806 echo $ac_n "(cached) $ac_c" 1>&6
4808 ac_save_LIBS
="$LIBS"
4810 cat > conftest.
$ac_ext <<EOF
4811 #line 4812 "configure"
4812 #include "confdefs.h"
4813 /* Override any gcc2 internal prototype to avoid an error. */
4814 /* We use char because int might match the return type of a gcc2
4815 builtin and then its argument prototype would still apply. */
4816 char XmuConvertStandardSelection();
4819 XmuConvertStandardSelection()
4822 if { (eval echo configure
:4823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4824 eval "ac_cv_lib_$ac_lib_var=yes"
4826 echo "configure: failed program was:" >&5
4827 cat conftest.
$ac_ext >&5
4829 eval "ac_cv_lib_$ac_lib_var=no"
4832 LIBS
="$ac_save_LIBS"
4835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4836 echo "$ac_t""yes" 1>&6
4837 ac_tr_lib
=HAVE_LIB
`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4838 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4839 cat >> confdefs.h
<<EOF
4840 #define $ac_tr_lib 1
4846 echo "$ac_t""no" 1>&6
4849 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
4852 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
4853 if test "${HAVE_X11}" = "yes"; then
4854 if test "${USE_X_TOOLKIT}" != "none"; then
4855 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
4856 echo "configure:4857: checking for XShapeQueryExtension in -lXext" >&5
4857 ac_lib_var
=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
4858 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4859 echo $ac_n "(cached) $ac_c" 1>&6
4861 ac_save_LIBS
="$LIBS"
4863 cat > conftest.
$ac_ext <<EOF
4864 #line 4865 "configure"
4865 #include "confdefs.h"
4866 /* Override any gcc2 internal prototype to avoid an error. */
4867 /* We use char because int might match the return type of a gcc2
4868 builtin and then its argument prototype would still apply. */
4869 char XShapeQueryExtension();
4872 XShapeQueryExtension()
4875 if { (eval echo configure
:4876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4877 eval "ac_cv_lib_$ac_lib_var=yes"
4879 echo "configure: failed program was:" >&5
4880 cat conftest.
$ac_ext >&5
4882 eval "ac_cv_lib_$ac_lib_var=no"
4885 LIBS
="$ac_save_LIBS"
4888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4889 echo "$ac_t""yes" 1>&6
4890 ac_tr_lib
=HAVE_LIB
`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4891 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4892 cat >> confdefs.h
<<EOF
4893 #define $ac_tr_lib 1
4899 echo "$ac_t""no" 1>&6
4905 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4906 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
4907 echo "configure:4908: checking for Motif version 2.1" >&5
4908 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
4909 echo $ac_n "(cached) $ac_c" 1>&6
4911 cat > conftest.
$ac_ext <<EOF
4912 #line 4913 "configure"
4913 #include "confdefs.h"
4916 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
4919 Motif version prior to 2.1.
4923 if { (eval echo configure
:4924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4925 emacs_cv_motif_version_2_1
=yes
4927 echo "configure: failed program was:" >&5
4928 cat conftest.
$ac_ext >&5
4930 emacs_cv_motif_version_2_1
=no
4935 echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6
4936 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
4937 if test $emacs_cv_motif_version_2_1 = yes; then
4939 cat >> confdefs.h
<<\EOF
4940 #define HAVE_MOTIF_2_1 1
4943 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
4944 echo "configure:4945: checking for XpCreateContext in -lXp" >&5
4945 ac_lib_var
=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
4946 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4947 echo $ac_n "(cached) $ac_c" 1>&6
4949 ac_save_LIBS
="$LIBS"
4951 cat > conftest.
$ac_ext <<EOF
4952 #line 4953 "configure"
4953 #include "confdefs.h"
4954 /* Override any gcc2 internal prototype to avoid an error. */
4955 /* We use char because int might match the return type of a gcc2
4956 builtin and then its argument prototype would still apply. */
4957 char XpCreateContext();
4963 if { (eval echo configure
:4964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4965 eval "ac_cv_lib_$ac_lib_var=yes"
4967 echo "configure: failed program was:" >&5
4968 cat conftest.
$ac_ext >&5
4970 eval "ac_cv_lib_$ac_lib_var=no"
4973 LIBS
="$ac_save_LIBS"
4976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4977 echo "$ac_t""yes" 1>&6
4980 echo "$ac_t""no" 1>&6
4983 if test ${HAVE_LIBXP} = yes; then
4984 cat >> confdefs.h
<<\EOF
4985 #define HAVE_LIBXP 1
4992 ### Is -lXaw3d available?
4994 if test "${HAVE_X11}" = "yes"; then
4995 if test "${USE_X_TOOLKIT}" != "none"; then
4996 ac_safe
=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4997 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4998 echo "configure:4999: checking for X11/Xaw3d/Scrollbar.h" >&5
4999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5002 cat > conftest.
$ac_ext <<EOF
5003 #line 5004 "configure"
5004 #include "confdefs.h"
5005 #include <X11/Xaw3d/Scrollbar.h>
5007 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5008 { (eval echo configure
:5009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5009 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5010 if test -z "$ac_err"; then
5012 eval "ac_cv_header_$ac_safe=yes"
5015 echo "configure: failed program was:" >&5
5016 cat conftest.
$ac_ext >&5
5018 eval "ac_cv_header_$ac_safe=no"
5022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5023 echo "$ac_t""yes" 1>&6
5024 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
5025 echo "configure:5026: checking for XawScrollbarSetThumb in -lXaw3d" >&5
5026 ac_lib_var
=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
5027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5028 echo $ac_n "(cached) $ac_c" 1>&6
5030 ac_save_LIBS
="$LIBS"
5031 LIBS
="-lXaw3d $LIBS"
5032 cat > conftest.
$ac_ext <<EOF
5033 #line 5034 "configure"
5034 #include "confdefs.h"
5035 /* Override any gcc2 internal prototype to avoid an error. */
5036 /* We use char because int might match the return type of a gcc2
5037 builtin and then its argument prototype would still apply. */
5038 char XawScrollbarSetThumb();
5041 XawScrollbarSetThumb()
5044 if { (eval echo configure
:5045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5046 eval "ac_cv_lib_$ac_lib_var=yes"
5048 echo "configure: failed program was:" >&5
5049 cat conftest.
$ac_ext >&5
5051 eval "ac_cv_lib_$ac_lib_var=no"
5054 LIBS
="$ac_save_LIBS"
5057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5058 echo "$ac_t""yes" 1>&6
5061 echo "$ac_t""no" 1>&6
5065 echo "$ac_t""no" 1>&6
5068 if test "${HAVE_XAW3D}" = "yes"; then
5069 cat >> confdefs.h
<<\EOF
5070 #define HAVE_XAW3D 1
5078 USE_TOOLKIT_SCROLL_BARS
=no
5079 if test "${with_toolkit_scroll_bars}" != "no"; then
5080 if test "${USE_X_TOOLKIT}" != "none"; then
5081 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
5082 cat >> confdefs.h
<<\EOF
5083 #define USE_TOOLKIT_SCROLL_BARS 1
5087 USE_TOOLKIT_SCROLL_BARS
=yes
5088 elif test "${HAVE_XAW3D}" = "yes"; then
5089 cat >> confdefs.h
<<\EOF
5090 #define USE_TOOLKIT_SCROLL_BARS 1
5093 USE_TOOLKIT_SCROLL_BARS
=yes
5099 if test "${with_xim}" != "no"; then
5100 cat >> confdefs.h
<<\EOF
5106 ### Use -lXpm if available, unless `--with-xpm=no'.
5108 if test "${HAVE_X11}" = "yes"; then
5109 if test "${with_xpm}" != "no"; then
5110 ac_safe
=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
5111 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
5112 echo "configure:5113: checking for X11/xpm.h" >&5
5113 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5114 echo $ac_n "(cached) $ac_c" 1>&6
5116 cat > conftest.
$ac_ext <<EOF
5117 #line 5118 "configure"
5118 #include "confdefs.h"
5119 #include <X11/xpm.h>
5121 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5122 { (eval echo configure
:5123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5123 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5124 if test -z "$ac_err"; then
5126 eval "ac_cv_header_$ac_safe=yes"
5129 echo "configure: failed program was:" >&5
5130 cat conftest.
$ac_ext >&5
5132 eval "ac_cv_header_$ac_safe=no"
5136 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5137 echo "$ac_t""yes" 1>&6
5138 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
5139 echo "configure:5140: checking for XpmReadFileToPixmap in -lXpm" >&5
5140 ac_lib_var
=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
5141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5142 echo $ac_n "(cached) $ac_c" 1>&6
5144 ac_save_LIBS
="$LIBS"
5145 LIBS
="-lXpm -lX11 $LIBS"
5146 cat > conftest.
$ac_ext <<EOF
5147 #line 5148 "configure"
5148 #include "confdefs.h"
5149 /* Override any gcc2 internal prototype to avoid an error. */
5150 /* We use char because int might match the return type of a gcc2
5151 builtin and then its argument prototype would still apply. */
5152 char XpmReadFileToPixmap();
5155 XpmReadFileToPixmap()
5158 if { (eval echo configure
:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5160 eval "ac_cv_lib_$ac_lib_var=yes"
5162 echo "configure: failed program was:" >&5
5163 cat conftest.
$ac_ext >&5
5165 eval "ac_cv_lib_$ac_lib_var=no"
5168 LIBS
="$ac_save_LIBS"
5171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5172 echo "$ac_t""yes" 1>&6
5175 echo "$ac_t""no" 1>&6
5179 echo "$ac_t""no" 1>&6
5182 if test "${HAVE_XPM}" = "yes"; then
5183 echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6
5184 echo "configure:5185: checking for XpmReturnAllocPixels preprocessor define" >&5
5185 cat > conftest.
$ac_ext <<EOF
5186 #line 5187 "configure"
5187 #include "confdefs.h"
5188 #include "X11/xpm.h"
5189 #ifndef XpmReturnAllocPixels
5190 no_return_alloc_pixels
5194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5195 egrep "no_return_alloc_pixels" >/dev
/null
2>&1; then
5205 if test "${HAVE_XPM}" = "yes"; then
5206 echo "$ac_t""yes" 1>&6
5208 echo "$ac_t""no" 1>&6
5213 if test "${HAVE_XPM}" = "yes"; then
5214 cat >> confdefs.h
<<\EOF
5221 ### Use -ljpeg if available, unless `--with-jpeg=no'.
5223 if test "${HAVE_X11}" = "yes"; then
5224 if test "${with_jpeg}" != "no"; then
5225 ac_safe
=`echo "jerror.h" | sed 'y%./+-%__p_%'`
5226 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6
5227 echo "configure:5228: checking for jerror.h" >&5
5228 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5229 echo $ac_n "(cached) $ac_c" 1>&6
5231 cat > conftest.
$ac_ext <<EOF
5232 #line 5233 "configure"
5233 #include "confdefs.h"
5236 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5237 { (eval echo configure
:5238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5238 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5239 if test -z "$ac_err"; then
5241 eval "ac_cv_header_$ac_safe=yes"
5244 echo "configure: failed program was:" >&5
5245 cat conftest.
$ac_ext >&5
5247 eval "ac_cv_header_$ac_safe=no"
5251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5252 echo "$ac_t""yes" 1>&6
5253 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
5254 echo "configure:5255: checking for jpeg_destroy_compress in -ljpeg" >&5
5255 ac_lib_var
=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
5256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5257 echo $ac_n "(cached) $ac_c" 1>&6
5259 ac_save_LIBS
="$LIBS"
5261 cat > conftest.
$ac_ext <<EOF
5262 #line 5263 "configure"
5263 #include "confdefs.h"
5264 /* Override any gcc2 internal prototype to avoid an error. */
5265 /* We use char because int might match the return type of a gcc2
5266 builtin and then its argument prototype would still apply. */
5267 char jpeg_destroy_compress();
5270 jpeg_destroy_compress()
5273 if { (eval echo configure
:5274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5275 eval "ac_cv_lib_$ac_lib_var=yes"
5277 echo "configure: failed program was:" >&5
5278 cat conftest.
$ac_ext >&5
5280 eval "ac_cv_lib_$ac_lib_var=no"
5283 LIBS
="$ac_save_LIBS"
5286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5287 echo "$ac_t""yes" 1>&6
5290 echo "$ac_t""no" 1>&6
5294 echo "$ac_t""no" 1>&6
5299 if test "${HAVE_JPEG}" = "yes"; then
5300 cat >> confdefs.h
<<\EOF
5307 ### Use -lpng if available, unless `--with-png=no'.
5309 if test "${HAVE_X11}" = "yes"; then
5310 if test "${with_png}" != "no"; then
5311 ac_safe
=`echo "png.h" | sed 'y%./+-%__p_%'`
5312 echo $ac_n "checking for png.h""... $ac_c" 1>&6
5313 echo "configure:5314: checking for png.h" >&5
5314 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5315 echo $ac_n "(cached) $ac_c" 1>&6
5317 cat > conftest.
$ac_ext <<EOF
5318 #line 5319 "configure"
5319 #include "confdefs.h"
5322 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5323 { (eval echo configure
:5324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5324 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5325 if test -z "$ac_err"; then
5327 eval "ac_cv_header_$ac_safe=yes"
5330 echo "configure: failed program was:" >&5
5331 cat conftest.
$ac_ext >&5
5333 eval "ac_cv_header_$ac_safe=no"
5337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5338 echo "$ac_t""yes" 1>&6
5339 echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6
5340 echo "configure:5341: checking for png_get_channels in -lpng" >&5
5341 ac_lib_var
=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'`
5342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5343 echo $ac_n "(cached) $ac_c" 1>&6
5345 ac_save_LIBS
="$LIBS"
5346 LIBS
="-lpng -lz -lm $LIBS"
5347 cat > conftest.
$ac_ext <<EOF
5348 #line 5349 "configure"
5349 #include "confdefs.h"
5350 /* Override any gcc2 internal prototype to avoid an error. */
5351 /* We use char because int might match the return type of a gcc2
5352 builtin and then its argument prototype would still apply. */
5353 char png_get_channels();
5359 if { (eval echo configure
:5360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5361 eval "ac_cv_lib_$ac_lib_var=yes"
5363 echo "configure: failed program was:" >&5
5364 cat conftest.
$ac_ext >&5
5366 eval "ac_cv_lib_$ac_lib_var=no"
5369 LIBS
="$ac_save_LIBS"
5372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5373 echo "$ac_t""yes" 1>&6
5376 echo "$ac_t""no" 1>&6
5380 echo "$ac_t""no" 1>&6
5385 if test "${HAVE_PNG}" = "yes"; then
5386 cat >> confdefs.h
<<\EOF
5393 ### Use -ltiff if available, unless `--with-tiff=no'.
5395 if test "${HAVE_X11}" = "yes"; then
5396 if test "${with_tiff}" != "no"; then
5397 ac_safe
=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5398 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5399 echo "configure:5400: checking for tiffio.h" >&5
5400 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5401 echo $ac_n "(cached) $ac_c" 1>&6
5403 cat > conftest.
$ac_ext <<EOF
5404 #line 5405 "configure"
5405 #include "confdefs.h"
5408 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5409 { (eval echo configure
:5410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5410 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5411 if test -z "$ac_err"; then
5413 eval "ac_cv_header_$ac_safe=yes"
5416 echo "configure: failed program was:" >&5
5417 cat conftest.
$ac_ext >&5
5419 eval "ac_cv_header_$ac_safe=no"
5423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5424 echo "$ac_t""yes" 1>&6
5426 # At least one tiff package requires the jpeg library.
5427 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
5428 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5429 echo "configure:5430: checking for TIFFGetVersion in -ltiff" >&5
5430 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5432 echo $ac_n "(cached) $ac_c" 1>&6
5434 ac_save_LIBS
="$LIBS"
5435 LIBS
="-ltiff $tifflibs $LIBS"
5436 cat > conftest.
$ac_ext <<EOF
5437 #line 5438 "configure"
5438 #include "confdefs.h"
5439 /* Override any gcc2 internal prototype to avoid an error. */
5440 /* We use char because int might match the return type of a gcc2
5441 builtin and then its argument prototype would still apply. */
5442 char TIFFGetVersion();
5448 if { (eval echo configure
:5449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5450 eval "ac_cv_lib_$ac_lib_var=yes"
5452 echo "configure: failed program was:" >&5
5453 cat conftest.
$ac_ext >&5
5455 eval "ac_cv_lib_$ac_lib_var=no"
5458 LIBS
="$ac_save_LIBS"
5461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5462 echo "$ac_t""yes" 1>&6
5465 echo "$ac_t""no" 1>&6
5469 echo "$ac_t""no" 1>&6
5474 if test "${HAVE_TIFF}" = "yes"; then
5475 cat >> confdefs.h
<<\EOF
5482 ### Use -lgif if available, unless `--with-gif=no'.
5484 if test "${HAVE_X11}" = "yes"; then
5485 if test "${with_gif}" != "no"; then
5486 ac_safe
=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
5487 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
5488 echo "configure:5489: checking for gif_lib.h" >&5
5489 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5490 echo $ac_n "(cached) $ac_c" 1>&6
5492 cat > conftest.
$ac_ext <<EOF
5493 #line 5494 "configure"
5494 #include "confdefs.h"
5495 #include <gif_lib.h>
5497 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5498 { (eval echo configure
:5499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5499 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5500 if test -z "$ac_err"; then
5502 eval "ac_cv_header_$ac_safe=yes"
5505 echo "configure: failed program was:" >&5
5506 cat conftest.
$ac_ext >&5
5508 eval "ac_cv_header_$ac_safe=no"
5512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5513 echo "$ac_t""yes" 1>&6
5514 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6
5515 echo "configure:5516: checking for DGifOpen in -lungif" >&5
5516 ac_lib_var
=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'`
5517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5518 echo $ac_n "(cached) $ac_c" 1>&6
5520 ac_save_LIBS
="$LIBS"
5521 LIBS
="-lungif $LIBS"
5522 cat > conftest.
$ac_ext <<EOF
5523 #line 5524 "configure"
5524 #include "confdefs.h"
5525 /* Override any gcc2 internal prototype to avoid an error. */
5526 /* We use char because int might match the return type of a gcc2
5527 builtin and then its argument prototype would still apply. */
5534 if { (eval echo configure
:5535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5536 eval "ac_cv_lib_$ac_lib_var=yes"
5538 echo "configure: failed program was:" >&5
5539 cat conftest.
$ac_ext >&5
5541 eval "ac_cv_lib_$ac_lib_var=no"
5544 LIBS
="$ac_save_LIBS"
5547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5548 echo "$ac_t""yes" 1>&6
5551 echo "$ac_t""no" 1>&6
5555 echo "$ac_t""no" 1>&6
5560 if test "${HAVE_GIF}" = "yes"; then
5561 cat >> confdefs.h
<<\EOF
5568 # If netdb.h doesn't declare h_errno, we must declare it by hand.
5569 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
5570 echo "configure:5571: checking whether netdb declares h_errno" >&5
5571 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
5572 echo $ac_n "(cached) $ac_c" 1>&6
5574 cat > conftest.
$ac_ext <<EOF
5575 #line 5576 "configure"
5576 #include "confdefs.h"
5582 if { (eval echo configure
:5583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5584 emacs_cv_netdb_declares_h_errno
=yes
5586 echo "configure: failed program was:" >&5
5587 cat conftest.
$ac_ext >&5
5589 emacs_cv_netdb_declares_h_errno
=no
5594 echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6
5595 if test $emacs_cv_netdb_declares_h_errno = yes; then
5596 cat >> confdefs.h
<<\EOF
5597 #define HAVE_H_ERRNO 1
5602 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5603 # for constant arguments. Useless!
5604 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5605 echo "configure:5606: checking for working alloca.h" >&5
5606 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5607 echo $ac_n "(cached) $ac_c" 1>&6
5609 cat > conftest.
$ac_ext <<EOF
5610 #line 5611 "configure"
5611 #include "confdefs.h"
5614 char *p = alloca(2 * sizeof(int));
5617 if { (eval echo configure
:5618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5619 ac_cv_header_alloca_h
=yes
5621 echo "configure: failed program was:" >&5
5622 cat conftest.
$ac_ext >&5
5624 ac_cv_header_alloca_h
=no
5629 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5630 if test $ac_cv_header_alloca_h = yes; then
5631 cat >> confdefs.h
<<\EOF
5632 #define HAVE_ALLOCA_H 1
5637 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5638 echo "configure:5639: checking for alloca" >&5
5639 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5640 echo $ac_n "(cached) $ac_c" 1>&6
5642 cat > conftest.
$ac_ext <<EOF
5643 #line 5644 "configure"
5644 #include "confdefs.h"
5647 # define alloca __builtin_alloca
5650 # include <malloc.h>
5651 # define alloca _alloca
5654 # include <alloca.h>
5659 # ifndef alloca /* predefined by HP cc +Olibcalls */
5668 char *p = (char *) alloca(1);
5671 if { (eval echo configure
:5672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5673 ac_cv_func_alloca_works
=yes
5675 echo "configure: failed program was:" >&5
5676 cat conftest.
$ac_ext >&5
5678 ac_cv_func_alloca_works
=no
5683 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5684 if test $ac_cv_func_alloca_works = yes; then
5685 cat >> confdefs.h
<<\EOF
5686 #define HAVE_ALLOCA 1
5691 if test $ac_cv_func_alloca_works = no
; then
5692 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5693 # that cause trouble. Some versions do not even contain alloca or
5694 # contain a buggy version. If you still want to use their alloca,
5695 # use ar to extract alloca.o from them instead of compiling alloca.c.
5696 ALLOCA
=alloca.
${ac_objext}
5697 cat >> confdefs.h
<<\EOF
5702 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5703 echo "configure:5704: checking whether alloca needs Cray hooks" >&5
5704 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5705 echo $ac_n "(cached) $ac_c" 1>&6
5707 cat > conftest.
$ac_ext <<EOF
5708 #line 5709 "configure"
5709 #include "confdefs.h"
5710 #if defined(CRAY) && ! defined(CRAY2)
5717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5718 egrep "webecray" >/dev
/null
2>&1; then
5729 echo "$ac_t""$ac_cv_os_cray" 1>&6
5730 if test $ac_cv_os_cray = yes; then
5731 for ac_func
in _getb67 GETB67 getb67
; do
5732 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5733 echo "configure:5734: checking for $ac_func" >&5
5734 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5735 echo $ac_n "(cached) $ac_c" 1>&6
5737 cat > conftest.
$ac_ext <<EOF
5738 #line 5739 "configure"
5739 #include "confdefs.h"
5740 /* System header to define __stub macros and hopefully few prototypes,
5741 which can conflict with char $ac_func(); below. */
5743 /* Override any gcc2 internal prototype to avoid an error. */
5744 /* We use char because int might match the return type of a gcc2
5745 builtin and then its argument prototype would still apply. */
5750 /* The GNU C library defines this for functions which it implements
5751 to always fail with ENOSYS. Some functions are actually named
5752 something starting with __ and the normal name is an alias. */
5753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5761 if { (eval echo configure
:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5763 eval "ac_cv_func_$ac_func=yes"
5765 echo "configure: failed program was:" >&5
5766 cat conftest.
$ac_ext >&5
5768 eval "ac_cv_func_$ac_func=no"
5773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5774 echo "$ac_t""yes" 1>&6
5775 cat >> confdefs.h
<<EOF
5776 #define CRAY_STACKSEG_END $ac_func
5781 echo "$ac_t""no" 1>&6
5787 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5788 echo "configure:5789: checking stack direction for C alloca" >&5
5789 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5790 echo $ac_n "(cached) $ac_c" 1>&6
5792 if test "$cross_compiling" = yes; then
5793 ac_cv_c_stack_direction
=0
5795 cat > conftest.
$ac_ext <<EOF
5796 #line 5797 "configure"
5797 #include "confdefs.h"
5798 find_stack_direction ()
5800 static char *addr = 0;
5805 return find_stack_direction ();
5808 return (&dummy > addr) ? 1 : -1;
5812 exit (find_stack_direction() < 0);
5815 if { (eval echo configure
:5816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5817 ac_cv_c_stack_direction
=1
5819 echo "configure: failed program was:" >&5
5820 cat conftest.
$ac_ext >&5
5822 ac_cv_c_stack_direction
=-1
5829 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5830 cat >> confdefs.h
<<EOF
5831 #define STACK_DIRECTION $ac_cv_c_stack_direction
5837 # fmod, logb, and frexp are found in -lm on most systems.
5838 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
5839 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
5840 echo "configure:5841: checking for sqrt in -lm" >&5
5841 ac_lib_var
=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
5842 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5843 echo $ac_n "(cached) $ac_c" 1>&6
5845 ac_save_LIBS
="$LIBS"
5847 cat > conftest.
$ac_ext <<EOF
5848 #line 5849 "configure"
5849 #include "confdefs.h"
5850 /* Override any gcc2 internal prototype to avoid an error. */
5851 /* We use char because int might match the return type of a gcc2
5852 builtin and then its argument prototype would still apply. */
5859 if { (eval echo configure
:5860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5861 eval "ac_cv_lib_$ac_lib_var=yes"
5863 echo "configure: failed program was:" >&5
5864 cat conftest.
$ac_ext >&5
5866 eval "ac_cv_lib_$ac_lib_var=no"
5869 LIBS
="$ac_save_LIBS"
5872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5873 echo "$ac_t""yes" 1>&6
5874 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5875 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5876 cat >> confdefs.h
<<EOF
5877 #define $ac_tr_lib 1
5883 echo "$ac_t""no" 1>&6
5887 # Check for mail-locking functions in a "mail" library
5888 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
5889 echo "configure:5890: checking for maillock in -lmail" >&5
5890 ac_lib_var
=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
5891 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5892 echo $ac_n "(cached) $ac_c" 1>&6
5894 ac_save_LIBS
="$LIBS"
5896 cat > conftest.
$ac_ext <<EOF
5897 #line 5898 "configure"
5898 #include "confdefs.h"
5899 /* Override any gcc2 internal prototype to avoid an error. */
5900 /* We use char because int might match the return type of a gcc2
5901 builtin and then its argument prototype would still apply. */
5908 if { (eval echo configure
:5909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5910 eval "ac_cv_lib_$ac_lib_var=yes"
5912 echo "configure: failed program was:" >&5
5913 cat conftest.
$ac_ext >&5
5915 eval "ac_cv_lib_$ac_lib_var=no"
5918 LIBS
="$ac_save_LIBS"
5921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5922 echo "$ac_t""yes" 1>&6
5923 ac_tr_lib
=HAVE_LIB
`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5924 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5925 cat >> confdefs.h
<<EOF
5926 #define $ac_tr_lib 1
5932 echo "$ac_t""no" 1>&6
5935 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
5936 echo "configure:5937: checking for maillock in -llockfile" >&5
5937 ac_lib_var
=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
5938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5939 echo $ac_n "(cached) $ac_c" 1>&6
5941 ac_save_LIBS
="$LIBS"
5942 LIBS
="-llockfile $LIBS"
5943 cat > conftest.
$ac_ext <<EOF
5944 #line 5945 "configure"
5945 #include "confdefs.h"
5946 /* Override any gcc2 internal prototype to avoid an error. */
5947 /* We use char because int might match the return type of a gcc2
5948 builtin and then its argument prototype would still apply. */
5955 if { (eval echo configure
:5956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5957 eval "ac_cv_lib_$ac_lib_var=yes"
5959 echo "configure: failed program was:" >&5
5960 cat conftest.
$ac_ext >&5
5962 eval "ac_cv_lib_$ac_lib_var=no"
5965 LIBS
="$ac_save_LIBS"
5968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5969 echo "$ac_t""yes" 1>&6
5970 ac_tr_lib
=HAVE_LIB
`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5971 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5972 cat >> confdefs.h
<<EOF
5973 #define $ac_tr_lib 1
5976 LIBS
="-llockfile $LIBS"
5979 echo "$ac_t""no" 1>&6
5982 # If we have the shared liblockfile, assume we must use it for mail
5983 # locking (e.g. Debian). If we couldn't link against liblockfile
5984 # (no liblockfile.a installed), ensure that we don't need to.
5985 if test "$ac_cv_lib_lockfile_maillock" = no
; then
5986 # Extract the first word of "liblockfile.so", so it can be a program name with args.
5987 set dummy liblockfile.so
; ac_word
=$2
5988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5989 echo "configure:5990: checking for $ac_word" >&5
5990 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
5991 echo $ac_n "(cached) $ac_c" 1>&6
5993 if test -n "$liblockfile"; then
5994 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
5996 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
5997 ac_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
5998 for ac_dir
in $ac_dummy; do
5999 test -z "$ac_dir" && ac_dir
=.
6000 if test -f $ac_dir/$ac_word; then
6001 ac_cv_prog_liblockfile
="yes"
6006 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
6009 liblockfile
="$ac_cv_prog_liblockfile"
6010 if test -n "$liblockfile"; then
6011 echo "$ac_t""$liblockfile" 1>&6
6013 echo "$ac_t""no" 1>&6
6016 if test $ac_cv_prog_liblockfile = yes; then
6017 { echo "configure: error: Shared liblockfile found but can't link against it.
6018 This probably means that movemail could lose mail.
6019 There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; }
6020 else cat >> confdefs.h
<<\EOF
6021 #define LIBMAIL -llockfile
6027 for ac_func
in touchlock
6029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6030 echo "configure:6031: checking for $ac_func" >&5
6031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6032 echo $ac_n "(cached) $ac_c" 1>&6
6034 cat > conftest.
$ac_ext <<EOF
6035 #line 6036 "configure"
6036 #include "confdefs.h"
6037 /* System header to define __stub macros and hopefully few prototypes,
6038 which can conflict with char $ac_func(); below. */
6040 /* Override any gcc2 internal prototype to avoid an error. */
6041 /* We use char because int might match the return type of a gcc2
6042 builtin and then its argument prototype would still apply. */
6047 /* The GNU C library defines this for functions which it implements
6048 to always fail with ENOSYS. Some functions are actually named
6049 something starting with __ and the normal name is an alias. */
6050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6058 if { (eval echo configure
:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6060 eval "ac_cv_func_$ac_func=yes"
6062 echo "configure: failed program was:" >&5
6063 cat conftest.
$ac_ext >&5
6065 eval "ac_cv_func_$ac_func=no"
6070 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6071 echo "$ac_t""yes" 1>&6
6072 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6073 cat >> confdefs.h
<<EOF
6074 #define $ac_tr_func 1
6078 echo "$ac_t""no" 1>&6
6082 for ac_hdr
in maillock.h
6084 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6085 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6086 echo "configure:6087: checking for $ac_hdr" >&5
6087 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6088 echo $ac_n "(cached) $ac_c" 1>&6
6090 cat > conftest.
$ac_ext <<EOF
6091 #line 6092 "configure"
6092 #include "confdefs.h"
6095 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6096 { (eval echo configure
:6097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6097 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6098 if test -z "$ac_err"; then
6100 eval "ac_cv_header_$ac_safe=yes"
6103 echo "configure: failed program was:" >&5
6104 cat conftest.
$ac_ext >&5
6106 eval "ac_cv_header_$ac_safe=no"
6110 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6111 echo "$ac_t""yes" 1>&6
6112 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6113 cat >> confdefs.h
<<EOF
6114 #define $ac_tr_hdr 1
6118 echo "$ac_t""no" 1>&6
6123 for ac_func
in gethostname getdomainname dup2 \
6124 rename closedir mkdir
rmdir sysinfo \
6125 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
6126 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
6127 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
6128 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \
6129 gai_strerror mkstemp
6131 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6132 echo "configure:6133: checking for $ac_func" >&5
6133 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6134 echo $ac_n "(cached) $ac_c" 1>&6
6136 cat > conftest.
$ac_ext <<EOF
6137 #line 6138 "configure"
6138 #include "confdefs.h"
6139 /* System header to define __stub macros and hopefully few prototypes,
6140 which can conflict with char $ac_func(); below. */
6142 /* Override any gcc2 internal prototype to avoid an error. */
6143 /* We use char because int might match the return type of a gcc2
6144 builtin and then its argument prototype would still apply. */
6149 /* The GNU C library defines this for functions which it implements
6150 to always fail with ENOSYS. Some functions are actually named
6151 something starting with __ and the normal name is an alias. */
6152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6160 if { (eval echo configure
:6161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6162 eval "ac_cv_func_$ac_func=yes"
6164 echo "configure: failed program was:" >&5
6165 cat conftest.
$ac_ext >&5
6167 eval "ac_cv_func_$ac_func=no"
6172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6173 echo "$ac_t""yes" 1>&6
6174 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6175 cat >> confdefs.h
<<EOF
6176 #define $ac_tr_func 1
6180 echo "$ac_t""no" 1>&6
6185 for ac_hdr
in sys
/time.h unistd.h
6187 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6188 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6189 echo "configure:6190: checking for $ac_hdr" >&5
6190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6191 echo $ac_n "(cached) $ac_c" 1>&6
6193 cat > conftest.
$ac_ext <<EOF
6194 #line 6195 "configure"
6195 #include "confdefs.h"
6198 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6199 { (eval echo configure
:6200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6200 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6201 if test -z "$ac_err"; then
6203 eval "ac_cv_header_$ac_safe=yes"
6206 echo "configure: failed program was:" >&5
6207 cat conftest.
$ac_ext >&5
6209 eval "ac_cv_header_$ac_safe=no"
6213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6214 echo "$ac_t""yes" 1>&6
6215 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6216 cat >> confdefs.h
<<EOF
6217 #define $ac_tr_hdr 1
6221 echo "$ac_t""no" 1>&6
6225 for ac_func
in alarm
6227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6228 echo "configure:6229: checking for $ac_func" >&5
6229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6230 echo $ac_n "(cached) $ac_c" 1>&6
6232 cat > conftest.
$ac_ext <<EOF
6233 #line 6234 "configure"
6234 #include "confdefs.h"
6235 /* System header to define __stub macros and hopefully few prototypes,
6236 which can conflict with char $ac_func(); below. */
6238 /* Override any gcc2 internal prototype to avoid an error. */
6239 /* We use char because int might match the return type of a gcc2
6240 builtin and then its argument prototype would still apply. */
6245 /* The GNU C library defines this for functions which it implements
6246 to always fail with ENOSYS. Some functions are actually named
6247 something starting with __ and the normal name is an alias. */
6248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6256 if { (eval echo configure
:6257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6258 eval "ac_cv_func_$ac_func=yes"
6260 echo "configure: failed program was:" >&5
6261 cat conftest.
$ac_ext >&5
6263 eval "ac_cv_func_$ac_func=no"
6268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6269 echo "$ac_t""yes" 1>&6
6270 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6271 cat >> confdefs.h
<<EOF
6272 #define $ac_tr_func 1
6276 echo "$ac_t""no" 1>&6
6280 echo $ac_n "checking for working mktime""... $ac_c" 1>&6
6281 echo "configure:6282: checking for working mktime" >&5
6282 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then
6283 echo $ac_n "(cached) $ac_c" 1>&6
6285 if test "$cross_compiling" = yes; then
6286 ac_cv_func_working_mktime
=no
6288 cat > conftest.
$ac_ext <<EOF
6289 #line 6290 "configure"
6290 #include "confdefs.h"
6291 /* Test program from Paul Eggert (eggert@twinsun.com)
6292 and Tony Leneis (tony@plaza.ds.adp.com). */
6293 #if TIME_WITH_SYS_TIME
6294 # include <sys/time.h>
6297 # if HAVE_SYS_TIME_H
6298 # include <sys/time.h>
6305 # include <unistd.h>
6309 # define alarm(X) /* empty */
6312 /* Work around redefinition to rpl_putenv by other config tests. */
6315 static time_t time_t_max;
6317 /* Values we'll use to set the TZ environment variable. */
6318 static const char *const tz_strings[] = {
6319 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
6320 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
6322 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
6324 /* Fail if mktime fails to convert a date in the spring-forward gap.
6325 Based on a problem report from Andreas Jaeger. */
6327 spring_forward_gap ()
6329 /* glibc (up to about 1998-10-07) failed this test) */
6332 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
6333 instead of "TZ=America/Vancouver" in order to detect the bug even
6334 on systems that don't support the Olson extension, or don't have the
6335 full zoneinfo tables installed. */
6336 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
6345 if (mktime (&tm) == (time_t)-1)
6354 if ((lt = localtime (&now)) && mktime (lt) != now)
6356 now = time_t_max - now;
6357 if ((lt = localtime (&now)) && mktime (lt) != now)
6364 /* Based on code from Ariel Faigon. */
6374 if (tm.tm_mon != 2 || tm.tm_mday != 31)
6384 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
6386 if (now != (time_t) -1)
6388 struct tm *lt = localtime (&now);
6390 && lt->tm_year == tm.tm_year
6391 && lt->tm_mon == tm.tm_mon
6392 && lt->tm_mday == tm.tm_mday
6393 && lt->tm_hour == tm.tm_hour
6394 && lt->tm_min == tm.tm_min
6395 && lt->tm_sec == tm.tm_sec
6396 && lt->tm_yday == tm.tm_yday
6397 && lt->tm_wday == tm.tm_wday
6398 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
6399 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
6410 /* This test makes some buggy mktime implementations loop.
6411 Give up after 60 seconds; a mktime slower than that
6412 isn't worth using anyway. */
6415 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
6418 delta = time_t_max / 997; /* a suitable prime number */
6419 for (i = 0; i < N_STRINGS; i++)
6422 putenv (tz_strings[i]);
6424 for (t = 0; t <= time_t_max - delta; t += delta)
6426 mktime_test ((time_t) 60 * 60);
6427 mktime_test ((time_t) 60 * 60 * 24);
6429 for (j = 1; 0 < j; j *= 2)
6431 bigtime_test (j - 1);
6434 spring_forward_gap ();
6438 if { (eval echo configure
:6439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6440 ac_cv_func_working_mktime
=yes
6442 echo "configure: failed program was:" >&5
6443 cat conftest.
$ac_ext >&5
6445 ac_cv_func_working_mktime
=no
6452 echo "$ac_t""$ac_cv_func_working_mktime" 1>&6
6453 if test $ac_cv_func_working_mktime = no
; then
6454 LIBOBJS
="$LIBOBJS mktime.${ac_objext}"
6457 if test "$ac_cv_func_working_mktime" = no
; then
6458 cat >> confdefs.h
<<\EOF
6459 #define BROKEN_MKTIME 1
6464 ac_have_func
=no
# yes means we've found a way to get the load average.
6466 # Some systems have getloadavg without any extra libraries.
6467 echo $ac_n "checking for getloadavg""... $ac_c" 1>&6
6468 echo "configure:6469: checking for getloadavg" >&5
6469 if eval "test \"`echo '$''{'ac_cv_func_getloadavg'+set}'`\" = set"; then
6470 echo $ac_n "(cached) $ac_c" 1>&6
6472 cat > conftest.
$ac_ext <<EOF
6473 #line 6474 "configure"
6474 #include "confdefs.h"
6475 /* System header to define __stub macros and hopefully few prototypes,
6476 which can conflict with char getloadavg(); below. */
6478 /* Override any gcc2 internal prototype to avoid an error. */
6479 /* We use char because int might match the return type of a gcc2
6480 builtin and then its argument prototype would still apply. */
6485 /* The GNU C library defines this for functions which it implements
6486 to always fail with ENOSYS. Some functions are actually named
6487 something starting with __ and the normal name is an alias. */
6488 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
6496 if { (eval echo configure
:6497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6498 eval "ac_cv_func_getloadavg=yes"
6500 echo "configure: failed program was:" >&5
6501 cat conftest.
$ac_ext >&5
6503 eval "ac_cv_func_getloadavg=no"
6508 if eval "test \"`echo '$ac_cv_func_'getloadavg`\" = yes"; then
6509 echo "$ac_t""yes" 1>&6
6512 echo "$ac_t""no" 1>&6
6516 if test $ac_have_func = no
; then
6517 # Some systems with -lutil have (and need) -lkvm as well, some do not.
6518 # On Solaris, -lkvm requires nlist from -lelf, so check that first
6519 # to get the right answer into the cache.
6520 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6
6521 echo "configure:6522: checking for elf_begin in -lelf" >&5
6522 ac_lib_var
=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'`
6523 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6524 echo $ac_n "(cached) $ac_c" 1>&6
6526 ac_save_LIBS
="$LIBS"
6528 cat > conftest.
$ac_ext <<EOF
6529 #line 6530 "configure"
6530 #include "confdefs.h"
6531 /* Override any gcc2 internal prototype to avoid an error. */
6532 /* We use char because int might match the return type of a gcc2
6533 builtin and then its argument prototype would still apply. */
6540 if { (eval echo configure
:6541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6542 eval "ac_cv_lib_$ac_lib_var=yes"
6544 echo "configure: failed program was:" >&5
6545 cat conftest.
$ac_ext >&5
6547 eval "ac_cv_lib_$ac_lib_var=no"
6550 LIBS
="$ac_save_LIBS"
6553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6554 echo "$ac_t""yes" 1>&6
6557 echo "$ac_t""no" 1>&6
6560 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
6561 echo "configure:6562: checking for kvm_open in -lkvm" >&5
6562 ac_lib_var
=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`
6563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6564 echo $ac_n "(cached) $ac_c" 1>&6
6566 ac_save_LIBS
="$LIBS"
6568 cat > conftest.
$ac_ext <<EOF
6569 #line 6570 "configure"
6570 #include "confdefs.h"
6571 /* Override any gcc2 internal prototype to avoid an error. */
6572 /* We use char because int might match the return type of a gcc2
6573 builtin and then its argument prototype would still apply. */
6580 if { (eval echo configure
:6581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6582 eval "ac_cv_lib_$ac_lib_var=yes"
6584 echo "configure: failed program was:" >&5
6585 cat conftest.
$ac_ext >&5
6587 eval "ac_cv_lib_$ac_lib_var=no"
6590 LIBS
="$ac_save_LIBS"
6593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6594 echo "$ac_t""yes" 1>&6
6597 echo "$ac_t""no" 1>&6
6600 # Check for the 4.4BSD definition of getloadavg.
6601 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6
6602 echo "configure:6603: checking for getloadavg in -lutil" >&5
6603 ac_lib_var
=`echo util'_'getloadavg | sed 'y%./+-%__p_%'`
6604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6605 echo $ac_n "(cached) $ac_c" 1>&6
6607 ac_save_LIBS
="$LIBS"
6609 cat > conftest.
$ac_ext <<EOF
6610 #line 6611 "configure"
6611 #include "confdefs.h"
6612 /* Override any gcc2 internal prototype to avoid an error. */
6613 /* We use char because int might match the return type of a gcc2
6614 builtin and then its argument prototype would still apply. */
6621 if { (eval echo configure
:6622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6623 eval "ac_cv_lib_$ac_lib_var=yes"
6625 echo "configure: failed program was:" >&5
6626 cat conftest.
$ac_ext >&5
6628 eval "ac_cv_lib_$ac_lib_var=no"
6631 LIBS
="$ac_save_LIBS"
6634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6635 echo "$ac_t""yes" 1>&6
6636 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
6638 echo "$ac_t""no" 1>&6
6643 if test $ac_have_func = no
; then
6644 # There is a commonly available library for RS/6000 AIX.
6645 # Since it is not a standard part of AIX, it might be installed locally.
6646 ac_getloadavg_LIBS
="$LIBS"; LIBS
="-L/usr/local/lib $LIBS"
6647 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6
6648 echo "configure:6649: checking for getloadavg in -lgetloadavg" >&5
6649 ac_lib_var
=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'`
6650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6651 echo $ac_n "(cached) $ac_c" 1>&6
6653 ac_save_LIBS
="$LIBS"
6654 LIBS
="-lgetloadavg $LIBS"
6655 cat > conftest.
$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6658 /* Override any gcc2 internal prototype to avoid an error. */
6659 /* We use char because int might match the return type of a gcc2
6660 builtin and then its argument prototype would still apply. */
6667 if { (eval echo configure
:6668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6669 eval "ac_cv_lib_$ac_lib_var=yes"
6671 echo "configure: failed program was:" >&5
6672 cat conftest.
$ac_ext >&5
6674 eval "ac_cv_lib_$ac_lib_var=no"
6677 LIBS
="$ac_save_LIBS"
6680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6681 echo "$ac_t""yes" 1>&6
6682 LIBS
="-lgetloadavg $LIBS"
6684 echo "$ac_t""no" 1>&6
6685 LIBS
="$ac_getloadavg_LIBS"
6690 # Make sure it is really in the library, if we think we found it.
6691 for ac_func
in getloadavg
6693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6694 echo "configure:6695: checking for $ac_func" >&5
6695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6696 echo $ac_n "(cached) $ac_c" 1>&6
6698 cat > conftest.
$ac_ext <<EOF
6699 #line 6700 "configure"
6700 #include "confdefs.h"
6701 /* System header to define __stub macros and hopefully few prototypes,
6702 which can conflict with char $ac_func(); below. */
6704 /* Override any gcc2 internal prototype to avoid an error. */
6705 /* We use char because int might match the return type of a gcc2
6706 builtin and then its argument prototype would still apply. */
6711 /* The GNU C library defines this for functions which it implements
6712 to always fail with ENOSYS. Some functions are actually named
6713 something starting with __ and the normal name is an alias. */
6714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6722 if { (eval echo configure
:6723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6724 eval "ac_cv_func_$ac_func=yes"
6726 echo "configure: failed program was:" >&5
6727 cat conftest.
$ac_ext >&5
6729 eval "ac_cv_func_$ac_func=no"
6734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6735 echo "$ac_t""yes" 1>&6
6736 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6737 cat >> confdefs.h
<<EOF
6738 #define $ac_tr_func 1
6742 echo "$ac_t""no" 1>&6
6743 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
6749 if test $ac_cv_func_getloadavg = yes; then
6750 cat >> confdefs.h
<<\EOF
6751 #define HAVE_GETLOADAVG 1
6756 # Figure out what our getloadavg.c needs.
6758 ac_safe
=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`
6759 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
6760 echo "configure:6761: checking for sys/dg_sys_info.h" >&5
6761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6762 echo $ac_n "(cached) $ac_c" 1>&6
6764 cat > conftest.
$ac_ext <<EOF
6765 #line 6766 "configure"
6766 #include "confdefs.h"
6767 #include <sys/dg_sys_info.h>
6769 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6770 { (eval echo configure
:6771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6771 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6772 if test -z "$ac_err"; then
6774 eval "ac_cv_header_$ac_safe=yes"
6777 echo "configure: failed program was:" >&5
6778 cat conftest.
$ac_ext >&5
6780 eval "ac_cv_header_$ac_safe=no"
6784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6785 echo "$ac_t""yes" 1>&6
6786 ac_have_func
=yes; cat >> confdefs.h
<<\EOF
6790 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6
6791 echo "configure:6792: checking for dg_sys_info in -ldgc" >&5
6792 ac_lib_var
=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'`
6793 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6794 echo $ac_n "(cached) $ac_c" 1>&6
6796 ac_save_LIBS
="$LIBS"
6798 cat > conftest.
$ac_ext <<EOF
6799 #line 6800 "configure"
6800 #include "confdefs.h"
6801 /* Override any gcc2 internal prototype to avoid an error. */
6802 /* We use char because int might match the return type of a gcc2
6803 builtin and then its argument prototype would still apply. */
6810 if { (eval echo configure
:6811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6812 eval "ac_cv_lib_$ac_lib_var=yes"
6814 echo "configure: failed program was:" >&5
6815 cat conftest.
$ac_ext >&5
6817 eval "ac_cv_lib_$ac_lib_var=no"
6820 LIBS
="$ac_save_LIBS"
6823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6824 echo "$ac_t""yes" 1>&6
6825 ac_tr_lib
=HAVE_LIB
`echo dgc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6826 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6827 cat >> confdefs.h
<<EOF
6828 #define $ac_tr_lib 1
6834 echo "$ac_t""no" 1>&6
6838 echo "$ac_t""no" 1>&6
6842 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
6843 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
6844 # Irix 4.0.5F has the header but not the library.
6845 if test $ac_have_func = no
&& test $ac_cv_lib_elf_elf_begin = yes; then
6846 ac_have_func
=yes; cat >> confdefs.h
<<\EOF
6852 if test $ac_have_func = no
; then
6853 ac_safe
=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'`
6854 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6
6855 echo "configure:6856: checking for inq_stats/cpustats.h" >&5
6856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6857 echo $ac_n "(cached) $ac_c" 1>&6
6859 cat > conftest.
$ac_ext <<EOF
6860 #line 6861 "configure"
6861 #include "confdefs.h"
6862 #include <inq_stats/cpustats.h>
6864 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6865 { (eval echo configure
:6866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6866 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6867 if test -z "$ac_err"; then
6869 eval "ac_cv_header_$ac_safe=yes"
6872 echo "configure: failed program was:" >&5
6873 cat conftest.
$ac_ext >&5
6875 eval "ac_cv_header_$ac_safe=no"
6879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6880 echo "$ac_t""yes" 1>&6
6881 ac_have_func
=yes; cat >> confdefs.h
<<\EOF
6885 cat >> confdefs.h
<<\EOF
6890 echo "$ac_t""no" 1>&6
6895 if test $ac_have_func = no
; then
6896 ac_safe
=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'`
6897 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6
6898 echo "configure:6899: checking for sys/cpustats.h" >&5
6899 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6900 echo $ac_n "(cached) $ac_c" 1>&6
6902 cat > conftest.
$ac_ext <<EOF
6903 #line 6904 "configure"
6904 #include "confdefs.h"
6905 #include <sys/cpustats.h>
6907 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6908 { (eval echo configure
:6909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6909 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6910 if test -z "$ac_err"; then
6912 eval "ac_cv_header_$ac_safe=yes"
6915 echo "configure: failed program was:" >&5
6916 cat conftest.
$ac_ext >&5
6918 eval "ac_cv_header_$ac_safe=no"
6922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6923 echo "$ac_t""yes" 1>&6
6924 ac_have_func
=yes; cat >> confdefs.h
<<\EOF
6929 echo "$ac_t""no" 1>&6
6934 if test $ac_have_func = no
; then
6935 for ac_hdr
in mach
/mach.h
6937 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6938 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6939 echo "configure:6940: checking for $ac_hdr" >&5
6940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6941 echo $ac_n "(cached) $ac_c" 1>&6
6943 cat > conftest.
$ac_ext <<EOF
6944 #line 6945 "configure"
6945 #include "confdefs.h"
6948 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6949 { (eval echo configure
:6950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6950 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6951 if test -z "$ac_err"; then
6953 eval "ac_cv_header_$ac_safe=yes"
6956 echo "configure: failed program was:" >&5
6957 cat conftest.
$ac_ext >&5
6959 eval "ac_cv_header_$ac_safe=no"
6963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6964 echo "$ac_t""yes" 1>&6
6965 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6966 cat >> confdefs.h
<<EOF
6967 #define $ac_tr_hdr 1
6971 echo "$ac_t""no" 1>&6
6977 ac_safe
=`echo "nlist.h" | sed 'y%./+-%__p_%'`
6978 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
6979 echo "configure:6980: checking for nlist.h" >&5
6980 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6981 echo $ac_n "(cached) $ac_c" 1>&6
6983 cat > conftest.
$ac_ext <<EOF
6984 #line 6985 "configure"
6985 #include "confdefs.h"
6988 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6989 { (eval echo configure
:6990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6990 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6991 if test -z "$ac_err"; then
6993 eval "ac_cv_header_$ac_safe=yes"
6996 echo "configure: failed program was:" >&5
6997 cat conftest.
$ac_ext >&5
6999 eval "ac_cv_header_$ac_safe=no"
7003 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7004 echo "$ac_t""yes" 1>&6
7005 cat >> confdefs.h
<<\EOF
7006 #define NLIST_STRUCT 1
7009 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
7010 echo "configure:7011: checking for n_un in struct nlist" >&5
7011 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
7012 echo $ac_n "(cached) $ac_c" 1>&6
7014 cat > conftest.
$ac_ext <<EOF
7015 #line 7016 "configure"
7016 #include "confdefs.h"
7019 struct nlist n; n.n_un.n_name = 0;
7022 if { (eval echo configure
:7023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7024 ac_cv_struct_nlist_n_un
=yes
7026 echo "configure: failed program was:" >&5
7027 cat conftest.
$ac_ext >&5
7029 ac_cv_struct_nlist_n_un
=no
7034 echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6
7035 if test $ac_cv_struct_nlist_n_un = yes; then
7036 cat >> confdefs.h
<<\EOF
7037 #define NLIST_NAME_UNION 1
7043 echo "$ac_t""no" 1>&6
7045 fi # Do not have getloadavg in system libraries.
7047 # Some definitions of getloadavg require that the program be installed setgid.
7048 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6
7049 echo "configure:7050: checking whether getloadavg requires setgid" >&5
7050 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then
7051 echo $ac_n "(cached) $ac_c" 1>&6
7053 cat > conftest.
$ac_ext <<EOF
7054 #line 7055 "configure"
7055 #include "confdefs.h"
7056 #include "$srcdir/getloadavg.c"
7057 #ifdef LDAV_PRIVILEGED
7058 Yowza Am I SETGID yet
7061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7062 egrep "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
7064 ac_cv_func_getloadavg_setgid
=yes
7067 ac_cv_func_getloadavg_setgid
=no
7073 echo "$ac_t""$ac_cv_func_getloadavg_setgid" 1>&6
7074 if test $ac_cv_func_getloadavg_setgid = yes; then
7075 NEED_SETGID
=true
; cat >> confdefs.h
<<\EOF
7076 #define GETLOADAVG_PRIVILEGED 1
7083 if test $ac_cv_func_getloadavg_setgid = yes; then
7084 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6
7085 echo "configure:7086: checking group of /dev/kmem" >&5
7086 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then
7087 echo $ac_n "(cached) $ac_c" 1>&6
7089 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
7090 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
7091 # If we got an error (system does not support symlinks), try without -L.
7092 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
7093 ac_cv_group_kmem
=`echo $ac_ls_output \
7094 | sed -ne 's/[ ][ ]*/ /g;
7095 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
7100 echo "$ac_t""$ac_cv_group_kmem" 1>&6
7101 KMEM_GROUP
=$ac_cv_group_kmem
7105 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
7106 echo "configure:7107: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7107 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
7108 echo $ac_n "(cached) $ac_c" 1>&6
7110 ac_cv_sys_largefile_source
=no
7111 cat > conftest.
$ac_ext <<EOF
7112 #line 7113 "configure"
7113 #include "confdefs.h"
7119 if { (eval echo configure
:7120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7122 echo "configure: failed program was:" >&5
7123 cat conftest.
$ac_ext >&5
7125 cat > conftest.
$ac_ext <<EOF
7126 #line 7127 "configure"
7127 #include "confdefs.h"
7128 #define _LARGEFILE_SOURCE 1
7135 if { (eval echo configure
:7136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7137 ac_cv_sys_largefile_source
=1
7139 echo "configure: failed program was:" >&5
7140 cat conftest.
$ac_ext >&5
7147 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
7148 if test "$ac_cv_sys_largefile_source" != no
; then
7149 cat >> confdefs.h
<<EOF
7150 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7154 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
7155 # in glibc 2.1.3, but that breaks too many other things.
7156 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7158 echo $ac_n "checking for fseeko""... $ac_c" 1>&6
7159 echo "configure:7160: checking for fseeko" >&5
7160 if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then
7161 echo $ac_n "(cached) $ac_c" 1>&6
7163 ac_cv_func_fseeko
=no
7164 cat > conftest.
$ac_ext <<EOF
7165 #line 7166 "configure"
7166 #include "confdefs.h"
7169 return fseeko && fseeko (stdin, 0, 0);
7172 if { (eval echo configure
:7173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7174 ac_cv_func_fseeko
=yes
7176 echo "configure: failed program was:" >&5
7177 cat conftest.
$ac_ext >&5
7182 echo "$ac_t""$ac_cv_func_fseeko" 1>&6
7183 if test $ac_cv_func_fseeko != no
; then
7184 cat >> confdefs.h
<<\EOF
7185 #define HAVE_FSEEKO 1
7191 for ac_func
in grantpt
7193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7194 echo "configure:7195: checking for $ac_func" >&5
7195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7196 echo $ac_n "(cached) $ac_c" 1>&6
7198 cat > conftest.
$ac_ext <<EOF
7199 #line 7200 "configure"
7200 #include "confdefs.h"
7201 /* System header to define __stub macros and hopefully few prototypes,
7202 which can conflict with char $ac_func(); below. */
7204 /* Override any gcc2 internal prototype to avoid an error. */
7205 /* We use char because int might match the return type of a gcc2
7206 builtin and then its argument prototype would still apply. */
7211 /* The GNU C library defines this for functions which it implements
7212 to always fail with ENOSYS. Some functions are actually named
7213 something starting with __ and the normal name is an alias. */
7214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7222 if { (eval echo configure
:7223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7224 eval "ac_cv_func_$ac_func=yes"
7226 echo "configure: failed program was:" >&5
7227 cat conftest.
$ac_ext >&5
7229 eval "ac_cv_func_$ac_func=no"
7234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7235 echo "$ac_t""yes" 1>&6
7236 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7237 cat >> confdefs.h
<<EOF
7238 #define $ac_tr_func 1
7242 echo "$ac_t""no" 1>&6
7247 # PTY-related GNU extensions.
7248 for ac_func
in getpt
7250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7251 echo "configure:7252: checking for $ac_func" >&5
7252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7253 echo $ac_n "(cached) $ac_c" 1>&6
7255 cat > conftest.
$ac_ext <<EOF
7256 #line 7257 "configure"
7257 #include "confdefs.h"
7258 /* System header to define __stub macros and hopefully few prototypes,
7259 which can conflict with char $ac_func(); below. */
7261 /* Override any gcc2 internal prototype to avoid an error. */
7262 /* We use char because int might match the return type of a gcc2
7263 builtin and then its argument prototype would still apply. */
7268 /* The GNU C library defines this for functions which it implements
7269 to always fail with ENOSYS. Some functions are actually named
7270 something starting with __ and the normal name is an alias. */
7271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7279 if { (eval echo configure
:7280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7281 eval "ac_cv_func_$ac_func=yes"
7283 echo "configure: failed program was:" >&5
7284 cat conftest.
$ac_ext >&5
7286 eval "ac_cv_func_$ac_func=no"
7291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7292 echo "$ac_t""yes" 1>&6
7293 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7294 cat >> confdefs.h
<<EOF
7295 #define $ac_tr_func 1
7299 echo "$ac_t""no" 1>&6
7304 # Check this now, so that we will NOT find the above functions in ncurses.
7305 # That is because we have not set up to link ncurses in lib-src.
7306 # It's better to believe a function is not available
7307 # than to expect to find it in ncurses.
7308 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
7309 echo "configure:7310: checking for tparm in -lncurses" >&5
7310 ac_lib_var
=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
7311 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7312 echo $ac_n "(cached) $ac_c" 1>&6
7314 ac_save_LIBS
="$LIBS"
7315 LIBS
="-lncurses $LIBS"
7316 cat > conftest.
$ac_ext <<EOF
7317 #line 7318 "configure"
7318 #include "confdefs.h"
7319 /* Override any gcc2 internal prototype to avoid an error. */
7320 /* We use char because int might match the return type of a gcc2
7321 builtin and then its argument prototype would still apply. */
7328 if { (eval echo configure
:7329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7330 eval "ac_cv_lib_$ac_lib_var=yes"
7332 echo "configure: failed program was:" >&5
7333 cat conftest.
$ac_ext >&5
7335 eval "ac_cv_lib_$ac_lib_var=no"
7338 LIBS
="$ac_save_LIBS"
7341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7342 echo "$ac_t""yes" 1>&6
7343 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7344 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7345 cat >> confdefs.h
<<EOF
7346 #define $ac_tr_lib 1
7349 LIBS
="-lncurses $LIBS"
7352 echo "$ac_t""no" 1>&6
7356 # Do we need the Hesiod library to provide the support routines?
7357 if test "$with_hesiod" = yes ; then
7358 # Don't set $LIBS here -- see comments above.
7360 echo $ac_n "checking for res_send""... $ac_c" 1>&6
7361 echo "configure:7362: checking for res_send" >&5
7362 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
7363 echo $ac_n "(cached) $ac_c" 1>&6
7365 cat > conftest.
$ac_ext <<EOF
7366 #line 7367 "configure"
7367 #include "confdefs.h"
7368 /* System header to define __stub macros and hopefully few prototypes,
7369 which can conflict with char res_send(); below. */
7371 /* Override any gcc2 internal prototype to avoid an error. */
7372 /* We use char because int might match the return type of a gcc2
7373 builtin and then its argument prototype would still apply. */
7378 /* The GNU C library defines this for functions which it implements
7379 to always fail with ENOSYS. Some functions are actually named
7380 something starting with __ and the normal name is an alias. */
7381 #if defined (__stub_res_send) || defined (__stub___res_send)
7389 if { (eval echo configure
:7390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7391 eval "ac_cv_func_res_send=yes"
7393 echo "configure: failed program was:" >&5
7394 cat conftest.
$ac_ext >&5
7396 eval "ac_cv_func_res_send=no"
7401 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
7402 echo "$ac_t""yes" 1>&6
7405 echo "$ac_t""no" 1>&6
7406 echo $ac_n "checking for __res_send""... $ac_c" 1>&6
7407 echo "configure:7408: checking for __res_send" >&5
7408 if eval "test \"`echo '$''{'ac_cv_func___res_send'+set}'`\" = set"; then
7409 echo $ac_n "(cached) $ac_c" 1>&6
7411 cat > conftest.
$ac_ext <<EOF
7412 #line 7413 "configure"
7413 #include "confdefs.h"
7414 /* System header to define __stub macros and hopefully few prototypes,
7415 which can conflict with char __res_send(); below. */
7417 /* Override any gcc2 internal prototype to avoid an error. */
7418 /* We use char because int might match the return type of a gcc2
7419 builtin and then its argument prototype would still apply. */
7424 /* The GNU C library defines this for functions which it implements
7425 to always fail with ENOSYS. Some functions are actually named
7426 something starting with __ and the normal name is an alias. */
7427 #if defined (__stub___res_send) || defined (__stub_____res_send)
7435 if { (eval echo configure
:7436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7437 eval "ac_cv_func___res_send=yes"
7439 echo "configure: failed program was:" >&5
7440 cat conftest.
$ac_ext >&5
7442 eval "ac_cv_func___res_send=no"
7447 if eval "test \"`echo '$ac_cv_func_'__res_send`\" = yes"; then
7448 echo "$ac_t""yes" 1>&6
7451 echo "$ac_t""no" 1>&6
7452 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
7453 echo "configure:7454: checking for res_send in -lresolv" >&5
7454 ac_lib_var
=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
7455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7456 echo $ac_n "(cached) $ac_c" 1>&6
7458 ac_save_LIBS
="$LIBS"
7459 LIBS
="-lresolv $LIBS"
7460 cat > conftest.
$ac_ext <<EOF
7461 #line 7462 "configure"
7462 #include "confdefs.h"
7463 /* Override any gcc2 internal prototype to avoid an error. */
7464 /* We use char because int might match the return type of a gcc2
7465 builtin and then its argument prototype would still apply. */
7472 if { (eval echo configure
:7473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7474 eval "ac_cv_lib_$ac_lib_var=yes"
7476 echo "configure: failed program was:" >&5
7477 cat conftest.
$ac_ext >&5
7479 eval "ac_cv_lib_$ac_lib_var=no"
7482 LIBS
="$ac_save_LIBS"
7485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7486 echo "$ac_t""yes" 1>&6
7489 echo "$ac_t""no" 1>&6
7490 echo $ac_n "checking for __res_send in -lresolv""... $ac_c" 1>&6
7491 echo "configure:7492: checking for __res_send in -lresolv" >&5
7492 ac_lib_var
=`echo resolv'_'__res_send | sed 'y%./+-%__p_%'`
7493 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7494 echo $ac_n "(cached) $ac_c" 1>&6
7496 ac_save_LIBS
="$LIBS"
7497 LIBS
="-lresolv $LIBS"
7498 cat > conftest.
$ac_ext <<EOF
7499 #line 7500 "configure"
7500 #include "confdefs.h"
7501 /* Override any gcc2 internal prototype to avoid an error. */
7502 /* We use char because int might match the return type of a gcc2
7503 builtin and then its argument prototype would still apply. */
7510 if { (eval echo configure
:7511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7512 eval "ac_cv_lib_$ac_lib_var=yes"
7514 echo "configure: failed program was:" >&5
7515 cat conftest.
$ac_ext >&5
7517 eval "ac_cv_lib_$ac_lib_var=no"
7520 LIBS
="$ac_save_LIBS"
7523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7524 echo "$ac_t""yes" 1>&6
7527 echo "$ac_t""no" 1>&6
7536 if test "$resolv" = yes ; then
7538 cat >> confdefs.h
<<\EOF
7539 #define HAVE_LIBRESOLV 1
7545 echo $ac_n "checking for hes_getmailhost""... $ac_c" 1>&6
7546 echo "configure:7547: checking for hes_getmailhost" >&5
7547 if eval "test \"`echo '$''{'ac_cv_func_hes_getmailhost'+set}'`\" = set"; then
7548 echo $ac_n "(cached) $ac_c" 1>&6
7550 cat > conftest.
$ac_ext <<EOF
7551 #line 7552 "configure"
7552 #include "confdefs.h"
7553 /* System header to define __stub macros and hopefully few prototypes,
7554 which can conflict with char hes_getmailhost(); below. */
7556 /* Override any gcc2 internal prototype to avoid an error. */
7557 /* We use char because int might match the return type of a gcc2
7558 builtin and then its argument prototype would still apply. */
7559 char hes_getmailhost();
7563 /* The GNU C library defines this for functions which it implements
7564 to always fail with ENOSYS. Some functions are actually named
7565 something starting with __ and the normal name is an alias. */
7566 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
7574 if { (eval echo configure
:7575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7576 eval "ac_cv_func_hes_getmailhost=yes"
7578 echo "configure: failed program was:" >&5
7579 cat conftest.
$ac_ext >&5
7581 eval "ac_cv_func_hes_getmailhost=no"
7586 if eval "test \"`echo '$ac_cv_func_'hes_getmailhost`\" = yes"; then
7587 echo "$ac_t""yes" 1>&6
7590 echo "$ac_t""no" 1>&6
7591 echo $ac_n "checking for hes_getmailhost in -lhesiod""... $ac_c" 1>&6
7592 echo "configure:7593: checking for hes_getmailhost in -lhesiod" >&5
7593 ac_lib_var
=`echo hesiod'_'hes_getmailhost | sed 'y%./+-%__p_%'`
7594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7595 echo $ac_n "(cached) $ac_c" 1>&6
7597 ac_save_LIBS
="$LIBS"
7598 LIBS
="-lhesiod $RESOLVLIB $LIBS"
7599 cat > conftest.
$ac_ext <<EOF
7600 #line 7601 "configure"
7601 #include "confdefs.h"
7602 /* Override any gcc2 internal prototype to avoid an error. */
7603 /* We use char because int might match the return type of a gcc2
7604 builtin and then its argument prototype would still apply. */
7605 char hes_getmailhost();
7611 if { (eval echo configure
:7612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7613 eval "ac_cv_lib_$ac_lib_var=yes"
7615 echo "configure: failed program was:" >&5
7616 cat conftest.
$ac_ext >&5
7618 eval "ac_cv_lib_$ac_lib_var=no"
7621 LIBS
="$ac_save_LIBS"
7624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7625 echo "$ac_t""yes" 1>&6
7626 cat >> confdefs.h
<<\EOF
7627 #define HAVE_LIBHESIOD 1
7631 echo "$ac_t""no" 1>&6
7639 # These tell us which Kerberos-related libraries to use.
7640 if test "${with_kerberos+set}" = set; then
7641 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
7642 echo "configure:7643: checking for com_err in -lcom_err" >&5
7643 ac_lib_var
=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
7644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7645 echo $ac_n "(cached) $ac_c" 1>&6
7647 ac_save_LIBS
="$LIBS"
7648 LIBS
="-lcom_err $LIBS"
7649 cat > conftest.
$ac_ext <<EOF
7650 #line 7651 "configure"
7651 #include "confdefs.h"
7652 /* Override any gcc2 internal prototype to avoid an error. */
7653 /* We use char because int might match the return type of a gcc2
7654 builtin and then its argument prototype would still apply. */
7661 if { (eval echo configure
:7662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7663 eval "ac_cv_lib_$ac_lib_var=yes"
7665 echo "configure: failed program was:" >&5
7666 cat conftest.
$ac_ext >&5
7668 eval "ac_cv_lib_$ac_lib_var=no"
7671 LIBS
="$ac_save_LIBS"
7674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7675 echo "$ac_t""yes" 1>&6
7676 ac_tr_lib
=HAVE_LIB
`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7677 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7678 cat >> confdefs.h
<<EOF
7679 #define $ac_tr_lib 1
7682 LIBS
="-lcom_err $LIBS"
7685 echo "$ac_t""no" 1>&6
7688 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
7689 echo "configure:7690: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
7690 ac_lib_var
=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7691 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7692 echo $ac_n "(cached) $ac_c" 1>&6
7694 ac_save_LIBS
="$LIBS"
7695 LIBS
="-lk5crypto $LIBS"
7696 cat > conftest.
$ac_ext <<EOF
7697 #line 7698 "configure"
7698 #include "confdefs.h"
7699 /* Override any gcc2 internal prototype to avoid an error. */
7700 /* We use char because int might match the return type of a gcc2
7701 builtin and then its argument prototype would still apply. */
7702 char mit_des_cbc_encrypt();
7705 mit_des_cbc_encrypt()
7708 if { (eval echo configure
:7709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7710 eval "ac_cv_lib_$ac_lib_var=yes"
7712 echo "configure: failed program was:" >&5
7713 cat conftest.
$ac_ext >&5
7715 eval "ac_cv_lib_$ac_lib_var=no"
7718 LIBS
="$ac_save_LIBS"
7721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7722 echo "$ac_t""yes" 1>&6
7723 ac_tr_lib
=HAVE_LIB
`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7724 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7725 cat >> confdefs.h
<<EOF
7726 #define $ac_tr_lib 1
7729 LIBS
="-lk5crypto $LIBS"
7732 echo "$ac_t""no" 1>&6
7735 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
7736 echo "configure:7737: checking for mit_des_cbc_encrypt in -lcrypto" >&5
7737 ac_lib_var
=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7739 echo $ac_n "(cached) $ac_c" 1>&6
7741 ac_save_LIBS
="$LIBS"
7742 LIBS
="-lcrypto $LIBS"
7743 cat > conftest.
$ac_ext <<EOF
7744 #line 7745 "configure"
7745 #include "confdefs.h"
7746 /* Override any gcc2 internal prototype to avoid an error. */
7747 /* We use char because int might match the return type of a gcc2
7748 builtin and then its argument prototype would still apply. */
7749 char mit_des_cbc_encrypt();
7752 mit_des_cbc_encrypt()
7755 if { (eval echo configure
:7756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7757 eval "ac_cv_lib_$ac_lib_var=yes"
7759 echo "configure: failed program was:" >&5
7760 cat conftest.
$ac_ext >&5
7762 eval "ac_cv_lib_$ac_lib_var=no"
7765 LIBS
="$ac_save_LIBS"
7768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7769 echo "$ac_t""yes" 1>&6
7770 ac_tr_lib
=HAVE_LIB
`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7771 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7772 cat >> confdefs.h
<<EOF
7773 #define $ac_tr_lib 1
7776 LIBS
="-lcrypto $LIBS"
7779 echo "$ac_t""no" 1>&6
7782 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
7783 echo "configure:7784: checking for krb5_init_context in -lkrb5" >&5
7784 ac_lib_var
=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
7785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7786 echo $ac_n "(cached) $ac_c" 1>&6
7788 ac_save_LIBS
="$LIBS"
7790 cat > conftest.
$ac_ext <<EOF
7791 #line 7792 "configure"
7792 #include "confdefs.h"
7793 /* Override any gcc2 internal prototype to avoid an error. */
7794 /* We use char because int might match the return type of a gcc2
7795 builtin and then its argument prototype would still apply. */
7796 char krb5_init_context();
7802 if { (eval echo configure
:7803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7804 eval "ac_cv_lib_$ac_lib_var=yes"
7806 echo "configure: failed program was:" >&5
7807 cat conftest.
$ac_ext >&5
7809 eval "ac_cv_lib_$ac_lib_var=no"
7812 LIBS
="$ac_save_LIBS"
7815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7816 echo "$ac_t""yes" 1>&6
7817 ac_tr_lib
=HAVE_LIB
`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7818 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7819 cat >> confdefs.h
<<EOF
7820 #define $ac_tr_lib 1
7826 echo "$ac_t""no" 1>&6
7829 if test "${with_kerberos5+set}" != set; then
7830 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
7831 echo "configure:7832: checking for des_cbc_encrypt in -ldes425" >&5
7832 ac_lib_var
=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7834 echo $ac_n "(cached) $ac_c" 1>&6
7836 ac_save_LIBS
="$LIBS"
7837 LIBS
="-ldes425 $LIBS"
7838 cat > conftest.
$ac_ext <<EOF
7839 #line 7840 "configure"
7840 #include "confdefs.h"
7841 /* Override any gcc2 internal prototype to avoid an error. */
7842 /* We use char because int might match the return type of a gcc2
7843 builtin and then its argument prototype would still apply. */
7844 char des_cbc_encrypt();
7850 if { (eval echo configure
:7851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7852 eval "ac_cv_lib_$ac_lib_var=yes"
7854 echo "configure: failed program was:" >&5
7855 cat conftest.
$ac_ext >&5
7857 eval "ac_cv_lib_$ac_lib_var=no"
7860 LIBS
="$ac_save_LIBS"
7863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7864 echo "$ac_t""yes" 1>&6
7865 ac_tr_lib
=HAVE_LIB
`echo des425 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7866 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7867 cat >> confdefs.h
<<EOF
7868 #define $ac_tr_lib 1
7871 LIBS
="-ldes425 $LIBS"
7874 echo "$ac_t""no" 1>&6
7875 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
7876 echo "configure:7877: checking for des_cbc_encrypt in -ldes" >&5
7877 ac_lib_var
=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7878 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7879 echo $ac_n "(cached) $ac_c" 1>&6
7881 ac_save_LIBS
="$LIBS"
7883 cat > conftest.
$ac_ext <<EOF
7884 #line 7885 "configure"
7885 #include "confdefs.h"
7886 /* Override any gcc2 internal prototype to avoid an error. */
7887 /* We use char because int might match the return type of a gcc2
7888 builtin and then its argument prototype would still apply. */
7889 char des_cbc_encrypt();
7895 if { (eval echo configure
:7896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7897 eval "ac_cv_lib_$ac_lib_var=yes"
7899 echo "configure: failed program was:" >&5
7900 cat conftest.
$ac_ext >&5
7902 eval "ac_cv_lib_$ac_lib_var=no"
7905 LIBS
="$ac_save_LIBS"
7908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7909 echo "$ac_t""yes" 1>&6
7910 ac_tr_lib
=HAVE_LIB
`echo des | sed -e 's/^a-zA-Z0-9_/_/g' \
7911 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7912 cat >> confdefs.h
<<EOF
7913 #define $ac_tr_lib 1
7919 echo "$ac_t""no" 1>&6
7924 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
7925 echo "configure:7926: checking for krb_get_cred in -lkrb4" >&5
7926 ac_lib_var
=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
7927 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7928 echo $ac_n "(cached) $ac_c" 1>&6
7930 ac_save_LIBS
="$LIBS"
7932 cat > conftest.
$ac_ext <<EOF
7933 #line 7934 "configure"
7934 #include "confdefs.h"
7935 /* Override any gcc2 internal prototype to avoid an error. */
7936 /* We use char because int might match the return type of a gcc2
7937 builtin and then its argument prototype would still apply. */
7938 char krb_get_cred();
7944 if { (eval echo configure
:7945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7946 eval "ac_cv_lib_$ac_lib_var=yes"
7948 echo "configure: failed program was:" >&5
7949 cat conftest.
$ac_ext >&5
7951 eval "ac_cv_lib_$ac_lib_var=no"
7954 LIBS
="$ac_save_LIBS"
7957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7958 echo "$ac_t""yes" 1>&6
7959 ac_tr_lib
=HAVE_LIB
`echo krb4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7960 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7961 cat >> confdefs.h
<<EOF
7962 #define $ac_tr_lib 1
7968 echo "$ac_t""no" 1>&6
7969 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
7970 echo "configure:7971: checking for krb_get_cred in -lkrb" >&5
7971 ac_lib_var
=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
7972 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7973 echo $ac_n "(cached) $ac_c" 1>&6
7975 ac_save_LIBS
="$LIBS"
7977 cat > conftest.
$ac_ext <<EOF
7978 #line 7979 "configure"
7979 #include "confdefs.h"
7980 /* Override any gcc2 internal prototype to avoid an error. */
7981 /* We use char because int might match the return type of a gcc2
7982 builtin and then its argument prototype would still apply. */
7983 char krb_get_cred();
7989 if { (eval echo configure
:7990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7991 eval "ac_cv_lib_$ac_lib_var=yes"
7993 echo "configure: failed program was:" >&5
7994 cat conftest.
$ac_ext >&5
7996 eval "ac_cv_lib_$ac_lib_var=no"
7999 LIBS
="$ac_save_LIBS"
8002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8003 echo "$ac_t""yes" 1>&6
8004 ac_tr_lib
=HAVE_LIB
`echo krb | sed -e 's/^a-zA-Z0-9_/_/g' \
8005 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8006 cat >> confdefs.h
<<EOF
8007 #define $ac_tr_lib 1
8013 echo "$ac_t""no" 1>&6
8020 if test "${with_kerberos5+set}" = set; then
8021 for ac_hdr
in krb5.h
8023 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8024 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8025 echo "configure:8026: checking for $ac_hdr" >&5
8026 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8027 echo $ac_n "(cached) $ac_c" 1>&6
8029 cat > conftest.
$ac_ext <<EOF
8030 #line 8031 "configure"
8031 #include "confdefs.h"
8034 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8035 { (eval echo configure
:8036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8036 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8037 if test -z "$ac_err"; then
8039 eval "ac_cv_header_$ac_safe=yes"
8042 echo "configure: failed program was:" >&5
8043 cat conftest.
$ac_ext >&5
8045 eval "ac_cv_header_$ac_safe=no"
8049 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8050 echo "$ac_t""yes" 1>&6
8051 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8052 cat >> confdefs.h
<<EOF
8053 #define $ac_tr_hdr 1
8057 echo "$ac_t""no" 1>&6
8064 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8065 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8066 echo "configure:8067: checking for $ac_hdr" >&5
8067 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8068 echo $ac_n "(cached) $ac_c" 1>&6
8070 cat > conftest.
$ac_ext <<EOF
8071 #line 8072 "configure"
8072 #include "confdefs.h"
8075 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8076 { (eval echo configure
:8077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8077 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8078 if test -z "$ac_err"; then
8080 eval "ac_cv_header_$ac_safe=yes"
8083 echo "configure: failed program was:" >&5
8084 cat conftest.
$ac_ext >&5
8086 eval "ac_cv_header_$ac_safe=no"
8090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8091 echo "$ac_t""yes" 1>&6
8092 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8093 cat >> confdefs.h
<<EOF
8094 #define $ac_tr_hdr 1
8098 echo "$ac_t""no" 1>&6
8099 for ac_hdr
in kerberosIV
/des.h
8101 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8102 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8103 echo "configure:8104: checking for $ac_hdr" >&5
8104 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8105 echo $ac_n "(cached) $ac_c" 1>&6
8107 cat > conftest.
$ac_ext <<EOF
8108 #line 8109 "configure"
8109 #include "confdefs.h"
8112 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8113 { (eval echo configure
:8114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8114 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8115 if test -z "$ac_err"; then
8117 eval "ac_cv_header_$ac_safe=yes"
8120 echo "configure: failed program was:" >&5
8121 cat conftest.
$ac_ext >&5
8123 eval "ac_cv_header_$ac_safe=no"
8127 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8128 echo "$ac_t""yes" 1>&6
8129 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8130 cat >> confdefs.h
<<EOF
8131 #define $ac_tr_hdr 1
8135 echo "$ac_t""no" 1>&6
8136 for ac_hdr
in kerberos
/des.h
8138 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8139 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8140 echo "configure:8141: checking for $ac_hdr" >&5
8141 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8142 echo $ac_n "(cached) $ac_c" 1>&6
8144 cat > conftest.
$ac_ext <<EOF
8145 #line 8146 "configure"
8146 #include "confdefs.h"
8149 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8150 { (eval echo configure
:8151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8151 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8152 if test -z "$ac_err"; then
8154 eval "ac_cv_header_$ac_safe=yes"
8157 echo "configure: failed program was:" >&5
8158 cat conftest.
$ac_ext >&5
8160 eval "ac_cv_header_$ac_safe=no"
8164 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8165 echo "$ac_t""yes" 1>&6
8166 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8167 cat >> confdefs.h
<<EOF
8168 #define $ac_tr_hdr 1
8172 echo "$ac_t""no" 1>&6
8184 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8185 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8186 echo "configure:8187: checking for $ac_hdr" >&5
8187 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8188 echo $ac_n "(cached) $ac_c" 1>&6
8190 cat > conftest.
$ac_ext <<EOF
8191 #line 8192 "configure"
8192 #include "confdefs.h"
8195 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8196 { (eval echo configure
:8197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8197 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8198 if test -z "$ac_err"; then
8200 eval "ac_cv_header_$ac_safe=yes"
8203 echo "configure: failed program was:" >&5
8204 cat conftest.
$ac_ext >&5
8206 eval "ac_cv_header_$ac_safe=no"
8210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8211 echo "$ac_t""yes" 1>&6
8212 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8213 cat >> confdefs.h
<<EOF
8214 #define $ac_tr_hdr 1
8218 echo "$ac_t""no" 1>&6
8219 for ac_hdr
in kerberosIV
/krb.h
8221 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8223 echo "configure:8224: checking for $ac_hdr" >&5
8224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8225 echo $ac_n "(cached) $ac_c" 1>&6
8227 cat > conftest.
$ac_ext <<EOF
8228 #line 8229 "configure"
8229 #include "confdefs.h"
8232 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8233 { (eval echo configure
:8234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8234 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8235 if test -z "$ac_err"; then
8237 eval "ac_cv_header_$ac_safe=yes"
8240 echo "configure: failed program was:" >&5
8241 cat conftest.
$ac_ext >&5
8243 eval "ac_cv_header_$ac_safe=no"
8247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8248 echo "$ac_t""yes" 1>&6
8249 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8250 cat >> confdefs.h
<<EOF
8251 #define $ac_tr_hdr 1
8255 echo "$ac_t""no" 1>&6
8256 for ac_hdr
in kerberos
/krb.h
8258 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8259 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8260 echo "configure:8261: checking for $ac_hdr" >&5
8261 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8262 echo $ac_n "(cached) $ac_c" 1>&6
8264 cat > conftest.
$ac_ext <<EOF
8265 #line 8266 "configure"
8266 #include "confdefs.h"
8269 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8270 { (eval echo configure
:8271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8271 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8272 if test -z "$ac_err"; then
8274 eval "ac_cv_header_$ac_safe=yes"
8277 echo "configure: failed program was:" >&5
8278 cat conftest.
$ac_ext >&5
8280 eval "ac_cv_header_$ac_safe=no"
8284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8285 echo "$ac_t""yes" 1>&6
8286 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8287 cat >> confdefs.h
<<EOF
8288 #define $ac_tr_hdr 1
8292 echo "$ac_t""no" 1>&6
8303 for ac_hdr
in com_err.h
8305 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8306 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8307 echo "configure:8308: checking for $ac_hdr" >&5
8308 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8309 echo $ac_n "(cached) $ac_c" 1>&6
8311 cat > conftest.
$ac_ext <<EOF
8312 #line 8313 "configure"
8313 #include "confdefs.h"
8316 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8317 { (eval echo configure
:8318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8318 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8319 if test -z "$ac_err"; then
8321 eval "ac_cv_header_$ac_safe=yes"
8324 echo "configure: failed program was:" >&5
8325 cat conftest.
$ac_ext >&5
8327 eval "ac_cv_header_$ac_safe=no"
8331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8332 echo "$ac_t""yes" 1>&6
8333 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8334 cat >> confdefs.h
<<EOF
8335 #define $ac_tr_hdr 1
8339 echo "$ac_t""no" 1>&6
8345 # Solaris requires -lintl if you want strerror (which calls dgettext)
8346 # to return localized messages.
8347 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
8348 echo "configure:8349: checking for dgettext in -lintl" >&5
8349 ac_lib_var
=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
8350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8351 echo $ac_n "(cached) $ac_c" 1>&6
8353 ac_save_LIBS
="$LIBS"
8355 cat > conftest.
$ac_ext <<EOF
8356 #line 8357 "configure"
8357 #include "confdefs.h"
8358 /* Override any gcc2 internal prototype to avoid an error. */
8359 /* We use char because int might match the return type of a gcc2
8360 builtin and then its argument prototype would still apply. */
8367 if { (eval echo configure
:8368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8369 eval "ac_cv_lib_$ac_lib_var=yes"
8371 echo "configure: failed program was:" >&5
8372 cat conftest.
$ac_ext >&5
8374 eval "ac_cv_lib_$ac_lib_var=no"
8377 LIBS
="$ac_save_LIBS"
8380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8381 echo "$ac_t""yes" 1>&6
8382 ac_tr_lib
=HAVE_LIB
`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8383 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8384 cat >> confdefs.h
<<EOF
8385 #define $ac_tr_lib 1
8391 echo "$ac_t""no" 1>&6
8395 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
8396 echo "configure:8397: checking whether localtime caches TZ" >&5
8397 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
8398 echo $ac_n "(cached) $ac_c" 1>&6
8400 if test x
$ac_cv_func_tzset = xyes
; then
8401 if test "$cross_compiling" = yes; then
8402 # If we have tzset, assume the worst when cross-compiling.
8403 emacs_cv_localtime_cache
=yes
8405 cat > conftest.
$ac_ext <<EOF
8406 #line 8407 "configure"
8407 #include "confdefs.h"
8409 extern char **environ;
8413 for (to = from = environ; (*to = *from); from++)
8414 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
8417 char TZ_GMT0[] = "TZ=GMT0";
8418 char TZ_PST8[] = "TZ=PST8";
8421 time_t now = time ((time_t *) 0);
8422 int hour_GMT0, hour_unset;
8423 if (putenv (TZ_GMT0) != 0)
8425 hour_GMT0 = localtime (&now)->tm_hour;
8427 hour_unset = localtime (&now)->tm_hour;
8428 if (putenv (TZ_PST8) != 0)
8430 if (localtime (&now)->tm_hour == hour_GMT0)
8433 if (localtime (&now)->tm_hour != hour_unset)
8438 if { (eval echo configure
:8439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8440 emacs_cv_localtime_cache
=no
8442 echo "configure: failed program was:" >&5
8443 cat conftest.
$ac_ext >&5
8445 emacs_cv_localtime_cache
=yes
8451 # If we lack tzset, report that localtime does not cache TZ,
8452 # since we can't invalidate the cache if we don't have tzset.
8453 emacs_cv_localtime_cache
=no
8456 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
8457 if test $emacs_cv_localtime_cache = yes; then
8458 cat >> confdefs.h
<<\EOF
8459 #define LOCALTIME_CACHE 1
8464 if test "x$HAVE_TIMEVAL" = xyes
; then
8465 for ac_func
in gettimeofday
8467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8468 echo "configure:8469: checking for $ac_func" >&5
8469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8470 echo $ac_n "(cached) $ac_c" 1>&6
8472 cat > conftest.
$ac_ext <<EOF
8473 #line 8474 "configure"
8474 #include "confdefs.h"
8475 /* System header to define __stub macros and hopefully few prototypes,
8476 which can conflict with char $ac_func(); below. */
8478 /* Override any gcc2 internal prototype to avoid an error. */
8479 /* We use char because int might match the return type of a gcc2
8480 builtin and then its argument prototype would still apply. */
8485 /* The GNU C library defines this for functions which it implements
8486 to always fail with ENOSYS. Some functions are actually named
8487 something starting with __ and the normal name is an alias. */
8488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8496 if { (eval echo configure
:8497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8498 eval "ac_cv_func_$ac_func=yes"
8500 echo "configure: failed program was:" >&5
8501 cat conftest.
$ac_ext >&5
8503 eval "ac_cv_func_$ac_func=no"
8508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8509 echo "$ac_t""yes" 1>&6
8510 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8511 cat >> confdefs.h
<<EOF
8512 #define $ac_tr_func 1
8516 echo "$ac_t""no" 1>&6
8520 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
8521 echo "configure:8522: checking whether gettimeofday can accept two arguments" >&5
8522 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
8523 echo $ac_n "(cached) $ac_c" 1>&6
8525 cat > conftest.
$ac_ext <<EOF
8526 #line 8527 "configure"
8527 #include "confdefs.h"
8529 #ifdef TIME_WITH_SYS_TIME
8530 #include <sys/time.h>
8533 #ifdef HAVE_SYS_TIME_H
8534 #include <sys/time.h>
8540 struct timeval time;
8541 gettimeofday (&time, 0);
8544 if { (eval echo configure
:8545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8546 emacs_cv_gettimeofday_two_arguments
=yes
8548 echo "configure: failed program was:" >&5
8549 cat conftest.
$ac_ext >&5
8551 emacs_cv_gettimeofday_two_arguments
=no
8556 echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6
8557 if test $emacs_cv_gettimeofday_two_arguments = no
; then
8558 cat >> confdefs.h
<<\EOF
8559 #define GETTIMEOFDAY_ONE_ARGUMENT 1
8565 if test "$ac_cv_func_gettimeofday" = yes; then
8566 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6
8567 echo "configure:8568: checking for struct timezone" >&5
8568 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then
8569 echo $ac_n "(cached) $ac_c" 1>&6
8571 cat > conftest.
$ac_ext <<EOF
8572 #line 8573 "configure"
8573 #include "confdefs.h"
8574 #include <sys/time.h>
8579 if { (eval echo configure
:8580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8581 if test "$cross_compiling" = yes; then
8582 emacs_cv_struct_timezone
=yes
8584 cat > conftest.
$ac_ext <<EOF
8585 #line 8586 "configure"
8586 #include "confdefs.h"
8588 #ifdef TIME_WITH_SYS_TIME
8589 #include <sys/time.h>
8592 #ifdef HAVE_SYS_TIME_H
8593 #include <sys/time.h>
8599 struct timeval time;
8600 struct timezone dummy;
8601 exit (gettimeofday (&time, &dummy));
8604 if { (eval echo configure
:8605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8606 emacs_cv_struct_timezone
=yes
8608 echo "configure: failed program was:" >&5
8609 cat conftest.
$ac_ext >&5
8611 emacs_cv_struct_timezone
=no
8617 echo "configure: failed program was:" >&5
8618 cat conftest.
$ac_ext >&5
8620 emacs_cv_struct_timezone
=no
8625 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6
8629 echo $ac_n "checking for socket""... $ac_c" 1>&6
8630 echo "configure:8631: checking for socket" >&5
8631 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
8632 echo $ac_n "(cached) $ac_c" 1>&6
8634 cat > conftest.
$ac_ext <<EOF
8635 #line 8636 "configure"
8636 #include "confdefs.h"
8637 /* System header to define __stub macros and hopefully few prototypes,
8638 which can conflict with char socket(); below. */
8640 /* Override any gcc2 internal prototype to avoid an error. */
8641 /* We use char because int might match the return type of a gcc2
8642 builtin and then its argument prototype would still apply. */
8647 /* The GNU C library defines this for functions which it implements
8648 to always fail with ENOSYS. Some functions are actually named
8649 something starting with __ and the normal name is an alias. */
8650 #if defined (__stub_socket) || defined (__stub___socket)
8658 if { (eval echo configure
:8659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8660 eval "ac_cv_func_socket=yes"
8662 echo "configure: failed program was:" >&5
8663 cat conftest.
$ac_ext >&5
8665 eval "ac_cv_func_socket=no"
8670 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8671 echo "$ac_t""yes" 1>&6
8674 echo "$ac_t""no" 1>&6
8678 if test $ok_so_far = yes; then
8679 ac_safe
=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8680 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8681 echo "configure:8682: checking for netinet/in.h" >&5
8682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8683 echo $ac_n "(cached) $ac_c" 1>&6
8685 cat > conftest.
$ac_ext <<EOF
8686 #line 8687 "configure"
8687 #include "confdefs.h"
8688 #include <netinet/in.h>
8690 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8691 { (eval echo configure
:8692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8692 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8693 if test -z "$ac_err"; then
8695 eval "ac_cv_header_$ac_safe=yes"
8698 echo "configure: failed program was:" >&5
8699 cat conftest.
$ac_ext >&5
8701 eval "ac_cv_header_$ac_safe=no"
8705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8706 echo "$ac_t""yes" 1>&6
8709 echo "$ac_t""no" 1>&6
8714 if test $ok_so_far = yes; then
8715 ac_safe
=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8716 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8717 echo "configure:8718: checking for arpa/inet.h" >&5
8718 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8719 echo $ac_n "(cached) $ac_c" 1>&6
8721 cat > conftest.
$ac_ext <<EOF
8722 #line 8723 "configure"
8723 #include "confdefs.h"
8724 #include <arpa/inet.h>
8726 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8727 { (eval echo configure
:8728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8728 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8729 if test -z "$ac_err"; then
8731 eval "ac_cv_header_$ac_safe=yes"
8734 echo "configure: failed program was:" >&5
8735 cat conftest.
$ac_ext >&5
8737 eval "ac_cv_header_$ac_safe=no"
8741 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8742 echo "$ac_t""yes" 1>&6
8745 echo "$ac_t""no" 1>&6
8750 if test $ok_so_far = yes; then
8751 cat >> confdefs.h
<<\EOF
8752 #define HAVE_INET_SOCKETS 1
8757 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
8758 cat >> confdefs.h
<<\EOF
8759 #define HAVE_AIX_SMT_EXP 1
8764 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
8765 echo "configure:8766: checking whether system supports dynamic ptys" >&5
8766 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
8767 echo "$ac_t""yes" 1>&6
8768 cat >> confdefs.h
<<\EOF
8769 #define HAVE_DEV_PTMX 1
8773 echo "$ac_t""no" 1>&6
8776 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8777 echo "configure:8778: checking for pid_t" >&5
8778 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8779 echo $ac_n "(cached) $ac_c" 1>&6
8781 cat > conftest.
$ac_ext <<EOF
8782 #line 8783 "configure"
8783 #include "confdefs.h"
8784 #include <sys/types.h>
8790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8791 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
8793 ac_cv_type_pid_t
=yes
8801 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8802 if test $ac_cv_type_pid_t = no
; then
8803 cat >> confdefs.h
<<\EOF
8809 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
8810 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
8811 echo "configure:8812: checking for vfork.h" >&5
8812 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8813 echo $ac_n "(cached) $ac_c" 1>&6
8815 cat > conftest.
$ac_ext <<EOF
8816 #line 8817 "configure"
8817 #include "confdefs.h"
8820 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8821 { (eval echo configure
:8822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8822 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8823 if test -z "$ac_err"; then
8825 eval "ac_cv_header_$ac_safe=yes"
8828 echo "configure: failed program was:" >&5
8829 cat conftest.
$ac_ext >&5
8831 eval "ac_cv_header_$ac_safe=no"
8835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8836 echo "$ac_t""yes" 1>&6
8837 cat >> confdefs.h
<<\EOF
8838 #define HAVE_VFORK_H 1
8842 echo "$ac_t""no" 1>&6
8845 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8846 echo "configure:8847: checking for working vfork" >&5
8847 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
8848 echo $ac_n "(cached) $ac_c" 1>&6
8850 if test "$cross_compiling" = yes; then
8851 echo $ac_n "checking for vfork""... $ac_c" 1>&6
8852 echo "configure:8853: checking for vfork" >&5
8853 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
8854 echo $ac_n "(cached) $ac_c" 1>&6
8856 cat > conftest.
$ac_ext <<EOF
8857 #line 8858 "configure"
8858 #include "confdefs.h"
8859 /* System header to define __stub macros and hopefully few prototypes,
8860 which can conflict with char vfork(); below. */
8862 /* Override any gcc2 internal prototype to avoid an error. */
8863 /* We use char because int might match the return type of a gcc2
8864 builtin and then its argument prototype would still apply. */
8869 /* The GNU C library defines this for functions which it implements
8870 to always fail with ENOSYS. Some functions are actually named
8871 something starting with __ and the normal name is an alias. */
8872 #if defined (__stub_vfork) || defined (__stub___vfork)
8880 if { (eval echo configure
:8881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8882 eval "ac_cv_func_vfork=yes"
8884 echo "configure: failed program was:" >&5
8885 cat conftest.
$ac_ext >&5
8887 eval "ac_cv_func_vfork=no"
8892 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
8893 echo "$ac_t""yes" 1>&6
8896 echo "$ac_t""no" 1>&6
8899 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8901 cat > conftest.
$ac_ext <<EOF
8902 #line 8903 "configure"
8903 #include "confdefs.h"
8904 /* Thanks to Paul Eggert for this test. */
8906 #include <sys/types.h>
8907 #include <sys/stat.h>
8908 #ifdef HAVE_UNISTD_H
8914 /* On some sparc systems, changes by the child to local and incoming
8915 argument registers are propagated back to the parent.
8916 The compiler is told about this with #include <vfork.h>,
8917 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
8918 Test for this by using a static variable whose address
8919 is put into a register that is clobbered by the vfork. */
8922 sparc_address_test (int arg)
8924 sparc_address_test (arg) int arg;
8942 pid_t parent = getpid ();
8945 sparc_address_test ();
8950 /* Here is another test for sparc vfork register problems.
8951 This test uses lots of local variables, at least
8952 as many local variables as main has allocated so far
8953 including compiler temporaries. 4 locals are enough for
8954 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
8955 A buggy compiler should reuse the register of parent
8956 for one of the local variables, since it will think that
8957 parent can't possibly be used any more in this routine.
8958 Assigning to the local variable will thus munge parent
8959 in the parent process. */
8961 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8962 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8963 /* Convince the compiler that p..p7 are live; otherwise, it might
8964 use the same hardware register for all 8 local variables. */
8965 if (p != p1 || p != p2 || p != p3 || p != p4
8966 || p != p5 || p != p6 || p != p7)
8969 /* On some systems (e.g. IRIX 3.3),
8970 vfork doesn't separate parent from child file descriptors.
8971 If the child closes a descriptor before it execs or exits,
8972 this munges the parent's descriptor as well.
8973 Test for this by closing stdout in the child. */
8974 _exit(close(fileno(stdout)) != 0);
8979 while (wait(&status) != child)
8982 /* Was there some problem with vforking? */
8985 /* Did the child fail? (This shouldn't happen.) */
8988 /* Did the vfork/compiler bug occur? */
8989 || parent != getpid()
8991 /* Did the file descriptor bug occur? */
8992 || fstat(fileno(stdout), &st) != 0
8997 if { (eval echo configure
:8998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
8999 ac_cv_func_vfork_works
=yes
9001 echo "configure: failed program was:" >&5
9002 cat conftest.
$ac_ext >&5
9004 ac_cv_func_vfork_works
=no
9011 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
9012 if test $ac_cv_func_vfork_works = no
; then
9013 cat >> confdefs.h
<<\EOF
9020 # Fixme: This should be replaced when we have autoconf 2.14.
9021 echo $ac_n "checking for size_t""... $ac_c" 1>&6
9022 echo "configure:9023: checking for size_t" >&5
9023 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9024 echo $ac_n "(cached) $ac_c" 1>&6
9026 cat > conftest.
$ac_ext <<EOF
9027 #line 9028 "configure"
9028 #include "confdefs.h"
9029 #include <sys/types.h>
9035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9036 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
9038 ac_cv_type_size_t
=yes
9041 ac_cv_type_size_t
=no
9046 echo "$ac_t""$ac_cv_type_size_t" 1>&6
9047 if test $ac_cv_type_size_t = no
; then
9048 cat >> confdefs.h
<<\EOF
9049 #define size_t unsigned
9055 # Set up the CFLAGS for real compilation, so we can substitute it.
9056 CFLAGS
="$REAL_CFLAGS"
9057 CPPFLAGS
="$REAL_CPPFLAGS"
9059 #### Find out which version of Emacs this is.
9060 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
9061 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
9062 if test x
"${version}" = x
; then
9063 { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; }
9066 ### Specify what sort of things we'll be editing into Makefile and config.h.
9067 ### Use configuration here uncanonicalized to avoid exceeding size limits.
9099 cat >> confdefs.h
<<EOF
9100 #define EMACS_CONFIGURATION "${canonical}"
9103 cat >> confdefs.h
<<EOF
9104 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
9107 cat >> confdefs.h
<<EOF
9108 #define config_machfile "${machfile}"
9111 cat >> confdefs.h
<<EOF
9112 #define config_opsysfile "${opsysfile}"
9115 cat >> confdefs.h
<<EOF
9116 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
9119 cat >> confdefs.h
<<EOF
9120 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
9123 cat >> confdefs.h
<<EOF
9124 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
9127 cat >> confdefs.h
<<EOF
9128 #define UNEXEC_SRC ${UNEXEC_SRC}
9132 if test "${HAVE_X_WINDOWS}" = "yes" ; then
9133 cat >> confdefs.h
<<\EOF
9134 #define HAVE_X_WINDOWS 1
9138 if test "${USE_X_TOOLKIT}" != "none" ; then
9139 cat >> confdefs.h
<<\EOF
9140 #define USE_X_TOOLKIT 1
9144 if test "${HAVE_X11}" = "yes" ; then
9145 cat >> confdefs.h
<<\EOF
9150 if test "${HAVE_XFREE386}" = "yes" ; then
9151 cat >> confdefs.h
<<\EOF
9152 #define HAVE_XFREE386 1
9156 if test "${HAVE_MENUS}" = "yes" ; then
9157 cat >> confdefs.h
<<\EOF
9158 #define HAVE_MENUS 1
9162 if test "${GNU_MALLOC}" = "yes" ; then
9163 cat >> confdefs.h
<<\EOF
9164 #define GNU_MALLOC 1
9168 if test "${REL_ALLOC}" = "yes" ; then
9169 cat >> confdefs.h
<<\EOF
9175 #### Report on what we decided to do.
9177 Configured for \`${canonical}'.
9179 Where should the build process find the source code? ${srcdir}
9180 What operating system and machine description files should Emacs use?
9181 \`${opsysfile}' and \`${machfile}'
9182 What compiler should emacs be built with? ${CC} ${CFLAGS}
9183 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
9184 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
9185 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
9186 What window system should Emacs use? ${window_system}
9187 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
9189 if test -n "${x_includes}"; then
9190 echo " Where do we find X Windows header files? ${x_includes}"
9192 echo " Where do we find X Windows header files? Standard dirs"
9194 if test -n "${x_libraries}"; then
9195 echo " Where do we find X Windows libraries? ${x_libraries}"
9197 echo " Where do we find X Windows libraries? Standard dirs"
9200 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
9201 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
9202 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
9203 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
9204 echo " Does Emacs use -lungif? ${HAVE_GIF}"
9205 echo " Does Emacs use -lpng? ${HAVE_PNG}"
9206 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
9209 # Remove any trailing slashes in these variables.
9210 test "${prefix}" != NONE
&&
9211 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
9212 test "${exec_prefix}" != NONE
&&
9213 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
9215 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
9216 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
9217 ## from Makefile.c can correctly provide the arg `-traditional' to the
9220 cat > conftest.
$ac_ext <<EOF
9221 #line 9222 "configure"
9222 #include "confdefs.h"
9225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9226 egrep "yes..yes" >/dev
/null
2>&1; then
9228 CPP_NEED_TRADITIONAL
=no
9231 CPP_NEED_TRADITIONAL
=yes
9237 cat > confcache
<<\EOF
9238 # This file is a shell script that caches the results of configure
9239 # tests run on this system so they can be shared between configure
9240 # scripts and configure runs. It is not useful on other systems.
9241 # If it contains results you don't want to keep, you may remove or edit it.
9243 # By default, configure uses ./config.cache as the cache file,
9244 # creating it if it does not exist already. You can give configure
9245 # the --cache-file=FILE option to use a different cache file; that is
9246 # what configure does when it calls configure scripts in
9247 # subdirectories, so they share the cache.
9248 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9249 # config.status only pays attention to the cache file if you give it the
9250 # --recheck option to rerun configure.
9253 # The following way of writing the cache mishandles newlines in values,
9254 # but we know of no workaround that is simple, portable, and efficient.
9255 # So, don't put newlines in cache variables' values.
9256 # Ultrix sh set writes to stderr and can't be redirected directly,
9257 # and sets the high bit in the cache file unless we assign to the vars.
9259 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9261 # `set' does not quote correctly, so add quotes (double-quote substitution
9262 # turns \\\\ into \\, and sed turns \\ into \).
9264 -e "s/'/'\\\\''/g" \
9265 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9268 # `set' quotes correctly as required by POSIX, so do not add quotes.
9269 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9272 if cmp -s $cache_file confcache
; then
9275 if test -w $cache_file; then
9276 echo "updating cache $cache_file"
9277 cat confcache
> $cache_file
9279 echo "not updating unwritable cache $cache_file"
9284 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9286 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9287 # Let make expand exec_prefix.
9288 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9290 # Any assignment to VPATH causes Sun make to only execute
9291 # the first set of double-colon rules, so remove it if not needed.
9292 # If there is a colon in the path, we need to keep it.
9293 if test "x$srcdir" = x.
; then
9294 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
9297 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9299 DEFS
=-DHAVE_CONFIG_H
9301 # Without the "./", some shells look in PATH for config.status.
9302 : ${CONFIG_STATUS=./config.status}
9304 echo creating
$CONFIG_STATUS
9305 rm -f $CONFIG_STATUS
9306 cat > $CONFIG_STATUS <<EOF
9308 # Generated automatically by configure.
9309 # Run this file to recreate the current configuration.
9310 # This directory was configured as follows,
9311 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9313 # $0 $ac_configure_args
9315 # Compiler output produced by configure, useful for debugging
9316 # configure, is in ./config.log if it exists.
9318 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9321 case "\$ac_option" in
9322 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9323 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9324 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9325 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9326 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9328 -help | --help | --hel | --he | --h)
9329 echo "\$ac_cs_usage"; exit 0 ;;
9330 *) echo "\$ac_cs_usage"; exit 1 ;;
9334 ac_given_srcdir=$srcdir
9335 ac_given_INSTALL="$INSTALL"
9337 trap 'rm -fr `echo "Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
9338 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
9339 lisp/Makefile leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9341 cat >> $CONFIG_STATUS <<EOF
9343 # Protect against being on the right side of a sed subst in config.status.
9344 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9345 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9349 s%@CFLAGS@%$CFLAGS%g
9350 s%@CPPFLAGS@%$CPPFLAGS%g
9351 s%@CXXFLAGS@%$CXXFLAGS%g
9352 s%@FFLAGS@%$FFLAGS%g
9354 s%@LDFLAGS@%$LDFLAGS%g
9356 s%@exec_prefix@%$exec_prefix%g
9357 s%@prefix@%$prefix%g
9358 s%@program_transform_name@%$program_transform_name%g
9359 s%@bindir@%$bindir%g
9360 s%@sbindir@%$sbindir%g
9361 s%@libexecdir@%$libexecdir%g
9362 s%@datadir@%$datadir%g
9363 s%@sysconfdir@%$sysconfdir%g
9364 s%@sharedstatedir@%$sharedstatedir%g
9365 s%@localstatedir@%$localstatedir%g
9366 s%@libdir@%$libdir%g
9367 s%@includedir@%$includedir%g
9368 s%@oldincludedir@%$oldincludedir%g
9369 s%@infodir@%$infodir%g
9370 s%@mandir@%$mandir%g
9372 s%@host_alias@%$host_alias%g
9373 s%@host_cpu@%$host_cpu%g
9374 s%@host_vendor@%$host_vendor%g
9375 s%@host_os@%$host_os%g
9379 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9380 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9381 s%@INSTALL_DATA@%$INSTALL_DATA%g
9383 s%@RANLIB@%$RANLIB%g
9384 s%@LIBSOUND@%$LIBSOUND%g
9385 s%@SET_MAKE@%$SET_MAKE%g
9386 s%@ALLOCA@%$ALLOCA%g
9387 s%@liblockfile@%$liblockfile%g
9388 s%@LIBOBJS@%$LIBOBJS%g
9389 s%@NEED_SETGID@%$NEED_SETGID%g
9390 s%@KMEM_GROUP@%$KMEM_GROUP%g
9391 s%@version@%$version%g
9392 s%@configuration@%$configuration%g
9393 s%@canonical@%$canonical%g
9394 s%@srcdir@%$srcdir%g
9395 s%@lispdir@%$lispdir%g
9396 s%@locallisppath@%$locallisppath%g
9397 s%@lisppath@%$lisppath%g
9398 s%@x_default_search_path@%$x_default_search_path%g
9399 s%@etcdir@%$etcdir%g
9400 s%@archlibdir@%$archlibdir%g
9401 s%@docdir@%$docdir%g
9402 s%@bitmapdir@%$bitmapdir%g
9403 s%@c_switch_system@%$c_switch_system%g
9404 s%@c_switch_machine@%$c_switch_machine%g
9405 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g
9406 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g
9407 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g
9408 s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g
9409 s%@machfile@%$machfile%g
9410 s%@opsysfile@%$opsysfile%g
9411 s%@GETLOADAVG_LIBS@%$GETLOADAVG_LIBS%g
9416 cat >> $CONFIG_STATUS <<\EOF
9418 # Split the substitutions into bite-sized pieces for seds with
9419 # small command number limits, like on Digital OSF/1 and HP-UX.
9420 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
9421 ac_file
=1 # Number of current file.
9422 ac_beg
=1 # First line for current file.
9423 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
9426 while $ac_more_lines; do
9427 if test $ac_beg -gt 1; then
9428 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
9430 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
9432 if test ! -s conftest.s
$ac_file; then
9434 rm -f conftest.s
$ac_file
9436 if test -z "$ac_sed_cmds"; then
9437 ac_sed_cmds
="sed -f conftest.s$ac_file"
9439 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
9441 ac_file
=`expr $ac_file + 1`
9443 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
9446 if test -z "$ac_sed_cmds"; then
9451 cat >> $CONFIG_STATUS <<EOF
9453 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
9454 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
9455 lisp/Makefile leim/Makefile"}
9457 cat >> $CONFIG_STATUS <<\EOF
9458 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
9459 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9461 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9462 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9463 *) ac_file_in
="${ac_file}.in" ;;
9466 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9468 # Remove last slash and all that follows it. Not all systems have dirname.
9469 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9470 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9471 # The file is in a subdirectory.
9472 test ! -d "$ac_dir" && mkdir
"$ac_dir"
9473 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
9474 # A "../" for each directory in $ac_dir_suffix.
9475 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9477 ac_dir_suffix
= ac_dots
=
9480 case "$ac_given_srcdir" in
9482 if test -z "$ac_dots"; then top_srcdir
=.
9483 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9484 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
9486 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9487 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
9490 case "$ac_given_INSTALL" in
9491 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
9492 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
9495 echo creating
"$ac_file"
9497 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9499 *Makefile
*) ac_comsub
="1i\\
9500 # $configure_input" ;;
9504 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9506 s%@configure_input@%$configure_input%g
9507 s%@srcdir@%$srcdir%g
9508 s%@top_srcdir@%$top_srcdir%g
9509 s%@INSTALL@%$INSTALL%g
9510 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
9514 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9515 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9517 # ac_d sets the value in "#define NAME VALUE" lines.
9518 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9519 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
9522 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9523 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9524 ac_uB
='\([ ]\)%\1#\2define\3'
9527 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9528 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9529 ac_eB
='$%\1#\2define\3'
9533 if test "${CONFIG_HEADERS+set}" != set; then
9535 cat >> $CONFIG_STATUS <<EOF
9536 CONFIG_HEADERS="src/config.h:src/config.in"
9538 cat >> $CONFIG_STATUS <<\EOF
9540 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9541 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9543 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9544 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9545 *) ac_file_in
="${ac_file}.in" ;;
9548 echo creating
$ac_file
9550 rm -f conftest.frag conftest.
in conftest.out
9551 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9552 cat $ac_file_inputs > conftest.
in
9556 # Transform confdefs.h into a sed script conftest.vals that substitutes
9557 # the proper values into config.h.in to produce config.h. And first:
9558 # Protect against being on the right side of a sed subst in config.status.
9559 # Protect against being in an unquoted here document in config.status.
9561 cat > conftest.hdr
<<\EOF
9564 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9568 sed -n -f conftest.hdr confdefs.h > conftest.vals
9571 # This sed command replaces #undef with comments. This is necessary, for
9572 # example, in the case of _POSIX_SOURCE, which is predefined and required
9573 # on some systems where configure will not decide to define it.
9574 cat >> conftest.vals <<\EOF
9575 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9578 # Break up conftest.vals because some shells have a limit on
9579 # the size of here documents, and old seds have small limits too.
9584 ac_lines=`grep -c . conftest.vals
`
9585 # grep -c gives empty output for an empty file on some AIX systems.
9586 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9587 # Write a limited-size here document to conftest.frag.
9588 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9589 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9591 sed -f conftest.frag conftest.in > conftest.out
9593 mv conftest.out conftest.in
9595 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9597 mv conftest.tail conftest.vals
9601 cat >> $CONFIG_STATUS <<\EOF
9602 rm -f conftest.frag conftest.h
9603 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9604 cat conftest.in >> conftest.h
9606 if cmp -s $ac_file conftest.h 2>/dev/null; then
9607 echo "$ac_file is unchanged"
9610 # Remove last slash and all that follows it. Not all systems have dirname.
9611 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
9612 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9613 # The file is in a subdirectory.
9614 test ! -d "$ac_dir" && mkdir "$ac_dir"
9617 mv conftest.h $ac_file
9622 cat >> $CONFIG_STATUS <<EOF
9623 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
9625 cat >> $CONFIG_STATUS <<\EOF
9628 ### Make the necessary directories, if they don't exist.
9629 for dir in etc lisp ; do
9630 test -d ${dir} || mkdir ${dir}
9633 # Build src/Makefile from ${srcdir}/src/Makefile.c
9634 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
9635 # This must be done after src/config.h is built, since we rely on that file.
9637 # Now get this: Some word that is part of the ${srcdir} directory name
9638 # or the ${configuration} value might, just might, happen to be an
9639 # identifier like `sun4
' or `i386' or something
, and be predefined by
9640 # the C preprocessor to some helpful value like 1, or maybe the empty
9641 # string. Needless to say consequent macro substitutions are less
9642 # than conducive to the makefile finding the correct directory.
9643 undefs
="`echo $top_srcdir $configuration $canonical |
9644 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
9645 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
9648 echo creating src
/epaths.h
9649 ${MAKE-make} epaths-force
9651 # As of 2000-11-19, newest development versions of GNU cpp preprocess
9652 # `..' to `. .' unless invoked with -traditional
9654 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
9655 CPPFLAGS
="$CPPFLAGS -traditional"
9658 echo creating lib-src
/Makefile
9660 rm -f junk.c junk1.c junk2.c
9661 sed -e '/start of cpp stuff/q' \
9662 < Makefile.c
> junk1.c
9663 sed -e '1,/start of cpp stuff/d'\
9664 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
9665 < Makefile.c
> junk.c
9666 $CPP $undefs -I.
-I$top_srcdir/src
$CPPFLAGS junk.c | \
9667 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
9668 cat junk1.c junk2.c
> Makefile.new
9669 rm -f junk.c junk1.c junk2.c
9670 chmod 444 Makefile.new
9671 mv -f Makefile.new Makefile
9674 echo creating src
/Makefile
9676 rm -f junk.c junk1.c junk2.c
9677 sed -e '/start of cpp stuff/q' \
9678 < Makefile.c
> junk1.c
9679 sed -e '1,/start of cpp stuff/d'\
9680 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
9681 < Makefile.c
> junk.c
9682 $CPP $undefs -I.
-I$top_srcdir/src
$CPPFLAGS junk.c | \
9683 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
9684 cat junk1.c junk2.c
> Makefile.new
9685 rm -f junk.c junk1.c junk2.c
9686 chmod 444 Makefile.new
9687 mv -f Makefile.new Makefile
9690 if test ! -f src
/.gdbinit
&& test -f $top_srcdir/src
/.gdbinit
; then
9691 echo creating src
/.gdbinit
9692 echo source $top_srcdir/src
/.gdbinit
> src
/.gdbinit
9695 # This is how we know whether to re-run configure in certain cases.
9696 touch src
/config.stamp
9701 chmod +x
$CONFIG_STATUS
9702 rm -fr confdefs
* $ac_clean_files
9703 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1