3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --without-gcc don't use GCC to compile Emacs if GCC is found"
17 --without-pop don't support POP mail retrieval with movemail"
19 --with-hesiod support Hesiod to get the POP server host"
21 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)"
23 --with-xpm use -lXpm for displaying XPM images"
25 --with-jpeg use -ljpeg for displaying JPEG images"
27 --with-tiff use -ltiff for displaying TIFF images"
29 --with-gif use -lungif for displaying GIF images"
31 --with-png use -lpng for displaying PNG images"
33 --without-toolkit-scroll-bars don't use Motif or Xaw3d scroll bars"
35 --with-x use the X Window System"
37 # Initialize some variables set by options.
38 # The variables have the same names as the options, with
39 # dashes changed to underlines.
41 cache_file
=.
/config.cache
50 program_transform_name
=s
,x
,x
,
58 bindir
='${exec_prefix}/bin'
59 sbindir
='${exec_prefix}/sbin'
60 libexecdir
='${exec_prefix}/libexec'
61 datadir
='${prefix}/share'
62 sysconfdir
='${prefix}/etc'
63 sharedstatedir
='${prefix}/com'
64 localstatedir
='${prefix}/var'
65 libdir
='${exec_prefix}/lib'
66 includedir
='${prefix}/include'
67 oldincludedir
='/usr/include'
68 infodir
='${prefix}/info'
69 mandir
='${prefix}/man'
71 # Initialize some other variables.
74 SHELL
=${CONFIG_SHELL-/bin/sh}
75 # Maximum number of lines to put in a shell here document.
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
90 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 # Accept the important Cygnus configure options, so we can diagnose typos.
98 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
100 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
101 bindir
="$ac_optarg" ;;
103 -build |
--build |
--buil |
--bui |
--bu)
105 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
106 build
="$ac_optarg" ;;
108 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
109 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
110 ac_prev
=cache_file
;;
111 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
112 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
113 cache_file
="$ac_optarg" ;;
115 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
117 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
119 datadir
="$ac_optarg" ;;
121 -disable-* |
--disable-*)
122 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}=no" ;;
130 -enable-* |
--enable-*)
131 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}='$ac_optarg'" ;;
143 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
144 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
145 |
--exec |
--exe |
--ex)
146 ac_prev
=exec_prefix
;;
147 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
148 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
149 |
--exec=* |
--exe=* |
--ex=*)
150 exec_prefix
="$ac_optarg" ;;
152 -gas |
--gas |
--ga |
--g)
153 # Obsolete; use --with-gas.
156 -help |
--help |
--hel |
--he)
157 # Omit some internal or obsolete options to make the list less imposing.
158 # This message is too long to be a string in the A/UX 3.1 sh.
160 Usage: configure [options] [host]
161 Options: [defaults in brackets after descriptions]
163 --cache-file=FILE cache test results in FILE
164 --help print this message
165 --no-create do not create output files
166 --quiet, --silent do not print \`checking...' messages
167 --version print the version of autoconf that created configure
168 Directory and file names:
169 --prefix=PREFIX install architecture-independent files in PREFIX
171 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
173 --bindir=DIR user executables in DIR [EPREFIX/bin]
174 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
175 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
176 --datadir=DIR read-only architecture-independent data in DIR
178 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
179 --sharedstatedir=DIR modifiable architecture-independent data in DIR
181 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
182 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
183 --includedir=DIR C header files in DIR [PREFIX/include]
184 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
185 --infodir=DIR info documentation in DIR [PREFIX/info]
186 --mandir=DIR man documentation in DIR [PREFIX/man]
187 --srcdir=DIR find the sources in DIR [configure dir or ..]
188 --program-prefix=PREFIX prepend PREFIX to installed program names
189 --program-suffix=SUFFIX append SUFFIX to installed program names
190 --program-transform-name=PROGRAM
191 run sed PROGRAM on installed program names
195 --build=BUILD configure for building on BUILD [BUILD=HOST]
196 --host=HOST configure for HOST [guessed]
197 --target=TARGET configure for TARGET [TARGET=HOST]
198 Features and packages:
199 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
200 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
201 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
202 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
203 --x-includes=DIR X include files are in DIR
204 --x-libraries=DIR X library files are in DIR
206 if test -n "$ac_help"; then
207 echo "--enable and --with options recognized:$ac_help"
211 -host |
--host |
--hos |
--ho)
213 -host=* |
--host=* |
--hos=* |
--ho=*)
216 -includedir |
--includedir |
--includedi |
--included |
--include \
217 |
--includ |
--inclu |
--incl |
--inc)
218 ac_prev
=includedir
;;
219 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
220 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
221 includedir
="$ac_optarg" ;;
223 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
225 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
226 infodir
="$ac_optarg" ;;
228 -libdir |
--libdir |
--libdi |
--libd)
230 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
231 libdir
="$ac_optarg" ;;
233 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
234 |
--libexe |
--libex |
--libe)
235 ac_prev
=libexecdir
;;
236 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
237 |
--libexe=* |
--libex=* |
--libe=*)
238 libexecdir
="$ac_optarg" ;;
240 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
241 |
--localstate |
--localstat |
--localsta |
--localst \
242 |
--locals |
--local |
--loca |
--loc |
--lo)
243 ac_prev
=localstatedir
;;
244 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
245 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
246 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
247 localstatedir
="$ac_optarg" ;;
249 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
251 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
252 mandir
="$ac_optarg" ;;
255 # Obsolete; use --without-fp.
258 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
262 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
263 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
266 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
267 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
268 |
--oldin |
--oldi |
--old |
--ol |
--o)
269 ac_prev
=oldincludedir
;;
270 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
271 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
272 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
273 oldincludedir
="$ac_optarg" ;;
275 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
277 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
278 prefix
="$ac_optarg" ;;
280 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
281 |
--program-pre |
--program-pr |
--program-p)
282 ac_prev
=program_prefix
;;
283 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
284 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
285 program_prefix
="$ac_optarg" ;;
287 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
288 |
--program-suf |
--program-su |
--program-s)
289 ac_prev
=program_suffix
;;
290 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
291 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
292 program_suffix
="$ac_optarg" ;;
294 -program-transform-name |
--program-transform-name \
295 |
--program-transform-nam |
--program-transform-na \
296 |
--program-transform-n |
--program-transform- \
297 |
--program-transform |
--program-transfor \
298 |
--program-transfo |
--program-transf \
299 |
--program-trans |
--program-tran \
300 |
--progr-tra |
--program-tr |
--program-t)
301 ac_prev
=program_transform_name
;;
302 -program-transform-name=* |
--program-transform-name=* \
303 |
--program-transform-nam=* |
--program-transform-na=* \
304 |
--program-transform-n=* |
--program-transform-=* \
305 |
--program-transform=* |
--program-transfor=* \
306 |
--program-transfo=* |
--program-transf=* \
307 |
--program-trans=* |
--program-tran=* \
308 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
309 program_transform_name
="$ac_optarg" ;;
311 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
312 |
-silent |
--silent |
--silen |
--sile |
--sil)
315 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
317 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
319 sbindir
="$ac_optarg" ;;
321 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
322 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
323 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
325 ac_prev
=sharedstatedir
;;
326 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
327 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
328 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
330 sharedstatedir
="$ac_optarg" ;;
332 -site |
--site |
--sit)
334 -site=* |
--site=* |
--sit=*)
337 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
339 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
340 srcdir
="$ac_optarg" ;;
342 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
343 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
344 ac_prev
=sysconfdir
;;
345 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
346 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
347 sysconfdir
="$ac_optarg" ;;
349 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
351 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
352 target
="$ac_optarg" ;;
354 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
357 -version |
--version |
--versio |
--versi |
--vers)
358 echo "configure generated by autoconf version 2.13"
362 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 ac_package
=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}='$ac_optarg'" ;;
374 -without-* |
--without-*)
375 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
376 # Reject names that are not valid shell variable names.
377 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
378 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380 ac_package
=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}=no" ;;
384 # Obsolete; use --with-x.
387 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
388 |
--x-incl |
--x-inc |
--x-in |
--x-i)
389 ac_prev
=x_includes
;;
390 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
391 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
392 x_includes
="$ac_optarg" ;;
394 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
395 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
396 ac_prev
=x_libraries
;;
397 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
398 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
399 x_libraries
="$ac_optarg" ;;
401 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
405 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
406 echo "configure: warning: $ac_option: invalid host type" 1>&2
408 if test "x$nonopt" != xNONE
; then
409 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
417 if test -n "$ac_prev"; then
418 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
421 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
423 # File descriptor usage:
426 # 2 errors and warnings
427 # 3 some systems may open it to /dev/tty
428 # 4 used on the Kubota Titan
429 # 6 checking for... messages and results
430 # 5 compiler messages saved in config.log
431 if test "$silent" = yes; then
439 This file contains any messages produced by compilers while
440 running configure, to aid debugging if configure makes a mistake.
443 # Strip out --no-create and --no-recursion so they do not pile up.
444 # Also quote any args containing shell metacharacters.
449 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
450 |
--no-cr |
--no-c) ;;
451 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
452 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
453 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
454 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
455 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
460 # Only set these to C if already set. These must not be set unconditionally
461 # because not all systems understand e.g. LANG=C (notably SCO).
462 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
463 # Non-C LC_CTYPE values break the ctype check.
464 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
465 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
466 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
467 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
469 # confdefs.h avoids OS command line length limits that DEFS can exceed.
470 rm -rf conftest
* confdefs.h
471 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
474 # A filename unique to this package, relative to the directory that
475 # configure is in, which we can look for to find out if srcdir is correct.
476 ac_unique_file
=src
/lisp.h
478 # Find the source files, if location was not specified.
479 if test -z "$srcdir"; then
480 ac_srcdir_defaulted
=yes
481 # Try the directory containing this script, then its parent.
483 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
484 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
486 if test ! -r $srcdir/$ac_unique_file; then
490 ac_srcdir_defaulted
=no
492 if test ! -r $srcdir/$ac_unique_file; then
493 if test "$ac_srcdir_defaulted" = yes; then
494 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
496 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
499 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
501 # Prefer explicitly selected file to automatically selected ones.
502 if test -z "$CONFIG_SITE"; then
503 if test "x$prefix" != xNONE
; then
504 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
506 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
509 for ac_site_file
in $CONFIG_SITE; do
510 if test -r "$ac_site_file"; then
511 echo "loading site script $ac_site_file"
516 if test -r "$cache_file"; then
517 echo "loading cache $cache_file"
520 echo "creating cache $cache_file"
525 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
526 ac_cpp
='$CPP $CPPFLAGS'
527 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
528 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
529 cross_compiling
=$ac_cv_prog_cc_cross
533 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
534 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
535 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
542 ac_n
= ac_c
='\c' ac_t
=
548 lispdir
='${datadir}/emacs/${version}/lisp'
549 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
550 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
551 lisppath
='${locallisppath}:${lispdir}'
552 etcdir
='${datadir}/emacs/${version}/etc'
553 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
554 docdir
='${datadir}/emacs/${version}/etc'
556 # Check whether --with-gcc or --without-gcc was given.
557 if test "${with_gcc+set}" = set; then
562 # Check whether --with-pop or --without-pop was given.
563 if test "${with_pop+set}" = set; then
565 if test "$withval" = yes; then
566 cat >> confdefs.h
<<\EOF
567 #define MAIL_USE_POP 1
573 cat >> confdefs.h
<<\EOF
574 #define MAIL_USE_POP 1
579 # Check whether --with-hesiod or --without-hesiod was given.
580 if test "${with_hesiod+set}" = set; then
581 withval
="$with_hesiod"
582 cat >> confdefs.h
<<\EOF
588 # Check whether --with-x-toolkit or --without-x-toolkit was given.
589 if test "${with_x_toolkit+set}" = set; then
590 withval
="$with_x_toolkit"
592 y | ye |
yes ) val
=athena
;;
594 l | lu | luc | luci | lucid
) val
=lucid
;;
595 a |
at | ath | athe | athen | athena
) val
=athena
;;
596 m | mo | mot | moti | motif
) val
=motif
;;
598 { echo "configure: error: \`--with-x-toolkit=$withval' is invalid\;
599 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
600 Currently, \`yes', \`athena' and \`lucid' are synonyms." 1>&2; exit 1; }
607 # Check whether --with-xpm or --without-xpm was given.
608 if test "${with_xpm+set}" = set; then
613 # Check whether --with-jpeg or --without-jpeg was given.
614 if test "${with_jpeg+set}" = set; then
619 # Check whether --with-tiff or --without-tiff was given.
620 if test "${with_tiff+set}" = set; then
625 # Check whether --with-gif or --without-gif was given.
626 if test "${with_gif+set}" = set; then
631 # Check whether --with-png or --without-png was given.
632 if test "${with_png+set}" = set; then
637 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
638 if test "${with_toolkit_scroll_bars+set}" = set; then
639 withval
="$with_toolkit_scroll_bars"
644 #### Make srcdir absolute, if it isn't already. It's important to
645 #### avoid running the path through pwd unnecessary, since pwd can
646 #### give you automounter prefixes, which can go away. We do all this
647 #### so Emacs can find its files when run uninstalled.
651 ## We may be able to use the $PWD environment variable to make this
652 ## absolute. But sometimes PWD is inaccurate.
653 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
655 if test "${PWD}" != "" && test "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ;
659 srcdir
="`(cd ${srcdir}; pwd)`"
662 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
665 #### Check if the source directory already has a configured system in it.
666 if test `pwd` != `(cd ${srcdir} && pwd)` \
667 && test -f "${srcdir}/src/config.h" ; then
668 echo "configure: warning: The directory tree \`${srcdir}' is being used
669 as a build directory right now; it has been configured in its own
670 right. To configure in another directory as well, you MUST
671 use GNU make. If you do not have GNU make, then you must
672 now do \`make distclean' in ${srcdir},
673 and then run $0 again." 1>&2
675 extrasub
='/^VPATH[ ]*=/c\
681 vpath %.in $(srcdir)\
682 vpath %.texi $(srcdir)'
685 #### Given the configuration name, set machfile and opsysfile to the
686 #### names of the m/*.h and s/*.h files we should use.
688 ### Canonicalize the configuration name.
691 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
692 if test -f $ac_dir/install-sh
; then
694 ac_install_sh
="$ac_aux_dir/install-sh -c"
696 elif test -f $ac_dir/install.sh
; then
698 ac_install_sh
="$ac_aux_dir/install.sh -c"
702 if test -z "$ac_aux_dir"; then
703 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
705 ac_config_guess
=$ac_aux_dir/config.guess
706 ac_config_sub
=$ac_aux_dir/config.sub
707 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
710 # Make sure we can run config.sub.
711 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
712 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
715 echo $ac_n "checking host system type""... $ac_c" 1>&6
716 echo "configure:717: checking host system type" >&5
719 case "$host_alias" in
723 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
724 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
726 *) host_alias
=$nonopt ;;
730 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
731 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
732 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
733 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
734 echo "$ac_t""$host" 1>&6
737 configuration
=$host_alias
740 ### If you add support for a new configuration, add code to this
741 ### switch statement to recognize your configuration name and select
742 ### the appropriate operating system and machine description files.
744 ### You would hope that you could choose an m/*.h file pretty much
745 ### based on the machine portion of the configuration name, and an s-
746 ### file based on the operating system portion. However, it turns out
747 ### that each m/*.h file is pretty manufacturer-specific - for
748 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
749 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
750 ### machines. So we basically have to have a special case for each
751 ### configuration name.
753 ### As far as handling version numbers on operating systems is
754 ### concerned, make sure things will fail in a fixable way. If
755 ### /etc/MACHINES doesn't say anything about version numbers, be
756 ### prepared to handle anything reasonably. If version numbers
757 ### matter, be sure /etc/MACHINES says something about it.
759 ### Eric Raymond says we should accept strings like "sysvr4" to mean
760 ### "System V Release 4"; he writes, "The old convention encouraged
761 ### confusion between `system' and `release' levels'."
763 machine
='' opsys
='' unported
=no
764 case "${canonical}" in
769 case "${canonical}" in
770 alpha
*-*-netbsd*) machine
=alpha
;;
771 i
[3456]86-*-netbsd*) machine
=intel386
;;
773 # This is somewhat bogus.
774 machine
=hp9000s300
;;
775 powerpc-apple-netbsd
*) machine
=macppc
;;
776 mips-
*-netbsd*) machine
=pmax
;;
777 ns32k-
*-netbsd*) machine
=ns32000
;;
778 sparc-
*-netbsd*) machine
=sparc
;;
779 vax-
*-netbsd*) machine
=vax
;;
786 case "${canonical}" in
787 alpha
*-*-openbsd*) machine
=alpha
;;
788 i386-
*-openbsd*) machine
=intel386
;;
789 m68k-
*-openbsd*) machine
=hp9000s300
;;
790 mipsel-
*-openbsd*) machine
=pmax
;;
791 ns32k-
*-openbsd*) machine
=ns32000
;;
792 sparc-
*-openbsd*) machine
=sparc
;;
793 vax-
*-openbsd*) machine
=vax
;;
798 arm-acorn-riscix1.1
* )
799 machine
=acorn opsys
=riscix1-1
801 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
802 ## This name is riscix12 instead of riscix1.2
803 ## to avoid a file name conflict on MSDOS.
804 machine
=acorn opsys
=riscix12
810 case "${canonical}" in
811 i
[345]86-*-bsdi*) machine
=intel386
;;
812 sparc-
*-bsdi*) machine
=sparc
;;
813 powerpc-
*-bsdi*) machine
=powerpc
;;
815 case "${canonical}" in
816 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
817 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
818 *-*-bsdi2* ) opsys
=bsdos2-1
;;
819 *-*-bsdi3* ) opsys
=bsdos3
;;
820 *-*-bsdi4* ) opsys
=bsdos4
;;
825 ## Strictly speaking, we need the version of the alliant operating
826 ## system to choose the right machine file, but currently the
827 ## configuration name doesn't tell us enough to choose the right
828 ## one; we need to give alliants their own operating system name to
829 ## do this right. When someone cares, they can help us.
831 machine
=alliant4 opsys
=bsd4-2
834 machine
=alliant-2800 opsys
=bsd4-3
837 ## Alpha (DEC) machines.
839 machine
=alpha opsys
=osf1
840 # This is needed to find X11R6.1 libraries for certain tests.
841 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
842 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
845 alpha
*-*-linux-gnu* )
846 machine
=alpha opsys
=gnu-linux
851 machine
=altos opsys
=usg5-2
856 machine
=amdahl opsys
=usg5-2-2
861 machine
=apollo opsys
=bsd4-3
864 ## AT&T 3b2, 3b5, 3b15, 3b20
866 machine
=att3b opsys
=usg5-2-2
869 ## AT&T 3b1 - The Mighty Unix PC!
871 machine
=7300 opsys
=usg5-2-2
876 machine
=ibmrs6000 opsys
=aix3-2
881 machine
=dpx2 opsys
=usg5-3
886 machine
=sps7 opsys
=usg5-2
889 ## CCI 5/32, 6/32 -- see "Tahoe".
892 ## I don't know what configuration name to use for this; config.sub
893 ## doesn't seem to know anything about it. Hey, Celerity users, get
895 celerity-celerity-bsd
* )
896 machine
=celerity opsys
=bsd4-2
900 ## What operating systems does this chip run that Emacs has been
904 ## We'll use the catch-all code at the bottom to guess the
909 *-convex-bsd* |
*-convex-convexos* )
910 machine
=convex opsys
=bsd4-3
911 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
912 NON_GNU_CPP
="cc -E -P"
916 i
[3456]86-cubix-sysv* )
917 machine
=intel386 opsys
=usg5-3
921 cydra
*-cydrome-sysv* )
922 machine
=cydra5 opsys
=usg5-3
925 ## Data General AViiON Machines
926 ## DG changed naming conventions with the release of 5.4.4.10, they
927 ## dropped the initial 5.4 but left the intervening R. Because of the
928 ## R this shouldn't conflict with older versions of the OS (which I
929 ## think were named like dgux4.*). In addition, DG new AViiONs series
930 ## uses either Motorola M88k or Intel Pentium CPUs.
931 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
932 machine
=aviion opsys
=dgux4
934 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
935 ## This name is dgux5-4-3 instead of dgux5-4r3
936 ## to avoid a file name conflict on MSDOS.
937 machine
=aviion opsys
=dgux5-4-3
939 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
940 machine
=aviion opsys
=dgux5-4r2
943 machine
=aviion opsys
=dgux
946 ## Data General AViiON Intel (x86) Machines
947 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
948 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
949 i
[345]86-dg-dguxR4* )
950 machine
=aviion-intel opsys
=dgux4
954 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
955 machine
=pmax opsys
=bsd4-2
957 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
958 machine
=pmax opsys
=bsd4-3
961 machine
=pmax opsys
=ultrix4-3
964 machine
=pmax opsys
=osf1
966 mips-dec-mach_bsd4.3
* )
967 machine
=pmax opsys
=mach-bsd4-3
970 ## Motorola Delta machines
971 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
972 machine
=delta opsys
=usg5-3
973 if test -z "`type gnucc | grep 'not found'`"
975 if test -s /etc
/167config
976 then CC
="gnucc -m68040"
977 else CC
="gnucc -m68881"
980 if test -z "`type gcc | grep 'not found'`"
986 m88k-motorola-sysv4
* )
987 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
988 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
989 # I hope there are not other 4.0 versions for this machine
990 # which really need usg5-4 instead.
991 machine
=delta88k opsys
=usg5-4-2
993 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
994 machine
=delta88k opsys
=usg5-3
999 machine
=dual opsys
=usg5-2
1001 m68
*-dual-uniplus* )
1002 machine
=dual opsys
=unipl5-2
1007 machine
=elxsi opsys
=usg5-2
1012 machine
=ns16000 opsys
=umax
1015 ## The GEC 93 - apparently, this port isn't really finished yet.
1017 ## Gould Power Node and NP1
1019 machine
=gould opsys
=bsd4-2
1022 machine
=gould opsys
=bsd4-3
1025 machine
=gould-np1 opsys
=bsd4-3
1028 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1029 ## as far as Emacs is concerned).
1031 # Build needs to be different on 7.0 and later releases
1032 case "`uname -r`" in
1033 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1034 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1036 NON_GNU_CPP
="/lib/cpp"
1038 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1040 machine
=nh3000 opsys
=cxux
1042 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1043 powerpc-harris-powerunix
)
1044 machine
=nh6000 opsys
=powerunix
1045 NON_GNU_CPP
="cc -Xo -E -P"
1047 ## SR2001/SR2201 running HI-UX/MPP
1048 hppa1.1
-hitachi-hiuxmpp* )
1049 machine
=sr2k opsys
=hiuxmpp
1052 xps
*-honeywell-sysv* )
1053 machine
=xps100 opsys
=usg5-2
1056 ## HP 9000 series 200 or 300
1058 machine
=hp9000s300 opsys
=bsd4-3
1060 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1062 case "`uname -r`" in
1063 ## Someone's system reports A.B8.05 for this.
1064 ## I wonder what other possibilities there are.
1065 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1066 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1067 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1068 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1069 *) machine
=hp9000s300 opsys
=hpux
;;
1073 ## HP 9000 series 700 and 800, running HP/UX
1075 machine
=hp800 opsys
=hpux
1078 machine
=hp800 opsys
=hpux8
1080 hppa
*-hp-hpux9shr* )
1081 machine
=hp800 opsys
=hpux9shr
1084 machine
=hp800 opsys
=hpux9
1086 hppa
*-hp-hpux1[0-9]* )
1087 machine
=hp800 opsys
=hpux10
1090 ## HP 9000 series 700 and 800, running HP/UX
1092 ## Cross-compilation? Nah!
1093 case "`uname -r`" in
1094 ## Someone's system reports A.B8.05 for this.
1095 ## I wonder what other possibilities there are.
1096 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1097 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1098 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1099 *) machine
=hp800 opsys
=hpux10
;;
1103 machine
=hp800 opsys
=nextstep
1108 machine
=orion opsys
=bsd4-2
1110 clipper-orion-bsd
* )
1111 machine
=orion105 opsys
=bsd4-2
1115 i
[3456]86-ibm-aix1.1
* )
1116 machine
=ibmps2-aix opsys
=usg5-2-2
1118 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1119 machine
=ibmps2-aix opsys
=usg5-3
1122 machine
=ibm370aix opsys
=usg5-3
1124 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
1125 machine
=ibmrs6000 opsys
=aix3-1
1127 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
1128 machine
=ibmrs6000 opsys
=aix3-2-5
1130 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
1131 machine
=ibmrs6000 opsys
=aix4-1
1133 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
1134 machine
=ibmrs6000 opsys
=aix4-2
1136 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
1137 machine
=ibmrs6000 opsys
=aix4
1139 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
1140 machine
=ibmrs6000 opsys
=aix4-1
1142 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
1143 machine
=ibmrs6000 opsys
=aix3-2
1146 machine
=ibmrt opsys
=bsd4-3
1149 machine
=ibmrt opsys
=bsd4-2
1152 machine
=ibmrt opsys
=bsd4-3
1155 machine
=ibmrt opsys
=bsd4-2
1158 machine
=ibmrt opsys
=bsd4-3
1161 machine
=ibmrt opsys
=bsd4-3
1164 machine
=ibmrt-aix opsys
=usg5-2-2
1167 ## Integrated Solutions `Optimum V'
1169 machine
=isi-ov opsys
=bsd4-2
1172 machine
=isi-ov opsys
=bsd4-3
1175 ## Intel 386 machines where we do care about the manufacturer
1176 i
[3456]86-intsys-sysv* )
1177 machine
=is386 opsys
=usg5-2-2
1181 i
[3456]86-prime-sysv* )
1182 machine
=i386 opsys
=usg5-3
1185 ## Sequent Symmetry running Dynix
1186 i
[3456]86-sequent-bsd* )
1187 machine
=symmetry opsys
=bsd4-3
1190 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
1191 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
1192 machine
=sequent-ptx opsys
=ptx4
1193 NON_GNU_CPP
=/lib
/cpp
1196 ## Sequent Symmetry running DYNIX/ptx
1197 ## Use the old cpp rather than the newer ANSI one.
1198 i
[3456]86-sequent-ptx* )
1199 machine
=sequent-ptx opsys
=ptx
1200 NON_GNU_CPP
="/lib/cpp"
1203 ## ncr machine running svr4.3.
1204 i
[3456]86-ncr-sysv4.3
)
1205 machine
=ncr386 opsys
=usg5-4-3
1208 ## Unspecified sysv on an ncr machine defaults to svr4.2.
1209 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
1210 i
[3456]86-ncr-sysv* )
1211 machine
=ncr386 opsys
=usg5-4-2
1214 ## Intel Paragon OSF/1
1216 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
1221 machine
=i860 opsys
=usg5-4
1222 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
1223 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
1226 ## Masscomp machines
1227 m68
*-masscomp-rtu* )
1228 machine
=masscomp opsys
=rtu
1231 ## Megatest machines
1232 m68
*-megatest-bsd* )
1233 machine
=mega68 opsys
=bsd4-2
1236 ## Workstations sold by MIPS
1237 ## This is not necessarily all workstations using the MIPS processor -
1238 ## Irises are produced by SGI, and DECstations by DEC.
1240 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
1241 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
1242 ## it gives for choosing between the alternatives seems to be "Use
1243 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
1244 ## the BSD world." I'll assume that these are instructions for
1245 ## handling two odd situations, and that every other situation
1246 ## should use mips.h and usg5-2-2, they being listed first.
1249 ## Fall through to the general code at the bottom to decide on the OS.
1251 mips-mips-riscos4
* )
1252 machine
=mips4 opsys
=bsd4-3
1253 NON_GNU_CC
="cc -systype bsd43"
1254 NON_GNU_CPP
="cc -systype bsd43 -E"
1256 mips-mips-riscos5
* )
1257 machine
=mips4 opsys
=riscos5
1258 NON_GNU_CC
="cc -systype bsd43"
1259 NON_GNU_CPP
="cc -systype bsd43 -E"
1262 machine
=mips opsys
=bsd4-3
1265 machine
=mips opsys
=usg5-2-2
1269 m68
*-next-* | m68k-
*-nextstep* )
1270 machine
=m68k opsys
=nextstep
1273 ## The complete machine from National Semiconductor
1275 machine
=ns32000 opsys
=usg5-2
1279 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
1280 machine
=tower32 opsys
=usg5-2-2
1282 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
1283 machine
=tower32v3 opsys
=usg5-3
1288 machine
=ews4800 opsys
=ux4800
1291 ## Nixdorf Targon 31
1292 m68
*-nixdorf-sysv* )
1293 machine
=targon31 opsys
=usg5-2-2
1298 machine
=nu opsys
=usg5-2
1303 machine
=plexus opsys
=usg5-2
1306 ## PowerPC reference platform
1307 powerpcle-
*-solaris2* )
1313 ## I don't really have any idea what sort of processor the Pyramid has,
1314 ## so I'm assuming it is its own architecture.
1315 pyramid-pyramid-bsd
* )
1316 machine
=pyramid opsys
=bsd4-2
1320 ns32k-sequent-bsd4.2
* )
1321 machine
=sequent opsys
=bsd4-2
1323 ns32k-sequent-bsd4.3
* )
1324 machine
=sequent opsys
=bsd4-3
1328 mips-siemens-sysv
* | mips-sni-sysv
*)
1329 machine
=mips-siemens opsys
=usg5-4
1330 NON_GNU_CC
=/usr
/ccs
/bin
/cc
1331 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1334 ## Silicon Graphics machines
1335 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
1337 machine
=irist opsys
=iris3-5
1339 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
1340 machine
=irist opsys
=iris3-6
1344 machine
=iris4d opsys
=irix3-3
1347 machine
=iris4d opsys
=irix4-0
1350 machine
=iris4d opsys
=irix6-5
1351 NON_GNU_CPP
=/lib
/cpp
1352 NON_GCC_TEST_OPTIONS
="-n32 -G0"
1355 machine
=iris4d opsys
=irix6-0
1356 NON_GNU_CPP
=/lib
/cpp
1357 NON_GCC_TEST_OPTIONS
=-32
1359 mips-sgi-irix5.
[01]* )
1360 machine
=iris4d opsys
=irix5-0
1362 mips-sgi-irix5
* | mips-sgi-irix
* )
1363 machine
=iris4d opsys
=irix5-2
1368 machine
=news opsys
=bsd4-2
1371 machine
=news opsys
=bsd4-3
1373 m68
*-sony-newsos3* | m68
*-sony-news3*)
1374 machine
=news opsys
=bsd4-3
1376 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
1377 machine
=news-risc opsys
=bsd4-3
1379 mips-sony-newsos6
* )
1380 machine
=news-r6 opsys
=newsos6
1383 machine
=news-risc opsys
=newsos5
1388 machine
=stride opsys
=usg5-2
1392 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
1393 machine
=sparc opsys
=gnu-linux
1396 *-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
1397 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
1398 | rs6000-
*-solaris2*)
1399 case "${canonical}" in
1400 m68
*-sunos1* ) machine
=sun1
;;
1401 m68
*-sunos2* ) machine
=sun2
;;
1402 m68
* ) machine
=sun3
;;
1403 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
1404 i
[3456]86-*-* ) machine
=intel386
;;
1405 powerpcle
* ) machine
=powerpcle
;;
1406 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
1407 sparc
* ) machine
=sparc
;;
1410 case "${canonical}" in
1411 ## The Sun386 didn't get past 4.0.
1412 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
1413 *-sunos4.0
* ) opsys
=sunos4-0
;;
1414 *-sunos4.1.
[3-9]*noshare
)
1415 ## This name is sunos413 instead of sunos4-1-3
1416 ## to avoid a file name conflict on MSDOS.
1418 NON_GNU_CPP
=/usr
/lib
/cpp
1419 NON_GCC_TEST_OPTIONS
=-Bstatic
1420 GCC_TEST_OPTIONS
=-static
1422 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
1424 NON_GNU_CPP
=/usr
/lib
/cpp
1426 *-sunos4* |
*-sunos )
1428 NON_GCC_TEST_OPTIONS
=-Bstatic
1429 GCC_TEST_OPTIONS
=-static
1431 *-sunos5.3
* |
*-solaris2.3
* )
1433 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1435 *-sunos5.4
* |
*-solaris2.4
* )
1437 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1440 *-sunos5.5
* |
*-solaris2.5
* )
1442 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1445 *-sunos5* |
*-solaris* )
1447 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1451 ## Watch out for a compiler that we know will not work.
1452 case "${canonical}" in
1453 *-solaris* |
*-sunos5* )
1454 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
1455 ## /usr/ucb/cc doesn't work;
1456 ## we should find some other compiler that does work.
1464 machine
=sparc opsys
=nextstep
1468 m68
*-tadpole-sysv* )
1469 machine
=tad68k opsys
=usg5-3
1473 tahoe-tahoe-bsd4.2
* )
1474 machine
=tahoe opsys
=bsd4-2
1476 tahoe-tahoe-bsd4.3
* )
1477 machine
=tahoe opsys
=bsd4-3
1480 ## Tandem Integrity S2
1482 machine
=tandem-s2 opsys
=usg5-3
1486 m88k-tektronix-sysv3
* )
1487 machine
=tekxd88 opsys
=usg5-3
1490 ## Tektronix 16000 box (6130?)
1491 ns16k-tektronix-bsd
* )
1492 machine
=ns16000 opsys
=bsd4-2
1495 ## src/m/tek4300.h hints that this is a m68k machine.
1496 m68
*-tektronix-bsd* )
1497 machine
=tek4300 opsys
=bsd4-3
1501 ## We seem to have lost the machine-description file titan.h!
1503 machine
=titan opsys
=usg5-3
1506 ## Ustation E30 (SS5E)
1507 m68
*-unisys-uniplus* )
1508 machine
=ustation opsystem
=unipl5-2
1514 case "${canonical}" in
1515 *-bsd4.1
* ) opsys
=bsd4-1
;;
1516 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
1517 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
1518 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
1519 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
1520 *-vms* ) opsys
=vms
;;
1526 ns16k-whitechapel-
* )
1528 ## We don't know what sort of OS runs on these; we'll let the
1529 ## operating system guessing code below try.
1534 machine
=wicat opsys
=usg5-2
1537 ## Intel 386 machines where we don't care about the manufacturer
1540 case "${canonical}" in
1541 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
1542 *-isc2.2
* ) opsys
=isc2-2
;;
1543 *-isc4.0
* ) opsys
=isc4-0
;;
1544 *-isc4.
* ) opsys
=isc4-1
1545 GCC_TEST_OPTIONS
=-posix
1546 NON_GCC_TEST_OPTIONS
=-Xp
1548 *-isc* ) opsys
=isc3-0
;;
1549 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
1550 *-esix* ) opsys
=esix
;;
1551 *-xenix* ) opsys
=xenix
;;
1552 *-linux-gnu* ) opsys
=gnu-linux
;;
1553 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
1554 *-sco3.2v5
* ) opsys
=sco5
1555 NON_GNU_CPP
=/lib
/cpp
1556 # Prevent -belf from being passed to $CPP.
1557 # /lib/cpp does not accept it.
1558 OVERRIDE_CPPFLAGS
=" "
1560 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
1561 *-386bsd* ) opsys
=386bsd
;;
1562 *-freebsd* ) opsys
=freebsd
;;
1563 *-nextstep* ) opsys
=nextstep
;;
1564 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
1568 ## m68k Linux-based GNU system
1570 machine
=m68k opsys
=gnu-linux
1573 ## Mips Linux-based GNU system
1575 machine
=mips opsys
=gnu-linux
1579 sparc-fujitsu-sysv4
* )
1580 machine
=sparc opsys
=uxpds
1581 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1586 f301-fujitsu-uxpv4.1
)
1587 machine
=f301 opsys
=uxpv
1595 ### If the code above didn't choose an operating system, just choose
1596 ### an operating system based on the configuration name. You really
1597 ### only want to use this when you have no idea what the right
1598 ### operating system is; if you know what operating systems a machine
1599 ### runs, it's cleaner to make it explicit in the case statement
1601 if test x
"${opsys}" = x
; then
1602 case "${canonical}" in
1603 *-gnu* ) opsys
=gnu
;;
1604 *-bsd4.
[01] ) opsys
=bsd4-1
;;
1605 *-bsd4.2
) opsys
=bsd4-2
;;
1606 *-bsd4.3
) opsys
=bsd4-3
;;
1607 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
1608 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
1609 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
1610 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
1611 *-sysv4.2uw
* ) opsys
=unixware
;;
1612 *-sysv4.1
* |
*-sysvr4.1
* )
1613 NON_GNU_CPP
=/usr
/lib
/cpp
1615 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
1616 if [ x
$NON_GNU_CPP = x
]; then
1617 if [ -f /usr
/ccs
/lib
/cpp
]; then
1618 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
1620 NON_GNU_CPP
=/lib
/cpp
1624 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
1631 if test "x$RANLIB" = x
; then
1636 if test $unported = yes; then
1637 { echo "configure: error: Emacs hasn't been ported to \`${canonical}' systems.
1638 Check \`etc/MACHINES' for recognized configuration names." 1>&2; exit 1; }
1641 machfile
="m/${machine}.h"
1642 opsysfile
="s/${opsys}.h"
1645 #### Choose a compiler.
1646 test -n "$CC" && cc_specified
=yes
1648 # Save the value of CFLAGS that the user specified.
1649 SPECIFIED_CFLAGS
="$CFLAGS"
1652 "yes" ) CC
="gcc" GCC
=yes ;;
1653 "no" ) : ${CC=cc} ;;
1654 * ) # Extract the first word of "gcc", so it can be a program name with args.
1655 set dummy gcc
; ac_word
=$2
1656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1657 echo "configure:1658: checking for $ac_word" >&5
1658 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1659 echo $ac_n "(cached) $ac_c" 1>&6
1661 if test -n "$CC"; then
1662 ac_cv_prog_CC
="$CC" # Let the user override the test.
1664 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1666 for ac_dir
in $ac_dummy; do
1667 test -z "$ac_dir" && ac_dir
=.
1668 if test -f $ac_dir/$ac_word; then
1677 if test -n "$CC"; then
1678 echo "$ac_t""$CC" 1>&6
1680 echo "$ac_t""no" 1>&6
1683 if test -z "$CC"; then
1684 # Extract the first word of "cc", so it can be a program name with args.
1685 set dummy cc
; ac_word
=$2
1686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1687 echo "configure:1688: checking for $ac_word" >&5
1688 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC
="$CC" # Let the user override the test.
1694 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1697 for ac_dir
in $ac_dummy; do
1698 test -z "$ac_dir" && ac_dir
=.
1699 if test -f $ac_dir/$ac_word; then
1700 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1701 ac_prog_rejected
=yes
1709 if test $ac_prog_rejected = yes; then
1710 # We found a bogon in the path, so make sure we never use it.
1711 set dummy
$ac_cv_prog_CC
1713 if test $# -gt 0; then
1714 # We chose a different compiler from the bogus one.
1715 # However, it has the same basename, so the bogon will be chosen
1716 # first if we set CC to just the basename; use the full file name.
1718 set dummy
"$ac_dir/$ac_word" "$@"
1726 if test -n "$CC"; then
1727 echo "$ac_t""$CC" 1>&6
1729 echo "$ac_t""no" 1>&6
1732 if test -z "$CC"; then
1733 case "`uname -s`" in
1735 # Extract the first word of "cl", so it can be a program name with args.
1736 set dummy cl
; ac_word
=$2
1737 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1738 echo "configure:1739: checking for $ac_word" >&5
1739 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1740 echo $ac_n "(cached) $ac_c" 1>&6
1742 if test -n "$CC"; then
1743 ac_cv_prog_CC
="$CC" # Let the user override the test.
1745 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1747 for ac_dir
in $ac_dummy; do
1748 test -z "$ac_dir" && ac_dir
=.
1749 if test -f $ac_dir/$ac_word; then
1758 if test -n "$CC"; then
1759 echo "$ac_t""$CC" 1>&6
1761 echo "$ac_t""no" 1>&6
1766 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1769 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1770 echo "configure:1771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1774 ac_cpp
='$CPP $CPPFLAGS'
1775 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1776 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1777 cross_compiling
=$ac_cv_prog_cc_cross
1779 cat > conftest.
$ac_ext << EOF
1781 #line 1782 "configure"
1782 #include "confdefs.h"
1786 if { (eval echo configure
:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1787 ac_cv_prog_cc_works
=yes
1788 # If we can't run a trivial program, we are probably using a cross compiler.
1789 if (.
/conftest
; exit) 2>/dev
/null
; then
1790 ac_cv_prog_cc_cross
=no
1792 ac_cv_prog_cc_cross
=yes
1795 echo "configure: failed program was:" >&5
1796 cat conftest.
$ac_ext >&5
1797 ac_cv_prog_cc_works
=no
1801 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1802 ac_cpp
='$CPP $CPPFLAGS'
1803 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1804 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1805 cross_compiling
=$ac_cv_prog_cc_cross
1807 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1808 if test $ac_cv_prog_cc_works = no
; then
1809 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1811 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1812 echo "configure:1813: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1813 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1814 cross_compiling
=$ac_cv_prog_cc_cross
1816 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1817 echo "configure:1818: checking whether we are using GNU C" >&5
1818 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1821 cat > conftest.c
<<EOF
1826 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1833 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1835 if test $ac_cv_prog_gcc = yes; then
1841 ac_test_CFLAGS
="${CFLAGS+set}"
1842 ac_save_CFLAGS
="$CFLAGS"
1844 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1845 echo "configure:1846: checking whether ${CC-cc} accepts -g" >&5
1846 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1849 echo 'void f(){}' > conftest.c
1850 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1859 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1860 if test "$ac_test_CFLAGS" = set; then
1861 CFLAGS
="$ac_save_CFLAGS"
1862 elif test $ac_cv_prog_cc_g = yes; then
1863 if test "$GCC" = yes; then
1869 if test "$GCC" = yes; then
1878 # On Suns, sometimes $CPP names a directory.
1879 if test -n "$CPP" && test -d "$CPP"; then
1883 #### Some systems specify a CPP to use unless we are using GCC.
1884 #### Now that we know whether we are using GCC, we can decide whether
1885 #### to use that one.
1886 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
1891 #### Some systems specify a CC to use unless we are using GCC.
1892 #### Now that we know whether we are using GCC, we can decide whether
1893 #### to use that one.
1894 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
1895 test x
$cc_specified != xyes
1900 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
1902 CC
="$CC $GCC_TEST_OPTIONS"
1905 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
1907 CC
="$CC $NON_GCC_TEST_OPTIONS"
1910 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
1912 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
1915 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
1917 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
1920 #### Some other nice autoconf tests. If you add a test here which
1921 #### should make an entry in src/config.h, don't forget to add an
1922 #### #undef clause to src/config.h.in for autoconf to modify.
1924 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1925 echo "configure:1926: checking whether ln -s works" >&5
1926 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1927 echo $ac_n "(cached) $ac_c" 1>&6
1930 if ln -s X conftestdata
2>/dev
/null
1933 ac_cv_prog_LN_S
="ln -s"
1938 LN_S
="$ac_cv_prog_LN_S"
1939 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1940 echo "$ac_t""yes" 1>&6
1942 echo "$ac_t""no" 1>&6
1945 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1946 echo "configure:1947: checking how to run the C preprocessor" >&5
1947 # On Suns, sometimes $CPP names a directory.
1948 if test -n "$CPP" && test -d "$CPP"; then
1951 if test -z "$CPP"; then
1952 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 # This must be in double quotes, not single quotes, because CPP may get
1956 # substituted into the Makefile and "${CC-cc}" will confuse make.
1958 # On the NeXT, cc -E runs the code through the compiler's parser,
1959 # not just through cpp.
1960 cat > conftest.
$ac_ext <<EOF
1961 #line 1962 "configure"
1962 #include "confdefs.h"
1966 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1967 { (eval echo configure
:1968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1968 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1969 if test -z "$ac_err"; then
1973 echo "configure: failed program was:" >&5
1974 cat conftest.
$ac_ext >&5
1976 CPP
="${CC-cc} -E -traditional-cpp"
1977 cat > conftest.
$ac_ext <<EOF
1978 #line 1979 "configure"
1979 #include "confdefs.h"
1983 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1984 { (eval echo configure
:1985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1985 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1986 if test -z "$ac_err"; then
1990 echo "configure: failed program was:" >&5
1991 cat conftest.
$ac_ext >&5
1993 CPP
="${CC-cc} -nologo -E"
1994 cat > conftest.
$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
2000 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2001 { (eval echo configure
:2002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2002 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2003 if test -z "$ac_err"; then
2007 echo "configure: failed program was:" >&5
2008 cat conftest.
$ac_ext >&5
2017 ac_cv_prog_CPP
="$CPP"
2019 CPP
="$ac_cv_prog_CPP"
2021 ac_cv_prog_CPP
="$CPP"
2023 echo "$ac_t""$CPP" 1>&6
2025 # Find a good install program. We prefer a C program (faster),
2026 # so one script is as good as another. But avoid the broken or
2027 # incompatible versions:
2028 # SysV /etc/install, /usr/sbin/install
2029 # SunOS /usr/etc/install
2030 # IRIX /sbin/install
2032 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2033 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2034 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2035 # ./install, which can be erroneously created by make from ./install.sh.
2036 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2037 echo "configure:2038: checking for a BSD compatible install" >&5
2038 if test -z "$INSTALL"; then
2039 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2042 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
2043 for ac_dir
in $PATH; do
2044 # Account for people who put trailing slashes in PATH elements.
2046 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2048 # OSF1 and SCO ODT 3.0 have their own names for install.
2049 # Don't use installbsd from OSF since it installs stuff as root
2051 for ac_prog
in ginstall scoinst
install; do
2052 if test -f $ac_dir/$ac_prog; then
2053 if test $ac_prog = install &&
2054 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2055 # AIX install. It has an incompatible calling convention.
2058 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2069 if test "${ac_cv_path_install+set}" = set; then
2070 INSTALL
="$ac_cv_path_install"
2072 # As a last resort, use the slow shell script. We don't cache a
2073 # path for INSTALL within a source directory, because that will
2074 # break other packages using the cache if that directory is
2075 # removed, or if the path is relative.
2076 INSTALL
="$ac_install_sh"
2079 echo "$ac_t""$INSTALL" 1>&6
2081 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2082 # It thinks the first close brace ends the variable substitution.
2083 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2085 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
2087 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2089 for ac_prog
in 'bison -y' byacc
2091 # Extract the first word of "$ac_prog", so it can be a program name with args.
2092 set dummy
$ac_prog; ac_word
=$2
2093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2094 echo "configure:2095: checking for $ac_word" >&5
2095 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2096 echo $ac_n "(cached) $ac_c" 1>&6
2098 if test -n "$YACC"; then
2099 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2101 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2103 for ac_dir
in $ac_dummy; do
2104 test -z "$ac_dir" && ac_dir
=.
2105 if test -f $ac_dir/$ac_word; then
2106 ac_cv_prog_YACC
="$ac_prog"
2113 YACC
="$ac_cv_prog_YACC"
2114 if test -n "$YACC"; then
2115 echo "$ac_t""$YACC" 1>&6
2117 echo "$ac_t""no" 1>&6
2120 test -n "$YACC" && break
2122 test -n "$YACC" || YACC
="yacc"
2125 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2126 echo "configure:2127: checking for AIX" >&5
2127 cat > conftest.
$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2136 egrep "yes" >/dev
/null
2>&1; then
2138 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
2139 #define _ALL_SOURCE 1
2144 echo "$ac_t""no" 1>&6
2150 # Sound support for GNU/Linux and the free BSDs.
2151 for ac_hdr
in machine
/soundcard.h sys
/soundcard.h
2153 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2154 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2155 echo "configure:2156: checking for $ac_hdr" >&5
2156 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2159 cat > conftest.
$ac_ext <<EOF
2160 #line 2161 "configure"
2161 #include "confdefs.h"
2164 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2165 { (eval echo configure
:2166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2166 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2167 if test -z "$ac_err"; then
2169 eval "ac_cv_header_$ac_safe=yes"
2172 echo "configure: failed program was:" >&5
2173 cat conftest.
$ac_ext >&5
2175 eval "ac_cv_header_$ac_safe=no"
2179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2180 echo "$ac_t""yes" 1>&6
2181 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2182 cat >> confdefs.h
<<EOF
2183 #define $ac_tr_hdr 1
2187 echo "$ac_t""no" 1>&6
2192 for ac_hdr
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
2193 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
2194 termcap.h stdio_ext.h
2196 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2197 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2198 echo "configure:2199: checking for $ac_hdr" >&5
2199 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2202 cat > conftest.
$ac_ext <<EOF
2203 #line 2204 "configure"
2204 #include "confdefs.h"
2207 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2208 { (eval echo configure
:2209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2209 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2210 if test -z "$ac_err"; then
2212 eval "ac_cv_header_$ac_safe=yes"
2215 echo "configure: failed program was:" >&5
2216 cat conftest.
$ac_ext >&5
2218 eval "ac_cv_header_$ac_safe=no"
2222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2223 echo "$ac_t""yes" 1>&6
2224 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2225 cat >> confdefs.h
<<EOF
2226 #define $ac_tr_hdr 1
2230 echo "$ac_t""no" 1>&6
2234 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2235 echo "configure:2236: checking for ANSI C header files" >&5
2236 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2237 echo $ac_n "(cached) $ac_c" 1>&6
2239 cat > conftest.
$ac_ext <<EOF
2240 #line 2241 "configure"
2241 #include "confdefs.h"
2247 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2248 { (eval echo configure
:2249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2249 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2250 if test -z "$ac_err"; then
2252 ac_cv_header_stdc
=yes
2255 echo "configure: failed program was:" >&5
2256 cat conftest.
$ac_ext >&5
2258 ac_cv_header_stdc
=no
2262 if test $ac_cv_header_stdc = yes; then
2263 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2264 cat > conftest.
$ac_ext <<EOF
2265 #line 2266 "configure"
2266 #include "confdefs.h"
2269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2270 egrep "memchr" >/dev
/null
2>&1; then
2274 ac_cv_header_stdc
=no
2280 if test $ac_cv_header_stdc = yes; then
2281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2282 cat > conftest.
$ac_ext <<EOF
2283 #line 2284 "configure"
2284 #include "confdefs.h"
2287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2288 egrep "free" >/dev
/null
2>&1; then
2292 ac_cv_header_stdc
=no
2298 if test $ac_cv_header_stdc = yes; then
2299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2300 if test "$cross_compiling" = yes; then
2303 cat > conftest.
$ac_ext <<EOF
2304 #line 2305 "configure"
2305 #include "confdefs.h"
2307 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2308 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2309 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2310 int main () { int i; for (i = 0; i < 256; i++)
2311 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2315 if { (eval echo configure
:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2319 echo "configure: failed program was:" >&5
2320 cat conftest.
$ac_ext >&5
2322 ac_cv_header_stdc
=no
2330 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2331 if test $ac_cv_header_stdc = yes; then
2332 cat >> confdefs.h
<<\EOF
2333 #define STDC_HEADERS 1
2338 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2339 echo "configure:2340: checking whether time.h and sys/time.h may both be included" >&5
2340 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2343 cat > conftest.
$ac_ext <<EOF
2344 #line 2345 "configure"
2345 #include "confdefs.h"
2346 #include <sys/types.h>
2347 #include <sys/time.h>
2353 if { (eval echo configure
:2354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2355 ac_cv_header_time
=yes
2357 echo "configure: failed program was:" >&5
2358 cat conftest.
$ac_ext >&5
2360 ac_cv_header_time
=no
2365 echo "$ac_t""$ac_cv_header_time" 1>&6
2366 if test $ac_cv_header_time = yes; then
2367 cat >> confdefs.h
<<\EOF
2368 #define TIME_WITH_SYS_TIME 1
2373 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2374 echo "configure:2375: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2375 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2376 echo $ac_n "(cached) $ac_c" 1>&6
2378 cat > conftest.
$ac_ext <<EOF
2379 #line 2380 "configure"
2380 #include "confdefs.h"
2381 #include <sys/types.h>
2383 /* NetBSD declares sys_siglist in unistd.h. */
2384 #ifdef HAVE_UNISTD_H
2388 char *msg = *(sys_siglist + 1);
2391 if { (eval echo configure
:2392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2393 ac_cv_decl_sys_siglist
=yes
2395 echo "configure: failed program was:" >&5
2396 cat conftest.
$ac_ext >&5
2398 ac_cv_decl_sys_siglist
=no
2403 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2404 if test $ac_cv_decl_sys_siglist = yes; then
2405 cat >> confdefs.h
<<\EOF
2406 #define SYS_SIGLIST_DECLARED 1
2412 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2413 echo "configure:2414: checking for struct utimbuf" >&5
2414 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6
2417 cat > conftest.
$ac_ext <<EOF
2418 #line 2419 "configure"
2419 #include "confdefs.h"
2420 #ifdef TIME_WITH_SYS_TIME
2421 #include <sys/time.h>
2424 #ifdef HAVE_SYS_TIME_H
2425 #include <sys/time.h>
2434 static struct utimbuf x; x.actime = x.modtime;
2437 if { (eval echo configure
:2438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2439 emacs_cv_struct_utimbuf
=yes
2441 echo "configure: failed program was:" >&5
2442 cat conftest.
$ac_ext >&5
2444 emacs_cv_struct_utimbuf
=no
2449 echo "$ac_t""$emacs_cv_struct_utimbuf" 1>&6
2450 if test $emacs_cv_struct_utimbuf = yes; then
2451 cat >> confdefs.h
<<\EOF
2452 #define HAVE_STRUCT_UTIMBUF 1
2457 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2458 echo "configure:2459: checking return type of signal handlers" >&5
2459 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2462 cat > conftest.
$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2465 #include <sys/types.h>
2471 extern "C" void (*signal (int, void (*)(int)))(int);
2473 void (*signal ()) ();
2480 if { (eval echo configure
:2481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2482 ac_cv_type_signal
=void
2484 echo "configure: failed program was:" >&5
2485 cat conftest.
$ac_ext >&5
2487 ac_cv_type_signal
=int
2492 echo "$ac_t""$ac_cv_type_signal" 1>&6
2493 cat >> confdefs.h
<<EOF
2494 #define RETSIGTYPE $ac_cv_type_signal
2499 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2500 echo "configure:2501: checking for struct timeval" >&5
2501 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
2502 echo $ac_n "(cached) $ac_c" 1>&6
2504 cat > conftest.
$ac_ext <<EOF
2505 #line 2506 "configure"
2506 #include "confdefs.h"
2507 #ifdef TIME_WITH_SYS_TIME
2508 #include <sys/time.h>
2511 #ifdef HAVE_SYS_TIME_H
2512 #include <sys/time.h>
2518 static struct timeval x; x.tv_sec = x.tv_usec;
2521 if { (eval echo configure
:2522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2523 emacs_cv_struct_timeval
=yes
2525 echo "configure: failed program was:" >&5
2526 cat conftest.
$ac_ext >&5
2528 emacs_cv_struct_timeval
=no
2533 echo "$ac_t""$emacs_cv_struct_timeval" 1>&6
2534 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
2535 if test $emacs_cv_struct_timeval = yes; then
2536 cat >> confdefs.h
<<\EOF
2537 #define HAVE_TIMEVAL 1
2542 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2543 echo "configure:2544: checking whether struct tm is in sys/time.h or time.h" >&5
2544 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2547 cat > conftest.
$ac_ext <<EOF
2548 #line 2549 "configure"
2549 #include "confdefs.h"
2550 #include <sys/types.h>
2553 struct tm *tp; tp->tm_sec;
2556 if { (eval echo configure
:2557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2558 ac_cv_struct_tm
=time.h
2560 echo "configure: failed program was:" >&5
2561 cat conftest.
$ac_ext >&5
2563 ac_cv_struct_tm
=sys
/time.h
2568 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2569 if test $ac_cv_struct_tm = sys
/time.h
; then
2570 cat >> confdefs.h
<<\EOF
2571 #define TM_IN_SYS_TIME 1
2576 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2577 echo "configure:2578: checking for tm_zone in struct tm" >&5
2578 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2581 cat > conftest.
$ac_ext <<EOF
2582 #line 2583 "configure"
2583 #include "confdefs.h"
2584 #include <sys/types.h>
2585 #include <$ac_cv_struct_tm>
2587 struct tm tm; tm.tm_zone;
2590 if { (eval echo configure
:2591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2592 ac_cv_struct_tm_zone
=yes
2594 echo "configure: failed program was:" >&5
2595 cat conftest.
$ac_ext >&5
2597 ac_cv_struct_tm_zone
=no
2602 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
2603 if test "$ac_cv_struct_tm_zone" = yes; then
2604 cat >> confdefs.h
<<\EOF
2605 #define HAVE_TM_ZONE 1
2609 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2610 echo "configure:2611: checking for tzname" >&5
2611 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2614 cat > conftest.
$ac_ext <<EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2618 #ifndef tzname /* For SGI. */
2619 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2625 if { (eval echo configure
:2626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2627 ac_cv_var_tzname
=yes
2629 echo "configure: failed program was:" >&5
2630 cat conftest.
$ac_ext >&5
2637 echo "$ac_t""$ac_cv_var_tzname" 1>&6
2638 if test $ac_cv_var_tzname = yes; then
2639 cat >> confdefs.h
<<\EOF
2640 #define HAVE_TZNAME 1
2646 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
2647 echo "configure:2648: checking for tm_gmtoff in struct tm" >&5
2648 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6
2651 cat > conftest.
$ac_ext <<EOF
2652 #line 2653 "configure"
2653 #include "confdefs.h"
2656 struct tm t; t.tm_gmtoff = 0
2659 if { (eval echo configure
:2660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2661 emacs_cv_tm_gmtoff
=yes
2663 echo "configure: failed program was:" >&5
2664 cat conftest.
$ac_ext >&5
2666 emacs_cv_tm_gmtoff
=no
2671 echo "$ac_t""$emacs_cv_tm_gmtoff" 1>&6
2672 if test $emacs_cv_tm_gmtoff = yes; then
2673 cat >> confdefs.h
<<\EOF
2674 #define HAVE_TM_GMTOFF 1
2679 echo $ac_n "checking for working const""... $ac_c" 1>&6
2680 echo "configure:2681: checking for working const" >&5
2681 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2684 cat > conftest.
$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2690 /* Ultrix mips cc rejects this. */
2691 typedef int charset[2]; const charset x;
2692 /* SunOS 4.1.1 cc rejects this. */
2693 char const *const *ccp;
2695 /* NEC SVR4.0.2 mips cc rejects this. */
2696 struct point {int x, y;};
2697 static struct point const zero = {0,0};
2698 /* AIX XL C 1.02.0.0 rejects this.
2699 It does not let you subtract one const X* pointer from another in an arm
2700 of an if-expression whose if-part is not a constant expression */
2701 const char *g = "string";
2702 ccp = &g + (g ? g-g : 0);
2703 /* HPUX 7.0 cc rejects these. */
2706 ccp = (char const *const *) p;
2707 { /* SCO 3.2v4 cc rejects this. */
2709 char const *s = 0 ? (char *) 0 : (char const *) 0;
2713 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2715 const int *foo = &x[0];
2718 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2719 typedef const int *iptr;
2723 { /* AIX XL C 1.02.0.0 rejects this saying
2724 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2725 struct s { int j; const int *ap[3]; };
2726 struct s *b; b->j = 5;
2728 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2734 if { (eval echo configure
:2735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2738 echo "configure: failed program was:" >&5
2739 cat conftest.
$ac_ext >&5
2746 echo "$ac_t""$ac_cv_c_const" 1>&6
2747 if test $ac_cv_c_const = no
; then
2748 cat >> confdefs.h
<<\EOF
2755 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2756 echo "configure:2757: checking whether ${MAKE-make} sets \${MAKE}" >&5
2757 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
2758 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2761 cat > conftestmake
<<\EOF
2763 @
echo 'ac_maketemp="${MAKE}"'
2765 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2766 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2767 if test -n "$ac_maketemp"; then
2768 eval ac_cv_prog_make_
${ac_make}_set
=yes
2770 eval ac_cv_prog_make_
${ac_make}_set
=no
2774 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2775 echo "$ac_t""yes" 1>&6
2778 echo "$ac_t""no" 1>&6
2779 SET_MAKE
="MAKE=${MAKE-make}"
2783 echo $ac_n "checking for long file names""... $ac_c" 1>&6
2784 echo "configure:2785: checking for long file names" >&5
2785 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2788 ac_cv_sys_long_file_names
=yes
2789 # Test for long file names in all the places we know might matter:
2790 # . the current directory, where building will happen
2791 # $prefix/lib where we will be installing things
2792 # $exec_prefix/lib likewise
2793 # eval it to expand exec_prefix.
2794 # $TMPDIR if set, where it might want to write temporary files
2795 # if $TMPDIR is not set:
2796 # /tmp where it might want to write temporary files
2799 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2800 ac_tmpdirs
="$TMPDIR"
2802 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
2804 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2805 test -d $ac_dir ||
continue
2806 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
2807 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
2808 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
2809 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
2810 if test ! -f $ac_dir/conftest9012345 ||
test "$val" != 1; then
2811 ac_cv_sys_long_file_names
=no
2812 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
2815 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
2819 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
2820 if test $ac_cv_sys_long_file_names = yes; then
2821 cat >> confdefs.h
<<\EOF
2822 #define HAVE_LONG_FILE_NAMES 1
2828 #### Choose a window system.
2830 # If we find X, set shell vars x_includes and x_libraries to the
2831 # paths, otherwise set no_x=yes.
2832 # Uses ac_ vars as temps to allow command line to override cache and checks.
2833 # --without-x overrides everything else, but does not touch the cache.
2834 echo $ac_n "checking for X""... $ac_c" 1>&6
2835 echo "configure:2836: checking for X" >&5
2837 # Check whether --with-x or --without-x was given.
2838 if test "${with_x+set}" = set; then
2843 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2844 if test "x$with_x" = xno
; then
2845 # The user explicitly disabled X.
2848 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
2849 # Both variables are already set.
2852 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2855 # One or both of the vars are not set, and there is no cached value.
2856 ac_x_includes
=NO ac_x_libraries
=NO
2858 if mkdir conftestdir
; then
2860 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2861 cat > Imakefile
<<'EOF'
2863 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2865 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
2866 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2867 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2868 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2869 for ac_extension
in a so sl
; do
2870 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
2871 test -f $ac_im_libdir/libX11.
$ac_extension; then
2872 ac_im_usrlibdir
=$ac_im_libdir; break
2875 # Screen out bogus values from the imake configuration. They are
2876 # bogus both because they are the default anyway, and because
2877 # using them would break gcc on systems where it needs fixed includes.
2878 case "$ac_im_incroot" in
2880 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
2882 case "$ac_im_usrlibdir" in
2884 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
2891 if test "$ac_x_includes" = NO
; then
2892 # Guess where to find include files, by looking for this one X11 .h file.
2893 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
2895 # First, try using that file with no special directory specified.
2896 cat > conftest.
$ac_ext <<EOF
2897 #line 2898 "configure"
2898 #include "confdefs.h"
2899 #include <$x_direct_test_include>
2901 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2902 { (eval echo configure
:2903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2903 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2904 if test -z "$ac_err"; then
2906 # We can compile using X headers with no special include directory.
2910 echo "configure: failed program was:" >&5
2911 cat conftest.
$ac_ext >&5
2913 # Look for the header file in a standard set of common directories.
2914 # Check X11 before X11Rn because it is often a symlink to the current release.
2917 /usr
/X11R
6/include \
2918 /usr
/X11R
5/include \
2919 /usr
/X11R
4/include \
2922 /usr
/include
/X11R6 \
2923 /usr
/include
/X11R5 \
2924 /usr
/include
/X11R4 \
2926 /usr
/local
/X11
/include \
2927 /usr
/local
/X11R
6/include \
2928 /usr
/local
/X11R
5/include \
2929 /usr
/local
/X11R
4/include \
2931 /usr
/local
/include
/X11 \
2932 /usr
/local
/include
/X11R6 \
2933 /usr
/local
/include
/X11R5 \
2934 /usr
/local
/include
/X11R4 \
2938 /usr
/XFree86
/include
/X11 \
2941 /usr
/local
/include \
2942 /usr
/unsupported
/include \
2943 /usr
/athena
/include \
2944 /usr
/local
/x11r
5/include \
2945 /usr
/lpp
/Xamples
/include \
2947 /usr
/openwin
/include \
2948 /usr
/openwin
/share
/include \
2951 if test -r "$ac_dir/$x_direct_test_include"; then
2952 ac_x_includes
=$ac_dir
2958 fi # $ac_x_includes = NO
2960 if test "$ac_x_libraries" = NO
; then
2961 # Check for the libraries.
2963 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
2964 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
2966 # See if we find them without any special options.
2967 # Don't add to $LIBS permanently.
2968 ac_save_LIBS
="$LIBS"
2969 LIBS
="-l$x_direct_test_library $LIBS"
2970 cat > conftest.
$ac_ext <<EOF
2971 #line 2972 "configure"
2972 #include "confdefs.h"
2975 ${x_direct_test_function}()
2978 if { (eval echo configure
:2979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2980 LIBS
="$ac_save_LIBS"
2981 # We can link X programs with no special library path.
2984 echo "configure: failed program was:" >&5
2985 cat conftest.
$ac_ext >&5
2987 LIBS
="$ac_save_LIBS"
2988 # First see if replacing the include by lib works.
2989 # Check X11 before X11Rn because it is often a symlink to the current release.
2990 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
3001 /usr
/local
/X11
/lib \
3002 /usr
/local
/X11R
6/lib \
3003 /usr
/local
/X11R
5/lib \
3004 /usr
/local
/X11R
4/lib \
3006 /usr
/local
/lib
/X11 \
3007 /usr
/local
/lib
/X11R6 \
3008 /usr
/local
/lib
/X11R5 \
3009 /usr
/local
/lib
/X11R4 \
3013 /usr
/XFree86
/lib
/X11 \
3017 /usr
/unsupported
/lib \
3019 /usr
/local
/x11r
5/lib \
3020 /usr
/lpp
/Xamples
/lib \
3024 /usr
/openwin
/share
/lib \
3027 for ac_extension
in a so sl
; do
3028 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
3029 ac_x_libraries
=$ac_dir
3036 fi # $ac_x_libraries = NO
3038 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
3039 # Didn't find X anywhere. Cache the known absence of X.
3040 ac_cv_have_x
="have_x=no"
3042 # Record where we found X for the cache.
3043 ac_cv_have_x
="have_x=yes \
3044 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3048 eval "$ac_cv_have_x"
3051 if test "$have_x" != yes; then
3052 echo "$ac_t""$have_x" 1>&6
3055 # If each of the values was on the command line, it overrides each guess.
3056 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3057 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3058 # Update the cache value to reflect the command line values.
3059 ac_cv_have_x
="have_x=yes \
3060 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3061 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3064 if test "$no_x" = yes; then
3070 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
3071 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
3072 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
3073 x_default_search_path
=""
3074 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
3075 x_search_path
="${x_library}/X11/%L/%T/%N%C%S:\
3076 ${x_library}/X11/%L/%T/%N%C%S:${x_libary}/X11/%l/%T/%N%C%S:\
3077 ${x_library}/X11/%T/%N%C%S:${x_library}/X11/%L/%T/%N%S:\
3078 ${x_library}/X11/%l/%T/%N%S:${x_library}/X11/%T/%N%S"
3079 if test x
"${x_default_search_path}" = x
; then
3080 x_default_search_path
=${x_search_path}
3082 x_default_search_path
="${x_search_path}:${x_default_search_path}"
3086 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
3087 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
3090 if test x
"${x_includes}" = x
; then
3091 bitmapdir
=/usr
/include
/X11
/bitmaps
3093 # accumulate include directories that have X11 bitmap subdirectories
3095 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
3096 if test -d "${bmd}/X11/bitmaps"; then
3097 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
3098 elif test -d "${bmd}/bitmaps"; then
3099 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
3102 if test ${bmd_acc} != "dummyval"; then
3103 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
3107 case "${window_system}" in
3111 case "${with_x_toolkit}" in
3112 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
3113 motif
) USE_X_TOOLKIT
=MOTIF
;;
3114 no
) USE_X_TOOLKIT
=none
;;
3115 * ) USE_X_TOOLKIT
=maybe
;;
3125 ### If we're using X11, we should use the X menu package.
3128 yes ) HAVE_MENUS
=yes ;;
3131 if test "${opsys}" = "hpux9"; then
3132 case "${x_libraries}" in
3134 opsysfile
="s/hpux9-x11r4.h"
3139 if test "${opsys}" = "hpux9shr"; then
3140 case "${x_libraries}" in
3142 opsysfile
="s/hpux9shxr4.h"
3147 #### Extract some information from the operating system and machine files.
3149 echo "checking the machine- and system-dependent files to find out
3150 - which libraries the lib-src programs will want, and
3151 - whether the GNU malloc routines are usable" 1>&6
3152 echo "configure:3153: checking the machine- and system-dependent files to find out
3153 - which libraries the lib-src programs will want, and
3154 - whether the GNU malloc routines are usable" >&5
3156 ### First figure out CFLAGS (which we use for running the compiler here)
3157 ### and REAL_CFLAGS (which we use for real compilation).
3158 ### The two are the same except on a few systems, where they are made
3159 ### different to work around various lossages. For example,
3160 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3161 ### as implying static linking.
3163 ### If the CFLAGS env var is specified, we use that value
3164 ### instead of the default.
3166 ### It's not important that this name contain the PID; you can't run
3167 ### two configures in the same directory and have anything work
3169 tempcname
="conftest.c"
3172 #include "'${srcdir}'/src/'${opsysfile}'"
3173 #include "'${srcdir}'/src/'${machfile}'"
3174 #ifndef LIBS_MACHINE
3175 #define LIBS_MACHINE
3180 #ifndef C_SWITCH_SYSTEM
3181 #define C_SWITCH_SYSTEM
3183 #ifndef C_SWITCH_MACHINE
3184 #define C_SWITCH_MACHINE
3186 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3187 configure___ c_switch_system=C_SWITCH_SYSTEM
3188 configure___ c_switch_machine=C_SWITCH_MACHINE
3191 #define LIB_X11_LIB -lX11
3194 #ifndef LIBX11_MACHINE
3195 #define LIBX11_MACHINE
3198 #ifndef LIBX11_SYSTEM
3199 #define LIBX11_SYSTEM
3201 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3204 configure___ unexec=UNEXEC
3206 configure___ unexec=unexec.o
3209 #ifdef SYSTEM_MALLOC
3210 configure___ system_malloc=yes
3212 configure___ system_malloc=no
3215 #ifndef C_DEBUG_SWITCH
3216 #define C_DEBUG_SWITCH -g
3219 #ifndef C_OPTIMIZE_SWITCH
3220 #define C_OPTIMIZE_SWITCH -O
3223 #ifndef LD_SWITCH_MACHINE
3224 #define LD_SWITCH_MACHINE
3227 #ifndef LD_SWITCH_SYSTEM
3228 #define LD_SWITCH_SYSTEM
3231 #ifndef LD_SWITCH_X_SITE_AUX
3232 #define LD_SWITCH_X_SITE_AUX
3235 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3236 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3238 #ifdef THIS_IS_CONFIGURE
3240 /* Get the CFLAGS for tests in configure. */
3242 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3244 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3247 #else /* not THIS_IS_CONFIGURE */
3249 /* Get the CFLAGS for real compilation. */
3251 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3253 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3256 #endif /* not THIS_IS_CONFIGURE */
3259 # The value of CPP is a quoted variable reference, so we need to do this
3260 # to get its actual value...
3261 CPP
=`eval "echo $CPP"`
3262 eval `${CPP} -Isrc ${tempcname} \
3263 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3264 if test "x$SPECIFIED_CFLAGS" = x
; then
3265 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3266 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3268 REAL_CFLAGS
="$CFLAGS"
3272 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3274 ### Compute the unexec source name from the object name.
3275 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
3277 # Do the opsystem or machine files prohibit the use of the GNU malloc?
3278 # Assume not, until told otherwise.
3281 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3282 echo "configure:3283: checking for malloc_get_state" >&5
3283 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3284 echo $ac_n "(cached) $ac_c" 1>&6
3286 cat > conftest.
$ac_ext <<EOF
3287 #line 3288 "configure"
3288 #include "confdefs.h"
3289 /* System header to define __stub macros and hopefully few prototypes,
3290 which can conflict with char malloc_get_state(); below. */
3292 /* Override any gcc2 internal prototype to avoid an error. */
3293 /* We use char because int might match the return type of a gcc2
3294 builtin and then its argument prototype would still apply. */
3295 char malloc_get_state();
3300 /* The GNU C library defines this for functions which it implements
3301 to always fail with ENOSYS. Some functions are actually named
3302 something starting with __ and the normal name is an alias. */
3303 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
3306 f = malloc_get_state;
3311 if { (eval echo configure
:3312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3313 eval "ac_cv_func_malloc_get_state=yes"
3315 echo "configure: failed program was:" >&5
3316 cat conftest.
$ac_ext >&5
3318 eval "ac_cv_func_malloc_get_state=no"
3323 if eval "test \"`echo '$ac_cv_func_'malloc_get_state`\" = yes"; then
3324 echo "$ac_t""yes" 1>&6
3327 echo "$ac_t""no" 1>&6
3331 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3332 echo "configure:3333: checking for malloc_set_state" >&5
3333 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3334 echo $ac_n "(cached) $ac_c" 1>&6
3336 cat > conftest.
$ac_ext <<EOF
3337 #line 3338 "configure"
3338 #include "confdefs.h"
3339 /* System header to define __stub macros and hopefully few prototypes,
3340 which can conflict with char malloc_set_state(); below. */
3342 /* Override any gcc2 internal prototype to avoid an error. */
3343 /* We use char because int might match the return type of a gcc2
3344 builtin and then its argument prototype would still apply. */
3345 char malloc_set_state();
3350 /* The GNU C library defines this for functions which it implements
3351 to always fail with ENOSYS. Some functions are actually named
3352 something starting with __ and the normal name is an alias. */
3353 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3356 f = malloc_set_state;
3361 if { (eval echo configure
:3362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3363 eval "ac_cv_func_malloc_set_state=yes"
3365 echo "configure: failed program was:" >&5
3366 cat conftest.
$ac_ext >&5
3368 eval "ac_cv_func_malloc_set_state=no"
3373 if eval "test \"`echo '$ac_cv_func_'malloc_set_state`\" = yes"; then
3374 echo "$ac_t""yes" 1>&6
3377 echo "$ac_t""no" 1>&6
3381 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3382 echo "configure:3383: checking whether __after_morecore_hook exists" >&5
3383 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6
3386 cat > conftest.
$ac_ext <<EOF
3387 #line 3388 "configure"
3388 #include "confdefs.h"
3389 extern void (* __after_morecore_hook)();
3391 __after_morecore_hook = 0
3394 if { (eval echo configure
:3395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3396 emacs_cv_var___after_morecore_hook
=yes
3398 echo "configure: failed program was:" >&5
3399 cat conftest.
$ac_ext >&5
3401 emacs_cv_var___after_morecore_hook
=no
3406 echo "$ac_t""$emacs_cv_var___after_morecore_hook" 1>&6
3407 if test $emacs_cv_var___after_morecore_hook = no
; then
3410 if test "${system_malloc}" = "yes"; then
3413 (The GNU allocators don't work with this system configuration.)"
3415 if test "$doug_lea_malloc" = "yes" ; then
3416 if test "$GNU_MALLOC" = yes ; then
3418 (Using Doug Lea's new malloc from the GNU C Library.)"
3420 cat >> confdefs.h
<<\EOF
3421 #define DOUG_LEA_MALLOC 1
3426 if test x
"${REL_ALLOC}" = x
; then
3427 REL_ALLOC
=${GNU_MALLOC}
3433 #### Add the libraries to LIBS and check for some functions.
3435 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3436 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3438 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
3441 LIBS
="$libsrc_libs $LIBS"
3443 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3444 echo "configure:3445: checking for dnet_ntoa in -ldnet" >&5
3445 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3449 ac_save_LIBS
="$LIBS"
3451 cat > conftest.
$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3454 /* Override any gcc2 internal prototype to avoid an error. */
3455 /* We use char because int might match the return type of a gcc2
3456 builtin and then its argument prototype would still apply. */
3463 if { (eval echo configure
:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3465 eval "ac_cv_lib_$ac_lib_var=yes"
3467 echo "configure: failed program was:" >&5
3468 cat conftest.
$ac_ext >&5
3470 eval "ac_cv_lib_$ac_lib_var=no"
3473 LIBS
="$ac_save_LIBS"
3476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3477 echo "$ac_t""yes" 1>&6
3478 ac_tr_lib
=HAVE_LIB
`echo dnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3479 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3480 cat >> confdefs.h
<<EOF
3481 #define $ac_tr_lib 1
3487 echo "$ac_t""no" 1>&6
3491 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
3492 echo "configure:3493: checking for main in -lXbsd" >&5
3493 ac_lib_var
=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
3494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3497 ac_save_LIBS
="$LIBS"
3499 cat > conftest.
$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3507 if { (eval echo configure
:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3509 eval "ac_cv_lib_$ac_lib_var=yes"
3511 echo "configure: failed program was:" >&5
3512 cat conftest.
$ac_ext >&5
3514 eval "ac_cv_lib_$ac_lib_var=no"
3517 LIBS
="$ac_save_LIBS"
3520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3521 echo "$ac_t""yes" 1>&6
3522 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
3524 echo "$ac_t""no" 1>&6
3528 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3529 echo "configure:3530: checking for cma_open in -lpthreads" >&5
3530 ac_lib_var
=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3531 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3534 ac_save_LIBS
="$LIBS"
3535 LIBS
="-lpthreads $LIBS"
3536 cat > conftest.
$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 /* Override any gcc2 internal prototype to avoid an error. */
3540 /* We use char because int might match the return type of a gcc2
3541 builtin and then its argument prototype would still apply. */
3548 if { (eval echo configure
:3549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3550 eval "ac_cv_lib_$ac_lib_var=yes"
3552 echo "configure: failed program was:" >&5
3553 cat conftest.
$ac_ext >&5
3555 eval "ac_cv_lib_$ac_lib_var=no"
3558 LIBS
="$ac_save_LIBS"
3561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3562 echo "$ac_t""yes" 1>&6
3563 ac_tr_lib
=HAVE_LIB
`echo pthreads | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3564 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3565 cat >> confdefs.h
<<EOF
3566 #define $ac_tr_lib 1
3569 LIBS
="-lpthreads $LIBS"
3572 echo "$ac_t""no" 1>&6
3576 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
3577 echo "configure:3578: checking for XFree86 in /usr/X386" >&5
3578 if test -d /usr
/X386
/include
; then
3580 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
3584 echo "$ac_t""$HAVE_XFREE386" 1>&6
3586 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
3587 # for the tests that follow. We set it back to REAL_CFLAGS later on.
3589 if test "${HAVE_X11}" = "yes"; then
3590 DEFS
="$C_SWITCH_X_SITE $DEFS"
3591 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
3593 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
3595 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
3596 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
3597 # but it's more convenient here to set LD_RUN_PATH
3598 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
3599 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
3600 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
3604 if test "${opsys}" = "gnu-linux"; then
3605 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
3606 echo "configure:3607: checking whether X on GNU/Linux needs -b to link" >&5
3607 cat > conftest.
$ac_ext <<EOF
3608 #line 3609 "configure"
3609 #include "confdefs.h"
3612 XOpenDisplay ("foo");
3615 if { (eval echo configure
:3616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3617 xlinux_first_failure
=no
3619 echo "configure: failed program was:" >&5
3620 cat conftest.
$ac_ext >&5
3622 xlinux_first_failure
=yes
3625 if test "${xlinux_first_failure}" = "yes"; then
3626 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
3627 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
3628 OLD_CPPFLAGS
="$CPPFLAGS"
3630 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
3631 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
3632 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
3633 LIBS
="$LIBS -b i486-linuxaout"
3634 cat > conftest.
$ac_ext <<EOF
3635 #line 3636 "configure"
3636 #include "confdefs.h"
3639 XOpenDisplay ("foo");
3642 if { (eval echo configure
:3643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3644 xlinux_second_failure
=no
3646 echo "configure: failed program was:" >&5
3647 cat conftest.
$ac_ext >&5
3649 xlinux_second_failure
=yes
3652 if test "${xlinux_second_failure}" = "yes"; then
3653 # If we get the same failure with -b, there is no use adding -b.
3654 # So take it out. This plays safe.
3655 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
3656 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
3657 CPPFLAGS
="$OLD_CPPFLAGS"
3659 echo "$ac_t""no" 1>&6
3661 echo "$ac_t""yes" 1>&6
3664 echo "$ac_t""no" 1>&6
3668 for ac_func
in XrmSetDatabase XScreenResourceString \
3669 XScreenNumberOfScreen XSetWMProtocols
3671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3672 echo "configure:3673: checking for $ac_func" >&5
3673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3676 cat > conftest.
$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3679 /* System header to define __stub macros and hopefully few prototypes,
3680 which can conflict with char $ac_func(); below. */
3682 /* Override any gcc2 internal prototype to avoid an error. */
3683 /* We use char because int might match the return type of a gcc2
3684 builtin and then its argument prototype would still apply. */
3690 /* The GNU C library defines this for functions which it implements
3691 to always fail with ENOSYS. Some functions are actually named
3692 something starting with __ and the normal name is an alias. */
3693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3701 if { (eval echo configure
:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3703 eval "ac_cv_func_$ac_func=yes"
3705 echo "configure: failed program was:" >&5
3706 cat conftest.
$ac_ext >&5
3708 eval "ac_cv_func_$ac_func=no"
3713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3714 echo "$ac_t""yes" 1>&6
3715 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3716 cat >> confdefs.h
<<EOF
3717 #define $ac_tr_func 1
3721 echo "$ac_t""no" 1>&6
3727 if test "${window_system}" = "x11"; then
3728 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
3729 echo "configure:3730: checking X11 version 6" >&5
3730 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6
3733 cat > conftest.
$ac_ext <<EOF
3734 #line 3735 "configure"
3735 #include "confdefs.h"
3736 #include <X11/Xlib.h>
3738 #if XlibSpecificationRelease < 6
3744 if { (eval echo configure
:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3746 emacs_cv_x11_version_6
=yes
3748 echo "configure: failed program was:" >&5
3749 cat conftest.
$ac_ext >&5
3751 emacs_cv_x11_version_6
=no
3756 if test $emacs_cv_x11_version_6 = yes; then
3757 echo "$ac_t""6 or newer" 1>&6
3758 cat >> confdefs.h
<<\EOF
3759 #define HAVE_X11R6 1
3763 echo "$ac_t""before 6" 1>&6
3767 if test "${window_system}" = "x11"; then
3768 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
3769 echo "configure:3770: checking X11 version 5" >&5
3770 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
3771 echo $ac_n "(cached) $ac_c" 1>&6
3773 cat > conftest.
$ac_ext <<EOF
3774 #line 3775 "configure"
3775 #include "confdefs.h"
3776 #include <X11/Xlib.h>
3778 #if XlibSpecificationRelease < 5
3784 if { (eval echo configure
:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3786 emacs_cv_x11_version_5
=yes
3788 echo "configure: failed program was:" >&5
3789 cat conftest.
$ac_ext >&5
3791 emacs_cv_x11_version_5
=no
3796 if test $emacs_cv_x11_version_5 = yes; then
3797 echo "$ac_t""5 or newer" 1>&6
3799 cat >> confdefs.h
<<\EOF
3800 #define HAVE_X11R5 1
3805 echo "$ac_t""before 5" 1>&6
3809 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
3810 if test x
"${HAVE_X11R5}" = xyes
; then
3811 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
3812 echo "configure:3813: checking X11 version 5 with Xaw" >&5
3813 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6
3816 cat > conftest.
$ac_ext <<EOF
3817 #line 3818 "configure"
3818 #include "confdefs.h"
3820 #include <X11/Intrinsic.h>
3821 #include <X11/Xaw/Simple.h>
3826 if { (eval echo configure
:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3828 emacs_cv_x11_version_5_with_xaw
=yes
3830 echo "configure: failed program was:" >&5
3831 cat conftest.
$ac_ext >&5
3833 emacs_cv_x11_version_5_with_xaw
=no
3838 if test $emacs_cv_x11_version_5_with_xaw = yes; then
3839 echo "$ac_t""5 or newer, with Xaw; use toolkit by default" 1>&6
3842 echo "$ac_t""before 5 or no Xaw; do not use toolkit by default" 1>&6
3850 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
3852 if test "${USE_X_TOOLKIT}" != "none"; then
3853 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
3854 echo "configure:3855: checking X11 toolkit version" >&5
3855 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3858 cat > conftest.
$ac_ext <<EOF
3859 #line 3860 "configure"
3860 #include "confdefs.h"
3861 #include <X11/Intrinsic.h>
3863 #if XtSpecificationRelease < 6
3869 if { (eval echo configure
:3870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3871 emacs_cv_x11_toolkit_version_6
=yes
3873 echo "configure: failed program was:" >&5
3874 cat conftest.
$ac_ext >&5
3876 emacs_cv_x11_toolkit_version_6
=no
3881 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
3882 if test $emacs_cv_x11_toolkit_version_6 = yes; then
3883 echo "$ac_t""6 or newer" 1>&6
3884 cat >> confdefs.h
<<\EOF
3885 #define HAVE_X11XTR6 1
3889 echo "$ac_t""before 6" 1>&6
3893 if test x
$HAVE_X11XTR6 = xyes
; then
3894 LIBS
="-lXt -lSM -lICE $LIBS"
3898 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
3899 echo "configure:3900: checking for XmuConvertStandardSelection in -lXmu" >&5
3900 ac_lib_var
=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
3901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3904 ac_save_LIBS
="$LIBS"
3906 cat > conftest.
$ac_ext <<EOF
3907 #line 3908 "configure"
3908 #include "confdefs.h"
3909 /* Override any gcc2 internal prototype to avoid an error. */
3910 /* We use char because int might match the return type of a gcc2
3911 builtin and then its argument prototype would still apply. */
3912 char XmuConvertStandardSelection();
3915 XmuConvertStandardSelection()
3918 if { (eval echo configure
:3919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3920 eval "ac_cv_lib_$ac_lib_var=yes"
3922 echo "configure: failed program was:" >&5
3923 cat conftest.
$ac_ext >&5
3925 eval "ac_cv_lib_$ac_lib_var=no"
3928 LIBS
="$ac_save_LIBS"
3931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3932 echo "$ac_t""yes" 1>&6
3933 ac_tr_lib
=HAVE_LIB
`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3934 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3935 cat >> confdefs.h
<<EOF
3936 #define $ac_tr_lib 1
3942 echo "$ac_t""no" 1>&6
3948 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
3949 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
3950 echo "configure:3951: checking for Motif version 2.1" >&5
3951 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
3952 echo $ac_n "(cached) $ac_c" 1>&6
3954 cat > conftest.
$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3959 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
3962 Motif version prior to 2.1.
3966 if { (eval echo configure
:3967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3968 emacs_cv_motif_version_2_1
=yes
3970 echo "configure: failed program was:" >&5
3971 cat conftest.
$ac_ext >&5
3973 emacs_cv_motif_version_2_1
=no
3978 echo "$ac_t""$emacs_cv_motif_version_2_1" 1>&6
3979 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
3980 if test $emacs_cv_motif_version_2_1 = yes; then
3981 cat >> confdefs.h
<<\EOF
3982 #define HAVE_MOTIF_2_1 1
3985 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
3986 echo "configure:3987: checking for XpCreateContext in -lXp" >&5
3987 ac_lib_var
=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
3988 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3989 echo $ac_n "(cached) $ac_c" 1>&6
3991 ac_save_LIBS
="$LIBS"
3993 cat > conftest.
$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
3996 /* Override any gcc2 internal prototype to avoid an error. */
3997 /* We use char because int might match the return type of a gcc2
3998 builtin and then its argument prototype would still apply. */
3999 char XpCreateContext();
4005 if { (eval echo configure
:4006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4007 eval "ac_cv_lib_$ac_lib_var=yes"
4009 echo "configure: failed program was:" >&5
4010 cat conftest.
$ac_ext >&5
4012 eval "ac_cv_lib_$ac_lib_var=no"
4015 LIBS
="$ac_save_LIBS"
4018 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4019 echo "$ac_t""yes" 1>&6
4020 ac_tr_lib
=HAVE_LIB
`echo Xp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4021 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4022 cat >> confdefs.h
<<EOF
4023 #define $ac_tr_lib 1
4029 echo "$ac_t""no" 1>&6
4035 ### Is -lXaw3d available?
4037 if test "${HAVE_X11}" = "yes"; then
4038 if test "${USE_X_TOOLKIT}" != "none"; then
4039 old_c_flags
="${CFLAGS}"
4040 CFLAGS
="${LD_SWITCH_X_SITE}"
4041 ac_safe
=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4042 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4043 echo "configure:4044: checking for X11/Xaw3d/Scrollbar.h" >&5
4044 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4047 cat > conftest.
$ac_ext <<EOF
4048 #line 4049 "configure"
4049 #include "confdefs.h"
4050 #include <X11/Xaw3d/Scrollbar.h>
4052 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4053 { (eval echo configure
:4054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4054 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4055 if test -z "$ac_err"; then
4057 eval "ac_cv_header_$ac_safe=yes"
4060 echo "configure: failed program was:" >&5
4061 cat conftest.
$ac_ext >&5
4063 eval "ac_cv_header_$ac_safe=no"
4067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4068 echo "$ac_t""yes" 1>&6
4069 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
4070 echo "configure:4071: checking for XawScrollbarSetThumb in -lXaw3d" >&5
4071 ac_lib_var
=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6
4075 ac_save_LIBS
="$LIBS"
4076 LIBS
="-lXaw3d -lX11 $LIBS"
4077 cat > conftest.
$ac_ext <<EOF
4078 #line 4079 "configure"
4079 #include "confdefs.h"
4080 /* Override any gcc2 internal prototype to avoid an error. */
4081 /* We use char because int might match the return type of a gcc2
4082 builtin and then its argument prototype would still apply. */
4083 char XawScrollbarSetThumb();
4086 XawScrollbarSetThumb()
4089 if { (eval echo configure
:4090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4091 eval "ac_cv_lib_$ac_lib_var=yes"
4093 echo "configure: failed program was:" >&5
4094 cat conftest.
$ac_ext >&5
4096 eval "ac_cv_lib_$ac_lib_var=no"
4099 LIBS
="$ac_save_LIBS"
4102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4103 echo "$ac_t""yes" 1>&6
4106 echo "$ac_t""no" 1>&6
4110 echo "$ac_t""no" 1>&6
4113 CFLAGS
="${old_c_flags}"
4115 if test "${HAVE_XAW3D}" = "yes"; then
4116 cat >> confdefs.h
<<\EOF
4117 #define HAVE_XAW3D 1
4125 USE_TOOLKIT_SCROLL_BARS
=no
4126 if test "${with_toolkit_scroll_bars}" != "no"; then
4127 if test "${USE_X_TOOLKIT}" != "none"; then
4128 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4129 cat >> confdefs.h
<<\EOF
4130 #define USE_TOOLKIT_SCROLL_BARS 1
4134 USE_TOOLKIT_SCROLL_BARS
=yes
4135 elif test "${HAVE_XAW3D}" = "yes"; then
4136 cat >> confdefs.h
<<\EOF
4137 #define USE_TOOLKIT_SCROLL_BARS 1
4140 USE_TOOLKIT_SCROLL_BARS
=yes
4145 ### Use -lXpm if available, unless `--with-xpm=no'.
4147 if test "${HAVE_X11}" = "yes"; then
4148 if test "${with_xpm}" != "no"; then
4149 old_c_flags
="${CFLAGS}"
4150 CFLAGS
="${LD_SWITCH_X_SITE}"
4151 ac_safe
=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4152 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4153 echo "configure:4154: checking for X11/xpm.h" >&5
4154 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4157 cat > conftest.
$ac_ext <<EOF
4158 #line 4159 "configure"
4159 #include "confdefs.h"
4160 #include <X11/xpm.h>
4162 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4163 { (eval echo configure
:4164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4164 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4165 if test -z "$ac_err"; then
4167 eval "ac_cv_header_$ac_safe=yes"
4170 echo "configure: failed program was:" >&5
4171 cat conftest.
$ac_ext >&5
4173 eval "ac_cv_header_$ac_safe=no"
4177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4178 echo "$ac_t""yes" 1>&6
4179 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
4180 echo "configure:4181: checking for XpmReadFileToPixmap in -lXpm" >&5
4181 ac_lib_var
=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
4182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4185 ac_save_LIBS
="$LIBS"
4186 LIBS
="-lXpm -lX11 $LIBS"
4187 cat > conftest.
$ac_ext <<EOF
4188 #line 4189 "configure"
4189 #include "confdefs.h"
4190 /* Override any gcc2 internal prototype to avoid an error. */
4191 /* We use char because int might match the return type of a gcc2
4192 builtin and then its argument prototype would still apply. */
4193 char XpmReadFileToPixmap();
4196 XpmReadFileToPixmap()
4199 if { (eval echo configure
:4200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4201 eval "ac_cv_lib_$ac_lib_var=yes"
4203 echo "configure: failed program was:" >&5
4204 cat conftest.
$ac_ext >&5
4206 eval "ac_cv_lib_$ac_lib_var=no"
4209 LIBS
="$ac_save_LIBS"
4212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4213 echo "$ac_t""yes" 1>&6
4216 echo "$ac_t""no" 1>&6
4220 echo "$ac_t""no" 1>&6
4223 CFLAGS
="${old_c_flags}"
4226 if test "${HAVE_XPM}" = "yes"; then
4227 cat >> confdefs.h
<<\EOF
4234 ### Use -ljpeg if available, unless `--with-jpeg=no'.
4236 if test "${HAVE_X11}" = "yes"; then
4237 if test "${with_jpeg}" != "no"; then
4238 old_c_flags
="${CFLAGS}"
4239 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4240 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4241 echo "configure:4242: checking for jpeg_destroy_compress in -ljpeg" >&5
4242 ac_lib_var
=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4243 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4244 echo $ac_n "(cached) $ac_c" 1>&6
4246 ac_save_LIBS
="$LIBS"
4247 LIBS
="-ljpeg -lX11 $LIBS"
4248 cat > conftest.
$ac_ext <<EOF
4249 #line 4250 "configure"
4250 #include "confdefs.h"
4251 /* Override any gcc2 internal prototype to avoid an error. */
4252 /* We use char because int might match the return type of a gcc2
4253 builtin and then its argument prototype would still apply. */
4254 char jpeg_destroy_compress();
4257 jpeg_destroy_compress()
4260 if { (eval echo configure
:4261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4262 eval "ac_cv_lib_$ac_lib_var=yes"
4264 echo "configure: failed program was:" >&5
4265 cat conftest.
$ac_ext >&5
4267 eval "ac_cv_lib_$ac_lib_var=no"
4270 LIBS
="$ac_save_LIBS"
4273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4274 echo "$ac_t""yes" 1>&6
4277 echo "$ac_t""no" 1>&6
4280 CFLAGS
="${old_c_flags}"
4283 if test "${HAVE_JPEG}" = "yes"; then
4284 cat >> confdefs.h
<<\EOF
4291 ### Use -lpng if available, unless `--with-png=no'.
4293 if test "${HAVE_X11}" = "yes"; then
4294 if test "${with_png}" != "no"; then
4295 old_c_flags
="${CFLAGS}"
4296 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4297 ac_safe
=`echo "png.h" | sed 'y%./+-%__p_%'`
4298 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4299 echo "configure:4300: checking for png.h" >&5
4300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4301 echo $ac_n "(cached) $ac_c" 1>&6
4303 cat > conftest.
$ac_ext <<EOF
4304 #line 4305 "configure"
4305 #include "confdefs.h"
4308 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4309 { (eval echo configure
:4310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4310 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4311 if test -z "$ac_err"; then
4313 eval "ac_cv_header_$ac_safe=yes"
4316 echo "configure: failed program was:" >&5
4317 cat conftest.
$ac_ext >&5
4319 eval "ac_cv_header_$ac_safe=no"
4323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4324 echo "$ac_t""yes" 1>&6
4325 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6
4326 echo "configure:4327: checking for png_set_expand in -lpng" >&5
4327 ac_lib_var
=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'`
4328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6
4331 ac_save_LIBS
="$LIBS"
4332 LIBS
="-lpng -lX11 -lz -lm $LIBS"
4333 cat > conftest.
$ac_ext <<EOF
4334 #line 4335 "configure"
4335 #include "confdefs.h"
4336 /* Override any gcc2 internal prototype to avoid an error. */
4337 /* We use char because int might match the return type of a gcc2
4338 builtin and then its argument prototype would still apply. */
4339 char png_set_expand();
4345 if { (eval echo configure
:4346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4347 eval "ac_cv_lib_$ac_lib_var=yes"
4349 echo "configure: failed program was:" >&5
4350 cat conftest.
$ac_ext >&5
4352 eval "ac_cv_lib_$ac_lib_var=no"
4355 LIBS
="$ac_save_LIBS"
4358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4359 echo "$ac_t""yes" 1>&6
4362 echo "$ac_t""no" 1>&6
4366 echo "$ac_t""no" 1>&6
4369 CFLAGS
="${old_c_flags}"
4372 if test "${HAVE_PNG}" = "yes"; then
4373 cat >> confdefs.h
<<\EOF
4380 ### Use -ltiff if available, unless `--with-tiff=no'.
4382 if test "${HAVE_X11}" = "yes"; then
4383 if test "${with_tiff}" != "no"; then
4384 old_c_flags
="${CFLAGS}"
4385 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4386 ac_safe
=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4387 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4388 echo "configure:4389: checking for tiffio.h" >&5
4389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4390 echo $ac_n "(cached) $ac_c" 1>&6
4392 cat > conftest.
$ac_ext <<EOF
4393 #line 4394 "configure"
4394 #include "confdefs.h"
4397 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4398 { (eval echo configure
:4399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4399 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4400 if test -z "$ac_err"; then
4402 eval "ac_cv_header_$ac_safe=yes"
4405 echo "configure: failed program was:" >&5
4406 cat conftest.
$ac_ext >&5
4408 eval "ac_cv_header_$ac_safe=no"
4412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4413 echo "$ac_t""yes" 1>&6
4414 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4415 echo "configure:4416: checking for TIFFGetVersion in -ltiff" >&5
4416 ac_lib_var
=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4418 echo $ac_n "(cached) $ac_c" 1>&6
4420 ac_save_LIBS
="$LIBS"
4421 LIBS
="-ltiff -lX11 -lm $LIBS"
4422 cat > conftest.
$ac_ext <<EOF
4423 #line 4424 "configure"
4424 #include "confdefs.h"
4425 /* Override any gcc2 internal prototype to avoid an error. */
4426 /* We use char because int might match the return type of a gcc2
4427 builtin and then its argument prototype would still apply. */
4428 char TIFFGetVersion();
4434 if { (eval echo configure
:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4436 eval "ac_cv_lib_$ac_lib_var=yes"
4438 echo "configure: failed program was:" >&5
4439 cat conftest.
$ac_ext >&5
4441 eval "ac_cv_lib_$ac_lib_var=no"
4444 LIBS
="$ac_save_LIBS"
4447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4448 echo "$ac_t""yes" 1>&6
4451 echo "$ac_t""no" 1>&6
4455 echo "$ac_t""no" 1>&6
4458 CFLAGS
="${old_c_flags}"
4461 if test "${HAVE_TIFF}" = "yes"; then
4462 cat >> confdefs.h
<<\EOF
4469 ### Use -lgif if available, unless `--with-gif=no'.
4471 if test "${HAVE_X11}" = "yes"; then
4472 if test "${with_gif}" != "no"; then
4473 old_c_flags
="${CFLAGS}"
4474 CFLAGS
="${LD_SWITCH_X_SITE} ${CFLAGS}"
4475 ac_safe
=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4476 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4477 echo "configure:4478: checking for gif_lib.h" >&5
4478 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4479 echo $ac_n "(cached) $ac_c" 1>&6
4481 cat > conftest.
$ac_ext <<EOF
4482 #line 4483 "configure"
4483 #include "confdefs.h"
4484 #include <gif_lib.h>
4486 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4487 { (eval echo configure
:4488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4488 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4489 if test -z "$ac_err"; then
4491 eval "ac_cv_header_$ac_safe=yes"
4494 echo "configure: failed program was:" >&5
4495 cat conftest.
$ac_ext >&5
4497 eval "ac_cv_header_$ac_safe=no"
4501 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4502 echo "$ac_t""yes" 1>&6
4503 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4504 echo "configure:4505: checking for DGifOpenFileName in -lungif" >&5
4505 ac_lib_var
=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4506 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4507 echo $ac_n "(cached) $ac_c" 1>&6
4509 ac_save_LIBS
="$LIBS"
4510 LIBS
="-lungif -lX11 $LIBS"
4511 cat > conftest.
$ac_ext <<EOF
4512 #line 4513 "configure"
4513 #include "confdefs.h"
4514 /* Override any gcc2 internal prototype to avoid an error. */
4515 /* We use char because int might match the return type of a gcc2
4516 builtin and then its argument prototype would still apply. */
4517 char DGifOpenFileName();
4523 if { (eval echo configure
:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4525 eval "ac_cv_lib_$ac_lib_var=yes"
4527 echo "configure: failed program was:" >&5
4528 cat conftest.
$ac_ext >&5
4530 eval "ac_cv_lib_$ac_lib_var=no"
4533 LIBS
="$ac_save_LIBS"
4536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4537 echo "$ac_t""yes" 1>&6
4540 echo "$ac_t""no" 1>&6
4544 echo "$ac_t""no" 1>&6
4547 CFLAGS
="${old_c_flags}"
4550 if test "${HAVE_GIF}" = "yes"; then
4551 cat >> confdefs.h
<<\EOF
4558 # If netdb.h doesn't declare h_errno, we must declare it by hand.
4559 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
4560 echo "configure:4561: checking whether netdb declares h_errno" >&5
4561 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4564 cat > conftest.
$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4572 if { (eval echo configure
:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4574 emacs_cv_netdb_declares_h_errno
=yes
4576 echo "configure: failed program was:" >&5
4577 cat conftest.
$ac_ext >&5
4579 emacs_cv_netdb_declares_h_errno
=no
4584 echo "$ac_t""$emacs_cv_netdb_declares_h_errno" 1>&6
4585 if test $emacs_cv_netdb_declares_h_errno = yes; then
4586 cat >> confdefs.h
<<\EOF
4587 #define HAVE_H_ERRNO 1
4592 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4593 # for constant arguments. Useless!
4594 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4595 echo "configure:4596: checking for working alloca.h" >&5
4596 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4597 echo $ac_n "(cached) $ac_c" 1>&6
4599 cat > conftest.
$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4604 char *p = alloca(2 * sizeof(int));
4607 if { (eval echo configure
:4608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4609 ac_cv_header_alloca_h
=yes
4611 echo "configure: failed program was:" >&5
4612 cat conftest.
$ac_ext >&5
4614 ac_cv_header_alloca_h
=no
4619 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4620 if test $ac_cv_header_alloca_h = yes; then
4621 cat >> confdefs.h
<<\EOF
4622 #define HAVE_ALLOCA_H 1
4627 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4628 echo "configure:4629: checking for alloca" >&5
4629 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4630 echo $ac_n "(cached) $ac_c" 1>&6
4632 cat > conftest.
$ac_ext <<EOF
4633 #line 4634 "configure"
4634 #include "confdefs.h"
4637 # define alloca __builtin_alloca
4640 # include <malloc.h>
4641 # define alloca _alloca
4644 # include <alloca.h>
4649 # ifndef alloca /* predefined by HP cc +Olibcalls */
4658 char *p = (char *) alloca(1);
4661 if { (eval echo configure
:4662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4663 ac_cv_func_alloca_works
=yes
4665 echo "configure: failed program was:" >&5
4666 cat conftest.
$ac_ext >&5
4668 ac_cv_func_alloca_works
=no
4673 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4674 if test $ac_cv_func_alloca_works = yes; then
4675 cat >> confdefs.h
<<\EOF
4676 #define HAVE_ALLOCA 1
4681 if test $ac_cv_func_alloca_works = no
; then
4682 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4683 # that cause trouble. Some versions do not even contain alloca or
4684 # contain a buggy version. If you still want to use their alloca,
4685 # use ar to extract alloca.o from them instead of compiling alloca.c.
4686 ALLOCA
=alloca.
${ac_objext}
4687 cat >> confdefs.h
<<\EOF
4692 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4693 echo "configure:4694: checking whether alloca needs Cray hooks" >&5
4694 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4695 echo $ac_n "(cached) $ac_c" 1>&6
4697 cat > conftest.
$ac_ext <<EOF
4698 #line 4699 "configure"
4699 #include "confdefs.h"
4700 #if defined(CRAY) && ! defined(CRAY2)
4707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4708 egrep "webecray" >/dev
/null
2>&1; then
4719 echo "$ac_t""$ac_cv_os_cray" 1>&6
4720 if test $ac_cv_os_cray = yes; then
4721 for ac_func
in _getb67 GETB67 getb67
; do
4722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4723 echo "configure:4724: checking for $ac_func" >&5
4724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4725 echo $ac_n "(cached) $ac_c" 1>&6
4727 cat > conftest.
$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4730 /* System header to define __stub macros and hopefully few prototypes,
4731 which can conflict with char $ac_func(); below. */
4733 /* Override any gcc2 internal prototype to avoid an error. */
4734 /* We use char because int might match the return type of a gcc2
4735 builtin and then its argument prototype would still apply. */
4741 /* The GNU C library defines this for functions which it implements
4742 to always fail with ENOSYS. Some functions are actually named
4743 something starting with __ and the normal name is an alias. */
4744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4752 if { (eval echo configure
:4753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4754 eval "ac_cv_func_$ac_func=yes"
4756 echo "configure: failed program was:" >&5
4757 cat conftest.
$ac_ext >&5
4759 eval "ac_cv_func_$ac_func=no"
4764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4765 echo "$ac_t""yes" 1>&6
4766 cat >> confdefs.h
<<EOF
4767 #define CRAY_STACKSEG_END $ac_func
4772 echo "$ac_t""no" 1>&6
4778 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4779 echo "configure:4780: checking stack direction for C alloca" >&5
4780 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4781 echo $ac_n "(cached) $ac_c" 1>&6
4783 if test "$cross_compiling" = yes; then
4784 ac_cv_c_stack_direction
=0
4786 cat > conftest.
$ac_ext <<EOF
4787 #line 4788 "configure"
4788 #include "confdefs.h"
4789 find_stack_direction ()
4791 static char *addr = 0;
4796 return find_stack_direction ();
4799 return (&dummy > addr) ? 1 : -1;
4803 exit (find_stack_direction() < 0);
4806 if { (eval echo configure
:4807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4808 ac_cv_c_stack_direction
=1
4810 echo "configure: failed program was:" >&5
4811 cat conftest.
$ac_ext >&5
4813 ac_cv_c_stack_direction
=-1
4820 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4821 cat >> confdefs.h
<<EOF
4822 #define STACK_DIRECTION $ac_cv_c_stack_direction
4828 # fmod, logb, and frexp are found in -lm on most systems.
4829 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
4830 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
4831 echo "configure:4832: checking for sqrt in -lm" >&5
4832 ac_lib_var
=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
4833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4834 echo $ac_n "(cached) $ac_c" 1>&6
4836 ac_save_LIBS
="$LIBS"
4838 cat > conftest.
$ac_ext <<EOF
4839 #line 4840 "configure"
4840 #include "confdefs.h"
4841 /* Override any gcc2 internal prototype to avoid an error. */
4842 /* We use char because int might match the return type of a gcc2
4843 builtin and then its argument prototype would still apply. */
4850 if { (eval echo configure
:4851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4852 eval "ac_cv_lib_$ac_lib_var=yes"
4854 echo "configure: failed program was:" >&5
4855 cat conftest.
$ac_ext >&5
4857 eval "ac_cv_lib_$ac_lib_var=no"
4860 LIBS
="$ac_save_LIBS"
4863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4864 echo "$ac_t""yes" 1>&6
4865 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4866 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4867 cat >> confdefs.h
<<EOF
4868 #define $ac_tr_lib 1
4874 echo "$ac_t""no" 1>&6
4878 # Check for mail-locking functions in a "mail" library
4879 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
4880 echo "configure:4881: checking for maillock in -lmail" >&5
4881 ac_lib_var
=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
4882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4883 echo $ac_n "(cached) $ac_c" 1>&6
4885 ac_save_LIBS
="$LIBS"
4887 cat > conftest.
$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4890 /* Override any gcc2 internal prototype to avoid an error. */
4891 /* We use char because int might match the return type of a gcc2
4892 builtin and then its argument prototype would still apply. */
4899 if { (eval echo configure
:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4901 eval "ac_cv_lib_$ac_lib_var=yes"
4903 echo "configure: failed program was:" >&5
4904 cat conftest.
$ac_ext >&5
4906 eval "ac_cv_lib_$ac_lib_var=no"
4909 LIBS
="$ac_save_LIBS"
4912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4913 echo "$ac_t""yes" 1>&6
4914 ac_tr_lib
=HAVE_LIB
`echo mail | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4915 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4916 cat >> confdefs.h
<<EOF
4917 #define $ac_tr_lib 1
4923 echo "$ac_t""no" 1>&6
4926 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
4927 echo "configure:4928: checking for maillock in -llockfile" >&5
4928 ac_lib_var
=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
4929 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4930 echo $ac_n "(cached) $ac_c" 1>&6
4932 ac_save_LIBS
="$LIBS"
4933 LIBS
="-llockfile $LIBS"
4934 cat > conftest.
$ac_ext <<EOF
4935 #line 4936 "configure"
4936 #include "confdefs.h"
4937 /* Override any gcc2 internal prototype to avoid an error. */
4938 /* We use char because int might match the return type of a gcc2
4939 builtin and then its argument prototype would still apply. */
4946 if { (eval echo configure
:4947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4948 eval "ac_cv_lib_$ac_lib_var=yes"
4950 echo "configure: failed program was:" >&5
4951 cat conftest.
$ac_ext >&5
4953 eval "ac_cv_lib_$ac_lib_var=no"
4956 LIBS
="$ac_save_LIBS"
4959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4960 echo "$ac_t""yes" 1>&6
4961 ac_tr_lib
=HAVE_LIB
`echo lockfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4962 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4963 cat >> confdefs.h
<<EOF
4964 #define $ac_tr_lib 1
4967 LIBS
="-llockfile $LIBS"
4970 echo "$ac_t""no" 1>&6
4973 # If we have the shared liblockfile, assume we must use it for mail
4974 # locking (e.g. Debian). If we couldn't link against liblockfile
4975 # (no liblockfile.a installed), ensure that we don't need to.
4976 if test "$ac_cv_lib_lockfile_maillock" = no
; then
4977 # Extract the first word of "liblockfile.so", so it can be a program name with args.
4978 set dummy liblockfile.so
; ac_word
=$2
4979 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4980 echo "configure:4981: checking for $ac_word" >&5
4981 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
4982 echo $ac_n "(cached) $ac_c" 1>&6
4984 if test -n "$liblockfile"; then
4985 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
4987 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4988 ac_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
4989 for ac_dir
in $ac_dummy; do
4990 test -z "$ac_dir" && ac_dir
=.
4991 if test -f $ac_dir/$ac_word; then
4992 ac_cv_prog_liblockfile
="yes"
4997 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
5000 liblockfile
="$ac_cv_prog_liblockfile"
5001 if test -n "$liblockfile"; then
5002 echo "$ac_t""$liblockfile" 1>&6
5004 echo "$ac_t""no" 1>&6
5007 if test $ac_cv_prog_liblockfile = yes; then
5008 { echo "configure: error: Shared liblockfile found but can't link against it.
5009 This probably means that movemail could lose mail.
5010 There may be a \`development' package to install containing liblockfile." 1>&2; exit 1; }
5011 else cat >> confdefs.h
<<\EOF
5012 #define LIBMAIL -llockfile
5018 for ac_func
in touchlock
5020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5021 echo "configure:5022: checking for $ac_func" >&5
5022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5023 echo $ac_n "(cached) $ac_c" 1>&6
5025 cat > conftest.
$ac_ext <<EOF
5026 #line 5027 "configure"
5027 #include "confdefs.h"
5028 /* System header to define __stub macros and hopefully few prototypes,
5029 which can conflict with char $ac_func(); below. */
5031 /* Override any gcc2 internal prototype to avoid an error. */
5032 /* We use char because int might match the return type of a gcc2
5033 builtin and then its argument prototype would still apply. */
5039 /* The GNU C library defines this for functions which it implements
5040 to always fail with ENOSYS. Some functions are actually named
5041 something starting with __ and the normal name is an alias. */
5042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5050 if { (eval echo configure
:5051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5052 eval "ac_cv_func_$ac_func=yes"
5054 echo "configure: failed program was:" >&5
5055 cat conftest.
$ac_ext >&5
5057 eval "ac_cv_func_$ac_func=no"
5062 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5063 echo "$ac_t""yes" 1>&6
5064 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5065 cat >> confdefs.h
<<EOF
5066 #define $ac_tr_func 1
5070 echo "$ac_t""no" 1>&6
5074 for ac_hdr
in maillock.h
5076 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5077 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5078 echo "configure:5079: checking for $ac_hdr" >&5
5079 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5080 echo $ac_n "(cached) $ac_c" 1>&6
5082 cat > conftest.
$ac_ext <<EOF
5083 #line 5084 "configure"
5084 #include "confdefs.h"
5087 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5088 { (eval echo configure
:5089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5089 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5090 if test -z "$ac_err"; then
5092 eval "ac_cv_header_$ac_safe=yes"
5095 echo "configure: failed program was:" >&5
5096 cat conftest.
$ac_ext >&5
5098 eval "ac_cv_header_$ac_safe=no"
5102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5103 echo "$ac_t""yes" 1>&6
5104 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5105 cat >> confdefs.h
<<EOF
5106 #define $ac_tr_hdr 1
5110 echo "$ac_t""no" 1>&6
5115 for ac_func
in gettimeofday gethostname getdomainname dup2 \
5116 rename closedir mkdir
rmdir sysinfo \
5117 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
5118 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
5119 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \
5120 __fpending ftello getloadavg mblen mbrlen strsignal
5122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5123 echo "configure:5124: checking for $ac_func" >&5
5124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5125 echo $ac_n "(cached) $ac_c" 1>&6
5127 cat > conftest.
$ac_ext <<EOF
5128 #line 5129 "configure"
5129 #include "confdefs.h"
5130 /* System header to define __stub macros and hopefully few prototypes,
5131 which can conflict with char $ac_func(); below. */
5133 /* Override any gcc2 internal prototype to avoid an error. */
5134 /* We use char because int might match the return type of a gcc2
5135 builtin and then its argument prototype would still apply. */
5141 /* The GNU C library defines this for functions which it implements
5142 to always fail with ENOSYS. Some functions are actually named
5143 something starting with __ and the normal name is an alias. */
5144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5152 if { (eval echo configure
:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5154 eval "ac_cv_func_$ac_func=yes"
5156 echo "configure: failed program was:" >&5
5157 cat conftest.
$ac_ext >&5
5159 eval "ac_cv_func_$ac_func=no"
5164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5165 echo "$ac_t""yes" 1>&6
5166 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5167 cat >> confdefs.h
<<EOF
5168 #define $ac_tr_func 1
5172 echo "$ac_t""no" 1>&6
5177 # Check this now, so that we will NOT find the above functions in ncurses.
5178 # That is because we have not set up to link ncurses in lib-src.
5179 # It's better to believe a function is not available
5180 # than to expect to find it in ncurses.
5181 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
5182 echo "configure:5183: checking for tparm in -lncurses" >&5
5183 ac_lib_var
=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
5184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5185 echo $ac_n "(cached) $ac_c" 1>&6
5187 ac_save_LIBS
="$LIBS"
5188 LIBS
="-lncurses $LIBS"
5189 cat > conftest.
$ac_ext <<EOF
5190 #line 5191 "configure"
5191 #include "confdefs.h"
5192 /* Override any gcc2 internal prototype to avoid an error. */
5193 /* We use char because int might match the return type of a gcc2
5194 builtin and then its argument prototype would still apply. */
5201 if { (eval echo configure
:5202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5203 eval "ac_cv_lib_$ac_lib_var=yes"
5205 echo "configure: failed program was:" >&5
5206 cat conftest.
$ac_ext >&5
5208 eval "ac_cv_lib_$ac_lib_var=no"
5211 LIBS
="$ac_save_LIBS"
5214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5215 echo "$ac_t""yes" 1>&6
5216 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5217 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5218 cat >> confdefs.h
<<EOF
5219 #define $ac_tr_lib 1
5222 LIBS
="-lncurses $LIBS"
5225 echo "$ac_t""no" 1>&6
5229 # Solaris requires -lintl if you want strerror (which calls dgettext)
5230 # to return localized messages.
5231 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
5232 echo "configure:5233: checking for dgettext in -lintl" >&5
5233 ac_lib_var
=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
5234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5235 echo $ac_n "(cached) $ac_c" 1>&6
5237 ac_save_LIBS
="$LIBS"
5239 cat > conftest.
$ac_ext <<EOF
5240 #line 5241 "configure"
5241 #include "confdefs.h"
5242 /* Override any gcc2 internal prototype to avoid an error. */
5243 /* We use char because int might match the return type of a gcc2
5244 builtin and then its argument prototype would still apply. */
5251 if { (eval echo configure
:5252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5253 eval "ac_cv_lib_$ac_lib_var=yes"
5255 echo "configure: failed program was:" >&5
5256 cat conftest.
$ac_ext >&5
5258 eval "ac_cv_lib_$ac_lib_var=no"
5261 LIBS
="$ac_save_LIBS"
5264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5265 echo "$ac_t""yes" 1>&6
5266 ac_tr_lib
=HAVE_LIB
`echo intl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5267 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5268 cat >> confdefs.h
<<EOF
5269 #define $ac_tr_lib 1
5275 echo "$ac_t""no" 1>&6
5279 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
5280 echo "configure:5281: checking whether localtime caches TZ" >&5
5281 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
5282 echo $ac_n "(cached) $ac_c" 1>&6
5284 if test x
$ac_cv_func_tzset = xyes
; then
5285 if test "$cross_compiling" = yes; then
5286 # If we have tzset, assume the worst when cross-compiling.
5287 emacs_cv_localtime_cache
=yes
5289 cat > conftest.
$ac_ext <<EOF
5290 #line 5291 "configure"
5291 #include "confdefs.h"
5293 extern char **environ;
5297 for (to = from = environ; (*to = *from); from++)
5298 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
5301 char TZ_GMT0[] = "TZ=GMT0";
5302 char TZ_PST8[] = "TZ=PST8";
5305 time_t now = time ((time_t *) 0);
5306 int hour_GMT0, hour_unset;
5307 if (putenv (TZ_GMT0) != 0)
5309 hour_GMT0 = localtime (&now)->tm_hour;
5311 hour_unset = localtime (&now)->tm_hour;
5312 if (putenv (TZ_PST8) != 0)
5314 if (localtime (&now)->tm_hour == hour_GMT0)
5317 if (localtime (&now)->tm_hour != hour_unset)
5322 if { (eval echo configure
:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5324 emacs_cv_localtime_cache
=no
5326 echo "configure: failed program was:" >&5
5327 cat conftest.
$ac_ext >&5
5329 emacs_cv_localtime_cache
=yes
5335 # If we lack tzset, report that localtime does not cache TZ,
5336 # since we can't invalidate the cache if we don't have tzset.
5337 emacs_cv_localtime_cache
=no
5340 echo "$ac_t""$emacs_cv_localtime_cache" 1>&6
5341 if test $emacs_cv_localtime_cache = yes; then
5342 cat >> confdefs.h
<<\EOF
5343 #define LOCALTIME_CACHE 1
5348 if test "x$HAVE_TIMEVAL" = xyes
; then
5349 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
5350 echo "configure:5351: checking whether gettimeofday can accept two arguments" >&5
5351 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
5352 echo $ac_n "(cached) $ac_c" 1>&6
5354 cat > conftest.
$ac_ext <<EOF
5355 #line 5356 "configure"
5356 #include "confdefs.h"
5358 #ifdef TIME_WITH_SYS_TIME
5359 #include <sys/time.h>
5362 #ifdef HAVE_SYS_TIME_H
5363 #include <sys/time.h>
5371 struct timeval time;
5372 struct timezone dummy;
5373 gettimeofday (&time, &dummy);
5377 if { (eval echo configure
:5378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5379 emacs_cv_gettimeofday_two_arguments
=yes
5381 echo "configure: failed program was:" >&5
5382 cat conftest.
$ac_ext >&5
5384 emacs_cv_gettimeofday_two_arguments
=no
5389 echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6
5390 if test $emacs_cv_gettimeofday_two_arguments = no
; then
5391 cat >> confdefs.h
<<\EOF
5392 #define GETTIMEOFDAY_ONE_ARGUMENT 1
5399 echo $ac_n "checking for socket""... $ac_c" 1>&6
5400 echo "configure:5401: checking for socket" >&5
5401 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
5402 echo $ac_n "(cached) $ac_c" 1>&6
5404 cat > conftest.
$ac_ext <<EOF
5405 #line 5406 "configure"
5406 #include "confdefs.h"
5407 /* System header to define __stub macros and hopefully few prototypes,
5408 which can conflict with char socket(); below. */
5410 /* Override any gcc2 internal prototype to avoid an error. */
5411 /* We use char because int might match the return type of a gcc2
5412 builtin and then its argument prototype would still apply. */
5418 /* The GNU C library defines this for functions which it implements
5419 to always fail with ENOSYS. Some functions are actually named
5420 something starting with __ and the normal name is an alias. */
5421 #if defined (__stub_socket) || defined (__stub___socket)
5429 if { (eval echo configure
:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5431 eval "ac_cv_func_socket=yes"
5433 echo "configure: failed program was:" >&5
5434 cat conftest.
$ac_ext >&5
5436 eval "ac_cv_func_socket=no"
5441 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
5442 echo "$ac_t""yes" 1>&6
5445 echo "$ac_t""no" 1>&6
5449 if test $ok_so_far = yes; then
5450 ac_safe
=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
5451 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
5452 echo "configure:5453: checking for netinet/in.h" >&5
5453 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5454 echo $ac_n "(cached) $ac_c" 1>&6
5456 cat > conftest.
$ac_ext <<EOF
5457 #line 5458 "configure"
5458 #include "confdefs.h"
5459 #include <netinet/in.h>
5461 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5462 { (eval echo configure
:5463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5463 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5464 if test -z "$ac_err"; then
5466 eval "ac_cv_header_$ac_safe=yes"
5469 echo "configure: failed program was:" >&5
5470 cat conftest.
$ac_ext >&5
5472 eval "ac_cv_header_$ac_safe=no"
5476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5477 echo "$ac_t""yes" 1>&6
5480 echo "$ac_t""no" 1>&6
5485 if test $ok_so_far = yes; then
5486 ac_safe
=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
5487 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
5488 echo "configure:5489: checking for arpa/inet.h" >&5
5489 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5490 echo $ac_n "(cached) $ac_c" 1>&6
5492 cat > conftest.
$ac_ext <<EOF
5493 #line 5494 "configure"
5494 #include "confdefs.h"
5495 #include <arpa/inet.h>
5497 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5498 { (eval echo configure
:5499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5499 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5500 if test -z "$ac_err"; then
5502 eval "ac_cv_header_$ac_safe=yes"
5505 echo "configure: failed program was:" >&5
5506 cat conftest.
$ac_ext >&5
5508 eval "ac_cv_header_$ac_safe=no"
5512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5513 echo "$ac_t""yes" 1>&6
5516 echo "$ac_t""no" 1>&6
5521 if test $ok_so_far = yes; then
5522 cat >> confdefs.h
<<\EOF
5523 #define HAVE_INET_SOCKETS 1
5528 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
5529 cat >> confdefs.h
<<\EOF
5530 #define HAVE_AIX_SMT_EXP 1
5535 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
5536 echo "configure:5537: checking whether system supports dynamic ptys" >&5
5537 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
5538 echo "$ac_t""yes" 1>&6
5539 cat >> confdefs.h
<<\EOF
5540 #define HAVE_DEV_PTMX 1
5544 echo "$ac_t""no" 1>&6
5547 # Set up the CFLAGS for real compilation, so we can substitute it.
5548 CFLAGS
="$REAL_CFLAGS"
5550 #### Find out which version of Emacs this is.
5551 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
5552 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
5553 if test x
"${version}" = x
; then
5554 { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; }
5557 ### Specify what sort of things we'll be editing into Makefile and config.h.
5558 ### Use configuration here uncanonicalized to avoid exceeding size limits.
5590 cat >> confdefs.h
<<EOF
5591 #define EMACS_CONFIGURATION "${canonical}"
5594 cat >> confdefs.h
<<EOF
5595 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
5598 cat >> confdefs.h
<<EOF
5599 #define config_machfile "${machfile}"
5602 cat >> confdefs.h
<<EOF
5603 #define config_opsysfile "${opsysfile}"
5606 cat >> confdefs.h
<<EOF
5607 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
5610 cat >> confdefs.h
<<EOF
5611 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
5614 cat >> confdefs.h
<<EOF
5615 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
5618 cat >> confdefs.h
<<EOF
5619 #define UNEXEC_SRC ${UNEXEC_SRC}
5623 if test "${HAVE_X_WINDOWS}" = "yes" ; then
5624 cat >> confdefs.h
<<\EOF
5625 #define HAVE_X_WINDOWS 1
5629 if test "${USE_X_TOOLKIT}" != "none" ; then
5630 cat >> confdefs.h
<<\EOF
5631 #define USE_X_TOOLKIT 1
5635 if test "${HAVE_X11}" = "yes" ; then
5636 cat >> confdefs.h
<<\EOF
5641 if test "${HAVE_XFREE386}" = "yes" ; then
5642 cat >> confdefs.h
<<\EOF
5643 #define HAVE_XFREE386 1
5647 if test "${HAVE_MENUS}" = "yes" ; then
5648 cat >> confdefs.h
<<\EOF
5649 #define HAVE_MENUS 1
5653 if test "${GNU_MALLOC}" = "yes" ; then
5654 cat >> confdefs.h
<<\EOF
5655 #define GNU_MALLOC 1
5659 if test "${REL_ALLOC}" = "yes" ; then
5660 cat >> confdefs.h
<<\EOF
5665 if test "${LISP_FLOAT_TYPE}" = "yes" ; then
5666 cat >> confdefs.h
<<\EOF
5667 #define LISP_FLOAT_TYPE 1
5672 #### Report on what we decided to do.
5674 Configured for \`${canonical}'.
5676 Where should the build process find the source code? ${srcdir}
5677 What operating system and machine description files should Emacs use?
5678 \`${opsysfile}' and \`${machfile}'
5679 What compiler should emacs be built with? ${CC} ${CFLAGS}
5680 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
5681 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC}
5682 What window system should Emacs use? ${window_system}
5683 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
5685 if test -n "${x_includes}"; then
5686 echo " Where do we find X Windows header files? ${x_includes}"
5688 echo " Where do we find X Windows header files? Standard dirs"
5690 if test -n "${x_libraries}"; then
5691 echo " Where do we find X Windows libraries? ${x_libraries}"
5693 echo " Where do we find X Windows libraries? Standard dirs"
5696 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
5697 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
5698 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
5699 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
5700 echo " Does Emacs use -lungif? ${HAVE_GIF}"
5701 echo " Does Emacs use -lpng? ${HAVE_PNG}"
5702 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
5705 # Remove any trailing slashes in these variables.
5706 test "${prefix}" != NONE
&&
5707 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
5708 test "${exec_prefix}" != NONE
&&
5709 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
5712 cat > confcache
<<\EOF
5713 # This file is a shell script that caches the results of configure
5714 # tests run on this system so they can be shared between configure
5715 # scripts and configure runs. It is not useful on other systems.
5716 # If it contains results you don't want to keep, you may remove or edit it.
5718 # By default, configure uses ./config.cache as the cache file,
5719 # creating it if it does not exist already. You can give configure
5720 # the --cache-file=FILE option to use a different cache file; that is
5721 # what configure does when it calls configure scripts in
5722 # subdirectories, so they share the cache.
5723 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5724 # config.status only pays attention to the cache file if you give it the
5725 # --recheck option to rerun configure.
5728 # The following way of writing the cache mishandles newlines in values,
5729 # but we know of no workaround that is simple, portable, and efficient.
5730 # So, don't put newlines in cache variables' values.
5731 # Ultrix sh set writes to stderr and can't be redirected directly,
5732 # and sets the high bit in the cache file unless we assign to the vars.
5734 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5736 # `set' does not quote correctly, so add quotes (double-quote substitution
5737 # turns \\\\ into \\, and sed turns \\ into \).
5739 -e "s/'/'\\\\''/g" \
5740 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5743 # `set' quotes correctly as required by POSIX, so do not add quotes.
5744 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5747 if cmp -s $cache_file confcache
; then
5750 if test -w $cache_file; then
5751 echo "updating cache $cache_file"
5752 cat confcache
> $cache_file
5754 echo "not updating unwritable cache $cache_file"
5759 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5761 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5762 # Let make expand exec_prefix.
5763 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5765 # Any assignment to VPATH causes Sun make to only execute
5766 # the first set of double-colon rules, so remove it if not needed.
5767 # If there is a colon in the path, we need to keep it.
5768 if test "x$srcdir" = x.
; then
5769 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5772 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5774 DEFS
=-DHAVE_CONFIG_H
5776 # Without the "./", some shells look in PATH for config.status.
5777 : ${CONFIG_STATUS=./config.status}
5779 echo creating
$CONFIG_STATUS
5780 rm -f $CONFIG_STATUS
5781 cat > $CONFIG_STATUS <<EOF
5783 # Generated automatically by configure.
5784 # Run this file to recreate the current configuration.
5785 # This directory was configured as follows,
5786 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5788 # $0 $ac_configure_args
5790 # Compiler output produced by configure, useful for debugging
5791 # configure, is in ./config.log if it exists.
5793 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5796 case "\$ac_option" in
5797 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5798 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5799 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5800 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5801 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5803 -help | --help | --hel | --he | --h)
5804 echo "\$ac_cs_usage"; exit 0 ;;
5805 *) echo "\$ac_cs_usage"; exit 1 ;;
5809 ac_given_srcdir=$srcdir
5810 ac_given_INSTALL="$INSTALL"
5812 trap 'rm -fr `echo "Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
5813 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
5814 leim/Makefile src/config.h:src/config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5816 cat >> $CONFIG_STATUS <<EOF
5818 # Protect against being on the right side of a sed subst in config.status.
5819 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5820 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5824 s%@CFLAGS@%$CFLAGS%g
5825 s%@CPPFLAGS@%$CPPFLAGS%g
5826 s%@CXXFLAGS@%$CXXFLAGS%g
5827 s%@FFLAGS@%$FFLAGS%g
5829 s%@LDFLAGS@%$LDFLAGS%g
5831 s%@exec_prefix@%$exec_prefix%g
5832 s%@prefix@%$prefix%g
5833 s%@program_transform_name@%$program_transform_name%g
5834 s%@bindir@%$bindir%g
5835 s%@sbindir@%$sbindir%g
5836 s%@libexecdir@%$libexecdir%g
5837 s%@datadir@%$datadir%g
5838 s%@sysconfdir@%$sysconfdir%g
5839 s%@sharedstatedir@%$sharedstatedir%g
5840 s%@localstatedir@%$localstatedir%g
5841 s%@libdir@%$libdir%g
5842 s%@includedir@%$includedir%g
5843 s%@oldincludedir@%$oldincludedir%g
5844 s%@infodir@%$infodir%g
5845 s%@mandir@%$mandir%g
5847 s%@host_alias@%$host_alias%g
5848 s%@host_cpu@%$host_cpu%g
5849 s%@host_vendor@%$host_vendor%g
5850 s%@host_os@%$host_os%g
5854 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5855 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5856 s%@INSTALL_DATA@%$INSTALL_DATA%g
5858 s%@SET_MAKE@%$SET_MAKE%g
5859 s%@ALLOCA@%$ALLOCA%g
5860 s%@liblockfile@%$liblockfile%g
5861 s%@version@%$version%g
5862 s%@configuration@%$configuration%g
5863 s%@canonical@%$canonical%g
5864 s%@srcdir@%$srcdir%g
5865 s%@lispdir@%$lispdir%g
5866 s%@locallisppath@%$locallisppath%g
5867 s%@lisppath@%$lisppath%g
5868 s%@x_default_search_path@%$x_default_search_path%g
5869 s%@etcdir@%$etcdir%g
5870 s%@archlibdir@%$archlibdir%g
5871 s%@docdir@%$docdir%g
5872 s%@bitmapdir@%$bitmapdir%g
5873 s%@c_switch_system@%$c_switch_system%g
5874 s%@c_switch_machine@%$c_switch_machine%g
5875 s%@LD_SWITCH_X_SITE@%$LD_SWITCH_X_SITE%g
5876 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g
5877 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g
5878 s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g
5879 s%@machfile@%$machfile%g
5880 s%@opsysfile@%$opsysfile%g
5881 s%@RANLIB@%$RANLIB%g
5886 cat >> $CONFIG_STATUS <<\EOF
5888 # Split the substitutions into bite-sized pieces for seds with
5889 # small command number limits, like on Digital OSF/1 and HP-UX.
5890 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5891 ac_file
=1 # Number of current file.
5892 ac_beg
=1 # First line for current file.
5893 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5896 while $ac_more_lines; do
5897 if test $ac_beg -gt 1; then
5898 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5900 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5902 if test ! -s conftest.s
$ac_file; then
5904 rm -f conftest.s
$ac_file
5906 if test -z "$ac_sed_cmds"; then
5907 ac_sed_cmds
="sed -f conftest.s$ac_file"
5909 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5911 ac_file
=`expr $ac_file + 1`
5913 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5916 if test -z "$ac_sed_cmds"; then
5921 cat >> $CONFIG_STATUS <<EOF
5923 CONFIG_FILES=\${CONFIG_FILES-"Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
5924 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \
5927 cat >> $CONFIG_STATUS <<\EOF
5928 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5929 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5931 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5932 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5933 *) ac_file_in
="${ac_file}.in" ;;
5936 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5938 # Remove last slash and all that follows it. Not all systems have dirname.
5939 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5940 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5941 # The file is in a subdirectory.
5942 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5943 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5944 # A "../" for each directory in $ac_dir_suffix.
5945 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5947 ac_dir_suffix
= ac_dots
=
5950 case "$ac_given_srcdir" in
5952 if test -z "$ac_dots"; then top_srcdir
=.
5953 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5954 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5956 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5957 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5960 case "$ac_given_INSTALL" in
5961 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5962 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5965 echo creating
"$ac_file"
5967 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5969 *Makefile
*) ac_comsub
="1i\\
5970 # $configure_input" ;;
5974 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5976 s%@configure_input@%$configure_input%g
5977 s%@srcdir@%$srcdir%g
5978 s%@top_srcdir@%$top_srcdir%g
5979 s%@INSTALL@%$INSTALL%g
5980 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5984 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5985 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5987 # ac_d sets the value in "#define NAME VALUE" lines.
5988 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5989 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5992 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5993 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5994 ac_uB
='\([ ]\)%\1#\2define\3'
5997 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5998 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5999 ac_eB
='$%\1#\2define\3'
6003 if test "${CONFIG_HEADERS+set}" != set; then
6005 cat >> $CONFIG_STATUS <<EOF
6006 CONFIG_HEADERS="src/config.h:src/config.in"
6008 cat >> $CONFIG_STATUS <<\EOF
6010 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6011 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6013 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6014 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6015 *) ac_file_in
="${ac_file}.in" ;;
6018 echo creating
$ac_file
6020 rm -f conftest.frag conftest.
in conftest.out
6021 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6022 cat $ac_file_inputs > conftest.
in
6026 # Transform confdefs.h into a sed script conftest.vals that substitutes
6027 # the proper values into config.h.in to produce config.h. And first:
6028 # Protect against being on the right side of a sed subst in config.status.
6029 # Protect against being in an unquoted here document in config.status.
6031 cat > conftest.hdr
<<\EOF
6034 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6038 sed -n -f conftest.hdr confdefs.h > conftest.vals
6041 # This sed command replaces #undef with comments. This is necessary, for
6042 # example, in the case of _POSIX_SOURCE, which is predefined and required
6043 # on some systems where configure will not decide to define it.
6044 cat >> conftest.vals <<\EOF
6045 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6048 # Break up conftest.vals because some shells have a limit on
6049 # the size of here documents, and old seds have small limits too.
6054 ac_lines=`grep -c . conftest.vals
`
6055 # grep -c gives empty output for an empty file on some AIX systems.
6056 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6057 # Write a limited-size here document to conftest.frag.
6058 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6059 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6061 sed -f conftest.frag conftest.in > conftest.out
6063 mv conftest.out conftest.in
6065 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6067 mv conftest.tail conftest.vals
6071 cat >> $CONFIG_STATUS <<\EOF
6072 rm -f conftest.frag conftest.h
6073 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6074 cat conftest.in >> conftest.h
6076 if cmp -s $ac_file conftest.h 2>/dev/null; then
6077 echo "$ac_file is unchanged"
6080 # Remove last slash and all that follows it. Not all systems have dirname.
6081 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6082 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6083 # The file is in a subdirectory.
6084 test ! -d "$ac_dir" && mkdir "$ac_dir"
6087 mv conftest.h $ac_file
6092 cat >> $CONFIG_STATUS <<EOF
6093 CPP="$CPP" CPPFLAGS="$CPPFLAGS"
6095 cat >> $CONFIG_STATUS <<\EOF
6098 ### Make the necessary directories, if they don't exist.
6099 for dir in etc lisp ; do
6100 test -d ${dir} || mkdir ${dir}
6103 # Build src/Makefile from ${srcdir}/src/Makefile.c
6104 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
6105 # This must be done after src/config.h is built, since we rely on that file.
6107 # Now get this: Some word that is part of the ${srcdir} directory name
6108 # or the ${configuration} value might, just might, happen to be an
6109 # identifier like `sun4
' or `i386' or something
, and be predefined by
6110 # the C preprocessor to some helpful value like 1, or maybe the empty
6111 # string. Needless to say consequent macro substitutions are less
6112 # than conducive to the makefile finding the correct directory.
6113 undefs
="`echo $top_srcdir $configuration $canonical |
6114 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
6115 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
6118 echo creating src
/epaths.h
6121 echo creating lib-src
/Makefile
6123 rm -f junk.c junk1.c junk2.c
6124 sed -e '/start of cpp stuff/q' \
6125 < Makefile.c
> junk1.c
6126 sed -e '1,/start of cpp stuff/d'\
6127 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
6128 < Makefile.c
> junk.c
6129 $CPP $undefs -I.
-I$top_srcdir/src
$CPPFLAGS junk.c | \
6130 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
6131 cat junk1.c junk2.c
> Makefile.new
6132 rm -f junk.c junk1.c junk2.c
6133 chmod 444 Makefile.new
6134 mv -f Makefile.new Makefile
6137 echo creating src
/Makefile
6139 rm -f junk.c junk1.c junk2.c
6140 sed -e '/start of cpp stuff/q' \
6141 < Makefile.c
> junk1.c
6142 sed -e '1,/start of cpp stuff/d'\
6143 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \
6144 < Makefile.c
> junk.c
6145 $CPP $undefs -I.
-I$top_srcdir/src
$CPPFLAGS junk.c | \
6146 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
6147 cat junk1.c junk2.c
> Makefile.new
6148 rm -f junk.c junk1.c junk2.c
6149 chmod 444 Makefile.new
6150 mv -f Makefile.new Makefile
6153 if test ! -f src
/.gdbinit
&& test -f $top_srcdir/src
/.gdbinit
; then
6154 echo creating src
/.gdbinit
6155 echo source $top_srcdir/src
/.gdbinit
> src
/.gdbinit
6158 # This is how we know whether to re-run configure in certain cases.
6159 touch src
/config.stamp
6164 chmod +x
$CONFIG_STATUS
6165 rm -fr confdefs
* $ac_clean_files
6166 test "$no_create" = yes ||
${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS ||
exit 1