(smerge-auto-leave): New function and variable.
[emacs.git] / configure
blob7f1c21a3228e4d8e7ad68e213e21b4e44d759664
1 #! /bin/sh
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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --without-gcc don't use GCC to compile Emacs if GCC is found"
16 ac_help="$ac_help
17 --without-pop don't support POP mail retrieval with movemail"
18 ac_help="$ac_help
19 --with-kerberos support Kerberos-authenticated POP"
20 ac_help="$ac_help
21 --with-kerberos5 support Kerberos version 5 authenticated POP"
22 ac_help="$ac_help
23 --with-hesiod support Hesiod to get the POP server host"
24 ac_help="$ac_help
25 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)"
26 ac_help="$ac_help
27 --with-xpm use -lXpm for displaying XPM images"
28 ac_help="$ac_help
29 --with-jpeg use -ljpeg for displaying JPEG images"
30 ac_help="$ac_help
31 --with-tiff use -ltiff for displaying TIFF images"
32 ac_help="$ac_help
33 --with-gif use -lungif for displaying GIF images"
34 ac_help="$ac_help
35 --with-png use -lpng for displaying PNG images"
36 ac_help="$ac_help
37 --without-toolkit-scroll-bars don't use Motif or Xaw3d scroll bars"
38 ac_help="$ac_help
39 --with-x use the X Window System"
41 # Initialize some variables set by options.
42 # The variables have the same names as the options, with
43 # dashes changed to underlines.
44 build=NONE
45 cache_file=./config.cache
46 exec_prefix=NONE
47 host=NONE
48 no_create=
49 nonopt=NONE
50 no_recursion=
51 prefix=NONE
52 program_prefix=NONE
53 program_suffix=NONE
54 program_transform_name=s,x,x,
55 silent=
56 site=
57 srcdir=
58 target=NONE
59 verbose=
60 x_includes=NONE
61 x_libraries=NONE
62 bindir='${exec_prefix}/bin'
63 sbindir='${exec_prefix}/sbin'
64 libexecdir='${exec_prefix}/libexec'
65 datadir='${prefix}/share'
66 sysconfdir='${prefix}/etc'
67 sharedstatedir='${prefix}/com'
68 localstatedir='${prefix}/var'
69 libdir='${exec_prefix}/lib'
70 includedir='${prefix}/include'
71 oldincludedir='/usr/include'
72 infodir='${prefix}/info'
73 mandir='${prefix}/man'
75 # Initialize some other variables.
76 subdirs=
77 MFLAGS= MAKEFLAGS=
78 SHELL=${CONFIG_SHELL-/bin/sh}
79 # Maximum number of lines to put in a shell here document.
80 ac_max_here_lines=12
82 ac_prev=
83 for ac_option
86 # If the previous option needs an argument, assign it.
87 if test -n "$ac_prev"; then
88 eval "$ac_prev=\$ac_option"
89 ac_prev=
90 continue
93 case "$ac_option" in
94 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
95 *) ac_optarg= ;;
96 esac
98 # Accept the important Cygnus configure options, so we can diagnose typos.
100 case "$ac_option" in
102 -bindir | --bindir | --bindi | --bind | --bin | --bi)
103 ac_prev=bindir ;;
104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
105 bindir="$ac_optarg" ;;
107 -build | --build | --buil | --bui | --bu)
108 ac_prev=build ;;
109 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
110 build="$ac_optarg" ;;
112 -cache-file | --cache-file | --cache-fil | --cache-fi \
113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
114 ac_prev=cache_file ;;
115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
117 cache_file="$ac_optarg" ;;
119 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
120 ac_prev=datadir ;;
121 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
122 | --da=*)
123 datadir="$ac_optarg" ;;
125 -disable-* | --disable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}=no" ;;
134 -enable-* | --enable-*)
135 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 case "$ac_option" in
142 *=*) ;;
143 *) ac_optarg=yes ;;
144 esac
145 eval "enable_${ac_feature}='$ac_optarg'" ;;
147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
149 | --exec | --exe | --ex)
150 ac_prev=exec_prefix ;;
151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
153 | --exec=* | --exe=* | --ex=*)
154 exec_prefix="$ac_optarg" ;;
156 -gas | --gas | --ga | --g)
157 # Obsolete; use --with-gas.
158 with_gas=yes ;;
160 -help | --help | --hel | --he)
161 # Omit some internal or obsolete options to make the list less imposing.
162 # This message is too long to be a string in the A/UX 3.1 sh.
163 cat << EOF
164 Usage: configure [options] [host]
165 Options: [defaults in brackets after descriptions]
166 Configuration:
167 --cache-file=FILE cache test results in FILE
168 --help print this message
169 --no-create do not create output files
170 --quiet, --silent do not print \`checking...' messages
171 --version print the version of autoconf that created configure
172 Directory and file names:
173 --prefix=PREFIX install architecture-independent files in PREFIX
174 [$ac_default_prefix]
175 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 [same as prefix]
177 --bindir=DIR user executables in DIR [EPREFIX/bin]
178 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
179 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
180 --datadir=DIR read-only architecture-independent data in DIR
181 [PREFIX/share]
182 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
183 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 [PREFIX/com]
185 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
186 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
187 --includedir=DIR C header files in DIR [PREFIX/include]
188 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
189 --infodir=DIR info documentation in DIR [PREFIX/info]
190 --mandir=DIR man documentation in DIR [PREFIX/man]
191 --srcdir=DIR find the sources in DIR [configure dir or ..]
192 --program-prefix=PREFIX prepend PREFIX to installed program names
193 --program-suffix=SUFFIX append SUFFIX to installed program names
194 --program-transform-name=PROGRAM
195 run sed PROGRAM on installed program names
197 cat << EOF
198 Host type:
199 --build=BUILD configure for building on BUILD [BUILD=HOST]
200 --host=HOST configure for HOST [guessed]
201 --target=TARGET configure for TARGET [TARGET=HOST]
202 Features and packages:
203 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
204 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
205 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
206 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
207 --x-includes=DIR X include files are in DIR
208 --x-libraries=DIR X library files are in DIR
210 if test -n "$ac_help"; then
211 echo "--enable and --with options recognized:$ac_help"
213 exit 0 ;;
215 -host | --host | --hos | --ho)
216 ac_prev=host ;;
217 -host=* | --host=* | --hos=* | --ho=*)
218 host="$ac_optarg" ;;
220 -includedir | --includedir | --includedi | --included | --include \
221 | --includ | --inclu | --incl | --inc)
222 ac_prev=includedir ;;
223 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
224 | --includ=* | --inclu=* | --incl=* | --inc=*)
225 includedir="$ac_optarg" ;;
227 -infodir | --infodir | --infodi | --infod | --info | --inf)
228 ac_prev=infodir ;;
229 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
230 infodir="$ac_optarg" ;;
232 -libdir | --libdir | --libdi | --libd)
233 ac_prev=libdir ;;
234 -libdir=* | --libdir=* | --libdi=* | --libd=*)
235 libdir="$ac_optarg" ;;
237 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
238 | --libexe | --libex | --libe)
239 ac_prev=libexecdir ;;
240 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
241 | --libexe=* | --libex=* | --libe=*)
242 libexecdir="$ac_optarg" ;;
244 -localstatedir | --localstatedir | --localstatedi | --localstated \
245 | --localstate | --localstat | --localsta | --localst \
246 | --locals | --local | --loca | --loc | --lo)
247 ac_prev=localstatedir ;;
248 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
249 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
250 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
251 localstatedir="$ac_optarg" ;;
253 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
254 ac_prev=mandir ;;
255 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
256 mandir="$ac_optarg" ;;
258 -nfp | --nfp | --nf)
259 # Obsolete; use --without-fp.
260 with_fp=no ;;
262 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
263 | --no-cr | --no-c)
264 no_create=yes ;;
266 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
267 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
268 no_recursion=yes ;;
270 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
271 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
272 | --oldin | --oldi | --old | --ol | --o)
273 ac_prev=oldincludedir ;;
274 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
275 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
276 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
277 oldincludedir="$ac_optarg" ;;
279 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
280 ac_prev=prefix ;;
281 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
282 prefix="$ac_optarg" ;;
284 -program-prefix | --program-prefix | --program-prefi | --program-pref \
285 | --program-pre | --program-pr | --program-p)
286 ac_prev=program_prefix ;;
287 -program-prefix=* | --program-prefix=* | --program-prefi=* \
288 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
289 program_prefix="$ac_optarg" ;;
291 -program-suffix | --program-suffix | --program-suffi | --program-suff \
292 | --program-suf | --program-su | --program-s)
293 ac_prev=program_suffix ;;
294 -program-suffix=* | --program-suffix=* | --program-suffi=* \
295 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
296 program_suffix="$ac_optarg" ;;
298 -program-transform-name | --program-transform-name \
299 | --program-transform-nam | --program-transform-na \
300 | --program-transform-n | --program-transform- \
301 | --program-transform | --program-transfor \
302 | --program-transfo | --program-transf \
303 | --program-trans | --program-tran \
304 | --progr-tra | --program-tr | --program-t)
305 ac_prev=program_transform_name ;;
306 -program-transform-name=* | --program-transform-name=* \
307 | --program-transform-nam=* | --program-transform-na=* \
308 | --program-transform-n=* | --program-transform-=* \
309 | --program-transform=* | --program-transfor=* \
310 | --program-transfo=* | --program-transf=* \
311 | --program-trans=* | --program-tran=* \
312 | --progr-tra=* | --program-tr=* | --program-t=*)
313 program_transform_name="$ac_optarg" ;;
315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
316 | -silent | --silent | --silen | --sile | --sil)
317 silent=yes ;;
319 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
320 ac_prev=sbindir ;;
321 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
322 | --sbi=* | --sb=*)
323 sbindir="$ac_optarg" ;;
325 -sharedstatedir | --sharedstatedir | --sharedstatedi \
326 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
327 | --sharedst | --shareds | --shared | --share | --shar \
328 | --sha | --sh)
329 ac_prev=sharedstatedir ;;
330 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
331 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
332 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
333 | --sha=* | --sh=*)
334 sharedstatedir="$ac_optarg" ;;
336 -site | --site | --sit)
337 ac_prev=site ;;
338 -site=* | --site=* | --sit=*)
339 site="$ac_optarg" ;;
341 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
342 ac_prev=srcdir ;;
343 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
344 srcdir="$ac_optarg" ;;
346 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
347 | --syscon | --sysco | --sysc | --sys | --sy)
348 ac_prev=sysconfdir ;;
349 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
350 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
351 sysconfdir="$ac_optarg" ;;
353 -target | --target | --targe | --targ | --tar | --ta | --t)
354 ac_prev=target ;;
355 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
356 target="$ac_optarg" ;;
358 -v | -verbose | --verbose | --verbos | --verbo | --verb)
359 verbose=yes ;;
361 -version | --version | --versio | --versi | --vers)
362 echo "configure generated by autoconf version 2.13"
363 exit 0 ;;
365 -with-* | --with-*)
366 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 case "$ac_option" in
373 *=*) ;;
374 *) ac_optarg=yes ;;
375 esac
376 eval "with_${ac_package}='$ac_optarg'" ;;
378 -without-* | --without-*)
379 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
380 # Reject names that are not valid shell variable names.
381 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384 ac_package=`echo $ac_package| sed 's/-/_/g'`
385 eval "with_${ac_package}=no" ;;
387 --x)
388 # Obsolete; use --with-x.
389 with_x=yes ;;
391 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
392 | --x-incl | --x-inc | --x-in | --x-i)
393 ac_prev=x_includes ;;
394 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
395 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
396 x_includes="$ac_optarg" ;;
398 -x-libraries | --x-libraries | --x-librarie | --x-librari \
399 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
400 ac_prev=x_libraries ;;
401 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
402 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
403 x_libraries="$ac_optarg" ;;
405 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
409 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
410 echo "configure: warning: $ac_option: invalid host type" 1>&2
412 if test "x$nonopt" != xNONE; then
413 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
415 nonopt="$ac_option"
418 esac
419 done
421 if test -n "$ac_prev"; then
422 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
425 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
427 # File descriptor usage:
428 # 0 standard input
429 # 1 file creation
430 # 2 errors and warnings
431 # 3 some systems may open it to /dev/tty
432 # 4 used on the Kubota Titan
433 # 6 checking for... messages and results
434 # 5 compiler messages saved in config.log
435 if test "$silent" = yes; then
436 exec 6>/dev/null
437 else
438 exec 6>&1
440 exec 5>./config.log
442 echo "\
443 This file contains any messages produced by compilers while
444 running configure, to aid debugging if configure makes a mistake.
445 " 1>&5
447 # Strip out --no-create and --no-recursion so they do not pile up.
448 # Also quote any args containing shell metacharacters.
449 ac_configure_args=
450 for ac_arg
452 case "$ac_arg" in
453 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
454 | --no-cr | --no-c) ;;
455 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
456 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
457 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
458 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
459 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
460 esac
461 done
463 # NLS nuisances.
464 # Only set these to C if already set. These must not be set unconditionally
465 # because not all systems understand e.g. LANG=C (notably SCO).
466 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
467 # Non-C LC_CTYPE values break the ctype check.
468 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
469 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
470 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
471 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
473 # confdefs.h avoids OS command line length limits that DEFS can exceed.
474 rm -rf conftest* confdefs.h
475 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
476 echo > confdefs.h
478 # A filename unique to this package, relative to the directory that
479 # configure is in, which we can look for to find out if srcdir is correct.
480 ac_unique_file=src/lisp.h
482 # Find the source files, if location was not specified.
483 if test -z "$srcdir"; then
484 ac_srcdir_defaulted=yes
485 # Try the directory containing this script, then its parent.
486 ac_prog=$0
487 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
488 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
489 srcdir=$ac_confdir
490 if test ! -r $srcdir/$ac_unique_file; then
491 srcdir=..
493 else
494 ac_srcdir_defaulted=no
496 if test ! -r $srcdir/$ac_unique_file; then
497 if test "$ac_srcdir_defaulted" = yes; then
498 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 else
500 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
503 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
505 # Prefer explicitly selected file to automatically selected ones.
506 if test -z "$CONFIG_SITE"; then
507 if test "x$prefix" != xNONE; then
508 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
509 else
510 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
513 for ac_site_file in $CONFIG_SITE; do
514 if test -r "$ac_site_file"; then
515 echo "loading site script $ac_site_file"
516 . "$ac_site_file"
518 done
520 if test -r "$cache_file"; then
521 echo "loading cache $cache_file"
522 . $cache_file
523 else
524 echo "creating cache $cache_file"
525 > $cache_file
528 ac_ext=c
529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
530 ac_cpp='$CPP $CPPFLAGS'
531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
532 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
533 cross_compiling=$ac_cv_prog_cc_cross
535 ac_exeext=
536 ac_objext=o
537 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
538 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
539 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
540 ac_n= ac_c='
541 ' ac_t=' '
542 else
543 ac_n=-n ac_c= ac_t=
545 else
546 ac_n= ac_c='\c' ac_t=
552 lispdir='${datadir}/emacs/${version}/lisp'
553 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
554 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
555 lisppath='${locallisppath}:${lispdir}'
556 etcdir='${datadir}/emacs/${version}/etc'
557 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
558 docdir='${datadir}/emacs/${version}/etc'
560 # Check whether --with-gcc or --without-gcc was given.
561 if test "${with_gcc+set}" = set; then
562 withval="$with_gcc"
566 # Check whether --with-pop or --without-pop was given.
567 if test "${with_pop+set}" = set; then
568 withval="$with_pop"
569 if test "$withval" = yes; then
570 cat >> confdefs.h <<\EOF
571 #define MAIL_USE_POP 1
574 else :
576 else
577 cat >> confdefs.h <<\EOF
578 #define MAIL_USE_POP 1
583 # Check whether --with-kerberos or --without-kerberos was given.
584 if test "${with_kerberos+set}" = set; then
585 withval="$with_kerberos"
586 cat >> confdefs.h <<\EOF
587 #define KERBEROS 1
592 # Check whether --with-kerberos5 or --without-kerberos5 was given.
593 if test "${with_kerberos5+set}" = set; then
594 withval="$with_kerberos5"
595 if test "${with_kerberos5+set}" = set; then
596 if test "${with_kerberos+set}" != set; then
597 with_kerberos=yes
598 cat >> confdefs.h <<\EOF
599 #define KERBEROS 1
604 cat >> confdefs.h <<\EOF
605 #define KERBEROS5 1
610 # Check whether --with-hesiod or --without-hesiod was given.
611 if test "${with_hesiod+set}" = set; then
612 withval="$with_hesiod"
613 cat >> confdefs.h <<\EOF
614 #define HESIOD 1
619 # Check whether --with-x-toolkit or --without-x-toolkit was given.
620 if test "${with_x_toolkit+set}" = set; then
621 withval="$with_x_toolkit"
622 case "${withval}" in
623 y | ye | yes ) val=athena ;;
624 n | no ) val=no ;;
625 l | lu | luc | luci | lucid ) val=lucid ;;
626 a | at | ath | athe | athen | athena ) val=athena ;;
627 m | mo | mot | moti | motif ) val=motif ;;
629 { echo "configure: error: \`--with-x-toolkit=$withval' is invalid\;
630 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
631 Currently, \`yes', \`athena' and \`lucid' are synonyms." 1>&2; exit 1; }
633 esac
634 with_x_toolkit=$val
638 # Check whether --with-xpm or --without-xpm was given.
639 if test "${with_xpm+set}" = set; then
640 withval="$with_xpm"
644 # Check whether --with-jpeg or --without-jpeg was given.
645 if test "${with_jpeg+set}" = set; then
646 withval="$with_jpeg"
650 # Check whether --with-tiff or --without-tiff was given.
651 if test "${with_tiff+set}" = set; then
652 withval="$with_tiff"
656 # Check whether --with-gif or --without-gif was given.
657 if test "${with_gif+set}" = set; then
658 withval="$with_gif"
662 # Check whether --with-png or --without-png was given.
663 if test "${with_png+set}" = set; then
664 withval="$with_png"
668 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
669 if test "${with_toolkit_scroll_bars+set}" = set; then
670 withval="$with_toolkit_scroll_bars"
675 #### Make srcdir absolute, if it isn't already. It's important to
676 #### avoid running the path through pwd unnecessary, since pwd can
677 #### give you automounter prefixes, which can go away. We do all this
678 #### so Emacs can find its files when run uninstalled.
679 case "${srcdir}" in
680 /* ) ;;
682 ## We may be able to use the $PWD environment variable to make this
683 ## absolute. But sometimes PWD is inaccurate.
684 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
685 unset CDPATH
686 if test "${PWD}" != "" && test "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ;
687 then
688 srcdir="$PWD"
689 else
690 srcdir="`(cd ${srcdir}; pwd)`"
693 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
694 esac
696 #### Check if the source directory already has a configured system in it.
697 if test `pwd` != `(cd ${srcdir} && pwd)` \
698 && test -f "${srcdir}/src/config.h" ; then
699 echo "configure: warning: The directory tree \`${srcdir}' is being used
700 as a build directory right now; it has been configured in its own
701 right. To configure in another directory as well, you MUST
702 use GNU make. If you do not have GNU make, then you must
703 now do \`make distclean' in ${srcdir},
704 and then run $0 again." 1>&2
706 extrasub='/^VPATH[ ]*=/c\
707 vpath %.c $(srcdir)\
708 vpath %.h $(srcdir)\
709 vpath %.y $(srcdir)\
710 vpath %.l $(srcdir)\
711 vpath %.s $(srcdir)\
712 vpath %.in $(srcdir)\
713 vpath %.texi $(srcdir)'
716 #### Given the configuration name, set machfile and opsysfile to the
717 #### names of the m/*.h and s/*.h files we should use.
719 ### Canonicalize the configuration name.
721 ac_aux_dir=
722 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
723 if test -f $ac_dir/install-sh; then
724 ac_aux_dir=$ac_dir
725 ac_install_sh="$ac_aux_dir/install-sh -c"
726 break
727 elif test -f $ac_dir/install.sh; then
728 ac_aux_dir=$ac_dir
729 ac_install_sh="$ac_aux_dir/install.sh -c"
730 break
732 done
733 if test -z "$ac_aux_dir"; then
734 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
736 ac_config_guess=$ac_aux_dir/config.guess
737 ac_config_sub=$ac_aux_dir/config.sub
738 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
741 # Make sure we can run config.sub.
742 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
743 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
746 echo $ac_n "checking host system type""... $ac_c" 1>&6
747 echo "configure:748: checking host system type" >&5
749 host_alias=$host
750 case "$host_alias" in
751 NONE)
752 case $nonopt in
753 NONE)
754 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
755 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
756 fi ;;
757 *) host_alias=$nonopt ;;
758 esac ;;
759 esac
761 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
762 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
763 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
764 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
765 echo "$ac_t""$host" 1>&6
767 canonical=$host
768 configuration=$host_alias
771 ### If you add support for a new configuration, add code to this
772 ### switch statement to recognize your configuration name and select
773 ### the appropriate operating system and machine description files.
775 ### You would hope that you could choose an m/*.h file pretty much
776 ### based on the machine portion of the configuration name, and an s-
777 ### file based on the operating system portion. However, it turns out
778 ### that each m/*.h file is pretty manufacturer-specific - for
779 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
780 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
781 ### machines. So we basically have to have a special case for each
782 ### configuration name.
784 ### As far as handling version numbers on operating systems is
785 ### concerned, make sure things will fail in a fixable way. If
786 ### /etc/MACHINES doesn't say anything about version numbers, be
787 ### prepared to handle anything reasonably. If version numbers
788 ### matter, be sure /etc/MACHINES says something about it.
790 ### Eric Raymond says we should accept strings like "sysvr4" to mean
791 ### "System V Release 4"; he writes, "The old convention encouraged
792 ### confusion between `system' and `release' levels'."
794 machine='' opsys='' unported=no
795 case "${canonical}" in
797 ## NetBSD ports
798 *-*-netbsd* )
799 opsys=netbsd
800 case "${canonical}" in
801 alpha*-*-netbsd*) machine=alpha ;;
802 i[3456]86-*-netbsd*) machine=intel386 ;;
803 m68k-*-netbsd*)
804 # This is somewhat bogus.
805 machine=hp9000s300 ;;
806 powerpc-apple-netbsd*) machine=macppc ;;
807 mips-*-netbsd*) machine=pmax ;;
808 mipsel-*-netbsd*) machine=pmax ;;
809 ns32k-*-netbsd*) machine=ns32000 ;;
810 sparc-*-netbsd*) machine=sparc ;;
811 vax-*-netbsd*) machine=vax ;;
812 arm-*-netbsd*) machine=arm ;;
813 esac
816 ## OpenBSD ports
817 *-*-openbsd* )
818 opsys=openbsd
819 case "${canonical}" in
820 alpha*-*-openbsd*) machine=alpha ;;
821 i386-*-openbsd*) machine=intel386 ;;
822 m68k-*-openbsd*) machine=hp9000s300 ;;
823 mipsel-*-openbsd*) machine=pmax ;;
824 ns32k-*-openbsd*) machine=ns32000 ;;
825 sparc-*-openbsd*) machine=sparc ;;
826 vax-*-openbsd*) machine=vax ;;
827 esac
830 ## Acorn RISCiX:
831 arm-acorn-riscix1.1* )
832 machine=acorn opsys=riscix1-1
834 arm-acorn-riscix1.2* | arm-acorn-riscix )
835 ## This name is riscix12 instead of riscix1.2
836 ## to avoid a file name conflict on MSDOS.
837 machine=acorn opsys=riscix12
840 ## BSDI ports
841 *-*-bsdi* )
842 opsys=bsdi
843 case "${canonical}" in
844 i[345]86-*-bsdi*) machine=intel386 ;;
845 sparc-*-bsdi*) machine=sparc ;;
846 powerpc-*-bsdi*) machine=powerpc ;;
847 esac
848 case "${canonical}" in
849 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
850 *-*-bsdi2.0* ) opsys=bsdos2 ;;
851 *-*-bsdi2* ) opsys=bsdos2-1 ;;
852 *-*-bsdi3* ) opsys=bsdos3 ;;
853 *-*-bsdi4* ) opsys=bsdos4 ;;
854 esac
857 ## Alliant machines
858 ## Strictly speaking, we need the version of the alliant operating
859 ## system to choose the right machine file, but currently the
860 ## configuration name doesn't tell us enough to choose the right
861 ## one; we need to give alliants their own operating system name to
862 ## do this right. When someone cares, they can help us.
863 fx80-alliant-* )
864 machine=alliant4 opsys=bsd4-2
866 i860-alliant-* )
867 machine=alliant-2800 opsys=bsd4-3
870 ## Alpha (DEC) machines.
871 alpha*-dec-osf* )
872 machine=alpha opsys=osf1
873 # This is needed to find X11R6.1 libraries for certain tests.
874 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
875 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
876 case "${canonical}" in
877 # This is necessary on 5.0 to avoid mangling src/Makefile.
878 # Separated out in case it causes problems on earlier versions.
879 alpha*-dec-osf[5-9]*)
880 NON_GNU_CPP='cc -E -std0' ;;
881 esac
884 alpha*-*-linux-gnu* )
885 machine=alpha opsys=gnu-linux
888 arm*-*-linux-gnu* )
889 machine=arm opsys=gnu-linux
892 ppc-*-linux | \
893 powerpc-*-linux* )
894 machine=powerpc opsys=gnu-linux
897 ## Altos 3068
898 m68*-altos-sysv* )
899 machine=altos opsys=usg5-2
902 ## Amdahl UTS
903 580-amdahl-sysv* )
904 machine=amdahl opsys=usg5-2-2
907 ## Apollo, Domain/OS
908 m68*-apollo-* )
909 machine=apollo opsys=bsd4-3
912 ## AT&T 3b2, 3b5, 3b15, 3b20
913 we32k-att-sysv* )
914 machine=att3b opsys=usg5-2-2
917 ## AT&T 3b1 - The Mighty Unix PC!
918 m68*-att-sysv* )
919 machine=7300 opsys=usg5-2-2
922 ## Bull dpx20
923 rs6000-bull-bosx* )
924 machine=ibmrs6000 opsys=aix3-2
927 ## Bull dpx2
928 m68*-bull-sysv3* )
929 machine=dpx2 opsys=usg5-3
932 ## Bull sps7
933 m68*-bull-sysv2* )
934 machine=sps7 opsys=usg5-2
937 ## CCI 5/32, 6/32 -- see "Tahoe".
939 ## Celerity
940 ## I don't know what configuration name to use for this; config.sub
941 ## doesn't seem to know anything about it. Hey, Celerity users, get
942 ## in touch with us!
943 celerity-celerity-bsd* )
944 machine=celerity opsys=bsd4-2
947 ## Clipper
948 ## What operating systems does this chip run that Emacs has been
949 ## tested on?
950 clipper-* )
951 machine=clipper
952 ## We'll use the catch-all code at the bottom to guess the
953 ## operating system.
956 ## Convex
957 *-convex-bsd* | *-convex-convexos* )
958 machine=convex opsys=bsd4-3
959 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
960 NON_GNU_CPP="cc -E -P"
963 ## Cubix QBx/386
964 i[3456]86-cubix-sysv* )
965 machine=intel386 opsys=usg5-3
968 ## Cydra 5
969 cydra*-cydrome-sysv* )
970 machine=cydra5 opsys=usg5-3
973 ## Data General AViiON Machines
974 ## DG changed naming conventions with the release of 5.4.4.10, they
975 ## dropped the initial 5.4 but left the intervening R. Because of the
976 ## R this shouldn't conflict with older versions of the OS (which I
977 ## think were named like dgux4.*). In addition, DG new AViiONs series
978 ## uses either Motorola M88k or Intel Pentium CPUs.
979 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
980 machine=aviion opsys=dgux4
982 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
983 ## This name is dgux5-4-3 instead of dgux5-4r3
984 ## to avoid a file name conflict on MSDOS.
985 machine=aviion opsys=dgux5-4-3
987 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
988 machine=aviion opsys=dgux5-4r2
990 m88k-dg-dgux* )
991 machine=aviion opsys=dgux
994 ## Data General AViiON Intel (x86) Machines
995 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
996 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
997 i[345]86-dg-dguxR4* )
998 machine=aviion-intel opsys=dgux4
1001 ## DECstations
1002 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
1003 machine=pmax opsys=bsd4-2
1005 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
1006 machine=pmax opsys=bsd4-3
1008 mips-dec-ultrix* )
1009 machine=pmax opsys=ultrix4-3
1011 mips-dec-osf* )
1012 machine=pmax opsys=osf1
1014 mips-dec-mach_bsd4.3* )
1015 machine=pmax opsys=mach-bsd4-3
1018 ## Motorola Delta machines
1019 m68k-motorola-sysv* | m68000-motorola-sysv* )
1020 machine=delta opsys=usg5-3
1021 if test -z "`type gnucc | grep 'not found'`"
1022 then
1023 if test -s /etc/167config
1024 then CC="gnucc -m68040"
1025 else CC="gnucc -m68881"
1027 else
1028 if test -z "`type gcc | grep 'not found'`"
1029 then CC=gcc
1030 else CC=cc
1034 m88k-motorola-sysv4* )
1035 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1036 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1037 # I hope there are not other 4.0 versions for this machine
1038 # which really need usg5-4 instead.
1039 machine=delta88k opsys=usg5-4-2
1041 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
1042 machine=delta88k opsys=usg5-3
1045 ## Dual machines
1046 m68*-dual-sysv* )
1047 machine=dual opsys=usg5-2
1049 m68*-dual-uniplus* )
1050 machine=dual opsys=unipl5-2
1053 ## Elxsi 6400
1054 elxsi-elxsi-sysv* )
1055 machine=elxsi opsys=usg5-2
1058 ## Encore machines
1059 ns16k-encore-bsd* )
1060 machine=ns16000 opsys=umax
1063 ## The GEC 93 - apparently, this port isn't really finished yet.
1065 ## Gould Power Node and NP1
1066 pn-gould-bsd4.2* )
1067 machine=gould opsys=bsd4-2
1069 pn-gould-bsd4.3* )
1070 machine=gould opsys=bsd4-3
1072 np1-gould-bsd* )
1073 machine=gould-np1 opsys=bsd4-3
1076 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1077 ## as far as Emacs is concerned).
1078 m88k-harris-cxux* )
1079 # Build needs to be different on 7.0 and later releases
1080 case "`uname -r`" in
1081 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
1082 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
1083 esac
1084 NON_GNU_CPP="/lib/cpp"
1086 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1087 m68k-harris-cxux* )
1088 machine=nh3000 opsys=cxux
1090 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1091 powerpc-harris-powerunix )
1092 machine=nh6000 opsys=powerunix
1093 NON_GNU_CPP="cc -Xo -E -P"
1095 ## SR2001/SR2201 running HI-UX/MPP
1096 hppa1.1-hitachi-hiuxmpp* )
1097 machine=sr2k opsys=hiuxmpp
1099 ## Honeywell XPS100
1100 xps*-honeywell-sysv* )
1101 machine=xps100 opsys=usg5-2
1104 ## HP 9000 series 200 or 300
1105 m68*-hp-bsd* )
1106 machine=hp9000s300 opsys=bsd4-3
1108 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1109 m68*-hp-hpux* )
1110 case "`uname -r`" in
1111 ## Someone's system reports A.B8.05 for this.
1112 ## I wonder what other possibilities there are.
1113 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
1114 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
1115 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
1116 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
1117 *) machine=hp9000s300 opsys=hpux ;;
1118 esac
1121 ## HP 9000 series 700 and 800, running HP/UX
1122 hppa*-hp-hpux7* )
1123 machine=hp800 opsys=hpux
1125 hppa*-hp-hpux8* )
1126 machine=hp800 opsys=hpux8
1128 hppa*-hp-hpux9shr* )
1129 machine=hp800 opsys=hpux9shr
1131 hppa*-hp-hpux9* )
1132 machine=hp800 opsys=hpux9
1134 hppa*-hp-hpux1[0-9]* )
1135 machine=hp800 opsys=hpux10
1138 ## HP 9000 series 700 and 800, running HP/UX
1139 hppa*-hp-hpux* )
1140 ## Cross-compilation? Nah!
1141 case "`uname -r`" in
1142 ## Someone's system reports A.B8.05 for this.
1143 ## I wonder what other possibilities there are.
1144 *.B8.* ) machine=hp800 opsys=hpux8 ;;
1145 *.08.* ) machine=hp800 opsys=hpux8 ;;
1146 *.09.* ) machine=hp800 opsys=hpux9 ;;
1147 *) machine=hp800 opsys=hpux10 ;;
1148 esac
1150 hppa*-*-nextstep* )
1151 machine=hp800 opsys=nextstep
1154 ## Orion machines
1155 orion-orion-bsd* )
1156 machine=orion opsys=bsd4-2
1158 clipper-orion-bsd* )
1159 machine=orion105 opsys=bsd4-2
1162 ## IBM machines
1163 i[3456]86-ibm-aix1.1* )
1164 machine=ibmps2-aix opsys=usg5-2-2
1166 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
1167 machine=ibmps2-aix opsys=usg5-3
1169 i370-ibm-aix*)
1170 machine=ibm370aix opsys=usg5-3
1172 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
1173 machine=ibmrs6000 opsys=aix3-1
1175 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
1176 machine=ibmrs6000 opsys=aix3-2-5
1178 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
1179 machine=ibmrs6000 opsys=aix4-1
1181 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
1182 machine=ibmrs6000 opsys=aix4-2
1184 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
1185 machine=ibmrs6000 opsys=aix4
1187 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
1188 machine=ibmrs6000 opsys=aix4-1
1190 rs6000-ibm-aix* | powerpc-ibm-aix* )
1191 machine=ibmrs6000 opsys=aix3-2
1193 romp-ibm-bsd4.3* )
1194 machine=ibmrt opsys=bsd4-3
1196 romp-ibm-bsd4.2* )
1197 machine=ibmrt opsys=bsd4-2
1199 romp-ibm-aos4.3* )
1200 machine=ibmrt opsys=bsd4-3
1202 romp-ibm-aos4.2* )
1203 machine=ibmrt opsys=bsd4-2
1205 romp-ibm-aos* )
1206 machine=ibmrt opsys=bsd4-3
1208 romp-ibm-bsd* )
1209 machine=ibmrt opsys=bsd4-3
1211 romp-ibm-aix* )
1212 machine=ibmrt-aix opsys=usg5-2-2
1215 ## Integrated Solutions `Optimum V'
1216 m68*-isi-bsd4.2* )
1217 machine=isi-ov opsys=bsd4-2
1219 m68*-isi-bsd4.3* )
1220 machine=isi-ov opsys=bsd4-3
1223 ## Intel 386 machines where we do care about the manufacturer
1224 i[3456]86-intsys-sysv* )
1225 machine=is386 opsys=usg5-2-2
1228 ## Prime EXL
1229 i[3456]86-prime-sysv* )
1230 machine=i386 opsys=usg5-3
1233 ## Sequent Symmetry running Dynix
1234 i[3456]86-sequent-bsd* )
1235 machine=symmetry opsys=bsd4-3
1238 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1239 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
1240 machine=sequent-ptx opsys=ptx4
1241 NON_GNU_CPP=/lib/cpp
1244 ## Sequent Symmetry running DYNIX/ptx
1245 ## Use the old cpp rather than the newer ANSI one.
1246 i[3456]86-sequent-ptx* )
1247 machine=sequent-ptx opsys=ptx
1248 NON_GNU_CPP="/lib/cpp"
1251 ## ncr machine running svr4.3.
1252 i[3456]86-ncr-sysv4.3 )
1253 machine=ncr386 opsys=usg5-4-3
1256 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1257 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1258 i[3456]86-ncr-sysv* )
1259 machine=ncr386 opsys=usg5-4-2
1262 ## Intel Paragon OSF/1
1263 i860-intel-osf1* )
1264 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
1267 ## Intel 860
1268 i860-*-sysv4* )
1269 machine=i860 opsys=usg5-4
1270 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1271 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1274 ## Masscomp machines
1275 m68*-masscomp-rtu* )
1276 machine=masscomp opsys=rtu
1279 ## Megatest machines
1280 m68*-megatest-bsd* )
1281 machine=mega68 opsys=bsd4-2
1284 ## Workstations sold by MIPS
1285 ## This is not necessarily all workstations using the MIPS processor -
1286 ## Irises are produced by SGI, and DECstations by DEC.
1288 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1289 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1290 ## it gives for choosing between the alternatives seems to be "Use
1291 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1292 ## the BSD world." I'll assume that these are instructions for
1293 ## handling two odd situations, and that every other situation
1294 ## should use mips.h and usg5-2-2, they being listed first.
1295 mips-mips-usg* )
1296 machine=mips4
1297 ## Fall through to the general code at the bottom to decide on the OS.
1299 mips-mips-riscos4* )
1300 machine=mips4 opsys=bsd4-3
1301 NON_GNU_CC="cc -systype bsd43"
1302 NON_GNU_CPP="cc -systype bsd43 -E"
1304 mips-mips-riscos5* )
1305 machine=mips4 opsys=riscos5
1306 NON_GNU_CC="cc -systype bsd43"
1307 NON_GNU_CPP="cc -systype bsd43 -E"
1309 mips-mips-bsd* )
1310 machine=mips opsys=bsd4-3
1312 mips-mips-* )
1313 machine=mips opsys=usg5-2-2
1316 ## NeXT
1317 m68*-next-* | m68k-*-nextstep* )
1318 machine=m68k opsys=nextstep
1321 ## The complete machine from National Semiconductor
1322 ns32k-ns-genix* )
1323 machine=ns32000 opsys=usg5-2
1326 ## NCR machines
1327 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
1328 machine=tower32 opsys=usg5-2-2
1330 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
1331 machine=tower32v3 opsys=usg5-3
1334 ## NEC EWS4800
1335 mips-nec-sysv4*)
1336 machine=ews4800 opsys=ux4800
1339 ## Nixdorf Targon 31
1340 m68*-nixdorf-sysv* )
1341 machine=targon31 opsys=usg5-2-2
1344 ## Nu (TI or LMI)
1345 m68*-nu-sysv* )
1346 machine=nu opsys=usg5-2
1349 ## Plexus
1350 m68*-plexus-sysv* )
1351 machine=plexus opsys=usg5-2
1354 ## PowerPC reference platform
1355 powerpcle-*-solaris2* )
1356 machine=prep
1357 opsys=sol2-5
1360 ## Pyramid machines
1361 ## I don't really have any idea what sort of processor the Pyramid has,
1362 ## so I'm assuming it is its own architecture.
1363 pyramid-pyramid-bsd* )
1364 machine=pyramid opsys=bsd4-2
1367 ## Sequent Balance
1368 ns32k-sequent-bsd4.2* )
1369 machine=sequent opsys=bsd4-2
1371 ns32k-sequent-bsd4.3* )
1372 machine=sequent opsys=bsd4-3
1375 ## Siemens Nixdorf
1376 mips-siemens-sysv* | mips-sni-sysv*)
1377 machine=mips-siemens opsys=usg5-4
1378 NON_GNU_CC=/usr/ccs/bin/cc
1379 NON_GNU_CPP=/usr/ccs/lib/cpp
1382 ## Silicon Graphics machines
1383 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1384 m68*-sgi-iris3.5* )
1385 machine=irist opsys=iris3-5
1387 m68*-sgi-iris3.6* | m68*-sgi-iris*)
1388 machine=irist opsys=iris3-6
1390 ## Iris 4D
1391 mips-sgi-irix3* )
1392 machine=iris4d opsys=irix3-3
1394 mips-sgi-irix4* )
1395 machine=iris4d opsys=irix4-0
1397 mips-sgi-irix6.5 )
1398 machine=iris4d opsys=irix6-5
1399 # Without defining _LANGUAGE_C, things get masked out in the headers
1400 # so that, for instance, grepping for `free' in stdlib.h fails and
1401 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1402 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
1403 NON_GCC_TEST_OPTIONS="-n32 -D_LANGUAGE_C"
1405 mips-sgi-irix6* )
1406 machine=iris4d opsys=irix6-0
1407 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
1408 # but presumably it does no harm.
1409 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
1410 NON_GCC_TEST_OPTIONS=-32
1412 mips-sgi-irix5.[01]* )
1413 machine=iris4d opsys=irix5-0
1415 mips-sgi-irix5* | mips-sgi-irix* )
1416 machine=iris4d opsys=irix5-2
1419 ## SONY machines
1420 m68*-sony-bsd4.2* )
1421 machine=news opsys=bsd4-2
1423 m68*-sony-bsd4.3* )
1424 machine=news opsys=bsd4-3
1426 m68*-sony-newsos3* | m68*-sony-news3*)
1427 machine=news opsys=bsd4-3
1429 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
1430 machine=news-risc opsys=bsd4-3
1432 mips-sony-newsos6* )
1433 machine=news-r6 opsys=newsos6
1435 mips-sony-news* )
1436 machine=news-risc opsys=newsos5
1439 ## Stride
1440 m68*-stride-sysv* )
1441 machine=stride opsys=usg5-2
1444 ## Suns
1445 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
1446 machine=sparc opsys=gnu-linux
1449 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
1450 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
1451 | rs6000-*-solaris2*)
1452 case "${canonical}" in
1453 m68*-sunos1* ) machine=sun1 ;;
1454 m68*-sunos2* ) machine=sun2 ;;
1455 m68* ) machine=sun3 ;;
1456 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
1457 i[3456]86-*-* ) machine=intel386 ;;
1458 powerpcle* ) machine=powerpcle ;;
1459 powerpc* | rs6000* ) machine=ibmrs6000 ;;
1460 sparc* ) machine=sparc ;;
1461 * ) unported=yes ;;
1462 esac
1463 case "${canonical}" in
1464 ## The Sun386 didn't get past 4.0.
1465 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
1466 *-sunos4.0* ) opsys=sunos4-0 ;;
1467 *-sunos4.1.[3-9]*noshare )
1468 ## This name is sunos413 instead of sunos4-1-3
1469 ## to avoid a file name conflict on MSDOS.
1470 opsys=sunos413
1471 NON_GNU_CPP=/usr/lib/cpp
1472 NON_GCC_TEST_OPTIONS=-Bstatic
1473 GCC_TEST_OPTIONS=-static
1475 *-sunos4.1.[3-9]* | *-sunos4shr*)
1476 opsys=sunos4shr
1477 NON_GNU_CPP=/usr/lib/cpp
1479 *-sunos4* | *-sunos )
1480 opsys=sunos4-1
1481 NON_GCC_TEST_OPTIONS=-Bstatic
1482 GCC_TEST_OPTIONS=-static
1484 *-sunos5.3* | *-solaris2.3* )
1485 opsys=sol2-3
1486 NON_GNU_CPP=/usr/ccs/lib/cpp
1488 *-sunos5.4* | *-solaris2.4* )
1489 opsys=sol2-4
1490 NON_GNU_CPP=/usr/ccs/lib/cpp
1491 RANLIB="ar -ts"
1493 *-sunos5.5* | *-solaris2.5* )
1494 opsys=sol2-5
1495 NON_GNU_CPP=/usr/ccs/lib/cpp
1496 RANLIB="ar -ts"
1498 *-sunos5* | *-solaris* )
1499 opsys=sol2-5
1500 NON_GNU_CPP=/usr/ccs/lib/cpp
1502 * ) opsys=bsd4-2 ;;
1503 esac
1504 ## Watch out for a compiler that we know will not work.
1505 case "${canonical}" in
1506 *-solaris* | *-sunos5* )
1507 if [ "x$CC" = x/usr/ucb/cc ]; then
1508 ## /usr/ucb/cc doesn't work;
1509 ## we should find some other compiler that does work.
1510 unset CC
1513 *) ;;
1514 esac
1516 sparc-*-nextstep* )
1517 machine=sparc opsys=nextstep
1520 ## Tadpole 68k
1521 m68*-tadpole-sysv* )
1522 machine=tad68k opsys=usg5-3
1525 ## Tahoe machines
1526 tahoe-tahoe-bsd4.2* )
1527 machine=tahoe opsys=bsd4-2
1529 tahoe-tahoe-bsd4.3* )
1530 machine=tahoe opsys=bsd4-3
1533 ## Tandem Integrity S2
1534 mips-tandem-sysv* )
1535 machine=tandem-s2 opsys=usg5-3
1538 ## Tektronix XD88
1539 m88k-tektronix-sysv3* )
1540 machine=tekxd88 opsys=usg5-3
1543 ## Tektronix 16000 box (6130?)
1544 ns16k-tektronix-bsd* )
1545 machine=ns16000 opsys=bsd4-2
1547 ## Tektronix 4300
1548 ## src/m/tek4300.h hints that this is a m68k machine.
1549 m68*-tektronix-bsd* )
1550 machine=tek4300 opsys=bsd4-3
1553 ## Titan P2 or P3
1554 ## We seem to have lost the machine-description file titan.h!
1555 titan-titan-sysv* )
1556 machine=titan opsys=usg5-3
1559 ## Ustation E30 (SS5E)
1560 m68*-unisys-uniplus* )
1561 machine=ustation opsystem=unipl5-2
1564 ## Vaxen.
1565 vax-dec-* )
1566 machine=vax
1567 case "${canonical}" in
1568 *-bsd4.1* ) opsys=bsd4-1 ;;
1569 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
1570 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
1571 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
1572 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
1573 *-vms* ) opsys=vms ;;
1574 * ) unported=yes
1575 esac
1578 ## Whitechapel MG1
1579 ns16k-whitechapel-* )
1580 machine=mg1
1581 ## We don't know what sort of OS runs on these; we'll let the
1582 ## operating system guessing code below try.
1585 ## Wicat
1586 m68*-wicat-sysv* )
1587 machine=wicat opsys=usg5-2
1590 ## Intel 386 machines where we don't care about the manufacturer
1591 i[3456]86-*-* )
1592 machine=intel386
1593 case "${canonical}" in
1594 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1595 *-isc2.2* ) opsys=isc2-2 ;;
1596 *-isc4.0* ) opsys=isc4-0 ;;
1597 *-isc4.* ) opsys=isc4-1
1598 GCC_TEST_OPTIONS=-posix
1599 NON_GCC_TEST_OPTIONS=-Xp
1601 *-isc* ) opsys=isc3-0 ;;
1602 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
1603 *-esix* ) opsys=esix ;;
1604 *-xenix* ) opsys=xenix ;;
1605 *-linux-gnu* ) opsys=gnu-linux ;;
1606 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
1607 *-sco3.2v5* ) opsys=sco5
1608 NON_GNU_CPP=/lib/cpp
1609 # Prevent -belf from being passed to $CPP.
1610 # /lib/cpp does not accept it.
1611 OVERRIDE_CPPFLAGS=" "
1613 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
1614 *-386bsd* ) opsys=386bsd ;;
1615 *-freebsd* ) opsys=freebsd ;;
1616 *-nextstep* ) opsys=nextstep ;;
1617 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
1618 esac
1621 ## m68k Linux-based GNU system
1622 m68k-*-linux-gnu* )
1623 machine=m68k opsys=gnu-linux
1626 ## Mips Linux-based GNU system
1627 mips-*-linux-gnu* )
1628 machine=mips opsys=gnu-linux
1631 ## UXP/DS
1632 sparc-fujitsu-sysv4* )
1633 machine=sparc opsys=uxpds
1634 NON_GNU_CPP=/usr/ccs/lib/cpp
1635 RANLIB="ar -ts"
1638 ## UXP/V
1639 f301-fujitsu-uxpv4.1)
1640 machine=f301 opsys=uxpv
1644 unported=yes
1646 esac
1648 ### If the code above didn't choose an operating system, just choose
1649 ### an operating system based on the configuration name. You really
1650 ### only want to use this when you have no idea what the right
1651 ### operating system is; if you know what operating systems a machine
1652 ### runs, it's cleaner to make it explicit in the case statement
1653 ### above.
1654 if test x"${opsys}" = x; then
1655 case "${canonical}" in
1656 *-gnu* ) opsys=gnu ;;
1657 *-bsd4.[01] ) opsys=bsd4-1 ;;
1658 *-bsd4.2 ) opsys=bsd4-2 ;;
1659 *-bsd4.3 ) opsys=bsd4-3 ;;
1660 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
1661 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
1662 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
1663 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
1664 *-sysv4.2uw* ) opsys=unixware ;;
1665 *-sysv4.1* | *-sysvr4.1* )
1666 NON_GNU_CPP=/usr/lib/cpp
1667 opsys=usg5-4 ;;
1668 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1669 if [ x$NON_GNU_CPP = x ]; then
1670 if [ -f /usr/ccs/lib/cpp ]; then
1671 NON_GNU_CPP=/usr/ccs/lib/cpp
1672 else
1673 NON_GNU_CPP=/lib/cpp
1676 opsys=usg5-4-2 ;;
1677 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
1679 unported=yes
1681 esac
1685 if test $unported = yes; then
1686 { echo "configure: error: Emacs hasn't been ported to \`${canonical}' systems.
1687 Check \`etc/MACHINES' for recognized configuration names." 1>&2; exit 1; }
1690 machfile="m/${machine}.h"
1691 opsysfile="s/${opsys}.h"
1694 #### Choose a compiler.
1695 test -n "$CC" && cc_specified=yes
1697 # Save the value of CFLAGS that the user specified.
1698 SPECIFIED_CFLAGS="$CFLAGS"
1700 case ${with_gcc} in
1701 "yes" ) CC="gcc" GCC=yes ;;
1702 "no" ) : ${CC=cc} ;;
1703 * ) # Extract the first word of "gcc", so it can be a program name with args.
1704 set dummy gcc; ac_word=$2
1705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1706 echo "configure:1707: checking for $ac_word" >&5
1707 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1709 else
1710 if test -n "$CC"; then
1711 ac_cv_prog_CC="$CC" # Let the user override the test.
1712 else
1713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1714 ac_dummy="$PATH"
1715 for ac_dir in $ac_dummy; do
1716 test -z "$ac_dir" && ac_dir=.
1717 if test -f $ac_dir/$ac_word; then
1718 ac_cv_prog_CC="gcc"
1719 break
1721 done
1722 IFS="$ac_save_ifs"
1725 CC="$ac_cv_prog_CC"
1726 if test -n "$CC"; then
1727 echo "$ac_t""$CC" 1>&6
1728 else
1729 echo "$ac_t""no" 1>&6
1732 if test -z "$CC"; then
1733 # Extract the first word of "cc", so it can be a program name with args.
1734 set dummy cc; ac_word=$2
1735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1736 echo "configure:1737: checking for $ac_word" >&5
1737 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1739 else
1740 if test -n "$CC"; then
1741 ac_cv_prog_CC="$CC" # Let the user override the test.
1742 else
1743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1744 ac_prog_rejected=no
1745 ac_dummy="$PATH"
1746 for ac_dir in $ac_dummy; do
1747 test -z "$ac_dir" && ac_dir=.
1748 if test -f $ac_dir/$ac_word; then
1749 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1750 ac_prog_rejected=yes
1751 continue
1753 ac_cv_prog_CC="cc"
1754 break
1756 done
1757 IFS="$ac_save_ifs"
1758 if test $ac_prog_rejected = yes; then
1759 # We found a bogon in the path, so make sure we never use it.
1760 set dummy $ac_cv_prog_CC
1761 shift
1762 if test $# -gt 0; then
1763 # We chose a different compiler from the bogus one.
1764 # However, it has the same basename, so the bogon will be chosen
1765 # first if we set CC to just the basename; use the full file name.
1766 shift
1767 set dummy "$ac_dir/$ac_word" "$@"
1768 shift
1769 ac_cv_prog_CC="$@"
1774 CC="$ac_cv_prog_CC"
1775 if test -n "$CC"; then
1776 echo "$ac_t""$CC" 1>&6
1777 else
1778 echo "$ac_t""no" 1>&6
1781 if test -z "$CC"; then
1782 case "`uname -s`" in
1783 *win32* | *WIN32*)
1784 # Extract the first word of "cl", so it can be a program name with args.
1785 set dummy cl; ac_word=$2
1786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1787 echo "configure:1788: checking for $ac_word" >&5
1788 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1790 else
1791 if test -n "$CC"; then
1792 ac_cv_prog_CC="$CC" # Let the user override the test.
1793 else
1794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1795 ac_dummy="$PATH"
1796 for ac_dir in $ac_dummy; do
1797 test -z "$ac_dir" && ac_dir=.
1798 if test -f $ac_dir/$ac_word; then
1799 ac_cv_prog_CC="cl"
1800 break
1802 done
1803 IFS="$ac_save_ifs"
1806 CC="$ac_cv_prog_CC"
1807 if test -n "$CC"; then
1808 echo "$ac_t""$CC" 1>&6
1809 else
1810 echo "$ac_t""no" 1>&6
1813 esac
1815 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1818 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1819 echo "configure:1820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1821 ac_ext=c
1822 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1823 ac_cpp='$CPP $CPPFLAGS'
1824 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1825 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1826 cross_compiling=$ac_cv_prog_cc_cross
1828 cat > conftest.$ac_ext << EOF
1830 #line 1831 "configure"
1831 #include "confdefs.h"
1833 main(){return(0);}
1835 if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1836 ac_cv_prog_cc_works=yes
1837 # If we can't run a trivial program, we are probably using a cross compiler.
1838 if (./conftest; exit) 2>/dev/null; then
1839 ac_cv_prog_cc_cross=no
1840 else
1841 ac_cv_prog_cc_cross=yes
1843 else
1844 echo "configure: failed program was:" >&5
1845 cat conftest.$ac_ext >&5
1846 ac_cv_prog_cc_works=no
1848 rm -fr conftest*
1849 ac_ext=c
1850 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1851 ac_cpp='$CPP $CPPFLAGS'
1852 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1853 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1854 cross_compiling=$ac_cv_prog_cc_cross
1856 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1857 if test $ac_cv_prog_cc_works = no; then
1858 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1860 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1861 echo "configure:1862: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1862 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1863 cross_compiling=$ac_cv_prog_cc_cross
1865 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1866 echo "configure:1867: checking whether we are using GNU C" >&5
1867 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1869 else
1870 cat > conftest.c <<EOF
1871 #ifdef __GNUC__
1872 yes;
1873 #endif
1875 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1876 ac_cv_prog_gcc=yes
1877 else
1878 ac_cv_prog_gcc=no
1882 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1884 if test $ac_cv_prog_gcc = yes; then
1885 GCC=yes
1886 else
1887 GCC=
1890 ac_test_CFLAGS="${CFLAGS+set}"
1891 ac_save_CFLAGS="$CFLAGS"
1892 CFLAGS=
1893 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1894 echo "configure:1895: checking whether ${CC-cc} accepts -g" >&5
1895 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1897 else
1898 echo 'void f(){}' > conftest.c
1899 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1900 ac_cv_prog_cc_g=yes
1901 else
1902 ac_cv_prog_cc_g=no
1904 rm -f conftest*
1908 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1909 if test "$ac_test_CFLAGS" = set; then
1910 CFLAGS="$ac_save_CFLAGS"
1911 elif test $ac_cv_prog_cc_g = yes; then
1912 if test "$GCC" = yes; then
1913 CFLAGS="-g -O2"
1914 else
1915 CFLAGS="-g"
1917 else
1918 if test "$GCC" = yes; then
1919 CFLAGS="-O2"
1920 else
1921 CFLAGS=
1925 esac
1927 # On Suns, sometimes $CPP names a directory.
1928 if test -n "$CPP" && test -d "$CPP"; then
1929 CPP=
1932 #### Some systems specify a CPP to use unless we are using GCC.
1933 #### Now that we know whether we are using GCC, we can decide whether
1934 #### to use that one.
1935 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
1936 then
1937 CPP="$NON_GNU_CPP"
1940 #### Some systems specify a CC to use unless we are using GCC.
1941 #### Now that we know whether we are using GCC, we can decide whether
1942 #### to use that one.
1943 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
1944 test x$cc_specified != xyes
1945 then
1946 CC="$NON_GNU_CC"
1949 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
1950 then
1951 CC="$CC $GCC_TEST_OPTIONS"
1954 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
1955 then
1956 CC="$CC $NON_GCC_TEST_OPTIONS"
1959 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
1960 then
1961 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
1964 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
1965 then
1966 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
1969 #### Some other nice autoconf tests. If you add a test here which
1970 #### should make an entry in src/config.h, don't forget to add an
1971 #### #undef clause to src/config.h.in for autoconf to modify.
1973 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1974 echo "configure:1975: checking whether ln -s works" >&5
1975 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1977 else
1978 rm -f conftestdata
1979 if ln -s X conftestdata 2>/dev/null
1980 then
1981 rm -f conftestdata
1982 ac_cv_prog_LN_S="ln -s"
1983 else
1984 ac_cv_prog_LN_S=ln
1987 LN_S="$ac_cv_prog_LN_S"
1988 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1989 echo "$ac_t""yes" 1>&6
1990 else
1991 echo "$ac_t""no" 1>&6
1994 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1995 echo "configure:1996: checking how to run the C preprocessor" >&5
1996 # On Suns, sometimes $CPP names a directory.
1997 if test -n "$CPP" && test -d "$CPP"; then
1998 CPP=
2000 if test -z "$CPP"; then
2001 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2002 echo $ac_n "(cached) $ac_c" 1>&6
2003 else
2004 # This must be in double quotes, not single quotes, because CPP may get
2005 # substituted into the Makefile and "${CC-cc}" will confuse make.
2006 CPP="${CC-cc} -E"
2007 # On the NeXT, cc -E runs the code through the compiler's parser,
2008 # not just through cpp.
2009 cat > conftest.$ac_ext <<EOF
2010 #line 2011 "configure"
2011 #include "confdefs.h"
2012 #include <assert.h>
2013 Syntax Error
2015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2016 { (eval echo configure:2017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2017 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2018 if test -z "$ac_err"; then
2020 else
2021 echo "$ac_err" >&5
2022 echo "configure: failed program was:" >&5
2023 cat conftest.$ac_ext >&5
2024 rm -rf conftest*
2025 CPP="${CC-cc} -E -traditional-cpp"
2026 cat > conftest.$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2029 #include <assert.h>
2030 Syntax Error
2032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2033 { (eval echo configure:2034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2035 if test -z "$ac_err"; then
2037 else
2038 echo "$ac_err" >&5
2039 echo "configure: failed program was:" >&5
2040 cat conftest.$ac_ext >&5
2041 rm -rf conftest*
2042 CPP="${CC-cc} -nologo -E"
2043 cat > conftest.$ac_ext <<EOF
2044 #line 2045 "configure"
2045 #include "confdefs.h"
2046 #include <assert.h>
2047 Syntax Error
2049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2050 { (eval echo configure:2051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2052 if test -z "$ac_err"; then
2054 else
2055 echo "$ac_err" >&5
2056 echo "configure: failed program was:" >&5
2057 cat conftest.$ac_ext >&5
2058 rm -rf conftest*
2059 CPP=/lib/cpp
2061 rm -f conftest*
2063 rm -f conftest*
2065 rm -f conftest*
2066 ac_cv_prog_CPP="$CPP"
2068 CPP="$ac_cv_prog_CPP"
2069 else
2070 ac_cv_prog_CPP="$CPP"
2072 echo "$ac_t""$CPP" 1>&6
2074 # Find a good install program. We prefer a C program (faster),
2075 # so one script is as good as another. But avoid the broken or
2076 # incompatible versions:
2077 # SysV /etc/install, /usr/sbin/install
2078 # SunOS /usr/etc/install
2079 # IRIX /sbin/install
2080 # AIX /bin/install
2081 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2082 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2083 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2084 # ./install, which can be erroneously created by make from ./install.sh.
2085 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2086 echo "configure:2087: checking for a BSD compatible install" >&5
2087 if test -z "$INSTALL"; then
2088 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2089 echo $ac_n "(cached) $ac_c" 1>&6
2090 else
2091 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2092 for ac_dir in $PATH; do
2093 # Account for people who put trailing slashes in PATH elements.
2094 case "$ac_dir/" in
2095 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2097 # OSF1 and SCO ODT 3.0 have their own names for install.
2098 # Don't use installbsd from OSF since it installs stuff as root
2099 # by default.
2100 for ac_prog in ginstall scoinst install; do
2101 if test -f $ac_dir/$ac_prog; then
2102 if test $ac_prog = install &&
2103 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2104 # AIX install. It has an incompatible calling convention.
2106 else
2107 ac_cv_path_install="$ac_dir/$ac_prog -c"
2108 break 2
2111 done
2113 esac
2114 done
2115 IFS="$ac_save_IFS"
2118 if test "${ac_cv_path_install+set}" = set; then
2119 INSTALL="$ac_cv_path_install"
2120 else
2121 # As a last resort, use the slow shell script. We don't cache a
2122 # path for INSTALL within a source directory, because that will
2123 # break other packages using the cache if that directory is
2124 # removed, or if the path is relative.
2125 INSTALL="$ac_install_sh"
2128 echo "$ac_t""$INSTALL" 1>&6
2130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2131 # It thinks the first close brace ends the variable substitution.
2132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2134 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
2136 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2138 for ac_prog in 'bison -y' byacc
2140 # Extract the first word of "$ac_prog", so it can be a program name with args.
2141 set dummy $ac_prog; ac_word=$2
2142 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2143 echo "configure:2144: checking for $ac_word" >&5
2144 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2146 else
2147 if test -n "$YACC"; then
2148 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2149 else
2150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2151 ac_dummy="$PATH"
2152 for ac_dir in $ac_dummy; do
2153 test -z "$ac_dir" && ac_dir=.
2154 if test -f $ac_dir/$ac_word; then
2155 ac_cv_prog_YACC="$ac_prog"
2156 break
2158 done
2159 IFS="$ac_save_ifs"
2162 YACC="$ac_cv_prog_YACC"
2163 if test -n "$YACC"; then
2164 echo "$ac_t""$YACC" 1>&6
2165 else
2166 echo "$ac_t""no" 1>&6
2169 test -n "$YACC" && break
2170 done
2171 test -n "$YACC" || YACC="yacc"
2173 if test "x$RANLIB" = x; then
2174 # Extract the first word of "ranlib", so it can be a program name with args.
2175 set dummy ranlib; ac_word=$2
2176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2177 echo "configure:2178: checking for $ac_word" >&5
2178 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2179 echo $ac_n "(cached) $ac_c" 1>&6
2180 else
2181 if test -n "$RANLIB"; then
2182 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2183 else
2184 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2185 ac_dummy="$PATH"
2186 for ac_dir in $ac_dummy; do
2187 test -z "$ac_dir" && ac_dir=.
2188 if test -f $ac_dir/$ac_word; then
2189 ac_cv_prog_RANLIB="ranlib"
2190 break
2192 done
2193 IFS="$ac_save_ifs"
2194 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2197 RANLIB="$ac_cv_prog_RANLIB"
2198 if test -n "$RANLIB"; then
2199 echo "$ac_t""$RANLIB" 1>&6
2200 else
2201 echo "$ac_t""no" 1>&6
2206 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2207 echo "configure:2208: checking for AIX" >&5
2208 cat > conftest.$ac_ext <<EOF
2209 #line 2210 "configure"
2210 #include "confdefs.h"
2211 #ifdef _AIX
2213 #endif
2216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2217 egrep "yes" >/dev/null 2>&1; then
2218 rm -rf conftest*
2219 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
2220 #define _ALL_SOURCE 1
2223 else
2224 rm -rf conftest*
2225 echo "$ac_t""no" 1>&6
2227 rm -f conftest*
2231 # Sound support for GNU/Linux and the free BSDs.
2232 for ac_hdr in machine/soundcard.h sys/soundcard.h
2234 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2236 echo "configure:2237: checking for $ac_hdr" >&5
2237 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2239 else
2240 cat > conftest.$ac_ext <<EOF
2241 #line 2242 "configure"
2242 #include "confdefs.h"
2243 #include <$ac_hdr>
2245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2246 { (eval echo configure:2247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2248 if test -z "$ac_err"; then
2249 rm -rf conftest*
2250 eval "ac_cv_header_$ac_safe=yes"
2251 else
2252 echo "$ac_err" >&5
2253 echo "configure: failed program was:" >&5
2254 cat conftest.$ac_ext >&5
2255 rm -rf conftest*
2256 eval "ac_cv_header_$ac_safe=no"
2258 rm -f conftest*
2260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2261 echo "$ac_t""yes" 1>&6
2262 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2263 cat >> confdefs.h <<EOF
2264 #define $ac_tr_hdr 1
2267 else
2268 echo "$ac_t""no" 1>&6
2270 done
2273 for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
2274 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
2275 termcap.h stdio_ext.h
2277 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2278 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2279 echo "configure:2280: checking for $ac_hdr" >&5
2280 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2282 else
2283 cat > conftest.$ac_ext <<EOF
2284 #line 2285 "configure"
2285 #include "confdefs.h"
2286 #include <$ac_hdr>
2288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2289 { (eval echo configure:2290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2291 if test -z "$ac_err"; then
2292 rm -rf conftest*
2293 eval "ac_cv_header_$ac_safe=yes"
2294 else
2295 echo "$ac_err" >&5
2296 echo "configure: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2298 rm -rf conftest*
2299 eval "ac_cv_header_$ac_safe=no"
2301 rm -f conftest*
2303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2304 echo "$ac_t""yes" 1>&6
2305 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2306 cat >> confdefs.h <<EOF
2307 #define $ac_tr_hdr 1
2310 else
2311 echo "$ac_t""no" 1>&6
2313 done
2315 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2316 echo "configure:2317: checking for ANSI C header files" >&5
2317 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2318 echo $ac_n "(cached) $ac_c" 1>&6
2319 else
2320 cat > conftest.$ac_ext <<EOF
2321 #line 2322 "configure"
2322 #include "confdefs.h"
2323 #include <stdlib.h>
2324 #include <stdarg.h>
2325 #include <string.h>
2326 #include <float.h>
2328 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2329 { (eval echo configure:2330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2330 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2331 if test -z "$ac_err"; then
2332 rm -rf conftest*
2333 ac_cv_header_stdc=yes
2334 else
2335 echo "$ac_err" >&5
2336 echo "configure: failed program was:" >&5
2337 cat conftest.$ac_ext >&5
2338 rm -rf conftest*
2339 ac_cv_header_stdc=no
2341 rm -f conftest*
2343 if test $ac_cv_header_stdc = yes; then
2344 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2345 cat > conftest.$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2348 #include <string.h>
2350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2351 egrep "memchr" >/dev/null 2>&1; then
2353 else
2354 rm -rf conftest*
2355 ac_cv_header_stdc=no
2357 rm -f conftest*
2361 if test $ac_cv_header_stdc = yes; then
2362 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2363 cat > conftest.$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2366 #include <stdlib.h>
2368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2369 egrep "free" >/dev/null 2>&1; then
2371 else
2372 rm -rf conftest*
2373 ac_cv_header_stdc=no
2375 rm -f conftest*
2379 if test $ac_cv_header_stdc = yes; then
2380 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2381 if test "$cross_compiling" = yes; then
2383 else
2384 cat > conftest.$ac_ext <<EOF
2385 #line 2386 "configure"
2386 #include "confdefs.h"
2387 #include <ctype.h>
2388 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2389 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2390 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2391 int main () { int i; for (i = 0; i < 256; i++)
2392 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2393 exit (0); }
2396 if { (eval echo configure:2397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2397 then
2399 else
2400 echo "configure: failed program was:" >&5
2401 cat conftest.$ac_ext >&5
2402 rm -fr conftest*
2403 ac_cv_header_stdc=no
2405 rm -fr conftest*
2411 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2412 if test $ac_cv_header_stdc = yes; then
2413 cat >> confdefs.h <<\EOF
2414 #define STDC_HEADERS 1
2419 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2420 echo "configure:2421: checking whether time.h and sys/time.h may both be included" >&5
2421 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2423 else
2424 cat > conftest.$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2427 #include <sys/types.h>
2428 #include <sys/time.h>
2429 #include <time.h>
2430 int main() {
2431 struct tm *tp;
2432 ; return 0; }
2434 if { (eval echo configure:2435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2435 rm -rf conftest*
2436 ac_cv_header_time=yes
2437 else
2438 echo "configure: failed program was:" >&5
2439 cat conftest.$ac_ext >&5
2440 rm -rf conftest*
2441 ac_cv_header_time=no
2443 rm -f conftest*
2446 echo "$ac_t""$ac_cv_header_time" 1>&6
2447 if test $ac_cv_header_time = yes; then
2448 cat >> confdefs.h <<\EOF
2449 #define TIME_WITH_SYS_TIME 1
2454 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2455 echo "configure:2456: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2456 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2458 else
2459 cat > conftest.$ac_ext <<EOF
2460 #line 2461 "configure"
2461 #include "confdefs.h"
2462 #include <sys/types.h>
2463 #include <signal.h>
2464 /* NetBSD declares sys_siglist in unistd.h. */
2465 #ifdef HAVE_UNISTD_H
2466 #include <unistd.h>
2467 #endif
2468 int main() {
2469 char *msg = *(sys_siglist + 1);
2470 ; return 0; }
2472 if { (eval echo configure:2473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2473 rm -rf conftest*
2474 ac_cv_decl_sys_siglist=yes
2475 else
2476 echo "configure: failed program was:" >&5
2477 cat conftest.$ac_ext >&5
2478 rm -rf conftest*
2479 ac_cv_decl_sys_siglist=no
2481 rm -f conftest*
2484 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2485 if test $ac_cv_decl_sys_siglist = yes; then
2486 cat >> confdefs.h <<\EOF
2487 #define SYS_SIGLIST_DECLARED 1
2493 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2494 echo "configure:2495: checking for struct utimbuf" >&5
2495 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2497 else
2498 cat > conftest.$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2501 #ifdef TIME_WITH_SYS_TIME
2502 #include <sys/time.h>
2503 #include <time.h>
2504 #else
2505 #ifdef HAVE_SYS_TIME_H
2506 #include <sys/time.h>
2507 #else
2508 #include <time.h>
2509 #endif
2510 #endif
2511 #ifdef HAVE_UTIME_H
2512 #include <utime.h>
2513 #endif
2514 int main() {
2515 static struct utimbuf x; x.actime = x.modtime;
2516 ; return 0; }
2518 if { (eval echo configure:2519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2519 rm -rf conftest*
2520 emacs_cv_struct_utimbuf=yes
2521 else
2522 echo "configure: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2524 rm -rf conftest*
2525 emacs_cv_struct_utimbuf=no
2527 rm -f conftest*
2530 echo "$ac_t""$emacs_cv_struct_utimbuf" 1>&6
2531 if test $emacs_cv_struct_utimbuf = yes; then
2532 cat >> confdefs.h <<\EOF
2533 #define HAVE_STRUCT_UTIMBUF 1
2538 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2539 echo "configure:2540: checking return type of signal handlers" >&5
2540 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2542 else
2543 cat > conftest.$ac_ext <<EOF
2544 #line 2545 "configure"
2545 #include "confdefs.h"
2546 #include <sys/types.h>
2547 #include <signal.h>
2548 #ifdef signal
2549 #undef signal
2550 #endif
2551 #ifdef __cplusplus
2552 extern "C" void (*signal (int, void (*)(int)))(int);
2553 #else
2554 void (*signal ()) ();
2555 #endif
2557 int main() {
2558 int i;
2559 ; return 0; }
2561 if { (eval echo configure:2562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2562 rm -rf conftest*
2563 ac_cv_type_signal=void
2564 else
2565 echo "configure: failed program was:" >&5
2566 cat conftest.$ac_ext >&5
2567 rm -rf conftest*
2568 ac_cv_type_signal=int
2570 rm -f conftest*
2573 echo "$ac_t""$ac_cv_type_signal" 1>&6
2574 cat >> confdefs.h <<EOF
2575 #define RETSIGTYPE $ac_cv_type_signal
2580 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2581 echo "configure:2582: checking for struct timeval" >&5
2582 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2584 else
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2588 #ifdef TIME_WITH_SYS_TIME
2589 #include <sys/time.h>
2590 #include <time.h>
2591 #else
2592 #ifdef HAVE_SYS_TIME_H
2593 #include <sys/time.h>
2594 #else
2595 #include <time.h>
2596 #endif
2597 #endif
2598 int main() {
2599 static struct timeval x; x.tv_sec = x.tv_usec;
2600 ; return 0; }
2602 if { (eval echo configure:2603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2603 rm -rf conftest*
2604 emacs_cv_struct_timeval=yes
2605 else
2606 echo "configure: failed program was:" >&5
2607 cat conftest.$ac_ext >&5
2608 rm -rf conftest*
2609 emacs_cv_struct_timeval=no
2611 rm -f conftest*
2614 echo "$ac_t""$emacs_cv_struct_timeval" 1>&6
2615 HAVE_TIMEVAL=$emacs_cv_struct_timeval
2616 if test $emacs_cv_struct_timeval = yes; then
2617 cat >> confdefs.h <<\EOF
2618 #define HAVE_TIMEVAL 1
2623 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2624 echo "configure:2625: checking whether struct tm is in sys/time.h or time.h" >&5
2625 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2627 else
2628 cat > conftest.$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2631 #include <sys/types.h>
2632 #include <time.h>
2633 int main() {
2634 struct tm *tp; tp->tm_sec;
2635 ; return 0; }
2637 if { (eval echo configure:2638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2638 rm -rf conftest*
2639 ac_cv_struct_tm=time.h
2640 else
2641 echo "configure: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2643 rm -rf conftest*
2644 ac_cv_struct_tm=sys/time.h
2646 rm -f conftest*
2649 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2650 if test $ac_cv_struct_tm = sys/time.h; then
2651 cat >> confdefs.h <<\EOF
2652 #define TM_IN_SYS_TIME 1
2657 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2658 echo "configure:2659: checking for tm_zone in struct tm" >&5
2659 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2661 else
2662 cat > conftest.$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2665 #include <sys/types.h>
2666 #include <$ac_cv_struct_tm>
2667 int main() {
2668 struct tm tm; tm.tm_zone;
2669 ; return 0; }
2671 if { (eval echo configure:2672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2672 rm -rf conftest*
2673 ac_cv_struct_tm_zone=yes
2674 else
2675 echo "configure: failed program was:" >&5
2676 cat conftest.$ac_ext >&5
2677 rm -rf conftest*
2678 ac_cv_struct_tm_zone=no
2680 rm -f conftest*
2683 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
2684 if test "$ac_cv_struct_tm_zone" = yes; then
2685 cat >> confdefs.h <<\EOF
2686 #define HAVE_TM_ZONE 1
2689 else
2690 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2691 echo "configure:2692: checking for tzname" >&5
2692 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2694 else
2695 cat > conftest.$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2698 #include <time.h>
2699 #ifndef tzname /* For SGI. */
2700 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2701 #endif
2702 int main() {
2703 atoi(*tzname);
2704 ; return 0; }
2706 if { (eval echo configure:2707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2707 rm -rf conftest*
2708 ac_cv_var_tzname=yes
2709 else
2710 echo "configure: failed program was:" >&5
2711 cat conftest.$ac_ext >&5
2712 rm -rf conftest*
2713 ac_cv_var_tzname=no
2715 rm -f conftest*
2718 echo "$ac_t""$ac_cv_var_tzname" 1>&6
2719 if test $ac_cv_var_tzname = yes; then
2720 cat >> confdefs.h <<\EOF
2721 #define HAVE_TZNAME 1
2727 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
2728 echo "configure:2729: checking for tm_gmtoff in struct tm" >&5
2729 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
2730 echo $ac_n "(cached) $ac_c" 1>&6
2731 else
2732 cat > conftest.$ac_ext <<EOF
2733 #line 2734 "configure"
2734 #include "confdefs.h"
2735 #include <time.h>
2736 int main() {
2737 struct tm t; t.tm_gmtoff = 0
2738 ; return 0; }
2740 if { (eval echo configure:2741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2741 rm -rf conftest*
2742 emacs_cv_tm_gmtoff=yes
2743 else
2744 echo "configure: failed program was:" >&5
2745 cat conftest.$ac_ext >&5
2746 rm -rf conftest*
2747 emacs_cv_tm_gmtoff=no
2749 rm -f conftest*
2752 echo "$ac_t""$emacs_cv_tm_gmtoff" 1>&6
2753 if test $emacs_cv_tm_gmtoff = yes; then
2754 cat >> confdefs.h <<\EOF
2755 #define HAVE_TM_GMTOFF 1
2761 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2762 echo "configure:2763: checking for ${CC-cc} option to accept ANSI C" >&5
2763 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
2764 echo $ac_n "(cached) $ac_c" 1>&6
2765 else
2766 ac_cv_prog_cc_stdc=no
2767 ac_save_CC="$CC"
2768 # Don't try gcc -ansi; that turns off useful extensions and
2769 # breaks some systems' header files.
2770 # AIX -qlanglvl=ansi
2771 # Ultrix and OSF/1 -std1
2772 # HP-UX 10.20 and later -Ae
2773 # HP-UX older versions -Aa -D_HPUX_SOURCE
2774 # SVR4 -Xc -D__EXTENSIONS__
2775 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2777 CC="$ac_save_CC $ac_arg"
2778 cat > conftest.$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2781 #include <stdarg.h>
2782 #include <stdio.h>
2783 #include <sys/types.h>
2784 #include <sys/stat.h>
2785 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2786 struct buf { int x; };
2787 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2788 static char *e (p, i)
2789 char **p;
2790 int i;
2792 return p[i];
2794 static char *f (char * (*g) (char **, int), char **p, ...)
2796 char *s;
2797 va_list v;
2798 va_start (v,p);
2799 s = g (p, va_arg (v,int));
2800 va_end (v);
2801 return s;
2803 int test (int i, double x);
2804 struct s1 {int (*f) (int a);};
2805 struct s2 {int (*f) (double a);};
2806 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2807 int argc;
2808 char **argv;
2809 int main() {
2810 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2811 ; return 0; }
2813 if { (eval echo configure:2814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2814 rm -rf conftest*
2815 ac_cv_prog_cc_stdc="$ac_arg"; break
2816 else
2817 echo "configure: failed program was:" >&5
2818 cat conftest.$ac_ext >&5
2820 rm -f conftest*
2821 done
2822 CC="$ac_save_CC"
2826 case "x$ac_cv_prog_cc_stdc" in
2827 x|xno)
2828 echo "$ac_t""none needed" 1>&6 ;;
2830 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
2831 CC="$CC $ac_cv_prog_cc_stdc" ;;
2832 esac
2834 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
2835 echo "configure:2836: checking for function prototypes" >&5
2836 if test "$ac_cv_prog_cc_stdc" != no; then
2837 echo "$ac_t""yes" 1>&6
2838 cat >> confdefs.h <<\EOF
2839 #define PROTOTYPES 1
2842 else
2843 echo "$ac_t""no" 1>&6
2846 echo $ac_n "checking for working volatile""... $ac_c" 1>&6
2847 echo "configure:2848: checking for working volatile" >&5
2848 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6
2850 else
2851 cat > conftest.$ac_ext <<EOF
2852 #line 2853 "configure"
2853 #include "confdefs.h"
2855 int main() {
2857 volatile int x;
2858 int * volatile y;
2859 ; return 0; }
2861 if { (eval echo configure:2862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2862 rm -rf conftest*
2863 ac_cv_c_volatile=yes
2864 else
2865 echo "configure: failed program was:" >&5
2866 cat conftest.$ac_ext >&5
2867 rm -rf conftest*
2868 ac_cv_c_volatile=no
2870 rm -f conftest*
2873 echo "$ac_t""$ac_cv_c_volatile" 1>&6
2874 if test $ac_cv_c_volatile = no; then
2875 cat >> confdefs.h <<\EOF
2876 #define volatile
2881 echo $ac_n "checking for working const""... $ac_c" 1>&6
2882 echo "configure:2883: checking for working const" >&5
2883 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2884 echo $ac_n "(cached) $ac_c" 1>&6
2885 else
2886 cat > conftest.$ac_ext <<EOF
2887 #line 2888 "configure"
2888 #include "confdefs.h"
2890 int main() {
2892 /* Ultrix mips cc rejects this. */
2893 typedef int charset[2]; const charset x = {0,0};
2894 /* SunOS 4.1.1 cc rejects this. */
2895 char const *const *ccp;
2896 char **p;
2897 /* NEC SVR4.0.2 mips cc rejects this. */
2898 struct point {int x, y;};
2899 static struct point const zero = {0,0};
2900 /* AIX XL C 1.02.0.0 rejects this.
2901 It does not let you subtract one const X* pointer from another in an arm
2902 of an if-expression whose if-part is not a constant expression */
2903 const char *g = "string";
2904 ccp = &g + (g ? g-g : 0);
2905 /* HPUX 7.0 cc rejects these. */
2906 ++ccp;
2907 p = (char**) ccp;
2908 ccp = (char const *const *) p;
2909 { /* SCO 3.2v4 cc rejects this. */
2910 char *t;
2911 char const *s = 0 ? (char *) 0 : (char const *) 0;
2913 *t++ = 0;
2915 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2916 int x[] = {25, 17};
2917 const int *foo = &x[0];
2918 ++foo;
2920 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2921 typedef const int *iptr;
2922 iptr p = 0;
2923 ++p;
2925 { /* AIX XL C 1.02.0.0 rejects this saying
2926 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2927 struct s { int j; const int *ap[3]; };
2928 struct s *b; b->j = 5;
2930 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2931 const int foo = 10;
2934 ; return 0; }
2936 if { (eval echo configure:2937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2937 rm -rf conftest*
2938 ac_cv_c_const=yes
2939 else
2940 echo "configure: failed program was:" >&5
2941 cat conftest.$ac_ext >&5
2942 rm -rf conftest*
2943 ac_cv_c_const=no
2945 rm -f conftest*
2948 echo "$ac_t""$ac_cv_c_const" 1>&6
2949 if test $ac_cv_c_const = no; then
2950 cat >> confdefs.h <<\EOF
2951 #define const
2956 echo $ac_n "checking for inline""... $ac_c" 1>&6
2957 echo "configure:2958: checking for inline" >&5
2958 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2959 echo $ac_n "(cached) $ac_c" 1>&6
2960 else
2961 ac_cv_c_inline=no
2962 for ac_kw in inline __inline__ __inline; do
2963 cat > conftest.$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2967 int main() {
2968 } int $ac_kw foo() {
2969 ; return 0; }
2971 if { (eval echo configure:2972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2972 rm -rf conftest*
2973 ac_cv_c_inline=$ac_kw; break
2974 else
2975 echo "configure: failed program was:" >&5
2976 cat conftest.$ac_ext >&5
2978 rm -f conftest*
2979 done
2983 echo "$ac_t""$ac_cv_c_inline" 1>&6
2984 case "$ac_cv_c_inline" in
2985 inline | yes) ;;
2986 no) cat >> confdefs.h <<\EOF
2987 #define inline
2990 *) cat >> confdefs.h <<EOF
2991 #define inline $ac_cv_c_inline
2994 esac
2996 echo $ac_n "checking for void * support""... $ac_c" 1>&6
2997 echo "configure:2998: checking for void * support" >&5
2998 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then
2999 echo $ac_n "(cached) $ac_c" 1>&6
3000 else
3001 cat > conftest.$ac_ext <<EOF
3002 #line 3003 "configure"
3003 #include "confdefs.h"
3005 int main() {
3006 void * foo;
3007 ; return 0; }
3009 if { (eval echo configure:3010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3010 rm -rf conftest*
3011 emacs_cv_void_star=yes
3012 else
3013 echo "configure: failed program was:" >&5
3014 cat conftest.$ac_ext >&5
3015 rm -rf conftest*
3016 emacs_cv_void_star=no
3018 rm -f conftest*
3021 echo "$ac_t""$emacs_cv_void_star" 1>&6
3022 if test $emacs_cv_void_star = yes; then
3023 cat >> confdefs.h <<\EOF
3024 #define POINTER_TYPE void
3027 else
3028 cat >> confdefs.h <<\EOF
3029 #define POINTER_TYPE char
3034 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3035 echo "configure:3036: checking whether ${MAKE-make} sets \${MAKE}" >&5
3036 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3037 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3039 else
3040 cat > conftestmake <<\EOF
3041 all:
3042 @echo 'ac_maketemp="${MAKE}"'
3044 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3045 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3046 if test -n "$ac_maketemp"; then
3047 eval ac_cv_prog_make_${ac_make}_set=yes
3048 else
3049 eval ac_cv_prog_make_${ac_make}_set=no
3051 rm -f conftestmake
3053 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3054 echo "$ac_t""yes" 1>&6
3055 SET_MAKE=
3056 else
3057 echo "$ac_t""no" 1>&6
3058 SET_MAKE="MAKE=${MAKE-make}"
3062 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3063 echo "configure:3064: checking for long file names" >&5
3064 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3066 else
3067 ac_cv_sys_long_file_names=yes
3068 # Test for long file names in all the places we know might matter:
3069 # . the current directory, where building will happen
3070 # $prefix/lib where we will be installing things
3071 # $exec_prefix/lib likewise
3072 # eval it to expand exec_prefix.
3073 # $TMPDIR if set, where it might want to write temporary files
3074 # if $TMPDIR is not set:
3075 # /tmp where it might want to write temporary files
3076 # /var/tmp likewise
3077 # /usr/tmp likewise
3078 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3079 ac_tmpdirs="$TMPDIR"
3080 else
3081 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3083 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3084 test -d $ac_dir || continue
3085 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3086 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null
3087 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null
3088 val=`cat $ac_dir/conftest9012345 2>/dev/null`
3089 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then
3090 ac_cv_sys_long_file_names=no
3091 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
3092 break
3094 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null
3095 done
3098 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
3099 if test $ac_cv_sys_long_file_names = yes; then
3100 cat >> confdefs.h <<\EOF
3101 #define HAVE_LONG_FILE_NAMES 1
3107 #### Choose a window system.
3109 # If we find X, set shell vars x_includes and x_libraries to the
3110 # paths, otherwise set no_x=yes.
3111 # Uses ac_ vars as temps to allow command line to override cache and checks.
3112 # --without-x overrides everything else, but does not touch the cache.
3113 echo $ac_n "checking for X""... $ac_c" 1>&6
3114 echo "configure:3115: checking for X" >&5
3116 # Check whether --with-x or --without-x was given.
3117 if test "${with_x+set}" = set; then
3118 withval="$with_x"
3122 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3123 if test "x$with_x" = xno; then
3124 # The user explicitly disabled X.
3125 have_x=disabled
3126 else
3127 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3128 # Both variables are already set.
3129 have_x=yes
3130 else
3131 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3133 else
3134 # One or both of the vars are not set, and there is no cached value.
3135 ac_x_includes=NO ac_x_libraries=NO
3136 rm -fr conftestdir
3137 if mkdir conftestdir; then
3138 cd conftestdir
3139 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3140 cat > Imakefile <<'EOF'
3141 acfindx:
3142 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3144 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3145 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3146 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3147 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3148 for ac_extension in a so sl; do
3149 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3150 test -f $ac_im_libdir/libX11.$ac_extension; then
3151 ac_im_usrlibdir=$ac_im_libdir; break
3153 done
3154 # Screen out bogus values from the imake configuration. They are
3155 # bogus both because they are the default anyway, and because
3156 # using them would break gcc on systems where it needs fixed includes.
3157 case "$ac_im_incroot" in
3158 /usr/include) ;;
3159 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3160 esac
3161 case "$ac_im_usrlibdir" in
3162 /usr/lib | /lib) ;;
3163 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3164 esac
3166 cd ..
3167 rm -fr conftestdir
3170 if test "$ac_x_includes" = NO; then
3171 # Guess where to find include files, by looking for this one X11 .h file.
3172 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3174 # First, try using that file with no special directory specified.
3175 cat > conftest.$ac_ext <<EOF
3176 #line 3177 "configure"
3177 #include "confdefs.h"
3178 #include <$x_direct_test_include>
3180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3181 { (eval echo configure:3182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3183 if test -z "$ac_err"; then
3184 rm -rf conftest*
3185 # We can compile using X headers with no special include directory.
3186 ac_x_includes=
3187 else
3188 echo "$ac_err" >&5
3189 echo "configure: failed program was:" >&5
3190 cat conftest.$ac_ext >&5
3191 rm -rf conftest*
3192 # Look for the header file in a standard set of common directories.
3193 # Check X11 before X11Rn because it is often a symlink to the current release.
3194 for ac_dir in \
3195 /usr/X11/include \
3196 /usr/X11R6/include \
3197 /usr/X11R5/include \
3198 /usr/X11R4/include \
3200 /usr/include/X11 \
3201 /usr/include/X11R6 \
3202 /usr/include/X11R5 \
3203 /usr/include/X11R4 \
3205 /usr/local/X11/include \
3206 /usr/local/X11R6/include \
3207 /usr/local/X11R5/include \
3208 /usr/local/X11R4/include \
3210 /usr/local/include/X11 \
3211 /usr/local/include/X11R6 \
3212 /usr/local/include/X11R5 \
3213 /usr/local/include/X11R4 \
3215 /usr/X386/include \
3216 /usr/x386/include \
3217 /usr/XFree86/include/X11 \
3219 /usr/include \
3220 /usr/local/include \
3221 /usr/unsupported/include \
3222 /usr/athena/include \
3223 /usr/local/x11r5/include \
3224 /usr/lpp/Xamples/include \
3226 /usr/openwin/include \
3227 /usr/openwin/share/include \
3230 if test -r "$ac_dir/$x_direct_test_include"; then
3231 ac_x_includes=$ac_dir
3232 break
3234 done
3236 rm -f conftest*
3237 fi # $ac_x_includes = NO
3239 if test "$ac_x_libraries" = NO; then
3240 # Check for the libraries.
3242 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3243 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3245 # See if we find them without any special options.
3246 # Don't add to $LIBS permanently.
3247 ac_save_LIBS="$LIBS"
3248 LIBS="-l$x_direct_test_library $LIBS"
3249 cat > conftest.$ac_ext <<EOF
3250 #line 3251 "configure"
3251 #include "confdefs.h"
3253 int main() {
3254 ${x_direct_test_function}()
3255 ; return 0; }
3257 if { (eval echo configure:3258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3258 rm -rf conftest*
3259 LIBS="$ac_save_LIBS"
3260 # We can link X programs with no special library path.
3261 ac_x_libraries=
3262 else
3263 echo "configure: failed program was:" >&5
3264 cat conftest.$ac_ext >&5
3265 rm -rf conftest*
3266 LIBS="$ac_save_LIBS"
3267 # First see if replacing the include by lib works.
3268 # Check X11 before X11Rn because it is often a symlink to the current release.
3269 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3270 /usr/X11/lib \
3271 /usr/X11R6/lib \
3272 /usr/X11R5/lib \
3273 /usr/X11R4/lib \
3275 /usr/lib/X11 \
3276 /usr/lib/X11R6 \
3277 /usr/lib/X11R5 \
3278 /usr/lib/X11R4 \
3280 /usr/local/X11/lib \
3281 /usr/local/X11R6/lib \
3282 /usr/local/X11R5/lib \
3283 /usr/local/X11R4/lib \
3285 /usr/local/lib/X11 \
3286 /usr/local/lib/X11R6 \
3287 /usr/local/lib/X11R5 \
3288 /usr/local/lib/X11R4 \
3290 /usr/X386/lib \
3291 /usr/x386/lib \
3292 /usr/XFree86/lib/X11 \
3294 /usr/lib \
3295 /usr/local/lib \
3296 /usr/unsupported/lib \
3297 /usr/athena/lib \
3298 /usr/local/x11r5/lib \
3299 /usr/lpp/Xamples/lib \
3300 /lib/usr/lib/X11 \
3302 /usr/openwin/lib \
3303 /usr/openwin/share/lib \
3306 for ac_extension in a so sl; do
3307 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3308 ac_x_libraries=$ac_dir
3309 break 2
3311 done
3312 done
3314 rm -f conftest*
3315 fi # $ac_x_libraries = NO
3317 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3318 # Didn't find X anywhere. Cache the known absence of X.
3319 ac_cv_have_x="have_x=no"
3320 else
3321 # Record where we found X for the cache.
3322 ac_cv_have_x="have_x=yes \
3323 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3327 eval "$ac_cv_have_x"
3328 fi # $with_x != no
3330 if test "$have_x" != yes; then
3331 echo "$ac_t""$have_x" 1>&6
3332 no_x=yes
3333 else
3334 # If each of the values was on the command line, it overrides each guess.
3335 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3336 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3337 # Update the cache value to reflect the command line values.
3338 ac_cv_have_x="have_x=yes \
3339 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3340 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3343 if test "$no_x" = yes; then
3344 window_system=none
3345 else
3346 window_system=x11
3349 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
3350 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
3351 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
3352 x_default_search_path=""
3353 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
3354 x_search_path="${x_library}/X11/%L/%T/%N%C%S:\
3355 ${x_library}/X11/%L/%T/%N%C%S:${x_libary}/X11/%l/%T/%N%C%S:\
3356 ${x_library}/X11/%T/%N%C%S:${x_library}/X11/%L/%T/%N%S:\
3357 ${x_library}/X11/%l/%T/%N%S:${x_library}/X11/%T/%N%S"
3358 if test x"${x_default_search_path}" = x; then
3359 x_default_search_path=${x_search_path}
3360 else
3361 x_default_search_path="${x_search_path}:${x_default_search_path}"
3363 done
3365 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
3366 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
3369 if test x"${x_includes}" = x; then
3370 bitmapdir=/usr/include/X11/bitmaps
3371 else
3372 # accumulate include directories that have X11 bitmap subdirectories
3373 bmd_acc="dummyval"
3374 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
3375 if test -d "${bmd}/X11/bitmaps"; then
3376 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
3378 if test -d "${bmd}/bitmaps"; then
3379 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
3381 done
3382 if test ${bmd_acc} != "dummyval"; then
3383 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
3387 case "${window_system}" in
3388 x11 )
3389 HAVE_X_WINDOWS=yes
3390 HAVE_X11=yes
3391 case "${with_x_toolkit}" in
3392 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
3393 motif ) USE_X_TOOLKIT=MOTIF ;;
3394 no ) USE_X_TOOLKIT=none ;;
3395 * ) USE_X_TOOLKIT=maybe ;;
3396 esac
3398 none )
3399 HAVE_X_WINDOWS=no
3400 HAVE_X11=no
3401 USE_X_TOOLKIT=none
3403 esac
3405 ### If we're using X11, we should use the X menu package.
3406 HAVE_MENUS=no
3407 case ${HAVE_X11} in
3408 yes ) HAVE_MENUS=yes ;;
3409 esac
3411 if test "${opsys}" = "hpux9"; then
3412 case "${x_libraries}" in
3413 *X11R4* )
3414 opsysfile="s/hpux9-x11r4.h"
3416 esac
3419 if test "${opsys}" = "hpux9shr"; then
3420 case "${x_libraries}" in
3421 *X11R4* )
3422 opsysfile="s/hpux9shxr4.h"
3424 esac
3427 #### Extract some information from the operating system and machine files.
3429 echo "checking the machine- and system-dependent files to find out
3430 - which libraries the lib-src programs will want, and
3431 - whether the GNU malloc routines are usable" 1>&6
3432 echo "configure:3433: checking the machine- and system-dependent files to find out
3433 - which libraries the lib-src programs will want, and
3434 - whether the GNU malloc routines are usable" >&5
3436 ### First figure out CFLAGS (which we use for running the compiler here)
3437 ### and REAL_CFLAGS (which we use for real compilation).
3438 ### The two are the same except on a few systems, where they are made
3439 ### different to work around various lossages. For example,
3440 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3441 ### as implying static linking.
3443 ### If the CFLAGS env var is specified, we use that value
3444 ### instead of the default.
3446 ### It's not important that this name contain the PID; you can't run
3447 ### two configures in the same directory and have anything work
3448 ### anyway.
3449 tempcname="conftest.c"
3451 echo '
3452 #include "'${srcdir}'/src/'${opsysfile}'"
3453 #include "'${srcdir}'/src/'${machfile}'"
3454 #ifndef LIBS_MACHINE
3455 #define LIBS_MACHINE
3456 #endif
3457 #ifndef LIBS_SYSTEM
3458 #define LIBS_SYSTEM
3459 #endif
3460 #ifndef C_SWITCH_SYSTEM
3461 #define C_SWITCH_SYSTEM
3462 #endif
3463 #ifndef C_SWITCH_MACHINE
3464 #define C_SWITCH_MACHINE
3465 #endif
3466 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3467 configure___ c_switch_system=C_SWITCH_SYSTEM
3468 configure___ c_switch_machine=C_SWITCH_MACHINE
3470 #ifndef LIB_X11_LIB
3471 #define LIB_X11_LIB -lX11
3472 #endif
3474 #ifndef LIBX11_MACHINE
3475 #define LIBX11_MACHINE
3476 #endif
3478 #ifndef LIBX11_SYSTEM
3479 #define LIBX11_SYSTEM
3480 #endif
3481 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3483 #ifdef UNEXEC
3484 configure___ unexec=UNEXEC
3485 #else
3486 configure___ unexec=unexec.o
3487 #endif
3489 #ifdef SYSTEM_MALLOC
3490 configure___ system_malloc=yes
3491 #else
3492 configure___ system_malloc=no
3493 #endif
3495 #ifndef C_DEBUG_SWITCH
3496 #define C_DEBUG_SWITCH -g
3497 #endif
3499 #ifndef C_OPTIMIZE_SWITCH
3500 #ifdef __GNUC__
3501 #define C_OPTIMIZE_SWITCH -O2
3502 #else
3503 #define C_OPTIMIZE_SWITCH -O
3504 #endif
3505 #endif
3507 #ifndef LD_SWITCH_MACHINE
3508 #define LD_SWITCH_MACHINE
3509 #endif
3511 #ifndef LD_SWITCH_SYSTEM
3512 #define LD_SWITCH_SYSTEM
3513 #endif
3515 #ifndef LD_SWITCH_X_SITE_AUX
3516 #define LD_SWITCH_X_SITE_AUX
3517 #endif
3519 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3520 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3522 #ifdef THIS_IS_CONFIGURE
3524 /* Get the CFLAGS for tests in configure. */
3525 #ifdef __GNUC__
3526 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3527 #else
3528 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3529 #endif
3531 #else /* not THIS_IS_CONFIGURE */
3533 /* Get the CFLAGS for real compilation. */
3534 #ifdef __GNUC__
3535 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3536 #else
3537 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3538 #endif
3540 #endif /* not THIS_IS_CONFIGURE */
3541 ' > ${tempcname}
3543 # The value of CPP is a quoted variable reference, so we need to do this
3544 # to get its actual value...
3545 CPP=`eval "echo $CPP"`
3546 eval `${CPP} -Isrc ${tempcname} \
3547 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3548 if test "x$SPECIFIED_CFLAGS" = x; then
3549 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3550 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3551 else
3552 REAL_CFLAGS="$CFLAGS"
3554 rm ${tempcname}
3556 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
3558 ### Compute the unexec source name from the object name.
3559 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
3561 # Do the opsystem or machine files prohibit the use of the GNU malloc?
3562 # Assume not, until told otherwise.
3563 GNU_MALLOC=yes
3564 doug_lea_malloc=yes
3565 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3566 echo "configure:3567: checking for malloc_get_state" >&5
3567 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
3569 else
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3573 /* System header to define __stub macros and hopefully few prototypes,
3574 which can conflict with char malloc_get_state(); below. */
3575 #include <assert.h>
3576 /* Override any gcc2 internal prototype to avoid an error. */
3577 /* We use char because int might match the return type of a gcc2
3578 builtin and then its argument prototype would still apply. */
3579 char malloc_get_state();
3581 int main() {
3583 /* The GNU C library defines this for functions which it implements
3584 to always fail with ENOSYS. Some functions are actually named
3585 something starting with __ and the normal name is an alias. */
3586 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
3587 choke me
3588 #else
3589 malloc_get_state();
3590 #endif
3592 ; return 0; }
3594 if { (eval echo configure:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3595 rm -rf conftest*
3596 eval "ac_cv_func_malloc_get_state=yes"
3597 else
3598 echo "configure: failed program was:" >&5
3599 cat conftest.$ac_ext >&5
3600 rm -rf conftest*
3601 eval "ac_cv_func_malloc_get_state=no"
3603 rm -f conftest*
3606 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
3607 echo "$ac_t""yes" 1>&6
3609 else
3610 echo "$ac_t""no" 1>&6
3611 doug_lea_malloc=no
3614 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3615 echo "configure:3616: checking for malloc_set_state" >&5
3616 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3618 else
3619 cat > conftest.$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3622 /* System header to define __stub macros and hopefully few prototypes,
3623 which can conflict with char malloc_set_state(); below. */
3624 #include <assert.h>
3625 /* Override any gcc2 internal prototype to avoid an error. */
3626 /* We use char because int might match the return type of a gcc2
3627 builtin and then its argument prototype would still apply. */
3628 char malloc_set_state();
3630 int main() {
3632 /* The GNU C library defines this for functions which it implements
3633 to always fail with ENOSYS. Some functions are actually named
3634 something starting with __ and the normal name is an alias. */
3635 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3636 choke me
3637 #else
3638 malloc_set_state();
3639 #endif
3641 ; return 0; }
3643 if { (eval echo configure:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3644 rm -rf conftest*
3645 eval "ac_cv_func_malloc_set_state=yes"
3646 else
3647 echo "configure: failed program was:" >&5
3648 cat conftest.$ac_ext >&5
3649 rm -rf conftest*
3650 eval "ac_cv_func_malloc_set_state=no"
3652 rm -f conftest*
3655 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3656 echo "$ac_t""yes" 1>&6
3658 else
3659 echo "$ac_t""no" 1>&6
3660 doug_lea_malloc=no
3663 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3664 echo "configure:3665: checking whether __after_morecore_hook exists" >&5
3665 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3667 else
3668 cat > conftest.$ac_ext <<EOF
3669 #line 3670 "configure"
3670 #include "confdefs.h"
3671 extern void (* __after_morecore_hook)();
3672 int main() {
3673 __after_morecore_hook = 0
3674 ; return 0; }
3676 if { (eval echo configure:3677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3677 rm -rf conftest*
3678 emacs_cv_var___after_morecore_hook=yes
3679 else
3680 echo "configure: failed program was:" >&5
3681 cat conftest.$ac_ext >&5
3682 rm -rf conftest*
3683 emacs_cv_var___after_morecore_hook=no
3685 rm -f conftest*
3688 echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6
3689 if test $emacs_cv_var___after_morecore_hook = no; then
3690 doug_lea_malloc=no
3692 if test "${system_malloc}" = "yes"; then
3693 GNU_MALLOC=no
3694 GNU_MALLOC_reason="
3695 (The GNU allocators don't work with this system configuration.)"
3697 if test "$doug_lea_malloc" = "yes" ; then
3698 if test "$GNU_MALLOC" = yes ; then
3699 GNU_MALLOC_reason="
3700 (Using Doug Lea's new malloc from the GNU C Library.)"
3702 cat >> confdefs.h <<\EOF
3703 #define DOUG_LEA_MALLOC 1
3708 if test x"${REL_ALLOC}" = x; then
3709 REL_ALLOC=${GNU_MALLOC}
3712 #### Add the libraries to LIBS and check for some functions.
3714 if test x"${OVERRIDE_CPPFLAGS}" != x; then
3715 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
3716 else
3717 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
3720 LIBS="$libsrc_libs $LIBS"
3722 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3723 echo "configure:3724: checking for dnet_ntoa in -ldnet" >&5
3724 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3725 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6
3727 else
3728 ac_save_LIBS="$LIBS"
3729 LIBS="-ldnet $LIBS"
3730 cat > conftest.$ac_ext <<EOF
3731 #line 3732 "configure"
3732 #include "confdefs.h"
3733 /* Override any gcc2 internal prototype to avoid an error. */
3734 /* We use char because int might match the return type of a gcc2
3735 builtin and then its argument prototype would still apply. */
3736 char dnet_ntoa();
3738 int main() {
3739 dnet_ntoa()
3740 ; return 0; }
3742 if { (eval echo configure:3743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3743 rm -rf conftest*
3744 eval "ac_cv_lib_$ac_lib_var=yes"
3745 else
3746 echo "configure: failed program was:" >&5
3747 cat conftest.$ac_ext >&5
3748 rm -rf conftest*
3749 eval "ac_cv_lib_$ac_lib_var=no"
3751 rm -f conftest*
3752 LIBS="$ac_save_LIBS"
3755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3756 echo "$ac_t""yes" 1>&6
3757 ac_tr_lib=HAVE_LIB`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3758 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3759 cat >> confdefs.h <<EOF
3760 #define $ac_tr_lib 1
3763 LIBS="-ldnet $LIBS"
3765 else
3766 echo "$ac_t""no" 1>&6
3770 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
3771 echo "configure:3772: checking for main in -lXbsd" >&5
3772 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
3773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3775 else
3776 ac_save_LIBS="$LIBS"
3777 LIBS="-lXbsd $LIBS"
3778 cat > conftest.$ac_ext <<EOF
3779 #line 3780 "configure"
3780 #include "confdefs.h"
3782 int main() {
3783 main()
3784 ; return 0; }
3786 if { (eval echo configure:3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3787 rm -rf conftest*
3788 eval "ac_cv_lib_$ac_lib_var=yes"
3789 else
3790 echo "configure: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3792 rm -rf conftest*
3793 eval "ac_cv_lib_$ac_lib_var=no"
3795 rm -f conftest*
3796 LIBS="$ac_save_LIBS"
3799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3800 echo "$ac_t""yes" 1>&6
3801 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
3802 else
3803 echo "$ac_t""no" 1>&6
3807 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3808 echo "configure:3809: checking for cma_open in -lpthreads" >&5
3809 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3810 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3812 else
3813 ac_save_LIBS="$LIBS"
3814 LIBS="-lpthreads $LIBS"
3815 cat > conftest.$ac_ext <<EOF
3816 #line 3817 "configure"
3817 #include "confdefs.h"
3818 /* Override any gcc2 internal prototype to avoid an error. */
3819 /* We use char because int might match the return type of a gcc2
3820 builtin and then its argument prototype would still apply. */
3821 char cma_open();
3823 int main() {
3824 cma_open()
3825 ; return 0; }
3827 if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3828 rm -rf conftest*
3829 eval "ac_cv_lib_$ac_lib_var=yes"
3830 else
3831 echo "configure: failed program was:" >&5
3832 cat conftest.$ac_ext >&5
3833 rm -rf conftest*
3834 eval "ac_cv_lib_$ac_lib_var=no"
3836 rm -f conftest*
3837 LIBS="$ac_save_LIBS"
3840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3841 echo "$ac_t""yes" 1>&6
3842 ac_tr_lib=HAVE_LIB`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3843 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3844 cat >> confdefs.h <<EOF
3845 #define $ac_tr_lib 1
3848 LIBS="-lpthreads $LIBS"
3850 else
3851 echo "$ac_t""no" 1>&6
3855 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
3856 echo "configure:3857: checking for XFree86 in /usr/X386" >&5
3857 if test -d /usr/X386/include; then
3858 HAVE_XFREE386=yes
3859 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
3860 else
3861 HAVE_XFREE386=no
3863 echo "$ac_t""$HAVE_XFREE386" 1>&6
3865 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
3866 # for the tests that follow. We set it back to REAL_CFLAGS later on.
3868 if test "${HAVE_X11}" = "yes"; then
3869 DEFS="$C_SWITCH_X_SITE $DEFS"
3870 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
3871 LIBS="$LIBX $LIBS"
3872 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
3874 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
3875 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
3876 # but it's more convenient here to set LD_RUN_PATH
3877 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
3878 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
3879 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
3880 export LD_RUN_PATH
3883 if test "${opsys}" = "gnu-linux"; then
3884 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
3885 echo "configure:3886: checking whether X on GNU/Linux needs -b to link" >&5
3886 cat > conftest.$ac_ext <<EOF
3887 #line 3888 "configure"
3888 #include "confdefs.h"
3890 int main() {
3891 XOpenDisplay ("foo");
3892 ; return 0; }
3894 if { (eval echo configure:3895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3895 rm -rf conftest*
3896 xlinux_first_failure=no
3897 else
3898 echo "configure: failed program was:" >&5
3899 cat conftest.$ac_ext >&5
3900 rm -rf conftest*
3901 xlinux_first_failure=yes
3903 rm -f conftest*
3904 if test "${xlinux_first_failure}" = "yes"; then
3905 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
3906 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
3907 OLD_CPPFLAGS="$CPPFLAGS"
3908 OLD_LIBS="$LIBS"
3909 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
3910 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
3911 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
3912 LIBS="$LIBS -b i486-linuxaout"
3913 cat > conftest.$ac_ext <<EOF
3914 #line 3915 "configure"
3915 #include "confdefs.h"
3917 int main() {
3918 XOpenDisplay ("foo");
3919 ; return 0; }
3921 if { (eval echo configure:3922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3922 rm -rf conftest*
3923 xlinux_second_failure=no
3924 else
3925 echo "configure: failed program was:" >&5
3926 cat conftest.$ac_ext >&5
3927 rm -rf conftest*
3928 xlinux_second_failure=yes
3930 rm -f conftest*
3931 if test "${xlinux_second_failure}" = "yes"; then
3932 # If we get the same failure with -b, there is no use adding -b.
3933 # So take it out. This plays safe.
3934 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
3935 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
3936 CPPFLAGS="$OLD_CPPFLAGS"
3937 LIBS="$OLD_LIBS"
3938 echo "$ac_t""no" 1>&6
3939 else
3940 echo "$ac_t""yes" 1>&6
3942 else
3943 echo "$ac_t""no" 1>&6
3947 for ac_func in XrmSetDatabase XScreenResourceString \
3948 XScreenNumberOfScreen XSetWMProtocols
3950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3951 echo "configure:3952: checking for $ac_func" >&5
3952 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3954 else
3955 cat > conftest.$ac_ext <<EOF
3956 #line 3957 "configure"
3957 #include "confdefs.h"
3958 /* System header to define __stub macros and hopefully few prototypes,
3959 which can conflict with char $ac_func(); below. */
3960 #include <assert.h>
3961 /* Override any gcc2 internal prototype to avoid an error. */
3962 /* We use char because int might match the return type of a gcc2
3963 builtin and then its argument prototype would still apply. */
3964 char $ac_func();
3966 int main() {
3968 /* The GNU C library defines this for functions which it implements
3969 to always fail with ENOSYS. Some functions are actually named
3970 something starting with __ and the normal name is an alias. */
3971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3972 choke me
3973 #else
3974 $ac_func();
3975 #endif
3977 ; return 0; }
3979 if { (eval echo configure:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3980 rm -rf conftest*
3981 eval "ac_cv_func_$ac_func=yes"
3982 else
3983 echo "configure: failed program was:" >&5
3984 cat conftest.$ac_ext >&5
3985 rm -rf conftest*
3986 eval "ac_cv_func_$ac_func=no"
3988 rm -f conftest*
3991 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3992 echo "$ac_t""yes" 1>&6
3993 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3994 cat >> confdefs.h <<EOF
3995 #define $ac_tr_func 1
3998 else
3999 echo "$ac_t""no" 1>&6
4001 done
4005 if test "${window_system}" = "x11"; then
4006 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
4007 echo "configure:4008: checking X11 version 6" >&5
4008 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
4009 echo $ac_n "(cached) $ac_c" 1>&6
4010 else
4011 cat > conftest.$ac_ext <<EOF
4012 #line 4013 "configure"
4013 #include "confdefs.h"
4014 #include <X11/Xlib.h>
4015 int main() {
4016 #if XlibSpecificationRelease < 6
4017 fail;
4018 #endif
4020 ; return 0; }
4022 if { (eval echo configure:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4023 rm -rf conftest*
4024 emacs_cv_x11_version_6=yes
4025 else
4026 echo "configure: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4028 rm -rf conftest*
4029 emacs_cv_x11_version_6=no
4031 rm -f conftest*
4034 if test $emacs_cv_x11_version_6 = yes; then
4035 echo "$ac_t""6 or newer" 1>&6
4036 cat >> confdefs.h <<\EOF
4037 #define HAVE_X11R6 1
4040 else
4041 echo "$ac_t""before 6" 1>&6
4045 if test "${window_system}" = "x11"; then
4046 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
4047 echo "configure:4048: checking X11 version 5" >&5
4048 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
4049 echo $ac_n "(cached) $ac_c" 1>&6
4050 else
4051 cat > conftest.$ac_ext <<EOF
4052 #line 4053 "configure"
4053 #include "confdefs.h"
4054 #include <X11/Xlib.h>
4055 int main() {
4056 #if XlibSpecificationRelease < 5
4057 fail;
4058 #endif
4060 ; return 0; }
4062 if { (eval echo configure:4063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4063 rm -rf conftest*
4064 emacs_cv_x11_version_5=yes
4065 else
4066 echo "configure: failed program was:" >&5
4067 cat conftest.$ac_ext >&5
4068 rm -rf conftest*
4069 emacs_cv_x11_version_5=no
4071 rm -f conftest*
4074 if test $emacs_cv_x11_version_5 = yes; then
4075 echo "$ac_t""5 or newer" 1>&6
4076 HAVE_X11R5=yes
4077 cat >> confdefs.h <<\EOF
4078 #define HAVE_X11R5 1
4081 else
4082 HAVE_X11R5=no
4083 echo "$ac_t""before 5" 1>&6
4087 if test x"${USE_X_TOOLKIT}" = xmaybe; then
4088 if test x"${HAVE_X11R5}" = xyes; then
4089 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
4090 echo "configure:4091: checking X11 version 5 with Xaw" >&5
4091 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
4092 echo $ac_n "(cached) $ac_c" 1>&6
4093 else
4094 cat > conftest.$ac_ext <<EOF
4095 #line 4096 "configure"
4096 #include "confdefs.h"
4098 #include <X11/Intrinsic.h>
4099 #include <X11/Xaw/Simple.h>
4100 int main() {
4102 ; return 0; }
4104 if { (eval echo configure:4105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4105 rm -rf conftest*
4106 emacs_cv_x11_version_5_with_xaw=yes
4107 else
4108 echo "configure: failed program was:" >&5
4109 cat conftest.$ac_ext >&5
4110 rm -rf conftest*
4111 emacs_cv_x11_version_5_with_xaw=no
4113 rm -f conftest*
4116 if test $emacs_cv_x11_version_5_with_xaw = yes; then
4117 echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6
4118 USE_X_TOOLKIT=LUCID
4119 else
4120 echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6
4121 USE_X_TOOLKIT=none
4123 else
4124 USE_X_TOOLKIT=none
4128 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
4130 if test "${USE_X_TOOLKIT}" != "none"; then
4131 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
4132 echo "configure:4133: checking X11 toolkit version" >&5
4133 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4135 else
4136 cat > conftest.$ac_ext <<EOF
4137 #line 4138 "configure"
4138 #include "confdefs.h"
4139 #include <X11/Intrinsic.h>
4140 int main() {
4141 #if XtSpecificationRelease < 6
4142 fail;
4143 #endif
4145 ; return 0; }
4147 if { (eval echo configure:4148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4148 rm -rf conftest*
4149 emacs_cv_x11_toolkit_version_6=yes
4150 else
4151 echo "configure: failed program was:" >&5
4152 cat conftest.$ac_ext >&5
4153 rm -rf conftest*
4154 emacs_cv_x11_toolkit_version_6=no
4156 rm -f conftest*
4159 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
4160 if test $emacs_cv_x11_toolkit_version_6 = yes; then
4161 echo "$ac_t""6 or newer" 1>&6
4162 cat >> confdefs.h <<\EOF
4163 #define HAVE_X11XTR6 1
4166 else
4167 echo "$ac_t""before 6" 1>&6
4170 OLDLIBS="$LIBS"
4171 if test x$HAVE_X11XTR6 = xyes; then
4172 LIBS="-lXt -lSM -lICE $LIBS"
4173 else
4174 LIBS="-lXt $LIBS"
4176 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
4177 echo "configure:4178: checking for XmuConvertStandardSelection in -lXmu" >&5
4178 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
4179 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4181 else
4182 ac_save_LIBS="$LIBS"
4183 LIBS="-lXmu $LIBS"
4184 cat > conftest.$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4187 /* Override any gcc2 internal prototype to avoid an error. */
4188 /* We use char because int might match the return type of a gcc2
4189 builtin and then its argument prototype would still apply. */
4190 char XmuConvertStandardSelection();
4192 int main() {
4193 XmuConvertStandardSelection()
4194 ; return 0; }
4196 if { (eval echo configure:4197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4197 rm -rf conftest*
4198 eval "ac_cv_lib_$ac_lib_var=yes"
4199 else
4200 echo "configure: failed program was:" >&5
4201 cat conftest.$ac_ext >&5
4202 rm -rf conftest*
4203 eval "ac_cv_lib_$ac_lib_var=no"
4205 rm -f conftest*
4206 LIBS="$ac_save_LIBS"
4209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4210 echo "$ac_t""yes" 1>&6
4211 ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4212 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4213 cat >> confdefs.h <<EOF
4214 #define $ac_tr_lib 1
4217 LIBS="-lXmu $LIBS"
4219 else
4220 echo "$ac_t""no" 1>&6
4223 LIBS="$OLDLIBS"
4226 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4227 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
4228 echo "configure:4229: checking for Motif version 2.1" >&5
4229 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4231 else
4232 cat > conftest.$ac_ext <<EOF
4233 #line 4234 "configure"
4234 #include "confdefs.h"
4235 #include <Xm/Xm.h>
4236 int main() {
4237 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
4238 int x = 5;
4239 #else
4240 Motif version prior to 2.1.
4241 #endif
4242 ; return 0; }
4244 if { (eval echo configure:4245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4245 rm -rf conftest*
4246 emacs_cv_motif_version_2_1=yes
4247 else
4248 echo "configure: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4250 rm -rf conftest*
4251 emacs_cv_motif_version_2_1=no
4253 rm -f conftest*
4256 echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6
4257 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
4258 if test $emacs_cv_motif_version_2_1 = yes; then
4259 cat >> confdefs.h <<\EOF
4260 #define HAVE_MOTIF_2_1 1
4263 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
4264 echo "configure:4265: checking for XpCreateContext in -lXp" >&5
4265 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
4266 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4267 echo $ac_n "(cached) $ac_c" 1>&6
4268 else
4269 ac_save_LIBS="$LIBS"
4270 LIBS="-lXp $LIBS"
4271 cat > conftest.$ac_ext <<EOF
4272 #line 4273 "configure"
4273 #include "confdefs.h"
4274 /* Override any gcc2 internal prototype to avoid an error. */
4275 /* We use char because int might match the return type of a gcc2
4276 builtin and then its argument prototype would still apply. */
4277 char XpCreateContext();
4279 int main() {
4280 XpCreateContext()
4281 ; return 0; }
4283 if { (eval echo configure:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4284 rm -rf conftest*
4285 eval "ac_cv_lib_$ac_lib_var=yes"
4286 else
4287 echo "configure: failed program was:" >&5
4288 cat conftest.$ac_ext >&5
4289 rm -rf conftest*
4290 eval "ac_cv_lib_$ac_lib_var=no"
4292 rm -f conftest*
4293 LIBS="$ac_save_LIBS"
4296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4297 echo "$ac_t""yes" 1>&6
4298 ac_tr_lib=HAVE_LIB`echo Xp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4299 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4300 cat >> confdefs.h <<EOF
4301 #define $ac_tr_lib 1
4304 LIBS="-lXp $LIBS"
4306 else
4307 echo "$ac_t""no" 1>&6
4313 ### Is -lXaw3d available?
4314 HAVE_XAW3D=no
4315 if test "${HAVE_X11}" = "yes"; then
4316 if test "${USE_X_TOOLKIT}" != "none"; then
4317 old_c_flags="${CFLAGS}"
4318 CFLAGS="${LD_SWITCH_X_SITE}"
4319 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4320 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4321 echo "configure:4322: checking for X11/Xaw3d/Scrollbar.h" >&5
4322 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4323 echo $ac_n "(cached) $ac_c" 1>&6
4324 else
4325 cat > conftest.$ac_ext <<EOF
4326 #line 4327 "configure"
4327 #include "confdefs.h"
4328 #include <X11/Xaw3d/Scrollbar.h>
4330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4331 { (eval echo configure:4332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4333 if test -z "$ac_err"; then
4334 rm -rf conftest*
4335 eval "ac_cv_header_$ac_safe=yes"
4336 else
4337 echo "$ac_err" >&5
4338 echo "configure: failed program was:" >&5
4339 cat conftest.$ac_ext >&5
4340 rm -rf conftest*
4341 eval "ac_cv_header_$ac_safe=no"
4343 rm -f conftest*
4345 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4346 echo "$ac_t""yes" 1>&6
4347 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
4348 echo "configure:4349: checking for XawScrollbarSetThumb in -lXaw3d" >&5
4349 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4352 else
4353 ac_save_LIBS="$LIBS"
4354 LIBS="-lXaw3d -lX11 $LIBS"
4355 cat > conftest.$ac_ext <<EOF
4356 #line 4357 "configure"
4357 #include "confdefs.h"
4358 /* Override any gcc2 internal prototype to avoid an error. */
4359 /* We use char because int might match the return type of a gcc2
4360 builtin and then its argument prototype would still apply. */
4361 char XawScrollbarSetThumb();
4363 int main() {
4364 XawScrollbarSetThumb()
4365 ; return 0; }
4367 if { (eval echo configure:4368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4368 rm -rf conftest*
4369 eval "ac_cv_lib_$ac_lib_var=yes"
4370 else
4371 echo "configure: failed program was:" >&5
4372 cat conftest.$ac_ext >&5
4373 rm -rf conftest*
4374 eval "ac_cv_lib_$ac_lib_var=no"
4376 rm -f conftest*
4377 LIBS="$ac_save_LIBS"
4380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4381 echo "$ac_t""yes" 1>&6
4382 HAVE_XAW3D=yes
4383 else
4384 echo "$ac_t""no" 1>&6
4387 else
4388 echo "$ac_t""no" 1>&6
4391 CFLAGS="${old_c_flags}"
4393 if test "${HAVE_XAW3D}" = "yes"; then
4394 cat >> confdefs.h <<\EOF
4395 #define HAVE_XAW3D 1
4403 USE_TOOLKIT_SCROLL_BARS=no
4404 if test "${with_toolkit_scroll_bars}" != "no"; then
4405 if test "${USE_X_TOOLKIT}" != "none"; then
4406 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4407 cat >> confdefs.h <<\EOF
4408 #define USE_TOOLKIT_SCROLL_BARS 1
4411 HAVE_XAW3D=no
4412 USE_TOOLKIT_SCROLL_BARS=yes
4413 elif test "${HAVE_XAW3D}" = "yes"; then
4414 cat >> confdefs.h <<\EOF
4415 #define USE_TOOLKIT_SCROLL_BARS 1
4418 USE_TOOLKIT_SCROLL_BARS=yes
4423 ### Use -lXpm if available, unless `--with-xpm=no'.
4424 HAVE_XPM=no
4425 if test "${HAVE_X11}" = "yes"; then
4426 if test "${with_xpm}" != "no"; then
4427 old_c_flags="${CFLAGS}"
4428 CFLAGS="${LD_SWITCH_X_SITE}"
4429 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4430 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4431 echo "configure:4432: checking for X11/xpm.h" >&5
4432 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4434 else
4435 cat > conftest.$ac_ext <<EOF
4436 #line 4437 "configure"
4437 #include "confdefs.h"
4438 #include <X11/xpm.h>
4440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4441 { (eval echo configure:4442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4443 if test -z "$ac_err"; then
4444 rm -rf conftest*
4445 eval "ac_cv_header_$ac_safe=yes"
4446 else
4447 echo "$ac_err" >&5
4448 echo "configure: failed program was:" >&5
4449 cat conftest.$ac_ext >&5
4450 rm -rf conftest*
4451 eval "ac_cv_header_$ac_safe=no"
4453 rm -f conftest*
4455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4456 echo "$ac_t""yes" 1>&6
4457 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
4458 echo "configure:4459: checking for XpmReadFileToPixmap in -lXpm" >&5
4459 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
4460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4462 else
4463 ac_save_LIBS="$LIBS"
4464 LIBS="-lXpm -lX11 $LIBS"
4465 cat > conftest.$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4468 /* Override any gcc2 internal prototype to avoid an error. */
4469 /* We use char because int might match the return type of a gcc2
4470 builtin and then its argument prototype would still apply. */
4471 char XpmReadFileToPixmap();
4473 int main() {
4474 XpmReadFileToPixmap()
4475 ; return 0; }
4477 if { (eval echo configure:4478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4478 rm -rf conftest*
4479 eval "ac_cv_lib_$ac_lib_var=yes"
4480 else
4481 echo "configure: failed program was:" >&5
4482 cat conftest.$ac_ext >&5
4483 rm -rf conftest*
4484 eval "ac_cv_lib_$ac_lib_var=no"
4486 rm -f conftest*
4487 LIBS="$ac_save_LIBS"
4490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4491 echo "$ac_t""yes" 1>&6
4492 HAVE_XPM=yes
4493 else
4494 echo "$ac_t""no" 1>&6
4497 else
4498 echo "$ac_t""no" 1>&6
4501 CFLAGS="${old_c_flags}"
4504 if test "${HAVE_XPM}" = "yes"; then
4505 cat >> confdefs.h <<\EOF
4506 #define HAVE_XPM 1
4512 ### Use -ljpeg if available, unless `--with-jpeg=no'.
4513 HAVE_JPEG=no
4514 if test "${HAVE_X11}" = "yes"; then
4515 if test "${with_jpeg}" != "no"; then
4516 old_c_flags="${CFLAGS}"
4517 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4518 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'`
4519 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6
4520 echo "configure:4521: checking for jerror.h" >&5
4521 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4522 echo $ac_n "(cached) $ac_c" 1>&6
4523 else
4524 cat > conftest.$ac_ext <<EOF
4525 #line 4526 "configure"
4526 #include "confdefs.h"
4527 #include <jerror.h>
4529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4530 { (eval echo configure:4531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4532 if test -z "$ac_err"; then
4533 rm -rf conftest*
4534 eval "ac_cv_header_$ac_safe=yes"
4535 else
4536 echo "$ac_err" >&5
4537 echo "configure: failed program was:" >&5
4538 cat conftest.$ac_ext >&5
4539 rm -rf conftest*
4540 eval "ac_cv_header_$ac_safe=no"
4542 rm -f conftest*
4544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4545 echo "$ac_t""yes" 1>&6
4546 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4547 echo "configure:4548: checking for jpeg_destroy_compress in -ljpeg" >&5
4548 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4549 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4550 echo $ac_n "(cached) $ac_c" 1>&6
4551 else
4552 ac_save_LIBS="$LIBS"
4553 LIBS="-ljpeg -lX11 $LIBS"
4554 cat > conftest.$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4557 /* Override any gcc2 internal prototype to avoid an error. */
4558 /* We use char because int might match the return type of a gcc2
4559 builtin and then its argument prototype would still apply. */
4560 char jpeg_destroy_compress();
4562 int main() {
4563 jpeg_destroy_compress()
4564 ; return 0; }
4566 if { (eval echo configure:4567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4567 rm -rf conftest*
4568 eval "ac_cv_lib_$ac_lib_var=yes"
4569 else
4570 echo "configure: failed program was:" >&5
4571 cat conftest.$ac_ext >&5
4572 rm -rf conftest*
4573 eval "ac_cv_lib_$ac_lib_var=no"
4575 rm -f conftest*
4576 LIBS="$ac_save_LIBS"
4579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4580 echo "$ac_t""yes" 1>&6
4581 HAVE_JPEG=yes
4582 else
4583 echo "$ac_t""no" 1>&6
4586 else
4587 echo "$ac_t""no" 1>&6
4590 CFLAGS="${old_c_flags}"
4593 if test "${HAVE_JPEG}" = "yes"; then
4594 cat >> confdefs.h <<\EOF
4595 #define HAVE_JPEG 1
4601 ### Use -lpng if available, unless `--with-png=no'.
4602 HAVE_PNG=no
4603 if test "${HAVE_X11}" = "yes"; then
4604 if test "${with_png}" != "no"; then
4605 old_c_flags="${CFLAGS}"
4606 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4607 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4608 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4609 echo "configure:4610: checking for png.h" >&5
4610 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4611 echo $ac_n "(cached) $ac_c" 1>&6
4612 else
4613 cat > conftest.$ac_ext <<EOF
4614 #line 4615 "configure"
4615 #include "confdefs.h"
4616 #include <png.h>
4618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4619 { (eval echo configure:4620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4621 if test -z "$ac_err"; then
4622 rm -rf conftest*
4623 eval "ac_cv_header_$ac_safe=yes"
4624 else
4625 echo "$ac_err" >&5
4626 echo "configure: failed program was:" >&5
4627 cat conftest.$ac_ext >&5
4628 rm -rf conftest*
4629 eval "ac_cv_header_$ac_safe=no"
4631 rm -f conftest*
4633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4634 echo "$ac_t""yes" 1>&6
4635 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6
4636 echo "configure:4637: checking for png_set_expand in -lpng" >&5
4637 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'`
4638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4639 echo $ac_n "(cached) $ac_c" 1>&6
4640 else
4641 ac_save_LIBS="$LIBS"
4642 LIBS="-lpng -lX11 -lz -lm $LIBS"
4643 cat > conftest.$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
4646 /* Override any gcc2 internal prototype to avoid an error. */
4647 /* We use char because int might match the return type of a gcc2
4648 builtin and then its argument prototype would still apply. */
4649 char png_set_expand();
4651 int main() {
4652 png_set_expand()
4653 ; return 0; }
4655 if { (eval echo configure:4656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4656 rm -rf conftest*
4657 eval "ac_cv_lib_$ac_lib_var=yes"
4658 else
4659 echo "configure: failed program was:" >&5
4660 cat conftest.$ac_ext >&5
4661 rm -rf conftest*
4662 eval "ac_cv_lib_$ac_lib_var=no"
4664 rm -f conftest*
4665 LIBS="$ac_save_LIBS"
4668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4669 echo "$ac_t""yes" 1>&6
4670 HAVE_PNG=yes
4671 else
4672 echo "$ac_t""no" 1>&6
4675 else
4676 echo "$ac_t""no" 1>&6
4679 CFLAGS="${old_c_flags}"
4682 if test "${HAVE_PNG}" = "yes"; then
4683 cat >> confdefs.h <<\EOF
4684 #define HAVE_PNG 1
4690 ### Use -ltiff if available, unless `--with-tiff=no'.
4691 HAVE_TIFF=no
4692 if test "${HAVE_X11}" = "yes"; then
4693 if test "${with_tiff}" != "no"; then
4694 old_c_flags="${CFLAGS}"
4695 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4696 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4697 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4698 echo "configure:4699: checking for tiffio.h" >&5
4699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4701 else
4702 cat > conftest.$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 #include <tiffio.h>
4707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4708 { (eval echo configure:4709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4710 if test -z "$ac_err"; then
4711 rm -rf conftest*
4712 eval "ac_cv_header_$ac_safe=yes"
4713 else
4714 echo "$ac_err" >&5
4715 echo "configure: failed program was:" >&5
4716 cat conftest.$ac_ext >&5
4717 rm -rf conftest*
4718 eval "ac_cv_header_$ac_safe=no"
4720 rm -f conftest*
4722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4723 echo "$ac_t""yes" 1>&6
4724 tifflibs="-lX11 -lz -lm"
4725 # At least one tiff package requires the jpeg library.
4726 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
4727 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4728 echo "configure:4729: checking for TIFFGetVersion in -ltiff" >&5
4729 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4731 echo $ac_n "(cached) $ac_c" 1>&6
4732 else
4733 ac_save_LIBS="$LIBS"
4734 LIBS="-ltiff $tifflibs $LIBS"
4735 cat > conftest.$ac_ext <<EOF
4736 #line 4737 "configure"
4737 #include "confdefs.h"
4738 /* Override any gcc2 internal prototype to avoid an error. */
4739 /* We use char because int might match the return type of a gcc2
4740 builtin and then its argument prototype would still apply. */
4741 char TIFFGetVersion();
4743 int main() {
4744 TIFFGetVersion()
4745 ; return 0; }
4747 if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4748 rm -rf conftest*
4749 eval "ac_cv_lib_$ac_lib_var=yes"
4750 else
4751 echo "configure: failed program was:" >&5
4752 cat conftest.$ac_ext >&5
4753 rm -rf conftest*
4754 eval "ac_cv_lib_$ac_lib_var=no"
4756 rm -f conftest*
4757 LIBS="$ac_save_LIBS"
4760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4761 echo "$ac_t""yes" 1>&6
4762 HAVE_TIFF=yes
4763 else
4764 echo "$ac_t""no" 1>&6
4767 else
4768 echo "$ac_t""no" 1>&6
4771 CFLAGS="${old_c_flags}"
4774 if test "${HAVE_TIFF}" = "yes"; then
4775 cat >> confdefs.h <<\EOF
4776 #define HAVE_TIFF 1
4782 ### Use -lgif if available, unless `--with-gif=no'.
4783 HAVE_GIF=no
4784 if test "${HAVE_X11}" = "yes"; then
4785 if test "${with_gif}" != "no"; then
4786 old_c_flags="${CFLAGS}"
4787 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4788 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4789 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4790 echo "configure:4791: checking for gif_lib.h" >&5
4791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4792 echo $ac_n "(cached) $ac_c" 1>&6
4793 else
4794 cat > conftest.$ac_ext <<EOF
4795 #line 4796 "configure"
4796 #include "confdefs.h"
4797 #include <gif_lib.h>
4799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4800 { (eval echo configure:4801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4802 if test -z "$ac_err"; then
4803 rm -rf conftest*
4804 eval "ac_cv_header_$ac_safe=yes"
4805 else
4806 echo "$ac_err" >&5
4807 echo "configure: failed program was:" >&5
4808 cat conftest.$ac_ext >&5
4809 rm -rf conftest*
4810 eval "ac_cv_header_$ac_safe=no"
4812 rm -f conftest*
4814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4815 echo "$ac_t""yes" 1>&6
4816 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6
4817 echo "configure:4818: checking for DGifOpen in -lungif" >&5
4818 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'`
4819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4820 echo $ac_n "(cached) $ac_c" 1>&6
4821 else
4822 ac_save_LIBS="$LIBS"
4823 LIBS="-lungif -lX11 $LIBS"
4824 cat > conftest.$ac_ext <<EOF
4825 #line 4826 "configure"
4826 #include "confdefs.h"
4827 /* Override any gcc2 internal prototype to avoid an error. */
4828 /* We use char because int might match the return type of a gcc2
4829 builtin and then its argument prototype would still apply. */
4830 char DGifOpen();
4832 int main() {
4833 DGifOpen()
4834 ; return 0; }
4836 if { (eval echo configure:4837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4837 rm -rf conftest*
4838 eval "ac_cv_lib_$ac_lib_var=yes"
4839 else
4840 echo "configure: failed program was:" >&5
4841 cat conftest.$ac_ext >&5
4842 rm -rf conftest*
4843 eval "ac_cv_lib_$ac_lib_var=no"
4845 rm -f conftest*
4846 LIBS="$ac_save_LIBS"
4849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4850 echo "$ac_t""yes" 1>&6
4851 HAVE_GIF=yes
4852 else
4853 echo "$ac_t""no" 1>&6
4856 else
4857 echo "$ac_t""no" 1>&6
4860 CFLAGS="${old_c_flags}"
4863 if test "${HAVE_GIF}" = "yes"; then
4864 cat >> confdefs.h <<\EOF
4865 #define HAVE_GIF 1
4871 # If netdb.h doesn't declare h_errno, we must declare it by hand.
4872 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
4873 echo "configure:4874: checking whether netdb declares h_errno" >&5
4874 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
4875 echo $ac_n "(cached) $ac_c" 1>&6
4876 else
4877 cat > conftest.$ac_ext <<EOF
4878 #line 4879 "configure"
4879 #include "confdefs.h"
4880 #include <netdb.h>
4881 int main() {
4882 return h_errno;
4883 ; return 0; }
4885 if { (eval echo configure:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4886 rm -rf conftest*
4887 emacs_cv_netdb_declares_h_errno=yes
4888 else
4889 echo "configure: failed program was:" >&5
4890 cat conftest.$ac_ext >&5
4891 rm -rf conftest*
4892 emacs_cv_netdb_declares_h_errno=no
4894 rm -f conftest*
4897 echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6
4898 if test $emacs_cv_netdb_declares_h_errno = yes; then
4899 cat >> confdefs.h <<\EOF
4900 #define HAVE_H_ERRNO 1
4905 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4906 # for constant arguments. Useless!
4907 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4908 echo "configure:4909: checking for working alloca.h" >&5
4909 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4910 echo $ac_n "(cached) $ac_c" 1>&6
4911 else
4912 cat > conftest.$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4915 #include <alloca.h>
4916 int main() {
4917 void *p = alloca(2 * sizeof(int));
4918 ; return 0; }
4920 if { (eval echo configure:4921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4921 rm -rf conftest*
4922 ac_cv_header_alloca_h=yes
4923 else
4924 echo "configure: failed program was:" >&5
4925 cat conftest.$ac_ext >&5
4926 rm -rf conftest*
4927 ac_cv_header_alloca_h=no
4929 rm -f conftest*
4932 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4933 if test $ac_cv_header_alloca_h = yes; then
4934 cat >> confdefs.h <<\EOF
4935 #define HAVE_ALLOCA_H 1
4940 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4941 echo "configure:4942: checking for alloca" >&5
4942 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4943 echo $ac_n "(cached) $ac_c" 1>&6
4944 else
4945 cat > conftest.$ac_ext <<EOF
4946 #line 4947 "configure"
4947 #include "confdefs.h"
4949 #ifdef __GNUC__
4950 # define alloca __builtin_alloca
4951 #else
4952 # ifdef _MSC_VER
4953 # include <malloc.h>
4954 # define alloca _alloca
4955 # else
4956 # if HAVE_ALLOCA_H
4957 # include <alloca.h>
4958 # else
4959 # ifdef _AIX
4960 #pragma alloca
4961 # else
4962 # ifndef alloca /* predefined by HP cc +Olibcalls */
4963 char *alloca ();
4964 # endif
4965 # endif
4966 # endif
4967 # endif
4968 #endif
4970 int main() {
4971 char *p = (char *) alloca(1);
4972 ; return 0; }
4974 if { (eval echo configure:4975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4975 rm -rf conftest*
4976 ac_cv_func_alloca_works=yes
4977 else
4978 echo "configure: failed program was:" >&5
4979 cat conftest.$ac_ext >&5
4980 rm -rf conftest*
4981 ac_cv_func_alloca_works=no
4983 rm -f conftest*
4986 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4987 if test $ac_cv_func_alloca_works = yes; then
4988 cat >> confdefs.h <<\EOF
4989 #define HAVE_ALLOCA 1
4994 if test $ac_cv_func_alloca_works = no; then
4995 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4996 # that cause trouble. Some versions do not even contain alloca or
4997 # contain a buggy version. If you still want to use their alloca,
4998 # use ar to extract alloca.o from them instead of compiling alloca.c.
4999 ALLOCA=alloca.${ac_objext}
5000 cat >> confdefs.h <<\EOF
5001 #define C_ALLOCA 1
5005 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5006 echo "configure:5007: checking whether alloca needs Cray hooks" >&5
5007 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5008 echo $ac_n "(cached) $ac_c" 1>&6
5009 else
5010 cat > conftest.$ac_ext <<EOF
5011 #line 5012 "configure"
5012 #include "confdefs.h"
5013 #if defined(CRAY) && ! defined(CRAY2)
5014 webecray
5015 #else
5016 wenotbecray
5017 #endif
5020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5021 egrep "webecray" >/dev/null 2>&1; then
5022 rm -rf conftest*
5023 ac_cv_os_cray=yes
5024 else
5025 rm -rf conftest*
5026 ac_cv_os_cray=no
5028 rm -f conftest*
5032 echo "$ac_t""$ac_cv_os_cray" 1>&6
5033 if test $ac_cv_os_cray = yes; then
5034 for ac_func in _getb67 GETB67 getb67; do
5035 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5036 echo "configure:5037: checking for $ac_func" >&5
5037 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5039 else
5040 cat > conftest.$ac_ext <<EOF
5041 #line 5042 "configure"
5042 #include "confdefs.h"
5043 /* System header to define __stub macros and hopefully few prototypes,
5044 which can conflict with char $ac_func(); below. */
5045 #include <assert.h>
5046 /* Override any gcc2 internal prototype to avoid an error. */
5047 /* We use char because int might match the return type of a gcc2
5048 builtin and then its argument prototype would still apply. */
5049 char $ac_func();
5051 int main() {
5053 /* The GNU C library defines this for functions which it implements
5054 to always fail with ENOSYS. Some functions are actually named
5055 something starting with __ and the normal name is an alias. */
5056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5057 choke me
5058 #else
5059 $ac_func();
5060 #endif
5062 ; return 0; }
5064 if { (eval echo configure:5065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5065 rm -rf conftest*
5066 eval "ac_cv_func_$ac_func=yes"
5067 else
5068 echo "configure: failed program was:" >&5
5069 cat conftest.$ac_ext >&5
5070 rm -rf conftest*
5071 eval "ac_cv_func_$ac_func=no"
5073 rm -f conftest*
5076 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5077 echo "$ac_t""yes" 1>&6
5078 cat >> confdefs.h <<EOF
5079 #define CRAY_STACKSEG_END $ac_func
5082 break
5083 else
5084 echo "$ac_t""no" 1>&6
5087 done
5090 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5091 echo "configure:5092: checking stack direction for C alloca" >&5
5092 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5093 echo $ac_n "(cached) $ac_c" 1>&6
5094 else
5095 if test "$cross_compiling" = yes; then
5096 ac_cv_c_stack_direction=0
5097 else
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5101 find_stack_direction ()
5103 static char *addr = 0;
5104 auto char dummy;
5105 if (addr == 0)
5107 addr = &dummy;
5108 return find_stack_direction ();
5110 else
5111 return (&dummy > addr) ? 1 : -1;
5113 main ()
5115 exit (find_stack_direction() < 0);
5118 if { (eval echo configure:5119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5119 then
5120 ac_cv_c_stack_direction=1
5121 else
5122 echo "configure: failed program was:" >&5
5123 cat conftest.$ac_ext >&5
5124 rm -fr conftest*
5125 ac_cv_c_stack_direction=-1
5127 rm -fr conftest*
5132 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5133 cat >> confdefs.h <<EOF
5134 #define STACK_DIRECTION $ac_cv_c_stack_direction
5140 # fmod, logb, and frexp are found in -lm on most systems.
5141 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
5142 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
5143 echo "configure:5144: checking for sqrt in -lm" >&5
5144 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
5145 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5146 echo $ac_n "(cached) $ac_c" 1>&6
5147 else
5148 ac_save_LIBS="$LIBS"
5149 LIBS="-lm $LIBS"
5150 cat > conftest.$ac_ext <<EOF
5151 #line 5152 "configure"
5152 #include "confdefs.h"
5153 /* Override any gcc2 internal prototype to avoid an error. */
5154 /* We use char because int might match the return type of a gcc2
5155 builtin and then its argument prototype would still apply. */
5156 char sqrt();
5158 int main() {
5159 sqrt()
5160 ; return 0; }
5162 if { (eval echo configure:5163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5163 rm -rf conftest*
5164 eval "ac_cv_lib_$ac_lib_var=yes"
5165 else
5166 echo "configure: failed program was:" >&5
5167 cat conftest.$ac_ext >&5
5168 rm -rf conftest*
5169 eval "ac_cv_lib_$ac_lib_var=no"
5171 rm -f conftest*
5172 LIBS="$ac_save_LIBS"
5175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5176 echo "$ac_t""yes" 1>&6
5177 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5178 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5179 cat >> confdefs.h <<EOF
5180 #define $ac_tr_lib 1
5183 LIBS="-lm $LIBS"
5185 else
5186 echo "$ac_t""no" 1>&6
5190 # Check for mail-locking functions in a "mail" library
5191 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
5192 echo "configure:5193: checking for maillock in -lmail" >&5
5193 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
5194 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5195 echo $ac_n "(cached) $ac_c" 1>&6
5196 else
5197 ac_save_LIBS="$LIBS"
5198 LIBS="-lmail $LIBS"
5199 cat > conftest.$ac_ext <<EOF
5200 #line 5201 "configure"
5201 #include "confdefs.h"
5202 /* Override any gcc2 internal prototype to avoid an error. */
5203 /* We use char because int might match the return type of a gcc2
5204 builtin and then its argument prototype would still apply. */
5205 char maillock();
5207 int main() {
5208 maillock()
5209 ; return 0; }
5211 if { (eval echo configure:5212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5212 rm -rf conftest*
5213 eval "ac_cv_lib_$ac_lib_var=yes"
5214 else
5215 echo "configure: failed program was:" >&5
5216 cat conftest.$ac_ext >&5
5217 rm -rf conftest*
5218 eval "ac_cv_lib_$ac_lib_var=no"
5220 rm -f conftest*
5221 LIBS="$ac_save_LIBS"
5224 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5225 echo "$ac_t""yes" 1>&6
5226 ac_tr_lib=HAVE_LIB`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5227 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5228 cat >> confdefs.h <<EOF
5229 #define $ac_tr_lib 1
5232 LIBS="-lmail $LIBS"
5234 else
5235 echo "$ac_t""no" 1>&6
5238 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
5239 echo "configure:5240: checking for maillock in -llockfile" >&5
5240 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
5241 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5242 echo $ac_n "(cached) $ac_c" 1>&6
5243 else
5244 ac_save_LIBS="$LIBS"
5245 LIBS="-llockfile $LIBS"
5246 cat > conftest.$ac_ext <<EOF
5247 #line 5248 "configure"
5248 #include "confdefs.h"
5249 /* Override any gcc2 internal prototype to avoid an error. */
5250 /* We use char because int might match the return type of a gcc2
5251 builtin and then its argument prototype would still apply. */
5252 char maillock();
5254 int main() {
5255 maillock()
5256 ; return 0; }
5258 if { (eval echo configure:5259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5259 rm -rf conftest*
5260 eval "ac_cv_lib_$ac_lib_var=yes"
5261 else
5262 echo "configure: failed program was:" >&5
5263 cat conftest.$ac_ext >&5
5264 rm -rf conftest*
5265 eval "ac_cv_lib_$ac_lib_var=no"
5267 rm -f conftest*
5268 LIBS="$ac_save_LIBS"
5271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5272 echo "$ac_t""yes" 1>&6
5273 ac_tr_lib=HAVE_LIB`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5274 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5275 cat >> confdefs.h <<EOF
5276 #define $ac_tr_lib 1
5279 LIBS="-llockfile $LIBS"
5281 else
5282 echo "$ac_t""no" 1>&6
5285 # If we have the shared liblockfile, assume we must use it for mail
5286 # locking (e.g. Debian). If we couldn't link against liblockfile
5287 # (no liblockfile.a installed), ensure that we don't need to.
5288 if test "$ac_cv_lib_lockfile_maillock" = no; then
5289 # Extract the first word of "liblockfile.so", so it can be a program name with args.
5290 set dummy liblockfile.so; ac_word=$2
5291 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5292 echo "configure:5293: checking for $ac_word" >&5
5293 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5295 else
5296 if test -n "$liblockfile"; then
5297 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
5298 else
5299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5300 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
5301 for ac_dir in $ac_dummy; do
5302 test -z "$ac_dir" && ac_dir=.
5303 if test -f $ac_dir/$ac_word; then
5304 ac_cv_prog_liblockfile="yes"
5305 break
5307 done
5308 IFS="$ac_save_ifs"
5309 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
5312 liblockfile="$ac_cv_prog_liblockfile"
5313 if test -n "$liblockfile"; then
5314 echo "$ac_t""$liblockfile" 1>&6
5315 else
5316 echo "$ac_t""no" 1>&6
5319 if test $ac_cv_prog_liblockfile = yes; then
5320 { echo "configure: error: Shared liblockfile found but can't link against it.
5321 This probably means that movemail could lose mail.
5322 There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; }
5323 else cat >> confdefs.h <<\EOF
5324 #define LIBMAIL -llockfile
5328 else :
5330 for ac_func in touchlock
5332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5333 echo "configure:5334: checking for $ac_func" >&5
5334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5335 echo $ac_n "(cached) $ac_c" 1>&6
5336 else
5337 cat > conftest.$ac_ext <<EOF
5338 #line 5339 "configure"
5339 #include "confdefs.h"
5340 /* System header to define __stub macros and hopefully few prototypes,
5341 which can conflict with char $ac_func(); below. */
5342 #include <assert.h>
5343 /* Override any gcc2 internal prototype to avoid an error. */
5344 /* We use char because int might match the return type of a gcc2
5345 builtin and then its argument prototype would still apply. */
5346 char $ac_func();
5348 int main() {
5350 /* The GNU C library defines this for functions which it implements
5351 to always fail with ENOSYS. Some functions are actually named
5352 something starting with __ and the normal name is an alias. */
5353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5354 choke me
5355 #else
5356 $ac_func();
5357 #endif
5359 ; return 0; }
5361 if { (eval echo configure:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5362 rm -rf conftest*
5363 eval "ac_cv_func_$ac_func=yes"
5364 else
5365 echo "configure: failed program was:" >&5
5366 cat conftest.$ac_ext >&5
5367 rm -rf conftest*
5368 eval "ac_cv_func_$ac_func=no"
5370 rm -f conftest*
5373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5374 echo "$ac_t""yes" 1>&6
5375 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5376 cat >> confdefs.h <<EOF
5377 #define $ac_tr_func 1
5380 else
5381 echo "$ac_t""no" 1>&6
5383 done
5385 for ac_hdr in maillock.h
5387 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5388 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5389 echo "configure:5390: checking for $ac_hdr" >&5
5390 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5391 echo $ac_n "(cached) $ac_c" 1>&6
5392 else
5393 cat > conftest.$ac_ext <<EOF
5394 #line 5395 "configure"
5395 #include "confdefs.h"
5396 #include <$ac_hdr>
5398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5399 { (eval echo configure:5400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5400 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5401 if test -z "$ac_err"; then
5402 rm -rf conftest*
5403 eval "ac_cv_header_$ac_safe=yes"
5404 else
5405 echo "$ac_err" >&5
5406 echo "configure: failed program was:" >&5
5407 cat conftest.$ac_ext >&5
5408 rm -rf conftest*
5409 eval "ac_cv_header_$ac_safe=no"
5411 rm -f conftest*
5413 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5414 echo "$ac_t""yes" 1>&6
5415 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5416 cat >> confdefs.h <<EOF
5417 #define $ac_tr_hdr 1
5420 else
5421 echo "$ac_t""no" 1>&6
5423 done
5426 for ac_func in gettimeofday gethostname getdomainname dup2 \
5427 rename closedir mkdir rmdir sysinfo \
5428 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
5429 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
5430 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \
5431 __fpending ftello getloadavg mblen mbrlen strsignal setitimer ualarm
5433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5434 echo "configure:5435: checking for $ac_func" >&5
5435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5436 echo $ac_n "(cached) $ac_c" 1>&6
5437 else
5438 cat > conftest.$ac_ext <<EOF
5439 #line 5440 "configure"
5440 #include "confdefs.h"
5441 /* System header to define __stub macros and hopefully few prototypes,
5442 which can conflict with char $ac_func(); below. */
5443 #include <assert.h>
5444 /* Override any gcc2 internal prototype to avoid an error. */
5445 /* We use char because int might match the return type of a gcc2
5446 builtin and then its argument prototype would still apply. */
5447 char $ac_func();
5449 int main() {
5451 /* The GNU C library defines this for functions which it implements
5452 to always fail with ENOSYS. Some functions are actually named
5453 something starting with __ and the normal name is an alias. */
5454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5455 choke me
5456 #else
5457 $ac_func();
5458 #endif
5460 ; return 0; }
5462 if { (eval echo configure:5463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5463 rm -rf conftest*
5464 eval "ac_cv_func_$ac_func=yes"
5465 else
5466 echo "configure: failed program was:" >&5
5467 cat conftest.$ac_ext >&5
5468 rm -rf conftest*
5469 eval "ac_cv_func_$ac_func=no"
5471 rm -f conftest*
5474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5475 echo "$ac_t""yes" 1>&6
5476 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5477 cat >> confdefs.h <<EOF
5478 #define $ac_tr_func 1
5481 else
5482 echo "$ac_t""no" 1>&6
5484 done
5487 # Check this now, so that we will NOT find the above functions in ncurses.
5488 # That is because we have not set up to link ncurses in lib-src.
5489 # It's better to believe a function is not available
5490 # than to expect to find it in ncurses.
5491 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
5492 echo "configure:5493: checking for tparm in -lncurses" >&5
5493 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
5494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5495 echo $ac_n "(cached) $ac_c" 1>&6
5496 else
5497 ac_save_LIBS="$LIBS"
5498 LIBS="-lncurses $LIBS"
5499 cat > conftest.$ac_ext <<EOF
5500 #line 5501 "configure"
5501 #include "confdefs.h"
5502 /* Override any gcc2 internal prototype to avoid an error. */
5503 /* We use char because int might match the return type of a gcc2
5504 builtin and then its argument prototype would still apply. */
5505 char tparm();
5507 int main() {
5508 tparm()
5509 ; return 0; }
5511 if { (eval echo configure:5512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5512 rm -rf conftest*
5513 eval "ac_cv_lib_$ac_lib_var=yes"
5514 else
5515 echo "configure: failed program was:" >&5
5516 cat conftest.$ac_ext >&5
5517 rm -rf conftest*
5518 eval "ac_cv_lib_$ac_lib_var=no"
5520 rm -f conftest*
5521 LIBS="$ac_save_LIBS"
5524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5525 echo "$ac_t""yes" 1>&6
5526 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5527 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5528 cat >> confdefs.h <<EOF
5529 #define $ac_tr_lib 1
5532 LIBS="-lncurses $LIBS"
5534 else
5535 echo "$ac_t""no" 1>&6
5539 # These tell us which Kerberos-related libraries to use.
5540 if test "${with_kerberos+set}" = set; then
5541 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
5542 echo "configure:5543: checking for com_err in -lcom_err" >&5
5543 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
5544 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5545 echo $ac_n "(cached) $ac_c" 1>&6
5546 else
5547 ac_save_LIBS="$LIBS"
5548 LIBS="-lcom_err $LIBS"
5549 cat > conftest.$ac_ext <<EOF
5550 #line 5551 "configure"
5551 #include "confdefs.h"
5552 /* Override any gcc2 internal prototype to avoid an error. */
5553 /* We use char because int might match the return type of a gcc2
5554 builtin and then its argument prototype would still apply. */
5555 char com_err();
5557 int main() {
5558 com_err()
5559 ; return 0; }
5561 if { (eval echo configure:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5562 rm -rf conftest*
5563 eval "ac_cv_lib_$ac_lib_var=yes"
5564 else
5565 echo "configure: failed program was:" >&5
5566 cat conftest.$ac_ext >&5
5567 rm -rf conftest*
5568 eval "ac_cv_lib_$ac_lib_var=no"
5570 rm -f conftest*
5571 LIBS="$ac_save_LIBS"
5574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5575 echo "$ac_t""yes" 1>&6
5576 ac_tr_lib=HAVE_LIB`echo com_err | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5577 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5578 cat >> confdefs.h <<EOF
5579 #define $ac_tr_lib 1
5582 LIBS="-lcom_err $LIBS"
5584 else
5585 echo "$ac_t""no" 1>&6
5588 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
5589 echo "configure:5590: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
5590 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
5591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5592 echo $ac_n "(cached) $ac_c" 1>&6
5593 else
5594 ac_save_LIBS="$LIBS"
5595 LIBS="-lk5crypto $LIBS"
5596 cat > conftest.$ac_ext <<EOF
5597 #line 5598 "configure"
5598 #include "confdefs.h"
5599 /* Override any gcc2 internal prototype to avoid an error. */
5600 /* We use char because int might match the return type of a gcc2
5601 builtin and then its argument prototype would still apply. */
5602 char mit_des_cbc_encrypt();
5604 int main() {
5605 mit_des_cbc_encrypt()
5606 ; return 0; }
5608 if { (eval echo configure:5609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5609 rm -rf conftest*
5610 eval "ac_cv_lib_$ac_lib_var=yes"
5611 else
5612 echo "configure: failed program was:" >&5
5613 cat conftest.$ac_ext >&5
5614 rm -rf conftest*
5615 eval "ac_cv_lib_$ac_lib_var=no"
5617 rm -f conftest*
5618 LIBS="$ac_save_LIBS"
5621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5622 echo "$ac_t""yes" 1>&6
5623 ac_tr_lib=HAVE_LIB`echo k5crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5624 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5625 cat >> confdefs.h <<EOF
5626 #define $ac_tr_lib 1
5629 LIBS="-lk5crypto $LIBS"
5631 else
5632 echo "$ac_t""no" 1>&6
5635 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
5636 echo "configure:5637: checking for mit_des_cbc_encrypt in -lcrypto" >&5
5637 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
5638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5640 else
5641 ac_save_LIBS="$LIBS"
5642 LIBS="-lcrypto $LIBS"
5643 cat > conftest.$ac_ext <<EOF
5644 #line 5645 "configure"
5645 #include "confdefs.h"
5646 /* Override any gcc2 internal prototype to avoid an error. */
5647 /* We use char because int might match the return type of a gcc2
5648 builtin and then its argument prototype would still apply. */
5649 char mit_des_cbc_encrypt();
5651 int main() {
5652 mit_des_cbc_encrypt()
5653 ; return 0; }
5655 if { (eval echo configure:5656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5656 rm -rf conftest*
5657 eval "ac_cv_lib_$ac_lib_var=yes"
5658 else
5659 echo "configure: failed program was:" >&5
5660 cat conftest.$ac_ext >&5
5661 rm -rf conftest*
5662 eval "ac_cv_lib_$ac_lib_var=no"
5664 rm -f conftest*
5665 LIBS="$ac_save_LIBS"
5668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5669 echo "$ac_t""yes" 1>&6
5670 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5671 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5672 cat >> confdefs.h <<EOF
5673 #define $ac_tr_lib 1
5676 LIBS="-lcrypto $LIBS"
5678 else
5679 echo "$ac_t""no" 1>&6
5682 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
5683 echo "configure:5684: checking for krb5_init_context in -lkrb5" >&5
5684 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
5685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5686 echo $ac_n "(cached) $ac_c" 1>&6
5687 else
5688 ac_save_LIBS="$LIBS"
5689 LIBS="-lkrb5 $LIBS"
5690 cat > conftest.$ac_ext <<EOF
5691 #line 5692 "configure"
5692 #include "confdefs.h"
5693 /* Override any gcc2 internal prototype to avoid an error. */
5694 /* We use char because int might match the return type of a gcc2
5695 builtin and then its argument prototype would still apply. */
5696 char krb5_init_context();
5698 int main() {
5699 krb5_init_context()
5700 ; return 0; }
5702 if { (eval echo configure:5703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5703 rm -rf conftest*
5704 eval "ac_cv_lib_$ac_lib_var=yes"
5705 else
5706 echo "configure: failed program was:" >&5
5707 cat conftest.$ac_ext >&5
5708 rm -rf conftest*
5709 eval "ac_cv_lib_$ac_lib_var=no"
5711 rm -f conftest*
5712 LIBS="$ac_save_LIBS"
5715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5716 echo "$ac_t""yes" 1>&6
5717 ac_tr_lib=HAVE_LIB`echo krb5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5718 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5719 cat >> confdefs.h <<EOF
5720 #define $ac_tr_lib 1
5723 LIBS="-lkrb5 $LIBS"
5725 else
5726 echo "$ac_t""no" 1>&6
5729 if test "${with_kerberos5+set}" != set; then
5730 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
5731 echo "configure:5732: checking for des_cbc_encrypt in -ldes425" >&5
5732 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
5733 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5734 echo $ac_n "(cached) $ac_c" 1>&6
5735 else
5736 ac_save_LIBS="$LIBS"
5737 LIBS="-ldes425 $LIBS"
5738 cat > conftest.$ac_ext <<EOF
5739 #line 5740 "configure"
5740 #include "confdefs.h"
5741 /* Override any gcc2 internal prototype to avoid an error. */
5742 /* We use char because int might match the return type of a gcc2
5743 builtin and then its argument prototype would still apply. */
5744 char des_cbc_encrypt();
5746 int main() {
5747 des_cbc_encrypt()
5748 ; return 0; }
5750 if { (eval echo configure:5751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5751 rm -rf conftest*
5752 eval "ac_cv_lib_$ac_lib_var=yes"
5753 else
5754 echo "configure: failed program was:" >&5
5755 cat conftest.$ac_ext >&5
5756 rm -rf conftest*
5757 eval "ac_cv_lib_$ac_lib_var=no"
5759 rm -f conftest*
5760 LIBS="$ac_save_LIBS"
5763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5764 echo "$ac_t""yes" 1>&6
5765 ac_tr_lib=HAVE_LIB`echo des425 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5766 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5767 cat >> confdefs.h <<EOF
5768 #define $ac_tr_lib 1
5771 LIBS="-ldes425 $LIBS"
5773 else
5774 echo "$ac_t""no" 1>&6
5775 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
5776 echo "configure:5777: checking for des_cbc_encrypt in -ldes" >&5
5777 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
5778 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5779 echo $ac_n "(cached) $ac_c" 1>&6
5780 else
5781 ac_save_LIBS="$LIBS"
5782 LIBS="-ldes $LIBS"
5783 cat > conftest.$ac_ext <<EOF
5784 #line 5785 "configure"
5785 #include "confdefs.h"
5786 /* Override any gcc2 internal prototype to avoid an error. */
5787 /* We use char because int might match the return type of a gcc2
5788 builtin and then its argument prototype would still apply. */
5789 char des_cbc_encrypt();
5791 int main() {
5792 des_cbc_encrypt()
5793 ; return 0; }
5795 if { (eval echo configure:5796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5796 rm -rf conftest*
5797 eval "ac_cv_lib_$ac_lib_var=yes"
5798 else
5799 echo "configure: failed program was:" >&5
5800 cat conftest.$ac_ext >&5
5801 rm -rf conftest*
5802 eval "ac_cv_lib_$ac_lib_var=no"
5804 rm -f conftest*
5805 LIBS="$ac_save_LIBS"
5808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5809 echo "$ac_t""yes" 1>&6
5810 ac_tr_lib=HAVE_LIB`echo des | sed -e 's/^a-zA-Z0-9_/_/g' \
5811 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5812 cat >> confdefs.h <<EOF
5813 #define $ac_tr_lib 1
5816 LIBS="-ldes $LIBS"
5818 else
5819 echo "$ac_t""no" 1>&6
5824 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
5825 echo "configure:5826: checking for krb_get_cred in -lkrb4" >&5
5826 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
5827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5828 echo $ac_n "(cached) $ac_c" 1>&6
5829 else
5830 ac_save_LIBS="$LIBS"
5831 LIBS="-lkrb4 $LIBS"
5832 cat > conftest.$ac_ext <<EOF
5833 #line 5834 "configure"
5834 #include "confdefs.h"
5835 /* Override any gcc2 internal prototype to avoid an error. */
5836 /* We use char because int might match the return type of a gcc2
5837 builtin and then its argument prototype would still apply. */
5838 char krb_get_cred();
5840 int main() {
5841 krb_get_cred()
5842 ; return 0; }
5844 if { (eval echo configure:5845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5845 rm -rf conftest*
5846 eval "ac_cv_lib_$ac_lib_var=yes"
5847 else
5848 echo "configure: failed program was:" >&5
5849 cat conftest.$ac_ext >&5
5850 rm -rf conftest*
5851 eval "ac_cv_lib_$ac_lib_var=no"
5853 rm -f conftest*
5854 LIBS="$ac_save_LIBS"
5857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5858 echo "$ac_t""yes" 1>&6
5859 ac_tr_lib=HAVE_LIB`echo krb4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5860 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5861 cat >> confdefs.h <<EOF
5862 #define $ac_tr_lib 1
5865 LIBS="-lkrb4 $LIBS"
5867 else
5868 echo "$ac_t""no" 1>&6
5869 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
5870 echo "configure:5871: checking for krb_get_cred in -lkrb" >&5
5871 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
5872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5873 echo $ac_n "(cached) $ac_c" 1>&6
5874 else
5875 ac_save_LIBS="$LIBS"
5876 LIBS="-lkrb $LIBS"
5877 cat > conftest.$ac_ext <<EOF
5878 #line 5879 "configure"
5879 #include "confdefs.h"
5880 /* Override any gcc2 internal prototype to avoid an error. */
5881 /* We use char because int might match the return type of a gcc2
5882 builtin and then its argument prototype would still apply. */
5883 char krb_get_cred();
5885 int main() {
5886 krb_get_cred()
5887 ; return 0; }
5889 if { (eval echo configure:5890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5890 rm -rf conftest*
5891 eval "ac_cv_lib_$ac_lib_var=yes"
5892 else
5893 echo "configure: failed program was:" >&5
5894 cat conftest.$ac_ext >&5
5895 rm -rf conftest*
5896 eval "ac_cv_lib_$ac_lib_var=no"
5898 rm -f conftest*
5899 LIBS="$ac_save_LIBS"
5902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5903 echo "$ac_t""yes" 1>&6
5904 ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/^a-zA-Z0-9_/_/g' \
5905 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5906 cat >> confdefs.h <<EOF
5907 #define $ac_tr_lib 1
5910 LIBS="-lkrb $LIBS"
5912 else
5913 echo "$ac_t""no" 1>&6
5920 if test "${with_kerberos5+set}" = set; then
5921 for ac_hdr in krb5.h
5923 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5924 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5925 echo "configure:5926: checking for $ac_hdr" >&5
5926 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5927 echo $ac_n "(cached) $ac_c" 1>&6
5928 else
5929 cat > conftest.$ac_ext <<EOF
5930 #line 5931 "configure"
5931 #include "confdefs.h"
5932 #include <$ac_hdr>
5934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5935 { (eval echo configure:5936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5937 if test -z "$ac_err"; then
5938 rm -rf conftest*
5939 eval "ac_cv_header_$ac_safe=yes"
5940 else
5941 echo "$ac_err" >&5
5942 echo "configure: failed program was:" >&5
5943 cat conftest.$ac_ext >&5
5944 rm -rf conftest*
5945 eval "ac_cv_header_$ac_safe=no"
5947 rm -f conftest*
5949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5950 echo "$ac_t""yes" 1>&6
5951 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5952 cat >> confdefs.h <<EOF
5953 #define $ac_tr_hdr 1
5956 else
5957 echo "$ac_t""no" 1>&6
5959 done
5961 else
5962 for ac_hdr in des.h
5964 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5965 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5966 echo "configure:5967: checking for $ac_hdr" >&5
5967 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5968 echo $ac_n "(cached) $ac_c" 1>&6
5969 else
5970 cat > conftest.$ac_ext <<EOF
5971 #line 5972 "configure"
5972 #include "confdefs.h"
5973 #include <$ac_hdr>
5975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5976 { (eval echo configure:5977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5978 if test -z "$ac_err"; then
5979 rm -rf conftest*
5980 eval "ac_cv_header_$ac_safe=yes"
5981 else
5982 echo "$ac_err" >&5
5983 echo "configure: failed program was:" >&5
5984 cat conftest.$ac_ext >&5
5985 rm -rf conftest*
5986 eval "ac_cv_header_$ac_safe=no"
5988 rm -f conftest*
5990 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5991 echo "$ac_t""yes" 1>&6
5992 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5993 cat >> confdefs.h <<EOF
5994 #define $ac_tr_hdr 1
5997 else
5998 echo "$ac_t""no" 1>&6
5999 for ac_hdr in kerberosIV/des.h
6001 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6002 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6003 echo "configure:6004: checking for $ac_hdr" >&5
6004 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6005 echo $ac_n "(cached) $ac_c" 1>&6
6006 else
6007 cat > conftest.$ac_ext <<EOF
6008 #line 6009 "configure"
6009 #include "confdefs.h"
6010 #include <$ac_hdr>
6012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6013 { (eval echo configure:6014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6014 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6015 if test -z "$ac_err"; then
6016 rm -rf conftest*
6017 eval "ac_cv_header_$ac_safe=yes"
6018 else
6019 echo "$ac_err" >&5
6020 echo "configure: failed program was:" >&5
6021 cat conftest.$ac_ext >&5
6022 rm -rf conftest*
6023 eval "ac_cv_header_$ac_safe=no"
6025 rm -f conftest*
6027 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6028 echo "$ac_t""yes" 1>&6
6029 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6030 cat >> confdefs.h <<EOF
6031 #define $ac_tr_hdr 1
6034 else
6035 echo "$ac_t""no" 1>&6
6036 for ac_hdr in kerberos/des.h
6038 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6039 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6040 echo "configure:6041: checking for $ac_hdr" >&5
6041 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6042 echo $ac_n "(cached) $ac_c" 1>&6
6043 else
6044 cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6047 #include <$ac_hdr>
6049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6050 { (eval echo configure:6051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6052 if test -z "$ac_err"; then
6053 rm -rf conftest*
6054 eval "ac_cv_header_$ac_safe=yes"
6055 else
6056 echo "$ac_err" >&5
6057 echo "configure: failed program was:" >&5
6058 cat conftest.$ac_ext >&5
6059 rm -rf conftest*
6060 eval "ac_cv_header_$ac_safe=no"
6062 rm -f conftest*
6064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6065 echo "$ac_t""yes" 1>&6
6066 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6067 cat >> confdefs.h <<EOF
6068 #define $ac_tr_hdr 1
6071 else
6072 echo "$ac_t""no" 1>&6
6074 done
6077 done
6080 done
6082 for ac_hdr in krb.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
6089 else
6090 cat > conftest.$ac_ext <<EOF
6091 #line 6092 "configure"
6092 #include "confdefs.h"
6093 #include <$ac_hdr>
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
6099 rm -rf conftest*
6100 eval "ac_cv_header_$ac_safe=yes"
6101 else
6102 echo "$ac_err" >&5
6103 echo "configure: failed program was:" >&5
6104 cat conftest.$ac_ext >&5
6105 rm -rf conftest*
6106 eval "ac_cv_header_$ac_safe=no"
6108 rm -f conftest*
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
6117 else
6118 echo "$ac_t""no" 1>&6
6119 for ac_hdr in kerberosIV/krb.h
6121 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6122 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6123 echo "configure:6124: checking for $ac_hdr" >&5
6124 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6125 echo $ac_n "(cached) $ac_c" 1>&6
6126 else
6127 cat > conftest.$ac_ext <<EOF
6128 #line 6129 "configure"
6129 #include "confdefs.h"
6130 #include <$ac_hdr>
6132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6133 { (eval echo configure:6134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6135 if test -z "$ac_err"; then
6136 rm -rf conftest*
6137 eval "ac_cv_header_$ac_safe=yes"
6138 else
6139 echo "$ac_err" >&5
6140 echo "configure: failed program was:" >&5
6141 cat conftest.$ac_ext >&5
6142 rm -rf conftest*
6143 eval "ac_cv_header_$ac_safe=no"
6145 rm -f conftest*
6147 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6148 echo "$ac_t""yes" 1>&6
6149 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6150 cat >> confdefs.h <<EOF
6151 #define $ac_tr_hdr 1
6154 else
6155 echo "$ac_t""no" 1>&6
6156 for ac_hdr in kerberos/krb.h
6158 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6159 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6160 echo "configure:6161: checking for $ac_hdr" >&5
6161 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6162 echo $ac_n "(cached) $ac_c" 1>&6
6163 else
6164 cat > conftest.$ac_ext <<EOF
6165 #line 6166 "configure"
6166 #include "confdefs.h"
6167 #include <$ac_hdr>
6169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6170 { (eval echo configure:6171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6172 if test -z "$ac_err"; then
6173 rm -rf conftest*
6174 eval "ac_cv_header_$ac_safe=yes"
6175 else
6176 echo "$ac_err" >&5
6177 echo "configure: failed program was:" >&5
6178 cat conftest.$ac_ext >&5
6179 rm -rf conftest*
6180 eval "ac_cv_header_$ac_safe=no"
6182 rm -f conftest*
6184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6185 echo "$ac_t""yes" 1>&6
6186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6187 cat >> confdefs.h <<EOF
6188 #define $ac_tr_hdr 1
6191 else
6192 echo "$ac_t""no" 1>&6
6194 done
6197 done
6200 done
6203 for ac_hdr in com_err.h
6205 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6206 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6207 echo "configure:6208: checking for $ac_hdr" >&5
6208 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6209 echo $ac_n "(cached) $ac_c" 1>&6
6210 else
6211 cat > conftest.$ac_ext <<EOF
6212 #line 6213 "configure"
6213 #include "confdefs.h"
6214 #include <$ac_hdr>
6216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6217 { (eval echo configure:6218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6219 if test -z "$ac_err"; then
6220 rm -rf conftest*
6221 eval "ac_cv_header_$ac_safe=yes"
6222 else
6223 echo "$ac_err" >&5
6224 echo "configure: failed program was:" >&5
6225 cat conftest.$ac_ext >&5
6226 rm -rf conftest*
6227 eval "ac_cv_header_$ac_safe=no"
6229 rm -f conftest*
6231 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6232 echo "$ac_t""yes" 1>&6
6233 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6234 cat >> confdefs.h <<EOF
6235 #define $ac_tr_hdr 1
6238 else
6239 echo "$ac_t""no" 1>&6
6241 done
6245 # Solaris requires -lintl if you want strerror (which calls dgettext)
6246 # to return localized messages.
6247 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
6248 echo "configure:6249: checking for dgettext in -lintl" >&5
6249 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
6250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6251 echo $ac_n "(cached) $ac_c" 1>&6
6252 else
6253 ac_save_LIBS="$LIBS"
6254 LIBS="-lintl $LIBS"
6255 cat > conftest.$ac_ext <<EOF
6256 #line 6257 "configure"
6257 #include "confdefs.h"
6258 /* Override any gcc2 internal prototype to avoid an error. */
6259 /* We use char because int might match the return type of a gcc2
6260 builtin and then its argument prototype would still apply. */
6261 char dgettext();
6263 int main() {
6264 dgettext()
6265 ; return 0; }
6267 if { (eval echo configure:6268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6268 rm -rf conftest*
6269 eval "ac_cv_lib_$ac_lib_var=yes"
6270 else
6271 echo "configure: failed program was:" >&5
6272 cat conftest.$ac_ext >&5
6273 rm -rf conftest*
6274 eval "ac_cv_lib_$ac_lib_var=no"
6276 rm -f conftest*
6277 LIBS="$ac_save_LIBS"
6280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6281 echo "$ac_t""yes" 1>&6
6282 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6283 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6284 cat >> confdefs.h <<EOF
6285 #define $ac_tr_lib 1
6288 LIBS="-lintl $LIBS"
6290 else
6291 echo "$ac_t""no" 1>&6
6295 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
6296 echo "configure:6297: checking whether localtime caches TZ" >&5
6297 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
6298 echo $ac_n "(cached) $ac_c" 1>&6
6299 else
6300 if test x$ac_cv_func_tzset = xyes; then
6301 if test "$cross_compiling" = yes; then
6302 # If we have tzset, assume the worst when cross-compiling.
6303 emacs_cv_localtime_cache=yes
6304 else
6305 cat > conftest.$ac_ext <<EOF
6306 #line 6307 "configure"
6307 #include "confdefs.h"
6308 #include <time.h>
6309 extern char **environ;
6310 unset_TZ ()
6312 char **from, **to;
6313 for (to = from = environ; (*to = *from); from++)
6314 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
6315 to++;
6317 char TZ_GMT0[] = "TZ=GMT0";
6318 char TZ_PST8[] = "TZ=PST8";
6319 main()
6321 time_t now = time ((time_t *) 0);
6322 int hour_GMT0, hour_unset;
6323 if (putenv (TZ_GMT0) != 0)
6324 exit (1);
6325 hour_GMT0 = localtime (&now)->tm_hour;
6326 unset_TZ ();
6327 hour_unset = localtime (&now)->tm_hour;
6328 if (putenv (TZ_PST8) != 0)
6329 exit (1);
6330 if (localtime (&now)->tm_hour == hour_GMT0)
6331 exit (1);
6332 unset_TZ ();
6333 if (localtime (&now)->tm_hour != hour_unset)
6334 exit (1);
6335 exit (0);
6338 if { (eval echo configure:6339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6339 then
6340 emacs_cv_localtime_cache=no
6341 else
6342 echo "configure: failed program was:" >&5
6343 cat conftest.$ac_ext >&5
6344 rm -fr conftest*
6345 emacs_cv_localtime_cache=yes
6347 rm -fr conftest*
6350 else
6351 # If we lack tzset, report that localtime does not cache TZ,
6352 # since we can't invalidate the cache if we don't have tzset.
6353 emacs_cv_localtime_cache=no
6356 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
6357 if test $emacs_cv_localtime_cache = yes; then
6358 cat >> confdefs.h <<\EOF
6359 #define LOCALTIME_CACHE 1
6364 if test "x$HAVE_TIMEVAL" = xyes; then
6365 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
6366 echo "configure:6367: checking whether gettimeofday can accept two arguments" >&5
6367 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
6368 echo $ac_n "(cached) $ac_c" 1>&6
6369 else
6370 cat > conftest.$ac_ext <<EOF
6371 #line 6372 "configure"
6372 #include "confdefs.h"
6374 #ifdef TIME_WITH_SYS_TIME
6375 #include <sys/time.h>
6376 #include <time.h>
6377 #else
6378 #ifdef HAVE_SYS_TIME_H
6379 #include <sys/time.h>
6380 #else
6381 #include <time.h>
6382 #endif
6383 #endif
6385 int main() {
6387 struct timeval time;
6388 struct timezone dummy;
6389 gettimeofday (&time, &dummy);
6391 ; return 0; }
6393 if { (eval echo configure:6394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6394 rm -rf conftest*
6395 emacs_cv_gettimeofday_two_arguments=yes
6396 else
6397 echo "configure: failed program was:" >&5
6398 cat conftest.$ac_ext >&5
6399 rm -rf conftest*
6400 emacs_cv_gettimeofday_two_arguments=no
6402 rm -f conftest*
6405 echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6
6406 if test $emacs_cv_gettimeofday_two_arguments = no; then
6407 cat >> confdefs.h <<\EOF
6408 #define GETTIMEOFDAY_ONE_ARGUMENT 1
6414 ok_so_far=yes
6415 echo $ac_n "checking for socket""... $ac_c" 1>&6
6416 echo "configure:6417: checking for socket" >&5
6417 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
6418 echo $ac_n "(cached) $ac_c" 1>&6
6419 else
6420 cat > conftest.$ac_ext <<EOF
6421 #line 6422 "configure"
6422 #include "confdefs.h"
6423 /* System header to define __stub macros and hopefully few prototypes,
6424 which can conflict with char socket(); below. */
6425 #include <assert.h>
6426 /* Override any gcc2 internal prototype to avoid an error. */
6427 /* We use char because int might match the return type of a gcc2
6428 builtin and then its argument prototype would still apply. */
6429 char socket();
6431 int main() {
6433 /* The GNU C library defines this for functions which it implements
6434 to always fail with ENOSYS. Some functions are actually named
6435 something starting with __ and the normal name is an alias. */
6436 #if defined (__stub_socket) || defined (__stub___socket)
6437 choke me
6438 #else
6439 socket();
6440 #endif
6442 ; return 0; }
6444 if { (eval echo configure:6445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6445 rm -rf conftest*
6446 eval "ac_cv_func_socket=yes"
6447 else
6448 echo "configure: failed program was:" >&5
6449 cat conftest.$ac_ext >&5
6450 rm -rf conftest*
6451 eval "ac_cv_func_socket=no"
6453 rm -f conftest*
6456 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
6457 echo "$ac_t""yes" 1>&6
6459 else
6460 echo "$ac_t""no" 1>&6
6461 ok_so_far=no
6464 if test $ok_so_far = yes; then
6465 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
6466 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
6467 echo "configure:6468: checking for netinet/in.h" >&5
6468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6469 echo $ac_n "(cached) $ac_c" 1>&6
6470 else
6471 cat > conftest.$ac_ext <<EOF
6472 #line 6473 "configure"
6473 #include "confdefs.h"
6474 #include <netinet/in.h>
6476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6477 { (eval echo configure:6478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6479 if test -z "$ac_err"; then
6480 rm -rf conftest*
6481 eval "ac_cv_header_$ac_safe=yes"
6482 else
6483 echo "$ac_err" >&5
6484 echo "configure: failed program was:" >&5
6485 cat conftest.$ac_ext >&5
6486 rm -rf conftest*
6487 eval "ac_cv_header_$ac_safe=no"
6489 rm -f conftest*
6491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6492 echo "$ac_t""yes" 1>&6
6494 else
6495 echo "$ac_t""no" 1>&6
6496 ok_so_far=no
6500 if test $ok_so_far = yes; then
6501 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
6502 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
6503 echo "configure:6504: checking for arpa/inet.h" >&5
6504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6505 echo $ac_n "(cached) $ac_c" 1>&6
6506 else
6507 cat > conftest.$ac_ext <<EOF
6508 #line 6509 "configure"
6509 #include "confdefs.h"
6510 #include <arpa/inet.h>
6512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6513 { (eval echo configure:6514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6515 if test -z "$ac_err"; then
6516 rm -rf conftest*
6517 eval "ac_cv_header_$ac_safe=yes"
6518 else
6519 echo "$ac_err" >&5
6520 echo "configure: failed program was:" >&5
6521 cat conftest.$ac_ext >&5
6522 rm -rf conftest*
6523 eval "ac_cv_header_$ac_safe=no"
6525 rm -f conftest*
6527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6528 echo "$ac_t""yes" 1>&6
6530 else
6531 echo "$ac_t""no" 1>&6
6532 ok_so_far=no
6536 if test $ok_so_far = yes; then
6537 cat >> confdefs.h <<\EOF
6538 #define HAVE_INET_SOCKETS 1
6543 if test -f /usr/lpp/X11/bin/smt.exp; then
6544 cat >> confdefs.h <<\EOF
6545 #define HAVE_AIX_SMT_EXP 1
6550 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
6551 echo "configure:6552: checking whether system supports dynamic ptys" >&5
6552 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
6553 echo "$ac_t""yes" 1>&6
6554 cat >> confdefs.h <<\EOF
6555 #define HAVE_DEV_PTMX 1
6558 else
6559 echo "$ac_t""no" 1>&6
6562 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6563 echo "configure:6564: checking for pid_t" >&5
6564 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6565 echo $ac_n "(cached) $ac_c" 1>&6
6566 else
6567 cat > conftest.$ac_ext <<EOF
6568 #line 6569 "configure"
6569 #include "confdefs.h"
6570 #include <sys/types.h>
6571 #if STDC_HEADERS
6572 #include <stdlib.h>
6573 #include <stddef.h>
6574 #endif
6576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6577 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6578 rm -rf conftest*
6579 ac_cv_type_pid_t=yes
6580 else
6581 rm -rf conftest*
6582 ac_cv_type_pid_t=no
6584 rm -f conftest*
6587 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
6588 if test $ac_cv_type_pid_t = no; then
6589 cat >> confdefs.h <<\EOF
6590 #define pid_t int
6595 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
6596 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
6597 echo "configure:6598: checking for vfork.h" >&5
6598 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6599 echo $ac_n "(cached) $ac_c" 1>&6
6600 else
6601 cat > conftest.$ac_ext <<EOF
6602 #line 6603 "configure"
6603 #include "confdefs.h"
6604 #include <vfork.h>
6606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6607 { (eval echo configure:6608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6609 if test -z "$ac_err"; then
6610 rm -rf conftest*
6611 eval "ac_cv_header_$ac_safe=yes"
6612 else
6613 echo "$ac_err" >&5
6614 echo "configure: failed program was:" >&5
6615 cat conftest.$ac_ext >&5
6616 rm -rf conftest*
6617 eval "ac_cv_header_$ac_safe=no"
6619 rm -f conftest*
6621 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6622 echo "$ac_t""yes" 1>&6
6623 cat >> confdefs.h <<\EOF
6624 #define HAVE_VFORK_H 1
6627 else
6628 echo "$ac_t""no" 1>&6
6631 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
6632 echo "configure:6633: checking for working vfork" >&5
6633 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
6634 echo $ac_n "(cached) $ac_c" 1>&6
6635 else
6636 if test "$cross_compiling" = yes; then
6637 echo $ac_n "checking for vfork""... $ac_c" 1>&6
6638 echo "configure:6639: checking for vfork" >&5
6639 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6
6641 else
6642 cat > conftest.$ac_ext <<EOF
6643 #line 6644 "configure"
6644 #include "confdefs.h"
6645 /* System header to define __stub macros and hopefully few prototypes,
6646 which can conflict with char vfork(); below. */
6647 #include <assert.h>
6648 /* Override any gcc2 internal prototype to avoid an error. */
6649 /* We use char because int might match the return type of a gcc2
6650 builtin and then its argument prototype would still apply. */
6651 char vfork();
6653 int main() {
6655 /* The GNU C library defines this for functions which it implements
6656 to always fail with ENOSYS. Some functions are actually named
6657 something starting with __ and the normal name is an alias. */
6658 #if defined (__stub_vfork) || defined (__stub___vfork)
6659 choke me
6660 #else
6661 vfork();
6662 #endif
6664 ; return 0; }
6666 if { (eval echo configure:6667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6667 rm -rf conftest*
6668 eval "ac_cv_func_vfork=yes"
6669 else
6670 echo "configure: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6672 rm -rf conftest*
6673 eval "ac_cv_func_vfork=no"
6675 rm -f conftest*
6678 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
6679 echo "$ac_t""yes" 1>&6
6681 else
6682 echo "$ac_t""no" 1>&6
6685 ac_cv_func_vfork_works=$ac_cv_func_vfork
6686 else
6687 cat > conftest.$ac_ext <<EOF
6688 #line 6689 "configure"
6689 #include "confdefs.h"
6690 /* Thanks to Paul Eggert for this test. */
6691 #include <stdio.h>
6692 #include <sys/types.h>
6693 #include <sys/stat.h>
6694 #ifdef HAVE_UNISTD_H
6695 #include <unistd.h>
6696 #endif
6697 #ifdef HAVE_VFORK_H
6698 #include <vfork.h>
6699 #endif
6700 /* On some sparc systems, changes by the child to local and incoming
6701 argument registers are propagated back to the parent.
6702 The compiler is told about this with #include <vfork.h>,
6703 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
6704 Test for this by using a static variable whose address
6705 is put into a register that is clobbered by the vfork. */
6706 static
6707 #ifdef __cplusplus
6708 sparc_address_test (int arg)
6709 #else
6710 sparc_address_test (arg) int arg;
6711 #endif
6713 static pid_t child;
6714 if (!child) {
6715 child = vfork ();
6716 if (child < 0) {
6717 perror ("vfork");
6718 _exit(2);
6720 if (!child) {
6721 arg = getpid();
6722 write(-1, "", 0);
6723 _exit (arg);
6727 main() {
6728 pid_t parent = getpid ();
6729 pid_t child;
6731 sparc_address_test ();
6733 child = vfork ();
6735 if (child == 0) {
6736 /* Here is another test for sparc vfork register problems.
6737 This test uses lots of local variables, at least
6738 as many local variables as main has allocated so far
6739 including compiler temporaries. 4 locals are enough for
6740 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
6741 A buggy compiler should reuse the register of parent
6742 for one of the local variables, since it will think that
6743 parent can't possibly be used any more in this routine.
6744 Assigning to the local variable will thus munge parent
6745 in the parent process. */
6746 pid_t
6747 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6748 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6749 /* Convince the compiler that p..p7 are live; otherwise, it might
6750 use the same hardware register for all 8 local variables. */
6751 if (p != p1 || p != p2 || p != p3 || p != p4
6752 || p != p5 || p != p6 || p != p7)
6753 _exit(1);
6755 /* On some systems (e.g. IRIX 3.3),
6756 vfork doesn't separate parent from child file descriptors.
6757 If the child closes a descriptor before it execs or exits,
6758 this munges the parent's descriptor as well.
6759 Test for this by closing stdout in the child. */
6760 _exit(close(fileno(stdout)) != 0);
6761 } else {
6762 int status;
6763 struct stat st;
6765 while (wait(&status) != child)
6767 exit(
6768 /* Was there some problem with vforking? */
6769 child < 0
6771 /* Did the child fail? (This shouldn't happen.) */
6772 || status
6774 /* Did the vfork/compiler bug occur? */
6775 || parent != getpid()
6777 /* Did the file descriptor bug occur? */
6778 || fstat(fileno(stdout), &st) != 0
6783 if { (eval echo configure:6784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6784 then
6785 ac_cv_func_vfork_works=yes
6786 else
6787 echo "configure: failed program was:" >&5
6788 cat conftest.$ac_ext >&5
6789 rm -fr conftest*
6790 ac_cv_func_vfork_works=no
6792 rm -fr conftest*
6797 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
6798 if test $ac_cv_func_vfork_works = no; then
6799 cat >> confdefs.h <<\EOF
6800 #define vfork fork
6806 # Set up the CFLAGS for real compilation, so we can substitute it.
6807 CFLAGS="$REAL_CFLAGS"
6809 #### Find out which version of Emacs this is.
6810 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
6811 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
6812 if test x"${version}" = x; then
6813 { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; }
6816 ### Specify what sort of things we'll be editing into Makefile and config.h.
6817 ### Use configuration here uncanonicalized to avoid exceeding size limits.
6848 cat >> confdefs.h <<EOF
6849 #define EMACS_CONFIGURATION "${canonical}"
6852 cat >> confdefs.h <<EOF
6853 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
6856 cat >> confdefs.h <<EOF
6857 #define config_machfile "${machfile}"
6860 cat >> confdefs.h <<EOF
6861 #define config_opsysfile "${opsysfile}"
6864 cat >> confdefs.h <<EOF
6865 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
6868 cat >> confdefs.h <<EOF
6869 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
6872 cat >> confdefs.h <<EOF
6873 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
6876 cat >> confdefs.h <<EOF
6877 #define UNEXEC_SRC ${UNEXEC_SRC}
6881 if test "${HAVE_X_WINDOWS}" = "yes" ; then
6882 cat >> confdefs.h <<\EOF
6883 #define HAVE_X_WINDOWS 1
6887 if test "${USE_X_TOOLKIT}" != "none" ; then
6888 cat >> confdefs.h <<\EOF
6889 #define USE_X_TOOLKIT 1
6893 if test "${HAVE_X11}" = "yes" ; then
6894 cat >> confdefs.h <<\EOF
6895 #define HAVE_X11 1
6899 if test "${HAVE_XFREE386}" = "yes" ; then
6900 cat >> confdefs.h <<\EOF
6901 #define HAVE_XFREE386 1
6905 if test "${HAVE_MENUS}" = "yes" ; then
6906 cat >> confdefs.h <<\EOF
6907 #define HAVE_MENUS 1
6911 if test "${GNU_MALLOC}" = "yes" ; then
6912 cat >> confdefs.h <<\EOF
6913 #define GNU_MALLOC 1
6917 if test "${REL_ALLOC}" = "yes" ; then
6918 cat >> confdefs.h <<\EOF
6919 #define REL_ALLOC 1
6924 #### Report on what we decided to do.
6925 echo "
6926 Configured for \`${canonical}'.
6928 Where should the build process find the source code? ${srcdir}
6929 What operating system and machine description files should Emacs use?
6930 \`${opsysfile}' and \`${machfile}'
6931 What compiler should emacs be built with? ${CC} ${CFLAGS}
6932 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
6933 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC}
6934 What window system should Emacs use? ${window_system}
6935 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
6937 if test -n "${x_includes}"; then
6938 echo " Where do we find X Windows header files? ${x_includes}"
6939 else
6940 echo " Where do we find X Windows header files? Standard dirs"
6942 if test -n "${x_libraries}"; then
6943 echo " Where do we find X Windows libraries? ${x_libraries}"
6944 else
6945 echo " Where do we find X Windows libraries? Standard dirs"
6948 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
6949 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
6950 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
6951 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
6952 echo " Does Emacs use -lungif? ${HAVE_GIF}"
6953 echo " Does Emacs use -lpng? ${HAVE_PNG}"
6954 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
6955 echo
6957 # Remove any trailing slashes in these variables.
6958 test "${prefix}" != NONE &&
6959 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
6960 test "${exec_prefix}" != NONE &&
6961 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
6963 trap '' 1 2 15
6964 cat > confcache <<\EOF
6965 # This file is a shell script that caches the results of configure
6966 # tests run on this system so they can be shared between configure
6967 # scripts and configure runs. It is not useful on other systems.
6968 # If it contains results you don't want to keep, you may remove or edit it.
6970 # By default, configure uses ./config.cache as the cache file,
6971 # creating it if it does not exist already. You can give configure
6972 # the --cache-file=FILE option to use a different cache file; that is
6973 # what configure does when it calls configure scripts in
6974 # subdirectories, so they share the cache.
6975 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6976 # config.status only pays attention to the cache file if you give it the
6977 # --recheck option to rerun configure.
6980 # The following way of writing the cache mishandles newlines in values,
6981 # but we know of no workaround that is simple, portable, and efficient.
6982 # So, don't put newlines in cache variables' values.
6983 # Ultrix sh set writes to stderr and can't be redirected directly,
6984 # and sets the high bit in the cache file unless we assign to the vars.
6985 (set) 2>&1 |
6986 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6987 *ac_space=\ *)
6988 # `set' does not quote correctly, so add quotes (double-quote substitution
6989 # turns \\\\ into \\, and sed turns \\ into \).
6990 sed -n \
6991 -e "s/'/'\\\\''/g" \
6992 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6995 # `set' quotes correctly as required by POSIX, so do not add quotes.
6996 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6998 esac >> confcache
6999 if cmp -s $cache_file confcache; then
7001 else
7002 if test -w $cache_file; then
7003 echo "updating cache $cache_file"
7004 cat confcache > $cache_file
7005 else
7006 echo "not updating unwritable cache $cache_file"
7009 rm -f confcache
7011 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7013 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7014 # Let make expand exec_prefix.
7015 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7017 # Any assignment to VPATH causes Sun make to only execute
7018 # the first set of double-colon rules, so remove it if not needed.
7019 # If there is a colon in the path, we need to keep it.
7020 if test "x$srcdir" = x.; then
7021 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7024 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7026 DEFS=-DHAVE_CONFIG_H
7028 # Without the "./", some shells look in PATH for config.status.
7029 : ${CONFIG_STATUS=./config.status}
7031 echo creating $CONFIG_STATUS
7032 rm -f $CONFIG_STATUS
7033 cat > $CONFIG_STATUS <<EOF
7034 #! /bin/sh
7035 # Generated automatically by configure.
7036 # Run this file to recreate the current configuration.
7037 # This directory was configured as follows,
7038 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7040 # $0 $ac_configure_args
7042 # Compiler output produced by configure, useful for debugging
7043 # configure, is in ./config.log if it exists.
7045 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7046 for ac_option
7048 case "\$ac_option" in
7049 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7050 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7051 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7052 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7053 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7054 exit 0 ;;
7055 -help | --help | --hel | --he | --h)
7056 echo "\$ac_cs_usage"; exit 0 ;;
7057 *) echo "\$ac_cs_usage"; exit 1 ;;
7058 esac
7059 done
7061 ac_given_srcdir=$srcdir
7062 ac_given_INSTALL="$INSTALL"
7064 trap 'rm -fr `echo "Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
7065 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
7066 leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7068 cat >> $CONFIG_STATUS <<EOF
7070 # Protect against being on the right side of a sed subst in config.status.
7071 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7072 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7073 $ac_vpsub
7074 $extrasub
7075 s%@SHELL@%$SHELL%g
7076 s%@CFLAGS@%$CFLAGS%g
7077 s%@CPPFLAGS@%$CPPFLAGS%g
7078 s%@CXXFLAGS@%$CXXFLAGS%g
7079 s%@FFLAGS@%$FFLAGS%g
7080 s%@DEFS@%$DEFS%g
7081 s%@LDFLAGS@%$LDFLAGS%g
7082 s%@LIBS@%$LIBS%g
7083 s%@exec_prefix@%$exec_prefix%g
7084 s%@prefix@%$prefix%g
7085 s%@program_transform_name@%$program_transform_name%g
7086 s%@bindir@%$bindir%g
7087 s%@sbindir@%$sbindir%g
7088 s%@libexecdir@%$libexecdir%g
7089 s%@datadir@%$datadir%g
7090 s%@sysconfdir@%$sysconfdir%g
7091 s%@sharedstatedir@%$sharedstatedir%g
7092 s%@localstatedir@%$localstatedir%g
7093 s%@libdir@%$libdir%g
7094 s%@includedir@%$includedir%g
7095 s%@oldincludedir@%$oldincludedir%g
7096 s%@infodir@%$infodir%g
7097 s%@mandir@%$mandir%g
7098 s%@host@%$host%g
7099 s%@host_alias@%$host_alias%g
7100 s%@host_cpu@%$host_cpu%g
7101 s%@host_vendor@%$host_vendor%g
7102 s%@host_os@%$host_os%g
7103 s%@CC@%$CC%g
7104 s%@LN_S@%$LN_S%g
7105 s%@CPP@%$CPP%g
7106 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7107 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7108 s%@INSTALL_DATA@%$INSTALL_DATA%g
7109 s%@YACC@%$YACC%g
7110 s%@RANLIB@%$RANLIB%g
7111 s%@SET_MAKE@%$SET_MAKE%g
7112 s%@ALLOCA@%$ALLOCA%g
7113 s%@liblockfile@%$liblockfile%g
7114 s%@version@%$version%g
7115 s%@configuration@%$configuration%g
7116 s%@canonical@%$canonical%g
7117 s%@srcdir@%$srcdir%g
7118 s%@lispdir@%$lispdir%g
7119 s%@locallisppath@%$locallisppath%g
7120 s%@lisppath@%$lisppath%g
7121 s%@x_default_search_path@%$x_default_search_path%g
7122 s%@etcdir@%$etcdir%g
7123 s%@archlibdir@%$archlibdir%g
7124 s%@docdir@%$docdir%g
7125 s%@bitmapdir@%$bitmapdir%g
7126 s%@c_switch_system@%$c_switch_system%g
7127 s%@c_switch_machine@%$c_switch_machine%g
7128 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g
7129 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g
7130 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g
7131 s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g
7132 s%@machfile@%$machfile%g
7133 s%@opsysfile@%$opsysfile%g
7135 CEOF
7138 cat >> $CONFIG_STATUS <<\EOF
7140 # Split the substitutions into bite-sized pieces for seds with
7141 # small command number limits, like on Digital OSF/1 and HP-UX.
7142 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7143 ac_file=1 # Number of current file.
7144 ac_beg=1 # First line for current file.
7145 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7146 ac_more_lines=:
7147 ac_sed_cmds=""
7148 while $ac_more_lines; do
7149 if test $ac_beg -gt 1; then
7150 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7151 else
7152 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7154 if test ! -s conftest.s$ac_file; then
7155 ac_more_lines=false
7156 rm -f conftest.s$ac_file
7157 else
7158 if test -z "$ac_sed_cmds"; then
7159 ac_sed_cmds="sed -f conftest.s$ac_file"
7160 else
7161 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7163 ac_file=`expr $ac_file + 1`
7164 ac_beg=$ac_end
7165 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7167 done
7168 if test -z "$ac_sed_cmds"; then
7169 ac_sed_cmds=cat
7173 cat >> $CONFIG_STATUS <<EOF
7175 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
7176 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
7177 leim/Makefile"}
7179 cat >> $CONFIG_STATUS <<\EOF
7180 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7181 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7182 case "$ac_file" in
7183 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7184 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7185 *) ac_file_in="${ac_file}.in" ;;
7186 esac
7188 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7190 # Remove last slash and all that follows it. Not all systems have dirname.
7191 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7192 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7193 # The file is in a subdirectory.
7194 test ! -d "$ac_dir" && mkdir "$ac_dir"
7195 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7196 # A "../" for each directory in $ac_dir_suffix.
7197 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7198 else
7199 ac_dir_suffix= ac_dots=
7202 case "$ac_given_srcdir" in
7203 .) srcdir=.
7204 if test -z "$ac_dots"; then top_srcdir=.
7205 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7206 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7207 *) # Relative path.
7208 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7209 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7210 esac
7212 case "$ac_given_INSTALL" in
7213 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7214 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7215 esac
7217 echo creating "$ac_file"
7218 rm -f "$ac_file"
7219 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7220 case "$ac_file" in
7221 *Makefile*) ac_comsub="1i\\
7222 # $configure_input" ;;
7223 *) ac_comsub= ;;
7224 esac
7226 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7227 sed -e "$ac_comsub
7228 s%@configure_input@%$configure_input%g
7229 s%@srcdir@%$srcdir%g
7230 s%@top_srcdir@%$top_srcdir%g
7231 s%@INSTALL@%$INSTALL%g
7232 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7233 fi; done
7234 rm -f conftest.s*
7236 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7237 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7239 # ac_d sets the value in "#define NAME VALUE" lines.
7240 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7241 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7242 ac_dC='\3'
7243 ac_dD='%g'
7244 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7245 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7246 ac_uB='\([ ]\)%\1#\2define\3'
7247 ac_uC=' '
7248 ac_uD='\4%g'
7249 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7250 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7251 ac_eB='$%\1#\2define\3'
7252 ac_eC=' '
7253 ac_eD='%g'
7255 if test "${CONFIG_HEADERS+set}" != set; then
7257 cat >> $CONFIG_STATUS <<EOF
7258 CONFIG_HEADERS="src/config.h:src/config.in"
7260 cat >> $CONFIG_STATUS <<\EOF
7262 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7263 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7264 case "$ac_file" in
7265 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7266 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7267 *) ac_file_in="${ac_file}.in" ;;
7268 esac
7270 echo creating $ac_file
7272 rm -f conftest.frag conftest.in conftest.out
7273 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7274 cat $ac_file_inputs > conftest.in
7278 # Transform confdefs.h into a sed script conftest.vals that substitutes
7279 # the proper values into config.h.in to produce config.h. And first:
7280 # Protect against being on the right side of a sed subst in config.status.
7281 # Protect against being in an unquoted here document in config.status.
7282 rm -f conftest.vals
7283 cat > conftest.hdr <<\EOF
7284 s/[\\&%]/\\&/g
7285 s%[\\$`]%\\&%g
7286 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7287 s%ac_d%ac_u%gp
7288 s%ac_u%ac_e%gp
7290 sed -n -f conftest.hdr confdefs.h > conftest.vals
7291 rm -f conftest.hdr
7293 # This sed command replaces #undef with comments. This is necessary, for
7294 # example, in the case of _POSIX_SOURCE, which is predefined and required
7295 # on some systems where configure will not decide to define it.
7296 cat >> conftest.vals <<\EOF
7297 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7300 # Break up conftest.vals because some shells have a limit on
7301 # the size of here documents, and old seds have small limits too.
7303 rm -f conftest.tail
7304 while :
7306 ac_lines=`grep -c . conftest.vals`
7307 # grep -c gives empty output for an empty file on some AIX systems.
7308 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7309 # Write a limited-size here document to conftest.frag.
7310 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7311 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7312 echo 'CEOF
7313 sed -f conftest.frag conftest.in > conftest.out
7314 rm -f conftest.in
7315 mv conftest.out conftest.in
7316 ' >> $CONFIG_STATUS
7317 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7318 rm -f conftest.vals
7319 mv conftest.tail conftest.vals
7320 done
7321 rm -f conftest.vals
7323 cat >> $CONFIG_STATUS <<\EOF
7324 rm -f conftest.frag conftest.h
7325 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7326 cat conftest.in >> conftest.h
7327 rm -f conftest.in
7328 if cmp -s $ac_file conftest.h 2>/dev/null; then
7329 echo "$ac_file is unchanged"
7330 rm -f conftest.h
7331 else
7332 # Remove last slash and all that follows it. Not all systems have dirname.
7333 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7334 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7335 # The file is in a subdirectory.
7336 test ! -d "$ac_dir" && mkdir "$ac_dir"
7338 rm -f $ac_file
7339 mv conftest.h $ac_file
7341 fi; done
7344 cat >> $CONFIG_STATUS <<EOF
7345 CPP="$CPP" CPPFLAGS="$CPPFLAGS"
7347 cat >> $CONFIG_STATUS <<\EOF
7350 ### Make the necessary directories, if they don't exist.
7351 for dir in etc lisp ; do
7352 test -d ${dir} || mkdir ${dir}
7353 done
7355 # Build src/Makefile from ${srcdir}/src/Makefile.c
7356 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
7357 # This must be done after src/config.h is built, since we rely on that file.
7359 # Now get this: Some word that is part of the ${srcdir} directory name
7360 # or the ${configuration} value might, just might, happen to be an
7361 # identifier like `sun4' or `i386' or something, and be predefined by
7362 # the C preprocessor to some helpful value like 1, or maybe the empty
7363 # string. Needless to say consequent macro substitutions are less
7364 # than conducive to the makefile finding the correct directory.
7365 undefs="`echo $top_srcdir $configuration $canonical |
7366 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
7367 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
7370 echo creating src/epaths.h
7371 make epaths-force
7373 echo creating lib-src/Makefile
7374 ( cd lib-src
7375 rm -f junk.c junk1.c junk2.c
7376 sed -e '/start of cpp stuff/q' \
7377 < Makefile.c > junk1.c
7378 sed -e '1,/start of cpp stuff/d'\
7379 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
7380 < Makefile.c > junk.c
7381 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
7382 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
7383 cat junk1.c junk2.c > Makefile.new
7384 rm -f junk.c junk1.c junk2.c
7385 chmod 444 Makefile.new
7386 mv -f Makefile.new Makefile
7389 echo creating src/Makefile
7390 ( cd src
7391 rm -f junk.c junk1.c junk2.c
7392 sed -e '/start of cpp stuff/q' \
7393 < Makefile.c > junk1.c
7394 sed -e '1,/start of cpp stuff/d'\
7395 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
7396 < Makefile.c > junk.c
7397 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
7398 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
7399 cat junk1.c junk2.c > Makefile.new
7400 rm -f junk.c junk1.c junk2.c
7401 chmod 444 Makefile.new
7402 mv -f Makefile.new Makefile
7405 if test ! -f src/.gdbinit && test -f $top_srcdir/src/.gdbinit; then
7406 echo creating src/.gdbinit
7407 echo source $top_srcdir/src/.gdbinit > src/.gdbinit
7410 # This is how we know whether to re-run configure in certain cases.
7411 touch src/config.stamp
7414 exit 0
7416 chmod +x $CONFIG_STATUS
7417 rm -fr confdefs* $ac_clean_files
7418 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1