Add ChangeLog bug ref.
[bpt/emacs.git] / configure
CommitLineData
067d23c9
KY
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
d6974efa 3# Generated by GNU Autoconf 2.68 for emacs 24.0.50.
067d23c9
KY
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2018939f
AS
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
067d23c9
KY
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
d6974efa 92as_myself=
067d23c9
KY
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151esac
152fi
153"
154 as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168 exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185as_found=false
186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201fi
202fi
203 done;;
204 esac
205 as_found=false
206done
207$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210fi; }
211IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
d6974efa 218 # Preserve -v and -x to the replacement shell.
067d23c9
KY
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
d6974efa
PE
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
067d23c9
KY
230fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240$0: including any error possibly output before this
241$0: message. Then install a modern shell, or manually run
242$0: the script under such a shell if you do have one."
243 fi
244 exit 1
245fi
246fi
247fi
248SHELL=${CONFIG_SHELL-/bin/sh}
249export SHELL
250# Unset more variables known to interfere with behavior of common tools.
251CLICOLOR_FORCE= GREP_OPTIONS=
252unset CLICOLOR_FORCE GREP_OPTIONS
253
254## --------------------- ##
255## M4sh Shell Functions. ##
256## --------------------- ##
257# as_fn_unset VAR
258# ---------------
259# Portably unset VAR.
260as_fn_unset ()
261{
262 { eval $1=; unset $1;}
263}
264as_unset=as_fn_unset
265
266# as_fn_set_status STATUS
267# -----------------------
268# Set $? to STATUS, without forking.
269as_fn_set_status ()
270{
271 return $1
272} # as_fn_set_status
273
274# as_fn_exit STATUS
275# -----------------
276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277as_fn_exit ()
278{
279 set +e
280 as_fn_set_status $1
281 exit $1
282} # as_fn_exit
283
284# as_fn_mkdir_p
285# -------------
286# Create "$as_dir" as a directory, including parents if necessary.
287as_fn_mkdir_p ()
288{
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306$as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
2018939f 327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
067d23c9
KY
328
329
330} # as_fn_mkdir_p
331# as_fn_append VAR VALUE
332# ----------------------
333# Append the text in VALUE to the end of the definition contained in VAR. Take
334# advantage of any shell optimizations that allow amortized linear growth over
335# repeated appends, instead of the typical quadratic growth present in naive
336# implementations.
337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347fi # as_fn_append
348
349# as_fn_arith ARG...
350# ------------------
351# Perform arithmetic evaluation on the ARGs, and store the result in the
352# global $as_val. Take advantage of shells that can avoid forks. The arguments
353# must be portable across $(()) and expr.
354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364fi # as_fn_arith
365
366
2018939f
AS
367# as_fn_error STATUS ERROR [LINENO LOG_FD]
368# ----------------------------------------
067d23c9
KY
369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2018939f 371# script with STATUS, using 1 if that was 0.
067d23c9
KY
372as_fn_error ()
373{
2018939f
AS
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
067d23c9 378 fi
2018939f 379 $as_echo "$as_me: error: $2" >&2
067d23c9
KY
380 as_fn_exit $as_status
381} # as_fn_error
382
383if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386else
387 as_expr=false
388fi
389
390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392else
393 as_basename=false
394fi
395
396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398else
399 as_dirname=false
400fi
401
402as_me=`$as_basename -- "$0" ||
403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406$as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421# Avoid depending upon Character Ranges.
422as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425as_cr_digits='0123456789'
426as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458}
459
460ECHO_C= ECHO_N= ECHO_T=
461case `echo -n x` in #(((((
462-n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469*)
470 ECHO_N='-n';;
471esac
472
473rm -f conf$$ conf$$.exe conf$$.file
474if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479fi
480if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494else
495 as_ln_s='cp -p'
496fi
497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498rmdir conf$$.dir 2>/dev/null
499
500if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505fi
506
507if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527fi
528as_executable_p=$as_test_x
529
530# Sed expression to map a string onto a valid CPP name.
531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533# Sed expression to map a string onto a valid variable name.
534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537test -n "$DJDIR" || exec 7<&0 </dev/null
538exec 6>&1
539
540# Name of the host.
2018939f 541# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
067d23c9
KY
542# so uname gets run too.
543ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545#
546# Initializations.
547#
548ac_default_prefix=/usr/local
549ac_clean_files=
550ac_config_libobj_dir=.
551LIBOBJS=
552cross_compiling=no
553subdirs=
554MFLAGS=
555MAKEFLAGS=
556
557# Identity of this package.
558PACKAGE_NAME='emacs'
559PACKAGE_TARNAME='emacs'
560PACKAGE_VERSION='24.0.50'
561PACKAGE_STRING='emacs 24.0.50'
562PACKAGE_BUGREPORT=''
563PACKAGE_URL=''
564
565ac_unique_file="src/lisp.h"
566# Factoring default headers for most tests.
567ac_includes_default="\
568#include <stdio.h>
569#ifdef HAVE_SYS_TYPES_H
570# include <sys/types.h>
571#endif
572#ifdef HAVE_SYS_STAT_H
573# include <sys/stat.h>
574#endif
575#ifdef STDC_HEADERS
576# include <stdlib.h>
577# include <stddef.h>
578#else
579# ifdef HAVE_STDLIB_H
580# include <stdlib.h>
581# endif
582#endif
583#ifdef HAVE_STRING_H
584# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585# include <memory.h>
586# endif
587# include <string.h>
588#endif
589#ifdef HAVE_STRINGS_H
590# include <strings.h>
591#endif
592#ifdef HAVE_INTTYPES_H
593# include <inttypes.h>
594#endif
595#ifdef HAVE_STDINT_H
596# include <stdint.h>
597#endif
598#ifdef HAVE_UNISTD_H
599# include <unistd.h>
600#endif"
601
067d23c9 602ac_header_list=
e275c824
PE
603gl_getopt_required=POSIX
604gl_getopt_required=POSIX
067d23c9 605ac_func_list=
743c80a7
PE
606ac_subst_vars='gltests_LTLIBOBJS
607gltests_LIBOBJS
608gl_LTLIBOBJS
609gl_LIBOBJS
610am__EXEEXT_FALSE
611am__EXEEXT_TRUE
612LTLIBOBJS
1f5d53eb 613LIBOBJS
067d23c9
KY
614WINDOW_SUPPORT
615TOOLTIP_SUPPORT
616MOUSE_SUPPORT
617LIB_GCC
618LD_FIRSTFLAG
619LD_SWITCH_SYSTEM_TEMACS
620POST_ALLOC_OBJ
621PRE_ALLOC_OBJ
622CYGWIN_OBJ
623RALLOC_OBJ
624OLDXMENU_DEPS
625LIBX_OTHER
626LIBXMENU
627OLDXMENU
628OLDXMENU_TARGET
629LIBXT_OTHER
630TOOLKIT_LIBW
631WIDGET_OBJ
632XOBJ
633XMENU_OBJ
634FONT_OBJ
635OTHER_FILES
636GNU_OBJC_CFLAGS
637ns_appsrc
638ns_appresdir
639ns_appbindir
640ns_appdir
d6a003a8
AS
641S_FILE
642M_FILE
067d23c9
KY
643X_TOOLKIT_TYPE
644C_SWITCH_X_SYSTEM
645C_SWITCH_X_SITE
646LD_SWITCH_X_SITE
647gameuser
648gamedir
649bitmapdir
650archlibdir
651etcdir
652x_default_search_path
653lisppath
654locallisppath
655lispdir
656srcdir
657canonical
658configuration
659version
660KRB4LIB
661DESLIB
662KRB5LIB
663CRYPTOLIB
664COM_ERRLIB
665LIBRESOLV
666LIBHESIOD
667TERMCAP_OBJ
668LIBS_TERMCAP
743c80a7
PE
669LIBGNU_LTLIBDEPS
670LIBGNU_LIBDEPS
671gltests_WITNESS
e275c824
PE
672HAVE_UNISTD_H
673NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
674NEXT_UNISTD_H
1fd182f0
PE
675PTHREAD_H_DEFINES_STRUCT_TIMESPEC
676SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
677TIME_H_DEFINES_STRUCT_TIMESPEC
678NEXT_AS_FIRST_DIRECTIVE_TIME_H
679NEXT_TIME_H
5fa4ac76
PE
680NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
681NEXT_SYS_STAT_H
682REPLACE_UTIMENSAT
683REPLACE_STAT
684REPLACE_MKNOD
685REPLACE_MKFIFO
686REPLACE_MKDIR
687REPLACE_LSTAT
688REPLACE_FUTIMENS
689REPLACE_FSTATAT
690REPLACE_FSTAT
691HAVE_UTIMENSAT
692HAVE_MKNODAT
693HAVE_MKNOD
694HAVE_MKFIFOAT
695HAVE_MKFIFO
696HAVE_MKDIRAT
697HAVE_LSTAT
698HAVE_LCHMOD
699HAVE_FUTIMENS
700HAVE_FSTATAT
701HAVE_FCHMODAT
702GNULIB_UTIMENSAT
703GNULIB_STAT
704GNULIB_MKNODAT
705GNULIB_MKNOD
706GNULIB_MKFIFOAT
707GNULIB_MKFIFO
708GNULIB_MKDIRAT
709GNULIB_LSTAT
710GNULIB_LCHMOD
711GNULIB_FUTIMENS
712GNULIB_FSTATAT
713GNULIB_FCHMODAT
1f5d53eb
PE
714NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
715NEXT_STDLIB_H
5f90be1b
PE
716STDINT_H
717WINT_T_SUFFIX
718WCHAR_T_SUFFIX
719SIG_ATOMIC_T_SUFFIX
720SIZE_T_SUFFIX
721PTRDIFF_T_SUFFIX
722HAVE_SIGNED_WINT_T
723HAVE_SIGNED_WCHAR_T
724HAVE_SIGNED_SIG_ATOMIC_T
725BITSIZEOF_WINT_T
726BITSIZEOF_WCHAR_T
727BITSIZEOF_SIG_ATOMIC_T
728BITSIZEOF_SIZE_T
729BITSIZEOF_PTRDIFF_T
730HAVE_SYS_BITYPES_H
731HAVE_SYS_INTTYPES_H
732HAVE_STDINT_H
733NEXT_AS_FIRST_DIRECTIVE_STDINT_H
734NEXT_STDINT_H
735HAVE_SYS_TYPES_H
736HAVE_INTTYPES_H
737HAVE_WCHAR_H
738HAVE_UNSIGNED_LONG_LONG_INT
739HAVE_LONG_LONG_INT
1fd182f0
PE
740NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
741NEXT_STDDEF_H
1fd182f0
PE
742STDDEF_H
743HAVE_WCHAR_T
744REPLACE_NULL
16c3e636
PE
745HAVE__BOOL
746STDBOOL_H
1fd182f0
PE
747APPLE_UNIVERSAL_BUILD
748REPLACE_TIMEGM
749REPLACE_NANOSLEEP
750REPLACE_MKTIME
751REPLACE_LOCALTIME_R
752HAVE_TIMEGM
753HAVE_STRPTIME
754HAVE_NANOSLEEP
755HAVE_DECL_LOCALTIME_R
756GNULIB_TIME_R
757GNULIB_TIMEGM
758GNULIB_STRPTIME
759GNULIB_NANOSLEEP
760GNULIB_MKTIME
e275c824
PE
761LTLIBINTL
762LIBINTL
763GETOPT_H
764HAVE_GETOPT_H
765NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
766NEXT_GETOPT_H
767PRAGMA_COLUMNS
768PRAGMA_SYSTEM_HEADER
769INCLUDE_NEXT_AS_FIRST_DIRECTIVE
770INCLUDE_NEXT
771UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
772UNISTD_H_HAVE_WINSOCK2_H
773REPLACE_WRITE
774REPLACE_USLEEP
775REPLACE_UNLINKAT
776REPLACE_UNLINK
777REPLACE_TTYNAME_R
778REPLACE_SYMLINK
779REPLACE_SLEEP
780REPLACE_RMDIR
781REPLACE_READLINK
782REPLACE_PWRITE
783REPLACE_PREAD
784REPLACE_LSEEK
785REPLACE_LINKAT
786REPLACE_LINK
787REPLACE_LCHOWN
788REPLACE_GETPAGESIZE
789REPLACE_GETGROUPS
790REPLACE_GETLOGIN_R
791REPLACE_GETDOMAINNAME
792REPLACE_GETCWD
793REPLACE_FCHOWNAT
794REPLACE_DUP2
795REPLACE_DUP
796REPLACE_CLOSE
797REPLACE_CHOWN
798HAVE_SYS_PARAM_H
799HAVE_OS_H
800HAVE_DECL_TTYNAME_R
801HAVE_DECL_GETUSERSHELL
802HAVE_DECL_GETPAGESIZE
803HAVE_DECL_GETLOGIN_R
804HAVE_DECL_GETDOMAINNAME
805HAVE_DECL_FCHDIR
806HAVE_DECL_ENVIRON
807HAVE_USLEEP
808HAVE_UNLINKAT
809HAVE_SYMLINKAT
810HAVE_SYMLINK
811HAVE_SLEEP
812HAVE_READLINKAT
813HAVE_READLINK
814HAVE_PWRITE
815HAVE_PREAD
816HAVE_PIPE2
817HAVE_PIPE
818HAVE_LINKAT
819HAVE_LINK
820HAVE_LCHOWN
821HAVE_GETPAGESIZE
822HAVE_GETLOGIN
823HAVE_GETHOSTNAME
824HAVE_GETGROUPS
825HAVE_GETDTABLESIZE
826HAVE_FTRUNCATE
827HAVE_FSYNC
828HAVE_FCHOWNAT
829HAVE_FCHDIR
830HAVE_FACCESSAT
831HAVE_EUIDACCESS
832HAVE_DUP3
833HAVE_DUP2
834HAVE_CHOWN
835GNULIB_WRITE
836GNULIB_USLEEP
837GNULIB_UNLINKAT
838GNULIB_UNLINK
839GNULIB_UNISTD_H_SIGPIPE
840GNULIB_UNISTD_H_GETOPT
841GNULIB_TTYNAME_R
842GNULIB_SYMLINKAT
843GNULIB_SYMLINK
844GNULIB_SLEEP
845GNULIB_RMDIR
846GNULIB_READLINKAT
847GNULIB_READLINK
848GNULIB_PWRITE
849GNULIB_PREAD
850GNULIB_PIPE2
851GNULIB_PIPE
852GNULIB_LSEEK
853GNULIB_LINKAT
854GNULIB_LINK
855GNULIB_LCHOWN
856GNULIB_GETUSERSHELL
857GNULIB_GETPAGESIZE
858GNULIB_GETLOGIN_R
859GNULIB_GETLOGIN
860GNULIB_GETHOSTNAME
861GNULIB_GETGROUPS
862GNULIB_GETDTABLESIZE
863GNULIB_GETDOMAINNAME
864GNULIB_GETCWD
865GNULIB_FTRUNCATE
866GNULIB_FSYNC
867GNULIB_FCHOWNAT
868GNULIB_FCHDIR
869GNULIB_FACCESSAT
870GNULIB_EUIDACCESS
871GNULIB_ENVIRON
872GNULIB_DUP3
873GNULIB_DUP2
874GNULIB_CLOSE
875GNULIB_CHOWN
1f5d53eb 876GETLOADAVG_LIBS
9411886d 877REPLACE_WCTOMB
1f5d53eb
PE
878REPLACE_UNSETENV
879REPLACE_STRTOD
880REPLACE_SETENV
881REPLACE_REALPATH
882REPLACE_REALLOC
883REPLACE_PUTENV
884REPLACE_MKSTEMP
9411886d 885REPLACE_MBTOWC
1f5d53eb
PE
886REPLACE_MALLOC
887REPLACE_CANONICALIZE_FILE_NAME
888REPLACE_CALLOC
889HAVE_DECL_UNSETENV
890HAVE_UNLOCKPT
891HAVE_SYS_LOADAVG_H
892HAVE_STRUCT_RANDOM_DATA
893HAVE_STRTOULL
894HAVE_STRTOLL
895HAVE_STRTOD
896HAVE_DECL_SETENV
897HAVE_SETENV
898HAVE_RPMATCH
899HAVE_REALPATH
900HAVE_RANDOM_R
901HAVE_RANDOM_H
902HAVE_PTSNAME
903HAVE_MKSTEMPS
904HAVE_MKSTEMP
905HAVE_MKOSTEMPS
906HAVE_MKOSTEMP
907HAVE_MKDTEMP
908HAVE_GRANTPT
909HAVE_GETSUBOPT
910HAVE_DECL_GETLOADAVG
911HAVE_CANONICALIZE_FILE_NAME
912HAVE_ATOLL
913HAVE__EXIT
9411886d 914GNULIB_WCTOMB
1f5d53eb
PE
915GNULIB_UNSETENV
916GNULIB_UNLOCKPT
917GNULIB_SYSTEM_POSIX
918GNULIB_STRTOULL
919GNULIB_STRTOLL
920GNULIB_STRTOD
921GNULIB_SETENV
922GNULIB_RPMATCH
923GNULIB_REALPATH
924GNULIB_REALLOC_POSIX
925GNULIB_RANDOM_R
926GNULIB_PUTENV
927GNULIB_PTSNAME
928GNULIB_MKSTEMPS
929GNULIB_MKSTEMP
930GNULIB_MKOSTEMPS
931GNULIB_MKOSTEMP
932GNULIB_MKDTEMP
9411886d 933GNULIB_MBTOWC
1f5d53eb
PE
934GNULIB_MALLOC_POSIX
935GNULIB_GRANTPT
936GNULIB_GETSUBOPT
937GNULIB_GETLOADAVG
938GNULIB_CANONICALIZE_FILE_NAME
939GNULIB_CALLOC_POSIX
940GNULIB_ATOLL
941GNULIB__EXIT
743c80a7
PE
942GL_COND_LIBTOOL_FALSE
943GL_COND_LIBTOOL_TRUE
067d23c9
KY
944BLESSMAIL_TARGET
945LIBS_MAIL
946liblockfile
947ALLOCA
948LIBXML2_LIBS
949LIBXML2_CFLAGS
950LIBXSM
951LIBGPM
952LIBGIF
953LIBTIFF
954LIBPNG
955LIBJPEG
956LIBXPM
957FREETYPE_LIBS
958FREETYPE_CFLAGS
959M17N_FLT_LIBS
960M17N_FLT_CFLAGS
961LIBOTF_LIBS
962LIBOTF_CFLAGS
963XFT_LIBS
964XFT_CFLAGS
965FONTCONFIG_LIBS
966FONTCONFIG_CFLAGS
967LIBXMU
968LIBXTR6
969LIBGNUTLS_LIBS
970LIBGNUTLS_CFLAGS
971LIBSELINUX_LIBS
972GCONF_LIBS
973GCONF_CFLAGS
974DBUS_OBJ
975DBUS_LIBS
976DBUS_CFLAGS
977GTK_OBJ
978GTK_LIBS
979GTK_CFLAGS
980IMAGEMAGICK_LIBS
981IMAGEMAGICK_CFLAGS
982RSVG_LIBS
983RSVG_CFLAGS
984VMLIMIT_OBJ
985GMALLOC_OBJ
986HAVE_XSERVER
987LIB_STANDARD
988NS_SUPPORT
00b3c7ac 989NS_OBJC_OBJ
067d23c9
KY
990NS_OBJ
991TEMACS_LDFLAGS2
992LD_SWITCH_X_SITE_AUX_RPATH
993LD_SWITCH_X_SITE_AUX
994XMKMF
995DEPFLAGS
996MKDEPDIR
067d23c9
KY
997CFLAGS_SOUND
998ALSA_LIBS
999ALSA_CFLAGS
1000PKG_CONFIG
1001LIBSOUND
1002START_FILES
1003LIB_MATH
1004CRT_DIR
1005LIBS_SYSTEM
1006C_SWITCH_SYSTEM
1007UNEXEC_OBJ
1008C_SWITCH_MACHINE
1009LD_SWITCH_SYSTEM
1010CANNOT_DUMP
96f129d5 1011HAVE_MAKEINFO
067d23c9
KY
1012GZIP_PROG
1013INSTALL_INFO
067d23c9
KY
1014C_WARNINGS_SWITCH
1015EGREP
1016GREP
1017CPP
743c80a7
PE
1018RANLIB
1019am__fastdepCC_FALSE
1020am__fastdepCC_TRUE
1021CCDEPMODE
1022AMDEPBACKSLASH
1023AMDEP_FALSE
1024AMDEP_TRUE
1025am__quote
1026am__include
1027DEPDIR
067d23c9
KY
1028OBJEXT
1029EXEEXT
1030ac_ct_CC
1031CPPFLAGS
1032LDFLAGS
1033CFLAGS
1034CC
1035host_os
1036host_vendor
1037host_cpu
1038host
1039build_os
1040build_vendor
1041build_cpu
1042build
1043PROFILING_CFLAGS
1044MAINT
1045GZIP_INFO
743c80a7
PE
1046am__untar
1047am__tar
1048AMTAR
1049am__leading_dot
1050SET_MAKE
1051AWK
1052mkdir_p
1053MKDIR_P
1054INSTALL_STRIP_PROGRAM
1055STRIP
1056install_sh
1057MAKEINFO
1058AUTOHEADER
1059AUTOMAKE
1060AUTOCONF
1061ACLOCAL
1062VERSION
1063PACKAGE
1064CYGPATH_W
1065am__isrc
1066INSTALL_DATA
1067INSTALL_SCRIPT
1068INSTALL_PROGRAM
067d23c9
KY
1069target_alias
1070host_alias
1071build_alias
1072LIBS
1073ECHO_T
1074ECHO_N
1075ECHO_C
1076DEFS
1077mandir
1078localedir
1079libdir
1080psdir
1081pdfdir
1082dvidir
1083htmldir
1084infodir
1085docdir
1086oldincludedir
1087includedir
1088localstatedir
1089sharedstatedir
1090sysconfdir
1091datadir
1092datarootdir
1093libexecdir
1094sbindir
1095bindir
1096program_transform_name
1097prefix
1098exec_prefix
1099PACKAGE_URL
1100PACKAGE_BUGREPORT
1101PACKAGE_STRING
1102PACKAGE_VERSION
1103PACKAGE_TARNAME
1104PACKAGE_NAME
1105PATH_SEPARATOR
1106SHELL'
1107ac_subst_files='deps_frag
1108ns_frag'
1109ac_user_opts='
1110enable_option_checking
1111with_pop
1112with_kerberos
1113with_kerberos5
1114with_hesiod
1115with_mmdf
1116with_mail_unlink
1117with_mailhost
1118with_sound
1119with_sync_input
1120with_x_toolkit
1121with_xpm
1122with_jpeg
1123with_tiff
1124with_gif
1125with_png
1126with_rsvg
1127with_xml2
1128with_imagemagick
1129with_xft
1130with_libotf
1131with_m17n_flt
1132with_toolkit_scroll_bars
1133with_xaw3d
1134with_xim
1135with_ns
1136with_gpm
1137with_dbus
1138with_gconf
1139with_selinux
1140with_gnutls
1141with_makeinfo
1142with_compress_info
1143with_pkg_config_prog
1144with_crt_dir
4fc5868a 1145with_gameuser
067d23c9
KY
1146with_gnustep_conf
1147enable_ns_self_contained
1148enable_asserts
1149enable_maintainer_mode
1150enable_locallisppath
1151enable_checking
1152enable_use_lisp_union_type
1153enable_profiling
1154enable_autodepend
743c80a7 1155enable_dependency_tracking
067d23c9
KY
1156enable_largefile
1157with_x
1158'
1159 ac_precious_vars='build_alias
1160host_alias
1161target_alias
1162CC
1163CFLAGS
1164LDFLAGS
1165LIBS
1166CPPFLAGS
1167CPP
1f5d53eb
PE
1168CPPFLAGS
1169CPP
1170CPPFLAGS
067d23c9
KY
1171XMKMF'
1172
1173
1174# Initialize some variables set by options.
1175ac_init_help=
1176ac_init_version=false
1177ac_unrecognized_opts=
1178ac_unrecognized_sep=
1179# The variables have the same names as the options, with
1180# dashes changed to underlines.
1181cache_file=/dev/null
1182exec_prefix=NONE
1183no_create=
1184no_recursion=
1185prefix=NONE
1186program_prefix=NONE
1187program_suffix=NONE
1188program_transform_name=s,x,x,
1189silent=
1190site=
1191srcdir=
1192verbose=
1193x_includes=NONE
1194x_libraries=NONE
1195
1196# Installation directory options.
1197# These are left unexpanded so users can "make install exec_prefix=/foo"
1198# and all the variables that are supposed to be based on exec_prefix
1199# by default will actually change.
1200# Use braces instead of parens because sh, perl, etc. also accept them.
1201# (The list follows the same order as the GNU Coding Standards.)
1202bindir='${exec_prefix}/bin'
1203sbindir='${exec_prefix}/sbin'
1204libexecdir='${exec_prefix}/libexec'
1205datarootdir='${prefix}/share'
1206datadir='${datarootdir}'
1207sysconfdir='${prefix}/etc'
1208sharedstatedir='${prefix}/com'
1209localstatedir='${prefix}/var'
1210includedir='${prefix}/include'
1211oldincludedir='/usr/include'
1212docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1213infodir='${datarootdir}/info'
1214htmldir='${docdir}'
1215dvidir='${docdir}'
1216pdfdir='${docdir}'
1217psdir='${docdir}'
1218libdir='${exec_prefix}/lib'
1219localedir='${datarootdir}/locale'
1220mandir='${datarootdir}/man'
1221
1222ac_prev=
1223ac_dashdash=
1224for ac_option
1225do
1226 # If the previous option needs an argument, assign it.
1227 if test -n "$ac_prev"; then
1228 eval $ac_prev=\$ac_option
1229 ac_prev=
1230 continue
1231 fi
1232
1233 case $ac_option in
2018939f
AS
1234 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1235 *=) ac_optarg= ;;
1236 *) ac_optarg=yes ;;
067d23c9
KY
1237 esac
1238
1239 # Accept the important Cygnus configure options, so we can diagnose typos.
1240
1241 case $ac_dashdash$ac_option in
1242 --)
1243 ac_dashdash=yes ;;
1244
1245 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1246 ac_prev=bindir ;;
1247 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1248 bindir=$ac_optarg ;;
1249
1250 -build | --build | --buil | --bui | --bu)
1251 ac_prev=build_alias ;;
1252 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1253 build_alias=$ac_optarg ;;
1254
1255 -cache-file | --cache-file | --cache-fil | --cache-fi \
1256 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1257 ac_prev=cache_file ;;
1258 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1259 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1260 cache_file=$ac_optarg ;;
1261
1262 --config-cache | -C)
1263 cache_file=config.cache ;;
1264
1265 -datadir | --datadir | --datadi | --datad)
1266 ac_prev=datadir ;;
1267 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1268 datadir=$ac_optarg ;;
1269
1270 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1271 | --dataroo | --dataro | --datar)
1272 ac_prev=datarootdir ;;
1273 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1274 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1275 datarootdir=$ac_optarg ;;
1276
1277 -disable-* | --disable-*)
1278 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1281 as_fn_error $? "invalid feature name: $ac_useropt"
067d23c9
KY
1282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1285 *"
1286"enable_$ac_useropt"
1287"*) ;;
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1290 esac
1291 eval enable_$ac_useropt=no ;;
1292
1293 -docdir | --docdir | --docdi | --doc | --do)
1294 ac_prev=docdir ;;
1295 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1296 docdir=$ac_optarg ;;
1297
1298 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1299 ac_prev=dvidir ;;
1300 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1301 dvidir=$ac_optarg ;;
1302
1303 -enable-* | --enable-*)
1304 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1307 as_fn_error $? "invalid feature name: $ac_useropt"
067d23c9
KY
1308 ac_useropt_orig=$ac_useropt
1309 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310 case $ac_user_opts in
1311 *"
1312"enable_$ac_useropt"
1313"*) ;;
1314 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1315 ac_unrecognized_sep=', ';;
1316 esac
1317 eval enable_$ac_useropt=\$ac_optarg ;;
1318
1319 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1320 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1321 | --exec | --exe | --ex)
1322 ac_prev=exec_prefix ;;
1323 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1324 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1325 | --exec=* | --exe=* | --ex=*)
1326 exec_prefix=$ac_optarg ;;
1327
1328 -gas | --gas | --ga | --g)
1329 # Obsolete; use --with-gas.
1330 with_gas=yes ;;
1331
1332 -help | --help | --hel | --he | -h)
1333 ac_init_help=long ;;
1334 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1335 ac_init_help=recursive ;;
1336 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1337 ac_init_help=short ;;
1338
1339 -host | --host | --hos | --ho)
1340 ac_prev=host_alias ;;
1341 -host=* | --host=* | --hos=* | --ho=*)
1342 host_alias=$ac_optarg ;;
1343
1344 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1345 ac_prev=htmldir ;;
1346 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1347 | --ht=*)
1348 htmldir=$ac_optarg ;;
1349
1350 -includedir | --includedir | --includedi | --included | --include \
1351 | --includ | --inclu | --incl | --inc)
1352 ac_prev=includedir ;;
1353 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1354 | --includ=* | --inclu=* | --incl=* | --inc=*)
1355 includedir=$ac_optarg ;;
1356
1357 -infodir | --infodir | --infodi | --infod | --info | --inf)
1358 ac_prev=infodir ;;
1359 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1360 infodir=$ac_optarg ;;
1361
1362 -libdir | --libdir | --libdi | --libd)
1363 ac_prev=libdir ;;
1364 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1365 libdir=$ac_optarg ;;
1366
1367 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1368 | --libexe | --libex | --libe)
1369 ac_prev=libexecdir ;;
1370 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1371 | --libexe=* | --libex=* | --libe=*)
1372 libexecdir=$ac_optarg ;;
1373
1374 -localedir | --localedir | --localedi | --localed | --locale)
1375 ac_prev=localedir ;;
1376 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1377 localedir=$ac_optarg ;;
1378
1379 -localstatedir | --localstatedir | --localstatedi | --localstated \
1380 | --localstate | --localstat | --localsta | --localst | --locals)
1381 ac_prev=localstatedir ;;
1382 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1383 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1384 localstatedir=$ac_optarg ;;
1385
1386 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1387 ac_prev=mandir ;;
1388 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1389 mandir=$ac_optarg ;;
1390
1391 -nfp | --nfp | --nf)
1392 # Obsolete; use --without-fp.
1393 with_fp=no ;;
1394
1395 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1396 | --no-cr | --no-c | -n)
1397 no_create=yes ;;
1398
1399 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1400 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1401 no_recursion=yes ;;
1402
1403 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1404 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1405 | --oldin | --oldi | --old | --ol | --o)
1406 ac_prev=oldincludedir ;;
1407 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1408 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1409 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1410 oldincludedir=$ac_optarg ;;
1411
1412 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1413 ac_prev=prefix ;;
1414 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1415 prefix=$ac_optarg ;;
1416
1417 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1418 | --program-pre | --program-pr | --program-p)
1419 ac_prev=program_prefix ;;
1420 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1421 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1422 program_prefix=$ac_optarg ;;
1423
1424 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1425 | --program-suf | --program-su | --program-s)
1426 ac_prev=program_suffix ;;
1427 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1428 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1429 program_suffix=$ac_optarg ;;
1430
1431 -program-transform-name | --program-transform-name \
1432 | --program-transform-nam | --program-transform-na \
1433 | --program-transform-n | --program-transform- \
1434 | --program-transform | --program-transfor \
1435 | --program-transfo | --program-transf \
1436 | --program-trans | --program-tran \
1437 | --progr-tra | --program-tr | --program-t)
1438 ac_prev=program_transform_name ;;
1439 -program-transform-name=* | --program-transform-name=* \
1440 | --program-transform-nam=* | --program-transform-na=* \
1441 | --program-transform-n=* | --program-transform-=* \
1442 | --program-transform=* | --program-transfor=* \
1443 | --program-transfo=* | --program-transf=* \
1444 | --program-trans=* | --program-tran=* \
1445 | --progr-tra=* | --program-tr=* | --program-t=*)
1446 program_transform_name=$ac_optarg ;;
1447
1448 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1449 ac_prev=pdfdir ;;
1450 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1451 pdfdir=$ac_optarg ;;
1452
1453 -psdir | --psdir | --psdi | --psd | --ps)
1454 ac_prev=psdir ;;
1455 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1456 psdir=$ac_optarg ;;
1457
1458 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1459 | -silent | --silent | --silen | --sile | --sil)
1460 silent=yes ;;
1461
1462 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1463 ac_prev=sbindir ;;
1464 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1465 | --sbi=* | --sb=*)
1466 sbindir=$ac_optarg ;;
1467
1468 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1469 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1470 | --sharedst | --shareds | --shared | --share | --shar \
1471 | --sha | --sh)
1472 ac_prev=sharedstatedir ;;
1473 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1474 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1475 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1476 | --sha=* | --sh=*)
1477 sharedstatedir=$ac_optarg ;;
1478
1479 -site | --site | --sit)
1480 ac_prev=site ;;
1481 -site=* | --site=* | --sit=*)
1482 site=$ac_optarg ;;
1483
1484 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1485 ac_prev=srcdir ;;
1486 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1487 srcdir=$ac_optarg ;;
1488
1489 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1490 | --syscon | --sysco | --sysc | --sys | --sy)
1491 ac_prev=sysconfdir ;;
1492 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1493 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1494 sysconfdir=$ac_optarg ;;
1495
1496 -target | --target | --targe | --targ | --tar | --ta | --t)
1497 ac_prev=target_alias ;;
1498 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1499 target_alias=$ac_optarg ;;
1500
1501 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1502 verbose=yes ;;
1503
1504 -version | --version | --versio | --versi | --vers | -V)
1505 ac_init_version=: ;;
1506
1507 -with-* | --with-*)
1508 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1509 # Reject names that are not valid shell variable names.
1510 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1511 as_fn_error $? "invalid package name: $ac_useropt"
067d23c9
KY
1512 ac_useropt_orig=$ac_useropt
1513 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1514 case $ac_user_opts in
1515 *"
1516"with_$ac_useropt"
1517"*) ;;
1518 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1519 ac_unrecognized_sep=', ';;
1520 esac
1521 eval with_$ac_useropt=\$ac_optarg ;;
1522
1523 -without-* | --without-*)
1524 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1525 # Reject names that are not valid shell variable names.
1526 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1527 as_fn_error $? "invalid package name: $ac_useropt"
067d23c9
KY
1528 ac_useropt_orig=$ac_useropt
1529 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1530 case $ac_user_opts in
1531 *"
1532"with_$ac_useropt"
1533"*) ;;
1534 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1535 ac_unrecognized_sep=', ';;
1536 esac
1537 eval with_$ac_useropt=no ;;
1538
1539 --x)
1540 # Obsolete; use --with-x.
1541 with_x=yes ;;
1542
1543 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1544 | --x-incl | --x-inc | --x-in | --x-i)
1545 ac_prev=x_includes ;;
1546 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1547 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1548 x_includes=$ac_optarg ;;
1549
1550 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1551 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1552 ac_prev=x_libraries ;;
1553 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1554 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1555 x_libraries=$ac_optarg ;;
1556
2018939f
AS
1557 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1558Try \`$0 --help' for more information"
067d23c9
KY
1559 ;;
1560
1561 *=*)
1562 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1563 # Reject names that are not valid shell variable names.
1564 case $ac_envvar in #(
1565 '' | [0-9]* | *[!_$as_cr_alnum]* )
2018939f 1566 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
067d23c9
KY
1567 esac
1568 eval $ac_envvar=\$ac_optarg
1569 export $ac_envvar ;;
1570
1571 *)
1572 # FIXME: should be removed in autoconf 3.0.
1573 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1574 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1575 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d6974efa 1576 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
067d23c9
KY
1577 ;;
1578
1579 esac
1580done
1581
1582if test -n "$ac_prev"; then
1583 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2018939f 1584 as_fn_error $? "missing argument to $ac_option"
067d23c9
KY
1585fi
1586
1587if test -n "$ac_unrecognized_opts"; then
1588 case $enable_option_checking in
1589 no) ;;
2018939f 1590 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
067d23c9
KY
1591 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1592 esac
1593fi
1594
1595# Check all directory arguments for consistency.
1596for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1597 datadir sysconfdir sharedstatedir localstatedir includedir \
1598 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1599 libdir localedir mandir
1600do
1601 eval ac_val=\$$ac_var
1602 # Remove trailing slashes.
1603 case $ac_val in
1604 */ )
1605 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1606 eval $ac_var=\$ac_val;;
1607 esac
1608 # Be sure to have absolute directory names.
1609 case $ac_val in
1610 [\\/$]* | ?:[\\/]* ) continue;;
1611 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1612 esac
2018939f 1613 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
067d23c9
KY
1614done
1615
1616# There might be people who depend on the old broken behavior: `$host'
1617# used to hold the argument of --host etc.
1618# FIXME: To remove some day.
1619build=$build_alias
1620host=$host_alias
1621target=$target_alias
1622
1623# FIXME: To remove some day.
1624if test "x$host_alias" != x; then
1625 if test "x$build_alias" = x; then
1626 cross_compiling=maybe
2018939f
AS
1627 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1628 If a cross compiler is detected then cross compile mode will be used" >&2
067d23c9
KY
1629 elif test "x$build_alias" != "x$host_alias"; then
1630 cross_compiling=yes
1631 fi
1632fi
1633
1634ac_tool_prefix=
1635test -n "$host_alias" && ac_tool_prefix=$host_alias-
1636
1637test "$silent" = yes && exec 6>/dev/null
1638
1639
1640ac_pwd=`pwd` && test -n "$ac_pwd" &&
1641ac_ls_di=`ls -di .` &&
1642ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2018939f 1643 as_fn_error $? "working directory cannot be determined"
067d23c9 1644test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2018939f 1645 as_fn_error $? "pwd does not report name of working directory"
067d23c9
KY
1646
1647
1648# Find the source files, if location was not specified.
1649if test -z "$srcdir"; then
1650 ac_srcdir_defaulted=yes
1651 # Try the directory containing this script, then the parent directory.
1652 ac_confdir=`$as_dirname -- "$as_myself" ||
1653$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1654 X"$as_myself" : 'X\(//\)[^/]' \| \
1655 X"$as_myself" : 'X\(//\)$' \| \
1656 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1657$as_echo X"$as_myself" |
1658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1659 s//\1/
1660 q
1661 }
1662 /^X\(\/\/\)[^/].*/{
1663 s//\1/
1664 q
1665 }
1666 /^X\(\/\/\)$/{
1667 s//\1/
1668 q
1669 }
1670 /^X\(\/\).*/{
1671 s//\1/
1672 q
1673 }
1674 s/.*/./; q'`
1675 srcdir=$ac_confdir
1676 if test ! -r "$srcdir/$ac_unique_file"; then
1677 srcdir=..
1678 fi
1679else
1680 ac_srcdir_defaulted=no
1681fi
1682if test ! -r "$srcdir/$ac_unique_file"; then
1683 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2018939f 1684 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
067d23c9
KY
1685fi
1686ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1687ac_abs_confdir=`(
2018939f 1688 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
067d23c9
KY
1689 pwd)`
1690# When building in place, set srcdir=.
1691if test "$ac_abs_confdir" = "$ac_pwd"; then
1692 srcdir=.
1693fi
1694# Remove unnecessary trailing slashes from srcdir.
1695# Double slashes in file names in object file debugging info
1696# mess up M-x gdb in Emacs.
1697case $srcdir in
1698*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1699esac
1700for ac_var in $ac_precious_vars; do
1701 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1702 eval ac_env_${ac_var}_value=\$${ac_var}
1703 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1704 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1705done
1706
1707#
1708# Report the --help message.
1709#
1710if test "$ac_init_help" = "long"; then
1711 # Omit some internal or obsolete options to make the list less imposing.
1712 # This message is too long to be a string in the A/UX 3.1 sh.
1713 cat <<_ACEOF
1714\`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1715
1716Usage: $0 [OPTION]... [VAR=VALUE]...
1717
1718To assign environment variables (e.g., CC, CFLAGS...), specify them as
1719VAR=VALUE. See below for descriptions of some of the useful variables.
1720
1721Defaults for the options are specified in brackets.
1722
1723Configuration:
1724 -h, --help display this help and exit
1725 --help=short display options specific to this package
1726 --help=recursive display the short help of all the included packages
1727 -V, --version display version information and exit
2018939f 1728 -q, --quiet, --silent do not print \`checking ...' messages
067d23c9
KY
1729 --cache-file=FILE cache test results in FILE [disabled]
1730 -C, --config-cache alias for \`--cache-file=config.cache'
1731 -n, --no-create do not create output files
1732 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1733
1734Installation directories:
1735 --prefix=PREFIX install architecture-independent files in PREFIX
1736 [$ac_default_prefix]
1737 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1738 [PREFIX]
1739
1740By default, \`make install' will install all the files in
1741\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1742an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1743for instance \`--prefix=\$HOME'.
1744
1745For better control, use the options below.
1746
1747Fine tuning of the installation directories:
1748 --bindir=DIR user executables [EPREFIX/bin]
1749 --sbindir=DIR system admin executables [EPREFIX/sbin]
1750 --libexecdir=DIR program executables [EPREFIX/libexec]
1751 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1752 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1753 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1754 --libdir=DIR object code libraries [EPREFIX/lib]
1755 --includedir=DIR C header files [PREFIX/include]
1756 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1757 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1758 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1759 --infodir=DIR info documentation [DATAROOTDIR/info]
1760 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1761 --mandir=DIR man documentation [DATAROOTDIR/man]
1762 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1763 --htmldir=DIR html documentation [DOCDIR]
1764 --dvidir=DIR dvi documentation [DOCDIR]
1765 --pdfdir=DIR pdf documentation [DOCDIR]
1766 --psdir=DIR ps documentation [DOCDIR]
1767_ACEOF
1768
1769 cat <<\_ACEOF
1770
1771Program names:
1772 --program-prefix=PREFIX prepend PREFIX to installed program names
1773 --program-suffix=SUFFIX append SUFFIX to installed program names
1774 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1775
1776X features:
1777 --x-includes=DIR X include files are in DIR
1778 --x-libraries=DIR X library files are in DIR
1779
1780System types:
1781 --build=BUILD configure for building on BUILD [guessed]
1782 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1783_ACEOF
1784fi
1785
1786if test -n "$ac_init_help"; then
1787 case $ac_init_help in
1788 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1789 esac
1790 cat <<\_ACEOF
1791
1792Optional Features:
1793 --disable-option-checking ignore unrecognized --enable/--with options
1794 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1795 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1796 --disable-ns-self-contained
1797 disable self contained build under NeXTstep
1798 --enable-asserts compile code with asserts enabled
1799 --enable-maintainer-mode
1800 enable make rules and dependencies not useful (and
1801 sometimes confusing) to the casual installer
1802 --enable-locallisppath=PATH
1803 directories Emacs should search for lisp files
1804 specific to this site
1805 --enable-checking[=LIST]
1806 enable expensive run-time checks. With LIST, enable
1807 only specific categories of checks. Categories are:
1808 all,yes,no. Flags are: stringbytes, stringoverrun,
1809 stringfreelist, xmallocoverrun, conslist
1810 --enable-use-lisp-union-type
1811 use a union for the Lisp_Object data type. This is
1812 only useful for development for catching certain
1813 types of bugs.
1814 --enable-profiling build emacs with profiling support. This might not
1815 work on all platforms
1816 --enable-autodepend automatically generate dependencies to .h-files.
1817 Requires GNU Make and Gcc. Enabled if GNU Make and
1818 Gcc is found
743c80a7
PE
1819 --disable-dependency-tracking speeds up one-time build
1820 --enable-dependency-tracking do not reject slow dependency extractors
067d23c9
KY
1821 --disable-largefile omit support for large files
1822
1823Optional Packages:
1824 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1825 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1826 --without-pop don't support POP mail retrieval with movemail
1827 --with-kerberos support Kerberos-authenticated POP
1828 --with-kerberos5 support Kerberos version 5 authenticated POP
1829 --with-hesiod support Hesiod to get the POP server host
1830 --with-mmdf support MMDF mailboxes
1831 --with-mail-unlink unlink, rather than empty, mail spool after reading
1832 --with-mailhost=HOSTNAME
1833 string giving default POP mail host
1834 --without-sound don't compile with sound support
1835 --without-sync-input process async input synchronously
1836 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1837 lucid or athena, motif, no)
1838 --without-xpm don't compile with XPM image support
1839 --without-jpeg don't compile with JPEG image support
1840 --without-tiff don't compile with TIFF image support
1841 --without-gif don't compile with GIF image support
1842 --without-png don't compile with PNG image support
1843 --without-rsvg don't compile with SVG image support
1844 --without-xml2 don't compile with XML parsing support
1845 --without-imagemagick don't compile with ImageMagick image support
1846 --without-xft don't use XFT for anti aliased fonts
1847 --without-libotf don't use libotf for OpenType font support
1848 --without-m17n-flt don't use m17n-flt for text shaping
1849 --without-toolkit-scroll-bars
1850 don't use Motif or Xaw3d scroll bars
1851 --without-xaw3d don't use Xaw3d
1852 --without-xim don't use X11 XIM
1853 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1854 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1855 console
1856 --without-dbus don't compile with D-Bus support
1857 --without-gconf don't compile with GConf support
1858 --without-selinux don't compile with SELinux support
1859 --without-gnutls don't use -lgnutls for SSL/TLS support
1860 --without-makeinfo don't require makeinfo for building manuals
1861 --without-compress-info don't compress the installed Info pages
1862 --with-pkg-config-prog=PATH
1863 path to pkg-config for finding GTK and librsvg
1864 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1865 /usr/lib, or /usr/lib64 on some platforms.
4fc5868a 1866 --with-gameuser=USER user for shared game score files
067d23c9
KY
1867 --with-gnustep-conf=PATH
1868 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1869 or /etc/GNUstep/GNUstep.conf
1870 --with-x use the X Window System
1871
1872Some influential environment variables:
1873 CC C compiler command
1874 CFLAGS C compiler flags
1875 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1876 nonstandard directory <lib dir>
1877 LIBS libraries to pass to the linker, e.g. -l<library>
1878 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1879 you have headers in a nonstandard directory <include dir>
1880 CPP C preprocessor
1881 XMKMF Path to xmkmf, Makefile generator for X Window System
1882
1883Use these variables to override the choices made by `configure' or to help
1884it to find libraries and programs with nonstandard names/locations.
1885
1886Report bugs to the package provider.
1887_ACEOF
1888ac_status=$?
1889fi
1890
1891if test "$ac_init_help" = "recursive"; then
1892 # If there are subdirs, report their specific --help.
1893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1894 test -d "$ac_dir" ||
1895 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1896 continue
1897 ac_builddir=.
1898
1899case "$ac_dir" in
1900.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1901*)
1902 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1903 # A ".." for each directory in $ac_dir_suffix.
1904 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1905 case $ac_top_builddir_sub in
1906 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1907 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1908 esac ;;
1909esac
1910ac_abs_top_builddir=$ac_pwd
1911ac_abs_builddir=$ac_pwd$ac_dir_suffix
1912# for backward compatibility:
1913ac_top_builddir=$ac_top_build_prefix
1914
1915case $srcdir in
1916 .) # We are building in place.
1917 ac_srcdir=.
1918 ac_top_srcdir=$ac_top_builddir_sub
1919 ac_abs_top_srcdir=$ac_pwd ;;
1920 [\\/]* | ?:[\\/]* ) # Absolute name.
1921 ac_srcdir=$srcdir$ac_dir_suffix;
1922 ac_top_srcdir=$srcdir
1923 ac_abs_top_srcdir=$srcdir ;;
1924 *) # Relative name.
1925 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1926 ac_top_srcdir=$ac_top_build_prefix$srcdir
1927 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1928esac
1929ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1930
1931 cd "$ac_dir" || { ac_status=$?; continue; }
1932 # Check for guested configure.
1933 if test -f "$ac_srcdir/configure.gnu"; then
1934 echo &&
1935 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1936 elif test -f "$ac_srcdir/configure"; then
1937 echo &&
1938 $SHELL "$ac_srcdir/configure" --help=recursive
1939 else
1940 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1941 fi || ac_status=$?
1942 cd "$ac_pwd" || { ac_status=$?; break; }
1943 done
1944fi
1945
1946test -n "$ac_init_help" && exit $ac_status
1947if $ac_init_version; then
1948 cat <<\_ACEOF
1949emacs configure 24.0.50
d6974efa 1950generated by GNU Autoconf 2.68
067d23c9 1951
2018939f 1952Copyright (C) 2010 Free Software Foundation, Inc.
067d23c9
KY
1953This configure script is free software; the Free Software Foundation
1954gives unlimited permission to copy, distribute and modify it.
1955_ACEOF
1956 exit
1957fi
1958
1959## ------------------------ ##
1960## Autoconf initialization. ##
1961## ------------------------ ##
1962
1963# ac_fn_c_try_compile LINENO
1964# --------------------------
1965# Try to compile conftest.$ac_ext, and return whether this succeeded.
1966ac_fn_c_try_compile ()
1967{
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 rm -f conftest.$ac_objext
1970 if { { ac_try="$ac_compile"
1971case "(($ac_try" in
1972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973 *) ac_try_echo=$ac_try;;
1974esac
1975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976$as_echo "$ac_try_echo"; } >&5
1977 (eval "$ac_compile") 2>conftest.err
1978 ac_status=$?
1979 if test -s conftest.err; then
1980 grep -v '^ *+' conftest.err >conftest.er1
1981 cat conftest.er1 >&5
1982 mv -f conftest.er1 conftest.err
1983 fi
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; } && {
1986 test -z "$ac_c_werror_flag" ||
1987 test ! -s conftest.err
1988 } && test -s conftest.$ac_objext; then :
1989 ac_retval=0
1990else
1991 $as_echo "$as_me: failed program was:" >&5
1992sed 's/^/| /' conftest.$ac_ext >&5
1993
1994 ac_retval=1
1995fi
d6974efa 1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
1997 as_fn_set_status $ac_retval
1998
1999} # ac_fn_c_try_compile
2000
067d23c9
KY
2001# ac_fn_c_try_cpp LINENO
2002# ----------------------
2003# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2004ac_fn_c_try_cpp ()
2005{
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 if { { ac_try="$ac_cpp conftest.$ac_ext"
2008case "(($ac_try" in
2009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010 *) ac_try_echo=$ac_try;;
2011esac
2012eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013$as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2015 ac_status=$?
2016 if test -s conftest.err; then
2017 grep -v '^ *+' conftest.err >conftest.er1
2018 cat conftest.er1 >&5
2019 mv -f conftest.er1 conftest.err
2020 fi
2021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018939f 2022 test $ac_status = 0; } > conftest.i && {
067d23c9
KY
2023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2024 test ! -s conftest.err
2025 }; then :
2026 ac_retval=0
2027else
2028 $as_echo "$as_me: failed program was:" >&5
2029sed 's/^/| /' conftest.$ac_ext >&5
2030
2031 ac_retval=1
2032fi
d6974efa 2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2034 as_fn_set_status $ac_retval
2035
2036} # ac_fn_c_try_cpp
2037
2038# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2039# -------------------------------------------------------
2040# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2041# the include files in INCLUDES and setting the cache variable VAR
2042# accordingly.
2043ac_fn_c_check_header_mongrel ()
2044{
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d6974efa 2046 if eval \${$3+:} false; then :
067d23c9
KY
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048$as_echo_n "checking for $2... " >&6; }
d6974efa 2049if eval \${$3+:} false; then :
067d23c9
KY
2050 $as_echo_n "(cached) " >&6
2051fi
2052eval ac_res=\$$3
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054$as_echo "$ac_res" >&6; }
2055else
2056 # Is the header compilable?
2057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2058$as_echo_n "checking $2 usability... " >&6; }
2059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060/* end confdefs.h. */
2061$4
2062#include <$2>
2063_ACEOF
2064if ac_fn_c_try_compile "$LINENO"; then :
2065 ac_header_compiler=yes
2066else
2067 ac_header_compiler=no
2068fi
2069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2071$as_echo "$ac_header_compiler" >&6; }
2072
2073# Is the header present?
2074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2075$as_echo_n "checking $2 presence... " >&6; }
2076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h. */
2078#include <$2>
2079_ACEOF
2080if ac_fn_c_try_cpp "$LINENO"; then :
2081 ac_header_preproc=yes
2082else
2083 ac_header_preproc=no
2084fi
2018939f 2085rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
2086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2087$as_echo "$ac_header_preproc" >&6; }
2088
2089# So? What about this header?
2090case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2091 yes:no: )
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2093$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2095$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2096 ;;
2097 no:yes:* )
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2099$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2101$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2103$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2105$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2107$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2108 ;;
2109esac
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2111$as_echo_n "checking for $2... " >&6; }
d6974efa 2112if eval \${$3+:} false; then :
067d23c9
KY
2113 $as_echo_n "(cached) " >&6
2114else
2115 eval "$3=\$ac_header_compiler"
2116fi
2117eval ac_res=\$$3
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2119$as_echo "$ac_res" >&6; }
2120fi
d6974efa 2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2122
2123} # ac_fn_c_check_header_mongrel
2124
2125# ac_fn_c_try_run LINENO
2126# ----------------------
2127# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2128# that executables *can* be run.
2129ac_fn_c_try_run ()
2130{
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 if { { ac_try="$ac_link"
2133case "(($ac_try" in
2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135 *) ac_try_echo=$ac_try;;
2136esac
2137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2138$as_echo "$ac_try_echo"; } >&5
2139 (eval "$ac_link") 2>&5
2140 ac_status=$?
2141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2142 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2143 { { case "(($ac_try" in
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2146esac
2147eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2148$as_echo "$ac_try_echo"; } >&5
2149 (eval "$ac_try") 2>&5
2150 ac_status=$?
2151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2152 test $ac_status = 0; }; }; then :
2153 ac_retval=0
2154else
2155 $as_echo "$as_me: program exited with status $ac_status" >&5
2156 $as_echo "$as_me: failed program was:" >&5
2157sed 's/^/| /' conftest.$ac_ext >&5
2158
2159 ac_retval=$ac_status
2160fi
2161 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6974efa 2162 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2163 as_fn_set_status $ac_retval
2164
2165} # ac_fn_c_try_run
2166
2167# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2168# -------------------------------------------------------
2169# Tests whether HEADER exists and can be compiled using the include files in
2170# INCLUDES, setting the cache variable VAR accordingly.
2171ac_fn_c_check_header_compile ()
2172{
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175$as_echo_n "checking for $2... " >&6; }
d6974efa 2176if eval \${$3+:} false; then :
067d23c9
KY
2177 $as_echo_n "(cached) " >&6
2178else
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180/* end confdefs.h. */
2181$4
2182#include <$2>
2183_ACEOF
2184if ac_fn_c_try_compile "$LINENO"; then :
2185 eval "$3=yes"
2186else
2187 eval "$3=no"
2188fi
2189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190fi
2191eval ac_res=\$$3
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193$as_echo "$ac_res" >&6; }
d6974efa 2194 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2195
2196} # ac_fn_c_check_header_compile
2197
1fd182f0
PE
2198# ac_fn_c_try_link LINENO
2199# -----------------------
2200# Try to link conftest.$ac_ext, and return whether this succeeded.
2201ac_fn_c_try_link ()
2202{
2203 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204 rm -f conftest.$ac_objext conftest$ac_exeext
2205 if { { ac_try="$ac_link"
2206case "(($ac_try" in
2207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2208 *) ac_try_echo=$ac_try;;
2209esac
2210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2211$as_echo "$ac_try_echo"; } >&5
2212 (eval "$ac_link") 2>conftest.err
2213 ac_status=$?
2214 if test -s conftest.err; then
2215 grep -v '^ *+' conftest.err >conftest.er1
2216 cat conftest.er1 >&5
2217 mv -f conftest.er1 conftest.err
2218 fi
2219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2220 test $ac_status = 0; } && {
2221 test -z "$ac_c_werror_flag" ||
2222 test ! -s conftest.err
2223 } && test -s conftest$ac_exeext && {
2224 test "$cross_compiling" = yes ||
2225 $as_test_x conftest$ac_exeext
2226 }; then :
2227 ac_retval=0
2228else
2229 $as_echo "$as_me: failed program was:" >&5
2230sed 's/^/| /' conftest.$ac_ext >&5
2231
2232 ac_retval=1
2233fi
2234 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2235 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2236 # interfere with the next link command; also delete a directory that is
2237 # left behind by Apple's compiler. We do this before executing the actions.
2238 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6974efa 2239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1fd182f0
PE
2240 as_fn_set_status $ac_retval
2241
2242} # ac_fn_c_try_link
2243
2018939f
AS
2244# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2245# ---------------------------------------------
2246# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2247# accordingly.
067d23c9
KY
2248ac_fn_c_check_decl ()
2249{
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018939f
AS
2251 as_decl_name=`echo $2|sed 's/ *(.*//'`
2252 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2254$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d6974efa 2255if eval \${$3+:} false; then :
067d23c9
KY
2256 $as_echo_n "(cached) " >&6
2257else
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259/* end confdefs.h. */
2260$4
2261int
2262main ()
2263{
2018939f
AS
2264#ifndef $as_decl_name
2265#ifdef __cplusplus
2266 (void) $as_decl_use;
2267#else
2268 (void) $as_decl_name;
2269#endif
067d23c9
KY
2270#endif
2271
2272 ;
2273 return 0;
2274}
2275_ACEOF
2276if ac_fn_c_try_compile "$LINENO"; then :
2277 eval "$3=yes"
2278else
2279 eval "$3=no"
2280fi
2281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282fi
2283eval ac_res=\$$3
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2285$as_echo "$ac_res" >&6; }
d6974efa 2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2287
2288} # ac_fn_c_check_decl
2289
2290# ac_fn_c_check_header_preproc LINENO HEADER VAR
2291# ----------------------------------------------
2292# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2293ac_fn_c_check_header_preproc ()
2294{
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2297$as_echo_n "checking for $2... " >&6; }
d6974efa 2298if eval \${$3+:} false; then :
067d23c9
KY
2299 $as_echo_n "(cached) " >&6
2300else
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302/* end confdefs.h. */
2303#include <$2>
2304_ACEOF
2305if ac_fn_c_try_cpp "$LINENO"; then :
2306 eval "$3=yes"
2307else
2308 eval "$3=no"
2309fi
2018939f 2310rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
2311fi
2312eval ac_res=\$$3
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314$as_echo "$ac_res" >&6; }
d6974efa 2315 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2316
2317} # ac_fn_c_check_header_preproc
2318
2319# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2320# ----------------------------------------------------
2321# Tries to find if the field MEMBER exists in type AGGR, after including
2322# INCLUDES, setting cache variable VAR accordingly.
2323ac_fn_c_check_member ()
2324{
2325 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2327$as_echo_n "checking for $2.$3... " >&6; }
d6974efa 2328if eval \${$4+:} false; then :
067d23c9
KY
2329 $as_echo_n "(cached) " >&6
2330else
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332/* end confdefs.h. */
2333$5
2334int
2335main ()
2336{
2337static $2 ac_aggr;
2338if (ac_aggr.$3)
2339return 0;
2340 ;
2341 return 0;
2342}
2343_ACEOF
2344if ac_fn_c_try_compile "$LINENO"; then :
2345 eval "$4=yes"
2346else
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348/* end confdefs.h. */
2349$5
2350int
2351main ()
2352{
2353static $2 ac_aggr;
2354if (sizeof ac_aggr.$3)
2355return 0;
2356 ;
2357 return 0;
2358}
2359_ACEOF
2360if ac_fn_c_try_compile "$LINENO"; then :
2361 eval "$4=yes"
2362else
2363 eval "$4=no"
2364fi
2365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366fi
2367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2368fi
2369eval ac_res=\$$4
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2371$as_echo "$ac_res" >&6; }
d6974efa 2372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2373
2374} # ac_fn_c_check_member
2375
2376# ac_fn_c_check_func LINENO FUNC VAR
2377# ----------------------------------
2378# Tests whether FUNC exists, setting the cache variable VAR accordingly
2379ac_fn_c_check_func ()
2380{
2381 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2383$as_echo_n "checking for $2... " >&6; }
d6974efa 2384if eval \${$3+:} false; then :
067d23c9
KY
2385 $as_echo_n "(cached) " >&6
2386else
2387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388/* end confdefs.h. */
2389/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2391#define $2 innocuous_$2
2392
2393/* System header to define __stub macros and hopefully few prototypes,
2394 which can conflict with char $2 (); below.
2395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2396 <limits.h> exists even on freestanding compilers. */
2397
2398#ifdef __STDC__
2399# include <limits.h>
2400#else
2401# include <assert.h>
2402#endif
2403
2404#undef $2
2405
2406/* Override any GCC internal prototype to avoid an error.
2407 Use char because int might match the return type of a GCC
2408 builtin and then its argument prototype would still apply. */
2409#ifdef __cplusplus
2410extern "C"
2411#endif
2412char $2 ();
2413/* The GNU C library defines this for functions which it implements
2414 to always fail with ENOSYS. Some functions are actually named
2415 something starting with __ and the normal name is an alias. */
2416#if defined __stub_$2 || defined __stub___$2
2417choke me
2418#endif
2419
2420int
2421main ()
2422{
2423return $2 ();
2424 ;
2425 return 0;
2426}
2427_ACEOF
2428if ac_fn_c_try_link "$LINENO"; then :
2429 eval "$3=yes"
2430else
2431 eval "$3=no"
2432fi
2433rm -f core conftest.err conftest.$ac_objext \
2434 conftest$ac_exeext conftest.$ac_ext
2435fi
2436eval ac_res=\$$3
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2438$as_echo "$ac_res" >&6; }
d6974efa 2439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2440
2441} # ac_fn_c_check_func
2442
2443# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2444# -------------------------------------------
2445# Tests whether TYPE exists after having included INCLUDES, setting cache
2446# variable VAR accordingly.
2447ac_fn_c_check_type ()
2448{
2449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2451$as_echo_n "checking for $2... " >&6; }
d6974efa 2452if eval \${$3+:} false; then :
067d23c9
KY
2453 $as_echo_n "(cached) " >&6
2454else
2455 eval "$3=no"
2456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457/* end confdefs.h. */
2458$4
2459int
2460main ()
2461{
2462if (sizeof ($2))
2463 return 0;
2464 ;
2465 return 0;
2466}
2467_ACEOF
2468if ac_fn_c_try_compile "$LINENO"; then :
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470/* end confdefs.h. */
2471$4
2472int
2473main ()
2474{
2475if (sizeof (($2)))
2476 return 0;
2477 ;
2478 return 0;
2479}
2480_ACEOF
2481if ac_fn_c_try_compile "$LINENO"; then :
2482
2483else
2484 eval "$3=yes"
2485fi
2486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2487fi
2488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2489fi
2490eval ac_res=\$$3
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2492$as_echo "$ac_res" >&6; }
d6974efa 2493 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2494
2495} # ac_fn_c_check_type
5f90be1b
PE
2496
2497# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2498# --------------------------------------------
2499# Tries to find the compile-time value of EXPR in a program that includes
2500# INCLUDES, setting VAR accordingly. Returns whether the value could be
2501# computed
2502ac_fn_c_compute_int ()
2503{
2504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505 if test "$cross_compiling" = yes; then
2506 # Depending upon the size, compute the lo and hi bounds.
2507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508/* end confdefs.h. */
2509$4
2510int
2511main ()
2512{
2513static int test_array [1 - 2 * !(($2) >= 0)];
2514test_array [0] = 0
2515
2516 ;
2517 return 0;
2518}
2519_ACEOF
2520if ac_fn_c_try_compile "$LINENO"; then :
2521 ac_lo=0 ac_mid=0
2522 while :; do
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524/* end confdefs.h. */
2525$4
2526int
2527main ()
2528{
2529static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2530test_array [0] = 0
2531
2532 ;
2533 return 0;
2534}
2535_ACEOF
2536if ac_fn_c_try_compile "$LINENO"; then :
2537 ac_hi=$ac_mid; break
2538else
2539 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2540 if test $ac_lo -le $ac_mid; then
2541 ac_lo= ac_hi=
2542 break
2543 fi
2544 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2545fi
2546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2547 done
2548else
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550/* end confdefs.h. */
2551$4
2552int
2553main ()
2554{
2555static int test_array [1 - 2 * !(($2) < 0)];
2556test_array [0] = 0
2557
2558 ;
2559 return 0;
2560}
2561_ACEOF
2562if ac_fn_c_try_compile "$LINENO"; then :
2563 ac_hi=-1 ac_mid=-1
2564 while :; do
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566/* end confdefs.h. */
2567$4
2568int
2569main ()
2570{
2571static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2572test_array [0] = 0
2573
2574 ;
2575 return 0;
2576}
2577_ACEOF
2578if ac_fn_c_try_compile "$LINENO"; then :
2579 ac_lo=$ac_mid; break
2580else
2581 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2582 if test $ac_mid -le $ac_hi; then
2583 ac_lo= ac_hi=
2584 break
2585 fi
2586 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2587fi
2588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2589 done
2590else
2591 ac_lo= ac_hi=
2592fi
2593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594fi
2595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2596# Binary search between lo and hi bounds.
2597while test "x$ac_lo" != "x$ac_hi"; do
2598 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2600/* end confdefs.h. */
2601$4
2602int
2603main ()
2604{
2605static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2606test_array [0] = 0
2607
2608 ;
2609 return 0;
2610}
2611_ACEOF
2612if ac_fn_c_try_compile "$LINENO"; then :
2613 ac_hi=$ac_mid
2614else
2615 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2616fi
2617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618done
2619case $ac_lo in #((
2620?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2621'') ac_retval=1 ;;
2622esac
2623 else
2624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2625/* end confdefs.h. */
2626$4
2627static long int longval () { return $2; }
2628static unsigned long int ulongval () { return $2; }
2629#include <stdio.h>
2630#include <stdlib.h>
2631int
2632main ()
2633{
2634
2635 FILE *f = fopen ("conftest.val", "w");
2636 if (! f)
2637 return 1;
2638 if (($2) < 0)
2639 {
2640 long int i = longval ();
2641 if (i != ($2))
2642 return 1;
2643 fprintf (f, "%ld", i);
2644 }
2645 else
2646 {
2647 unsigned long int i = ulongval ();
2648 if (i != ($2))
2649 return 1;
2650 fprintf (f, "%lu", i);
2651 }
2652 /* Do not output a trailing newline, as this causes \r\n confusion
2653 on some platforms. */
2654 return ferror (f) || fclose (f) != 0;
2655
2656 ;
2657 return 0;
2658}
2659_ACEOF
2660if ac_fn_c_try_run "$LINENO"; then :
2661 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2662else
2663 ac_retval=1
2664fi
2665rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2666 conftest.$ac_objext conftest.beam conftest.$ac_ext
2667rm -f conftest.val
2668
2669 fi
2670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2671 as_fn_set_status $ac_retval
2672
2673} # ac_fn_c_compute_int
067d23c9
KY
2674cat >config.log <<_ACEOF
2675This file contains any messages produced by compilers while
2676running configure, to aid debugging if configure makes a mistake.
2677
2678It was created by emacs $as_me 24.0.50, which was
d6974efa 2679generated by GNU Autoconf 2.68. Invocation command line was
067d23c9
KY
2680
2681 $ $0 $@
2682
2683_ACEOF
2684exec 5>>config.log
2685{
2686cat <<_ASUNAME
2687## --------- ##
2688## Platform. ##
2689## --------- ##
2690
2691hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2692uname -m = `(uname -m) 2>/dev/null || echo unknown`
2693uname -r = `(uname -r) 2>/dev/null || echo unknown`
2694uname -s = `(uname -s) 2>/dev/null || echo unknown`
2695uname -v = `(uname -v) 2>/dev/null || echo unknown`
2696
2697/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2698/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2699
2700/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2701/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2702/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2703/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2704/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2705/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2706/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2707
2708_ASUNAME
2709
2710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711for as_dir in $PATH
2712do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 $as_echo "PATH: $as_dir"
2716 done
2717IFS=$as_save_IFS
2718
2719} >&5
2720
2721cat >&5 <<_ACEOF
2722
2723
2724## ----------- ##
2725## Core tests. ##
2726## ----------- ##
2727
2728_ACEOF
2729
2730
2731# Keep a trace of the command line.
2732# Strip out --no-create and --no-recursion so they do not pile up.
2733# Strip out --silent because we don't want to record it for future runs.
2734# Also quote any args containing shell meta-characters.
2735# Make two passes to allow for proper duplicate-argument suppression.
2736ac_configure_args=
2737ac_configure_args0=
2738ac_configure_args1=
2739ac_must_keep_next=false
2740for ac_pass in 1 2
2741do
2742 for ac_arg
2743 do
2744 case $ac_arg in
2745 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2747 | -silent | --silent | --silen | --sile | --sil)
2748 continue ;;
2749 *\'*)
2750 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2751 esac
2752 case $ac_pass in
2753 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2754 2)
2755 as_fn_append ac_configure_args1 " '$ac_arg'"
2756 if test $ac_must_keep_next = true; then
2757 ac_must_keep_next=false # Got value, back to normal.
2758 else
2759 case $ac_arg in
2760 *=* | --config-cache | -C | -disable-* | --disable-* \
2761 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2762 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2763 | -with-* | --with-* | -without-* | --without-* | --x)
2764 case "$ac_configure_args0 " in
2765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2766 esac
2767 ;;
2768 -* ) ac_must_keep_next=true ;;
2769 esac
2770 fi
2771 as_fn_append ac_configure_args " '$ac_arg'"
2772 ;;
2773 esac
2774 done
2775done
2776{ ac_configure_args0=; unset ac_configure_args0;}
2777{ ac_configure_args1=; unset ac_configure_args1;}
2778
2779# When interrupted or exit'd, cleanup temporary files, and complete
2780# config.log. We remove comments because anyway the quotes in there
2781# would cause problems or look ugly.
2782# WARNING: Use '\'' to represent an apostrophe within the trap.
2783# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2784trap 'exit_status=$?
2785 # Save into config.log some information that might help in debugging.
2786 {
2787 echo
2788
2018939f 2789 $as_echo "## ---------------- ##
067d23c9 2790## Cache variables. ##
2018939f 2791## ---------------- ##"
067d23c9
KY
2792 echo
2793 # The following way of writing the cache mishandles newlines in values,
2794(
2795 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2796 eval ac_val=\$$ac_var
2797 case $ac_val in #(
2798 *${as_nl}*)
2799 case $ac_var in #(
2800 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2801$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2802 esac
2803 case $ac_var in #(
2804 _ | IFS | as_nl) ;; #(
2805 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2806 *) { eval $ac_var=; unset $ac_var;} ;;
2807 esac ;;
2808 esac
2809 done
2810 (set) 2>&1 |
2811 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2812 *${as_nl}ac_space=\ *)
2813 sed -n \
2814 "s/'\''/'\''\\\\'\'''\''/g;
2815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2816 ;; #(
2817 *)
2818 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2819 ;;
2820 esac |
2821 sort
2822)
2823 echo
2824
2018939f 2825 $as_echo "## ----------------- ##
067d23c9 2826## Output variables. ##
2018939f 2827## ----------------- ##"
067d23c9
KY
2828 echo
2829 for ac_var in $ac_subst_vars
2830 do
2831 eval ac_val=\$$ac_var
2832 case $ac_val in
2833 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2834 esac
2835 $as_echo "$ac_var='\''$ac_val'\''"
2836 done | sort
2837 echo
2838
2839 if test -n "$ac_subst_files"; then
2018939f 2840 $as_echo "## ------------------- ##
067d23c9 2841## File substitutions. ##
2018939f 2842## ------------------- ##"
067d23c9
KY
2843 echo
2844 for ac_var in $ac_subst_files
2845 do
2846 eval ac_val=\$$ac_var
2847 case $ac_val in
2848 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2849 esac
2850 $as_echo "$ac_var='\''$ac_val'\''"
2851 done | sort
2852 echo
2853 fi
2854
2855 if test -s confdefs.h; then
2018939f 2856 $as_echo "## ----------- ##
067d23c9 2857## confdefs.h. ##
2018939f 2858## ----------- ##"
067d23c9
KY
2859 echo
2860 cat confdefs.h
2861 echo
2862 fi
2863 test "$ac_signal" != 0 &&
2864 $as_echo "$as_me: caught signal $ac_signal"
2865 $as_echo "$as_me: exit $exit_status"
2866 } >&5
2867 rm -f core *.core core.conftest.* &&
2868 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2869 exit $exit_status
2870' 0
2871for ac_signal in 1 2 13 15; do
2872 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2873done
2874ac_signal=0
2875
2876# confdefs.h avoids OS command line length limits that DEFS can exceed.
2877rm -f -r conftest* confdefs.h
2878
2879$as_echo "/* confdefs.h */" > confdefs.h
2880
2881# Predefined preprocessor variables.
2882
2883cat >>confdefs.h <<_ACEOF
2884#define PACKAGE_NAME "$PACKAGE_NAME"
2885_ACEOF
2886
2887cat >>confdefs.h <<_ACEOF
2888#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2889_ACEOF
2890
2891cat >>confdefs.h <<_ACEOF
2892#define PACKAGE_VERSION "$PACKAGE_VERSION"
2893_ACEOF
2894
2895cat >>confdefs.h <<_ACEOF
2896#define PACKAGE_STRING "$PACKAGE_STRING"
2897_ACEOF
2898
2899cat >>confdefs.h <<_ACEOF
2900#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2901_ACEOF
2902
2903cat >>confdefs.h <<_ACEOF
2904#define PACKAGE_URL "$PACKAGE_URL"
2905_ACEOF
2906
2907
2908# Let the site file select an alternate cache file if it wants to.
2909# Prefer an explicitly selected file to automatically selected ones.
2910ac_site_file1=NONE
2911ac_site_file2=NONE
2912if test -n "$CONFIG_SITE"; then
2018939f
AS
2913 # We do not want a PATH search for config.site.
2914 case $CONFIG_SITE in #((
2915 -*) ac_site_file1=./$CONFIG_SITE;;
2916 */*) ac_site_file1=$CONFIG_SITE;;
2917 *) ac_site_file1=./$CONFIG_SITE;;
2918 esac
067d23c9
KY
2919elif test "x$prefix" != xNONE; then
2920 ac_site_file1=$prefix/share/config.site
2921 ac_site_file2=$prefix/etc/config.site
2922else
2923 ac_site_file1=$ac_default_prefix/share/config.site
2924 ac_site_file2=$ac_default_prefix/etc/config.site
2925fi
2926for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2927do
2928 test "x$ac_site_file" = xNONE && continue
2929 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2931$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2932 sed 's/^/| /' "$ac_site_file" >&5
2018939f
AS
2933 . "$ac_site_file" \
2934 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2936as_fn_error $? "failed to load site script $ac_site_file
d6974efa 2937See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
2938 fi
2939done
2940
2941if test -r "$cache_file"; then
2942 # Some versions of bash will fail to source /dev/null (special files
2943 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2944 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2946$as_echo "$as_me: loading cache $cache_file" >&6;}
2947 case $cache_file in
2948 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2949 *) . "./$cache_file";;
2950 esac
2951 fi
2952else
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2954$as_echo "$as_me: creating cache $cache_file" >&6;}
2955 >$cache_file
2956fi
2957
2958as_fn_append ac_header_list " stdlib.h"
2959as_fn_append ac_header_list " unistd.h"
2960as_fn_append ac_header_list " sys/param.h"
e275c824
PE
2961gl_getopt_required=GNU
2962as_fn_append ac_header_list " getopt.h"
067d23c9 2963as_fn_append ac_func_list " alarm"
5f90be1b
PE
2964as_fn_append ac_header_list " wchar.h"
2965as_fn_append ac_header_list " stdint.h"
16c3e636 2966as_fn_append ac_func_list " tzset"
5fa4ac76 2967as_fn_append ac_header_list " sys/stat.h"
1fd182f0
PE
2968as_fn_append ac_header_list " sys/time.h"
2969as_fn_append ac_func_list " localtime_r"
f68c809d 2970as_fn_append ac_func_list " lstat"
067d23c9
KY
2971# Check that the precious variables saved in the cache have kept the same
2972# value.
2973ac_cache_corrupted=false
2974for ac_var in $ac_precious_vars; do
2975 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2976 eval ac_new_set=\$ac_env_${ac_var}_set
2977 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2978 eval ac_new_val=\$ac_env_${ac_var}_value
2979 case $ac_old_set,$ac_new_set in
2980 set,)
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2982$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2983 ac_cache_corrupted=: ;;
2984 ,set)
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2986$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2987 ac_cache_corrupted=: ;;
2988 ,);;
2989 *)
2990 if test "x$ac_old_val" != "x$ac_new_val"; then
2991 # differences in whitespace do not lead to failure.
2992 ac_old_val_w=`echo x $ac_old_val`
2993 ac_new_val_w=`echo x $ac_new_val`
2994 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2996$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2997 ac_cache_corrupted=:
2998 else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3000$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3001 eval $ac_var=\$ac_old_val
3002 fi
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3004$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3006$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3007 fi;;
3008 esac
3009 # Pass precious variables to config.status.
3010 if test "$ac_new_set" = set; then
3011 case $ac_new_val in
3012 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3013 *) ac_arg=$ac_var=$ac_new_val ;;
3014 esac
3015 case " $ac_configure_args " in
3016 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3017 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3018 esac
3019 fi
3020done
3021if $ac_cache_corrupted; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3025$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2018939f 3026 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
067d23c9
KY
3027fi
3028## -------------------- ##
3029## Main body of script. ##
3030## -------------------- ##
3031
3032ac_ext=c
3033ac_cpp='$CPP $CPPFLAGS'
3034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037
3038
3039ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3040
3041
743c80a7 3042am__api_version='1.11'
067d23c9 3043
743c80a7
PE
3044ac_aux_dir=
3045for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3046 if test -f "$ac_dir/install-sh"; then
3047 ac_aux_dir=$ac_dir
3048 ac_install_sh="$ac_aux_dir/install-sh -c"
3049 break
3050 elif test -f "$ac_dir/install.sh"; then
3051 ac_aux_dir=$ac_dir
3052 ac_install_sh="$ac_aux_dir/install.sh -c"
3053 break
3054 elif test -f "$ac_dir/shtool"; then
3055 ac_aux_dir=$ac_dir
3056 ac_install_sh="$ac_aux_dir/shtool install -c"
3057 break
3058 fi
3059done
3060if test -z "$ac_aux_dir"; then
3061 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3062fi
067d23c9 3063
743c80a7
PE
3064# These three variables are undocumented and unsupported,
3065# and are intended to be withdrawn in a future Autoconf release.
3066# They can cause serious problems if a builder's source tree is in a directory
3067# whose full name contains unusual characters.
3068ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3069ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3070ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
067d23c9 3071
067d23c9 3072
743c80a7
PE
3073# Find a good install program. We prefer a C program (faster),
3074# so one script is as good as another. But avoid the broken or
3075# incompatible versions:
3076# SysV /etc/install, /usr/sbin/install
3077# SunOS /usr/etc/install
3078# IRIX /sbin/install
3079# AIX /bin/install
3080# AmigaOS /C/install, which installs bootblocks on floppy discs
3081# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3082# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3083# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3084# OS/2's system install, which has a completely different semantic
3085# ./install, which can be erroneously created by make from ./install.sh.
3086# Reject install programs that cannot install multiple files.
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3088$as_echo_n "checking for a BSD-compatible install... " >&6; }
3089if test -z "$INSTALL"; then
d6974efa 3090if ${ac_cv_path_install+:} false; then :
743c80a7
PE
3091 $as_echo_n "(cached) " >&6
3092else
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094for as_dir in $PATH
3095do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 # Account for people who put trailing slashes in PATH elements.
3099case $as_dir/ in #((
3100 ./ | .// | /[cC]/* | \
3101 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3102 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3103 /usr/ucb/* ) ;;
3104 *)
3105 # OSF1 and SCO ODT 3.0 have their own names for install.
3106 # Don't use installbsd from OSF since it installs stuff as root
3107 # by default.
3108 for ac_prog in ginstall scoinst install; do
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3111 if test $ac_prog = install &&
3112 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3113 # AIX install. It has an incompatible calling convention.
3114 :
3115 elif test $ac_prog = install &&
3116 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3117 # program-specific install script used by HP pwplus--don't use.
3118 :
3119 else
3120 rm -rf conftest.one conftest.two conftest.dir
3121 echo one > conftest.one
3122 echo two > conftest.two
3123 mkdir conftest.dir
3124 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3125 test -s conftest.one && test -s conftest.two &&
3126 test -s conftest.dir/conftest.one &&
3127 test -s conftest.dir/conftest.two
3128 then
3129 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3130 break 3
3131 fi
3132 fi
3133 fi
3134 done
3135 done
3136 ;;
3137esac
067d23c9 3138
743c80a7
PE
3139 done
3140IFS=$as_save_IFS
067d23c9 3141
743c80a7 3142rm -rf conftest.one conftest.two conftest.dir
067d23c9 3143
067d23c9 3144fi
743c80a7
PE
3145 if test "${ac_cv_path_install+set}" = set; then
3146 INSTALL=$ac_cv_path_install
3147 else
3148 # As a last resort, use the slow shell script. Don't cache a
3149 # value for INSTALL within a source directory, because that will
3150 # break other packages using the cache if that directory is
3151 # removed, or if the value is a relative name.
3152 INSTALL=$ac_install_sh
3153 fi
067d23c9 3154fi
743c80a7
PE
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3156$as_echo "$INSTALL" >&6; }
067d23c9 3157
743c80a7
PE
3158# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3159# It thinks the first close brace ends the variable substitution.
3160test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
067d23c9 3161
743c80a7 3162test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
067d23c9 3163
743c80a7 3164test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
067d23c9 3165
743c80a7
PE
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3167$as_echo_n "checking whether build environment is sane... " >&6; }
3168# Just in case
3169sleep 1
3170echo timestamp > conftest.file
3171# Reject unsafe characters in $srcdir or the absolute working directory
3172# name. Accept space and tab only in the latter.
3173am_lf='
3174'
3175case `pwd` in
3176 *[\\\"\#\$\&\'\`$am_lf]*)
d6974efa 3177 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
743c80a7
PE
3178esac
3179case $srcdir in
3180 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d6974efa 3181 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
743c80a7 3182esac
067d23c9 3183
743c80a7
PE
3184# Do `set' in a subshell so we don't clobber the current shell's
3185# arguments. Must try -L first in case configure is actually a
3186# symlink; some systems play weird games with the mod time of symlinks
3187# (eg FreeBSD returns the mod time of the symlink's containing
3188# directory).
3189if (
3190 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3191 if test "$*" = "X"; then
3192 # -L didn't work.
3193 set X `ls -t "$srcdir/configure" conftest.file`
3194 fi
3195 rm -f conftest.file
3196 if test "$*" != "X $srcdir/configure conftest.file" \
3197 && test "$*" != "X conftest.file $srcdir/configure"; then
3198
3199 # If neither matched, then we have a broken ls. This can happen
3200 # if, for instance, CONFIG_SHELL is bash and it inherits a
3201 # broken ls alias from the environment. This has actually
3202 # happened. Such a system could not be considered "sane".
3203 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3204alias in your environment" "$LINENO" 5
3205 fi
067d23c9 3206
743c80a7
PE
3207 test "$2" = conftest.file
3208 )
3209then
3210 # Ok.
3211 :
067d23c9 3212else
743c80a7
PE
3213 as_fn_error $? "newly created file is older than distributed files!
3214Check your system clock" "$LINENO" 5
067d23c9 3215fi
743c80a7
PE
3216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3217$as_echo "yes" >&6; }
3218test "$program_prefix" != NONE &&
3219 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3220# Use a double $ so make ignores it.
3221test "$program_suffix" != NONE &&
3222 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3223# Double any \ or $.
3224# By default was `s,x,x', remove it if useless.
3225ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3226program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
067d23c9 3227
743c80a7
PE
3228# expand $ac_aux_dir to an absolute path
3229am_aux_dir=`cd $ac_aux_dir && pwd`
067d23c9 3230
743c80a7
PE
3231if test x"${MISSING+set}" != xset; then
3232 case $am_aux_dir in
3233 *\ * | *\ *)
3234 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3235 *)
3236 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3237 esac
067d23c9 3238fi
743c80a7
PE
3239# Use eval to expand $SHELL
3240if eval "$MISSING --run true"; then
3241 am_missing_run="$MISSING --run "
067d23c9 3242else
743c80a7
PE
3243 am_missing_run=
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3245$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
067d23c9
KY
3246fi
3247
743c80a7
PE
3248if test x"${install_sh}" != xset; then
3249 case $am_aux_dir in
3250 *\ * | *\ *)
3251 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3252 *)
3253 install_sh="\${SHELL} $am_aux_dir/install-sh"
3254 esac
067d23c9
KY
3255fi
3256
743c80a7
PE
3257# Installed binaries are usually stripped using `strip' when the user
3258# run `make install-strip'. However `strip' might not be the right
3259# tool to use in cross-compilation environments, therefore Automake
3260# will honor the `STRIP' environment variable to overrule this program.
3261if test "$cross_compiling" != no; then
3262 if test -n "$ac_tool_prefix"; then
3263 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3264set dummy ${ac_tool_prefix}strip; ac_word=$2
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 3267if ${ac_cv_prog_STRIP+:} false; then :
743c80a7 3268 $as_echo_n "(cached) " >&6
067d23c9 3269else
743c80a7
PE
3270 if test -n "$STRIP"; then
3271 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3272else
3273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274for as_dir in $PATH
3275do
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 break 2
3283 fi
3284done
3285 done
3286IFS=$as_save_IFS
067d23c9
KY
3287
3288fi
067d23c9 3289fi
743c80a7
PE
3290STRIP=$ac_cv_prog_STRIP
3291if test -n "$STRIP"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3293$as_echo "$STRIP" >&6; }
3294else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296$as_echo "no" >&6; }
067d23c9
KY
3297fi
3298
3299
067d23c9 3300fi
743c80a7
PE
3301if test -z "$ac_cv_prog_STRIP"; then
3302 ac_ct_STRIP=$STRIP
3303 # Extract the first word of "strip", so it can be a program name with args.
3304set dummy strip; ac_word=$2
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 3307if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
743c80a7
PE
3308 $as_echo_n "(cached) " >&6
3309else
3310 if test -n "$ac_ct_STRIP"; then
3311 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3312else
3313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314for as_dir in $PATH
3315do
3316 IFS=$as_save_IFS
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3320 ac_cv_prog_ac_ct_STRIP="strip"
3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 break 2
3323 fi
3324done
3325 done
3326IFS=$as_save_IFS
3327
3328fi
3329fi
3330ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3331if test -n "$ac_ct_STRIP"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3333$as_echo "$ac_ct_STRIP" >&6; }
3334else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336$as_echo "no" >&6; }
3337fi
3338
3339 if test "x$ac_ct_STRIP" = x; then
3340 STRIP=":"
3341 else
3342 case $cross_compiling:$ac_tool_warned in
3343yes:)
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3345$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3346ac_tool_warned=yes ;;
3347esac
3348 STRIP=$ac_ct_STRIP
3349 fi
3350else
3351 STRIP="$ac_cv_prog_STRIP"
3352fi
3353
3354fi
3355INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3356
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3358$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3359if test -z "$MKDIR_P"; then
d6974efa 3360 if ${ac_cv_path_mkdir+:} false; then :
743c80a7
PE
3361 $as_echo_n "(cached) " >&6
3362else
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3365do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_prog in mkdir gmkdir; do
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3371 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3372 'mkdir (GNU coreutils) '* | \
3373 'mkdir (coreutils) '* | \
3374 'mkdir (fileutils) '4.1*)
3375 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3376 break 3;;
3377 esac
3378 done
3379 done
3380 done
3381IFS=$as_save_IFS
3382
3383fi
3384
3385 test -d ./--version && rmdir ./--version
3386 if test "${ac_cv_path_mkdir+set}" = set; then
3387 MKDIR_P="$ac_cv_path_mkdir -p"
3388 else
3389 # As a last resort, use the slow shell script. Don't cache a
3390 # value for MKDIR_P within a source directory, because that will
3391 # break other packages using the cache if that directory is
3392 # removed, or if the value is a relative name.
3393 MKDIR_P="$ac_install_sh -d"
3394 fi
3395fi
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3397$as_echo "$MKDIR_P" >&6; }
3398
a451f14b 3399
743c80a7
PE
3400mkdir_p="$MKDIR_P"
3401case $mkdir_p in
3402 [\\/$]* | ?:[\\/]*) ;;
3403 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3404esac
3405
3406for ac_prog in gawk mawk nawk awk
3407do
3408 # Extract the first word of "$ac_prog", so it can be a program name with args.
3409set dummy $ac_prog; ac_word=$2
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 3412if ${ac_cv_prog_AWK+:} false; then :
743c80a7
PE
3413 $as_echo_n "(cached) " >&6
3414else
3415 if test -n "$AWK"; then
3416 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3417else
3418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419for as_dir in $PATH
3420do
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_AWK="$ac_prog"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 break 2
3428 fi
3429done
3430 done
3431IFS=$as_save_IFS
3432
3433fi
3434fi
3435AWK=$ac_cv_prog_AWK
3436if test -n "$AWK"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3438$as_echo "$AWK" >&6; }
3439else
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441$as_echo "no" >&6; }
3442fi
3443
3444
3445 test -n "$AWK" && break
3446done
3447
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3449$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3450set x ${MAKE-make}
3451ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6974efa 3452if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
743c80a7
PE
3453 $as_echo_n "(cached) " >&6
3454else
3455 cat >conftest.make <<\_ACEOF
3456SHELL = /bin/sh
3457all:
3458 @echo '@@@%%%=$(MAKE)=@@@%%%'
3459_ACEOF
3460# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3461case `${MAKE-make} -f conftest.make 2>/dev/null` in
3462 *@@@%%%=?*=@@@%%%*)
3463 eval ac_cv_prog_make_${ac_make}_set=yes;;
3464 *)
3465 eval ac_cv_prog_make_${ac_make}_set=no;;
3466esac
3467rm -f conftest.make
3468fi
3469if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3471$as_echo "yes" >&6; }
3472 SET_MAKE=
3473else
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475$as_echo "no" >&6; }
3476 SET_MAKE="MAKE=${MAKE-make}"
3477fi
3478
3479rm -rf .tst 2>/dev/null
3480mkdir .tst 2>/dev/null
3481if test -d .tst; then
3482 am__leading_dot=.
3483else
3484 am__leading_dot=_
3485fi
3486rmdir .tst 2>/dev/null
3487
3488if test "`cd $srcdir && pwd`" != "`pwd`"; then
3489 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3490 # is not polluted with repeated "-I."
3491 am__isrc=' -I$(srcdir)'
3492 # test to see if srcdir already configured
3493 if test -f $srcdir/config.status; then
3494 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3495 fi
3496fi
3497
3498# test whether we have cygpath
3499if test -z "$CYGPATH_W"; then
3500 if (cygpath --version) >/dev/null 2>/dev/null; then
3501 CYGPATH_W='cygpath -w'
3502 else
3503 CYGPATH_W=echo
3504 fi
3505fi
3506
3507
3508# Define the identity of the package.
3509 PACKAGE='emacs'
3510 VERSION='24.0.50'
3511
3512
3513cat >>confdefs.h <<_ACEOF
3514#define PACKAGE "$PACKAGE"
3515_ACEOF
3516
3517
3518cat >>confdefs.h <<_ACEOF
3519#define VERSION "$VERSION"
3520_ACEOF
3521
3522# Some tools Automake needs.
3523
3524ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3525
3526
3527AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3528
3529
3530AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3531
3532
3533AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3534
3535
3536MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3537
3538# We need awk for the "check" target. The system "awk" is bad on
3539# some platforms.
3540# Always define AMTAR for backward compatibility.
3541
3542AMTAR=${AMTAR-"${am_missing_run}tar"}
3543
3544am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3545
3546
3547
3548
3549
3550
3551
3552
3553lispdir='${datadir}/emacs/${version}/lisp'
3554locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3555'${datadir}/emacs/site-lisp'
3556lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3557etcdir='${datadir}/emacs/${version}/etc'
3558archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3559docdir='${datadir}/emacs/${version}/etc'
3560gamedir='${localstatedir}/games/emacs'
3561
3562
3563
3564
3565# Check whether --with-pop was given.
3566if test "${with_pop+set}" = set; then :
3567 withval=$with_pop;
3568else
3569 with_pop=yes
3570fi
3571
3572if test "$with_pop" = yes; then
3573 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3574
3575fi
3576
3577
3578# Check whether --with-kerberos was given.
3579if test "${with_kerberos+set}" = set; then :
3580 withval=$with_kerberos;
3581else
3582 with_kerberos=no
3583fi
3584
3585if test "$with_kerberos" != no; then
3586 $as_echo "#define KERBEROS 1" >>confdefs.h
3587
3588fi
3589
3590
3591# Check whether --with-kerberos5 was given.
3592if test "${with_kerberos5+set}" = set; then :
3593 withval=$with_kerberos5;
3594else
3595 with_kerberos5=no
3596fi
3597
3598if test "${with_kerberos5}" != no; then
3599 if test "${with_kerberos}" = no; then
3600 with_kerberos=yes
3601 $as_echo "#define KERBEROS 1" >>confdefs.h
3602
3603 fi
3604
3605$as_echo "#define KERBEROS5 1" >>confdefs.h
3606
3607fi
3608
3609
3610# Check whether --with-hesiod was given.
3611if test "${with_hesiod+set}" = set; then :
3612 withval=$with_hesiod;
3613else
3614 with_hesiod=no
3615fi
3616
3617if test "$with_hesiod" != no; then
3618
3619$as_echo "#define HESIOD 1" >>confdefs.h
3620
3621fi
3622
3623
3624# Check whether --with-mmdf was given.
3625if test "${with_mmdf+set}" = set; then :
3626 withval=$with_mmdf;
3627else
3628 with_mmdf=no
3629fi
3630
3631if test "$with_mmdf" != no; then
3632
3633$as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3634
3635fi
3636
3637
3638# Check whether --with-mail-unlink was given.
3639if test "${with_mail_unlink+set}" = set; then :
3640 withval=$with_mail_unlink;
3641else
3642 with_mail_unlink=no
3643fi
3644
3645if test "$with_mail_unlink" != no; then
3646
3647$as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3648
3649fi
3650
3651
3652# Check whether --with-mailhost was given.
3653if test "${with_mailhost+set}" = set; then :
3654 withval=$with_mailhost;
3655cat >>confdefs.h <<_ACEOF
3656#define MAILHOST "$withval"
3657_ACEOF
3658
3659fi
3660
3661
3662
067d23c9
KY
3663# Check whether --with-sound was given.
3664if test "${with_sound+set}" = set; then :
3665 withval=$with_sound;
3666else
3667 with_sound=yes
3668fi
3669
3670
3671
3672# Check whether --with-sync-input was given.
3673if test "${with_sync_input+set}" = set; then :
3674 withval=$with_sync_input;
3675else
3676 with_sync_input=yes
3677fi
3678
3679if test "$with_sync_input" = yes; then
3680
3681$as_echo "#define SYNC_INPUT 1" >>confdefs.h
3682
3683fi
3684
3685
3686# Check whether --with-x-toolkit was given.
3687if test "${with_x_toolkit+set}" = set; then :
3688 withval=$with_x_toolkit; case "${withval}" in
3689 y | ye | yes ) val=gtk ;;
3690 n | no ) val=no ;;
3691 l | lu | luc | luci | lucid ) val=lucid ;;
3692 a | at | ath | athe | athen | athena ) val=athena ;;
3693 m | mo | mot | moti | motif ) val=motif ;;
3694 g | gt | gtk ) val=gtk ;;
3695 gtk3 ) val=gtk3 ;;
3696 * )
2018939f 3697as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
067d23c9
KY
3698this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3699\`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3700 ;;
3701 esac
3702 with_x_toolkit=$val
3703
3704fi
3705
3706
3707
3708# Check whether --with-xpm was given.
3709if test "${with_xpm+set}" = set; then :
3710 withval=$with_xpm;
3711else
3712 with_xpm=yes
3713fi
3714
3715
3716# Check whether --with-jpeg was given.
3717if test "${with_jpeg+set}" = set; then :
3718 withval=$with_jpeg;
3719else
3720 with_jpeg=yes
3721fi
3722
3723
3724# Check whether --with-tiff was given.
3725if test "${with_tiff+set}" = set; then :
3726 withval=$with_tiff;
3727else
3728 with_tiff=yes
3729fi
3730
3731
3732# Check whether --with-gif was given.
3733if test "${with_gif+set}" = set; then :
3734 withval=$with_gif;
3735else
3736 with_gif=yes
3737fi
3738
3739
3740# Check whether --with-png was given.
3741if test "${with_png+set}" = set; then :
3742 withval=$with_png;
3743else
3744 with_png=yes
3745fi
3746
3747
3748# Check whether --with-rsvg was given.
3749if test "${with_rsvg+set}" = set; then :
3750 withval=$with_rsvg;
3751else
3752 with_rsvg=yes
3753fi
3754
3755
3756# Check whether --with-xml2 was given.
3757if test "${with_xml2+set}" = set; then :
3758 withval=$with_xml2;
3759else
3760 with_xml2=yes
3761fi
3762
3763
3764# Check whether --with-imagemagick was given.
3765if test "${with_imagemagick+set}" = set; then :
3766 withval=$with_imagemagick;
3767else
3768 with_imagemagick=yes
3769fi
3770
3771
3772
3773# Check whether --with-xft was given.
3774if test "${with_xft+set}" = set; then :
3775 withval=$with_xft;
3776else
3777 with_xft=yes
3778fi
3779
3780
3781# Check whether --with-libotf was given.
3782if test "${with_libotf+set}" = set; then :
3783 withval=$with_libotf;
3784else
3785 with_libotf=yes
3786fi
3787
3788
3789# Check whether --with-m17n-flt was given.
3790if test "${with_m17n_flt+set}" = set; then :
3791 withval=$with_m17n_flt;
3792else
3793 with_m17n_flt=yes
3794fi
3795
3796
3797
3798# Check whether --with-toolkit-scroll-bars was given.
3799if test "${with_toolkit_scroll_bars+set}" = set; then :
3800 withval=$with_toolkit_scroll_bars;
3801else
3802 with_toolkit_scroll_bars=yes
3803fi
3804
3805
3806# Check whether --with-xaw3d was given.
3807if test "${with_xaw3d+set}" = set; then :
3808 withval=$with_xaw3d;
3809else
3810 with_xaw3d=yes
3811fi
3812
3813
3814# Check whether --with-xim was given.
3815if test "${with_xim+set}" = set; then :
3816 withval=$with_xim;
3817else
3818 with_xim=yes
3819fi
3820
3821
3822# Check whether --with-ns was given.
3823if test "${with_ns+set}" = set; then :
3824 withval=$with_ns;
3825else
3826 with_ns=no
3827fi
3828
3829
3830
3831# Check whether --with-gpm was given.
3832if test "${with_gpm+set}" = set; then :
3833 withval=$with_gpm;
3834else
3835 with_gpm=yes
3836fi
3837
3838
3839# Check whether --with-dbus was given.
3840if test "${with_dbus+set}" = set; then :
3841 withval=$with_dbus;
3842else
3843 with_dbus=yes
3844fi
3845
3846
3847# Check whether --with-gconf was given.
3848if test "${with_gconf+set}" = set; then :
3849 withval=$with_gconf;
3850else
3851 with_gconf=yes
3852fi
3853
3854
3855# Check whether --with-selinux was given.
3856if test "${with_selinux+set}" = set; then :
3857 withval=$with_selinux;
3858else
3859 with_selinux=yes
3860fi
3861
3862
3863# Check whether --with-gnutls was given.
3864if test "${with_gnutls+set}" = set; then :
3865 withval=$with_gnutls;
3866else
3867 with_gnutls=yes
3868fi
3869
3870
3871## For the times when you want to build Emacs but don't have
3872## a suitable makeinfo, and can live without the manuals.
3873
3874# Check whether --with-makeinfo was given.
3875if test "${with_makeinfo+set}" = set; then :
3876 withval=$with_makeinfo;
3877else
3878 with_makeinfo=yes
3879fi
3880
3881
3882## This is an option because I do not know if all info/man support
3883## compressed files, nor how to test if they do so.
3884
3885# Check whether --with-compress-info was given.
3886if test "${with_compress_info+set}" = set; then :
3887 withval=$with_compress_info;
3888else
3889 with_compress_info=yes
3890fi
3891
3892if test $with_compress_info = yes; then
3893 GZIP_INFO=yes
3894else
3895 GZIP_INFO=
3896fi
3897
3898
3899
3900# Check whether --with-pkg-config-prog was given.
3901if test "${with_pkg_config_prog+set}" = set; then :
3902 withval=$with_pkg_config_prog;
3903fi
3904
3905if test "X${with_pkg_config_prog}" != X; then
3906 if test "${with_pkg_config_prog}" != yes; then
3907 PKG_CONFIG="${with_pkg_config_prog}"
3908 fi
3909fi
3910
3911CRT_DIR=
3912
3913# Check whether --with-crt-dir was given.
3914if test "${with_crt_dir+set}" = set; then :
3915 withval=$with_crt_dir;
3916fi
3917
3918CRT_DIR="${with_crt_dir}"
3919
3920
4fc5868a
UM
3921# Check whether --with-gameuser was given.
3922if test "${with_gameuser+set}" = set; then :
3923 withval=$with_gameuser;
3924fi
3925
3926test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3927 && gameuser="${with_gameuser}"
3928test "X$gameuser" = X && gameuser=games
3929
3930
067d23c9
KY
3931# Check whether --with-gnustep-conf was given.
3932if test "${with_gnustep_conf+set}" = set; then :
3933 withval=$with_gnustep_conf;
3934fi
3935
3936test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3937 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3938test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3939 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3940
3941# Check whether --enable-ns-self-contained was given.
3942if test "${enable_ns_self_contained+set}" = set; then :
3943 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3944else
3945 EN_NS_SELF_CONTAINED=yes
3946fi
3947
3948
3949# Check whether --enable-asserts was given.
3950if test "${enable_asserts+set}" = set; then :
3951 enableval=$enable_asserts; USE_XASSERTS=$enableval
3952else
3953 USE_XASSERTS=no
3954fi
3955
3956
3957# Check whether --enable-maintainer-mode was given.
3958if test "${enable_maintainer_mode+set}" = set; then :
3959 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3960else
3961 USE_MAINTAINER_MODE=no
3962fi
3963
3964if test $USE_MAINTAINER_MODE = yes; then
3965 MAINT=
3966else
3967 MAINT=#
3968fi
3969
3970
3971# Check whether --enable-locallisppath was given.
3972if test "${enable_locallisppath+set}" = set; then :
3973 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3974 locallisppath=
3975elif test "${enableval}" != "yes"; then
3976 locallisppath=${enableval}
3977fi
3978fi
3979
3980
3981# Check whether --enable-checking was given.
3982if test "${enable_checking+set}" = set; then :
3983 enableval=$enable_checking; ac_checking_flags="${enableval}"
3984fi
3985
3986IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3987for check in $ac_checking_flags
3988do
3989 case $check in
3990 # these set all the flags to specific states
3991 yes) ac_enable_checking=1 ;;
3992 no) ac_enable_checking= ;
3993 ac_gc_check_stringbytes= ;
3994 ac_gc_check_string_overrun= ;
3995 ac_gc_check_string_free_list= ;
3996 ac_xmalloc_overrun= ;
3997 ac_gc_check_cons_list= ;;
3998 all) ac_enable_checking=1 ;
3999 ac_gc_check_stringbytes=1 ;
4000 ac_gc_check_string_overrun=1 ;
4001 ac_gc_check_string_free_list=1 ;
4002 ac_xmalloc_overrun=1 ;
4003 ac_gc_check_cons_list=1 ;;
4004 # these enable particular checks
4005 stringbytes) ac_gc_check_stringbytes=1 ;;
4006 stringoverrun) ac_gc_check_string_overrun=1 ;;
4007 stringfreelist) ac_gc_check_string_free_list=1 ;;
4008 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4009 conslist) ac_gc_check_cons_list=1 ;;
d6974efa 4010 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
067d23c9
KY
4011 esac
4012done
4013IFS="$ac_save_IFS"
4014
4015if test x$ac_enable_checking != x ; then
4016
4017$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4018
4019fi
4020if test x$ac_gc_check_stringbytes != x ; then
4021
4022$as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4023
4024fi
4025if test x$ac_gc_check_stringoverrun != x ; then
4026
4027$as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4028
4029fi
4030if test x$ac_gc_check_string_free_list != x ; then
4031
4032$as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4033
4034fi
4035if test x$ac_xmalloc_overrun != x ; then
4036
4037$as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4038
4039fi
4040if test x$ac_gc_check_cons_list != x ; then
4041
4042$as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4043
4044fi
4045
4046# Check whether --enable-use-lisp-union-type was given.
4047if test "${enable_use_lisp_union_type+set}" = set; then :
4048 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4049
4050$as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4051
4052fi
4053fi
4054
4055
4056
4057# Check whether --enable-profiling was given.
4058if test "${enable_profiling+set}" = set; then :
4059 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4060fi
4061
4062if test x$ac_enable_profiling != x ; then
4063 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4064else
4065 PROFILING_CFLAGS=
4066fi
4067
4068
4069# Check whether --enable-autodepend was given.
4070if test "${enable_autodepend+set}" = set; then :
4071 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4072else
4073 ac_enable_autodepend=yes
4074fi
4075
4076
4077#### Make srcdir absolute, if it isn't already. It's important to
4078#### avoid running the path through pwd unnecessarily, since pwd can
4079#### give you automounter prefixes, which can go away. We do all this
4080#### so Emacs can find its files when run uninstalled.
4081## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4082unset CDPATH
4083case "${srcdir}" in
4084 /* ) ;;
4085 . )
4086 ## We may be able to use the $PWD environment variable to make this
4087 ## absolute. But sometimes PWD is inaccurate.
4088 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4089 ## but that tested only for a well-formed and valid PWD,
4090 ## it did not object when PWD was well-formed and valid but just wrong.
4091 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4092 then
4093 srcdir="$PWD"
4094 else
4095 srcdir="`(cd ${srcdir}; pwd)`"
4096 fi
4097 ;;
4098 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4099esac
4100
4101#### Check if the source directory already has a configured system in it.
4102if test `pwd` != `(cd ${srcdir} && pwd)` \
4103 && test -f "${srcdir}/src/config.h" ; then
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4105 as a build directory right now; it has been configured in its own
4106 right. To configure in another directory as well, you MUST
4107 use GNU make. If you do not have GNU make, then you must
4108 now do \`make distclean' in ${srcdir},
4109 and then run $0 again." >&5
4110$as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4111 as a build directory right now; it has been configured in its own
4112 right. To configure in another directory as well, you MUST
4113 use GNU make. If you do not have GNU make, then you must
4114 now do \`make distclean' in ${srcdir},
4115 and then run $0 again." >&2;}
4116fi
4117
4118#### Given the configuration name, set machfile and opsysfile to the
4119#### names of the m/*.h and s/*.h files we should use.
4120
4121### Canonicalize the configuration name.
4122
067d23c9
KY
4123# Make sure we can run config.sub.
4124$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2018939f 4125 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
067d23c9
KY
4126
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4128$as_echo_n "checking build system type... " >&6; }
d6974efa 4129if ${ac_cv_build+:} false; then :
067d23c9
KY
4130 $as_echo_n "(cached) " >&6
4131else
4132 ac_build_alias=$build_alias
4133test "x$ac_build_alias" = x &&
4134 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4135test "x$ac_build_alias" = x &&
2018939f 4136 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
067d23c9 4137ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2018939f 4138 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
067d23c9
KY
4139
4140fi
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4142$as_echo "$ac_cv_build" >&6; }
4143case $ac_cv_build in
4144*-*-*) ;;
d6974efa 4145*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
067d23c9
KY
4146esac
4147build=$ac_cv_build
4148ac_save_IFS=$IFS; IFS='-'
4149set x $ac_cv_build
4150shift
4151build_cpu=$1
4152build_vendor=$2
4153shift; shift
4154# Remember, the first character of IFS is used to create $*,
4155# except with old shells:
4156build_os=$*
4157IFS=$ac_save_IFS
4158case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4159
4160
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4162$as_echo_n "checking host system type... " >&6; }
d6974efa 4163if ${ac_cv_host+:} false; then :
067d23c9
KY
4164 $as_echo_n "(cached) " >&6
4165else
4166 if test "x$host_alias" = x; then
4167 ac_cv_host=$ac_cv_build
4168else
4169 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2018939f 4170 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
067d23c9
KY
4171fi
4172
4173fi
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4175$as_echo "$ac_cv_host" >&6; }
4176case $ac_cv_host in
4177*-*-*) ;;
d6974efa 4178*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
067d23c9
KY
4179esac
4180host=$ac_cv_host
4181ac_save_IFS=$IFS; IFS='-'
4182set x $ac_cv_host
4183shift
4184host_cpu=$1
4185host_vendor=$2
4186shift; shift
4187# Remember, the first character of IFS is used to create $*,
4188# except with old shells:
4189host_os=$*
4190IFS=$ac_save_IFS
4191case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4192
4193
4194canonical=$host
4195configuration=${host_alias-${build_alias-$host}}
4196
4197
4198
4199### If you add support for a new configuration, add code to this
4200### switch statement to recognize your configuration name and select
4201### the appropriate operating system and machine description files.
4202
4203### You would hope that you could choose an m/*.h file pretty much
4204### based on the machine portion of the configuration name, and an s/*.h
4205### file based on the operating system portion. However, it turns out
4206### that each m/*.h file is pretty manufacturer-specific - for
4207### example mips.h is MIPS
4208### So we basically have to have a special case for each
4209### configuration name.
4210###
4211### As far as handling version numbers on operating systems is
4212### concerned, make sure things will fail in a fixable way. If
4213### /etc/MACHINES doesn't say anything about version numbers, be
4214### prepared to handle anything reasonably. If version numbers
4215### matter, be sure /etc/MACHINES says something about it.
4216
4217machine='' opsys='' unported=no
4218case "${canonical}" in
4219
d6a003a8
AS
4220 ## GNU/Linux ports
4221 *-*-linux-gnu*)
4222 opsys=gnu-linux
4223 case ${canonical} in
4224 alpha*) machine=alpha ;;
4225 s390-*) machine=ibms390 ;;
4226 s390x-*) machine=ibms390x ;;
4227 powerpc*) machine=macppc ;;
4228 sparc*) machine=sparc ;;
4229 ia64*) machine=ia64 ;;
4230 m68k*) machine=m68k ;;
4231 x86_64*) machine=amdx86-64 ;;
4232 esac
4233 ;;
4234
067d23c9
KY
4235 ## FreeBSD ports
4236 *-*-freebsd* )
4237 opsys=freebsd
4238 case "${canonical}" in
4239 alpha*) machine=alpha ;;
4240 amd64-*|x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
4241 ia64-*) machine=ia64 ;;
4242 i[3456]86-*) machine=intel386 ;;
4243 powerpc-*) machine=macppc ;;
4244 sparc-*) machine=sparc ;;
4245 sparc64-*) machine=sparc ;;
4246 esac
4247 ;;
4248
4249 ## FreeBSD kernel + glibc based userland
4250 *-*-kfreebsd*gnu* )
4251 opsys=gnu-kfreebsd
4252 case "${canonical}" in
4253 alpha*) machine=alpha ;;
4254 amd64-*|x86_64-*) machine=amdx86-64 ;;
4255 ia64-*) machine=ia64 ;;
4256 i[3456]86-*) machine=intel386 ;;
4257 powerpc-*) machine=macppc ;;
4258 sparc-*) machine=sparc ;;
4259 sparc64-*) machine=sparc ;;
4260 esac
4261 ;;
4262
4263 ## NetBSD ports
4264 *-*-netbsd* )
4265 opsys=netbsd
4266 case "${canonical}" in
4267 alpha*) machine=alpha ;;
4268 x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
4269 i[3456]86-*) machine=intel386 ;;
4270 m68k-*) machine=m68k ;;
4271 powerpc-*) machine=macppc ;;
067d23c9
KY
4272 sparc*-) machine=sparc ;;
4273 vax-*) machine=vax ;;
4274 esac
4275 ;;
4276
4277 ## OpenBSD ports
4278 *-*-openbsd* )
4279 opsys=openbsd
4280 case "${canonical}" in
4281 alpha*) machine=alpha ;;
4282 x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
4283 i386-*) machine=intel386 ;;
4284 powerpc-*) machine=macppc ;;
4285 sparc*) machine=sparc ;;
4286 vax-*) machine=vax ;;
4287 esac
4288 ;;
4289
067d23c9
KY
4290 ## Apple Darwin / Mac OS X
4291 *-apple-darwin* )
4292 case "${canonical}" in
4293 i[3456]86-* ) machine=intel386 ;;
4294 powerpc-* ) machine=macppc ;;
4295 x86_64-* ) machine=amdx86-64 ;;
4296 * ) unported=yes ;;
4297 esac
4298 opsys=darwin
4299 # Define CPP as follows to make autoconf work correctly.
4300 CPP="${CC-cc} -E -no-cpp-precomp"
4301 # Use fink packages if available.
4302 if test -d /sw/include && test -d /sw/lib; then
4303 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4304 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4305 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4306 fi
4307 ;;
4308
4309 ## HP 9000 series 700 and 800, running HP/UX
4310 hppa*-hp-hpux10.2* )
d6a003a8 4311 opsys=hpux10-20
067d23c9
KY
4312 ;;
4313 hppa*-hp-hpux1[1-9]* )
d6a003a8 4314 opsys=hpux11
067d23c9
KY
4315 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4316 ;;
4317
125c3718
PE
4318 ia64*-hp-hpux1[1-9]* )
4319 machine=hp800 opsys=hpux11
4320 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4321 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4322 CANNOT_DUMP=yes
4323 ;;
4324
4325 hppa*-*-linux-gnu* )
4326 machine=hp800 opsys=gnu-linux
4327 ;;
4328
067d23c9 4329 ## IBM machines
067d23c9
KY
4330 rs6000-ibm-aix4.[23]* )
4331 machine=ibmrs6000 opsys=aix4-2
4332 ;;
4333 powerpc-ibm-aix4.[23]* )
4334 machine=ibmrs6000 opsys=aix4-2
4335 ;;
4336 rs6000-ibm-aix[56]* )
4337 machine=ibmrs6000 opsys=aix4-2
4338 ;;
4339 powerpc-ibm-aix[56]* )
4340 machine=ibmrs6000 opsys=aix4-2
4341 ;;
4342
067d23c9
KY
4343 ## Silicon Graphics machines
4344 ## Iris 4D
4345 mips-sgi-irix6.5 )
4346 machine=iris4d opsys=irix6-5
4347 # Without defining _LANGUAGE_C, things get masked out in the headers
4348 # so that, for instance, grepping for `free' in stdlib.h fails and
4349 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4350 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4351 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4352 ;;
4353
4354 ## Suns
067d23c9
KY
4355 *-sun-solaris* \
4356 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4357 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4358 case "${canonical}" in
4359 i[3456]86-*-* ) machine=intel386 ;;
4360 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4361 sparc* ) machine=sparc ;;
4362 * ) unported=yes ;;
4363 esac
4364 case "${canonical}" in
4365 *-sunos5.6* | *-solaris2.6* )
4366 opsys=sol2-6
4367 NON_GNU_CPP=/usr/ccs/lib/cpp
4368 RANLIB="ar -ts"
4369 ;;
4370 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4371 opsys=sol2-6
4372 emacs_check_sunpro_c=yes
4373 NON_GNU_CPP=/usr/ccs/lib/cpp
4374 ;;
4375 *-sunos5* | *-solaris* )
4376 opsys=sol2-10
4377 emacs_check_sunpro_c=yes
4378 NON_GNU_CPP=/usr/ccs/lib/cpp
4379 ;;
4380 esac
4381 ## Watch out for a compiler that we know will not work.
4382 case "${canonical}" in
4383 *-solaris* | *-sunos5* )
4384 if [ "x$CC" = x/usr/ucb/cc ]; then
4385 ## /usr/ucb/cc doesn't work;
4386 ## we should find some other compiler that does work.
4387 unset CC
4388 fi
4389 ;;
4390 *) ;;
4391 esac
4392 ;;
4393
067d23c9
KY
4394 ## Intel 386 machines where we don't care about the manufacturer.
4395 i[3456]86-*-* )
4396 machine=intel386
4397 case "${canonical}" in
4398 *-cygwin ) opsys=cygwin ;;
4399 *-darwin* ) opsys=darwin
4400 CPP="${CC-cc} -E -no-cpp-precomp"
4401 ;;
067d23c9
KY
4402 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4403 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4404 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4405 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4406 esac
4407 ;;
4408
067d23c9
KY
4409 * )
4410 unported=yes
4411 ;;
4412esac
4413
4414### If the code above didn't choose an operating system, just choose
4415### an operating system based on the configuration name. You really
4416### only want to use this when you have no idea what the right
4417### operating system is; if you know what operating systems a machine
4418### runs, it's cleaner to make it explicit in the case statement
4419### above.
4420if test x"${opsys}" = x; then
4421 case "${canonical}" in
4422 *-gnu* ) opsys=gnu ;;
4423 * )
4424 unported=yes
4425 ;;
4426 esac
4427fi
4428
4429
4430
4431if test $unported = yes; then
2018939f 4432 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
067d23c9
KY
4433Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4434fi
4435
d6a003a8
AS
4436if test -n "$machine"; then
4437 machfile="m/${machine}.h"
4438else
4439 machfile=
4440fi
067d23c9
KY
4441opsysfile="s/${opsys}.h"
4442
4443
4444#### Choose a compiler.
4445test -n "$CC" && cc_specified=yes
4446
4447# Save the value of CFLAGS that the user specified.
4448SPECIFIED_CFLAGS="$CFLAGS"
4449
4450ac_ext=c
4451ac_cpp='$CPP $CPPFLAGS'
4452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455if test -n "$ac_tool_prefix"; then
4456 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4457set dummy ${ac_tool_prefix}gcc; ac_word=$2
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4460if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4461 $as_echo_n "(cached) " >&6
4462else
4463 if test -n "$CC"; then
4464 ac_cv_prog_CC="$CC" # Let the user override the test.
4465else
4466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467for as_dir in $PATH
4468do
4469 IFS=$as_save_IFS
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4473 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 break 2
4476 fi
4477done
4478 done
4479IFS=$as_save_IFS
4480
4481fi
4482fi
4483CC=$ac_cv_prog_CC
4484if test -n "$CC"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4486$as_echo "$CC" >&6; }
4487else
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489$as_echo "no" >&6; }
4490fi
4491
4492
4493fi
4494if test -z "$ac_cv_prog_CC"; then
4495 ac_ct_CC=$CC
4496 # Extract the first word of "gcc", so it can be a program name with args.
4497set dummy gcc; ac_word=$2
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4500if ${ac_cv_prog_ac_ct_CC+:} false; then :
067d23c9
KY
4501 $as_echo_n "(cached) " >&6
4502else
4503 if test -n "$ac_ct_CC"; then
4504 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4505else
4506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507for as_dir in $PATH
4508do
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513 ac_cv_prog_ac_ct_CC="gcc"
4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 break 2
4516 fi
4517done
4518 done
4519IFS=$as_save_IFS
4520
4521fi
4522fi
4523ac_ct_CC=$ac_cv_prog_ac_ct_CC
4524if test -n "$ac_ct_CC"; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4526$as_echo "$ac_ct_CC" >&6; }
4527else
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529$as_echo "no" >&6; }
4530fi
4531
4532 if test "x$ac_ct_CC" = x; then
4533 CC=""
4534 else
4535 case $cross_compiling:$ac_tool_warned in
4536yes:)
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4539ac_tool_warned=yes ;;
4540esac
4541 CC=$ac_ct_CC
4542 fi
4543else
4544 CC="$ac_cv_prog_CC"
4545fi
4546
4547if test -z "$CC"; then
4548 if test -n "$ac_tool_prefix"; then
4549 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4550set dummy ${ac_tool_prefix}cc; ac_word=$2
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4553if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4554 $as_echo_n "(cached) " >&6
4555else
4556 if test -n "$CC"; then
4557 ac_cv_prog_CC="$CC" # Let the user override the test.
4558else
4559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560for as_dir in $PATH
4561do
4562 IFS=$as_save_IFS
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566 ac_cv_prog_CC="${ac_tool_prefix}cc"
4567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 break 2
4569 fi
4570done
4571 done
4572IFS=$as_save_IFS
4573
4574fi
4575fi
4576CC=$ac_cv_prog_CC
4577if test -n "$CC"; then
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4579$as_echo "$CC" >&6; }
4580else
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582$as_echo "no" >&6; }
4583fi
4584
4585
4586 fi
4587fi
4588if test -z "$CC"; then
4589 # Extract the first word of "cc", so it can be a program name with args.
4590set dummy cc; ac_word=$2
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4593if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4594 $as_echo_n "(cached) " >&6
4595else
4596 if test -n "$CC"; then
4597 ac_cv_prog_CC="$CC" # Let the user override the test.
4598else
4599 ac_prog_rejected=no
4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4608 ac_prog_rejected=yes
4609 continue
4610 fi
4611 ac_cv_prog_CC="cc"
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4614 fi
4615done
4616 done
4617IFS=$as_save_IFS
4618
4619if test $ac_prog_rejected = yes; then
4620 # We found a bogon in the path, so make sure we never use it.
4621 set dummy $ac_cv_prog_CC
4622 shift
4623 if test $# != 0; then
4624 # We chose a different compiler from the bogus one.
4625 # However, it has the same basename, so the bogon will be chosen
4626 # first if we set CC to just the basename; use the full file name.
4627 shift
4628 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4629 fi
4630fi
4631fi
4632fi
4633CC=$ac_cv_prog_CC
4634if test -n "$CC"; then
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4636$as_echo "$CC" >&6; }
4637else
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639$as_echo "no" >&6; }
4640fi
4641
4642
4643fi
4644if test -z "$CC"; then
4645 if test -n "$ac_tool_prefix"; then
4646 for ac_prog in cl.exe
4647 do
4648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4649set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4652if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4653 $as_echo_n "(cached) " >&6
4654else
4655 if test -n "$CC"; then
4656 ac_cv_prog_CC="$CC" # Let the user override the test.
4657else
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4668 fi
4669done
4670 done
4671IFS=$as_save_IFS
4672
4673fi
4674fi
4675CC=$ac_cv_prog_CC
4676if test -n "$CC"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4678$as_echo "$CC" >&6; }
4679else
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681$as_echo "no" >&6; }
4682fi
4683
4684
4685 test -n "$CC" && break
4686 done
4687fi
4688if test -z "$CC"; then
4689 ac_ct_CC=$CC
4690 for ac_prog in cl.exe
4691do
4692 # Extract the first word of "$ac_prog", so it can be a program name with args.
4693set dummy $ac_prog; ac_word=$2
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4696if ${ac_cv_prog_ac_ct_CC+:} false; then :
067d23c9
KY
4697 $as_echo_n "(cached) " >&6
4698else
4699 if test -n "$ac_ct_CC"; then
4700 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4701else
4702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703for as_dir in $PATH
4704do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_prog_ac_ct_CC="$ac_prog"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4712 fi
4713done
4714 done
4715IFS=$as_save_IFS
4716
4717fi
4718fi
4719ac_ct_CC=$ac_cv_prog_ac_ct_CC
4720if test -n "$ac_ct_CC"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4722$as_echo "$ac_ct_CC" >&6; }
4723else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725$as_echo "no" >&6; }
4726fi
4727
4728
4729 test -n "$ac_ct_CC" && break
4730done
4731
4732 if test "x$ac_ct_CC" = x; then
4733 CC=""
4734 else
4735 case $cross_compiling:$ac_tool_warned in
4736yes:)
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739ac_tool_warned=yes ;;
4740esac
4741 CC=$ac_ct_CC
4742 fi
4743fi
4744
4745fi
4746
4747
4748test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4750as_fn_error $? "no acceptable C compiler found in \$PATH
d6974efa 4751See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4752
4753# Provide some information about the compiler.
4754$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4755set X $ac_compile
4756ac_compiler=$2
4757for ac_option in --version -v -V -qversion; do
4758 { { ac_try="$ac_compiler $ac_option >&5"
4759case "(($ac_try" in
4760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4762esac
4763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4764$as_echo "$ac_try_echo"; } >&5
4765 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4766 ac_status=$?
4767 if test -s conftest.err; then
4768 sed '10a\
4769... rest of stderr output deleted ...
4770 10q' conftest.err >conftest.er1
4771 cat conftest.er1 >&5
4772 fi
4773 rm -f conftest.er1 conftest.err
4774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4775 test $ac_status = 0; }
4776done
4777
4778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779/* end confdefs.h. */
4780
4781int
4782main ()
4783{
4784
4785 ;
4786 return 0;
4787}
4788_ACEOF
4789ac_clean_files_save=$ac_clean_files
4790ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4791# Try to create an executable without -o first, disregard a.out.
4792# It will help us diagnose broken compilers, and finding out an intuition
4793# of exeext.
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4795$as_echo_n "checking whether the C compiler works... " >&6; }
4796ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4797
4798# The possible output files:
4799ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4800
4801ac_rmfiles=
4802for ac_file in $ac_files
4803do
4804 case $ac_file in
4805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4806 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4807 esac
4808done
4809rm -f $ac_rmfiles
4810
4811if { { ac_try="$ac_link_default"
4812case "(($ac_try" in
4813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4814 *) ac_try_echo=$ac_try;;
4815esac
4816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4817$as_echo "$ac_try_echo"; } >&5
4818 (eval "$ac_link_default") 2>&5
4819 ac_status=$?
4820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4821 test $ac_status = 0; }; then :
4822 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4823# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4824# in a Makefile. We should not override ac_cv_exeext if it was cached,
4825# so that the user can short-circuit this test for compilers unknown to
4826# Autoconf.
4827for ac_file in $ac_files ''
4828do
4829 test -f "$ac_file" || continue
4830 case $ac_file in
4831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4832 ;;
4833 [ab].out )
4834 # We found the default executable, but exeext='' is most
4835 # certainly right.
4836 break;;
4837 *.* )
4838 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4839 then :; else
4840 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4841 fi
4842 # We set ac_cv_exeext here because the later test for it is not
4843 # safe: cross compilers may not add the suffix if given an `-o'
4844 # argument, so we may need to know it at that point already.
4845 # Even if this section looks crufty: it has the advantage of
4846 # actually working.
4847 break;;
4848 * )
4849 break;;
4850 esac
4851done
4852test "$ac_cv_exeext" = no && ac_cv_exeext=
4853
4854else
4855 ac_file=''
4856fi
4857if test -z "$ac_file"; then :
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859$as_echo "no" >&6; }
4860$as_echo "$as_me: failed program was:" >&5
4861sed 's/^/| /' conftest.$ac_ext >&5
4862
4863{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4865as_fn_error 77 "C compiler cannot create executables
d6974efa 4866See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4867else
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4869$as_echo "yes" >&6; }
4870fi
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4872$as_echo_n "checking for C compiler default output file name... " >&6; }
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4874$as_echo "$ac_file" >&6; }
4875ac_exeext=$ac_cv_exeext
4876
4877rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4878ac_clean_files=$ac_clean_files_save
4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4880$as_echo_n "checking for suffix of executables... " >&6; }
4881if { { ac_try="$ac_link"
4882case "(($ac_try" in
4883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884 *) ac_try_echo=$ac_try;;
4885esac
4886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4887$as_echo "$ac_try_echo"; } >&5
4888 (eval "$ac_link") 2>&5
4889 ac_status=$?
4890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4891 test $ac_status = 0; }; then :
4892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4893# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4894# work properly (i.e., refer to `conftest.exe'), while it won't with
4895# `rm'.
4896for ac_file in conftest.exe conftest conftest.*; do
4897 test -f "$ac_file" || continue
4898 case $ac_file in
4899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4901 break;;
4902 * ) break;;
4903 esac
4904done
4905else
4906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4908as_fn_error $? "cannot compute suffix of executables: cannot compile and link
d6974efa 4909See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4910fi
4911rm -f conftest conftest$ac_cv_exeext
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4913$as_echo "$ac_cv_exeext" >&6; }
4914
4915rm -f conftest.$ac_ext
4916EXEEXT=$ac_cv_exeext
4917ac_exeext=$EXEEXT
4918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919/* end confdefs.h. */
4920#include <stdio.h>
4921int
4922main ()
4923{
4924FILE *f = fopen ("conftest.out", "w");
4925 return ferror (f) || fclose (f) != 0;
4926
4927 ;
4928 return 0;
4929}
4930_ACEOF
4931ac_clean_files="$ac_clean_files conftest.out"
4932# Check that the compiler produces executables we can run. If not, either
4933# the compiler is broken, or we cross compile.
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4935$as_echo_n "checking whether we are cross compiling... " >&6; }
4936if test "$cross_compiling" != yes; then
4937 { { ac_try="$ac_link"
4938case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941esac
4942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4943$as_echo "$ac_try_echo"; } >&5
4944 (eval "$ac_link") 2>&5
4945 ac_status=$?
4946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4947 test $ac_status = 0; }
4948 if { ac_try='./conftest$ac_cv_exeext'
4949 { { case "(($ac_try" in
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4952esac
4953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4954$as_echo "$ac_try_echo"; } >&5
4955 (eval "$ac_try") 2>&5
4956 ac_status=$?
4957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4958 test $ac_status = 0; }; }; then
4959 cross_compiling=no
4960 else
4961 if test "$cross_compiling" = maybe; then
4962 cross_compiling=yes
4963 else
4964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4966as_fn_error $? "cannot run C compiled programs.
067d23c9 4967If you meant to cross compile, use \`--host'.
d6974efa 4968See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4969 fi
4970 fi
4971fi
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4973$as_echo "$cross_compiling" >&6; }
4974
4975rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4976ac_clean_files=$ac_clean_files_save
4977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4978$as_echo_n "checking for suffix of object files... " >&6; }
d6974efa 4979if ${ac_cv_objext+:} false; then :
067d23c9
KY
4980 $as_echo_n "(cached) " >&6
4981else
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983/* end confdefs.h. */
4984
4985int
4986main ()
4987{
4988
4989 ;
4990 return 0;
4991}
4992_ACEOF
4993rm -f conftest.o conftest.obj
4994if { { ac_try="$ac_compile"
4995case "(($ac_try" in
4996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4997 *) ac_try_echo=$ac_try;;
4998esac
4999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5000$as_echo "$ac_try_echo"; } >&5
5001 (eval "$ac_compile") 2>&5
5002 ac_status=$?
5003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5004 test $ac_status = 0; }; then :
5005 for ac_file in conftest.o conftest.obj conftest.*; do
5006 test -f "$ac_file" || continue;
5007 case $ac_file in
5008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5009 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5010 break;;
5011 esac
5012done
5013else
5014 $as_echo "$as_me: failed program was:" >&5
5015sed 's/^/| /' conftest.$ac_ext >&5
5016
5017{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5018$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 5019as_fn_error $? "cannot compute suffix of object files: cannot compile
d6974efa 5020See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
5021fi
5022rm -f conftest.$ac_cv_objext conftest.$ac_ext
5023fi
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5025$as_echo "$ac_cv_objext" >&6; }
5026OBJEXT=$ac_cv_objext
5027ac_objext=$OBJEXT
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5029$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d6974efa 5030if ${ac_cv_c_compiler_gnu+:} false; then :
067d23c9
KY
5031 $as_echo_n "(cached) " >&6
5032else
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034/* end confdefs.h. */
5035
5036int
5037main ()
5038{
5039#ifndef __GNUC__
5040 choke me
5041#endif
5042
5043 ;
5044 return 0;
5045}
5046_ACEOF
5047if ac_fn_c_try_compile "$LINENO"; then :
5048 ac_compiler_gnu=yes
5049else
5050 ac_compiler_gnu=no
5051fi
5052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053ac_cv_c_compiler_gnu=$ac_compiler_gnu
5054
5055fi
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5057$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5058if test $ac_compiler_gnu = yes; then
5059 GCC=yes
5060else
5061 GCC=
5062fi
5063ac_test_CFLAGS=${CFLAGS+set}
5064ac_save_CFLAGS=$CFLAGS
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5066$as_echo_n "checking whether $CC accepts -g... " >&6; }
d6974efa 5067if ${ac_cv_prog_cc_g+:} false; then :
067d23c9
KY
5068 $as_echo_n "(cached) " >&6
5069else
5070 ac_save_c_werror_flag=$ac_c_werror_flag
5071 ac_c_werror_flag=yes
5072 ac_cv_prog_cc_g=no
5073 CFLAGS="-g"
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075/* end confdefs.h. */
5076
5077int
5078main ()
5079{
5080
5081 ;
5082 return 0;
5083}
5084_ACEOF
5085if ac_fn_c_try_compile "$LINENO"; then :
5086 ac_cv_prog_cc_g=yes
5087else
5088 CFLAGS=""
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090/* end confdefs.h. */
5091
5092int
5093main ()
5094{
5095
5096 ;
5097 return 0;
5098}
5099_ACEOF
5100if ac_fn_c_try_compile "$LINENO"; then :
5101
5102else
5103 ac_c_werror_flag=$ac_save_c_werror_flag
5104 CFLAGS="-g"
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106/* end confdefs.h. */
5107
5108int
5109main ()
5110{
5111
5112 ;
5113 return 0;
5114}
5115_ACEOF
5116if ac_fn_c_try_compile "$LINENO"; then :
5117 ac_cv_prog_cc_g=yes
5118fi
5119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120fi
5121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122fi
5123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5124 ac_c_werror_flag=$ac_save_c_werror_flag
5125fi
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5127$as_echo "$ac_cv_prog_cc_g" >&6; }
5128if test "$ac_test_CFLAGS" = set; then
5129 CFLAGS=$ac_save_CFLAGS
5130elif test $ac_cv_prog_cc_g = yes; then
5131 if test "$GCC" = yes; then
5132 CFLAGS="-g -O2"
5133 else
5134 CFLAGS="-g"
5135 fi
5136else
5137 if test "$GCC" = yes; then
5138 CFLAGS="-O2"
5139 else
5140 CFLAGS=
5141 fi
5142fi
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5144$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d6974efa 5145if ${ac_cv_prog_cc_c89+:} false; then :
067d23c9
KY
5146 $as_echo_n "(cached) " >&6
5147else
5148 ac_cv_prog_cc_c89=no
5149ac_save_CC=$CC
5150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151/* end confdefs.h. */
5152#include <stdarg.h>
5153#include <stdio.h>
5154#include <sys/types.h>
5155#include <sys/stat.h>
5156/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5157struct buf { int x; };
5158FILE * (*rcsopen) (struct buf *, struct stat *, int);
5159static char *e (p, i)
5160 char **p;
5161 int i;
5162{
5163 return p[i];
5164}
5165static char *f (char * (*g) (char **, int), char **p, ...)
5166{
5167 char *s;
5168 va_list v;
5169 va_start (v,p);
5170 s = g (p, va_arg (v,int));
5171 va_end (v);
5172 return s;
5173}
5174
5175/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5176 function prototypes and stuff, but not '\xHH' hex character constants.
5177 These don't provoke an error unfortunately, instead are silently treated
5178 as 'x'. The following induces an error, until -std is added to get
5179 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5180 array size at least. It's necessary to write '\x00'==0 to get something
5181 that's true only with -std. */
5182int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5183
5184/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5185 inside strings and character constants. */
5186#define FOO(x) 'x'
5187int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5188
5189int test (int i, double x);
5190struct s1 {int (*f) (int a);};
5191struct s2 {int (*f) (double a);};
5192int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5193int argc;
5194char **argv;
5195int
5196main ()
5197{
5198return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5199 ;
5200 return 0;
5201}
5202_ACEOF
5203for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5204 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5205do
5206 CC="$ac_save_CC $ac_arg"
5207 if ac_fn_c_try_compile "$LINENO"; then :
5208 ac_cv_prog_cc_c89=$ac_arg
5209fi
5210rm -f core conftest.err conftest.$ac_objext
5211 test "x$ac_cv_prog_cc_c89" != "xno" && break
5212done
743c80a7
PE
5213rm -f conftest.$ac_ext
5214CC=$ac_save_CC
5215
5216fi
5217# AC_CACHE_VAL
5218case "x$ac_cv_prog_cc_c89" in
5219 x)
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5221$as_echo "none needed" >&6; } ;;
5222 xno)
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5224$as_echo "unsupported" >&6; } ;;
5225 *)
5226 CC="$CC $ac_cv_prog_cc_c89"
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5228$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5229esac
5230if test "x$ac_cv_prog_cc_c89" != xno; then :
5231
5232fi
5233
5234ac_ext=c
5235ac_cpp='$CPP $CPPFLAGS'
5236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239DEPDIR="${am__leading_dot}deps"
5240
5241ac_config_commands="$ac_config_commands depfiles"
5242
5243
5244am_make=${MAKE-make}
5245cat > confinc << 'END'
5246am__doit:
5247 @echo this is the am__doit target
5248.PHONY: am__doit
5249END
5250# If we don't find an include directive, just comment out the code.
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5252$as_echo_n "checking for style of include used by $am_make... " >&6; }
5253am__include="#"
5254am__quote=
5255_am_result=none
5256# First try GNU make style include.
5257echo "include confinc" > confmf
5258# Ignore all kinds of additional output from `make'.
5259case `$am_make -s -f confmf 2> /dev/null` in #(
5260*the\ am__doit\ target*)
5261 am__include=include
5262 am__quote=
5263 _am_result=GNU
5264 ;;
5265esac
5266# Now try BSD make style include.
5267if test "$am__include" = "#"; then
5268 echo '.include "confinc"' > confmf
5269 case `$am_make -s -f confmf 2> /dev/null` in #(
5270 *the\ am__doit\ target*)
5271 am__include=.include
5272 am__quote="\""
5273 _am_result=BSD
5274 ;;
5275 esac
5276fi
5277
5278
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5280$as_echo "$_am_result" >&6; }
5281rm -f confinc confmf
5282
5283# Check whether --enable-dependency-tracking was given.
5284if test "${enable_dependency_tracking+set}" = set; then :
5285 enableval=$enable_dependency_tracking;
5286fi
5287
5288if test "x$enable_dependency_tracking" != xno; then
5289 am_depcomp="$ac_aux_dir/depcomp"
5290 AMDEPBACKSLASH='\'
5291fi
5292 if test "x$enable_dependency_tracking" != xno; then
5293 AMDEP_TRUE=
5294 AMDEP_FALSE='#'
5295else
5296 AMDEP_TRUE='#'
5297 AMDEP_FALSE=
5298fi
5299
5300
5301
5302depcc="$CC" am_compiler_list=
5303
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5305$as_echo_n "checking dependency style of $depcc... " >&6; }
d6974efa 5306if ${am_cv_CC_dependencies_compiler_type+:} false; then :
743c80a7
PE
5307 $as_echo_n "(cached) " >&6
5308else
5309 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5310 # We make a subdir and do the tests there. Otherwise we can end up
5311 # making bogus files that we don't know about and never remove. For
5312 # instance it was reported that on HP-UX the gcc test will end up
5313 # making a dummy file named `D' -- because `-MD' means `put the output
5314 # in D'.
5315 mkdir conftest.dir
5316 # Copy depcomp to subdir because otherwise we won't find it if we're
5317 # using a relative directory.
5318 cp "$am_depcomp" conftest.dir
5319 cd conftest.dir
5320 # We will build objects and dependencies in a subdirectory because
5321 # it helps to detect inapplicable dependency modes. For instance
5322 # both Tru64's cc and ICC support -MD to output dependencies as a
5323 # side effect of compilation, but ICC will put the dependencies in
5324 # the current directory while Tru64 will put them in the object
5325 # directory.
5326 mkdir sub
5327
5328 am_cv_CC_dependencies_compiler_type=none
5329 if test "$am_compiler_list" = ""; then
5330 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5331 fi
5332 am__universal=false
5333 case " $depcc " in #(
5334 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5335 esac
5336
5337 for depmode in $am_compiler_list; do
5338 # Setup a source with many dependencies, because some compilers
5339 # like to wrap large dependency lists on column 80 (with \), and
5340 # we should not choose a depcomp mode which is confused by this.
5341 #
5342 # We need to recreate these files for each test, as the compiler may
5343 # overwrite some of them when testing with obscure command lines.
5344 # This happens at least with the AIX C compiler.
5345 : > sub/conftest.c
5346 for i in 1 2 3 4 5 6; do
5347 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5348 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5349 # Solaris 8's {/usr,}/bin/sh.
5350 touch sub/conftst$i.h
5351 done
5352 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5353
5354 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5355 # mode. It turns out that the SunPro C++ compiler does not properly
5356 # handle `-M -o', and we need to detect this. Also, some Intel
5357 # versions had trouble with output in subdirs
5358 am__obj=sub/conftest.${OBJEXT-o}
5359 am__minus_obj="-o $am__obj"
5360 case $depmode in
5361 gcc)
5362 # This depmode causes a compiler race in universal mode.
5363 test "$am__universal" = false || continue
5364 ;;
5365 nosideeffect)
5366 # after this tag, mechanisms are not by side-effect, so they'll
5367 # only be used when explicitly requested
5368 if test "x$enable_dependency_tracking" = xyes; then
5369 continue
5370 else
5371 break
5372 fi
5373 ;;
5374 msvisualcpp | msvcmsys)
5375 # This compiler won't grok `-c -o', but also, the minuso test has
5376 # not run yet. These depmodes are late enough in the game, and
5377 # so weak that their functioning should not be impacted.
5378 am__obj=conftest.${OBJEXT-o}
5379 am__minus_obj=
5380 ;;
5381 none) break ;;
5382 esac
5383 if depmode=$depmode \
5384 source=sub/conftest.c object=$am__obj \
5385 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5386 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5387 >/dev/null 2>conftest.err &&
5388 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5389 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5390 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5391 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5392 # icc doesn't choke on unknown options, it will just issue warnings
5393 # or remarks (even with -Werror). So we grep stderr for any message
5394 # that says an option was ignored or not supported.
5395 # When given -MP, icc 7.0 and 7.1 complain thusly:
5396 # icc: Command line warning: ignoring option '-M'; no argument required
5397 # The diagnosis changed in icc 8.0:
5398 # icc: Command line remark: option '-MP' not supported
5399 if (grep 'ignoring option' conftest.err ||
5400 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5401 am_cv_CC_dependencies_compiler_type=$depmode
5402 break
5403 fi
5404 fi
5405 done
5406
5407 cd ..
5408 rm -rf conftest.dir
5409else
5410 am_cv_CC_dependencies_compiler_type=none
5411fi
5412
5413fi
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5415$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5416CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5417
5418 if
5419 test "x$enable_dependency_tracking" != xno \
5420 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5421 am__fastdepCC_TRUE=
5422 am__fastdepCC_FALSE='#'
5423else
5424 am__fastdepCC_TRUE='#'
5425 am__fastdepCC_FALSE=
5426fi
5427
5428
5429if test "x$CC" != xcc; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5431$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5432else
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5434$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5435fi
5436set dummy $CC; ac_cc=`$as_echo "$2" |
5437 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
d6974efa 5438if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
743c80a7
PE
5439 $as_echo_n "(cached) " >&6
5440else
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442/* end confdefs.h. */
5443
5444int
5445main ()
5446{
5447
5448 ;
5449 return 0;
5450}
5451_ACEOF
5452# Make sure it works both with $CC and with simple cc.
5453# We do the test twice because some compilers refuse to overwrite an
5454# existing .o file with -o, though they will create one.
5455ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5456rm -f conftest2.*
5457if { { case "(($ac_try" in
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5460esac
5461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5462$as_echo "$ac_try_echo"; } >&5
5463 (eval "$ac_try") 2>&5
5464 ac_status=$?
5465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5466 test $ac_status = 0; } &&
5467 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469 *) ac_try_echo=$ac_try;;
5470esac
5471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5472$as_echo "$ac_try_echo"; } >&5
5473 (eval "$ac_try") 2>&5
5474 ac_status=$?
5475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5476 test $ac_status = 0; };
5477then
5478 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5479 if test "x$CC" != xcc; then
5480 # Test first that cc exists at all.
5481 if { ac_try='cc -c conftest.$ac_ext >&5'
5482 { { case "(($ac_try" in
5483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5485esac
5486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5487$as_echo "$ac_try_echo"; } >&5
5488 (eval "$ac_try") 2>&5
5489 ac_status=$?
5490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5491 test $ac_status = 0; }; }; then
5492 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5493 rm -f conftest2.*
5494 if { { case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5497esac
5498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5499$as_echo "$ac_try_echo"; } >&5
5500 (eval "$ac_try") 2>&5
5501 ac_status=$?
5502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5503 test $ac_status = 0; } &&
5504 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5507esac
5508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5509$as_echo "$ac_try_echo"; } >&5
5510 (eval "$ac_try") 2>&5
5511 ac_status=$?
5512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5513 test $ac_status = 0; };
5514 then
5515 # cc works too.
5516 :
5517 else
5518 # cc exists but doesn't like -o.
5519 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5520 fi
5521 fi
5522 fi
5523else
5524 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5525fi
5526rm -f core conftest*
5527
5528fi
5529if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5531$as_echo "yes" >&6; }
5532else
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534$as_echo "no" >&6; }
5535
5536$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5537
5538fi
5539
5540# FIXME: we rely on the cache variable name because
5541# there is no other way.
5542set dummy $CC
5543am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5544eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5545if test "$am_t" != yes; then
5546 # Losing compiler, so override with the script.
5547 # FIXME: It is wrong to rewrite CC.
5548 # But if we don't then we get into trouble of one sort or another.
5549 # A longer-term fix would be to have automake use am__CC in this case,
5550 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5551 CC="$am_aux_dir/compile $CC"
5552fi
5553
5554
5555
5556# Initialize gnulib right after verifying that the C compiler works.
5557if test -n "$ac_tool_prefix"; then
5558 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5559set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5561$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 5562if ${ac_cv_prog_RANLIB+:} false; then :
743c80a7
PE
5563 $as_echo_n "(cached) " >&6
5564else
5565 if test -n "$RANLIB"; then
5566 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5567else
5568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569for as_dir in $PATH
5570do
5571 IFS=$as_save_IFS
5572 test -z "$as_dir" && as_dir=.
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5575 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5577 break 2
5578 fi
5579done
5580 done
5581IFS=$as_save_IFS
5582
5583fi
5584fi
5585RANLIB=$ac_cv_prog_RANLIB
5586if test -n "$RANLIB"; then
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5588$as_echo "$RANLIB" >&6; }
5589else
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591$as_echo "no" >&6; }
5592fi
5593
5594
5595fi
5596if test -z "$ac_cv_prog_RANLIB"; then
5597 ac_ct_RANLIB=$RANLIB
5598 # Extract the first word of "ranlib", so it can be a program name with args.
5599set dummy ranlib; ac_word=$2
5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 5602if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
743c80a7
PE
5603 $as_echo_n "(cached) " >&6
5604else
5605 if test -n "$ac_ct_RANLIB"; then
5606 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5607else
5608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609for as_dir in $PATH
5610do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_prog_ac_ct_RANLIB="ranlib"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2
5618 fi
5619done
5620 done
5621IFS=$as_save_IFS
067d23c9
KY
5622
5623fi
743c80a7
PE
5624fi
5625ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5626if test -n "$ac_ct_RANLIB"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5628$as_echo "$ac_ct_RANLIB" >&6; }
5629else
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631$as_echo "no" >&6; }
5632fi
067d23c9 5633
743c80a7
PE
5634 if test "x$ac_ct_RANLIB" = x; then
5635 RANLIB=":"
5636 else
5637 case $cross_compiling:$ac_tool_warned in
5638yes:)
5639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5641ac_tool_warned=yes ;;
5642esac
5643 RANLIB=$ac_ct_RANLIB
5644 fi
5645else
5646 RANLIB="$ac_cv_prog_RANLIB"
067d23c9
KY
5647fi
5648
743c80a7 5649
067d23c9
KY
5650ac_ext=c
5651ac_cpp='$CPP $CPPFLAGS'
5652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5656$as_echo_n "checking how to run the C preprocessor... " >&6; }
5657# On Suns, sometimes $CPP names a directory.
5658if test -n "$CPP" && test -d "$CPP"; then
5659 CPP=
5660fi
5661if test -z "$CPP"; then
d6974efa 5662 if ${ac_cv_prog_CPP+:} false; then :
067d23c9
KY
5663 $as_echo_n "(cached) " >&6
5664else
5665 # Double quotes because CPP needs to be expanded
5666 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5667 do
5668 ac_preproc_ok=false
5669for ac_c_preproc_warn_flag in '' yes
5670do
5671 # Use a header file that comes with gcc, so configuring glibc
5672 # with a fresh cross-compiler works.
5673 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5674 # <limits.h> exists even on freestanding compilers.
5675 # On the NeXT, cc -E runs the code through the compiler's parser,
5676 # not just through cpp. "Syntax error" is here to catch this case.
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678/* end confdefs.h. */
5679#ifdef __STDC__
5680# include <limits.h>
5681#else
5682# include <assert.h>
5683#endif
5684 Syntax error
5685_ACEOF
5686if ac_fn_c_try_cpp "$LINENO"; then :
5687
5688else
5689 # Broken: fails on valid input.
5690continue
5691fi
2018939f 5692rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5693
5694 # OK, works on sane cases. Now check whether nonexistent headers
5695 # can be detected and how.
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697/* end confdefs.h. */
5698#include <ac_nonexistent.h>
5699_ACEOF
5700if ac_fn_c_try_cpp "$LINENO"; then :
5701 # Broken: success on invalid input.
5702continue
5703else
5704 # Passes both tests.
5705ac_preproc_ok=:
5706break
5707fi
2018939f 5708rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5709
5710done
5711# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 5712rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
5713if $ac_preproc_ok; then :
5714 break
5715fi
5716
5717 done
5718 ac_cv_prog_CPP=$CPP
5719
5720fi
5721 CPP=$ac_cv_prog_CPP
5722else
5723 ac_cv_prog_CPP=$CPP
5724fi
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5726$as_echo "$CPP" >&6; }
5727ac_preproc_ok=false
5728for ac_c_preproc_warn_flag in '' yes
5729do
5730 # Use a header file that comes with gcc, so configuring glibc
5731 # with a fresh cross-compiler works.
5732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5733 # <limits.h> exists even on freestanding compilers.
5734 # On the NeXT, cc -E runs the code through the compiler's parser,
5735 # not just through cpp. "Syntax error" is here to catch this case.
5736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737/* end confdefs.h. */
5738#ifdef __STDC__
5739# include <limits.h>
5740#else
5741# include <assert.h>
5742#endif
5743 Syntax error
5744_ACEOF
5745if ac_fn_c_try_cpp "$LINENO"; then :
5746
5747else
5748 # Broken: fails on valid input.
5749continue
5750fi
2018939f 5751rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5752
5753 # OK, works on sane cases. Now check whether nonexistent headers
5754 # can be detected and how.
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756/* end confdefs.h. */
5757#include <ac_nonexistent.h>
5758_ACEOF
5759if ac_fn_c_try_cpp "$LINENO"; then :
5760 # Broken: success on invalid input.
5761continue
5762else
5763 # Passes both tests.
5764ac_preproc_ok=:
5765break
5766fi
2018939f 5767rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5768
5769done
5770# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 5771rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
5772if $ac_preproc_ok; then :
5773
5774else
5775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 5777as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
d6974efa 5778See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
5779fi
5780
5781ac_ext=c
5782ac_cpp='$CPP $CPPFLAGS'
5783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786
5787
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5789$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d6974efa 5790if ${ac_cv_path_GREP+:} false; then :
067d23c9
KY
5791 $as_echo_n "(cached) " >&6
5792else
5793 if test -z "$GREP"; then
5794 ac_path_GREP_found=false
5795 # Loop through the user's path and test for each of PROGNAME-LIST
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5798do
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_prog in grep ggrep; do
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5804 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5805# Check for GNU ac_path_GREP and select it if it is found.
5806 # Check for GNU $ac_path_GREP
5807case `"$ac_path_GREP" --version 2>&1` in
5808*GNU*)
5809 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5810*)
5811 ac_count=0
5812 $as_echo_n 0123456789 >"conftest.in"
5813 while :
5814 do
5815 cat "conftest.in" "conftest.in" >"conftest.tmp"
5816 mv "conftest.tmp" "conftest.in"
5817 cp "conftest.in" "conftest.nl"
5818 $as_echo 'GREP' >> "conftest.nl"
5819 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5821 as_fn_arith $ac_count + 1 && ac_count=$as_val
5822 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5823 # Best one so far, save it but keep looking for a better one
5824 ac_cv_path_GREP="$ac_path_GREP"
5825 ac_path_GREP_max=$ac_count
5826 fi
5827 # 10*(2^10) chars as input seems more than enough
5828 test $ac_count -gt 10 && break
5829 done
5830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5831esac
5832
5833 $ac_path_GREP_found && break 3
5834 done
5835 done
5836 done
5837IFS=$as_save_IFS
5838 if test -z "$ac_cv_path_GREP"; then
2018939f 5839 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
067d23c9
KY
5840 fi
5841else
5842 ac_cv_path_GREP=$GREP
5843fi
5844
5845fi
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5847$as_echo "$ac_cv_path_GREP" >&6; }
5848 GREP="$ac_cv_path_GREP"
5849
5850
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5852$as_echo_n "checking for egrep... " >&6; }
d6974efa 5853if ${ac_cv_path_EGREP+:} false; then :
067d23c9
KY
5854 $as_echo_n "(cached) " >&6
5855else
5856 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5857 then ac_cv_path_EGREP="$GREP -E"
5858 else
5859 if test -z "$EGREP"; then
5860 ac_path_EGREP_found=false
5861 # Loop through the user's path and test for each of PROGNAME-LIST
5862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5864do
5865 IFS=$as_save_IFS
5866 test -z "$as_dir" && as_dir=.
5867 for ac_prog in egrep; do
5868 for ac_exec_ext in '' $ac_executable_extensions; do
5869 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5870 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5871# Check for GNU ac_path_EGREP and select it if it is found.
5872 # Check for GNU $ac_path_EGREP
5873case `"$ac_path_EGREP" --version 2>&1` in
5874*GNU*)
5875 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5876*)
5877 ac_count=0
5878 $as_echo_n 0123456789 >"conftest.in"
5879 while :
5880 do
5881 cat "conftest.in" "conftest.in" >"conftest.tmp"
5882 mv "conftest.tmp" "conftest.in"
5883 cp "conftest.in" "conftest.nl"
5884 $as_echo 'EGREP' >> "conftest.nl"
5885 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5886 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5887 as_fn_arith $ac_count + 1 && ac_count=$as_val
5888 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5889 # Best one so far, save it but keep looking for a better one
5890 ac_cv_path_EGREP="$ac_path_EGREP"
5891 ac_path_EGREP_max=$ac_count
5892 fi
5893 # 10*(2^10) chars as input seems more than enough
5894 test $ac_count -gt 10 && break
5895 done
5896 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5897esac
5898
5899 $ac_path_EGREP_found && break 3
5900 done
5901 done
5902 done
5903IFS=$as_save_IFS
5904 if test -z "$ac_cv_path_EGREP"; then
2018939f 5905 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
067d23c9
KY
5906 fi
5907else
5908 ac_cv_path_EGREP=$EGREP
5909fi
5910
5911 fi
5912fi
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5914$as_echo "$ac_cv_path_EGREP" >&6; }
5915 EGREP="$ac_cv_path_EGREP"
5916
5917
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5919$as_echo_n "checking for ANSI C header files... " >&6; }
d6974efa 5920if ${ac_cv_header_stdc+:} false; then :
067d23c9
KY
5921 $as_echo_n "(cached) " >&6
5922else
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924/* end confdefs.h. */
5925#include <stdlib.h>
5926#include <stdarg.h>
5927#include <string.h>
5928#include <float.h>
5929
5930int
5931main ()
5932{
5933
5934 ;
5935 return 0;
5936}
5937_ACEOF
5938if ac_fn_c_try_compile "$LINENO"; then :
5939 ac_cv_header_stdc=yes
5940else
5941 ac_cv_header_stdc=no
5942fi
5943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5944
5945if test $ac_cv_header_stdc = yes; then
5946 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948/* end confdefs.h. */
5949#include <string.h>
5950
5951_ACEOF
5952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5953 $EGREP "memchr" >/dev/null 2>&1; then :
5954
5955else
5956 ac_cv_header_stdc=no
5957fi
5958rm -f conftest*
5959
5960fi
5961
5962if test $ac_cv_header_stdc = yes; then
5963 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965/* end confdefs.h. */
5966#include <stdlib.h>
5967
5968_ACEOF
5969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5970 $EGREP "free" >/dev/null 2>&1; then :
5971
5972else
5973 ac_cv_header_stdc=no
5974fi
5975rm -f conftest*
5976
5977fi
5978
5979if test $ac_cv_header_stdc = yes; then
5980 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5981 if test "$cross_compiling" = yes; then :
5982 :
5983else
5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985/* end confdefs.h. */
5986#include <ctype.h>
5987#include <stdlib.h>
5988#if ((' ' & 0x0FF) == 0x020)
5989# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5990# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5991#else
5992# define ISLOWER(c) \
5993 (('a' <= (c) && (c) <= 'i') \
5994 || ('j' <= (c) && (c) <= 'r') \
5995 || ('s' <= (c) && (c) <= 'z'))
5996# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5997#endif
5998
5999#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6000int
6001main ()
6002{
6003 int i;
6004 for (i = 0; i < 256; i++)
6005 if (XOR (islower (i), ISLOWER (i))
6006 || toupper (i) != TOUPPER (i))
6007 return 2;
6008 return 0;
6009}
6010_ACEOF
6011if ac_fn_c_try_run "$LINENO"; then :
6012
6013else
6014 ac_cv_header_stdc=no
6015fi
6016rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6017 conftest.$ac_objext conftest.beam conftest.$ac_ext
6018fi
6019
6020fi
6021fi
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6023$as_echo "$ac_cv_header_stdc" >&6; }
6024if test $ac_cv_header_stdc = yes; then
6025
6026$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6027
6028fi
6029
6030# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6031for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6032 inttypes.h stdint.h unistd.h
6033do :
6034 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6035ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6036"
2018939f 6037if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
6038 cat >>confdefs.h <<_ACEOF
6039#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6040_ACEOF
6041
6042fi
6043
6044done
6045
6046
6047
1fd182f0
PE
6048
6049
067d23c9 6050 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d6974efa 6051if test "x$ac_cv_header_minix_config_h" = xyes; then :
067d23c9
KY
6052 MINIX=yes
6053else
6054 MINIX=
6055fi
6056
6057
6058 if test "$MINIX" = yes; then
6059
6060$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6061
6062
6063$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6064
6065
6066$as_echo "#define _MINIX 1" >>confdefs.h
6067
6068 fi
6069
1fd182f0
PE
6070 case "$host_os" in
6071 hpux*)
6072
6073$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6074
6075 ;;
6076 esac
6077
067d23c9
KY
6078
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6080$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d6974efa 6081if ${ac_cv_safe_to_define___extensions__+:} false; then :
067d23c9
KY
6082 $as_echo_n "(cached) " >&6
6083else
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085/* end confdefs.h. */
6086
1fd182f0
PE
6087# define __EXTENSIONS__ 1
6088 $ac_includes_default
067d23c9
KY
6089int
6090main ()
6091{
6092
6093 ;
6094 return 0;
6095}
6096_ACEOF
6097if ac_fn_c_try_compile "$LINENO"; then :
6098 ac_cv_safe_to_define___extensions__=yes
6099else
6100 ac_cv_safe_to_define___extensions__=no
6101fi
6102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103fi
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6105$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6106 test $ac_cv_safe_to_define___extensions__ = yes &&
6107 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6108
6109 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6110
6111 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6112
6113 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6114
6115 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6116
6117
6118
1fd182f0
PE
6119
6120
6121
6122
6123
6124
6125
6126 # Code from module arg-nonnull:
6127 # Code from module c++defs:
942f733f 6128 # Code from module crypto/md5:
f737437b 6129 # Code from module dtoastr:
1fd182f0
PE
6130 # Code from module extensions:
6131
5fa4ac76 6132 # Code from module filemode:
1f5d53eb 6133 # Code from module getloadavg:
e275c824
PE
6134 # Code from module getopt-gnu:
6135 # Code from module getopt-posix:
6136 # Code from module gettext-h:
67342916 6137 # Code from module ignore-value:
1fd182f0
PE
6138 # Code from module include_next:
6139 # Code from module intprops:
6140 # Code from module mktime:
6141 # Code from module multiarch:
16c3e636 6142 # Code from module stdbool:
1fd182f0 6143 # Code from module stddef:
5f90be1b 6144 # Code from module stdint:
1f5d53eb 6145 # Code from module stdlib:
16c3e636 6146 # Code from module strftime:
5fa4ac76 6147 # Code from module sys_stat:
1fd182f0
PE
6148 # Code from module time:
6149 # Code from module time_r:
e275c824 6150 # Code from module unistd:
1fd182f0
PE
6151 # Code from module warn-on-use:
6152
6153
6154# On Suns, sometimes $CPP names a directory.
6155if test -n "$CPP" && test -d "$CPP"; then
6156 CPP=
6157fi
6158
6159## If not using gcc, and on Solaris, and no CPP specified, see if
6160## using a Sun compiler, which needs -Xs to prevent whitespace.
6161if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6162 test x"$CPP" = x; then
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6164$as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
d6974efa 6165 if ${emacs_cv_sunpro_c+:} false; then :
1fd182f0
PE
6166 $as_echo_n "(cached) " >&6
6167else
6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169/* end confdefs.h. */
6170
6171int
6172main ()
6173{
6174#ifndef __SUNPRO_C
6175fail;
6176#endif
6177
6178 ;
6179 return 0;
6180}
6181_ACEOF
6182if ac_fn_c_try_link "$LINENO"; then :
6183 emacs_cv_sunpro_c=yes
6184else
6185 emacs_cv_sunpro_c=no
6186fi
6187rm -f core conftest.err conftest.$ac_objext \
6188 conftest$ac_exeext conftest.$ac_ext
6189fi
6190
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6192$as_echo "$emacs_cv_sunpro_c" >&6; }
6193
6194 if test x"$emacs_cv_sunpro_c" = xyes; then
6195 NON_GNU_CPP="$CC -E -Xs"
6196 fi
6197fi
6198
6199#### Some systems specify a CPP to use unless we are using GCC.
6200#### Now that we know whether we are using GCC, we can decide whether
6201#### to use that one.
6202if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6203then
6204 CPP="$NON_GNU_CPP"
6205fi
6206
6207#### Some systems specify a CC to use unless we are using GCC.
6208#### Now that we know whether we are using GCC, we can decide whether
6209#### to use that one.
6210if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6211 test x$cc_specified != xyes
6212then
6213 CC="$NON_GNU_CC"
6214fi
6215
6216if test x$GCC = xyes; then
6217 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6218else
6219 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6220fi
6221
067d23c9
KY
6222### Use -Wdeclaration-after-statement if the compiler supports it
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6224$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6225SAVE_CFLAGS="$CFLAGS"
6226CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228/* end confdefs.h. */
6229
6230int
6231main ()
6232{
6233
6234 ;
6235 return 0;
6236}
6237_ACEOF
6238if ac_fn_c_try_compile "$LINENO"; then :
6239 has_option=yes
6240else
6241 has_option=no
6242fi
6243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244if test $has_option = yes; then
6245 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6246fi
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6248$as_echo "$has_option" >&6; }
6249CFLAGS="$SAVE_CFLAGS"
6250unset has_option
6251unset SAVE_CFLAGS
6252
6253### Use -Wold-style-definition if the compiler supports it
6254# This can be removed when conversion to standard C is finished.
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6256$as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6257SAVE_CFLAGS="$CFLAGS"
6258CFLAGS="$CFLAGS -Wold-style-definition"
6259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260/* end confdefs.h. */
6261
6262int
6263main ()
6264{
6265
6266 ;
6267 return 0;
6268}
6269_ACEOF
6270if ac_fn_c_try_compile "$LINENO"; then :
6271 has_option=yes
6272else
6273 has_option=no
6274fi
6275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276if test $has_option = yes; then
6277 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6278fi
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6280$as_echo "$has_option" >&6; }
6281CFLAGS="$SAVE_CFLAGS"
6282unset has_option
6283unset SAVE_CFLAGS
6284
6285### Use -Wimplicit-function-declaration if the compiler supports it
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6287$as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6288SAVE_CFLAGS="$CFLAGS"
6289CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291/* end confdefs.h. */
6292
6293int
6294main ()
6295{
6296
6297 ;
6298 return 0;
6299}
6300_ACEOF
6301if ac_fn_c_try_compile "$LINENO"; then :
6302 has_option=yes
6303else
6304 has_option=no
6305fi
6306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307if test $has_option = yes; then
6308 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6309fi
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6311$as_echo "$has_option" >&6; }
6312CFLAGS="$SAVE_CFLAGS"
6313unset has_option
6314unset SAVE_CFLAGS
6315
6316
6317
6318
6319#### Some other nice autoconf tests.
6320
6321ac_ext=c
6322ac_cpp='$CPP $CPPFLAGS'
6323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325ac_compiler_gnu=$ac_cv_c_compiler_gnu
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6327$as_echo_n "checking how to run the C preprocessor... " >&6; }
6328# On Suns, sometimes $CPP names a directory.
6329if test -n "$CPP" && test -d "$CPP"; then
6330 CPP=
6331fi
6332if test -z "$CPP"; then
d6974efa 6333 if ${ac_cv_prog_CPP+:} false; then :
067d23c9
KY
6334 $as_echo_n "(cached) " >&6
6335else
6336 # Double quotes because CPP needs to be expanded
6337 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6338 do
6339 ac_preproc_ok=false
6340for ac_c_preproc_warn_flag in '' yes
6341do
6342 # Use a header file that comes with gcc, so configuring glibc
6343 # with a fresh cross-compiler works.
6344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6345 # <limits.h> exists even on freestanding compilers.
6346 # On the NeXT, cc -E runs the code through the compiler's parser,
6347 # not just through cpp. "Syntax error" is here to catch this case.
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349/* end confdefs.h. */
6350#ifdef __STDC__
6351# include <limits.h>
6352#else
6353# include <assert.h>
6354#endif
6355 Syntax error
6356_ACEOF
6357if ac_fn_c_try_cpp "$LINENO"; then :
6358
6359else
6360 # Broken: fails on valid input.
6361continue
6362fi
2018939f 6363rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6364
6365 # OK, works on sane cases. Now check whether nonexistent headers
6366 # can be detected and how.
6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368/* end confdefs.h. */
6369#include <ac_nonexistent.h>
6370_ACEOF
6371if ac_fn_c_try_cpp "$LINENO"; then :
6372 # Broken: success on invalid input.
6373continue
6374else
6375 # Passes both tests.
6376ac_preproc_ok=:
6377break
6378fi
2018939f 6379rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6380
6381done
6382# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 6383rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
6384if $ac_preproc_ok; then :
6385 break
6386fi
6387
6388 done
6389 ac_cv_prog_CPP=$CPP
6390
6391fi
6392 CPP=$ac_cv_prog_CPP
6393else
6394 ac_cv_prog_CPP=$CPP
6395fi
6396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6397$as_echo "$CPP" >&6; }
6398ac_preproc_ok=false
6399for ac_c_preproc_warn_flag in '' yes
6400do
6401 # Use a header file that comes with gcc, so configuring glibc
6402 # with a fresh cross-compiler works.
6403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6404 # <limits.h> exists even on freestanding compilers.
6405 # On the NeXT, cc -E runs the code through the compiler's parser,
6406 # not just through cpp. "Syntax error" is here to catch this case.
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408/* end confdefs.h. */
6409#ifdef __STDC__
6410# include <limits.h>
6411#else
6412# include <assert.h>
6413#endif
6414 Syntax error
6415_ACEOF
6416if ac_fn_c_try_cpp "$LINENO"; then :
6417
6418else
6419 # Broken: fails on valid input.
6420continue
6421fi
2018939f 6422rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6423
6424 # OK, works on sane cases. Now check whether nonexistent headers
6425 # can be detected and how.
6426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6427/* end confdefs.h. */
6428#include <ac_nonexistent.h>
6429_ACEOF
6430if ac_fn_c_try_cpp "$LINENO"; then :
6431 # Broken: success on invalid input.
6432continue
6433else
6434 # Passes both tests.
6435ac_preproc_ok=:
6436break
6437fi
2018939f 6438rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6439
6440done
6441# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 6442rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
6443if $ac_preproc_ok; then :
6444
6445else
6446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 6448as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
d6974efa 6449See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
6450fi
6451
6452ac_ext=c
6453ac_cpp='$CPP $CPPFLAGS'
6454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6456ac_compiler_gnu=$ac_cv_c_compiler_gnu
6457
067d23c9
KY
6458
6459if test "x$RANLIB" = x; then
6460 if test -n "$ac_tool_prefix"; then
6461 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6462set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6465if ${ac_cv_prog_RANLIB+:} false; then :
067d23c9
KY
6466 $as_echo_n "(cached) " >&6
6467else
6468 if test -n "$RANLIB"; then
6469 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6470else
6471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472for as_dir in $PATH
6473do
6474 IFS=$as_save_IFS
6475 test -z "$as_dir" && as_dir=.
6476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6478 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 break 2
6481 fi
6482done
6483 done
6484IFS=$as_save_IFS
6485
6486fi
6487fi
6488RANLIB=$ac_cv_prog_RANLIB
6489if test -n "$RANLIB"; then
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6491$as_echo "$RANLIB" >&6; }
6492else
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494$as_echo "no" >&6; }
6495fi
6496
6497
6498fi
6499if test -z "$ac_cv_prog_RANLIB"; then
6500 ac_ct_RANLIB=$RANLIB
6501 # Extract the first word of "ranlib", so it can be a program name with args.
6502set dummy ranlib; ac_word=$2
6503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6504$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6505if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
067d23c9
KY
6506 $as_echo_n "(cached) " >&6
6507else
6508 if test -n "$ac_ct_RANLIB"; then
6509 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6510else
6511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512for as_dir in $PATH
6513do
6514 IFS=$as_save_IFS
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6518 ac_cv_prog_ac_ct_RANLIB="ranlib"
6519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 break 2
6521 fi
6522done
6523 done
6524IFS=$as_save_IFS
6525
6526fi
6527fi
6528ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6529if test -n "$ac_ct_RANLIB"; then
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6531$as_echo "$ac_ct_RANLIB" >&6; }
6532else
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534$as_echo "no" >&6; }
6535fi
6536
6537 if test "x$ac_ct_RANLIB" = x; then
6538 RANLIB=":"
6539 else
6540 case $cross_compiling:$ac_tool_warned in
6541yes:)
6542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6544ac_tool_warned=yes ;;
6545esac
6546 RANLIB=$ac_ct_RANLIB
6547 fi
6548else
6549 RANLIB="$ac_cv_prog_RANLIB"
6550fi
6551
6552fi
6553
6554## Although we're running on an amd64 kernel, we're actually compiling for
6555## the x86 architecture. The user should probably have provided an
6556## explicit --build to `configure', but if everything else than the kernel
6557## is running in i386 mode, we can help them out.
6558if test "$machine" = "amdx86-64"; then
6559 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
d6974efa 6560if test "x$ac_cv_have_decl_i386" = xyes; then :
067d23c9
KY
6561
6562fi
6563
6564 if test "$ac_cv_have_decl_i386" = "yes"; then
6565 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6566 machine=intel386
6567 machfile="m/${machine}.h"
6568 fi
6569fi
6570
6571# Extract the first word of "install-info", so it can be a program name with args.
6572set dummy install-info; ac_word=$2
6573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6575if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6576 $as_echo_n "(cached) " >&6
6577else
6578 case $INSTALL_INFO in
6579 [\\/]* | ?:[\\/]*)
6580 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6581 ;;
6582 *)
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584for as_dir in $PATH
6585do
6586 IFS=$as_save_IFS
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 break 2
6593 fi
6594done
6595 done
6596IFS=$as_save_IFS
6597
6598 ;;
6599esac
6600fi
6601INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6602if test -n "$INSTALL_INFO"; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6604$as_echo "$INSTALL_INFO" >&6; }
6605else
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607$as_echo "no" >&6; }
6608fi
6609
6610
6611# Extract the first word of "install-info", so it can be a program name with args.
6612set dummy install-info; ac_word=$2
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6615if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6616 $as_echo_n "(cached) " >&6
6617else
6618 case $INSTALL_INFO in
6619 [\\/]* | ?:[\\/]*)
6620 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6621 ;;
6622 *)
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624for as_dir in /usr/sbin
6625do
6626 IFS=$as_save_IFS
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 break 2
6633 fi
6634done
6635 done
6636IFS=$as_save_IFS
6637
6638 ;;
6639esac
6640fi
6641INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6642if test -n "$INSTALL_INFO"; then
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6644$as_echo "$INSTALL_INFO" >&6; }
6645else
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647$as_echo "no" >&6; }
6648fi
6649
6650
6651# Extract the first word of "install-info", so it can be a program name with args.
6652set dummy install-info; ac_word=$2
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6655if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6656 $as_echo_n "(cached) " >&6
6657else
6658 case $INSTALL_INFO in
6659 [\\/]* | ?:[\\/]*)
6660 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6661 ;;
6662 *)
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664for as_dir in /sbin
6665do
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674done
6675 done
6676IFS=$as_save_IFS
6677
6678 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6679 ;;
6680esac
6681fi
6682INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6683if test -n "$INSTALL_INFO"; then
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6685$as_echo "$INSTALL_INFO" >&6; }
6686else
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688$as_echo "no" >&6; }
6689fi
6690
6691
6692# Extract the first word of "gzip", so it can be a program name with args.
6693set dummy gzip; ac_word=$2
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6696if ${ac_cv_path_GZIP_PROG+:} false; then :
067d23c9
KY
6697 $as_echo_n "(cached) " >&6
6698else
6699 case $GZIP_PROG in
6700 [\\/]* | ?:[\\/]*)
6701 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6702 ;;
6703 *)
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705for as_dir in $PATH
6706do
6707 IFS=$as_save_IFS
6708 test -z "$as_dir" && as_dir=.
6709 for ac_exec_ext in '' $ac_executable_extensions; do
6710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6711 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 break 2
6714 fi
6715done
6716 done
6717IFS=$as_save_IFS
6718
6719 ;;
6720esac
6721fi
6722GZIP_PROG=$ac_cv_path_GZIP_PROG
6723if test -n "$GZIP_PROG"; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6725$as_echo "$GZIP_PROG" >&6; }
6726else
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728$as_echo "no" >&6; }
6729fi
6730
6731
6732
6733
6734## Need makeinfo >= 4.6 (?) to build the manuals.
6735# Extract the first word of "makeinfo", so it can be a program name with args.
6736set dummy makeinfo; ac_word=$2
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6739if ${ac_cv_path_MAKEINFO+:} false; then :
067d23c9
KY
6740 $as_echo_n "(cached) " >&6
6741else
6742 case $MAKEINFO in
6743 [\\/]* | ?:[\\/]*)
6744 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6745 ;;
6746 *)
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748for as_dir in $PATH
6749do
6750 IFS=$as_save_IFS
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 break 2
6757 fi
6758done
6759 done
6760IFS=$as_save_IFS
6761
6762 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6763 ;;
6764esac
6765fi
6766MAKEINFO=$ac_cv_path_MAKEINFO
6767if test -n "$MAKEINFO"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6769$as_echo "$MAKEINFO" >&6; }
6770else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772$as_echo "no" >&6; }
6773fi
6774
6775
6776if test "$MAKEINFO" != "no" && \
6777 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
6778 MAKEINFO=no
6779fi
6780
6781## Makeinfo is unusual. For a released Emacs, the manuals are
6782## pre-built, and not deleted by the normal clean rules. makeinfo is
6783## therefore in the category of "special tools" not normally required, which
6784## configure does not have to check for (eg autoconf itself).
6785## In a Bazaar checkout on the other hand, the manuals are not included.
6786## So makeinfo is a requirement to build from Bazaar, and configure
6787## should test for it as it does for any other build requirement.
6788## We use the presence of $srcdir/info/emacs to distinguish a release,
6789## with pre-built manuals, from a Bazaar checkout.
96f129d5
GM
6790HAVE_MAKEINFO=yes
6791
067d23c9 6792if test "$MAKEINFO" = "no"; then
96f129d5 6793 MAKEINFO=makeinfo
067d23c9 6794 if test "x${with_makeinfo}" = "xno"; then
96f129d5 6795 HAVE_MAKEINFO=no
067d23c9 6796 elif test ! -e $srcdir/info/emacs; then
2018939f 6797 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
067d23c9
KY
6798source tree does not seem to have pre-built manuals in the \`info' directory.
6799Either install a suitable version of makeinfo, or re-run configure
6800with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6801 fi
6802fi
6803
6804
96f129d5 6805
067d23c9
KY
6806if test x$GCC = xyes; then
6807 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6808 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6809else
6810 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6811 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6812fi
6813
6814
6815late_LDFLAGS=$LDFLAGS
6816if test x$GCC = xyes; then
6817 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6818else
6819 LDFLAGS="$LDFLAGS -znocombreloc"
6820fi
6821
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6823$as_echo_n "checking for -znocombreloc... " >&6; }
6824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825/* end confdefs.h. */
6826
6827int
6828main ()
6829{
6830
6831 ;
6832 return 0;
6833}
6834_ACEOF
6835if ac_fn_c_try_link "$LINENO"; then :
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6837$as_echo "yes" >&6; }
6838else
6839 LDFLAGS=$late_LDFLAGS
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841$as_echo "no" >&6; }
6842fi
6843rm -f core conftest.err conftest.$ac_objext \
6844 conftest$ac_exeext conftest.$ac_ext
6845
6846
6847# The value of CPP is a quoted variable reference, so we need to do this
6848# to get its actual value...
6849CPP=`eval "echo $CPP"`
6850
6851
125c3718 6852test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
067d23c9 6853case "$opsys" in
125c3718
PE
6854 your-opsys-here) CANNOT_DUMP=yes ;;
6855esac
6856
6857test "$CANNOT_DUMP" = "yes" && \
067d23c9
KY
6858
6859$as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6860
125c3718 6861
067d23c9
KY
6862
6863
6864
6865UNEXEC_OBJ=unexelf.o
6866case "$opsys" in
6867 # MSDOS uses unexcoff.o
6868 # MSWindows uses unexw32.o
6869 aix4-2)
6870 UNEXEC_OBJ=unexaix.o
6871 ;;
6872 cygwin)
6873 UNEXEC_OBJ=unexcw.o
6874 ;;
6875 darwin)
6876 UNEXEC_OBJ=unexmacosx.o
6877 ;;
6878 hpux10-20 | hpux11)
6879 UNEXEC_OBJ=unexhp9k800.o
6880 ;;
6881 sol2-10)
6882 # Use the Solaris dldump() function, called from unexsol.c, to dump
6883 # emacs, instead of the generic ELF dump code found in unexelf.c.
6884 # The resulting binary has a complete symbol table, and is better
6885 # for debugging and other observability tools (debuggers, pstack, etc).
6886 #
6887 # If you encounter a problem using dldump(), please consider sending
6888 # a message to the OpenSolaris tools-linking mailing list:
6889 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6890 #
6891 # It is likely that dldump() works with older Solaris too, but this has
6892 # not been tested, so for now this change is for Solaris 10 or newer.
6893 UNEXEC_OBJ=unexsol.o
6894 ;;
6895esac
6896
6897LD_SWITCH_SYSTEM=
6898case "$opsys" in
6899 freebsd)
6900 ## Let `ld' find image libs and similar things in /usr/local/lib.
6901 ## The system compiler, GCC, has apparently been modified to not
6902 ## look there, contrary to what a stock GCC would do.
6903 LD_SWITCH_SYSTEM=-L/usr/local/lib
6904 ;;
6905
6906 gnu-linux)
6907 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
d6a003a8 6908 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
067d23c9
KY
6909 ;;
6910
6911 netbsd)
6912 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6913 ;;
6914
6915 openbsd)
6916 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6917 ## otherwise Emacs dumps core on elf systems.
6918 LD_SWITCH_SYSTEM="-Z"
6919 ;;
6920esac
6921
6922
6923ac_link="$ac_link $LD_SWITCH_SYSTEM"
6924
6925## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6926## which has not been defined yet. When this was handled with cpp,
6927## it was expanded to null when configure sourced the s/*.h file.
6928## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6929## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6930## (or somesuch), but because it is supposed to go at the _front_
6931## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6932## Compare with the gnu-linux case below, which added to the end
6933## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6934## LD_SWITCH_SYSTEM_TEMACS.
6935case "$opsys" in
6936 netbsd|openbsd)
6937 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6938 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6939esac
6940
6941
6942C_SWITCH_MACHINE=
6943if test "$machine" = "alpha"; then
6944 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
d6974efa 6945if test "x$ac_cv_have_decl___ELF__" = xyes; then :
067d23c9
KY
6946
6947fi
6948
6949 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6950 ## With ELF, make sure that all common symbols get allocated to in the
6951 ## data section. Otherwise, the dump of temacs may miss variables in
6952 ## the shared library that have been initialized. For example, with
6953 ## GNU libc, __malloc_initialized would normally be resolved to the
6954 ## shared library's .bss section, which is fatal.
6955 if test "x$GCC" = "xyes"; then
6956 C_SWITCH_MACHINE="-fno-common"
6957 else
2018939f 6958 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
067d23c9
KY
6959 fi
6960 else
6961 UNEXEC_OBJ=unexalpha.o
6962 fi
6963fi
6964
6965
6966
6967
6968C_SWITCH_SYSTEM=
6969## Some programs in src produce warnings saying certain subprograms
6970## are too complex and need a MAXMEM value greater than 2000 for
6971## additional optimization. --nils@exp-math.uni-essen.de
6972test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6973 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6974## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6975## It is redundant in glibc2, since we define _GNU_SOURCE.
6976
6977
6978
6979LIBS_SYSTEM=
6980case "$opsys" in
6981 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6982 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6983
6984 freebsd) LIBS_SYSTEM="-lutil" ;;
6985
6986 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6987
1f5d53eb 6988 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
067d23c9
KY
6989
6990 ## Motif needs -lgen.
6991 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6992esac
6993
6994
6995
6996### Make sure subsequent tests use flags consistent with the build flags.
6997
6998if test x"${OVERRIDE_CPPFLAGS}" != x; then
6999 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
7000else
7001 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
7002fi
7003
067d23c9
KY
7004# Check whether --enable-largefile was given.
7005if test "${enable_largefile+set}" = set; then :
7006 enableval=$enable_largefile;
7007fi
7008
7009if test "$enable_largefile" != no; then
7010
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7012$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
d6974efa 7013if ${ac_cv_sys_largefile_CC+:} false; then :
067d23c9
KY
7014 $as_echo_n "(cached) " >&6
7015else
7016 ac_cv_sys_largefile_CC=no
7017 if test "$GCC" != yes; then
7018 ac_save_CC=$CC
7019 while :; do
7020 # IRIX 6.2 and later do not support large files by default,
7021 # so use the C compiler's -n32 option if that helps.
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023/* end confdefs.h. */
7024#include <sys/types.h>
7025 /* Check that off_t can represent 2**63 - 1 correctly.
7026 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7027 since some C++ compilers masquerading as C compilers
7028 incorrectly reject 9223372036854775807. */
7029#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7030 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7031 && LARGE_OFF_T % 2147483647 == 1)
7032 ? 1 : -1];
7033int
7034main ()
7035{
7036
7037 ;
7038 return 0;
7039}
7040_ACEOF
7041 if ac_fn_c_try_compile "$LINENO"; then :
7042 break
7043fi
7044rm -f core conftest.err conftest.$ac_objext
7045 CC="$CC -n32"
7046 if ac_fn_c_try_compile "$LINENO"; then :
7047 ac_cv_sys_largefile_CC=' -n32'; break
7048fi
7049rm -f core conftest.err conftest.$ac_objext
7050 break
7051 done
7052 CC=$ac_save_CC
7053 rm -f conftest.$ac_ext
7054 fi
7055fi
7056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7057$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7058 if test "$ac_cv_sys_largefile_CC" != no; then
7059 CC=$CC$ac_cv_sys_largefile_CC
7060 fi
7061
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7063$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
d6974efa 7064if ${ac_cv_sys_file_offset_bits+:} false; then :
067d23c9
KY
7065 $as_echo_n "(cached) " >&6
7066else
7067 while :; do
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069/* end confdefs.h. */
7070#include <sys/types.h>
7071 /* Check that off_t can represent 2**63 - 1 correctly.
7072 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7073 since some C++ compilers masquerading as C compilers
7074 incorrectly reject 9223372036854775807. */
7075#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7076 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7077 && LARGE_OFF_T % 2147483647 == 1)
7078 ? 1 : -1];
7079int
7080main ()
7081{
7082
7083 ;
7084 return 0;
7085}
7086_ACEOF
7087if ac_fn_c_try_compile "$LINENO"; then :
7088 ac_cv_sys_file_offset_bits=no; break
7089fi
7090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092/* end confdefs.h. */
7093#define _FILE_OFFSET_BITS 64
7094#include <sys/types.h>
7095 /* Check that off_t can represent 2**63 - 1 correctly.
7096 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7097 since some C++ compilers masquerading as C compilers
7098 incorrectly reject 9223372036854775807. */
7099#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7101 && LARGE_OFF_T % 2147483647 == 1)
7102 ? 1 : -1];
7103int
7104main ()
7105{
7106
7107 ;
7108 return 0;
7109}
7110_ACEOF
7111if ac_fn_c_try_compile "$LINENO"; then :
7112 ac_cv_sys_file_offset_bits=64; break
7113fi
7114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115 ac_cv_sys_file_offset_bits=unknown
7116 break
7117done
7118fi
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7120$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7121case $ac_cv_sys_file_offset_bits in #(
7122 no | unknown) ;;
7123 *)
7124cat >>confdefs.h <<_ACEOF
7125#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7126_ACEOF
7127;;
7128esac
7129rm -rf conftest*
7130 if test $ac_cv_sys_file_offset_bits = unknown; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7132$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
d6974efa 7133if ${ac_cv_sys_large_files+:} false; then :
067d23c9
KY
7134 $as_echo_n "(cached) " >&6
7135else
7136 while :; do
7137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7138/* end confdefs.h. */
7139#include <sys/types.h>
7140 /* Check that off_t can represent 2**63 - 1 correctly.
7141 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7142 since some C++ compilers masquerading as C compilers
7143 incorrectly reject 9223372036854775807. */
7144#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7145 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7146 && LARGE_OFF_T % 2147483647 == 1)
7147 ? 1 : -1];
7148int
7149main ()
7150{
7151
7152 ;
7153 return 0;
7154}
7155_ACEOF
7156if ac_fn_c_try_compile "$LINENO"; then :
7157 ac_cv_sys_large_files=no; break
7158fi
7159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161/* end confdefs.h. */
7162#define _LARGE_FILES 1
7163#include <sys/types.h>
7164 /* Check that off_t can represent 2**63 - 1 correctly.
7165 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7166 since some C++ compilers masquerading as C compilers
7167 incorrectly reject 9223372036854775807. */
7168#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7169 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7170 && LARGE_OFF_T % 2147483647 == 1)
7171 ? 1 : -1];
7172int
7173main ()
7174{
7175
7176 ;
7177 return 0;
7178}
7179_ACEOF
7180if ac_fn_c_try_compile "$LINENO"; then :
7181 ac_cv_sys_large_files=1; break
7182fi
7183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184 ac_cv_sys_large_files=unknown
7185 break
7186done
7187fi
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7189$as_echo "$ac_cv_sys_large_files" >&6; }
7190case $ac_cv_sys_large_files in #(
7191 no | unknown) ;;
7192 *)
7193cat >>confdefs.h <<_ACEOF
7194#define _LARGE_FILES $ac_cv_sys_large_files
7195_ACEOF
7196;;
7197esac
7198rm -rf conftest*
7199 fi
7200fi
7201
7202
7203
7204## If user specified a crt-dir, use that unconditionally.
7205if test "X$CRT_DIR" = "X"; then
7206
7207 case "$canonical" in
7208 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7209 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7210 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7211 ## For anything else (eg /usr/lib32), it is up the user to specify
7212 ## the location (bug#5655).
7213 ## Test for crtn.o, not just the directory, because sometimes the
7214 ## directory exists but does not have the relevant files (bug#1287).
7215 ## FIXME better to test for binary compatibility somehow.
7216 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7217 ;;
7218
7219 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7220 esac
7221
7222 case "$opsys" in
7223 hpux10-20) CRT_DIR=/lib ;;
7224 esac
7225
7226 ## Default is /usr/lib.
7227 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7228
7229else
7230
7231 ## Some platforms don't use any of these files, so it is not
7232 ## appropriate to put this test outside the if block.
7233 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
2018939f 7234 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
067d23c9
KY
7235
7236fi
7237
7238
7239
7240LIB_MATH=-lm
7241LIB_STANDARD=
7242START_FILES=
7243
7244case $opsys in
7245 cygwin )
7246 LIB_MATH=
7247 START_FILES='pre-crt0.o'
7248 ;;
7249 darwin )
7250 ## Adding -lm confuses the dynamic linker, so omit it.
7251 LIB_MATH=
7252 START_FILES='pre-crt0.o'
7253 ;;
7254 freebsd )
7255 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7256 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7257 ;;
7258 gnu-linux | gnu-kfreebsd )
7259 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7260 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7261 ;;
7262 hpux10-20 | hpux11 )
7263 LIB_STANDARD=-lc
7264 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7265 ;;
7266 netbsd | openbsd )
7267 if test -f $CRT_DIR/crti.o; then
7268 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7269 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7270 else
7271 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7272 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7273 fi
7274 ;;
7275esac
7276
7277
7278
7279
7280
7281
7282
7283if test "${with_sound}" != "no"; then
7284 # Sound support for GNU/Linux and the free BSDs.
7285 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7286do :
7287 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7288ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
2018939f 7289if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
7290 cat >>confdefs.h <<_ACEOF
7291#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7292_ACEOF
7293 have_sound_header=yes
7294fi
7295
7296done
7297
7298 # Emulation library used on NetBSD.
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7300$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
d6974efa 7301if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
067d23c9
KY
7302 $as_echo_n "(cached) " >&6
7303else
7304 ac_check_lib_save_LIBS=$LIBS
7305LIBS="-lossaudio $LIBS"
7306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307/* end confdefs.h. */
7308
7309/* Override any GCC internal prototype to avoid an error.
7310 Use char because int might match the return type of a GCC
7311 builtin and then its argument prototype would still apply. */
7312#ifdef __cplusplus
7313extern "C"
7314#endif
7315char _oss_ioctl ();
7316int
7317main ()
7318{
7319return _oss_ioctl ();
7320 ;
7321 return 0;
7322}
7323_ACEOF
7324if ac_fn_c_try_link "$LINENO"; then :
7325 ac_cv_lib_ossaudio__oss_ioctl=yes
7326else
7327 ac_cv_lib_ossaudio__oss_ioctl=no
7328fi
7329rm -f core conftest.err conftest.$ac_objext \
7330 conftest$ac_exeext conftest.$ac_ext
7331LIBS=$ac_check_lib_save_LIBS
7332fi
7333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7334$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
d6974efa 7335if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
067d23c9
KY
7336 LIBSOUND=-lossaudio
7337else
7338 LIBSOUND=
7339fi
7340
7341
7342
7343 ALSA_REQUIRED=1.0.0
7344 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7345
7346 succeeded=no
7347
7348 # Extract the first word of "pkg-config", so it can be a program name with args.
7349set dummy pkg-config; ac_word=$2
7350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 7352if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
7353 $as_echo_n "(cached) " >&6
7354else
7355 case $PKG_CONFIG in
7356 [\\/]* | ?:[\\/]*)
7357 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7358 ;;
7359 *)
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361for as_dir in $PATH
7362do
7363 IFS=$as_save_IFS
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 break 2
7370 fi
7371done
7372 done
7373IFS=$as_save_IFS
7374
7375 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7376 ;;
7377esac
7378fi
7379PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7380if test -n "$PKG_CONFIG"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7382$as_echo "$PKG_CONFIG" >&6; }
7383else
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385$as_echo "no" >&6; }
7386fi
7387
7388
7389
7390 if test "$PKG_CONFIG" = "no" ; then
7391 HAVE_ALSA=no
7392 else
7393 PKG_CONFIG_MIN_VERSION=0.9.0
7394 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7396$as_echo_n "checking for $ALSA_MODULES... " >&6; }
7397
7398 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7400$as_echo "yes" >&6; }
7401 succeeded=yes
7402
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7404$as_echo_n "checking ALSA_CFLAGS... " >&6; }
7405 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7407$as_echo "$ALSA_CFLAGS" >&6; }
7408
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7410$as_echo_n "checking ALSA_LIBS... " >&6; }
7411 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7413$as_echo "$ALSA_LIBS" >&6; }
7414 else
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416$as_echo "no" >&6; }
7417 ALSA_CFLAGS=""
7418 ALSA_LIBS=""
7419 ## If we have a custom action on failure, don't print errors, but
7420 ## do set a variable so people can do so.
7421 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7422
7423 fi
7424
7425
7426
7427 else
7428 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7429 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7430 fi
7431 fi
7432
7433 if test $succeeded = yes; then
7434 HAVE_ALSA=yes
7435 else
7436 HAVE_ALSA=no
7437 fi
7438
7439 if test $HAVE_ALSA = yes; then
7440 SAVE_CFLAGS="$CFLAGS"
7441 SAVE_LDFLAGS="$LDFLAGS"
7442 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7443 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445/* end confdefs.h. */
7446#include <asoundlib.h>
7447int
7448main ()
7449{
7450snd_lib_error_set_handler (0);
7451 ;
7452 return 0;
7453}
7454_ACEOF
7455if ac_fn_c_try_compile "$LINENO"; then :
7456 emacs_alsa_normal=yes
7457else
7458 emacs_alsa_normal=no
7459fi
7460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461 if test "$emacs_alsa_normal" != yes; then
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463/* end confdefs.h. */
7464#include <alsa/asoundlib.h>
7465int
7466main ()
7467{
7468snd_lib_error_set_handler (0);
7469 ;
7470 return 0;
7471}
7472_ACEOF
7473if ac_fn_c_try_compile "$LINENO"; then :
7474 emacs_alsa_subdir=yes
7475else
7476 emacs_alsa_subdir=no
7477fi
7478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7479 if test "$emacs_alsa_subdir" != yes; then
2018939f 7480 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
067d23c9
KY
7481 fi
7482 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7483 fi
7484
7485 CFLAGS="$SAVE_CFLAGS"
7486 LDFLAGS="$SAVE_LDFLAGS"
7487 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7488 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7489
7490$as_echo "#define HAVE_ALSA 1" >>confdefs.h
7491
7492 fi
7493
7494 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7495 case "$opsys" in
7496 gnu-linux|freebsd|netbsd)
7497
7498$as_echo "#define HAVE_SOUND 1" >>confdefs.h
7499
7500 ;;
7501 esac
7502 fi
7503
7504
7505fi
7506
7507for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7508 linux/version.h sys/systeminfo.h limits.h \
7509 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7510 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7511 sys/utsname.h pwd.h utmp.h dirent.h util.h
7512do :
7513 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7514ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
2018939f 7515if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
7516 cat >>confdefs.h <<_ACEOF
7517#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7518_ACEOF
7519
7520fi
7521
7522done
7523
7524
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7526$as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528/* end confdefs.h. */
7529#include <sys/personality.h>
7530int
7531main ()
7532{
7533personality (PER_LINUX32)
7534 ;
7535 return 0;
7536}
7537_ACEOF
7538if ac_fn_c_try_compile "$LINENO"; then :
7539 emacs_cv_personality_linux32=yes
7540else
7541 emacs_cv_personality_linux32=no
7542fi
7543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7545$as_echo "$emacs_cv_personality_linux32" >&6; }
7546
7547if test $emacs_cv_personality_linux32 = yes; then
7548
7549$as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7550
7551fi
7552
7553for ac_header in term.h
7554do :
7555 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
d6974efa 7556if test "x$ac_cv_header_term_h" = xyes; then :
067d23c9
KY
7557 cat >>confdefs.h <<_ACEOF
7558#define HAVE_TERM_H 1
7559_ACEOF
7560
7561fi
7562
7563done
7564
7565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7566$as_echo_n "checking for ANSI C header files... " >&6; }
d6974efa 7567if ${ac_cv_header_stdc+:} false; then :
067d23c9
KY
7568 $as_echo_n "(cached) " >&6
7569else
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571/* end confdefs.h. */
7572#include <stdlib.h>
7573#include <stdarg.h>
7574#include <string.h>
7575#include <float.h>
7576
7577int
7578main ()
7579{
7580
7581 ;
7582 return 0;
7583}
7584_ACEOF
7585if ac_fn_c_try_compile "$LINENO"; then :
7586 ac_cv_header_stdc=yes
7587else
7588 ac_cv_header_stdc=no
7589fi
7590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7591
7592if test $ac_cv_header_stdc = yes; then
7593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595/* end confdefs.h. */
7596#include <string.h>
7597
7598_ACEOF
7599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7600 $EGREP "memchr" >/dev/null 2>&1; then :
7601
7602else
7603 ac_cv_header_stdc=no
7604fi
7605rm -f conftest*
7606
7607fi
7608
7609if test $ac_cv_header_stdc = yes; then
7610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612/* end confdefs.h. */
7613#include <stdlib.h>
7614
7615_ACEOF
7616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7617 $EGREP "free" >/dev/null 2>&1; then :
7618
7619else
7620 ac_cv_header_stdc=no
7621fi
7622rm -f conftest*
7623
7624fi
7625
7626if test $ac_cv_header_stdc = yes; then
7627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7628 if test "$cross_compiling" = yes; then :
7629 :
7630else
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632/* end confdefs.h. */
7633#include <ctype.h>
7634#include <stdlib.h>
7635#if ((' ' & 0x0FF) == 0x020)
7636# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7637# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7638#else
7639# define ISLOWER(c) \
7640 (('a' <= (c) && (c) <= 'i') \
7641 || ('j' <= (c) && (c) <= 'r') \
7642 || ('s' <= (c) && (c) <= 'z'))
7643# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7644#endif
7645
7646#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7647int
7648main ()
7649{
7650 int i;
7651 for (i = 0; i < 256; i++)
7652 if (XOR (islower (i), ISLOWER (i))
7653 || toupper (i) != TOUPPER (i))
7654 return 2;
7655 return 0;
7656}
7657_ACEOF
7658if ac_fn_c_try_run "$LINENO"; then :
7659
7660else
7661 ac_cv_header_stdc=no
7662fi
7663rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7664 conftest.$ac_objext conftest.beam conftest.$ac_ext
7665fi
7666
7667fi
7668fi
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7670$as_echo "$ac_cv_header_stdc" >&6; }
7671if test $ac_cv_header_stdc = yes; then
7672
7673$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7674
7675fi
7676
7677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7678$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
d6974efa 7679if ${ac_cv_header_time+:} false; then :
067d23c9
KY
7680 $as_echo_n "(cached) " >&6
7681else
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683/* end confdefs.h. */
7684#include <sys/types.h>
7685#include <sys/time.h>
7686#include <time.h>
7687
7688int
7689main ()
7690{
7691if ((struct tm *) 0)
7692return 0;
7693 ;
7694 return 0;
7695}
7696_ACEOF
7697if ac_fn_c_try_compile "$LINENO"; then :
7698 ac_cv_header_time=yes
7699else
7700 ac_cv_header_time=no
7701fi
7702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7703fi
7704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7705$as_echo "$ac_cv_header_time" >&6; }
7706if test $ac_cv_header_time = yes; then
7707
7708$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7709
7710fi
7711
7712ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
d6974efa 7713if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
067d23c9
KY
7714 ac_have_decl=1
7715else
7716 ac_have_decl=0
7717fi
7718
7719cat >>confdefs.h <<_ACEOF
7720#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7721_ACEOF
7722
7723if test $ac_cv_have_decl_sys_siglist != yes; then
7724 # For Tru64, at least:
7725 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
d6974efa 7726if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
067d23c9
KY
7727 ac_have_decl=1
7728else
7729 ac_have_decl=0
7730fi
7731
7732cat >>confdefs.h <<_ACEOF
7733#define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7734_ACEOF
7735
7736 if test $ac_cv_have_decl___sys_siglist = yes; then
7737
7738$as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7739
7740 fi
7741fi
7742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7743$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
d6974efa 7744if ${ac_cv_header_sys_wait_h+:} false; then :
067d23c9
KY
7745 $as_echo_n "(cached) " >&6
7746else
7747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748/* end confdefs.h. */
7749#include <sys/types.h>
7750#include <sys/wait.h>
7751#ifndef WEXITSTATUS
7752# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7753#endif
7754#ifndef WIFEXITED
7755# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7756#endif
7757
7758int
7759main ()
7760{
7761 int s;
7762 wait (&s);
7763 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7764 ;
7765 return 0;
7766}
7767_ACEOF
7768if ac_fn_c_try_compile "$LINENO"; then :
7769 ac_cv_header_sys_wait_h=yes
7770else
7771 ac_cv_header_sys_wait_h=no
7772fi
7773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7774fi
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7776$as_echo "$ac_cv_header_sys_wait_h" >&6; }
7777if test $ac_cv_header_sys_wait_h = yes; then
7778
7779$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7780
7781fi
7782
7783
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7785$as_echo_n "checking for struct utimbuf... " >&6; }
d6974efa 7786if ${emacs_cv_struct_utimbuf+:} false; then :
067d23c9
KY
7787 $as_echo_n "(cached) " >&6
7788else
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790/* end confdefs.h. */
7791#ifdef TIME_WITH_SYS_TIME
7792#include <sys/time.h>
7793#include <time.h>
7794#else
7795#ifdef HAVE_SYS_TIME_H
7796#include <sys/time.h>
7797#else
7798#include <time.h>
7799#endif
7800#endif
7801#ifdef HAVE_UTIME_H
7802#include <utime.h>
7803#endif
7804int
7805main ()
7806{
7807static struct utimbuf x; x.actime = x.modtime;
7808 ;
7809 return 0;
7810}
7811_ACEOF
7812if ac_fn_c_try_compile "$LINENO"; then :
7813 emacs_cv_struct_utimbuf=yes
7814else
7815 emacs_cv_struct_utimbuf=no
7816fi
7817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818fi
7819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7820$as_echo "$emacs_cv_struct_utimbuf" >&6; }
7821if test $emacs_cv_struct_utimbuf = yes; then
7822
7823$as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7824
7825fi
7826
7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7828$as_echo_n "checking return type of signal handlers... " >&6; }
d6974efa 7829if ${ac_cv_type_signal+:} false; then :
067d23c9
KY
7830 $as_echo_n "(cached) " >&6
7831else
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833/* end confdefs.h. */
7834#include <sys/types.h>
7835#include <signal.h>
7836
7837int
7838main ()
7839{
7840return *(signal (0, 0)) (0) == 1;
7841 ;
7842 return 0;
7843}
7844_ACEOF
7845if ac_fn_c_try_compile "$LINENO"; then :
7846 ac_cv_type_signal=int
7847else
7848 ac_cv_type_signal=void
7849fi
7850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7851fi
7852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7853$as_echo "$ac_cv_type_signal" >&6; }
7854
7855cat >>confdefs.h <<_ACEOF
7856#define RETSIGTYPE $ac_cv_type_signal
7857_ACEOF
7858
7859
7860
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7862$as_echo_n "checking for speed_t... " >&6; }
d6974efa 7863if ${emacs_cv_speed_t+:} false; then :
067d23c9
KY
7864 $as_echo_n "(cached) " >&6
7865else
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867/* end confdefs.h. */
7868#include <termios.h>
7869int
7870main ()
7871{
7872speed_t x = 1;
7873 ;
7874 return 0;
7875}
7876_ACEOF
7877if ac_fn_c_try_compile "$LINENO"; then :
7878 emacs_cv_speed_t=yes
7879else
7880 emacs_cv_speed_t=no
7881fi
7882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7883fi
7884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7885$as_echo "$emacs_cv_speed_t" >&6; }
7886if test $emacs_cv_speed_t = yes; then
7887
7888$as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7889
7890fi
7891
7892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7893$as_echo_n "checking for struct timeval... " >&6; }
d6974efa 7894if ${emacs_cv_struct_timeval+:} false; then :
067d23c9
KY
7895 $as_echo_n "(cached) " >&6
7896else
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898/* end confdefs.h. */
7899#ifdef TIME_WITH_SYS_TIME
7900#include <sys/time.h>
7901#include <time.h>
7902#else
7903#ifdef HAVE_SYS_TIME_H
7904#include <sys/time.h>
7905#else
7906#include <time.h>
7907#endif
7908#endif
7909int
7910main ()
7911{
7912static struct timeval x; x.tv_sec = x.tv_usec;
7913 ;
7914 return 0;
7915}
7916_ACEOF
7917if ac_fn_c_try_compile "$LINENO"; then :
7918 emacs_cv_struct_timeval=yes
7919else
7920 emacs_cv_struct_timeval=no
7921fi
7922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7923fi
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7925$as_echo "$emacs_cv_struct_timeval" >&6; }
7926HAVE_TIMEVAL=$emacs_cv_struct_timeval
7927if test $emacs_cv_struct_timeval = yes; then
7928
7929$as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7930
7931fi
7932
7933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7934$as_echo_n "checking for struct exception... " >&6; }
d6974efa 7935if ${emacs_cv_struct_exception+:} false; then :
067d23c9
KY
7936 $as_echo_n "(cached) " >&6
7937else
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939/* end confdefs.h. */
7940#include <math.h>
7941int
7942main ()
7943{
7944static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7945 ;
7946 return 0;
7947}
7948_ACEOF
7949if ac_fn_c_try_compile "$LINENO"; then :
7950 emacs_cv_struct_exception=yes
7951else
7952 emacs_cv_struct_exception=no
7953fi
7954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955fi
7956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7957$as_echo "$emacs_cv_struct_exception" >&6; }
7958HAVE_EXCEPTION=$emacs_cv_struct_exception
7959if test $emacs_cv_struct_exception != yes; then
7960
7961$as_echo "#define NO_MATHERR 1" >>confdefs.h
7962
7963fi
7964
7965for ac_header in sys/socket.h
7966do :
7967 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
d6974efa 7968if test "x$ac_cv_header_sys_socket_h" = xyes; then :
067d23c9
KY
7969 cat >>confdefs.h <<_ACEOF
7970#define HAVE_SYS_SOCKET_H 1
7971_ACEOF
7972
7973fi
7974
7975done
7976
7977for ac_header in net/if.h
7978do :
7979 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7980#if HAVE_SYS_SOCKET_H
7981#include <sys/socket.h>
7982#endif
7983"
d6974efa 7984if test "x$ac_cv_header_net_if_h" = xyes; then :
067d23c9
KY
7985 cat >>confdefs.h <<_ACEOF
7986#define HAVE_NET_IF_H 1
7987_ACEOF
7988
7989fi
7990
7991done
7992
7993
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7995$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
d6974efa 7996if ${ac_cv_struct_tm+:} false; then :
067d23c9
KY
7997 $as_echo_n "(cached) " >&6
7998else
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000/* end confdefs.h. */
8001#include <sys/types.h>
8002#include <time.h>
8003
8004int
8005main ()
8006{
8007struct tm tm;
8008 int *p = &tm.tm_sec;
8009 return !p;
8010 ;
8011 return 0;
8012}
8013_ACEOF
8014if ac_fn_c_try_compile "$LINENO"; then :
8015 ac_cv_struct_tm=time.h
8016else
8017 ac_cv_struct_tm=sys/time.h
8018fi
8019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8020fi
8021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8022$as_echo "$ac_cv_struct_tm" >&6; }
8023if test $ac_cv_struct_tm = sys/time.h; then
8024
8025$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8026
8027fi
8028
8029ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8030#include <$ac_cv_struct_tm>
8031
8032"
d6974efa 8033if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
067d23c9
KY
8034
8035cat >>confdefs.h <<_ACEOF
8036#define HAVE_STRUCT_TM_TM_ZONE 1
8037_ACEOF
8038
8039
8040fi
8041
8042if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8043
8044$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8045
8046else
8047 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8048"
d6974efa 8049if test "x$ac_cv_have_decl_tzname" = xyes; then :
067d23c9
KY
8050 ac_have_decl=1
8051else
8052 ac_have_decl=0
8053fi
8054
8055cat >>confdefs.h <<_ACEOF
8056#define HAVE_DECL_TZNAME $ac_have_decl
8057_ACEOF
8058
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8060$as_echo_n "checking for tzname... " >&6; }
d6974efa 8061if ${ac_cv_var_tzname+:} false; then :
067d23c9
KY
8062 $as_echo_n "(cached) " >&6
8063else
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065/* end confdefs.h. */
8066#include <time.h>
8067#if !HAVE_DECL_TZNAME
8068extern char *tzname[];
8069#endif
8070
8071int
8072main ()
8073{
8074return tzname[0][0];
8075 ;
8076 return 0;
8077}
8078_ACEOF
8079if ac_fn_c_try_link "$LINENO"; then :
8080 ac_cv_var_tzname=yes
8081else
8082 ac_cv_var_tzname=no
8083fi
8084rm -f core conftest.err conftest.$ac_objext \
8085 conftest$ac_exeext conftest.$ac_ext
8086fi
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8088$as_echo "$ac_cv_var_tzname" >&6; }
8089 if test $ac_cv_var_tzname = yes; then
8090
8091$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8092
8093 fi
8094fi
8095
8096ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8097"
d6974efa 8098if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
067d23c9
KY
8099
8100$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8101
8102fi
8103
8104ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8105#if HAVE_SYS_SOCKET_H
8106#include <sys/socket.h>
8107#endif
8108#if HAVE_NET_IF_H
8109#include <net/if.h>
8110#endif
8111"
d6974efa 8112if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
067d23c9
KY
8113
8114cat >>confdefs.h <<_ACEOF
8115#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8116_ACEOF
8117
8118
8119fi
8120ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8121#if HAVE_SYS_SOCKET_H
8122#include <sys/socket.h>
8123#endif
8124#if HAVE_NET_IF_H
8125#include <net/if.h>
8126#endif
8127"
d6974efa 8128if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
067d23c9
KY
8129
8130cat >>confdefs.h <<_ACEOF
8131#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8132_ACEOF
8133
8134
8135fi
8136ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8137#if HAVE_SYS_SOCKET_H
8138#include <sys/socket.h>
8139#endif
8140#if HAVE_NET_IF_H
8141#include <net/if.h>
8142#endif
8143"
d6974efa 8144if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
067d23c9
KY
8145
8146cat >>confdefs.h <<_ACEOF
8147#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8148_ACEOF
8149
8150
8151fi
8152ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8153#if HAVE_SYS_SOCKET_H
8154#include <sys/socket.h>
8155#endif
8156#if HAVE_NET_IF_H
8157#include <net/if.h>
8158#endif
8159"
d6974efa 8160if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
067d23c9
KY
8161
8162cat >>confdefs.h <<_ACEOF
8163#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8164_ACEOF
8165
8166
8167fi
8168ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8169#if HAVE_SYS_SOCKET_H
8170#include <sys/socket.h>
8171#endif
8172#if HAVE_NET_IF_H
8173#include <net/if.h>
8174#endif
8175"
d6974efa 8176if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
067d23c9
KY
8177
8178cat >>confdefs.h <<_ACEOF
8179#define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8180_ACEOF
8181
8182
8183fi
8184
8185
8186
8187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8188$as_echo_n "checking for function prototypes... " >&6; }
8189if test "$ac_cv_prog_cc_c89" != no; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8191$as_echo "yes" >&6; }
8192
8193$as_echo "#define PROTOTYPES 1" >>confdefs.h
8194
8195
8196$as_echo "#define __PROTOTYPES 1" >>confdefs.h
8197
8198else
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200$as_echo "no" >&6; }
8201fi
8202
8203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8204$as_echo_n "checking for working volatile... " >&6; }
d6974efa 8205if ${ac_cv_c_volatile+:} false; then :
067d23c9
KY
8206 $as_echo_n "(cached) " >&6
8207else
8208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209/* end confdefs.h. */
8210
8211int
8212main ()
8213{
8214
8215volatile int x;
8216int * volatile y = (int *) 0;
8217return !x && !y;
8218 ;
8219 return 0;
8220}
8221_ACEOF
8222if ac_fn_c_try_compile "$LINENO"; then :
8223 ac_cv_c_volatile=yes
8224else
8225 ac_cv_c_volatile=no
8226fi
8227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228fi
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8230$as_echo "$ac_cv_c_volatile" >&6; }
8231if test $ac_cv_c_volatile = no; then
8232
8233$as_echo "#define volatile /**/" >>confdefs.h
8234
8235fi
8236
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8238$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
d6974efa 8239if ${ac_cv_c_const+:} false; then :
067d23c9
KY
8240 $as_echo_n "(cached) " >&6
8241else
8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243/* end confdefs.h. */
8244
8245int
8246main ()
8247{
8248/* FIXME: Include the comments suggested by Paul. */
8249#ifndef __cplusplus
8250 /* Ultrix mips cc rejects this. */
8251 typedef int charset[2];
8252 const charset cs;
8253 /* SunOS 4.1.1 cc rejects this. */
8254 char const *const *pcpcc;
8255 char **ppc;
8256 /* NEC SVR4.0.2 mips cc rejects this. */
8257 struct point {int x, y;};
8258 static struct point const zero = {0,0};
8259 /* AIX XL C 1.02.0.0 rejects this.
8260 It does not let you subtract one const X* pointer from another in
8261 an arm of an if-expression whose if-part is not a constant
8262 expression */
8263 const char *g = "string";
8264 pcpcc = &g + (g ? g-g : 0);
8265 /* HPUX 7.0 cc rejects these. */
8266 ++pcpcc;
8267 ppc = (char**) pcpcc;
8268 pcpcc = (char const *const *) ppc;
8269 { /* SCO 3.2v4 cc rejects this. */
8270 char *t;
8271 char const *s = 0 ? (char *) 0 : (char const *) 0;
8272
8273 *t++ = 0;
8274 if (s) return 0;
8275 }
8276 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8277 int x[] = {25, 17};
8278 const int *foo = &x[0];
8279 ++foo;
8280 }
8281 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8282 typedef const int *iptr;
8283 iptr p = 0;
8284 ++p;
8285 }
8286 { /* AIX XL C 1.02.0.0 rejects this saying
8287 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8288 struct s { int j; const int *ap[3]; };
8289 struct s *b; b->j = 5;
8290 }
8291 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8292 const int foo = 10;
8293 if (!foo) return 0;
8294 }
8295 return !cs[0] && !zero.x;
8296#endif
8297
8298 ;
8299 return 0;
8300}
8301_ACEOF
8302if ac_fn_c_try_compile "$LINENO"; then :
8303 ac_cv_c_const=yes
8304else
8305 ac_cv_c_const=no
8306fi
8307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308fi
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8310$as_echo "$ac_cv_c_const" >&6; }
8311if test $ac_cv_c_const = no; then
8312
8313$as_echo "#define const /**/" >>confdefs.h
8314
8315fi
8316
8317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8318$as_echo_n "checking for void * support... " >&6; }
d6974efa 8319if ${emacs_cv_void_star+:} false; then :
067d23c9
KY
8320 $as_echo_n "(cached) " >&6
8321else
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323/* end confdefs.h. */
8324
8325int
8326main ()
8327{
8328void * foo;
8329 ;
8330 return 0;
8331}
8332_ACEOF
8333if ac_fn_c_try_compile "$LINENO"; then :
8334 emacs_cv_void_star=yes
8335else
8336 emacs_cv_void_star=no
8337fi
8338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8339fi
8340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8341$as_echo "$emacs_cv_void_star" >&6; }
8342if test $emacs_cv_void_star = yes; then
8343 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8344
8345else
8346 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8347
8348fi
8349
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8351$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d6974efa 8352if ${ac_cv_c_bigendian+:} false; then :
067d23c9
KY
8353 $as_echo_n "(cached) " >&6
8354else
8355 ac_cv_c_bigendian=unknown
8356 # See if we're dealing with a universal compiler.
8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358/* end confdefs.h. */
8359#ifndef __APPLE_CC__
8360 not a universal capable compiler
8361 #endif
8362 typedef int dummy;
8363
8364_ACEOF
8365if ac_fn_c_try_compile "$LINENO"; then :
8366
8367 # Check for potential -arch flags. It is not universal unless
8368 # there are at least two -arch flags with different values.
8369 ac_arch=
8370 ac_prev=
8371 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8372 if test -n "$ac_prev"; then
8373 case $ac_word in
8374 i?86 | x86_64 | ppc | ppc64)
8375 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8376 ac_arch=$ac_word
8377 else
8378 ac_cv_c_bigendian=universal
8379 break
8380 fi
8381 ;;
8382 esac
8383 ac_prev=
8384 elif test "x$ac_word" = "x-arch"; then
8385 ac_prev=arch
8386 fi
8387 done
8388fi
8389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 if test $ac_cv_c_bigendian = unknown; then
8391 # See if sys/param.h defines the BYTE_ORDER macro.
8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393/* end confdefs.h. */
8394#include <sys/types.h>
8395 #include <sys/param.h>
8396
8397int
8398main ()
8399{
8400#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8401 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8402 && LITTLE_ENDIAN)
8403 bogus endian macros
8404 #endif
8405
8406 ;
8407 return 0;
8408}
8409_ACEOF
8410if ac_fn_c_try_compile "$LINENO"; then :
8411 # It does; now see whether it defined to BIG_ENDIAN or not.
8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413/* end confdefs.h. */
8414#include <sys/types.h>
8415 #include <sys/param.h>
8416
8417int
8418main ()
8419{
8420#if BYTE_ORDER != BIG_ENDIAN
8421 not big endian
8422 #endif
8423
8424 ;
8425 return 0;
8426}
8427_ACEOF
8428if ac_fn_c_try_compile "$LINENO"; then :
8429 ac_cv_c_bigendian=yes
8430else
8431 ac_cv_c_bigendian=no
8432fi
8433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434fi
8435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8436 fi
8437 if test $ac_cv_c_bigendian = unknown; then
8438 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440/* end confdefs.h. */
8441#include <limits.h>
8442
8443int
8444main ()
8445{
8446#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8447 bogus endian macros
8448 #endif
8449
8450 ;
8451 return 0;
8452}
8453_ACEOF
8454if ac_fn_c_try_compile "$LINENO"; then :
8455 # It does; now see whether it defined to _BIG_ENDIAN or not.
8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457/* end confdefs.h. */
8458#include <limits.h>
8459
8460int
8461main ()
8462{
8463#ifndef _BIG_ENDIAN
8464 not big endian
8465 #endif
8466
8467 ;
8468 return 0;
8469}
8470_ACEOF
8471if ac_fn_c_try_compile "$LINENO"; then :
8472 ac_cv_c_bigendian=yes
8473else
8474 ac_cv_c_bigendian=no
8475fi
8476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8477fi
8478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 fi
8480 if test $ac_cv_c_bigendian = unknown; then
8481 # Compile a test program.
8482 if test "$cross_compiling" = yes; then :
8483 # Try to guess by grepping values from an object file.
8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485/* end confdefs.h. */
8486short int ascii_mm[] =
8487 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8488 short int ascii_ii[] =
8489 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8490 int use_ascii (int i) {
8491 return ascii_mm[i] + ascii_ii[i];
8492 }
8493 short int ebcdic_ii[] =
8494 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8495 short int ebcdic_mm[] =
8496 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8497 int use_ebcdic (int i) {
8498 return ebcdic_mm[i] + ebcdic_ii[i];
8499 }
8500 extern int foo;
8501
8502int
8503main ()
8504{
8505return use_ascii (foo) == use_ebcdic (foo);
8506 ;
8507 return 0;
8508}
8509_ACEOF
8510if ac_fn_c_try_compile "$LINENO"; then :
8511 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8512 ac_cv_c_bigendian=yes
8513 fi
8514 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8515 if test "$ac_cv_c_bigendian" = unknown; then
8516 ac_cv_c_bigendian=no
8517 else
8518 # finding both strings is unlikely to happen, but who knows?
8519 ac_cv_c_bigendian=unknown
8520 fi
8521 fi
8522fi
8523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524else
8525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526/* end confdefs.h. */
8527$ac_includes_default
8528int
8529main ()
8530{
8531
8532 /* Are we little or big endian? From Harbison&Steele. */
8533 union
8534 {
8535 long int l;
8536 char c[sizeof (long int)];
8537 } u;
8538 u.l = 1;
8539 return u.c[sizeof (long int) - 1] == 1;
8540
8541 ;
8542 return 0;
8543}
8544_ACEOF
8545if ac_fn_c_try_run "$LINENO"; then :
8546 ac_cv_c_bigendian=no
8547else
8548 ac_cv_c_bigendian=yes
8549fi
8550rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8551 conftest.$ac_objext conftest.beam conftest.$ac_ext
8552fi
8553
8554 fi
8555fi
8556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8557$as_echo "$ac_cv_c_bigendian" >&6; }
8558 case $ac_cv_c_bigendian in #(
8559 yes)
8560 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8561;; #(
8562 no)
8563 ;; #(
8564 universal)
8565
8566$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8567
8568 ;; #(
8569 *)
2018939f 8570 as_fn_error $? "unknown endianness
d6974efa 8571 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
067d23c9
KY
8572 esac
8573
8574
7cae64b4
PE
8575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8576$as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
d6974efa 8577if ${emacs_cv_attribute_aligned+:} false; then :
7cae64b4
PE
8578 $as_echo_n "(cached) " >&6
8579else
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581/* end confdefs.h. */
8582char __attribute__ ((__aligned__ (1 << 3))) c;
8583int
8584main ()
8585{
8586
8587 ;
8588 return 0;
8589}
8590_ACEOF
8591if ac_fn_c_try_compile "$LINENO"; then :
8592 emacs_cv_attribute_aligned=yes
8593else
8594 emacs_cv_attribute_aligned=no
8595fi
8596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8597fi
8598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8599$as_echo "$emacs_cv_attribute_aligned" >&6; }
8600if test $emacs_cv_attribute_aligned = yes; then
8601
8602$as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8603
8604fi
8605
067d23c9
KY
8606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8607$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8608set x ${MAKE-make}
8609ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6974efa 8610if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
067d23c9
KY
8611 $as_echo_n "(cached) " >&6
8612else
8613 cat >conftest.make <<\_ACEOF
8614SHELL = /bin/sh
8615all:
8616 @echo '@@@%%%=$(MAKE)=@@@%%%'
8617_ACEOF
2018939f 8618# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
067d23c9
KY
8619case `${MAKE-make} -f conftest.make 2>/dev/null` in
8620 *@@@%%%=?*=@@@%%%*)
8621 eval ac_cv_prog_make_${ac_make}_set=yes;;
8622 *)
8623 eval ac_cv_prog_make_${ac_make}_set=no;;
8624esac
8625rm -f conftest.make
8626fi
8627if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8629$as_echo "yes" >&6; }
8630 SET_MAKE=
8631else
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633$as_echo "no" >&6; }
8634 SET_MAKE="MAKE=${MAKE-make}"
8635fi
8636
8637
8638DEPFLAGS=
8639MKDEPDIR=":"
8640deps_frag=deps.mk
8641if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8643$as_echo_n "checking whether we are using GNU Make... " >&6; }
8644 HAVE_GNU_MAKE=no
8645 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8646 if test "x$testval" != x; then
8647 HAVE_GNU_MAKE=yes
8648 else
8649 ac_enable_autodepend=no
8650 fi
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8652$as_echo "$HAVE_GNU_MAKE" >&6; }
8653 if test $HAVE_GNU_MAKE = yes; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8655$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8656 SAVE_CFLAGS="$CFLAGS"
8657 CFLAGS="$CFLAGS -MMD -MF deps.d"
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659/* end confdefs.h. */
8660
8661int
8662main ()
8663{
8664
8665 ;
8666 return 0;
8667}
8668_ACEOF
8669if ac_fn_c_try_compile "$LINENO"; then :
8670
8671else
8672 ac_enable_autodepend=no
8673fi
8674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675 CFLAGS="$SAVE_CFLAGS"
8676 test -f deps.d || ac_enable_autodepend=no
8677 rm -rf deps.d
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8679$as_echo "$ac_enable_autodepend" >&6; }
8680 fi
8681 if test $ac_enable_autodepend = yes; then
8682 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8683 ## In parallel builds, another make might create depdir between
8684 ## the first test and mkdir, so stick another test on the end.
8685 ## Or use mkinstalldirs? mkdir -p is not portable.
8686 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8687 deps_frag=autodeps.mk
8688 fi
8689fi
8690deps_frag=$srcdir/src/$deps_frag
8691
8692
8693
8694
8695
8696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8697$as_echo_n "checking for long file names... " >&6; }
d6974efa 8698if ${ac_cv_sys_long_file_names+:} false; then :
067d23c9
KY
8699 $as_echo_n "(cached) " >&6
8700else
8701 ac_cv_sys_long_file_names=yes
8702# Test for long file names in all the places we know might matter:
8703# . the current directory, where building will happen
8704# $prefix/lib where we will be installing things
8705# $exec_prefix/lib likewise
8706# $TMPDIR if set, where it might want to write temporary files
8707# /tmp where it might want to write temporary files
8708# /var/tmp likewise
8709# /usr/tmp likewise
8710for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8711 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8712 # in the usual case where exec_prefix is '${prefix}'.
8713 case $ac_dir in #(
8714 . | /* | ?:[\\/]*) ;; #(
8715 *) continue;;
8716 esac
8717 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8718 ac_xdir=$ac_dir/cf$$
8719 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8720 ac_tf1=$ac_xdir/conftest9012345
8721 ac_tf2=$ac_xdir/conftest9012346
8722 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8723 ac_cv_sys_long_file_names=no
8724 rm -f -r "$ac_xdir" 2>/dev/null
8725 test $ac_cv_sys_long_file_names = no && break
8726done
8727fi
8728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8729$as_echo "$ac_cv_sys_long_file_names" >&6; }
8730if test $ac_cv_sys_long_file_names = yes; then
8731
8732$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8733
8734fi
8735
8736
8737#### Choose a window system.
8738
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8740$as_echo_n "checking for X... " >&6; }
8741
8742
8743# Check whether --with-x was given.
8744if test "${with_x+set}" = set; then :
8745 withval=$with_x;
8746fi
8747
8748# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8749if test "x$with_x" = xno; then
8750 # The user explicitly disabled X.
8751 have_x=disabled
8752else
8753 case $x_includes,$x_libraries in #(
d6974efa
PE
8754 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8755 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
067d23c9
KY
8756 $as_echo_n "(cached) " >&6
8757else
8758 # One or both of the vars are not set, and there is no cached value.
8759ac_x_includes=no ac_x_libraries=no
8760rm -f -r conftest.dir
8761if mkdir conftest.dir; then
8762 cd conftest.dir
8763 cat >Imakefile <<'_ACEOF'
8764incroot:
8765 @echo incroot='${INCROOT}'
8766usrlibdir:
8767 @echo usrlibdir='${USRLIBDIR}'
8768libdir:
8769 @echo libdir='${LIBDIR}'
8770_ACEOF
8771 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
2018939f 8772 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
067d23c9
KY
8773 for ac_var in incroot usrlibdir libdir; do
8774 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8775 done
8776 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8777 for ac_extension in a so sl dylib la dll; do
8778 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8779 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8780 ac_im_usrlibdir=$ac_im_libdir; break
8781 fi
8782 done
8783 # Screen out bogus values from the imake configuration. They are
8784 # bogus both because they are the default anyway, and because
8785 # using them would break gcc on systems where it needs fixed includes.
8786 case $ac_im_incroot in
8787 /usr/include) ac_x_includes= ;;
8788 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8789 esac
8790 case $ac_im_usrlibdir in
8791 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8792 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8793 esac
8794 fi
8795 cd ..
8796 rm -f -r conftest.dir
8797fi
8798
8799# Standard set of common directories for X headers.
8800# Check X11 before X11Rn because it is often a symlink to the current release.
8801ac_x_header_dirs='
8802/usr/X11/include
8803/usr/X11R7/include
8804/usr/X11R6/include
8805/usr/X11R5/include
8806/usr/X11R4/include
8807
8808/usr/include/X11
8809/usr/include/X11R7
8810/usr/include/X11R6
8811/usr/include/X11R5
8812/usr/include/X11R4
8813
8814/usr/local/X11/include
8815/usr/local/X11R7/include
8816/usr/local/X11R6/include
8817/usr/local/X11R5/include
8818/usr/local/X11R4/include
8819
8820/usr/local/include/X11
8821/usr/local/include/X11R7
8822/usr/local/include/X11R6
8823/usr/local/include/X11R5
8824/usr/local/include/X11R4
8825
8826/usr/X386/include
8827/usr/x386/include
8828/usr/XFree86/include/X11
8829
8830/usr/include
8831/usr/local/include
8832/usr/unsupported/include
8833/usr/athena/include
8834/usr/local/x11r5/include
8835/usr/lpp/Xamples/include
8836
8837/usr/openwin/include
8838/usr/openwin/share/include'
8839
8840if test "$ac_x_includes" = no; then
8841 # Guess where to find include files, by looking for Xlib.h.
8842 # First, try using that file with no special directory specified.
8843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844/* end confdefs.h. */
8845#include <X11/Xlib.h>
8846_ACEOF
8847if ac_fn_c_try_cpp "$LINENO"; then :
8848 # We can compile using X headers with no special include directory.
8849ac_x_includes=
8850else
8851 for ac_dir in $ac_x_header_dirs; do
8852 if test -r "$ac_dir/X11/Xlib.h"; then
8853 ac_x_includes=$ac_dir
8854 break
8855 fi
8856done
8857fi
2018939f 8858rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
8859fi # $ac_x_includes = no
8860
8861if test "$ac_x_libraries" = no; then
8862 # Check for the libraries.
8863 # See if we find them without any special options.
8864 # Don't add to $LIBS permanently.
8865 ac_save_LIBS=$LIBS
8866 LIBS="-lX11 $LIBS"
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868/* end confdefs.h. */
8869#include <X11/Xlib.h>
8870int
8871main ()
8872{
8873XrmInitialize ()
8874 ;
8875 return 0;
8876}
8877_ACEOF
8878if ac_fn_c_try_link "$LINENO"; then :
8879 LIBS=$ac_save_LIBS
8880# We can link X programs with no special library path.
8881ac_x_libraries=
8882else
8883 LIBS=$ac_save_LIBS
8884for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8885do
8886 # Don't even attempt the hair of trying to link an X program!
8887 for ac_extension in a so sl dylib la dll; do
8888 if test -r "$ac_dir/libX11.$ac_extension"; then
8889 ac_x_libraries=$ac_dir
8890 break 2
8891 fi
8892 done
8893done
8894fi
8895rm -f core conftest.err conftest.$ac_objext \
8896 conftest$ac_exeext conftest.$ac_ext
8897fi # $ac_x_libraries = no
8898
8899case $ac_x_includes,$ac_x_libraries in #(
8900 no,* | *,no | *\'*)
8901 # Didn't find X, or a directory has "'" in its name.
8902 ac_cv_have_x="have_x=no";; #(
8903 *)
8904 # Record where we found X for the cache.
8905 ac_cv_have_x="have_x=yes\
8906 ac_x_includes='$ac_x_includes'\
8907 ac_x_libraries='$ac_x_libraries'"
8908esac
8909fi
8910;; #(
8911 *) have_x=yes;;
8912 esac
8913 eval "$ac_cv_have_x"
8914fi # $with_x != no
8915
8916if test "$have_x" != yes; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8918$as_echo "$have_x" >&6; }
8919 no_x=yes
8920else
8921 # If each of the values was on the command line, it overrides each guess.
8922 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8923 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8924 # Update the cache value to reflect the command line values.
8925 ac_cv_have_x="have_x=yes\
8926 ac_x_includes='$x_includes'\
8927 ac_x_libraries='$x_libraries'"
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8929$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8930fi
8931
8932if test "$no_x" = yes; then
8933 window_system=none
8934else
8935 window_system=x11
8936fi
8937
8938## Workaround for bug in autoconf <= 2.62.
8939## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8940## No need to do anything special for these standard directories.
8941if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8942
8943 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8944
8945fi
8946
8947LD_SWITCH_X_SITE_AUX=
8948LD_SWITCH_X_SITE_AUX_RPATH=
8949if test "${x_libraries}" != NONE; then
8950 if test -n "${x_libraries}"; then
8951 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8952 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8953 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8954 fi
8955 x_default_search_path=""
8956 x_search_path=${x_libraries}
8957 if test -z "${x_search_path}"; then
8958 x_search_path=/usr/lib
8959 fi
8960 for x_library in `echo ${x_search_path}: | \
8961 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8962 x_search_path="\
8963${x_library}/X11/%L/%T/%N%C%S:\
8964${x_library}/X11/%l/%T/%N%C%S:\
8965${x_library}/X11/%T/%N%C%S:\
8966${x_library}/X11/%L/%T/%N%S:\
8967${x_library}/X11/%l/%T/%N%S:\
8968${x_library}/X11/%T/%N%S"
8969 if test x"${x_default_search_path}" = x; then
8970 x_default_search_path=${x_search_path}
8971 else
8972 x_default_search_path="${x_search_path}:${x_default_search_path}"
8973 fi
8974 done
8975fi
8976
8977
8978
8979if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8980 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8981fi
8982
8983if test x"${x_includes}" = x; then
8984 bitmapdir=/usr/include/X11/bitmaps
8985else
8986 # accumulate include directories that have X11 bitmap subdirectories
8987 bmd_acc="dummyval"
8988 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8989 if test -d "${bmd}/X11/bitmaps"; then
8990 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8991 fi
8992 if test -d "${bmd}/bitmaps"; then
8993 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8994 fi
8995 done
8996 if test ${bmd_acc} != "dummyval"; then
8997 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8998 fi
8999fi
9000
9001HAVE_NS=no
9002NS_IMPL_COCOA=no
9003NS_IMPL_GNUSTEP=no
9004tmp_CPPFLAGS="$CPPFLAGS"
9005tmp_CFLAGS="$CFLAGS"
9006CPPFLAGS="$CPPFLAGS -x objective-c"
9007CFLAGS="$CFLAGS -x objective-c"
9008TEMACS_LDFLAGS2="\${LDFLAGS}"
9009if test "${with_ns}" != no; then
9010 if test "${opsys}" = darwin; then
9011 NS_IMPL_COCOA=yes
9012 ns_appdir=`pwd`/nextstep/Emacs.app
9013 ns_appbindir=${ns_appdir}/Contents/MacOS/
9014 ns_appresdir=${ns_appdir}/Contents/Resources
9015 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9016 elif test -f $GNUSTEP_CONFIG_FILE; then
9017 NS_IMPL_GNUSTEP=yes
9018 ns_appdir=`pwd`/nextstep/Emacs.app
9019 ns_appbindir=${ns_appdir}/
9020 ns_appresdir=${ns_appdir}/Resources
9021 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9022 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9023 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9024 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9025 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9026 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9027 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9028 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9029 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9030 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9031 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9032 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9033 LIB_STANDARD=
9034 START_FILES=
9035 TEMACS_LDFLAGS2=
9036 fi
9037 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
d6974efa 9038if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
067d23c9
KY
9039 HAVE_NS=yes
9040else
2018939f 9041 as_fn_error $? "\`--with-ns' was specified, but the include
067d23c9
KY
9042 files are missing or cannot be compiled." "$LINENO" 5
9043fi
9044
9045
9046 NS_HAVE_NSINTEGER=yes
9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048/* end confdefs.h. */
9049#include <Foundation/NSObjCRuntime.h>
9050int
9051main ()
9052{
9053NSInteger i;
9054 ;
9055 return 0;
9056}
9057_ACEOF
9058if ac_fn_c_try_compile "$LINENO"; then :
9059 ns_have_nsinteger=yes
9060else
9061 ns_have_nsinteger=no
9062fi
9063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9064 if test $ns_have_nsinteger = no; then
9065 NS_HAVE_NSINTEGER=no
9066 fi
9067fi
9068
9069
9070ns_frag=/dev/null
9071NS_OBJ=
00b3c7ac 9072NS_OBJC_OBJ=
067d23c9
KY
9073NS_SUPPORT=
9074if test "${HAVE_NS}" = yes; then
9075 window_system=nextstep
9076 with_xft=no
9077 # set up packaging dirs
9078 exec_prefix=${ns_appbindir}
9079 libexecdir=${ns_appbindir}/libexec
9080 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9081 prefix=${ns_appresdir}
9082 fi
9083 ns_frag=$srcdir/src/ns.mk
00b3c7ac
TT
9084 NS_OBJ="fontset.o fringe.o image.o"
9085 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
067d23c9
KY
9086 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9087fi
9088CFLAGS="$tmp_CFLAGS"
9089CPPFLAGS="$tmp_CPPFLAGS"
9090
9091
9092
9093
9094
00b3c7ac 9095
067d23c9
KY
9096case "${window_system}" in
9097 x11 )
9098 HAVE_X_WINDOWS=yes
9099 HAVE_X11=yes
9100 case "${with_x_toolkit}" in
9101 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9102 motif ) USE_X_TOOLKIT=MOTIF ;;
9103 gtk ) with_gtk=yes
9104 USE_X_TOOLKIT=none ;;
9105 gtk3 ) with_gtk3=yes
9106 USE_X_TOOLKIT=none ;;
9107 no ) USE_X_TOOLKIT=none ;;
9108 * ) USE_X_TOOLKIT=maybe ;;
9109 esac
9110 ;;
9111 nextstep | none )
9112 HAVE_X_WINDOWS=no
9113 HAVE_X11=no
9114 USE_X_TOOLKIT=none
9115 ;;
9116esac
9117
9118if test "$window_system" = none && test "X$with_x" != "Xno"; then
9119 # Extract the first word of "X", so it can be a program name with args.
9120set dummy X; ac_word=$2
9121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9122$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 9123if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
067d23c9
KY
9124 $as_echo_n "(cached) " >&6
9125else
9126 if test -n "$HAVE_XSERVER"; then
9127 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9128else
9129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130for as_dir in $PATH
9131do
9132 IFS=$as_save_IFS
9133 test -z "$as_dir" && as_dir=.
9134 for ac_exec_ext in '' $ac_executable_extensions; do
9135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9136 ac_cv_prog_HAVE_XSERVER="true"
9137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9138 break 2
9139 fi
9140done
9141 done
9142IFS=$as_save_IFS
9143
9144 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9145fi
9146fi
9147HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9148if test -n "$HAVE_XSERVER"; then
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9150$as_echo "$HAVE_XSERVER" >&6; }
9151else
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9153$as_echo "no" >&6; }
9154fi
9155
9156
9157 if test "$HAVE_XSERVER" = true ||
9158 test -n "$DISPLAY" ||
9159 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
2018939f 9160 as_fn_error $? "You seem to be running X, but no X development libraries
067d23c9
KY
9161were found. You should install the relevant development files for X
9162and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9163sure you have development files for image handling, i.e.
9164tiff, gif, jpeg, png and xpm.
9165If you are sure you want Emacs compiled without X window support, pass
9166 --without-x
9167to configure." "$LINENO" 5
9168 fi
9169fi
9170
9171### If we're using X11, we should use the X menu package.
9172HAVE_MENUS=no
9173case ${HAVE_X11} in
9174 yes ) HAVE_MENUS=yes ;;
9175esac
9176
9177# Do the opsystem or machine files prohibit the use of the GNU malloc?
9178# Assume not, until told otherwise.
9179GNU_MALLOC=yes
9180doug_lea_malloc=yes
9181ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
d6974efa 9182if test "x$ac_cv_func_malloc_get_state" = xyes; then :
067d23c9
KY
9183
9184else
9185 doug_lea_malloc=no
9186fi
9187
9188ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
d6974efa 9189if test "x$ac_cv_func_malloc_set_state" = xyes; then :
067d23c9
KY
9190
9191else
9192 doug_lea_malloc=no
9193fi
9194
9195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9196$as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
d6974efa 9197if ${emacs_cv_var___after_morecore_hook+:} false; then :
067d23c9
KY
9198 $as_echo_n "(cached) " >&6
9199else
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201/* end confdefs.h. */
9202extern void (* __after_morecore_hook)();
9203int
9204main ()
9205{
9206__after_morecore_hook = 0
9207 ;
9208 return 0;
9209}
9210_ACEOF
9211if ac_fn_c_try_link "$LINENO"; then :
9212 emacs_cv_var___after_morecore_hook=yes
9213else
9214 emacs_cv_var___after_morecore_hook=no
9215fi
9216rm -f core conftest.err conftest.$ac_objext \
9217 conftest$ac_exeext conftest.$ac_ext
9218fi
9219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9220$as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9221if test $emacs_cv_var___after_morecore_hook = no; then
9222 doug_lea_malloc=no
9223fi
9224
9225
9226system_malloc=no
9227case "$opsys" in
9228 ## darwin ld insists on the use of malloc routines in the System framework.
9229 darwin|sol2-10) system_malloc=yes ;;
9230esac
9231
9232if test "${system_malloc}" = "yes"; then
9233
9234$as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9235
9236 GNU_MALLOC=no
9237 GNU_MALLOC_reason="
9238 (The GNU allocators don't work with this system configuration.)"
9239 GMALLOC_OBJ=
9240 VMLIMIT_OBJ=
9241else
9242 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9243 VMLIMIT_OBJ=vm-limit.o
9244fi
9245
9246
9247
9248if test "$doug_lea_malloc" = "yes" ; then
9249 if test "$GNU_MALLOC" = yes ; then
9250 GNU_MALLOC_reason="
9251 (Using Doug Lea's new malloc from the GNU C Library.)"
9252 fi
9253
9254$as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9255
9256
9257 ## Use mmap directly for allocating larger buffers.
9258 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9259 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9260 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9261 case "$opsys" in
9262 gnu*) REL_ALLOC=no ;;
9263 esac
9264fi
9265
9266if test x"${REL_ALLOC}" = x; then
9267 REL_ALLOC=${GNU_MALLOC}
9268fi
9269
9270use_mmap_for_buffers=no
9271case "$opsys" in
9272 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9273esac
9274
9275
9276
9277
9278 for ac_header in $ac_header_list
9279do :
9280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9281ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9282"
2018939f 9283if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
9284 cat >>confdefs.h <<_ACEOF
9285#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9286_ACEOF
9287
9288fi
9289
9290done
9291
9292
9293
9294
9295
9296
9297
9298
9299for ac_func in getpagesize
9300do :
9301 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
d6974efa 9302if test "x$ac_cv_func_getpagesize" = xyes; then :
067d23c9
KY
9303 cat >>confdefs.h <<_ACEOF
9304#define HAVE_GETPAGESIZE 1
9305_ACEOF
9306
9307fi
9308done
9309
9310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9311$as_echo_n "checking for working mmap... " >&6; }
d6974efa 9312if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
067d23c9
KY
9313 $as_echo_n "(cached) " >&6
9314else
9315 if test "$cross_compiling" = yes; then :
9316 ac_cv_func_mmap_fixed_mapped=no
9317else
9318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9319/* end confdefs.h. */
9320$ac_includes_default
9321/* malloc might have been renamed as rpl_malloc. */
9322#undef malloc
9323
9324/* Thanks to Mike Haertel and Jim Avera for this test.
9325 Here is a matrix of mmap possibilities:
9326 mmap private not fixed
9327 mmap private fixed at somewhere currently unmapped
9328 mmap private fixed at somewhere already mapped
9329 mmap shared not fixed
9330 mmap shared fixed at somewhere currently unmapped
9331 mmap shared fixed at somewhere already mapped
9332 For private mappings, we should verify that changes cannot be read()
9333 back from the file, nor mmap's back from the file at a different
9334 address. (There have been systems where private was not correctly
9335 implemented like the infamous i386 svr4.0, and systems where the
9336 VM page cache was not coherent with the file system buffer cache
9337 like early versions of FreeBSD and possibly contemporary NetBSD.)
9338 For shared mappings, we should conversely verify that changes get
9339 propagated back to all the places they're supposed to be.
9340
9341 Grep wants private fixed already mapped.
9342 The main things grep needs to know about mmap are:
9343 * does it exist and is it safe to write into the mmap'd area
9344 * how to use it (BSD variants) */
9345
9346#include <fcntl.h>
9347#include <sys/mman.h>
9348
9349#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9350char *malloc ();
9351#endif
9352
9353/* This mess was copied from the GNU getpagesize.h. */
9354#ifndef HAVE_GETPAGESIZE
9355# ifdef _SC_PAGESIZE
9356# define getpagesize() sysconf(_SC_PAGESIZE)
9357# else /* no _SC_PAGESIZE */
9358# ifdef HAVE_SYS_PARAM_H
9359# include <sys/param.h>
9360# ifdef EXEC_PAGESIZE
9361# define getpagesize() EXEC_PAGESIZE
9362# else /* no EXEC_PAGESIZE */
9363# ifdef NBPG
9364# define getpagesize() NBPG * CLSIZE
9365# ifndef CLSIZE
9366# define CLSIZE 1
9367# endif /* no CLSIZE */
9368# else /* no NBPG */
9369# ifdef NBPC
9370# define getpagesize() NBPC
9371# else /* no NBPC */
9372# ifdef PAGESIZE
9373# define getpagesize() PAGESIZE
9374# endif /* PAGESIZE */
9375# endif /* no NBPC */
9376# endif /* no NBPG */
9377# endif /* no EXEC_PAGESIZE */
9378# else /* no HAVE_SYS_PARAM_H */
9379# define getpagesize() 8192 /* punt totally */
9380# endif /* no HAVE_SYS_PARAM_H */
9381# endif /* no _SC_PAGESIZE */
9382
9383#endif /* no HAVE_GETPAGESIZE */
9384
9385int
9386main ()
9387{
9388 char *data, *data2, *data3;
2018939f 9389 const char *cdata2;
067d23c9
KY
9390 int i, pagesize;
9391 int fd, fd2;
9392
9393 pagesize = getpagesize ();
9394
9395 /* First, make a file with some known garbage in it. */
9396 data = (char *) malloc (pagesize);
9397 if (!data)
9398 return 1;
9399 for (i = 0; i < pagesize; ++i)
9400 *(data + i) = rand ();
9401 umask (0);
9402 fd = creat ("conftest.mmap", 0600);
9403 if (fd < 0)
9404 return 2;
9405 if (write (fd, data, pagesize) != pagesize)
9406 return 3;
9407 close (fd);
9408
9409 /* Next, check that the tail of a page is zero-filled. File must have
9410 non-zero length, otherwise we risk SIGBUS for entire page. */
9411 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9412 if (fd2 < 0)
9413 return 4;
2018939f
AS
9414 cdata2 = "";
9415 if (write (fd2, cdata2, 1) != 1)
067d23c9 9416 return 5;
2018939f 9417 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
067d23c9
KY
9418 if (data2 == MAP_FAILED)
9419 return 6;
9420 for (i = 0; i < pagesize; ++i)
9421 if (*(data2 + i))
9422 return 7;
9423 close (fd2);
9424 if (munmap (data2, pagesize))
9425 return 8;
9426
9427 /* Next, try to mmap the file at a fixed address which already has
9428 something else allocated at it. If we can, also make sure that
9429 we see the same garbage. */
9430 fd = open ("conftest.mmap", O_RDWR);
9431 if (fd < 0)
9432 return 9;
9433 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9434 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9435 return 10;
9436 for (i = 0; i < pagesize; ++i)
9437 if (*(data + i) != *(data2 + i))
9438 return 11;
9439
9440 /* Finally, make sure that changes to the mapped area do not
9441 percolate back to the file as seen by read(). (This is a bug on
9442 some variants of i386 svr4.0.) */
9443 for (i = 0; i < pagesize; ++i)
9444 *(data2 + i) = *(data2 + i) + 1;
9445 data3 = (char *) malloc (pagesize);
9446 if (!data3)
9447 return 12;
9448 if (read (fd, data3, pagesize) != pagesize)
9449 return 13;
9450 for (i = 0; i < pagesize; ++i)
9451 if (*(data + i) != *(data3 + i))
9452 return 14;
9453 close (fd);
9454 return 0;
9455}
9456_ACEOF
9457if ac_fn_c_try_run "$LINENO"; then :
9458 ac_cv_func_mmap_fixed_mapped=yes
9459else
9460 ac_cv_func_mmap_fixed_mapped=no
9461fi
9462rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9463 conftest.$ac_objext conftest.beam conftest.$ac_ext
9464fi
9465
9466fi
9467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9468$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9469if test $ac_cv_func_mmap_fixed_mapped = yes; then
9470
9471$as_echo "#define HAVE_MMAP 1" >>confdefs.h
9472
9473fi
9474rm -f conftest.mmap conftest.txt
9475
9476if test $use_mmap_for_buffers = yes; then
9477
9478$as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9479
9480 REL_ALLOC=no
9481fi
9482
9483LIBS="$LIBS_SYSTEM $LIBS"
9484
9485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9486$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
d6974efa 9487if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
067d23c9
KY
9488 $as_echo_n "(cached) " >&6
9489else
9490 ac_check_lib_save_LIBS=$LIBS
9491LIBS="-ldnet $LIBS"
9492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493/* end confdefs.h. */
9494
9495/* Override any GCC internal prototype to avoid an error.
9496 Use char because int might match the return type of a GCC
9497 builtin and then its argument prototype would still apply. */
9498#ifdef __cplusplus
9499extern "C"
9500#endif
9501char dnet_ntoa ();
9502int
9503main ()
9504{
9505return dnet_ntoa ();
9506 ;
9507 return 0;
9508}
9509_ACEOF
9510if ac_fn_c_try_link "$LINENO"; then :
9511 ac_cv_lib_dnet_dnet_ntoa=yes
9512else
9513 ac_cv_lib_dnet_dnet_ntoa=no
9514fi
9515rm -f core conftest.err conftest.$ac_objext \
9516 conftest$ac_exeext conftest.$ac_ext
9517LIBS=$ac_check_lib_save_LIBS
9518fi
9519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9520$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
d6974efa 9521if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
067d23c9
KY
9522 cat >>confdefs.h <<_ACEOF
9523#define HAVE_LIBDNET 1
9524_ACEOF
9525
9526 LIBS="-ldnet $LIBS"
9527
9528fi
9529
9530
9531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9532$as_echo_n "checking for main in -lXbsd... " >&6; }
d6974efa 9533if ${ac_cv_lib_Xbsd_main+:} false; then :
067d23c9
KY
9534 $as_echo_n "(cached) " >&6
9535else
9536 ac_check_lib_save_LIBS=$LIBS
9537LIBS="-lXbsd $LIBS"
9538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539/* end confdefs.h. */
9540
9541
9542int
9543main ()
9544{
9545return main ();
9546 ;
9547 return 0;
9548}
9549_ACEOF
9550if ac_fn_c_try_link "$LINENO"; then :
9551 ac_cv_lib_Xbsd_main=yes
9552else
9553 ac_cv_lib_Xbsd_main=no
9554fi
9555rm -f core conftest.err conftest.$ac_objext \
9556 conftest$ac_exeext conftest.$ac_ext
9557LIBS=$ac_check_lib_save_LIBS
9558fi
9559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9560$as_echo "$ac_cv_lib_Xbsd_main" >&6; }
d6974efa 9561if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
067d23c9
KY
9562 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9563fi
9564
9565
9566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9567$as_echo_n "checking for cma_open in -lpthreads... " >&6; }
d6974efa 9568if ${ac_cv_lib_pthreads_cma_open+:} false; then :
067d23c9
KY
9569 $as_echo_n "(cached) " >&6
9570else
9571 ac_check_lib_save_LIBS=$LIBS
9572LIBS="-lpthreads $LIBS"
9573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574/* end confdefs.h. */
9575
9576/* Override any GCC internal prototype to avoid an error.
9577 Use char because int might match the return type of a GCC
9578 builtin and then its argument prototype would still apply. */
9579#ifdef __cplusplus
9580extern "C"
9581#endif
9582char cma_open ();
9583int
9584main ()
9585{
9586return cma_open ();
9587 ;
9588 return 0;
9589}
9590_ACEOF
9591if ac_fn_c_try_link "$LINENO"; then :
9592 ac_cv_lib_pthreads_cma_open=yes
9593else
9594 ac_cv_lib_pthreads_cma_open=no
9595fi
9596rm -f core conftest.err conftest.$ac_objext \
9597 conftest$ac_exeext conftest.$ac_ext
9598LIBS=$ac_check_lib_save_LIBS
9599fi
9600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9601$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
d6974efa 9602if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
067d23c9
KY
9603 cat >>confdefs.h <<_ACEOF
9604#define HAVE_LIBPTHREADS 1
9605_ACEOF
9606
9607 LIBS="-lpthreads $LIBS"
9608
9609fi
9610
9611
9612## Note: when using cpp in s/aix4.2.h, this definition depended on
9613## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9614## the system file was sourced. Hence the value of LIBS_SYSTEM
9615## added to LIBS in configure would never contain the pthreads part,
9616## but the value used in Makefiles might. FIXME?
9617##
9618## -lpthreads seems to be necessary for Xlib in X11R6, and should
9619## be harmless on older versions of X where it happens to exist.
9620test "$opsys" = "aix4-2" && \
9621 test $ac_cv_lib_pthreads_cma_open = yes && \
9622 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9623
9624
9625case ${host_os} in
9626aix*)
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9628$as_echo_n "checking for -bbigtoc option... " >&6; }
d6974efa 9629if ${gdb_cv_bigtoc+:} false; then :
067d23c9
KY
9630 $as_echo_n "(cached) " >&6
9631else
9632
9633 case $GCC in
9634 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9635 *) gdb_cv_bigtoc=-bbigtoc ;;
9636 esac
9637
9638 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640/* end confdefs.h. */
9641
9642int
9643main ()
9644{
9645int i;
9646 ;
9647 return 0;
9648}
9649_ACEOF
9650if ac_fn_c_try_link "$LINENO"; then :
9651
9652else
9653 gdb_cv_bigtoc=
9654fi
9655rm -f core conftest.err conftest.$ac_objext \
9656 conftest$ac_exeext conftest.$ac_ext
9657
9658fi
9659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9660$as_echo "$gdb_cv_bigtoc" >&6; }
9661 ;;
9662esac
9663
9664# Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9665# used for the tests that follow. We set them back to REAL_CFLAGS and
9666# REAL_CPPFLAGS later on.
9667
9668REAL_CFLAGS="$CFLAGS"
9669REAL_CPPFLAGS="$CPPFLAGS"
9670
9671if test "${HAVE_X11}" = "yes"; then
9672 DEFS="$C_SWITCH_X_SITE $DEFS"
9673 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9674 LIBS="-lX11 $LIBS"
9675 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9676 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9677
9678 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9679 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9680 # but it's more convenient here to set LD_RUN_PATH
9681 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9682 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9683 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9684 export LD_RUN_PATH
9685 fi
9686
9687 if test "${opsys}" = "gnu-linux"; then
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9689$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691/* end confdefs.h. */
9692
9693int
9694main ()
9695{
9696XOpenDisplay ("foo");
9697 ;
9698 return 0;
9699}
9700_ACEOF
9701if ac_fn_c_try_link "$LINENO"; then :
9702 xlinux_first_failure=no
9703else
9704 xlinux_first_failure=yes
9705fi
9706rm -f core conftest.err conftest.$ac_objext \
9707 conftest$ac_exeext conftest.$ac_ext
9708 if test "${xlinux_first_failure}" = "yes"; then
9709 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9710 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9711 OLD_CPPFLAGS="$CPPFLAGS"
9712 OLD_LIBS="$LIBS"
9713 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9714 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9715 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9716 LIBS="$LIBS -b i486-linuxaout"
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718/* end confdefs.h. */
9719
9720int
9721main ()
9722{
9723XOpenDisplay ("foo");
9724 ;
9725 return 0;
9726}
9727_ACEOF
9728if ac_fn_c_try_link "$LINENO"; then :
9729 xlinux_second_failure=no
9730else
9731 xlinux_second_failure=yes
9732fi
9733rm -f core conftest.err conftest.$ac_objext \
9734 conftest$ac_exeext conftest.$ac_ext
9735 if test "${xlinux_second_failure}" = "yes"; then
9736 # If we get the same failure with -b, there is no use adding -b.
9737 # So take it out. This plays safe.
9738 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9739 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9740 CPPFLAGS="$OLD_CPPFLAGS"
9741 LIBS="$OLD_LIBS"
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743$as_echo "no" >&6; }
9744 else
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9746$as_echo "yes" >&6; }
9747 fi
9748 else
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9750$as_echo "no" >&6; }
9751 fi
9752 fi
9753
9754 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9755 # header files included from there.
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9757$as_echo_n "checking for Xkb... " >&6; }
9758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9759/* end confdefs.h. */
9760#include <X11/Xlib.h>
9761#include <X11/XKBlib.h>
9762int
9763main ()
9764{
9765XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9766 ;
9767 return 0;
9768}
9769_ACEOF
9770if ac_fn_c_try_link "$LINENO"; then :
9771 emacs_xkb=yes
9772else
9773 emacs_xkb=no
9774fi
9775rm -f core conftest.err conftest.$ac_objext \
9776 conftest$ac_exeext conftest.$ac_ext
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9778$as_echo "$emacs_xkb" >&6; }
9779 if test $emacs_xkb = yes; then
9780
9781$as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9782
9783 fi
9784
9785 for ac_func in XrmSetDatabase XScreenResourceString \
9786XScreenNumberOfScreen XSetWMProtocols
9787do :
9788 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9789ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 9790if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
9791 cat >>confdefs.h <<_ACEOF
9792#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9793_ACEOF
9794
9795fi
9796done
9797
9798fi
9799
9800if test "${window_system}" = "x11"; then
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9802$as_echo_n "checking X11 version 6... " >&6; }
d6974efa 9803 if ${emacs_cv_x11_version_6+:} false; then :
067d23c9
KY
9804 $as_echo_n "(cached) " >&6
9805else
9806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9807/* end confdefs.h. */
9808#include <X11/Xlib.h>
9809int
9810main ()
9811{
9812#if XlibSpecificationRelease < 6
9813fail;
9814#endif
9815
9816 ;
9817 return 0;
9818}
9819_ACEOF
9820if ac_fn_c_try_link "$LINENO"; then :
9821 emacs_cv_x11_version_6=yes
9822else
9823 emacs_cv_x11_version_6=no
9824fi
9825rm -f core conftest.err conftest.$ac_objext \
9826 conftest$ac_exeext conftest.$ac_ext
9827fi
9828
9829 if test $emacs_cv_x11_version_6 = yes; then
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9831$as_echo "6 or newer" >&6; }
9832
9833$as_echo "#define HAVE_X11R6 1" >>confdefs.h
9834
9835
9836$as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9837
9838 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9839 ## XIM support.
9840 case "$opsys" in
9841 sol2-*) : ;;
9842 *)
9843$as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9844
9845 ;;
9846 esac
9847 else
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9849$as_echo "before 6" >&6; }
9850 fi
9851fi
9852
9853
9854### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9855HAVE_RSVG=no
9856if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9857 if test "${with_rsvg}" != "no"; then
9858 RSVG_REQUIRED=2.11.0
9859 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9860
9861
9862 succeeded=no
9863
9864 # Extract the first word of "pkg-config", so it can be a program name with args.
9865set dummy pkg-config; ac_word=$2
9866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9867$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 9868if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9869 $as_echo_n "(cached) " >&6
9870else
9871 case $PKG_CONFIG in
9872 [\\/]* | ?:[\\/]*)
9873 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9874 ;;
9875 *)
9876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877for as_dir in $PATH
9878do
9879 IFS=$as_save_IFS
9880 test -z "$as_dir" && as_dir=.
9881 for ac_exec_ext in '' $ac_executable_extensions; do
9882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9883 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9885 break 2
9886 fi
9887done
9888 done
9889IFS=$as_save_IFS
9890
9891 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9892 ;;
9893esac
9894fi
9895PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9896if test -n "$PKG_CONFIG"; then
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9898$as_echo "$PKG_CONFIG" >&6; }
9899else
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9901$as_echo "no" >&6; }
9902fi
9903
9904
9905
9906 if test "$PKG_CONFIG" = "no" ; then
9907 :
9908 else
9909 PKG_CONFIG_MIN_VERSION=0.9.0
9910 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9912$as_echo_n "checking for $RSVG_MODULE... " >&6; }
9913
9914 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9916$as_echo "yes" >&6; }
9917 succeeded=yes
9918
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9920$as_echo_n "checking RSVG_CFLAGS... " >&6; }
9921 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9923$as_echo "$RSVG_CFLAGS" >&6; }
9924
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9926$as_echo_n "checking RSVG_LIBS... " >&6; }
9927 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9929$as_echo "$RSVG_LIBS" >&6; }
9930 else
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9932$as_echo "no" >&6; }
9933 RSVG_CFLAGS=""
9934 RSVG_LIBS=""
9935 ## If we have a custom action on failure, don't print errors, but
9936 ## do set a variable so people can do so.
9937 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9938
9939 fi
9940
9941
9942
9943 else
9944 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9945 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9946 fi
9947 fi
9948
9949 if test $succeeded = yes; then
9950 HAVE_RSVG=yes
9951 else
9952 :
9953 fi
9954
9955
9956
9957
9958 if test $HAVE_RSVG = yes; then
9959
9960$as_echo "#define HAVE_RSVG 1" >>confdefs.h
9961
9962 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9963 LIBS="$RSVG_LIBS $LIBS"
9964 fi
9965 fi
9966fi
9967
9968HAVE_IMAGEMAGICK=no
9969if test "${HAVE_X11}" = "yes"; then
9970 if test "${with_imagemagick}" != "no"; then
9971 IMAGEMAGICK_MODULE="Wand"
9972
9973 succeeded=no
9974
9975 # Extract the first word of "pkg-config", so it can be a program name with args.
9976set dummy pkg-config; ac_word=$2
9977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 9979if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9980 $as_echo_n "(cached) " >&6
9981else
9982 case $PKG_CONFIG in
9983 [\\/]* | ?:[\\/]*)
9984 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9985 ;;
9986 *)
9987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9988for as_dir in $PATH
9989do
9990 IFS=$as_save_IFS
9991 test -z "$as_dir" && as_dir=.
9992 for ac_exec_ext in '' $ac_executable_extensions; do
9993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9994 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9996 break 2
9997 fi
9998done
9999 done
10000IFS=$as_save_IFS
10001
10002 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10003 ;;
10004esac
10005fi
10006PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10007if test -n "$PKG_CONFIG"; then
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10009$as_echo "$PKG_CONFIG" >&6; }
10010else
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012$as_echo "no" >&6; }
10013fi
10014
10015
10016
10017 if test "$PKG_CONFIG" = "no" ; then
10018 :
10019 else
10020 PKG_CONFIG_MIN_VERSION=0.9.0
10021 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10023$as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10024
10025 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10027$as_echo "yes" >&6; }
10028 succeeded=yes
10029
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10031$as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10032 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10034$as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10035
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10037$as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10038 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10040$as_echo "$IMAGEMAGICK_LIBS" >&6; }
10041 else
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043$as_echo "no" >&6; }
10044 IMAGEMAGICK_CFLAGS=""
10045 IMAGEMAGICK_LIBS=""
10046 ## If we have a custom action on failure, don't print errors, but
10047 ## do set a variable so people can do so.
10048 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10049
10050 fi
10051
10052
10053
10054 else
10055 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10056 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10057 fi
10058 fi
10059
10060 if test $succeeded = yes; then
10061 HAVE_IMAGEMAGICK=yes
10062 else
10063 :
10064 fi
10065
10066
10067
10068
10069 if test $HAVE_IMAGEMAGICK = yes; then
10070
10071$as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10072
10073 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10074 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10075 for ac_func in MagickExportImagePixels
10076do :
10077 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
d6974efa 10078if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
067d23c9
KY
10079 cat >>confdefs.h <<_ACEOF
10080#define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10081_ACEOF
10082
10083fi
10084done
10085
10086 fi
10087 fi
10088fi
10089
10090
10091HAVE_GTK=no
10092if test "${with_gtk3}" = "yes"; then
10093 GLIB_REQUIRED=2.6
10094 GTK_REQUIRED=2.90
10095 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10096
10097
10098 succeeded=no
10099
10100 # Extract the first word of "pkg-config", so it can be a program name with args.
10101set dummy pkg-config; ac_word=$2
10102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10103$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 10104if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10105 $as_echo_n "(cached) " >&6
10106else
10107 case $PKG_CONFIG in
10108 [\\/]* | ?:[\\/]*)
10109 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10110 ;;
10111 *)
10112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113for as_dir in $PATH
10114do
10115 IFS=$as_save_IFS
10116 test -z "$as_dir" && as_dir=.
10117 for ac_exec_ext in '' $ac_executable_extensions; do
10118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10119 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10121 break 2
10122 fi
10123done
10124 done
10125IFS=$as_save_IFS
10126
10127 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10128 ;;
10129esac
10130fi
10131PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10132if test -n "$PKG_CONFIG"; then
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10134$as_echo "$PKG_CONFIG" >&6; }
10135else
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137$as_echo "no" >&6; }
10138fi
10139
10140
10141
10142 if test "$PKG_CONFIG" = "no" ; then
10143 pkg_check_gtk=no
10144 else
10145 PKG_CONFIG_MIN_VERSION=0.9.0
10146 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10148$as_echo_n "checking for $GTK_MODULES... " >&6; }
10149
10150 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10152$as_echo "yes" >&6; }
10153 succeeded=yes
10154
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10156$as_echo_n "checking GTK_CFLAGS... " >&6; }
10157 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10159$as_echo "$GTK_CFLAGS" >&6; }
10160
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10162$as_echo_n "checking GTK_LIBS... " >&6; }
10163 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10165$as_echo "$GTK_LIBS" >&6; }
10166 else
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168$as_echo "no" >&6; }
10169 GTK_CFLAGS=""
10170 GTK_LIBS=""
10171 ## If we have a custom action on failure, don't print errors, but
10172 ## do set a variable so people can do so.
10173 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10174
10175 fi
10176
10177
10178
10179 else
10180 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10181 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10182 fi
10183 fi
10184
10185 if test $succeeded = yes; then
10186 pkg_check_gtk=yes
10187 else
10188 pkg_check_gtk=no
10189 fi
10190
10191 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
2018939f 10192 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
067d23c9
KY
10193 fi
10194fi
10195
10196if test "$pkg_check_gtk" != "yes"; then
10197 HAVE_GTK=no
10198if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10199 GLIB_REQUIRED=2.6
10200 GTK_REQUIRED=2.6
10201 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10202
10203
10204 succeeded=no
10205
10206 # Extract the first word of "pkg-config", so it can be a program name with args.
10207set dummy pkg-config; ac_word=$2
10208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10209$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 10210if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10211 $as_echo_n "(cached) " >&6
10212else
10213 case $PKG_CONFIG in
10214 [\\/]* | ?:[\\/]*)
10215 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10216 ;;
10217 *)
10218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10219for as_dir in $PATH
10220do
10221 IFS=$as_save_IFS
10222 test -z "$as_dir" && as_dir=.
10223 for ac_exec_ext in '' $ac_executable_extensions; do
10224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10225 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10227 break 2
10228 fi
10229done
10230 done
10231IFS=$as_save_IFS
10232
10233 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10234 ;;
10235esac
10236fi
10237PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10238if test -n "$PKG_CONFIG"; then
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10240$as_echo "$PKG_CONFIG" >&6; }
10241else
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243$as_echo "no" >&6; }
10244fi
10245
10246
10247
10248 if test "$PKG_CONFIG" = "no" ; then
10249 pkg_check_gtk=no
10250 else
10251 PKG_CONFIG_MIN_VERSION=0.9.0
10252 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10254$as_echo_n "checking for $GTK_MODULES... " >&6; }
10255
10256 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10258$as_echo "yes" >&6; }
10259 succeeded=yes
10260
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10262$as_echo_n "checking GTK_CFLAGS... " >&6; }
10263 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10265$as_echo "$GTK_CFLAGS" >&6; }
10266
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10268$as_echo_n "checking GTK_LIBS... " >&6; }
10269 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10271$as_echo "$GTK_LIBS" >&6; }
10272 else
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10274$as_echo "no" >&6; }
10275 GTK_CFLAGS=""
10276 GTK_LIBS=""
10277 ## If we have a custom action on failure, don't print errors, but
10278 ## do set a variable so people can do so.
10279 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10280
10281 fi
10282
10283
10284
10285 else
10286 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10287 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10288 fi
10289 fi
10290
10291 if test $succeeded = yes; then
10292 pkg_check_gtk=yes
10293 else
10294 pkg_check_gtk=no
10295 fi
10296
10297 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
2018939f 10298 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
067d23c9
KY
10299 fi
10300fi
10301fi
10302
10303GTK_OBJ=
10304if test x"$pkg_check_gtk" = xyes; then
10305
10306
10307
10308 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10309 CFLAGS="$CFLAGS $GTK_CFLAGS"
10310 LIBS="$GTK_LIBS $LIBS"
10311 GTK_COMPILES=no
10312 for ac_func in gtk_main
10313do :
10314 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
d6974efa 10315if test "x$ac_cv_func_gtk_main" = xyes; then :
067d23c9
KY
10316 cat >>confdefs.h <<_ACEOF
10317#define HAVE_GTK_MAIN 1
10318_ACEOF
10319 GTK_COMPILES=yes
10320fi
10321done
10322
10323 if test "${GTK_COMPILES}" != "yes"; then
10324 if test "$USE_X_TOOLKIT" != "maybe"; then
d6974efa 10325 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
067d23c9
KY
10326 fi
10327 else
10328 HAVE_GTK=yes
10329
10330$as_echo "#define USE_GTK 1" >>confdefs.h
10331
10332 GTK_OBJ=gtkutil.o
10333 USE_X_TOOLKIT=none
10334 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10335 :
10336 else
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10338 closing open displays. This is no problem if you just use
10339 one display, but if you use more than one and close one of them
10340 Emacs may crash." >&5
10341$as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10342 closing open displays. This is no problem if you just use
10343 one display, but if you use more than one and close one of them
10344 Emacs may crash." >&2;}
10345 sleep 3
10346 fi
10347 fi
10348
10349fi
10350
10351
10352
10353if test "${HAVE_GTK}" = "yes"; then
10354
10355 if test "$with_toolkit_scroll_bars" != no; then
10356 with_toolkit_scroll_bars=yes
10357 fi
10358
10359 HAVE_GTK_FILE_SELECTION=no
10360 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10361#include <gtk/gtk.h>
10362"
d6974efa 10363if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
067d23c9
KY
10364 HAVE_GTK_FILE_SELECTION=yes
10365else
10366 HAVE_GTK_FILE_SELECTION=no
10367fi
10368
10369 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10370 for ac_func in gtk_file_selection_new
10371do :
10372 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
d6974efa 10373if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
067d23c9
KY
10374 cat >>confdefs.h <<_ACEOF
10375#define HAVE_GTK_FILE_SELECTION_NEW 1
10376_ACEOF
10377
10378fi
10379done
10380
10381 fi
10382
10383 HAVE_GTK_AND_PTHREAD=no
10384 for ac_header in pthread.h
10385do :
10386 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
d6974efa 10387if test "x$ac_cv_header_pthread_h" = xyes; then :
067d23c9
KY
10388 cat >>confdefs.h <<_ACEOF
10389#define HAVE_PTHREAD_H 1
10390_ACEOF
10391
10392fi
10393
10394done
10395
10396 if test "$ac_cv_header_pthread_h"; then
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10398$as_echo_n "checking for pthread_self in -lpthread... " >&6; }
d6974efa 10399if ${ac_cv_lib_pthread_pthread_self+:} false; then :
067d23c9
KY
10400 $as_echo_n "(cached) " >&6
10401else
10402 ac_check_lib_save_LIBS=$LIBS
10403LIBS="-lpthread $LIBS"
10404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405/* end confdefs.h. */
10406
10407/* Override any GCC internal prototype to avoid an error.
10408 Use char because int might match the return type of a GCC
10409 builtin and then its argument prototype would still apply. */
10410#ifdef __cplusplus
10411extern "C"
10412#endif
10413char pthread_self ();
10414int
10415main ()
10416{
10417return pthread_self ();
10418 ;
10419 return 0;
10420}
10421_ACEOF
10422if ac_fn_c_try_link "$LINENO"; then :
10423 ac_cv_lib_pthread_pthread_self=yes
10424else
10425 ac_cv_lib_pthread_pthread_self=no
10426fi
10427rm -f core conftest.err conftest.$ac_objext \
10428 conftest$ac_exeext conftest.$ac_ext
10429LIBS=$ac_check_lib_save_LIBS
10430fi
10431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10432$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
d6974efa 10433if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
067d23c9
KY
10434 HAVE_GTK_AND_PTHREAD=yes
10435fi
10436
10437 fi
10438 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10439 case "${canonical}" in
10440 *-hpux*) ;;
10441 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10442 esac
10443
10444$as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10445
10446 fi
10447
10448 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10449 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10450 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10451 gtk_orientable_set_orientation
10452do :
10453 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10454ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 10455if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
10456 cat >>confdefs.h <<_ACEOF
10457#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10458_ACEOF
10459
10460fi
10461done
10462
10463
10464fi
10465
10466HAVE_DBUS=no
10467DBUS_OBJ=
10468if test "${with_dbus}" = "yes"; then
10469
10470 succeeded=no
10471
10472 # Extract the first word of "pkg-config", so it can be a program name with args.
10473set dummy pkg-config; ac_word=$2
10474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10475$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 10476if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10477 $as_echo_n "(cached) " >&6
10478else
10479 case $PKG_CONFIG in
10480 [\\/]* | ?:[\\/]*)
10481 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10482 ;;
10483 *)
10484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10485for as_dir in $PATH
10486do
10487 IFS=$as_save_IFS
10488 test -z "$as_dir" && as_dir=.
10489 for ac_exec_ext in '' $ac_executable_extensions; do
10490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10491 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10493 break 2
10494 fi
10495done
10496 done
10497IFS=$as_save_IFS
10498
10499 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10500 ;;
10501esac
10502fi
10503PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10504if test -n "$PKG_CONFIG"; then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10506$as_echo "$PKG_CONFIG" >&6; }
10507else
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10509$as_echo "no" >&6; }
10510fi
10511
10512
10513
10514 if test "$PKG_CONFIG" = "no" ; then
10515 HAVE_DBUS=no
10516 else
10517 PKG_CONFIG_MIN_VERSION=0.9.0
10518 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10520$as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10521
10522 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10524$as_echo "yes" >&6; }
10525 succeeded=yes
10526
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10528$as_echo_n "checking DBUS_CFLAGS... " >&6; }
10529 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10531$as_echo "$DBUS_CFLAGS" >&6; }
10532
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10534$as_echo_n "checking DBUS_LIBS... " >&6; }
10535 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10537$as_echo "$DBUS_LIBS" >&6; }
10538 else
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10540$as_echo "no" >&6; }
10541 DBUS_CFLAGS=""
10542 DBUS_LIBS=""
10543 ## If we have a custom action on failure, don't print errors, but
10544 ## do set a variable so people can do so.
10545 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10546
10547 fi
10548
10549
10550
10551 else
10552 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10553 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10554 fi
10555 fi
10556
10557 if test $succeeded = yes; then
10558 HAVE_DBUS=yes
10559 else
10560 HAVE_DBUS=no
10561 fi
10562
10563 if test "$HAVE_DBUS" = yes; then
10564 LIBS="$LIBS $DBUS_LIBS"
10565
10566$as_echo "#define HAVE_DBUS 1" >>confdefs.h
10567
10568 for ac_func in dbus_watch_get_unix_fd
10569do :
10570 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
d6974efa 10571if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
067d23c9
KY
10572 cat >>confdefs.h <<_ACEOF
10573#define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10574_ACEOF
10575
10576fi
10577done
10578
10579 DBUS_OBJ=dbusbind.o
10580 fi
10581fi
10582
10583
10584HAVE_GCONF=no
10585if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10586
10587 succeeded=no
10588
10589 # Extract the first word of "pkg-config", so it can be a program name with args.
10590set dummy pkg-config; ac_word=$2
10591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10592$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 10593if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10594 $as_echo_n "(cached) " >&6
10595else
10596 case $PKG_CONFIG in
10597 [\\/]* | ?:[\\/]*)
10598 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10599 ;;
10600 *)
10601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10602for as_dir in $PATH
10603do
10604 IFS=$as_save_IFS
10605 test -z "$as_dir" && as_dir=.
10606 for ac_exec_ext in '' $ac_executable_extensions; do
10607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10608 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10610 break 2
10611 fi
10612done
10613 done
10614IFS=$as_save_IFS
10615
10616 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10617 ;;
10618esac
10619fi
10620PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10621if test -n "$PKG_CONFIG"; then
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10623$as_echo "$PKG_CONFIG" >&6; }
10624else
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10626$as_echo "no" >&6; }
10627fi
10628
10629
10630
10631 if test "$PKG_CONFIG" = "no" ; then
10632 HAVE_GCONF=no
10633 else
10634 PKG_CONFIG_MIN_VERSION=0.9.0
10635 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10637$as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10638
10639 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10641$as_echo "yes" >&6; }
10642 succeeded=yes
10643
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10645$as_echo_n "checking GCONF_CFLAGS... " >&6; }
10646 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10648$as_echo "$GCONF_CFLAGS" >&6; }
10649
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10651$as_echo_n "checking GCONF_LIBS... " >&6; }
10652 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10654$as_echo "$GCONF_LIBS" >&6; }
10655 else
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657$as_echo "no" >&6; }
10658 GCONF_CFLAGS=""
10659 GCONF_LIBS=""
10660 ## If we have a custom action on failure, don't print errors, but
10661 ## do set a variable so people can do so.
10662 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10663
10664 fi
10665
10666
10667
10668 else
10669 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10670 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10671 fi
10672 fi
10673
10674 if test $succeeded = yes; then
10675 HAVE_GCONF=yes
10676 else
10677 HAVE_GCONF=no
10678 fi
10679
10680 if test "$HAVE_GCONF" = yes; then
10681
10682$as_echo "#define HAVE_GCONF 1" >>confdefs.h
10683
10684 for ac_func in g_type_init
10685do :
10686 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
d6974efa 10687if test "x$ac_cv_func_g_type_init" = xyes; then :
067d23c9
KY
10688 cat >>confdefs.h <<_ACEOF
10689#define HAVE_G_TYPE_INIT 1
10690_ACEOF
10691
10692fi
10693done
10694
10695 fi
10696fi
10697
10698HAVE_LIBSELINUX=no
10699LIBSELINUX_LIBS=
10700if test "${with_selinux}" = "yes"; then
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10702$as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
d6974efa 10703if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
067d23c9
KY
10704 $as_echo_n "(cached) " >&6
10705else
10706 ac_check_lib_save_LIBS=$LIBS
10707LIBS="-lselinux $LIBS"
10708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709/* end confdefs.h. */
10710
10711/* Override any GCC internal prototype to avoid an error.
10712 Use char because int might match the return type of a GCC
10713 builtin and then its argument prototype would still apply. */
10714#ifdef __cplusplus
10715extern "C"
10716#endif
10717char lgetfilecon ();
10718int
10719main ()
10720{
10721return lgetfilecon ();
10722 ;
10723 return 0;
10724}
10725_ACEOF
10726if ac_fn_c_try_link "$LINENO"; then :
10727 ac_cv_lib_selinux_lgetfilecon=yes
10728else
10729 ac_cv_lib_selinux_lgetfilecon=no
10730fi
10731rm -f core conftest.err conftest.$ac_objext \
10732 conftest$ac_exeext conftest.$ac_ext
10733LIBS=$ac_check_lib_save_LIBS
10734fi
10735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10736$as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
d6974efa 10737if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
067d23c9
KY
10738 HAVE_LIBSELINUX=yes
10739else
10740 HAVE_LIBSELINUX=no
10741fi
10742
10743 if test "$HAVE_LIBSELINUX" = yes; then
10744
10745$as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10746
10747 LIBSELINUX_LIBS=-lselinux
10748 fi
10749fi
10750
10751
10752HAVE_GNUTLS=no
10753if test "${with_gnutls}" = "yes" ; then
10754
10755 succeeded=no
10756
10757 # Extract the first word of "pkg-config", so it can be a program name with args.
10758set dummy pkg-config; ac_word=$2
10759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10760$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 10761if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10762 $as_echo_n "(cached) " >&6
10763else
10764 case $PKG_CONFIG in
10765 [\\/]* | ?:[\\/]*)
10766 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10767 ;;
10768 *)
10769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10770for as_dir in $PATH
10771do
10772 IFS=$as_save_IFS
10773 test -z "$as_dir" && as_dir=.
10774 for ac_exec_ext in '' $ac_executable_extensions; do
10775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10776 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10778 break 2
10779 fi
10780done
10781 done
10782IFS=$as_save_IFS
10783
10784 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10785 ;;
10786esac
10787fi
10788PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10789if test -n "$PKG_CONFIG"; then
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10791$as_echo "$PKG_CONFIG" >&6; }
10792else
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10794$as_echo "no" >&6; }
10795fi
10796
10797
10798
10799 if test "$PKG_CONFIG" = "no" ; then
10800 HAVE_GNUTLS=no
10801 else
10802 PKG_CONFIG_MIN_VERSION=0.9.0
10803 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10805$as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10806
10807 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10809$as_echo "yes" >&6; }
10810 succeeded=yes
10811
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10813$as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10814 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10816$as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10817
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10819$as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10820 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10822$as_echo "$LIBGNUTLS_LIBS" >&6; }
10823 else
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10825$as_echo "no" >&6; }
10826 LIBGNUTLS_CFLAGS=""
10827 LIBGNUTLS_LIBS=""
10828 ## If we have a custom action on failure, don't print errors, but
10829 ## do set a variable so people can do so.
10830 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10831
10832 fi
10833
10834
10835
10836 else
10837 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10838 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10839 fi
10840 fi
10841
10842 if test $succeeded = yes; then
10843 HAVE_GNUTLS=yes
10844 else
10845 HAVE_GNUTLS=no
10846 fi
10847
10848 if test "${HAVE_GNUTLS}" = "yes"; then
10849
10850$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10851
10852 fi
10853fi
10854
10855
10856
10857HAVE_XAW3D=no
10858LUCID_LIBW=
10859if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10860 if test "$with_xaw3d" != no; then
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10862$as_echo_n "checking for xaw3d... " >&6; }
d6974efa 10863 if ${emacs_cv_xaw3d+:} false; then :
067d23c9
KY
10864 $as_echo_n "(cached) " >&6
10865else
10866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867/* end confdefs.h. */
10868
10869#include <X11/Intrinsic.h>
10870#include <X11/Xaw3d/Simple.h>
10871int
10872main ()
10873{
10874
10875 ;
10876 return 0;
10877}
10878_ACEOF
10879if ac_fn_c_try_link "$LINENO"; then :
14beddf4
CY
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10881$as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
67342916 10882if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false; then :
ae1362a3
AS
10883 $as_echo_n "(cached) " >&6
10884else
10885 ac_check_lib_save_LIBS=$LIBS
14beddf4 10886LIBS="-lXaw3d $LIBS"
ae1362a3
AS
10887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888/* end confdefs.h. */
bf89cb4d 10889
ae1362a3
AS
10890/* Override any GCC internal prototype to avoid an error.
10891 Use char because int might match the return type of a GCC
10892 builtin and then its argument prototype would still apply. */
10893#ifdef __cplusplus
10894extern "C"
10895#endif
14beddf4 10896char XawScrollbarSetThumb ();
ae1362a3
AS
10897int
10898main ()
10899{
14beddf4 10900return XawScrollbarSetThumb ();
ae1362a3
AS
10901 ;
10902 return 0;
10903}
10904_ACEOF
10905if ac_fn_c_try_link "$LINENO"; then :
14beddf4 10906 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
ae1362a3 10907else
14beddf4 10908 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
ae1362a3
AS
10909fi
10910rm -f core conftest.err conftest.$ac_objext \
10911 conftest$ac_exeext conftest.$ac_ext
10912LIBS=$ac_check_lib_save_LIBS
10913fi
14beddf4
CY
10914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10915$as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
67342916 10916if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes; then :
067d23c9
KY
10917 emacs_cv_xaw3d=yes
10918else
10919 emacs_cv_xaw3d=no
10920fi
14beddf4
CY
10921
10922else
10923 emacs_cv_xaw3d=no
10924fi
067d23c9
KY
10925rm -f core conftest.err conftest.$ac_objext \
10926 conftest$ac_exeext conftest.$ac_ext
10927fi
10928
10929 else
10930 emacs_cv_xaw3d=no
10931 fi
10932 if test $emacs_cv_xaw3d = yes; then
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10934$as_echo "yes; using Lucid toolkit" >&6; }
10935 USE_X_TOOLKIT=LUCID
10936 HAVE_XAW3D=yes
10937 LUCID_LIBW=-lXaw3d
10938
10939$as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10940
10941 else
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10943$as_echo "no" >&6; }
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10945$as_echo_n "checking for libXaw... " >&6; }
d6974efa 10946 if ${emacs_cv_xaw+:} false; then :
067d23c9
KY
10947 $as_echo_n "(cached) " >&6
10948else
10949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950/* end confdefs.h. */
10951
10952#include <X11/Intrinsic.h>
10953#include <X11/Xaw/Simple.h>
10954int
10955main ()
10956{
10957
10958 ;
10959 return 0;
10960}
10961_ACEOF
10962if ac_fn_c_try_link "$LINENO"; then :
10963 emacs_cv_xaw=yes
10964else
10965 emacs_cv_xaw=no
10966fi
10967rm -f core conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext conftest.$ac_ext
10969fi
10970
10971 if test $emacs_cv_xaw = yes; then
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10973$as_echo "yes; using Lucid toolkit" >&6; }
10974 USE_X_TOOLKIT=LUCID
10975 LUCID_LIBW=-lXaw
10976 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
2018939f 10977 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
067d23c9
KY
10978 else
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10980$as_echo "no; do not use toolkit by default" >&6; }
10981 USE_X_TOOLKIT=none
10982 fi
10983 fi
10984fi
10985
10986X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10987
10988LIBXTR6=
10989if test "${USE_X_TOOLKIT}" != "none"; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10991$as_echo_n "checking X11 toolkit version... " >&6; }
d6974efa 10992 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
067d23c9
KY
10993 $as_echo_n "(cached) " >&6
10994else
10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996/* end confdefs.h. */
10997#include <X11/Intrinsic.h>
10998int
10999main ()
11000{
11001#if XtSpecificationRelease < 6
11002fail;
11003#endif
11004
11005 ;
11006 return 0;
11007}
11008_ACEOF
11009if ac_fn_c_try_link "$LINENO"; then :
11010 emacs_cv_x11_toolkit_version_6=yes
11011else
11012 emacs_cv_x11_toolkit_version_6=no
11013fi
11014rm -f core conftest.err conftest.$ac_objext \
11015 conftest$ac_exeext conftest.$ac_ext
11016fi
11017
11018 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11019 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11021$as_echo "6 or newer" >&6; }
11022
11023$as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11024
11025 LIBXTR6="-lSM -lICE"
11026 case "$opsys" in
11027 ## Use libw.a along with X11R6 Xt.
11028 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11029 esac
11030 else
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11032$as_echo "before 6" >&6; }
11033 fi
11034
11035 OLDLIBS="$LIBS"
11036 if test x$HAVE_X11XTR6 = xyes; then
11037 LIBS="-lXt -lSM -lICE $LIBS"
11038 else
11039 LIBS="-lXt $LIBS"
11040 fi
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11042$as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
d6974efa 11043if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
067d23c9
KY
11044 $as_echo_n "(cached) " >&6
11045else
11046 ac_check_lib_save_LIBS=$LIBS
11047LIBS="-lXmu $LIBS"
11048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049/* end confdefs.h. */
11050
11051/* Override any GCC internal prototype to avoid an error.
11052 Use char because int might match the return type of a GCC
11053 builtin and then its argument prototype would still apply. */
11054#ifdef __cplusplus
11055extern "C"
11056#endif
11057char XmuConvertStandardSelection ();
11058int
11059main ()
11060{
11061return XmuConvertStandardSelection ();
11062 ;
11063 return 0;
11064}
11065_ACEOF
11066if ac_fn_c_try_link "$LINENO"; then :
11067 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11068else
11069 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11070fi
11071rm -f core conftest.err conftest.$ac_objext \
11072 conftest$ac_exeext conftest.$ac_ext
11073LIBS=$ac_check_lib_save_LIBS
11074fi
11075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11076$as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
d6974efa 11077if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
067d23c9
KY
11078 cat >>confdefs.h <<_ACEOF
11079#define HAVE_LIBXMU 1
11080_ACEOF
11081
11082 LIBS="-lXmu $LIBS"
11083
11084fi
11085
11086 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11087fi
11088
11089
11090LIBXMU=-lXmu
d6a003a8
AS
11091case $opsys in
11092 ## These systems don't supply Xmu.
067d23c9
KY
11093 hpux* | aix4-2 )
11094 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11095 ;;
11096esac
11097
11098
11099# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11100if test "${HAVE_X11}" = "yes"; then
11101 if test "${USE_X_TOOLKIT}" != "none"; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11103$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
d6974efa 11104if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
067d23c9
KY
11105 $as_echo_n "(cached) " >&6
11106else
11107 ac_check_lib_save_LIBS=$LIBS
11108LIBS="-lXext $LIBS"
11109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110/* end confdefs.h. */
11111
11112/* Override any GCC internal prototype to avoid an error.
11113 Use char because int might match the return type of a GCC
11114 builtin and then its argument prototype would still apply. */
11115#ifdef __cplusplus
11116extern "C"
11117#endif
11118char XShapeQueryExtension ();
11119int
11120main ()
11121{
11122return XShapeQueryExtension ();
11123 ;
11124 return 0;
11125}
11126_ACEOF
11127if ac_fn_c_try_link "$LINENO"; then :
11128 ac_cv_lib_Xext_XShapeQueryExtension=yes
11129else
11130 ac_cv_lib_Xext_XShapeQueryExtension=no
11131fi
11132rm -f core conftest.err conftest.$ac_objext \
11133 conftest$ac_exeext conftest.$ac_ext
11134LIBS=$ac_check_lib_save_LIBS
11135fi
11136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11137$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
d6974efa 11138if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
067d23c9
KY
11139 cat >>confdefs.h <<_ACEOF
11140#define HAVE_LIBXEXT 1
11141_ACEOF
11142
11143 LIBS="-lXext $LIBS"
11144
11145fi
11146
11147 fi
11148fi
11149
11150LIBXP=
11151if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11153$as_echo_n "checking for Motif version 2.1... " >&6; }
d6974efa 11154if ${emacs_cv_motif_version_2_1+:} false; then :
067d23c9
KY
11155 $as_echo_n "(cached) " >&6
11156else
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158/* end confdefs.h. */
11159#include <Xm/Xm.h>
11160int
11161main ()
11162{
11163#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11164int x = 5;
11165#else
11166Motif version prior to 2.1.
11167#endif
11168 ;
11169 return 0;
11170}
11171_ACEOF
11172if ac_fn_c_try_compile "$LINENO"; then :
11173 emacs_cv_motif_version_2_1=yes
11174else
11175 emacs_cv_motif_version_2_1=no
11176fi
11177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11178fi
11179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11180$as_echo "$emacs_cv_motif_version_2_1" >&6; }
11181 if test $emacs_cv_motif_version_2_1 = yes; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11183$as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
d6974efa 11184if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
067d23c9
KY
11185 $as_echo_n "(cached) " >&6
11186else
11187 ac_check_lib_save_LIBS=$LIBS
11188LIBS="-lXp $LIBS"
11189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190/* end confdefs.h. */
11191
11192/* Override any GCC internal prototype to avoid an error.
11193 Use char because int might match the return type of a GCC
11194 builtin and then its argument prototype would still apply. */
11195#ifdef __cplusplus
11196extern "C"
11197#endif
11198char XpCreateContext ();
11199int
11200main ()
11201{
11202return XpCreateContext ();
11203 ;
11204 return 0;
11205}
11206_ACEOF
11207if ac_fn_c_try_link "$LINENO"; then :
11208 ac_cv_lib_Xp_XpCreateContext=yes
11209else
11210 ac_cv_lib_Xp_XpCreateContext=no
11211fi
11212rm -f core conftest.err conftest.$ac_objext \
11213 conftest$ac_exeext conftest.$ac_ext
11214LIBS=$ac_check_lib_save_LIBS
11215fi
11216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11217$as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
d6974efa 11218if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
067d23c9
KY
11219 LIBXP=-lXp
11220fi
11221
11222 else
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11224$as_echo_n "checking for LessTif where some systems put it... " >&6; }
d6974efa 11225if ${emacs_cv_lesstif+:} false; then :
067d23c9
KY
11226 $as_echo_n "(cached) " >&6
11227else
11228 # We put this in CFLAGS temporarily to precede other -I options
11229 # that might be in CFLAGS temporarily.
11230 # We put this in CPPFLAGS where it precedes the other -I options.
11231 OLD_CPPFLAGS=$CPPFLAGS
11232 OLD_CFLAGS=$CFLAGS
11233 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11234 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236/* end confdefs.h. */
11237#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11238int
11239main ()
11240{
11241int x = 5;
11242 ;
11243 return 0;
11244}
11245_ACEOF
11246if ac_fn_c_try_compile "$LINENO"; then :
11247 emacs_cv_lesstif=yes
11248else
11249 emacs_cv_lesstif=no
11250fi
11251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11252fi
11253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11254$as_echo "$emacs_cv_lesstif" >&6; }
11255 if test $emacs_cv_lesstif = yes; then
11256 # Make sure this -I option remains in CPPFLAGS after it is set
11257 # back to REAL_CPPFLAGS.
11258 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11259 # have those other -I options anyway. Ultimately, having this
11260 # directory ultimately in CPPFLAGS will be enough.
11261 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11262 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11263 else
11264 CFLAGS=$OLD_CFLAGS
11265 CPPFLAGS=$OLD_CPPFLAGS
11266 fi
11267 fi
11268fi
11269
11270
11271USE_TOOLKIT_SCROLL_BARS=no
11272if test "${with_toolkit_scroll_bars}" != "no"; then
11273 if test "${USE_X_TOOLKIT}" != "none"; then
11274 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11275 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11276
11277 HAVE_XAW3D=no
11278 USE_TOOLKIT_SCROLL_BARS=yes
11279 elif test "${HAVE_XAW3D}" = "yes"; then
11280 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11281
11282 USE_TOOLKIT_SCROLL_BARS=yes
11283 fi
11284 elif test "${HAVE_GTK}" = "yes"; then
11285 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11286
11287 USE_TOOLKIT_SCROLL_BARS=yes
11288 elif test "${HAVE_NS}" = "yes"; then
11289 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11290
11291 USE_TOOLKIT_SCROLL_BARS=yes
11292 fi
11293fi
11294
11295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11296/* end confdefs.h. */
11297
11298 #include <X11/Xlib.h>
11299 #include <X11/Xresource.h>
11300int
11301main ()
11302{
11303XIMProc callback;
11304 ;
11305 return 0;
11306}
11307_ACEOF
11308if ac_fn_c_try_compile "$LINENO"; then :
11309 HAVE_XIM=yes
11310
11311$as_echo "#define HAVE_XIM 1" >>confdefs.h
11312
11313else
11314 HAVE_XIM=no
11315fi
11316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11317
11318
11319if test "${with_xim}" != "no"; then
11320
11321$as_echo "#define USE_XIM 1" >>confdefs.h
11322
11323fi
11324
11325
11326if test "${HAVE_XIM}" != "no"; then
11327 late_CFLAGS=$CFLAGS
11328 if test "$GCC" = yes; then
11329 CFLAGS="$CFLAGS --pedantic-errors"
11330 fi
11331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11332/* end confdefs.h. */
11333
11334#include <X11/Xlib.h>
11335#include <X11/Xresource.h>
11336int
11337main ()
11338{
11339Display *display;
11340XrmDatabase db;
11341char *res_name;
11342char *res_class;
11343XIMProc callback;
11344XPointer *client_data;
11345#ifndef __GNUC__
11346/* If we're not using GCC, it's probably not XFree86, and this is
11347 probably right, but we can't use something like --pedantic-errors. */
11348extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11349 char*, XIMProc, XPointer*);
11350#endif
11351(void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11352 client_data);
11353 ;
11354 return 0;
11355}
11356_ACEOF
11357if ac_fn_c_try_compile "$LINENO"; then :
11358 emacs_cv_arg6_star=yes
11359fi
11360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11361 if test "$emacs_cv_arg6_star" = yes; then
11362 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11363
11364 else
11365 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11366
11367 fi
11368 CFLAGS=$late_CFLAGS
11369fi
11370
11371### Start of font-backend (under any platform) section.
11372# (nothing here yet -- this is a placeholder)
11373### End of font-backend (under any platform) section.
11374
11375### Start of font-backend (under X11) section.
11376if test "${HAVE_X11}" = "yes"; then
11377
11378 succeeded=no
11379
11380 # Extract the first word of "pkg-config", so it can be a program name with args.
11381set dummy pkg-config; ac_word=$2
11382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11383$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11384if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11385 $as_echo_n "(cached) " >&6
11386else
11387 case $PKG_CONFIG in
11388 [\\/]* | ?:[\\/]*)
11389 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11390 ;;
11391 *)
11392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11393for as_dir in $PATH
11394do
11395 IFS=$as_save_IFS
11396 test -z "$as_dir" && as_dir=.
11397 for ac_exec_ext in '' $ac_executable_extensions; do
11398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11399 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11401 break 2
11402 fi
11403done
11404 done
11405IFS=$as_save_IFS
11406
11407 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11408 ;;
11409esac
11410fi
11411PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11412if test -n "$PKG_CONFIG"; then
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11414$as_echo "$PKG_CONFIG" >&6; }
11415else
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11417$as_echo "no" >&6; }
11418fi
11419
11420
11421
11422 if test "$PKG_CONFIG" = "no" ; then
11423 HAVE_FC=no
11424 else
11425 PKG_CONFIG_MIN_VERSION=0.9.0
11426 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11428$as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11429
11430 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11432$as_echo "yes" >&6; }
11433 succeeded=yes
11434
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11436$as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11437 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11439$as_echo "$FONTCONFIG_CFLAGS" >&6; }
11440
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11442$as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11443 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11445$as_echo "$FONTCONFIG_LIBS" >&6; }
11446 else
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11448$as_echo "no" >&6; }
11449 FONTCONFIG_CFLAGS=""
11450 FONTCONFIG_LIBS=""
11451 ## If we have a custom action on failure, don't print errors, but
11452 ## do set a variable so people can do so.
11453 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11454
11455 fi
11456
11457
11458
11459 else
11460 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11461 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11462 fi
11463 fi
11464
11465 if test $succeeded = yes; then
11466 HAVE_FC=yes
11467 else
11468 HAVE_FC=no
11469 fi
11470
11471
11472 ## Use -lXft if available, unless `--with-xft=no'.
11473 HAVE_XFT=maybe
11474 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11475 with_xft="no";
11476 fi
11477 if test "x${with_xft}" != "xno"; then
11478
11479
11480 succeeded=no
11481
11482 # Extract the first word of "pkg-config", so it can be a program name with args.
11483set dummy pkg-config; ac_word=$2
11484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11485$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11486if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11487 $as_echo_n "(cached) " >&6
11488else
11489 case $PKG_CONFIG in
11490 [\\/]* | ?:[\\/]*)
11491 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11492 ;;
11493 *)
11494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11495for as_dir in $PATH
11496do
11497 IFS=$as_save_IFS
11498 test -z "$as_dir" && as_dir=.
11499 for ac_exec_ext in '' $ac_executable_extensions; do
11500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11501 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11503 break 2
11504 fi
11505done
11506 done
11507IFS=$as_save_IFS
11508
11509 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11510 ;;
11511esac
11512fi
11513PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11514if test -n "$PKG_CONFIG"; then
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11516$as_echo "$PKG_CONFIG" >&6; }
11517else
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519$as_echo "no" >&6; }
11520fi
11521
11522
11523
11524 if test "$PKG_CONFIG" = "no" ; then
11525 HAVE_XFT=no
11526 else
11527 PKG_CONFIG_MIN_VERSION=0.9.0
11528 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11530$as_echo_n "checking for xft >= 0.13.0... " >&6; }
11531
11532 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11534$as_echo "yes" >&6; }
11535 succeeded=yes
11536
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11538$as_echo_n "checking XFT_CFLAGS... " >&6; }
11539 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11541$as_echo "$XFT_CFLAGS" >&6; }
11542
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11544$as_echo_n "checking XFT_LIBS... " >&6; }
11545 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11547$as_echo "$XFT_LIBS" >&6; }
11548 else
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550$as_echo "no" >&6; }
11551 XFT_CFLAGS=""
11552 XFT_LIBS=""
11553 ## If we have a custom action on failure, don't print errors, but
11554 ## do set a variable so people can do so.
11555 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11556
11557 fi
11558
11559
11560
11561 else
11562 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11563 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11564 fi
11565 fi
11566
11567 if test $succeeded = yes; then
11568 :
11569 else
11570 HAVE_XFT=no
11571 fi
11572
11573 ## Because xftfont.c uses XRenderQueryExtension, we also
11574 ## need to link to -lXrender.
11575 HAVE_XRENDER=no
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11577$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
d6974efa 11578if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
067d23c9
KY
11579 $as_echo_n "(cached) " >&6
11580else
11581 ac_check_lib_save_LIBS=$LIBS
11582LIBS="-lXrender $LIBS"
11583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584/* end confdefs.h. */
11585
11586/* Override any GCC internal prototype to avoid an error.
11587 Use char because int might match the return type of a GCC
11588 builtin and then its argument prototype would still apply. */
11589#ifdef __cplusplus
11590extern "C"
11591#endif
11592char XRenderQueryExtension ();
11593int
11594main ()
11595{
11596return XRenderQueryExtension ();
11597 ;
11598 return 0;
11599}
11600_ACEOF
11601if ac_fn_c_try_link "$LINENO"; then :
11602 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11603else
11604 ac_cv_lib_Xrender_XRenderQueryExtension=no
11605fi
11606rm -f core conftest.err conftest.$ac_objext \
11607 conftest$ac_exeext conftest.$ac_ext
11608LIBS=$ac_check_lib_save_LIBS
11609fi
11610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11611$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
d6974efa 11612if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
067d23c9
KY
11613 HAVE_XRENDER=yes
11614fi
11615
11616 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11617 OLD_CPPFLAGS="$CPPFLAGS"
11618 OLD_CFLAGS="$CFLAGS"
11619 OLD_LIBS="$LIBS"
11620 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11621 CFLAGS="$CFLAGS $XFT_CFLAGS"
11622 XFT_LIBS="-lXrender $XFT_LIBS"
11623 LIBS="$XFT_LIBS $LIBS"
11624 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
d6974efa 11625if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
067d23c9
KY
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11627$as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
d6974efa 11628if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
067d23c9
KY
11629 $as_echo_n "(cached) " >&6
11630else
11631 ac_check_lib_save_LIBS=$LIBS
11632LIBS="-lXft $XFT_LIBS $LIBS"
11633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634/* end confdefs.h. */
11635
11636/* Override any GCC internal prototype to avoid an error.
11637 Use char because int might match the return type of a GCC
11638 builtin and then its argument prototype would still apply. */
11639#ifdef __cplusplus
11640extern "C"
11641#endif
11642char XftFontOpen ();
11643int
11644main ()
11645{
11646return XftFontOpen ();
11647 ;
11648 return 0;
11649}
11650_ACEOF
11651if ac_fn_c_try_link "$LINENO"; then :
11652 ac_cv_lib_Xft_XftFontOpen=yes
11653else
11654 ac_cv_lib_Xft_XftFontOpen=no
11655fi
11656rm -f core conftest.err conftest.$ac_objext \
11657 conftest$ac_exeext conftest.$ac_ext
11658LIBS=$ac_check_lib_save_LIBS
11659fi
11660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11661$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
d6974efa 11662if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
067d23c9
KY
11663 HAVE_XFT=yes
11664fi
11665
11666fi
11667
11668
11669
11670 if test "${HAVE_XFT}" = "yes"; then
11671
11672$as_echo "#define HAVE_XFT 1" >>confdefs.h
11673
11674
11675 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11676 else
11677 CPPFLAGS="$OLD_CPPFLAGS"
11678 CFLAGS="$OLD_CFLAGS"
11679 LIBS="$OLD_LIBS"
11680 fi # "${HAVE_XFT}" = "yes"
11681 fi # "$HAVE_XFT" != no
11682 fi # "x${with_xft}" != "xno"
11683
11684 if test "$HAVE_XFT" != "yes"; then
11685 HAVE_XFT=no
11686 fi
11687
067d23c9
KY
11688 ## We used to allow building with FreeType and without Xft.
11689 ## However, the ftx font backend driver is not in good shape.
9ba41eb9 11690 HAVE_FREETYPE=$HAVE_XFT
067d23c9
KY
11691
11692 HAVE_LIBOTF=no
11693 if test "${HAVE_FREETYPE}" = "yes"; then
11694
11695$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11696
11697 if test "${with_libotf}" != "no"; then
11698
11699 succeeded=no
11700
11701 # Extract the first word of "pkg-config", so it can be a program name with args.
11702set dummy pkg-config; ac_word=$2
11703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11704$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11705if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11706 $as_echo_n "(cached) " >&6
11707else
11708 case $PKG_CONFIG in
11709 [\\/]* | ?:[\\/]*)
11710 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11711 ;;
11712 *)
11713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11714for as_dir in $PATH
11715do
11716 IFS=$as_save_IFS
11717 test -z "$as_dir" && as_dir=.
11718 for ac_exec_ext in '' $ac_executable_extensions; do
11719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11720 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11722 break 2
11723 fi
11724done
11725 done
11726IFS=$as_save_IFS
11727
11728 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11729 ;;
11730esac
11731fi
11732PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11733if test -n "$PKG_CONFIG"; then
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11735$as_echo "$PKG_CONFIG" >&6; }
11736else
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11738$as_echo "no" >&6; }
11739fi
11740
11741
11742
11743 if test "$PKG_CONFIG" = "no" ; then
11744 HAVE_LIBOTF=no
11745 else
11746 PKG_CONFIG_MIN_VERSION=0.9.0
11747 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11749$as_echo_n "checking for libotf... " >&6; }
11750
11751 if $PKG_CONFIG --exists "libotf" 2>&5; then
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11753$as_echo "yes" >&6; }
11754 succeeded=yes
11755
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11757$as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11758 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11760$as_echo "$LIBOTF_CFLAGS" >&6; }
11761
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11763$as_echo_n "checking LIBOTF_LIBS... " >&6; }
11764 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11766$as_echo "$LIBOTF_LIBS" >&6; }
11767 else
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769$as_echo "no" >&6; }
11770 LIBOTF_CFLAGS=""
11771 LIBOTF_LIBS=""
11772 ## If we have a custom action on failure, don't print errors, but
11773 ## do set a variable so people can do so.
11774 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11775
11776 fi
11777
11778
11779
11780 else
11781 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11782 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11783 fi
11784 fi
11785
11786 if test $succeeded = yes; then
11787 HAVE_LIBOTF=yes
11788 else
11789 HAVE_LIBOTF=no
11790 fi
11791
11792 if test "$HAVE_LIBOTF" = "yes"; then
11793
11794$as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11795
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11797$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
d6974efa 11798if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
067d23c9
KY
11799 $as_echo_n "(cached) " >&6
11800else
11801 ac_check_lib_save_LIBS=$LIBS
11802LIBS="-lotf $LIBS"
11803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804/* end confdefs.h. */
11805
11806/* Override any GCC internal prototype to avoid an error.
11807 Use char because int might match the return type of a GCC
11808 builtin and then its argument prototype would still apply. */
11809#ifdef __cplusplus
11810extern "C"
11811#endif
11812char OTF_get_variation_glyphs ();
11813int
11814main ()
11815{
11816return OTF_get_variation_glyphs ();
11817 ;
11818 return 0;
11819}
11820_ACEOF
11821if ac_fn_c_try_link "$LINENO"; then :
11822 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11823else
11824 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11825fi
11826rm -f core conftest.err conftest.$ac_objext \
11827 conftest$ac_exeext conftest.$ac_ext
11828LIBS=$ac_check_lib_save_LIBS
11829fi
11830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11831$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
d6974efa 11832if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
067d23c9
KY
11833 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11834else
11835 HAVE_OTF_GET_VARIATION_GLYPHS=no
11836fi
11837
11838 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11839
11840$as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11841
11842 fi
11843 fi
11844 fi
11845 fi
11846
11847 HAVE_M17N_FLT=no
11848 if test "${HAVE_LIBOTF}" = yes; then
11849 if test "${with_m17n_flt}" != "no"; then
11850
11851 succeeded=no
11852
11853 # Extract the first word of "pkg-config", so it can be a program name with args.
11854set dummy pkg-config; ac_word=$2
11855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11856$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11857if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11858 $as_echo_n "(cached) " >&6
11859else
11860 case $PKG_CONFIG in
11861 [\\/]* | ?:[\\/]*)
11862 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11863 ;;
11864 *)
11865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866for as_dir in $PATH
11867do
11868 IFS=$as_save_IFS
11869 test -z "$as_dir" && as_dir=.
11870 for ac_exec_ext in '' $ac_executable_extensions; do
11871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11872 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11874 break 2
11875 fi
11876done
11877 done
11878IFS=$as_save_IFS
11879
11880 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11881 ;;
11882esac
11883fi
11884PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11885if test -n "$PKG_CONFIG"; then
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11887$as_echo "$PKG_CONFIG" >&6; }
11888else
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890$as_echo "no" >&6; }
11891fi
11892
11893
11894
11895 if test "$PKG_CONFIG" = "no" ; then
11896 HAVE_M17N_FLT=no
11897 else
11898 PKG_CONFIG_MIN_VERSION=0.9.0
11899 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11901$as_echo_n "checking for m17n-flt... " >&6; }
11902
11903 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11905$as_echo "yes" >&6; }
11906 succeeded=yes
11907
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11909$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11910 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11912$as_echo "$M17N_FLT_CFLAGS" >&6; }
11913
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11915$as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11916 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11918$as_echo "$M17N_FLT_LIBS" >&6; }
11919 else
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921$as_echo "no" >&6; }
11922 M17N_FLT_CFLAGS=""
11923 M17N_FLT_LIBS=""
11924 ## If we have a custom action on failure, don't print errors, but
11925 ## do set a variable so people can do so.
11926 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11927
11928 fi
11929
11930
11931
11932 else
11933 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11934 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11935 fi
11936 fi
11937
11938 if test $succeeded = yes; then
11939 HAVE_M17N_FLT=yes
11940 else
11941 HAVE_M17N_FLT=no
11942 fi
11943
11944 if test "$HAVE_M17N_FLT" = "yes"; then
11945
11946$as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11947
11948 fi
11949 fi
11950 fi
11951else
11952 HAVE_XFT=no
11953 HAVE_FREETYPE=no
11954 HAVE_LIBOTF=no
11955 HAVE_M17N_FLT=no
11956fi
11957
11958### End of font-backend (under X11) section.
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969### Use -lXpm if available, unless `--with-xpm=no'.
11970HAVE_XPM=no
11971LIBXPM=
11972if test "${HAVE_X11}" = "yes"; then
11973 if test "${with_xpm}" != "no"; then
11974 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
d6974efa 11975if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
067d23c9
KY
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11977$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
d6974efa 11978if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
067d23c9
KY
11979 $as_echo_n "(cached) " >&6
11980else
11981 ac_check_lib_save_LIBS=$LIBS
11982LIBS="-lXpm -lX11 $LIBS"
11983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984/* end confdefs.h. */
11985
11986/* Override any GCC internal prototype to avoid an error.
11987 Use char because int might match the return type of a GCC
11988 builtin and then its argument prototype would still apply. */
11989#ifdef __cplusplus
11990extern "C"
11991#endif
11992char XpmReadFileToPixmap ();
11993int
11994main ()
11995{
11996return XpmReadFileToPixmap ();
11997 ;
11998 return 0;
11999}
12000_ACEOF
12001if ac_fn_c_try_link "$LINENO"; then :
12002 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12003else
12004 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12005fi
12006rm -f core conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
12008LIBS=$ac_check_lib_save_LIBS
12009fi
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12011$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
d6974efa 12012if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
067d23c9
KY
12013 HAVE_XPM=yes
12014fi
12015
12016fi
12017
12018
12019 if test "${HAVE_XPM}" = "yes"; then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12021$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12023/* end confdefs.h. */
12024#include "X11/xpm.h"
12025#ifndef XpmReturnAllocPixels
12026no_return_alloc_pixels
12027#endif
12028
12029_ACEOF
12030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12031 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12032 HAVE_XPM=no
12033else
12034 HAVE_XPM=yes
12035fi
12036rm -f conftest*
12037
12038
12039 if test "${HAVE_XPM}" = "yes"; then
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12041$as_echo "yes" >&6; }
12042 else
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044$as_echo "no" >&6; }
12045 fi
12046 fi
12047 fi
12048
12049 if test "${HAVE_XPM}" = "yes"; then
12050
12051$as_echo "#define HAVE_XPM 1" >>confdefs.h
12052
12053 LIBXPM=-lXpm
12054 fi
12055fi
12056
12057
12058### Use -ljpeg if available, unless `--with-jpeg=no'.
12059HAVE_JPEG=no
12060LIBJPEG=
12061if test "${HAVE_X11}" = "yes"; then
12062 if test "${with_jpeg}" != "no"; then
12063 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
d6974efa 12064if test "x$ac_cv_header_jerror_h" = xyes; then :
067d23c9
KY
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12066$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
d6974efa 12067if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
067d23c9
KY
12068 $as_echo_n "(cached) " >&6
12069else
12070 ac_check_lib_save_LIBS=$LIBS
12071LIBS="-ljpeg $LIBS"
12072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073/* end confdefs.h. */
12074
12075/* Override any GCC internal prototype to avoid an error.
12076 Use char because int might match the return type of a GCC
12077 builtin and then its argument prototype would still apply. */
12078#ifdef __cplusplus
12079extern "C"
12080#endif
12081char jpeg_destroy_compress ();
12082int
12083main ()
12084{
12085return jpeg_destroy_compress ();
12086 ;
12087 return 0;
12088}
12089_ACEOF
12090if ac_fn_c_try_link "$LINENO"; then :
12091 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12092else
12093 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12094fi
12095rm -f core conftest.err conftest.$ac_objext \
12096 conftest$ac_exeext conftest.$ac_ext
12097LIBS=$ac_check_lib_save_LIBS
12098fi
12099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12100$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
d6974efa 12101if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
067d23c9
KY
12102 HAVE_JPEG=yes
12103fi
12104
12105fi
12106
12107
12108 fi
12109
12110 if test "${HAVE_JPEG}" = "yes"; then
12111 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12112
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114/* end confdefs.h. */
12115#include <jpeglib.h>
12116 version=JPEG_LIB_VERSION
12117
12118_ACEOF
12119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12120 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12121 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12122
12123else
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12125$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12126 HAVE_JPEG=no
12127fi
12128rm -f conftest*
12129
12130 fi
12131 if test "${HAVE_JPEG}" = "yes"; then
12132 LIBJPEG=-ljpeg
12133 fi
12134fi
12135
12136
12137### Use -lpng if available, unless `--with-png=no'.
12138HAVE_PNG=no
12139LIBPNG=
12140if test "${HAVE_X11}" = "yes"; then
12141 if test "${with_png}" != "no"; then
12142 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12143 # in /usr/include/libpng.
12144 for ac_header in png.h libpng/png.h
12145do :
12146 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12147ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
2018939f 12148if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
12149 cat >>confdefs.h <<_ACEOF
12150#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12151_ACEOF
12152
12153fi
12154
12155done
12156
12157 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12159$as_echo_n "checking for png_get_channels in -lpng... " >&6; }
d6974efa 12160if ${ac_cv_lib_png_png_get_channels+:} false; then :
067d23c9
KY
12161 $as_echo_n "(cached) " >&6
12162else
12163 ac_check_lib_save_LIBS=$LIBS
12164LIBS="-lpng -lz -lm $LIBS"
12165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166/* end confdefs.h. */
12167
12168/* Override any GCC internal prototype to avoid an error.
12169 Use char because int might match the return type of a GCC
12170 builtin and then its argument prototype would still apply. */
12171#ifdef __cplusplus
12172extern "C"
12173#endif
12174char png_get_channels ();
12175int
12176main ()
12177{
12178return png_get_channels ();
12179 ;
12180 return 0;
12181}
12182_ACEOF
12183if ac_fn_c_try_link "$LINENO"; then :
12184 ac_cv_lib_png_png_get_channels=yes
12185else
12186 ac_cv_lib_png_png_get_channels=no
12187fi
12188rm -f core conftest.err conftest.$ac_objext \
12189 conftest$ac_exeext conftest.$ac_ext
12190LIBS=$ac_check_lib_save_LIBS
12191fi
12192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12193$as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
d6974efa 12194if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
067d23c9
KY
12195 HAVE_PNG=yes
12196fi
12197
12198 fi
12199 fi
12200
12201 if test "${HAVE_PNG}" = "yes"; then
12202
12203$as_echo "#define HAVE_PNG 1" >>confdefs.h
12204
12205 LIBPNG="-lpng -lz -lm"
12206 fi
12207fi
12208
12209
12210### Use -ltiff if available, unless `--with-tiff=no'.
12211HAVE_TIFF=no
12212LIBTIFF=
12213if test "${HAVE_X11}" = "yes"; then
12214 if test "${with_tiff}" != "no"; then
12215 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
d6974efa 12216if test "x$ac_cv_header_tiffio_h" = xyes; then :
067d23c9
KY
12217 tifflibs="-lz -lm"
12218 # At least one tiff package requires the jpeg library.
12219 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12221$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
d6974efa 12222if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
067d23c9
KY
12223 $as_echo_n "(cached) " >&6
12224else
12225 ac_check_lib_save_LIBS=$LIBS
12226LIBS="-ltiff $tifflibs $LIBS"
12227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228/* end confdefs.h. */
12229
12230/* Override any GCC internal prototype to avoid an error.
12231 Use char because int might match the return type of a GCC
12232 builtin and then its argument prototype would still apply. */
12233#ifdef __cplusplus
12234extern "C"
12235#endif
12236char TIFFGetVersion ();
12237int
12238main ()
12239{
12240return TIFFGetVersion ();
12241 ;
12242 return 0;
12243}
12244_ACEOF
12245if ac_fn_c_try_link "$LINENO"; then :
12246 ac_cv_lib_tiff_TIFFGetVersion=yes
12247else
12248 ac_cv_lib_tiff_TIFFGetVersion=no
12249fi
12250rm -f core conftest.err conftest.$ac_objext \
12251 conftest$ac_exeext conftest.$ac_ext
12252LIBS=$ac_check_lib_save_LIBS
12253fi
12254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12255$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
d6974efa 12256if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
067d23c9
KY
12257 HAVE_TIFF=yes
12258fi
12259
12260fi
12261
12262
12263 fi
12264
12265 if test "${HAVE_TIFF}" = "yes"; then
12266
12267$as_echo "#define HAVE_TIFF 1" >>confdefs.h
12268
12269 LIBTIFF=-ltiff
12270 fi
12271fi
12272
12273
12274### Use -lgif or -lungif if available, unless `--with-gif=no'.
12275HAVE_GIF=no
12276LIBGIF=
12277if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12278 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
d6974efa 12279if test "x$ac_cv_header_gif_lib_h" = xyes; then :
067d23c9
KY
12280 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12281# Earlier versions can crash Emacs.
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12283$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
d6974efa 12284if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
067d23c9
KY
12285 $as_echo_n "(cached) " >&6
12286else
12287 ac_check_lib_save_LIBS=$LIBS
12288LIBS="-lgif $LIBS"
12289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290/* end confdefs.h. */
12291
12292/* Override any GCC internal prototype to avoid an error.
12293 Use char because int might match the return type of a GCC
12294 builtin and then its argument prototype would still apply. */
12295#ifdef __cplusplus
12296extern "C"
12297#endif
12298char EGifPutExtensionLast ();
12299int
12300main ()
12301{
12302return EGifPutExtensionLast ();
12303 ;
12304 return 0;
12305}
12306_ACEOF
12307if ac_fn_c_try_link "$LINENO"; then :
12308 ac_cv_lib_gif_EGifPutExtensionLast=yes
12309else
12310 ac_cv_lib_gif_EGifPutExtensionLast=no
12311fi
12312rm -f core conftest.err conftest.$ac_objext \
12313 conftest$ac_exeext conftest.$ac_ext
12314LIBS=$ac_check_lib_save_LIBS
12315fi
12316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12317$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
d6974efa 12318if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
067d23c9
KY
12319 HAVE_GIF=yes
12320else
12321 HAVE_GIF=maybe
12322fi
12323
12324fi
12325
12326
12327
12328 if test "$HAVE_GIF" = yes; then
12329 LIBGIF=-lgif
12330 elif test "$HAVE_GIF" = maybe; then
12331# If gif_lib.h but no libgif, try libungif.
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12333$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
d6974efa 12334if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
067d23c9
KY
12335 $as_echo_n "(cached) " >&6
12336else
12337 ac_check_lib_save_LIBS=$LIBS
12338LIBS="-lungif $LIBS"
12339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340/* end confdefs.h. */
12341
12342/* Override any GCC internal prototype to avoid an error.
12343 Use char because int might match the return type of a GCC
12344 builtin and then its argument prototype would still apply. */
12345#ifdef __cplusplus
12346extern "C"
12347#endif
12348char EGifPutExtensionLast ();
12349int
12350main ()
12351{
12352return EGifPutExtensionLast ();
12353 ;
12354 return 0;
12355}
12356_ACEOF
12357if ac_fn_c_try_link "$LINENO"; then :
12358 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12359else
12360 ac_cv_lib_ungif_EGifPutExtensionLast=no
12361fi
12362rm -f core conftest.err conftest.$ac_objext \
12363 conftest$ac_exeext conftest.$ac_ext
12364LIBS=$ac_check_lib_save_LIBS
12365fi
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12367$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
d6974efa 12368if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
067d23c9
KY
12369 HAVE_GIF=yes
12370else
12371 HAVE_GIF=no
12372fi
12373
12374 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12375 fi
12376
12377 if test "${HAVE_GIF}" = "yes"; then
12378
12379$as_echo "#define HAVE_GIF 1" >>confdefs.h
12380
12381 fi
12382fi
12383
12384
12385if test "${HAVE_X11}" = "yes"; then
12386 MISSING=""
12387 WITH_NO=""
12388 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12389 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12390 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12391 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12392 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12393 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12394 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12395 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12396 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12397 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12398
12399 if test "X${MISSING}" != X; then
2018939f 12400 as_fn_error $? "The following required libraries were not found:
067d23c9
KY
12401 $MISSING
12402Maybe some development libraries/packages are missing?
12403If you don't want to link with them give
12404 $WITH_NO
12405as options to configure" "$LINENO" 5
12406 fi
12407fi
12408
12409### Use -lgpm if available, unless `--with-gpm=no'.
12410HAVE_GPM=no
12411LIBGPM=
12412MOUSE_SUPPORT=
12413if test "${with_gpm}" != "no"; then
12414 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
d6974efa 12415if test "x$ac_cv_header_gpm_h" = xyes; then :
067d23c9
KY
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12417$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
d6974efa 12418if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
067d23c9
KY
12419 $as_echo_n "(cached) " >&6
12420else
12421 ac_check_lib_save_LIBS=$LIBS
12422LIBS="-lgpm $LIBS"
12423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424/* end confdefs.h. */
12425
12426/* Override any GCC internal prototype to avoid an error.
12427 Use char because int might match the return type of a GCC
12428 builtin and then its argument prototype would still apply. */
12429#ifdef __cplusplus
12430extern "C"
12431#endif
12432char Gpm_Open ();
12433int
12434main ()
12435{
12436return Gpm_Open ();
12437 ;
12438 return 0;
12439}
12440_ACEOF
12441if ac_fn_c_try_link "$LINENO"; then :
12442 ac_cv_lib_gpm_Gpm_Open=yes
12443else
12444 ac_cv_lib_gpm_Gpm_Open=no
12445fi
12446rm -f core conftest.err conftest.$ac_objext \
12447 conftest$ac_exeext conftest.$ac_ext
12448LIBS=$ac_check_lib_save_LIBS
12449fi
12450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12451$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
d6974efa 12452if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
067d23c9
KY
12453 HAVE_GPM=yes
12454fi
12455
12456fi
12457
12458
12459
12460 if test "${HAVE_GPM}" = "yes"; then
12461
12462$as_echo "#define HAVE_GPM 1" >>confdefs.h
12463
12464 LIBGPM=-lgpm
12465 ## May be reset below.
12466 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12467 fi
12468fi
12469
12470
12471ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
d6974efa 12472if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
067d23c9
KY
12473
12474$as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12475
12476fi
12477
12478
12479
12480C_SWITCH_X_SYSTEM=
12481### Use NeXTstep API to implement GUI.
12482if test "${HAVE_NS}" = "yes"; then
12483
12484$as_echo "#define HAVE_NS 1" >>confdefs.h
12485
12486 if test "${NS_IMPL_COCOA}" = "yes"; then
12487
12488$as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12489
12490 GNU_OBJC_CFLAGS=
12491 fi
12492 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12493
12494$as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12495
12496 # See also .m.o rule in Makefile.in */
12497 # FIXME: are all these flags really needed? Document here why. */
12498 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12499 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12500 fi
12501 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12502
12503$as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12504
12505 fi
12506 # We also have mouse menus.
12507 HAVE_MENUS=yes
12508 OTHER_FILES=ns-app
12509fi
12510
12511
12512### Use session management (-lSM -lICE) if available
12513HAVE_X_SM=no
12514LIBXSM=
12515if test "${HAVE_X11}" = "yes"; then
12516 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
d6974efa 12517if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
067d23c9
KY
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12519$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
d6974efa 12520if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
067d23c9
KY
12521 $as_echo_n "(cached) " >&6
12522else
12523 ac_check_lib_save_LIBS=$LIBS
12524LIBS="-lSM -lICE $LIBS"
12525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526/* end confdefs.h. */
12527
12528/* Override any GCC internal prototype to avoid an error.
12529 Use char because int might match the return type of a GCC
12530 builtin and then its argument prototype would still apply. */
12531#ifdef __cplusplus
12532extern "C"
12533#endif
12534char SmcOpenConnection ();
12535int
12536main ()
12537{
12538return SmcOpenConnection ();
12539 ;
12540 return 0;
12541}
12542_ACEOF
12543if ac_fn_c_try_link "$LINENO"; then :
12544 ac_cv_lib_SM_SmcOpenConnection=yes
12545else
12546 ac_cv_lib_SM_SmcOpenConnection=no
12547fi
12548rm -f core conftest.err conftest.$ac_objext \
12549 conftest$ac_exeext conftest.$ac_ext
12550LIBS=$ac_check_lib_save_LIBS
12551fi
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12553$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
d6974efa 12554if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
067d23c9
KY
12555 HAVE_X_SM=yes
12556fi
12557
12558fi
12559
12560
12561
12562 if test "${HAVE_X_SM}" = "yes"; then
12563
12564$as_echo "#define HAVE_X_SM 1" >>confdefs.h
12565
12566 LIBXSM="-lSM -lICE"
12567 case "$LIBS" in
12568 *-lSM*) ;;
12569 *) LIBS="$LIBXSM $LIBS" ;;
12570 esac
12571 fi
12572fi
12573
12574
12575### Use libxml (-lxml2) if available
12576if test "${with_xml2}" != "no"; then
12577 ### I'm not sure what the version number should be, so I just guessed.
12578
12579 succeeded=no
12580
12581 # Extract the first word of "pkg-config", so it can be a program name with args.
12582set dummy pkg-config; ac_word=$2
12583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 12585if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
12586 $as_echo_n "(cached) " >&6
12587else
12588 case $PKG_CONFIG in
12589 [\\/]* | ?:[\\/]*)
12590 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12591 ;;
12592 *)
12593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594for as_dir in $PATH
12595do
12596 IFS=$as_save_IFS
12597 test -z "$as_dir" && as_dir=.
12598 for ac_exec_ext in '' $ac_executable_extensions; do
12599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12600 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12602 break 2
12603 fi
12604done
12605 done
12606IFS=$as_save_IFS
12607
12608 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12609 ;;
12610esac
12611fi
12612PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12613if test -n "$PKG_CONFIG"; then
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12615$as_echo "$PKG_CONFIG" >&6; }
12616else
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618$as_echo "no" >&6; }
12619fi
12620
12621
12622
12623 if test "$PKG_CONFIG" = "no" ; then
12624 HAVE_LIBXML2=no
12625 else
12626 PKG_CONFIG_MIN_VERSION=0.9.0
12627 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
dab73760
CY
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12629$as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
067d23c9 12630
dab73760 12631 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
067d23c9
KY
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12633$as_echo "yes" >&6; }
12634 succeeded=yes
12635
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12637$as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
dab73760 12638 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
067d23c9
KY
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12640$as_echo "$LIBXML2_CFLAGS" >&6; }
12641
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12643$as_echo_n "checking LIBXML2_LIBS... " >&6; }
dab73760 12644 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
067d23c9
KY
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12646$as_echo "$LIBXML2_LIBS" >&6; }
12647 else
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649$as_echo "no" >&6; }
12650 LIBXML2_CFLAGS=""
12651 LIBXML2_LIBS=""
12652 ## If we have a custom action on failure, don't print errors, but
12653 ## do set a variable so people can do so.
dab73760 12654 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
067d23c9
KY
12655
12656 fi
12657
12658
12659
12660 else
12661 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12662 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12663 fi
12664 fi
12665
12666 if test $succeeded = yes; then
12667 HAVE_LIBXML2=yes
12668 else
12669 HAVE_LIBXML2=no
12670 fi
12671
12672 if test "${HAVE_LIBXML2}" = "yes"; then
12673 LIBS="$LIBXML2_LIBS $LIBS"
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12675$as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
d6974efa 12676if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
067d23c9
KY
12677 $as_echo_n "(cached) " >&6
12678else
12679 ac_check_lib_save_LIBS=$LIBS
12680LIBS="-lxml2 $LIBS"
12681cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682/* end confdefs.h. */
12683
12684/* Override any GCC internal prototype to avoid an error.
12685 Use char because int might match the return type of a GCC
12686 builtin and then its argument prototype would still apply. */
12687#ifdef __cplusplus
12688extern "C"
12689#endif
12690char htmlReadMemory ();
12691int
12692main ()
12693{
12694return htmlReadMemory ();
12695 ;
12696 return 0;
12697}
12698_ACEOF
12699if ac_fn_c_try_link "$LINENO"; then :
12700 ac_cv_lib_xml2_htmlReadMemory=yes
12701else
12702 ac_cv_lib_xml2_htmlReadMemory=no
12703fi
12704rm -f core conftest.err conftest.$ac_objext \
12705 conftest$ac_exeext conftest.$ac_ext
12706LIBS=$ac_check_lib_save_LIBS
12707fi
12708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12709$as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
d6974efa 12710if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
067d23c9
KY
12711 HAVE_LIBXML2=yes
12712else
12713 HAVE_LIBXML2=no
12714fi
12715
12716 if test "${HAVE_LIBXML2}" = "yes"; then
12717
12718$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12719
12720 else
12721 LIBXML2_LIBS=""
12722 LIBXML2_CFLAGS=""
12723 fi
12724 fi
12725fi
12726
12727
12728
12729# If netdb.h doesn't declare h_errno, we must declare it by hand.
12730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12731$as_echo_n "checking whether netdb declares h_errno... " >&6; }
d6974efa 12732if ${emacs_cv_netdb_declares_h_errno+:} false; then :
067d23c9
KY
12733 $as_echo_n "(cached) " >&6
12734else
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736/* end confdefs.h. */
12737#include <netdb.h>
12738int
12739main ()
12740{
12741return h_errno;
12742 ;
12743 return 0;
12744}
12745_ACEOF
12746if ac_fn_c_try_link "$LINENO"; then :
12747 emacs_cv_netdb_declares_h_errno=yes
12748else
12749 emacs_cv_netdb_declares_h_errno=no
12750fi
12751rm -f core conftest.err conftest.$ac_objext \
12752 conftest$ac_exeext conftest.$ac_ext
12753fi
12754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12755$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12756if test $emacs_cv_netdb_declares_h_errno = yes; then
12757
12758$as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12759
12760fi
12761
d6974efa
PE
12762ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12763if test "x$ac_cv_type_size_t" = xyes; then :
12764
12765else
12766
12767cat >>confdefs.h <<_ACEOF
12768#define size_t unsigned int
12769_ACEOF
12770
12771fi
12772
067d23c9
KY
12773# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12774# for constant arguments. Useless!
12775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12776$as_echo_n "checking for working alloca.h... " >&6; }
d6974efa 12777if ${ac_cv_working_alloca_h+:} false; then :
067d23c9
KY
12778 $as_echo_n "(cached) " >&6
12779else
12780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781/* end confdefs.h. */
12782#include <alloca.h>
12783int
12784main ()
12785{
12786char *p = (char *) alloca (2 * sizeof (int));
12787 if (p) return 0;
12788 ;
12789 return 0;
12790}
12791_ACEOF
12792if ac_fn_c_try_link "$LINENO"; then :
12793 ac_cv_working_alloca_h=yes
12794else
12795 ac_cv_working_alloca_h=no
12796fi
12797rm -f core conftest.err conftest.$ac_objext \
12798 conftest$ac_exeext conftest.$ac_ext
12799fi
12800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12801$as_echo "$ac_cv_working_alloca_h" >&6; }
12802if test $ac_cv_working_alloca_h = yes; then
12803
12804$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12805
12806fi
12807
12808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12809$as_echo_n "checking for alloca... " >&6; }
d6974efa 12810if ${ac_cv_func_alloca_works+:} false; then :
067d23c9
KY
12811 $as_echo_n "(cached) " >&6
12812else
12813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12814/* end confdefs.h. */
12815#ifdef __GNUC__
12816# define alloca __builtin_alloca
12817#else
12818# ifdef _MSC_VER
12819# include <malloc.h>
12820# define alloca _alloca
12821# else
12822# ifdef HAVE_ALLOCA_H
12823# include <alloca.h>
12824# else
12825# ifdef _AIX
12826 #pragma alloca
12827# else
12828# ifndef alloca /* predefined by HP cc +Olibcalls */
d6974efa 12829void *alloca (size_t);
067d23c9
KY
12830# endif
12831# endif
12832# endif
12833# endif
12834#endif
12835
12836int
12837main ()
12838{
12839char *p = (char *) alloca (1);
12840 if (p) return 0;
12841 ;
12842 return 0;
12843}
12844_ACEOF
12845if ac_fn_c_try_link "$LINENO"; then :
12846 ac_cv_func_alloca_works=yes
12847else
12848 ac_cv_func_alloca_works=no
12849fi
12850rm -f core conftest.err conftest.$ac_objext \
12851 conftest$ac_exeext conftest.$ac_ext
12852fi
12853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12854$as_echo "$ac_cv_func_alloca_works" >&6; }
12855
12856if test $ac_cv_func_alloca_works = yes; then
12857
12858$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12859
12860else
12861 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12862# that cause trouble. Some versions do not even contain alloca or
12863# contain a buggy version. If you still want to use their alloca,
12864# use ar to extract alloca.o from them instead of compiling alloca.c.
12865
12866ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12867
12868$as_echo "#define C_ALLOCA 1" >>confdefs.h
12869
12870
12871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12872$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
d6974efa 12873if ${ac_cv_os_cray+:} false; then :
067d23c9
KY
12874 $as_echo_n "(cached) " >&6
12875else
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877/* end confdefs.h. */
12878#if defined CRAY && ! defined CRAY2
12879webecray
12880#else
12881wenotbecray
12882#endif
12883
12884_ACEOF
12885if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12886 $EGREP "webecray" >/dev/null 2>&1; then :
12887 ac_cv_os_cray=yes
12888else
12889 ac_cv_os_cray=no
12890fi
12891rm -f conftest*
12892
12893fi
12894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12895$as_echo "$ac_cv_os_cray" >&6; }
12896if test $ac_cv_os_cray = yes; then
12897 for ac_func in _getb67 GETB67 getb67; do
12898 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12899ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 12900if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
12901
12902cat >>confdefs.h <<_ACEOF
12903#define CRAY_STACKSEG_END $ac_func
12904_ACEOF
12905
12906 break
12907fi
12908
12909 done
12910fi
12911
12912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12913$as_echo_n "checking stack direction for C alloca... " >&6; }
d6974efa 12914if ${ac_cv_c_stack_direction+:} false; then :
067d23c9
KY
12915 $as_echo_n "(cached) " >&6
12916else
12917 if test "$cross_compiling" = yes; then :
12918 ac_cv_c_stack_direction=0
12919else
12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921/* end confdefs.h. */
12922$ac_includes_default
12923int
12924find_stack_direction ()
12925{
12926 static char *addr = 0;
12927 auto char dummy;
12928 if (addr == 0)
12929 {
12930 addr = &dummy;
12931 return find_stack_direction ();
12932 }
12933 else
12934 return (&dummy > addr) ? 1 : -1;
12935}
12936
12937int
12938main ()
12939{
12940 return find_stack_direction () < 0;
12941}
12942_ACEOF
12943if ac_fn_c_try_run "$LINENO"; then :
12944 ac_cv_c_stack_direction=1
12945else
12946 ac_cv_c_stack_direction=-1
12947fi
12948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12949 conftest.$ac_objext conftest.beam conftest.$ac_ext
12950fi
12951
12952fi
12953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12954$as_echo "$ac_cv_c_stack_direction" >&6; }
12955cat >>confdefs.h <<_ACEOF
12956#define STACK_DIRECTION $ac_cv_c_stack_direction
12957_ACEOF
12958
12959
12960fi
12961
12962
12963if test x"$ac_cv_func_alloca_works" != xyes; then
2018939f 12964 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
067d23c9
KY
12965fi
12966
12967# fmod, logb, and frexp are found in -lm on most systems.
12968# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12970$as_echo_n "checking for sqrt in -lm... " >&6; }
d6974efa 12971if ${ac_cv_lib_m_sqrt+:} false; then :
067d23c9
KY
12972 $as_echo_n "(cached) " >&6
12973else
12974 ac_check_lib_save_LIBS=$LIBS
12975LIBS="-lm $LIBS"
12976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977/* end confdefs.h. */
12978
12979/* Override any GCC internal prototype to avoid an error.
12980 Use char because int might match the return type of a GCC
12981 builtin and then its argument prototype would still apply. */
12982#ifdef __cplusplus
12983extern "C"
12984#endif
12985char sqrt ();
12986int
12987main ()
12988{
12989return sqrt ();
12990 ;
12991 return 0;
12992}
12993_ACEOF
12994if ac_fn_c_try_link "$LINENO"; then :
12995 ac_cv_lib_m_sqrt=yes
12996else
12997 ac_cv_lib_m_sqrt=no
12998fi
12999rm -f core conftest.err conftest.$ac_objext \
13000 conftest$ac_exeext conftest.$ac_ext
13001LIBS=$ac_check_lib_save_LIBS
13002fi
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13004$as_echo "$ac_cv_lib_m_sqrt" >&6; }
d6974efa 13005if test "x$ac_cv_lib_m_sqrt" = xyes; then :
067d23c9
KY
13006 cat >>confdefs.h <<_ACEOF
13007#define HAVE_LIBM 1
13008_ACEOF
13009
13010 LIBS="-lm $LIBS"
13011
13012fi
13013
13014
13015# Check for mail-locking functions in a "mail" library. Probably this should
13016# have the same check as for liblockfile below.
13017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13018$as_echo_n "checking for maillock in -lmail... " >&6; }
d6974efa 13019if ${ac_cv_lib_mail_maillock+:} false; then :
067d23c9
KY
13020 $as_echo_n "(cached) " >&6
13021else
13022 ac_check_lib_save_LIBS=$LIBS
13023LIBS="-lmail $LIBS"
13024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13025/* end confdefs.h. */
13026
13027/* Override any GCC internal prototype to avoid an error.
13028 Use char because int might match the return type of a GCC
13029 builtin and then its argument prototype would still apply. */
13030#ifdef __cplusplus
13031extern "C"
13032#endif
13033char maillock ();
13034int
13035main ()
13036{
13037return maillock ();
13038 ;
13039 return 0;
13040}
13041_ACEOF
13042if ac_fn_c_try_link "$LINENO"; then :
13043 ac_cv_lib_mail_maillock=yes
13044else
13045 ac_cv_lib_mail_maillock=no
13046fi
13047rm -f core conftest.err conftest.$ac_objext \
13048 conftest$ac_exeext conftest.$ac_ext
13049LIBS=$ac_check_lib_save_LIBS
13050fi
13051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13052$as_echo "$ac_cv_lib_mail_maillock" >&6; }
d6974efa 13053if test "x$ac_cv_lib_mail_maillock" = xyes; then :
067d23c9
KY
13054 have_mail=yes
13055else
13056 have_mail=no
13057fi
13058
13059if test $have_mail = yes; then
13060 LIBS_MAIL=-lmail
13061 LIBS="$LIBS_MAIL $LIBS"
13062
13063$as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13064
13065else
13066 LIBS_MAIL=
13067fi
13068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13069$as_echo_n "checking for maillock in -llockfile... " >&6; }
d6974efa 13070if ${ac_cv_lib_lockfile_maillock+:} false; then :
067d23c9
KY
13071 $as_echo_n "(cached) " >&6
13072else
13073 ac_check_lib_save_LIBS=$LIBS
13074LIBS="-llockfile $LIBS"
13075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13076/* end confdefs.h. */
13077
13078/* Override any GCC internal prototype to avoid an error.
13079 Use char because int might match the return type of a GCC
13080 builtin and then its argument prototype would still apply. */
13081#ifdef __cplusplus
13082extern "C"
13083#endif
13084char maillock ();
13085int
13086main ()
13087{
13088return maillock ();
13089 ;
13090 return 0;
13091}
13092_ACEOF
13093if ac_fn_c_try_link "$LINENO"; then :
13094 ac_cv_lib_lockfile_maillock=yes
13095else
13096 ac_cv_lib_lockfile_maillock=no
13097fi
13098rm -f core conftest.err conftest.$ac_objext \
13099 conftest$ac_exeext conftest.$ac_ext
13100LIBS=$ac_check_lib_save_LIBS
13101fi
13102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13103$as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
d6974efa 13104if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
067d23c9
KY
13105 have_lockfile=yes
13106else
13107 have_lockfile=no
13108fi
13109
13110if test $have_lockfile = yes; then
13111 LIBS_MAIL=-llockfile
13112 LIBS="$LIBS_MAIL $LIBS"
13113
13114$as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13115
13116else
13117# If we have the shared liblockfile, assume we must use it for mail
13118# locking (e.g. Debian). If we couldn't link against liblockfile
13119# (no liblockfile.a installed), ensure that we don't need to.
13120 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13121set dummy liblockfile.so; ac_word=$2
13122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13123$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 13124if ${ac_cv_prog_liblockfile+:} false; then :
067d23c9
KY
13125 $as_echo_n "(cached) " >&6
13126else
13127 if test -n "$liblockfile"; then
13128 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13129else
13130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13131as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13132for as_dir in $as_dummy
13133do
13134 IFS=$as_save_IFS
13135 test -z "$as_dir" && as_dir=.
13136 for ac_exec_ext in '' $ac_executable_extensions; do
13137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13138 ac_cv_prog_liblockfile="yes"
13139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13140 break 2
13141 fi
13142done
13143 done
13144IFS=$as_save_IFS
13145
13146 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13147fi
13148fi
13149liblockfile=$ac_cv_prog_liblockfile
13150if test -n "$liblockfile"; then
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13152$as_echo "$liblockfile" >&6; }
13153else
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155$as_echo "no" >&6; }
13156fi
13157
13158
13159 if test $ac_cv_prog_liblockfile = yes; then
2018939f 13160 as_fn_error $? "Shared liblockfile found but can't link against it.
067d23c9
KY
13161This probably means that movemail could lose mail.
13162There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13163 fi
13164fi
13165for ac_func in touchlock
13166do :
13167 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
d6974efa 13168if test "x$ac_cv_func_touchlock" = xyes; then :
067d23c9
KY
13169 cat >>confdefs.h <<_ACEOF
13170#define HAVE_TOUCHLOCK 1
13171_ACEOF
13172
13173fi
13174done
13175
13176for ac_header in maillock.h
13177do :
13178 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
d6974efa 13179if test "x$ac_cv_header_maillock_h" = xyes; then :
067d23c9
KY
13180 cat >>confdefs.h <<_ACEOF
13181#define HAVE_MAILLOCK_H 1
13182_ACEOF
13183
13184fi
13185
13186done
13187
13188
13189
13190## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13191## interlock access to the mail spool. The alternative is a lock file named
13192## /usr/spool/mail/$USER.lock.
13193mail_lock=no
13194case "$opsys" in
13195 aix4-2) mail_lock="lockf" ;;
13196
13197 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13198
13199 ## On GNU/Linux systems, both methods are used by various mail programs.
13200 ## I assume most people are using newer mailers that have heard of flock.
13201 ## Change this if you need to.
13202 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13203 ## configure gets the right answers, and that means *NOT* using flock.
13204 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13205 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13206 ## Debian maintainer hasn't provided a clean fix for Emacs.
13207 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13208 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13209 ## correct logic. -- fx
13210 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13211 ## liblockfile is a Free Software replacement for libmail, used on
13212 ## Debian systems and elsewhere. -rfr.
13213 gnu-*)
13214 mail_lock="flock"
13215 if test $have_mail = yes || test $have_lockfile = yes; then
13216 test $ac_cv_header_maillock_h = yes && mail_lock=no
13217 fi
13218 ;;
13219esac
13220
13221BLESSMAIL_TARGET=
13222case "$mail_lock" in
13223 flock)
13224$as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13225 ;;
13226
13227 lockf)
13228$as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13229 ;;
13230
13231 *) BLESSMAIL_TARGET="need-blessmail" ;;
13232esac
13233
13234
13235
13236for ac_func in gethostname getdomainname dup2 \
13237rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13238random lrand48 logb frexp fmod rint cbrt ftime setsid \
1fd182f0 13239strerror fpathconf select euidaccess getpagesize tzset setlocale \
067d23c9
KY
13240utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13241__fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13242sendto recvfrom getsockopt setsockopt getsockname getpeername \
13243gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13244memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13245cfmakeraw cfsetspeed isnan copysign __executable_start
13246do :
13247 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13248ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 13249if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
13250 cat >>confdefs.h <<_ACEOF
13251#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13252_ACEOF
13253
13254fi
13255done
13256
13257
2018939f
AS
13258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13259$as_echo_n "checking for __builtin_unwind_init... " >&6; }
d6974efa 13260if ${emacs_cv_func___builtin_unwind_init+:} false; then :
2018939f
AS
13261 $as_echo_n "(cached) " >&6
13262else
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264/* end confdefs.h. */
13265
13266int
13267main ()
13268{
13269__builtin_unwind_init ();
13270 ;
13271 return 0;
13272}
13273_ACEOF
13274if ac_fn_c_try_link "$LINENO"; then :
13275 emacs_cv_func___builtin_unwind_init=yes
13276else
13277 emacs_cv_func___builtin_unwind_init=no
13278fi
13279rm -f core conftest.err conftest.$ac_objext \
13280 conftest$ac_exeext conftest.$ac_ext
13281fi
13282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13283$as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13284if test $emacs_cv_func___builtin_unwind_init = yes; then
13285
13286$as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13287
13288fi
13289
067d23c9
KY
13290for ac_header in sys/un.h
13291do :
13292 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
d6974efa 13293if test "x$ac_cv_header_sys_un_h" = xyes; then :
067d23c9
KY
13294 cat >>confdefs.h <<_ACEOF
13295#define HAVE_SYS_UN_H 1
13296_ACEOF
13297
13298fi
13299
13300done
13301
13302
1f5d53eb
PE
13303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13304$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13305if ${ac_cv_sys_largefile_source+:} false; then :
067d23c9
KY
13306 $as_echo_n "(cached) " >&6
13307else
1f5d53eb
PE
13308 while :; do
13309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 13310/* end confdefs.h. */
1f5d53eb
PE
13311#include <sys/types.h> /* for off_t */
13312 #include <stdio.h>
067d23c9
KY
13313int
13314main ()
13315{
1f5d53eb
PE
13316int (*fp) (FILE *, off_t, int) = fseeko;
13317 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
067d23c9
KY
13318 ;
13319 return 0;
13320}
13321_ACEOF
13322if ac_fn_c_try_link "$LINENO"; then :
1f5d53eb 13323 ac_cv_sys_largefile_source=no; break
067d23c9
KY
13324fi
13325rm -f core conftest.err conftest.$ac_objext \
13326 conftest$ac_exeext conftest.$ac_ext
1f5d53eb 13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 13328/* end confdefs.h. */
1f5d53eb
PE
13329#define _LARGEFILE_SOURCE 1
13330#include <sys/types.h> /* for off_t */
13331 #include <stdio.h>
067d23c9
KY
13332int
13333main ()
13334{
1f5d53eb
PE
13335int (*fp) (FILE *, off_t, int) = fseeko;
13336 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
067d23c9
KY
13337 ;
13338 return 0;
13339}
13340_ACEOF
13341if ac_fn_c_try_link "$LINENO"; then :
1f5d53eb 13342 ac_cv_sys_largefile_source=1; break
067d23c9
KY
13343fi
13344rm -f core conftest.err conftest.$ac_objext \
13345 conftest$ac_exeext conftest.$ac_ext
1f5d53eb
PE
13346 ac_cv_sys_largefile_source=unknown
13347 break
13348done
067d23c9 13349fi
1f5d53eb
PE
13350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13351$as_echo "$ac_cv_sys_largefile_source" >&6; }
13352case $ac_cv_sys_largefile_source in #(
13353 no | unknown) ;;
13354 *)
13355cat >>confdefs.h <<_ACEOF
13356#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13357_ACEOF
13358;;
13359esac
13360rm -rf conftest*
067d23c9 13361
1f5d53eb
PE
13362# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13363# in glibc 2.1.3, but that breaks too many other things.
13364# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13365if test $ac_cv_sys_largefile_source != unknown; then
13366
13367$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
067d23c9 13368
067d23c9
KY
13369fi
13370
1f5d53eb
PE
13371
13372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13373$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13374if ${ac_cv_func_getpgrp_void+:} false; then :
067d23c9
KY
13375 $as_echo_n "(cached) " >&6
13376else
1f5d53eb 13377 # Use it with a single arg.
067d23c9
KY
13378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13379/* end confdefs.h. */
1f5d53eb 13380$ac_includes_default
067d23c9
KY
13381int
13382main ()
13383{
1f5d53eb 13384getpgrp (0);
067d23c9
KY
13385 ;
13386 return 0;
13387}
13388_ACEOF
1f5d53eb
PE
13389if ac_fn_c_try_compile "$LINENO"; then :
13390 ac_cv_func_getpgrp_void=no
067d23c9 13391else
1f5d53eb 13392 ac_cv_func_getpgrp_void=yes
067d23c9 13393fi
1f5d53eb
PE
13394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13395
067d23c9 13396fi
1f5d53eb
PE
13397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13398$as_echo "$ac_cv_func_getpgrp_void" >&6; }
13399if test $ac_cv_func_getpgrp_void = yes; then
13400
13401$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
067d23c9
KY
13402
13403fi
13404
1f5d53eb
PE
13405
13406# Configure gnulib.
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417 LIBC_FATAL_STDERR_=1
13418 export LIBC_FATAL_STDERR_
13419
13420
942f733f
PE
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13422$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13423if ${ac_cv_c_bigendian+:} false; then :
13424 $as_echo_n "(cached) " >&6
13425else
13426 ac_cv_c_bigendian=unknown
13427 # See if we're dealing with a universal compiler.
13428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13429/* end confdefs.h. */
13430#ifndef __APPLE_CC__
13431 not a universal capable compiler
13432 #endif
13433 typedef int dummy;
13434
13435_ACEOF
13436if ac_fn_c_try_compile "$LINENO"; then :
13437
13438 # Check for potential -arch flags. It is not universal unless
13439 # there are at least two -arch flags with different values.
13440 ac_arch=
13441 ac_prev=
13442 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13443 if test -n "$ac_prev"; then
13444 case $ac_word in
13445 i?86 | x86_64 | ppc | ppc64)
13446 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13447 ac_arch=$ac_word
13448 else
13449 ac_cv_c_bigendian=universal
13450 break
13451 fi
13452 ;;
13453 esac
13454 ac_prev=
13455 elif test "x$ac_word" = "x-arch"; then
13456 ac_prev=arch
13457 fi
13458 done
13459fi
13460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13461 if test $ac_cv_c_bigendian = unknown; then
13462 # See if sys/param.h defines the BYTE_ORDER macro.
13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464/* end confdefs.h. */
13465#include <sys/types.h>
13466 #include <sys/param.h>
13467
13468int
13469main ()
13470{
13471#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13472 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13473 && LITTLE_ENDIAN)
13474 bogus endian macros
13475 #endif
13476
13477 ;
13478 return 0;
13479}
13480_ACEOF
13481if ac_fn_c_try_compile "$LINENO"; then :
13482 # It does; now see whether it defined to BIG_ENDIAN or not.
13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484/* end confdefs.h. */
13485#include <sys/types.h>
13486 #include <sys/param.h>
13487
13488int
13489main ()
13490{
13491#if BYTE_ORDER != BIG_ENDIAN
13492 not big endian
13493 #endif
13494
13495 ;
13496 return 0;
13497}
13498_ACEOF
13499if ac_fn_c_try_compile "$LINENO"; then :
13500 ac_cv_c_bigendian=yes
13501else
13502 ac_cv_c_bigendian=no
13503fi
13504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13505fi
13506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13507 fi
13508 if test $ac_cv_c_bigendian = unknown; then
13509 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511/* end confdefs.h. */
13512#include <limits.h>
13513
13514int
13515main ()
13516{
13517#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13518 bogus endian macros
13519 #endif
13520
13521 ;
13522 return 0;
13523}
13524_ACEOF
13525if ac_fn_c_try_compile "$LINENO"; then :
13526 # It does; now see whether it defined to _BIG_ENDIAN or not.
13527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528/* end confdefs.h. */
13529#include <limits.h>
13530
13531int
13532main ()
13533{
13534#ifndef _BIG_ENDIAN
13535 not big endian
13536 #endif
13537
13538 ;
13539 return 0;
13540}
13541_ACEOF
13542if ac_fn_c_try_compile "$LINENO"; then :
13543 ac_cv_c_bigendian=yes
13544else
13545 ac_cv_c_bigendian=no
13546fi
13547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13548fi
13549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13550 fi
13551 if test $ac_cv_c_bigendian = unknown; then
13552 # Compile a test program.
13553 if test "$cross_compiling" = yes; then :
13554 # Try to guess by grepping values from an object file.
13555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556/* end confdefs.h. */
13557short int ascii_mm[] =
13558 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13559 short int ascii_ii[] =
13560 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13561 int use_ascii (int i) {
13562 return ascii_mm[i] + ascii_ii[i];
13563 }
13564 short int ebcdic_ii[] =
13565 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13566 short int ebcdic_mm[] =
13567 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13568 int use_ebcdic (int i) {
13569 return ebcdic_mm[i] + ebcdic_ii[i];
13570 }
13571 extern int foo;
13572
13573int
13574main ()
13575{
13576return use_ascii (foo) == use_ebcdic (foo);
13577 ;
13578 return 0;
13579}
13580_ACEOF
13581if ac_fn_c_try_compile "$LINENO"; then :
13582 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13583 ac_cv_c_bigendian=yes
13584 fi
13585 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13586 if test "$ac_cv_c_bigendian" = unknown; then
13587 ac_cv_c_bigendian=no
13588 else
13589 # finding both strings is unlikely to happen, but who knows?
13590 ac_cv_c_bigendian=unknown
13591 fi
13592 fi
13593fi
13594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13595else
13596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13597/* end confdefs.h. */
13598$ac_includes_default
13599int
13600main ()
13601{
13602
13603 /* Are we little or big endian? From Harbison&Steele. */
13604 union
13605 {
13606 long int l;
13607 char c[sizeof (long int)];
13608 } u;
13609 u.l = 1;
13610 return u.c[sizeof (long int) - 1] == 1;
13611
13612 ;
13613 return 0;
13614}
13615_ACEOF
13616if ac_fn_c_try_run "$LINENO"; then :
13617 ac_cv_c_bigendian=no
13618else
13619 ac_cv_c_bigendian=yes
13620fi
13621rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13622 conftest.$ac_objext conftest.beam conftest.$ac_ext
13623fi
13624
13625 fi
13626fi
13627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13628$as_echo "$ac_cv_c_bigendian" >&6; }
13629 case $ac_cv_c_bigendian in #(
13630 yes)
13631 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13632;; #(
13633 no)
13634 ;; #(
13635 universal)
13636
13637$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13638
13639 ;; #(
13640 *)
13641 as_fn_error $? "unknown endianness
13642 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13643 esac
13644
13645
13646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13647$as_echo_n "checking for inline... " >&6; }
13648if ${ac_cv_c_inline+:} false; then :
13649 $as_echo_n "(cached) " >&6
13650else
13651 ac_cv_c_inline=no
13652for ac_kw in inline __inline__ __inline; do
13653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13654/* end confdefs.h. */
13655#ifndef __cplusplus
13656typedef int foo_t;
13657static $ac_kw foo_t static_foo () {return 0; }
13658$ac_kw foo_t foo () {return 0; }
13659#endif
13660
13661_ACEOF
13662if ac_fn_c_try_compile "$LINENO"; then :
13663 ac_cv_c_inline=$ac_kw
13664fi
13665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 test "$ac_cv_c_inline" != no && break
13667done
13668
13669fi
13670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13671$as_echo "$ac_cv_c_inline" >&6; }
13672
13673case $ac_cv_c_inline in
13674 inline | yes) ;;
13675 *)
13676 case $ac_cv_c_inline in
13677 no) ac_val=;;
13678 *) ac_val=$ac_cv_c_inline;;
13679 esac
13680 cat >>confdefs.h <<_ACEOF
13681#ifndef __cplusplus
13682#define inline $ac_val
13683#endif
13684_ACEOF
13685 ;;
13686esac
13687
13688
1f5d53eb
PE
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13690$as_echo_n "checking whether strtold conforms to C99... " >&6; }
13691if ${gl_cv_func_c99_strtold+:} false; then :
067d23c9
KY
13692 $as_echo_n "(cached) " >&6
13693else
1f5d53eb 13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 13695/* end confdefs.h. */
1f5d53eb
PE
13696/* On HP-UX before 11.23, strtold returns a struct instead of
13697 long double. Reject implementations like that, by requiring
13698 compatibility with the C99 prototype. */
13699 #include <stdlib.h>
13700 static long double (*p) (char const *, char **) = strtold;
13701 static long double
13702 test (char const *nptr, char **endptr)
13703 {
13704 long double r;
13705 r = strtold (nptr, endptr);
13706 return r;
13707 }
067d23c9
KY
13708int
13709main ()
13710{
1f5d53eb 13711return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
067d23c9
KY
13712 ;
13713 return 0;
13714}
13715_ACEOF
13716if ac_fn_c_try_link "$LINENO"; then :
1f5d53eb 13717 gl_cv_func_c99_strtold=yes
067d23c9 13718else
1f5d53eb 13719 gl_cv_func_c99_strtold=no
067d23c9
KY
13720fi
13721rm -f core conftest.err conftest.$ac_objext \
13722 conftest$ac_exeext conftest.$ac_ext
067d23c9 13723fi
1f5d53eb
PE
13724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13725$as_echo "$gl_cv_func_c99_strtold" >&6; }
13726 if test $gl_cv_func_c99_strtold = yes; then
067d23c9 13727
1f5d53eb 13728$as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
067d23c9 13729
1f5d53eb 13730 fi
067d23c9 13731
5fa4ac76
PE
13732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13733$as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13734if ${ac_cv_struct_st_dm_mode+:} false; then :
13735 $as_echo_n "(cached) " >&6
13736else
13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738/* end confdefs.h. */
13739
13740#include <sys/types.h>
13741#include <sys/stat.h>
13742int
13743main ()
13744{
13745struct stat s; s.st_dm_mode;
13746 ;
13747 return 0;
13748}
13749_ACEOF
13750if ac_fn_c_try_compile "$LINENO"; then :
13751 ac_cv_struct_st_dm_mode=yes
13752else
13753 ac_cv_struct_st_dm_mode=no
13754fi
13755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13756fi
13757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13758$as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13759
13760 if test $ac_cv_struct_st_dm_mode = yes; then
13761
13762$as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13763
13764 fi
13765
13766
13767ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13768if test "x$ac_cv_have_decl_strmode" = xyes; then :
13769 ac_have_decl=1
13770else
13771 ac_have_decl=0
13772fi
13773
13774cat >>confdefs.h <<_ACEOF
13775#define HAVE_DECL_STRMODE $ac_have_decl
13776_ACEOF
13777
067d23c9 13778
1f5d53eb
PE
13779 GNULIB__EXIT=0;
13780 GNULIB_ATOLL=0;
13781 GNULIB_CALLOC_POSIX=0;
13782 GNULIB_CANONICALIZE_FILE_NAME=0;
13783 GNULIB_GETLOADAVG=0;
13784 GNULIB_GETSUBOPT=0;
13785 GNULIB_GRANTPT=0;
13786 GNULIB_MALLOC_POSIX=0;
9411886d 13787 GNULIB_MBTOWC=0;
1f5d53eb
PE
13788 GNULIB_MKDTEMP=0;
13789 GNULIB_MKOSTEMP=0;
13790 GNULIB_MKOSTEMPS=0;
13791 GNULIB_MKSTEMP=0;
13792 GNULIB_MKSTEMPS=0;
13793 GNULIB_PTSNAME=0;
13794 GNULIB_PUTENV=0;
13795 GNULIB_RANDOM_R=0;
13796 GNULIB_REALLOC_POSIX=0;
13797 GNULIB_REALPATH=0;
13798 GNULIB_RPMATCH=0;
13799 GNULIB_SETENV=0;
13800 GNULIB_STRTOD=0;
13801 GNULIB_STRTOLL=0;
13802 GNULIB_STRTOULL=0;
13803 GNULIB_SYSTEM_POSIX=0;
13804 GNULIB_UNLOCKPT=0;
13805 GNULIB_UNSETENV=0;
9411886d 13806 GNULIB_WCTOMB=0;
1f5d53eb
PE
13807 HAVE__EXIT=1;
13808 HAVE_ATOLL=1;
13809 HAVE_CANONICALIZE_FILE_NAME=1;
13810 HAVE_DECL_GETLOADAVG=1;
13811 HAVE_GETSUBOPT=1;
13812 HAVE_GRANTPT=1;
13813 HAVE_MKDTEMP=1;
13814 HAVE_MKOSTEMP=1;
13815 HAVE_MKOSTEMPS=1;
13816 HAVE_MKSTEMP=1;
13817 HAVE_MKSTEMPS=1;
13818 HAVE_PTSNAME=1;
13819 HAVE_RANDOM_H=1;
13820 HAVE_RANDOM_R=1;
13821 HAVE_REALPATH=1;
13822 HAVE_RPMATCH=1;
13823 HAVE_SETENV=1;
13824 HAVE_DECL_SETENV=1;
13825 HAVE_STRTOD=1;
13826 HAVE_STRTOLL=1;
13827 HAVE_STRTOULL=1;
13828 HAVE_STRUCT_RANDOM_DATA=1;
13829 HAVE_SYS_LOADAVG_H=0;
13830 HAVE_UNLOCKPT=1;
13831 HAVE_DECL_UNSETENV=1;
13832 REPLACE_CALLOC=0;
13833 REPLACE_CANONICALIZE_FILE_NAME=0;
13834 REPLACE_MALLOC=0;
9411886d 13835 REPLACE_MBTOWC=0;
1f5d53eb
PE
13836 REPLACE_MKSTEMP=0;
13837 REPLACE_PUTENV=0;
13838 REPLACE_REALLOC=0;
13839 REPLACE_REALPATH=0;
13840 REPLACE_SETENV=0;
13841 REPLACE_STRTOD=0;
13842 REPLACE_UNSETENV=0;
9411886d 13843 REPLACE_WCTOMB=0;
067d23c9 13844
067d23c9 13845
1f5d53eb
PE
13846 GNULIB_CHOWN=0;
13847 GNULIB_CLOSE=0;
13848 GNULIB_DUP2=0;
13849 GNULIB_DUP3=0;
13850 GNULIB_ENVIRON=0;
13851 GNULIB_EUIDACCESS=0;
13852 GNULIB_FACCESSAT=0;
13853 GNULIB_FCHDIR=0;
13854 GNULIB_FCHOWNAT=0;
13855 GNULIB_FSYNC=0;
13856 GNULIB_FTRUNCATE=0;
13857 GNULIB_GETCWD=0;
13858 GNULIB_GETDOMAINNAME=0;
13859 GNULIB_GETDTABLESIZE=0;
13860 GNULIB_GETGROUPS=0;
13861 GNULIB_GETHOSTNAME=0;
13862 GNULIB_GETLOGIN=0;
13863 GNULIB_GETLOGIN_R=0;
13864 GNULIB_GETPAGESIZE=0;
13865 GNULIB_GETUSERSHELL=0;
13866 GNULIB_LCHOWN=0;
13867 GNULIB_LINK=0;
13868 GNULIB_LINKAT=0;
13869 GNULIB_LSEEK=0;
13870 GNULIB_PIPE=0;
13871 GNULIB_PIPE2=0;
13872 GNULIB_PREAD=0;
13873 GNULIB_PWRITE=0;
13874 GNULIB_READLINK=0;
13875 GNULIB_READLINKAT=0;
13876 GNULIB_RMDIR=0;
13877 GNULIB_SLEEP=0;
13878 GNULIB_SYMLINK=0;
13879 GNULIB_SYMLINKAT=0;
13880 GNULIB_TTYNAME_R=0;
13881 GNULIB_UNISTD_H_GETOPT=0;
13882 GNULIB_UNISTD_H_SIGPIPE=0;
13883 GNULIB_UNLINK=0;
13884 GNULIB_UNLINKAT=0;
13885 GNULIB_USLEEP=0;
13886 GNULIB_WRITE=0;
13887 HAVE_CHOWN=1;
13888 HAVE_DUP2=1;
13889 HAVE_DUP3=1;
13890 HAVE_EUIDACCESS=1;
13891 HAVE_FACCESSAT=1;
13892 HAVE_FCHDIR=1;
13893 HAVE_FCHOWNAT=1;
13894 HAVE_FSYNC=1;
13895 HAVE_FTRUNCATE=1;
13896 HAVE_GETDTABLESIZE=1;
13897 HAVE_GETGROUPS=1;
13898 HAVE_GETHOSTNAME=1;
13899 HAVE_GETLOGIN=1;
13900 HAVE_GETPAGESIZE=1;
13901 HAVE_LCHOWN=1;
13902 HAVE_LINK=1;
13903 HAVE_LINKAT=1;
13904 HAVE_PIPE=1;
13905 HAVE_PIPE2=1;
13906 HAVE_PREAD=1;
13907 HAVE_PWRITE=1;
13908 HAVE_READLINK=1;
13909 HAVE_READLINKAT=1;
13910 HAVE_SLEEP=1;
13911 HAVE_SYMLINK=1;
13912 HAVE_SYMLINKAT=1;
13913 HAVE_UNLINKAT=1;
13914 HAVE_USLEEP=1;
13915 HAVE_DECL_ENVIRON=1;
13916 HAVE_DECL_FCHDIR=1;
13917 HAVE_DECL_GETDOMAINNAME=1;
13918 HAVE_DECL_GETLOGIN_R=1;
13919 HAVE_DECL_GETPAGESIZE=1;
13920 HAVE_DECL_GETUSERSHELL=1;
13921 HAVE_DECL_TTYNAME_R=1;
13922 HAVE_OS_H=0;
13923 HAVE_SYS_PARAM_H=0;
13924 REPLACE_CHOWN=0;
13925 REPLACE_CLOSE=0;
13926 REPLACE_DUP=0;
13927 REPLACE_DUP2=0;
13928 REPLACE_FCHOWNAT=0;
13929 REPLACE_GETCWD=0;
13930 REPLACE_GETDOMAINNAME=0;
13931 REPLACE_GETLOGIN_R=0;
13932 REPLACE_GETGROUPS=0;
13933 REPLACE_GETPAGESIZE=0;
13934 REPLACE_LCHOWN=0;
13935 REPLACE_LINK=0;
13936 REPLACE_LINKAT=0;
13937 REPLACE_LSEEK=0;
13938 REPLACE_PREAD=0;
13939 REPLACE_PWRITE=0;
13940 REPLACE_READLINK=0;
13941 REPLACE_RMDIR=0;
13942 REPLACE_SLEEP=0;
13943 REPLACE_SYMLINK=0;
13944 REPLACE_TTYNAME_R=0;
13945 REPLACE_UNLINK=0;
13946 REPLACE_UNLINKAT=0;
13947 REPLACE_USLEEP=0;
13948 REPLACE_WRITE=0;
13949 UNISTD_H_HAVE_WINSOCK2_H=0;
13950 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
067d23c9 13951
067d23c9 13952
1f5d53eb
PE
13953
13954
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13956$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13957if ${gl_cv_have_include_next+:} false; then :
067d23c9
KY
13958 $as_echo_n "(cached) " >&6
13959else
1f5d53eb
PE
13960 rm -rf conftestd1a conftestd1b conftestd2
13961 mkdir conftestd1a conftestd1b conftestd2
13962 cat <<EOF > conftestd1a/conftest.h
13963#define DEFINED_IN_CONFTESTD1
13964#include_next <conftest.h>
13965#ifdef DEFINED_IN_CONFTESTD2
13966int foo;
13967#else
13968#error "include_next doesn't work"
067d23c9 13969#endif
1f5d53eb
PE
13970EOF
13971 cat <<EOF > conftestd1b/conftest.h
13972#define DEFINED_IN_CONFTESTD1
13973#include <stdio.h>
13974#include_next <conftest.h>
13975#ifdef DEFINED_IN_CONFTESTD2
13976int foo;
13977#else
13978#error "include_next doesn't work"
13979#endif
13980EOF
13981 cat <<EOF > conftestd2/conftest.h
13982#ifndef DEFINED_IN_CONFTESTD1
13983#error "include_next test doesn't work"
13984#endif
13985#define DEFINED_IN_CONFTESTD2
13986EOF
13987 gl_save_CPPFLAGS="$CPPFLAGS"
13988 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990/* end confdefs.h. */
13991#include <conftest.h>
067d23c9 13992_ACEOF
1f5d53eb
PE
13993if ac_fn_c_try_compile "$LINENO"; then :
13994 gl_cv_have_include_next=yes
067d23c9 13995else
1f5d53eb
PE
13996 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998/* end confdefs.h. */
13999#include <conftest.h>
067d23c9 14000_ACEOF
1f5d53eb
PE
14001if ac_fn_c_try_compile "$LINENO"; then :
14002 gl_cv_have_include_next=buggy
14003else
14004 gl_cv_have_include_next=no
067d23c9 14005fi
1f5d53eb 14006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
067d23c9
KY
14007
14008fi
1f5d53eb
PE
14009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010 CPPFLAGS="$gl_save_CPPFLAGS"
14011 rm -rf conftestd1a conftestd1b conftestd2
067d23c9 14012
1f5d53eb
PE
14013fi
14014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14015$as_echo "$gl_cv_have_include_next" >&6; }
14016 PRAGMA_SYSTEM_HEADER=
14017 if test $gl_cv_have_include_next = yes; then
14018 INCLUDE_NEXT=include_next
14019 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14020 if test -n "$GCC"; then
14021 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
14022 fi
14023 else
14024 if test $gl_cv_have_include_next = buggy; then
14025 INCLUDE_NEXT=include
14026 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14027 else
14028 INCLUDE_NEXT=include
14029 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14030 fi
14031 fi
067d23c9
KY
14032
14033
067d23c9 14034
1f5d53eb
PE
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14036$as_echo_n "checking whether system header files limit the line length... " >&6; }
14037if ${gl_cv_pragma_columns+:} false; then :
14038 $as_echo_n "(cached) " >&6
14039else
14040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041/* end confdefs.h. */
067d23c9 14042
1f5d53eb
PE
14043#ifdef __TANDEM
14044choke me
14045#endif
067d23c9 14046
067d23c9 14047_ACEOF
1f5d53eb
PE
14048if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14049 $EGREP "choke me" >/dev/null 2>&1; then :
14050 gl_cv_pragma_columns=yes
14051else
14052 gl_cv_pragma_columns=no
067d23c9 14053fi
1f5d53eb 14054rm -f conftest*
067d23c9 14055
067d23c9
KY
14056
14057fi
1f5d53eb
PE
14058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14059$as_echo "$gl_cv_pragma_columns" >&6; }
14060 if test $gl_cv_pragma_columns = yes; then
14061 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
14062 else
14063 PRAGMA_COLUMNS=
14064 fi
067d23c9 14065
067d23c9 14066
067d23c9
KY
14067
14068
067d23c9 14069
067d23c9
KY
14070
14071
067d23c9 14072
067d23c9 14073
067d23c9
KY
14074
14075
067d23c9 14076
067d23c9 14077
067d23c9 14078
067d23c9 14079
067d23c9 14080
067d23c9 14081
1f5d53eb
PE
14082 if test $gl_cv_have_include_next = yes; then
14083 gl_cv_next_getopt_h='<'getopt.h'>'
14084 else
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14086$as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14087if ${gl_cv_next_getopt_h+:} false; then :
14088 $as_echo_n "(cached) " >&6
14089else
067d23c9 14090
1f5d53eb 14091 if test $ac_cv_header_getopt_h = yes; then
067d23c9 14092
067d23c9 14093
1f5d53eb
PE
14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095/* end confdefs.h. */
14096#include <getopt.h>
14097
14098_ACEOF
14099 case "$host_os" in
14100 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14101 *) gl_absname_cpp="$ac_cpp" ;;
14102 esac
14103 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14104 sed -n '\#/getopt.h#{
14105 s#.*"\(.*/getopt.h\)".*#\1#
14106 s#^/[^/]#//&#
14107 p
14108 q
14109 }'`'"'
14110 else
14111 gl_cv_next_getopt_h='<'getopt.h'>'
14112 fi
067d23c9
KY
14113
14114
14115fi
1f5d53eb
PE
14116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14117$as_echo "$gl_cv_next_getopt_h" >&6; }
14118 fi
14119 NEXT_GETOPT_H=$gl_cv_next_getopt_h
067d23c9 14120
1f5d53eb
PE
14121 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14122 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14123 gl_next_as_first_directive='<'getopt.h'>'
14124 else
14125 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14126 gl_next_as_first_directive=$gl_cv_next_getopt_h
14127 fi
14128 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
067d23c9 14129
067d23c9
KY
14130
14131
067d23c9 14132
1f5d53eb
PE
14133 if test $ac_cv_header_getopt_h = yes; then
14134 HAVE_GETOPT_H=1
14135 else
14136 HAVE_GETOPT_H=0
14137 fi
067d23c9 14138
1f5d53eb
PE
14139
14140 gl_replace_getopt=
14141
14142 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14143 for ac_header in getopt.h
14144do :
14145 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14146if test "x$ac_cv_header_getopt_h" = xyes; then :
14147 cat >>confdefs.h <<_ACEOF
14148#define HAVE_GETOPT_H 1
14149_ACEOF
067d23c9
KY
14150
14151else
1f5d53eb 14152 gl_replace_getopt=yes
067d23c9
KY
14153fi
14154
1f5d53eb
PE
14155done
14156
14157 fi
14158
14159 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14160 for ac_func in getopt_long_only
14161do :
14162 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14163if test "x$ac_cv_func_getopt_long_only" = xyes; then :
14164 cat >>confdefs.h <<_ACEOF
14165#define HAVE_GETOPT_LONG_ONLY 1
14166_ACEOF
067d23c9 14167
067d23c9 14168else
1f5d53eb 14169 gl_replace_getopt=yes
067d23c9 14170fi
1f5d53eb 14171done
067d23c9 14172
1f5d53eb 14173 fi
067d23c9 14174
1f5d53eb
PE
14175 if test -z "$gl_replace_getopt"; then
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14177$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14178if ${gl_cv_func_getopt_posix+:} false; then :
067d23c9
KY
14179 $as_echo_n "(cached) " >&6
14180else
1f5d53eb
PE
14181
14182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 14183/* end confdefs.h. */
1f5d53eb 14184#include <unistd.h>
067d23c9
KY
14185int
14186main ()
14187{
1f5d53eb 14188int *p = &optreset; return optreset;
067d23c9
KY
14189 ;
14190 return 0;
14191}
14192_ACEOF
1f5d53eb
PE
14193if ac_fn_c_try_compile "$LINENO"; then :
14194 gl_optind_min=1
1fd182f0 14195else
1f5d53eb 14196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 14197/* end confdefs.h. */
1f5d53eb 14198#include <getopt.h>
1fd182f0
PE
14199int
14200main ()
14201{
1f5d53eb 14202return !getopt_clip;
1fd182f0
PE
14203 ;
14204 return 0;
14205}
14206_ACEOF
14207if ac_fn_c_try_compile "$LINENO"; then :
1f5d53eb 14208 gl_optind_min=1
1fd182f0 14209else
1f5d53eb 14210 gl_optind_min=0
1fd182f0
PE
14211fi
14212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1fd182f0 14213fi
1f5d53eb 14214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1fd182f0 14215
1f5d53eb
PE
14216 gl_save_CPPFLAGS=$CPPFLAGS
14217 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14218 if test "$cross_compiling" = yes; then :
14219 case "$host_os" in
14220 mingw*) gl_cv_func_getopt_posix="guessing no";;
14221 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14222 *) gl_cv_func_getopt_posix="guessing yes";;
14223 esac
1fd182f0 14224
1f5d53eb
PE
14225else
14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227/* end confdefs.h. */
1fd182f0 14228
1f5d53eb
PE
14229#include <unistd.h>
14230#include <stdlib.h>
14231#include <string.h>
1fd182f0 14232
1f5d53eb
PE
14233int
14234main ()
14235{
14236 {
14237 int argc = 0;
14238 char *argv[10];
14239 int c;
1fd182f0 14240
1f5d53eb
PE
14241 argv[argc++] = "program";
14242 argv[argc++] = "-a";
14243 argv[argc++] = "foo";
14244 argv[argc++] = "bar";
14245 argv[argc] = NULL;
14246 optind = OPTIND_MIN;
14247 opterr = 0;
b06b1098 14248
1f5d53eb
PE
14249 c = getopt (argc, argv, "ab");
14250 if (!(c == 'a'))
14251 return 1;
14252 c = getopt (argc, argv, "ab");
14253 if (!(c == -1))
14254 return 2;
14255 if (!(optind == 2))
14256 return 3;
14257 }
14258 /* Some internal state exists at this point. */
14259 {
14260 int argc = 0;
14261 char *argv[10];
14262 int c;
b06b1098 14263
1f5d53eb
PE
14264 argv[argc++] = "program";
14265 argv[argc++] = "donald";
14266 argv[argc++] = "-p";
14267 argv[argc++] = "billy";
14268 argv[argc++] = "duck";
14269 argv[argc++] = "-a";
14270 argv[argc++] = "bar";
14271 argv[argc] = NULL;
14272 optind = OPTIND_MIN;
14273 opterr = 0;
b06b1098 14274
1f5d53eb
PE
14275 c = getopt (argc, argv, "+abp:q:");
14276 if (!(c == -1))
14277 return 4;
14278 if (!(strcmp (argv[0], "program") == 0))
14279 return 5;
14280 if (!(strcmp (argv[1], "donald") == 0))
14281 return 6;
14282 if (!(strcmp (argv[2], "-p") == 0))
14283 return 7;
14284 if (!(strcmp (argv[3], "billy") == 0))
14285 return 8;
14286 if (!(strcmp (argv[4], "duck") == 0))
14287 return 9;
14288 if (!(strcmp (argv[5], "-a") == 0))
14289 return 10;
14290 if (!(strcmp (argv[6], "bar") == 0))
14291 return 11;
14292 if (!(optind == 1))
14293 return 12;
14294 }
14295 /* Detect MacOS 10.5, AIX 7.1 bug. */
14296 {
14297 char *argv[3] = { "program", "-ab", NULL };
14298 optind = OPTIND_MIN;
14299 opterr = 0;
14300 if (getopt (2, argv, "ab:") != 'a')
14301 return 13;
14302 if (getopt (2, argv, "ab:") != '?')
14303 return 14;
14304 if (optopt != 'b')
14305 return 15;
14306 if (optind != 2)
14307 return 16;
14308 }
d6974efa 14309
1f5d53eb
PE
14310 return 0;
14311}
d6974efa 14312
1f5d53eb
PE
14313_ACEOF
14314if ac_fn_c_try_run "$LINENO"; then :
14315 gl_cv_func_getopt_posix=yes
14316else
14317 gl_cv_func_getopt_posix=no
14318fi
14319rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14320 conftest.$ac_objext conftest.beam conftest.$ac_ext
14321fi
d6974efa 14322
1f5d53eb 14323 CPPFLAGS=$gl_save_CPPFLAGS
1fd182f0 14324
1f5d53eb
PE
14325fi
14326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14327$as_echo "$gl_cv_func_getopt_posix" >&6; }
14328 case "$gl_cv_func_getopt_posix" in
14329 *no) gl_replace_getopt=yes ;;
14330 esac
14331 fi
1fd182f0 14332
1f5d53eb
PE
14333 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14335$as_echo_n "checking for working GNU getopt function... " >&6; }
14336if ${gl_cv_func_getopt_gnu+:} false; then :
1fd182f0 14337 $as_echo_n "(cached) " >&6
1f5d53eb
PE
14338else
14339 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14340 # optstring is necessary for programs like m4 that have POSIX-mandated
14341 # semantics for supporting options interspersed with files.
14342 # Also, since getopt_long is a GNU extension, we require optind=0.
14343 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14344 # so take care to revert to the correct (non-)export state.
14345 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14346 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14347 xx) gl_had_POSIXLY_CORRECT=exported ;;
14348 x) gl_had_POSIXLY_CORRECT=yes ;;
14349 *) gl_had_POSIXLY_CORRECT= ;;
14350 esac
14351 POSIXLY_CORRECT=1
14352 export POSIXLY_CORRECT
14353 if test "$cross_compiling" = yes; then :
14354 case $host_os:$ac_cv_have_decl_optreset in
14355 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14356 *:yes) gl_cv_func_getopt_gnu=no;;
14357 *) gl_cv_func_getopt_gnu=yes;;
14358 esac
14359
1fd182f0
PE
14360else
14361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362/* end confdefs.h. */
1f5d53eb
PE
14363#include <getopt.h>
14364 #include <stddef.h>
14365 #include <string.h>
14366
1fd182f0
PE
14367int
14368main ()
14369{
1f5d53eb
PE
14370
14371 int result = 0;
14372 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14373 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14374 OSF/1 5.1, Solaris 10. */
14375 {
14376 char *myargv[3];
14377 myargv[0] = "conftest";
14378 myargv[1] = "-+";
14379 myargv[2] = 0;
14380 opterr = 0;
14381 if (getopt (2, myargv, "+a") != '?')
14382 result |= 1;
14383 }
14384 /* This code succeeds on glibc 2.8, mingw,
14385 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14386 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14387 {
14388 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14389
14390 optind = 1;
14391 if (getopt (4, argv, "p::") != 'p')
14392 result |= 2;
14393 else if (optarg != NULL)
14394 result |= 4;
14395 else if (getopt (4, argv, "p::") != -1)
14396 result |= 6;
14397 else if (optind != 2)
14398 result |= 8;
14399 }
14400 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14401 {
14402 char *argv[] = { "program", "foo", "-p", NULL };
14403 optind = 0;
14404 if (getopt (3, argv, "-p") != 1)
14405 result |= 16;
14406 else if (getopt (3, argv, "-p") != 'p')
14407 result |= 32;
14408 }
14409 /* This code fails on glibc 2.11. */
14410 {
14411 char *argv[] = { "program", "-b", "-a", NULL };
14412 optind = opterr = 0;
14413 if (getopt (3, argv, "+:a:b") != 'b')
14414 result |= 64;
14415 else if (getopt (3, argv, "+:a:b") != ':')
14416 result |= 64;
14417 }
14418 return result;
14419
1fd182f0
PE
14420 ;
14421 return 0;
14422}
14423_ACEOF
1f5d53eb
PE
14424if ac_fn_c_try_run "$LINENO"; then :
14425 gl_cv_func_getopt_gnu=yes
1fd182f0 14426else
1f5d53eb 14427 gl_cv_func_getopt_gnu=no
1fd182f0 14428fi
1f5d53eb
PE
14429rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14430 conftest.$ac_objext conftest.beam conftest.$ac_ext
1fd182f0 14431fi
1fd182f0 14432
1f5d53eb
PE
14433 case $gl_had_POSIXLY_CORRECT in
14434 exported) ;;
14435 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14436 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14437 esac
1fd182f0 14438
1f5d53eb
PE
14439fi
14440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14441$as_echo "$gl_cv_func_getopt_gnu" >&6; }
14442 if test "$gl_cv_func_getopt_gnu" = "no"; then
14443 gl_replace_getopt=yes
14444 fi
1fd182f0
PE
14445 fi
14446
1f5d53eb
PE
14447ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14448if test "x$ac_cv_have_decl_getenv" = xyes; then :
14449 ac_have_decl=1
14450else
14451 ac_have_decl=0
14452fi
1fd182f0 14453
1f5d53eb
PE
14454cat >>confdefs.h <<_ACEOF
14455#define HAVE_DECL_GETENV $ac_have_decl
14456_ACEOF
1fd182f0
PE
14457
14458
14459
14460
1f5d53eb
PE
14461
14462
14463 if test -n "$gl_replace_getopt"; then :
14464
14465
14466
14467 GETOPT_H=getopt.h
14468
14469$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14470
14471
14472
14473 GNULIB_UNISTD_H_GETOPT=1
14474
14475
14476
14477
14478
14479
14480
14481
14482 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14493
14494
14495
14496
14497
14498
14499fi
14500
14501
1f5d53eb
PE
14502
14503 GNULIB_MKTIME=0;
14504 GNULIB_NANOSLEEP=0;
14505 GNULIB_STRPTIME=0;
14506 GNULIB_TIMEGM=0;
14507 GNULIB_TIME_R=0;
14508 HAVE_DECL_LOCALTIME_R=1;
14509 HAVE_NANOSLEEP=1;
14510 HAVE_STRPTIME=1;
14511 HAVE_TIMEGM=1;
14512 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14513 REPLACE_MKTIME=GNULIB_PORTCHECK;
14514 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14515 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14516
14517
14518
14519
14520 for ac_func in $ac_func_list
14521do :
14522 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14523ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14524if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14525 cat >>confdefs.h <<_ACEOF
14526#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14527_ACEOF
1fd182f0 14528
e275c824 14529fi
1f5d53eb 14530done
1fd182f0
PE
14531
14532
e275c824 14533
1fd182f0 14534
1f5d53eb
PE
14535 gl_cv_c_multiarch=no
14536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537/* end confdefs.h. */
14538#ifndef __APPLE_CC__
14539 not a universal capable compiler
14540 #endif
14541 typedef int dummy;
e275c824
PE
14542
14543_ACEOF
1f5d53eb 14544if ac_fn_c_try_compile "$LINENO"; then :
e275c824 14545
1f5d53eb
PE
14546 arch=
14547 prev=
14548 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14549 if test -n "$prev"; then
14550 case $word in
14551 i?86 | x86_64 | ppc | ppc64)
14552 if test -z "$arch" || test "$arch" = "$word"; then
14553 arch="$word"
14554 else
14555 gl_cv_c_multiarch=yes
14556 fi
14557 ;;
14558 esac
14559 prev=
14560 else
14561 if test "x$word" = "x-arch"; then
14562 prev=arch
14563 fi
14564 fi
14565 done
e275c824
PE
14566
14567fi
1f5d53eb
PE
14568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14569 if test $gl_cv_c_multiarch = yes; then
14570 APPLE_UNIVERSAL_BUILD=1
e275c824 14571 else
1f5d53eb 14572 APPLE_UNIVERSAL_BUILD=0
e275c824
PE
14573 fi
14574
14575
1f5d53eb
PE
14576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14577$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14578if ${ac_cv_header_stdbool_h+:} false; then :
14579 $as_echo_n "(cached) " >&6
14580else
14581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582/* end confdefs.h. */
e275c824 14583
1f5d53eb
PE
14584 #include <stdbool.h>
14585 #ifndef bool
14586 "error: bool is not defined"
14587 #endif
14588 #ifndef false
14589 "error: false is not defined"
14590 #endif
14591 #if false
14592 "error: false is not 0"
14593 #endif
14594 #ifndef true
14595 "error: true is not defined"
14596 #endif
14597 #if true != 1
14598 "error: true is not 1"
14599 #endif
14600 #ifndef __bool_true_false_are_defined
14601 "error: __bool_true_false_are_defined is not defined"
14602 #endif
e275c824 14603
1f5d53eb 14604 struct s { _Bool s: 1; _Bool t; } s;
e275c824 14605
1f5d53eb
PE
14606 char a[true == 1 ? 1 : -1];
14607 char b[false == 0 ? 1 : -1];
14608 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14609 char d[(bool) 0.5 == true ? 1 : -1];
14610 /* See body of main program for 'e'. */
14611 char f[(_Bool) 0.0 == false ? 1 : -1];
14612 char g[true];
14613 char h[sizeof (_Bool)];
14614 char i[sizeof s.t];
14615 enum { j = false, k = true, l = false * true, m = true * 256 };
14616 /* The following fails for
14617 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14618 _Bool n[m];
14619 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14620 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14621 /* Catch a bug in an HP-UX C compiler. See
14622 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14623 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14624 */
14625 _Bool q = true;
14626 _Bool *pq = &q;
e275c824 14627
1f5d53eb
PE
14628int
14629main ()
14630{
e275c824 14631
1f5d53eb
PE
14632 bool e = &s;
14633 *pq |= q;
14634 *pq |= ! q;
14635 /* Refer to every declared value, to avoid compiler optimizations. */
14636 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14637 + !m + !n + !o + !p + !q + !pq);
e275c824 14638
1f5d53eb
PE
14639 ;
14640 return 0;
14641}
14642_ACEOF
14643if ac_fn_c_try_compile "$LINENO"; then :
14644 ac_cv_header_stdbool_h=yes
14645else
14646 ac_cv_header_stdbool_h=no
14647fi
14648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14649fi
14650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14651$as_echo "$ac_cv_header_stdbool_h" >&6; }
14652 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14653if test "x$ac_cv_type__Bool" = xyes; then :
e275c824 14654
1f5d53eb
PE
14655cat >>confdefs.h <<_ACEOF
14656#define HAVE__BOOL 1
14657_ACEOF
e275c824
PE
14658
14659
1f5d53eb 14660fi
e275c824
PE
14661
14662
14663
1f5d53eb
PE
14664 REPLACE_NULL=0;
14665 HAVE_WCHAR_T=1;
14666 STDDEF_H='';
b06b1098
PE
14667
14668
1f5d53eb
PE
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14670$as_echo_n "checking for wchar_t... " >&6; }
14671if ${gt_cv_c_wchar_t+:} false; then :
e275c824
PE
14672 $as_echo_n "(cached) " >&6
14673else
1f5d53eb 14674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e275c824 14675/* end confdefs.h. */
1f5d53eb
PE
14676#include <stddef.h>
14677 wchar_t foo = (wchar_t)'\0';
14678int
14679main ()
14680{
e275c824 14681
1f5d53eb
PE
14682 ;
14683 return 0;
14684}
e275c824 14685_ACEOF
1f5d53eb
PE
14686if ac_fn_c_try_compile "$LINENO"; then :
14687 gt_cv_c_wchar_t=yes
14688else
14689 gt_cv_c_wchar_t=no
e275c824 14690fi
1f5d53eb
PE
14691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14692fi
14693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14694$as_echo "$gt_cv_c_wchar_t" >&6; }
14695 if test $gt_cv_c_wchar_t = yes; then
e275c824 14696
1f5d53eb 14697$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
e275c824 14698
e275c824
PE
14699 fi
14700
14701
5f90be1b
PE
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14703$as_echo_n "checking for unsigned long long int... " >&6; }
14704if ${ac_cv_type_unsigned_long_long_int+:} false; then :
14705 $as_echo_n "(cached) " >&6
14706else
14707 ac_cv_type_unsigned_long_long_int=yes
14708 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14710/* end confdefs.h. */
14711
14712 /* For now, do not test the preprocessor; as of 2007 there are too many
14713 implementations with broken preprocessors. Perhaps this can
14714 be revisited in 2012. In the meantime, code should not expect
14715 #if to work with literals wider than 32 bits. */
14716 /* Test literals. */
14717 long long int ll = 9223372036854775807ll;
14718 long long int nll = -9223372036854775807LL;
14719 unsigned long long int ull = 18446744073709551615ULL;
14720 /* Test constant expressions. */
14721 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14722 ? 1 : -1)];
14723 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14724 ? 1 : -1)];
14725 int i = 63;
14726int
14727main ()
14728{
14729/* Test availability of runtime routines for shift and division. */
14730 long long int llmax = 9223372036854775807ll;
14731 unsigned long long int ullmax = 18446744073709551615ull;
14732 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14733 | (llmax / ll) | (llmax % ll)
14734 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14735 | (ullmax / ull) | (ullmax % ull));
14736 ;
14737 return 0;
14738}
14739
14740_ACEOF
14741if ac_fn_c_try_link "$LINENO"; then :
14742
14743else
14744 ac_cv_type_unsigned_long_long_int=no
14745fi
14746rm -f core conftest.err conftest.$ac_objext \
14747 conftest$ac_exeext conftest.$ac_ext
14748 fi
14749fi
14750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14751$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14752 if test $ac_cv_type_unsigned_long_long_int = yes; then
14753
14754$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14755
14756 fi
14757
14758
14759
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14761$as_echo_n "checking for long long int... " >&6; }
14762if ${ac_cv_type_long_long_int+:} false; then :
14763 $as_echo_n "(cached) " >&6
14764else
14765 ac_cv_type_long_long_int=yes
14766 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14767 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
14768 if test $ac_cv_type_long_long_int = yes; then
14769 if test "$cross_compiling" = yes; then :
14770 :
14771else
14772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773/* end confdefs.h. */
14774#include <limits.h>
14775 #ifndef LLONG_MAX
14776 # define HALF \
14777 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14778 # define LLONG_MAX (HALF - 1 + HALF)
14779 #endif
14780int
14781main ()
14782{
14783long long int n = 1;
14784 int i;
14785 for (i = 0; ; i++)
14786 {
14787 long long int m = n << i;
14788 if (m >> i != n)
14789 return 1;
14790 if (LLONG_MAX / 2 < m)
14791 break;
14792 }
14793 return 0;
14794 ;
14795 return 0;
14796}
14797_ACEOF
14798if ac_fn_c_try_run "$LINENO"; then :
14799
14800else
14801 ac_cv_type_long_long_int=no
14802fi
14803rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14804 conftest.$ac_objext conftest.beam conftest.$ac_ext
14805fi
14806
14807 fi
14808 fi
14809fi
14810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14811$as_echo "$ac_cv_type_long_long_int" >&6; }
14812 if test $ac_cv_type_long_long_int = yes; then
14813
14814$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14815
14816 fi
14817
14818
14819
14820
14821
14822
1f5d53eb
PE
14823 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14824"
14825if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
e275c824 14826
1f5d53eb 14827$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
e275c824 14828
e275c824
PE
14829fi
14830
e275c824 14831
e275c824 14832
e275c824 14833
5fa4ac76
PE
14834
14835 GNULIB_FCHMODAT=0;
14836 GNULIB_FSTATAT=0;
14837 GNULIB_FUTIMENS=0;
14838 GNULIB_LCHMOD=0;
14839 GNULIB_LSTAT=0;
14840 GNULIB_MKDIRAT=0;
14841 GNULIB_MKFIFO=0;
14842 GNULIB_MKFIFOAT=0;
14843 GNULIB_MKNOD=0;
14844 GNULIB_MKNODAT=0;
14845 GNULIB_STAT=0;
14846 GNULIB_UTIMENSAT=0;
14847 HAVE_FCHMODAT=1;
14848 HAVE_FSTATAT=1;
14849 HAVE_FUTIMENS=1;
14850 HAVE_LCHMOD=1;
14851 HAVE_LSTAT=1;
14852 HAVE_MKDIRAT=1;
14853 HAVE_MKFIFO=1;
14854 HAVE_MKFIFOAT=1;
14855 HAVE_MKNOD=1;
14856 HAVE_MKNODAT=1;
14857 HAVE_UTIMENSAT=1;
14858 REPLACE_FSTAT=0;
14859 REPLACE_FSTATAT=0;
14860 REPLACE_FUTIMENS=0;
14861 REPLACE_LSTAT=0;
14862 REPLACE_MKDIR=0;
14863 REPLACE_MKFIFO=0;
14864 REPLACE_MKNOD=0;
14865 REPLACE_STAT=0;
14866 REPLACE_UTIMENSAT=0;
14867
14868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
14869$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
14870if ${ac_cv_header_stat_broken+:} false; then :
14871 $as_echo_n "(cached) " >&6
14872else
14873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874/* end confdefs.h. */
14875#include <sys/types.h>
14876#include <sys/stat.h>
14877
14878#if defined S_ISBLK && defined S_IFDIR
14879extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14880#endif
14881
14882#if defined S_ISBLK && defined S_IFCHR
14883extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14884#endif
14885
14886#if defined S_ISLNK && defined S_IFREG
14887extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14888#endif
14889
14890#if defined S_ISSOCK && defined S_IFREG
14891extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14892#endif
14893
14894_ACEOF
14895if ac_fn_c_try_compile "$LINENO"; then :
14896 ac_cv_header_stat_broken=no
14897else
14898 ac_cv_header_stat_broken=yes
14899fi
14900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14901fi
14902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
14903$as_echo "$ac_cv_header_stat_broken" >&6; }
14904if test $ac_cv_header_stat_broken = yes; then
14905
14906$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
14907
14908fi
14909
14910
14911
1f5d53eb
PE
14912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14913$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14914if ${ac_cv_c_restrict+:} false; then :
d6974efa 14915 $as_echo_n "(cached) " >&6
e275c824 14916else
1f5d53eb
PE
14917 ac_cv_c_restrict=no
14918 # The order here caters to the fact that C++ does not require restrict.
14919 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6974efa 14921/* end confdefs.h. */
1f5d53eb
PE
14922typedef int * int_ptr;
14923 int foo (int_ptr $ac_kw ip) {
14924 return ip[0];
14925 }
d6974efa
PE
14926int
14927main ()
14928{
1f5d53eb
PE
14929int s[1];
14930 int * $ac_kw t = s;
14931 t[0] = 0;
14932 return foo(t)
d6974efa
PE
14933 ;
14934 return 0;
14935}
e275c824 14936_ACEOF
1f5d53eb
PE
14937if ac_fn_c_try_compile "$LINENO"; then :
14938 ac_cv_c_restrict=$ac_kw
14939fi
14940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14941 test "$ac_cv_c_restrict" != no && break
14942 done
14943
14944fi
14945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14946$as_echo "$ac_cv_c_restrict" >&6; }
14947
14948 case $ac_cv_c_restrict in
14949 restrict) ;;
14950 no) $as_echo "#define restrict /**/" >>confdefs.h
14951 ;;
14952 *) cat >>confdefs.h <<_ACEOF
14953#define restrict $ac_cv_c_restrict
14954_ACEOF
14955 ;;
14956 esac
14957
14958
14959
14960
14961
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14963$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14964if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
14965 $as_echo_n "(cached) " >&6
e275c824 14966else
d6974efa
PE
14967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968/* end confdefs.h. */
1f5d53eb
PE
14969#include <time.h>
14970
d6974efa
PE
14971int
14972main ()
14973{
1f5d53eb 14974static struct timespec x; x.tv_sec = x.tv_nsec;
d6974efa
PE
14975 ;
14976 return 0;
14977}
14978_ACEOF
14979if ac_fn_c_try_compile "$LINENO"; then :
1f5d53eb 14980 gl_cv_sys_struct_timespec_in_time_h=yes
e275c824 14981else
1f5d53eb 14982 gl_cv_sys_struct_timespec_in_time_h=no
e275c824 14983fi
d6974efa 14984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e275c824 14985fi
1f5d53eb
PE
14986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14987$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
e275c824 14988
1f5d53eb
PE
14989 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14990 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14991 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14992 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14993 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14994 else
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14996$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14997if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
14998 $as_echo_n "(cached) " >&6
e275c824
PE
14999else
15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001/* end confdefs.h. */
1f5d53eb 15002#include <sys/time.h>
e275c824 15003
e275c824
PE
15004int
15005main ()
15006{
1f5d53eb
PE
15007static struct timespec x; x.tv_sec = x.tv_nsec;
15008 ;
e275c824
PE
15009 return 0;
15010}
e275c824 15011_ACEOF
1f5d53eb
PE
15012if ac_fn_c_try_compile "$LINENO"; then :
15013 gl_cv_sys_struct_timespec_in_sys_time_h=yes
e275c824 15014else
1f5d53eb 15015 gl_cv_sys_struct_timespec_in_sys_time_h=no
e275c824 15016fi
1f5d53eb 15017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e275c824 15018fi
1f5d53eb
PE
15019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15020$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15021 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15022 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
15023 else
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15025$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15026if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
e275c824 15027 $as_echo_n "(cached) " >&6
e275c824
PE
15028else
15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030/* end confdefs.h. */
1f5d53eb 15031#include <pthread.h>
e275c824
PE
15032
15033int
15034main ()
15035{
1f5d53eb 15036static struct timespec x; x.tv_sec = x.tv_nsec;
e275c824
PE
15037 ;
15038 return 0;
15039}
15040_ACEOF
1f5d53eb
PE
15041if ac_fn_c_try_compile "$LINENO"; then :
15042 gl_cv_sys_struct_timespec_in_pthread_h=yes
e275c824 15043else
1f5d53eb 15044 gl_cv_sys_struct_timespec_in_pthread_h=no
e275c824 15045fi
1f5d53eb 15046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e275c824 15047fi
1f5d53eb
PE
15048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15049$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15050 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15051 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
15052 fi
e275c824
PE
15053 fi
15054 fi
15055
e275c824 15056
e275c824 15057
e275c824
PE
15058
15059
15060
e275c824
PE
15061
15062
15063
15064
15065
15066
15067
15068
e275c824 15069
1f5d53eb
PE
15070 if test $gl_cv_have_include_next = yes; then
15071 gl_cv_next_time_h='<'time.h'>'
15072 else
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15074$as_echo_n "checking absolute name of <time.h>... " >&6; }
15075if ${gl_cv_next_time_h+:} false; then :
15076 $as_echo_n "(cached) " >&6
15077else
e275c824 15078
1f5d53eb
PE
15079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080/* end confdefs.h. */
15081#include <time.h>
e275c824 15082
1f5d53eb
PE
15083_ACEOF
15084 case "$host_os" in
15085 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15086 *) gl_absname_cpp="$ac_cpp" ;;
15087 esac
15088 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15089 sed -n '\#/time.h#{
15090 s#.*"\(.*/time.h\)".*#\1#
15091 s#^/[^/]#//&#
15092 p
15093 q
15094 }'`'"'
e275c824
PE
15095
15096
1f5d53eb
PE
15097fi
15098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15099$as_echo "$gl_cv_next_time_h" >&6; }
15100 fi
15101 NEXT_TIME_H=$gl_cv_next_time_h
e275c824 15102
1f5d53eb
PE
15103 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15104 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15105 gl_next_as_first_directive='<'time.h'>'
15106 else
15107 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15108 gl_next_as_first_directive=$gl_cv_next_time_h
15109 fi
15110 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
e275c824
PE
15111
15112
15113
e275c824
PE
15114
15115
15116
1f5d53eb
PE
15117ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
15118if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
15119 ac_have_decl=1
15120else
15121 ac_have_decl=0
15122fi
e275c824 15123
1f5d53eb
PE
15124cat >>confdefs.h <<_ACEOF
15125#define HAVE_DECL_LOCALTIME_R $ac_have_decl
15126_ACEOF
e275c824
PE
15127
15128
e275c824
PE
15129
15130
1f5d53eb
PE
15131 if false; then
15132 GL_COND_LIBTOOL_TRUE=
15133 GL_COND_LIBTOOL_FALSE='#'
67342916 15134else
1f5d53eb
PE
15135 GL_COND_LIBTOOL_TRUE='#'
15136 GL_COND_LIBTOOL_FALSE=
67342916 15137fi
67342916 15138
1f5d53eb
PE
15139 gl_cond_libtool=false
15140 gl_libdeps=
15141 gl_ltlibdeps=
15142 gl_m4_base='m4'
67342916 15143
67342916 15144
e275c824 15145
e275c824
PE
15146
15147
15148
15149
e275c824 15150
e275c824 15151
1f5d53eb
PE
15152 gl_source_base='lib'
15153 # Code from module arg-nonnull:
15154 # Code from module c++defs:
942f733f
PE
15155 # Code from module crypto/md5:
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
15166
15167
15168
15169
15170 :
15171
1f5d53eb 15172 # Code from module dtoastr:
e275c824 15173
1f5d53eb 15174 # Code from module extensions:
5fa4ac76
PE
15175 # Code from module filemode:
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186 gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext"
15187
15188
15189
1f5d53eb 15190 # Code from module getloadavg:
e275c824
PE
15191
15192
1f5d53eb 15193# Persuade glibc <stdlib.h> to declare getloadavg().
e275c824 15194
e275c824 15195
1f5d53eb
PE
15196# Make sure getloadavg.c is where it belongs, at configure-time.
15197test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15198 as_fn_error $? "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
e275c824 15199
1f5d53eb 15200gl_save_LIBS=$LIBS
e275c824 15201
7d315eb6
PE
15202# getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15203# NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
1f5d53eb
PE
15204ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15205if test "x$ac_cv_func_getloadavg" = xyes; then :
e275c824 15206
1f5d53eb
PE
15207else
15208 gl_have_func=no
15209
15210 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15211 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15212 # to get the right answer into the cache.
15213 # For kstat on solaris, we need to test for libelf and libkvm to force the
15214 # definition of SVR4 below.
15215 if test $gl_have_func = no; then
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15217$as_echo_n "checking for elf_begin in -lelf... " >&6; }
15218if ${ac_cv_lib_elf_elf_begin+:} false; then :
16c3e636
PE
15219 $as_echo_n "(cached) " >&6
15220else
1f5d53eb
PE
15221 ac_check_lib_save_LIBS=$LIBS
15222LIBS="-lelf $LIBS"
15223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16c3e636
PE
15224/* end confdefs.h. */
15225
1f5d53eb
PE
15226/* Override any GCC internal prototype to avoid an error.
15227 Use char because int might match the return type of a GCC
15228 builtin and then its argument prototype would still apply. */
15229#ifdef __cplusplus
15230extern "C"
15231#endif
15232char elf_begin ();
15233int
15234main ()
15235{
15236return elf_begin ();
15237 ;
15238 return 0;
15239}
15240_ACEOF
15241if ac_fn_c_try_link "$LINENO"; then :
15242 ac_cv_lib_elf_elf_begin=yes
15243else
15244 ac_cv_lib_elf_elf_begin=no
15245fi
15246rm -f core conftest.err conftest.$ac_objext \
15247 conftest$ac_exeext conftest.$ac_ext
15248LIBS=$ac_check_lib_save_LIBS
15249fi
15250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15251$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15252if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
15253 LIBS="-lelf $LIBS"
15254fi
15255
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15257$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15258if ${ac_cv_lib_kvm_kvm_open+:} false; then :
15259 $as_echo_n "(cached) " >&6
15260else
15261 ac_check_lib_save_LIBS=$LIBS
15262LIBS="-lkvm $LIBS"
15263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15264/* end confdefs.h. */
16c3e636 15265
1f5d53eb
PE
15266/* Override any GCC internal prototype to avoid an error.
15267 Use char because int might match the return type of a GCC
15268 builtin and then its argument prototype would still apply. */
15269#ifdef __cplusplus
15270extern "C"
15271#endif
15272char kvm_open ();
16c3e636
PE
15273int
15274main ()
15275{
1f5d53eb 15276return kvm_open ();
16c3e636
PE
15277 ;
15278 return 0;
15279}
15280_ACEOF
1f5d53eb
PE
15281if ac_fn_c_try_link "$LINENO"; then :
15282 ac_cv_lib_kvm_kvm_open=yes
16c3e636 15283else
1f5d53eb 15284 ac_cv_lib_kvm_kvm_open=no
16c3e636 15285fi
1f5d53eb
PE
15286rm -f core conftest.err conftest.$ac_objext \
15287 conftest$ac_exeext conftest.$ac_ext
15288LIBS=$ac_check_lib_save_LIBS
16c3e636 15289fi
1f5d53eb
PE
15290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15291$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15292if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
15293 LIBS="-lkvm $LIBS"
16c3e636
PE
15294fi
15295
1f5d53eb
PE
15296 # Check for the 4.4BSD definition of getloadavg.
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15298$as_echo_n "checking for getloadavg in -lutil... " >&6; }
15299if ${ac_cv_lib_util_getloadavg+:} false; then :
1fd182f0
PE
15300 $as_echo_n "(cached) " >&6
15301else
1f5d53eb
PE
15302 ac_check_lib_save_LIBS=$LIBS
15303LIBS="-lutil $LIBS"
15304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15305/* end confdefs.h. */
1f5d53eb
PE
15306
15307/* Override any GCC internal prototype to avoid an error.
15308 Use char because int might match the return type of a GCC
15309 builtin and then its argument prototype would still apply. */
15310#ifdef __cplusplus
15311extern "C"
15312#endif
15313char getloadavg ();
1fd182f0
PE
15314int
15315main ()
15316{
1f5d53eb 15317return getloadavg ();
1fd182f0
PE
15318 ;
15319 return 0;
15320}
15321_ACEOF
1f5d53eb
PE
15322if ac_fn_c_try_link "$LINENO"; then :
15323 ac_cv_lib_util_getloadavg=yes
1fd182f0 15324else
1f5d53eb 15325 ac_cv_lib_util_getloadavg=no
1fd182f0 15326fi
1f5d53eb
PE
15327rm -f core conftest.err conftest.$ac_objext \
15328 conftest$ac_exeext conftest.$ac_ext
15329LIBS=$ac_check_lib_save_LIBS
1fd182f0 15330fi
1f5d53eb
PE
15331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15332$as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15333if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
15334 LIBS="-lutil $LIBS" gl_have_func=yes
16c3e636
PE
15335fi
15336
1f5d53eb 15337 fi
16c3e636 15338
1f5d53eb
PE
15339 if test $gl_have_func = no; then
15340 # There is a commonly available library for RS/6000 AIX.
15341 # Since it is not a standard part of AIX, it might be installed locally.
15342 gl_getloadavg_LIBS=$LIBS
15343 LIBS="-L/usr/local/lib $LIBS"
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15345$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15346if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
1fd182f0
PE
15347 $as_echo_n "(cached) " >&6
15348else
1f5d53eb
PE
15349 ac_check_lib_save_LIBS=$LIBS
15350LIBS="-lgetloadavg $LIBS"
15351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15352/* end confdefs.h. */
1f5d53eb
PE
15353
15354/* Override any GCC internal prototype to avoid an error.
15355 Use char because int might match the return type of a GCC
15356 builtin and then its argument prototype would still apply. */
15357#ifdef __cplusplus
15358extern "C"
15359#endif
15360char getloadavg ();
1fd182f0
PE
15361int
15362main ()
15363{
1f5d53eb 15364return getloadavg ();
1fd182f0
PE
15365 ;
15366 return 0;
15367}
15368_ACEOF
1f5d53eb
PE
15369if ac_fn_c_try_link "$LINENO"; then :
15370 ac_cv_lib_getloadavg_getloadavg=yes
15371else
15372 ac_cv_lib_getloadavg_getloadavg=no
1fd182f0 15373fi
1f5d53eb
PE
15374rm -f core conftest.err conftest.$ac_objext \
15375 conftest$ac_exeext conftest.$ac_ext
15376LIBS=$ac_check_lib_save_LIBS
15377fi
15378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15379$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15380if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
15381 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
15382else
15383 LIBS=$gl_getloadavg_LIBS
1fd182f0 15384fi
1fd182f0 15385
1f5d53eb 15386 fi
1fd182f0 15387
1f5d53eb
PE
15388 # Set up the replacement function if necessary.
15389 if test $gl_have_func = no; then
1fd182f0
PE
15390
15391
15392
15393
1f5d53eb
PE
15394
15395
15396
15397
15398 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
15399
15400
15401# Figure out what our getloadavg.c needs.
15402
15403# Solaris has libkstat which does not require root.
15404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15405$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15406if ${ac_cv_lib_kstat_kstat_open+:} false; then :
1fd182f0
PE
15407 $as_echo_n "(cached) " >&6
15408else
1f5d53eb
PE
15409 ac_check_lib_save_LIBS=$LIBS
15410LIBS="-lkstat $LIBS"
15411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15412/* end confdefs.h. */
1fd182f0 15413
1f5d53eb
PE
15414/* Override any GCC internal prototype to avoid an error.
15415 Use char because int might match the return type of a GCC
15416 builtin and then its argument prototype would still apply. */
15417#ifdef __cplusplus
15418extern "C"
15419#endif
15420char kstat_open ();
1fd182f0
PE
15421int
15422main ()
15423{
1f5d53eb 15424return kstat_open ();
1fd182f0
PE
15425 ;
15426 return 0;
15427}
15428_ACEOF
1f5d53eb
PE
15429if ac_fn_c_try_link "$LINENO"; then :
15430 ac_cv_lib_kstat_kstat_open=yes
1fd182f0 15431else
1f5d53eb 15432 ac_cv_lib_kstat_kstat_open=no
1fd182f0 15433fi
1f5d53eb
PE
15434rm -f core conftest.err conftest.$ac_objext \
15435 conftest$ac_exeext conftest.$ac_ext
15436LIBS=$ac_check_lib_save_LIBS
1fd182f0 15437fi
1f5d53eb
PE
15438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15439$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15440if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
15441 cat >>confdefs.h <<_ACEOF
15442#define HAVE_LIBKSTAT 1
15443_ACEOF
1fd182f0 15444
1f5d53eb
PE
15445 LIBS="-lkstat $LIBS"
15446
15447fi
15448
15449test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
15450
15451# On HPUX9, an unprivileged user can get load averages this way.
15452if test $gl_have_func = no; then
15453 for ac_func in pstat_getdynamic
15454do :
15455 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15456if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
15457 cat >>confdefs.h <<_ACEOF
15458#define HAVE_PSTAT_GETDYNAMIC 1
15459_ACEOF
15460 gl_have_func=yes
15461fi
15462done
15463
15464fi
15465
15466# AIX has libperfstat which does not require root
15467if test $gl_have_func = no; then
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15469$as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15470if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false; then :
1fd182f0
PE
15471 $as_echo_n "(cached) " >&6
15472else
1f5d53eb
PE
15473 ac_check_lib_save_LIBS=$LIBS
15474LIBS="-lperfstat $LIBS"
15475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15476/* end confdefs.h. */
1fd182f0 15477
1f5d53eb
PE
15478/* Override any GCC internal prototype to avoid an error.
15479 Use char because int might match the return type of a GCC
15480 builtin and then its argument prototype would still apply. */
15481#ifdef __cplusplus
15482extern "C"
15483#endif
15484char perfstat_cpu_total ();
1fd182f0
PE
15485int
15486main ()
15487{
1f5d53eb 15488return perfstat_cpu_total ();
1fd182f0
PE
15489 ;
15490 return 0;
15491}
15492_ACEOF
1f5d53eb
PE
15493if ac_fn_c_try_link "$LINENO"; then :
15494 ac_cv_lib_perfstat_perfstat_cpu_total=yes
1fd182f0 15495else
1f5d53eb 15496 ac_cv_lib_perfstat_perfstat_cpu_total=no
1fd182f0 15497fi
1f5d53eb
PE
15498rm -f core conftest.err conftest.$ac_objext \
15499 conftest$ac_exeext conftest.$ac_ext
15500LIBS=$ac_check_lib_save_LIBS
1fd182f0 15501fi
1f5d53eb
PE
15502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15503$as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15504if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes; then :
15505 cat >>confdefs.h <<_ACEOF
15506#define HAVE_LIBPERFSTAT 1
15507_ACEOF
15508
15509 LIBS="-lperfstat $LIBS"
15510
15511fi
15512
15513 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
15514fi
15515
15516if test $gl_have_func = no; then
15517 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15518if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
15519 gl_have_func=yes
15520
15521$as_echo "#define DGUX 1" >>confdefs.h
15522
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15524$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15525if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
1fd182f0
PE
15526 $as_echo_n "(cached) " >&6
15527else
1f5d53eb
PE
15528 ac_check_lib_save_LIBS=$LIBS
15529LIBS="-ldgc $LIBS"
15530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15531/* end confdefs.h. */
1fd182f0 15532
1f5d53eb
PE
15533/* Override any GCC internal prototype to avoid an error.
15534 Use char because int might match the return type of a GCC
15535 builtin and then its argument prototype would still apply. */
15536#ifdef __cplusplus
15537extern "C"
15538#endif
15539char dg_sys_info ();
1fd182f0
PE
15540int
15541main ()
15542{
1f5d53eb 15543return dg_sys_info ();
1fd182f0
PE
15544 ;
15545 return 0;
15546}
15547_ACEOF
1f5d53eb
PE
15548if ac_fn_c_try_link "$LINENO"; then :
15549 ac_cv_lib_dgc_dg_sys_info=yes
1fd182f0 15550else
1f5d53eb 15551 ac_cv_lib_dgc_dg_sys_info=no
1fd182f0 15552fi
1f5d53eb
PE
15553rm -f core conftest.err conftest.$ac_objext \
15554 conftest$ac_exeext conftest.$ac_ext
15555LIBS=$ac_check_lib_save_LIBS
1fd182f0 15556fi
1f5d53eb
PE
15557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15558$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15559if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
15560 cat >>confdefs.h <<_ACEOF
15561#define HAVE_LIBDGC 1
15562_ACEOF
1fd182f0 15563
1f5d53eb 15564 LIBS="-ldgc $LIBS"
1fd182f0 15565
1f5d53eb 15566fi
1fd182f0 15567
1f5d53eb 15568fi
1fd182f0
PE
15569
15570
1f5d53eb 15571fi
1fd182f0 15572
1f5d53eb
PE
15573# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15574# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15575# Irix 4.0.5F has the header but not the library.
15576if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
15577 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15578 gl_have_func=yes
1fd182f0 15579
1f5d53eb 15580$as_echo "#define SVR4 1" >>confdefs.h
1fd182f0 15581
1f5d53eb 15582fi
1fd182f0 15583
1f5d53eb
PE
15584if test $gl_have_func = no; then
15585 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15586if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
15587 gl_have_func=yes
1fd182f0 15588
1f5d53eb 15589$as_echo "#define UMAX 1" >>confdefs.h
1fd182f0
PE
15590
15591
1f5d53eb 15592$as_echo "#define UMAX4_3 1" >>confdefs.h
1fd182f0 15593
1f5d53eb 15594fi
b06b1098
PE
15595
15596
1f5d53eb 15597fi
1fd182f0 15598
1f5d53eb
PE
15599if test $gl_have_func = no; then
15600 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15601if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
15602 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
1fd182f0 15603
1f5d53eb 15604fi
b06b1098 15605
1fd182f0
PE
15606
15607fi
1fd182f0 15608
1f5d53eb
PE
15609if test $gl_have_func = no; then
15610 for ac_header in mach/mach.h
15611do :
15612 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15613if test "x$ac_cv_header_mach_mach_h" = xyes; then :
15614 cat >>confdefs.h <<_ACEOF
15615#define HAVE_MACH_MACH_H 1
15616_ACEOF
1fd182f0 15617
1f5d53eb 15618fi
1fd182f0 15619
1f5d53eb 15620done
1fd182f0 15621
1f5d53eb 15622fi
1fd182f0 15623
1f5d53eb
PE
15624for ac_header in nlist.h
15625do :
15626 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15627if test "x$ac_cv_header_nlist_h" = xyes; then :
15628 cat >>confdefs.h <<_ACEOF
15629#define HAVE_NLIST_H 1
15630_ACEOF
15631 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15632"
15633if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
15634
15635cat >>confdefs.h <<_ACEOF
15636#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15637_ACEOF
1fd182f0 15638
b06b1098 15639
1fd182f0
PE
15640fi
15641
1f5d53eb
PE
15642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15643/* end confdefs.h. */
15644#include <nlist.h>
15645int
15646main ()
15647{
15648struct nlist x;
15649 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15650 x.n_un.n_name = "";
15651 #else
15652 x.n_name = "";
15653 #endif
15654 ;
15655 return 0;
15656}
1fd182f0 15657_ACEOF
1f5d53eb
PE
15658if ac_fn_c_try_link "$LINENO"; then :
15659
15660$as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15661
15662fi
15663rm -f core conftest.err conftest.$ac_objext \
15664 conftest$ac_exeext conftest.$ac_ext
1fd182f0 15665
1f5d53eb 15666fi
1fd182f0 15667
1f5d53eb 15668done
1fd182f0 15669
1f5d53eb
PE
15670 fi
15671fi
1fd182f0 15672
1f5d53eb
PE
15673
15674if test "x$gl_save_LIBS" = x; then
15675 GETLOADAVG_LIBS=$LIBS
1fd182f0 15676else
1f5d53eb 15677 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
1fd182f0 15678fi
1f5d53eb 15679LIBS=$gl_save_LIBS
1fd182f0 15680
1fd182f0 15681
1f5d53eb
PE
15682# Test whether the system declares getloadavg. Solaris has the function
15683# but declares it in <sys/loadavg.h>, not <stdlib.h>.
15684for ac_header in sys/loadavg.h
15685do :
15686 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
15687if test "x$ac_cv_header_sys_loadavg_h" = xyes; then :
15688 cat >>confdefs.h <<_ACEOF
15689#define HAVE_SYS_LOADAVG_H 1
15690_ACEOF
15691
15692fi
1fd182f0 15693
1f5d53eb 15694done
1fd182f0 15695
1f5d53eb
PE
15696if test $ac_cv_header_sys_loadavg_h = yes; then
15697 HAVE_SYS_LOADAVG_H=1
15698else
15699 HAVE_SYS_LOADAVG_H=0
15700fi
15701ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
15702 # include <sys/loadavg.h>
15703 #endif
15704 #include <stdlib.h>
15705"
15706if test "x$ac_cv_have_decl_getloadavg" = xyes; then :
1fd182f0 15707
1f5d53eb
PE
15708else
15709 HAVE_DECL_GETLOADAVG=0
15710fi
1fd182f0
PE
15711
15712
15713
15714
15715
1f5d53eb
PE
15716 GNULIB_GETLOADAVG=1
15717
15718
1fd182f0 15719
e275c824
PE
15720 # Code from module getopt-gnu:
15721
15722
15723
15724
15725
15726
e275c824
PE
15727 # Code from module getopt-posix:
15728
15729
15730
15731
15732
15733 if test -n "$gl_replace_getopt"; then :
15734
15735
15736
15737 GETOPT_H=getopt.h
15738
15739$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15740
15741
15742
15743 GNULIB_UNISTD_H_GETOPT=1
15744
15745
15746
15747
15748
15749
15750
15751
15752 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15763
15764
15765
15766
15767
15768
15769fi
15770
15771
15772 # Code from module gettext-h:
15773
15774
67342916
PE
15775 # Code from module ignore-value:
15776
1fd182f0
PE
15777 # Code from module include_next:
15778 # Code from module intprops:
15779 # Code from module mktime:
15780
15781
15782
15783
15784
15785if test $APPLE_UNIVERSAL_BUILD = 1; then
15786 # A universal build on Apple MacOS X platforms.
15787 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15788 # But we need a configuration result that is valid in both modes.
15789 ac_cv_func_working_mktime=no
15790fi
15791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15792$as_echo_n "checking for working mktime... " >&6; }
d6974efa 15793if ${ac_cv_func_working_mktime+:} false; then :
1fd182f0
PE
15794 $as_echo_n "(cached) " >&6
15795else
15796 if test "$cross_compiling" = yes; then :
15797 ac_cv_func_working_mktime=no
15798else
15799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800/* end confdefs.h. */
15801/* Test program from Paul Eggert and Tony Leneis. */
15802#include <limits.h>
15803#include <stdlib.h>
15804#include <time.h>
15805
15806#ifdef HAVE_UNISTD_H
15807# include <unistd.h>
15808#endif
15809
15810#ifndef HAVE_ALARM
15811# define alarm(X) /* empty */
15812#endif
15813
15814/* Work around redefinition to rpl_putenv by other config tests. */
15815#undef putenv
15816
15817static time_t time_t_max;
15818static time_t time_t_min;
15819
15820/* Values we'll use to set the TZ environment variable. */
15821static char *tz_strings[] = {
15822 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15823 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15824};
15825#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15826
15827/* Return 0 if mktime fails to convert a date in the spring-forward gap.
15828 Based on a problem report from Andreas Jaeger. */
15829static int
15830spring_forward_gap ()
15831{
15832 /* glibc (up to about 1998-10-07) failed this test. */
15833 struct tm tm;
15834
15835 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15836 instead of "TZ=America/Vancouver" in order to detect the bug even
15837 on systems that don't support the Olson extension, or don't have the
15838 full zoneinfo tables installed. */
15839 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15840
15841 tm.tm_year = 98;
15842 tm.tm_mon = 3;
15843 tm.tm_mday = 5;
15844 tm.tm_hour = 2;
15845 tm.tm_min = 0;
15846 tm.tm_sec = 0;
15847 tm.tm_isdst = -1;
15848 return mktime (&tm) != (time_t) -1;
15849}
15850
15851static int
15852mktime_test1 (time_t now)
15853{
15854 struct tm *lt;
15855 return ! (lt = localtime (&now)) || mktime (lt) == now;
15856}
15857
15858static int
15859mktime_test (time_t now)
15860{
15861 return (mktime_test1 (now)
15862 && mktime_test1 ((time_t) (time_t_max - now))
15863 && mktime_test1 ((time_t) (time_t_min + now)));
15864}
15865
15866static int
15867irix_6_4_bug ()
15868{
15869 /* Based on code from Ariel Faigon. */
15870 struct tm tm;
15871 tm.tm_year = 96;
15872 tm.tm_mon = 3;
15873 tm.tm_mday = 0;
15874 tm.tm_hour = 0;
15875 tm.tm_min = 0;
15876 tm.tm_sec = 0;
15877 tm.tm_isdst = -1;
15878 mktime (&tm);
15879 return tm.tm_mon == 2 && tm.tm_mday == 31;
15880}
15881
15882static int
15883bigtime_test (int j)
15884{
15885 struct tm tm;
15886 time_t now;
15887 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15888 now = mktime (&tm);
15889 if (now != (time_t) -1)
15890 {
15891 struct tm *lt = localtime (&now);
15892 if (! (lt
15893 && lt->tm_year == tm.tm_year
15894 && lt->tm_mon == tm.tm_mon
15895 && lt->tm_mday == tm.tm_mday
15896 && lt->tm_hour == tm.tm_hour
15897 && lt->tm_min == tm.tm_min
15898 && lt->tm_sec == tm.tm_sec
15899 && lt->tm_yday == tm.tm_yday
15900 && lt->tm_wday == tm.tm_wday
15901 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15902 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15903 return 0;
15904 }
15905 return 1;
15906}
15907
15908static int
15909year_2050_test ()
15910{
15911 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15912 ignoring leap seconds. */
15913 unsigned long int answer = 2527315200UL;
15914
15915 struct tm tm;
15916 time_t t;
15917 tm.tm_year = 2050 - 1900;
15918 tm.tm_mon = 2 - 1;
15919 tm.tm_mday = 1;
15920 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15921 tm.tm_isdst = -1;
15922
15923 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15924 instead of "TZ=America/Vancouver" in order to detect the bug even
15925 on systems that don't support the Olson extension, or don't have the
15926 full zoneinfo tables installed. */
15927 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15928
15929 t = mktime (&tm);
15930
15931 /* Check that the result is either a failure, or close enough
15932 to the correct answer that we can assume the discrepancy is
15933 due to leap seconds. */
15934 return (t == (time_t) -1
15935 || (0 < t && answer - 120 <= t && t <= answer + 120));
15936}
15937
15938int
15939main ()
15940{
15941 int result = 0;
15942 time_t t, delta;
15943 int i, j;
3de84ad9
PE
15944 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
15945 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
1fd182f0
PE
15946
15947 /* This test makes some buggy mktime implementations loop.
15948 Give up after 60 seconds; a mktime slower than that
15949 isn't worth using anyway. */
15950 alarm (60);
15951
3de84ad9
PE
15952 time_t_max = (! time_t_signed
15953 ? (time_t) -1
15954 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
15955 * 2 + 1));
15956 time_t_min = (! time_t_signed
15957 ? (time_t) 0
15958 : time_t_signed_magnitude
15959 ? ~ (time_t) 0
15960 : ~ time_t_max);
1fd182f0
PE
15961
15962 delta = time_t_max / 997; /* a suitable prime number */
15963 for (i = 0; i < N_STRINGS; i++)
15964 {
15965 if (tz_strings[i])
15966 putenv (tz_strings[i]);
15967
15968 for (t = 0; t <= time_t_max - delta; t += delta)
15969 if (! mktime_test (t))
15970 result |= 1;
15971 if (! (mktime_test ((time_t) 1)
15972 && mktime_test ((time_t) (60 * 60))
15973 && mktime_test ((time_t) (60 * 60 * 24))))
15974 result |= 2;
15975
15976 for (j = 1; ; j <<= 1)
15977 if (! bigtime_test (j))
15978 result |= 4;
15979 else if (INT_MAX / 2 < j)
15980 break;
15981 if (! bigtime_test (INT_MAX))
15982 result |= 8;
15983 }
15984 if (! irix_6_4_bug ())
15985 result |= 16;
15986 if (! spring_forward_gap ())
15987 result |= 32;
15988 if (! year_2050_test ())
15989 result |= 64;
15990 return result;
15991}
15992_ACEOF
15993if ac_fn_c_try_run "$LINENO"; then :
15994 ac_cv_func_working_mktime=yes
15995else
15996 ac_cv_func_working_mktime=no
15997fi
15998rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15999 conftest.$ac_objext conftest.beam conftest.$ac_ext
067d23c9 16000fi
067d23c9 16001
1fd182f0
PE
16002fi
16003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
16004$as_echo "$ac_cv_func_working_mktime" >&6; }
16005if test $ac_cv_func_working_mktime = no; then
067d23c9 16006
067d23c9 16007
067d23c9
KY
16008
16009
067d23c9 16010
067d23c9
KY
16011
16012
16013
1fd182f0 16014 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
067d23c9 16015
1fd182f0 16016fi
067d23c9 16017
1fd182f0
PE
16018 if test $ac_cv_func_working_mktime = no; then
16019 REPLACE_MKTIME=1
067d23c9
KY
16020
16021
16022
1fd182f0
PE
16023 else
16024 REPLACE_MKTIME=0
16025 fi
067d23c9
KY
16026
16027
16028
067d23c9 16029
1fd182f0 16030 GNULIB_MKTIME=1
067d23c9
KY
16031
16032
16033
1fd182f0 16034 # Code from module multiarch:
067d23c9 16035
16c3e636
PE
16036 # Code from module stdbool:
16037
16038
16039
16040 # Define two additional variables used in the Makefile substitution.
16041
16042 if test "$ac_cv_header_stdbool_h" = yes; then
16043 STDBOOL_H=''
16044 else
16045 STDBOOL_H='stdbool.h'
16046 fi
16047
16048
16049 if test "$ac_cv_type__Bool" = yes; then
16050 HAVE__BOOL=1
16051 else
16052 HAVE__BOOL=0
16053 fi
16054
16055
1fd182f0 16056 # Code from module stddef:
067d23c9 16057
067d23c9 16058
067d23c9 16059
1fd182f0
PE
16060 if test $gt_cv_c_wchar_t = no; then
16061 HAVE_WCHAR_T=0
16062 STDDEF_H=stddef.h
067d23c9 16063 fi
1fd182f0
PE
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16065$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
d6974efa 16066if ${gl_cv_decl_null_works+:} false; then :
067d23c9 16067 $as_echo_n "(cached) " >&6
067d23c9
KY
16068else
16069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070/* end confdefs.h. */
1fd182f0
PE
16071#include <stddef.h>
16072 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16073
067d23c9
KY
16074int
16075main ()
16076{
16077
067d23c9
KY
16078 ;
16079 return 0;
16080}
16081_ACEOF
1fd182f0
PE
16082if ac_fn_c_try_compile "$LINENO"; then :
16083 gl_cv_decl_null_works=yes
067d23c9 16084else
1fd182f0 16085 gl_cv_decl_null_works=no
067d23c9 16086fi
1fd182f0 16087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
067d23c9 16088fi
1fd182f0
PE
16089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16090$as_echo "$gl_cv_decl_null_works" >&6; }
16091 if test $gl_cv_decl_null_works = no; then
16092 REPLACE_NULL=1
16093 STDDEF_H=stddef.h
16094 fi
16095 if test -n "$STDDEF_H"; then
16096
16097
16098
16099
16100
16101
b06b1098
PE
16102
16103
1fd182f0
PE
16104 if test $gl_cv_have_include_next = yes; then
16105 gl_cv_next_stddef_h='<'stddef.h'>'
16106 else
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16108$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
d6974efa 16109if ${gl_cv_next_stddef_h+:} false; then :
1fd182f0
PE
16110 $as_echo_n "(cached) " >&6
16111else
16112
b06b1098 16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0
PE
16114/* end confdefs.h. */
16115#include <stddef.h>
16116
16117_ACEOF
b06b1098
PE
16118 case "$host_os" in
16119 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16120 *) gl_absname_cpp="$ac_cpp" ;;
16121 esac
16122 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16123 sed -n '\#/stddef.h#{
16124 s#.*"\(.*/stddef.h\)".*#\1#
16125 s#^/[^/]#//&#
16126 p
16127 q
16128 }'`'"'
16129
067d23c9
KY
16130
16131fi
1fd182f0
PE
16132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16133$as_echo "$gl_cv_next_stddef_h" >&6; }
16134 fi
16135 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16136
16137 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16139 gl_next_as_first_directive='<'stddef.h'>'
16140 else
16141 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16142 gl_next_as_first_directive=$gl_cv_next_stddef_h
16143 fi
16144 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16145
16146
16147
b06b1098 16148
067d23c9
KY
16149 fi
16150
5f90be1b
PE
16151 # Code from module stdint:
16152
16153
16154
16155 if test $ac_cv_type_long_long_int = yes; then
16156 HAVE_LONG_LONG_INT=1
16157 else
16158 HAVE_LONG_LONG_INT=0
16159 fi
16160
16161
16162 if test $ac_cv_type_unsigned_long_long_int = yes; then
16163 HAVE_UNSIGNED_LONG_LONG_INT=1
16164 else
16165 HAVE_UNSIGNED_LONG_LONG_INT=0
16166 fi
16167
16168
16169
16170 if test $ac_cv_header_wchar_h = yes; then
16171 HAVE_WCHAR_H=1
16172 else
16173 HAVE_WCHAR_H=0
16174 fi
16175
16176
16177 if test $ac_cv_header_inttypes_h = yes; then
16178 HAVE_INTTYPES_H=1
16179 else
16180 HAVE_INTTYPES_H=0
16181 fi
16182
16183
16184 if test $ac_cv_header_sys_types_h = yes; then
16185 HAVE_SYS_TYPES_H=1
16186 else
16187 HAVE_SYS_TYPES_H=0
16188 fi
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200 if test $gl_cv_have_include_next = yes; then
16201 gl_cv_next_stdint_h='<'stdint.h'>'
16202 else
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16204$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16205if ${gl_cv_next_stdint_h+:} false; then :
16206 $as_echo_n "(cached) " >&6
16207else
16208
16209 if test $ac_cv_header_stdint_h = yes; then
16210
16211
16212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16213/* end confdefs.h. */
16214#include <stdint.h>
16215
16216_ACEOF
16217 case "$host_os" in
16218 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16219 *) gl_absname_cpp="$ac_cpp" ;;
16220 esac
16221 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16222 sed -n '\#/stdint.h#{
16223 s#.*"\(.*/stdint.h\)".*#\1#
16224 s#^/[^/]#//&#
16225 p
16226 q
16227 }'`'"'
16228 else
16229 gl_cv_next_stdint_h='<'stdint.h'>'
16230 fi
16231
16232
16233fi
16234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16235$as_echo "$gl_cv_next_stdint_h" >&6; }
16236 fi
16237 NEXT_STDINT_H=$gl_cv_next_stdint_h
16238
16239 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16240 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16241 gl_next_as_first_directive='<'stdint.h'>'
16242 else
16243 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16244 gl_next_as_first_directive=$gl_cv_next_stdint_h
16245 fi
16246 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16247
16248
16249
16250
16251 if test $ac_cv_header_stdint_h = yes; then
16252 HAVE_STDINT_H=1
16253 else
16254 HAVE_STDINT_H=0
16255 fi
16256
16257
16258 if test $ac_cv_header_stdint_h = yes; then
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16260$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16261if ${gl_cv_header_working_stdint_h+:} false; then :
16262 $as_echo_n "(cached) " >&6
16263else
16264 gl_cv_header_working_stdint_h=no
16265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266/* end confdefs.h. */
16267
16268
16269#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16270#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16271#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16272#include <stdint.h>
16273/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16274#if !(defined WCHAR_MIN && defined WCHAR_MAX)
16275#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16276#endif
16277
16278
16279 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16280 included before <wchar.h>. */
16281 #include <stddef.h>
16282 #include <signal.h>
16283 #if HAVE_WCHAR_H
16284 # include <stdio.h>
16285 # include <time.h>
16286 # include <wchar.h>
16287 #endif
16288
16289
16290#ifdef INT8_MAX
16291int8_t a1 = INT8_MAX;
16292int8_t a1min = INT8_MIN;
16293#endif
16294#ifdef INT16_MAX
16295int16_t a2 = INT16_MAX;
16296int16_t a2min = INT16_MIN;
16297#endif
16298#ifdef INT32_MAX
16299int32_t a3 = INT32_MAX;
16300int32_t a3min = INT32_MIN;
16301#endif
16302#ifdef INT64_MAX
16303int64_t a4 = INT64_MAX;
16304int64_t a4min = INT64_MIN;
16305#endif
16306#ifdef UINT8_MAX
16307uint8_t b1 = UINT8_MAX;
16308#else
16309typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16310#endif
16311#ifdef UINT16_MAX
16312uint16_t b2 = UINT16_MAX;
16313#endif
16314#ifdef UINT32_MAX
16315uint32_t b3 = UINT32_MAX;
16316#endif
16317#ifdef UINT64_MAX
16318uint64_t b4 = UINT64_MAX;
16319#endif
16320int_least8_t c1 = INT8_C (0x7f);
16321int_least8_t c1max = INT_LEAST8_MAX;
16322int_least8_t c1min = INT_LEAST8_MIN;
16323int_least16_t c2 = INT16_C (0x7fff);
16324int_least16_t c2max = INT_LEAST16_MAX;
16325int_least16_t c2min = INT_LEAST16_MIN;
16326int_least32_t c3 = INT32_C (0x7fffffff);
16327int_least32_t c3max = INT_LEAST32_MAX;
16328int_least32_t c3min = INT_LEAST32_MIN;
16329int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16330int_least64_t c4max = INT_LEAST64_MAX;
16331int_least64_t c4min = INT_LEAST64_MIN;
16332uint_least8_t d1 = UINT8_C (0xff);
16333uint_least8_t d1max = UINT_LEAST8_MAX;
16334uint_least16_t d2 = UINT16_C (0xffff);
16335uint_least16_t d2max = UINT_LEAST16_MAX;
16336uint_least32_t d3 = UINT32_C (0xffffffff);
16337uint_least32_t d3max = UINT_LEAST32_MAX;
16338uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16339uint_least64_t d4max = UINT_LEAST64_MAX;
16340int_fast8_t e1 = INT_FAST8_MAX;
16341int_fast8_t e1min = INT_FAST8_MIN;
16342int_fast16_t e2 = INT_FAST16_MAX;
16343int_fast16_t e2min = INT_FAST16_MIN;
16344int_fast32_t e3 = INT_FAST32_MAX;
16345int_fast32_t e3min = INT_FAST32_MIN;
16346int_fast64_t e4 = INT_FAST64_MAX;
16347int_fast64_t e4min = INT_FAST64_MIN;
16348uint_fast8_t f1 = UINT_FAST8_MAX;
16349uint_fast16_t f2 = UINT_FAST16_MAX;
16350uint_fast32_t f3 = UINT_FAST32_MAX;
16351uint_fast64_t f4 = UINT_FAST64_MAX;
16352#ifdef INTPTR_MAX
16353intptr_t g = INTPTR_MAX;
16354intptr_t gmin = INTPTR_MIN;
16355#endif
16356#ifdef UINTPTR_MAX
16357uintptr_t h = UINTPTR_MAX;
16358#endif
16359intmax_t i = INTMAX_MAX;
16360uintmax_t j = UINTMAX_MAX;
16361
16362#include <limits.h> /* for CHAR_BIT */
16363#define TYPE_MINIMUM(t) \
16364 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16365#define TYPE_MAXIMUM(t) \
16366 ((t) ((t) 0 < (t) -1 \
16367 ? (t) -1 \
16368 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16369struct s {
16370 int check_PTRDIFF:
16371 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16372 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16373 ? 1 : -1;
16374 /* Detect bug in FreeBSD 6.0 / ia64. */
16375 int check_SIG_ATOMIC:
16376 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16377 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16378 ? 1 : -1;
16379 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16380 int check_WCHAR:
16381 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16382 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16383 ? 1 : -1;
16384 /* Detect bug in mingw. */
16385 int check_WINT:
16386 WINT_MIN == TYPE_MINIMUM (wint_t)
16387 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16388 ? 1 : -1;
16389
16390 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16391 int check_UINT8_C:
16392 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16393 int check_UINT16_C:
16394 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16395
16396 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16397#ifdef UINT8_MAX
16398 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16399#endif
16400#ifdef UINT16_MAX
16401 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16402#endif
16403#ifdef UINT32_MAX
16404 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16405#endif
16406#ifdef UINT64_MAX
16407 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16408#endif
16409 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16410 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16411 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16412 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16413 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16414 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16415 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16416 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16417 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16418 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16419 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16420};
16421
16422int
16423main ()
16424{
16425
16426 ;
16427 return 0;
16428}
16429_ACEOF
16430if ac_fn_c_try_compile "$LINENO"; then :
16431 if test "$cross_compiling" = yes; then :
16432 gl_cv_header_working_stdint_h=yes
16433
16434else
16435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16436/* end confdefs.h. */
16437
16438
16439#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16440#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16441#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16442#include <stdint.h>
16443
16444
16445 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16446 included before <wchar.h>. */
16447 #include <stddef.h>
16448 #include <signal.h>
16449 #if HAVE_WCHAR_H
16450 # include <stdio.h>
16451 # include <time.h>
16452 # include <wchar.h>
16453 #endif
16454
16455
16456#include <stdio.h>
16457#include <string.h>
16458#define MVAL(macro) MVAL1(macro)
16459#define MVAL1(expression) #expression
16460static const char *macro_values[] =
16461 {
16462#ifdef INT8_MAX
16463 MVAL (INT8_MAX),
16464#endif
16465#ifdef INT16_MAX
16466 MVAL (INT16_MAX),
16467#endif
16468#ifdef INT32_MAX
16469 MVAL (INT32_MAX),
16470#endif
16471#ifdef INT64_MAX
16472 MVAL (INT64_MAX),
16473#endif
16474#ifdef UINT8_MAX
16475 MVAL (UINT8_MAX),
16476#endif
16477#ifdef UINT16_MAX
16478 MVAL (UINT16_MAX),
16479#endif
16480#ifdef UINT32_MAX
16481 MVAL (UINT32_MAX),
16482#endif
16483#ifdef UINT64_MAX
16484 MVAL (UINT64_MAX),
16485#endif
16486 NULL
16487 };
16488
16489int
16490main ()
16491{
16492
16493 const char **mv;
16494 for (mv = macro_values; *mv != NULL; mv++)
16495 {
16496 const char *value = *mv;
16497 /* Test whether it looks like a cast expression. */
16498 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16499 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16500 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16501 || strncmp (value, "((int)"/*)*/, 6) == 0
16502 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16503 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16504 return mv - macro_values + 1;
16505 }
16506 return 0;
16507
16508 ;
16509 return 0;
16510}
16511_ACEOF
16512if ac_fn_c_try_run "$LINENO"; then :
16513 gl_cv_header_working_stdint_h=yes
16514fi
16515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16516 conftest.$ac_objext conftest.beam conftest.$ac_ext
16517fi
16518
16519
16520fi
16521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16522
16523fi
16524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16525$as_echo "$gl_cv_header_working_stdint_h" >&6; }
16526 fi
16527 if test "$gl_cv_header_working_stdint_h" = yes; then
16528 STDINT_H=
16529 else
16530 for ac_header in sys/inttypes.h sys/bitypes.h
16531do :
16532 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16533ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16534if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16535 cat >>confdefs.h <<_ACEOF
16536#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16537_ACEOF
16538
16539fi
16540
16541done
16542
16543 if test $ac_cv_header_sys_inttypes_h = yes; then
16544 HAVE_SYS_INTTYPES_H=1
16545 else
16546 HAVE_SYS_INTTYPES_H=0
16547 fi
16548
16549 if test $ac_cv_header_sys_bitypes_h = yes; then
16550 HAVE_SYS_BITYPES_H=1
16551 else
16552 HAVE_SYS_BITYPES_H=0
16553 fi
16554
16555
16556
16557
16558 if test $APPLE_UNIVERSAL_BUILD = 0; then
16559
16560
16561 for gltype in ptrdiff_t size_t ; do
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16563$as_echo_n "checking for bit size of $gltype... " >&6; }
16564if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
16565 $as_echo_n "(cached) " >&6
16566else
16567 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16568 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16569 included before <wchar.h>. */
16570 #include <stddef.h>
16571 #include <signal.h>
16572 #if HAVE_WCHAR_H
16573 # include <stdio.h>
16574 # include <time.h>
16575 # include <wchar.h>
16576 #endif
16577
16578#include <limits.h>"; then :
16579
16580else
16581 result=unknown
16582fi
16583
16584 eval gl_cv_bitsizeof_${gltype}=\$result
16585
16586fi
16587eval ac_res=\$gl_cv_bitsizeof_${gltype}
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16589$as_echo "$ac_res" >&6; }
16590 eval result=\$gl_cv_bitsizeof_${gltype}
16591 if test $result = unknown; then
16592 result=0
16593 fi
16594 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16595 cat >>confdefs.h <<_ACEOF
16596#define BITSIZEOF_${GLTYPE} $result
16597_ACEOF
16598
16599 eval BITSIZEOF_${GLTYPE}=\$result
16600 done
16601
16602
16603 fi
16604
16605
16606 for gltype in sig_atomic_t wchar_t wint_t ; do
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16608$as_echo_n "checking for bit size of $gltype... " >&6; }
16609if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
16610 $as_echo_n "(cached) " >&6
16611else
16612 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16613 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16614 included before <wchar.h>. */
16615 #include <stddef.h>
16616 #include <signal.h>
16617 #if HAVE_WCHAR_H
16618 # include <stdio.h>
16619 # include <time.h>
16620 # include <wchar.h>
16621 #endif
16622
16623#include <limits.h>"; then :
16624
16625else
16626 result=unknown
16627fi
16628
16629 eval gl_cv_bitsizeof_${gltype}=\$result
16630
16631fi
16632eval ac_res=\$gl_cv_bitsizeof_${gltype}
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16634$as_echo "$ac_res" >&6; }
16635 eval result=\$gl_cv_bitsizeof_${gltype}
16636 if test $result = unknown; then
16637 result=0
16638 fi
16639 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16640 cat >>confdefs.h <<_ACEOF
16641#define BITSIZEOF_${GLTYPE} $result
16642_ACEOF
16643
16644 eval BITSIZEOF_${GLTYPE}=\$result
16645 done
16646
16647
16648
16649
16650 for gltype in sig_atomic_t wchar_t wint_t ; do
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
16652$as_echo_n "checking whether $gltype is signed... " >&6; }
16653if eval \${gl_cv_type_${gltype}_signed+:} false; then :
16654 $as_echo_n "(cached) " >&6
16655else
16656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16657/* end confdefs.h. */
16658
16659 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16660 included before <wchar.h>. */
16661 #include <stddef.h>
16662 #include <signal.h>
16663 #if HAVE_WCHAR_H
16664 # include <stdio.h>
16665 # include <time.h>
16666 # include <wchar.h>
16667 #endif
16668
16669 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
16670int
16671main ()
16672{
16673
16674 ;
16675 return 0;
16676}
16677_ACEOF
16678if ac_fn_c_try_compile "$LINENO"; then :
16679 result=yes
16680else
16681 result=no
16682fi
16683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16684 eval gl_cv_type_${gltype}_signed=\$result
16685
16686fi
16687eval ac_res=\$gl_cv_type_${gltype}_signed
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16689$as_echo "$ac_res" >&6; }
16690 eval result=\$gl_cv_type_${gltype}_signed
16691 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16692 if test "$result" = yes; then
16693 cat >>confdefs.h <<_ACEOF
16694#define HAVE_SIGNED_${GLTYPE} 1
16695_ACEOF
16696
16697 eval HAVE_SIGNED_${GLTYPE}=1
16698 else
16699 eval HAVE_SIGNED_${GLTYPE}=0
16700 fi
16701 done
16702
16703
16704 gl_cv_type_ptrdiff_t_signed=yes
16705 gl_cv_type_size_t_signed=no
16706 if test $APPLE_UNIVERSAL_BUILD = 0; then
16707
16708
16709 for gltype in ptrdiff_t size_t ; do
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16711$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16712if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
16713 $as_echo_n "(cached) " >&6
16714else
16715 eval gl_cv_type_${gltype}_suffix=no
16716 eval result=\$gl_cv_type_${gltype}_signed
16717 if test "$result" = yes; then
16718 glsufu=
16719 else
16720 glsufu=u
16721 fi
16722 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
16723 case $glsuf in
16724 '') gltype1='int';;
16725 l) gltype1='long int';;
16726 ll) gltype1='long long int';;
16727 i64) gltype1='__int64';;
16728 u) gltype1='unsigned int';;
16729 ul) gltype1='unsigned long int';;
16730 ull) gltype1='unsigned long long int';;
16731 ui64)gltype1='unsigned __int64';;
16732 esac
16733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16734/* end confdefs.h. */
16735
16736 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16737 included before <wchar.h>. */
16738 #include <stddef.h>
16739 #include <signal.h>
16740 #if HAVE_WCHAR_H
16741 # include <stdio.h>
16742 # include <time.h>
16743 # include <wchar.h>
16744 #endif
16745
16746 extern $gltype foo;
16747 extern $gltype1 foo;
16748int
16749main ()
16750{
16751
16752 ;
16753 return 0;
16754}
16755_ACEOF
16756if ac_fn_c_try_compile "$LINENO"; then :
16757 eval gl_cv_type_${gltype}_suffix=\$glsuf
16758fi
16759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16760 eval result=\$gl_cv_type_${gltype}_suffix
16761 test "$result" != no && break
16762 done
16763fi
16764eval ac_res=\$gl_cv_type_${gltype}_suffix
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16766$as_echo "$ac_res" >&6; }
16767 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16768 eval result=\$gl_cv_type_${gltype}_suffix
16769 test "$result" = no && result=
16770 eval ${GLTYPE}_SUFFIX=\$result
16771 cat >>confdefs.h <<_ACEOF
16772#define ${GLTYPE}_SUFFIX $result
16773_ACEOF
16774
16775 done
16776
16777
16778 fi
16779
16780
16781 for gltype in sig_atomic_t wchar_t wint_t ; do
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16783$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16784if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
16785 $as_echo_n "(cached) " >&6
16786else
16787 eval gl_cv_type_${gltype}_suffix=no
16788 eval result=\$gl_cv_type_${gltype}_signed
16789 if test "$result" = yes; then
16790 glsufu=
16791 else
16792 glsufu=u
16793 fi
16794 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
16795 case $glsuf in
16796 '') gltype1='int';;
16797 l) gltype1='long int';;
16798 ll) gltype1='long long int';;
16799 i64) gltype1='__int64';;
16800 u) gltype1='unsigned int';;
16801 ul) gltype1='unsigned long int';;
16802 ull) gltype1='unsigned long long int';;
16803 ui64)gltype1='unsigned __int64';;
16804 esac
16805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16806/* end confdefs.h. */
16807
16808 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16809 included before <wchar.h>. */
16810 #include <stddef.h>
16811 #include <signal.h>
16812 #if HAVE_WCHAR_H
16813 # include <stdio.h>
16814 # include <time.h>
16815 # include <wchar.h>
16816 #endif
16817
16818 extern $gltype foo;
16819 extern $gltype1 foo;
16820int
16821main ()
16822{
16823
16824 ;
16825 return 0;
16826}
16827_ACEOF
16828if ac_fn_c_try_compile "$LINENO"; then :
16829 eval gl_cv_type_${gltype}_suffix=\$glsuf
16830fi
16831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16832 eval result=\$gl_cv_type_${gltype}_suffix
16833 test "$result" != no && break
16834 done
16835fi
16836eval ac_res=\$gl_cv_type_${gltype}_suffix
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16838$as_echo "$ac_res" >&6; }
16839 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16840 eval result=\$gl_cv_type_${gltype}_suffix
16841 test "$result" = no && result=
16842 eval ${GLTYPE}_SUFFIX=\$result
16843 cat >>confdefs.h <<_ACEOF
16844#define ${GLTYPE}_SUFFIX $result
16845_ACEOF
16846
16847 done
16848
16849
16850
16851 STDINT_H=stdint.h
16852 fi
16853
16854
1f5d53eb
PE
16855 # Code from module stdlib:
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866 if test $gl_cv_have_include_next = yes; then
16867 gl_cv_next_stdlib_h='<'stdlib.h'>'
16868 else
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
16870$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
16871if ${gl_cv_next_stdlib_h+:} false; then :
16872 $as_echo_n "(cached) " >&6
16873else
16874
16875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16876/* end confdefs.h. */
16877#include <stdlib.h>
16878
16879_ACEOF
16880 case "$host_os" in
16881 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16882 *) gl_absname_cpp="$ac_cpp" ;;
16883 esac
16884 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16885 sed -n '\#/stdlib.h#{
16886 s#.*"\(.*/stdlib.h\)".*#\1#
16887 s#^/[^/]#//&#
16888 p
16889 q
16890 }'`'"'
16891
16892
16893fi
16894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
16895$as_echo "$gl_cv_next_stdlib_h" >&6; }
16896 fi
16897 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
16898
16899 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16900 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16901 gl_next_as_first_directive='<'stdlib.h'>'
16902 else
16903 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16904 gl_next_as_first_directive=$gl_cv_next_stdlib_h
16905 fi
16906 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
16907
16908
16909
16910
16911
16912
16913
16c3e636
PE
16914 # Code from module strftime:
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
16926
16927
16928 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16929
16930
16931
16932
16933
16934
16935
16936$as_echo "#define my_strftime nstrftime" >>confdefs.h
16937
16938
16939
5fa4ac76
PE
16940 # Code from module sys_stat:
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957 if test $gl_cv_have_include_next = yes; then
16958 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16959 else
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
16961$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
16962if ${gl_cv_next_sys_stat_h+:} false; then :
16963 $as_echo_n "(cached) " >&6
16964else
16965
16966 if test $ac_cv_header_sys_stat_h = yes; then
16967
16968
16969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16970/* end confdefs.h. */
16971#include <sys/stat.h>
16972
16973_ACEOF
16974 case "$host_os" in
16975 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16976 *) gl_absname_cpp="$ac_cpp" ;;
16977 esac
16978 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16979 sed -n '\#/sys/stat.h#{
16980 s#.*"\(.*/sys/stat.h\)".*#\1#
16981 s#^/[^/]#//&#
16982 p
16983 q
16984 }'`'"'
16985 else
16986 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16987 fi
16988
16989
16990fi
16991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
16992$as_echo "$gl_cv_next_sys_stat_h" >&6; }
16993 fi
16994 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
16995
16996 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16997 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16998 gl_next_as_first_directive='<'sys/stat.h'>'
16999 else
17000 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17001 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
17002 fi
17003 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
17004
17005
17006
17007
17008
17009 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17010 #include <sys/stat.h>
17011"
17012if test "x$ac_cv_type_nlink_t" = xyes; then :
17013
17014else
17015
17016$as_echo "#define nlink_t int" >>confdefs.h
17017
17018fi
17019
17020
17021
17022
17023
1fd182f0 17024 # Code from module time:
067d23c9
KY
17025
17026
067d23c9 17027
1fd182f0 17028 # Code from module time_r:
067d23c9 17029
067d23c9 17030
067d23c9
KY
17031
17032
17033
067d23c9 17034
067d23c9 17035
1fd182f0
PE
17036 if test $ac_cv_have_decl_localtime_r = no; then
17037 HAVE_DECL_LOCALTIME_R=0
17038 fi
067d23c9
KY
17039
17040
1fd182f0
PE
17041 if test $ac_cv_func_localtime_r = yes; then
17042 HAVE_LOCALTIME_R=1
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17044$as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
d6974efa 17045if ${gl_cv_time_r_posix+:} false; then :
067d23c9
KY
17046 $as_echo_n "(cached) " >&6
17047else
1fd182f0 17048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 17049/* end confdefs.h. */
1fd182f0 17050#include <time.h>
067d23c9
KY
17051int
17052main ()
17053{
1fd182f0
PE
17054/* We don't need to append 'restrict's to the argument types,
17055 even though the POSIX signature has the 'restrict's,
17056 since C99 says they can't affect type compatibility. */
17057 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17058 if (ptr) return 0;
17059 /* Check the return type is a pointer.
17060 On HP-UX 10 it is 'int'. */
17061 *localtime_r (0, 0);
067d23c9
KY
17062 ;
17063 return 0;
17064}
1fd182f0 17065
067d23c9
KY
17066_ACEOF
17067if ac_fn_c_try_compile "$LINENO"; then :
1fd182f0 17068 gl_cv_time_r_posix=yes
067d23c9 17069else
1fd182f0 17070 gl_cv_time_r_posix=no
067d23c9
KY
17071fi
17072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17073
17074fi
1fd182f0
PE
17075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17076$as_echo "$gl_cv_time_r_posix" >&6; }
17077 if test $gl_cv_time_r_posix = yes; then
17078 REPLACE_LOCALTIME_R=0
17079 else
17080 REPLACE_LOCALTIME_R=1
17081 fi
17082 else
17083 HAVE_LOCALTIME_R=0
17084 fi
17085 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
067d23c9 17086
067d23c9
KY
17087
17088
743c80a7 17089
a451f14b
PE
17090
17091
17092
a451f14b 17093
1fd182f0 17094 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
a451f14b 17095
a451f14b 17096
1fd182f0 17097 :
a451f14b
PE
17098
17099 fi
17100
17101
743c80a7
PE
17102
17103
1fd182f0 17104 GNULIB_TIME_R=1
743c80a7
PE
17105
17106
17107
b06b1098 17108 # Code from module unistd:
a451f14b
PE
17109
17110
17111
e275c824
PE
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122 if test $gl_cv_have_include_next = yes; then
17123 gl_cv_next_unistd_h='<'unistd.h'>'
17124 else
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17126$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
d6974efa 17127if ${gl_cv_next_unistd_h+:} false; then :
e275c824
PE
17128 $as_echo_n "(cached) " >&6
17129else
17130
b06b1098
PE
17131 if test $ac_cv_header_unistd_h = yes; then
17132
17133
17134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e275c824
PE
17135/* end confdefs.h. */
17136#include <unistd.h>
17137
17138_ACEOF
b06b1098
PE
17139 case "$host_os" in
17140 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17141 *) gl_absname_cpp="$ac_cpp" ;;
17142 esac
17143 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17144 sed -n '\#/unistd.h#{
17145 s#.*"\(.*/unistd.h\)".*#\1#
17146 s#^/[^/]#//&#
17147 p
17148 q
17149 }'`'"'
e275c824 17150 else
b06b1098
PE
17151 gl_cv_next_unistd_h='<'unistd.h'>'
17152 fi
17153
e275c824
PE
17154
17155fi
17156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17157$as_echo "$gl_cv_next_unistd_h" >&6; }
17158 fi
17159 NEXT_UNISTD_H=$gl_cv_next_unistd_h
17160
17161 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17162 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17163 gl_next_as_first_directive='<'unistd.h'>'
17164 else
17165 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17166 gl_next_as_first_directive=$gl_cv_next_unistd_h
17167 fi
17168 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
17169
17170
17171
17172
e275c824
PE
17173 if test $ac_cv_header_unistd_h = yes; then
17174 HAVE_UNISTD_H=1
17175 else
17176 HAVE_UNISTD_H=0
17177 fi
17178
17179
17180
e275c824 17181
1fd182f0
PE
17182 # Code from module warn-on-use:
17183 # End of code from modules
a451f14b 17184
a451f14b 17185
743c80a7
PE
17186
17187
17188
17189
17190
17191
17192
17193 gltests_libdeps=
17194 gltests_ltlibdeps=
17195
17196
17197
17198
17199
a451f14b
PE
17200
17201
17202
17203
743c80a7
PE
17204 gl_source_base='tests'
17205 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
17206
17207 gl_module_indicator_condition=$gltests_WITNESS
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217 LIBGNU_LIBDEPS="$gl_libdeps"
17218
17219 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
17220
17221
17222
f68c809d
PE
17223# Emacs does not care about lstat's behavior on files whose names end in
17224# trailing slashes, so it does not use the gnulib lstat module.
17225# However, Emacs does want the "#define lstat stat" in sys/stat.h
17226# when lstat does not exist, so it pretends to use the lstat module
17227# even though it implements only the lstat-checking part of that module.
17228
17229
17230
17231test $ac_cv_func_lstat = yes || HAVE_LSTAT=0
17232
17233
17234
17235 GNULIB_LSTAT=1
17236
17237
17238
17239
067d23c9
KY
17240# UNIX98 PTYs.
17241for ac_func in grantpt
17242do :
17243 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
d6974efa 17244if test "x$ac_cv_func_grantpt" = xyes; then :
067d23c9
KY
17245 cat >>confdefs.h <<_ACEOF
17246#define HAVE_GRANTPT 1
17247_ACEOF
17248
17249fi
17250done
17251
17252
17253# PTY-related GNU extensions.
17254for ac_func in getpt
17255do :
17256 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
d6974efa 17257if test "x$ac_cv_func_getpt" = xyes; then :
067d23c9
KY
17258 cat >>confdefs.h <<_ACEOF
17259#define HAVE_GETPT 1
17260_ACEOF
17261
17262fi
17263done
17264
17265
17266# Check this now, so that we will NOT find the above functions in ncurses.
17267# That is because we have not set up to link ncurses in lib-src.
17268# It's better to believe a function is not available
17269# than to expect to find it in ncurses.
17270# Also we need tputs and friends to be able to build at all.
17271have_tputs_et_al=true
17272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
17273$as_echo_n "checking for library containing tputs... " >&6; }
d6974efa 17274if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
17275 $as_echo_n "(cached) " >&6
17276else
17277 ac_func_search_save_LIBS=$LIBS
17278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17279/* end confdefs.h. */
17280
17281/* Override any GCC internal prototype to avoid an error.
17282 Use char because int might match the return type of a GCC
17283 builtin and then its argument prototype would still apply. */
17284#ifdef __cplusplus
17285extern "C"
17286#endif
17287char tputs ();
17288int
17289main ()
17290{
17291return tputs ();
17292 ;
17293 return 0;
17294}
17295_ACEOF
17296for ac_lib in '' ncurses terminfo termcap; do
17297 if test -z "$ac_lib"; then
17298 ac_res="none required"
17299 else
17300 ac_res=-l$ac_lib
17301 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17302 fi
17303 if ac_fn_c_try_link "$LINENO"; then :
17304 ac_cv_search_tputs=$ac_res
17305fi
17306rm -f core conftest.err conftest.$ac_objext \
17307 conftest$ac_exeext
d6974efa 17308 if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
17309 break
17310fi
17311done
d6974efa 17312if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
17313
17314else
17315 ac_cv_search_tputs=no
17316fi
17317rm conftest.$ac_ext
17318LIBS=$ac_func_search_save_LIBS
17319fi
17320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
17321$as_echo "$ac_cv_search_tputs" >&6; }
17322ac_res=$ac_cv_search_tputs
17323if test "$ac_res" != no; then :
17324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17325
17326else
17327 have_tputs_et_al=false
17328fi
17329
17330if test "$have_tputs_et_al" != true; then
2018939f 17331 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
067d23c9
KY
17332Maybe some development libraries/packages are missing? Try installing
17333libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
17334fi
17335# Must define this when any termcap library is found.
17336
17337$as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
17338
17339## FIXME This was the cpp logic, but I am not sure it is right.
17340## The above test has not necessarily found libncurses.
17341HAVE_LIBNCURSES=yes
17342
17343## Use terminfo instead of termcap?
17344## Note only system files NOT using terminfo are:
17345## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
17346## darwin|gnu without ncurses.
17347TERMINFO=no
17348LIBS_TERMCAP=
17349case "$opsys" in
17350 ## cygwin: Fewer environment variables to go wrong, more terminal types.
17351 ## hpux10-20: Use the system provided termcap(3) library.
17352 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
17353 ## is necessary. Otherwise Emacs dumps core when run -nw.
17354 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
17355
17356 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
17357 ## The ncurses library has been moved out of the System framework in
17358 ## Mac OS X 10.2. So if configure detects it, set the command-line
17359 ## option to use it.
17360 darwin|gnu*)
17361 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
17362 if test "x$HAVE_LIBNCURSES" = "xyes"; then
17363 TERMINFO=yes
17364 LIBS_TERMCAP="-lncurses"
17365 fi
17366 ;;
17367
17368 freebsd)
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
17370$as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
d6974efa 17371 if ${emacs_cv_freebsd_terminfo+:} false; then :
067d23c9
KY
17372 $as_echo_n "(cached) " >&6
17373else
17374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17375/* end confdefs.h. */
17376#include <osreldate.h>
17377int
17378main ()
17379{
17380#if __FreeBSD_version < 400000
17381fail;
17382#endif
17383
17384 ;
17385 return 0;
17386}
17387_ACEOF
17388if ac_fn_c_try_link "$LINENO"; then :
17389 emacs_cv_freebsd_terminfo=yes
17390else
17391 emacs_cv_freebsd_terminfo=no
17392fi
17393rm -f core conftest.err conftest.$ac_objext \
17394 conftest$ac_exeext conftest.$ac_ext
17395fi
17396
17397
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
17399$as_echo "$emacs_cv_freebsd_terminfo" >&6; }
17400
17401 if test $emacs_cv_freebsd_terminfo = yes; then
17402 TERMINFO=yes
17403 LIBS_TERMCAP="-lncurses"
17404 else
17405 LIBS_TERMCAP="-ltermcap"
17406 fi
17407 ;;
17408
17409 netbsd)
17410 if test $ac_cv_search_tputs = -lterminfo; then
17411 TERMINFO=yes
17412 LIBS_TERMCAP="-lterminfo"
17413 else
17414 LIBS_TERMCAP="-ltermcap"
17415 fi
17416 ;;
17417
17418esac
17419
17420case "$opsys" in
17421 ## hpux: Make sure we get select from libc rather than from libcurses
17422 ## because libcurses on HPUX 10.10 has a broken version of select.
17423 ## We used to use -lc -lcurses, but this may be cleaner.
17424 hpux*) LIBS_TERMCAP="-ltermcap" ;;
17425
17426 openbsd) LIBS_TERMCAP="-lncurses" ;;
17427
17428 ## Must use system termcap, if we use any termcap. It does special things.
17429 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
17430esac
17431
17432TERMCAP_OBJ=tparam.o
17433if test $TERMINFO = yes; then
17434
17435$as_echo "#define TERMINFO 1" >>confdefs.h
17436
17437
17438 ## Default used to be -ltermcap. Add a case above if need something else.
17439 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
17440
17441 TERMCAP_OBJ=terminfo.o
17442fi
17443
17444
17445
17446
17447# Do we have res_init, for detecting changes in /etc/resolv.conf?
17448resolv=no
17449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17450/* end confdefs.h. */
17451#include <netinet/in.h>
17452#include <arpa/nameser.h>
17453#include <resolv.h>
17454int
17455main ()
17456{
17457return res_init();
17458 ;
17459 return 0;
17460}
17461_ACEOF
17462if ac_fn_c_try_link "$LINENO"; then :
17463 have_res_init=yes
17464else
17465 have_res_init=no
17466fi
17467rm -f core conftest.err conftest.$ac_objext \
17468 conftest$ac_exeext conftest.$ac_ext
17469if test "$have_res_init" = no; then
17470 OLIBS="$LIBS"
17471 LIBS="$LIBS -lresolv"
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
17473$as_echo_n "checking for res_init with -lresolv... " >&6; }
17474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17475/* end confdefs.h. */
17476#include <netinet/in.h>
17477#include <arpa/nameser.h>
17478#include <resolv.h>
17479int
17480main ()
17481{
17482return res_init();
17483 ;
17484 return 0;
17485}
17486_ACEOF
17487if ac_fn_c_try_link "$LINENO"; then :
17488 have_res_init=yes
17489else
17490 have_res_init=no
17491fi
17492rm -f core conftest.err conftest.$ac_objext \
17493 conftest$ac_exeext conftest.$ac_ext
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
17495$as_echo "$have_res_init" >&6; }
17496 if test "$have_res_init" = yes ; then
17497 resolv=yes
17498 fi
17499 LIBS="$OLIBS"
17500fi
17501
17502if test "$have_res_init" = yes; then
17503
17504$as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
17505
17506fi
17507
17508# Do we need the Hesiod library to provide the support routines?
17509LIBHESIOD=
17510if test "$with_hesiod" != no ; then
17511 # Don't set $LIBS here -- see comments above. FIXME which comments?
17512 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
d6974efa 17513if test "x$ac_cv_func_res_send" = xyes; then :
067d23c9
KY
17514
17515else
17516 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
d6974efa 17517if test "x$ac_cv_func___res_send" = xyes; then :
067d23c9
KY
17518
17519else
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
17521$as_echo_n "checking for res_send in -lresolv... " >&6; }
d6974efa 17522if ${ac_cv_lib_resolv_res_send+:} false; then :
067d23c9
KY
17523 $as_echo_n "(cached) " >&6
17524else
17525 ac_check_lib_save_LIBS=$LIBS
17526LIBS="-lresolv $LIBS"
17527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17528/* end confdefs.h. */
17529
17530/* Override any GCC internal prototype to avoid an error.
17531 Use char because int might match the return type of a GCC
17532 builtin and then its argument prototype would still apply. */
17533#ifdef __cplusplus
17534extern "C"
17535#endif
17536char res_send ();
17537int
17538main ()
17539{
17540return res_send ();
17541 ;
17542 return 0;
17543}
17544_ACEOF
17545if ac_fn_c_try_link "$LINENO"; then :
17546 ac_cv_lib_resolv_res_send=yes
17547else
17548 ac_cv_lib_resolv_res_send=no
17549fi
17550rm -f core conftest.err conftest.$ac_objext \
17551 conftest$ac_exeext conftest.$ac_ext
17552LIBS=$ac_check_lib_save_LIBS
17553fi
17554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
17555$as_echo "$ac_cv_lib_resolv_res_send" >&6; }
d6974efa 17556if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
067d23c9
KY
17557 resolv=yes
17558else
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
17560$as_echo_n "checking for __res_send in -lresolv... " >&6; }
d6974efa 17561if ${ac_cv_lib_resolv___res_send+:} false; then :
067d23c9
KY
17562 $as_echo_n "(cached) " >&6
17563else
17564 ac_check_lib_save_LIBS=$LIBS
17565LIBS="-lresolv $LIBS"
17566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17567/* end confdefs.h. */
17568
17569/* Override any GCC internal prototype to avoid an error.
17570 Use char because int might match the return type of a GCC
17571 builtin and then its argument prototype would still apply. */
17572#ifdef __cplusplus
17573extern "C"
17574#endif
17575char __res_send ();
17576int
17577main ()
17578{
17579return __res_send ();
17580 ;
17581 return 0;
17582}
17583_ACEOF
17584if ac_fn_c_try_link "$LINENO"; then :
17585 ac_cv_lib_resolv___res_send=yes
17586else
17587 ac_cv_lib_resolv___res_send=no
17588fi
17589rm -f core conftest.err conftest.$ac_objext \
17590 conftest$ac_exeext conftest.$ac_ext
17591LIBS=$ac_check_lib_save_LIBS
17592fi
17593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
17594$as_echo "$ac_cv_lib_resolv___res_send" >&6; }
d6974efa 17595if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
067d23c9
KY
17596 resolv=yes
17597fi
17598
17599fi
17600
17601fi
17602
17603fi
17604
17605 if test "$resolv" = yes ; then
17606 RESOLVLIB=-lresolv
17607 else
17608 RESOLVLIB=
17609 fi
17610 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
d6974efa 17611if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
067d23c9
KY
17612
17613else
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
17615$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
d6974efa 17616if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
067d23c9
KY
17617 $as_echo_n "(cached) " >&6
17618else
17619 ac_check_lib_save_LIBS=$LIBS
17620LIBS="-lhesiod $RESOLVLIB $LIBS"
17621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17622/* end confdefs.h. */
17623
17624/* Override any GCC internal prototype to avoid an error.
17625 Use char because int might match the return type of a GCC
17626 builtin and then its argument prototype would still apply. */
17627#ifdef __cplusplus
17628extern "C"
17629#endif
17630char hes_getmailhost ();
17631int
17632main ()
17633{
17634return hes_getmailhost ();
17635 ;
17636 return 0;
17637}
17638_ACEOF
17639if ac_fn_c_try_link "$LINENO"; then :
17640 ac_cv_lib_hesiod_hes_getmailhost=yes
17641else
17642 ac_cv_lib_hesiod_hes_getmailhost=no
17643fi
17644rm -f core conftest.err conftest.$ac_objext \
17645 conftest$ac_exeext conftest.$ac_ext
17646LIBS=$ac_check_lib_save_LIBS
17647fi
17648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17649$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
d6974efa 17650if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
067d23c9
KY
17651 hesiod=yes
17652else
17653 :
17654fi
17655
17656fi
17657
17658
17659 if test x"$hesiod" = xyes; then
17660
17661$as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
17662
17663 LIBHESIOD=-lhesiod
17664 fi
17665fi
17666
17667
17668# Do we need libresolv (due to res_init or Hesiod)?
17669if test "$resolv" = yes ; then
17670
17671$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
17672
17673 LIBRESOLV=-lresolv
17674else
17675 LIBRESOLV=
17676fi
17677
17678
17679# These tell us which Kerberos-related libraries to use.
17680COM_ERRLIB=
17681CRYPTOLIB=
17682KRB5LIB=
17683DESLIB=
17684KRB4LIB=
17685
17686if test "${with_kerberos}" != no; then
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
17688$as_echo_n "checking for com_err in -lcom_err... " >&6; }
d6974efa 17689if ${ac_cv_lib_com_err_com_err+:} false; then :
067d23c9
KY
17690 $as_echo_n "(cached) " >&6
17691else
17692 ac_check_lib_save_LIBS=$LIBS
17693LIBS="-lcom_err $LIBS"
17694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17695/* end confdefs.h. */
17696
17697/* Override any GCC internal prototype to avoid an error.
17698 Use char because int might match the return type of a GCC
17699 builtin and then its argument prototype would still apply. */
17700#ifdef __cplusplus
17701extern "C"
17702#endif
17703char com_err ();
17704int
17705main ()
17706{
17707return com_err ();
17708 ;
17709 return 0;
17710}
17711_ACEOF
17712if ac_fn_c_try_link "$LINENO"; then :
17713 ac_cv_lib_com_err_com_err=yes
17714else
17715 ac_cv_lib_com_err_com_err=no
17716fi
17717rm -f core conftest.err conftest.$ac_objext \
17718 conftest$ac_exeext conftest.$ac_ext
17719LIBS=$ac_check_lib_save_LIBS
17720fi
17721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
17722$as_echo "$ac_cv_lib_com_err_com_err" >&6; }
d6974efa 17723if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
067d23c9
KY
17724 have_com_err=yes
17725else
17726 have_com_err=no
17727fi
17728
17729 if test $have_com_err = yes; then
17730 COM_ERRLIB=-lcom_err
17731 LIBS="$COM_ERRLIB $LIBS"
17732
17733$as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
17734
17735 fi
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17737$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
d6974efa 17738if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
067d23c9
KY
17739 $as_echo_n "(cached) " >&6
17740else
17741 ac_check_lib_save_LIBS=$LIBS
17742LIBS="-lcrypto $LIBS"
17743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17744/* end confdefs.h. */
17745
17746/* Override any GCC internal prototype to avoid an error.
17747 Use char because int might match the return type of a GCC
17748 builtin and then its argument prototype would still apply. */
17749#ifdef __cplusplus
17750extern "C"
17751#endif
17752char mit_des_cbc_encrypt ();
17753int
17754main ()
17755{
17756return mit_des_cbc_encrypt ();
17757 ;
17758 return 0;
17759}
17760_ACEOF
17761if ac_fn_c_try_link "$LINENO"; then :
17762 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17763else
17764 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17765fi
17766rm -f core conftest.err conftest.$ac_objext \
17767 conftest$ac_exeext conftest.$ac_ext
17768LIBS=$ac_check_lib_save_LIBS
17769fi
17770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17771$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
d6974efa 17772if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
067d23c9
KY
17773 have_crypto=yes
17774else
17775 have_crypto=no
17776fi
17777
17778 if test $have_crypto = yes; then
17779 CRYPTOLIB=-lcrypto
17780 LIBS="$CRYPTOLIB $LIBS"
17781
17782$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
17783
17784 fi
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17786$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
d6974efa 17787if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
067d23c9
KY
17788 $as_echo_n "(cached) " >&6
17789else
17790 ac_check_lib_save_LIBS=$LIBS
17791LIBS="-lk5crypto $LIBS"
17792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17793/* end confdefs.h. */
17794
17795/* Override any GCC internal prototype to avoid an error.
17796 Use char because int might match the return type of a GCC
17797 builtin and then its argument prototype would still apply. */
17798#ifdef __cplusplus
17799extern "C"
17800#endif
17801char mit_des_cbc_encrypt ();
17802int
17803main ()
17804{
17805return mit_des_cbc_encrypt ();
17806 ;
17807 return 0;
17808}
17809_ACEOF
17810if ac_fn_c_try_link "$LINENO"; then :
17811 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17812else
17813 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17814fi
17815rm -f core conftest.err conftest.$ac_objext \
17816 conftest$ac_exeext conftest.$ac_ext
17817LIBS=$ac_check_lib_save_LIBS
17818fi
17819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17820$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
d6974efa 17821if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
067d23c9
KY
17822 have_k5crypto=yes
17823else
17824 have_k5crypto=no
17825fi
17826
17827 if test $have_k5crypto = yes; then
17828 CRYPTOLIB=-lk5crypto
17829 LIBS="$CRYPTOLIB $LIBS"
17830
17831$as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
17832
17833 fi
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
17835$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
d6974efa 17836if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
067d23c9
KY
17837 $as_echo_n "(cached) " >&6
17838else
17839 ac_check_lib_save_LIBS=$LIBS
17840LIBS="-lkrb5 $LIBS"
17841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17842/* end confdefs.h. */
17843
17844/* Override any GCC internal prototype to avoid an error.
17845 Use char because int might match the return type of a GCC
17846 builtin and then its argument prototype would still apply. */
17847#ifdef __cplusplus
17848extern "C"
17849#endif
17850char krb5_init_context ();
17851int
17852main ()
17853{
17854return krb5_init_context ();
17855 ;
17856 return 0;
17857}
17858_ACEOF
17859if ac_fn_c_try_link "$LINENO"; then :
17860 ac_cv_lib_krb5_krb5_init_context=yes
17861else
17862 ac_cv_lib_krb5_krb5_init_context=no
17863fi
17864rm -f core conftest.err conftest.$ac_objext \
17865 conftest$ac_exeext conftest.$ac_ext
17866LIBS=$ac_check_lib_save_LIBS
17867fi
17868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17869$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
d6974efa 17870if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
067d23c9
KY
17871 have_krb5=yes
17872else
17873 have_krb5=no
17874fi
17875
17876 if test $have_krb5=yes; then
17877 KRB5LIB=-lkrb5
17878 LIBS="$KRB5LIB $LIBS"
17879
17880$as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
17881
17882 fi
17883 if test "${with_kerberos5}" = no; then
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
17885$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
d6974efa 17886if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
067d23c9
KY
17887 $as_echo_n "(cached) " >&6
17888else
17889 ac_check_lib_save_LIBS=$LIBS
17890LIBS="-ldes425 $LIBS"
17891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892/* end confdefs.h. */
17893
17894/* Override any GCC internal prototype to avoid an error.
17895 Use char because int might match the return type of a GCC
17896 builtin and then its argument prototype would still apply. */
17897#ifdef __cplusplus
17898extern "C"
17899#endif
17900char des_cbc_encrypt ();
17901int
17902main ()
17903{
17904return des_cbc_encrypt ();
17905 ;
17906 return 0;
17907}
17908_ACEOF
17909if ac_fn_c_try_link "$LINENO"; then :
17910 ac_cv_lib_des425_des_cbc_encrypt=yes
17911else
17912 ac_cv_lib_des425_des_cbc_encrypt=no
17913fi
17914rm -f core conftest.err conftest.$ac_objext \
17915 conftest$ac_exeext conftest.$ac_ext
17916LIBS=$ac_check_lib_save_LIBS
17917fi
17918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17919$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
d6974efa 17920if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
067d23c9
KY
17921 have_des425=yes
17922else
17923 have_des425=no
17924fi
17925
17926 if test $have_des425 = yes; then
17927 DESLIB=-ldes425
17928 LIBS="$DESLIB $LIBS"
17929
17930$as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
17931
17932 else
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
17934$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
d6974efa 17935if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
067d23c9
KY
17936 $as_echo_n "(cached) " >&6
17937else
17938 ac_check_lib_save_LIBS=$LIBS
17939LIBS="-ldes $LIBS"
17940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17941/* end confdefs.h. */
17942
17943/* Override any GCC internal prototype to avoid an error.
17944 Use char because int might match the return type of a GCC
17945 builtin and then its argument prototype would still apply. */
17946#ifdef __cplusplus
17947extern "C"
17948#endif
17949char des_cbc_encrypt ();
17950int
17951main ()
17952{
17953return des_cbc_encrypt ();
17954 ;
17955 return 0;
17956}
17957_ACEOF
17958if ac_fn_c_try_link "$LINENO"; then :
17959 ac_cv_lib_des_des_cbc_encrypt=yes
17960else
17961 ac_cv_lib_des_des_cbc_encrypt=no
17962fi
17963rm -f core conftest.err conftest.$ac_objext \
17964 conftest$ac_exeext conftest.$ac_ext
17965LIBS=$ac_check_lib_save_LIBS
17966fi
17967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17968$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
d6974efa 17969if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
067d23c9
KY
17970 have_des=yes
17971else
17972 have_des=no
17973fi
17974
17975 if test $have_des = yes; then
17976 DESLIB=-ldes
17977 LIBS="$DESLIB $LIBS"
17978
17979$as_echo "#define HAVE_LIBDES 1" >>confdefs.h
17980
17981 fi
17982 fi
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
17984$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
d6974efa 17985if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
067d23c9
KY
17986 $as_echo_n "(cached) " >&6
17987else
17988 ac_check_lib_save_LIBS=$LIBS
17989LIBS="-lkrb4 $LIBS"
17990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991/* end confdefs.h. */
17992
17993/* Override any GCC internal prototype to avoid an error.
17994 Use char because int might match the return type of a GCC
17995 builtin and then its argument prototype would still apply. */
17996#ifdef __cplusplus
17997extern "C"
17998#endif
17999char krb_get_cred ();
18000int
18001main ()
18002{
18003return krb_get_cred ();
18004 ;
18005 return 0;
18006}
18007_ACEOF
18008if ac_fn_c_try_link "$LINENO"; then :
18009 ac_cv_lib_krb4_krb_get_cred=yes
18010else
18011 ac_cv_lib_krb4_krb_get_cred=no
18012fi
18013rm -f core conftest.err conftest.$ac_objext \
18014 conftest$ac_exeext conftest.$ac_ext
18015LIBS=$ac_check_lib_save_LIBS
18016fi
18017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18018$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
d6974efa 18019if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
067d23c9
KY
18020 have_krb4=yes
18021else
18022 have_krb4=no
18023fi
18024
18025 if test $have_krb4 = yes; then
18026 KRB4LIB=-lkrb4
18027 LIBS="$KRB4LIB $LIBS"
18028
18029$as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
18030
18031 else
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
18033$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
d6974efa 18034if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
067d23c9
KY
18035 $as_echo_n "(cached) " >&6
18036else
18037 ac_check_lib_save_LIBS=$LIBS
18038LIBS="-lkrb $LIBS"
18039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18040/* end confdefs.h. */
18041
18042/* Override any GCC internal prototype to avoid an error.
18043 Use char because int might match the return type of a GCC
18044 builtin and then its argument prototype would still apply. */
18045#ifdef __cplusplus
18046extern "C"
18047#endif
18048char krb_get_cred ();
18049int
18050main ()
18051{
18052return krb_get_cred ();
18053 ;
18054 return 0;
18055}
18056_ACEOF
18057if ac_fn_c_try_link "$LINENO"; then :
18058 ac_cv_lib_krb_krb_get_cred=yes
18059else
18060 ac_cv_lib_krb_krb_get_cred=no
18061fi
18062rm -f core conftest.err conftest.$ac_objext \
18063 conftest$ac_exeext conftest.$ac_ext
18064LIBS=$ac_check_lib_save_LIBS
18065fi
18066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18067$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
d6974efa 18068if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
067d23c9
KY
18069 have_krb=yes
18070else
18071 have_krb=no
18072fi
18073
18074 if test $have_krb = yes; then
18075 KRB4LIB=-lkrb
18076 LIBS="$KRB4LIB $LIBS"
18077
18078$as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18079
18080 fi
18081 fi
18082 fi
18083
18084 if test "${with_kerberos5}" != no; then
18085 for ac_header in krb5.h
18086do :
18087 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
d6974efa 18088if test "x$ac_cv_header_krb5_h" = xyes; then :
067d23c9
KY
18089 cat >>confdefs.h <<_ACEOF
18090#define HAVE_KRB5_H 1
18091_ACEOF
18092 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18093"
d6974efa 18094if test "x$ac_cv_member_krb5_error_text" = xyes; then :
067d23c9
KY
18095
18096cat >>confdefs.h <<_ACEOF
18097#define HAVE_KRB5_ERROR_TEXT 1
18098_ACEOF
18099
18100
18101fi
18102ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18103"
d6974efa 18104if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
067d23c9
KY
18105
18106cat >>confdefs.h <<_ACEOF
18107#define HAVE_KRB5_ERROR_E_TEXT 1
18108_ACEOF
18109
18110
18111fi
18112
18113fi
18114
18115done
18116
18117 else
18118 for ac_header in des.h
18119do :
18120 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
d6974efa 18121if test "x$ac_cv_header_des_h" = xyes; then :
067d23c9
KY
18122 cat >>confdefs.h <<_ACEOF
18123#define HAVE_DES_H 1
18124_ACEOF
18125
18126else
18127 for ac_header in kerberosIV/des.h
18128do :
18129 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
d6974efa 18130if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
067d23c9
KY
18131 cat >>confdefs.h <<_ACEOF
18132#define HAVE_KERBEROSIV_DES_H 1
18133_ACEOF
18134
18135else
18136 for ac_header in kerberos/des.h
18137do :
18138 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
d6974efa 18139if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
067d23c9
KY
18140 cat >>confdefs.h <<_ACEOF
18141#define HAVE_KERBEROS_DES_H 1
18142_ACEOF
18143
18144fi
18145
18146done
18147
18148fi
18149
18150done
18151
18152fi
18153
18154done
18155
18156 for ac_header in krb.h
18157do :
18158 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
d6974efa 18159if test "x$ac_cv_header_krb_h" = xyes; then :
067d23c9
KY
18160 cat >>confdefs.h <<_ACEOF
18161#define HAVE_KRB_H 1
18162_ACEOF
18163
18164else
18165 for ac_header in kerberosIV/krb.h
18166do :
18167 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
d6974efa 18168if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
067d23c9
KY
18169 cat >>confdefs.h <<_ACEOF
18170#define HAVE_KERBEROSIV_KRB_H 1
18171_ACEOF
18172
18173else
18174 for ac_header in kerberos/krb.h
18175do :
18176 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
d6974efa 18177if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
067d23c9
KY
18178 cat >>confdefs.h <<_ACEOF
18179#define HAVE_KERBEROS_KRB_H 1
18180_ACEOF
18181
18182fi
18183
18184done
18185
18186fi
18187
18188done
18189
18190fi
18191
18192done
18193
18194 fi
18195 for ac_header in com_err.h
18196do :
18197 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
d6974efa 18198if test "x$ac_cv_header_com_err_h" = xyes; then :
067d23c9
KY
18199 cat >>confdefs.h <<_ACEOF
18200#define HAVE_COM_ERR_H 1
18201_ACEOF
18202
18203fi
18204
18205done
18206
18207fi
18208
18209
18210
18211
18212
18213
18214
18215# Solaris requires -lintl if you want strerror (which calls dgettext)
18216# to return localized messages.
18217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
18218$as_echo_n "checking for dgettext in -lintl... " >&6; }
d6974efa 18219if ${ac_cv_lib_intl_dgettext+:} false; then :
067d23c9
KY
18220 $as_echo_n "(cached) " >&6
18221else
18222 ac_check_lib_save_LIBS=$LIBS
18223LIBS="-lintl $LIBS"
18224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18225/* end confdefs.h. */
18226
18227/* Override any GCC internal prototype to avoid an error.
18228 Use char because int might match the return type of a GCC
18229 builtin and then its argument prototype would still apply. */
18230#ifdef __cplusplus
18231extern "C"
18232#endif
18233char dgettext ();
18234int
18235main ()
18236{
18237return dgettext ();
18238 ;
18239 return 0;
18240}
18241_ACEOF
18242if ac_fn_c_try_link "$LINENO"; then :
18243 ac_cv_lib_intl_dgettext=yes
18244else
18245 ac_cv_lib_intl_dgettext=no
18246fi
18247rm -f core conftest.err conftest.$ac_objext \
18248 conftest$ac_exeext conftest.$ac_ext
18249LIBS=$ac_check_lib_save_LIBS
18250fi
18251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
18252$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
d6974efa 18253if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
067d23c9
KY
18254 cat >>confdefs.h <<_ACEOF
18255#define HAVE_LIBINTL 1
18256_ACEOF
18257
18258 LIBS="-lintl $LIBS"
18259
18260fi
18261
18262
18263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
18264$as_echo_n "checking whether localtime caches TZ... " >&6; }
d6974efa 18265if ${emacs_cv_localtime_cache+:} false; then :
067d23c9
KY
18266 $as_echo_n "(cached) " >&6
18267else
18268 if test x$ac_cv_func_tzset = xyes; then
18269if test "$cross_compiling" = yes; then :
18270 # If we have tzset, assume the worst when cross-compiling.
18271emacs_cv_localtime_cache=yes
18272else
18273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18274/* end confdefs.h. */
18275#include <time.h>
18276char TZ_GMT0[] = "TZ=GMT0";
18277char TZ_PST8[] = "TZ=PST8";
18278main()
18279{
18280 time_t now = time ((time_t *) 0);
18281 int hour_GMT0, hour_unset;
18282 if (putenv (TZ_GMT0) != 0)
18283 exit (1);
18284 hour_GMT0 = localtime (&now)->tm_hour;
18285 unsetenv("TZ");
18286 hour_unset = localtime (&now)->tm_hour;
18287 if (putenv (TZ_PST8) != 0)
18288 exit (1);
18289 if (localtime (&now)->tm_hour == hour_GMT0)
18290 exit (1);
18291 unsetenv("TZ");
18292 if (localtime (&now)->tm_hour != hour_unset)
18293 exit (1);
18294 exit (0);
18295}
18296_ACEOF
18297if ac_fn_c_try_run "$LINENO"; then :
18298 emacs_cv_localtime_cache=no
18299else
18300 emacs_cv_localtime_cache=yes
18301fi
18302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18303 conftest.$ac_objext conftest.beam conftest.$ac_ext
18304fi
18305
18306else
18307 # If we lack tzset, report that localtime does not cache TZ,
18308 # since we can't invalidate the cache if we don't have tzset.
18309 emacs_cv_localtime_cache=no
18310fi
18311fi
18312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
18313$as_echo "$emacs_cv_localtime_cache" >&6; }
18314if test $emacs_cv_localtime_cache = yes; then
18315
18316$as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
18317
18318fi
18319
18320if test "x$HAVE_TIMEVAL" = xyes; then
18321 for ac_func in gettimeofday
18322do :
18323 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
d6974efa 18324if test "x$ac_cv_func_gettimeofday" = xyes; then :
067d23c9
KY
18325 cat >>confdefs.h <<_ACEOF
18326#define HAVE_GETTIMEOFDAY 1
18327_ACEOF
18328
18329fi
18330done
18331
18332 if test $ac_cv_func_gettimeofday = yes; then
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
18334$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
d6974efa 18335if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
067d23c9
KY
18336 $as_echo_n "(cached) " >&6
18337else
18338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18339/* end confdefs.h. */
18340
18341#ifdef TIME_WITH_SYS_TIME
18342#include <sys/time.h>
18343#include <time.h>
18344#else
18345#ifdef HAVE_SYS_TIME_H
18346#include <sys/time.h>
18347#else
18348#include <time.h>
18349#endif
18350#endif
18351int
18352main ()
18353{
18354struct timeval time;
18355 gettimeofday (&time, 0);
18356 ;
18357 return 0;
18358}
18359_ACEOF
18360if ac_fn_c_try_compile "$LINENO"; then :
18361 emacs_cv_gettimeofday_two_arguments=yes
18362else
18363 emacs_cv_gettimeofday_two_arguments=no
18364fi
18365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18366fi
18367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
18368$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
18369 if test $emacs_cv_gettimeofday_two_arguments = no; then
18370
18371$as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
18372
18373 fi
18374 fi
18375fi
18376
18377ok_so_far=yes
18378ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
d6974efa 18379if test "x$ac_cv_func_socket" = xyes; then :
067d23c9
KY
18380
18381else
18382 ok_so_far=no
18383fi
18384
18385if test $ok_so_far = yes; then
18386 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
d6974efa 18387if test "x$ac_cv_header_netinet_in_h" = xyes; then :
067d23c9
KY
18388
18389else
18390 ok_so_far=no
18391fi
18392
18393
18394fi
18395if test $ok_so_far = yes; then
18396 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
d6974efa 18397if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
067d23c9
KY
18398
18399else
18400 ok_so_far=no
18401fi
18402
18403
18404fi
18405if test $ok_so_far = yes; then
18406
18407$as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
18408
18409fi
18410
18411if test -f /usr/lpp/X11/bin/smt.exp; then
18412
18413$as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
18414
18415fi
18416
18417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
18418$as_echo_n "checking whether system supports dynamic ptys... " >&6; }
18419if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18421$as_echo "yes" >&6; }
18422
18423$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
18424
18425else
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18427$as_echo "no" >&6; }
18428fi
18429
18430ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
d6974efa 18431if test "x$ac_cv_type_pid_t" = xyes; then :
067d23c9
KY
18432
18433else
18434
18435cat >>confdefs.h <<_ACEOF
18436#define pid_t int
18437_ACEOF
18438
18439fi
18440
18441for ac_header in vfork.h
18442do :
18443 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
d6974efa 18444if test "x$ac_cv_header_vfork_h" = xyes; then :
067d23c9
KY
18445 cat >>confdefs.h <<_ACEOF
18446#define HAVE_VFORK_H 1
18447_ACEOF
18448
18449fi
18450
18451done
18452
18453for ac_func in fork vfork
18454do :
18455 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18456ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 18457if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
18458 cat >>confdefs.h <<_ACEOF
18459#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18460_ACEOF
18461
18462fi
18463done
18464
18465if test "x$ac_cv_func_fork" = xyes; then
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18467$as_echo_n "checking for working fork... " >&6; }
d6974efa 18468if ${ac_cv_func_fork_works+:} false; then :
067d23c9
KY
18469 $as_echo_n "(cached) " >&6
18470else
18471 if test "$cross_compiling" = yes; then :
18472 ac_cv_func_fork_works=cross
18473else
18474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18475/* end confdefs.h. */
18476$ac_includes_default
18477int
18478main ()
18479{
18480
18481 /* By Ruediger Kuhlmann. */
18482 return fork () < 0;
18483
18484 ;
18485 return 0;
18486}
18487_ACEOF
18488if ac_fn_c_try_run "$LINENO"; then :
18489 ac_cv_func_fork_works=yes
18490else
18491 ac_cv_func_fork_works=no
18492fi
18493rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18494 conftest.$ac_objext conftest.beam conftest.$ac_ext
18495fi
18496
18497fi
18498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18499$as_echo "$ac_cv_func_fork_works" >&6; }
18500
18501else
18502 ac_cv_func_fork_works=$ac_cv_func_fork
18503fi
18504if test "x$ac_cv_func_fork_works" = xcross; then
18505 case $host in
18506 *-*-amigaos* | *-*-msdosdjgpp*)
18507 # Override, as these systems have only a dummy fork() stub
18508 ac_cv_func_fork_works=no
18509 ;;
18510 *)
18511 ac_cv_func_fork_works=yes
18512 ;;
18513 esac
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18515$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18516fi
18517ac_cv_func_vfork_works=$ac_cv_func_vfork
18518if test "x$ac_cv_func_vfork" = xyes; then
18519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
18520$as_echo_n "checking for working vfork... " >&6; }
d6974efa 18521if ${ac_cv_func_vfork_works+:} false; then :
067d23c9
KY
18522 $as_echo_n "(cached) " >&6
18523else
18524 if test "$cross_compiling" = yes; then :
18525 ac_cv_func_vfork_works=cross
18526else
18527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18528/* end confdefs.h. */
18529/* Thanks to Paul Eggert for this test. */
18530$ac_includes_default
18531#include <sys/wait.h>
18532#ifdef HAVE_VFORK_H
18533# include <vfork.h>
18534#endif
18535/* On some sparc systems, changes by the child to local and incoming
18536 argument registers are propagated back to the parent. The compiler
18537 is told about this with #include <vfork.h>, but some compilers
18538 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18539 static variable whose address is put into a register that is
18540 clobbered by the vfork. */
18541static void
18542#ifdef __cplusplus
18543sparc_address_test (int arg)
18544# else
18545sparc_address_test (arg) int arg;
18546#endif
18547{
18548 static pid_t child;
18549 if (!child) {
18550 child = vfork ();
18551 if (child < 0) {
18552 perror ("vfork");
18553 _exit(2);
18554 }
18555 if (!child) {
18556 arg = getpid();
18557 write(-1, "", 0);
18558 _exit (arg);
18559 }
18560 }
18561}
18562
18563int
18564main ()
18565{
18566 pid_t parent = getpid ();
18567 pid_t child;
18568
18569 sparc_address_test (0);
18570
18571 child = vfork ();
18572
18573 if (child == 0) {
18574 /* Here is another test for sparc vfork register problems. This
18575 test uses lots of local variables, at least as many local
18576 variables as main has allocated so far including compiler
18577 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18578 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18579 reuse the register of parent for one of the local variables,
18580 since it will think that parent can't possibly be used any more
18581 in this routine. Assigning to the local variable will thus
18582 munge parent in the parent process. */
18583 pid_t
18584 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18585 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18586 /* Convince the compiler that p..p7 are live; otherwise, it might
18587 use the same hardware register for all 8 local variables. */
18588 if (p != p1 || p != p2 || p != p3 || p != p4
18589 || p != p5 || p != p6 || p != p7)
18590 _exit(1);
18591
18592 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18593 from child file descriptors. If the child closes a descriptor
18594 before it execs or exits, this munges the parent's descriptor
18595 as well. Test for this by closing stdout in the child. */
18596 _exit(close(fileno(stdout)) != 0);
18597 } else {
18598 int status;
18599 struct stat st;
18600
18601 while (wait(&status) != child)
18602 ;
18603 return (
18604 /* Was there some problem with vforking? */
18605 child < 0
18606
18607 /* Did the child fail? (This shouldn't happen.) */
18608 || status
18609
18610 /* Did the vfork/compiler bug occur? */
18611 || parent != getpid()
18612
18613 /* Did the file descriptor bug occur? */
18614 || fstat(fileno(stdout), &st) != 0
18615 );
18616 }
18617}
18618_ACEOF
18619if ac_fn_c_try_run "$LINENO"; then :
18620 ac_cv_func_vfork_works=yes
18621else
18622 ac_cv_func_vfork_works=no
18623fi
18624rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18625 conftest.$ac_objext conftest.beam conftest.$ac_ext
18626fi
18627
18628fi
18629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
18630$as_echo "$ac_cv_func_vfork_works" >&6; }
18631
18632fi;
18633if test "x$ac_cv_func_fork_works" = xcross; then
18634 ac_cv_func_vfork_works=$ac_cv_func_vfork
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18636$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18637fi
18638
18639if test "x$ac_cv_func_vfork_works" = xyes; then
18640
18641$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
18642
18643else
18644
18645$as_echo "#define vfork fork" >>confdefs.h
18646
18647fi
18648if test "x$ac_cv_func_fork_works" = xyes; then
18649
18650$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
18651
18652fi
18653
18654
18655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
18656$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
d6974efa 18657if ${emacs_cv_langinfo_codeset+:} false; then :
067d23c9
KY
18658 $as_echo_n "(cached) " >&6
18659else
18660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18661/* end confdefs.h. */
18662#include <langinfo.h>
18663int
18664main ()
18665{
18666char* cs = nl_langinfo(CODESET);
18667 ;
18668 return 0;
18669}
18670_ACEOF
18671if ac_fn_c_try_link "$LINENO"; then :
18672 emacs_cv_langinfo_codeset=yes
18673else
18674 emacs_cv_langinfo_codeset=no
18675fi
18676rm -f core conftest.err conftest.$ac_objext \
18677 conftest$ac_exeext conftest.$ac_ext
18678
18679fi
18680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
18681$as_echo "$emacs_cv_langinfo_codeset" >&6; }
18682if test $emacs_cv_langinfo_codeset = yes; then
18683
18684$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
18685
18686fi
18687
18688ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
d6974efa 18689if test "x$ac_cv_type_size_t" = xyes; then :
067d23c9
KY
18690
18691cat >>confdefs.h <<_ACEOF
18692#define HAVE_SIZE_T 1
18693_ACEOF
18694
18695
18696fi
18697
18698
18699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
18700$as_echo_n "checking for mbstate_t... " >&6; }
d6974efa 18701if ${ac_cv_type_mbstate_t+:} false; then :
067d23c9
KY
18702 $as_echo_n "(cached) " >&6
18703else
18704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18705/* end confdefs.h. */
18706$ac_includes_default
18707# include <wchar.h>
18708int
18709main ()
18710{
18711mbstate_t x; return sizeof x;
18712 ;
18713 return 0;
18714}
18715_ACEOF
18716if ac_fn_c_try_compile "$LINENO"; then :
18717 ac_cv_type_mbstate_t=yes
18718else
18719 ac_cv_type_mbstate_t=no
18720fi
18721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18722fi
18723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
18724$as_echo "$ac_cv_type_mbstate_t" >&6; }
18725 if test $ac_cv_type_mbstate_t = yes; then
18726
18727$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
18728
18729 else
18730
18731$as_echo "#define mbstate_t int" >>confdefs.h
18732
18733 fi
18734
067d23c9
KY
18735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
18736$as_echo_n "checking for C restricted array declarations... " >&6; }
d6974efa 18737if ${emacs_cv_c_restrict_arr+:} false; then :
067d23c9
KY
18738 $as_echo_n "(cached) " >&6
18739else
18740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18741/* end confdefs.h. */
18742void fred (int x[__restrict]);
18743int
18744main ()
18745{
18746
18747 ;
18748 return 0;
18749}
18750_ACEOF
18751if ac_fn_c_try_compile "$LINENO"; then :
18752 emacs_cv_c_restrict_arr=yes
18753else
18754 emacs_cv_c_restrict_arr=no
18755fi
18756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18757fi
18758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
18759$as_echo "$emacs_cv_c_restrict_arr" >&6; }
18760if test "$emacs_cv_c_restrict_arr" = yes; then
18761
18762$as_echo "#define __restrict_arr __restrict" >>confdefs.h
18763
18764fi
18765
18766
18767
18768# Set up the CFLAGS for real compilation, so we can substitute it.
18769CFLAGS="$REAL_CFLAGS"
18770CPPFLAGS="$REAL_CPPFLAGS"
18771
18772## Hack to detect a buggy GCC version.
18773if test "x$GCC" = xyes \
18774 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
18775 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
18776 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
2018939f 18777 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
067d23c9
KY
18778fi
18779
16fab143 18780version=$PACKAGE_VERSION
067d23c9
KY
18781
18782### Specify what sort of things we'll be editing into Makefile and config.h.
18783### Use configuration here uncanonicalized to avoid exceeding size limits.
18784
18785
18786## Unused?
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
18808## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
18809## end of LIBX_BASE, but nothing ever set it.
18810
18811
18812
18813
18814## Used in lwlib/Makefile.in.
18815
d6a003a8
AS
18816if test -n "${machfile}"; then
18817 M_FILE="\$(srcdir)/${machfile}"
18818else
18819 M_FILE=
18820fi
18821S_FILE="\$(srcdir)/${opsysfile}"
067d23c9
KY
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
067d23c9
KY
18832cat >>confdefs.h <<_ACEOF
18833#define EMACS_CONFIGURATION "${canonical}"
18834_ACEOF
18835
18836
18837cat >>confdefs.h <<_ACEOF
18838#define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18839_ACEOF
18840
d6a003a8 18841if test -n "$machfile"; then
067d23c9
KY
18842
18843cat >>confdefs.h <<_ACEOF
18844#define config_machfile "${machfile}"
18845_ACEOF
18846
d6a003a8 18847fi
067d23c9
KY
18848
18849cat >>confdefs.h <<_ACEOF
18850#define config_opsysfile "${opsysfile}"
18851_ACEOF
18852
18853
18854XMENU_OBJ=
18855XOBJ=
18856FONT_OBJ=
18857if test "${HAVE_X_WINDOWS}" = "yes" ; then
18858
18859$as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
18860
18861 XMENU_OBJ=xmenu.o
18862 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
18863 FONT_OBJ=xfont.o
18864 if test "$HAVE_XFT" = "yes"; then
18865 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
18866 elif test "$HAVE_FREETYPE" = "yes"; then
18867 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
18868 fi
18869
18870fi
18871
18872
18873
18874
18875WIDGET_OBJ=
18876MOTIF_LIBW=
18877if test "${USE_X_TOOLKIT}" != "none" ; then
18878 WIDGET_OBJ=widget.o
18879
18880$as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
18881
18882 if test "${USE_X_TOOLKIT}" = "LUCID"; then
18883
18884$as_echo "#define USE_LUCID 1" >>confdefs.h
18885
18886 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
18887
18888$as_echo "#define USE_MOTIF 1" >>confdefs.h
18889
18890 MOTIF_LIBW=-lXm
18891 case "$opsys" in
18892 gnu-linux)
18893 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
18894 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
18895 ;;
18896
18897 unixware)
18898 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
18899 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
18900 MOTIF_LIBW="MOTIF_LIBW -lXimp"
18901 ;;
18902
18903 aix4-2)
18904 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
18905 MOTIF_LIBW="$MOTIF_LIBW -li18n"
18906 ;;
18907 esac
18908 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
18909 fi
18910fi
18911
18912
18913TOOLKIT_LIBW=
18914case "$USE_X_TOOLKIT" in
18915 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
18916 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
18917 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
18918esac
18919
18920
18921if test "$USE_X_TOOLKIT" = "none"; then
18922 LIBXT_OTHER="\$(LIBXSM)"
18923 OLDXMENU_TARGET="really-oldXMenu"
18924else
18925 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
18926 OLDXMENU_TARGET="really-lwlib"
18927fi
18928
18929
18930## The X Menu stuff is present in the X10 distribution, but missing
18931## from X11. If we have X10, just use the installed library;
18932## otherwise, use our own copy.
18933if test "${HAVE_X11}" = "yes" ; then
18934
18935$as_echo "#define HAVE_X11 1" >>confdefs.h
18936
18937
18938 if test "$USE_X_TOOLKIT" = "none"; then
18939 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
18940 else
18941 OLDXMENU="\${lwlibdir}/liblw.a"
18942 fi
18943 LIBXMENU="\$(OLDXMENU)"
18944 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
18945 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
18946else
18947 ## For a syntactically valid Makefile; not actually used for anything.
18948 ## See comments in src/Makefile.in.
18949 OLDXMENU=nothing
18950 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
18951 if test "${HAVE_X_WINDOWS}" = "yes"; then
18952 LIBXMENU="-lXMenu"
18953 else
18954 LIBXMENU=
18955 fi
18956 LIBX_OTHER=
18957 OLDXMENU_DEPS=
18958fi
18959
18960if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
18961 OLDXMENU_TARGET=
18962 OLDXMENU=nothing
18963 LIBXMENU=
18964 OLDXMENU_DEPS=
18965fi
18966
18967
18968
18969
18970
18971
18972
18973if test "${HAVE_MENUS}" = "yes" ; then
18974
18975$as_echo "#define HAVE_MENUS 1" >>confdefs.h
18976
18977fi
18978
18979if test "${GNU_MALLOC}" = "yes" ; then
18980
18981$as_echo "#define GNU_MALLOC 1" >>confdefs.h
18982
18983fi
18984
18985RALLOC_OBJ=
18986if test "${REL_ALLOC}" = "yes" ; then
18987
18988$as_echo "#define REL_ALLOC 1" >>confdefs.h
18989
18990
18991 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
18992fi
18993
18994
18995if test "$opsys" = "cygwin"; then
18996 CYGWIN_OBJ="sheap.o"
18997 ## Cygwin differs because of its unexec().
18998 PRE_ALLOC_OBJ=
18999 POST_ALLOC_OBJ=lastfile.o
19000else
19001 CYGWIN_OBJ=
19002 PRE_ALLOC_OBJ=lastfile.o
19003 POST_ALLOC_OBJ=
19004fi
19005
19006
19007
19008
19009
19010case "$opsys" in
19011 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
19012
19013 darwin)
19014 ## The -headerpad option tells ld (see man page) to leave room at the
19015 ## end of the header for adding load commands. Needed for dumping.
19016 ## 0x690 is the total size of 30 segment load commands (at 56
19017 ## each); under Cocoa 31 commands are required.
19018 if test "$HAVE_NS" = "yes"; then
19019 libs_nsgui="-framework AppKit"
19020 headerpad_extra=6C8
19021 else
19022 libs_nsgui=
19023 headerpad_extra=690
19024 fi
19025 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
19026
19027 ## This is here because src/Makefile.in did some extra fiddling around
19028 ## with LD_SWITCH_SYSTEM. The cpp logic was:
19029 ## #ifndef LD_SWITCH_SYSTEM
19030 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
19031 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
19032 ## not using gcc, darwin system not on an alpha (ie darwin, since
19033 ## darwin + alpha does not occur).
19034 ## Because this was done in src/Makefile.in, the resulting part of
19035 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
19036 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
19037 ## rather than LD_SWITCH_SYSTEM.
19038 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
19039 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
19040 ;;
19041
19042 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
19043 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
19044 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
19045 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
19046 ## had different values in configure (in ac_link) and src/Makefile.in.
19047 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19048 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
19049
19050 *) LD_SWITCH_SYSTEM_TEMACS= ;;
19051esac
19052
19053if test "$NS_IMPL_GNUSTEP" = "yes"; then
19054 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19055fi
19056
19057
19058
19059
19060LD_FIRSTFLAG=
19061ORDINARY_LINK=
19062case "$opsys" in
19063 ## gnu: GNU needs its own crt0.
19064 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
19065
19066 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19067 ## library search parth, i.e. it won't search /usr/lib for libc and
19068 ## friends. Using -nostartfiles instead avoids this problem, and
19069 ## will also work on earlier NetBSD releases.
19070 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
19071
19072 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19073 ## MkLinux/LinuxPPC needs this.
19074 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19075 gnu-*)
19076 case "$machine" in
19077 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
19078 esac
19079 ;;
19080esac
19081
19082
19083if test "x$ORDINARY_LINK" = "xyes"; then
19084
19085 LD_FIRSTFLAG=""
19086
19087$as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19088
19089
19090## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19091## freebsd, gnu-* not on macppc|ibms390x.
19092elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19093
19094 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19095 ## places that are difficult to figure out at make time. Fortunately,
19096 ## these same versions allow you to pass arbitrary flags on to the
19097 ## linker, so there is no reason not to use it as a linker.
19098 ##
19099 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19100 ## searching for libraries in its internal directories, so we have to
19101 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19102 LD_FIRSTFLAG="-nostdlib"
19103fi
19104
19105## FIXME? What setting of EDIT_LDFLAGS should this have?
19106test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
19107
19108
19109
19110
19111## FIXME? The logic here is not precisely the same as that above.
19112## There is no check here for a pre-defined LD_FIRSTFLAG.
19113## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19114LIB_GCC=
19115if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19116
19117 case "$opsys" in
19118 freebsd|netbsd|openbsd) LIB_GCC= ;;
19119
19120 gnu-*)
19121 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19122 ## build on ARM EABI under GNU/Linux. (Bug#5518)
d6a003a8
AS
19123 case $host_cpu in
19124 arm*)
067d23c9 19125 LIB_GCC="-lgcc_s"
d6a003a8
AS
19126 ;;
19127 *)
067d23c9
KY
19128 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19129 ## immediately undefine it again and redefine it to empty.
19130 ## Was the C_SWITCH_X_SITE part really necessary?
19131## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19132 LIB_GCC=
d6a003a8
AS
19133 ;;
19134 esac
067d23c9
KY
19135 ;;
19136
19137 ## Ask GCC where to find libgcc.a.
19138 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19139 esac
19140fi
19141
19142
19143TOOLTIP_SUPPORT=
19144WINDOW_SUPPORT=
19145## If we're using X11/GNUstep, define some consequences.
19146if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
19147
19148$as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19149
19150
19151$as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19152
19153 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
19154 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
19155
19156 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
19157 test "$HAVE_X_WINDOWS" = "yes" && \
19158 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
19159
19160fi
19161
19162
19163
19164
19165
19166
19167
19168#### Report on what we decided to do.
19169#### Report GTK as a toolkit, even if it doesn't use Xt.
19170#### It makes printing result more understandable as using GTK sets
19171#### toolkit_scroll_bars to yes by default.
19172if test "${HAVE_GTK}" = "yes"; then
19173 USE_X_TOOLKIT=GTK
19174fi
19175
2b7f50d8
AS
19176and_machfile=
19177if test -n "$machfile"; then
19178 and_machfile=" and \`${machfile}'"
19179fi
19180
067d23c9
KY
19181echo "
19182Configured for \`${canonical}'.
19183
19184 Where should the build process find the source code? ${srcdir}
19185 What operating system and machine description files should Emacs use?
2b7f50d8 19186 \`${opsysfile}'${and_machfile}
067d23c9
KY
19187 What compiler should emacs be built with? ${CC} ${CFLAGS}
19188 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19189 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19190 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19191 What window system should Emacs use? ${window_system}
19192 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19193
19194if test -n "${x_includes}"; then
19195echo " Where do we find X Windows header files? ${x_includes}"
19196else
19197echo " Where do we find X Windows header files? Standard dirs"
19198fi
19199if test -n "${x_libraries}"; then
19200echo " Where do we find X Windows libraries? ${x_libraries}"
19201else
19202echo " Where do we find X Windows libraries? Standard dirs"
19203fi
19204
19205echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
19206echo " Does Emacs use -lXpm? ${HAVE_XPM}"
19207echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
19208echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
19209echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
19210echo " Does Emacs use -lpng? ${HAVE_PNG}"
19211echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
19212echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
19213
19214echo " Does Emacs use -lgpm? ${HAVE_GPM}"
19215echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
19216echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
19217echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
19218echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
19219echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
19220
19221echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
19222echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
19223echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
19224echo " Does Emacs use -lxft? ${HAVE_XFT}"
19225
19226echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
19227echo
19228
19229if test $USE_XASSERTS = yes; then
19230 echo " Compiling with asserts turned on."
19231 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
19232fi
19233
19234echo
19235
19236if test "$HAVE_NS" = "yes"; then
19237 echo
19238 echo "You must run \"make install\" in order to test the built application.
19239The installed application will go to nextstep/Emacs.app and can be
19240run or moved from there."
19241 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
19242 echo "The application will be fully self-contained."
19243 else
19244 echo "The lisp resources for the application will be installed under ${prefix}.
19245You may need to run \"make install\" with sudo. The application will fail
19246to run if these resources are not installed."
19247 fi
19248 echo
19249fi
19250
19251
19252# Remove any trailing slashes in these variables.
19253test "${prefix}" != NONE &&
19254 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
19255test "${exec_prefix}" != NONE &&
19256 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
19257
193770ee 19258ac_config_files="$ac_config_files Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile test/automated/Makefile"
067d23c9 19259
9411886d
PE
19260
19261ac_config_commands="$ac_config_commands mkdirs"
19262
19263
19264ac_config_commands="$ac_config_commands epaths"
19265
19266
19267ac_config_commands="$ac_config_commands gdbinit"
19268
067d23c9
KY
19269
19270cat >confcache <<\_ACEOF
19271# This file is a shell script that caches the results of configure
19272# tests run on this system so they can be shared between configure
19273# scripts and configure runs, see configure's option --config-cache.
19274# It is not useful on other systems. If it contains results you don't
19275# want to keep, you may remove or edit it.
19276#
19277# config.status only pays attention to the cache file if you give it
19278# the --recheck option to rerun configure.
19279#
19280# `ac_cv_env_foo' variables (set or unset) will be overridden when
19281# loading this file, other *unset* `ac_cv_foo' will be assigned the
19282# following values.
19283
19284_ACEOF
19285
19286# The following way of writing the cache mishandles newlines in values,
19287# but we know of no workaround that is simple, portable, and efficient.
19288# So, we kill variables containing newlines.
19289# Ultrix sh set writes to stderr and can't be redirected directly,
19290# and sets the high bit in the cache file unless we assign to the vars.
19291(
19292 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19293 eval ac_val=\$$ac_var
19294 case $ac_val in #(
19295 *${as_nl}*)
19296 case $ac_var in #(
19297 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19298$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19299 esac
19300 case $ac_var in #(
19301 _ | IFS | as_nl) ;; #(
19302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19303 *) { eval $ac_var=; unset $ac_var;} ;;
19304 esac ;;
19305 esac
19306 done
19307
19308 (set) 2>&1 |
19309 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19310 *${as_nl}ac_space=\ *)
19311 # `set' does not quote correctly, so add quotes: double-quote
19312 # substitution turns \\\\ into \\, and sed turns \\ into \.
19313 sed -n \
19314 "s/'/'\\\\''/g;
19315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19316 ;; #(
19317 *)
19318 # `set' quotes correctly as required by POSIX, so do not add quotes.
19319 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19320 ;;
19321 esac |
19322 sort
19323) |
19324 sed '
19325 /^ac_cv_env_/b end
19326 t clear
19327 :clear
19328 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19329 t end
19330 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19331 :end' >>confcache
19332if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19333 if test -w "$cache_file"; then
d6974efa 19334 if test "x$cache_file" != "x/dev/null"; then
067d23c9
KY
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19336$as_echo "$as_me: updating cache $cache_file" >&6;}
d6974efa
PE
19337 if test ! -f "$cache_file" || test -h "$cache_file"; then
19338 cat confcache >"$cache_file"
19339 else
19340 case $cache_file in #(
19341 */* | ?:*)
19342 mv -f confcache "$cache_file"$$ &&
19343 mv -f "$cache_file"$$ "$cache_file" ;; #(
19344 *)
19345 mv -f confcache "$cache_file" ;;
19346 esac
19347 fi
19348 fi
067d23c9
KY
19349 else
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19351$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19352 fi
19353fi
19354rm -f confcache
19355
19356test "x$prefix" = xNONE && prefix=$ac_default_prefix
19357# Let make expand exec_prefix.
19358test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19359
19360DEFS=-DHAVE_CONFIG_H
19361
19362ac_libobjs=
19363ac_ltlibobjs=
2018939f 19364U=
067d23c9
KY
19365for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19366 # 1. Remove the extension, and $U if already installed.
19367 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19368 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19369 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19370 # will be set to the directory where LIBOBJS objects are built.
19371 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19372 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19373done
19374LIBOBJS=$ac_libobjs
19375
19376LTLIBOBJS=$ac_ltlibobjs
19377
19378
743c80a7
PE
19379 if test -n "$EXEEXT"; then
19380 am__EXEEXT_TRUE=
19381 am__EXEEXT_FALSE='#'
19382else
19383 am__EXEEXT_TRUE='#'
19384 am__EXEEXT_FALSE=
19385fi
19386
19387if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19388 as_fn_error $? "conditional \"AMDEP\" was never defined.
19389Usually this means the macro was only invoked conditionally." "$LINENO" 5
19390fi
19391if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19392 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19393Usually this means the macro was only invoked conditionally." "$LINENO" 5
19394fi
19395
19396if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19397 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
19398Usually this means the macro was only invoked conditionally." "$LINENO" 5
19399fi
19400
942f733f 19401
743c80a7
PE
19402 gl_libobjs=
19403 gl_ltlibobjs=
19404 if test -n "$gl_LIBOBJS"; then
19405 # Remove the extension.
19406 sed_drop_objext='s/\.o$//;s/\.obj$//'
19407 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19408 gl_libobjs="$gl_libobjs $i.$ac_objext"
19409 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
19410 done
19411 fi
19412 gl_LIBOBJS=$gl_libobjs
19413
19414 gl_LTLIBOBJS=$gl_ltlibobjs
19415
19416
19417
19418 gltests_libobjs=
19419 gltests_ltlibobjs=
19420 if test -n "$gltests_LIBOBJS"; then
19421 # Remove the extension.
19422 sed_drop_objext='s/\.o$//;s/\.obj$//'
19423 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19424 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
19425 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
19426 done
19427 fi
19428 gltests_LIBOBJS=$gltests_libobjs
19429
19430 gltests_LTLIBOBJS=$gltests_ltlibobjs
19431
067d23c9
KY
19432
19433
d6974efa 19434: "${CONFIG_STATUS=./config.status}"
067d23c9
KY
19435ac_write_fail=0
19436ac_clean_files_save=$ac_clean_files
19437ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19438{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19439$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19440as_write_fail=0
19441cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19442#! $SHELL
19443# Generated by $as_me.
19444# Run this file to recreate the current configuration.
19445# Compiler output produced by configure, useful for debugging
19446# configure, is in config.log if it exists.
19447
19448debug=false
19449ac_cs_recheck=false
19450ac_cs_silent=false
19451
19452SHELL=\${CONFIG_SHELL-$SHELL}
19453export SHELL
19454_ASEOF
19455cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19456## -------------------- ##
19457## M4sh Initialization. ##
19458## -------------------- ##
19459
19460# Be more Bourne compatible
19461DUALCASE=1; export DUALCASE # for MKS sh
19462if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19463 emulate sh
19464 NULLCMD=:
19465 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19466 # is contrary to our usage. Disable this feature.
19467 alias -g '${1+"$@"}'='"$@"'
19468 setopt NO_GLOB_SUBST
19469else
19470 case `(set -o) 2>/dev/null` in #(
19471 *posix*) :
19472 set -o posix ;; #(
19473 *) :
19474 ;;
19475esac
19476fi
19477
19478
19479as_nl='
19480'
19481export as_nl
19482# Printing a long string crashes Solaris 7 /usr/bin/printf.
19483as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19484as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19485as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19486# Prefer a ksh shell builtin over an external printf program on Solaris,
19487# but without wasting forks for bash or zsh.
19488if test -z "$BASH_VERSION$ZSH_VERSION" \
19489 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19490 as_echo='print -r --'
19491 as_echo_n='print -rn --'
19492elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19493 as_echo='printf %s\n'
19494 as_echo_n='printf %s'
19495else
19496 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19497 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19498 as_echo_n='/usr/ucb/echo -n'
19499 else
19500 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19501 as_echo_n_body='eval
19502 arg=$1;
19503 case $arg in #(
19504 *"$as_nl"*)
19505 expr "X$arg" : "X\\(.*\\)$as_nl";
19506 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19507 esac;
19508 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19509 '
19510 export as_echo_n_body
19511 as_echo_n='sh -c $as_echo_n_body as_echo'
19512 fi
19513 export as_echo_body
19514 as_echo='sh -c $as_echo_body as_echo'
19515fi
19516
19517# The user is always right.
19518if test "${PATH_SEPARATOR+set}" != set; then
19519 PATH_SEPARATOR=:
19520 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19521 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19522 PATH_SEPARATOR=';'
19523 }
19524fi
19525
19526
19527# IFS
19528# We need space, tab and new line, in precisely that order. Quoting is
19529# there to prevent editors from complaining about space-tab.
19530# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19531# splitting by setting IFS to empty value.)
19532IFS=" "" $as_nl"
19533
19534# Find who we are. Look in the path if we contain no directory separator.
d6974efa 19535as_myself=
067d23c9
KY
19536case $0 in #((
19537 *[\\/]* ) as_myself=$0 ;;
19538 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19539for as_dir in $PATH
19540do
19541 IFS=$as_save_IFS
19542 test -z "$as_dir" && as_dir=.
19543 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19544 done
19545IFS=$as_save_IFS
19546
19547 ;;
19548esac
19549# We did not find ourselves, most probably we were run as `sh COMMAND'
19550# in which case we are not to be found in the path.
19551if test "x$as_myself" = x; then
19552 as_myself=$0
19553fi
19554if test ! -f "$as_myself"; then
19555 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19556 exit 1
19557fi
19558
19559# Unset variables that we do not need and which cause bugs (e.g. in
19560# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19561# suppresses any "Segmentation fault" message there. '((' could
19562# trigger a bug in pdksh 5.2.14.
19563for as_var in BASH_ENV ENV MAIL MAILPATH
19564do eval test x\${$as_var+set} = xset \
19565 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19566done
19567PS1='$ '
19568PS2='> '
19569PS4='+ '
19570
19571# NLS nuisances.
19572LC_ALL=C
19573export LC_ALL
19574LANGUAGE=C
19575export LANGUAGE
19576
19577# CDPATH.
19578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19579
19580
2018939f
AS
19581# as_fn_error STATUS ERROR [LINENO LOG_FD]
19582# ----------------------------------------
067d23c9
KY
19583# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19584# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2018939f 19585# script with STATUS, using 1 if that was 0.
067d23c9
KY
19586as_fn_error ()
19587{
2018939f
AS
19588 as_status=$1; test $as_status -eq 0 && as_status=1
19589 if test "$4"; then
19590 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19591 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
067d23c9 19592 fi
2018939f 19593 $as_echo "$as_me: error: $2" >&2
067d23c9
KY
19594 as_fn_exit $as_status
19595} # as_fn_error
19596
19597
19598# as_fn_set_status STATUS
19599# -----------------------
19600# Set $? to STATUS, without forking.
19601as_fn_set_status ()
19602{
19603 return $1
19604} # as_fn_set_status
19605
19606# as_fn_exit STATUS
19607# -----------------
19608# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19609as_fn_exit ()
19610{
19611 set +e
19612 as_fn_set_status $1
19613 exit $1
19614} # as_fn_exit
19615
19616# as_fn_unset VAR
19617# ---------------
19618# Portably unset VAR.
19619as_fn_unset ()
19620{
19621 { eval $1=; unset $1;}
19622}
19623as_unset=as_fn_unset
19624# as_fn_append VAR VALUE
19625# ----------------------
19626# Append the text in VALUE to the end of the definition contained in VAR. Take
19627# advantage of any shell optimizations that allow amortized linear growth over
19628# repeated appends, instead of the typical quadratic growth present in naive
19629# implementations.
19630if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19631 eval 'as_fn_append ()
19632 {
19633 eval $1+=\$2
19634 }'
19635else
19636 as_fn_append ()
19637 {
19638 eval $1=\$$1\$2
19639 }
19640fi # as_fn_append
19641
19642# as_fn_arith ARG...
19643# ------------------
19644# Perform arithmetic evaluation on the ARGs, and store the result in the
19645# global $as_val. Take advantage of shells that can avoid forks. The arguments
19646# must be portable across $(()) and expr.
19647if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19648 eval 'as_fn_arith ()
19649 {
19650 as_val=$(( $* ))
19651 }'
19652else
19653 as_fn_arith ()
19654 {
19655 as_val=`expr "$@" || test $? -eq 1`
19656 }
19657fi # as_fn_arith
19658
19659
19660if expr a : '\(a\)' >/dev/null 2>&1 &&
19661 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19662 as_expr=expr
19663else
19664 as_expr=false
19665fi
19666
19667if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19668 as_basename=basename
19669else
19670 as_basename=false
19671fi
19672
19673if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19674 as_dirname=dirname
19675else
19676 as_dirname=false
19677fi
19678
19679as_me=`$as_basename -- "$0" ||
19680$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19681 X"$0" : 'X\(//\)$' \| \
19682 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19683$as_echo X/"$0" |
19684 sed '/^.*\/\([^/][^/]*\)\/*$/{
19685 s//\1/
19686 q
19687 }
19688 /^X\/\(\/\/\)$/{
19689 s//\1/
19690 q
19691 }
19692 /^X\/\(\/\).*/{
19693 s//\1/
19694 q
19695 }
19696 s/.*/./; q'`
19697
19698# Avoid depending upon Character Ranges.
19699as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19700as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19701as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19702as_cr_digits='0123456789'
19703as_cr_alnum=$as_cr_Letters$as_cr_digits
19704
19705ECHO_C= ECHO_N= ECHO_T=
19706case `echo -n x` in #(((((
19707-n*)
19708 case `echo 'xy\c'` in
19709 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19710 xy) ECHO_C='\c';;
19711 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19712 ECHO_T=' ';;
19713 esac;;
19714*)
19715 ECHO_N='-n';;
19716esac
19717
19718rm -f conf$$ conf$$.exe conf$$.file
19719if test -d conf$$.dir; then
19720 rm -f conf$$.dir/conf$$.file
19721else
19722 rm -f conf$$.dir
19723 mkdir conf$$.dir 2>/dev/null
19724fi
19725if (echo >conf$$.file) 2>/dev/null; then
19726 if ln -s conf$$.file conf$$ 2>/dev/null; then
19727 as_ln_s='ln -s'
19728 # ... but there are two gotchas:
19729 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19730 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19731 # In both cases, we have to default to `cp -p'.
19732 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19733 as_ln_s='cp -p'
19734 elif ln conf$$.file conf$$ 2>/dev/null; then
19735 as_ln_s=ln
19736 else
19737 as_ln_s='cp -p'
19738 fi
19739else
19740 as_ln_s='cp -p'
19741fi
19742rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19743rmdir conf$$.dir 2>/dev/null
19744
19745
19746# as_fn_mkdir_p
19747# -------------
19748# Create "$as_dir" as a directory, including parents if necessary.
19749as_fn_mkdir_p ()
19750{
19751
19752 case $as_dir in #(
19753 -*) as_dir=./$as_dir;;
19754 esac
19755 test -d "$as_dir" || eval $as_mkdir_p || {
19756 as_dirs=
19757 while :; do
19758 case $as_dir in #(
19759 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19760 *) as_qdir=$as_dir;;
19761 esac
19762 as_dirs="'$as_qdir' $as_dirs"
19763 as_dir=`$as_dirname -- "$as_dir" ||
19764$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19765 X"$as_dir" : 'X\(//\)[^/]' \| \
19766 X"$as_dir" : 'X\(//\)$' \| \
19767 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19768$as_echo X"$as_dir" |
19769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19770 s//\1/
19771 q
19772 }
19773 /^X\(\/\/\)[^/].*/{
19774 s//\1/
19775 q
19776 }
19777 /^X\(\/\/\)$/{
19778 s//\1/
19779 q
19780 }
19781 /^X\(\/\).*/{
19782 s//\1/
19783 q
19784 }
19785 s/.*/./; q'`
19786 test -d "$as_dir" && break
19787 done
19788 test -z "$as_dirs" || eval "mkdir $as_dirs"
2018939f 19789 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
067d23c9
KY
19790
19791
19792} # as_fn_mkdir_p
19793if mkdir -p . 2>/dev/null; then
19794 as_mkdir_p='mkdir -p "$as_dir"'
19795else
19796 test -d ./-p && rmdir ./-p
19797 as_mkdir_p=false
19798fi
19799
19800if test -x / >/dev/null 2>&1; then
19801 as_test_x='test -x'
19802else
19803 if ls -dL / >/dev/null 2>&1; then
19804 as_ls_L_option=L
19805 else
19806 as_ls_L_option=
19807 fi
19808 as_test_x='
19809 eval sh -c '\''
19810 if test -d "$1"; then
19811 test -d "$1/.";
19812 else
19813 case $1 in #(
19814 -*)set "./$1";;
19815 esac;
19816 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19817 ???[sx]*):;;*)false;;esac;fi
19818 '\'' sh
19819 '
19820fi
19821as_executable_p=$as_test_x
19822
19823# Sed expression to map a string onto a valid CPP name.
19824as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19825
19826# Sed expression to map a string onto a valid variable name.
19827as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19828
19829
19830exec 6>&1
19831## ----------------------------------- ##
19832## Main body of $CONFIG_STATUS script. ##
19833## ----------------------------------- ##
19834_ASEOF
19835test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19836
19837cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19838# Save the log message, to keep $0 and so on meaningful, and to
19839# report actual input values of CONFIG_FILES etc. instead of their
19840# values after options handling.
19841ac_log="
19842This file was extended by emacs $as_me 24.0.50, which was
d6974efa 19843generated by GNU Autoconf 2.68. Invocation command line was
067d23c9
KY
19844
19845 CONFIG_FILES = $CONFIG_FILES
19846 CONFIG_HEADERS = $CONFIG_HEADERS
19847 CONFIG_LINKS = $CONFIG_LINKS
19848 CONFIG_COMMANDS = $CONFIG_COMMANDS
19849 $ $0 $@
19850
19851on `(hostname || uname -n) 2>/dev/null | sed 1q`
19852"
19853
19854_ACEOF
19855
19856case $ac_config_files in *"
19857"*) set x $ac_config_files; shift; ac_config_files=$*;;
19858esac
19859
19860case $ac_config_headers in *"
19861"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19862esac
19863
19864
19865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19866# Files that config.status was made for.
19867config_files="$ac_config_files"
19868config_headers="$ac_config_headers"
19869config_commands="$ac_config_commands"
19870
19871_ACEOF
19872
19873cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19874ac_cs_usage="\
19875\`$as_me' instantiates files and other configuration actions
19876from templates according to the current configuration. Unless the files
19877and actions are specified as TAGs, all are instantiated by default.
19878
19879Usage: $0 [OPTION]... [TAG]...
19880
19881 -h, --help print this help, then exit
19882 -V, --version print version number and configuration settings, then exit
19883 --config print configuration, then exit
19884 -q, --quiet, --silent
19885 do not print progress messages
19886 -d, --debug don't remove temporary files
19887 --recheck update $as_me by reconfiguring in the same conditions
19888 --file=FILE[:TEMPLATE]
19889 instantiate the configuration file FILE
19890 --header=FILE[:TEMPLATE]
19891 instantiate the configuration header FILE
19892
19893Configuration files:
19894$config_files
19895
19896Configuration headers:
19897$config_headers
19898
19899Configuration commands:
19900$config_commands
19901
19902Report bugs to the package provider."
19903
19904_ACEOF
19905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19906ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19907ac_cs_version="\\
19908emacs config.status 24.0.50
d6974efa 19909configured by $0, generated by GNU Autoconf 2.68,
067d23c9
KY
19910 with options \\"\$ac_cs_config\\"
19911
2018939f 19912Copyright (C) 2010 Free Software Foundation, Inc.
067d23c9
KY
19913This config.status script is free software; the Free Software Foundation
19914gives unlimited permission to copy, distribute and modify it."
19915
19916ac_pwd='$ac_pwd'
19917srcdir='$srcdir'
19918INSTALL='$INSTALL'
743c80a7
PE
19919MKDIR_P='$MKDIR_P'
19920AWK='$AWK'
067d23c9
KY
19921test -n "\$AWK" || AWK=awk
19922_ACEOF
19923
19924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19925# The default lists apply if the user does not specify any file.
19926ac_need_defaults=:
19927while test $# != 0
19928do
19929 case $1 in
2018939f 19930 --*=?*)
067d23c9
KY
19931 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19932 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19933 ac_shift=:
19934 ;;
2018939f
AS
19935 --*=)
19936 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19937 ac_optarg=
19938 ac_shift=:
19939 ;;
067d23c9
KY
19940 *)
19941 ac_option=$1
19942 ac_optarg=$2
19943 ac_shift=shift
19944 ;;
19945 esac
19946
19947 case $ac_option in
19948 # Handling of the options.
19949 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19950 ac_cs_recheck=: ;;
19951 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19952 $as_echo "$ac_cs_version"; exit ;;
19953 --config | --confi | --conf | --con | --co | --c )
19954 $as_echo "$ac_cs_config"; exit ;;
19955 --debug | --debu | --deb | --de | --d | -d )
19956 debug=: ;;
19957 --file | --fil | --fi | --f )
19958 $ac_shift
19959 case $ac_optarg in
19960 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
2018939f 19961 '') as_fn_error $? "missing file argument" ;;
067d23c9
KY
19962 esac
19963 as_fn_append CONFIG_FILES " '$ac_optarg'"
19964 ac_need_defaults=false;;
19965 --header | --heade | --head | --hea )
19966 $ac_shift
19967 case $ac_optarg in
19968 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19969 esac
19970 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19971 ac_need_defaults=false;;
19972 --he | --h)
19973 # Conflict between --help and --header
2018939f 19974 as_fn_error $? "ambiguous option: \`$1'
067d23c9
KY
19975Try \`$0 --help' for more information.";;
19976 --help | --hel | -h )
19977 $as_echo "$ac_cs_usage"; exit ;;
19978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19979 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19980 ac_cs_silent=: ;;
19981
19982 # This is an error.
2018939f 19983 -*) as_fn_error $? "unrecognized option: \`$1'
067d23c9
KY
19984Try \`$0 --help' for more information." ;;
19985
19986 *) as_fn_append ac_config_targets " $1"
19987 ac_need_defaults=false ;;
19988
19989 esac
19990 shift
19991done
19992
19993ac_configure_extra_args=
19994
19995if $ac_cs_silent; then
19996 exec 6>/dev/null
19997 ac_configure_extra_args="$ac_configure_extra_args --silent"
19998fi
19999
20000_ACEOF
20001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20002if \$ac_cs_recheck; then
20003 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20004 shift
20005 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20006 CONFIG_SHELL='$SHELL'
20007 export CONFIG_SHELL
20008 exec "\$@"
20009fi
20010
20011_ACEOF
20012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20013exec 5>>config.log
20014{
20015 echo
20016 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20017## Running $as_me. ##
20018_ASBOX
20019 $as_echo "$ac_log"
20020} >&5
20021
20022_ACEOF
20023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20024#
20025# INIT-COMMANDS
20026#
743c80a7 20027AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
067d23c9
KY
20028GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
20029
20030_ACEOF
20031
20032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20033
20034# Handling of arguments.
20035for ac_config_target in $ac_config_targets
20036do
20037 case $ac_config_target in
20038 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
743c80a7 20039 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
067d23c9 20040 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
743c80a7 20041 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
067d23c9
KY
20042 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
20043 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
20044 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
20045 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
20046 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
20047 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
20048 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20049 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
20050 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
20051 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
ea062854 20052 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
9411886d
PE
20053 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
20054 "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;;
20055 "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;;
067d23c9 20056
d6974efa 20057 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
067d23c9
KY
20058 esac
20059done
20060
20061
20062# If the user did not use the arguments to specify the items to instantiate,
20063# then the envvar interface is used. Set only those that are not.
20064# We use the long form for the default assignment because of an extremely
20065# bizarre bug on SunOS 4.1.3.
20066if $ac_need_defaults; then
20067 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20068 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20069 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20070fi
20071
20072# Have a temporary directory for convenience. Make it in the build tree
20073# simply because there is no reason against having it here, and in addition,
20074# creating and moving files from /tmp can sometimes cause problems.
20075# Hook for its removal unless debugging.
20076# Note that there is a small window in which the directory will not be cleaned:
20077# after its creation but before its name has been assigned to `$tmp'.
20078$debug ||
20079{
d6974efa 20080 tmp= ac_tmp=
067d23c9 20081 trap 'exit_status=$?
d6974efa
PE
20082 : "${ac_tmp:=$tmp}"
20083 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
067d23c9
KY
20084' 0
20085 trap 'as_fn_exit 1' 1 2 13 15
20086}
20087# Create a (secure) tmp directory for tmp files.
20088
20089{
20090 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d6974efa 20091 test -d "$tmp"
067d23c9
KY
20092} ||
20093{
20094 tmp=./conf$$-$RANDOM
20095 (umask 077 && mkdir "$tmp")
2018939f 20096} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
d6974efa 20097ac_tmp=$tmp
067d23c9
KY
20098
20099# Set up the scripts for CONFIG_FILES section.
20100# No need to generate them if there are no CONFIG_FILES.
20101# This happens for instance with `./config.status config.h'.
20102if test -n "$CONFIG_FILES"; then
20103
20104if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20105 ac_cs_awk_getline=:
20106 ac_cs_awk_pipe_init=
20107 ac_cs_awk_read_file='
20108 while ((getline aline < (F[key])) > 0)
20109 print(aline)
20110 close(F[key])'
20111 ac_cs_awk_pipe_fini=
20112else
20113 ac_cs_awk_getline=false
20114 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20115 ac_cs_awk_read_file='
20116 print "|#_!!_#|"
20117 print "cat " F[key] " &&"
20118 '$ac_cs_awk_pipe_init
20119 # The final `:' finishes the AND list.
20120 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20121fi
20122ac_cr=`echo X | tr X '\015'`
20123# On cygwin, bash can eat \r inside `` if the user requested igncr.
20124# But we know of no other shell where ac_cr would be empty at this
20125# point, so we can use a bashism as a fallback.
20126if test "x$ac_cr" = x; then
20127 eval ac_cr=\$\'\\r\'
20128fi
20129ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20130if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
2018939f 20131 ac_cs_awk_cr='\\r'
067d23c9
KY
20132else
20133 ac_cs_awk_cr=$ac_cr
20134fi
20135
d6974efa 20136echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
067d23c9
KY
20137_ACEOF
20138
20139# Create commands to substitute file output variables.
20140{
20141 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d6974efa 20142 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
067d23c9
KY
20143 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20144 echo "_ACAWK" &&
20145 echo "_ACEOF"
20146} >conf$$files.sh &&
20147. ./conf$$files.sh ||
2018939f 20148 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
20149rm -f conf$$files.sh
20150
20151{
20152 echo "cat >conf$$subs.awk <<_ACEOF" &&
20153 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20154 echo "_ACEOF"
20155} >conf$$subs.sh ||
2018939f
AS
20156 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20157ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
067d23c9
KY
20158ac_delim='%!_!# '
20159for ac_last_try in false false false false false :; do
20160 . ./conf$$subs.sh ||
2018939f 20161 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
20162
20163 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20164 if test $ac_delim_n = $ac_delim_num; then
20165 break
20166 elif $ac_last_try; then
2018939f 20167 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
20168 else
20169 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20170 fi
20171done
20172rm -f conf$$subs.sh
20173
20174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d6974efa 20175cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
067d23c9
KY
20176_ACEOF
20177sed -n '
20178h
20179s/^/S["/; s/!.*/"]=/
20180p
20181g
20182s/^[^!]*!//
20183:repl
20184t repl
20185s/'"$ac_delim"'$//
20186t delim
20187:nl
20188h
20189s/\(.\{148\}\)..*/\1/
20190t more1
20191s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20192p
20193n
20194b repl
20195:more1
20196s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20197p
20198g
20199s/.\{148\}//
20200t nl
20201:delim
20202h
20203s/\(.\{148\}\)..*/\1/
20204t more2
20205s/["\\]/\\&/g; s/^/"/; s/$/"/
20206p
20207b
20208:more2
20209s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20210p
20211g
20212s/.\{148\}//
20213t delim
20214' <conf$$subs.awk | sed '
20215/^[^""]/{
20216 N
20217 s/\n//
20218}
20219' >>$CONFIG_STATUS || ac_write_fail=1
20220rm -f conf$$subs.awk
20221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20222_ACAWK
d6974efa 20223cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
067d23c9
KY
20224 for (key in S) S_is_set[key] = 1
20225 FS = "\a"
20226 \$ac_cs_awk_pipe_init
20227}
20228{
20229 line = $ 0
20230 nfields = split(line, field, "@")
20231 substed = 0
20232 len = length(field[1])
20233 for (i = 2; i < nfields; i++) {
20234 key = field[i]
20235 keylen = length(key)
20236 if (S_is_set[key]) {
20237 value = S[key]
20238 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20239 len += length(value) + length(field[++i])
20240 substed = 1
20241 } else
20242 len += 1 + keylen
20243 }
20244 if (nfields == 3 && !substed) {
20245 key = field[2]
20246 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20247 \$ac_cs_awk_read_file
20248 next
20249 }
20250 }
20251 print line
20252}
20253\$ac_cs_awk_pipe_fini
20254_ACAWK
20255_ACEOF
20256cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20257if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20258 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20259else
20260 cat
d6974efa 20261fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
2018939f 20262 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
067d23c9
KY
20263_ACEOF
20264
2018939f
AS
20265# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20266# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
067d23c9
KY
20267# trailing colons and then remove the whole line if VPATH becomes empty
20268# (actually we leave an empty line to preserve line numbers).
20269if test "x$srcdir" = x.; then
2018939f
AS
20270 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20271h
20272s///
20273s/^/:/
20274s/[ ]*$/:/
20275s/:\$(srcdir):/:/g
20276s/:\${srcdir}:/:/g
20277s/:@srcdir@:/:/g
20278s/^:*//
067d23c9 20279s/:*$//
2018939f
AS
20280x
20281s/\(=[ ]*\).*/\1/
20282G
20283s/\n//
067d23c9
KY
20284s/^[^=]*=[ ]*$//
20285}'
20286fi
20287
20288cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20289fi # test -n "$CONFIG_FILES"
20290
20291# Set up the scripts for CONFIG_HEADERS section.
20292# No need to generate them if there are no CONFIG_HEADERS.
20293# This happens for instance with `./config.status Makefile'.
20294if test -n "$CONFIG_HEADERS"; then
d6974efa 20295cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
067d23c9
KY
20296BEGIN {
20297_ACEOF
20298
20299# Transform confdefs.h into an awk script `defines.awk', embedded as
20300# here-document in config.status, that substitutes the proper values into
20301# config.h.in to produce config.h.
20302
20303# Create a delimiter string that does not exist in confdefs.h, to ease
20304# handling of long lines.
20305ac_delim='%!_!# '
20306for ac_last_try in false false :; do
d6974efa
PE
20307 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20308 if test -z "$ac_tt"; then
067d23c9
KY
20309 break
20310 elif $ac_last_try; then
2018939f 20311 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
067d23c9
KY
20312 else
20313 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20314 fi
20315done
20316
20317# For the awk script, D is an array of macro values keyed by name,
20318# likewise P contains macro parameters if any. Preserve backslash
20319# newline sequences.
20320
20321ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20322sed -n '
20323s/.\{148\}/&'"$ac_delim"'/g
20324t rset
20325:rset
20326s/^[ ]*#[ ]*define[ ][ ]*/ /
20327t def
20328d
20329:def
20330s/\\$//
20331t bsnl
20332s/["\\]/\\&/g
20333s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20334D["\1"]=" \3"/p
20335s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20336d
20337:bsnl
20338s/["\\]/\\&/g
20339s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20340D["\1"]=" \3\\\\\\n"\\/p
20341t cont
20342s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20343t cont
20344d
20345:cont
20346n
20347s/.\{148\}/&'"$ac_delim"'/g
20348t clear
20349:clear
20350s/\\$//
20351t bsnlc
20352s/["\\]/\\&/g; s/^/"/; s/$/"/p
20353d
20354:bsnlc
20355s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20356b cont
20357' <confdefs.h | sed '
20358s/'"$ac_delim"'/"\\\
20359"/g' >>$CONFIG_STATUS || ac_write_fail=1
20360
20361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20362 for (key in D) D_is_set[key] = 1
20363 FS = "\a"
20364}
20365/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20366 line = \$ 0
20367 split(line, arg, " ")
20368 if (arg[1] == "#") {
20369 defundef = arg[2]
20370 mac1 = arg[3]
20371 } else {
20372 defundef = substr(arg[1], 2)
20373 mac1 = arg[2]
20374 }
20375 split(mac1, mac2, "(") #)
20376 macro = mac2[1]
20377 prefix = substr(line, 1, index(line, defundef) - 1)
20378 if (D_is_set[macro]) {
20379 # Preserve the white space surrounding the "#".
20380 print prefix "define", macro P[macro] D[macro]
20381 next
20382 } else {
20383 # Replace #undef with comments. This is necessary, for example,
20384 # in the case of _POSIX_SOURCE, which is predefined and required
20385 # on some systems where configure will not decide to define it.
20386 if (defundef == "undef") {
20387 print "/*", prefix defundef, macro, "*/"
20388 next
20389 }
20390 }
20391}
20392{ print }
20393_ACAWK
20394_ACEOF
20395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2018939f 20396 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
067d23c9
KY
20397fi # test -n "$CONFIG_HEADERS"
20398
20399
20400eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20401shift
20402for ac_tag
20403do
20404 case $ac_tag in
20405 :[FHLC]) ac_mode=$ac_tag; continue;;
20406 esac
20407 case $ac_mode$ac_tag in
20408 :[FHL]*:*);;
d6974efa 20409 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
067d23c9
KY
20410 :[FH]-) ac_tag=-:-;;
20411 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20412 esac
20413 ac_save_IFS=$IFS
20414 IFS=:
20415 set x $ac_tag
20416 IFS=$ac_save_IFS
20417 shift
20418 ac_file=$1
20419 shift
20420
20421 case $ac_mode in
20422 :L) ac_source=$1;;
20423 :[FH])
20424 ac_file_inputs=
20425 for ac_f
20426 do
20427 case $ac_f in
d6974efa 20428 -) ac_f="$ac_tmp/stdin";;
067d23c9
KY
20429 *) # Look for the file first in the build tree, then in the source tree
20430 # (if the path is not absolute). The absolute path cannot be DOS-style,
20431 # because $ac_f cannot contain `:'.
20432 test -f "$ac_f" ||
20433 case $ac_f in
20434 [\\/$]*) false;;
20435 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20436 esac ||
d6974efa 20437 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
067d23c9
KY
20438 esac
20439 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20440 as_fn_append ac_file_inputs " '$ac_f'"
20441 done
20442
20443 # Let's still pretend it is `configure' which instantiates (i.e., don't
20444 # use $as_me), people would be surprised to read:
20445 # /* config.h. Generated by config.status. */
20446 configure_input='Generated from '`
20447 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20448 `' by configure.'
20449 if test x"$ac_file" != x-; then
20450 configure_input="$ac_file. $configure_input"
20451 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20452$as_echo "$as_me: creating $ac_file" >&6;}
20453 fi
20454 # Neutralize special characters interpreted by sed in replacement strings.
20455 case $configure_input in #(
20456 *\&* | *\|* | *\\* )
20457 ac_sed_conf_input=`$as_echo "$configure_input" |
20458 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20459 *) ac_sed_conf_input=$configure_input;;
20460 esac
20461
20462 case $ac_tag in
d6974efa
PE
20463 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20464 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
067d23c9
KY
20465 esac
20466 ;;
20467 esac
20468
20469 ac_dir=`$as_dirname -- "$ac_file" ||
20470$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20471 X"$ac_file" : 'X\(//\)[^/]' \| \
20472 X"$ac_file" : 'X\(//\)$' \| \
20473 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20474$as_echo X"$ac_file" |
20475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20476 s//\1/
20477 q
20478 }
20479 /^X\(\/\/\)[^/].*/{
20480 s//\1/
20481 q
20482 }
20483 /^X\(\/\/\)$/{
20484 s//\1/
20485 q
20486 }
20487 /^X\(\/\).*/{
20488 s//\1/
20489 q
20490 }
20491 s/.*/./; q'`
20492 as_dir="$ac_dir"; as_fn_mkdir_p
20493 ac_builddir=.
20494
20495case "$ac_dir" in
20496.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20497*)
20498 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20499 # A ".." for each directory in $ac_dir_suffix.
20500 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20501 case $ac_top_builddir_sub in
20502 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20503 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20504 esac ;;
20505esac
20506ac_abs_top_builddir=$ac_pwd
20507ac_abs_builddir=$ac_pwd$ac_dir_suffix
20508# for backward compatibility:
20509ac_top_builddir=$ac_top_build_prefix
20510
20511case $srcdir in
20512 .) # We are building in place.
20513 ac_srcdir=.
20514 ac_top_srcdir=$ac_top_builddir_sub
20515 ac_abs_top_srcdir=$ac_pwd ;;
20516 [\\/]* | ?:[\\/]* ) # Absolute name.
20517 ac_srcdir=$srcdir$ac_dir_suffix;
20518 ac_top_srcdir=$srcdir
20519 ac_abs_top_srcdir=$srcdir ;;
20520 *) # Relative name.
20521 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20522 ac_top_srcdir=$ac_top_build_prefix$srcdir
20523 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20524esac
20525ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20526
20527
20528 case $ac_mode in
20529 :F)
20530 #
20531 # CONFIG_FILE
20532 #
20533
20534 case $INSTALL in
20535 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20536 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20537 esac
743c80a7
PE
20538 ac_MKDIR_P=$MKDIR_P
20539 case $MKDIR_P in
20540 [\\/$]* | ?:[\\/]* ) ;;
20541 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20542 esac
067d23c9
KY
20543_ACEOF
20544
20545cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20546# If the template does not know about datarootdir, expand it.
20547# FIXME: This hack should be removed a few years after 2.60.
20548ac_datarootdir_hack=; ac_datarootdir_seen=
20549ac_sed_dataroot='
20550/datarootdir/ {
20551 p
20552 q
20553}
20554/@datadir@/p
20555/@docdir@/p
20556/@infodir@/p
20557/@localedir@/p
20558/@mandir@/p'
20559case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20560*datarootdir*) ac_datarootdir_seen=yes;;
20561*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20563$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20564_ACEOF
20565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20566 ac_datarootdir_hack='
20567 s&@datadir@&$datadir&g
20568 s&@docdir@&$docdir&g
20569 s&@infodir@&$infodir&g
20570 s&@localedir@&$localedir&g
20571 s&@mandir@&$mandir&g
20572 s&\\\${datarootdir}&$datarootdir&g' ;;
20573esac
20574_ACEOF
20575
20576# Neutralize VPATH when `$srcdir' = `.'.
20577# Shell code in configure.ac might set extrasub.
20578# FIXME: do we really want to maintain this feature?
20579cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20580ac_sed_extra="$ac_vpsub
20581$extrasub
20582_ACEOF
20583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20584:t
20585/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20586s|@configure_input@|$ac_sed_conf_input|;t t
20587s&@top_builddir@&$ac_top_builddir_sub&;t t
20588s&@top_build_prefix@&$ac_top_build_prefix&;t t
20589s&@srcdir@&$ac_srcdir&;t t
20590s&@abs_srcdir@&$ac_abs_srcdir&;t t
20591s&@top_srcdir@&$ac_top_srcdir&;t t
20592s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20593s&@builddir@&$ac_builddir&;t t
20594s&@abs_builddir@&$ac_abs_builddir&;t t
20595s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20596s&@INSTALL@&$ac_INSTALL&;t t
743c80a7 20597s&@MKDIR_P@&$ac_MKDIR_P&;t t
067d23c9
KY
20598$ac_datarootdir_hack
20599"
20600eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20601if $ac_cs_awk_getline; then
d6974efa 20602 $AWK -f "$ac_tmp/subs.awk"
067d23c9 20603else
d6974efa
PE
20604 $AWK -f "$ac_tmp/subs.awk" | $SHELL
20605fi \
20606 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
20607
20608test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d6974efa
PE
20609 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20610 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20611 "$ac_tmp/out"`; test -z "$ac_out"; } &&
067d23c9 20612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2018939f 20613which seems to be undefined. Please make sure it is defined" >&5
067d23c9 20614$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2018939f 20615which seems to be undefined. Please make sure it is defined" >&2;}
067d23c9 20616
d6974efa 20617 rm -f "$ac_tmp/stdin"
067d23c9 20618 case $ac_file in
d6974efa
PE
20619 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20620 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
067d23c9 20621 esac \
2018939f 20622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
20623 ;;
20624 :H)
20625 #
20626 # CONFIG_HEADER
20627 #
20628 if test x"$ac_file" != x-; then
20629 {
20630 $as_echo "/* $configure_input */" \
d6974efa
PE
20631 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20632 } >"$ac_tmp/config.h" \
2018939f 20633 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d6974efa 20634 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
067d23c9
KY
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20636$as_echo "$as_me: $ac_file is unchanged" >&6;}
20637 else
20638 rm -f "$ac_file"
d6974efa 20639 mv "$ac_tmp/config.h" "$ac_file" \
2018939f 20640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
20641 fi
20642 else
20643 $as_echo "/* $configure_input */" \
d6974efa 20644 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
2018939f 20645 || as_fn_error $? "could not create -" "$LINENO" 5
067d23c9 20646 fi
743c80a7
PE
20647# Compute "$ac_file"'s index in $config_headers.
20648_am_arg="$ac_file"
20649_am_stamp_count=1
20650for _am_header in $config_headers :; do
20651 case $_am_header in
20652 $_am_arg | $_am_arg:* )
20653 break ;;
20654 * )
20655 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20656 esac
20657done
20658echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20659$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20660 X"$_am_arg" : 'X\(//\)[^/]' \| \
20661 X"$_am_arg" : 'X\(//\)$' \| \
20662 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20663$as_echo X"$_am_arg" |
20664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20665 s//\1/
20666 q
20667 }
20668 /^X\(\/\/\)[^/].*/{
20669 s//\1/
20670 q
20671 }
20672 /^X\(\/\/\)$/{
20673 s//\1/
20674 q
20675 }
20676 /^X\(\/\).*/{
20677 s//\1/
20678 q
20679 }
20680 s/.*/./; q'`/stamp-h$_am_stamp_count
067d23c9
KY
20681 ;;
20682
20683 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20684$as_echo "$as_me: executing $ac_file commands" >&6;}
20685 ;;
20686 esac
20687
20688
20689 case $ac_file$ac_mode in
743c80a7
PE
20690 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20691 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20692 # are listed without --file. Let's play safe and only enable the eval
20693 # if we detect the quoting.
20694 case $CONFIG_FILES in
20695 *\'*) eval set x "$CONFIG_FILES" ;;
20696 *) set x $CONFIG_FILES ;;
20697 esac
20698 shift
20699 for mf
20700 do
20701 # Strip MF so we end up with the name of the file.
20702 mf=`echo "$mf" | sed -e 's/:.*$//'`
20703 # Check whether this is an Automake generated Makefile or not.
20704 # We used to match only the files named `Makefile.in', but
20705 # some people rename them; so instead we look at the file content.
20706 # Grep'ing the first line is not enough: some people post-process
20707 # each Makefile.in and add a new line on top of each file to say so.
20708 # Grep'ing the whole file is not good either: AIX grep has a line
20709 # limit of 2048, but all sed's we know have understand at least 4000.
20710 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20711 dirpart=`$as_dirname -- "$mf" ||
20712$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20713 X"$mf" : 'X\(//\)[^/]' \| \
20714 X"$mf" : 'X\(//\)$' \| \
20715 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20716$as_echo X"$mf" |
20717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20718 s//\1/
20719 q
20720 }
20721 /^X\(\/\/\)[^/].*/{
20722 s//\1/
20723 q
20724 }
20725 /^X\(\/\/\)$/{
20726 s//\1/
20727 q
20728 }
20729 /^X\(\/\).*/{
20730 s//\1/
20731 q
20732 }
20733 s/.*/./; q'`
20734 else
20735 continue
20736 fi
20737 # Extract the definition of DEPDIR, am__include, and am__quote
20738 # from the Makefile without running `make'.
20739 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20740 test -z "$DEPDIR" && continue
20741 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20742 test -z "am__include" && continue
20743 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20744 # When using ansi2knr, U may be empty or an underscore; expand it
20745 U=`sed -n 's/^U = //p' < "$mf"`
20746 # Find all dependency output files, they are included files with
20747 # $(DEPDIR) in their names. We invoke sed twice because it is the
20748 # simplest approach to changing $(DEPDIR) to its actual value in the
20749 # expansion.
20750 for file in `sed -n "
20751 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20752 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20753 # Make sure the directory exists.
20754 test -f "$dirpart/$file" && continue
20755 fdir=`$as_dirname -- "$file" ||
20756$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20757 X"$file" : 'X\(//\)[^/]' \| \
20758 X"$file" : 'X\(//\)$' \| \
20759 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20760$as_echo X"$file" |
20761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20762 s//\1/
20763 q
20764 }
20765 /^X\(\/\/\)[^/].*/{
20766 s//\1/
20767 q
20768 }
20769 /^X\(\/\/\)$/{
20770 s//\1/
20771 q
20772 }
20773 /^X\(\/\).*/{
20774 s//\1/
20775 q
20776 }
20777 s/.*/./; q'`
20778 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20779 # echo "creating $dirpart/$file"
20780 echo '# dummy' > "$dirpart/$file"
20781 done
20782 done
20783}
20784 ;;
9411886d 20785 "mkdirs":C)
067d23c9
KY
20786for dir in etc lisp ; do
20787 test -d ${dir} || mkdir ${dir}
20788done
9411886d
PE
20789 ;;
20790 "epaths":C)
067d23c9
KY
20791echo creating src/epaths.h
20792${MAKE-make} epaths-force
9411886d
PE
20793 ;;
20794 "gdbinit":C)
067d23c9
KY
20795if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
20796 echo creating src/.gdbinit
20797 echo source $srcdir/src/.gdbinit > src/.gdbinit
20798fi
067d23c9
KY
20799 ;;
20800
20801 esac
20802done # for ac_tag
20803
20804
20805as_fn_exit 0
20806_ACEOF
20807ac_clean_files=$ac_clean_files_save
20808
20809test $ac_write_fail = 0 ||
2018939f 20810 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
20811
20812
20813# configure is writing to config.log, and then calls config.status.
20814# config.status does its own redirection, appending to config.log.
20815# Unfortunately, on DOS this fails, as config.log is still kept open
20816# by configure, so config.status won't be able to write to it; its
20817# output is simply discarded. So we exec the FD to /dev/null,
20818# effectively closing config.log, so it can be properly (re)opened and
20819# appended to by config.status. When coming back to configure, we
20820# need to make the FD available again.
20821if test "$no_create" != yes; then
20822 ac_cs_success=:
20823 ac_config_status_args=
20824 test "$silent" = yes &&
20825 ac_config_status_args="$ac_config_status_args --quiet"
20826 exec 5>/dev/null
20827 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20828 exec 5>>config.log
20829 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20830 # would make configure fail if this is the last instruction.
2018939f 20831 $ac_cs_success || as_fn_exit 1
067d23c9
KY
20832fi
20833if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20835$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20836fi
20837
9411886d 20838