[ChangeLog]
[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
PE
876GETLOADAVG_LIBS
877REPLACE_UNSETENV
878REPLACE_STRTOD
879REPLACE_SETENV
880REPLACE_REALPATH
881REPLACE_REALLOC
882REPLACE_PUTENV
883REPLACE_MKSTEMP
884REPLACE_MALLOC
885REPLACE_CANONICALIZE_FILE_NAME
886REPLACE_CALLOC
887HAVE_DECL_UNSETENV
888HAVE_UNLOCKPT
889HAVE_SYS_LOADAVG_H
890HAVE_STRUCT_RANDOM_DATA
891HAVE_STRTOULL
892HAVE_STRTOLL
893HAVE_STRTOD
894HAVE_DECL_SETENV
895HAVE_SETENV
896HAVE_RPMATCH
897HAVE_REALPATH
898HAVE_RANDOM_R
899HAVE_RANDOM_H
900HAVE_PTSNAME
901HAVE_MKSTEMPS
902HAVE_MKSTEMP
903HAVE_MKOSTEMPS
904HAVE_MKOSTEMP
905HAVE_MKDTEMP
906HAVE_GRANTPT
907HAVE_GETSUBOPT
908HAVE_DECL_GETLOADAVG
909HAVE_CANONICALIZE_FILE_NAME
910HAVE_ATOLL
911HAVE__EXIT
912GNULIB_UNSETENV
913GNULIB_UNLOCKPT
914GNULIB_SYSTEM_POSIX
915GNULIB_STRTOULL
916GNULIB_STRTOLL
917GNULIB_STRTOD
918GNULIB_SETENV
919GNULIB_RPMATCH
920GNULIB_REALPATH
921GNULIB_REALLOC_POSIX
922GNULIB_RANDOM_R
923GNULIB_PUTENV
924GNULIB_PTSNAME
925GNULIB_MKSTEMPS
926GNULIB_MKSTEMP
927GNULIB_MKOSTEMPS
928GNULIB_MKOSTEMP
929GNULIB_MKDTEMP
930GNULIB_MALLOC_POSIX
931GNULIB_GRANTPT
932GNULIB_GETSUBOPT
933GNULIB_GETLOADAVG
934GNULIB_CANONICALIZE_FILE_NAME
935GNULIB_CALLOC_POSIX
936GNULIB_ATOLL
937GNULIB__EXIT
743c80a7
PE
938GL_COND_LIBTOOL_FALSE
939GL_COND_LIBTOOL_TRUE
067d23c9
KY
940BLESSMAIL_TARGET
941LIBS_MAIL
942liblockfile
943ALLOCA
944LIBXML2_LIBS
945LIBXML2_CFLAGS
946LIBXSM
947LIBGPM
948LIBGIF
949LIBTIFF
950LIBPNG
951LIBJPEG
952LIBXPM
953FREETYPE_LIBS
954FREETYPE_CFLAGS
955M17N_FLT_LIBS
956M17N_FLT_CFLAGS
957LIBOTF_LIBS
958LIBOTF_CFLAGS
959XFT_LIBS
960XFT_CFLAGS
961FONTCONFIG_LIBS
962FONTCONFIG_CFLAGS
963LIBXMU
964LIBXTR6
965LIBGNUTLS_LIBS
966LIBGNUTLS_CFLAGS
967LIBSELINUX_LIBS
968GCONF_LIBS
969GCONF_CFLAGS
970DBUS_OBJ
971DBUS_LIBS
972DBUS_CFLAGS
973GTK_OBJ
974GTK_LIBS
975GTK_CFLAGS
976IMAGEMAGICK_LIBS
977IMAGEMAGICK_CFLAGS
978RSVG_LIBS
979RSVG_CFLAGS
980VMLIMIT_OBJ
981GMALLOC_OBJ
982HAVE_XSERVER
983LIB_STANDARD
984NS_SUPPORT
00b3c7ac 985NS_OBJC_OBJ
067d23c9
KY
986NS_OBJ
987TEMACS_LDFLAGS2
988LD_SWITCH_X_SITE_AUX_RPATH
989LD_SWITCH_X_SITE_AUX
990XMKMF
991DEPFLAGS
992MKDEPDIR
067d23c9
KY
993CFLAGS_SOUND
994ALSA_LIBS
995ALSA_CFLAGS
996PKG_CONFIG
997LIBSOUND
998START_FILES
999LIB_MATH
1000CRT_DIR
1001LIBS_SYSTEM
1002C_SWITCH_SYSTEM
1003UNEXEC_OBJ
1004C_SWITCH_MACHINE
1005LD_SWITCH_SYSTEM
1006CANNOT_DUMP
96f129d5 1007HAVE_MAKEINFO
067d23c9
KY
1008GZIP_PROG
1009INSTALL_INFO
067d23c9
KY
1010C_WARNINGS_SWITCH
1011EGREP
1012GREP
1013CPP
743c80a7
PE
1014RANLIB
1015am__fastdepCC_FALSE
1016am__fastdepCC_TRUE
1017CCDEPMODE
1018AMDEPBACKSLASH
1019AMDEP_FALSE
1020AMDEP_TRUE
1021am__quote
1022am__include
1023DEPDIR
067d23c9
KY
1024OBJEXT
1025EXEEXT
1026ac_ct_CC
1027CPPFLAGS
1028LDFLAGS
1029CFLAGS
1030CC
1031host_os
1032host_vendor
1033host_cpu
1034host
1035build_os
1036build_vendor
1037build_cpu
1038build
1039PROFILING_CFLAGS
1040MAINT
1041GZIP_INFO
743c80a7
PE
1042am__untar
1043am__tar
1044AMTAR
1045am__leading_dot
1046SET_MAKE
1047AWK
1048mkdir_p
1049MKDIR_P
1050INSTALL_STRIP_PROGRAM
1051STRIP
1052install_sh
1053MAKEINFO
1054AUTOHEADER
1055AUTOMAKE
1056AUTOCONF
1057ACLOCAL
1058VERSION
1059PACKAGE
1060CYGPATH_W
1061am__isrc
1062INSTALL_DATA
1063INSTALL_SCRIPT
1064INSTALL_PROGRAM
067d23c9
KY
1065target_alias
1066host_alias
1067build_alias
1068LIBS
1069ECHO_T
1070ECHO_N
1071ECHO_C
1072DEFS
1073mandir
1074localedir
1075libdir
1076psdir
1077pdfdir
1078dvidir
1079htmldir
1080infodir
1081docdir
1082oldincludedir
1083includedir
1084localstatedir
1085sharedstatedir
1086sysconfdir
1087datadir
1088datarootdir
1089libexecdir
1090sbindir
1091bindir
1092program_transform_name
1093prefix
1094exec_prefix
1095PACKAGE_URL
1096PACKAGE_BUGREPORT
1097PACKAGE_STRING
1098PACKAGE_VERSION
1099PACKAGE_TARNAME
1100PACKAGE_NAME
1101PATH_SEPARATOR
1102SHELL'
1103ac_subst_files='deps_frag
1104ns_frag'
1105ac_user_opts='
1106enable_option_checking
1107with_pop
1108with_kerberos
1109with_kerberos5
1110with_hesiod
1111with_mmdf
1112with_mail_unlink
1113with_mailhost
1114with_sound
1115with_sync_input
1116with_x_toolkit
1117with_xpm
1118with_jpeg
1119with_tiff
1120with_gif
1121with_png
1122with_rsvg
1123with_xml2
1124with_imagemagick
1125with_xft
1126with_libotf
1127with_m17n_flt
1128with_toolkit_scroll_bars
1129with_xaw3d
1130with_xim
1131with_ns
1132with_gpm
1133with_dbus
1134with_gconf
1135with_selinux
1136with_gnutls
1137with_makeinfo
1138with_compress_info
1139with_pkg_config_prog
1140with_crt_dir
4fc5868a 1141with_gameuser
067d23c9
KY
1142with_gnustep_conf
1143enable_ns_self_contained
1144enable_asserts
1145enable_maintainer_mode
1146enable_locallisppath
1147enable_checking
1148enable_use_lisp_union_type
1149enable_profiling
1150enable_autodepend
743c80a7 1151enable_dependency_tracking
067d23c9
KY
1152enable_largefile
1153with_x
1154'
1155 ac_precious_vars='build_alias
1156host_alias
1157target_alias
1158CC
1159CFLAGS
1160LDFLAGS
1161LIBS
1162CPPFLAGS
1163CPP
1f5d53eb
PE
1164CPPFLAGS
1165CPP
1166CPPFLAGS
067d23c9
KY
1167XMKMF'
1168
1169
1170# Initialize some variables set by options.
1171ac_init_help=
1172ac_init_version=false
1173ac_unrecognized_opts=
1174ac_unrecognized_sep=
1175# The variables have the same names as the options, with
1176# dashes changed to underlines.
1177cache_file=/dev/null
1178exec_prefix=NONE
1179no_create=
1180no_recursion=
1181prefix=NONE
1182program_prefix=NONE
1183program_suffix=NONE
1184program_transform_name=s,x,x,
1185silent=
1186site=
1187srcdir=
1188verbose=
1189x_includes=NONE
1190x_libraries=NONE
1191
1192# Installation directory options.
1193# These are left unexpanded so users can "make install exec_prefix=/foo"
1194# and all the variables that are supposed to be based on exec_prefix
1195# by default will actually change.
1196# Use braces instead of parens because sh, perl, etc. also accept them.
1197# (The list follows the same order as the GNU Coding Standards.)
1198bindir='${exec_prefix}/bin'
1199sbindir='${exec_prefix}/sbin'
1200libexecdir='${exec_prefix}/libexec'
1201datarootdir='${prefix}/share'
1202datadir='${datarootdir}'
1203sysconfdir='${prefix}/etc'
1204sharedstatedir='${prefix}/com'
1205localstatedir='${prefix}/var'
1206includedir='${prefix}/include'
1207oldincludedir='/usr/include'
1208docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1209infodir='${datarootdir}/info'
1210htmldir='${docdir}'
1211dvidir='${docdir}'
1212pdfdir='${docdir}'
1213psdir='${docdir}'
1214libdir='${exec_prefix}/lib'
1215localedir='${datarootdir}/locale'
1216mandir='${datarootdir}/man'
1217
1218ac_prev=
1219ac_dashdash=
1220for ac_option
1221do
1222 # If the previous option needs an argument, assign it.
1223 if test -n "$ac_prev"; then
1224 eval $ac_prev=\$ac_option
1225 ac_prev=
1226 continue
1227 fi
1228
1229 case $ac_option in
2018939f
AS
1230 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1231 *=) ac_optarg= ;;
1232 *) ac_optarg=yes ;;
067d23c9
KY
1233 esac
1234
1235 # Accept the important Cygnus configure options, so we can diagnose typos.
1236
1237 case $ac_dashdash$ac_option in
1238 --)
1239 ac_dashdash=yes ;;
1240
1241 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1242 ac_prev=bindir ;;
1243 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1244 bindir=$ac_optarg ;;
1245
1246 -build | --build | --buil | --bui | --bu)
1247 ac_prev=build_alias ;;
1248 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1249 build_alias=$ac_optarg ;;
1250
1251 -cache-file | --cache-file | --cache-fil | --cache-fi \
1252 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1253 ac_prev=cache_file ;;
1254 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1255 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1256 cache_file=$ac_optarg ;;
1257
1258 --config-cache | -C)
1259 cache_file=config.cache ;;
1260
1261 -datadir | --datadir | --datadi | --datad)
1262 ac_prev=datadir ;;
1263 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1264 datadir=$ac_optarg ;;
1265
1266 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1267 | --dataroo | --dataro | --datar)
1268 ac_prev=datarootdir ;;
1269 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1270 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1271 datarootdir=$ac_optarg ;;
1272
1273 -disable-* | --disable-*)
1274 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1277 as_fn_error $? "invalid feature name: $ac_useropt"
067d23c9
KY
1278 ac_useropt_orig=$ac_useropt
1279 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1281 *"
1282"enable_$ac_useropt"
1283"*) ;;
1284 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1285 ac_unrecognized_sep=', ';;
1286 esac
1287 eval enable_$ac_useropt=no ;;
1288
1289 -docdir | --docdir | --docdi | --doc | --do)
1290 ac_prev=docdir ;;
1291 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1292 docdir=$ac_optarg ;;
1293
1294 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1295 ac_prev=dvidir ;;
1296 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1297 dvidir=$ac_optarg ;;
1298
1299 -enable-* | --enable-*)
1300 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1303 as_fn_error $? "invalid feature name: $ac_useropt"
067d23c9
KY
1304 ac_useropt_orig=$ac_useropt
1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1307 *"
1308"enable_$ac_useropt"
1309"*) ;;
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1311 ac_unrecognized_sep=', ';;
1312 esac
1313 eval enable_$ac_useropt=\$ac_optarg ;;
1314
1315 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1316 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1317 | --exec | --exe | --ex)
1318 ac_prev=exec_prefix ;;
1319 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1320 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1321 | --exec=* | --exe=* | --ex=*)
1322 exec_prefix=$ac_optarg ;;
1323
1324 -gas | --gas | --ga | --g)
1325 # Obsolete; use --with-gas.
1326 with_gas=yes ;;
1327
1328 -help | --help | --hel | --he | -h)
1329 ac_init_help=long ;;
1330 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1331 ac_init_help=recursive ;;
1332 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1333 ac_init_help=short ;;
1334
1335 -host | --host | --hos | --ho)
1336 ac_prev=host_alias ;;
1337 -host=* | --host=* | --hos=* | --ho=*)
1338 host_alias=$ac_optarg ;;
1339
1340 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1341 ac_prev=htmldir ;;
1342 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1343 | --ht=*)
1344 htmldir=$ac_optarg ;;
1345
1346 -includedir | --includedir | --includedi | --included | --include \
1347 | --includ | --inclu | --incl | --inc)
1348 ac_prev=includedir ;;
1349 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1350 | --includ=* | --inclu=* | --incl=* | --inc=*)
1351 includedir=$ac_optarg ;;
1352
1353 -infodir | --infodir | --infodi | --infod | --info | --inf)
1354 ac_prev=infodir ;;
1355 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1356 infodir=$ac_optarg ;;
1357
1358 -libdir | --libdir | --libdi | --libd)
1359 ac_prev=libdir ;;
1360 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1361 libdir=$ac_optarg ;;
1362
1363 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1364 | --libexe | --libex | --libe)
1365 ac_prev=libexecdir ;;
1366 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1367 | --libexe=* | --libex=* | --libe=*)
1368 libexecdir=$ac_optarg ;;
1369
1370 -localedir | --localedir | --localedi | --localed | --locale)
1371 ac_prev=localedir ;;
1372 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1373 localedir=$ac_optarg ;;
1374
1375 -localstatedir | --localstatedir | --localstatedi | --localstated \
1376 | --localstate | --localstat | --localsta | --localst | --locals)
1377 ac_prev=localstatedir ;;
1378 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1379 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1380 localstatedir=$ac_optarg ;;
1381
1382 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1383 ac_prev=mandir ;;
1384 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1385 mandir=$ac_optarg ;;
1386
1387 -nfp | --nfp | --nf)
1388 # Obsolete; use --without-fp.
1389 with_fp=no ;;
1390
1391 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1392 | --no-cr | --no-c | -n)
1393 no_create=yes ;;
1394
1395 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1396 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1397 no_recursion=yes ;;
1398
1399 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1400 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1401 | --oldin | --oldi | --old | --ol | --o)
1402 ac_prev=oldincludedir ;;
1403 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1404 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1405 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1406 oldincludedir=$ac_optarg ;;
1407
1408 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1409 ac_prev=prefix ;;
1410 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1411 prefix=$ac_optarg ;;
1412
1413 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1414 | --program-pre | --program-pr | --program-p)
1415 ac_prev=program_prefix ;;
1416 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1417 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1418 program_prefix=$ac_optarg ;;
1419
1420 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1421 | --program-suf | --program-su | --program-s)
1422 ac_prev=program_suffix ;;
1423 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1424 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1425 program_suffix=$ac_optarg ;;
1426
1427 -program-transform-name | --program-transform-name \
1428 | --program-transform-nam | --program-transform-na \
1429 | --program-transform-n | --program-transform- \
1430 | --program-transform | --program-transfor \
1431 | --program-transfo | --program-transf \
1432 | --program-trans | --program-tran \
1433 | --progr-tra | --program-tr | --program-t)
1434 ac_prev=program_transform_name ;;
1435 -program-transform-name=* | --program-transform-name=* \
1436 | --program-transform-nam=* | --program-transform-na=* \
1437 | --program-transform-n=* | --program-transform-=* \
1438 | --program-transform=* | --program-transfor=* \
1439 | --program-transfo=* | --program-transf=* \
1440 | --program-trans=* | --program-tran=* \
1441 | --progr-tra=* | --program-tr=* | --program-t=*)
1442 program_transform_name=$ac_optarg ;;
1443
1444 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1445 ac_prev=pdfdir ;;
1446 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1447 pdfdir=$ac_optarg ;;
1448
1449 -psdir | --psdir | --psdi | --psd | --ps)
1450 ac_prev=psdir ;;
1451 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1452 psdir=$ac_optarg ;;
1453
1454 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1455 | -silent | --silent | --silen | --sile | --sil)
1456 silent=yes ;;
1457
1458 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1459 ac_prev=sbindir ;;
1460 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1461 | --sbi=* | --sb=*)
1462 sbindir=$ac_optarg ;;
1463
1464 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1465 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1466 | --sharedst | --shareds | --shared | --share | --shar \
1467 | --sha | --sh)
1468 ac_prev=sharedstatedir ;;
1469 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1470 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1471 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1472 | --sha=* | --sh=*)
1473 sharedstatedir=$ac_optarg ;;
1474
1475 -site | --site | --sit)
1476 ac_prev=site ;;
1477 -site=* | --site=* | --sit=*)
1478 site=$ac_optarg ;;
1479
1480 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1481 ac_prev=srcdir ;;
1482 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1483 srcdir=$ac_optarg ;;
1484
1485 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1486 | --syscon | --sysco | --sysc | --sys | --sy)
1487 ac_prev=sysconfdir ;;
1488 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1489 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1490 sysconfdir=$ac_optarg ;;
1491
1492 -target | --target | --targe | --targ | --tar | --ta | --t)
1493 ac_prev=target_alias ;;
1494 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1495 target_alias=$ac_optarg ;;
1496
1497 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1498 verbose=yes ;;
1499
1500 -version | --version | --versio | --versi | --vers | -V)
1501 ac_init_version=: ;;
1502
1503 -with-* | --with-*)
1504 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1505 # Reject names that are not valid shell variable names.
1506 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1507 as_fn_error $? "invalid package name: $ac_useropt"
067d23c9
KY
1508 ac_useropt_orig=$ac_useropt
1509 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1510 case $ac_user_opts in
1511 *"
1512"with_$ac_useropt"
1513"*) ;;
1514 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1515 ac_unrecognized_sep=', ';;
1516 esac
1517 eval with_$ac_useropt=\$ac_optarg ;;
1518
1519 -without-* | --without-*)
1520 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1521 # Reject names that are not valid shell variable names.
1522 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018939f 1523 as_fn_error $? "invalid package name: $ac_useropt"
067d23c9
KY
1524 ac_useropt_orig=$ac_useropt
1525 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1526 case $ac_user_opts in
1527 *"
1528"with_$ac_useropt"
1529"*) ;;
1530 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1531 ac_unrecognized_sep=', ';;
1532 esac
1533 eval with_$ac_useropt=no ;;
1534
1535 --x)
1536 # Obsolete; use --with-x.
1537 with_x=yes ;;
1538
1539 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1540 | --x-incl | --x-inc | --x-in | --x-i)
1541 ac_prev=x_includes ;;
1542 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1543 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1544 x_includes=$ac_optarg ;;
1545
1546 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1547 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1548 ac_prev=x_libraries ;;
1549 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1550 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1551 x_libraries=$ac_optarg ;;
1552
2018939f
AS
1553 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1554Try \`$0 --help' for more information"
067d23c9
KY
1555 ;;
1556
1557 *=*)
1558 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1559 # Reject names that are not valid shell variable names.
1560 case $ac_envvar in #(
1561 '' | [0-9]* | *[!_$as_cr_alnum]* )
2018939f 1562 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
067d23c9
KY
1563 esac
1564 eval $ac_envvar=\$ac_optarg
1565 export $ac_envvar ;;
1566
1567 *)
1568 # FIXME: should be removed in autoconf 3.0.
1569 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1570 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1571 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d6974efa 1572 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
067d23c9
KY
1573 ;;
1574
1575 esac
1576done
1577
1578if test -n "$ac_prev"; then
1579 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2018939f 1580 as_fn_error $? "missing argument to $ac_option"
067d23c9
KY
1581fi
1582
1583if test -n "$ac_unrecognized_opts"; then
1584 case $enable_option_checking in
1585 no) ;;
2018939f 1586 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
067d23c9
KY
1587 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1588 esac
1589fi
1590
1591# Check all directory arguments for consistency.
1592for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1593 datadir sysconfdir sharedstatedir localstatedir includedir \
1594 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1595 libdir localedir mandir
1596do
1597 eval ac_val=\$$ac_var
1598 # Remove trailing slashes.
1599 case $ac_val in
1600 */ )
1601 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1602 eval $ac_var=\$ac_val;;
1603 esac
1604 # Be sure to have absolute directory names.
1605 case $ac_val in
1606 [\\/$]* | ?:[\\/]* ) continue;;
1607 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1608 esac
2018939f 1609 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
067d23c9
KY
1610done
1611
1612# There might be people who depend on the old broken behavior: `$host'
1613# used to hold the argument of --host etc.
1614# FIXME: To remove some day.
1615build=$build_alias
1616host=$host_alias
1617target=$target_alias
1618
1619# FIXME: To remove some day.
1620if test "x$host_alias" != x; then
1621 if test "x$build_alias" = x; then
1622 cross_compiling=maybe
2018939f
AS
1623 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1624 If a cross compiler is detected then cross compile mode will be used" >&2
067d23c9
KY
1625 elif test "x$build_alias" != "x$host_alias"; then
1626 cross_compiling=yes
1627 fi
1628fi
1629
1630ac_tool_prefix=
1631test -n "$host_alias" && ac_tool_prefix=$host_alias-
1632
1633test "$silent" = yes && exec 6>/dev/null
1634
1635
1636ac_pwd=`pwd` && test -n "$ac_pwd" &&
1637ac_ls_di=`ls -di .` &&
1638ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2018939f 1639 as_fn_error $? "working directory cannot be determined"
067d23c9 1640test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2018939f 1641 as_fn_error $? "pwd does not report name of working directory"
067d23c9
KY
1642
1643
1644# Find the source files, if location was not specified.
1645if test -z "$srcdir"; then
1646 ac_srcdir_defaulted=yes
1647 # Try the directory containing this script, then the parent directory.
1648 ac_confdir=`$as_dirname -- "$as_myself" ||
1649$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1650 X"$as_myself" : 'X\(//\)[^/]' \| \
1651 X"$as_myself" : 'X\(//\)$' \| \
1652 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1653$as_echo X"$as_myself" |
1654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1655 s//\1/
1656 q
1657 }
1658 /^X\(\/\/\)[^/].*/{
1659 s//\1/
1660 q
1661 }
1662 /^X\(\/\/\)$/{
1663 s//\1/
1664 q
1665 }
1666 /^X\(\/\).*/{
1667 s//\1/
1668 q
1669 }
1670 s/.*/./; q'`
1671 srcdir=$ac_confdir
1672 if test ! -r "$srcdir/$ac_unique_file"; then
1673 srcdir=..
1674 fi
1675else
1676 ac_srcdir_defaulted=no
1677fi
1678if test ! -r "$srcdir/$ac_unique_file"; then
1679 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2018939f 1680 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
067d23c9
KY
1681fi
1682ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1683ac_abs_confdir=`(
2018939f 1684 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
067d23c9
KY
1685 pwd)`
1686# When building in place, set srcdir=.
1687if test "$ac_abs_confdir" = "$ac_pwd"; then
1688 srcdir=.
1689fi
1690# Remove unnecessary trailing slashes from srcdir.
1691# Double slashes in file names in object file debugging info
1692# mess up M-x gdb in Emacs.
1693case $srcdir in
1694*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1695esac
1696for ac_var in $ac_precious_vars; do
1697 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1698 eval ac_env_${ac_var}_value=\$${ac_var}
1699 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1700 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1701done
1702
1703#
1704# Report the --help message.
1705#
1706if test "$ac_init_help" = "long"; then
1707 # Omit some internal or obsolete options to make the list less imposing.
1708 # This message is too long to be a string in the A/UX 3.1 sh.
1709 cat <<_ACEOF
1710\`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1711
1712Usage: $0 [OPTION]... [VAR=VALUE]...
1713
1714To assign environment variables (e.g., CC, CFLAGS...), specify them as
1715VAR=VALUE. See below for descriptions of some of the useful variables.
1716
1717Defaults for the options are specified in brackets.
1718
1719Configuration:
1720 -h, --help display this help and exit
1721 --help=short display options specific to this package
1722 --help=recursive display the short help of all the included packages
1723 -V, --version display version information and exit
2018939f 1724 -q, --quiet, --silent do not print \`checking ...' messages
067d23c9
KY
1725 --cache-file=FILE cache test results in FILE [disabled]
1726 -C, --config-cache alias for \`--cache-file=config.cache'
1727 -n, --no-create do not create output files
1728 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1729
1730Installation directories:
1731 --prefix=PREFIX install architecture-independent files in PREFIX
1732 [$ac_default_prefix]
1733 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1734 [PREFIX]
1735
1736By default, \`make install' will install all the files in
1737\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1738an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1739for instance \`--prefix=\$HOME'.
1740
1741For better control, use the options below.
1742
1743Fine tuning of the installation directories:
1744 --bindir=DIR user executables [EPREFIX/bin]
1745 --sbindir=DIR system admin executables [EPREFIX/sbin]
1746 --libexecdir=DIR program executables [EPREFIX/libexec]
1747 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1748 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1749 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1750 --libdir=DIR object code libraries [EPREFIX/lib]
1751 --includedir=DIR C header files [PREFIX/include]
1752 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1753 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1754 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1755 --infodir=DIR info documentation [DATAROOTDIR/info]
1756 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1757 --mandir=DIR man documentation [DATAROOTDIR/man]
1758 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1759 --htmldir=DIR html documentation [DOCDIR]
1760 --dvidir=DIR dvi documentation [DOCDIR]
1761 --pdfdir=DIR pdf documentation [DOCDIR]
1762 --psdir=DIR ps documentation [DOCDIR]
1763_ACEOF
1764
1765 cat <<\_ACEOF
1766
1767Program names:
1768 --program-prefix=PREFIX prepend PREFIX to installed program names
1769 --program-suffix=SUFFIX append SUFFIX to installed program names
1770 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1771
1772X features:
1773 --x-includes=DIR X include files are in DIR
1774 --x-libraries=DIR X library files are in DIR
1775
1776System types:
1777 --build=BUILD configure for building on BUILD [guessed]
1778 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1779_ACEOF
1780fi
1781
1782if test -n "$ac_init_help"; then
1783 case $ac_init_help in
1784 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1785 esac
1786 cat <<\_ACEOF
1787
1788Optional Features:
1789 --disable-option-checking ignore unrecognized --enable/--with options
1790 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1791 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1792 --disable-ns-self-contained
1793 disable self contained build under NeXTstep
1794 --enable-asserts compile code with asserts enabled
1795 --enable-maintainer-mode
1796 enable make rules and dependencies not useful (and
1797 sometimes confusing) to the casual installer
1798 --enable-locallisppath=PATH
1799 directories Emacs should search for lisp files
1800 specific to this site
1801 --enable-checking[=LIST]
1802 enable expensive run-time checks. With LIST, enable
1803 only specific categories of checks. Categories are:
1804 all,yes,no. Flags are: stringbytes, stringoverrun,
1805 stringfreelist, xmallocoverrun, conslist
1806 --enable-use-lisp-union-type
1807 use a union for the Lisp_Object data type. This is
1808 only useful for development for catching certain
1809 types of bugs.
1810 --enable-profiling build emacs with profiling support. This might not
1811 work on all platforms
1812 --enable-autodepend automatically generate dependencies to .h-files.
1813 Requires GNU Make and Gcc. Enabled if GNU Make and
1814 Gcc is found
743c80a7
PE
1815 --disable-dependency-tracking speeds up one-time build
1816 --enable-dependency-tracking do not reject slow dependency extractors
067d23c9
KY
1817 --disable-largefile omit support for large files
1818
1819Optional Packages:
1820 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1821 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1822 --without-pop don't support POP mail retrieval with movemail
1823 --with-kerberos support Kerberos-authenticated POP
1824 --with-kerberos5 support Kerberos version 5 authenticated POP
1825 --with-hesiod support Hesiod to get the POP server host
1826 --with-mmdf support MMDF mailboxes
1827 --with-mail-unlink unlink, rather than empty, mail spool after reading
1828 --with-mailhost=HOSTNAME
1829 string giving default POP mail host
1830 --without-sound don't compile with sound support
1831 --without-sync-input process async input synchronously
1832 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1833 lucid or athena, motif, no)
1834 --without-xpm don't compile with XPM image support
1835 --without-jpeg don't compile with JPEG image support
1836 --without-tiff don't compile with TIFF image support
1837 --without-gif don't compile with GIF image support
1838 --without-png don't compile with PNG image support
1839 --without-rsvg don't compile with SVG image support
1840 --without-xml2 don't compile with XML parsing support
1841 --without-imagemagick don't compile with ImageMagick image support
1842 --without-xft don't use XFT for anti aliased fonts
1843 --without-libotf don't use libotf for OpenType font support
1844 --without-m17n-flt don't use m17n-flt for text shaping
1845 --without-toolkit-scroll-bars
1846 don't use Motif or Xaw3d scroll bars
1847 --without-xaw3d don't use Xaw3d
1848 --without-xim don't use X11 XIM
1849 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1850 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1851 console
1852 --without-dbus don't compile with D-Bus support
1853 --without-gconf don't compile with GConf support
1854 --without-selinux don't compile with SELinux support
1855 --without-gnutls don't use -lgnutls for SSL/TLS support
1856 --without-makeinfo don't require makeinfo for building manuals
1857 --without-compress-info don't compress the installed Info pages
1858 --with-pkg-config-prog=PATH
1859 path to pkg-config for finding GTK and librsvg
1860 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1861 /usr/lib, or /usr/lib64 on some platforms.
4fc5868a 1862 --with-gameuser=USER user for shared game score files
067d23c9
KY
1863 --with-gnustep-conf=PATH
1864 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1865 or /etc/GNUstep/GNUstep.conf
1866 --with-x use the X Window System
1867
1868Some influential environment variables:
1869 CC C compiler command
1870 CFLAGS C compiler flags
1871 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1872 nonstandard directory <lib dir>
1873 LIBS libraries to pass to the linker, e.g. -l<library>
1874 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1875 you have headers in a nonstandard directory <include dir>
1876 CPP C preprocessor
1877 XMKMF Path to xmkmf, Makefile generator for X Window System
1878
1879Use these variables to override the choices made by `configure' or to help
1880it to find libraries and programs with nonstandard names/locations.
1881
1882Report bugs to the package provider.
1883_ACEOF
1884ac_status=$?
1885fi
1886
1887if test "$ac_init_help" = "recursive"; then
1888 # If there are subdirs, report their specific --help.
1889 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1890 test -d "$ac_dir" ||
1891 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1892 continue
1893 ac_builddir=.
1894
1895case "$ac_dir" in
1896.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1897*)
1898 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1899 # A ".." for each directory in $ac_dir_suffix.
1900 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1901 case $ac_top_builddir_sub in
1902 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1903 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1904 esac ;;
1905esac
1906ac_abs_top_builddir=$ac_pwd
1907ac_abs_builddir=$ac_pwd$ac_dir_suffix
1908# for backward compatibility:
1909ac_top_builddir=$ac_top_build_prefix
1910
1911case $srcdir in
1912 .) # We are building in place.
1913 ac_srcdir=.
1914 ac_top_srcdir=$ac_top_builddir_sub
1915 ac_abs_top_srcdir=$ac_pwd ;;
1916 [\\/]* | ?:[\\/]* ) # Absolute name.
1917 ac_srcdir=$srcdir$ac_dir_suffix;
1918 ac_top_srcdir=$srcdir
1919 ac_abs_top_srcdir=$srcdir ;;
1920 *) # Relative name.
1921 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1922 ac_top_srcdir=$ac_top_build_prefix$srcdir
1923 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1924esac
1925ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1926
1927 cd "$ac_dir" || { ac_status=$?; continue; }
1928 # Check for guested configure.
1929 if test -f "$ac_srcdir/configure.gnu"; then
1930 echo &&
1931 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1932 elif test -f "$ac_srcdir/configure"; then
1933 echo &&
1934 $SHELL "$ac_srcdir/configure" --help=recursive
1935 else
1936 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1937 fi || ac_status=$?
1938 cd "$ac_pwd" || { ac_status=$?; break; }
1939 done
1940fi
1941
1942test -n "$ac_init_help" && exit $ac_status
1943if $ac_init_version; then
1944 cat <<\_ACEOF
1945emacs configure 24.0.50
d6974efa 1946generated by GNU Autoconf 2.68
067d23c9 1947
2018939f 1948Copyright (C) 2010 Free Software Foundation, Inc.
067d23c9
KY
1949This configure script is free software; the Free Software Foundation
1950gives unlimited permission to copy, distribute and modify it.
1951_ACEOF
1952 exit
1953fi
1954
1955## ------------------------ ##
1956## Autoconf initialization. ##
1957## ------------------------ ##
1958
1959# ac_fn_c_try_compile LINENO
1960# --------------------------
1961# Try to compile conftest.$ac_ext, and return whether this succeeded.
1962ac_fn_c_try_compile ()
1963{
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 rm -f conftest.$ac_objext
1966 if { { ac_try="$ac_compile"
1967case "(($ac_try" in
1968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1969 *) ac_try_echo=$ac_try;;
1970esac
1971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972$as_echo "$ac_try_echo"; } >&5
1973 (eval "$ac_compile") 2>conftest.err
1974 ac_status=$?
1975 if test -s conftest.err; then
1976 grep -v '^ *+' conftest.err >conftest.er1
1977 cat conftest.er1 >&5
1978 mv -f conftest.er1 conftest.err
1979 fi
1980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981 test $ac_status = 0; } && {
1982 test -z "$ac_c_werror_flag" ||
1983 test ! -s conftest.err
1984 } && test -s conftest.$ac_objext; then :
1985 ac_retval=0
1986else
1987 $as_echo "$as_me: failed program was:" >&5
1988sed 's/^/| /' conftest.$ac_ext >&5
1989
1990 ac_retval=1
1991fi
d6974efa 1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
1993 as_fn_set_status $ac_retval
1994
1995} # ac_fn_c_try_compile
1996
067d23c9
KY
1997# ac_fn_c_try_cpp LINENO
1998# ----------------------
1999# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2000ac_fn_c_try_cpp ()
2001{
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 if { { ac_try="$ac_cpp conftest.$ac_ext"
2004case "(($ac_try" in
2005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2006 *) ac_try_echo=$ac_try;;
2007esac
2008eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2009$as_echo "$ac_try_echo"; } >&5
2010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2011 ac_status=$?
2012 if test -s conftest.err; then
2013 grep -v '^ *+' conftest.err >conftest.er1
2014 cat conftest.er1 >&5
2015 mv -f conftest.er1 conftest.err
2016 fi
2017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2018939f 2018 test $ac_status = 0; } > conftest.i && {
067d23c9
KY
2019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2020 test ! -s conftest.err
2021 }; then :
2022 ac_retval=0
2023else
2024 $as_echo "$as_me: failed program was:" >&5
2025sed 's/^/| /' conftest.$ac_ext >&5
2026
2027 ac_retval=1
2028fi
d6974efa 2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2030 as_fn_set_status $ac_retval
2031
2032} # ac_fn_c_try_cpp
2033
2034# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2035# -------------------------------------------------------
2036# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2037# the include files in INCLUDES and setting the cache variable VAR
2038# accordingly.
2039ac_fn_c_check_header_mongrel ()
2040{
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d6974efa 2042 if eval \${$3+:} false; then :
067d23c9
KY
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2044$as_echo_n "checking for $2... " >&6; }
d6974efa 2045if eval \${$3+:} false; then :
067d23c9
KY
2046 $as_echo_n "(cached) " >&6
2047fi
2048eval ac_res=\$$3
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050$as_echo "$ac_res" >&6; }
2051else
2052 # Is the header compilable?
2053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2054$as_echo_n "checking $2 usability... " >&6; }
2055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056/* end confdefs.h. */
2057$4
2058#include <$2>
2059_ACEOF
2060if ac_fn_c_try_compile "$LINENO"; then :
2061 ac_header_compiler=yes
2062else
2063 ac_header_compiler=no
2064fi
2065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2067$as_echo "$ac_header_compiler" >&6; }
2068
2069# Is the header present?
2070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2071$as_echo_n "checking $2 presence... " >&6; }
2072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073/* end confdefs.h. */
2074#include <$2>
2075_ACEOF
2076if ac_fn_c_try_cpp "$LINENO"; then :
2077 ac_header_preproc=yes
2078else
2079 ac_header_preproc=no
2080fi
2018939f 2081rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
2082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2083$as_echo "$ac_header_preproc" >&6; }
2084
2085# So? What about this header?
2086case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2087 yes:no: )
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2089$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2091$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2092 ;;
2093 no:yes:* )
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2095$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2097$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2099$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2101$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2103$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2104 ;;
2105esac
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107$as_echo_n "checking for $2... " >&6; }
d6974efa 2108if eval \${$3+:} false; then :
067d23c9
KY
2109 $as_echo_n "(cached) " >&6
2110else
2111 eval "$3=\$ac_header_compiler"
2112fi
2113eval ac_res=\$$3
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115$as_echo "$ac_res" >&6; }
2116fi
d6974efa 2117 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2118
2119} # ac_fn_c_check_header_mongrel
2120
2121# ac_fn_c_try_run LINENO
2122# ----------------------
2123# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2124# that executables *can* be run.
2125ac_fn_c_try_run ()
2126{
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 if { { ac_try="$ac_link"
2129case "(($ac_try" in
2130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131 *) ac_try_echo=$ac_try;;
2132esac
2133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134$as_echo "$ac_try_echo"; } >&5
2135 (eval "$ac_link") 2>&5
2136 ac_status=$?
2137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2138 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2139 { { case "(($ac_try" in
2140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2141 *) ac_try_echo=$ac_try;;
2142esac
2143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2144$as_echo "$ac_try_echo"; } >&5
2145 (eval "$ac_try") 2>&5
2146 ac_status=$?
2147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2148 test $ac_status = 0; }; }; then :
2149 ac_retval=0
2150else
2151 $as_echo "$as_me: program exited with status $ac_status" >&5
2152 $as_echo "$as_me: failed program was:" >&5
2153sed 's/^/| /' conftest.$ac_ext >&5
2154
2155 ac_retval=$ac_status
2156fi
2157 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6974efa 2158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2159 as_fn_set_status $ac_retval
2160
2161} # ac_fn_c_try_run
2162
2163# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2164# -------------------------------------------------------
2165# Tests whether HEADER exists and can be compiled using the include files in
2166# INCLUDES, setting the cache variable VAR accordingly.
2167ac_fn_c_check_header_compile ()
2168{
2169 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2171$as_echo_n "checking for $2... " >&6; }
d6974efa 2172if eval \${$3+:} false; then :
067d23c9
KY
2173 $as_echo_n "(cached) " >&6
2174else
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176/* end confdefs.h. */
2177$4
2178#include <$2>
2179_ACEOF
2180if ac_fn_c_try_compile "$LINENO"; then :
2181 eval "$3=yes"
2182else
2183 eval "$3=no"
2184fi
2185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186fi
2187eval ac_res=\$$3
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189$as_echo "$ac_res" >&6; }
d6974efa 2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2191
2192} # ac_fn_c_check_header_compile
2193
1fd182f0
PE
2194# ac_fn_c_try_link LINENO
2195# -----------------------
2196# Try to link conftest.$ac_ext, and return whether this succeeded.
2197ac_fn_c_try_link ()
2198{
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 rm -f conftest.$ac_objext conftest$ac_exeext
2201 if { { ac_try="$ac_link"
2202case "(($ac_try" in
2203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2204 *) ac_try_echo=$ac_try;;
2205esac
2206eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2207$as_echo "$ac_try_echo"; } >&5
2208 (eval "$ac_link") 2>conftest.err
2209 ac_status=$?
2210 if test -s conftest.err; then
2211 grep -v '^ *+' conftest.err >conftest.er1
2212 cat conftest.er1 >&5
2213 mv -f conftest.er1 conftest.err
2214 fi
2215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2216 test $ac_status = 0; } && {
2217 test -z "$ac_c_werror_flag" ||
2218 test ! -s conftest.err
2219 } && test -s conftest$ac_exeext && {
2220 test "$cross_compiling" = yes ||
2221 $as_test_x conftest$ac_exeext
2222 }; then :
2223 ac_retval=0
2224else
2225 $as_echo "$as_me: failed program was:" >&5
2226sed 's/^/| /' conftest.$ac_ext >&5
2227
2228 ac_retval=1
2229fi
2230 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2231 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2232 # interfere with the next link command; also delete a directory that is
2233 # left behind by Apple's compiler. We do this before executing the actions.
2234 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6974efa 2235 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1fd182f0
PE
2236 as_fn_set_status $ac_retval
2237
2238} # ac_fn_c_try_link
2239
2018939f
AS
2240# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2241# ---------------------------------------------
2242# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2243# accordingly.
067d23c9
KY
2244ac_fn_c_check_decl ()
2245{
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018939f
AS
2247 as_decl_name=`echo $2|sed 's/ *(.*//'`
2248 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2250$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d6974efa 2251if eval \${$3+:} false; then :
067d23c9
KY
2252 $as_echo_n "(cached) " >&6
2253else
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255/* end confdefs.h. */
2256$4
2257int
2258main ()
2259{
2018939f
AS
2260#ifndef $as_decl_name
2261#ifdef __cplusplus
2262 (void) $as_decl_use;
2263#else
2264 (void) $as_decl_name;
2265#endif
067d23c9
KY
2266#endif
2267
2268 ;
2269 return 0;
2270}
2271_ACEOF
2272if ac_fn_c_try_compile "$LINENO"; then :
2273 eval "$3=yes"
2274else
2275 eval "$3=no"
2276fi
2277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278fi
2279eval ac_res=\$$3
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2281$as_echo "$ac_res" >&6; }
d6974efa 2282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2283
2284} # ac_fn_c_check_decl
2285
2286# ac_fn_c_check_header_preproc LINENO HEADER VAR
2287# ----------------------------------------------
2288# Tests whether HEADER is present, setting the cache variable VAR accordingly.
2289ac_fn_c_check_header_preproc ()
2290{
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2293$as_echo_n "checking for $2... " >&6; }
d6974efa 2294if eval \${$3+:} false; then :
067d23c9
KY
2295 $as_echo_n "(cached) " >&6
2296else
2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298/* end confdefs.h. */
2299#include <$2>
2300_ACEOF
2301if ac_fn_c_try_cpp "$LINENO"; then :
2302 eval "$3=yes"
2303else
2304 eval "$3=no"
2305fi
2018939f 2306rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
2307fi
2308eval ac_res=\$$3
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310$as_echo "$ac_res" >&6; }
d6974efa 2311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2312
2313} # ac_fn_c_check_header_preproc
2314
2315# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2316# ----------------------------------------------------
2317# Tries to find if the field MEMBER exists in type AGGR, after including
2318# INCLUDES, setting cache variable VAR accordingly.
2319ac_fn_c_check_member ()
2320{
2321 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2323$as_echo_n "checking for $2.$3... " >&6; }
d6974efa 2324if eval \${$4+:} false; then :
067d23c9
KY
2325 $as_echo_n "(cached) " >&6
2326else
2327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328/* end confdefs.h. */
2329$5
2330int
2331main ()
2332{
2333static $2 ac_aggr;
2334if (ac_aggr.$3)
2335return 0;
2336 ;
2337 return 0;
2338}
2339_ACEOF
2340if ac_fn_c_try_compile "$LINENO"; then :
2341 eval "$4=yes"
2342else
2343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2344/* end confdefs.h. */
2345$5
2346int
2347main ()
2348{
2349static $2 ac_aggr;
2350if (sizeof ac_aggr.$3)
2351return 0;
2352 ;
2353 return 0;
2354}
2355_ACEOF
2356if ac_fn_c_try_compile "$LINENO"; then :
2357 eval "$4=yes"
2358else
2359 eval "$4=no"
2360fi
2361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362fi
2363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364fi
2365eval ac_res=\$$4
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2367$as_echo "$ac_res" >&6; }
d6974efa 2368 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2369
2370} # ac_fn_c_check_member
2371
2372# ac_fn_c_check_func LINENO FUNC VAR
2373# ----------------------------------
2374# Tests whether FUNC exists, setting the cache variable VAR accordingly
2375ac_fn_c_check_func ()
2376{
2377 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2379$as_echo_n "checking for $2... " >&6; }
d6974efa 2380if eval \${$3+:} false; then :
067d23c9
KY
2381 $as_echo_n "(cached) " >&6
2382else
2383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384/* end confdefs.h. */
2385/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2387#define $2 innocuous_$2
2388
2389/* System header to define __stub macros and hopefully few prototypes,
2390 which can conflict with char $2 (); below.
2391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2392 <limits.h> exists even on freestanding compilers. */
2393
2394#ifdef __STDC__
2395# include <limits.h>
2396#else
2397# include <assert.h>
2398#endif
2399
2400#undef $2
2401
2402/* Override any GCC internal prototype to avoid an error.
2403 Use char because int might match the return type of a GCC
2404 builtin and then its argument prototype would still apply. */
2405#ifdef __cplusplus
2406extern "C"
2407#endif
2408char $2 ();
2409/* The GNU C library defines this for functions which it implements
2410 to always fail with ENOSYS. Some functions are actually named
2411 something starting with __ and the normal name is an alias. */
2412#if defined __stub_$2 || defined __stub___$2
2413choke me
2414#endif
2415
2416int
2417main ()
2418{
2419return $2 ();
2420 ;
2421 return 0;
2422}
2423_ACEOF
2424if ac_fn_c_try_link "$LINENO"; then :
2425 eval "$3=yes"
2426else
2427 eval "$3=no"
2428fi
2429rm -f core conftest.err conftest.$ac_objext \
2430 conftest$ac_exeext conftest.$ac_ext
2431fi
2432eval ac_res=\$$3
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2434$as_echo "$ac_res" >&6; }
d6974efa 2435 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2436
2437} # ac_fn_c_check_func
2438
2439# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2440# -------------------------------------------
2441# Tests whether TYPE exists after having included INCLUDES, setting cache
2442# variable VAR accordingly.
2443ac_fn_c_check_type ()
2444{
2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2447$as_echo_n "checking for $2... " >&6; }
d6974efa 2448if eval \${$3+:} false; then :
067d23c9
KY
2449 $as_echo_n "(cached) " >&6
2450else
2451 eval "$3=no"
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453/* end confdefs.h. */
2454$4
2455int
2456main ()
2457{
2458if (sizeof ($2))
2459 return 0;
2460 ;
2461 return 0;
2462}
2463_ACEOF
2464if ac_fn_c_try_compile "$LINENO"; then :
2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466/* end confdefs.h. */
2467$4
2468int
2469main ()
2470{
2471if (sizeof (($2)))
2472 return 0;
2473 ;
2474 return 0;
2475}
2476_ACEOF
2477if ac_fn_c_try_compile "$LINENO"; then :
2478
2479else
2480 eval "$3=yes"
2481fi
2482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2483fi
2484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485fi
2486eval ac_res=\$$3
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488$as_echo "$ac_res" >&6; }
d6974efa 2489 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
067d23c9
KY
2490
2491} # ac_fn_c_check_type
5f90be1b
PE
2492
2493# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2494# --------------------------------------------
2495# Tries to find the compile-time value of EXPR in a program that includes
2496# INCLUDES, setting VAR accordingly. Returns whether the value could be
2497# computed
2498ac_fn_c_compute_int ()
2499{
2500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501 if test "$cross_compiling" = yes; then
2502 # Depending upon the size, compute the lo and hi bounds.
2503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504/* end confdefs.h. */
2505$4
2506int
2507main ()
2508{
2509static int test_array [1 - 2 * !(($2) >= 0)];
2510test_array [0] = 0
2511
2512 ;
2513 return 0;
2514}
2515_ACEOF
2516if ac_fn_c_try_compile "$LINENO"; then :
2517 ac_lo=0 ac_mid=0
2518 while :; do
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520/* end confdefs.h. */
2521$4
2522int
2523main ()
2524{
2525static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2526test_array [0] = 0
2527
2528 ;
2529 return 0;
2530}
2531_ACEOF
2532if ac_fn_c_try_compile "$LINENO"; then :
2533 ac_hi=$ac_mid; break
2534else
2535 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2536 if test $ac_lo -le $ac_mid; then
2537 ac_lo= ac_hi=
2538 break
2539 fi
2540 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2541fi
2542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2543 done
2544else
2545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2546/* end confdefs.h. */
2547$4
2548int
2549main ()
2550{
2551static int test_array [1 - 2 * !(($2) < 0)];
2552test_array [0] = 0
2553
2554 ;
2555 return 0;
2556}
2557_ACEOF
2558if ac_fn_c_try_compile "$LINENO"; then :
2559 ac_hi=-1 ac_mid=-1
2560 while :; do
2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2562/* end confdefs.h. */
2563$4
2564int
2565main ()
2566{
2567static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2568test_array [0] = 0
2569
2570 ;
2571 return 0;
2572}
2573_ACEOF
2574if ac_fn_c_try_compile "$LINENO"; then :
2575 ac_lo=$ac_mid; break
2576else
2577 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2578 if test $ac_mid -le $ac_hi; then
2579 ac_lo= ac_hi=
2580 break
2581 fi
2582 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2583fi
2584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 done
2586else
2587 ac_lo= ac_hi=
2588fi
2589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590fi
2591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592# Binary search between lo and hi bounds.
2593while test "x$ac_lo" != "x$ac_hi"; do
2594 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596/* end confdefs.h. */
2597$4
2598int
2599main ()
2600{
2601static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2602test_array [0] = 0
2603
2604 ;
2605 return 0;
2606}
2607_ACEOF
2608if ac_fn_c_try_compile "$LINENO"; then :
2609 ac_hi=$ac_mid
2610else
2611 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2612fi
2613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614done
2615case $ac_lo in #((
2616?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2617'') ac_retval=1 ;;
2618esac
2619 else
2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621/* end confdefs.h. */
2622$4
2623static long int longval () { return $2; }
2624static unsigned long int ulongval () { return $2; }
2625#include <stdio.h>
2626#include <stdlib.h>
2627int
2628main ()
2629{
2630
2631 FILE *f = fopen ("conftest.val", "w");
2632 if (! f)
2633 return 1;
2634 if (($2) < 0)
2635 {
2636 long int i = longval ();
2637 if (i != ($2))
2638 return 1;
2639 fprintf (f, "%ld", i);
2640 }
2641 else
2642 {
2643 unsigned long int i = ulongval ();
2644 if (i != ($2))
2645 return 1;
2646 fprintf (f, "%lu", i);
2647 }
2648 /* Do not output a trailing newline, as this causes \r\n confusion
2649 on some platforms. */
2650 return ferror (f) || fclose (f) != 0;
2651
2652 ;
2653 return 0;
2654}
2655_ACEOF
2656if ac_fn_c_try_run "$LINENO"; then :
2657 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2658else
2659 ac_retval=1
2660fi
2661rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2662 conftest.$ac_objext conftest.beam conftest.$ac_ext
2663rm -f conftest.val
2664
2665 fi
2666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2667 as_fn_set_status $ac_retval
2668
2669} # ac_fn_c_compute_int
067d23c9
KY
2670cat >config.log <<_ACEOF
2671This file contains any messages produced by compilers while
2672running configure, to aid debugging if configure makes a mistake.
2673
2674It was created by emacs $as_me 24.0.50, which was
d6974efa 2675generated by GNU Autoconf 2.68. Invocation command line was
067d23c9
KY
2676
2677 $ $0 $@
2678
2679_ACEOF
2680exec 5>>config.log
2681{
2682cat <<_ASUNAME
2683## --------- ##
2684## Platform. ##
2685## --------- ##
2686
2687hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2688uname -m = `(uname -m) 2>/dev/null || echo unknown`
2689uname -r = `(uname -r) 2>/dev/null || echo unknown`
2690uname -s = `(uname -s) 2>/dev/null || echo unknown`
2691uname -v = `(uname -v) 2>/dev/null || echo unknown`
2692
2693/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2694/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2695
2696/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2697/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2698/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2699/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2700/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2701/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2702/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2703
2704_ASUNAME
2705
2706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707for as_dir in $PATH
2708do
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 $as_echo "PATH: $as_dir"
2712 done
2713IFS=$as_save_IFS
2714
2715} >&5
2716
2717cat >&5 <<_ACEOF
2718
2719
2720## ----------- ##
2721## Core tests. ##
2722## ----------- ##
2723
2724_ACEOF
2725
2726
2727# Keep a trace of the command line.
2728# Strip out --no-create and --no-recursion so they do not pile up.
2729# Strip out --silent because we don't want to record it for future runs.
2730# Also quote any args containing shell meta-characters.
2731# Make two passes to allow for proper duplicate-argument suppression.
2732ac_configure_args=
2733ac_configure_args0=
2734ac_configure_args1=
2735ac_must_keep_next=false
2736for ac_pass in 1 2
2737do
2738 for ac_arg
2739 do
2740 case $ac_arg in
2741 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2743 | -silent | --silent | --silen | --sile | --sil)
2744 continue ;;
2745 *\'*)
2746 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2747 esac
2748 case $ac_pass in
2749 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2750 2)
2751 as_fn_append ac_configure_args1 " '$ac_arg'"
2752 if test $ac_must_keep_next = true; then
2753 ac_must_keep_next=false # Got value, back to normal.
2754 else
2755 case $ac_arg in
2756 *=* | --config-cache | -C | -disable-* | --disable-* \
2757 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2758 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2759 | -with-* | --with-* | -without-* | --without-* | --x)
2760 case "$ac_configure_args0 " in
2761 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2762 esac
2763 ;;
2764 -* ) ac_must_keep_next=true ;;
2765 esac
2766 fi
2767 as_fn_append ac_configure_args " '$ac_arg'"
2768 ;;
2769 esac
2770 done
2771done
2772{ ac_configure_args0=; unset ac_configure_args0;}
2773{ ac_configure_args1=; unset ac_configure_args1;}
2774
2775# When interrupted or exit'd, cleanup temporary files, and complete
2776# config.log. We remove comments because anyway the quotes in there
2777# would cause problems or look ugly.
2778# WARNING: Use '\'' to represent an apostrophe within the trap.
2779# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2780trap 'exit_status=$?
2781 # Save into config.log some information that might help in debugging.
2782 {
2783 echo
2784
2018939f 2785 $as_echo "## ---------------- ##
067d23c9 2786## Cache variables. ##
2018939f 2787## ---------------- ##"
067d23c9
KY
2788 echo
2789 # The following way of writing the cache mishandles newlines in values,
2790(
2791 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2792 eval ac_val=\$$ac_var
2793 case $ac_val in #(
2794 *${as_nl}*)
2795 case $ac_var in #(
2796 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2797$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2798 esac
2799 case $ac_var in #(
2800 _ | IFS | as_nl) ;; #(
2801 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2802 *) { eval $ac_var=; unset $ac_var;} ;;
2803 esac ;;
2804 esac
2805 done
2806 (set) 2>&1 |
2807 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2808 *${as_nl}ac_space=\ *)
2809 sed -n \
2810 "s/'\''/'\''\\\\'\'''\''/g;
2811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2812 ;; #(
2813 *)
2814 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2815 ;;
2816 esac |
2817 sort
2818)
2819 echo
2820
2018939f 2821 $as_echo "## ----------------- ##
067d23c9 2822## Output variables. ##
2018939f 2823## ----------------- ##"
067d23c9
KY
2824 echo
2825 for ac_var in $ac_subst_vars
2826 do
2827 eval ac_val=\$$ac_var
2828 case $ac_val in
2829 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2830 esac
2831 $as_echo "$ac_var='\''$ac_val'\''"
2832 done | sort
2833 echo
2834
2835 if test -n "$ac_subst_files"; then
2018939f 2836 $as_echo "## ------------------- ##
067d23c9 2837## File substitutions. ##
2018939f 2838## ------------------- ##"
067d23c9
KY
2839 echo
2840 for ac_var in $ac_subst_files
2841 do
2842 eval ac_val=\$$ac_var
2843 case $ac_val in
2844 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2845 esac
2846 $as_echo "$ac_var='\''$ac_val'\''"
2847 done | sort
2848 echo
2849 fi
2850
2851 if test -s confdefs.h; then
2018939f 2852 $as_echo "## ----------- ##
067d23c9 2853## confdefs.h. ##
2018939f 2854## ----------- ##"
067d23c9
KY
2855 echo
2856 cat confdefs.h
2857 echo
2858 fi
2859 test "$ac_signal" != 0 &&
2860 $as_echo "$as_me: caught signal $ac_signal"
2861 $as_echo "$as_me: exit $exit_status"
2862 } >&5
2863 rm -f core *.core core.conftest.* &&
2864 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2865 exit $exit_status
2866' 0
2867for ac_signal in 1 2 13 15; do
2868 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2869done
2870ac_signal=0
2871
2872# confdefs.h avoids OS command line length limits that DEFS can exceed.
2873rm -f -r conftest* confdefs.h
2874
2875$as_echo "/* confdefs.h */" > confdefs.h
2876
2877# Predefined preprocessor variables.
2878
2879cat >>confdefs.h <<_ACEOF
2880#define PACKAGE_NAME "$PACKAGE_NAME"
2881_ACEOF
2882
2883cat >>confdefs.h <<_ACEOF
2884#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2885_ACEOF
2886
2887cat >>confdefs.h <<_ACEOF
2888#define PACKAGE_VERSION "$PACKAGE_VERSION"
2889_ACEOF
2890
2891cat >>confdefs.h <<_ACEOF
2892#define PACKAGE_STRING "$PACKAGE_STRING"
2893_ACEOF
2894
2895cat >>confdefs.h <<_ACEOF
2896#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2897_ACEOF
2898
2899cat >>confdefs.h <<_ACEOF
2900#define PACKAGE_URL "$PACKAGE_URL"
2901_ACEOF
2902
2903
2904# Let the site file select an alternate cache file if it wants to.
2905# Prefer an explicitly selected file to automatically selected ones.
2906ac_site_file1=NONE
2907ac_site_file2=NONE
2908if test -n "$CONFIG_SITE"; then
2018939f
AS
2909 # We do not want a PATH search for config.site.
2910 case $CONFIG_SITE in #((
2911 -*) ac_site_file1=./$CONFIG_SITE;;
2912 */*) ac_site_file1=$CONFIG_SITE;;
2913 *) ac_site_file1=./$CONFIG_SITE;;
2914 esac
067d23c9
KY
2915elif test "x$prefix" != xNONE; then
2916 ac_site_file1=$prefix/share/config.site
2917 ac_site_file2=$prefix/etc/config.site
2918else
2919 ac_site_file1=$ac_default_prefix/share/config.site
2920 ac_site_file2=$ac_default_prefix/etc/config.site
2921fi
2922for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2923do
2924 test "x$ac_site_file" = xNONE && continue
2925 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2927$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2928 sed 's/^/| /' "$ac_site_file" >&5
2018939f
AS
2929 . "$ac_site_file" \
2930 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2932as_fn_error $? "failed to load site script $ac_site_file
d6974efa 2933See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
2934 fi
2935done
2936
2937if test -r "$cache_file"; then
2938 # Some versions of bash will fail to source /dev/null (special files
2939 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2940 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2942$as_echo "$as_me: loading cache $cache_file" >&6;}
2943 case $cache_file in
2944 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2945 *) . "./$cache_file";;
2946 esac
2947 fi
2948else
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2950$as_echo "$as_me: creating cache $cache_file" >&6;}
2951 >$cache_file
2952fi
2953
2954as_fn_append ac_header_list " stdlib.h"
2955as_fn_append ac_header_list " unistd.h"
2956as_fn_append ac_header_list " sys/param.h"
e275c824
PE
2957gl_getopt_required=GNU
2958as_fn_append ac_header_list " getopt.h"
067d23c9 2959as_fn_append ac_func_list " alarm"
5f90be1b
PE
2960as_fn_append ac_header_list " wchar.h"
2961as_fn_append ac_header_list " stdint.h"
16c3e636 2962as_fn_append ac_func_list " tzset"
5fa4ac76 2963as_fn_append ac_header_list " sys/stat.h"
1fd182f0
PE
2964as_fn_append ac_header_list " sys/time.h"
2965as_fn_append ac_func_list " localtime_r"
f68c809d 2966as_fn_append ac_func_list " lstat"
067d23c9
KY
2967# Check that the precious variables saved in the cache have kept the same
2968# value.
2969ac_cache_corrupted=false
2970for ac_var in $ac_precious_vars; do
2971 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2972 eval ac_new_set=\$ac_env_${ac_var}_set
2973 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2974 eval ac_new_val=\$ac_env_${ac_var}_value
2975 case $ac_old_set,$ac_new_set in
2976 set,)
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2978$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2979 ac_cache_corrupted=: ;;
2980 ,set)
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2982$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2983 ac_cache_corrupted=: ;;
2984 ,);;
2985 *)
2986 if test "x$ac_old_val" != "x$ac_new_val"; then
2987 # differences in whitespace do not lead to failure.
2988 ac_old_val_w=`echo x $ac_old_val`
2989 ac_new_val_w=`echo x $ac_new_val`
2990 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2992$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2993 ac_cache_corrupted=:
2994 else
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2996$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2997 eval $ac_var=\$ac_old_val
2998 fi
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3000$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3002$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3003 fi;;
3004 esac
3005 # Pass precious variables to config.status.
3006 if test "$ac_new_set" = set; then
3007 case $ac_new_val in
3008 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3009 *) ac_arg=$ac_var=$ac_new_val ;;
3010 esac
3011 case " $ac_configure_args " in
3012 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3013 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3014 esac
3015 fi
3016done
3017if $ac_cache_corrupted; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3021$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2018939f 3022 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
067d23c9
KY
3023fi
3024## -------------------- ##
3025## Main body of script. ##
3026## -------------------- ##
3027
3028ac_ext=c
3029ac_cpp='$CPP $CPPFLAGS'
3030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3032ac_compiler_gnu=$ac_cv_c_compiler_gnu
3033
3034
3035ac_config_headers="$ac_config_headers src/config.h:src/config.in"
3036
3037
743c80a7 3038am__api_version='1.11'
067d23c9 3039
743c80a7
PE
3040ac_aux_dir=
3041for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3042 if test -f "$ac_dir/install-sh"; then
3043 ac_aux_dir=$ac_dir
3044 ac_install_sh="$ac_aux_dir/install-sh -c"
3045 break
3046 elif 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/shtool"; then
3051 ac_aux_dir=$ac_dir
3052 ac_install_sh="$ac_aux_dir/shtool install -c"
3053 break
3054 fi
3055done
3056if test -z "$ac_aux_dir"; then
3057 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3058fi
067d23c9 3059
743c80a7
PE
3060# These three variables are undocumented and unsupported,
3061# and are intended to be withdrawn in a future Autoconf release.
3062# They can cause serious problems if a builder's source tree is in a directory
3063# whose full name contains unusual characters.
3064ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3065ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3066ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
067d23c9 3067
067d23c9 3068
743c80a7
PE
3069# Find a good install program. We prefer a C program (faster),
3070# so one script is as good as another. But avoid the broken or
3071# incompatible versions:
3072# SysV /etc/install, /usr/sbin/install
3073# SunOS /usr/etc/install
3074# IRIX /sbin/install
3075# AIX /bin/install
3076# AmigaOS /C/install, which installs bootblocks on floppy discs
3077# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3078# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3079# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3080# OS/2's system install, which has a completely different semantic
3081# ./install, which can be erroneously created by make from ./install.sh.
3082# Reject install programs that cannot install multiple files.
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3084$as_echo_n "checking for a BSD-compatible install... " >&6; }
3085if test -z "$INSTALL"; then
d6974efa 3086if ${ac_cv_path_install+:} false; then :
743c80a7
PE
3087 $as_echo_n "(cached) " >&6
3088else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 # Account for people who put trailing slashes in PATH elements.
3095case $as_dir/ in #((
3096 ./ | .// | /[cC]/* | \
3097 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3098 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3099 /usr/ucb/* ) ;;
3100 *)
3101 # OSF1 and SCO ODT 3.0 have their own names for install.
3102 # Don't use installbsd from OSF since it installs stuff as root
3103 # by default.
3104 for ac_prog in ginstall scoinst install; do
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3107 if test $ac_prog = install &&
3108 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3109 # AIX install. It has an incompatible calling convention.
3110 :
3111 elif test $ac_prog = install &&
3112 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3113 # program-specific install script used by HP pwplus--don't use.
3114 :
3115 else
3116 rm -rf conftest.one conftest.two conftest.dir
3117 echo one > conftest.one
3118 echo two > conftest.two
3119 mkdir conftest.dir
3120 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3121 test -s conftest.one && test -s conftest.two &&
3122 test -s conftest.dir/conftest.one &&
3123 test -s conftest.dir/conftest.two
3124 then
3125 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3126 break 3
3127 fi
3128 fi
3129 fi
3130 done
3131 done
3132 ;;
3133esac
067d23c9 3134
743c80a7
PE
3135 done
3136IFS=$as_save_IFS
067d23c9 3137
743c80a7 3138rm -rf conftest.one conftest.two conftest.dir
067d23c9 3139
067d23c9 3140fi
743c80a7
PE
3141 if test "${ac_cv_path_install+set}" = set; then
3142 INSTALL=$ac_cv_path_install
3143 else
3144 # As a last resort, use the slow shell script. Don't cache a
3145 # value for INSTALL within a source directory, because that will
3146 # break other packages using the cache if that directory is
3147 # removed, or if the value is a relative name.
3148 INSTALL=$ac_install_sh
3149 fi
067d23c9 3150fi
743c80a7
PE
3151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3152$as_echo "$INSTALL" >&6; }
067d23c9 3153
743c80a7
PE
3154# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3155# It thinks the first close brace ends the variable substitution.
3156test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
067d23c9 3157
743c80a7 3158test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
067d23c9 3159
743c80a7 3160test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
067d23c9 3161
743c80a7
PE
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3163$as_echo_n "checking whether build environment is sane... " >&6; }
3164# Just in case
3165sleep 1
3166echo timestamp > conftest.file
3167# Reject unsafe characters in $srcdir or the absolute working directory
3168# name. Accept space and tab only in the latter.
3169am_lf='
3170'
3171case `pwd` in
3172 *[\\\"\#\$\&\'\`$am_lf]*)
d6974efa 3173 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
743c80a7
PE
3174esac
3175case $srcdir in
3176 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d6974efa 3177 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
743c80a7 3178esac
067d23c9 3179
743c80a7
PE
3180# Do `set' in a subshell so we don't clobber the current shell's
3181# arguments. Must try -L first in case configure is actually a
3182# symlink; some systems play weird games with the mod time of symlinks
3183# (eg FreeBSD returns the mod time of the symlink's containing
3184# directory).
3185if (
3186 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3187 if test "$*" = "X"; then
3188 # -L didn't work.
3189 set X `ls -t "$srcdir/configure" conftest.file`
3190 fi
3191 rm -f conftest.file
3192 if test "$*" != "X $srcdir/configure conftest.file" \
3193 && test "$*" != "X conftest.file $srcdir/configure"; then
3194
3195 # If neither matched, then we have a broken ls. This can happen
3196 # if, for instance, CONFIG_SHELL is bash and it inherits a
3197 # broken ls alias from the environment. This has actually
3198 # happened. Such a system could not be considered "sane".
3199 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3200alias in your environment" "$LINENO" 5
3201 fi
067d23c9 3202
743c80a7
PE
3203 test "$2" = conftest.file
3204 )
3205then
3206 # Ok.
3207 :
067d23c9 3208else
743c80a7
PE
3209 as_fn_error $? "newly created file is older than distributed files!
3210Check your system clock" "$LINENO" 5
067d23c9 3211fi
743c80a7
PE
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3213$as_echo "yes" >&6; }
3214test "$program_prefix" != NONE &&
3215 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3216# Use a double $ so make ignores it.
3217test "$program_suffix" != NONE &&
3218 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3219# Double any \ or $.
3220# By default was `s,x,x', remove it if useless.
3221ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3222program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
067d23c9 3223
743c80a7
PE
3224# expand $ac_aux_dir to an absolute path
3225am_aux_dir=`cd $ac_aux_dir && pwd`
067d23c9 3226
743c80a7
PE
3227if test x"${MISSING+set}" != xset; then
3228 case $am_aux_dir in
3229 *\ * | *\ *)
3230 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3231 *)
3232 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3233 esac
067d23c9 3234fi
743c80a7
PE
3235# Use eval to expand $SHELL
3236if eval "$MISSING --run true"; then
3237 am_missing_run="$MISSING --run "
067d23c9 3238else
743c80a7
PE
3239 am_missing_run=
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3241$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
067d23c9
KY
3242fi
3243
743c80a7
PE
3244if test x"${install_sh}" != xset; then
3245 case $am_aux_dir in
3246 *\ * | *\ *)
3247 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3248 *)
3249 install_sh="\${SHELL} $am_aux_dir/install-sh"
3250 esac
067d23c9
KY
3251fi
3252
743c80a7
PE
3253# Installed binaries are usually stripped using `strip' when the user
3254# run `make install-strip'. However `strip' might not be the right
3255# tool to use in cross-compilation environments, therefore Automake
3256# will honor the `STRIP' environment variable to overrule this program.
3257if test "$cross_compiling" != no; then
3258 if test -n "$ac_tool_prefix"; then
3259 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3260set dummy ${ac_tool_prefix}strip; ac_word=$2
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 3263if ${ac_cv_prog_STRIP+:} false; then :
743c80a7 3264 $as_echo_n "(cached) " >&6
067d23c9 3265else
743c80a7
PE
3266 if test -n "$STRIP"; then
3267 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3268else
3269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270for as_dir in $PATH
3271do
3272 IFS=$as_save_IFS
3273 test -z "$as_dir" && as_dir=.
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3276 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278 break 2
3279 fi
3280done
3281 done
3282IFS=$as_save_IFS
067d23c9
KY
3283
3284fi
067d23c9 3285fi
743c80a7
PE
3286STRIP=$ac_cv_prog_STRIP
3287if test -n "$STRIP"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3289$as_echo "$STRIP" >&6; }
3290else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292$as_echo "no" >&6; }
067d23c9
KY
3293fi
3294
3295
067d23c9 3296fi
743c80a7
PE
3297if test -z "$ac_cv_prog_STRIP"; then
3298 ac_ct_STRIP=$STRIP
3299 # Extract the first word of "strip", so it can be a program name with args.
3300set dummy strip; ac_word=$2
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 3303if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
743c80a7
PE
3304 $as_echo_n "(cached) " >&6
3305else
3306 if test -n "$ac_ct_STRIP"; then
3307 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3308else
3309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310for as_dir in $PATH
3311do
3312 IFS=$as_save_IFS
3313 test -z "$as_dir" && as_dir=.
3314 for ac_exec_ext in '' $ac_executable_extensions; do
3315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3316 ac_cv_prog_ac_ct_STRIP="strip"
3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 break 2
3319 fi
3320done
3321 done
3322IFS=$as_save_IFS
3323
3324fi
3325fi
3326ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3327if test -n "$ac_ct_STRIP"; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3329$as_echo "$ac_ct_STRIP" >&6; }
3330else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332$as_echo "no" >&6; }
3333fi
3334
3335 if test "x$ac_ct_STRIP" = x; then
3336 STRIP=":"
3337 else
3338 case $cross_compiling:$ac_tool_warned in
3339yes:)
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3342ac_tool_warned=yes ;;
3343esac
3344 STRIP=$ac_ct_STRIP
3345 fi
3346else
3347 STRIP="$ac_cv_prog_STRIP"
3348fi
3349
3350fi
3351INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3352
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3354$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3355if test -z "$MKDIR_P"; then
d6974efa 3356 if ${ac_cv_path_mkdir+:} false; then :
743c80a7
PE
3357 $as_echo_n "(cached) " >&6
3358else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3361do
3362 IFS=$as_save_IFS
3363 test -z "$as_dir" && as_dir=.
3364 for ac_prog in mkdir gmkdir; do
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3367 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3368 'mkdir (GNU coreutils) '* | \
3369 'mkdir (coreutils) '* | \
3370 'mkdir (fileutils) '4.1*)
3371 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3372 break 3;;
3373 esac
3374 done
3375 done
3376 done
3377IFS=$as_save_IFS
3378
3379fi
3380
3381 test -d ./--version && rmdir ./--version
3382 if test "${ac_cv_path_mkdir+set}" = set; then
3383 MKDIR_P="$ac_cv_path_mkdir -p"
3384 else
3385 # As a last resort, use the slow shell script. Don't cache a
3386 # value for MKDIR_P within a source directory, because that will
3387 # break other packages using the cache if that directory is
3388 # removed, or if the value is a relative name.
3389 MKDIR_P="$ac_install_sh -d"
3390 fi
3391fi
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3393$as_echo "$MKDIR_P" >&6; }
3394
a451f14b 3395
743c80a7
PE
3396mkdir_p="$MKDIR_P"
3397case $mkdir_p in
3398 [\\/$]* | ?:[\\/]*) ;;
3399 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3400esac
3401
3402for ac_prog in gawk mawk nawk awk
3403do
3404 # Extract the first word of "$ac_prog", so it can be a program name with args.
3405set dummy $ac_prog; ac_word=$2
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 3408if ${ac_cv_prog_AWK+:} false; then :
743c80a7
PE
3409 $as_echo_n "(cached) " >&6
3410else
3411 if test -n "$AWK"; then
3412 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3413else
3414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415for as_dir in $PATH
3416do
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3421 ac_cv_prog_AWK="$ac_prog"
3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 break 2
3424 fi
3425done
3426 done
3427IFS=$as_save_IFS
3428
3429fi
3430fi
3431AWK=$ac_cv_prog_AWK
3432if test -n "$AWK"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3434$as_echo "$AWK" >&6; }
3435else
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437$as_echo "no" >&6; }
3438fi
3439
3440
3441 test -n "$AWK" && break
3442done
3443
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3445$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3446set x ${MAKE-make}
3447ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6974efa 3448if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
743c80a7
PE
3449 $as_echo_n "(cached) " >&6
3450else
3451 cat >conftest.make <<\_ACEOF
3452SHELL = /bin/sh
3453all:
3454 @echo '@@@%%%=$(MAKE)=@@@%%%'
3455_ACEOF
3456# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3457case `${MAKE-make} -f conftest.make 2>/dev/null` in
3458 *@@@%%%=?*=@@@%%%*)
3459 eval ac_cv_prog_make_${ac_make}_set=yes;;
3460 *)
3461 eval ac_cv_prog_make_${ac_make}_set=no;;
3462esac
3463rm -f conftest.make
3464fi
3465if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3467$as_echo "yes" >&6; }
3468 SET_MAKE=
3469else
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471$as_echo "no" >&6; }
3472 SET_MAKE="MAKE=${MAKE-make}"
3473fi
3474
3475rm -rf .tst 2>/dev/null
3476mkdir .tst 2>/dev/null
3477if test -d .tst; then
3478 am__leading_dot=.
3479else
3480 am__leading_dot=_
3481fi
3482rmdir .tst 2>/dev/null
3483
3484if test "`cd $srcdir && pwd`" != "`pwd`"; then
3485 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3486 # is not polluted with repeated "-I."
3487 am__isrc=' -I$(srcdir)'
3488 # test to see if srcdir already configured
3489 if test -f $srcdir/config.status; then
3490 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3491 fi
3492fi
3493
3494# test whether we have cygpath
3495if test -z "$CYGPATH_W"; then
3496 if (cygpath --version) >/dev/null 2>/dev/null; then
3497 CYGPATH_W='cygpath -w'
3498 else
3499 CYGPATH_W=echo
3500 fi
3501fi
3502
3503
3504# Define the identity of the package.
3505 PACKAGE='emacs'
3506 VERSION='24.0.50'
3507
3508
3509cat >>confdefs.h <<_ACEOF
3510#define PACKAGE "$PACKAGE"
3511_ACEOF
3512
3513
3514cat >>confdefs.h <<_ACEOF
3515#define VERSION "$VERSION"
3516_ACEOF
3517
3518# Some tools Automake needs.
3519
3520ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3521
3522
3523AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3524
3525
3526AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3527
3528
3529AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3530
3531
3532MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3533
3534# We need awk for the "check" target. The system "awk" is bad on
3535# some platforms.
3536# Always define AMTAR for backward compatibility.
3537
3538AMTAR=${AMTAR-"${am_missing_run}tar"}
3539
3540am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3541
3542
3543
3544
3545
3546
3547
3548
3549lispdir='${datadir}/emacs/${version}/lisp'
3550locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3551'${datadir}/emacs/site-lisp'
3552lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3553etcdir='${datadir}/emacs/${version}/etc'
3554archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3555docdir='${datadir}/emacs/${version}/etc'
3556gamedir='${localstatedir}/games/emacs'
3557
3558
3559
3560
3561# Check whether --with-pop was given.
3562if test "${with_pop+set}" = set; then :
3563 withval=$with_pop;
3564else
3565 with_pop=yes
3566fi
3567
3568if test "$with_pop" = yes; then
3569 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3570
3571fi
3572
3573
3574# Check whether --with-kerberos was given.
3575if test "${with_kerberos+set}" = set; then :
3576 withval=$with_kerberos;
3577else
3578 with_kerberos=no
3579fi
3580
3581if test "$with_kerberos" != no; then
3582 $as_echo "#define KERBEROS 1" >>confdefs.h
3583
3584fi
3585
3586
3587# Check whether --with-kerberos5 was given.
3588if test "${with_kerberos5+set}" = set; then :
3589 withval=$with_kerberos5;
3590else
3591 with_kerberos5=no
3592fi
3593
3594if test "${with_kerberos5}" != no; then
3595 if test "${with_kerberos}" = no; then
3596 with_kerberos=yes
3597 $as_echo "#define KERBEROS 1" >>confdefs.h
3598
3599 fi
3600
3601$as_echo "#define KERBEROS5 1" >>confdefs.h
3602
3603fi
3604
3605
3606# Check whether --with-hesiod was given.
3607if test "${with_hesiod+set}" = set; then :
3608 withval=$with_hesiod;
3609else
3610 with_hesiod=no
3611fi
3612
3613if test "$with_hesiod" != no; then
3614
3615$as_echo "#define HESIOD 1" >>confdefs.h
3616
3617fi
3618
3619
3620# Check whether --with-mmdf was given.
3621if test "${with_mmdf+set}" = set; then :
3622 withval=$with_mmdf;
3623else
3624 with_mmdf=no
3625fi
3626
3627if test "$with_mmdf" != no; then
3628
3629$as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3630
3631fi
3632
3633
3634# Check whether --with-mail-unlink was given.
3635if test "${with_mail_unlink+set}" = set; then :
3636 withval=$with_mail_unlink;
3637else
3638 with_mail_unlink=no
3639fi
3640
3641if test "$with_mail_unlink" != no; then
3642
3643$as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3644
3645fi
3646
3647
3648# Check whether --with-mailhost was given.
3649if test "${with_mailhost+set}" = set; then :
3650 withval=$with_mailhost;
3651cat >>confdefs.h <<_ACEOF
3652#define MAILHOST "$withval"
3653_ACEOF
3654
3655fi
3656
3657
3658
067d23c9
KY
3659# Check whether --with-sound was given.
3660if test "${with_sound+set}" = set; then :
3661 withval=$with_sound;
3662else
3663 with_sound=yes
3664fi
3665
3666
3667
3668# Check whether --with-sync-input was given.
3669if test "${with_sync_input+set}" = set; then :
3670 withval=$with_sync_input;
3671else
3672 with_sync_input=yes
3673fi
3674
3675if test "$with_sync_input" = yes; then
3676
3677$as_echo "#define SYNC_INPUT 1" >>confdefs.h
3678
3679fi
3680
3681
3682# Check whether --with-x-toolkit was given.
3683if test "${with_x_toolkit+set}" = set; then :
3684 withval=$with_x_toolkit; case "${withval}" in
3685 y | ye | yes ) val=gtk ;;
3686 n | no ) val=no ;;
3687 l | lu | luc | luci | lucid ) val=lucid ;;
3688 a | at | ath | athe | athen | athena ) val=athena ;;
3689 m | mo | mot | moti | motif ) val=motif ;;
3690 g | gt | gtk ) val=gtk ;;
3691 gtk3 ) val=gtk3 ;;
3692 * )
2018939f 3693as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
067d23c9
KY
3694this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3695\`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3696 ;;
3697 esac
3698 with_x_toolkit=$val
3699
3700fi
3701
3702
3703
3704# Check whether --with-xpm was given.
3705if test "${with_xpm+set}" = set; then :
3706 withval=$with_xpm;
3707else
3708 with_xpm=yes
3709fi
3710
3711
3712# Check whether --with-jpeg was given.
3713if test "${with_jpeg+set}" = set; then :
3714 withval=$with_jpeg;
3715else
3716 with_jpeg=yes
3717fi
3718
3719
3720# Check whether --with-tiff was given.
3721if test "${with_tiff+set}" = set; then :
3722 withval=$with_tiff;
3723else
3724 with_tiff=yes
3725fi
3726
3727
3728# Check whether --with-gif was given.
3729if test "${with_gif+set}" = set; then :
3730 withval=$with_gif;
3731else
3732 with_gif=yes
3733fi
3734
3735
3736# Check whether --with-png was given.
3737if test "${with_png+set}" = set; then :
3738 withval=$with_png;
3739else
3740 with_png=yes
3741fi
3742
3743
3744# Check whether --with-rsvg was given.
3745if test "${with_rsvg+set}" = set; then :
3746 withval=$with_rsvg;
3747else
3748 with_rsvg=yes
3749fi
3750
3751
3752# Check whether --with-xml2 was given.
3753if test "${with_xml2+set}" = set; then :
3754 withval=$with_xml2;
3755else
3756 with_xml2=yes
3757fi
3758
3759
3760# Check whether --with-imagemagick was given.
3761if test "${with_imagemagick+set}" = set; then :
3762 withval=$with_imagemagick;
3763else
3764 with_imagemagick=yes
3765fi
3766
3767
3768
3769# Check whether --with-xft was given.
3770if test "${with_xft+set}" = set; then :
3771 withval=$with_xft;
3772else
3773 with_xft=yes
3774fi
3775
3776
3777# Check whether --with-libotf was given.
3778if test "${with_libotf+set}" = set; then :
3779 withval=$with_libotf;
3780else
3781 with_libotf=yes
3782fi
3783
3784
3785# Check whether --with-m17n-flt was given.
3786if test "${with_m17n_flt+set}" = set; then :
3787 withval=$with_m17n_flt;
3788else
3789 with_m17n_flt=yes
3790fi
3791
3792
3793
3794# Check whether --with-toolkit-scroll-bars was given.
3795if test "${with_toolkit_scroll_bars+set}" = set; then :
3796 withval=$with_toolkit_scroll_bars;
3797else
3798 with_toolkit_scroll_bars=yes
3799fi
3800
3801
3802# Check whether --with-xaw3d was given.
3803if test "${with_xaw3d+set}" = set; then :
3804 withval=$with_xaw3d;
3805else
3806 with_xaw3d=yes
3807fi
3808
3809
3810# Check whether --with-xim was given.
3811if test "${with_xim+set}" = set; then :
3812 withval=$with_xim;
3813else
3814 with_xim=yes
3815fi
3816
3817
3818# Check whether --with-ns was given.
3819if test "${with_ns+set}" = set; then :
3820 withval=$with_ns;
3821else
3822 with_ns=no
3823fi
3824
3825
3826
3827# Check whether --with-gpm was given.
3828if test "${with_gpm+set}" = set; then :
3829 withval=$with_gpm;
3830else
3831 with_gpm=yes
3832fi
3833
3834
3835# Check whether --with-dbus was given.
3836if test "${with_dbus+set}" = set; then :
3837 withval=$with_dbus;
3838else
3839 with_dbus=yes
3840fi
3841
3842
3843# Check whether --with-gconf was given.
3844if test "${with_gconf+set}" = set; then :
3845 withval=$with_gconf;
3846else
3847 with_gconf=yes
3848fi
3849
3850
3851# Check whether --with-selinux was given.
3852if test "${with_selinux+set}" = set; then :
3853 withval=$with_selinux;
3854else
3855 with_selinux=yes
3856fi
3857
3858
3859# Check whether --with-gnutls was given.
3860if test "${with_gnutls+set}" = set; then :
3861 withval=$with_gnutls;
3862else
3863 with_gnutls=yes
3864fi
3865
3866
3867## For the times when you want to build Emacs but don't have
3868## a suitable makeinfo, and can live without the manuals.
3869
3870# Check whether --with-makeinfo was given.
3871if test "${with_makeinfo+set}" = set; then :
3872 withval=$with_makeinfo;
3873else
3874 with_makeinfo=yes
3875fi
3876
3877
3878## This is an option because I do not know if all info/man support
3879## compressed files, nor how to test if they do so.
3880
3881# Check whether --with-compress-info was given.
3882if test "${with_compress_info+set}" = set; then :
3883 withval=$with_compress_info;
3884else
3885 with_compress_info=yes
3886fi
3887
3888if test $with_compress_info = yes; then
3889 GZIP_INFO=yes
3890else
3891 GZIP_INFO=
3892fi
3893
3894
3895
3896# Check whether --with-pkg-config-prog was given.
3897if test "${with_pkg_config_prog+set}" = set; then :
3898 withval=$with_pkg_config_prog;
3899fi
3900
3901if test "X${with_pkg_config_prog}" != X; then
3902 if test "${with_pkg_config_prog}" != yes; then
3903 PKG_CONFIG="${with_pkg_config_prog}"
3904 fi
3905fi
3906
3907CRT_DIR=
3908
3909# Check whether --with-crt-dir was given.
3910if test "${with_crt_dir+set}" = set; then :
3911 withval=$with_crt_dir;
3912fi
3913
3914CRT_DIR="${with_crt_dir}"
3915
3916
4fc5868a
UM
3917# Check whether --with-gameuser was given.
3918if test "${with_gameuser+set}" = set; then :
3919 withval=$with_gameuser;
3920fi
3921
3922test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3923 && gameuser="${with_gameuser}"
3924test "X$gameuser" = X && gameuser=games
3925
3926
067d23c9
KY
3927# Check whether --with-gnustep-conf was given.
3928if test "${with_gnustep_conf+set}" = set; then :
3929 withval=$with_gnustep_conf;
3930fi
3931
3932test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3933 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3934test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3935 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3936
3937# Check whether --enable-ns-self-contained was given.
3938if test "${enable_ns_self_contained+set}" = set; then :
3939 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3940else
3941 EN_NS_SELF_CONTAINED=yes
3942fi
3943
3944
3945# Check whether --enable-asserts was given.
3946if test "${enable_asserts+set}" = set; then :
3947 enableval=$enable_asserts; USE_XASSERTS=$enableval
3948else
3949 USE_XASSERTS=no
3950fi
3951
3952
3953# Check whether --enable-maintainer-mode was given.
3954if test "${enable_maintainer_mode+set}" = set; then :
3955 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3956else
3957 USE_MAINTAINER_MODE=no
3958fi
3959
3960if test $USE_MAINTAINER_MODE = yes; then
3961 MAINT=
3962else
3963 MAINT=#
3964fi
3965
3966
3967# Check whether --enable-locallisppath was given.
3968if test "${enable_locallisppath+set}" = set; then :
3969 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3970 locallisppath=
3971elif test "${enableval}" != "yes"; then
3972 locallisppath=${enableval}
3973fi
3974fi
3975
3976
3977# Check whether --enable-checking was given.
3978if test "${enable_checking+set}" = set; then :
3979 enableval=$enable_checking; ac_checking_flags="${enableval}"
3980fi
3981
3982IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3983for check in $ac_checking_flags
3984do
3985 case $check in
3986 # these set all the flags to specific states
3987 yes) ac_enable_checking=1 ;;
3988 no) ac_enable_checking= ;
3989 ac_gc_check_stringbytes= ;
3990 ac_gc_check_string_overrun= ;
3991 ac_gc_check_string_free_list= ;
3992 ac_xmalloc_overrun= ;
3993 ac_gc_check_cons_list= ;;
3994 all) ac_enable_checking=1 ;
3995 ac_gc_check_stringbytes=1 ;
3996 ac_gc_check_string_overrun=1 ;
3997 ac_gc_check_string_free_list=1 ;
3998 ac_xmalloc_overrun=1 ;
3999 ac_gc_check_cons_list=1 ;;
4000 # these enable particular checks
4001 stringbytes) ac_gc_check_stringbytes=1 ;;
4002 stringoverrun) ac_gc_check_string_overrun=1 ;;
4003 stringfreelist) ac_gc_check_string_free_list=1 ;;
4004 xmallocoverrun) ac_xmalloc_overrun=1 ;;
4005 conslist) ac_gc_check_cons_list=1 ;;
d6974efa 4006 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
067d23c9
KY
4007 esac
4008done
4009IFS="$ac_save_IFS"
4010
4011if test x$ac_enable_checking != x ; then
4012
4013$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
4014
4015fi
4016if test x$ac_gc_check_stringbytes != x ; then
4017
4018$as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
4019
4020fi
4021if test x$ac_gc_check_stringoverrun != x ; then
4022
4023$as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
4024
4025fi
4026if test x$ac_gc_check_string_free_list != x ; then
4027
4028$as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
4029
4030fi
4031if test x$ac_xmalloc_overrun != x ; then
4032
4033$as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
4034
4035fi
4036if test x$ac_gc_check_cons_list != x ; then
4037
4038$as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
4039
4040fi
4041
4042# Check whether --enable-use-lisp-union-type was given.
4043if test "${enable_use_lisp_union_type+set}" = set; then :
4044 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
4045
4046$as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
4047
4048fi
4049fi
4050
4051
4052
4053# Check whether --enable-profiling was given.
4054if test "${enable_profiling+set}" = set; then :
4055 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
4056fi
4057
4058if test x$ac_enable_profiling != x ; then
4059 PROFILING_CFLAGS="-DPROFILING=1 -pg"
4060else
4061 PROFILING_CFLAGS=
4062fi
4063
4064
4065# Check whether --enable-autodepend was given.
4066if test "${enable_autodepend+set}" = set; then :
4067 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
4068else
4069 ac_enable_autodepend=yes
4070fi
4071
4072
4073#### Make srcdir absolute, if it isn't already. It's important to
4074#### avoid running the path through pwd unnecessarily, since pwd can
4075#### give you automounter prefixes, which can go away. We do all this
4076#### so Emacs can find its files when run uninstalled.
4077## Make sure CDPATH doesn't affect cd (in case PWD is relative).
4078unset CDPATH
4079case "${srcdir}" in
4080 /* ) ;;
4081 . )
4082 ## We may be able to use the $PWD environment variable to make this
4083 ## absolute. But sometimes PWD is inaccurate.
4084 ## Note: we used to use ${PWD} at the end instead of `pwd`,
4085 ## but that tested only for a well-formed and valid PWD,
4086 ## it did not object when PWD was well-formed and valid but just wrong.
4087 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
4088 then
4089 srcdir="$PWD"
4090 else
4091 srcdir="`(cd ${srcdir}; pwd)`"
4092 fi
4093 ;;
4094 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
4095esac
4096
4097#### Check if the source directory already has a configured system in it.
4098if test `pwd` != `(cd ${srcdir} && pwd)` \
4099 && test -f "${srcdir}/src/config.h" ; then
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
4101 as a build directory right now; it has been configured in its own
4102 right. To configure in another directory as well, you MUST
4103 use GNU make. If you do not have GNU make, then you must
4104 now do \`make distclean' in ${srcdir},
4105 and then run $0 again." >&5
4106$as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
4107 as a build directory right now; it has been configured in its own
4108 right. To configure in another directory as well, you MUST
4109 use GNU make. If you do not have GNU make, then you must
4110 now do \`make distclean' in ${srcdir},
4111 and then run $0 again." >&2;}
4112fi
4113
4114#### Given the configuration name, set machfile and opsysfile to the
4115#### names of the m/*.h and s/*.h files we should use.
4116
4117### Canonicalize the configuration name.
4118
067d23c9
KY
4119# Make sure we can run config.sub.
4120$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2018939f 4121 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
067d23c9
KY
4122
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4124$as_echo_n "checking build system type... " >&6; }
d6974efa 4125if ${ac_cv_build+:} false; then :
067d23c9
KY
4126 $as_echo_n "(cached) " >&6
4127else
4128 ac_build_alias=$build_alias
4129test "x$ac_build_alias" = x &&
4130 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4131test "x$ac_build_alias" = x &&
2018939f 4132 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
067d23c9 4133ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2018939f 4134 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
067d23c9
KY
4135
4136fi
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4138$as_echo "$ac_cv_build" >&6; }
4139case $ac_cv_build in
4140*-*-*) ;;
d6974efa 4141*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
067d23c9
KY
4142esac
4143build=$ac_cv_build
4144ac_save_IFS=$IFS; IFS='-'
4145set x $ac_cv_build
4146shift
4147build_cpu=$1
4148build_vendor=$2
4149shift; shift
4150# Remember, the first character of IFS is used to create $*,
4151# except with old shells:
4152build_os=$*
4153IFS=$ac_save_IFS
4154case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4155
4156
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4158$as_echo_n "checking host system type... " >&6; }
d6974efa 4159if ${ac_cv_host+:} false; then :
067d23c9
KY
4160 $as_echo_n "(cached) " >&6
4161else
4162 if test "x$host_alias" = x; then
4163 ac_cv_host=$ac_cv_build
4164else
4165 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2018939f 4166 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
067d23c9
KY
4167fi
4168
4169fi
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4171$as_echo "$ac_cv_host" >&6; }
4172case $ac_cv_host in
4173*-*-*) ;;
d6974efa 4174*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
067d23c9
KY
4175esac
4176host=$ac_cv_host
4177ac_save_IFS=$IFS; IFS='-'
4178set x $ac_cv_host
4179shift
4180host_cpu=$1
4181host_vendor=$2
4182shift; shift
4183# Remember, the first character of IFS is used to create $*,
4184# except with old shells:
4185host_os=$*
4186IFS=$ac_save_IFS
4187case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4188
4189
4190canonical=$host
4191configuration=${host_alias-${build_alias-$host}}
4192
4193
4194
4195### If you add support for a new configuration, add code to this
4196### switch statement to recognize your configuration name and select
4197### the appropriate operating system and machine description files.
4198
4199### You would hope that you could choose an m/*.h file pretty much
4200### based on the machine portion of the configuration name, and an s/*.h
4201### file based on the operating system portion. However, it turns out
4202### that each m/*.h file is pretty manufacturer-specific - for
4203### example mips.h is MIPS
4204### So we basically have to have a special case for each
4205### configuration name.
4206###
4207### As far as handling version numbers on operating systems is
4208### concerned, make sure things will fail in a fixable way. If
4209### /etc/MACHINES doesn't say anything about version numbers, be
4210### prepared to handle anything reasonably. If version numbers
4211### matter, be sure /etc/MACHINES says something about it.
4212
4213machine='' opsys='' unported=no
4214case "${canonical}" in
4215
d6a003a8
AS
4216 ## GNU/Linux ports
4217 *-*-linux-gnu*)
4218 opsys=gnu-linux
4219 case ${canonical} in
4220 alpha*) machine=alpha ;;
4221 s390-*) machine=ibms390 ;;
4222 s390x-*) machine=ibms390x ;;
4223 powerpc*) machine=macppc ;;
4224 sparc*) machine=sparc ;;
4225 ia64*) machine=ia64 ;;
4226 m68k*) machine=m68k ;;
4227 x86_64*) machine=amdx86-64 ;;
4228 esac
4229 ;;
4230
067d23c9
KY
4231 ## FreeBSD ports
4232 *-*-freebsd* )
4233 opsys=freebsd
4234 case "${canonical}" in
4235 alpha*) machine=alpha ;;
4236 amd64-*|x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
4237 ia64-*) machine=ia64 ;;
4238 i[3456]86-*) machine=intel386 ;;
4239 powerpc-*) machine=macppc ;;
4240 sparc-*) machine=sparc ;;
4241 sparc64-*) machine=sparc ;;
4242 esac
4243 ;;
4244
4245 ## FreeBSD kernel + glibc based userland
4246 *-*-kfreebsd*gnu* )
4247 opsys=gnu-kfreebsd
4248 case "${canonical}" in
4249 alpha*) machine=alpha ;;
4250 amd64-*|x86_64-*) machine=amdx86-64 ;;
4251 ia64-*) machine=ia64 ;;
4252 i[3456]86-*) machine=intel386 ;;
4253 powerpc-*) machine=macppc ;;
4254 sparc-*) machine=sparc ;;
4255 sparc64-*) machine=sparc ;;
4256 esac
4257 ;;
4258
4259 ## NetBSD ports
4260 *-*-netbsd* )
4261 opsys=netbsd
4262 case "${canonical}" in
4263 alpha*) machine=alpha ;;
4264 x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
4265 i[3456]86-*) machine=intel386 ;;
4266 m68k-*) machine=m68k ;;
4267 powerpc-*) machine=macppc ;;
067d23c9
KY
4268 sparc*-) machine=sparc ;;
4269 vax-*) machine=vax ;;
4270 esac
4271 ;;
4272
4273 ## OpenBSD ports
4274 *-*-openbsd* )
4275 opsys=openbsd
4276 case "${canonical}" in
4277 alpha*) machine=alpha ;;
4278 x86_64-*) machine=amdx86-64 ;;
067d23c9
KY
4279 i386-*) machine=intel386 ;;
4280 powerpc-*) machine=macppc ;;
4281 sparc*) machine=sparc ;;
4282 vax-*) machine=vax ;;
4283 esac
4284 ;;
4285
067d23c9
KY
4286 ## Apple Darwin / Mac OS X
4287 *-apple-darwin* )
4288 case "${canonical}" in
4289 i[3456]86-* ) machine=intel386 ;;
4290 powerpc-* ) machine=macppc ;;
4291 x86_64-* ) machine=amdx86-64 ;;
4292 * ) unported=yes ;;
4293 esac
4294 opsys=darwin
4295 # Define CPP as follows to make autoconf work correctly.
4296 CPP="${CC-cc} -E -no-cpp-precomp"
4297 # Use fink packages if available.
4298 if test -d /sw/include && test -d /sw/lib; then
4299 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4300 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4301 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4302 fi
4303 ;;
4304
4305 ## HP 9000 series 700 and 800, running HP/UX
4306 hppa*-hp-hpux10.2* )
d6a003a8 4307 opsys=hpux10-20
067d23c9
KY
4308 ;;
4309 hppa*-hp-hpux1[1-9]* )
d6a003a8 4310 opsys=hpux11
067d23c9
KY
4311 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4312 ;;
4313
125c3718
PE
4314 ia64*-hp-hpux1[1-9]* )
4315 machine=hp800 opsys=hpux11
4316 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4317 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4318 CANNOT_DUMP=yes
4319 ;;
4320
4321 hppa*-*-linux-gnu* )
4322 machine=hp800 opsys=gnu-linux
4323 ;;
4324
067d23c9 4325 ## IBM machines
067d23c9
KY
4326 rs6000-ibm-aix4.[23]* )
4327 machine=ibmrs6000 opsys=aix4-2
4328 ;;
4329 powerpc-ibm-aix4.[23]* )
4330 machine=ibmrs6000 opsys=aix4-2
4331 ;;
4332 rs6000-ibm-aix[56]* )
4333 machine=ibmrs6000 opsys=aix4-2
4334 ;;
4335 powerpc-ibm-aix[56]* )
4336 machine=ibmrs6000 opsys=aix4-2
4337 ;;
4338
067d23c9
KY
4339 ## Silicon Graphics machines
4340 ## Iris 4D
4341 mips-sgi-irix6.5 )
4342 machine=iris4d opsys=irix6-5
4343 # Without defining _LANGUAGE_C, things get masked out in the headers
4344 # so that, for instance, grepping for `free' in stdlib.h fails and
4345 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4346 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4347 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4348 ;;
4349
4350 ## Suns
067d23c9
KY
4351 *-sun-solaris* \
4352 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4353 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4354 case "${canonical}" in
4355 i[3456]86-*-* ) machine=intel386 ;;
4356 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4357 sparc* ) machine=sparc ;;
4358 * ) unported=yes ;;
4359 esac
4360 case "${canonical}" in
4361 *-sunos5.6* | *-solaris2.6* )
4362 opsys=sol2-6
4363 NON_GNU_CPP=/usr/ccs/lib/cpp
4364 RANLIB="ar -ts"
4365 ;;
4366 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4367 opsys=sol2-6
4368 emacs_check_sunpro_c=yes
4369 NON_GNU_CPP=/usr/ccs/lib/cpp
4370 ;;
4371 *-sunos5* | *-solaris* )
4372 opsys=sol2-10
4373 emacs_check_sunpro_c=yes
4374 NON_GNU_CPP=/usr/ccs/lib/cpp
4375 ;;
4376 esac
4377 ## Watch out for a compiler that we know will not work.
4378 case "${canonical}" in
4379 *-solaris* | *-sunos5* )
4380 if [ "x$CC" = x/usr/ucb/cc ]; then
4381 ## /usr/ucb/cc doesn't work;
4382 ## we should find some other compiler that does work.
4383 unset CC
4384 fi
4385 ;;
4386 *) ;;
4387 esac
4388 ;;
4389
067d23c9
KY
4390 ## Intel 386 machines where we don't care about the manufacturer.
4391 i[3456]86-*-* )
4392 machine=intel386
4393 case "${canonical}" in
4394 *-cygwin ) opsys=cygwin ;;
4395 *-darwin* ) opsys=darwin
4396 CPP="${CC-cc} -E -no-cpp-precomp"
4397 ;;
067d23c9
KY
4398 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4399 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4400 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4401 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4402 esac
4403 ;;
4404
067d23c9
KY
4405 * )
4406 unported=yes
4407 ;;
4408esac
4409
4410### If the code above didn't choose an operating system, just choose
4411### an operating system based on the configuration name. You really
4412### only want to use this when you have no idea what the right
4413### operating system is; if you know what operating systems a machine
4414### runs, it's cleaner to make it explicit in the case statement
4415### above.
4416if test x"${opsys}" = x; then
4417 case "${canonical}" in
4418 *-gnu* ) opsys=gnu ;;
4419 * )
4420 unported=yes
4421 ;;
4422 esac
4423fi
4424
4425
4426
4427if test $unported = yes; then
2018939f 4428 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
067d23c9
KY
4429Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4430fi
4431
d6a003a8
AS
4432if test -n "$machine"; then
4433 machfile="m/${machine}.h"
4434else
4435 machfile=
4436fi
067d23c9
KY
4437opsysfile="s/${opsys}.h"
4438
4439
4440#### Choose a compiler.
4441test -n "$CC" && cc_specified=yes
4442
4443# Save the value of CFLAGS that the user specified.
4444SPECIFIED_CFLAGS="$CFLAGS"
4445
4446ac_ext=c
4447ac_cpp='$CPP $CPPFLAGS'
4448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4450ac_compiler_gnu=$ac_cv_c_compiler_gnu
4451if test -n "$ac_tool_prefix"; then
4452 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4453set dummy ${ac_tool_prefix}gcc; ac_word=$2
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4456if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4457 $as_echo_n "(cached) " >&6
4458else
4459 if test -n "$CC"; then
4460 ac_cv_prog_CC="$CC" # Let the user override the test.
4461else
4462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463for as_dir in $PATH
4464do
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 break 2
4472 fi
4473done
4474 done
4475IFS=$as_save_IFS
4476
4477fi
4478fi
4479CC=$ac_cv_prog_CC
4480if test -n "$CC"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4482$as_echo "$CC" >&6; }
4483else
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485$as_echo "no" >&6; }
4486fi
4487
4488
4489fi
4490if test -z "$ac_cv_prog_CC"; then
4491 ac_ct_CC=$CC
4492 # Extract the first word of "gcc", so it can be a program name with args.
4493set dummy gcc; ac_word=$2
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4496if ${ac_cv_prog_ac_ct_CC+:} false; then :
067d23c9
KY
4497 $as_echo_n "(cached) " >&6
4498else
4499 if test -n "$ac_ct_CC"; then
4500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4501else
4502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503for as_dir in $PATH
4504do
4505 IFS=$as_save_IFS
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4509 ac_cv_prog_ac_ct_CC="gcc"
4510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 break 2
4512 fi
4513done
4514 done
4515IFS=$as_save_IFS
4516
4517fi
4518fi
4519ac_ct_CC=$ac_cv_prog_ac_ct_CC
4520if test -n "$ac_ct_CC"; then
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4522$as_echo "$ac_ct_CC" >&6; }
4523else
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525$as_echo "no" >&6; }
4526fi
4527
4528 if test "x$ac_ct_CC" = x; then
4529 CC=""
4530 else
4531 case $cross_compiling:$ac_tool_warned in
4532yes:)
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4535ac_tool_warned=yes ;;
4536esac
4537 CC=$ac_ct_CC
4538 fi
4539else
4540 CC="$ac_cv_prog_CC"
4541fi
4542
4543if test -z "$CC"; then
4544 if test -n "$ac_tool_prefix"; then
4545 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4546set dummy ${ac_tool_prefix}cc; ac_word=$2
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4549if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4550 $as_echo_n "(cached) " >&6
4551else
4552 if test -n "$CC"; then
4553 ac_cv_prog_CC="$CC" # Let the user override the test.
4554else
4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4562 ac_cv_prog_CC="${ac_tool_prefix}cc"
4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 break 2
4565 fi
4566done
4567 done
4568IFS=$as_save_IFS
4569
4570fi
4571fi
4572CC=$ac_cv_prog_CC
4573if test -n "$CC"; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4575$as_echo "$CC" >&6; }
4576else
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578$as_echo "no" >&6; }
4579fi
4580
4581
4582 fi
4583fi
4584if test -z "$CC"; then
4585 # Extract the first word of "cc", so it can be a program name with args.
4586set dummy cc; ac_word=$2
4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4589if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4590 $as_echo_n "(cached) " >&6
4591else
4592 if test -n "$CC"; then
4593 ac_cv_prog_CC="$CC" # Let the user override the test.
4594else
4595 ac_prog_rejected=no
4596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597for as_dir in $PATH
4598do
4599 IFS=$as_save_IFS
4600 test -z "$as_dir" && as_dir=.
4601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4603 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4604 ac_prog_rejected=yes
4605 continue
4606 fi
4607 ac_cv_prog_CC="cc"
4608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611done
4612 done
4613IFS=$as_save_IFS
4614
4615if test $ac_prog_rejected = yes; then
4616 # We found a bogon in the path, so make sure we never use it.
4617 set dummy $ac_cv_prog_CC
4618 shift
4619 if test $# != 0; then
4620 # We chose a different compiler from the bogus one.
4621 # However, it has the same basename, so the bogon will be chosen
4622 # first if we set CC to just the basename; use the full file name.
4623 shift
4624 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4625 fi
4626fi
4627fi
4628fi
4629CC=$ac_cv_prog_CC
4630if test -n "$CC"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4632$as_echo "$CC" >&6; }
4633else
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635$as_echo "no" >&6; }
4636fi
4637
4638
4639fi
4640if test -z "$CC"; then
4641 if test -n "$ac_tool_prefix"; then
4642 for ac_prog in cl.exe
4643 do
4644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4645set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4648if ${ac_cv_prog_CC+:} false; then :
067d23c9
KY
4649 $as_echo_n "(cached) " >&6
4650else
4651 if test -n "$CC"; then
4652 ac_cv_prog_CC="$CC" # Let the user override the test.
4653else
4654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655for as_dir in $PATH
4656do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4664 fi
4665done
4666 done
4667IFS=$as_save_IFS
4668
4669fi
4670fi
4671CC=$ac_cv_prog_CC
4672if test -n "$CC"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4674$as_echo "$CC" >&6; }
4675else
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677$as_echo "no" >&6; }
4678fi
4679
4680
4681 test -n "$CC" && break
4682 done
4683fi
4684if test -z "$CC"; then
4685 ac_ct_CC=$CC
4686 for ac_prog in cl.exe
4687do
4688 # Extract the first word of "$ac_prog", so it can be a program name with args.
4689set dummy $ac_prog; ac_word=$2
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 4692if ${ac_cv_prog_ac_ct_CC+:} false; then :
067d23c9
KY
4693 $as_echo_n "(cached) " >&6
4694else
4695 if test -n "$ac_ct_CC"; then
4696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4705 ac_cv_prog_ac_ct_CC="$ac_prog"
4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709done
4710 done
4711IFS=$as_save_IFS
4712
4713fi
4714fi
4715ac_ct_CC=$ac_cv_prog_ac_ct_CC
4716if test -n "$ac_ct_CC"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4718$as_echo "$ac_ct_CC" >&6; }
4719else
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721$as_echo "no" >&6; }
4722fi
4723
4724
4725 test -n "$ac_ct_CC" && break
4726done
4727
4728 if test "x$ac_ct_CC" = x; then
4729 CC=""
4730 else
4731 case $cross_compiling:$ac_tool_warned in
4732yes:)
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4735ac_tool_warned=yes ;;
4736esac
4737 CC=$ac_ct_CC
4738 fi
4739fi
4740
4741fi
4742
4743
4744test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4746as_fn_error $? "no acceptable C compiler found in \$PATH
d6974efa 4747See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4748
4749# Provide some information about the compiler.
4750$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4751set X $ac_compile
4752ac_compiler=$2
4753for ac_option in --version -v -V -qversion; do
4754 { { ac_try="$ac_compiler $ac_option >&5"
4755case "(($ac_try" in
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4758esac
4759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4760$as_echo "$ac_try_echo"; } >&5
4761 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4762 ac_status=$?
4763 if test -s conftest.err; then
4764 sed '10a\
4765... rest of stderr output deleted ...
4766 10q' conftest.err >conftest.er1
4767 cat conftest.er1 >&5
4768 fi
4769 rm -f conftest.er1 conftest.err
4770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4771 test $ac_status = 0; }
4772done
4773
4774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775/* end confdefs.h. */
4776
4777int
4778main ()
4779{
4780
4781 ;
4782 return 0;
4783}
4784_ACEOF
4785ac_clean_files_save=$ac_clean_files
4786ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4787# Try to create an executable without -o first, disregard a.out.
4788# It will help us diagnose broken compilers, and finding out an intuition
4789# of exeext.
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4791$as_echo_n "checking whether the C compiler works... " >&6; }
4792ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4793
4794# The possible output files:
4795ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4796
4797ac_rmfiles=
4798for ac_file in $ac_files
4799do
4800 case $ac_file in
4801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4802 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4803 esac
4804done
4805rm -f $ac_rmfiles
4806
4807if { { ac_try="$ac_link_default"
4808case "(($ac_try" in
4809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810 *) ac_try_echo=$ac_try;;
4811esac
4812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4813$as_echo "$ac_try_echo"; } >&5
4814 (eval "$ac_link_default") 2>&5
4815 ac_status=$?
4816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4817 test $ac_status = 0; }; then :
4818 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4819# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4820# in a Makefile. We should not override ac_cv_exeext if it was cached,
4821# so that the user can short-circuit this test for compilers unknown to
4822# Autoconf.
4823for ac_file in $ac_files ''
4824do
4825 test -f "$ac_file" || continue
4826 case $ac_file in
4827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4828 ;;
4829 [ab].out )
4830 # We found the default executable, but exeext='' is most
4831 # certainly right.
4832 break;;
4833 *.* )
4834 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4835 then :; else
4836 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4837 fi
4838 # We set ac_cv_exeext here because the later test for it is not
4839 # safe: cross compilers may not add the suffix if given an `-o'
4840 # argument, so we may need to know it at that point already.
4841 # Even if this section looks crufty: it has the advantage of
4842 # actually working.
4843 break;;
4844 * )
4845 break;;
4846 esac
4847done
4848test "$ac_cv_exeext" = no && ac_cv_exeext=
4849
4850else
4851 ac_file=''
4852fi
4853if test -z "$ac_file"; then :
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855$as_echo "no" >&6; }
4856$as_echo "$as_me: failed program was:" >&5
4857sed 's/^/| /' conftest.$ac_ext >&5
4858
4859{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4861as_fn_error 77 "C compiler cannot create executables
d6974efa 4862See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4863else
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4865$as_echo "yes" >&6; }
4866fi
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4868$as_echo_n "checking for C compiler default output file name... " >&6; }
4869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4870$as_echo "$ac_file" >&6; }
4871ac_exeext=$ac_cv_exeext
4872
4873rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4874ac_clean_files=$ac_clean_files_save
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4876$as_echo_n "checking for suffix of executables... " >&6; }
4877if { { ac_try="$ac_link"
4878case "(($ac_try" in
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4881esac
4882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4883$as_echo "$ac_try_echo"; } >&5
4884 (eval "$ac_link") 2>&5
4885 ac_status=$?
4886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4887 test $ac_status = 0; }; then :
4888 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4889# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4890# work properly (i.e., refer to `conftest.exe'), while it won't with
4891# `rm'.
4892for ac_file in conftest.exe conftest conftest.*; do
4893 test -f "$ac_file" || continue
4894 case $ac_file in
4895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4896 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4897 break;;
4898 * ) break;;
4899 esac
4900done
4901else
4902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4904as_fn_error $? "cannot compute suffix of executables: cannot compile and link
d6974efa 4905See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4906fi
4907rm -f conftest conftest$ac_cv_exeext
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4909$as_echo "$ac_cv_exeext" >&6; }
4910
4911rm -f conftest.$ac_ext
4912EXEEXT=$ac_cv_exeext
4913ac_exeext=$EXEEXT
4914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915/* end confdefs.h. */
4916#include <stdio.h>
4917int
4918main ()
4919{
4920FILE *f = fopen ("conftest.out", "w");
4921 return ferror (f) || fclose (f) != 0;
4922
4923 ;
4924 return 0;
4925}
4926_ACEOF
4927ac_clean_files="$ac_clean_files conftest.out"
4928# Check that the compiler produces executables we can run. If not, either
4929# the compiler is broken, or we cross compile.
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4931$as_echo_n "checking whether we are cross compiling... " >&6; }
4932if test "$cross_compiling" != yes; then
4933 { { ac_try="$ac_link"
4934case "(($ac_try" in
4935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936 *) ac_try_echo=$ac_try;;
4937esac
4938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4939$as_echo "$ac_try_echo"; } >&5
4940 (eval "$ac_link") 2>&5
4941 ac_status=$?
4942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4943 test $ac_status = 0; }
4944 if { ac_try='./conftest$ac_cv_exeext'
4945 { { case "(($ac_try" in
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4948esac
4949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4950$as_echo "$ac_try_echo"; } >&5
4951 (eval "$ac_try") 2>&5
4952 ac_status=$?
4953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4954 test $ac_status = 0; }; }; then
4955 cross_compiling=no
4956 else
4957 if test "$cross_compiling" = maybe; then
4958 cross_compiling=yes
4959 else
4960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 4962as_fn_error $? "cannot run C compiled programs.
067d23c9 4963If you meant to cross compile, use \`--host'.
d6974efa 4964See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
4965 fi
4966 fi
4967fi
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4969$as_echo "$cross_compiling" >&6; }
4970
4971rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4972ac_clean_files=$ac_clean_files_save
4973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4974$as_echo_n "checking for suffix of object files... " >&6; }
d6974efa 4975if ${ac_cv_objext+:} false; then :
067d23c9
KY
4976 $as_echo_n "(cached) " >&6
4977else
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979/* end confdefs.h. */
4980
4981int
4982main ()
4983{
4984
4985 ;
4986 return 0;
4987}
4988_ACEOF
4989rm -f conftest.o conftest.obj
4990if { { ac_try="$ac_compile"
4991case "(($ac_try" in
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4994esac
4995eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4996$as_echo "$ac_try_echo"; } >&5
4997 (eval "$ac_compile") 2>&5
4998 ac_status=$?
4999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5000 test $ac_status = 0; }; then :
5001 for ac_file in conftest.o conftest.obj conftest.*; do
5002 test -f "$ac_file" || continue;
5003 case $ac_file in
5004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5005 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5006 break;;
5007 esac
5008done
5009else
5010 $as_echo "$as_me: failed program was:" >&5
5011sed 's/^/| /' conftest.$ac_ext >&5
5012
5013{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5014$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 5015as_fn_error $? "cannot compute suffix of object files: cannot compile
d6974efa 5016See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
5017fi
5018rm -f conftest.$ac_cv_objext conftest.$ac_ext
5019fi
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5021$as_echo "$ac_cv_objext" >&6; }
5022OBJEXT=$ac_cv_objext
5023ac_objext=$OBJEXT
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5025$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d6974efa 5026if ${ac_cv_c_compiler_gnu+:} false; then :
067d23c9
KY
5027 $as_echo_n "(cached) " >&6
5028else
5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030/* end confdefs.h. */
5031
5032int
5033main ()
5034{
5035#ifndef __GNUC__
5036 choke me
5037#endif
5038
5039 ;
5040 return 0;
5041}
5042_ACEOF
5043if ac_fn_c_try_compile "$LINENO"; then :
5044 ac_compiler_gnu=yes
5045else
5046 ac_compiler_gnu=no
5047fi
5048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5049ac_cv_c_compiler_gnu=$ac_compiler_gnu
5050
5051fi
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5053$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5054if test $ac_compiler_gnu = yes; then
5055 GCC=yes
5056else
5057 GCC=
5058fi
5059ac_test_CFLAGS=${CFLAGS+set}
5060ac_save_CFLAGS=$CFLAGS
5061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5062$as_echo_n "checking whether $CC accepts -g... " >&6; }
d6974efa 5063if ${ac_cv_prog_cc_g+:} false; then :
067d23c9
KY
5064 $as_echo_n "(cached) " >&6
5065else
5066 ac_save_c_werror_flag=$ac_c_werror_flag
5067 ac_c_werror_flag=yes
5068 ac_cv_prog_cc_g=no
5069 CFLAGS="-g"
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071/* end confdefs.h. */
5072
5073int
5074main ()
5075{
5076
5077 ;
5078 return 0;
5079}
5080_ACEOF
5081if ac_fn_c_try_compile "$LINENO"; then :
5082 ac_cv_prog_cc_g=yes
5083else
5084 CFLAGS=""
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086/* end confdefs.h. */
5087
5088int
5089main ()
5090{
5091
5092 ;
5093 return 0;
5094}
5095_ACEOF
5096if ac_fn_c_try_compile "$LINENO"; then :
5097
5098else
5099 ac_c_werror_flag=$ac_save_c_werror_flag
5100 CFLAGS="-g"
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102/* end confdefs.h. */
5103
5104int
5105main ()
5106{
5107
5108 ;
5109 return 0;
5110}
5111_ACEOF
5112if ac_fn_c_try_compile "$LINENO"; then :
5113 ac_cv_prog_cc_g=yes
5114fi
5115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116fi
5117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118fi
5119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120 ac_c_werror_flag=$ac_save_c_werror_flag
5121fi
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5123$as_echo "$ac_cv_prog_cc_g" >&6; }
5124if test "$ac_test_CFLAGS" = set; then
5125 CFLAGS=$ac_save_CFLAGS
5126elif test $ac_cv_prog_cc_g = yes; then
5127 if test "$GCC" = yes; then
5128 CFLAGS="-g -O2"
5129 else
5130 CFLAGS="-g"
5131 fi
5132else
5133 if test "$GCC" = yes; then
5134 CFLAGS="-O2"
5135 else
5136 CFLAGS=
5137 fi
5138fi
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5140$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d6974efa 5141if ${ac_cv_prog_cc_c89+:} false; then :
067d23c9
KY
5142 $as_echo_n "(cached) " >&6
5143else
5144 ac_cv_prog_cc_c89=no
5145ac_save_CC=$CC
5146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147/* end confdefs.h. */
5148#include <stdarg.h>
5149#include <stdio.h>
5150#include <sys/types.h>
5151#include <sys/stat.h>
5152/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5153struct buf { int x; };
5154FILE * (*rcsopen) (struct buf *, struct stat *, int);
5155static char *e (p, i)
5156 char **p;
5157 int i;
5158{
5159 return p[i];
5160}
5161static char *f (char * (*g) (char **, int), char **p, ...)
5162{
5163 char *s;
5164 va_list v;
5165 va_start (v,p);
5166 s = g (p, va_arg (v,int));
5167 va_end (v);
5168 return s;
5169}
5170
5171/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5172 function prototypes and stuff, but not '\xHH' hex character constants.
5173 These don't provoke an error unfortunately, instead are silently treated
5174 as 'x'. The following induces an error, until -std is added to get
5175 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5176 array size at least. It's necessary to write '\x00'==0 to get something
5177 that's true only with -std. */
5178int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5179
5180/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5181 inside strings and character constants. */
5182#define FOO(x) 'x'
5183int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5184
5185int test (int i, double x);
5186struct s1 {int (*f) (int a);};
5187struct s2 {int (*f) (double a);};
5188int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5189int argc;
5190char **argv;
5191int
5192main ()
5193{
5194return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5195 ;
5196 return 0;
5197}
5198_ACEOF
5199for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5200 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5201do
5202 CC="$ac_save_CC $ac_arg"
5203 if ac_fn_c_try_compile "$LINENO"; then :
5204 ac_cv_prog_cc_c89=$ac_arg
5205fi
5206rm -f core conftest.err conftest.$ac_objext
5207 test "x$ac_cv_prog_cc_c89" != "xno" && break
5208done
743c80a7
PE
5209rm -f conftest.$ac_ext
5210CC=$ac_save_CC
5211
5212fi
5213# AC_CACHE_VAL
5214case "x$ac_cv_prog_cc_c89" in
5215 x)
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5217$as_echo "none needed" >&6; } ;;
5218 xno)
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5220$as_echo "unsupported" >&6; } ;;
5221 *)
5222 CC="$CC $ac_cv_prog_cc_c89"
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5224$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5225esac
5226if test "x$ac_cv_prog_cc_c89" != xno; then :
5227
5228fi
5229
5230ac_ext=c
5231ac_cpp='$CPP $CPPFLAGS'
5232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5234ac_compiler_gnu=$ac_cv_c_compiler_gnu
5235DEPDIR="${am__leading_dot}deps"
5236
5237ac_config_commands="$ac_config_commands depfiles"
5238
5239
5240am_make=${MAKE-make}
5241cat > confinc << 'END'
5242am__doit:
5243 @echo this is the am__doit target
5244.PHONY: am__doit
5245END
5246# If we don't find an include directive, just comment out the code.
5247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5248$as_echo_n "checking for style of include used by $am_make... " >&6; }
5249am__include="#"
5250am__quote=
5251_am_result=none
5252# First try GNU make style include.
5253echo "include confinc" > confmf
5254# Ignore all kinds of additional output from `make'.
5255case `$am_make -s -f confmf 2> /dev/null` in #(
5256*the\ am__doit\ target*)
5257 am__include=include
5258 am__quote=
5259 _am_result=GNU
5260 ;;
5261esac
5262# Now try BSD make style include.
5263if test "$am__include" = "#"; then
5264 echo '.include "confinc"' > confmf
5265 case `$am_make -s -f confmf 2> /dev/null` in #(
5266 *the\ am__doit\ target*)
5267 am__include=.include
5268 am__quote="\""
5269 _am_result=BSD
5270 ;;
5271 esac
5272fi
5273
5274
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5276$as_echo "$_am_result" >&6; }
5277rm -f confinc confmf
5278
5279# Check whether --enable-dependency-tracking was given.
5280if test "${enable_dependency_tracking+set}" = set; then :
5281 enableval=$enable_dependency_tracking;
5282fi
5283
5284if test "x$enable_dependency_tracking" != xno; then
5285 am_depcomp="$ac_aux_dir/depcomp"
5286 AMDEPBACKSLASH='\'
5287fi
5288 if test "x$enable_dependency_tracking" != xno; then
5289 AMDEP_TRUE=
5290 AMDEP_FALSE='#'
5291else
5292 AMDEP_TRUE='#'
5293 AMDEP_FALSE=
5294fi
5295
5296
5297
5298depcc="$CC" am_compiler_list=
5299
5300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5301$as_echo_n "checking dependency style of $depcc... " >&6; }
d6974efa 5302if ${am_cv_CC_dependencies_compiler_type+:} false; then :
743c80a7
PE
5303 $as_echo_n "(cached) " >&6
5304else
5305 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5306 # We make a subdir and do the tests there. Otherwise we can end up
5307 # making bogus files that we don't know about and never remove. For
5308 # instance it was reported that on HP-UX the gcc test will end up
5309 # making a dummy file named `D' -- because `-MD' means `put the output
5310 # in D'.
5311 mkdir conftest.dir
5312 # Copy depcomp to subdir because otherwise we won't find it if we're
5313 # using a relative directory.
5314 cp "$am_depcomp" conftest.dir
5315 cd conftest.dir
5316 # We will build objects and dependencies in a subdirectory because
5317 # it helps to detect inapplicable dependency modes. For instance
5318 # both Tru64's cc and ICC support -MD to output dependencies as a
5319 # side effect of compilation, but ICC will put the dependencies in
5320 # the current directory while Tru64 will put them in the object
5321 # directory.
5322 mkdir sub
5323
5324 am_cv_CC_dependencies_compiler_type=none
5325 if test "$am_compiler_list" = ""; then
5326 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5327 fi
5328 am__universal=false
5329 case " $depcc " in #(
5330 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5331 esac
5332
5333 for depmode in $am_compiler_list; do
5334 # Setup a source with many dependencies, because some compilers
5335 # like to wrap large dependency lists on column 80 (with \), and
5336 # we should not choose a depcomp mode which is confused by this.
5337 #
5338 # We need to recreate these files for each test, as the compiler may
5339 # overwrite some of them when testing with obscure command lines.
5340 # This happens at least with the AIX C compiler.
5341 : > sub/conftest.c
5342 for i in 1 2 3 4 5 6; do
5343 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5344 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5345 # Solaris 8's {/usr,}/bin/sh.
5346 touch sub/conftst$i.h
5347 done
5348 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5349
5350 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5351 # mode. It turns out that the SunPro C++ compiler does not properly
5352 # handle `-M -o', and we need to detect this. Also, some Intel
5353 # versions had trouble with output in subdirs
5354 am__obj=sub/conftest.${OBJEXT-o}
5355 am__minus_obj="-o $am__obj"
5356 case $depmode in
5357 gcc)
5358 # This depmode causes a compiler race in universal mode.
5359 test "$am__universal" = false || continue
5360 ;;
5361 nosideeffect)
5362 # after this tag, mechanisms are not by side-effect, so they'll
5363 # only be used when explicitly requested
5364 if test "x$enable_dependency_tracking" = xyes; then
5365 continue
5366 else
5367 break
5368 fi
5369 ;;
5370 msvisualcpp | msvcmsys)
5371 # This compiler won't grok `-c -o', but also, the minuso test has
5372 # not run yet. These depmodes are late enough in the game, and
5373 # so weak that their functioning should not be impacted.
5374 am__obj=conftest.${OBJEXT-o}
5375 am__minus_obj=
5376 ;;
5377 none) break ;;
5378 esac
5379 if depmode=$depmode \
5380 source=sub/conftest.c object=$am__obj \
5381 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5382 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5383 >/dev/null 2>conftest.err &&
5384 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5385 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5386 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5387 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5388 # icc doesn't choke on unknown options, it will just issue warnings
5389 # or remarks (even with -Werror). So we grep stderr for any message
5390 # that says an option was ignored or not supported.
5391 # When given -MP, icc 7.0 and 7.1 complain thusly:
5392 # icc: Command line warning: ignoring option '-M'; no argument required
5393 # The diagnosis changed in icc 8.0:
5394 # icc: Command line remark: option '-MP' not supported
5395 if (grep 'ignoring option' conftest.err ||
5396 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5397 am_cv_CC_dependencies_compiler_type=$depmode
5398 break
5399 fi
5400 fi
5401 done
5402
5403 cd ..
5404 rm -rf conftest.dir
5405else
5406 am_cv_CC_dependencies_compiler_type=none
5407fi
5408
5409fi
5410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5411$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5412CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5413
5414 if
5415 test "x$enable_dependency_tracking" != xno \
5416 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5417 am__fastdepCC_TRUE=
5418 am__fastdepCC_FALSE='#'
5419else
5420 am__fastdepCC_TRUE='#'
5421 am__fastdepCC_FALSE=
5422fi
5423
5424
5425if test "x$CC" != xcc; then
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5427$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5428else
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5430$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5431fi
5432set dummy $CC; ac_cc=`$as_echo "$2" |
5433 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
d6974efa 5434if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
743c80a7
PE
5435 $as_echo_n "(cached) " >&6
5436else
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438/* end confdefs.h. */
5439
5440int
5441main ()
5442{
5443
5444 ;
5445 return 0;
5446}
5447_ACEOF
5448# Make sure it works both with $CC and with simple cc.
5449# We do the test twice because some compilers refuse to overwrite an
5450# existing .o file with -o, though they will create one.
5451ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5452rm -f conftest2.*
5453if { { case "(($ac_try" in
5454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455 *) ac_try_echo=$ac_try;;
5456esac
5457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5458$as_echo "$ac_try_echo"; } >&5
5459 (eval "$ac_try") 2>&5
5460 ac_status=$?
5461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5462 test $ac_status = 0; } &&
5463 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5466esac
5467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5468$as_echo "$ac_try_echo"; } >&5
5469 (eval "$ac_try") 2>&5
5470 ac_status=$?
5471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5472 test $ac_status = 0; };
5473then
5474 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5475 if test "x$CC" != xcc; then
5476 # Test first that cc exists at all.
5477 if { ac_try='cc -c conftest.$ac_ext >&5'
5478 { { case "(($ac_try" in
5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480 *) ac_try_echo=$ac_try;;
5481esac
5482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5483$as_echo "$ac_try_echo"; } >&5
5484 (eval "$ac_try") 2>&5
5485 ac_status=$?
5486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5487 test $ac_status = 0; }; }; then
5488 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5489 rm -f conftest2.*
5490 if { { case "(($ac_try" in
5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5493esac
5494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5495$as_echo "$ac_try_echo"; } >&5
5496 (eval "$ac_try") 2>&5
5497 ac_status=$?
5498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5499 test $ac_status = 0; } &&
5500 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5503esac
5504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5505$as_echo "$ac_try_echo"; } >&5
5506 (eval "$ac_try") 2>&5
5507 ac_status=$?
5508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5509 test $ac_status = 0; };
5510 then
5511 # cc works too.
5512 :
5513 else
5514 # cc exists but doesn't like -o.
5515 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5516 fi
5517 fi
5518 fi
5519else
5520 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5521fi
5522rm -f core conftest*
5523
5524fi
5525if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5527$as_echo "yes" >&6; }
5528else
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530$as_echo "no" >&6; }
5531
5532$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5533
5534fi
5535
5536# FIXME: we rely on the cache variable name because
5537# there is no other way.
5538set dummy $CC
5539am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5540eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5541if test "$am_t" != yes; then
5542 # Losing compiler, so override with the script.
5543 # FIXME: It is wrong to rewrite CC.
5544 # But if we don't then we get into trouble of one sort or another.
5545 # A longer-term fix would be to have automake use am__CC in this case,
5546 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5547 CC="$am_aux_dir/compile $CC"
5548fi
5549
5550
5551
5552# Initialize gnulib right after verifying that the C compiler works.
5553if test -n "$ac_tool_prefix"; then
5554 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5555set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 5558if ${ac_cv_prog_RANLIB+:} false; then :
743c80a7
PE
5559 $as_echo_n "(cached) " >&6
5560else
5561 if test -n "$RANLIB"; then
5562 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5563else
5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565for as_dir in $PATH
5566do
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5571 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 break 2
5574 fi
5575done
5576 done
5577IFS=$as_save_IFS
5578
5579fi
5580fi
5581RANLIB=$ac_cv_prog_RANLIB
5582if test -n "$RANLIB"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5584$as_echo "$RANLIB" >&6; }
5585else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587$as_echo "no" >&6; }
5588fi
5589
5590
5591fi
5592if test -z "$ac_cv_prog_RANLIB"; then
5593 ac_ct_RANLIB=$RANLIB
5594 # Extract the first word of "ranlib", so it can be a program name with args.
5595set dummy ranlib; ac_word=$2
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 5598if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
743c80a7
PE
5599 $as_echo_n "(cached) " >&6
5600else
5601 if test -n "$ac_ct_RANLIB"; then
5602 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5603else
5604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605for as_dir in $PATH
5606do
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5611 ac_cv_prog_ac_ct_RANLIB="ranlib"
5612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 break 2
5614 fi
5615done
5616 done
5617IFS=$as_save_IFS
067d23c9
KY
5618
5619fi
743c80a7
PE
5620fi
5621ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5622if test -n "$ac_ct_RANLIB"; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5624$as_echo "$ac_ct_RANLIB" >&6; }
5625else
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627$as_echo "no" >&6; }
5628fi
067d23c9 5629
743c80a7
PE
5630 if test "x$ac_ct_RANLIB" = x; then
5631 RANLIB=":"
5632 else
5633 case $cross_compiling:$ac_tool_warned in
5634yes:)
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5637ac_tool_warned=yes ;;
5638esac
5639 RANLIB=$ac_ct_RANLIB
5640 fi
5641else
5642 RANLIB="$ac_cv_prog_RANLIB"
067d23c9
KY
5643fi
5644
743c80a7 5645
067d23c9
KY
5646ac_ext=c
5647ac_cpp='$CPP $CPPFLAGS'
5648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5650ac_compiler_gnu=$ac_cv_c_compiler_gnu
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5652$as_echo_n "checking how to run the C preprocessor... " >&6; }
5653# On Suns, sometimes $CPP names a directory.
5654if test -n "$CPP" && test -d "$CPP"; then
5655 CPP=
5656fi
5657if test -z "$CPP"; then
d6974efa 5658 if ${ac_cv_prog_CPP+:} false; then :
067d23c9
KY
5659 $as_echo_n "(cached) " >&6
5660else
5661 # Double quotes because CPP needs to be expanded
5662 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5663 do
5664 ac_preproc_ok=false
5665for ac_c_preproc_warn_flag in '' yes
5666do
5667 # Use a header file that comes with gcc, so configuring glibc
5668 # with a fresh cross-compiler works.
5669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5670 # <limits.h> exists even on freestanding compilers.
5671 # On the NeXT, cc -E runs the code through the compiler's parser,
5672 # not just through cpp. "Syntax error" is here to catch this case.
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674/* end confdefs.h. */
5675#ifdef __STDC__
5676# include <limits.h>
5677#else
5678# include <assert.h>
5679#endif
5680 Syntax error
5681_ACEOF
5682if ac_fn_c_try_cpp "$LINENO"; then :
5683
5684else
5685 # Broken: fails on valid input.
5686continue
5687fi
2018939f 5688rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5689
5690 # OK, works on sane cases. Now check whether nonexistent headers
5691 # can be detected and how.
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693/* end confdefs.h. */
5694#include <ac_nonexistent.h>
5695_ACEOF
5696if ac_fn_c_try_cpp "$LINENO"; then :
5697 # Broken: success on invalid input.
5698continue
5699else
5700 # Passes both tests.
5701ac_preproc_ok=:
5702break
5703fi
2018939f 5704rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5705
5706done
5707# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 5708rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
5709if $ac_preproc_ok; then :
5710 break
5711fi
5712
5713 done
5714 ac_cv_prog_CPP=$CPP
5715
5716fi
5717 CPP=$ac_cv_prog_CPP
5718else
5719 ac_cv_prog_CPP=$CPP
5720fi
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5722$as_echo "$CPP" >&6; }
5723ac_preproc_ok=false
5724for ac_c_preproc_warn_flag in '' yes
5725do
5726 # Use a header file that comes with gcc, so configuring glibc
5727 # with a fresh cross-compiler works.
5728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5729 # <limits.h> exists even on freestanding compilers.
5730 # On the NeXT, cc -E runs the code through the compiler's parser,
5731 # not just through cpp. "Syntax error" is here to catch this case.
5732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5733/* end confdefs.h. */
5734#ifdef __STDC__
5735# include <limits.h>
5736#else
5737# include <assert.h>
5738#endif
5739 Syntax error
5740_ACEOF
5741if ac_fn_c_try_cpp "$LINENO"; then :
5742
5743else
5744 # Broken: fails on valid input.
5745continue
5746fi
2018939f 5747rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5748
5749 # OK, works on sane cases. Now check whether nonexistent headers
5750 # can be detected and how.
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752/* end confdefs.h. */
5753#include <ac_nonexistent.h>
5754_ACEOF
5755if ac_fn_c_try_cpp "$LINENO"; then :
5756 # Broken: success on invalid input.
5757continue
5758else
5759 # Passes both tests.
5760ac_preproc_ok=:
5761break
5762fi
2018939f 5763rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
5764
5765done
5766# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 5767rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
5768if $ac_preproc_ok; then :
5769
5770else
5771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 5773as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
d6974efa 5774See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
5775fi
5776
5777ac_ext=c
5778ac_cpp='$CPP $CPPFLAGS'
5779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5781ac_compiler_gnu=$ac_cv_c_compiler_gnu
5782
5783
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5785$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d6974efa 5786if ${ac_cv_path_GREP+:} false; then :
067d23c9
KY
5787 $as_echo_n "(cached) " >&6
5788else
5789 if test -z "$GREP"; then
5790 ac_path_GREP_found=false
5791 # Loop through the user's path and test for each of PROGNAME-LIST
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5794do
5795 IFS=$as_save_IFS
5796 test -z "$as_dir" && as_dir=.
5797 for ac_prog in grep ggrep; do
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5800 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5801# Check for GNU ac_path_GREP and select it if it is found.
5802 # Check for GNU $ac_path_GREP
5803case `"$ac_path_GREP" --version 2>&1` in
5804*GNU*)
5805 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5806*)
5807 ac_count=0
5808 $as_echo_n 0123456789 >"conftest.in"
5809 while :
5810 do
5811 cat "conftest.in" "conftest.in" >"conftest.tmp"
5812 mv "conftest.tmp" "conftest.in"
5813 cp "conftest.in" "conftest.nl"
5814 $as_echo 'GREP' >> "conftest.nl"
5815 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5816 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5817 as_fn_arith $ac_count + 1 && ac_count=$as_val
5818 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5819 # Best one so far, save it but keep looking for a better one
5820 ac_cv_path_GREP="$ac_path_GREP"
5821 ac_path_GREP_max=$ac_count
5822 fi
5823 # 10*(2^10) chars as input seems more than enough
5824 test $ac_count -gt 10 && break
5825 done
5826 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5827esac
5828
5829 $ac_path_GREP_found && break 3
5830 done
5831 done
5832 done
5833IFS=$as_save_IFS
5834 if test -z "$ac_cv_path_GREP"; then
2018939f 5835 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
067d23c9
KY
5836 fi
5837else
5838 ac_cv_path_GREP=$GREP
5839fi
5840
5841fi
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5843$as_echo "$ac_cv_path_GREP" >&6; }
5844 GREP="$ac_cv_path_GREP"
5845
5846
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5848$as_echo_n "checking for egrep... " >&6; }
d6974efa 5849if ${ac_cv_path_EGREP+:} false; then :
067d23c9
KY
5850 $as_echo_n "(cached) " >&6
5851else
5852 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5853 then ac_cv_path_EGREP="$GREP -E"
5854 else
5855 if test -z "$EGREP"; then
5856 ac_path_EGREP_found=false
5857 # Loop through the user's path and test for each of PROGNAME-LIST
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5860do
5861 IFS=$as_save_IFS
5862 test -z "$as_dir" && as_dir=.
5863 for ac_prog in egrep; do
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5866 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5867# Check for GNU ac_path_EGREP and select it if it is found.
5868 # Check for GNU $ac_path_EGREP
5869case `"$ac_path_EGREP" --version 2>&1` in
5870*GNU*)
5871 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5872*)
5873 ac_count=0
5874 $as_echo_n 0123456789 >"conftest.in"
5875 while :
5876 do
5877 cat "conftest.in" "conftest.in" >"conftest.tmp"
5878 mv "conftest.tmp" "conftest.in"
5879 cp "conftest.in" "conftest.nl"
5880 $as_echo 'EGREP' >> "conftest.nl"
5881 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5882 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5883 as_fn_arith $ac_count + 1 && ac_count=$as_val
5884 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5885 # Best one so far, save it but keep looking for a better one
5886 ac_cv_path_EGREP="$ac_path_EGREP"
5887 ac_path_EGREP_max=$ac_count
5888 fi
5889 # 10*(2^10) chars as input seems more than enough
5890 test $ac_count -gt 10 && break
5891 done
5892 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5893esac
5894
5895 $ac_path_EGREP_found && break 3
5896 done
5897 done
5898 done
5899IFS=$as_save_IFS
5900 if test -z "$ac_cv_path_EGREP"; then
2018939f 5901 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
067d23c9
KY
5902 fi
5903else
5904 ac_cv_path_EGREP=$EGREP
5905fi
5906
5907 fi
5908fi
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5910$as_echo "$ac_cv_path_EGREP" >&6; }
5911 EGREP="$ac_cv_path_EGREP"
5912
5913
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5915$as_echo_n "checking for ANSI C header files... " >&6; }
d6974efa 5916if ${ac_cv_header_stdc+:} false; then :
067d23c9
KY
5917 $as_echo_n "(cached) " >&6
5918else
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920/* end confdefs.h. */
5921#include <stdlib.h>
5922#include <stdarg.h>
5923#include <string.h>
5924#include <float.h>
5925
5926int
5927main ()
5928{
5929
5930 ;
5931 return 0;
5932}
5933_ACEOF
5934if ac_fn_c_try_compile "$LINENO"; then :
5935 ac_cv_header_stdc=yes
5936else
5937 ac_cv_header_stdc=no
5938fi
5939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940
5941if test $ac_cv_header_stdc = yes; then
5942 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944/* end confdefs.h. */
5945#include <string.h>
5946
5947_ACEOF
5948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5949 $EGREP "memchr" >/dev/null 2>&1; then :
5950
5951else
5952 ac_cv_header_stdc=no
5953fi
5954rm -f conftest*
5955
5956fi
5957
5958if test $ac_cv_header_stdc = yes; then
5959 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961/* end confdefs.h. */
5962#include <stdlib.h>
5963
5964_ACEOF
5965if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5966 $EGREP "free" >/dev/null 2>&1; then :
5967
5968else
5969 ac_cv_header_stdc=no
5970fi
5971rm -f conftest*
5972
5973fi
5974
5975if test $ac_cv_header_stdc = yes; then
5976 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5977 if test "$cross_compiling" = yes; then :
5978 :
5979else
5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981/* end confdefs.h. */
5982#include <ctype.h>
5983#include <stdlib.h>
5984#if ((' ' & 0x0FF) == 0x020)
5985# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5986# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5987#else
5988# define ISLOWER(c) \
5989 (('a' <= (c) && (c) <= 'i') \
5990 || ('j' <= (c) && (c) <= 'r') \
5991 || ('s' <= (c) && (c) <= 'z'))
5992# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5993#endif
5994
5995#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5996int
5997main ()
5998{
5999 int i;
6000 for (i = 0; i < 256; i++)
6001 if (XOR (islower (i), ISLOWER (i))
6002 || toupper (i) != TOUPPER (i))
6003 return 2;
6004 return 0;
6005}
6006_ACEOF
6007if ac_fn_c_try_run "$LINENO"; then :
6008
6009else
6010 ac_cv_header_stdc=no
6011fi
6012rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6013 conftest.$ac_objext conftest.beam conftest.$ac_ext
6014fi
6015
6016fi
6017fi
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6019$as_echo "$ac_cv_header_stdc" >&6; }
6020if test $ac_cv_header_stdc = yes; then
6021
6022$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6023
6024fi
6025
6026# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6027for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6028 inttypes.h stdint.h unistd.h
6029do :
6030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6031ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6032"
2018939f 6033if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
6034 cat >>confdefs.h <<_ACEOF
6035#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6036_ACEOF
6037
6038fi
6039
6040done
6041
6042
6043
1fd182f0
PE
6044
6045
067d23c9 6046 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d6974efa 6047if test "x$ac_cv_header_minix_config_h" = xyes; then :
067d23c9
KY
6048 MINIX=yes
6049else
6050 MINIX=
6051fi
6052
6053
6054 if test "$MINIX" = yes; then
6055
6056$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6057
6058
6059$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6060
6061
6062$as_echo "#define _MINIX 1" >>confdefs.h
6063
6064 fi
6065
1fd182f0
PE
6066 case "$host_os" in
6067 hpux*)
6068
6069$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
6070
6071 ;;
6072 esac
6073
067d23c9
KY
6074
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6076$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d6974efa 6077if ${ac_cv_safe_to_define___extensions__+:} false; then :
067d23c9
KY
6078 $as_echo_n "(cached) " >&6
6079else
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081/* end confdefs.h. */
6082
1fd182f0
PE
6083# define __EXTENSIONS__ 1
6084 $ac_includes_default
067d23c9
KY
6085int
6086main ()
6087{
6088
6089 ;
6090 return 0;
6091}
6092_ACEOF
6093if ac_fn_c_try_compile "$LINENO"; then :
6094 ac_cv_safe_to_define___extensions__=yes
6095else
6096 ac_cv_safe_to_define___extensions__=no
6097fi
6098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099fi
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6101$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6102 test $ac_cv_safe_to_define___extensions__ = yes &&
6103 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6104
6105 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6106
6107 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6108
6109 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6110
6111 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6112
6113
6114
1fd182f0
PE
6115
6116
6117
6118
6119
6120
6121
6122 # Code from module arg-nonnull:
6123 # Code from module c++defs:
942f733f 6124 # Code from module crypto/md5:
f737437b 6125 # Code from module dtoastr:
1fd182f0
PE
6126 # Code from module extensions:
6127
5fa4ac76 6128 # Code from module filemode:
1f5d53eb 6129 # Code from module getloadavg:
e275c824
PE
6130 # Code from module getopt-gnu:
6131 # Code from module getopt-posix:
6132 # Code from module gettext-h:
67342916 6133 # Code from module ignore-value:
1fd182f0
PE
6134 # Code from module include_next:
6135 # Code from module intprops:
6136 # Code from module mktime:
6137 # Code from module multiarch:
16c3e636 6138 # Code from module stdbool:
1fd182f0 6139 # Code from module stddef:
5f90be1b 6140 # Code from module stdint:
1f5d53eb 6141 # Code from module stdlib:
16c3e636 6142 # Code from module strftime:
5fa4ac76 6143 # Code from module sys_stat:
1fd182f0
PE
6144 # Code from module time:
6145 # Code from module time_r:
e275c824 6146 # Code from module unistd:
1fd182f0
PE
6147 # Code from module warn-on-use:
6148
6149
6150# On Suns, sometimes $CPP names a directory.
6151if test -n "$CPP" && test -d "$CPP"; then
6152 CPP=
6153fi
6154
6155## If not using gcc, and on Solaris, and no CPP specified, see if
6156## using a Sun compiler, which needs -Xs to prevent whitespace.
6157if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
6158 test x"$CPP" = x; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
6160$as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
d6974efa 6161 if ${emacs_cv_sunpro_c+:} false; then :
1fd182f0
PE
6162 $as_echo_n "(cached) " >&6
6163else
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165/* end confdefs.h. */
6166
6167int
6168main ()
6169{
6170#ifndef __SUNPRO_C
6171fail;
6172#endif
6173
6174 ;
6175 return 0;
6176}
6177_ACEOF
6178if ac_fn_c_try_link "$LINENO"; then :
6179 emacs_cv_sunpro_c=yes
6180else
6181 emacs_cv_sunpro_c=no
6182fi
6183rm -f core conftest.err conftest.$ac_objext \
6184 conftest$ac_exeext conftest.$ac_ext
6185fi
6186
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
6188$as_echo "$emacs_cv_sunpro_c" >&6; }
6189
6190 if test x"$emacs_cv_sunpro_c" = xyes; then
6191 NON_GNU_CPP="$CC -E -Xs"
6192 fi
6193fi
6194
6195#### Some systems specify a CPP to use unless we are using GCC.
6196#### Now that we know whether we are using GCC, we can decide whether
6197#### to use that one.
6198if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
6199then
6200 CPP="$NON_GNU_CPP"
6201fi
6202
6203#### Some systems specify a CC to use unless we are using GCC.
6204#### Now that we know whether we are using GCC, we can decide whether
6205#### to use that one.
6206if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
6207 test x$cc_specified != xyes
6208then
6209 CC="$NON_GNU_CC"
6210fi
6211
6212if test x$GCC = xyes; then
6213 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
6214else
6215 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
6216fi
6217
067d23c9
KY
6218### Use -Wdeclaration-after-statement if the compiler supports it
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6220$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6221SAVE_CFLAGS="$CFLAGS"
6222CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224/* end confdefs.h. */
6225
6226int
6227main ()
6228{
6229
6230 ;
6231 return 0;
6232}
6233_ACEOF
6234if ac_fn_c_try_compile "$LINENO"; then :
6235 has_option=yes
6236else
6237 has_option=no
6238fi
6239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240if test $has_option = yes; then
6241 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6242fi
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6244$as_echo "$has_option" >&6; }
6245CFLAGS="$SAVE_CFLAGS"
6246unset has_option
6247unset SAVE_CFLAGS
6248
6249### Use -Wold-style-definition if the compiler supports it
6250# This can be removed when conversion to standard C is finished.
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6252$as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6253SAVE_CFLAGS="$CFLAGS"
6254CFLAGS="$CFLAGS -Wold-style-definition"
6255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256/* end confdefs.h. */
6257
6258int
6259main ()
6260{
6261
6262 ;
6263 return 0;
6264}
6265_ACEOF
6266if ac_fn_c_try_compile "$LINENO"; then :
6267 has_option=yes
6268else
6269 has_option=no
6270fi
6271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6272if test $has_option = yes; then
6273 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6274fi
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6276$as_echo "$has_option" >&6; }
6277CFLAGS="$SAVE_CFLAGS"
6278unset has_option
6279unset SAVE_CFLAGS
6280
6281### Use -Wimplicit-function-declaration if the compiler supports it
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6283$as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6284SAVE_CFLAGS="$CFLAGS"
6285CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287/* end confdefs.h. */
6288
6289int
6290main ()
6291{
6292
6293 ;
6294 return 0;
6295}
6296_ACEOF
6297if ac_fn_c_try_compile "$LINENO"; then :
6298 has_option=yes
6299else
6300 has_option=no
6301fi
6302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303if test $has_option = yes; then
6304 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6305fi
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6307$as_echo "$has_option" >&6; }
6308CFLAGS="$SAVE_CFLAGS"
6309unset has_option
6310unset SAVE_CFLAGS
6311
6312
6313
6314
6315#### Some other nice autoconf tests.
6316
6317ac_ext=c
6318ac_cpp='$CPP $CPPFLAGS'
6319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6321ac_compiler_gnu=$ac_cv_c_compiler_gnu
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6323$as_echo_n "checking how to run the C preprocessor... " >&6; }
6324# On Suns, sometimes $CPP names a directory.
6325if test -n "$CPP" && test -d "$CPP"; then
6326 CPP=
6327fi
6328if test -z "$CPP"; then
d6974efa 6329 if ${ac_cv_prog_CPP+:} false; then :
067d23c9
KY
6330 $as_echo_n "(cached) " >&6
6331else
6332 # Double quotes because CPP needs to be expanded
6333 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6334 do
6335 ac_preproc_ok=false
6336for ac_c_preproc_warn_flag in '' yes
6337do
6338 # Use a header file that comes with gcc, so configuring glibc
6339 # with a fresh cross-compiler works.
6340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6341 # <limits.h> exists even on freestanding compilers.
6342 # On the NeXT, cc -E runs the code through the compiler's parser,
6343 # not just through cpp. "Syntax error" is here to catch this case.
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345/* end confdefs.h. */
6346#ifdef __STDC__
6347# include <limits.h>
6348#else
6349# include <assert.h>
6350#endif
6351 Syntax error
6352_ACEOF
6353if ac_fn_c_try_cpp "$LINENO"; then :
6354
6355else
6356 # Broken: fails on valid input.
6357continue
6358fi
2018939f 6359rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6360
6361 # OK, works on sane cases. Now check whether nonexistent headers
6362 # can be detected and how.
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364/* end confdefs.h. */
6365#include <ac_nonexistent.h>
6366_ACEOF
6367if ac_fn_c_try_cpp "$LINENO"; then :
6368 # Broken: success on invalid input.
6369continue
6370else
6371 # Passes both tests.
6372ac_preproc_ok=:
6373break
6374fi
2018939f 6375rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6376
6377done
6378# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 6379rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
6380if $ac_preproc_ok; then :
6381 break
6382fi
6383
6384 done
6385 ac_cv_prog_CPP=$CPP
6386
6387fi
6388 CPP=$ac_cv_prog_CPP
6389else
6390 ac_cv_prog_CPP=$CPP
6391fi
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6393$as_echo "$CPP" >&6; }
6394ac_preproc_ok=false
6395for ac_c_preproc_warn_flag in '' yes
6396do
6397 # Use a header file that comes with gcc, so configuring glibc
6398 # with a fresh cross-compiler works.
6399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6400 # <limits.h> exists even on freestanding compilers.
6401 # On the NeXT, cc -E runs the code through the compiler's parser,
6402 # not just through cpp. "Syntax error" is here to catch this case.
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404/* end confdefs.h. */
6405#ifdef __STDC__
6406# include <limits.h>
6407#else
6408# include <assert.h>
6409#endif
6410 Syntax error
6411_ACEOF
6412if ac_fn_c_try_cpp "$LINENO"; then :
6413
6414else
6415 # Broken: fails on valid input.
6416continue
6417fi
2018939f 6418rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6419
6420 # OK, works on sane cases. Now check whether nonexistent headers
6421 # can be detected and how.
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423/* end confdefs.h. */
6424#include <ac_nonexistent.h>
6425_ACEOF
6426if ac_fn_c_try_cpp "$LINENO"; then :
6427 # Broken: success on invalid input.
6428continue
6429else
6430 # Passes both tests.
6431ac_preproc_ok=:
6432break
6433fi
2018939f 6434rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
6435
6436done
6437# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2018939f 6438rm -f conftest.i conftest.err conftest.$ac_ext
067d23c9
KY
6439if $ac_preproc_ok; then :
6440
6441else
6442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2018939f 6444as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
d6974efa 6445See \`config.log' for more details" "$LINENO" 5; }
067d23c9
KY
6446fi
6447
6448ac_ext=c
6449ac_cpp='$CPP $CPPFLAGS'
6450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6452ac_compiler_gnu=$ac_cv_c_compiler_gnu
6453
067d23c9
KY
6454
6455if test "x$RANLIB" = x; then
6456 if test -n "$ac_tool_prefix"; then
6457 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6458set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6461if ${ac_cv_prog_RANLIB+:} false; then :
067d23c9
KY
6462 $as_echo_n "(cached) " >&6
6463else
6464 if test -n "$RANLIB"; then
6465 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6466else
6467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468for as_dir in $PATH
6469do
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6477 fi
6478done
6479 done
6480IFS=$as_save_IFS
6481
6482fi
6483fi
6484RANLIB=$ac_cv_prog_RANLIB
6485if test -n "$RANLIB"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6487$as_echo "$RANLIB" >&6; }
6488else
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490$as_echo "no" >&6; }
6491fi
6492
6493
6494fi
6495if test -z "$ac_cv_prog_RANLIB"; then
6496 ac_ct_RANLIB=$RANLIB
6497 # Extract the first word of "ranlib", so it can be a program name with args.
6498set dummy ranlib; ac_word=$2
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6501if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
067d23c9
KY
6502 $as_echo_n "(cached) " >&6
6503else
6504 if test -n "$ac_ct_RANLIB"; then
6505 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6506else
6507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508for as_dir in $PATH
6509do
6510 IFS=$as_save_IFS
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6514 ac_cv_prog_ac_ct_RANLIB="ranlib"
6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 break 2
6517 fi
6518done
6519 done
6520IFS=$as_save_IFS
6521
6522fi
6523fi
6524ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6525if test -n "$ac_ct_RANLIB"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6527$as_echo "$ac_ct_RANLIB" >&6; }
6528else
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530$as_echo "no" >&6; }
6531fi
6532
6533 if test "x$ac_ct_RANLIB" = x; then
6534 RANLIB=":"
6535 else
6536 case $cross_compiling:$ac_tool_warned in
6537yes:)
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6540ac_tool_warned=yes ;;
6541esac
6542 RANLIB=$ac_ct_RANLIB
6543 fi
6544else
6545 RANLIB="$ac_cv_prog_RANLIB"
6546fi
6547
6548fi
6549
6550## Although we're running on an amd64 kernel, we're actually compiling for
6551## the x86 architecture. The user should probably have provided an
6552## explicit --build to `configure', but if everything else than the kernel
6553## is running in i386 mode, we can help them out.
6554if test "$machine" = "amdx86-64"; then
6555 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
d6974efa 6556if test "x$ac_cv_have_decl_i386" = xyes; then :
067d23c9
KY
6557
6558fi
6559
6560 if test "$ac_cv_have_decl_i386" = "yes"; then
6561 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6562 machine=intel386
6563 machfile="m/${machine}.h"
6564 fi
6565fi
6566
6567# Extract the first word of "install-info", so it can be a program name with args.
6568set dummy install-info; ac_word=$2
6569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6571if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6572 $as_echo_n "(cached) " >&6
6573else
6574 case $INSTALL_INFO in
6575 [\\/]* | ?:[\\/]*)
6576 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6577 ;;
6578 *)
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580for as_dir in $PATH
6581do
6582 IFS=$as_save_IFS
6583 test -z "$as_dir" && as_dir=.
6584 for ac_exec_ext in '' $ac_executable_extensions; do
6585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6586 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588 break 2
6589 fi
6590done
6591 done
6592IFS=$as_save_IFS
6593
6594 ;;
6595esac
6596fi
6597INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6598if test -n "$INSTALL_INFO"; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6600$as_echo "$INSTALL_INFO" >&6; }
6601else
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603$as_echo "no" >&6; }
6604fi
6605
6606
6607# Extract the first word of "install-info", so it can be a program name with args.
6608set dummy install-info; ac_word=$2
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6611if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6612 $as_echo_n "(cached) " >&6
6613else
6614 case $INSTALL_INFO in
6615 [\\/]* | ?:[\\/]*)
6616 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6617 ;;
6618 *)
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620for as_dir in /usr/sbin
6621do
6622 IFS=$as_save_IFS
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6626 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 break 2
6629 fi
6630done
6631 done
6632IFS=$as_save_IFS
6633
6634 ;;
6635esac
6636fi
6637INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6638if test -n "$INSTALL_INFO"; then
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6640$as_echo "$INSTALL_INFO" >&6; }
6641else
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643$as_echo "no" >&6; }
6644fi
6645
6646
6647# Extract the first word of "install-info", so it can be a program name with args.
6648set dummy install-info; ac_word=$2
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6651if ${ac_cv_path_INSTALL_INFO+:} false; then :
067d23c9
KY
6652 $as_echo_n "(cached) " >&6
6653else
6654 case $INSTALL_INFO in
6655 [\\/]* | ?:[\\/]*)
6656 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6657 ;;
6658 *)
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660for as_dir in /sbin
6661do
6662 IFS=$as_save_IFS
6663 test -z "$as_dir" && as_dir=.
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6666 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 break 2
6669 fi
6670done
6671 done
6672IFS=$as_save_IFS
6673
6674 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6675 ;;
6676esac
6677fi
6678INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6679if test -n "$INSTALL_INFO"; then
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6681$as_echo "$INSTALL_INFO" >&6; }
6682else
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684$as_echo "no" >&6; }
6685fi
6686
6687
6688# Extract the first word of "gzip", so it can be a program name with args.
6689set dummy gzip; ac_word=$2
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6692if ${ac_cv_path_GZIP_PROG+:} false; then :
067d23c9
KY
6693 $as_echo_n "(cached) " >&6
6694else
6695 case $GZIP_PROG in
6696 [\\/]* | ?:[\\/]*)
6697 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6698 ;;
6699 *)
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701for as_dir in $PATH
6702do
6703 IFS=$as_save_IFS
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 break 2
6710 fi
6711done
6712 done
6713IFS=$as_save_IFS
6714
6715 ;;
6716esac
6717fi
6718GZIP_PROG=$ac_cv_path_GZIP_PROG
6719if test -n "$GZIP_PROG"; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6721$as_echo "$GZIP_PROG" >&6; }
6722else
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724$as_echo "no" >&6; }
6725fi
6726
6727
6728
6729
6730## Need makeinfo >= 4.6 (?) to build the manuals.
6731# Extract the first word of "makeinfo", so it can be a program name with args.
6732set dummy makeinfo; ac_word=$2
6733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 6735if ${ac_cv_path_MAKEINFO+:} false; then :
067d23c9
KY
6736 $as_echo_n "(cached) " >&6
6737else
6738 case $MAKEINFO in
6739 [\\/]* | ?:[\\/]*)
6740 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6741 ;;
6742 *)
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744for as_dir in $PATH
6745do
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 break 2
6753 fi
6754done
6755 done
6756IFS=$as_save_IFS
6757
6758 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6759 ;;
6760esac
6761fi
6762MAKEINFO=$ac_cv_path_MAKEINFO
6763if test -n "$MAKEINFO"; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6765$as_echo "$MAKEINFO" >&6; }
6766else
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768$as_echo "no" >&6; }
6769fi
6770
6771
6772if test "$MAKEINFO" != "no" && \
6773 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
6774 MAKEINFO=no
6775fi
6776
6777## Makeinfo is unusual. For a released Emacs, the manuals are
6778## pre-built, and not deleted by the normal clean rules. makeinfo is
6779## therefore in the category of "special tools" not normally required, which
6780## configure does not have to check for (eg autoconf itself).
6781## In a Bazaar checkout on the other hand, the manuals are not included.
6782## So makeinfo is a requirement to build from Bazaar, and configure
6783## should test for it as it does for any other build requirement.
6784## We use the presence of $srcdir/info/emacs to distinguish a release,
6785## with pre-built manuals, from a Bazaar checkout.
96f129d5
GM
6786HAVE_MAKEINFO=yes
6787
067d23c9 6788if test "$MAKEINFO" = "no"; then
96f129d5 6789 MAKEINFO=makeinfo
067d23c9 6790 if test "x${with_makeinfo}" = "xno"; then
96f129d5 6791 HAVE_MAKEINFO=no
067d23c9 6792 elif test ! -e $srcdir/info/emacs; then
2018939f 6793 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
067d23c9
KY
6794source tree does not seem to have pre-built manuals in the \`info' directory.
6795Either install a suitable version of makeinfo, or re-run configure
6796with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6797 fi
6798fi
6799
6800
96f129d5 6801
067d23c9
KY
6802if test x$GCC = xyes; then
6803 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6804 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6805else
6806 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6807 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6808fi
6809
6810
6811late_LDFLAGS=$LDFLAGS
6812if test x$GCC = xyes; then
6813 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6814else
6815 LDFLAGS="$LDFLAGS -znocombreloc"
6816fi
6817
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6819$as_echo_n "checking for -znocombreloc... " >&6; }
6820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821/* end confdefs.h. */
6822
6823int
6824main ()
6825{
6826
6827 ;
6828 return 0;
6829}
6830_ACEOF
6831if ac_fn_c_try_link "$LINENO"; then :
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6833$as_echo "yes" >&6; }
6834else
6835 LDFLAGS=$late_LDFLAGS
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837$as_echo "no" >&6; }
6838fi
6839rm -f core conftest.err conftest.$ac_objext \
6840 conftest$ac_exeext conftest.$ac_ext
6841
6842
6843# The value of CPP is a quoted variable reference, so we need to do this
6844# to get its actual value...
6845CPP=`eval "echo $CPP"`
6846
6847
125c3718 6848test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
067d23c9 6849case "$opsys" in
125c3718
PE
6850 your-opsys-here) CANNOT_DUMP=yes ;;
6851esac
6852
6853test "$CANNOT_DUMP" = "yes" && \
067d23c9
KY
6854
6855$as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6856
125c3718 6857
067d23c9
KY
6858
6859
6860
6861UNEXEC_OBJ=unexelf.o
6862case "$opsys" in
6863 # MSDOS uses unexcoff.o
6864 # MSWindows uses unexw32.o
6865 aix4-2)
6866 UNEXEC_OBJ=unexaix.o
6867 ;;
6868 cygwin)
6869 UNEXEC_OBJ=unexcw.o
6870 ;;
6871 darwin)
6872 UNEXEC_OBJ=unexmacosx.o
6873 ;;
6874 hpux10-20 | hpux11)
6875 UNEXEC_OBJ=unexhp9k800.o
6876 ;;
6877 sol2-10)
6878 # Use the Solaris dldump() function, called from unexsol.c, to dump
6879 # emacs, instead of the generic ELF dump code found in unexelf.c.
6880 # The resulting binary has a complete symbol table, and is better
6881 # for debugging and other observability tools (debuggers, pstack, etc).
6882 #
6883 # If you encounter a problem using dldump(), please consider sending
6884 # a message to the OpenSolaris tools-linking mailing list:
6885 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6886 #
6887 # It is likely that dldump() works with older Solaris too, but this has
6888 # not been tested, so for now this change is for Solaris 10 or newer.
6889 UNEXEC_OBJ=unexsol.o
6890 ;;
6891esac
6892
6893LD_SWITCH_SYSTEM=
6894case "$opsys" in
6895 freebsd)
6896 ## Let `ld' find image libs and similar things in /usr/local/lib.
6897 ## The system compiler, GCC, has apparently been modified to not
6898 ## look there, contrary to what a stock GCC would do.
6899 LD_SWITCH_SYSTEM=-L/usr/local/lib
6900 ;;
6901
6902 gnu-linux)
6903 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
d6a003a8 6904 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
067d23c9
KY
6905 ;;
6906
6907 netbsd)
6908 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6909 ;;
6910
6911 openbsd)
6912 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6913 ## otherwise Emacs dumps core on elf systems.
6914 LD_SWITCH_SYSTEM="-Z"
6915 ;;
6916esac
6917
6918
6919ac_link="$ac_link $LD_SWITCH_SYSTEM"
6920
6921## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6922## which has not been defined yet. When this was handled with cpp,
6923## it was expanded to null when configure sourced the s/*.h file.
6924## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6925## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6926## (or somesuch), but because it is supposed to go at the _front_
6927## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6928## Compare with the gnu-linux case below, which added to the end
6929## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6930## LD_SWITCH_SYSTEM_TEMACS.
6931case "$opsys" in
6932 netbsd|openbsd)
6933 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6934 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6935esac
6936
6937
6938C_SWITCH_MACHINE=
6939if test "$machine" = "alpha"; then
6940 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
d6974efa 6941if test "x$ac_cv_have_decl___ELF__" = xyes; then :
067d23c9
KY
6942
6943fi
6944
6945 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6946 ## With ELF, make sure that all common symbols get allocated to in the
6947 ## data section. Otherwise, the dump of temacs may miss variables in
6948 ## the shared library that have been initialized. For example, with
6949 ## GNU libc, __malloc_initialized would normally be resolved to the
6950 ## shared library's .bss section, which is fatal.
6951 if test "x$GCC" = "xyes"; then
6952 C_SWITCH_MACHINE="-fno-common"
6953 else
2018939f 6954 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
067d23c9
KY
6955 fi
6956 else
6957 UNEXEC_OBJ=unexalpha.o
6958 fi
6959fi
6960
6961
6962
6963
6964C_SWITCH_SYSTEM=
6965## Some programs in src produce warnings saying certain subprograms
6966## are too complex and need a MAXMEM value greater than 2000 for
6967## additional optimization. --nils@exp-math.uni-essen.de
6968test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6969 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6970## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6971## It is redundant in glibc2, since we define _GNU_SOURCE.
6972
6973
6974
6975LIBS_SYSTEM=
6976case "$opsys" in
6977 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6978 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6979
6980 freebsd) LIBS_SYSTEM="-lutil" ;;
6981
6982 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6983
1f5d53eb 6984 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
067d23c9
KY
6985
6986 ## Motif needs -lgen.
6987 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6988esac
6989
6990
6991
6992### Make sure subsequent tests use flags consistent with the build flags.
6993
6994if test x"${OVERRIDE_CPPFLAGS}" != x; then
6995 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6996else
6997 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6998fi
6999
067d23c9
KY
7000# Check whether --enable-largefile was given.
7001if test "${enable_largefile+set}" = set; then :
7002 enableval=$enable_largefile;
7003fi
7004
7005if test "$enable_largefile" != no; then
7006
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7008$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
d6974efa 7009if ${ac_cv_sys_largefile_CC+:} false; then :
067d23c9
KY
7010 $as_echo_n "(cached) " >&6
7011else
7012 ac_cv_sys_largefile_CC=no
7013 if test "$GCC" != yes; then
7014 ac_save_CC=$CC
7015 while :; do
7016 # IRIX 6.2 and later do not support large files by default,
7017 # so use the C compiler's -n32 option if that helps.
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019/* end confdefs.h. */
7020#include <sys/types.h>
7021 /* Check that off_t can represent 2**63 - 1 correctly.
7022 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7023 since some C++ compilers masquerading as C compilers
7024 incorrectly reject 9223372036854775807. */
7025#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7026 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7027 && LARGE_OFF_T % 2147483647 == 1)
7028 ? 1 : -1];
7029int
7030main ()
7031{
7032
7033 ;
7034 return 0;
7035}
7036_ACEOF
7037 if ac_fn_c_try_compile "$LINENO"; then :
7038 break
7039fi
7040rm -f core conftest.err conftest.$ac_objext
7041 CC="$CC -n32"
7042 if ac_fn_c_try_compile "$LINENO"; then :
7043 ac_cv_sys_largefile_CC=' -n32'; break
7044fi
7045rm -f core conftest.err conftest.$ac_objext
7046 break
7047 done
7048 CC=$ac_save_CC
7049 rm -f conftest.$ac_ext
7050 fi
7051fi
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7053$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7054 if test "$ac_cv_sys_largefile_CC" != no; then
7055 CC=$CC$ac_cv_sys_largefile_CC
7056 fi
7057
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7059$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
d6974efa 7060if ${ac_cv_sys_file_offset_bits+:} false; then :
067d23c9
KY
7061 $as_echo_n "(cached) " >&6
7062else
7063 while :; do
7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065/* end confdefs.h. */
7066#include <sys/types.h>
7067 /* Check that off_t can represent 2**63 - 1 correctly.
7068 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7069 since some C++ compilers masquerading as C compilers
7070 incorrectly reject 9223372036854775807. */
7071#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7073 && LARGE_OFF_T % 2147483647 == 1)
7074 ? 1 : -1];
7075int
7076main ()
7077{
7078
7079 ;
7080 return 0;
7081}
7082_ACEOF
7083if ac_fn_c_try_compile "$LINENO"; then :
7084 ac_cv_sys_file_offset_bits=no; break
7085fi
7086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088/* end confdefs.h. */
7089#define _FILE_OFFSET_BITS 64
7090#include <sys/types.h>
7091 /* Check that off_t can represent 2**63 - 1 correctly.
7092 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7093 since some C++ compilers masquerading as C compilers
7094 incorrectly reject 9223372036854775807. */
7095#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7096 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7097 && LARGE_OFF_T % 2147483647 == 1)
7098 ? 1 : -1];
7099int
7100main ()
7101{
7102
7103 ;
7104 return 0;
7105}
7106_ACEOF
7107if ac_fn_c_try_compile "$LINENO"; then :
7108 ac_cv_sys_file_offset_bits=64; break
7109fi
7110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7111 ac_cv_sys_file_offset_bits=unknown
7112 break
7113done
7114fi
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7116$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7117case $ac_cv_sys_file_offset_bits in #(
7118 no | unknown) ;;
7119 *)
7120cat >>confdefs.h <<_ACEOF
7121#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7122_ACEOF
7123;;
7124esac
7125rm -rf conftest*
7126 if test $ac_cv_sys_file_offset_bits = unknown; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7128$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
d6974efa 7129if ${ac_cv_sys_large_files+:} false; then :
067d23c9
KY
7130 $as_echo_n "(cached) " >&6
7131else
7132 while :; do
7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134/* end confdefs.h. */
7135#include <sys/types.h>
7136 /* Check that off_t can represent 2**63 - 1 correctly.
7137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7138 since some C++ compilers masquerading as C compilers
7139 incorrectly reject 9223372036854775807. */
7140#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7142 && LARGE_OFF_T % 2147483647 == 1)
7143 ? 1 : -1];
7144int
7145main ()
7146{
7147
7148 ;
7149 return 0;
7150}
7151_ACEOF
7152if ac_fn_c_try_compile "$LINENO"; then :
7153 ac_cv_sys_large_files=no; break
7154fi
7155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157/* end confdefs.h. */
7158#define _LARGE_FILES 1
7159#include <sys/types.h>
7160 /* Check that off_t can represent 2**63 - 1 correctly.
7161 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7162 since some C++ compilers masquerading as C compilers
7163 incorrectly reject 9223372036854775807. */
7164#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7165 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7166 && LARGE_OFF_T % 2147483647 == 1)
7167 ? 1 : -1];
7168int
7169main ()
7170{
7171
7172 ;
7173 return 0;
7174}
7175_ACEOF
7176if ac_fn_c_try_compile "$LINENO"; then :
7177 ac_cv_sys_large_files=1; break
7178fi
7179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7180 ac_cv_sys_large_files=unknown
7181 break
7182done
7183fi
7184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7185$as_echo "$ac_cv_sys_large_files" >&6; }
7186case $ac_cv_sys_large_files in #(
7187 no | unknown) ;;
7188 *)
7189cat >>confdefs.h <<_ACEOF
7190#define _LARGE_FILES $ac_cv_sys_large_files
7191_ACEOF
7192;;
7193esac
7194rm -rf conftest*
7195 fi
7196fi
7197
7198
7199
7200## If user specified a crt-dir, use that unconditionally.
7201if test "X$CRT_DIR" = "X"; then
7202
7203 case "$canonical" in
7204 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
7205 ## On x86-64 and s390x GNU/Linux distributions, the standard library
7206 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
7207 ## For anything else (eg /usr/lib32), it is up the user to specify
7208 ## the location (bug#5655).
7209 ## Test for crtn.o, not just the directory, because sometimes the
7210 ## directory exists but does not have the relevant files (bug#1287).
7211 ## FIXME better to test for binary compatibility somehow.
7212 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7213 ;;
7214
7215 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7216 esac
7217
7218 case "$opsys" in
7219 hpux10-20) CRT_DIR=/lib ;;
7220 esac
7221
7222 ## Default is /usr/lib.
7223 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7224
7225else
7226
7227 ## Some platforms don't use any of these files, so it is not
7228 ## appropriate to put this test outside the if block.
7229 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
2018939f 7230 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
067d23c9
KY
7231
7232fi
7233
7234
7235
7236LIB_MATH=-lm
7237LIB_STANDARD=
7238START_FILES=
7239
7240case $opsys in
7241 cygwin )
7242 LIB_MATH=
7243 START_FILES='pre-crt0.o'
7244 ;;
7245 darwin )
7246 ## Adding -lm confuses the dynamic linker, so omit it.
7247 LIB_MATH=
7248 START_FILES='pre-crt0.o'
7249 ;;
7250 freebsd )
7251 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7252 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7253 ;;
7254 gnu-linux | gnu-kfreebsd )
7255 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7256 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7257 ;;
7258 hpux10-20 | hpux11 )
7259 LIB_STANDARD=-lc
7260 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7261 ;;
7262 netbsd | openbsd )
7263 if test -f $CRT_DIR/crti.o; then
7264 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7265 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7266 else
7267 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7268 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7269 fi
7270 ;;
7271esac
7272
7273
7274
7275
7276
7277
7278
7279if test "${with_sound}" != "no"; then
7280 # Sound support for GNU/Linux and the free BSDs.
7281 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7282do :
7283 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7284ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
2018939f 7285if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
7286 cat >>confdefs.h <<_ACEOF
7287#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7288_ACEOF
7289 have_sound_header=yes
7290fi
7291
7292done
7293
7294 # Emulation library used on NetBSD.
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7296$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
d6974efa 7297if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
067d23c9
KY
7298 $as_echo_n "(cached) " >&6
7299else
7300 ac_check_lib_save_LIBS=$LIBS
7301LIBS="-lossaudio $LIBS"
7302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303/* end confdefs.h. */
7304
7305/* Override any GCC internal prototype to avoid an error.
7306 Use char because int might match the return type of a GCC
7307 builtin and then its argument prototype would still apply. */
7308#ifdef __cplusplus
7309extern "C"
7310#endif
7311char _oss_ioctl ();
7312int
7313main ()
7314{
7315return _oss_ioctl ();
7316 ;
7317 return 0;
7318}
7319_ACEOF
7320if ac_fn_c_try_link "$LINENO"; then :
7321 ac_cv_lib_ossaudio__oss_ioctl=yes
7322else
7323 ac_cv_lib_ossaudio__oss_ioctl=no
7324fi
7325rm -f core conftest.err conftest.$ac_objext \
7326 conftest$ac_exeext conftest.$ac_ext
7327LIBS=$ac_check_lib_save_LIBS
7328fi
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7330$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
d6974efa 7331if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
067d23c9
KY
7332 LIBSOUND=-lossaudio
7333else
7334 LIBSOUND=
7335fi
7336
7337
7338
7339 ALSA_REQUIRED=1.0.0
7340 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7341
7342 succeeded=no
7343
7344 # Extract the first word of "pkg-config", so it can be a program name with args.
7345set dummy pkg-config; ac_word=$2
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 7348if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
7349 $as_echo_n "(cached) " >&6
7350else
7351 case $PKG_CONFIG in
7352 [\\/]* | ?:[\\/]*)
7353 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7354 ;;
7355 *)
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357for as_dir in $PATH
7358do
7359 IFS=$as_save_IFS
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 break 2
7366 fi
7367done
7368 done
7369IFS=$as_save_IFS
7370
7371 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7372 ;;
7373esac
7374fi
7375PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7376if test -n "$PKG_CONFIG"; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7378$as_echo "$PKG_CONFIG" >&6; }
7379else
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381$as_echo "no" >&6; }
7382fi
7383
7384
7385
7386 if test "$PKG_CONFIG" = "no" ; then
7387 HAVE_ALSA=no
7388 else
7389 PKG_CONFIG_MIN_VERSION=0.9.0
7390 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7392$as_echo_n "checking for $ALSA_MODULES... " >&6; }
7393
7394 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7396$as_echo "yes" >&6; }
7397 succeeded=yes
7398
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7400$as_echo_n "checking ALSA_CFLAGS... " >&6; }
7401 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7403$as_echo "$ALSA_CFLAGS" >&6; }
7404
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7406$as_echo_n "checking ALSA_LIBS... " >&6; }
7407 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7409$as_echo "$ALSA_LIBS" >&6; }
7410 else
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412$as_echo "no" >&6; }
7413 ALSA_CFLAGS=""
7414 ALSA_LIBS=""
7415 ## If we have a custom action on failure, don't print errors, but
7416 ## do set a variable so people can do so.
7417 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7418
7419 fi
7420
7421
7422
7423 else
7424 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7425 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7426 fi
7427 fi
7428
7429 if test $succeeded = yes; then
7430 HAVE_ALSA=yes
7431 else
7432 HAVE_ALSA=no
7433 fi
7434
7435 if test $HAVE_ALSA = yes; then
7436 SAVE_CFLAGS="$CFLAGS"
7437 SAVE_LDFLAGS="$LDFLAGS"
7438 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7439 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441/* end confdefs.h. */
7442#include <asoundlib.h>
7443int
7444main ()
7445{
7446snd_lib_error_set_handler (0);
7447 ;
7448 return 0;
7449}
7450_ACEOF
7451if ac_fn_c_try_compile "$LINENO"; then :
7452 emacs_alsa_normal=yes
7453else
7454 emacs_alsa_normal=no
7455fi
7456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7457 if test "$emacs_alsa_normal" != yes; then
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459/* end confdefs.h. */
7460#include <alsa/asoundlib.h>
7461int
7462main ()
7463{
7464snd_lib_error_set_handler (0);
7465 ;
7466 return 0;
7467}
7468_ACEOF
7469if ac_fn_c_try_compile "$LINENO"; then :
7470 emacs_alsa_subdir=yes
7471else
7472 emacs_alsa_subdir=no
7473fi
7474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 if test "$emacs_alsa_subdir" != yes; then
2018939f 7476 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
067d23c9
KY
7477 fi
7478 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7479 fi
7480
7481 CFLAGS="$SAVE_CFLAGS"
7482 LDFLAGS="$SAVE_LDFLAGS"
7483 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7484 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7485
7486$as_echo "#define HAVE_ALSA 1" >>confdefs.h
7487
7488 fi
7489
7490 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7491 case "$opsys" in
7492 gnu-linux|freebsd|netbsd)
7493
7494$as_echo "#define HAVE_SOUND 1" >>confdefs.h
7495
7496 ;;
7497 esac
7498 fi
7499
7500
7501fi
7502
7503for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7504 linux/version.h sys/systeminfo.h limits.h \
7505 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7506 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7507 sys/utsname.h pwd.h utmp.h dirent.h util.h
7508do :
7509 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7510ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
2018939f 7511if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
7512 cat >>confdefs.h <<_ACEOF
7513#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7514_ACEOF
7515
7516fi
7517
7518done
7519
7520
7521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7522$as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524/* end confdefs.h. */
7525#include <sys/personality.h>
7526int
7527main ()
7528{
7529personality (PER_LINUX32)
7530 ;
7531 return 0;
7532}
7533_ACEOF
7534if ac_fn_c_try_compile "$LINENO"; then :
7535 emacs_cv_personality_linux32=yes
7536else
7537 emacs_cv_personality_linux32=no
7538fi
7539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7541$as_echo "$emacs_cv_personality_linux32" >&6; }
7542
7543if test $emacs_cv_personality_linux32 = yes; then
7544
7545$as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7546
7547fi
7548
7549for ac_header in term.h
7550do :
7551 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
d6974efa 7552if test "x$ac_cv_header_term_h" = xyes; then :
067d23c9
KY
7553 cat >>confdefs.h <<_ACEOF
7554#define HAVE_TERM_H 1
7555_ACEOF
7556
7557fi
7558
7559done
7560
7561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7562$as_echo_n "checking for ANSI C header files... " >&6; }
d6974efa 7563if ${ac_cv_header_stdc+:} false; then :
067d23c9
KY
7564 $as_echo_n "(cached) " >&6
7565else
7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567/* end confdefs.h. */
7568#include <stdlib.h>
7569#include <stdarg.h>
7570#include <string.h>
7571#include <float.h>
7572
7573int
7574main ()
7575{
7576
7577 ;
7578 return 0;
7579}
7580_ACEOF
7581if ac_fn_c_try_compile "$LINENO"; then :
7582 ac_cv_header_stdc=yes
7583else
7584 ac_cv_header_stdc=no
7585fi
7586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587
7588if test $ac_cv_header_stdc = yes; then
7589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591/* end confdefs.h. */
7592#include <string.h>
7593
7594_ACEOF
7595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7596 $EGREP "memchr" >/dev/null 2>&1; then :
7597
7598else
7599 ac_cv_header_stdc=no
7600fi
7601rm -f conftest*
7602
7603fi
7604
7605if test $ac_cv_header_stdc = yes; then
7606 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7608/* end confdefs.h. */
7609#include <stdlib.h>
7610
7611_ACEOF
7612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7613 $EGREP "free" >/dev/null 2>&1; then :
7614
7615else
7616 ac_cv_header_stdc=no
7617fi
7618rm -f conftest*
7619
7620fi
7621
7622if test $ac_cv_header_stdc = yes; then
7623 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7624 if test "$cross_compiling" = yes; then :
7625 :
7626else
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628/* end confdefs.h. */
7629#include <ctype.h>
7630#include <stdlib.h>
7631#if ((' ' & 0x0FF) == 0x020)
7632# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7633# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7634#else
7635# define ISLOWER(c) \
7636 (('a' <= (c) && (c) <= 'i') \
7637 || ('j' <= (c) && (c) <= 'r') \
7638 || ('s' <= (c) && (c) <= 'z'))
7639# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7640#endif
7641
7642#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7643int
7644main ()
7645{
7646 int i;
7647 for (i = 0; i < 256; i++)
7648 if (XOR (islower (i), ISLOWER (i))
7649 || toupper (i) != TOUPPER (i))
7650 return 2;
7651 return 0;
7652}
7653_ACEOF
7654if ac_fn_c_try_run "$LINENO"; then :
7655
7656else
7657 ac_cv_header_stdc=no
7658fi
7659rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7660 conftest.$ac_objext conftest.beam conftest.$ac_ext
7661fi
7662
7663fi
7664fi
7665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7666$as_echo "$ac_cv_header_stdc" >&6; }
7667if test $ac_cv_header_stdc = yes; then
7668
7669$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7670
7671fi
7672
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7674$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
d6974efa 7675if ${ac_cv_header_time+:} false; then :
067d23c9
KY
7676 $as_echo_n "(cached) " >&6
7677else
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679/* end confdefs.h. */
7680#include <sys/types.h>
7681#include <sys/time.h>
7682#include <time.h>
7683
7684int
7685main ()
7686{
7687if ((struct tm *) 0)
7688return 0;
7689 ;
7690 return 0;
7691}
7692_ACEOF
7693if ac_fn_c_try_compile "$LINENO"; then :
7694 ac_cv_header_time=yes
7695else
7696 ac_cv_header_time=no
7697fi
7698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699fi
7700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7701$as_echo "$ac_cv_header_time" >&6; }
7702if test $ac_cv_header_time = yes; then
7703
7704$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7705
7706fi
7707
7708ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
d6974efa 7709if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
067d23c9
KY
7710 ac_have_decl=1
7711else
7712 ac_have_decl=0
7713fi
7714
7715cat >>confdefs.h <<_ACEOF
7716#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7717_ACEOF
7718
7719if test $ac_cv_have_decl_sys_siglist != yes; then
7720 # For Tru64, at least:
7721 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
d6974efa 7722if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
067d23c9
KY
7723 ac_have_decl=1
7724else
7725 ac_have_decl=0
7726fi
7727
7728cat >>confdefs.h <<_ACEOF
7729#define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7730_ACEOF
7731
7732 if test $ac_cv_have_decl___sys_siglist = yes; then
7733
7734$as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7735
7736 fi
7737fi
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7739$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
d6974efa 7740if ${ac_cv_header_sys_wait_h+:} false; then :
067d23c9
KY
7741 $as_echo_n "(cached) " >&6
7742else
7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744/* end confdefs.h. */
7745#include <sys/types.h>
7746#include <sys/wait.h>
7747#ifndef WEXITSTATUS
7748# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7749#endif
7750#ifndef WIFEXITED
7751# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7752#endif
7753
7754int
7755main ()
7756{
7757 int s;
7758 wait (&s);
7759 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7760 ;
7761 return 0;
7762}
7763_ACEOF
7764if ac_fn_c_try_compile "$LINENO"; then :
7765 ac_cv_header_sys_wait_h=yes
7766else
7767 ac_cv_header_sys_wait_h=no
7768fi
7769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770fi
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7772$as_echo "$ac_cv_header_sys_wait_h" >&6; }
7773if test $ac_cv_header_sys_wait_h = yes; then
7774
7775$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7776
7777fi
7778
7779
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7781$as_echo_n "checking for struct utimbuf... " >&6; }
d6974efa 7782if ${emacs_cv_struct_utimbuf+:} false; then :
067d23c9
KY
7783 $as_echo_n "(cached) " >&6
7784else
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786/* end confdefs.h. */
7787#ifdef TIME_WITH_SYS_TIME
7788#include <sys/time.h>
7789#include <time.h>
7790#else
7791#ifdef HAVE_SYS_TIME_H
7792#include <sys/time.h>
7793#else
7794#include <time.h>
7795#endif
7796#endif
7797#ifdef HAVE_UTIME_H
7798#include <utime.h>
7799#endif
7800int
7801main ()
7802{
7803static struct utimbuf x; x.actime = x.modtime;
7804 ;
7805 return 0;
7806}
7807_ACEOF
7808if ac_fn_c_try_compile "$LINENO"; then :
7809 emacs_cv_struct_utimbuf=yes
7810else
7811 emacs_cv_struct_utimbuf=no
7812fi
7813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7814fi
7815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7816$as_echo "$emacs_cv_struct_utimbuf" >&6; }
7817if test $emacs_cv_struct_utimbuf = yes; then
7818
7819$as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7820
7821fi
7822
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7824$as_echo_n "checking return type of signal handlers... " >&6; }
d6974efa 7825if ${ac_cv_type_signal+:} false; then :
067d23c9
KY
7826 $as_echo_n "(cached) " >&6
7827else
7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829/* end confdefs.h. */
7830#include <sys/types.h>
7831#include <signal.h>
7832
7833int
7834main ()
7835{
7836return *(signal (0, 0)) (0) == 1;
7837 ;
7838 return 0;
7839}
7840_ACEOF
7841if ac_fn_c_try_compile "$LINENO"; then :
7842 ac_cv_type_signal=int
7843else
7844 ac_cv_type_signal=void
7845fi
7846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7847fi
7848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7849$as_echo "$ac_cv_type_signal" >&6; }
7850
7851cat >>confdefs.h <<_ACEOF
7852#define RETSIGTYPE $ac_cv_type_signal
7853_ACEOF
7854
7855
7856
7857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7858$as_echo_n "checking for speed_t... " >&6; }
d6974efa 7859if ${emacs_cv_speed_t+:} false; then :
067d23c9
KY
7860 $as_echo_n "(cached) " >&6
7861else
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863/* end confdefs.h. */
7864#include <termios.h>
7865int
7866main ()
7867{
7868speed_t x = 1;
7869 ;
7870 return 0;
7871}
7872_ACEOF
7873if ac_fn_c_try_compile "$LINENO"; then :
7874 emacs_cv_speed_t=yes
7875else
7876 emacs_cv_speed_t=no
7877fi
7878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7879fi
7880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7881$as_echo "$emacs_cv_speed_t" >&6; }
7882if test $emacs_cv_speed_t = yes; then
7883
7884$as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7885
7886fi
7887
7888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7889$as_echo_n "checking for struct timeval... " >&6; }
d6974efa 7890if ${emacs_cv_struct_timeval+:} false; then :
067d23c9
KY
7891 $as_echo_n "(cached) " >&6
7892else
7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894/* end confdefs.h. */
7895#ifdef TIME_WITH_SYS_TIME
7896#include <sys/time.h>
7897#include <time.h>
7898#else
7899#ifdef HAVE_SYS_TIME_H
7900#include <sys/time.h>
7901#else
7902#include <time.h>
7903#endif
7904#endif
7905int
7906main ()
7907{
7908static struct timeval x; x.tv_sec = x.tv_usec;
7909 ;
7910 return 0;
7911}
7912_ACEOF
7913if ac_fn_c_try_compile "$LINENO"; then :
7914 emacs_cv_struct_timeval=yes
7915else
7916 emacs_cv_struct_timeval=no
7917fi
7918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7919fi
7920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7921$as_echo "$emacs_cv_struct_timeval" >&6; }
7922HAVE_TIMEVAL=$emacs_cv_struct_timeval
7923if test $emacs_cv_struct_timeval = yes; then
7924
7925$as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7926
7927fi
7928
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7930$as_echo_n "checking for struct exception... " >&6; }
d6974efa 7931if ${emacs_cv_struct_exception+:} false; then :
067d23c9
KY
7932 $as_echo_n "(cached) " >&6
7933else
7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935/* end confdefs.h. */
7936#include <math.h>
7937int
7938main ()
7939{
7940static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7941 ;
7942 return 0;
7943}
7944_ACEOF
7945if ac_fn_c_try_compile "$LINENO"; then :
7946 emacs_cv_struct_exception=yes
7947else
7948 emacs_cv_struct_exception=no
7949fi
7950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7951fi
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7953$as_echo "$emacs_cv_struct_exception" >&6; }
7954HAVE_EXCEPTION=$emacs_cv_struct_exception
7955if test $emacs_cv_struct_exception != yes; then
7956
7957$as_echo "#define NO_MATHERR 1" >>confdefs.h
7958
7959fi
7960
7961for ac_header in sys/socket.h
7962do :
7963 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
d6974efa 7964if test "x$ac_cv_header_sys_socket_h" = xyes; then :
067d23c9
KY
7965 cat >>confdefs.h <<_ACEOF
7966#define HAVE_SYS_SOCKET_H 1
7967_ACEOF
7968
7969fi
7970
7971done
7972
7973for ac_header in net/if.h
7974do :
7975 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7976#if HAVE_SYS_SOCKET_H
7977#include <sys/socket.h>
7978#endif
7979"
d6974efa 7980if test "x$ac_cv_header_net_if_h" = xyes; then :
067d23c9
KY
7981 cat >>confdefs.h <<_ACEOF
7982#define HAVE_NET_IF_H 1
7983_ACEOF
7984
7985fi
7986
7987done
7988
7989
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7991$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
d6974efa 7992if ${ac_cv_struct_tm+:} false; then :
067d23c9
KY
7993 $as_echo_n "(cached) " >&6
7994else
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996/* end confdefs.h. */
7997#include <sys/types.h>
7998#include <time.h>
7999
8000int
8001main ()
8002{
8003struct tm tm;
8004 int *p = &tm.tm_sec;
8005 return !p;
8006 ;
8007 return 0;
8008}
8009_ACEOF
8010if ac_fn_c_try_compile "$LINENO"; then :
8011 ac_cv_struct_tm=time.h
8012else
8013 ac_cv_struct_tm=sys/time.h
8014fi
8015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8016fi
8017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8018$as_echo "$ac_cv_struct_tm" >&6; }
8019if test $ac_cv_struct_tm = sys/time.h; then
8020
8021$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8022
8023fi
8024
8025ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8026#include <$ac_cv_struct_tm>
8027
8028"
d6974efa 8029if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
067d23c9
KY
8030
8031cat >>confdefs.h <<_ACEOF
8032#define HAVE_STRUCT_TM_TM_ZONE 1
8033_ACEOF
8034
8035
8036fi
8037
8038if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8039
8040$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8041
8042else
8043 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8044"
d6974efa 8045if test "x$ac_cv_have_decl_tzname" = xyes; then :
067d23c9
KY
8046 ac_have_decl=1
8047else
8048 ac_have_decl=0
8049fi
8050
8051cat >>confdefs.h <<_ACEOF
8052#define HAVE_DECL_TZNAME $ac_have_decl
8053_ACEOF
8054
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
8056$as_echo_n "checking for tzname... " >&6; }
d6974efa 8057if ${ac_cv_var_tzname+:} false; then :
067d23c9
KY
8058 $as_echo_n "(cached) " >&6
8059else
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061/* end confdefs.h. */
8062#include <time.h>
8063#if !HAVE_DECL_TZNAME
8064extern char *tzname[];
8065#endif
8066
8067int
8068main ()
8069{
8070return tzname[0][0];
8071 ;
8072 return 0;
8073}
8074_ACEOF
8075if ac_fn_c_try_link "$LINENO"; then :
8076 ac_cv_var_tzname=yes
8077else
8078 ac_cv_var_tzname=no
8079fi
8080rm -f core conftest.err conftest.$ac_objext \
8081 conftest$ac_exeext conftest.$ac_ext
8082fi
8083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8084$as_echo "$ac_cv_var_tzname" >&6; }
8085 if test $ac_cv_var_tzname = yes; then
8086
8087$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8088
8089 fi
8090fi
8091
8092ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8093"
d6974efa 8094if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
067d23c9
KY
8095
8096$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8097
8098fi
8099
8100ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8101#if HAVE_SYS_SOCKET_H
8102#include <sys/socket.h>
8103#endif
8104#if HAVE_NET_IF_H
8105#include <net/if.h>
8106#endif
8107"
d6974efa 8108if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
067d23c9
KY
8109
8110cat >>confdefs.h <<_ACEOF
8111#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8112_ACEOF
8113
8114
8115fi
8116ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8117#if HAVE_SYS_SOCKET_H
8118#include <sys/socket.h>
8119#endif
8120#if HAVE_NET_IF_H
8121#include <net/if.h>
8122#endif
8123"
d6974efa 8124if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
067d23c9
KY
8125
8126cat >>confdefs.h <<_ACEOF
8127#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8128_ACEOF
8129
8130
8131fi
8132ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8133#if HAVE_SYS_SOCKET_H
8134#include <sys/socket.h>
8135#endif
8136#if HAVE_NET_IF_H
8137#include <net/if.h>
8138#endif
8139"
d6974efa 8140if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
067d23c9
KY
8141
8142cat >>confdefs.h <<_ACEOF
8143#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8144_ACEOF
8145
8146
8147fi
8148ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8149#if HAVE_SYS_SOCKET_H
8150#include <sys/socket.h>
8151#endif
8152#if HAVE_NET_IF_H
8153#include <net/if.h>
8154#endif
8155"
d6974efa 8156if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
067d23c9
KY
8157
8158cat >>confdefs.h <<_ACEOF
8159#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8160_ACEOF
8161
8162
8163fi
8164ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8165#if HAVE_SYS_SOCKET_H
8166#include <sys/socket.h>
8167#endif
8168#if HAVE_NET_IF_H
8169#include <net/if.h>
8170#endif
8171"
d6974efa 8172if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
067d23c9
KY
8173
8174cat >>confdefs.h <<_ACEOF
8175#define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8176_ACEOF
8177
8178
8179fi
8180
8181
8182
8183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8184$as_echo_n "checking for function prototypes... " >&6; }
8185if test "$ac_cv_prog_cc_c89" != no; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8187$as_echo "yes" >&6; }
8188
8189$as_echo "#define PROTOTYPES 1" >>confdefs.h
8190
8191
8192$as_echo "#define __PROTOTYPES 1" >>confdefs.h
8193
8194else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196$as_echo "no" >&6; }
8197fi
8198
8199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8200$as_echo_n "checking for working volatile... " >&6; }
d6974efa 8201if ${ac_cv_c_volatile+:} false; then :
067d23c9
KY
8202 $as_echo_n "(cached) " >&6
8203else
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205/* end confdefs.h. */
8206
8207int
8208main ()
8209{
8210
8211volatile int x;
8212int * volatile y = (int *) 0;
8213return !x && !y;
8214 ;
8215 return 0;
8216}
8217_ACEOF
8218if ac_fn_c_try_compile "$LINENO"; then :
8219 ac_cv_c_volatile=yes
8220else
8221 ac_cv_c_volatile=no
8222fi
8223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224fi
8225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8226$as_echo "$ac_cv_c_volatile" >&6; }
8227if test $ac_cv_c_volatile = no; then
8228
8229$as_echo "#define volatile /**/" >>confdefs.h
8230
8231fi
8232
8233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8234$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
d6974efa 8235if ${ac_cv_c_const+:} false; then :
067d23c9
KY
8236 $as_echo_n "(cached) " >&6
8237else
8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239/* end confdefs.h. */
8240
8241int
8242main ()
8243{
8244/* FIXME: Include the comments suggested by Paul. */
8245#ifndef __cplusplus
8246 /* Ultrix mips cc rejects this. */
8247 typedef int charset[2];
8248 const charset cs;
8249 /* SunOS 4.1.1 cc rejects this. */
8250 char const *const *pcpcc;
8251 char **ppc;
8252 /* NEC SVR4.0.2 mips cc rejects this. */
8253 struct point {int x, y;};
8254 static struct point const zero = {0,0};
8255 /* AIX XL C 1.02.0.0 rejects this.
8256 It does not let you subtract one const X* pointer from another in
8257 an arm of an if-expression whose if-part is not a constant
8258 expression */
8259 const char *g = "string";
8260 pcpcc = &g + (g ? g-g : 0);
8261 /* HPUX 7.0 cc rejects these. */
8262 ++pcpcc;
8263 ppc = (char**) pcpcc;
8264 pcpcc = (char const *const *) ppc;
8265 { /* SCO 3.2v4 cc rejects this. */
8266 char *t;
8267 char const *s = 0 ? (char *) 0 : (char const *) 0;
8268
8269 *t++ = 0;
8270 if (s) return 0;
8271 }
8272 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8273 int x[] = {25, 17};
8274 const int *foo = &x[0];
8275 ++foo;
8276 }
8277 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8278 typedef const int *iptr;
8279 iptr p = 0;
8280 ++p;
8281 }
8282 { /* AIX XL C 1.02.0.0 rejects this saying
8283 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8284 struct s { int j; const int *ap[3]; };
8285 struct s *b; b->j = 5;
8286 }
8287 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8288 const int foo = 10;
8289 if (!foo) return 0;
8290 }
8291 return !cs[0] && !zero.x;
8292#endif
8293
8294 ;
8295 return 0;
8296}
8297_ACEOF
8298if ac_fn_c_try_compile "$LINENO"; then :
8299 ac_cv_c_const=yes
8300else
8301 ac_cv_c_const=no
8302fi
8303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8304fi
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8306$as_echo "$ac_cv_c_const" >&6; }
8307if test $ac_cv_c_const = no; then
8308
8309$as_echo "#define const /**/" >>confdefs.h
8310
8311fi
8312
8313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8314$as_echo_n "checking for void * support... " >&6; }
d6974efa 8315if ${emacs_cv_void_star+:} false; then :
067d23c9
KY
8316 $as_echo_n "(cached) " >&6
8317else
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319/* end confdefs.h. */
8320
8321int
8322main ()
8323{
8324void * foo;
8325 ;
8326 return 0;
8327}
8328_ACEOF
8329if ac_fn_c_try_compile "$LINENO"; then :
8330 emacs_cv_void_star=yes
8331else
8332 emacs_cv_void_star=no
8333fi
8334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335fi
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8337$as_echo "$emacs_cv_void_star" >&6; }
8338if test $emacs_cv_void_star = yes; then
8339 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8340
8341else
8342 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8343
8344fi
8345
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8347$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d6974efa 8348if ${ac_cv_c_bigendian+:} false; then :
067d23c9
KY
8349 $as_echo_n "(cached) " >&6
8350else
8351 ac_cv_c_bigendian=unknown
8352 # See if we're dealing with a universal compiler.
8353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354/* end confdefs.h. */
8355#ifndef __APPLE_CC__
8356 not a universal capable compiler
8357 #endif
8358 typedef int dummy;
8359
8360_ACEOF
8361if ac_fn_c_try_compile "$LINENO"; then :
8362
8363 # Check for potential -arch flags. It is not universal unless
8364 # there are at least two -arch flags with different values.
8365 ac_arch=
8366 ac_prev=
8367 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8368 if test -n "$ac_prev"; then
8369 case $ac_word in
8370 i?86 | x86_64 | ppc | ppc64)
8371 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8372 ac_arch=$ac_word
8373 else
8374 ac_cv_c_bigendian=universal
8375 break
8376 fi
8377 ;;
8378 esac
8379 ac_prev=
8380 elif test "x$ac_word" = "x-arch"; then
8381 ac_prev=arch
8382 fi
8383 done
8384fi
8385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386 if test $ac_cv_c_bigendian = unknown; then
8387 # See if sys/param.h defines the BYTE_ORDER macro.
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389/* end confdefs.h. */
8390#include <sys/types.h>
8391 #include <sys/param.h>
8392
8393int
8394main ()
8395{
8396#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8397 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8398 && LITTLE_ENDIAN)
8399 bogus endian macros
8400 #endif
8401
8402 ;
8403 return 0;
8404}
8405_ACEOF
8406if ac_fn_c_try_compile "$LINENO"; then :
8407 # It does; now see whether it defined to BIG_ENDIAN or not.
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409/* end confdefs.h. */
8410#include <sys/types.h>
8411 #include <sys/param.h>
8412
8413int
8414main ()
8415{
8416#if BYTE_ORDER != BIG_ENDIAN
8417 not big endian
8418 #endif
8419
8420 ;
8421 return 0;
8422}
8423_ACEOF
8424if ac_fn_c_try_compile "$LINENO"; then :
8425 ac_cv_c_bigendian=yes
8426else
8427 ac_cv_c_bigendian=no
8428fi
8429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430fi
8431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8432 fi
8433 if test $ac_cv_c_bigendian = unknown; then
8434 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436/* end confdefs.h. */
8437#include <limits.h>
8438
8439int
8440main ()
8441{
8442#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8443 bogus endian macros
8444 #endif
8445
8446 ;
8447 return 0;
8448}
8449_ACEOF
8450if ac_fn_c_try_compile "$LINENO"; then :
8451 # It does; now see whether it defined to _BIG_ENDIAN or not.
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453/* end confdefs.h. */
8454#include <limits.h>
8455
8456int
8457main ()
8458{
8459#ifndef _BIG_ENDIAN
8460 not big endian
8461 #endif
8462
8463 ;
8464 return 0;
8465}
8466_ACEOF
8467if ac_fn_c_try_compile "$LINENO"; then :
8468 ac_cv_c_bigendian=yes
8469else
8470 ac_cv_c_bigendian=no
8471fi
8472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473fi
8474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 fi
8476 if test $ac_cv_c_bigendian = unknown; then
8477 # Compile a test program.
8478 if test "$cross_compiling" = yes; then :
8479 # Try to guess by grepping values from an object file.
8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481/* end confdefs.h. */
8482short int ascii_mm[] =
8483 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8484 short int ascii_ii[] =
8485 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8486 int use_ascii (int i) {
8487 return ascii_mm[i] + ascii_ii[i];
8488 }
8489 short int ebcdic_ii[] =
8490 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8491 short int ebcdic_mm[] =
8492 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8493 int use_ebcdic (int i) {
8494 return ebcdic_mm[i] + ebcdic_ii[i];
8495 }
8496 extern int foo;
8497
8498int
8499main ()
8500{
8501return use_ascii (foo) == use_ebcdic (foo);
8502 ;
8503 return 0;
8504}
8505_ACEOF
8506if ac_fn_c_try_compile "$LINENO"; then :
8507 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8508 ac_cv_c_bigendian=yes
8509 fi
8510 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8511 if test "$ac_cv_c_bigendian" = unknown; then
8512 ac_cv_c_bigendian=no
8513 else
8514 # finding both strings is unlikely to happen, but who knows?
8515 ac_cv_c_bigendian=unknown
8516 fi
8517 fi
8518fi
8519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520else
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522/* end confdefs.h. */
8523$ac_includes_default
8524int
8525main ()
8526{
8527
8528 /* Are we little or big endian? From Harbison&Steele. */
8529 union
8530 {
8531 long int l;
8532 char c[sizeof (long int)];
8533 } u;
8534 u.l = 1;
8535 return u.c[sizeof (long int) - 1] == 1;
8536
8537 ;
8538 return 0;
8539}
8540_ACEOF
8541if ac_fn_c_try_run "$LINENO"; then :
8542 ac_cv_c_bigendian=no
8543else
8544 ac_cv_c_bigendian=yes
8545fi
8546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8547 conftest.$ac_objext conftest.beam conftest.$ac_ext
8548fi
8549
8550 fi
8551fi
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8553$as_echo "$ac_cv_c_bigendian" >&6; }
8554 case $ac_cv_c_bigendian in #(
8555 yes)
8556 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8557;; #(
8558 no)
8559 ;; #(
8560 universal)
8561
8562$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8563
8564 ;; #(
8565 *)
2018939f 8566 as_fn_error $? "unknown endianness
d6974efa 8567 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
067d23c9
KY
8568 esac
8569
8570
7cae64b4
PE
8571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8572$as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
d6974efa 8573if ${emacs_cv_attribute_aligned+:} false; then :
7cae64b4
PE
8574 $as_echo_n "(cached) " >&6
8575else
8576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8577/* end confdefs.h. */
8578char __attribute__ ((__aligned__ (1 << 3))) c;
8579int
8580main ()
8581{
8582
8583 ;
8584 return 0;
8585}
8586_ACEOF
8587if ac_fn_c_try_compile "$LINENO"; then :
8588 emacs_cv_attribute_aligned=yes
8589else
8590 emacs_cv_attribute_aligned=no
8591fi
8592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8593fi
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8595$as_echo "$emacs_cv_attribute_aligned" >&6; }
8596if test $emacs_cv_attribute_aligned = yes; then
8597
8598$as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8599
8600fi
8601
067d23c9
KY
8602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8603$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8604set x ${MAKE-make}
8605ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6974efa 8606if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
067d23c9
KY
8607 $as_echo_n "(cached) " >&6
8608else
8609 cat >conftest.make <<\_ACEOF
8610SHELL = /bin/sh
8611all:
8612 @echo '@@@%%%=$(MAKE)=@@@%%%'
8613_ACEOF
2018939f 8614# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
067d23c9
KY
8615case `${MAKE-make} -f conftest.make 2>/dev/null` in
8616 *@@@%%%=?*=@@@%%%*)
8617 eval ac_cv_prog_make_${ac_make}_set=yes;;
8618 *)
8619 eval ac_cv_prog_make_${ac_make}_set=no;;
8620esac
8621rm -f conftest.make
8622fi
8623if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8625$as_echo "yes" >&6; }
8626 SET_MAKE=
8627else
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629$as_echo "no" >&6; }
8630 SET_MAKE="MAKE=${MAKE-make}"
8631fi
8632
8633
8634DEPFLAGS=
8635MKDEPDIR=":"
8636deps_frag=deps.mk
8637if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8639$as_echo_n "checking whether we are using GNU Make... " >&6; }
8640 HAVE_GNU_MAKE=no
8641 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8642 if test "x$testval" != x; then
8643 HAVE_GNU_MAKE=yes
8644 else
8645 ac_enable_autodepend=no
8646 fi
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8648$as_echo "$HAVE_GNU_MAKE" >&6; }
8649 if test $HAVE_GNU_MAKE = yes; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8651$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8652 SAVE_CFLAGS="$CFLAGS"
8653 CFLAGS="$CFLAGS -MMD -MF deps.d"
8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655/* end confdefs.h. */
8656
8657int
8658main ()
8659{
8660
8661 ;
8662 return 0;
8663}
8664_ACEOF
8665if ac_fn_c_try_compile "$LINENO"; then :
8666
8667else
8668 ac_enable_autodepend=no
8669fi
8670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 CFLAGS="$SAVE_CFLAGS"
8672 test -f deps.d || ac_enable_autodepend=no
8673 rm -rf deps.d
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8675$as_echo "$ac_enable_autodepend" >&6; }
8676 fi
8677 if test $ac_enable_autodepend = yes; then
8678 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8679 ## In parallel builds, another make might create depdir between
8680 ## the first test and mkdir, so stick another test on the end.
8681 ## Or use mkinstalldirs? mkdir -p is not portable.
8682 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8683 deps_frag=autodeps.mk
8684 fi
8685fi
8686deps_frag=$srcdir/src/$deps_frag
8687
8688
8689
8690
8691
8692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8693$as_echo_n "checking for long file names... " >&6; }
d6974efa 8694if ${ac_cv_sys_long_file_names+:} false; then :
067d23c9
KY
8695 $as_echo_n "(cached) " >&6
8696else
8697 ac_cv_sys_long_file_names=yes
8698# Test for long file names in all the places we know might matter:
8699# . the current directory, where building will happen
8700# $prefix/lib where we will be installing things
8701# $exec_prefix/lib likewise
8702# $TMPDIR if set, where it might want to write temporary files
8703# /tmp where it might want to write temporary files
8704# /var/tmp likewise
8705# /usr/tmp likewise
8706for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8707 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8708 # in the usual case where exec_prefix is '${prefix}'.
8709 case $ac_dir in #(
8710 . | /* | ?:[\\/]*) ;; #(
8711 *) continue;;
8712 esac
8713 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8714 ac_xdir=$ac_dir/cf$$
8715 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8716 ac_tf1=$ac_xdir/conftest9012345
8717 ac_tf2=$ac_xdir/conftest9012346
8718 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8719 ac_cv_sys_long_file_names=no
8720 rm -f -r "$ac_xdir" 2>/dev/null
8721 test $ac_cv_sys_long_file_names = no && break
8722done
8723fi
8724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8725$as_echo "$ac_cv_sys_long_file_names" >&6; }
8726if test $ac_cv_sys_long_file_names = yes; then
8727
8728$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8729
8730fi
8731
8732
8733#### Choose a window system.
8734
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8736$as_echo_n "checking for X... " >&6; }
8737
8738
8739# Check whether --with-x was given.
8740if test "${with_x+set}" = set; then :
8741 withval=$with_x;
8742fi
8743
8744# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8745if test "x$with_x" = xno; then
8746 # The user explicitly disabled X.
8747 have_x=disabled
8748else
8749 case $x_includes,$x_libraries in #(
d6974efa
PE
8750 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8751 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
067d23c9
KY
8752 $as_echo_n "(cached) " >&6
8753else
8754 # One or both of the vars are not set, and there is no cached value.
8755ac_x_includes=no ac_x_libraries=no
8756rm -f -r conftest.dir
8757if mkdir conftest.dir; then
8758 cd conftest.dir
8759 cat >Imakefile <<'_ACEOF'
8760incroot:
8761 @echo incroot='${INCROOT}'
8762usrlibdir:
8763 @echo usrlibdir='${USRLIBDIR}'
8764libdir:
8765 @echo libdir='${LIBDIR}'
8766_ACEOF
8767 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
2018939f 8768 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
067d23c9
KY
8769 for ac_var in incroot usrlibdir libdir; do
8770 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8771 done
8772 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8773 for ac_extension in a so sl dylib la dll; do
8774 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8775 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8776 ac_im_usrlibdir=$ac_im_libdir; break
8777 fi
8778 done
8779 # Screen out bogus values from the imake configuration. They are
8780 # bogus both because they are the default anyway, and because
8781 # using them would break gcc on systems where it needs fixed includes.
8782 case $ac_im_incroot in
8783 /usr/include) ac_x_includes= ;;
8784 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8785 esac
8786 case $ac_im_usrlibdir in
8787 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8788 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8789 esac
8790 fi
8791 cd ..
8792 rm -f -r conftest.dir
8793fi
8794
8795# Standard set of common directories for X headers.
8796# Check X11 before X11Rn because it is often a symlink to the current release.
8797ac_x_header_dirs='
8798/usr/X11/include
8799/usr/X11R7/include
8800/usr/X11R6/include
8801/usr/X11R5/include
8802/usr/X11R4/include
8803
8804/usr/include/X11
8805/usr/include/X11R7
8806/usr/include/X11R6
8807/usr/include/X11R5
8808/usr/include/X11R4
8809
8810/usr/local/X11/include
8811/usr/local/X11R7/include
8812/usr/local/X11R6/include
8813/usr/local/X11R5/include
8814/usr/local/X11R4/include
8815
8816/usr/local/include/X11
8817/usr/local/include/X11R7
8818/usr/local/include/X11R6
8819/usr/local/include/X11R5
8820/usr/local/include/X11R4
8821
8822/usr/X386/include
8823/usr/x386/include
8824/usr/XFree86/include/X11
8825
8826/usr/include
8827/usr/local/include
8828/usr/unsupported/include
8829/usr/athena/include
8830/usr/local/x11r5/include
8831/usr/lpp/Xamples/include
8832
8833/usr/openwin/include
8834/usr/openwin/share/include'
8835
8836if test "$ac_x_includes" = no; then
8837 # Guess where to find include files, by looking for Xlib.h.
8838 # First, try using that file with no special directory specified.
8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840/* end confdefs.h. */
8841#include <X11/Xlib.h>
8842_ACEOF
8843if ac_fn_c_try_cpp "$LINENO"; then :
8844 # We can compile using X headers with no special include directory.
8845ac_x_includes=
8846else
8847 for ac_dir in $ac_x_header_dirs; do
8848 if test -r "$ac_dir/X11/Xlib.h"; then
8849 ac_x_includes=$ac_dir
8850 break
8851 fi
8852done
8853fi
2018939f 8854rm -f conftest.err conftest.i conftest.$ac_ext
067d23c9
KY
8855fi # $ac_x_includes = no
8856
8857if test "$ac_x_libraries" = no; then
8858 # Check for the libraries.
8859 # See if we find them without any special options.
8860 # Don't add to $LIBS permanently.
8861 ac_save_LIBS=$LIBS
8862 LIBS="-lX11 $LIBS"
8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864/* end confdefs.h. */
8865#include <X11/Xlib.h>
8866int
8867main ()
8868{
8869XrmInitialize ()
8870 ;
8871 return 0;
8872}
8873_ACEOF
8874if ac_fn_c_try_link "$LINENO"; then :
8875 LIBS=$ac_save_LIBS
8876# We can link X programs with no special library path.
8877ac_x_libraries=
8878else
8879 LIBS=$ac_save_LIBS
8880for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8881do
8882 # Don't even attempt the hair of trying to link an X program!
8883 for ac_extension in a so sl dylib la dll; do
8884 if test -r "$ac_dir/libX11.$ac_extension"; then
8885 ac_x_libraries=$ac_dir
8886 break 2
8887 fi
8888 done
8889done
8890fi
8891rm -f core conftest.err conftest.$ac_objext \
8892 conftest$ac_exeext conftest.$ac_ext
8893fi # $ac_x_libraries = no
8894
8895case $ac_x_includes,$ac_x_libraries in #(
8896 no,* | *,no | *\'*)
8897 # Didn't find X, or a directory has "'" in its name.
8898 ac_cv_have_x="have_x=no";; #(
8899 *)
8900 # Record where we found X for the cache.
8901 ac_cv_have_x="have_x=yes\
8902 ac_x_includes='$ac_x_includes'\
8903 ac_x_libraries='$ac_x_libraries'"
8904esac
8905fi
8906;; #(
8907 *) have_x=yes;;
8908 esac
8909 eval "$ac_cv_have_x"
8910fi # $with_x != no
8911
8912if test "$have_x" != yes; then
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8914$as_echo "$have_x" >&6; }
8915 no_x=yes
8916else
8917 # If each of the values was on the command line, it overrides each guess.
8918 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8919 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8920 # Update the cache value to reflect the command line values.
8921 ac_cv_have_x="have_x=yes\
8922 ac_x_includes='$x_includes'\
8923 ac_x_libraries='$x_libraries'"
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8925$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8926fi
8927
8928if test "$no_x" = yes; then
8929 window_system=none
8930else
8931 window_system=x11
8932fi
8933
8934## Workaround for bug in autoconf <= 2.62.
8935## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8936## No need to do anything special for these standard directories.
8937if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8938
8939 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8940
8941fi
8942
8943LD_SWITCH_X_SITE_AUX=
8944LD_SWITCH_X_SITE_AUX_RPATH=
8945if test "${x_libraries}" != NONE; then
8946 if test -n "${x_libraries}"; then
8947 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8948 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8949 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8950 fi
8951 x_default_search_path=""
8952 x_search_path=${x_libraries}
8953 if test -z "${x_search_path}"; then
8954 x_search_path=/usr/lib
8955 fi
8956 for x_library in `echo ${x_search_path}: | \
8957 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8958 x_search_path="\
8959${x_library}/X11/%L/%T/%N%C%S:\
8960${x_library}/X11/%l/%T/%N%C%S:\
8961${x_library}/X11/%T/%N%C%S:\
8962${x_library}/X11/%L/%T/%N%S:\
8963${x_library}/X11/%l/%T/%N%S:\
8964${x_library}/X11/%T/%N%S"
8965 if test x"${x_default_search_path}" = x; then
8966 x_default_search_path=${x_search_path}
8967 else
8968 x_default_search_path="${x_search_path}:${x_default_search_path}"
8969 fi
8970 done
8971fi
8972
8973
8974
8975if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8976 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8977fi
8978
8979if test x"${x_includes}" = x; then
8980 bitmapdir=/usr/include/X11/bitmaps
8981else
8982 # accumulate include directories that have X11 bitmap subdirectories
8983 bmd_acc="dummyval"
8984 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8985 if test -d "${bmd}/X11/bitmaps"; then
8986 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8987 fi
8988 if test -d "${bmd}/bitmaps"; then
8989 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8990 fi
8991 done
8992 if test ${bmd_acc} != "dummyval"; then
8993 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8994 fi
8995fi
8996
8997HAVE_NS=no
8998NS_IMPL_COCOA=no
8999NS_IMPL_GNUSTEP=no
9000tmp_CPPFLAGS="$CPPFLAGS"
9001tmp_CFLAGS="$CFLAGS"
9002CPPFLAGS="$CPPFLAGS -x objective-c"
9003CFLAGS="$CFLAGS -x objective-c"
9004TEMACS_LDFLAGS2="\${LDFLAGS}"
9005if test "${with_ns}" != no; then
9006 if test "${opsys}" = darwin; then
9007 NS_IMPL_COCOA=yes
9008 ns_appdir=`pwd`/nextstep/Emacs.app
9009 ns_appbindir=${ns_appdir}/Contents/MacOS/
9010 ns_appresdir=${ns_appdir}/Contents/Resources
9011 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9012 elif test -f $GNUSTEP_CONFIG_FILE; then
9013 NS_IMPL_GNUSTEP=yes
9014 ns_appdir=`pwd`/nextstep/Emacs.app
9015 ns_appbindir=${ns_appdir}/
9016 ns_appresdir=${ns_appdir}/Resources
9017 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9018 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9019 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9020 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
9021 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
9022 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
9023 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
9024 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
9025 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
9026 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9027 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
9028 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
9029 LIB_STANDARD=
9030 START_FILES=
9031 TEMACS_LDFLAGS2=
9032 fi
9033 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
d6974efa 9034if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
067d23c9
KY
9035 HAVE_NS=yes
9036else
2018939f 9037 as_fn_error $? "\`--with-ns' was specified, but the include
067d23c9
KY
9038 files are missing or cannot be compiled." "$LINENO" 5
9039fi
9040
9041
9042 NS_HAVE_NSINTEGER=yes
9043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9044/* end confdefs.h. */
9045#include <Foundation/NSObjCRuntime.h>
9046int
9047main ()
9048{
9049NSInteger i;
9050 ;
9051 return 0;
9052}
9053_ACEOF
9054if ac_fn_c_try_compile "$LINENO"; then :
9055 ns_have_nsinteger=yes
9056else
9057 ns_have_nsinteger=no
9058fi
9059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9060 if test $ns_have_nsinteger = no; then
9061 NS_HAVE_NSINTEGER=no
9062 fi
9063fi
9064
9065
9066ns_frag=/dev/null
9067NS_OBJ=
00b3c7ac 9068NS_OBJC_OBJ=
067d23c9
KY
9069NS_SUPPORT=
9070if test "${HAVE_NS}" = yes; then
9071 window_system=nextstep
9072 with_xft=no
9073 # set up packaging dirs
9074 exec_prefix=${ns_appbindir}
9075 libexecdir=${ns_appbindir}/libexec
9076 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9077 prefix=${ns_appresdir}
9078 fi
9079 ns_frag=$srcdir/src/ns.mk
00b3c7ac
TT
9080 NS_OBJ="fontset.o fringe.o image.o"
9081 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
067d23c9
KY
9082 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
9083fi
9084CFLAGS="$tmp_CFLAGS"
9085CPPFLAGS="$tmp_CPPFLAGS"
9086
9087
9088
9089
9090
00b3c7ac 9091
067d23c9
KY
9092case "${window_system}" in
9093 x11 )
9094 HAVE_X_WINDOWS=yes
9095 HAVE_X11=yes
9096 case "${with_x_toolkit}" in
9097 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9098 motif ) USE_X_TOOLKIT=MOTIF ;;
9099 gtk ) with_gtk=yes
9100 USE_X_TOOLKIT=none ;;
9101 gtk3 ) with_gtk3=yes
9102 USE_X_TOOLKIT=none ;;
9103 no ) USE_X_TOOLKIT=none ;;
9104 * ) USE_X_TOOLKIT=maybe ;;
9105 esac
9106 ;;
9107 nextstep | none )
9108 HAVE_X_WINDOWS=no
9109 HAVE_X11=no
9110 USE_X_TOOLKIT=none
9111 ;;
9112esac
9113
9114if test "$window_system" = none && test "X$with_x" != "Xno"; then
9115 # Extract the first word of "X", so it can be a program name with args.
9116set dummy X; ac_word=$2
9117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9118$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 9119if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
067d23c9
KY
9120 $as_echo_n "(cached) " >&6
9121else
9122 if test -n "$HAVE_XSERVER"; then
9123 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9124else
9125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126for as_dir in $PATH
9127do
9128 IFS=$as_save_IFS
9129 test -z "$as_dir" && as_dir=.
9130 for ac_exec_ext in '' $ac_executable_extensions; do
9131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9132 ac_cv_prog_HAVE_XSERVER="true"
9133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9134 break 2
9135 fi
9136done
9137 done
9138IFS=$as_save_IFS
9139
9140 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9141fi
9142fi
9143HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9144if test -n "$HAVE_XSERVER"; then
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9146$as_echo "$HAVE_XSERVER" >&6; }
9147else
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9149$as_echo "no" >&6; }
9150fi
9151
9152
9153 if test "$HAVE_XSERVER" = true ||
9154 test -n "$DISPLAY" ||
9155 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
2018939f 9156 as_fn_error $? "You seem to be running X, but no X development libraries
067d23c9
KY
9157were found. You should install the relevant development files for X
9158and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9159sure you have development files for image handling, i.e.
9160tiff, gif, jpeg, png and xpm.
9161If you are sure you want Emacs compiled without X window support, pass
9162 --without-x
9163to configure." "$LINENO" 5
9164 fi
9165fi
9166
9167### If we're using X11, we should use the X menu package.
9168HAVE_MENUS=no
9169case ${HAVE_X11} in
9170 yes ) HAVE_MENUS=yes ;;
9171esac
9172
9173# Do the opsystem or machine files prohibit the use of the GNU malloc?
9174# Assume not, until told otherwise.
9175GNU_MALLOC=yes
9176doug_lea_malloc=yes
9177ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
d6974efa 9178if test "x$ac_cv_func_malloc_get_state" = xyes; then :
067d23c9
KY
9179
9180else
9181 doug_lea_malloc=no
9182fi
9183
9184ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
d6974efa 9185if test "x$ac_cv_func_malloc_set_state" = xyes; then :
067d23c9
KY
9186
9187else
9188 doug_lea_malloc=no
9189fi
9190
9191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
9192$as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
d6974efa 9193if ${emacs_cv_var___after_morecore_hook+:} false; then :
067d23c9
KY
9194 $as_echo_n "(cached) " >&6
9195else
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197/* end confdefs.h. */
9198extern void (* __after_morecore_hook)();
9199int
9200main ()
9201{
9202__after_morecore_hook = 0
9203 ;
9204 return 0;
9205}
9206_ACEOF
9207if ac_fn_c_try_link "$LINENO"; then :
9208 emacs_cv_var___after_morecore_hook=yes
9209else
9210 emacs_cv_var___after_morecore_hook=no
9211fi
9212rm -f core conftest.err conftest.$ac_objext \
9213 conftest$ac_exeext conftest.$ac_ext
9214fi
9215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9216$as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9217if test $emacs_cv_var___after_morecore_hook = no; then
9218 doug_lea_malloc=no
9219fi
9220
9221
9222system_malloc=no
9223case "$opsys" in
9224 ## darwin ld insists on the use of malloc routines in the System framework.
9225 darwin|sol2-10) system_malloc=yes ;;
9226esac
9227
9228if test "${system_malloc}" = "yes"; then
9229
9230$as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9231
9232 GNU_MALLOC=no
9233 GNU_MALLOC_reason="
9234 (The GNU allocators don't work with this system configuration.)"
9235 GMALLOC_OBJ=
9236 VMLIMIT_OBJ=
9237else
9238 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9239 VMLIMIT_OBJ=vm-limit.o
9240fi
9241
9242
9243
9244if test "$doug_lea_malloc" = "yes" ; then
9245 if test "$GNU_MALLOC" = yes ; then
9246 GNU_MALLOC_reason="
9247 (Using Doug Lea's new malloc from the GNU C Library.)"
9248 fi
9249
9250$as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9251
9252
9253 ## Use mmap directly for allocating larger buffers.
9254 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9255 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9256 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9257 case "$opsys" in
9258 gnu*) REL_ALLOC=no ;;
9259 esac
9260fi
9261
9262if test x"${REL_ALLOC}" = x; then
9263 REL_ALLOC=${GNU_MALLOC}
9264fi
9265
9266use_mmap_for_buffers=no
9267case "$opsys" in
9268 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9269esac
9270
9271
9272
9273
9274 for ac_header in $ac_header_list
9275do :
9276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9277ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9278"
2018939f 9279if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
9280 cat >>confdefs.h <<_ACEOF
9281#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9282_ACEOF
9283
9284fi
9285
9286done
9287
9288
9289
9290
9291
9292
9293
9294
9295for ac_func in getpagesize
9296do :
9297 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
d6974efa 9298if test "x$ac_cv_func_getpagesize" = xyes; then :
067d23c9
KY
9299 cat >>confdefs.h <<_ACEOF
9300#define HAVE_GETPAGESIZE 1
9301_ACEOF
9302
9303fi
9304done
9305
9306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9307$as_echo_n "checking for working mmap... " >&6; }
d6974efa 9308if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
067d23c9
KY
9309 $as_echo_n "(cached) " >&6
9310else
9311 if test "$cross_compiling" = yes; then :
9312 ac_cv_func_mmap_fixed_mapped=no
9313else
9314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9315/* end confdefs.h. */
9316$ac_includes_default
9317/* malloc might have been renamed as rpl_malloc. */
9318#undef malloc
9319
9320/* Thanks to Mike Haertel and Jim Avera for this test.
9321 Here is a matrix of mmap possibilities:
9322 mmap private not fixed
9323 mmap private fixed at somewhere currently unmapped
9324 mmap private fixed at somewhere already mapped
9325 mmap shared not fixed
9326 mmap shared fixed at somewhere currently unmapped
9327 mmap shared fixed at somewhere already mapped
9328 For private mappings, we should verify that changes cannot be read()
9329 back from the file, nor mmap's back from the file at a different
9330 address. (There have been systems where private was not correctly
9331 implemented like the infamous i386 svr4.0, and systems where the
9332 VM page cache was not coherent with the file system buffer cache
9333 like early versions of FreeBSD and possibly contemporary NetBSD.)
9334 For shared mappings, we should conversely verify that changes get
9335 propagated back to all the places they're supposed to be.
9336
9337 Grep wants private fixed already mapped.
9338 The main things grep needs to know about mmap are:
9339 * does it exist and is it safe to write into the mmap'd area
9340 * how to use it (BSD variants) */
9341
9342#include <fcntl.h>
9343#include <sys/mman.h>
9344
9345#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9346char *malloc ();
9347#endif
9348
9349/* This mess was copied from the GNU getpagesize.h. */
9350#ifndef HAVE_GETPAGESIZE
9351# ifdef _SC_PAGESIZE
9352# define getpagesize() sysconf(_SC_PAGESIZE)
9353# else /* no _SC_PAGESIZE */
9354# ifdef HAVE_SYS_PARAM_H
9355# include <sys/param.h>
9356# ifdef EXEC_PAGESIZE
9357# define getpagesize() EXEC_PAGESIZE
9358# else /* no EXEC_PAGESIZE */
9359# ifdef NBPG
9360# define getpagesize() NBPG * CLSIZE
9361# ifndef CLSIZE
9362# define CLSIZE 1
9363# endif /* no CLSIZE */
9364# else /* no NBPG */
9365# ifdef NBPC
9366# define getpagesize() NBPC
9367# else /* no NBPC */
9368# ifdef PAGESIZE
9369# define getpagesize() PAGESIZE
9370# endif /* PAGESIZE */
9371# endif /* no NBPC */
9372# endif /* no NBPG */
9373# endif /* no EXEC_PAGESIZE */
9374# else /* no HAVE_SYS_PARAM_H */
9375# define getpagesize() 8192 /* punt totally */
9376# endif /* no HAVE_SYS_PARAM_H */
9377# endif /* no _SC_PAGESIZE */
9378
9379#endif /* no HAVE_GETPAGESIZE */
9380
9381int
9382main ()
9383{
9384 char *data, *data2, *data3;
2018939f 9385 const char *cdata2;
067d23c9
KY
9386 int i, pagesize;
9387 int fd, fd2;
9388
9389 pagesize = getpagesize ();
9390
9391 /* First, make a file with some known garbage in it. */
9392 data = (char *) malloc (pagesize);
9393 if (!data)
9394 return 1;
9395 for (i = 0; i < pagesize; ++i)
9396 *(data + i) = rand ();
9397 umask (0);
9398 fd = creat ("conftest.mmap", 0600);
9399 if (fd < 0)
9400 return 2;
9401 if (write (fd, data, pagesize) != pagesize)
9402 return 3;
9403 close (fd);
9404
9405 /* Next, check that the tail of a page is zero-filled. File must have
9406 non-zero length, otherwise we risk SIGBUS for entire page. */
9407 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9408 if (fd2 < 0)
9409 return 4;
2018939f
AS
9410 cdata2 = "";
9411 if (write (fd2, cdata2, 1) != 1)
067d23c9 9412 return 5;
2018939f 9413 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
067d23c9
KY
9414 if (data2 == MAP_FAILED)
9415 return 6;
9416 for (i = 0; i < pagesize; ++i)
9417 if (*(data2 + i))
9418 return 7;
9419 close (fd2);
9420 if (munmap (data2, pagesize))
9421 return 8;
9422
9423 /* Next, try to mmap the file at a fixed address which already has
9424 something else allocated at it. If we can, also make sure that
9425 we see the same garbage. */
9426 fd = open ("conftest.mmap", O_RDWR);
9427 if (fd < 0)
9428 return 9;
9429 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9430 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9431 return 10;
9432 for (i = 0; i < pagesize; ++i)
9433 if (*(data + i) != *(data2 + i))
9434 return 11;
9435
9436 /* Finally, make sure that changes to the mapped area do not
9437 percolate back to the file as seen by read(). (This is a bug on
9438 some variants of i386 svr4.0.) */
9439 for (i = 0; i < pagesize; ++i)
9440 *(data2 + i) = *(data2 + i) + 1;
9441 data3 = (char *) malloc (pagesize);
9442 if (!data3)
9443 return 12;
9444 if (read (fd, data3, pagesize) != pagesize)
9445 return 13;
9446 for (i = 0; i < pagesize; ++i)
9447 if (*(data + i) != *(data3 + i))
9448 return 14;
9449 close (fd);
9450 return 0;
9451}
9452_ACEOF
9453if ac_fn_c_try_run "$LINENO"; then :
9454 ac_cv_func_mmap_fixed_mapped=yes
9455else
9456 ac_cv_func_mmap_fixed_mapped=no
9457fi
9458rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9459 conftest.$ac_objext conftest.beam conftest.$ac_ext
9460fi
9461
9462fi
9463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9464$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9465if test $ac_cv_func_mmap_fixed_mapped = yes; then
9466
9467$as_echo "#define HAVE_MMAP 1" >>confdefs.h
9468
9469fi
9470rm -f conftest.mmap conftest.txt
9471
9472if test $use_mmap_for_buffers = yes; then
9473
9474$as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9475
9476 REL_ALLOC=no
9477fi
9478
9479LIBS="$LIBS_SYSTEM $LIBS"
9480
9481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9482$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
d6974efa 9483if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
067d23c9
KY
9484 $as_echo_n "(cached) " >&6
9485else
9486 ac_check_lib_save_LIBS=$LIBS
9487LIBS="-ldnet $LIBS"
9488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489/* end confdefs.h. */
9490
9491/* Override any GCC internal prototype to avoid an error.
9492 Use char because int might match the return type of a GCC
9493 builtin and then its argument prototype would still apply. */
9494#ifdef __cplusplus
9495extern "C"
9496#endif
9497char dnet_ntoa ();
9498int
9499main ()
9500{
9501return dnet_ntoa ();
9502 ;
9503 return 0;
9504}
9505_ACEOF
9506if ac_fn_c_try_link "$LINENO"; then :
9507 ac_cv_lib_dnet_dnet_ntoa=yes
9508else
9509 ac_cv_lib_dnet_dnet_ntoa=no
9510fi
9511rm -f core conftest.err conftest.$ac_objext \
9512 conftest$ac_exeext conftest.$ac_ext
9513LIBS=$ac_check_lib_save_LIBS
9514fi
9515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9516$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
d6974efa 9517if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
067d23c9
KY
9518 cat >>confdefs.h <<_ACEOF
9519#define HAVE_LIBDNET 1
9520_ACEOF
9521
9522 LIBS="-ldnet $LIBS"
9523
9524fi
9525
9526
9527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9528$as_echo_n "checking for main in -lXbsd... " >&6; }
d6974efa 9529if ${ac_cv_lib_Xbsd_main+:} false; then :
067d23c9
KY
9530 $as_echo_n "(cached) " >&6
9531else
9532 ac_check_lib_save_LIBS=$LIBS
9533LIBS="-lXbsd $LIBS"
9534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535/* end confdefs.h. */
9536
9537
9538int
9539main ()
9540{
9541return main ();
9542 ;
9543 return 0;
9544}
9545_ACEOF
9546if ac_fn_c_try_link "$LINENO"; then :
9547 ac_cv_lib_Xbsd_main=yes
9548else
9549 ac_cv_lib_Xbsd_main=no
9550fi
9551rm -f core conftest.err conftest.$ac_objext \
9552 conftest$ac_exeext conftest.$ac_ext
9553LIBS=$ac_check_lib_save_LIBS
9554fi
9555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9556$as_echo "$ac_cv_lib_Xbsd_main" >&6; }
d6974efa 9557if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
067d23c9
KY
9558 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9559fi
9560
9561
9562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9563$as_echo_n "checking for cma_open in -lpthreads... " >&6; }
d6974efa 9564if ${ac_cv_lib_pthreads_cma_open+:} false; then :
067d23c9
KY
9565 $as_echo_n "(cached) " >&6
9566else
9567 ac_check_lib_save_LIBS=$LIBS
9568LIBS="-lpthreads $LIBS"
9569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570/* end confdefs.h. */
9571
9572/* Override any GCC internal prototype to avoid an error.
9573 Use char because int might match the return type of a GCC
9574 builtin and then its argument prototype would still apply. */
9575#ifdef __cplusplus
9576extern "C"
9577#endif
9578char cma_open ();
9579int
9580main ()
9581{
9582return cma_open ();
9583 ;
9584 return 0;
9585}
9586_ACEOF
9587if ac_fn_c_try_link "$LINENO"; then :
9588 ac_cv_lib_pthreads_cma_open=yes
9589else
9590 ac_cv_lib_pthreads_cma_open=no
9591fi
9592rm -f core conftest.err conftest.$ac_objext \
9593 conftest$ac_exeext conftest.$ac_ext
9594LIBS=$ac_check_lib_save_LIBS
9595fi
9596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9597$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
d6974efa 9598if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
067d23c9
KY
9599 cat >>confdefs.h <<_ACEOF
9600#define HAVE_LIBPTHREADS 1
9601_ACEOF
9602
9603 LIBS="-lpthreads $LIBS"
9604
9605fi
9606
9607
9608## Note: when using cpp in s/aix4.2.h, this definition depended on
9609## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9610## the system file was sourced. Hence the value of LIBS_SYSTEM
9611## added to LIBS in configure would never contain the pthreads part,
9612## but the value used in Makefiles might. FIXME?
9613##
9614## -lpthreads seems to be necessary for Xlib in X11R6, and should
9615## be harmless on older versions of X where it happens to exist.
9616test "$opsys" = "aix4-2" && \
9617 test $ac_cv_lib_pthreads_cma_open = yes && \
9618 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9619
9620
9621case ${host_os} in
9622aix*)
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9624$as_echo_n "checking for -bbigtoc option... " >&6; }
d6974efa 9625if ${gdb_cv_bigtoc+:} false; then :
067d23c9
KY
9626 $as_echo_n "(cached) " >&6
9627else
9628
9629 case $GCC in
9630 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9631 *) gdb_cv_bigtoc=-bbigtoc ;;
9632 esac
9633
9634 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636/* end confdefs.h. */
9637
9638int
9639main ()
9640{
9641int i;
9642 ;
9643 return 0;
9644}
9645_ACEOF
9646if ac_fn_c_try_link "$LINENO"; then :
9647
9648else
9649 gdb_cv_bigtoc=
9650fi
9651rm -f core conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
9653
9654fi
9655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9656$as_echo "$gdb_cv_bigtoc" >&6; }
9657 ;;
9658esac
9659
9660# Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9661# used for the tests that follow. We set them back to REAL_CFLAGS and
9662# REAL_CPPFLAGS later on.
9663
9664REAL_CFLAGS="$CFLAGS"
9665REAL_CPPFLAGS="$CPPFLAGS"
9666
9667if test "${HAVE_X11}" = "yes"; then
9668 DEFS="$C_SWITCH_X_SITE $DEFS"
9669 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9670 LIBS="-lX11 $LIBS"
9671 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9672 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9673
9674 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9675 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9676 # but it's more convenient here to set LD_RUN_PATH
9677 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9678 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9679 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9680 export LD_RUN_PATH
9681 fi
9682
9683 if test "${opsys}" = "gnu-linux"; then
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9685$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687/* end confdefs.h. */
9688
9689int
9690main ()
9691{
9692XOpenDisplay ("foo");
9693 ;
9694 return 0;
9695}
9696_ACEOF
9697if ac_fn_c_try_link "$LINENO"; then :
9698 xlinux_first_failure=no
9699else
9700 xlinux_first_failure=yes
9701fi
9702rm -f core conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext conftest.$ac_ext
9704 if test "${xlinux_first_failure}" = "yes"; then
9705 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9706 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9707 OLD_CPPFLAGS="$CPPFLAGS"
9708 OLD_LIBS="$LIBS"
9709 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9710 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9711 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9712 LIBS="$LIBS -b i486-linuxaout"
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714/* end confdefs.h. */
9715
9716int
9717main ()
9718{
9719XOpenDisplay ("foo");
9720 ;
9721 return 0;
9722}
9723_ACEOF
9724if ac_fn_c_try_link "$LINENO"; then :
9725 xlinux_second_failure=no
9726else
9727 xlinux_second_failure=yes
9728fi
9729rm -f core conftest.err conftest.$ac_objext \
9730 conftest$ac_exeext conftest.$ac_ext
9731 if test "${xlinux_second_failure}" = "yes"; then
9732 # If we get the same failure with -b, there is no use adding -b.
9733 # So take it out. This plays safe.
9734 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9735 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9736 CPPFLAGS="$OLD_CPPFLAGS"
9737 LIBS="$OLD_LIBS"
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9739$as_echo "no" >&6; }
9740 else
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9742$as_echo "yes" >&6; }
9743 fi
9744 else
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746$as_echo "no" >&6; }
9747 fi
9748 fi
9749
9750 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9751 # header files included from there.
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9753$as_echo_n "checking for Xkb... " >&6; }
9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755/* end confdefs.h. */
9756#include <X11/Xlib.h>
9757#include <X11/XKBlib.h>
9758int
9759main ()
9760{
9761XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9762 ;
9763 return 0;
9764}
9765_ACEOF
9766if ac_fn_c_try_link "$LINENO"; then :
9767 emacs_xkb=yes
9768else
9769 emacs_xkb=no
9770fi
9771rm -f core conftest.err conftest.$ac_objext \
9772 conftest$ac_exeext conftest.$ac_ext
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9774$as_echo "$emacs_xkb" >&6; }
9775 if test $emacs_xkb = yes; then
9776
9777$as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9778
9779 fi
9780
9781 for ac_func in XrmSetDatabase XScreenResourceString \
9782XScreenNumberOfScreen XSetWMProtocols
9783do :
9784 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9785ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 9786if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
9787 cat >>confdefs.h <<_ACEOF
9788#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9789_ACEOF
9790
9791fi
9792done
9793
9794fi
9795
9796if test "${window_system}" = "x11"; then
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9798$as_echo_n "checking X11 version 6... " >&6; }
d6974efa 9799 if ${emacs_cv_x11_version_6+:} false; then :
067d23c9
KY
9800 $as_echo_n "(cached) " >&6
9801else
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803/* end confdefs.h. */
9804#include <X11/Xlib.h>
9805int
9806main ()
9807{
9808#if XlibSpecificationRelease < 6
9809fail;
9810#endif
9811
9812 ;
9813 return 0;
9814}
9815_ACEOF
9816if ac_fn_c_try_link "$LINENO"; then :
9817 emacs_cv_x11_version_6=yes
9818else
9819 emacs_cv_x11_version_6=no
9820fi
9821rm -f core conftest.err conftest.$ac_objext \
9822 conftest$ac_exeext conftest.$ac_ext
9823fi
9824
9825 if test $emacs_cv_x11_version_6 = yes; then
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9827$as_echo "6 or newer" >&6; }
9828
9829$as_echo "#define HAVE_X11R6 1" >>confdefs.h
9830
9831
9832$as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9833
9834 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9835 ## XIM support.
9836 case "$opsys" in
9837 sol2-*) : ;;
9838 *)
9839$as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9840
9841 ;;
9842 esac
9843 else
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9845$as_echo "before 6" >&6; }
9846 fi
9847fi
9848
9849
9850### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9851HAVE_RSVG=no
9852if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9853 if test "${with_rsvg}" != "no"; then
9854 RSVG_REQUIRED=2.11.0
9855 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9856
9857
9858 succeeded=no
9859
9860 # Extract the first word of "pkg-config", so it can be a program name with args.
9861set dummy pkg-config; ac_word=$2
9862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 9864if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9865 $as_echo_n "(cached) " >&6
9866else
9867 case $PKG_CONFIG in
9868 [\\/]* | ?:[\\/]*)
9869 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9870 ;;
9871 *)
9872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873for as_dir in $PATH
9874do
9875 IFS=$as_save_IFS
9876 test -z "$as_dir" && as_dir=.
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9879 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9881 break 2
9882 fi
9883done
9884 done
9885IFS=$as_save_IFS
9886
9887 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9888 ;;
9889esac
9890fi
9891PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9892if test -n "$PKG_CONFIG"; then
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9894$as_echo "$PKG_CONFIG" >&6; }
9895else
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897$as_echo "no" >&6; }
9898fi
9899
9900
9901
9902 if test "$PKG_CONFIG" = "no" ; then
9903 :
9904 else
9905 PKG_CONFIG_MIN_VERSION=0.9.0
9906 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9908$as_echo_n "checking for $RSVG_MODULE... " >&6; }
9909
9910 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9912$as_echo "yes" >&6; }
9913 succeeded=yes
9914
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9916$as_echo_n "checking RSVG_CFLAGS... " >&6; }
9917 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9919$as_echo "$RSVG_CFLAGS" >&6; }
9920
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9922$as_echo_n "checking RSVG_LIBS... " >&6; }
9923 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9925$as_echo "$RSVG_LIBS" >&6; }
9926 else
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9928$as_echo "no" >&6; }
9929 RSVG_CFLAGS=""
9930 RSVG_LIBS=""
9931 ## If we have a custom action on failure, don't print errors, but
9932 ## do set a variable so people can do so.
9933 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9934
9935 fi
9936
9937
9938
9939 else
9940 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9941 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9942 fi
9943 fi
9944
9945 if test $succeeded = yes; then
9946 HAVE_RSVG=yes
9947 else
9948 :
9949 fi
9950
9951
9952
9953
9954 if test $HAVE_RSVG = yes; then
9955
9956$as_echo "#define HAVE_RSVG 1" >>confdefs.h
9957
9958 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9959 LIBS="$RSVG_LIBS $LIBS"
9960 fi
9961 fi
9962fi
9963
9964HAVE_IMAGEMAGICK=no
9965if test "${HAVE_X11}" = "yes"; then
9966 if test "${with_imagemagick}" != "no"; then
9967 IMAGEMAGICK_MODULE="Wand"
9968
9969 succeeded=no
9970
9971 # Extract the first word of "pkg-config", so it can be a program name with args.
9972set dummy pkg-config; ac_word=$2
9973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9974$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 9975if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
9976 $as_echo_n "(cached) " >&6
9977else
9978 case $PKG_CONFIG in
9979 [\\/]* | ?:[\\/]*)
9980 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9981 ;;
9982 *)
9983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9984for as_dir in $PATH
9985do
9986 IFS=$as_save_IFS
9987 test -z "$as_dir" && as_dir=.
9988 for ac_exec_ext in '' $ac_executable_extensions; do
9989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9990 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9992 break 2
9993 fi
9994done
9995 done
9996IFS=$as_save_IFS
9997
9998 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9999 ;;
10000esac
10001fi
10002PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10003if test -n "$PKG_CONFIG"; then
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10005$as_echo "$PKG_CONFIG" >&6; }
10006else
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008$as_echo "no" >&6; }
10009fi
10010
10011
10012
10013 if test "$PKG_CONFIG" = "no" ; then
10014 :
10015 else
10016 PKG_CONFIG_MIN_VERSION=0.9.0
10017 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
10019$as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
10020
10021 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10023$as_echo "yes" >&6; }
10024 succeeded=yes
10025
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
10027$as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
10028 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
10030$as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
10031
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
10033$as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
10034 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
10036$as_echo "$IMAGEMAGICK_LIBS" >&6; }
10037 else
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039$as_echo "no" >&6; }
10040 IMAGEMAGICK_CFLAGS=""
10041 IMAGEMAGICK_LIBS=""
10042 ## If we have a custom action on failure, don't print errors, but
10043 ## do set a variable so people can do so.
10044 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
10045
10046 fi
10047
10048
10049
10050 else
10051 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10052 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10053 fi
10054 fi
10055
10056 if test $succeeded = yes; then
10057 HAVE_IMAGEMAGICK=yes
10058 else
10059 :
10060 fi
10061
10062
10063
10064
10065 if test $HAVE_IMAGEMAGICK = yes; then
10066
10067$as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
10068
10069 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
10070 LIBS="$IMAGEMAGICK_LIBS $LIBS"
10071 for ac_func in MagickExportImagePixels
10072do :
10073 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
d6974efa 10074if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
067d23c9
KY
10075 cat >>confdefs.h <<_ACEOF
10076#define HAVE_MAGICKEXPORTIMAGEPIXELS 1
10077_ACEOF
10078
10079fi
10080done
10081
10082 fi
10083 fi
10084fi
10085
10086
10087HAVE_GTK=no
10088if test "${with_gtk3}" = "yes"; then
10089 GLIB_REQUIRED=2.6
10090 GTK_REQUIRED=2.90
10091 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10092
10093
10094 succeeded=no
10095
10096 # Extract the first word of "pkg-config", so it can be a program name with args.
10097set dummy pkg-config; ac_word=$2
10098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10099$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 10100if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10101 $as_echo_n "(cached) " >&6
10102else
10103 case $PKG_CONFIG in
10104 [\\/]* | ?:[\\/]*)
10105 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10106 ;;
10107 *)
10108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10109for as_dir in $PATH
10110do
10111 IFS=$as_save_IFS
10112 test -z "$as_dir" && as_dir=.
10113 for ac_exec_ext in '' $ac_executable_extensions; do
10114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10115 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10117 break 2
10118 fi
10119done
10120 done
10121IFS=$as_save_IFS
10122
10123 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10124 ;;
10125esac
10126fi
10127PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10128if test -n "$PKG_CONFIG"; then
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10130$as_echo "$PKG_CONFIG" >&6; }
10131else
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10133$as_echo "no" >&6; }
10134fi
10135
10136
10137
10138 if test "$PKG_CONFIG" = "no" ; then
10139 pkg_check_gtk=no
10140 else
10141 PKG_CONFIG_MIN_VERSION=0.9.0
10142 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10144$as_echo_n "checking for $GTK_MODULES... " >&6; }
10145
10146 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10148$as_echo "yes" >&6; }
10149 succeeded=yes
10150
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10152$as_echo_n "checking GTK_CFLAGS... " >&6; }
10153 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10155$as_echo "$GTK_CFLAGS" >&6; }
10156
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10158$as_echo_n "checking GTK_LIBS... " >&6; }
10159 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10161$as_echo "$GTK_LIBS" >&6; }
10162 else
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164$as_echo "no" >&6; }
10165 GTK_CFLAGS=""
10166 GTK_LIBS=""
10167 ## If we have a custom action on failure, don't print errors, but
10168 ## do set a variable so people can do so.
10169 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10170
10171 fi
10172
10173
10174
10175 else
10176 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10177 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10178 fi
10179 fi
10180
10181 if test $succeeded = yes; then
10182 pkg_check_gtk=yes
10183 else
10184 pkg_check_gtk=no
10185 fi
10186
10187 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
2018939f 10188 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
067d23c9
KY
10189 fi
10190fi
10191
10192if test "$pkg_check_gtk" != "yes"; then
10193 HAVE_GTK=no
10194if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10195 GLIB_REQUIRED=2.6
10196 GTK_REQUIRED=2.6
10197 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10198
10199
10200 succeeded=no
10201
10202 # Extract the first word of "pkg-config", so it can be a program name with args.
10203set dummy pkg-config; ac_word=$2
10204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10205$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 10206if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10207 $as_echo_n "(cached) " >&6
10208else
10209 case $PKG_CONFIG in
10210 [\\/]* | ?:[\\/]*)
10211 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10212 ;;
10213 *)
10214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10215for as_dir in $PATH
10216do
10217 IFS=$as_save_IFS
10218 test -z "$as_dir" && as_dir=.
10219 for ac_exec_ext in '' $ac_executable_extensions; do
10220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10221 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10223 break 2
10224 fi
10225done
10226 done
10227IFS=$as_save_IFS
10228
10229 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10230 ;;
10231esac
10232fi
10233PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10234if test -n "$PKG_CONFIG"; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10236$as_echo "$PKG_CONFIG" >&6; }
10237else
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239$as_echo "no" >&6; }
10240fi
10241
10242
10243
10244 if test "$PKG_CONFIG" = "no" ; then
10245 pkg_check_gtk=no
10246 else
10247 PKG_CONFIG_MIN_VERSION=0.9.0
10248 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10250$as_echo_n "checking for $GTK_MODULES... " >&6; }
10251
10252 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10254$as_echo "yes" >&6; }
10255 succeeded=yes
10256
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10258$as_echo_n "checking GTK_CFLAGS... " >&6; }
10259 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10261$as_echo "$GTK_CFLAGS" >&6; }
10262
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10264$as_echo_n "checking GTK_LIBS... " >&6; }
10265 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10267$as_echo "$GTK_LIBS" >&6; }
10268 else
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270$as_echo "no" >&6; }
10271 GTK_CFLAGS=""
10272 GTK_LIBS=""
10273 ## If we have a custom action on failure, don't print errors, but
10274 ## do set a variable so people can do so.
10275 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10276
10277 fi
10278
10279
10280
10281 else
10282 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10283 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10284 fi
10285 fi
10286
10287 if test $succeeded = yes; then
10288 pkg_check_gtk=yes
10289 else
10290 pkg_check_gtk=no
10291 fi
10292
10293 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
2018939f 10294 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
067d23c9
KY
10295 fi
10296fi
10297fi
10298
10299GTK_OBJ=
10300if test x"$pkg_check_gtk" = xyes; then
10301
10302
10303
10304 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10305 CFLAGS="$CFLAGS $GTK_CFLAGS"
10306 LIBS="$GTK_LIBS $LIBS"
10307 GTK_COMPILES=no
10308 for ac_func in gtk_main
10309do :
10310 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
d6974efa 10311if test "x$ac_cv_func_gtk_main" = xyes; then :
067d23c9
KY
10312 cat >>confdefs.h <<_ACEOF
10313#define HAVE_GTK_MAIN 1
10314_ACEOF
10315 GTK_COMPILES=yes
10316fi
10317done
10318
10319 if test "${GTK_COMPILES}" != "yes"; then
10320 if test "$USE_X_TOOLKIT" != "maybe"; then
d6974efa 10321 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
067d23c9
KY
10322 fi
10323 else
10324 HAVE_GTK=yes
10325
10326$as_echo "#define USE_GTK 1" >>confdefs.h
10327
10328 GTK_OBJ=gtkutil.o
10329 USE_X_TOOLKIT=none
10330 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10331 :
10332 else
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10334 closing open displays. This is no problem if you just use
10335 one display, but if you use more than one and close one of them
10336 Emacs may crash." >&5
10337$as_echo "$as_me: 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." >&2;}
10341 sleep 3
10342 fi
10343 fi
10344
10345fi
10346
10347
10348
10349if test "${HAVE_GTK}" = "yes"; then
10350
10351 if test "$with_toolkit_scroll_bars" != no; then
10352 with_toolkit_scroll_bars=yes
10353 fi
10354
10355 HAVE_GTK_FILE_SELECTION=no
10356 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10357#include <gtk/gtk.h>
10358"
d6974efa 10359if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
067d23c9
KY
10360 HAVE_GTK_FILE_SELECTION=yes
10361else
10362 HAVE_GTK_FILE_SELECTION=no
10363fi
10364
10365 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10366 for ac_func in gtk_file_selection_new
10367do :
10368 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
d6974efa 10369if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
067d23c9
KY
10370 cat >>confdefs.h <<_ACEOF
10371#define HAVE_GTK_FILE_SELECTION_NEW 1
10372_ACEOF
10373
10374fi
10375done
10376
10377 fi
10378
10379 HAVE_GTK_AND_PTHREAD=no
10380 for ac_header in pthread.h
10381do :
10382 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
d6974efa 10383if test "x$ac_cv_header_pthread_h" = xyes; then :
067d23c9
KY
10384 cat >>confdefs.h <<_ACEOF
10385#define HAVE_PTHREAD_H 1
10386_ACEOF
10387
10388fi
10389
10390done
10391
10392 if test "$ac_cv_header_pthread_h"; then
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10394$as_echo_n "checking for pthread_self in -lpthread... " >&6; }
d6974efa 10395if ${ac_cv_lib_pthread_pthread_self+:} false; then :
067d23c9
KY
10396 $as_echo_n "(cached) " >&6
10397else
10398 ac_check_lib_save_LIBS=$LIBS
10399LIBS="-lpthread $LIBS"
10400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401/* end confdefs.h. */
10402
10403/* Override any GCC internal prototype to avoid an error.
10404 Use char because int might match the return type of a GCC
10405 builtin and then its argument prototype would still apply. */
10406#ifdef __cplusplus
10407extern "C"
10408#endif
10409char pthread_self ();
10410int
10411main ()
10412{
10413return pthread_self ();
10414 ;
10415 return 0;
10416}
10417_ACEOF
10418if ac_fn_c_try_link "$LINENO"; then :
10419 ac_cv_lib_pthread_pthread_self=yes
10420else
10421 ac_cv_lib_pthread_pthread_self=no
10422fi
10423rm -f core conftest.err conftest.$ac_objext \
10424 conftest$ac_exeext conftest.$ac_ext
10425LIBS=$ac_check_lib_save_LIBS
10426fi
10427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10428$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
d6974efa 10429if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
067d23c9
KY
10430 HAVE_GTK_AND_PTHREAD=yes
10431fi
10432
10433 fi
10434 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10435 case "${canonical}" in
10436 *-hpux*) ;;
10437 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10438 esac
10439
10440$as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10441
10442 fi
10443
10444 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10445 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10446 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10447 gtk_orientable_set_orientation
10448do :
10449 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10450ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 10451if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
10452 cat >>confdefs.h <<_ACEOF
10453#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10454_ACEOF
10455
10456fi
10457done
10458
10459
10460fi
10461
10462HAVE_DBUS=no
10463DBUS_OBJ=
10464if test "${with_dbus}" = "yes"; then
10465
10466 succeeded=no
10467
10468 # Extract the first word of "pkg-config", so it can be a program name with args.
10469set dummy pkg-config; ac_word=$2
10470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 10472if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10473 $as_echo_n "(cached) " >&6
10474else
10475 case $PKG_CONFIG in
10476 [\\/]* | ?:[\\/]*)
10477 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10478 ;;
10479 *)
10480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481for as_dir in $PATH
10482do
10483 IFS=$as_save_IFS
10484 test -z "$as_dir" && as_dir=.
10485 for ac_exec_ext in '' $ac_executable_extensions; do
10486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10487 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10489 break 2
10490 fi
10491done
10492 done
10493IFS=$as_save_IFS
10494
10495 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10496 ;;
10497esac
10498fi
10499PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10500if test -n "$PKG_CONFIG"; then
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10502$as_echo "$PKG_CONFIG" >&6; }
10503else
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505$as_echo "no" >&6; }
10506fi
10507
10508
10509
10510 if test "$PKG_CONFIG" = "no" ; then
10511 HAVE_DBUS=no
10512 else
10513 PKG_CONFIG_MIN_VERSION=0.9.0
10514 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10516$as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10517
10518 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10520$as_echo "yes" >&6; }
10521 succeeded=yes
10522
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10524$as_echo_n "checking DBUS_CFLAGS... " >&6; }
10525 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10527$as_echo "$DBUS_CFLAGS" >&6; }
10528
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10530$as_echo_n "checking DBUS_LIBS... " >&6; }
10531 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10533$as_echo "$DBUS_LIBS" >&6; }
10534 else
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536$as_echo "no" >&6; }
10537 DBUS_CFLAGS=""
10538 DBUS_LIBS=""
10539 ## If we have a custom action on failure, don't print errors, but
10540 ## do set a variable so people can do so.
10541 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10542
10543 fi
10544
10545
10546
10547 else
10548 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10549 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10550 fi
10551 fi
10552
10553 if test $succeeded = yes; then
10554 HAVE_DBUS=yes
10555 else
10556 HAVE_DBUS=no
10557 fi
10558
10559 if test "$HAVE_DBUS" = yes; then
10560 LIBS="$LIBS $DBUS_LIBS"
10561
10562$as_echo "#define HAVE_DBUS 1" >>confdefs.h
10563
10564 for ac_func in dbus_watch_get_unix_fd
10565do :
10566 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
d6974efa 10567if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
067d23c9
KY
10568 cat >>confdefs.h <<_ACEOF
10569#define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10570_ACEOF
10571
10572fi
10573done
10574
10575 DBUS_OBJ=dbusbind.o
10576 fi
10577fi
10578
10579
10580HAVE_GCONF=no
10581if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10582
10583 succeeded=no
10584
10585 # Extract the first word of "pkg-config", so it can be a program name with args.
10586set dummy pkg-config; ac_word=$2
10587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10588$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 10589if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10590 $as_echo_n "(cached) " >&6
10591else
10592 case $PKG_CONFIG in
10593 [\\/]* | ?:[\\/]*)
10594 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10595 ;;
10596 *)
10597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10598for as_dir in $PATH
10599do
10600 IFS=$as_save_IFS
10601 test -z "$as_dir" && as_dir=.
10602 for ac_exec_ext in '' $ac_executable_extensions; do
10603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10604 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10606 break 2
10607 fi
10608done
10609 done
10610IFS=$as_save_IFS
10611
10612 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10613 ;;
10614esac
10615fi
10616PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10617if test -n "$PKG_CONFIG"; then
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10619$as_echo "$PKG_CONFIG" >&6; }
10620else
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622$as_echo "no" >&6; }
10623fi
10624
10625
10626
10627 if test "$PKG_CONFIG" = "no" ; then
10628 HAVE_GCONF=no
10629 else
10630 PKG_CONFIG_MIN_VERSION=0.9.0
10631 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10633$as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10634
10635 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10637$as_echo "yes" >&6; }
10638 succeeded=yes
10639
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10641$as_echo_n "checking GCONF_CFLAGS... " >&6; }
10642 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10644$as_echo "$GCONF_CFLAGS" >&6; }
10645
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10647$as_echo_n "checking GCONF_LIBS... " >&6; }
10648 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10650$as_echo "$GCONF_LIBS" >&6; }
10651 else
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10653$as_echo "no" >&6; }
10654 GCONF_CFLAGS=""
10655 GCONF_LIBS=""
10656 ## If we have a custom action on failure, don't print errors, but
10657 ## do set a variable so people can do so.
10658 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10659
10660 fi
10661
10662
10663
10664 else
10665 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10666 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10667 fi
10668 fi
10669
10670 if test $succeeded = yes; then
10671 HAVE_GCONF=yes
10672 else
10673 HAVE_GCONF=no
10674 fi
10675
10676 if test "$HAVE_GCONF" = yes; then
10677
10678$as_echo "#define HAVE_GCONF 1" >>confdefs.h
10679
10680 for ac_func in g_type_init
10681do :
10682 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
d6974efa 10683if test "x$ac_cv_func_g_type_init" = xyes; then :
067d23c9
KY
10684 cat >>confdefs.h <<_ACEOF
10685#define HAVE_G_TYPE_INIT 1
10686_ACEOF
10687
10688fi
10689done
10690
10691 fi
10692fi
10693
10694HAVE_LIBSELINUX=no
10695LIBSELINUX_LIBS=
10696if test "${with_selinux}" = "yes"; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10698$as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
d6974efa 10699if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
067d23c9
KY
10700 $as_echo_n "(cached) " >&6
10701else
10702 ac_check_lib_save_LIBS=$LIBS
10703LIBS="-lselinux $LIBS"
10704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705/* end confdefs.h. */
10706
10707/* Override any GCC internal prototype to avoid an error.
10708 Use char because int might match the return type of a GCC
10709 builtin and then its argument prototype would still apply. */
10710#ifdef __cplusplus
10711extern "C"
10712#endif
10713char lgetfilecon ();
10714int
10715main ()
10716{
10717return lgetfilecon ();
10718 ;
10719 return 0;
10720}
10721_ACEOF
10722if ac_fn_c_try_link "$LINENO"; then :
10723 ac_cv_lib_selinux_lgetfilecon=yes
10724else
10725 ac_cv_lib_selinux_lgetfilecon=no
10726fi
10727rm -f core conftest.err conftest.$ac_objext \
10728 conftest$ac_exeext conftest.$ac_ext
10729LIBS=$ac_check_lib_save_LIBS
10730fi
10731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10732$as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
d6974efa 10733if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
067d23c9
KY
10734 HAVE_LIBSELINUX=yes
10735else
10736 HAVE_LIBSELINUX=no
10737fi
10738
10739 if test "$HAVE_LIBSELINUX" = yes; then
10740
10741$as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10742
10743 LIBSELINUX_LIBS=-lselinux
10744 fi
10745fi
10746
10747
10748HAVE_GNUTLS=no
10749if test "${with_gnutls}" = "yes" ; then
10750
10751 succeeded=no
10752
10753 # Extract the first word of "pkg-config", so it can be a program name with args.
10754set dummy pkg-config; ac_word=$2
10755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 10757if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
10758 $as_echo_n "(cached) " >&6
10759else
10760 case $PKG_CONFIG in
10761 [\\/]* | ?:[\\/]*)
10762 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10763 ;;
10764 *)
10765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766for as_dir in $PATH
10767do
10768 IFS=$as_save_IFS
10769 test -z "$as_dir" && as_dir=.
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10772 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10774 break 2
10775 fi
10776done
10777 done
10778IFS=$as_save_IFS
10779
10780 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10781 ;;
10782esac
10783fi
10784PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10785if test -n "$PKG_CONFIG"; then
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10787$as_echo "$PKG_CONFIG" >&6; }
10788else
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790$as_echo "no" >&6; }
10791fi
10792
10793
10794
10795 if test "$PKG_CONFIG" = "no" ; then
10796 HAVE_GNUTLS=no
10797 else
10798 PKG_CONFIG_MIN_VERSION=0.9.0
10799 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10801$as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10802
10803 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10805$as_echo "yes" >&6; }
10806 succeeded=yes
10807
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10809$as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10810 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10812$as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10813
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10815$as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10816 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10818$as_echo "$LIBGNUTLS_LIBS" >&6; }
10819 else
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821$as_echo "no" >&6; }
10822 LIBGNUTLS_CFLAGS=""
10823 LIBGNUTLS_LIBS=""
10824 ## If we have a custom action on failure, don't print errors, but
10825 ## do set a variable so people can do so.
10826 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10827
10828 fi
10829
10830
10831
10832 else
10833 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10834 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10835 fi
10836 fi
10837
10838 if test $succeeded = yes; then
10839 HAVE_GNUTLS=yes
10840 else
10841 HAVE_GNUTLS=no
10842 fi
10843
10844 if test "${HAVE_GNUTLS}" = "yes"; then
10845
10846$as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10847
10848 fi
10849fi
10850
10851
10852
10853HAVE_XAW3D=no
10854LUCID_LIBW=
10855if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10856 if test "$with_xaw3d" != no; then
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10858$as_echo_n "checking for xaw3d... " >&6; }
d6974efa 10859 if ${emacs_cv_xaw3d+:} false; then :
067d23c9
KY
10860 $as_echo_n "(cached) " >&6
10861else
10862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863/* end confdefs.h. */
10864
10865#include <X11/Intrinsic.h>
10866#include <X11/Xaw3d/Simple.h>
10867int
10868main ()
10869{
10870
10871 ;
10872 return 0;
10873}
10874_ACEOF
10875if ac_fn_c_try_link "$LINENO"; then :
14beddf4
CY
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10877$as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
67342916 10878if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false; then :
ae1362a3
AS
10879 $as_echo_n "(cached) " >&6
10880else
10881 ac_check_lib_save_LIBS=$LIBS
14beddf4 10882LIBS="-lXaw3d $LIBS"
ae1362a3
AS
10883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884/* end confdefs.h. */
bf89cb4d 10885
ae1362a3
AS
10886/* Override any GCC internal prototype to avoid an error.
10887 Use char because int might match the return type of a GCC
10888 builtin and then its argument prototype would still apply. */
10889#ifdef __cplusplus
10890extern "C"
10891#endif
14beddf4 10892char XawScrollbarSetThumb ();
ae1362a3
AS
10893int
10894main ()
10895{
14beddf4 10896return XawScrollbarSetThumb ();
ae1362a3
AS
10897 ;
10898 return 0;
10899}
10900_ACEOF
10901if ac_fn_c_try_link "$LINENO"; then :
14beddf4 10902 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
ae1362a3 10903else
14beddf4 10904 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
ae1362a3
AS
10905fi
10906rm -f core conftest.err conftest.$ac_objext \
10907 conftest$ac_exeext conftest.$ac_ext
10908LIBS=$ac_check_lib_save_LIBS
10909fi
14beddf4
CY
10910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10911$as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
67342916 10912if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes; then :
067d23c9
KY
10913 emacs_cv_xaw3d=yes
10914else
10915 emacs_cv_xaw3d=no
10916fi
14beddf4
CY
10917
10918else
10919 emacs_cv_xaw3d=no
10920fi
067d23c9
KY
10921rm -f core conftest.err conftest.$ac_objext \
10922 conftest$ac_exeext conftest.$ac_ext
10923fi
10924
10925 else
10926 emacs_cv_xaw3d=no
10927 fi
10928 if test $emacs_cv_xaw3d = yes; then
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10930$as_echo "yes; using Lucid toolkit" >&6; }
10931 USE_X_TOOLKIT=LUCID
10932 HAVE_XAW3D=yes
10933 LUCID_LIBW=-lXaw3d
10934
10935$as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10936
10937 else
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10939$as_echo "no" >&6; }
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10941$as_echo_n "checking for libXaw... " >&6; }
d6974efa 10942 if ${emacs_cv_xaw+:} false; then :
067d23c9
KY
10943 $as_echo_n "(cached) " >&6
10944else
10945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946/* end confdefs.h. */
10947
10948#include <X11/Intrinsic.h>
10949#include <X11/Xaw/Simple.h>
10950int
10951main ()
10952{
10953
10954 ;
10955 return 0;
10956}
10957_ACEOF
10958if ac_fn_c_try_link "$LINENO"; then :
10959 emacs_cv_xaw=yes
10960else
10961 emacs_cv_xaw=no
10962fi
10963rm -f core conftest.err conftest.$ac_objext \
10964 conftest$ac_exeext conftest.$ac_ext
10965fi
10966
10967 if test $emacs_cv_xaw = yes; then
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10969$as_echo "yes; using Lucid toolkit" >&6; }
10970 USE_X_TOOLKIT=LUCID
10971 LUCID_LIBW=-lXaw
10972 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
2018939f 10973 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
067d23c9
KY
10974 else
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10976$as_echo "no; do not use toolkit by default" >&6; }
10977 USE_X_TOOLKIT=none
10978 fi
10979 fi
10980fi
10981
10982X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10983
10984LIBXTR6=
10985if test "${USE_X_TOOLKIT}" != "none"; then
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10987$as_echo_n "checking X11 toolkit version... " >&6; }
d6974efa 10988 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
067d23c9
KY
10989 $as_echo_n "(cached) " >&6
10990else
10991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10992/* end confdefs.h. */
10993#include <X11/Intrinsic.h>
10994int
10995main ()
10996{
10997#if XtSpecificationRelease < 6
10998fail;
10999#endif
11000
11001 ;
11002 return 0;
11003}
11004_ACEOF
11005if ac_fn_c_try_link "$LINENO"; then :
11006 emacs_cv_x11_toolkit_version_6=yes
11007else
11008 emacs_cv_x11_toolkit_version_6=no
11009fi
11010rm -f core conftest.err conftest.$ac_objext \
11011 conftest$ac_exeext conftest.$ac_ext
11012fi
11013
11014 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11015 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11017$as_echo "6 or newer" >&6; }
11018
11019$as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
11020
11021 LIBXTR6="-lSM -lICE"
11022 case "$opsys" in
11023 ## Use libw.a along with X11R6 Xt.
11024 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
11025 esac
11026 else
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11028$as_echo "before 6" >&6; }
11029 fi
11030
11031 OLDLIBS="$LIBS"
11032 if test x$HAVE_X11XTR6 = xyes; then
11033 LIBS="-lXt -lSM -lICE $LIBS"
11034 else
11035 LIBS="-lXt $LIBS"
11036 fi
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
11038$as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
d6974efa 11039if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
067d23c9
KY
11040 $as_echo_n "(cached) " >&6
11041else
11042 ac_check_lib_save_LIBS=$LIBS
11043LIBS="-lXmu $LIBS"
11044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045/* end confdefs.h. */
11046
11047/* Override any GCC internal prototype to avoid an error.
11048 Use char because int might match the return type of a GCC
11049 builtin and then its argument prototype would still apply. */
11050#ifdef __cplusplus
11051extern "C"
11052#endif
11053char XmuConvertStandardSelection ();
11054int
11055main ()
11056{
11057return XmuConvertStandardSelection ();
11058 ;
11059 return 0;
11060}
11061_ACEOF
11062if ac_fn_c_try_link "$LINENO"; then :
11063 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11064else
11065 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11066fi
11067rm -f core conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext conftest.$ac_ext
11069LIBS=$ac_check_lib_save_LIBS
11070fi
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11072$as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
d6974efa 11073if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
067d23c9
KY
11074 cat >>confdefs.h <<_ACEOF
11075#define HAVE_LIBXMU 1
11076_ACEOF
11077
11078 LIBS="-lXmu $LIBS"
11079
11080fi
11081
11082 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11083fi
11084
11085
11086LIBXMU=-lXmu
d6a003a8
AS
11087case $opsys in
11088 ## These systems don't supply Xmu.
067d23c9
KY
11089 hpux* | aix4-2 )
11090 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
11091 ;;
11092esac
11093
11094
11095# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11096if test "${HAVE_X11}" = "yes"; then
11097 if test "${USE_X_TOOLKIT}" != "none"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
11099$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
d6974efa 11100if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
067d23c9
KY
11101 $as_echo_n "(cached) " >&6
11102else
11103 ac_check_lib_save_LIBS=$LIBS
11104LIBS="-lXext $LIBS"
11105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11106/* end confdefs.h. */
11107
11108/* Override any GCC internal prototype to avoid an error.
11109 Use char because int might match the return type of a GCC
11110 builtin and then its argument prototype would still apply. */
11111#ifdef __cplusplus
11112extern "C"
11113#endif
11114char XShapeQueryExtension ();
11115int
11116main ()
11117{
11118return XShapeQueryExtension ();
11119 ;
11120 return 0;
11121}
11122_ACEOF
11123if ac_fn_c_try_link "$LINENO"; then :
11124 ac_cv_lib_Xext_XShapeQueryExtension=yes
11125else
11126 ac_cv_lib_Xext_XShapeQueryExtension=no
11127fi
11128rm -f core conftest.err conftest.$ac_objext \
11129 conftest$ac_exeext conftest.$ac_ext
11130LIBS=$ac_check_lib_save_LIBS
11131fi
11132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11133$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
d6974efa 11134if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
067d23c9
KY
11135 cat >>confdefs.h <<_ACEOF
11136#define HAVE_LIBXEXT 1
11137_ACEOF
11138
11139 LIBS="-lXext $LIBS"
11140
11141fi
11142
11143 fi
11144fi
11145
11146LIBXP=
11147if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
11149$as_echo_n "checking for Motif version 2.1... " >&6; }
d6974efa 11150if ${emacs_cv_motif_version_2_1+:} false; then :
067d23c9
KY
11151 $as_echo_n "(cached) " >&6
11152else
11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154/* end confdefs.h. */
11155#include <Xm/Xm.h>
11156int
11157main ()
11158{
11159#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11160int x = 5;
11161#else
11162Motif version prior to 2.1.
11163#endif
11164 ;
11165 return 0;
11166}
11167_ACEOF
11168if ac_fn_c_try_compile "$LINENO"; then :
11169 emacs_cv_motif_version_2_1=yes
11170else
11171 emacs_cv_motif_version_2_1=no
11172fi
11173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11174fi
11175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
11176$as_echo "$emacs_cv_motif_version_2_1" >&6; }
11177 if test $emacs_cv_motif_version_2_1 = yes; then
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
11179$as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
d6974efa 11180if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
067d23c9
KY
11181 $as_echo_n "(cached) " >&6
11182else
11183 ac_check_lib_save_LIBS=$LIBS
11184LIBS="-lXp $LIBS"
11185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11186/* end confdefs.h. */
11187
11188/* Override any GCC internal prototype to avoid an error.
11189 Use char because int might match the return type of a GCC
11190 builtin and then its argument prototype would still apply. */
11191#ifdef __cplusplus
11192extern "C"
11193#endif
11194char XpCreateContext ();
11195int
11196main ()
11197{
11198return XpCreateContext ();
11199 ;
11200 return 0;
11201}
11202_ACEOF
11203if ac_fn_c_try_link "$LINENO"; then :
11204 ac_cv_lib_Xp_XpCreateContext=yes
11205else
11206 ac_cv_lib_Xp_XpCreateContext=no
11207fi
11208rm -f core conftest.err conftest.$ac_objext \
11209 conftest$ac_exeext conftest.$ac_ext
11210LIBS=$ac_check_lib_save_LIBS
11211fi
11212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11213$as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
d6974efa 11214if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
067d23c9
KY
11215 LIBXP=-lXp
11216fi
11217
11218 else
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11220$as_echo_n "checking for LessTif where some systems put it... " >&6; }
d6974efa 11221if ${emacs_cv_lesstif+:} false; then :
067d23c9
KY
11222 $as_echo_n "(cached) " >&6
11223else
11224 # We put this in CFLAGS temporarily to precede other -I options
11225 # that might be in CFLAGS temporarily.
11226 # We put this in CPPFLAGS where it precedes the other -I options.
11227 OLD_CPPFLAGS=$CPPFLAGS
11228 OLD_CFLAGS=$CFLAGS
11229 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11230 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232/* end confdefs.h. */
11233#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11234int
11235main ()
11236{
11237int x = 5;
11238 ;
11239 return 0;
11240}
11241_ACEOF
11242if ac_fn_c_try_compile "$LINENO"; then :
11243 emacs_cv_lesstif=yes
11244else
11245 emacs_cv_lesstif=no
11246fi
11247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11248fi
11249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11250$as_echo "$emacs_cv_lesstif" >&6; }
11251 if test $emacs_cv_lesstif = yes; then
11252 # Make sure this -I option remains in CPPFLAGS after it is set
11253 # back to REAL_CPPFLAGS.
11254 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11255 # have those other -I options anyway. Ultimately, having this
11256 # directory ultimately in CPPFLAGS will be enough.
11257 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11258 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11259 else
11260 CFLAGS=$OLD_CFLAGS
11261 CPPFLAGS=$OLD_CPPFLAGS
11262 fi
11263 fi
11264fi
11265
11266
11267USE_TOOLKIT_SCROLL_BARS=no
11268if test "${with_toolkit_scroll_bars}" != "no"; then
11269 if test "${USE_X_TOOLKIT}" != "none"; then
11270 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11271 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11272
11273 HAVE_XAW3D=no
11274 USE_TOOLKIT_SCROLL_BARS=yes
11275 elif test "${HAVE_XAW3D}" = "yes"; then
11276 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11277
11278 USE_TOOLKIT_SCROLL_BARS=yes
11279 fi
11280 elif test "${HAVE_GTK}" = "yes"; then
11281 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11282
11283 USE_TOOLKIT_SCROLL_BARS=yes
11284 elif test "${HAVE_NS}" = "yes"; then
11285 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11286
11287 USE_TOOLKIT_SCROLL_BARS=yes
11288 fi
11289fi
11290
11291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292/* end confdefs.h. */
11293
11294 #include <X11/Xlib.h>
11295 #include <X11/Xresource.h>
11296int
11297main ()
11298{
11299XIMProc callback;
11300 ;
11301 return 0;
11302}
11303_ACEOF
11304if ac_fn_c_try_compile "$LINENO"; then :
11305 HAVE_XIM=yes
11306
11307$as_echo "#define HAVE_XIM 1" >>confdefs.h
11308
11309else
11310 HAVE_XIM=no
11311fi
11312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11313
11314
11315if test "${with_xim}" != "no"; then
11316
11317$as_echo "#define USE_XIM 1" >>confdefs.h
11318
11319fi
11320
11321
11322if test "${HAVE_XIM}" != "no"; then
11323 late_CFLAGS=$CFLAGS
11324 if test "$GCC" = yes; then
11325 CFLAGS="$CFLAGS --pedantic-errors"
11326 fi
11327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328/* end confdefs.h. */
11329
11330#include <X11/Xlib.h>
11331#include <X11/Xresource.h>
11332int
11333main ()
11334{
11335Display *display;
11336XrmDatabase db;
11337char *res_name;
11338char *res_class;
11339XIMProc callback;
11340XPointer *client_data;
11341#ifndef __GNUC__
11342/* If we're not using GCC, it's probably not XFree86, and this is
11343 probably right, but we can't use something like --pedantic-errors. */
11344extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11345 char*, XIMProc, XPointer*);
11346#endif
11347(void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11348 client_data);
11349 ;
11350 return 0;
11351}
11352_ACEOF
11353if ac_fn_c_try_compile "$LINENO"; then :
11354 emacs_cv_arg6_star=yes
11355fi
11356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11357 if test "$emacs_cv_arg6_star" = yes; then
11358 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11359
11360 else
11361 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11362
11363 fi
11364 CFLAGS=$late_CFLAGS
11365fi
11366
11367### Start of font-backend (under any platform) section.
11368# (nothing here yet -- this is a placeholder)
11369### End of font-backend (under any platform) section.
11370
11371### Start of font-backend (under X11) section.
11372if test "${HAVE_X11}" = "yes"; then
11373
11374 succeeded=no
11375
11376 # Extract the first word of "pkg-config", so it can be a program name with args.
11377set dummy pkg-config; ac_word=$2
11378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11379$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11380if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11381 $as_echo_n "(cached) " >&6
11382else
11383 case $PKG_CONFIG in
11384 [\\/]* | ?:[\\/]*)
11385 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11386 ;;
11387 *)
11388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389for as_dir in $PATH
11390do
11391 IFS=$as_save_IFS
11392 test -z "$as_dir" && as_dir=.
11393 for ac_exec_ext in '' $ac_executable_extensions; do
11394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11395 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11397 break 2
11398 fi
11399done
11400 done
11401IFS=$as_save_IFS
11402
11403 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11404 ;;
11405esac
11406fi
11407PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11408if test -n "$PKG_CONFIG"; then
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11410$as_echo "$PKG_CONFIG" >&6; }
11411else
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413$as_echo "no" >&6; }
11414fi
11415
11416
11417
11418 if test "$PKG_CONFIG" = "no" ; then
11419 HAVE_FC=no
11420 else
11421 PKG_CONFIG_MIN_VERSION=0.9.0
11422 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11424$as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11425
11426 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11428$as_echo "yes" >&6; }
11429 succeeded=yes
11430
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11432$as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11433 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11435$as_echo "$FONTCONFIG_CFLAGS" >&6; }
11436
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11438$as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11439 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11441$as_echo "$FONTCONFIG_LIBS" >&6; }
11442 else
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11444$as_echo "no" >&6; }
11445 FONTCONFIG_CFLAGS=""
11446 FONTCONFIG_LIBS=""
11447 ## If we have a custom action on failure, don't print errors, but
11448 ## do set a variable so people can do so.
11449 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11450
11451 fi
11452
11453
11454
11455 else
11456 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11457 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11458 fi
11459 fi
11460
11461 if test $succeeded = yes; then
11462 HAVE_FC=yes
11463 else
11464 HAVE_FC=no
11465 fi
11466
11467
11468 ## Use -lXft if available, unless `--with-xft=no'.
11469 HAVE_XFT=maybe
11470 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11471 with_xft="no";
11472 fi
11473 if test "x${with_xft}" != "xno"; then
11474
11475
11476 succeeded=no
11477
11478 # Extract the first word of "pkg-config", so it can be a program name with args.
11479set dummy pkg-config; ac_word=$2
11480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11481$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11482if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11483 $as_echo_n "(cached) " >&6
11484else
11485 case $PKG_CONFIG in
11486 [\\/]* | ?:[\\/]*)
11487 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11488 ;;
11489 *)
11490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491for as_dir in $PATH
11492do
11493 IFS=$as_save_IFS
11494 test -z "$as_dir" && as_dir=.
11495 for ac_exec_ext in '' $ac_executable_extensions; do
11496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11497 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11499 break 2
11500 fi
11501done
11502 done
11503IFS=$as_save_IFS
11504
11505 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11506 ;;
11507esac
11508fi
11509PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11510if test -n "$PKG_CONFIG"; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11512$as_echo "$PKG_CONFIG" >&6; }
11513else
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515$as_echo "no" >&6; }
11516fi
11517
11518
11519
11520 if test "$PKG_CONFIG" = "no" ; then
11521 HAVE_XFT=no
11522 else
11523 PKG_CONFIG_MIN_VERSION=0.9.0
11524 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11526$as_echo_n "checking for xft >= 0.13.0... " >&6; }
11527
11528 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11530$as_echo "yes" >&6; }
11531 succeeded=yes
11532
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11534$as_echo_n "checking XFT_CFLAGS... " >&6; }
11535 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11537$as_echo "$XFT_CFLAGS" >&6; }
11538
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11540$as_echo_n "checking XFT_LIBS... " >&6; }
11541 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11543$as_echo "$XFT_LIBS" >&6; }
11544 else
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11546$as_echo "no" >&6; }
11547 XFT_CFLAGS=""
11548 XFT_LIBS=""
11549 ## If we have a custom action on failure, don't print errors, but
11550 ## do set a variable so people can do so.
11551 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11552
11553 fi
11554
11555
11556
11557 else
11558 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11559 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11560 fi
11561 fi
11562
11563 if test $succeeded = yes; then
11564 :
11565 else
11566 HAVE_XFT=no
11567 fi
11568
11569 ## Because xftfont.c uses XRenderQueryExtension, we also
11570 ## need to link to -lXrender.
11571 HAVE_XRENDER=no
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11573$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
d6974efa 11574if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
067d23c9
KY
11575 $as_echo_n "(cached) " >&6
11576else
11577 ac_check_lib_save_LIBS=$LIBS
11578LIBS="-lXrender $LIBS"
11579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580/* end confdefs.h. */
11581
11582/* Override any GCC internal prototype to avoid an error.
11583 Use char because int might match the return type of a GCC
11584 builtin and then its argument prototype would still apply. */
11585#ifdef __cplusplus
11586extern "C"
11587#endif
11588char XRenderQueryExtension ();
11589int
11590main ()
11591{
11592return XRenderQueryExtension ();
11593 ;
11594 return 0;
11595}
11596_ACEOF
11597if ac_fn_c_try_link "$LINENO"; then :
11598 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11599else
11600 ac_cv_lib_Xrender_XRenderQueryExtension=no
11601fi
11602rm -f core conftest.err conftest.$ac_objext \
11603 conftest$ac_exeext conftest.$ac_ext
11604LIBS=$ac_check_lib_save_LIBS
11605fi
11606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11607$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
d6974efa 11608if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
067d23c9
KY
11609 HAVE_XRENDER=yes
11610fi
11611
11612 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11613 OLD_CPPFLAGS="$CPPFLAGS"
11614 OLD_CFLAGS="$CFLAGS"
11615 OLD_LIBS="$LIBS"
11616 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11617 CFLAGS="$CFLAGS $XFT_CFLAGS"
11618 XFT_LIBS="-lXrender $XFT_LIBS"
11619 LIBS="$XFT_LIBS $LIBS"
11620 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
d6974efa 11621if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
067d23c9
KY
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11623$as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
d6974efa 11624if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
067d23c9
KY
11625 $as_echo_n "(cached) " >&6
11626else
11627 ac_check_lib_save_LIBS=$LIBS
11628LIBS="-lXft $XFT_LIBS $LIBS"
11629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630/* end confdefs.h. */
11631
11632/* Override any GCC internal prototype to avoid an error.
11633 Use char because int might match the return type of a GCC
11634 builtin and then its argument prototype would still apply. */
11635#ifdef __cplusplus
11636extern "C"
11637#endif
11638char XftFontOpen ();
11639int
11640main ()
11641{
11642return XftFontOpen ();
11643 ;
11644 return 0;
11645}
11646_ACEOF
11647if ac_fn_c_try_link "$LINENO"; then :
11648 ac_cv_lib_Xft_XftFontOpen=yes
11649else
11650 ac_cv_lib_Xft_XftFontOpen=no
11651fi
11652rm -f core conftest.err conftest.$ac_objext \
11653 conftest$ac_exeext conftest.$ac_ext
11654LIBS=$ac_check_lib_save_LIBS
11655fi
11656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11657$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
d6974efa 11658if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
067d23c9
KY
11659 HAVE_XFT=yes
11660fi
11661
11662fi
11663
11664
11665
11666 if test "${HAVE_XFT}" = "yes"; then
11667
11668$as_echo "#define HAVE_XFT 1" >>confdefs.h
11669
11670
11671 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11672 else
11673 CPPFLAGS="$OLD_CPPFLAGS"
11674 CFLAGS="$OLD_CFLAGS"
11675 LIBS="$OLD_LIBS"
11676 fi # "${HAVE_XFT}" = "yes"
11677 fi # "$HAVE_XFT" != no
11678 fi # "x${with_xft}" != "xno"
11679
11680 if test "$HAVE_XFT" != "yes"; then
11681 HAVE_XFT=no
11682 fi
11683
067d23c9
KY
11684 ## We used to allow building with FreeType and without Xft.
11685 ## However, the ftx font backend driver is not in good shape.
9ba41eb9 11686 HAVE_FREETYPE=$HAVE_XFT
067d23c9
KY
11687
11688 HAVE_LIBOTF=no
11689 if test "${HAVE_FREETYPE}" = "yes"; then
11690
11691$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11692
11693 if test "${with_libotf}" != "no"; then
11694
11695 succeeded=no
11696
11697 # Extract the first word of "pkg-config", so it can be a program name with args.
11698set dummy pkg-config; ac_word=$2
11699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11700$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11701if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11702 $as_echo_n "(cached) " >&6
11703else
11704 case $PKG_CONFIG in
11705 [\\/]* | ?:[\\/]*)
11706 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11707 ;;
11708 *)
11709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710for as_dir in $PATH
11711do
11712 IFS=$as_save_IFS
11713 test -z "$as_dir" && as_dir=.
11714 for ac_exec_ext in '' $ac_executable_extensions; do
11715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11716 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11718 break 2
11719 fi
11720done
11721 done
11722IFS=$as_save_IFS
11723
11724 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11725 ;;
11726esac
11727fi
11728PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11729if test -n "$PKG_CONFIG"; then
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11731$as_echo "$PKG_CONFIG" >&6; }
11732else
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734$as_echo "no" >&6; }
11735fi
11736
11737
11738
11739 if test "$PKG_CONFIG" = "no" ; then
11740 HAVE_LIBOTF=no
11741 else
11742 PKG_CONFIG_MIN_VERSION=0.9.0
11743 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11745$as_echo_n "checking for libotf... " >&6; }
11746
11747 if $PKG_CONFIG --exists "libotf" 2>&5; then
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11749$as_echo "yes" >&6; }
11750 succeeded=yes
11751
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11753$as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11754 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11756$as_echo "$LIBOTF_CFLAGS" >&6; }
11757
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11759$as_echo_n "checking LIBOTF_LIBS... " >&6; }
11760 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11762$as_echo "$LIBOTF_LIBS" >&6; }
11763 else
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765$as_echo "no" >&6; }
11766 LIBOTF_CFLAGS=""
11767 LIBOTF_LIBS=""
11768 ## If we have a custom action on failure, don't print errors, but
11769 ## do set a variable so people can do so.
11770 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11771
11772 fi
11773
11774
11775
11776 else
11777 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11778 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11779 fi
11780 fi
11781
11782 if test $succeeded = yes; then
11783 HAVE_LIBOTF=yes
11784 else
11785 HAVE_LIBOTF=no
11786 fi
11787
11788 if test "$HAVE_LIBOTF" = "yes"; then
11789
11790$as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11791
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11793$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
d6974efa 11794if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
067d23c9
KY
11795 $as_echo_n "(cached) " >&6
11796else
11797 ac_check_lib_save_LIBS=$LIBS
11798LIBS="-lotf $LIBS"
11799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800/* end confdefs.h. */
11801
11802/* Override any GCC internal prototype to avoid an error.
11803 Use char because int might match the return type of a GCC
11804 builtin and then its argument prototype would still apply. */
11805#ifdef __cplusplus
11806extern "C"
11807#endif
11808char OTF_get_variation_glyphs ();
11809int
11810main ()
11811{
11812return OTF_get_variation_glyphs ();
11813 ;
11814 return 0;
11815}
11816_ACEOF
11817if ac_fn_c_try_link "$LINENO"; then :
11818 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11819else
11820 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11821fi
11822rm -f core conftest.err conftest.$ac_objext \
11823 conftest$ac_exeext conftest.$ac_ext
11824LIBS=$ac_check_lib_save_LIBS
11825fi
11826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11827$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
d6974efa 11828if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
067d23c9
KY
11829 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11830else
11831 HAVE_OTF_GET_VARIATION_GLYPHS=no
11832fi
11833
11834 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11835
11836$as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11837
11838 fi
11839 fi
11840 fi
11841 fi
11842
11843 HAVE_M17N_FLT=no
11844 if test "${HAVE_LIBOTF}" = yes; then
11845 if test "${with_m17n_flt}" != "no"; then
11846
11847 succeeded=no
11848
11849 # Extract the first word of "pkg-config", so it can be a program name with args.
11850set dummy pkg-config; ac_word=$2
11851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11852$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 11853if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
11854 $as_echo_n "(cached) " >&6
11855else
11856 case $PKG_CONFIG in
11857 [\\/]* | ?:[\\/]*)
11858 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11859 ;;
11860 *)
11861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862for as_dir in $PATH
11863do
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
11866 for ac_exec_ext in '' $ac_executable_extensions; do
11867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11868 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11870 break 2
11871 fi
11872done
11873 done
11874IFS=$as_save_IFS
11875
11876 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11877 ;;
11878esac
11879fi
11880PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11881if test -n "$PKG_CONFIG"; then
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11883$as_echo "$PKG_CONFIG" >&6; }
11884else
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11886$as_echo "no" >&6; }
11887fi
11888
11889
11890
11891 if test "$PKG_CONFIG" = "no" ; then
11892 HAVE_M17N_FLT=no
11893 else
11894 PKG_CONFIG_MIN_VERSION=0.9.0
11895 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11897$as_echo_n "checking for m17n-flt... " >&6; }
11898
11899 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11901$as_echo "yes" >&6; }
11902 succeeded=yes
11903
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11905$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11906 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11908$as_echo "$M17N_FLT_CFLAGS" >&6; }
11909
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11911$as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11912 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11914$as_echo "$M17N_FLT_LIBS" >&6; }
11915 else
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917$as_echo "no" >&6; }
11918 M17N_FLT_CFLAGS=""
11919 M17N_FLT_LIBS=""
11920 ## If we have a custom action on failure, don't print errors, but
11921 ## do set a variable so people can do so.
11922 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11923
11924 fi
11925
11926
11927
11928 else
11929 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11930 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11931 fi
11932 fi
11933
11934 if test $succeeded = yes; then
11935 HAVE_M17N_FLT=yes
11936 else
11937 HAVE_M17N_FLT=no
11938 fi
11939
11940 if test "$HAVE_M17N_FLT" = "yes"; then
11941
11942$as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11943
11944 fi
11945 fi
11946 fi
11947else
11948 HAVE_XFT=no
11949 HAVE_FREETYPE=no
11950 HAVE_LIBOTF=no
11951 HAVE_M17N_FLT=no
11952fi
11953
11954### End of font-backend (under X11) section.
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965### Use -lXpm if available, unless `--with-xpm=no'.
11966HAVE_XPM=no
11967LIBXPM=
11968if test "${HAVE_X11}" = "yes"; then
11969 if test "${with_xpm}" != "no"; then
11970 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
d6974efa 11971if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
067d23c9
KY
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11973$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
d6974efa 11974if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
067d23c9
KY
11975 $as_echo_n "(cached) " >&6
11976else
11977 ac_check_lib_save_LIBS=$LIBS
11978LIBS="-lXpm -lX11 $LIBS"
11979cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980/* end confdefs.h. */
11981
11982/* Override any GCC internal prototype to avoid an error.
11983 Use char because int might match the return type of a GCC
11984 builtin and then its argument prototype would still apply. */
11985#ifdef __cplusplus
11986extern "C"
11987#endif
11988char XpmReadFileToPixmap ();
11989int
11990main ()
11991{
11992return XpmReadFileToPixmap ();
11993 ;
11994 return 0;
11995}
11996_ACEOF
11997if ac_fn_c_try_link "$LINENO"; then :
11998 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11999else
12000 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12001fi
12002rm -f core conftest.err conftest.$ac_objext \
12003 conftest$ac_exeext conftest.$ac_ext
12004LIBS=$ac_check_lib_save_LIBS
12005fi
12006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12007$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
d6974efa 12008if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
067d23c9
KY
12009 HAVE_XPM=yes
12010fi
12011
12012fi
12013
12014
12015 if test "${HAVE_XPM}" = "yes"; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
12017$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019/* end confdefs.h. */
12020#include "X11/xpm.h"
12021#ifndef XpmReturnAllocPixels
12022no_return_alloc_pixels
12023#endif
12024
12025_ACEOF
12026if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12027 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
12028 HAVE_XPM=no
12029else
12030 HAVE_XPM=yes
12031fi
12032rm -f conftest*
12033
12034
12035 if test "${HAVE_XPM}" = "yes"; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12037$as_echo "yes" >&6; }
12038 else
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040$as_echo "no" >&6; }
12041 fi
12042 fi
12043 fi
12044
12045 if test "${HAVE_XPM}" = "yes"; then
12046
12047$as_echo "#define HAVE_XPM 1" >>confdefs.h
12048
12049 LIBXPM=-lXpm
12050 fi
12051fi
12052
12053
12054### Use -ljpeg if available, unless `--with-jpeg=no'.
12055HAVE_JPEG=no
12056LIBJPEG=
12057if test "${HAVE_X11}" = "yes"; then
12058 if test "${with_jpeg}" != "no"; then
12059 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
d6974efa 12060if test "x$ac_cv_header_jerror_h" = xyes; then :
067d23c9
KY
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
12062$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
d6974efa 12063if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
067d23c9
KY
12064 $as_echo_n "(cached) " >&6
12065else
12066 ac_check_lib_save_LIBS=$LIBS
12067LIBS="-ljpeg $LIBS"
12068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069/* end confdefs.h. */
12070
12071/* Override any GCC internal prototype to avoid an error.
12072 Use char because int might match the return type of a GCC
12073 builtin and then its argument prototype would still apply. */
12074#ifdef __cplusplus
12075extern "C"
12076#endif
12077char jpeg_destroy_compress ();
12078int
12079main ()
12080{
12081return jpeg_destroy_compress ();
12082 ;
12083 return 0;
12084}
12085_ACEOF
12086if ac_fn_c_try_link "$LINENO"; then :
12087 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12088else
12089 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12090fi
12091rm -f core conftest.err conftest.$ac_objext \
12092 conftest$ac_exeext conftest.$ac_ext
12093LIBS=$ac_check_lib_save_LIBS
12094fi
12095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12096$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
d6974efa 12097if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
067d23c9
KY
12098 HAVE_JPEG=yes
12099fi
12100
12101fi
12102
12103
12104 fi
12105
12106 if test "${HAVE_JPEG}" = "yes"; then
12107 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12108
12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110/* end confdefs.h. */
12111#include <jpeglib.h>
12112 version=JPEG_LIB_VERSION
12113
12114_ACEOF
12115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12116 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
12117 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
12118
12119else
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
12121$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12122 HAVE_JPEG=no
12123fi
12124rm -f conftest*
12125
12126 fi
12127 if test "${HAVE_JPEG}" = "yes"; then
12128 LIBJPEG=-ljpeg
12129 fi
12130fi
12131
12132
12133### Use -lpng if available, unless `--with-png=no'.
12134HAVE_PNG=no
12135LIBPNG=
12136if test "${HAVE_X11}" = "yes"; then
12137 if test "${with_png}" != "no"; then
12138 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12139 # in /usr/include/libpng.
12140 for ac_header in png.h libpng/png.h
12141do :
12142 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12143ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
2018939f 12144if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
067d23c9
KY
12145 cat >>confdefs.h <<_ACEOF
12146#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12147_ACEOF
12148
12149fi
12150
12151done
12152
12153 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
12155$as_echo_n "checking for png_get_channels in -lpng... " >&6; }
d6974efa 12156if ${ac_cv_lib_png_png_get_channels+:} false; then :
067d23c9
KY
12157 $as_echo_n "(cached) " >&6
12158else
12159 ac_check_lib_save_LIBS=$LIBS
12160LIBS="-lpng -lz -lm $LIBS"
12161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162/* end confdefs.h. */
12163
12164/* Override any GCC internal prototype to avoid an error.
12165 Use char because int might match the return type of a GCC
12166 builtin and then its argument prototype would still apply. */
12167#ifdef __cplusplus
12168extern "C"
12169#endif
12170char png_get_channels ();
12171int
12172main ()
12173{
12174return png_get_channels ();
12175 ;
12176 return 0;
12177}
12178_ACEOF
12179if ac_fn_c_try_link "$LINENO"; then :
12180 ac_cv_lib_png_png_get_channels=yes
12181else
12182 ac_cv_lib_png_png_get_channels=no
12183fi
12184rm -f core conftest.err conftest.$ac_objext \
12185 conftest$ac_exeext conftest.$ac_ext
12186LIBS=$ac_check_lib_save_LIBS
12187fi
12188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
12189$as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
d6974efa 12190if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
067d23c9
KY
12191 HAVE_PNG=yes
12192fi
12193
12194 fi
12195 fi
12196
12197 if test "${HAVE_PNG}" = "yes"; then
12198
12199$as_echo "#define HAVE_PNG 1" >>confdefs.h
12200
12201 LIBPNG="-lpng -lz -lm"
12202 fi
12203fi
12204
12205
12206### Use -ltiff if available, unless `--with-tiff=no'.
12207HAVE_TIFF=no
12208LIBTIFF=
12209if test "${HAVE_X11}" = "yes"; then
12210 if test "${with_tiff}" != "no"; then
12211 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
d6974efa 12212if test "x$ac_cv_header_tiffio_h" = xyes; then :
067d23c9
KY
12213 tifflibs="-lz -lm"
12214 # At least one tiff package requires the jpeg library.
12215 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12217$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
d6974efa 12218if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
067d23c9
KY
12219 $as_echo_n "(cached) " >&6
12220else
12221 ac_check_lib_save_LIBS=$LIBS
12222LIBS="-ltiff $tifflibs $LIBS"
12223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224/* end confdefs.h. */
12225
12226/* Override any GCC internal prototype to avoid an error.
12227 Use char because int might match the return type of a GCC
12228 builtin and then its argument prototype would still apply. */
12229#ifdef __cplusplus
12230extern "C"
12231#endif
12232char TIFFGetVersion ();
12233int
12234main ()
12235{
12236return TIFFGetVersion ();
12237 ;
12238 return 0;
12239}
12240_ACEOF
12241if ac_fn_c_try_link "$LINENO"; then :
12242 ac_cv_lib_tiff_TIFFGetVersion=yes
12243else
12244 ac_cv_lib_tiff_TIFFGetVersion=no
12245fi
12246rm -f core conftest.err conftest.$ac_objext \
12247 conftest$ac_exeext conftest.$ac_ext
12248LIBS=$ac_check_lib_save_LIBS
12249fi
12250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12251$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
d6974efa 12252if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
067d23c9
KY
12253 HAVE_TIFF=yes
12254fi
12255
12256fi
12257
12258
12259 fi
12260
12261 if test "${HAVE_TIFF}" = "yes"; then
12262
12263$as_echo "#define HAVE_TIFF 1" >>confdefs.h
12264
12265 LIBTIFF=-ltiff
12266 fi
12267fi
12268
12269
12270### Use -lgif or -lungif if available, unless `--with-gif=no'.
12271HAVE_GIF=no
12272LIBGIF=
12273if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12274 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
d6974efa 12275if test "x$ac_cv_header_gif_lib_h" = xyes; then :
067d23c9
KY
12276 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12277# Earlier versions can crash Emacs.
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12279$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
d6974efa 12280if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
067d23c9
KY
12281 $as_echo_n "(cached) " >&6
12282else
12283 ac_check_lib_save_LIBS=$LIBS
12284LIBS="-lgif $LIBS"
12285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12286/* end confdefs.h. */
12287
12288/* Override any GCC internal prototype to avoid an error.
12289 Use char because int might match the return type of a GCC
12290 builtin and then its argument prototype would still apply. */
12291#ifdef __cplusplus
12292extern "C"
12293#endif
12294char EGifPutExtensionLast ();
12295int
12296main ()
12297{
12298return EGifPutExtensionLast ();
12299 ;
12300 return 0;
12301}
12302_ACEOF
12303if ac_fn_c_try_link "$LINENO"; then :
12304 ac_cv_lib_gif_EGifPutExtensionLast=yes
12305else
12306 ac_cv_lib_gif_EGifPutExtensionLast=no
12307fi
12308rm -f core conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
12310LIBS=$ac_check_lib_save_LIBS
12311fi
12312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12313$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
d6974efa 12314if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
067d23c9
KY
12315 HAVE_GIF=yes
12316else
12317 HAVE_GIF=maybe
12318fi
12319
12320fi
12321
12322
12323
12324 if test "$HAVE_GIF" = yes; then
12325 LIBGIF=-lgif
12326 elif test "$HAVE_GIF" = maybe; then
12327# If gif_lib.h but no libgif, try libungif.
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12329$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
d6974efa 12330if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
067d23c9
KY
12331 $as_echo_n "(cached) " >&6
12332else
12333 ac_check_lib_save_LIBS=$LIBS
12334LIBS="-lungif $LIBS"
12335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336/* end confdefs.h. */
12337
12338/* Override any GCC internal prototype to avoid an error.
12339 Use char because int might match the return type of a GCC
12340 builtin and then its argument prototype would still apply. */
12341#ifdef __cplusplus
12342extern "C"
12343#endif
12344char EGifPutExtensionLast ();
12345int
12346main ()
12347{
12348return EGifPutExtensionLast ();
12349 ;
12350 return 0;
12351}
12352_ACEOF
12353if ac_fn_c_try_link "$LINENO"; then :
12354 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12355else
12356 ac_cv_lib_ungif_EGifPutExtensionLast=no
12357fi
12358rm -f core conftest.err conftest.$ac_objext \
12359 conftest$ac_exeext conftest.$ac_ext
12360LIBS=$ac_check_lib_save_LIBS
12361fi
12362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12363$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
d6974efa 12364if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
067d23c9
KY
12365 HAVE_GIF=yes
12366else
12367 HAVE_GIF=no
12368fi
12369
12370 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12371 fi
12372
12373 if test "${HAVE_GIF}" = "yes"; then
12374
12375$as_echo "#define HAVE_GIF 1" >>confdefs.h
12376
12377 fi
12378fi
12379
12380
12381if test "${HAVE_X11}" = "yes"; then
12382 MISSING=""
12383 WITH_NO=""
12384 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12385 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12386 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12387 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12388 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12389 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12390 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12391 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12392 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12393 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12394
12395 if test "X${MISSING}" != X; then
2018939f 12396 as_fn_error $? "The following required libraries were not found:
067d23c9
KY
12397 $MISSING
12398Maybe some development libraries/packages are missing?
12399If you don't want to link with them give
12400 $WITH_NO
12401as options to configure" "$LINENO" 5
12402 fi
12403fi
12404
12405### Use -lgpm if available, unless `--with-gpm=no'.
12406HAVE_GPM=no
12407LIBGPM=
12408MOUSE_SUPPORT=
12409if test "${with_gpm}" != "no"; then
12410 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
d6974efa 12411if test "x$ac_cv_header_gpm_h" = xyes; then :
067d23c9
KY
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12413$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
d6974efa 12414if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
067d23c9
KY
12415 $as_echo_n "(cached) " >&6
12416else
12417 ac_check_lib_save_LIBS=$LIBS
12418LIBS="-lgpm $LIBS"
12419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420/* end confdefs.h. */
12421
12422/* Override any GCC internal prototype to avoid an error.
12423 Use char because int might match the return type of a GCC
12424 builtin and then its argument prototype would still apply. */
12425#ifdef __cplusplus
12426extern "C"
12427#endif
12428char Gpm_Open ();
12429int
12430main ()
12431{
12432return Gpm_Open ();
12433 ;
12434 return 0;
12435}
12436_ACEOF
12437if ac_fn_c_try_link "$LINENO"; then :
12438 ac_cv_lib_gpm_Gpm_Open=yes
12439else
12440 ac_cv_lib_gpm_Gpm_Open=no
12441fi
12442rm -f core conftest.err conftest.$ac_objext \
12443 conftest$ac_exeext conftest.$ac_ext
12444LIBS=$ac_check_lib_save_LIBS
12445fi
12446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12447$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
d6974efa 12448if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
067d23c9
KY
12449 HAVE_GPM=yes
12450fi
12451
12452fi
12453
12454
12455
12456 if test "${HAVE_GPM}" = "yes"; then
12457
12458$as_echo "#define HAVE_GPM 1" >>confdefs.h
12459
12460 LIBGPM=-lgpm
12461 ## May be reset below.
12462 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12463 fi
12464fi
12465
12466
12467ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
d6974efa 12468if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
067d23c9
KY
12469
12470$as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12471
12472fi
12473
12474
12475
12476C_SWITCH_X_SYSTEM=
12477### Use NeXTstep API to implement GUI.
12478if test "${HAVE_NS}" = "yes"; then
12479
12480$as_echo "#define HAVE_NS 1" >>confdefs.h
12481
12482 if test "${NS_IMPL_COCOA}" = "yes"; then
12483
12484$as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12485
12486 GNU_OBJC_CFLAGS=
12487 fi
12488 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12489
12490$as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12491
12492 # See also .m.o rule in Makefile.in */
12493 # FIXME: are all these flags really needed? Document here why. */
12494 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12495 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12496 fi
12497 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12498
12499$as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12500
12501 fi
12502 # We also have mouse menus.
12503 HAVE_MENUS=yes
12504 OTHER_FILES=ns-app
12505fi
12506
12507
12508### Use session management (-lSM -lICE) if available
12509HAVE_X_SM=no
12510LIBXSM=
12511if test "${HAVE_X11}" = "yes"; then
12512 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
d6974efa 12513if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
067d23c9
KY
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12515$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
d6974efa 12516if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
067d23c9
KY
12517 $as_echo_n "(cached) " >&6
12518else
12519 ac_check_lib_save_LIBS=$LIBS
12520LIBS="-lSM -lICE $LIBS"
12521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522/* end confdefs.h. */
12523
12524/* Override any GCC internal prototype to avoid an error.
12525 Use char because int might match the return type of a GCC
12526 builtin and then its argument prototype would still apply. */
12527#ifdef __cplusplus
12528extern "C"
12529#endif
12530char SmcOpenConnection ();
12531int
12532main ()
12533{
12534return SmcOpenConnection ();
12535 ;
12536 return 0;
12537}
12538_ACEOF
12539if ac_fn_c_try_link "$LINENO"; then :
12540 ac_cv_lib_SM_SmcOpenConnection=yes
12541else
12542 ac_cv_lib_SM_SmcOpenConnection=no
12543fi
12544rm -f core conftest.err conftest.$ac_objext \
12545 conftest$ac_exeext conftest.$ac_ext
12546LIBS=$ac_check_lib_save_LIBS
12547fi
12548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12549$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
d6974efa 12550if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
067d23c9
KY
12551 HAVE_X_SM=yes
12552fi
12553
12554fi
12555
12556
12557
12558 if test "${HAVE_X_SM}" = "yes"; then
12559
12560$as_echo "#define HAVE_X_SM 1" >>confdefs.h
12561
12562 LIBXSM="-lSM -lICE"
12563 case "$LIBS" in
12564 *-lSM*) ;;
12565 *) LIBS="$LIBXSM $LIBS" ;;
12566 esac
12567 fi
12568fi
12569
12570
12571### Use libxml (-lxml2) if available
12572if test "${with_xml2}" != "no"; then
12573 ### I'm not sure what the version number should be, so I just guessed.
12574
12575 succeeded=no
12576
12577 # Extract the first word of "pkg-config", so it can be a program name with args.
12578set dummy pkg-config; ac_word=$2
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 12581if ${ac_cv_path_PKG_CONFIG+:} false; then :
067d23c9
KY
12582 $as_echo_n "(cached) " >&6
12583else
12584 case $PKG_CONFIG in
12585 [\\/]* | ?:[\\/]*)
12586 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12587 ;;
12588 *)
12589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590for as_dir in $PATH
12591do
12592 IFS=$as_save_IFS
12593 test -z "$as_dir" && as_dir=.
12594 for ac_exec_ext in '' $ac_executable_extensions; do
12595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12596 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12598 break 2
12599 fi
12600done
12601 done
12602IFS=$as_save_IFS
12603
12604 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12605 ;;
12606esac
12607fi
12608PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12609if test -n "$PKG_CONFIG"; then
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12611$as_echo "$PKG_CONFIG" >&6; }
12612else
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614$as_echo "no" >&6; }
12615fi
12616
12617
12618
12619 if test "$PKG_CONFIG" = "no" ; then
12620 HAVE_LIBXML2=no
12621 else
12622 PKG_CONFIG_MIN_VERSION=0.9.0
12623 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
dab73760
CY
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12625$as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
067d23c9 12626
dab73760 12627 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
067d23c9
KY
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12629$as_echo "yes" >&6; }
12630 succeeded=yes
12631
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12633$as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
dab73760 12634 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
067d23c9
KY
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12636$as_echo "$LIBXML2_CFLAGS" >&6; }
12637
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12639$as_echo_n "checking LIBXML2_LIBS... " >&6; }
dab73760 12640 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
067d23c9
KY
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12642$as_echo "$LIBXML2_LIBS" >&6; }
12643 else
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12645$as_echo "no" >&6; }
12646 LIBXML2_CFLAGS=""
12647 LIBXML2_LIBS=""
12648 ## If we have a custom action on failure, don't print errors, but
12649 ## do set a variable so people can do so.
dab73760 12650 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
067d23c9
KY
12651
12652 fi
12653
12654
12655
12656 else
12657 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12658 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12659 fi
12660 fi
12661
12662 if test $succeeded = yes; then
12663 HAVE_LIBXML2=yes
12664 else
12665 HAVE_LIBXML2=no
12666 fi
12667
12668 if test "${HAVE_LIBXML2}" = "yes"; then
12669 LIBS="$LIBXML2_LIBS $LIBS"
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12671$as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
d6974efa 12672if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
067d23c9
KY
12673 $as_echo_n "(cached) " >&6
12674else
12675 ac_check_lib_save_LIBS=$LIBS
12676LIBS="-lxml2 $LIBS"
12677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678/* end confdefs.h. */
12679
12680/* Override any GCC internal prototype to avoid an error.
12681 Use char because int might match the return type of a GCC
12682 builtin and then its argument prototype would still apply. */
12683#ifdef __cplusplus
12684extern "C"
12685#endif
12686char htmlReadMemory ();
12687int
12688main ()
12689{
12690return htmlReadMemory ();
12691 ;
12692 return 0;
12693}
12694_ACEOF
12695if ac_fn_c_try_link "$LINENO"; then :
12696 ac_cv_lib_xml2_htmlReadMemory=yes
12697else
12698 ac_cv_lib_xml2_htmlReadMemory=no
12699fi
12700rm -f core conftest.err conftest.$ac_objext \
12701 conftest$ac_exeext conftest.$ac_ext
12702LIBS=$ac_check_lib_save_LIBS
12703fi
12704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12705$as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
d6974efa 12706if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
067d23c9
KY
12707 HAVE_LIBXML2=yes
12708else
12709 HAVE_LIBXML2=no
12710fi
12711
12712 if test "${HAVE_LIBXML2}" = "yes"; then
12713
12714$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12715
12716 else
12717 LIBXML2_LIBS=""
12718 LIBXML2_CFLAGS=""
12719 fi
12720 fi
12721fi
12722
12723
12724
12725# If netdb.h doesn't declare h_errno, we must declare it by hand.
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12727$as_echo_n "checking whether netdb declares h_errno... " >&6; }
d6974efa 12728if ${emacs_cv_netdb_declares_h_errno+:} false; then :
067d23c9
KY
12729 $as_echo_n "(cached) " >&6
12730else
12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732/* end confdefs.h. */
12733#include <netdb.h>
12734int
12735main ()
12736{
12737return h_errno;
12738 ;
12739 return 0;
12740}
12741_ACEOF
12742if ac_fn_c_try_link "$LINENO"; then :
12743 emacs_cv_netdb_declares_h_errno=yes
12744else
12745 emacs_cv_netdb_declares_h_errno=no
12746fi
12747rm -f core conftest.err conftest.$ac_objext \
12748 conftest$ac_exeext conftest.$ac_ext
12749fi
12750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12751$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12752if test $emacs_cv_netdb_declares_h_errno = yes; then
12753
12754$as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12755
12756fi
12757
d6974efa
PE
12758ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12759if test "x$ac_cv_type_size_t" = xyes; then :
12760
12761else
12762
12763cat >>confdefs.h <<_ACEOF
12764#define size_t unsigned int
12765_ACEOF
12766
12767fi
12768
067d23c9
KY
12769# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12770# for constant arguments. Useless!
12771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12772$as_echo_n "checking for working alloca.h... " >&6; }
d6974efa 12773if ${ac_cv_working_alloca_h+:} false; then :
067d23c9
KY
12774 $as_echo_n "(cached) " >&6
12775else
12776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777/* end confdefs.h. */
12778#include <alloca.h>
12779int
12780main ()
12781{
12782char *p = (char *) alloca (2 * sizeof (int));
12783 if (p) return 0;
12784 ;
12785 return 0;
12786}
12787_ACEOF
12788if ac_fn_c_try_link "$LINENO"; then :
12789 ac_cv_working_alloca_h=yes
12790else
12791 ac_cv_working_alloca_h=no
12792fi
12793rm -f core conftest.err conftest.$ac_objext \
12794 conftest$ac_exeext conftest.$ac_ext
12795fi
12796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12797$as_echo "$ac_cv_working_alloca_h" >&6; }
12798if test $ac_cv_working_alloca_h = yes; then
12799
12800$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12801
12802fi
12803
12804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12805$as_echo_n "checking for alloca... " >&6; }
d6974efa 12806if ${ac_cv_func_alloca_works+:} false; then :
067d23c9
KY
12807 $as_echo_n "(cached) " >&6
12808else
12809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12810/* end confdefs.h. */
12811#ifdef __GNUC__
12812# define alloca __builtin_alloca
12813#else
12814# ifdef _MSC_VER
12815# include <malloc.h>
12816# define alloca _alloca
12817# else
12818# ifdef HAVE_ALLOCA_H
12819# include <alloca.h>
12820# else
12821# ifdef _AIX
12822 #pragma alloca
12823# else
12824# ifndef alloca /* predefined by HP cc +Olibcalls */
d6974efa 12825void *alloca (size_t);
067d23c9
KY
12826# endif
12827# endif
12828# endif
12829# endif
12830#endif
12831
12832int
12833main ()
12834{
12835char *p = (char *) alloca (1);
12836 if (p) return 0;
12837 ;
12838 return 0;
12839}
12840_ACEOF
12841if ac_fn_c_try_link "$LINENO"; then :
12842 ac_cv_func_alloca_works=yes
12843else
12844 ac_cv_func_alloca_works=no
12845fi
12846rm -f core conftest.err conftest.$ac_objext \
12847 conftest$ac_exeext conftest.$ac_ext
12848fi
12849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12850$as_echo "$ac_cv_func_alloca_works" >&6; }
12851
12852if test $ac_cv_func_alloca_works = yes; then
12853
12854$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12855
12856else
12857 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12858# that cause trouble. Some versions do not even contain alloca or
12859# contain a buggy version. If you still want to use their alloca,
12860# use ar to extract alloca.o from them instead of compiling alloca.c.
12861
12862ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12863
12864$as_echo "#define C_ALLOCA 1" >>confdefs.h
12865
12866
12867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12868$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
d6974efa 12869if ${ac_cv_os_cray+:} false; then :
067d23c9
KY
12870 $as_echo_n "(cached) " >&6
12871else
12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873/* end confdefs.h. */
12874#if defined CRAY && ! defined CRAY2
12875webecray
12876#else
12877wenotbecray
12878#endif
12879
12880_ACEOF
12881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12882 $EGREP "webecray" >/dev/null 2>&1; then :
12883 ac_cv_os_cray=yes
12884else
12885 ac_cv_os_cray=no
12886fi
12887rm -f conftest*
12888
12889fi
12890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12891$as_echo "$ac_cv_os_cray" >&6; }
12892if test $ac_cv_os_cray = yes; then
12893 for ac_func in _getb67 GETB67 getb67; do
12894 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12895ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 12896if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
12897
12898cat >>confdefs.h <<_ACEOF
12899#define CRAY_STACKSEG_END $ac_func
12900_ACEOF
12901
12902 break
12903fi
12904
12905 done
12906fi
12907
12908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12909$as_echo_n "checking stack direction for C alloca... " >&6; }
d6974efa 12910if ${ac_cv_c_stack_direction+:} false; then :
067d23c9
KY
12911 $as_echo_n "(cached) " >&6
12912else
12913 if test "$cross_compiling" = yes; then :
12914 ac_cv_c_stack_direction=0
12915else
12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917/* end confdefs.h. */
12918$ac_includes_default
12919int
12920find_stack_direction ()
12921{
12922 static char *addr = 0;
12923 auto char dummy;
12924 if (addr == 0)
12925 {
12926 addr = &dummy;
12927 return find_stack_direction ();
12928 }
12929 else
12930 return (&dummy > addr) ? 1 : -1;
12931}
12932
12933int
12934main ()
12935{
12936 return find_stack_direction () < 0;
12937}
12938_ACEOF
12939if ac_fn_c_try_run "$LINENO"; then :
12940 ac_cv_c_stack_direction=1
12941else
12942 ac_cv_c_stack_direction=-1
12943fi
12944rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12945 conftest.$ac_objext conftest.beam conftest.$ac_ext
12946fi
12947
12948fi
12949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12950$as_echo "$ac_cv_c_stack_direction" >&6; }
12951cat >>confdefs.h <<_ACEOF
12952#define STACK_DIRECTION $ac_cv_c_stack_direction
12953_ACEOF
12954
12955
12956fi
12957
12958
12959if test x"$ac_cv_func_alloca_works" != xyes; then
2018939f 12960 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
067d23c9
KY
12961fi
12962
12963# fmod, logb, and frexp are found in -lm on most systems.
12964# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12966$as_echo_n "checking for sqrt in -lm... " >&6; }
d6974efa 12967if ${ac_cv_lib_m_sqrt+:} false; then :
067d23c9
KY
12968 $as_echo_n "(cached) " >&6
12969else
12970 ac_check_lib_save_LIBS=$LIBS
12971LIBS="-lm $LIBS"
12972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12973/* end confdefs.h. */
12974
12975/* Override any GCC internal prototype to avoid an error.
12976 Use char because int might match the return type of a GCC
12977 builtin and then its argument prototype would still apply. */
12978#ifdef __cplusplus
12979extern "C"
12980#endif
12981char sqrt ();
12982int
12983main ()
12984{
12985return sqrt ();
12986 ;
12987 return 0;
12988}
12989_ACEOF
12990if ac_fn_c_try_link "$LINENO"; then :
12991 ac_cv_lib_m_sqrt=yes
12992else
12993 ac_cv_lib_m_sqrt=no
12994fi
12995rm -f core conftest.err conftest.$ac_objext \
12996 conftest$ac_exeext conftest.$ac_ext
12997LIBS=$ac_check_lib_save_LIBS
12998fi
12999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13000$as_echo "$ac_cv_lib_m_sqrt" >&6; }
d6974efa 13001if test "x$ac_cv_lib_m_sqrt" = xyes; then :
067d23c9
KY
13002 cat >>confdefs.h <<_ACEOF
13003#define HAVE_LIBM 1
13004_ACEOF
13005
13006 LIBS="-lm $LIBS"
13007
13008fi
13009
13010
13011# Check for mail-locking functions in a "mail" library. Probably this should
13012# have the same check as for liblockfile below.
13013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
13014$as_echo_n "checking for maillock in -lmail... " >&6; }
d6974efa 13015if ${ac_cv_lib_mail_maillock+:} false; then :
067d23c9
KY
13016 $as_echo_n "(cached) " >&6
13017else
13018 ac_check_lib_save_LIBS=$LIBS
13019LIBS="-lmail $LIBS"
13020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021/* end confdefs.h. */
13022
13023/* Override any GCC internal prototype to avoid an error.
13024 Use char because int might match the return type of a GCC
13025 builtin and then its argument prototype would still apply. */
13026#ifdef __cplusplus
13027extern "C"
13028#endif
13029char maillock ();
13030int
13031main ()
13032{
13033return maillock ();
13034 ;
13035 return 0;
13036}
13037_ACEOF
13038if ac_fn_c_try_link "$LINENO"; then :
13039 ac_cv_lib_mail_maillock=yes
13040else
13041 ac_cv_lib_mail_maillock=no
13042fi
13043rm -f core conftest.err conftest.$ac_objext \
13044 conftest$ac_exeext conftest.$ac_ext
13045LIBS=$ac_check_lib_save_LIBS
13046fi
13047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
13048$as_echo "$ac_cv_lib_mail_maillock" >&6; }
d6974efa 13049if test "x$ac_cv_lib_mail_maillock" = xyes; then :
067d23c9
KY
13050 have_mail=yes
13051else
13052 have_mail=no
13053fi
13054
13055if test $have_mail = yes; then
13056 LIBS_MAIL=-lmail
13057 LIBS="$LIBS_MAIL $LIBS"
13058
13059$as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
13060
13061else
13062 LIBS_MAIL=
13063fi
13064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
13065$as_echo_n "checking for maillock in -llockfile... " >&6; }
d6974efa 13066if ${ac_cv_lib_lockfile_maillock+:} false; then :
067d23c9
KY
13067 $as_echo_n "(cached) " >&6
13068else
13069 ac_check_lib_save_LIBS=$LIBS
13070LIBS="-llockfile $LIBS"
13071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072/* end confdefs.h. */
13073
13074/* Override any GCC internal prototype to avoid an error.
13075 Use char because int might match the return type of a GCC
13076 builtin and then its argument prototype would still apply. */
13077#ifdef __cplusplus
13078extern "C"
13079#endif
13080char maillock ();
13081int
13082main ()
13083{
13084return maillock ();
13085 ;
13086 return 0;
13087}
13088_ACEOF
13089if ac_fn_c_try_link "$LINENO"; then :
13090 ac_cv_lib_lockfile_maillock=yes
13091else
13092 ac_cv_lib_lockfile_maillock=no
13093fi
13094rm -f core conftest.err conftest.$ac_objext \
13095 conftest$ac_exeext conftest.$ac_ext
13096LIBS=$ac_check_lib_save_LIBS
13097fi
13098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
13099$as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
d6974efa 13100if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
067d23c9
KY
13101 have_lockfile=yes
13102else
13103 have_lockfile=no
13104fi
13105
13106if test $have_lockfile = yes; then
13107 LIBS_MAIL=-llockfile
13108 LIBS="$LIBS_MAIL $LIBS"
13109
13110$as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
13111
13112else
13113# If we have the shared liblockfile, assume we must use it for mail
13114# locking (e.g. Debian). If we couldn't link against liblockfile
13115# (no liblockfile.a installed), ensure that we don't need to.
13116 # Extract the first word of "liblockfile.so", so it can be a program name with args.
13117set dummy liblockfile.so; ac_word=$2
13118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13119$as_echo_n "checking for $ac_word... " >&6; }
d6974efa 13120if ${ac_cv_prog_liblockfile+:} false; then :
067d23c9
KY
13121 $as_echo_n "(cached) " >&6
13122else
13123 if test -n "$liblockfile"; then
13124 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
13125else
13126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
13128for as_dir in $as_dummy
13129do
13130 IFS=$as_save_IFS
13131 test -z "$as_dir" && as_dir=.
13132 for ac_exec_ext in '' $ac_executable_extensions; do
13133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13134 ac_cv_prog_liblockfile="yes"
13135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13136 break 2
13137 fi
13138done
13139 done
13140IFS=$as_save_IFS
13141
13142 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
13143fi
13144fi
13145liblockfile=$ac_cv_prog_liblockfile
13146if test -n "$liblockfile"; then
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
13148$as_echo "$liblockfile" >&6; }
13149else
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151$as_echo "no" >&6; }
13152fi
13153
13154
13155 if test $ac_cv_prog_liblockfile = yes; then
2018939f 13156 as_fn_error $? "Shared liblockfile found but can't link against it.
067d23c9
KY
13157This probably means that movemail could lose mail.
13158There may be a \`development' package to install containing liblockfile." "$LINENO" 5
13159 fi
13160fi
13161for ac_func in touchlock
13162do :
13163 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
d6974efa 13164if test "x$ac_cv_func_touchlock" = xyes; then :
067d23c9
KY
13165 cat >>confdefs.h <<_ACEOF
13166#define HAVE_TOUCHLOCK 1
13167_ACEOF
13168
13169fi
13170done
13171
13172for ac_header in maillock.h
13173do :
13174 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
d6974efa 13175if test "x$ac_cv_header_maillock_h" = xyes; then :
067d23c9
KY
13176 cat >>confdefs.h <<_ACEOF
13177#define HAVE_MAILLOCK_H 1
13178_ACEOF
13179
13180fi
13181
13182done
13183
13184
13185
13186## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
13187## interlock access to the mail spool. The alternative is a lock file named
13188## /usr/spool/mail/$USER.lock.
13189mail_lock=no
13190case "$opsys" in
13191 aix4-2) mail_lock="lockf" ;;
13192
13193 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
13194
13195 ## On GNU/Linux systems, both methods are used by various mail programs.
13196 ## I assume most people are using newer mailers that have heard of flock.
13197 ## Change this if you need to.
13198 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
13199 ## configure gets the right answers, and that means *NOT* using flock.
13200 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
13201 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
13202 ## Debian maintainer hasn't provided a clean fix for Emacs.
13203 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
13204 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
13205 ## correct logic. -- fx
13206 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
13207 ## liblockfile is a Free Software replacement for libmail, used on
13208 ## Debian systems and elsewhere. -rfr.
13209 gnu-*)
13210 mail_lock="flock"
13211 if test $have_mail = yes || test $have_lockfile = yes; then
13212 test $ac_cv_header_maillock_h = yes && mail_lock=no
13213 fi
13214 ;;
13215esac
13216
13217BLESSMAIL_TARGET=
13218case "$mail_lock" in
13219 flock)
13220$as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13221 ;;
13222
13223 lockf)
13224$as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13225 ;;
13226
13227 *) BLESSMAIL_TARGET="need-blessmail" ;;
13228esac
13229
13230
13231
13232for ac_func in gethostname getdomainname dup2 \
13233rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13234random lrand48 logb frexp fmod rint cbrt ftime setsid \
1fd182f0 13235strerror fpathconf select euidaccess getpagesize tzset setlocale \
067d23c9
KY
13236utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13237__fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13238sendto recvfrom getsockopt setsockopt getsockname getpeername \
13239gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13240memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13241cfmakeraw cfsetspeed isnan copysign __executable_start
13242do :
13243 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13244ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 13245if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
13246 cat >>confdefs.h <<_ACEOF
13247#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13248_ACEOF
13249
13250fi
13251done
13252
13253
2018939f
AS
13254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13255$as_echo_n "checking for __builtin_unwind_init... " >&6; }
d6974efa 13256if ${emacs_cv_func___builtin_unwind_init+:} false; then :
2018939f
AS
13257 $as_echo_n "(cached) " >&6
13258else
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260/* end confdefs.h. */
13261
13262int
13263main ()
13264{
13265__builtin_unwind_init ();
13266 ;
13267 return 0;
13268}
13269_ACEOF
13270if ac_fn_c_try_link "$LINENO"; then :
13271 emacs_cv_func___builtin_unwind_init=yes
13272else
13273 emacs_cv_func___builtin_unwind_init=no
13274fi
13275rm -f core conftest.err conftest.$ac_objext \
13276 conftest$ac_exeext conftest.$ac_ext
13277fi
13278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13279$as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13280if test $emacs_cv_func___builtin_unwind_init = yes; then
13281
13282$as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13283
13284fi
13285
067d23c9
KY
13286for ac_header in sys/un.h
13287do :
13288 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
d6974efa 13289if test "x$ac_cv_header_sys_un_h" = xyes; then :
067d23c9
KY
13290 cat >>confdefs.h <<_ACEOF
13291#define HAVE_SYS_UN_H 1
13292_ACEOF
13293
13294fi
13295
13296done
13297
13298
1f5d53eb
PE
13299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13300$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13301if ${ac_cv_sys_largefile_source+:} false; then :
067d23c9
KY
13302 $as_echo_n "(cached) " >&6
13303else
1f5d53eb
PE
13304 while :; do
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 13306/* end confdefs.h. */
1f5d53eb
PE
13307#include <sys/types.h> /* for off_t */
13308 #include <stdio.h>
067d23c9
KY
13309int
13310main ()
13311{
1f5d53eb
PE
13312int (*fp) (FILE *, off_t, int) = fseeko;
13313 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
067d23c9
KY
13314 ;
13315 return 0;
13316}
13317_ACEOF
13318if ac_fn_c_try_link "$LINENO"; then :
1f5d53eb 13319 ac_cv_sys_largefile_source=no; break
067d23c9
KY
13320fi
13321rm -f core conftest.err conftest.$ac_objext \
13322 conftest$ac_exeext conftest.$ac_ext
1f5d53eb 13323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 13324/* end confdefs.h. */
1f5d53eb
PE
13325#define _LARGEFILE_SOURCE 1
13326#include <sys/types.h> /* for off_t */
13327 #include <stdio.h>
067d23c9
KY
13328int
13329main ()
13330{
1f5d53eb
PE
13331int (*fp) (FILE *, off_t, int) = fseeko;
13332 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
067d23c9
KY
13333 ;
13334 return 0;
13335}
13336_ACEOF
13337if ac_fn_c_try_link "$LINENO"; then :
1f5d53eb 13338 ac_cv_sys_largefile_source=1; break
067d23c9
KY
13339fi
13340rm -f core conftest.err conftest.$ac_objext \
13341 conftest$ac_exeext conftest.$ac_ext
1f5d53eb
PE
13342 ac_cv_sys_largefile_source=unknown
13343 break
13344done
067d23c9 13345fi
1f5d53eb
PE
13346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13347$as_echo "$ac_cv_sys_largefile_source" >&6; }
13348case $ac_cv_sys_largefile_source in #(
13349 no | unknown) ;;
13350 *)
13351cat >>confdefs.h <<_ACEOF
13352#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13353_ACEOF
13354;;
13355esac
13356rm -rf conftest*
067d23c9 13357
1f5d53eb
PE
13358# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13359# in glibc 2.1.3, but that breaks too many other things.
13360# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13361if test $ac_cv_sys_largefile_source != unknown; then
13362
13363$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
067d23c9 13364
067d23c9
KY
13365fi
13366
1f5d53eb
PE
13367
13368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13369$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13370if ${ac_cv_func_getpgrp_void+:} false; then :
067d23c9
KY
13371 $as_echo_n "(cached) " >&6
13372else
1f5d53eb 13373 # Use it with a single arg.
067d23c9
KY
13374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13375/* end confdefs.h. */
1f5d53eb 13376$ac_includes_default
067d23c9
KY
13377int
13378main ()
13379{
1f5d53eb 13380getpgrp (0);
067d23c9
KY
13381 ;
13382 return 0;
13383}
13384_ACEOF
1f5d53eb
PE
13385if ac_fn_c_try_compile "$LINENO"; then :
13386 ac_cv_func_getpgrp_void=no
067d23c9 13387else
1f5d53eb 13388 ac_cv_func_getpgrp_void=yes
067d23c9 13389fi
1f5d53eb
PE
13390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13391
067d23c9 13392fi
1f5d53eb
PE
13393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13394$as_echo "$ac_cv_func_getpgrp_void" >&6; }
13395if test $ac_cv_func_getpgrp_void = yes; then
13396
13397$as_echo "#define GETPGRP_VOID 1" >>confdefs.h
067d23c9
KY
13398
13399fi
13400
1f5d53eb
PE
13401
13402# Configure gnulib.
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413 LIBC_FATAL_STDERR_=1
13414 export LIBC_FATAL_STDERR_
13415
13416
942f733f
PE
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13418$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13419if ${ac_cv_c_bigendian+:} false; then :
13420 $as_echo_n "(cached) " >&6
13421else
13422 ac_cv_c_bigendian=unknown
13423 # See if we're dealing with a universal compiler.
13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425/* end confdefs.h. */
13426#ifndef __APPLE_CC__
13427 not a universal capable compiler
13428 #endif
13429 typedef int dummy;
13430
13431_ACEOF
13432if ac_fn_c_try_compile "$LINENO"; then :
13433
13434 # Check for potential -arch flags. It is not universal unless
13435 # there are at least two -arch flags with different values.
13436 ac_arch=
13437 ac_prev=
13438 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13439 if test -n "$ac_prev"; then
13440 case $ac_word in
13441 i?86 | x86_64 | ppc | ppc64)
13442 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13443 ac_arch=$ac_word
13444 else
13445 ac_cv_c_bigendian=universal
13446 break
13447 fi
13448 ;;
13449 esac
13450 ac_prev=
13451 elif test "x$ac_word" = "x-arch"; then
13452 ac_prev=arch
13453 fi
13454 done
13455fi
13456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13457 if test $ac_cv_c_bigendian = unknown; then
13458 # See if sys/param.h defines the BYTE_ORDER macro.
13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460/* end confdefs.h. */
13461#include <sys/types.h>
13462 #include <sys/param.h>
13463
13464int
13465main ()
13466{
13467#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13468 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13469 && LITTLE_ENDIAN)
13470 bogus endian macros
13471 #endif
13472
13473 ;
13474 return 0;
13475}
13476_ACEOF
13477if ac_fn_c_try_compile "$LINENO"; then :
13478 # It does; now see whether it defined to BIG_ENDIAN or not.
13479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13480/* end confdefs.h. */
13481#include <sys/types.h>
13482 #include <sys/param.h>
13483
13484int
13485main ()
13486{
13487#if BYTE_ORDER != BIG_ENDIAN
13488 not big endian
13489 #endif
13490
13491 ;
13492 return 0;
13493}
13494_ACEOF
13495if ac_fn_c_try_compile "$LINENO"; then :
13496 ac_cv_c_bigendian=yes
13497else
13498 ac_cv_c_bigendian=no
13499fi
13500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13501fi
13502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13503 fi
13504 if test $ac_cv_c_bigendian = unknown; then
13505 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507/* end confdefs.h. */
13508#include <limits.h>
13509
13510int
13511main ()
13512{
13513#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13514 bogus endian macros
13515 #endif
13516
13517 ;
13518 return 0;
13519}
13520_ACEOF
13521if ac_fn_c_try_compile "$LINENO"; then :
13522 # It does; now see whether it defined to _BIG_ENDIAN or not.
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524/* end confdefs.h. */
13525#include <limits.h>
13526
13527int
13528main ()
13529{
13530#ifndef _BIG_ENDIAN
13531 not big endian
13532 #endif
13533
13534 ;
13535 return 0;
13536}
13537_ACEOF
13538if ac_fn_c_try_compile "$LINENO"; then :
13539 ac_cv_c_bigendian=yes
13540else
13541 ac_cv_c_bigendian=no
13542fi
13543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13544fi
13545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13546 fi
13547 if test $ac_cv_c_bigendian = unknown; then
13548 # Compile a test program.
13549 if test "$cross_compiling" = yes; then :
13550 # Try to guess by grepping values from an object file.
13551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13552/* end confdefs.h. */
13553short int ascii_mm[] =
13554 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13555 short int ascii_ii[] =
13556 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13557 int use_ascii (int i) {
13558 return ascii_mm[i] + ascii_ii[i];
13559 }
13560 short int ebcdic_ii[] =
13561 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13562 short int ebcdic_mm[] =
13563 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13564 int use_ebcdic (int i) {
13565 return ebcdic_mm[i] + ebcdic_ii[i];
13566 }
13567 extern int foo;
13568
13569int
13570main ()
13571{
13572return use_ascii (foo) == use_ebcdic (foo);
13573 ;
13574 return 0;
13575}
13576_ACEOF
13577if ac_fn_c_try_compile "$LINENO"; then :
13578 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13579 ac_cv_c_bigendian=yes
13580 fi
13581 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13582 if test "$ac_cv_c_bigendian" = unknown; then
13583 ac_cv_c_bigendian=no
13584 else
13585 # finding both strings is unlikely to happen, but who knows?
13586 ac_cv_c_bigendian=unknown
13587 fi
13588 fi
13589fi
13590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13591else
13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593/* end confdefs.h. */
13594$ac_includes_default
13595int
13596main ()
13597{
13598
13599 /* Are we little or big endian? From Harbison&Steele. */
13600 union
13601 {
13602 long int l;
13603 char c[sizeof (long int)];
13604 } u;
13605 u.l = 1;
13606 return u.c[sizeof (long int) - 1] == 1;
13607
13608 ;
13609 return 0;
13610}
13611_ACEOF
13612if ac_fn_c_try_run "$LINENO"; then :
13613 ac_cv_c_bigendian=no
13614else
13615 ac_cv_c_bigendian=yes
13616fi
13617rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13618 conftest.$ac_objext conftest.beam conftest.$ac_ext
13619fi
13620
13621 fi
13622fi
13623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13624$as_echo "$ac_cv_c_bigendian" >&6; }
13625 case $ac_cv_c_bigendian in #(
13626 yes)
13627 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13628;; #(
13629 no)
13630 ;; #(
13631 universal)
13632
13633$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13634
13635 ;; #(
13636 *)
13637 as_fn_error $? "unknown endianness
13638 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13639 esac
13640
13641
13642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13643$as_echo_n "checking for inline... " >&6; }
13644if ${ac_cv_c_inline+:} false; then :
13645 $as_echo_n "(cached) " >&6
13646else
13647 ac_cv_c_inline=no
13648for ac_kw in inline __inline__ __inline; do
13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650/* end confdefs.h. */
13651#ifndef __cplusplus
13652typedef int foo_t;
13653static $ac_kw foo_t static_foo () {return 0; }
13654$ac_kw foo_t foo () {return 0; }
13655#endif
13656
13657_ACEOF
13658if ac_fn_c_try_compile "$LINENO"; then :
13659 ac_cv_c_inline=$ac_kw
13660fi
13661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13662 test "$ac_cv_c_inline" != no && break
13663done
13664
13665fi
13666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13667$as_echo "$ac_cv_c_inline" >&6; }
13668
13669case $ac_cv_c_inline in
13670 inline | yes) ;;
13671 *)
13672 case $ac_cv_c_inline in
13673 no) ac_val=;;
13674 *) ac_val=$ac_cv_c_inline;;
13675 esac
13676 cat >>confdefs.h <<_ACEOF
13677#ifndef __cplusplus
13678#define inline $ac_val
13679#endif
13680_ACEOF
13681 ;;
13682esac
13683
13684
1f5d53eb
PE
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13686$as_echo_n "checking whether strtold conforms to C99... " >&6; }
13687if ${gl_cv_func_c99_strtold+:} false; then :
067d23c9
KY
13688 $as_echo_n "(cached) " >&6
13689else
1f5d53eb 13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 13691/* end confdefs.h. */
1f5d53eb
PE
13692/* On HP-UX before 11.23, strtold returns a struct instead of
13693 long double. Reject implementations like that, by requiring
13694 compatibility with the C99 prototype. */
13695 #include <stdlib.h>
13696 static long double (*p) (char const *, char **) = strtold;
13697 static long double
13698 test (char const *nptr, char **endptr)
13699 {
13700 long double r;
13701 r = strtold (nptr, endptr);
13702 return r;
13703 }
067d23c9
KY
13704int
13705main ()
13706{
1f5d53eb 13707return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
067d23c9
KY
13708 ;
13709 return 0;
13710}
13711_ACEOF
13712if ac_fn_c_try_link "$LINENO"; then :
1f5d53eb 13713 gl_cv_func_c99_strtold=yes
067d23c9 13714else
1f5d53eb 13715 gl_cv_func_c99_strtold=no
067d23c9
KY
13716fi
13717rm -f core conftest.err conftest.$ac_objext \
13718 conftest$ac_exeext conftest.$ac_ext
067d23c9 13719fi
1f5d53eb
PE
13720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13721$as_echo "$gl_cv_func_c99_strtold" >&6; }
13722 if test $gl_cv_func_c99_strtold = yes; then
067d23c9 13723
1f5d53eb 13724$as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
067d23c9 13725
1f5d53eb 13726 fi
067d23c9 13727
5fa4ac76
PE
13728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5
13729$as_echo_n "checking for st_dm_mode in struct stat... " >&6; }
13730if ${ac_cv_struct_st_dm_mode+:} false; then :
13731 $as_echo_n "(cached) " >&6
13732else
13733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734/* end confdefs.h. */
13735
13736#include <sys/types.h>
13737#include <sys/stat.h>
13738int
13739main ()
13740{
13741struct stat s; s.st_dm_mode;
13742 ;
13743 return 0;
13744}
13745_ACEOF
13746if ac_fn_c_try_compile "$LINENO"; then :
13747 ac_cv_struct_st_dm_mode=yes
13748else
13749 ac_cv_struct_st_dm_mode=no
13750fi
13751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13752fi
13753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5
13754$as_echo "$ac_cv_struct_st_dm_mode" >&6; }
13755
13756 if test $ac_cv_struct_st_dm_mode = yes; then
13757
13758$as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h
13759
13760 fi
13761
13762
13763ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default"
13764if test "x$ac_cv_have_decl_strmode" = xyes; then :
13765 ac_have_decl=1
13766else
13767 ac_have_decl=0
13768fi
13769
13770cat >>confdefs.h <<_ACEOF
13771#define HAVE_DECL_STRMODE $ac_have_decl
13772_ACEOF
13773
067d23c9 13774
1f5d53eb
PE
13775 GNULIB__EXIT=0;
13776 GNULIB_ATOLL=0;
13777 GNULIB_CALLOC_POSIX=0;
13778 GNULIB_CANONICALIZE_FILE_NAME=0;
13779 GNULIB_GETLOADAVG=0;
13780 GNULIB_GETSUBOPT=0;
13781 GNULIB_GRANTPT=0;
13782 GNULIB_MALLOC_POSIX=0;
13783 GNULIB_MKDTEMP=0;
13784 GNULIB_MKOSTEMP=0;
13785 GNULIB_MKOSTEMPS=0;
13786 GNULIB_MKSTEMP=0;
13787 GNULIB_MKSTEMPS=0;
13788 GNULIB_PTSNAME=0;
13789 GNULIB_PUTENV=0;
13790 GNULIB_RANDOM_R=0;
13791 GNULIB_REALLOC_POSIX=0;
13792 GNULIB_REALPATH=0;
13793 GNULIB_RPMATCH=0;
13794 GNULIB_SETENV=0;
13795 GNULIB_STRTOD=0;
13796 GNULIB_STRTOLL=0;
13797 GNULIB_STRTOULL=0;
13798 GNULIB_SYSTEM_POSIX=0;
13799 GNULIB_UNLOCKPT=0;
13800 GNULIB_UNSETENV=0;
13801 HAVE__EXIT=1;
13802 HAVE_ATOLL=1;
13803 HAVE_CANONICALIZE_FILE_NAME=1;
13804 HAVE_DECL_GETLOADAVG=1;
13805 HAVE_GETSUBOPT=1;
13806 HAVE_GRANTPT=1;
13807 HAVE_MKDTEMP=1;
13808 HAVE_MKOSTEMP=1;
13809 HAVE_MKOSTEMPS=1;
13810 HAVE_MKSTEMP=1;
13811 HAVE_MKSTEMPS=1;
13812 HAVE_PTSNAME=1;
13813 HAVE_RANDOM_H=1;
13814 HAVE_RANDOM_R=1;
13815 HAVE_REALPATH=1;
13816 HAVE_RPMATCH=1;
13817 HAVE_SETENV=1;
13818 HAVE_DECL_SETENV=1;
13819 HAVE_STRTOD=1;
13820 HAVE_STRTOLL=1;
13821 HAVE_STRTOULL=1;
13822 HAVE_STRUCT_RANDOM_DATA=1;
13823 HAVE_SYS_LOADAVG_H=0;
13824 HAVE_UNLOCKPT=1;
13825 HAVE_DECL_UNSETENV=1;
13826 REPLACE_CALLOC=0;
13827 REPLACE_CANONICALIZE_FILE_NAME=0;
13828 REPLACE_MALLOC=0;
13829 REPLACE_MKSTEMP=0;
13830 REPLACE_PUTENV=0;
13831 REPLACE_REALLOC=0;
13832 REPLACE_REALPATH=0;
13833 REPLACE_SETENV=0;
13834 REPLACE_STRTOD=0;
13835 REPLACE_UNSETENV=0;
067d23c9 13836
067d23c9 13837
1f5d53eb
PE
13838 GNULIB_CHOWN=0;
13839 GNULIB_CLOSE=0;
13840 GNULIB_DUP2=0;
13841 GNULIB_DUP3=0;
13842 GNULIB_ENVIRON=0;
13843 GNULIB_EUIDACCESS=0;
13844 GNULIB_FACCESSAT=0;
13845 GNULIB_FCHDIR=0;
13846 GNULIB_FCHOWNAT=0;
13847 GNULIB_FSYNC=0;
13848 GNULIB_FTRUNCATE=0;
13849 GNULIB_GETCWD=0;
13850 GNULIB_GETDOMAINNAME=0;
13851 GNULIB_GETDTABLESIZE=0;
13852 GNULIB_GETGROUPS=0;
13853 GNULIB_GETHOSTNAME=0;
13854 GNULIB_GETLOGIN=0;
13855 GNULIB_GETLOGIN_R=0;
13856 GNULIB_GETPAGESIZE=0;
13857 GNULIB_GETUSERSHELL=0;
13858 GNULIB_LCHOWN=0;
13859 GNULIB_LINK=0;
13860 GNULIB_LINKAT=0;
13861 GNULIB_LSEEK=0;
13862 GNULIB_PIPE=0;
13863 GNULIB_PIPE2=0;
13864 GNULIB_PREAD=0;
13865 GNULIB_PWRITE=0;
13866 GNULIB_READLINK=0;
13867 GNULIB_READLINKAT=0;
13868 GNULIB_RMDIR=0;
13869 GNULIB_SLEEP=0;
13870 GNULIB_SYMLINK=0;
13871 GNULIB_SYMLINKAT=0;
13872 GNULIB_TTYNAME_R=0;
13873 GNULIB_UNISTD_H_GETOPT=0;
13874 GNULIB_UNISTD_H_SIGPIPE=0;
13875 GNULIB_UNLINK=0;
13876 GNULIB_UNLINKAT=0;
13877 GNULIB_USLEEP=0;
13878 GNULIB_WRITE=0;
13879 HAVE_CHOWN=1;
13880 HAVE_DUP2=1;
13881 HAVE_DUP3=1;
13882 HAVE_EUIDACCESS=1;
13883 HAVE_FACCESSAT=1;
13884 HAVE_FCHDIR=1;
13885 HAVE_FCHOWNAT=1;
13886 HAVE_FSYNC=1;
13887 HAVE_FTRUNCATE=1;
13888 HAVE_GETDTABLESIZE=1;
13889 HAVE_GETGROUPS=1;
13890 HAVE_GETHOSTNAME=1;
13891 HAVE_GETLOGIN=1;
13892 HAVE_GETPAGESIZE=1;
13893 HAVE_LCHOWN=1;
13894 HAVE_LINK=1;
13895 HAVE_LINKAT=1;
13896 HAVE_PIPE=1;
13897 HAVE_PIPE2=1;
13898 HAVE_PREAD=1;
13899 HAVE_PWRITE=1;
13900 HAVE_READLINK=1;
13901 HAVE_READLINKAT=1;
13902 HAVE_SLEEP=1;
13903 HAVE_SYMLINK=1;
13904 HAVE_SYMLINKAT=1;
13905 HAVE_UNLINKAT=1;
13906 HAVE_USLEEP=1;
13907 HAVE_DECL_ENVIRON=1;
13908 HAVE_DECL_FCHDIR=1;
13909 HAVE_DECL_GETDOMAINNAME=1;
13910 HAVE_DECL_GETLOGIN_R=1;
13911 HAVE_DECL_GETPAGESIZE=1;
13912 HAVE_DECL_GETUSERSHELL=1;
13913 HAVE_DECL_TTYNAME_R=1;
13914 HAVE_OS_H=0;
13915 HAVE_SYS_PARAM_H=0;
13916 REPLACE_CHOWN=0;
13917 REPLACE_CLOSE=0;
13918 REPLACE_DUP=0;
13919 REPLACE_DUP2=0;
13920 REPLACE_FCHOWNAT=0;
13921 REPLACE_GETCWD=0;
13922 REPLACE_GETDOMAINNAME=0;
13923 REPLACE_GETLOGIN_R=0;
13924 REPLACE_GETGROUPS=0;
13925 REPLACE_GETPAGESIZE=0;
13926 REPLACE_LCHOWN=0;
13927 REPLACE_LINK=0;
13928 REPLACE_LINKAT=0;
13929 REPLACE_LSEEK=0;
13930 REPLACE_PREAD=0;
13931 REPLACE_PWRITE=0;
13932 REPLACE_READLINK=0;
13933 REPLACE_RMDIR=0;
13934 REPLACE_SLEEP=0;
13935 REPLACE_SYMLINK=0;
13936 REPLACE_TTYNAME_R=0;
13937 REPLACE_UNLINK=0;
13938 REPLACE_UNLINKAT=0;
13939 REPLACE_USLEEP=0;
13940 REPLACE_WRITE=0;
13941 UNISTD_H_HAVE_WINSOCK2_H=0;
13942 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
067d23c9 13943
067d23c9 13944
1f5d53eb
PE
13945
13946
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13948$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13949if ${gl_cv_have_include_next+:} false; then :
067d23c9
KY
13950 $as_echo_n "(cached) " >&6
13951else
1f5d53eb
PE
13952 rm -rf conftestd1a conftestd1b conftestd2
13953 mkdir conftestd1a conftestd1b conftestd2
13954 cat <<EOF > conftestd1a/conftest.h
13955#define DEFINED_IN_CONFTESTD1
13956#include_next <conftest.h>
13957#ifdef DEFINED_IN_CONFTESTD2
13958int foo;
13959#else
13960#error "include_next doesn't work"
067d23c9 13961#endif
1f5d53eb
PE
13962EOF
13963 cat <<EOF > conftestd1b/conftest.h
13964#define DEFINED_IN_CONFTESTD1
13965#include <stdio.h>
13966#include_next <conftest.h>
13967#ifdef DEFINED_IN_CONFTESTD2
13968int foo;
13969#else
13970#error "include_next doesn't work"
13971#endif
13972EOF
13973 cat <<EOF > conftestd2/conftest.h
13974#ifndef DEFINED_IN_CONFTESTD1
13975#error "include_next test doesn't work"
13976#endif
13977#define DEFINED_IN_CONFTESTD2
13978EOF
13979 gl_save_CPPFLAGS="$CPPFLAGS"
13980 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13982/* end confdefs.h. */
13983#include <conftest.h>
067d23c9 13984_ACEOF
1f5d53eb
PE
13985if ac_fn_c_try_compile "$LINENO"; then :
13986 gl_cv_have_include_next=yes
067d23c9 13987else
1f5d53eb
PE
13988 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -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=buggy
13995else
13996 gl_cv_have_include_next=no
067d23c9 13997fi
1f5d53eb 13998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
067d23c9
KY
13999
14000fi
1f5d53eb
PE
14001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14002 CPPFLAGS="$gl_save_CPPFLAGS"
14003 rm -rf conftestd1a conftestd1b conftestd2
067d23c9 14004
1f5d53eb
PE
14005fi
14006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
14007$as_echo "$gl_cv_have_include_next" >&6; }
14008 PRAGMA_SYSTEM_HEADER=
14009 if test $gl_cv_have_include_next = yes; then
14010 INCLUDE_NEXT=include_next
14011 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14012 if test -n "$GCC"; then
14013 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
14014 fi
14015 else
14016 if test $gl_cv_have_include_next = buggy; then
14017 INCLUDE_NEXT=include
14018 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
14019 else
14020 INCLUDE_NEXT=include
14021 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
14022 fi
14023 fi
067d23c9
KY
14024
14025
067d23c9 14026
1f5d53eb
PE
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
14028$as_echo_n "checking whether system header files limit the line length... " >&6; }
14029if ${gl_cv_pragma_columns+:} false; then :
14030 $as_echo_n "(cached) " >&6
14031else
14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033/* end confdefs.h. */
067d23c9 14034
1f5d53eb
PE
14035#ifdef __TANDEM
14036choke me
14037#endif
067d23c9 14038
067d23c9 14039_ACEOF
1f5d53eb
PE
14040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14041 $EGREP "choke me" >/dev/null 2>&1; then :
14042 gl_cv_pragma_columns=yes
14043else
14044 gl_cv_pragma_columns=no
067d23c9 14045fi
1f5d53eb 14046rm -f conftest*
067d23c9 14047
067d23c9
KY
14048
14049fi
1f5d53eb
PE
14050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
14051$as_echo "$gl_cv_pragma_columns" >&6; }
14052 if test $gl_cv_pragma_columns = yes; then
14053 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
14054 else
14055 PRAGMA_COLUMNS=
14056 fi
067d23c9 14057
067d23c9 14058
067d23c9
KY
14059
14060
067d23c9 14061
067d23c9
KY
14062
14063
067d23c9 14064
067d23c9 14065
067d23c9
KY
14066
14067
067d23c9 14068
067d23c9 14069
067d23c9 14070
067d23c9 14071
067d23c9 14072
067d23c9 14073
1f5d53eb
PE
14074 if test $gl_cv_have_include_next = yes; then
14075 gl_cv_next_getopt_h='<'getopt.h'>'
14076 else
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
14078$as_echo_n "checking absolute name of <getopt.h>... " >&6; }
14079if ${gl_cv_next_getopt_h+:} false; then :
14080 $as_echo_n "(cached) " >&6
14081else
067d23c9 14082
1f5d53eb 14083 if test $ac_cv_header_getopt_h = yes; then
067d23c9 14084
067d23c9 14085
1f5d53eb
PE
14086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087/* end confdefs.h. */
14088#include <getopt.h>
14089
14090_ACEOF
14091 case "$host_os" in
14092 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14093 *) gl_absname_cpp="$ac_cpp" ;;
14094 esac
14095 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14096 sed -n '\#/getopt.h#{
14097 s#.*"\(.*/getopt.h\)".*#\1#
14098 s#^/[^/]#//&#
14099 p
14100 q
14101 }'`'"'
14102 else
14103 gl_cv_next_getopt_h='<'getopt.h'>'
14104 fi
067d23c9
KY
14105
14106
14107fi
1f5d53eb
PE
14108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
14109$as_echo "$gl_cv_next_getopt_h" >&6; }
14110 fi
14111 NEXT_GETOPT_H=$gl_cv_next_getopt_h
067d23c9 14112
1f5d53eb
PE
14113 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14114 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14115 gl_next_as_first_directive='<'getopt.h'>'
14116 else
14117 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14118 gl_next_as_first_directive=$gl_cv_next_getopt_h
14119 fi
14120 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
067d23c9 14121
067d23c9
KY
14122
14123
067d23c9 14124
1f5d53eb
PE
14125 if test $ac_cv_header_getopt_h = yes; then
14126 HAVE_GETOPT_H=1
14127 else
14128 HAVE_GETOPT_H=0
14129 fi
067d23c9 14130
1f5d53eb
PE
14131
14132 gl_replace_getopt=
14133
14134 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14135 for ac_header in getopt.h
14136do :
14137 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
14138if test "x$ac_cv_header_getopt_h" = xyes; then :
14139 cat >>confdefs.h <<_ACEOF
14140#define HAVE_GETOPT_H 1
14141_ACEOF
067d23c9
KY
14142
14143else
1f5d53eb 14144 gl_replace_getopt=yes
067d23c9
KY
14145fi
14146
1f5d53eb
PE
14147done
14148
14149 fi
14150
14151 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14152 for ac_func in getopt_long_only
14153do :
14154 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
14155if test "x$ac_cv_func_getopt_long_only" = xyes; then :
14156 cat >>confdefs.h <<_ACEOF
14157#define HAVE_GETOPT_LONG_ONLY 1
14158_ACEOF
067d23c9 14159
067d23c9 14160else
1f5d53eb 14161 gl_replace_getopt=yes
067d23c9 14162fi
1f5d53eb 14163done
067d23c9 14164
1f5d53eb 14165 fi
067d23c9 14166
1f5d53eb
PE
14167 if test -z "$gl_replace_getopt"; then
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14169$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14170if ${gl_cv_func_getopt_posix+:} false; then :
067d23c9
KY
14171 $as_echo_n "(cached) " >&6
14172else
1f5d53eb
PE
14173
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 14175/* end confdefs.h. */
1f5d53eb 14176#include <unistd.h>
067d23c9
KY
14177int
14178main ()
14179{
1f5d53eb 14180int *p = &optreset; return optreset;
067d23c9
KY
14181 ;
14182 return 0;
14183}
14184_ACEOF
1f5d53eb
PE
14185if ac_fn_c_try_compile "$LINENO"; then :
14186 gl_optind_min=1
1fd182f0 14187else
1f5d53eb 14188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 14189/* end confdefs.h. */
1f5d53eb 14190#include <getopt.h>
1fd182f0
PE
14191int
14192main ()
14193{
1f5d53eb 14194return !getopt_clip;
1fd182f0
PE
14195 ;
14196 return 0;
14197}
14198_ACEOF
14199if ac_fn_c_try_compile "$LINENO"; then :
1f5d53eb 14200 gl_optind_min=1
1fd182f0 14201else
1f5d53eb 14202 gl_optind_min=0
1fd182f0
PE
14203fi
14204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1fd182f0 14205fi
1f5d53eb 14206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1fd182f0 14207
1f5d53eb
PE
14208 gl_save_CPPFLAGS=$CPPFLAGS
14209 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14210 if test "$cross_compiling" = yes; then :
14211 case "$host_os" in
14212 mingw*) gl_cv_func_getopt_posix="guessing no";;
14213 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14214 *) gl_cv_func_getopt_posix="guessing yes";;
14215 esac
1fd182f0 14216
1f5d53eb
PE
14217else
14218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14219/* end confdefs.h. */
1fd182f0 14220
1f5d53eb
PE
14221#include <unistd.h>
14222#include <stdlib.h>
14223#include <string.h>
1fd182f0 14224
1f5d53eb
PE
14225int
14226main ()
14227{
14228 {
14229 int argc = 0;
14230 char *argv[10];
14231 int c;
1fd182f0 14232
1f5d53eb
PE
14233 argv[argc++] = "program";
14234 argv[argc++] = "-a";
14235 argv[argc++] = "foo";
14236 argv[argc++] = "bar";
14237 argv[argc] = NULL;
14238 optind = OPTIND_MIN;
14239 opterr = 0;
b06b1098 14240
1f5d53eb
PE
14241 c = getopt (argc, argv, "ab");
14242 if (!(c == 'a'))
14243 return 1;
14244 c = getopt (argc, argv, "ab");
14245 if (!(c == -1))
14246 return 2;
14247 if (!(optind == 2))
14248 return 3;
14249 }
14250 /* Some internal state exists at this point. */
14251 {
14252 int argc = 0;
14253 char *argv[10];
14254 int c;
b06b1098 14255
1f5d53eb
PE
14256 argv[argc++] = "program";
14257 argv[argc++] = "donald";
14258 argv[argc++] = "-p";
14259 argv[argc++] = "billy";
14260 argv[argc++] = "duck";
14261 argv[argc++] = "-a";
14262 argv[argc++] = "bar";
14263 argv[argc] = NULL;
14264 optind = OPTIND_MIN;
14265 opterr = 0;
b06b1098 14266
1f5d53eb
PE
14267 c = getopt (argc, argv, "+abp:q:");
14268 if (!(c == -1))
14269 return 4;
14270 if (!(strcmp (argv[0], "program") == 0))
14271 return 5;
14272 if (!(strcmp (argv[1], "donald") == 0))
14273 return 6;
14274 if (!(strcmp (argv[2], "-p") == 0))
14275 return 7;
14276 if (!(strcmp (argv[3], "billy") == 0))
14277 return 8;
14278 if (!(strcmp (argv[4], "duck") == 0))
14279 return 9;
14280 if (!(strcmp (argv[5], "-a") == 0))
14281 return 10;
14282 if (!(strcmp (argv[6], "bar") == 0))
14283 return 11;
14284 if (!(optind == 1))
14285 return 12;
14286 }
14287 /* Detect MacOS 10.5, AIX 7.1 bug. */
14288 {
14289 char *argv[3] = { "program", "-ab", NULL };
14290 optind = OPTIND_MIN;
14291 opterr = 0;
14292 if (getopt (2, argv, "ab:") != 'a')
14293 return 13;
14294 if (getopt (2, argv, "ab:") != '?')
14295 return 14;
14296 if (optopt != 'b')
14297 return 15;
14298 if (optind != 2)
14299 return 16;
14300 }
d6974efa 14301
1f5d53eb
PE
14302 return 0;
14303}
d6974efa 14304
1f5d53eb
PE
14305_ACEOF
14306if ac_fn_c_try_run "$LINENO"; then :
14307 gl_cv_func_getopt_posix=yes
14308else
14309 gl_cv_func_getopt_posix=no
14310fi
14311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14312 conftest.$ac_objext conftest.beam conftest.$ac_ext
14313fi
d6974efa 14314
1f5d53eb 14315 CPPFLAGS=$gl_save_CPPFLAGS
1fd182f0 14316
1f5d53eb
PE
14317fi
14318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14319$as_echo "$gl_cv_func_getopt_posix" >&6; }
14320 case "$gl_cv_func_getopt_posix" in
14321 *no) gl_replace_getopt=yes ;;
14322 esac
14323 fi
1fd182f0 14324
1f5d53eb
PE
14325 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14327$as_echo_n "checking for working GNU getopt function... " >&6; }
14328if ${gl_cv_func_getopt_gnu+:} false; then :
1fd182f0 14329 $as_echo_n "(cached) " >&6
1f5d53eb
PE
14330else
14331 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14332 # optstring is necessary for programs like m4 that have POSIX-mandated
14333 # semantics for supporting options interspersed with files.
14334 # Also, since getopt_long is a GNU extension, we require optind=0.
14335 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14336 # so take care to revert to the correct (non-)export state.
14337 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14338 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14339 xx) gl_had_POSIXLY_CORRECT=exported ;;
14340 x) gl_had_POSIXLY_CORRECT=yes ;;
14341 *) gl_had_POSIXLY_CORRECT= ;;
14342 esac
14343 POSIXLY_CORRECT=1
14344 export POSIXLY_CORRECT
14345 if test "$cross_compiling" = yes; then :
14346 case $host_os:$ac_cv_have_decl_optreset in
14347 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14348 *:yes) gl_cv_func_getopt_gnu=no;;
14349 *) gl_cv_func_getopt_gnu=yes;;
14350 esac
14351
1fd182f0
PE
14352else
14353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354/* end confdefs.h. */
1f5d53eb
PE
14355#include <getopt.h>
14356 #include <stddef.h>
14357 #include <string.h>
14358
1fd182f0
PE
14359int
14360main ()
14361{
1f5d53eb
PE
14362
14363 int result = 0;
14364 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14365 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14366 OSF/1 5.1, Solaris 10. */
14367 {
14368 char *myargv[3];
14369 myargv[0] = "conftest";
14370 myargv[1] = "-+";
14371 myargv[2] = 0;
14372 opterr = 0;
14373 if (getopt (2, myargv, "+a") != '?')
14374 result |= 1;
14375 }
14376 /* This code succeeds on glibc 2.8, mingw,
14377 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14378 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14379 {
14380 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14381
14382 optind = 1;
14383 if (getopt (4, argv, "p::") != 'p')
14384 result |= 2;
14385 else if (optarg != NULL)
14386 result |= 4;
14387 else if (getopt (4, argv, "p::") != -1)
14388 result |= 6;
14389 else if (optind != 2)
14390 result |= 8;
14391 }
14392 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14393 {
14394 char *argv[] = { "program", "foo", "-p", NULL };
14395 optind = 0;
14396 if (getopt (3, argv, "-p") != 1)
14397 result |= 16;
14398 else if (getopt (3, argv, "-p") != 'p')
14399 result |= 32;
14400 }
14401 /* This code fails on glibc 2.11. */
14402 {
14403 char *argv[] = { "program", "-b", "-a", NULL };
14404 optind = opterr = 0;
14405 if (getopt (3, argv, "+:a:b") != 'b')
14406 result |= 64;
14407 else if (getopt (3, argv, "+:a:b") != ':')
14408 result |= 64;
14409 }
14410 return result;
14411
1fd182f0
PE
14412 ;
14413 return 0;
14414}
14415_ACEOF
1f5d53eb
PE
14416if ac_fn_c_try_run "$LINENO"; then :
14417 gl_cv_func_getopt_gnu=yes
1fd182f0 14418else
1f5d53eb 14419 gl_cv_func_getopt_gnu=no
1fd182f0 14420fi
1f5d53eb
PE
14421rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14422 conftest.$ac_objext conftest.beam conftest.$ac_ext
1fd182f0 14423fi
1fd182f0 14424
1f5d53eb
PE
14425 case $gl_had_POSIXLY_CORRECT in
14426 exported) ;;
14427 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14428 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14429 esac
1fd182f0 14430
1f5d53eb
PE
14431fi
14432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14433$as_echo "$gl_cv_func_getopt_gnu" >&6; }
14434 if test "$gl_cv_func_getopt_gnu" = "no"; then
14435 gl_replace_getopt=yes
14436 fi
1fd182f0
PE
14437 fi
14438
1f5d53eb
PE
14439ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14440if test "x$ac_cv_have_decl_getenv" = xyes; then :
14441 ac_have_decl=1
14442else
14443 ac_have_decl=0
14444fi
1fd182f0 14445
1f5d53eb
PE
14446cat >>confdefs.h <<_ACEOF
14447#define HAVE_DECL_GETENV $ac_have_decl
14448_ACEOF
1fd182f0
PE
14449
14450
14451
14452
1f5d53eb
PE
14453
14454
14455 if test -n "$gl_replace_getopt"; then :
14456
14457
14458
14459 GETOPT_H=getopt.h
14460
14461$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14462
14463
14464
14465 GNULIB_UNISTD_H_GETOPT=1
14466
14467
14468
14469
14470
14471
14472
14473
14474 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14485
14486
14487
14488
14489
14490
14491fi
14492
14493
1f5d53eb
PE
14494
14495 GNULIB_MKTIME=0;
14496 GNULIB_NANOSLEEP=0;
14497 GNULIB_STRPTIME=0;
14498 GNULIB_TIMEGM=0;
14499 GNULIB_TIME_R=0;
14500 HAVE_DECL_LOCALTIME_R=1;
14501 HAVE_NANOSLEEP=1;
14502 HAVE_STRPTIME=1;
14503 HAVE_TIMEGM=1;
14504 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14505 REPLACE_MKTIME=GNULIB_PORTCHECK;
14506 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14507 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14508
14509
14510
14511
14512 for ac_func in $ac_func_list
14513do :
14514 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14515ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14516if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14517 cat >>confdefs.h <<_ACEOF
14518#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14519_ACEOF
1fd182f0 14520
e275c824 14521fi
1f5d53eb 14522done
1fd182f0
PE
14523
14524
e275c824 14525
1fd182f0 14526
1f5d53eb
PE
14527 gl_cv_c_multiarch=no
14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529/* end confdefs.h. */
14530#ifndef __APPLE_CC__
14531 not a universal capable compiler
14532 #endif
14533 typedef int dummy;
e275c824
PE
14534
14535_ACEOF
1f5d53eb 14536if ac_fn_c_try_compile "$LINENO"; then :
e275c824 14537
1f5d53eb
PE
14538 arch=
14539 prev=
14540 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14541 if test -n "$prev"; then
14542 case $word in
14543 i?86 | x86_64 | ppc | ppc64)
14544 if test -z "$arch" || test "$arch" = "$word"; then
14545 arch="$word"
14546 else
14547 gl_cv_c_multiarch=yes
14548 fi
14549 ;;
14550 esac
14551 prev=
14552 else
14553 if test "x$word" = "x-arch"; then
14554 prev=arch
14555 fi
14556 fi
14557 done
e275c824
PE
14558
14559fi
1f5d53eb
PE
14560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14561 if test $gl_cv_c_multiarch = yes; then
14562 APPLE_UNIVERSAL_BUILD=1
e275c824 14563 else
1f5d53eb 14564 APPLE_UNIVERSAL_BUILD=0
e275c824
PE
14565 fi
14566
14567
1f5d53eb
PE
14568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14569$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14570if ${ac_cv_header_stdbool_h+:} false; then :
14571 $as_echo_n "(cached) " >&6
14572else
14573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14574/* end confdefs.h. */
e275c824 14575
1f5d53eb
PE
14576 #include <stdbool.h>
14577 #ifndef bool
14578 "error: bool is not defined"
14579 #endif
14580 #ifndef false
14581 "error: false is not defined"
14582 #endif
14583 #if false
14584 "error: false is not 0"
14585 #endif
14586 #ifndef true
14587 "error: true is not defined"
14588 #endif
14589 #if true != 1
14590 "error: true is not 1"
14591 #endif
14592 #ifndef __bool_true_false_are_defined
14593 "error: __bool_true_false_are_defined is not defined"
14594 #endif
e275c824 14595
1f5d53eb 14596 struct s { _Bool s: 1; _Bool t; } s;
e275c824 14597
1f5d53eb
PE
14598 char a[true == 1 ? 1 : -1];
14599 char b[false == 0 ? 1 : -1];
14600 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14601 char d[(bool) 0.5 == true ? 1 : -1];
14602 /* See body of main program for 'e'. */
14603 char f[(_Bool) 0.0 == false ? 1 : -1];
14604 char g[true];
14605 char h[sizeof (_Bool)];
14606 char i[sizeof s.t];
14607 enum { j = false, k = true, l = false * true, m = true * 256 };
14608 /* The following fails for
14609 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14610 _Bool n[m];
14611 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14612 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14613 /* Catch a bug in an HP-UX C compiler. See
14614 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14615 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14616 */
14617 _Bool q = true;
14618 _Bool *pq = &q;
e275c824 14619
1f5d53eb
PE
14620int
14621main ()
14622{
e275c824 14623
1f5d53eb
PE
14624 bool e = &s;
14625 *pq |= q;
14626 *pq |= ! q;
14627 /* Refer to every declared value, to avoid compiler optimizations. */
14628 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14629 + !m + !n + !o + !p + !q + !pq);
e275c824 14630
1f5d53eb
PE
14631 ;
14632 return 0;
14633}
14634_ACEOF
14635if ac_fn_c_try_compile "$LINENO"; then :
14636 ac_cv_header_stdbool_h=yes
14637else
14638 ac_cv_header_stdbool_h=no
14639fi
14640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14641fi
14642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14643$as_echo "$ac_cv_header_stdbool_h" >&6; }
14644 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14645if test "x$ac_cv_type__Bool" = xyes; then :
e275c824 14646
1f5d53eb
PE
14647cat >>confdefs.h <<_ACEOF
14648#define HAVE__BOOL 1
14649_ACEOF
e275c824
PE
14650
14651
1f5d53eb 14652fi
e275c824
PE
14653
14654
14655
1f5d53eb
PE
14656 REPLACE_NULL=0;
14657 HAVE_WCHAR_T=1;
14658 STDDEF_H='';
b06b1098
PE
14659
14660
1f5d53eb
PE
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14662$as_echo_n "checking for wchar_t... " >&6; }
14663if ${gt_cv_c_wchar_t+:} false; then :
e275c824
PE
14664 $as_echo_n "(cached) " >&6
14665else
1f5d53eb 14666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e275c824 14667/* end confdefs.h. */
1f5d53eb
PE
14668#include <stddef.h>
14669 wchar_t foo = (wchar_t)'\0';
14670int
14671main ()
14672{
e275c824 14673
1f5d53eb
PE
14674 ;
14675 return 0;
14676}
e275c824 14677_ACEOF
1f5d53eb
PE
14678if ac_fn_c_try_compile "$LINENO"; then :
14679 gt_cv_c_wchar_t=yes
14680else
14681 gt_cv_c_wchar_t=no
e275c824 14682fi
1f5d53eb
PE
14683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14684fi
14685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14686$as_echo "$gt_cv_c_wchar_t" >&6; }
14687 if test $gt_cv_c_wchar_t = yes; then
e275c824 14688
1f5d53eb 14689$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
e275c824 14690
e275c824
PE
14691 fi
14692
14693
5f90be1b
PE
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
14695$as_echo_n "checking for unsigned long long int... " >&6; }
14696if ${ac_cv_type_unsigned_long_long_int+:} false; then :
14697 $as_echo_n "(cached) " >&6
14698else
14699 ac_cv_type_unsigned_long_long_int=yes
14700 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14702/* end confdefs.h. */
14703
14704 /* For now, do not test the preprocessor; as of 2007 there are too many
14705 implementations with broken preprocessors. Perhaps this can
14706 be revisited in 2012. In the meantime, code should not expect
14707 #if to work with literals wider than 32 bits. */
14708 /* Test literals. */
14709 long long int ll = 9223372036854775807ll;
14710 long long int nll = -9223372036854775807LL;
14711 unsigned long long int ull = 18446744073709551615ULL;
14712 /* Test constant expressions. */
14713 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
14714 ? 1 : -1)];
14715 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
14716 ? 1 : -1)];
14717 int i = 63;
14718int
14719main ()
14720{
14721/* Test availability of runtime routines for shift and division. */
14722 long long int llmax = 9223372036854775807ll;
14723 unsigned long long int ullmax = 18446744073709551615ull;
14724 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
14725 | (llmax / ll) | (llmax % ll)
14726 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
14727 | (ullmax / ull) | (ullmax % ull));
14728 ;
14729 return 0;
14730}
14731
14732_ACEOF
14733if ac_fn_c_try_link "$LINENO"; then :
14734
14735else
14736 ac_cv_type_unsigned_long_long_int=no
14737fi
14738rm -f core conftest.err conftest.$ac_objext \
14739 conftest$ac_exeext conftest.$ac_ext
14740 fi
14741fi
14742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
14743$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
14744 if test $ac_cv_type_unsigned_long_long_int = yes; then
14745
14746$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
14747
14748 fi
14749
14750
14751
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
14753$as_echo_n "checking for long long int... " >&6; }
14754if ${ac_cv_type_long_long_int+:} false; then :
14755 $as_echo_n "(cached) " >&6
14756else
14757 ac_cv_type_long_long_int=yes
14758 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
14759 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
14760 if test $ac_cv_type_long_long_int = yes; then
14761 if test "$cross_compiling" = yes; then :
14762 :
14763else
14764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14765/* end confdefs.h. */
14766#include <limits.h>
14767 #ifndef LLONG_MAX
14768 # define HALF \
14769 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
14770 # define LLONG_MAX (HALF - 1 + HALF)
14771 #endif
14772int
14773main ()
14774{
14775long long int n = 1;
14776 int i;
14777 for (i = 0; ; i++)
14778 {
14779 long long int m = n << i;
14780 if (m >> i != n)
14781 return 1;
14782 if (LLONG_MAX / 2 < m)
14783 break;
14784 }
14785 return 0;
14786 ;
14787 return 0;
14788}
14789_ACEOF
14790if ac_fn_c_try_run "$LINENO"; then :
14791
14792else
14793 ac_cv_type_long_long_int=no
14794fi
14795rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14796 conftest.$ac_objext conftest.beam conftest.$ac_ext
14797fi
14798
14799 fi
14800 fi
14801fi
14802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
14803$as_echo "$ac_cv_type_long_long_int" >&6; }
14804 if test $ac_cv_type_long_long_int = yes; then
14805
14806$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
14807
14808 fi
14809
14810
14811
14812
14813
14814
1f5d53eb
PE
14815 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14816"
14817if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
e275c824 14818
1f5d53eb 14819$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
e275c824 14820
e275c824
PE
14821fi
14822
e275c824 14823
e275c824 14824
e275c824 14825
5fa4ac76
PE
14826
14827 GNULIB_FCHMODAT=0;
14828 GNULIB_FSTATAT=0;
14829 GNULIB_FUTIMENS=0;
14830 GNULIB_LCHMOD=0;
14831 GNULIB_LSTAT=0;
14832 GNULIB_MKDIRAT=0;
14833 GNULIB_MKFIFO=0;
14834 GNULIB_MKFIFOAT=0;
14835 GNULIB_MKNOD=0;
14836 GNULIB_MKNODAT=0;
14837 GNULIB_STAT=0;
14838 GNULIB_UTIMENSAT=0;
14839 HAVE_FCHMODAT=1;
14840 HAVE_FSTATAT=1;
14841 HAVE_FUTIMENS=1;
14842 HAVE_LCHMOD=1;
14843 HAVE_LSTAT=1;
14844 HAVE_MKDIRAT=1;
14845 HAVE_MKFIFO=1;
14846 HAVE_MKFIFOAT=1;
14847 HAVE_MKNOD=1;
14848 HAVE_MKNODAT=1;
14849 HAVE_UTIMENSAT=1;
14850 REPLACE_FSTAT=0;
14851 REPLACE_FSTATAT=0;
14852 REPLACE_FUTIMENS=0;
14853 REPLACE_LSTAT=0;
14854 REPLACE_MKDIR=0;
14855 REPLACE_MKFIFO=0;
14856 REPLACE_MKNOD=0;
14857 REPLACE_STAT=0;
14858 REPLACE_UTIMENSAT=0;
14859
14860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
14861$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
14862if ${ac_cv_header_stat_broken+:} false; then :
14863 $as_echo_n "(cached) " >&6
14864else
14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866/* end confdefs.h. */
14867#include <sys/types.h>
14868#include <sys/stat.h>
14869
14870#if defined S_ISBLK && defined S_IFDIR
14871extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14872#endif
14873
14874#if defined S_ISBLK && defined S_IFCHR
14875extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14876#endif
14877
14878#if defined S_ISLNK && defined S_IFREG
14879extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14880#endif
14881
14882#if defined S_ISSOCK && defined S_IFREG
14883extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14884#endif
14885
14886_ACEOF
14887if ac_fn_c_try_compile "$LINENO"; then :
14888 ac_cv_header_stat_broken=no
14889else
14890 ac_cv_header_stat_broken=yes
14891fi
14892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14893fi
14894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
14895$as_echo "$ac_cv_header_stat_broken" >&6; }
14896if test $ac_cv_header_stat_broken = yes; then
14897
14898$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
14899
14900fi
14901
14902
14903
1f5d53eb
PE
14904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14905$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14906if ${ac_cv_c_restrict+:} false; then :
d6974efa 14907 $as_echo_n "(cached) " >&6
e275c824 14908else
1f5d53eb
PE
14909 ac_cv_c_restrict=no
14910 # The order here caters to the fact that C++ does not require restrict.
14911 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d6974efa 14913/* end confdefs.h. */
1f5d53eb
PE
14914typedef int * int_ptr;
14915 int foo (int_ptr $ac_kw ip) {
14916 return ip[0];
14917 }
d6974efa
PE
14918int
14919main ()
14920{
1f5d53eb
PE
14921int s[1];
14922 int * $ac_kw t = s;
14923 t[0] = 0;
14924 return foo(t)
d6974efa
PE
14925 ;
14926 return 0;
14927}
e275c824 14928_ACEOF
1f5d53eb
PE
14929if ac_fn_c_try_compile "$LINENO"; then :
14930 ac_cv_c_restrict=$ac_kw
14931fi
14932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14933 test "$ac_cv_c_restrict" != no && break
14934 done
14935
14936fi
14937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14938$as_echo "$ac_cv_c_restrict" >&6; }
14939
14940 case $ac_cv_c_restrict in
14941 restrict) ;;
14942 no) $as_echo "#define restrict /**/" >>confdefs.h
14943 ;;
14944 *) cat >>confdefs.h <<_ACEOF
14945#define restrict $ac_cv_c_restrict
14946_ACEOF
14947 ;;
14948 esac
14949
14950
14951
14952
14953
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14955$as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14956if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
14957 $as_echo_n "(cached) " >&6
e275c824 14958else
d6974efa
PE
14959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960/* end confdefs.h. */
1f5d53eb
PE
14961#include <time.h>
14962
d6974efa
PE
14963int
14964main ()
14965{
1f5d53eb 14966static struct timespec x; x.tv_sec = x.tv_nsec;
d6974efa
PE
14967 ;
14968 return 0;
14969}
14970_ACEOF
14971if ac_fn_c_try_compile "$LINENO"; then :
1f5d53eb 14972 gl_cv_sys_struct_timespec_in_time_h=yes
e275c824 14973else
1f5d53eb 14974 gl_cv_sys_struct_timespec_in_time_h=no
e275c824 14975fi
d6974efa 14976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e275c824 14977fi
1f5d53eb
PE
14978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14979$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
e275c824 14980
1f5d53eb
PE
14981 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14982 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14983 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14984 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14985 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14986 else
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14988$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14989if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
14990 $as_echo_n "(cached) " >&6
e275c824
PE
14991else
14992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14993/* end confdefs.h. */
1f5d53eb 14994#include <sys/time.h>
e275c824 14995
e275c824
PE
14996int
14997main ()
14998{
1f5d53eb
PE
14999static struct timespec x; x.tv_sec = x.tv_nsec;
15000 ;
e275c824
PE
15001 return 0;
15002}
e275c824 15003_ACEOF
1f5d53eb
PE
15004if ac_fn_c_try_compile "$LINENO"; then :
15005 gl_cv_sys_struct_timespec_in_sys_time_h=yes
e275c824 15006else
1f5d53eb 15007 gl_cv_sys_struct_timespec_in_sys_time_h=no
e275c824 15008fi
1f5d53eb 15009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e275c824 15010fi
1f5d53eb
PE
15011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15012$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15013 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15014 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
15015 else
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15017$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
15018if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
e275c824 15019 $as_echo_n "(cached) " >&6
e275c824
PE
15020else
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022/* end confdefs.h. */
1f5d53eb 15023#include <pthread.h>
e275c824
PE
15024
15025int
15026main ()
15027{
1f5d53eb 15028static struct timespec x; x.tv_sec = x.tv_nsec;
e275c824
PE
15029 ;
15030 return 0;
15031}
15032_ACEOF
1f5d53eb
PE
15033if ac_fn_c_try_compile "$LINENO"; then :
15034 gl_cv_sys_struct_timespec_in_pthread_h=yes
e275c824 15035else
1f5d53eb 15036 gl_cv_sys_struct_timespec_in_pthread_h=no
e275c824 15037fi
1f5d53eb 15038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e275c824 15039fi
1f5d53eb
PE
15040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15041$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15042 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15043 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
15044 fi
e275c824
PE
15045 fi
15046 fi
15047
e275c824 15048
e275c824 15049
e275c824
PE
15050
15051
15052
e275c824
PE
15053
15054
15055
15056
15057
15058
15059
15060
e275c824 15061
1f5d53eb
PE
15062 if test $gl_cv_have_include_next = yes; then
15063 gl_cv_next_time_h='<'time.h'>'
15064 else
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15066$as_echo_n "checking absolute name of <time.h>... " >&6; }
15067if ${gl_cv_next_time_h+:} false; then :
15068 $as_echo_n "(cached) " >&6
15069else
e275c824 15070
1f5d53eb
PE
15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072/* end confdefs.h. */
15073#include <time.h>
e275c824 15074
1f5d53eb
PE
15075_ACEOF
15076 case "$host_os" in
15077 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15078 *) gl_absname_cpp="$ac_cpp" ;;
15079 esac
15080 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15081 sed -n '\#/time.h#{
15082 s#.*"\(.*/time.h\)".*#\1#
15083 s#^/[^/]#//&#
15084 p
15085 q
15086 }'`'"'
e275c824
PE
15087
15088
1f5d53eb
PE
15089fi
15090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15091$as_echo "$gl_cv_next_time_h" >&6; }
15092 fi
15093 NEXT_TIME_H=$gl_cv_next_time_h
e275c824 15094
1f5d53eb
PE
15095 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15096 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15097 gl_next_as_first_directive='<'time.h'>'
15098 else
15099 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15100 gl_next_as_first_directive=$gl_cv_next_time_h
15101 fi
15102 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
e275c824
PE
15103
15104
15105
e275c824
PE
15106
15107
15108
1f5d53eb
PE
15109ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
15110if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
15111 ac_have_decl=1
15112else
15113 ac_have_decl=0
15114fi
e275c824 15115
1f5d53eb
PE
15116cat >>confdefs.h <<_ACEOF
15117#define HAVE_DECL_LOCALTIME_R $ac_have_decl
15118_ACEOF
e275c824
PE
15119
15120
e275c824
PE
15121
15122
1f5d53eb
PE
15123 if false; then
15124 GL_COND_LIBTOOL_TRUE=
15125 GL_COND_LIBTOOL_FALSE='#'
67342916 15126else
1f5d53eb
PE
15127 GL_COND_LIBTOOL_TRUE='#'
15128 GL_COND_LIBTOOL_FALSE=
67342916 15129fi
67342916 15130
1f5d53eb
PE
15131 gl_cond_libtool=false
15132 gl_libdeps=
15133 gl_ltlibdeps=
15134 gl_m4_base='m4'
67342916 15135
67342916 15136
e275c824 15137
e275c824
PE
15138
15139
15140
15141
e275c824 15142
e275c824 15143
1f5d53eb
PE
15144 gl_source_base='lib'
15145 # Code from module arg-nonnull:
15146 # Code from module c++defs:
942f733f
PE
15147 # Code from module crypto/md5:
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157 gl_LIBOBJS="$gl_LIBOBJS md5.$ac_objext"
15158
15159
15160
15161
15162 :
15163
1f5d53eb 15164 # Code from module dtoastr:
e275c824 15165
1f5d53eb 15166 # Code from module extensions:
5fa4ac76
PE
15167 # Code from module filemode:
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178 gl_LIBOBJS="$gl_LIBOBJS filemode.$ac_objext"
15179
15180
15181
1f5d53eb 15182 # Code from module getloadavg:
e275c824
PE
15183
15184
1f5d53eb 15185# Persuade glibc <stdlib.h> to declare getloadavg().
e275c824 15186
e275c824 15187
1f5d53eb
PE
15188# Make sure getloadavg.c is where it belongs, at configure-time.
15189test -f "$srcdir/$gl_source_base/getloadavg.c" ||
15190 as_fn_error $? "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
e275c824 15191
1f5d53eb 15192gl_save_LIBS=$LIBS
e275c824 15193
7d315eb6
PE
15194# getloadvg is present in libc on glibc >= 2.2, MacOS X, FreeBSD >= 2.0,
15195# NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
1f5d53eb
PE
15196ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
15197if test "x$ac_cv_func_getloadavg" = xyes; then :
e275c824 15198
1f5d53eb
PE
15199else
15200 gl_have_func=no
15201
15202 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15203 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15204 # to get the right answer into the cache.
15205 # For kstat on solaris, we need to test for libelf and libkvm to force the
15206 # definition of SVR4 below.
15207 if test $gl_have_func = no; then
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
15209$as_echo_n "checking for elf_begin in -lelf... " >&6; }
15210if ${ac_cv_lib_elf_elf_begin+:} false; then :
16c3e636
PE
15211 $as_echo_n "(cached) " >&6
15212else
1f5d53eb
PE
15213 ac_check_lib_save_LIBS=$LIBS
15214LIBS="-lelf $LIBS"
15215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16c3e636
PE
15216/* end confdefs.h. */
15217
1f5d53eb
PE
15218/* Override any GCC internal prototype to avoid an error.
15219 Use char because int might match the return type of a GCC
15220 builtin and then its argument prototype would still apply. */
15221#ifdef __cplusplus
15222extern "C"
15223#endif
15224char elf_begin ();
15225int
15226main ()
15227{
15228return elf_begin ();
15229 ;
15230 return 0;
15231}
15232_ACEOF
15233if ac_fn_c_try_link "$LINENO"; then :
15234 ac_cv_lib_elf_elf_begin=yes
15235else
15236 ac_cv_lib_elf_elf_begin=no
15237fi
15238rm -f core conftest.err conftest.$ac_objext \
15239 conftest$ac_exeext conftest.$ac_ext
15240LIBS=$ac_check_lib_save_LIBS
15241fi
15242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
15243$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
15244if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
15245 LIBS="-lelf $LIBS"
15246fi
15247
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
15249$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
15250if ${ac_cv_lib_kvm_kvm_open+:} false; then :
15251 $as_echo_n "(cached) " >&6
15252else
15253 ac_check_lib_save_LIBS=$LIBS
15254LIBS="-lkvm $LIBS"
15255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256/* end confdefs.h. */
16c3e636 15257
1f5d53eb
PE
15258/* Override any GCC internal prototype to avoid an error.
15259 Use char because int might match the return type of a GCC
15260 builtin and then its argument prototype would still apply. */
15261#ifdef __cplusplus
15262extern "C"
15263#endif
15264char kvm_open ();
16c3e636
PE
15265int
15266main ()
15267{
1f5d53eb 15268return kvm_open ();
16c3e636
PE
15269 ;
15270 return 0;
15271}
15272_ACEOF
1f5d53eb
PE
15273if ac_fn_c_try_link "$LINENO"; then :
15274 ac_cv_lib_kvm_kvm_open=yes
16c3e636 15275else
1f5d53eb 15276 ac_cv_lib_kvm_kvm_open=no
16c3e636 15277fi
1f5d53eb
PE
15278rm -f core conftest.err conftest.$ac_objext \
15279 conftest$ac_exeext conftest.$ac_ext
15280LIBS=$ac_check_lib_save_LIBS
16c3e636 15281fi
1f5d53eb
PE
15282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
15283$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
15284if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
15285 LIBS="-lkvm $LIBS"
16c3e636
PE
15286fi
15287
1f5d53eb
PE
15288 # Check for the 4.4BSD definition of getloadavg.
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
15290$as_echo_n "checking for getloadavg in -lutil... " >&6; }
15291if ${ac_cv_lib_util_getloadavg+:} false; then :
1fd182f0
PE
15292 $as_echo_n "(cached) " >&6
15293else
1f5d53eb
PE
15294 ac_check_lib_save_LIBS=$LIBS
15295LIBS="-lutil $LIBS"
15296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15297/* end confdefs.h. */
1f5d53eb
PE
15298
15299/* Override any GCC internal prototype to avoid an error.
15300 Use char because int might match the return type of a GCC
15301 builtin and then its argument prototype would still apply. */
15302#ifdef __cplusplus
15303extern "C"
15304#endif
15305char getloadavg ();
1fd182f0
PE
15306int
15307main ()
15308{
1f5d53eb 15309return getloadavg ();
1fd182f0
PE
15310 ;
15311 return 0;
15312}
15313_ACEOF
1f5d53eb
PE
15314if ac_fn_c_try_link "$LINENO"; then :
15315 ac_cv_lib_util_getloadavg=yes
1fd182f0 15316else
1f5d53eb 15317 ac_cv_lib_util_getloadavg=no
1fd182f0 15318fi
1f5d53eb
PE
15319rm -f core conftest.err conftest.$ac_objext \
15320 conftest$ac_exeext conftest.$ac_ext
15321LIBS=$ac_check_lib_save_LIBS
1fd182f0 15322fi
1f5d53eb
PE
15323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
15324$as_echo "$ac_cv_lib_util_getloadavg" >&6; }
15325if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
15326 LIBS="-lutil $LIBS" gl_have_func=yes
16c3e636
PE
15327fi
15328
1f5d53eb 15329 fi
16c3e636 15330
1f5d53eb
PE
15331 if test $gl_have_func = no; then
15332 # There is a commonly available library for RS/6000 AIX.
15333 # Since it is not a standard part of AIX, it might be installed locally.
15334 gl_getloadavg_LIBS=$LIBS
15335 LIBS="-L/usr/local/lib $LIBS"
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
15337$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
15338if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
1fd182f0
PE
15339 $as_echo_n "(cached) " >&6
15340else
1f5d53eb
PE
15341 ac_check_lib_save_LIBS=$LIBS
15342LIBS="-lgetloadavg $LIBS"
15343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15344/* end confdefs.h. */
1f5d53eb
PE
15345
15346/* Override any GCC internal prototype to avoid an error.
15347 Use char because int might match the return type of a GCC
15348 builtin and then its argument prototype would still apply. */
15349#ifdef __cplusplus
15350extern "C"
15351#endif
15352char getloadavg ();
1fd182f0
PE
15353int
15354main ()
15355{
1f5d53eb 15356return getloadavg ();
1fd182f0
PE
15357 ;
15358 return 0;
15359}
15360_ACEOF
1f5d53eb
PE
15361if ac_fn_c_try_link "$LINENO"; then :
15362 ac_cv_lib_getloadavg_getloadavg=yes
15363else
15364 ac_cv_lib_getloadavg_getloadavg=no
1fd182f0 15365fi
1f5d53eb
PE
15366rm -f core conftest.err conftest.$ac_objext \
15367 conftest$ac_exeext conftest.$ac_ext
15368LIBS=$ac_check_lib_save_LIBS
15369fi
15370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15371$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
15372if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
15373 LIBS="-lgetloadavg $LIBS" gl_have_func=yes
15374else
15375 LIBS=$gl_getloadavg_LIBS
1fd182f0 15376fi
1fd182f0 15377
1f5d53eb 15378 fi
1fd182f0 15379
1f5d53eb
PE
15380 # Set up the replacement function if necessary.
15381 if test $gl_have_func = no; then
1fd182f0
PE
15382
15383
15384
15385
1f5d53eb
PE
15386
15387
15388
15389
15390 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
15391
15392
15393# Figure out what our getloadavg.c needs.
15394
15395# Solaris has libkstat which does not require root.
15396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
15397$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
15398if ${ac_cv_lib_kstat_kstat_open+:} false; then :
1fd182f0
PE
15399 $as_echo_n "(cached) " >&6
15400else
1f5d53eb
PE
15401 ac_check_lib_save_LIBS=$LIBS
15402LIBS="-lkstat $LIBS"
15403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15404/* end confdefs.h. */
1fd182f0 15405
1f5d53eb
PE
15406/* Override any GCC internal prototype to avoid an error.
15407 Use char because int might match the return type of a GCC
15408 builtin and then its argument prototype would still apply. */
15409#ifdef __cplusplus
15410extern "C"
15411#endif
15412char kstat_open ();
1fd182f0
PE
15413int
15414main ()
15415{
1f5d53eb 15416return kstat_open ();
1fd182f0
PE
15417 ;
15418 return 0;
15419}
15420_ACEOF
1f5d53eb
PE
15421if ac_fn_c_try_link "$LINENO"; then :
15422 ac_cv_lib_kstat_kstat_open=yes
1fd182f0 15423else
1f5d53eb 15424 ac_cv_lib_kstat_kstat_open=no
1fd182f0 15425fi
1f5d53eb
PE
15426rm -f core conftest.err conftest.$ac_objext \
15427 conftest$ac_exeext conftest.$ac_ext
15428LIBS=$ac_check_lib_save_LIBS
1fd182f0 15429fi
1f5d53eb
PE
15430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
15431$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
15432if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
15433 cat >>confdefs.h <<_ACEOF
15434#define HAVE_LIBKSTAT 1
15435_ACEOF
1fd182f0 15436
1f5d53eb
PE
15437 LIBS="-lkstat $LIBS"
15438
15439fi
15440
15441test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
15442
15443# On HPUX9, an unprivileged user can get load averages this way.
15444if test $gl_have_func = no; then
15445 for ac_func in pstat_getdynamic
15446do :
15447 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
15448if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
15449 cat >>confdefs.h <<_ACEOF
15450#define HAVE_PSTAT_GETDYNAMIC 1
15451_ACEOF
15452 gl_have_func=yes
15453fi
15454done
15455
15456fi
15457
15458# AIX has libperfstat which does not require root
15459if test $gl_have_func = no; then
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
15461$as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
15462if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false; then :
1fd182f0
PE
15463 $as_echo_n "(cached) " >&6
15464else
1f5d53eb
PE
15465 ac_check_lib_save_LIBS=$LIBS
15466LIBS="-lperfstat $LIBS"
15467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15468/* end confdefs.h. */
1fd182f0 15469
1f5d53eb
PE
15470/* Override any GCC internal prototype to avoid an error.
15471 Use char because int might match the return type of a GCC
15472 builtin and then its argument prototype would still apply. */
15473#ifdef __cplusplus
15474extern "C"
15475#endif
15476char perfstat_cpu_total ();
1fd182f0
PE
15477int
15478main ()
15479{
1f5d53eb 15480return perfstat_cpu_total ();
1fd182f0
PE
15481 ;
15482 return 0;
15483}
15484_ACEOF
1f5d53eb
PE
15485if ac_fn_c_try_link "$LINENO"; then :
15486 ac_cv_lib_perfstat_perfstat_cpu_total=yes
1fd182f0 15487else
1f5d53eb 15488 ac_cv_lib_perfstat_perfstat_cpu_total=no
1fd182f0 15489fi
1f5d53eb
PE
15490rm -f core conftest.err conftest.$ac_objext \
15491 conftest$ac_exeext conftest.$ac_ext
15492LIBS=$ac_check_lib_save_LIBS
1fd182f0 15493fi
1f5d53eb
PE
15494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
15495$as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
15496if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes; then :
15497 cat >>confdefs.h <<_ACEOF
15498#define HAVE_LIBPERFSTAT 1
15499_ACEOF
15500
15501 LIBS="-lperfstat $LIBS"
15502
15503fi
15504
15505 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
15506fi
15507
15508if test $gl_have_func = no; then
15509 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
15510if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
15511 gl_have_func=yes
15512
15513$as_echo "#define DGUX 1" >>confdefs.h
15514
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
15516$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
15517if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
1fd182f0
PE
15518 $as_echo_n "(cached) " >&6
15519else
1f5d53eb
PE
15520 ac_check_lib_save_LIBS=$LIBS
15521LIBS="-ldgc $LIBS"
15522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0 15523/* end confdefs.h. */
1fd182f0 15524
1f5d53eb
PE
15525/* Override any GCC internal prototype to avoid an error.
15526 Use char because int might match the return type of a GCC
15527 builtin and then its argument prototype would still apply. */
15528#ifdef __cplusplus
15529extern "C"
15530#endif
15531char dg_sys_info ();
1fd182f0
PE
15532int
15533main ()
15534{
1f5d53eb 15535return dg_sys_info ();
1fd182f0
PE
15536 ;
15537 return 0;
15538}
15539_ACEOF
1f5d53eb
PE
15540if ac_fn_c_try_link "$LINENO"; then :
15541 ac_cv_lib_dgc_dg_sys_info=yes
1fd182f0 15542else
1f5d53eb 15543 ac_cv_lib_dgc_dg_sys_info=no
1fd182f0 15544fi
1f5d53eb
PE
15545rm -f core conftest.err conftest.$ac_objext \
15546 conftest$ac_exeext conftest.$ac_ext
15547LIBS=$ac_check_lib_save_LIBS
1fd182f0 15548fi
1f5d53eb
PE
15549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
15550$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
15551if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
15552 cat >>confdefs.h <<_ACEOF
15553#define HAVE_LIBDGC 1
15554_ACEOF
1fd182f0 15555
1f5d53eb 15556 LIBS="-ldgc $LIBS"
1fd182f0 15557
1f5d53eb 15558fi
1fd182f0 15559
1f5d53eb 15560fi
1fd182f0
PE
15561
15562
1f5d53eb 15563fi
1fd182f0 15564
1f5d53eb
PE
15565# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
15566# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
15567# Irix 4.0.5F has the header but not the library.
15568if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
15569 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
15570 gl_have_func=yes
1fd182f0 15571
1f5d53eb 15572$as_echo "#define SVR4 1" >>confdefs.h
1fd182f0 15573
1f5d53eb 15574fi
1fd182f0 15575
1f5d53eb
PE
15576if test $gl_have_func = no; then
15577 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
15578if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
15579 gl_have_func=yes
1fd182f0 15580
1f5d53eb 15581$as_echo "#define UMAX 1" >>confdefs.h
1fd182f0
PE
15582
15583
1f5d53eb 15584$as_echo "#define UMAX4_3 1" >>confdefs.h
1fd182f0 15585
1f5d53eb 15586fi
b06b1098
PE
15587
15588
1f5d53eb 15589fi
1fd182f0 15590
1f5d53eb
PE
15591if test $gl_have_func = no; then
15592 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
15593if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
15594 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
1fd182f0 15595
1f5d53eb 15596fi
b06b1098 15597
1fd182f0
PE
15598
15599fi
1fd182f0 15600
1f5d53eb
PE
15601if test $gl_have_func = no; then
15602 for ac_header in mach/mach.h
15603do :
15604 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15605if test "x$ac_cv_header_mach_mach_h" = xyes; then :
15606 cat >>confdefs.h <<_ACEOF
15607#define HAVE_MACH_MACH_H 1
15608_ACEOF
1fd182f0 15609
1f5d53eb 15610fi
1fd182f0 15611
1f5d53eb 15612done
1fd182f0 15613
1f5d53eb 15614fi
1fd182f0 15615
1f5d53eb
PE
15616for ac_header in nlist.h
15617do :
15618 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
15619if test "x$ac_cv_header_nlist_h" = xyes; then :
15620 cat >>confdefs.h <<_ACEOF
15621#define HAVE_NLIST_H 1
15622_ACEOF
15623 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
15624"
15625if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
15626
15627cat >>confdefs.h <<_ACEOF
15628#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
15629_ACEOF
1fd182f0 15630
b06b1098 15631
1fd182f0
PE
15632fi
15633
1f5d53eb
PE
15634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15635/* end confdefs.h. */
15636#include <nlist.h>
15637int
15638main ()
15639{
15640struct nlist x;
15641 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
15642 x.n_un.n_name = "";
15643 #else
15644 x.n_name = "";
15645 #endif
15646 ;
15647 return 0;
15648}
1fd182f0 15649_ACEOF
1f5d53eb
PE
15650if ac_fn_c_try_link "$LINENO"; then :
15651
15652$as_echo "#define N_NAME_POINTER 1" >>confdefs.h
15653
15654fi
15655rm -f core conftest.err conftest.$ac_objext \
15656 conftest$ac_exeext conftest.$ac_ext
1fd182f0 15657
1f5d53eb 15658fi
1fd182f0 15659
1f5d53eb 15660done
1fd182f0 15661
1f5d53eb
PE
15662 fi
15663fi
1fd182f0 15664
1f5d53eb
PE
15665
15666if test "x$gl_save_LIBS" = x; then
15667 GETLOADAVG_LIBS=$LIBS
1fd182f0 15668else
1f5d53eb 15669 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
1fd182f0 15670fi
1f5d53eb 15671LIBS=$gl_save_LIBS
1fd182f0 15672
1fd182f0 15673
1f5d53eb
PE
15674# Test whether the system declares getloadavg. Solaris has the function
15675# but declares it in <sys/loadavg.h>, not <stdlib.h>.
15676for ac_header in sys/loadavg.h
15677do :
15678 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
15679if test "x$ac_cv_header_sys_loadavg_h" = xyes; then :
15680 cat >>confdefs.h <<_ACEOF
15681#define HAVE_SYS_LOADAVG_H 1
15682_ACEOF
15683
15684fi
1fd182f0 15685
1f5d53eb 15686done
1fd182f0 15687
1f5d53eb
PE
15688if test $ac_cv_header_sys_loadavg_h = yes; then
15689 HAVE_SYS_LOADAVG_H=1
15690else
15691 HAVE_SYS_LOADAVG_H=0
15692fi
15693ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
15694 # include <sys/loadavg.h>
15695 #endif
15696 #include <stdlib.h>
15697"
15698if test "x$ac_cv_have_decl_getloadavg" = xyes; then :
1fd182f0 15699
1f5d53eb
PE
15700else
15701 HAVE_DECL_GETLOADAVG=0
15702fi
1fd182f0
PE
15703
15704
15705
15706
15707
1f5d53eb
PE
15708 GNULIB_GETLOADAVG=1
15709
15710
1fd182f0 15711
e275c824
PE
15712 # Code from module getopt-gnu:
15713
15714
15715
15716
15717
15718
e275c824
PE
15719 # Code from module getopt-posix:
15720
15721
15722
15723
15724
15725 if test -n "$gl_replace_getopt"; then :
15726
15727
15728
15729 GETOPT_H=getopt.h
15730
15731$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15732
15733
15734
15735 GNULIB_UNISTD_H_GETOPT=1
15736
15737
15738
15739
15740
15741
15742
15743
15744 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15755
15756
15757
15758
15759
15760
15761fi
15762
15763
15764 # Code from module gettext-h:
15765
15766
67342916
PE
15767 # Code from module ignore-value:
15768
1fd182f0
PE
15769 # Code from module include_next:
15770 # Code from module intprops:
15771 # Code from module mktime:
15772
15773
15774
15775
15776
15777if test $APPLE_UNIVERSAL_BUILD = 1; then
15778 # A universal build on Apple MacOS X platforms.
15779 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15780 # But we need a configuration result that is valid in both modes.
15781 ac_cv_func_working_mktime=no
15782fi
15783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15784$as_echo_n "checking for working mktime... " >&6; }
d6974efa 15785if ${ac_cv_func_working_mktime+:} false; then :
1fd182f0
PE
15786 $as_echo_n "(cached) " >&6
15787else
15788 if test "$cross_compiling" = yes; then :
15789 ac_cv_func_working_mktime=no
15790else
15791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15792/* end confdefs.h. */
15793/* Test program from Paul Eggert and Tony Leneis. */
15794#include <limits.h>
15795#include <stdlib.h>
15796#include <time.h>
15797
15798#ifdef HAVE_UNISTD_H
15799# include <unistd.h>
15800#endif
15801
15802#ifndef HAVE_ALARM
15803# define alarm(X) /* empty */
15804#endif
15805
15806/* Work around redefinition to rpl_putenv by other config tests. */
15807#undef putenv
15808
15809static time_t time_t_max;
15810static time_t time_t_min;
15811
15812/* Values we'll use to set the TZ environment variable. */
15813static char *tz_strings[] = {
15814 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15815 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15816};
15817#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15818
15819/* Return 0 if mktime fails to convert a date in the spring-forward gap.
15820 Based on a problem report from Andreas Jaeger. */
15821static int
15822spring_forward_gap ()
15823{
15824 /* glibc (up to about 1998-10-07) failed this test. */
15825 struct tm tm;
15826
15827 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15828 instead of "TZ=America/Vancouver" in order to detect the bug even
15829 on systems that don't support the Olson extension, or don't have the
15830 full zoneinfo tables installed. */
15831 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15832
15833 tm.tm_year = 98;
15834 tm.tm_mon = 3;
15835 tm.tm_mday = 5;
15836 tm.tm_hour = 2;
15837 tm.tm_min = 0;
15838 tm.tm_sec = 0;
15839 tm.tm_isdst = -1;
15840 return mktime (&tm) != (time_t) -1;
15841}
15842
15843static int
15844mktime_test1 (time_t now)
15845{
15846 struct tm *lt;
15847 return ! (lt = localtime (&now)) || mktime (lt) == now;
15848}
15849
15850static int
15851mktime_test (time_t now)
15852{
15853 return (mktime_test1 (now)
15854 && mktime_test1 ((time_t) (time_t_max - now))
15855 && mktime_test1 ((time_t) (time_t_min + now)));
15856}
15857
15858static int
15859irix_6_4_bug ()
15860{
15861 /* Based on code from Ariel Faigon. */
15862 struct tm tm;
15863 tm.tm_year = 96;
15864 tm.tm_mon = 3;
15865 tm.tm_mday = 0;
15866 tm.tm_hour = 0;
15867 tm.tm_min = 0;
15868 tm.tm_sec = 0;
15869 tm.tm_isdst = -1;
15870 mktime (&tm);
15871 return tm.tm_mon == 2 && tm.tm_mday == 31;
15872}
15873
15874static int
15875bigtime_test (int j)
15876{
15877 struct tm tm;
15878 time_t now;
15879 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15880 now = mktime (&tm);
15881 if (now != (time_t) -1)
15882 {
15883 struct tm *lt = localtime (&now);
15884 if (! (lt
15885 && lt->tm_year == tm.tm_year
15886 && lt->tm_mon == tm.tm_mon
15887 && lt->tm_mday == tm.tm_mday
15888 && lt->tm_hour == tm.tm_hour
15889 && lt->tm_min == tm.tm_min
15890 && lt->tm_sec == tm.tm_sec
15891 && lt->tm_yday == tm.tm_yday
15892 && lt->tm_wday == tm.tm_wday
15893 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15894 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15895 return 0;
15896 }
15897 return 1;
15898}
15899
15900static int
15901year_2050_test ()
15902{
15903 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15904 ignoring leap seconds. */
15905 unsigned long int answer = 2527315200UL;
15906
15907 struct tm tm;
15908 time_t t;
15909 tm.tm_year = 2050 - 1900;
15910 tm.tm_mon = 2 - 1;
15911 tm.tm_mday = 1;
15912 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15913 tm.tm_isdst = -1;
15914
15915 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15916 instead of "TZ=America/Vancouver" in order to detect the bug even
15917 on systems that don't support the Olson extension, or don't have the
15918 full zoneinfo tables installed. */
15919 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15920
15921 t = mktime (&tm);
15922
15923 /* Check that the result is either a failure, or close enough
15924 to the correct answer that we can assume the discrepancy is
15925 due to leap seconds. */
15926 return (t == (time_t) -1
15927 || (0 < t && answer - 120 <= t && t <= answer + 120));
15928}
15929
15930int
15931main ()
15932{
15933 int result = 0;
15934 time_t t, delta;
15935 int i, j;
3de84ad9
PE
15936 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
15937 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
1fd182f0
PE
15938
15939 /* This test makes some buggy mktime implementations loop.
15940 Give up after 60 seconds; a mktime slower than that
15941 isn't worth using anyway. */
15942 alarm (60);
15943
3de84ad9
PE
15944 time_t_max = (! time_t_signed
15945 ? (time_t) -1
15946 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
15947 * 2 + 1));
15948 time_t_min = (! time_t_signed
15949 ? (time_t) 0
15950 : time_t_signed_magnitude
15951 ? ~ (time_t) 0
15952 : ~ time_t_max);
1fd182f0
PE
15953
15954 delta = time_t_max / 997; /* a suitable prime number */
15955 for (i = 0; i < N_STRINGS; i++)
15956 {
15957 if (tz_strings[i])
15958 putenv (tz_strings[i]);
15959
15960 for (t = 0; t <= time_t_max - delta; t += delta)
15961 if (! mktime_test (t))
15962 result |= 1;
15963 if (! (mktime_test ((time_t) 1)
15964 && mktime_test ((time_t) (60 * 60))
15965 && mktime_test ((time_t) (60 * 60 * 24))))
15966 result |= 2;
15967
15968 for (j = 1; ; j <<= 1)
15969 if (! bigtime_test (j))
15970 result |= 4;
15971 else if (INT_MAX / 2 < j)
15972 break;
15973 if (! bigtime_test (INT_MAX))
15974 result |= 8;
15975 }
15976 if (! irix_6_4_bug ())
15977 result |= 16;
15978 if (! spring_forward_gap ())
15979 result |= 32;
15980 if (! year_2050_test ())
15981 result |= 64;
15982 return result;
15983}
15984_ACEOF
15985if ac_fn_c_try_run "$LINENO"; then :
15986 ac_cv_func_working_mktime=yes
15987else
15988 ac_cv_func_working_mktime=no
15989fi
15990rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15991 conftest.$ac_objext conftest.beam conftest.$ac_ext
067d23c9 15992fi
067d23c9 15993
1fd182f0
PE
15994fi
15995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15996$as_echo "$ac_cv_func_working_mktime" >&6; }
15997if test $ac_cv_func_working_mktime = no; then
067d23c9 15998
067d23c9 15999
067d23c9
KY
16000
16001
067d23c9 16002
067d23c9
KY
16003
16004
16005
1fd182f0 16006 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
067d23c9 16007
1fd182f0 16008fi
067d23c9 16009
1fd182f0
PE
16010 if test $ac_cv_func_working_mktime = no; then
16011 REPLACE_MKTIME=1
067d23c9
KY
16012
16013
16014
1fd182f0
PE
16015 else
16016 REPLACE_MKTIME=0
16017 fi
067d23c9
KY
16018
16019
16020
067d23c9 16021
1fd182f0 16022 GNULIB_MKTIME=1
067d23c9
KY
16023
16024
16025
1fd182f0 16026 # Code from module multiarch:
067d23c9 16027
16c3e636
PE
16028 # Code from module stdbool:
16029
16030
16031
16032 # Define two additional variables used in the Makefile substitution.
16033
16034 if test "$ac_cv_header_stdbool_h" = yes; then
16035 STDBOOL_H=''
16036 else
16037 STDBOOL_H='stdbool.h'
16038 fi
16039
16040
16041 if test "$ac_cv_type__Bool" = yes; then
16042 HAVE__BOOL=1
16043 else
16044 HAVE__BOOL=0
16045 fi
16046
16047
1fd182f0 16048 # Code from module stddef:
067d23c9 16049
067d23c9 16050
067d23c9 16051
1fd182f0
PE
16052 if test $gt_cv_c_wchar_t = no; then
16053 HAVE_WCHAR_T=0
16054 STDDEF_H=stddef.h
067d23c9 16055 fi
1fd182f0
PE
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16057$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
d6974efa 16058if ${gl_cv_decl_null_works+:} false; then :
067d23c9 16059 $as_echo_n "(cached) " >&6
067d23c9
KY
16060else
16061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062/* end confdefs.h. */
1fd182f0
PE
16063#include <stddef.h>
16064 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16065
067d23c9
KY
16066int
16067main ()
16068{
16069
067d23c9
KY
16070 ;
16071 return 0;
16072}
16073_ACEOF
1fd182f0
PE
16074if ac_fn_c_try_compile "$LINENO"; then :
16075 gl_cv_decl_null_works=yes
067d23c9 16076else
1fd182f0 16077 gl_cv_decl_null_works=no
067d23c9 16078fi
1fd182f0 16079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
067d23c9 16080fi
1fd182f0
PE
16081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16082$as_echo "$gl_cv_decl_null_works" >&6; }
16083 if test $gl_cv_decl_null_works = no; then
16084 REPLACE_NULL=1
16085 STDDEF_H=stddef.h
16086 fi
16087 if test -n "$STDDEF_H"; then
16088
16089
16090
16091
16092
16093
b06b1098
PE
16094
16095
1fd182f0
PE
16096 if test $gl_cv_have_include_next = yes; then
16097 gl_cv_next_stddef_h='<'stddef.h'>'
16098 else
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16100$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
d6974efa 16101if ${gl_cv_next_stddef_h+:} false; then :
1fd182f0
PE
16102 $as_echo_n "(cached) " >&6
16103else
16104
b06b1098 16105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1fd182f0
PE
16106/* end confdefs.h. */
16107#include <stddef.h>
16108
16109_ACEOF
b06b1098
PE
16110 case "$host_os" in
16111 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16112 *) gl_absname_cpp="$ac_cpp" ;;
16113 esac
16114 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16115 sed -n '\#/stddef.h#{
16116 s#.*"\(.*/stddef.h\)".*#\1#
16117 s#^/[^/]#//&#
16118 p
16119 q
16120 }'`'"'
16121
067d23c9
KY
16122
16123fi
1fd182f0
PE
16124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16125$as_echo "$gl_cv_next_stddef_h" >&6; }
16126 fi
16127 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16128
16129 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16130 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16131 gl_next_as_first_directive='<'stddef.h'>'
16132 else
16133 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16134 gl_next_as_first_directive=$gl_cv_next_stddef_h
16135 fi
16136 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16137
16138
16139
b06b1098 16140
067d23c9
KY
16141 fi
16142
5f90be1b
PE
16143 # Code from module stdint:
16144
16145
16146
16147 if test $ac_cv_type_long_long_int = yes; then
16148 HAVE_LONG_LONG_INT=1
16149 else
16150 HAVE_LONG_LONG_INT=0
16151 fi
16152
16153
16154 if test $ac_cv_type_unsigned_long_long_int = yes; then
16155 HAVE_UNSIGNED_LONG_LONG_INT=1
16156 else
16157 HAVE_UNSIGNED_LONG_LONG_INT=0
16158 fi
16159
16160
16161
16162 if test $ac_cv_header_wchar_h = yes; then
16163 HAVE_WCHAR_H=1
16164 else
16165 HAVE_WCHAR_H=0
16166 fi
16167
16168
16169 if test $ac_cv_header_inttypes_h = yes; then
16170 HAVE_INTTYPES_H=1
16171 else
16172 HAVE_INTTYPES_H=0
16173 fi
16174
16175
16176 if test $ac_cv_header_sys_types_h = yes; then
16177 HAVE_SYS_TYPES_H=1
16178 else
16179 HAVE_SYS_TYPES_H=0
16180 fi
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192 if test $gl_cv_have_include_next = yes; then
16193 gl_cv_next_stdint_h='<'stdint.h'>'
16194 else
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
16196$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16197if ${gl_cv_next_stdint_h+:} false; then :
16198 $as_echo_n "(cached) " >&6
16199else
16200
16201 if test $ac_cv_header_stdint_h = yes; then
16202
16203
16204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16205/* end confdefs.h. */
16206#include <stdint.h>
16207
16208_ACEOF
16209 case "$host_os" in
16210 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16211 *) gl_absname_cpp="$ac_cpp" ;;
16212 esac
16213 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16214 sed -n '\#/stdint.h#{
16215 s#.*"\(.*/stdint.h\)".*#\1#
16216 s#^/[^/]#//&#
16217 p
16218 q
16219 }'`'"'
16220 else
16221 gl_cv_next_stdint_h='<'stdint.h'>'
16222 fi
16223
16224
16225fi
16226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
16227$as_echo "$gl_cv_next_stdint_h" >&6; }
16228 fi
16229 NEXT_STDINT_H=$gl_cv_next_stdint_h
16230
16231 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16232 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16233 gl_next_as_first_directive='<'stdint.h'>'
16234 else
16235 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16236 gl_next_as_first_directive=$gl_cv_next_stdint_h
16237 fi
16238 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16239
16240
16241
16242
16243 if test $ac_cv_header_stdint_h = yes; then
16244 HAVE_STDINT_H=1
16245 else
16246 HAVE_STDINT_H=0
16247 fi
16248
16249
16250 if test $ac_cv_header_stdint_h = yes; then
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
16252$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16253if ${gl_cv_header_working_stdint_h+:} false; then :
16254 $as_echo_n "(cached) " >&6
16255else
16256 gl_cv_header_working_stdint_h=no
16257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16258/* end confdefs.h. */
16259
16260
16261#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16262#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16263#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16264#include <stdint.h>
16265/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
16266#if !(defined WCHAR_MIN && defined WCHAR_MAX)
16267#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16268#endif
16269
16270
16271 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16272 included before <wchar.h>. */
16273 #include <stddef.h>
16274 #include <signal.h>
16275 #if HAVE_WCHAR_H
16276 # include <stdio.h>
16277 # include <time.h>
16278 # include <wchar.h>
16279 #endif
16280
16281
16282#ifdef INT8_MAX
16283int8_t a1 = INT8_MAX;
16284int8_t a1min = INT8_MIN;
16285#endif
16286#ifdef INT16_MAX
16287int16_t a2 = INT16_MAX;
16288int16_t a2min = INT16_MIN;
16289#endif
16290#ifdef INT32_MAX
16291int32_t a3 = INT32_MAX;
16292int32_t a3min = INT32_MIN;
16293#endif
16294#ifdef INT64_MAX
16295int64_t a4 = INT64_MAX;
16296int64_t a4min = INT64_MIN;
16297#endif
16298#ifdef UINT8_MAX
16299uint8_t b1 = UINT8_MAX;
16300#else
16301typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16302#endif
16303#ifdef UINT16_MAX
16304uint16_t b2 = UINT16_MAX;
16305#endif
16306#ifdef UINT32_MAX
16307uint32_t b3 = UINT32_MAX;
16308#endif
16309#ifdef UINT64_MAX
16310uint64_t b4 = UINT64_MAX;
16311#endif
16312int_least8_t c1 = INT8_C (0x7f);
16313int_least8_t c1max = INT_LEAST8_MAX;
16314int_least8_t c1min = INT_LEAST8_MIN;
16315int_least16_t c2 = INT16_C (0x7fff);
16316int_least16_t c2max = INT_LEAST16_MAX;
16317int_least16_t c2min = INT_LEAST16_MIN;
16318int_least32_t c3 = INT32_C (0x7fffffff);
16319int_least32_t c3max = INT_LEAST32_MAX;
16320int_least32_t c3min = INT_LEAST32_MIN;
16321int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16322int_least64_t c4max = INT_LEAST64_MAX;
16323int_least64_t c4min = INT_LEAST64_MIN;
16324uint_least8_t d1 = UINT8_C (0xff);
16325uint_least8_t d1max = UINT_LEAST8_MAX;
16326uint_least16_t d2 = UINT16_C (0xffff);
16327uint_least16_t d2max = UINT_LEAST16_MAX;
16328uint_least32_t d3 = UINT32_C (0xffffffff);
16329uint_least32_t d3max = UINT_LEAST32_MAX;
16330uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16331uint_least64_t d4max = UINT_LEAST64_MAX;
16332int_fast8_t e1 = INT_FAST8_MAX;
16333int_fast8_t e1min = INT_FAST8_MIN;
16334int_fast16_t e2 = INT_FAST16_MAX;
16335int_fast16_t e2min = INT_FAST16_MIN;
16336int_fast32_t e3 = INT_FAST32_MAX;
16337int_fast32_t e3min = INT_FAST32_MIN;
16338int_fast64_t e4 = INT_FAST64_MAX;
16339int_fast64_t e4min = INT_FAST64_MIN;
16340uint_fast8_t f1 = UINT_FAST8_MAX;
16341uint_fast16_t f2 = UINT_FAST16_MAX;
16342uint_fast32_t f3 = UINT_FAST32_MAX;
16343uint_fast64_t f4 = UINT_FAST64_MAX;
16344#ifdef INTPTR_MAX
16345intptr_t g = INTPTR_MAX;
16346intptr_t gmin = INTPTR_MIN;
16347#endif
16348#ifdef UINTPTR_MAX
16349uintptr_t h = UINTPTR_MAX;
16350#endif
16351intmax_t i = INTMAX_MAX;
16352uintmax_t j = UINTMAX_MAX;
16353
16354#include <limits.h> /* for CHAR_BIT */
16355#define TYPE_MINIMUM(t) \
16356 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16357#define TYPE_MAXIMUM(t) \
16358 ((t) ((t) 0 < (t) -1 \
16359 ? (t) -1 \
16360 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16361struct s {
16362 int check_PTRDIFF:
16363 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16364 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16365 ? 1 : -1;
16366 /* Detect bug in FreeBSD 6.0 / ia64. */
16367 int check_SIG_ATOMIC:
16368 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16369 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16370 ? 1 : -1;
16371 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16372 int check_WCHAR:
16373 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16374 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16375 ? 1 : -1;
16376 /* Detect bug in mingw. */
16377 int check_WINT:
16378 WINT_MIN == TYPE_MINIMUM (wint_t)
16379 && WINT_MAX == TYPE_MAXIMUM (wint_t)
16380 ? 1 : -1;
16381
16382 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
16383 int check_UINT8_C:
16384 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16385 int check_UINT16_C:
16386 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16387
16388 /* Detect bugs in OpenBSD 3.9 stdint.h. */
16389#ifdef UINT8_MAX
16390 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16391#endif
16392#ifdef UINT16_MAX
16393 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16394#endif
16395#ifdef UINT32_MAX
16396 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16397#endif
16398#ifdef UINT64_MAX
16399 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16400#endif
16401 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16402 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16403 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16404 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16405 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16406 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16407 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16408 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16409 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16410 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16411 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16412};
16413
16414int
16415main ()
16416{
16417
16418 ;
16419 return 0;
16420}
16421_ACEOF
16422if ac_fn_c_try_compile "$LINENO"; then :
16423 if test "$cross_compiling" = yes; then :
16424 gl_cv_header_working_stdint_h=yes
16425
16426else
16427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16428/* end confdefs.h. */
16429
16430
16431#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16432#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16433#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16434#include <stdint.h>
16435
16436
16437 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16438 included before <wchar.h>. */
16439 #include <stddef.h>
16440 #include <signal.h>
16441 #if HAVE_WCHAR_H
16442 # include <stdio.h>
16443 # include <time.h>
16444 # include <wchar.h>
16445 #endif
16446
16447
16448#include <stdio.h>
16449#include <string.h>
16450#define MVAL(macro) MVAL1(macro)
16451#define MVAL1(expression) #expression
16452static const char *macro_values[] =
16453 {
16454#ifdef INT8_MAX
16455 MVAL (INT8_MAX),
16456#endif
16457#ifdef INT16_MAX
16458 MVAL (INT16_MAX),
16459#endif
16460#ifdef INT32_MAX
16461 MVAL (INT32_MAX),
16462#endif
16463#ifdef INT64_MAX
16464 MVAL (INT64_MAX),
16465#endif
16466#ifdef UINT8_MAX
16467 MVAL (UINT8_MAX),
16468#endif
16469#ifdef UINT16_MAX
16470 MVAL (UINT16_MAX),
16471#endif
16472#ifdef UINT32_MAX
16473 MVAL (UINT32_MAX),
16474#endif
16475#ifdef UINT64_MAX
16476 MVAL (UINT64_MAX),
16477#endif
16478 NULL
16479 };
16480
16481int
16482main ()
16483{
16484
16485 const char **mv;
16486 for (mv = macro_values; *mv != NULL; mv++)
16487 {
16488 const char *value = *mv;
16489 /* Test whether it looks like a cast expression. */
16490 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16491 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16492 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16493 || strncmp (value, "((int)"/*)*/, 6) == 0
16494 || strncmp (value, "((signed short)"/*)*/, 15) == 0
16495 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16496 return mv - macro_values + 1;
16497 }
16498 return 0;
16499
16500 ;
16501 return 0;
16502}
16503_ACEOF
16504if ac_fn_c_try_run "$LINENO"; then :
16505 gl_cv_header_working_stdint_h=yes
16506fi
16507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16508 conftest.$ac_objext conftest.beam conftest.$ac_ext
16509fi
16510
16511
16512fi
16513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16514
16515fi
16516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
16517$as_echo "$gl_cv_header_working_stdint_h" >&6; }
16518 fi
16519 if test "$gl_cv_header_working_stdint_h" = yes; then
16520 STDINT_H=
16521 else
16522 for ac_header in sys/inttypes.h sys/bitypes.h
16523do :
16524 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16525ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16526if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16527 cat >>confdefs.h <<_ACEOF
16528#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16529_ACEOF
16530
16531fi
16532
16533done
16534
16535 if test $ac_cv_header_sys_inttypes_h = yes; then
16536 HAVE_SYS_INTTYPES_H=1
16537 else
16538 HAVE_SYS_INTTYPES_H=0
16539 fi
16540
16541 if test $ac_cv_header_sys_bitypes_h = yes; then
16542 HAVE_SYS_BITYPES_H=1
16543 else
16544 HAVE_SYS_BITYPES_H=0
16545 fi
16546
16547
16548
16549
16550 if test $APPLE_UNIVERSAL_BUILD = 0; then
16551
16552
16553 for gltype in ptrdiff_t size_t ; do
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16555$as_echo_n "checking for bit size of $gltype... " >&6; }
16556if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
16557 $as_echo_n "(cached) " >&6
16558else
16559 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16560 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16561 included before <wchar.h>. */
16562 #include <stddef.h>
16563 #include <signal.h>
16564 #if HAVE_WCHAR_H
16565 # include <stdio.h>
16566 # include <time.h>
16567 # include <wchar.h>
16568 #endif
16569
16570#include <limits.h>"; then :
16571
16572else
16573 result=unknown
16574fi
16575
16576 eval gl_cv_bitsizeof_${gltype}=\$result
16577
16578fi
16579eval ac_res=\$gl_cv_bitsizeof_${gltype}
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16581$as_echo "$ac_res" >&6; }
16582 eval result=\$gl_cv_bitsizeof_${gltype}
16583 if test $result = unknown; then
16584 result=0
16585 fi
16586 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16587 cat >>confdefs.h <<_ACEOF
16588#define BITSIZEOF_${GLTYPE} $result
16589_ACEOF
16590
16591 eval BITSIZEOF_${GLTYPE}=\$result
16592 done
16593
16594
16595 fi
16596
16597
16598 for gltype in sig_atomic_t wchar_t wint_t ; do
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
16600$as_echo_n "checking for bit size of $gltype... " >&6; }
16601if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
16602 $as_echo_n "(cached) " >&6
16603else
16604 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
16605 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16606 included before <wchar.h>. */
16607 #include <stddef.h>
16608 #include <signal.h>
16609 #if HAVE_WCHAR_H
16610 # include <stdio.h>
16611 # include <time.h>
16612 # include <wchar.h>
16613 #endif
16614
16615#include <limits.h>"; then :
16616
16617else
16618 result=unknown
16619fi
16620
16621 eval gl_cv_bitsizeof_${gltype}=\$result
16622
16623fi
16624eval ac_res=\$gl_cv_bitsizeof_${gltype}
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16626$as_echo "$ac_res" >&6; }
16627 eval result=\$gl_cv_bitsizeof_${gltype}
16628 if test $result = unknown; then
16629 result=0
16630 fi
16631 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16632 cat >>confdefs.h <<_ACEOF
16633#define BITSIZEOF_${GLTYPE} $result
16634_ACEOF
16635
16636 eval BITSIZEOF_${GLTYPE}=\$result
16637 done
16638
16639
16640
16641
16642 for gltype in sig_atomic_t wchar_t wint_t ; do
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
16644$as_echo_n "checking whether $gltype is signed... " >&6; }
16645if eval \${gl_cv_type_${gltype}_signed+:} false; then :
16646 $as_echo_n "(cached) " >&6
16647else
16648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16649/* end confdefs.h. */
16650
16651 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16652 included before <wchar.h>. */
16653 #include <stddef.h>
16654 #include <signal.h>
16655 #if HAVE_WCHAR_H
16656 # include <stdio.h>
16657 # include <time.h>
16658 # include <wchar.h>
16659 #endif
16660
16661 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
16662int
16663main ()
16664{
16665
16666 ;
16667 return 0;
16668}
16669_ACEOF
16670if ac_fn_c_try_compile "$LINENO"; then :
16671 result=yes
16672else
16673 result=no
16674fi
16675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16676 eval gl_cv_type_${gltype}_signed=\$result
16677
16678fi
16679eval ac_res=\$gl_cv_type_${gltype}_signed
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16681$as_echo "$ac_res" >&6; }
16682 eval result=\$gl_cv_type_${gltype}_signed
16683 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16684 if test "$result" = yes; then
16685 cat >>confdefs.h <<_ACEOF
16686#define HAVE_SIGNED_${GLTYPE} 1
16687_ACEOF
16688
16689 eval HAVE_SIGNED_${GLTYPE}=1
16690 else
16691 eval HAVE_SIGNED_${GLTYPE}=0
16692 fi
16693 done
16694
16695
16696 gl_cv_type_ptrdiff_t_signed=yes
16697 gl_cv_type_size_t_signed=no
16698 if test $APPLE_UNIVERSAL_BUILD = 0; then
16699
16700
16701 for gltype in ptrdiff_t size_t ; do
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16703$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16704if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
16705 $as_echo_n "(cached) " >&6
16706else
16707 eval gl_cv_type_${gltype}_suffix=no
16708 eval result=\$gl_cv_type_${gltype}_signed
16709 if test "$result" = yes; then
16710 glsufu=
16711 else
16712 glsufu=u
16713 fi
16714 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
16715 case $glsuf in
16716 '') gltype1='int';;
16717 l) gltype1='long int';;
16718 ll) gltype1='long long int';;
16719 i64) gltype1='__int64';;
16720 u) gltype1='unsigned int';;
16721 ul) gltype1='unsigned long int';;
16722 ull) gltype1='unsigned long long int';;
16723 ui64)gltype1='unsigned __int64';;
16724 esac
16725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16726/* end confdefs.h. */
16727
16728 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16729 included before <wchar.h>. */
16730 #include <stddef.h>
16731 #include <signal.h>
16732 #if HAVE_WCHAR_H
16733 # include <stdio.h>
16734 # include <time.h>
16735 # include <wchar.h>
16736 #endif
16737
16738 extern $gltype foo;
16739 extern $gltype1 foo;
16740int
16741main ()
16742{
16743
16744 ;
16745 return 0;
16746}
16747_ACEOF
16748if ac_fn_c_try_compile "$LINENO"; then :
16749 eval gl_cv_type_${gltype}_suffix=\$glsuf
16750fi
16751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16752 eval result=\$gl_cv_type_${gltype}_suffix
16753 test "$result" != no && break
16754 done
16755fi
16756eval ac_res=\$gl_cv_type_${gltype}_suffix
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16758$as_echo "$ac_res" >&6; }
16759 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16760 eval result=\$gl_cv_type_${gltype}_suffix
16761 test "$result" = no && result=
16762 eval ${GLTYPE}_SUFFIX=\$result
16763 cat >>confdefs.h <<_ACEOF
16764#define ${GLTYPE}_SUFFIX $result
16765_ACEOF
16766
16767 done
16768
16769
16770 fi
16771
16772
16773 for gltype in sig_atomic_t wchar_t wint_t ; do
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
16775$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16776if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
16777 $as_echo_n "(cached) " >&6
16778else
16779 eval gl_cv_type_${gltype}_suffix=no
16780 eval result=\$gl_cv_type_${gltype}_signed
16781 if test "$result" = yes; then
16782 glsufu=
16783 else
16784 glsufu=u
16785 fi
16786 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
16787 case $glsuf in
16788 '') gltype1='int';;
16789 l) gltype1='long int';;
16790 ll) gltype1='long long int';;
16791 i64) gltype1='__int64';;
16792 u) gltype1='unsigned int';;
16793 ul) gltype1='unsigned long int';;
16794 ull) gltype1='unsigned long long int';;
16795 ui64)gltype1='unsigned __int64';;
16796 esac
16797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16798/* end confdefs.h. */
16799
16800 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16801 included before <wchar.h>. */
16802 #include <stddef.h>
16803 #include <signal.h>
16804 #if HAVE_WCHAR_H
16805 # include <stdio.h>
16806 # include <time.h>
16807 # include <wchar.h>
16808 #endif
16809
16810 extern $gltype foo;
16811 extern $gltype1 foo;
16812int
16813main ()
16814{
16815
16816 ;
16817 return 0;
16818}
16819_ACEOF
16820if ac_fn_c_try_compile "$LINENO"; then :
16821 eval gl_cv_type_${gltype}_suffix=\$glsuf
16822fi
16823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16824 eval result=\$gl_cv_type_${gltype}_suffix
16825 test "$result" != no && break
16826 done
16827fi
16828eval ac_res=\$gl_cv_type_${gltype}_suffix
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16830$as_echo "$ac_res" >&6; }
16831 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
16832 eval result=\$gl_cv_type_${gltype}_suffix
16833 test "$result" = no && result=
16834 eval ${GLTYPE}_SUFFIX=\$result
16835 cat >>confdefs.h <<_ACEOF
16836#define ${GLTYPE}_SUFFIX $result
16837_ACEOF
16838
16839 done
16840
16841
16842
16843 STDINT_H=stdint.h
16844 fi
16845
16846
1f5d53eb
PE
16847 # Code from module stdlib:
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858 if test $gl_cv_have_include_next = yes; then
16859 gl_cv_next_stdlib_h='<'stdlib.h'>'
16860 else
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
16862$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
16863if ${gl_cv_next_stdlib_h+:} false; then :
16864 $as_echo_n "(cached) " >&6
16865else
16866
16867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16868/* end confdefs.h. */
16869#include <stdlib.h>
16870
16871_ACEOF
16872 case "$host_os" in
16873 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16874 *) gl_absname_cpp="$ac_cpp" ;;
16875 esac
16876 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16877 sed -n '\#/stdlib.h#{
16878 s#.*"\(.*/stdlib.h\)".*#\1#
16879 s#^/[^/]#//&#
16880 p
16881 q
16882 }'`'"'
16883
16884
16885fi
16886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
16887$as_echo "$gl_cv_next_stdlib_h" >&6; }
16888 fi
16889 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
16890
16891 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16892 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16893 gl_next_as_first_directive='<'stdlib.h'>'
16894 else
16895 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16896 gl_next_as_first_directive=$gl_cv_next_stdlib_h
16897 fi
16898 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
16899
16900
16901
16902
16903
16904
16905
16c3e636
PE
16906 # Code from module strftime:
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
16918
16919
16920 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16921
16922
16923
16924
16925
16926
16927
16928$as_echo "#define my_strftime nstrftime" >>confdefs.h
16929
16930
16931
5fa4ac76
PE
16932 # Code from module sys_stat:
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949 if test $gl_cv_have_include_next = yes; then
16950 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16951 else
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
16953$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
16954if ${gl_cv_next_sys_stat_h+:} false; then :
16955 $as_echo_n "(cached) " >&6
16956else
16957
16958 if test $ac_cv_header_sys_stat_h = yes; then
16959
16960
16961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16962/* end confdefs.h. */
16963#include <sys/stat.h>
16964
16965_ACEOF
16966 case "$host_os" in
16967 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16968 *) gl_absname_cpp="$ac_cpp" ;;
16969 esac
16970 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16971 sed -n '\#/sys/stat.h#{
16972 s#.*"\(.*/sys/stat.h\)".*#\1#
16973 s#^/[^/]#//&#
16974 p
16975 q
16976 }'`'"'
16977 else
16978 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16979 fi
16980
16981
16982fi
16983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
16984$as_echo "$gl_cv_next_sys_stat_h" >&6; }
16985 fi
16986 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
16987
16988 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16989 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16990 gl_next_as_first_directive='<'sys/stat.h'>'
16991 else
16992 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16993 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
16994 fi
16995 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
16996
16997
16998
16999
17000
17001 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17002 #include <sys/stat.h>
17003"
17004if test "x$ac_cv_type_nlink_t" = xyes; then :
17005
17006else
17007
17008$as_echo "#define nlink_t int" >>confdefs.h
17009
17010fi
17011
17012
17013
17014
17015
1fd182f0 17016 # Code from module time:
067d23c9
KY
17017
17018
067d23c9 17019
1fd182f0 17020 # Code from module time_r:
067d23c9 17021
067d23c9 17022
067d23c9
KY
17023
17024
17025
067d23c9 17026
067d23c9 17027
1fd182f0
PE
17028 if test $ac_cv_have_decl_localtime_r = no; then
17029 HAVE_DECL_LOCALTIME_R=0
17030 fi
067d23c9
KY
17031
17032
1fd182f0
PE
17033 if test $ac_cv_func_localtime_r = yes; then
17034 HAVE_LOCALTIME_R=1
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
17036$as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
d6974efa 17037if ${gl_cv_time_r_posix+:} false; then :
067d23c9
KY
17038 $as_echo_n "(cached) " >&6
17039else
1fd182f0 17040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
067d23c9 17041/* end confdefs.h. */
1fd182f0 17042#include <time.h>
067d23c9
KY
17043int
17044main ()
17045{
1fd182f0
PE
17046/* We don't need to append 'restrict's to the argument types,
17047 even though the POSIX signature has the 'restrict's,
17048 since C99 says they can't affect type compatibility. */
17049 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
17050 if (ptr) return 0;
17051 /* Check the return type is a pointer.
17052 On HP-UX 10 it is 'int'. */
17053 *localtime_r (0, 0);
067d23c9
KY
17054 ;
17055 return 0;
17056}
1fd182f0 17057
067d23c9
KY
17058_ACEOF
17059if ac_fn_c_try_compile "$LINENO"; then :
1fd182f0 17060 gl_cv_time_r_posix=yes
067d23c9 17061else
1fd182f0 17062 gl_cv_time_r_posix=no
067d23c9
KY
17063fi
17064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17065
17066fi
1fd182f0
PE
17067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
17068$as_echo "$gl_cv_time_r_posix" >&6; }
17069 if test $gl_cv_time_r_posix = yes; then
17070 REPLACE_LOCALTIME_R=0
17071 else
17072 REPLACE_LOCALTIME_R=1
17073 fi
17074 else
17075 HAVE_LOCALTIME_R=0
17076 fi
17077 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
067d23c9 17078
067d23c9
KY
17079
17080
743c80a7 17081
a451f14b
PE
17082
17083
17084
a451f14b 17085
1fd182f0 17086 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
a451f14b 17087
a451f14b 17088
1fd182f0 17089 :
a451f14b
PE
17090
17091 fi
17092
17093
743c80a7
PE
17094
17095
1fd182f0 17096 GNULIB_TIME_R=1
743c80a7
PE
17097
17098
17099
b06b1098 17100 # Code from module unistd:
a451f14b
PE
17101
17102
17103
e275c824
PE
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114 if test $gl_cv_have_include_next = yes; then
17115 gl_cv_next_unistd_h='<'unistd.h'>'
17116 else
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17118$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
d6974efa 17119if ${gl_cv_next_unistd_h+:} false; then :
e275c824
PE
17120 $as_echo_n "(cached) " >&6
17121else
17122
b06b1098
PE
17123 if test $ac_cv_header_unistd_h = yes; then
17124
17125
17126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e275c824
PE
17127/* end confdefs.h. */
17128#include <unistd.h>
17129
17130_ACEOF
b06b1098
PE
17131 case "$host_os" in
17132 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17133 *) gl_absname_cpp="$ac_cpp" ;;
17134 esac
17135 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17136 sed -n '\#/unistd.h#{
17137 s#.*"\(.*/unistd.h\)".*#\1#
17138 s#^/[^/]#//&#
17139 p
17140 q
17141 }'`'"'
e275c824 17142 else
b06b1098
PE
17143 gl_cv_next_unistd_h='<'unistd.h'>'
17144 fi
17145
e275c824
PE
17146
17147fi
17148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17149$as_echo "$gl_cv_next_unistd_h" >&6; }
17150 fi
17151 NEXT_UNISTD_H=$gl_cv_next_unistd_h
17152
17153 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17154 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17155 gl_next_as_first_directive='<'unistd.h'>'
17156 else
17157 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17158 gl_next_as_first_directive=$gl_cv_next_unistd_h
17159 fi
17160 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
17161
17162
17163
17164
e275c824
PE
17165 if test $ac_cv_header_unistd_h = yes; then
17166 HAVE_UNISTD_H=1
17167 else
17168 HAVE_UNISTD_H=0
17169 fi
17170
17171
17172
e275c824 17173
1fd182f0
PE
17174 # Code from module warn-on-use:
17175 # End of code from modules
a451f14b 17176
a451f14b 17177
743c80a7
PE
17178
17179
17180
17181
17182
17183
17184
17185 gltests_libdeps=
17186 gltests_ltlibdeps=
17187
17188
17189
17190
17191
a451f14b
PE
17192
17193
17194
17195
743c80a7
PE
17196 gl_source_base='tests'
17197 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
17198
17199 gl_module_indicator_condition=$gltests_WITNESS
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209 LIBGNU_LIBDEPS="$gl_libdeps"
17210
17211 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
17212
17213
17214
f68c809d
PE
17215# Emacs does not care about lstat's behavior on files whose names end in
17216# trailing slashes, so it does not use the gnulib lstat module.
17217# However, Emacs does want the "#define lstat stat" in sys/stat.h
17218# when lstat does not exist, so it pretends to use the lstat module
17219# even though it implements only the lstat-checking part of that module.
17220
17221
17222
17223test $ac_cv_func_lstat = yes || HAVE_LSTAT=0
17224
17225
17226
17227 GNULIB_LSTAT=1
17228
17229
17230
17231
067d23c9
KY
17232# UNIX98 PTYs.
17233for ac_func in grantpt
17234do :
17235 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
d6974efa 17236if test "x$ac_cv_func_grantpt" = xyes; then :
067d23c9
KY
17237 cat >>confdefs.h <<_ACEOF
17238#define HAVE_GRANTPT 1
17239_ACEOF
17240
17241fi
17242done
17243
17244
17245# PTY-related GNU extensions.
17246for ac_func in getpt
17247do :
17248 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
d6974efa 17249if test "x$ac_cv_func_getpt" = xyes; then :
067d23c9
KY
17250 cat >>confdefs.h <<_ACEOF
17251#define HAVE_GETPT 1
17252_ACEOF
17253
17254fi
17255done
17256
17257
17258# Check this now, so that we will NOT find the above functions in ncurses.
17259# That is because we have not set up to link ncurses in lib-src.
17260# It's better to believe a function is not available
17261# than to expect to find it in ncurses.
17262# Also we need tputs and friends to be able to build at all.
17263have_tputs_et_al=true
17264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
17265$as_echo_n "checking for library containing tputs... " >&6; }
d6974efa 17266if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
17267 $as_echo_n "(cached) " >&6
17268else
17269 ac_func_search_save_LIBS=$LIBS
17270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271/* end confdefs.h. */
17272
17273/* Override any GCC internal prototype to avoid an error.
17274 Use char because int might match the return type of a GCC
17275 builtin and then its argument prototype would still apply. */
17276#ifdef __cplusplus
17277extern "C"
17278#endif
17279char tputs ();
17280int
17281main ()
17282{
17283return tputs ();
17284 ;
17285 return 0;
17286}
17287_ACEOF
17288for ac_lib in '' ncurses terminfo termcap; do
17289 if test -z "$ac_lib"; then
17290 ac_res="none required"
17291 else
17292 ac_res=-l$ac_lib
17293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17294 fi
17295 if ac_fn_c_try_link "$LINENO"; then :
17296 ac_cv_search_tputs=$ac_res
17297fi
17298rm -f core conftest.err conftest.$ac_objext \
17299 conftest$ac_exeext
d6974efa 17300 if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
17301 break
17302fi
17303done
d6974efa 17304if ${ac_cv_search_tputs+:} false; then :
067d23c9
KY
17305
17306else
17307 ac_cv_search_tputs=no
17308fi
17309rm conftest.$ac_ext
17310LIBS=$ac_func_search_save_LIBS
17311fi
17312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
17313$as_echo "$ac_cv_search_tputs" >&6; }
17314ac_res=$ac_cv_search_tputs
17315if test "$ac_res" != no; then :
17316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17317
17318else
17319 have_tputs_et_al=false
17320fi
17321
17322if test "$have_tputs_et_al" != true; then
2018939f 17323 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
067d23c9
KY
17324Maybe some development libraries/packages are missing? Try installing
17325libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
17326fi
17327# Must define this when any termcap library is found.
17328
17329$as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
17330
17331## FIXME This was the cpp logic, but I am not sure it is right.
17332## The above test has not necessarily found libncurses.
17333HAVE_LIBNCURSES=yes
17334
17335## Use terminfo instead of termcap?
17336## Note only system files NOT using terminfo are:
17337## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
17338## darwin|gnu without ncurses.
17339TERMINFO=no
17340LIBS_TERMCAP=
17341case "$opsys" in
17342 ## cygwin: Fewer environment variables to go wrong, more terminal types.
17343 ## hpux10-20: Use the system provided termcap(3) library.
17344 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
17345 ## is necessary. Otherwise Emacs dumps core when run -nw.
17346 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
17347
17348 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
17349 ## The ncurses library has been moved out of the System framework in
17350 ## Mac OS X 10.2. So if configure detects it, set the command-line
17351 ## option to use it.
17352 darwin|gnu*)
17353 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
17354 if test "x$HAVE_LIBNCURSES" = "xyes"; then
17355 TERMINFO=yes
17356 LIBS_TERMCAP="-lncurses"
17357 fi
17358 ;;
17359
17360 freebsd)
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
17362$as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
d6974efa 17363 if ${emacs_cv_freebsd_terminfo+:} false; then :
067d23c9
KY
17364 $as_echo_n "(cached) " >&6
17365else
17366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17367/* end confdefs.h. */
17368#include <osreldate.h>
17369int
17370main ()
17371{
17372#if __FreeBSD_version < 400000
17373fail;
17374#endif
17375
17376 ;
17377 return 0;
17378}
17379_ACEOF
17380if ac_fn_c_try_link "$LINENO"; then :
17381 emacs_cv_freebsd_terminfo=yes
17382else
17383 emacs_cv_freebsd_terminfo=no
17384fi
17385rm -f core conftest.err conftest.$ac_objext \
17386 conftest$ac_exeext conftest.$ac_ext
17387fi
17388
17389
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
17391$as_echo "$emacs_cv_freebsd_terminfo" >&6; }
17392
17393 if test $emacs_cv_freebsd_terminfo = yes; then
17394 TERMINFO=yes
17395 LIBS_TERMCAP="-lncurses"
17396 else
17397 LIBS_TERMCAP="-ltermcap"
17398 fi
17399 ;;
17400
17401 netbsd)
17402 if test $ac_cv_search_tputs = -lterminfo; then
17403 TERMINFO=yes
17404 LIBS_TERMCAP="-lterminfo"
17405 else
17406 LIBS_TERMCAP="-ltermcap"
17407 fi
17408 ;;
17409
17410esac
17411
17412case "$opsys" in
17413 ## hpux: Make sure we get select from libc rather than from libcurses
17414 ## because libcurses on HPUX 10.10 has a broken version of select.
17415 ## We used to use -lc -lcurses, but this may be cleaner.
17416 hpux*) LIBS_TERMCAP="-ltermcap" ;;
17417
17418 openbsd) LIBS_TERMCAP="-lncurses" ;;
17419
17420 ## Must use system termcap, if we use any termcap. It does special things.
17421 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
17422esac
17423
17424TERMCAP_OBJ=tparam.o
17425if test $TERMINFO = yes; then
17426
17427$as_echo "#define TERMINFO 1" >>confdefs.h
17428
17429
17430 ## Default used to be -ltermcap. Add a case above if need something else.
17431 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
17432
17433 TERMCAP_OBJ=terminfo.o
17434fi
17435
17436
17437
17438
17439# Do we have res_init, for detecting changes in /etc/resolv.conf?
17440resolv=no
17441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17442/* end confdefs.h. */
17443#include <netinet/in.h>
17444#include <arpa/nameser.h>
17445#include <resolv.h>
17446int
17447main ()
17448{
17449return res_init();
17450 ;
17451 return 0;
17452}
17453_ACEOF
17454if ac_fn_c_try_link "$LINENO"; then :
17455 have_res_init=yes
17456else
17457 have_res_init=no
17458fi
17459rm -f core conftest.err conftest.$ac_objext \
17460 conftest$ac_exeext conftest.$ac_ext
17461if test "$have_res_init" = no; then
17462 OLIBS="$LIBS"
17463 LIBS="$LIBS -lresolv"
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
17465$as_echo_n "checking for res_init with -lresolv... " >&6; }
17466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17467/* end confdefs.h. */
17468#include <netinet/in.h>
17469#include <arpa/nameser.h>
17470#include <resolv.h>
17471int
17472main ()
17473{
17474return res_init();
17475 ;
17476 return 0;
17477}
17478_ACEOF
17479if ac_fn_c_try_link "$LINENO"; then :
17480 have_res_init=yes
17481else
17482 have_res_init=no
17483fi
17484rm -f core conftest.err conftest.$ac_objext \
17485 conftest$ac_exeext conftest.$ac_ext
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
17487$as_echo "$have_res_init" >&6; }
17488 if test "$have_res_init" = yes ; then
17489 resolv=yes
17490 fi
17491 LIBS="$OLIBS"
17492fi
17493
17494if test "$have_res_init" = yes; then
17495
17496$as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
17497
17498fi
17499
17500# Do we need the Hesiod library to provide the support routines?
17501LIBHESIOD=
17502if test "$with_hesiod" != no ; then
17503 # Don't set $LIBS here -- see comments above. FIXME which comments?
17504 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
d6974efa 17505if test "x$ac_cv_func_res_send" = xyes; then :
067d23c9
KY
17506
17507else
17508 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
d6974efa 17509if test "x$ac_cv_func___res_send" = xyes; then :
067d23c9
KY
17510
17511else
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
17513$as_echo_n "checking for res_send in -lresolv... " >&6; }
d6974efa 17514if ${ac_cv_lib_resolv_res_send+:} false; then :
067d23c9
KY
17515 $as_echo_n "(cached) " >&6
17516else
17517 ac_check_lib_save_LIBS=$LIBS
17518LIBS="-lresolv $LIBS"
17519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17520/* end confdefs.h. */
17521
17522/* Override any GCC internal prototype to avoid an error.
17523 Use char because int might match the return type of a GCC
17524 builtin and then its argument prototype would still apply. */
17525#ifdef __cplusplus
17526extern "C"
17527#endif
17528char res_send ();
17529int
17530main ()
17531{
17532return res_send ();
17533 ;
17534 return 0;
17535}
17536_ACEOF
17537if ac_fn_c_try_link "$LINENO"; then :
17538 ac_cv_lib_resolv_res_send=yes
17539else
17540 ac_cv_lib_resolv_res_send=no
17541fi
17542rm -f core conftest.err conftest.$ac_objext \
17543 conftest$ac_exeext conftest.$ac_ext
17544LIBS=$ac_check_lib_save_LIBS
17545fi
17546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
17547$as_echo "$ac_cv_lib_resolv_res_send" >&6; }
d6974efa 17548if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
067d23c9
KY
17549 resolv=yes
17550else
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
17552$as_echo_n "checking for __res_send in -lresolv... " >&6; }
d6974efa 17553if ${ac_cv_lib_resolv___res_send+:} false; then :
067d23c9
KY
17554 $as_echo_n "(cached) " >&6
17555else
17556 ac_check_lib_save_LIBS=$LIBS
17557LIBS="-lresolv $LIBS"
17558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17559/* end confdefs.h. */
17560
17561/* Override any GCC internal prototype to avoid an error.
17562 Use char because int might match the return type of a GCC
17563 builtin and then its argument prototype would still apply. */
17564#ifdef __cplusplus
17565extern "C"
17566#endif
17567char __res_send ();
17568int
17569main ()
17570{
17571return __res_send ();
17572 ;
17573 return 0;
17574}
17575_ACEOF
17576if ac_fn_c_try_link "$LINENO"; then :
17577 ac_cv_lib_resolv___res_send=yes
17578else
17579 ac_cv_lib_resolv___res_send=no
17580fi
17581rm -f core conftest.err conftest.$ac_objext \
17582 conftest$ac_exeext conftest.$ac_ext
17583LIBS=$ac_check_lib_save_LIBS
17584fi
17585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
17586$as_echo "$ac_cv_lib_resolv___res_send" >&6; }
d6974efa 17587if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
067d23c9
KY
17588 resolv=yes
17589fi
17590
17591fi
17592
17593fi
17594
17595fi
17596
17597 if test "$resolv" = yes ; then
17598 RESOLVLIB=-lresolv
17599 else
17600 RESOLVLIB=
17601 fi
17602 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
d6974efa 17603if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
067d23c9
KY
17604
17605else
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
17607$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
d6974efa 17608if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
067d23c9
KY
17609 $as_echo_n "(cached) " >&6
17610else
17611 ac_check_lib_save_LIBS=$LIBS
17612LIBS="-lhesiod $RESOLVLIB $LIBS"
17613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17614/* end confdefs.h. */
17615
17616/* Override any GCC internal prototype to avoid an error.
17617 Use char because int might match the return type of a GCC
17618 builtin and then its argument prototype would still apply. */
17619#ifdef __cplusplus
17620extern "C"
17621#endif
17622char hes_getmailhost ();
17623int
17624main ()
17625{
17626return hes_getmailhost ();
17627 ;
17628 return 0;
17629}
17630_ACEOF
17631if ac_fn_c_try_link "$LINENO"; then :
17632 ac_cv_lib_hesiod_hes_getmailhost=yes
17633else
17634 ac_cv_lib_hesiod_hes_getmailhost=no
17635fi
17636rm -f core conftest.err conftest.$ac_objext \
17637 conftest$ac_exeext conftest.$ac_ext
17638LIBS=$ac_check_lib_save_LIBS
17639fi
17640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
17641$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
d6974efa 17642if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
067d23c9
KY
17643 hesiod=yes
17644else
17645 :
17646fi
17647
17648fi
17649
17650
17651 if test x"$hesiod" = xyes; then
17652
17653$as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
17654
17655 LIBHESIOD=-lhesiod
17656 fi
17657fi
17658
17659
17660# Do we need libresolv (due to res_init or Hesiod)?
17661if test "$resolv" = yes ; then
17662
17663$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
17664
17665 LIBRESOLV=-lresolv
17666else
17667 LIBRESOLV=
17668fi
17669
17670
17671# These tell us which Kerberos-related libraries to use.
17672COM_ERRLIB=
17673CRYPTOLIB=
17674KRB5LIB=
17675DESLIB=
17676KRB4LIB=
17677
17678if test "${with_kerberos}" != no; then
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
17680$as_echo_n "checking for com_err in -lcom_err... " >&6; }
d6974efa 17681if ${ac_cv_lib_com_err_com_err+:} false; then :
067d23c9
KY
17682 $as_echo_n "(cached) " >&6
17683else
17684 ac_check_lib_save_LIBS=$LIBS
17685LIBS="-lcom_err $LIBS"
17686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17687/* end confdefs.h. */
17688
17689/* Override any GCC internal prototype to avoid an error.
17690 Use char because int might match the return type of a GCC
17691 builtin and then its argument prototype would still apply. */
17692#ifdef __cplusplus
17693extern "C"
17694#endif
17695char com_err ();
17696int
17697main ()
17698{
17699return com_err ();
17700 ;
17701 return 0;
17702}
17703_ACEOF
17704if ac_fn_c_try_link "$LINENO"; then :
17705 ac_cv_lib_com_err_com_err=yes
17706else
17707 ac_cv_lib_com_err_com_err=no
17708fi
17709rm -f core conftest.err conftest.$ac_objext \
17710 conftest$ac_exeext conftest.$ac_ext
17711LIBS=$ac_check_lib_save_LIBS
17712fi
17713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
17714$as_echo "$ac_cv_lib_com_err_com_err" >&6; }
d6974efa 17715if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
067d23c9
KY
17716 have_com_err=yes
17717else
17718 have_com_err=no
17719fi
17720
17721 if test $have_com_err = yes; then
17722 COM_ERRLIB=-lcom_err
17723 LIBS="$COM_ERRLIB $LIBS"
17724
17725$as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
17726
17727 fi
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
17729$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
d6974efa 17730if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
067d23c9
KY
17731 $as_echo_n "(cached) " >&6
17732else
17733 ac_check_lib_save_LIBS=$LIBS
17734LIBS="-lcrypto $LIBS"
17735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736/* end confdefs.h. */
17737
17738/* Override any GCC internal prototype to avoid an error.
17739 Use char because int might match the return type of a GCC
17740 builtin and then its argument prototype would still apply. */
17741#ifdef __cplusplus
17742extern "C"
17743#endif
17744char mit_des_cbc_encrypt ();
17745int
17746main ()
17747{
17748return mit_des_cbc_encrypt ();
17749 ;
17750 return 0;
17751}
17752_ACEOF
17753if ac_fn_c_try_link "$LINENO"; then :
17754 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
17755else
17756 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
17757fi
17758rm -f core conftest.err conftest.$ac_objext \
17759 conftest$ac_exeext conftest.$ac_ext
17760LIBS=$ac_check_lib_save_LIBS
17761fi
17762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
17763$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
d6974efa 17764if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
067d23c9
KY
17765 have_crypto=yes
17766else
17767 have_crypto=no
17768fi
17769
17770 if test $have_crypto = yes; then
17771 CRYPTOLIB=-lcrypto
17772 LIBS="$CRYPTOLIB $LIBS"
17773
17774$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
17775
17776 fi
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
17778$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
d6974efa 17779if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
067d23c9
KY
17780 $as_echo_n "(cached) " >&6
17781else
17782 ac_check_lib_save_LIBS=$LIBS
17783LIBS="-lk5crypto $LIBS"
17784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17785/* end confdefs.h. */
17786
17787/* Override any GCC internal prototype to avoid an error.
17788 Use char because int might match the return type of a GCC
17789 builtin and then its argument prototype would still apply. */
17790#ifdef __cplusplus
17791extern "C"
17792#endif
17793char mit_des_cbc_encrypt ();
17794int
17795main ()
17796{
17797return mit_des_cbc_encrypt ();
17798 ;
17799 return 0;
17800}
17801_ACEOF
17802if ac_fn_c_try_link "$LINENO"; then :
17803 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
17804else
17805 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
17806fi
17807rm -f core conftest.err conftest.$ac_objext \
17808 conftest$ac_exeext conftest.$ac_ext
17809LIBS=$ac_check_lib_save_LIBS
17810fi
17811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
17812$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
d6974efa 17813if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
067d23c9
KY
17814 have_k5crypto=yes
17815else
17816 have_k5crypto=no
17817fi
17818
17819 if test $have_k5crypto = yes; then
17820 CRYPTOLIB=-lk5crypto
17821 LIBS="$CRYPTOLIB $LIBS"
17822
17823$as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
17824
17825 fi
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
17827$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
d6974efa 17828if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
067d23c9
KY
17829 $as_echo_n "(cached) " >&6
17830else
17831 ac_check_lib_save_LIBS=$LIBS
17832LIBS="-lkrb5 $LIBS"
17833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17834/* end confdefs.h. */
17835
17836/* Override any GCC internal prototype to avoid an error.
17837 Use char because int might match the return type of a GCC
17838 builtin and then its argument prototype would still apply. */
17839#ifdef __cplusplus
17840extern "C"
17841#endif
17842char krb5_init_context ();
17843int
17844main ()
17845{
17846return krb5_init_context ();
17847 ;
17848 return 0;
17849}
17850_ACEOF
17851if ac_fn_c_try_link "$LINENO"; then :
17852 ac_cv_lib_krb5_krb5_init_context=yes
17853else
17854 ac_cv_lib_krb5_krb5_init_context=no
17855fi
17856rm -f core conftest.err conftest.$ac_objext \
17857 conftest$ac_exeext conftest.$ac_ext
17858LIBS=$ac_check_lib_save_LIBS
17859fi
17860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17861$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
d6974efa 17862if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
067d23c9
KY
17863 have_krb5=yes
17864else
17865 have_krb5=no
17866fi
17867
17868 if test $have_krb5=yes; then
17869 KRB5LIB=-lkrb5
17870 LIBS="$KRB5LIB $LIBS"
17871
17872$as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
17873
17874 fi
17875 if test "${with_kerberos5}" = no; then
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
17877$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
d6974efa 17878if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
067d23c9
KY
17879 $as_echo_n "(cached) " >&6
17880else
17881 ac_check_lib_save_LIBS=$LIBS
17882LIBS="-ldes425 $LIBS"
17883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17884/* end confdefs.h. */
17885
17886/* Override any GCC internal prototype to avoid an error.
17887 Use char because int might match the return type of a GCC
17888 builtin and then its argument prototype would still apply. */
17889#ifdef __cplusplus
17890extern "C"
17891#endif
17892char des_cbc_encrypt ();
17893int
17894main ()
17895{
17896return des_cbc_encrypt ();
17897 ;
17898 return 0;
17899}
17900_ACEOF
17901if ac_fn_c_try_link "$LINENO"; then :
17902 ac_cv_lib_des425_des_cbc_encrypt=yes
17903else
17904 ac_cv_lib_des425_des_cbc_encrypt=no
17905fi
17906rm -f core conftest.err conftest.$ac_objext \
17907 conftest$ac_exeext conftest.$ac_ext
17908LIBS=$ac_check_lib_save_LIBS
17909fi
17910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
17911$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
d6974efa 17912if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
067d23c9
KY
17913 have_des425=yes
17914else
17915 have_des425=no
17916fi
17917
17918 if test $have_des425 = yes; then
17919 DESLIB=-ldes425
17920 LIBS="$DESLIB $LIBS"
17921
17922$as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
17923
17924 else
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
17926$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
d6974efa 17927if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
067d23c9
KY
17928 $as_echo_n "(cached) " >&6
17929else
17930 ac_check_lib_save_LIBS=$LIBS
17931LIBS="-ldes $LIBS"
17932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17933/* end confdefs.h. */
17934
17935/* Override any GCC internal prototype to avoid an error.
17936 Use char because int might match the return type of a GCC
17937 builtin and then its argument prototype would still apply. */
17938#ifdef __cplusplus
17939extern "C"
17940#endif
17941char des_cbc_encrypt ();
17942int
17943main ()
17944{
17945return des_cbc_encrypt ();
17946 ;
17947 return 0;
17948}
17949_ACEOF
17950if ac_fn_c_try_link "$LINENO"; then :
17951 ac_cv_lib_des_des_cbc_encrypt=yes
17952else
17953 ac_cv_lib_des_des_cbc_encrypt=no
17954fi
17955rm -f core conftest.err conftest.$ac_objext \
17956 conftest$ac_exeext conftest.$ac_ext
17957LIBS=$ac_check_lib_save_LIBS
17958fi
17959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
17960$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
d6974efa 17961if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
067d23c9
KY
17962 have_des=yes
17963else
17964 have_des=no
17965fi
17966
17967 if test $have_des = yes; then
17968 DESLIB=-ldes
17969 LIBS="$DESLIB $LIBS"
17970
17971$as_echo "#define HAVE_LIBDES 1" >>confdefs.h
17972
17973 fi
17974 fi
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
17976$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
d6974efa 17977if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
067d23c9
KY
17978 $as_echo_n "(cached) " >&6
17979else
17980 ac_check_lib_save_LIBS=$LIBS
17981LIBS="-lkrb4 $LIBS"
17982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17983/* end confdefs.h. */
17984
17985/* Override any GCC internal prototype to avoid an error.
17986 Use char because int might match the return type of a GCC
17987 builtin and then its argument prototype would still apply. */
17988#ifdef __cplusplus
17989extern "C"
17990#endif
17991char krb_get_cred ();
17992int
17993main ()
17994{
17995return krb_get_cred ();
17996 ;
17997 return 0;
17998}
17999_ACEOF
18000if ac_fn_c_try_link "$LINENO"; then :
18001 ac_cv_lib_krb4_krb_get_cred=yes
18002else
18003 ac_cv_lib_krb4_krb_get_cred=no
18004fi
18005rm -f core conftest.err conftest.$ac_objext \
18006 conftest$ac_exeext conftest.$ac_ext
18007LIBS=$ac_check_lib_save_LIBS
18008fi
18009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
18010$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
d6974efa 18011if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
067d23c9
KY
18012 have_krb4=yes
18013else
18014 have_krb4=no
18015fi
18016
18017 if test $have_krb4 = yes; then
18018 KRB4LIB=-lkrb4
18019 LIBS="$KRB4LIB $LIBS"
18020
18021$as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
18022
18023 else
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
18025$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
d6974efa 18026if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
067d23c9
KY
18027 $as_echo_n "(cached) " >&6
18028else
18029 ac_check_lib_save_LIBS=$LIBS
18030LIBS="-lkrb $LIBS"
18031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18032/* end confdefs.h. */
18033
18034/* Override any GCC internal prototype to avoid an error.
18035 Use char because int might match the return type of a GCC
18036 builtin and then its argument prototype would still apply. */
18037#ifdef __cplusplus
18038extern "C"
18039#endif
18040char krb_get_cred ();
18041int
18042main ()
18043{
18044return krb_get_cred ();
18045 ;
18046 return 0;
18047}
18048_ACEOF
18049if ac_fn_c_try_link "$LINENO"; then :
18050 ac_cv_lib_krb_krb_get_cred=yes
18051else
18052 ac_cv_lib_krb_krb_get_cred=no
18053fi
18054rm -f core conftest.err conftest.$ac_objext \
18055 conftest$ac_exeext conftest.$ac_ext
18056LIBS=$ac_check_lib_save_LIBS
18057fi
18058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
18059$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
d6974efa 18060if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
067d23c9
KY
18061 have_krb=yes
18062else
18063 have_krb=no
18064fi
18065
18066 if test $have_krb = yes; then
18067 KRB4LIB=-lkrb
18068 LIBS="$KRB4LIB $LIBS"
18069
18070$as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
18071
18072 fi
18073 fi
18074 fi
18075
18076 if test "${with_kerberos5}" != no; then
18077 for ac_header in krb5.h
18078do :
18079 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
d6974efa 18080if test "x$ac_cv_header_krb5_h" = xyes; then :
067d23c9
KY
18081 cat >>confdefs.h <<_ACEOF
18082#define HAVE_KRB5_H 1
18083_ACEOF
18084 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
18085"
d6974efa 18086if test "x$ac_cv_member_krb5_error_text" = xyes; then :
067d23c9
KY
18087
18088cat >>confdefs.h <<_ACEOF
18089#define HAVE_KRB5_ERROR_TEXT 1
18090_ACEOF
18091
18092
18093fi
18094ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
18095"
d6974efa 18096if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
067d23c9
KY
18097
18098cat >>confdefs.h <<_ACEOF
18099#define HAVE_KRB5_ERROR_E_TEXT 1
18100_ACEOF
18101
18102
18103fi
18104
18105fi
18106
18107done
18108
18109 else
18110 for ac_header in des.h
18111do :
18112 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
d6974efa 18113if test "x$ac_cv_header_des_h" = xyes; then :
067d23c9
KY
18114 cat >>confdefs.h <<_ACEOF
18115#define HAVE_DES_H 1
18116_ACEOF
18117
18118else
18119 for ac_header in kerberosIV/des.h
18120do :
18121 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
d6974efa 18122if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
067d23c9
KY
18123 cat >>confdefs.h <<_ACEOF
18124#define HAVE_KERBEROSIV_DES_H 1
18125_ACEOF
18126
18127else
18128 for ac_header in kerberos/des.h
18129do :
18130 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
d6974efa 18131if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
067d23c9
KY
18132 cat >>confdefs.h <<_ACEOF
18133#define HAVE_KERBEROS_DES_H 1
18134_ACEOF
18135
18136fi
18137
18138done
18139
18140fi
18141
18142done
18143
18144fi
18145
18146done
18147
18148 for ac_header in krb.h
18149do :
18150 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
d6974efa 18151if test "x$ac_cv_header_krb_h" = xyes; then :
067d23c9
KY
18152 cat >>confdefs.h <<_ACEOF
18153#define HAVE_KRB_H 1
18154_ACEOF
18155
18156else
18157 for ac_header in kerberosIV/krb.h
18158do :
18159 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
d6974efa 18160if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
067d23c9
KY
18161 cat >>confdefs.h <<_ACEOF
18162#define HAVE_KERBEROSIV_KRB_H 1
18163_ACEOF
18164
18165else
18166 for ac_header in kerberos/krb.h
18167do :
18168 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
d6974efa 18169if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
067d23c9
KY
18170 cat >>confdefs.h <<_ACEOF
18171#define HAVE_KERBEROS_KRB_H 1
18172_ACEOF
18173
18174fi
18175
18176done
18177
18178fi
18179
18180done
18181
18182fi
18183
18184done
18185
18186 fi
18187 for ac_header in com_err.h
18188do :
18189 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
d6974efa 18190if test "x$ac_cv_header_com_err_h" = xyes; then :
067d23c9
KY
18191 cat >>confdefs.h <<_ACEOF
18192#define HAVE_COM_ERR_H 1
18193_ACEOF
18194
18195fi
18196
18197done
18198
18199fi
18200
18201
18202
18203
18204
18205
18206
18207# Solaris requires -lintl if you want strerror (which calls dgettext)
18208# to return localized messages.
18209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
18210$as_echo_n "checking for dgettext in -lintl... " >&6; }
d6974efa 18211if ${ac_cv_lib_intl_dgettext+:} false; then :
067d23c9
KY
18212 $as_echo_n "(cached) " >&6
18213else
18214 ac_check_lib_save_LIBS=$LIBS
18215LIBS="-lintl $LIBS"
18216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18217/* end confdefs.h. */
18218
18219/* Override any GCC internal prototype to avoid an error.
18220 Use char because int might match the return type of a GCC
18221 builtin and then its argument prototype would still apply. */
18222#ifdef __cplusplus
18223extern "C"
18224#endif
18225char dgettext ();
18226int
18227main ()
18228{
18229return dgettext ();
18230 ;
18231 return 0;
18232}
18233_ACEOF
18234if ac_fn_c_try_link "$LINENO"; then :
18235 ac_cv_lib_intl_dgettext=yes
18236else
18237 ac_cv_lib_intl_dgettext=no
18238fi
18239rm -f core conftest.err conftest.$ac_objext \
18240 conftest$ac_exeext conftest.$ac_ext
18241LIBS=$ac_check_lib_save_LIBS
18242fi
18243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
18244$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
d6974efa 18245if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
067d23c9
KY
18246 cat >>confdefs.h <<_ACEOF
18247#define HAVE_LIBINTL 1
18248_ACEOF
18249
18250 LIBS="-lintl $LIBS"
18251
18252fi
18253
18254
18255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
18256$as_echo_n "checking whether localtime caches TZ... " >&6; }
d6974efa 18257if ${emacs_cv_localtime_cache+:} false; then :
067d23c9
KY
18258 $as_echo_n "(cached) " >&6
18259else
18260 if test x$ac_cv_func_tzset = xyes; then
18261if test "$cross_compiling" = yes; then :
18262 # If we have tzset, assume the worst when cross-compiling.
18263emacs_cv_localtime_cache=yes
18264else
18265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18266/* end confdefs.h. */
18267#include <time.h>
18268char TZ_GMT0[] = "TZ=GMT0";
18269char TZ_PST8[] = "TZ=PST8";
18270main()
18271{
18272 time_t now = time ((time_t *) 0);
18273 int hour_GMT0, hour_unset;
18274 if (putenv (TZ_GMT0) != 0)
18275 exit (1);
18276 hour_GMT0 = localtime (&now)->tm_hour;
18277 unsetenv("TZ");
18278 hour_unset = localtime (&now)->tm_hour;
18279 if (putenv (TZ_PST8) != 0)
18280 exit (1);
18281 if (localtime (&now)->tm_hour == hour_GMT0)
18282 exit (1);
18283 unsetenv("TZ");
18284 if (localtime (&now)->tm_hour != hour_unset)
18285 exit (1);
18286 exit (0);
18287}
18288_ACEOF
18289if ac_fn_c_try_run "$LINENO"; then :
18290 emacs_cv_localtime_cache=no
18291else
18292 emacs_cv_localtime_cache=yes
18293fi
18294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18295 conftest.$ac_objext conftest.beam conftest.$ac_ext
18296fi
18297
18298else
18299 # If we lack tzset, report that localtime does not cache TZ,
18300 # since we can't invalidate the cache if we don't have tzset.
18301 emacs_cv_localtime_cache=no
18302fi
18303fi
18304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
18305$as_echo "$emacs_cv_localtime_cache" >&6; }
18306if test $emacs_cv_localtime_cache = yes; then
18307
18308$as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
18309
18310fi
18311
18312if test "x$HAVE_TIMEVAL" = xyes; then
18313 for ac_func in gettimeofday
18314do :
18315 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
d6974efa 18316if test "x$ac_cv_func_gettimeofday" = xyes; then :
067d23c9
KY
18317 cat >>confdefs.h <<_ACEOF
18318#define HAVE_GETTIMEOFDAY 1
18319_ACEOF
18320
18321fi
18322done
18323
18324 if test $ac_cv_func_gettimeofday = yes; then
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
18326$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
d6974efa 18327if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
067d23c9
KY
18328 $as_echo_n "(cached) " >&6
18329else
18330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18331/* end confdefs.h. */
18332
18333#ifdef TIME_WITH_SYS_TIME
18334#include <sys/time.h>
18335#include <time.h>
18336#else
18337#ifdef HAVE_SYS_TIME_H
18338#include <sys/time.h>
18339#else
18340#include <time.h>
18341#endif
18342#endif
18343int
18344main ()
18345{
18346struct timeval time;
18347 gettimeofday (&time, 0);
18348 ;
18349 return 0;
18350}
18351_ACEOF
18352if ac_fn_c_try_compile "$LINENO"; then :
18353 emacs_cv_gettimeofday_two_arguments=yes
18354else
18355 emacs_cv_gettimeofday_two_arguments=no
18356fi
18357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18358fi
18359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
18360$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
18361 if test $emacs_cv_gettimeofday_two_arguments = no; then
18362
18363$as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
18364
18365 fi
18366 fi
18367fi
18368
18369ok_so_far=yes
18370ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
d6974efa 18371if test "x$ac_cv_func_socket" = xyes; then :
067d23c9
KY
18372
18373else
18374 ok_so_far=no
18375fi
18376
18377if test $ok_so_far = yes; then
18378 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
d6974efa 18379if test "x$ac_cv_header_netinet_in_h" = xyes; then :
067d23c9
KY
18380
18381else
18382 ok_so_far=no
18383fi
18384
18385
18386fi
18387if test $ok_so_far = yes; then
18388 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
d6974efa 18389if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
067d23c9
KY
18390
18391else
18392 ok_so_far=no
18393fi
18394
18395
18396fi
18397if test $ok_so_far = yes; then
18398
18399$as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
18400
18401fi
18402
18403if test -f /usr/lpp/X11/bin/smt.exp; then
18404
18405$as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
18406
18407fi
18408
18409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
18410$as_echo_n "checking whether system supports dynamic ptys... " >&6; }
18411if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18413$as_echo "yes" >&6; }
18414
18415$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
18416
18417else
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18419$as_echo "no" >&6; }
18420fi
18421
18422ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
d6974efa 18423if test "x$ac_cv_type_pid_t" = xyes; then :
067d23c9
KY
18424
18425else
18426
18427cat >>confdefs.h <<_ACEOF
18428#define pid_t int
18429_ACEOF
18430
18431fi
18432
18433for ac_header in vfork.h
18434do :
18435 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
d6974efa 18436if test "x$ac_cv_header_vfork_h" = xyes; then :
067d23c9
KY
18437 cat >>confdefs.h <<_ACEOF
18438#define HAVE_VFORK_H 1
18439_ACEOF
18440
18441fi
18442
18443done
18444
18445for ac_func in fork vfork
18446do :
18447 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18448ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2018939f 18449if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
067d23c9
KY
18450 cat >>confdefs.h <<_ACEOF
18451#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18452_ACEOF
18453
18454fi
18455done
18456
18457if test "x$ac_cv_func_fork" = xyes; then
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
18459$as_echo_n "checking for working fork... " >&6; }
d6974efa 18460if ${ac_cv_func_fork_works+:} false; then :
067d23c9
KY
18461 $as_echo_n "(cached) " >&6
18462else
18463 if test "$cross_compiling" = yes; then :
18464 ac_cv_func_fork_works=cross
18465else
18466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18467/* end confdefs.h. */
18468$ac_includes_default
18469int
18470main ()
18471{
18472
18473 /* By Ruediger Kuhlmann. */
18474 return fork () < 0;
18475
18476 ;
18477 return 0;
18478}
18479_ACEOF
18480if ac_fn_c_try_run "$LINENO"; then :
18481 ac_cv_func_fork_works=yes
18482else
18483 ac_cv_func_fork_works=no
18484fi
18485rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18486 conftest.$ac_objext conftest.beam conftest.$ac_ext
18487fi
18488
18489fi
18490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
18491$as_echo "$ac_cv_func_fork_works" >&6; }
18492
18493else
18494 ac_cv_func_fork_works=$ac_cv_func_fork
18495fi
18496if test "x$ac_cv_func_fork_works" = xcross; then
18497 case $host in
18498 *-*-amigaos* | *-*-msdosdjgpp*)
18499 # Override, as these systems have only a dummy fork() stub
18500 ac_cv_func_fork_works=no
18501 ;;
18502 *)
18503 ac_cv_func_fork_works=yes
18504 ;;
18505 esac
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
18507$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
18508fi
18509ac_cv_func_vfork_works=$ac_cv_func_vfork
18510if test "x$ac_cv_func_vfork" = xyes; then
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
18512$as_echo_n "checking for working vfork... " >&6; }
d6974efa 18513if ${ac_cv_func_vfork_works+:} false; then :
067d23c9
KY
18514 $as_echo_n "(cached) " >&6
18515else
18516 if test "$cross_compiling" = yes; then :
18517 ac_cv_func_vfork_works=cross
18518else
18519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18520/* end confdefs.h. */
18521/* Thanks to Paul Eggert for this test. */
18522$ac_includes_default
18523#include <sys/wait.h>
18524#ifdef HAVE_VFORK_H
18525# include <vfork.h>
18526#endif
18527/* On some sparc systems, changes by the child to local and incoming
18528 argument registers are propagated back to the parent. The compiler
18529 is told about this with #include <vfork.h>, but some compilers
18530 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18531 static variable whose address is put into a register that is
18532 clobbered by the vfork. */
18533static void
18534#ifdef __cplusplus
18535sparc_address_test (int arg)
18536# else
18537sparc_address_test (arg) int arg;
18538#endif
18539{
18540 static pid_t child;
18541 if (!child) {
18542 child = vfork ();
18543 if (child < 0) {
18544 perror ("vfork");
18545 _exit(2);
18546 }
18547 if (!child) {
18548 arg = getpid();
18549 write(-1, "", 0);
18550 _exit (arg);
18551 }
18552 }
18553}
18554
18555int
18556main ()
18557{
18558 pid_t parent = getpid ();
18559 pid_t child;
18560
18561 sparc_address_test (0);
18562
18563 child = vfork ();
18564
18565 if (child == 0) {
18566 /* Here is another test for sparc vfork register problems. This
18567 test uses lots of local variables, at least as many local
18568 variables as main has allocated so far including compiler
18569 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18570 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18571 reuse the register of parent for one of the local variables,
18572 since it will think that parent can't possibly be used any more
18573 in this routine. Assigning to the local variable will thus
18574 munge parent in the parent process. */
18575 pid_t
18576 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18577 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18578 /* Convince the compiler that p..p7 are live; otherwise, it might
18579 use the same hardware register for all 8 local variables. */
18580 if (p != p1 || p != p2 || p != p3 || p != p4
18581 || p != p5 || p != p6 || p != p7)
18582 _exit(1);
18583
18584 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18585 from child file descriptors. If the child closes a descriptor
18586 before it execs or exits, this munges the parent's descriptor
18587 as well. Test for this by closing stdout in the child. */
18588 _exit(close(fileno(stdout)) != 0);
18589 } else {
18590 int status;
18591 struct stat st;
18592
18593 while (wait(&status) != child)
18594 ;
18595 return (
18596 /* Was there some problem with vforking? */
18597 child < 0
18598
18599 /* Did the child fail? (This shouldn't happen.) */
18600 || status
18601
18602 /* Did the vfork/compiler bug occur? */
18603 || parent != getpid()
18604
18605 /* Did the file descriptor bug occur? */
18606 || fstat(fileno(stdout), &st) != 0
18607 );
18608 }
18609}
18610_ACEOF
18611if ac_fn_c_try_run "$LINENO"; then :
18612 ac_cv_func_vfork_works=yes
18613else
18614 ac_cv_func_vfork_works=no
18615fi
18616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18617 conftest.$ac_objext conftest.beam conftest.$ac_ext
18618fi
18619
18620fi
18621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
18622$as_echo "$ac_cv_func_vfork_works" >&6; }
18623
18624fi;
18625if test "x$ac_cv_func_fork_works" = xcross; then
18626 ac_cv_func_vfork_works=$ac_cv_func_vfork
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
18628$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
18629fi
18630
18631if test "x$ac_cv_func_vfork_works" = xyes; then
18632
18633$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
18634
18635else
18636
18637$as_echo "#define vfork fork" >>confdefs.h
18638
18639fi
18640if test "x$ac_cv_func_fork_works" = xyes; then
18641
18642$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
18643
18644fi
18645
18646
18647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
18648$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
d6974efa 18649if ${emacs_cv_langinfo_codeset+:} false; then :
067d23c9
KY
18650 $as_echo_n "(cached) " >&6
18651else
18652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18653/* end confdefs.h. */
18654#include <langinfo.h>
18655int
18656main ()
18657{
18658char* cs = nl_langinfo(CODESET);
18659 ;
18660 return 0;
18661}
18662_ACEOF
18663if ac_fn_c_try_link "$LINENO"; then :
18664 emacs_cv_langinfo_codeset=yes
18665else
18666 emacs_cv_langinfo_codeset=no
18667fi
18668rm -f core conftest.err conftest.$ac_objext \
18669 conftest$ac_exeext conftest.$ac_ext
18670
18671fi
18672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
18673$as_echo "$emacs_cv_langinfo_codeset" >&6; }
18674if test $emacs_cv_langinfo_codeset = yes; then
18675
18676$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
18677
18678fi
18679
18680ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
d6974efa 18681if test "x$ac_cv_type_size_t" = xyes; then :
067d23c9
KY
18682
18683cat >>confdefs.h <<_ACEOF
18684#define HAVE_SIZE_T 1
18685_ACEOF
18686
18687
18688fi
18689
18690
18691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
18692$as_echo_n "checking for mbstate_t... " >&6; }
d6974efa 18693if ${ac_cv_type_mbstate_t+:} false; then :
067d23c9
KY
18694 $as_echo_n "(cached) " >&6
18695else
18696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18697/* end confdefs.h. */
18698$ac_includes_default
18699# include <wchar.h>
18700int
18701main ()
18702{
18703mbstate_t x; return sizeof x;
18704 ;
18705 return 0;
18706}
18707_ACEOF
18708if ac_fn_c_try_compile "$LINENO"; then :
18709 ac_cv_type_mbstate_t=yes
18710else
18711 ac_cv_type_mbstate_t=no
18712fi
18713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18714fi
18715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
18716$as_echo "$ac_cv_type_mbstate_t" >&6; }
18717 if test $ac_cv_type_mbstate_t = yes; then
18718
18719$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
18720
18721 else
18722
18723$as_echo "#define mbstate_t int" >>confdefs.h
18724
18725 fi
18726
067d23c9
KY
18727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
18728$as_echo_n "checking for C restricted array declarations... " >&6; }
d6974efa 18729if ${emacs_cv_c_restrict_arr+:} false; then :
067d23c9
KY
18730 $as_echo_n "(cached) " >&6
18731else
18732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18733/* end confdefs.h. */
18734void fred (int x[__restrict]);
18735int
18736main ()
18737{
18738
18739 ;
18740 return 0;
18741}
18742_ACEOF
18743if ac_fn_c_try_compile "$LINENO"; then :
18744 emacs_cv_c_restrict_arr=yes
18745else
18746 emacs_cv_c_restrict_arr=no
18747fi
18748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18749fi
18750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
18751$as_echo "$emacs_cv_c_restrict_arr" >&6; }
18752if test "$emacs_cv_c_restrict_arr" = yes; then
18753
18754$as_echo "#define __restrict_arr __restrict" >>confdefs.h
18755
18756fi
18757
18758
18759
18760# Set up the CFLAGS for real compilation, so we can substitute it.
18761CFLAGS="$REAL_CFLAGS"
18762CPPFLAGS="$REAL_CPPFLAGS"
18763
18764## Hack to detect a buggy GCC version.
18765if test "x$GCC" = xyes \
18766 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
18767 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
18768 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
2018939f 18769 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
067d23c9
KY
18770fi
18771
16fab143 18772version=$PACKAGE_VERSION
067d23c9
KY
18773
18774### Specify what sort of things we'll be editing into Makefile and config.h.
18775### Use configuration here uncanonicalized to avoid exceeding size limits.
18776
18777
18778## Unused?
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
18800## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
18801## end of LIBX_BASE, but nothing ever set it.
18802
18803
18804
18805
18806## Used in lwlib/Makefile.in.
18807
d6a003a8
AS
18808if test -n "${machfile}"; then
18809 M_FILE="\$(srcdir)/${machfile}"
18810else
18811 M_FILE=
18812fi
18813S_FILE="\$(srcdir)/${opsysfile}"
067d23c9
KY
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
067d23c9
KY
18824cat >>confdefs.h <<_ACEOF
18825#define EMACS_CONFIGURATION "${canonical}"
18826_ACEOF
18827
18828
18829cat >>confdefs.h <<_ACEOF
18830#define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
18831_ACEOF
18832
d6a003a8 18833if test -n "$machfile"; then
067d23c9
KY
18834
18835cat >>confdefs.h <<_ACEOF
18836#define config_machfile "${machfile}"
18837_ACEOF
18838
d6a003a8 18839fi
067d23c9
KY
18840
18841cat >>confdefs.h <<_ACEOF
18842#define config_opsysfile "${opsysfile}"
18843_ACEOF
18844
18845
18846XMENU_OBJ=
18847XOBJ=
18848FONT_OBJ=
18849if test "${HAVE_X_WINDOWS}" = "yes" ; then
18850
18851$as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
18852
18853 XMENU_OBJ=xmenu.o
18854 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
18855 FONT_OBJ=xfont.o
18856 if test "$HAVE_XFT" = "yes"; then
18857 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
18858 elif test "$HAVE_FREETYPE" = "yes"; then
18859 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
18860 fi
18861
18862fi
18863
18864
18865
18866
18867WIDGET_OBJ=
18868MOTIF_LIBW=
18869if test "${USE_X_TOOLKIT}" != "none" ; then
18870 WIDGET_OBJ=widget.o
18871
18872$as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
18873
18874 if test "${USE_X_TOOLKIT}" = "LUCID"; then
18875
18876$as_echo "#define USE_LUCID 1" >>confdefs.h
18877
18878 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
18879
18880$as_echo "#define USE_MOTIF 1" >>confdefs.h
18881
18882 MOTIF_LIBW=-lXm
18883 case "$opsys" in
18884 gnu-linux)
18885 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
18886 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
18887 ;;
18888
18889 unixware)
18890 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
18891 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
18892 MOTIF_LIBW="MOTIF_LIBW -lXimp"
18893 ;;
18894
18895 aix4-2)
18896 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
18897 MOTIF_LIBW="$MOTIF_LIBW -li18n"
18898 ;;
18899 esac
18900 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
18901 fi
18902fi
18903
18904
18905TOOLKIT_LIBW=
18906case "$USE_X_TOOLKIT" in
18907 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
18908 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
18909 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
18910esac
18911
18912
18913if test "$USE_X_TOOLKIT" = "none"; then
18914 LIBXT_OTHER="\$(LIBXSM)"
18915 OLDXMENU_TARGET="really-oldXMenu"
18916else
18917 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
18918 OLDXMENU_TARGET="really-lwlib"
18919fi
18920
18921
18922## The X Menu stuff is present in the X10 distribution, but missing
18923## from X11. If we have X10, just use the installed library;
18924## otherwise, use our own copy.
18925if test "${HAVE_X11}" = "yes" ; then
18926
18927$as_echo "#define HAVE_X11 1" >>confdefs.h
18928
18929
18930 if test "$USE_X_TOOLKIT" = "none"; then
18931 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
18932 else
18933 OLDXMENU="\${lwlibdir}/liblw.a"
18934 fi
18935 LIBXMENU="\$(OLDXMENU)"
18936 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
18937 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
18938else
18939 ## For a syntactically valid Makefile; not actually used for anything.
18940 ## See comments in src/Makefile.in.
18941 OLDXMENU=nothing
18942 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
18943 if test "${HAVE_X_WINDOWS}" = "yes"; then
18944 LIBXMENU="-lXMenu"
18945 else
18946 LIBXMENU=
18947 fi
18948 LIBX_OTHER=
18949 OLDXMENU_DEPS=
18950fi
18951
18952if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
18953 OLDXMENU_TARGET=
18954 OLDXMENU=nothing
18955 LIBXMENU=
18956 OLDXMENU_DEPS=
18957fi
18958
18959
18960
18961
18962
18963
18964
18965if test "${HAVE_MENUS}" = "yes" ; then
18966
18967$as_echo "#define HAVE_MENUS 1" >>confdefs.h
18968
18969fi
18970
18971if test "${GNU_MALLOC}" = "yes" ; then
18972
18973$as_echo "#define GNU_MALLOC 1" >>confdefs.h
18974
18975fi
18976
18977RALLOC_OBJ=
18978if test "${REL_ALLOC}" = "yes" ; then
18979
18980$as_echo "#define REL_ALLOC 1" >>confdefs.h
18981
18982
18983 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
18984fi
18985
18986
18987if test "$opsys" = "cygwin"; then
18988 CYGWIN_OBJ="sheap.o"
18989 ## Cygwin differs because of its unexec().
18990 PRE_ALLOC_OBJ=
18991 POST_ALLOC_OBJ=lastfile.o
18992else
18993 CYGWIN_OBJ=
18994 PRE_ALLOC_OBJ=lastfile.o
18995 POST_ALLOC_OBJ=
18996fi
18997
18998
18999
19000
19001
19002case "$opsys" in
19003 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
19004
19005 darwin)
19006 ## The -headerpad option tells ld (see man page) to leave room at the
19007 ## end of the header for adding load commands. Needed for dumping.
19008 ## 0x690 is the total size of 30 segment load commands (at 56
19009 ## each); under Cocoa 31 commands are required.
19010 if test "$HAVE_NS" = "yes"; then
19011 libs_nsgui="-framework AppKit"
19012 headerpad_extra=6C8
19013 else
19014 libs_nsgui=
19015 headerpad_extra=690
19016 fi
19017 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
19018
19019 ## This is here because src/Makefile.in did some extra fiddling around
19020 ## with LD_SWITCH_SYSTEM. The cpp logic was:
19021 ## #ifndef LD_SWITCH_SYSTEM
19022 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
19023 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
19024 ## not using gcc, darwin system not on an alpha (ie darwin, since
19025 ## darwin + alpha does not occur).
19026 ## Because this was done in src/Makefile.in, the resulting part of
19027 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
19028 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
19029 ## rather than LD_SWITCH_SYSTEM.
19030 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
19031 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
19032 ;;
19033
19034 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
19035 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
19036 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
19037 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
19038 ## had different values in configure (in ac_link) and src/Makefile.in.
19039 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
19040 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
19041
19042 *) LD_SWITCH_SYSTEM_TEMACS= ;;
19043esac
19044
19045if test "$NS_IMPL_GNUSTEP" = "yes"; then
19046 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
19047fi
19048
19049
19050
19051
19052LD_FIRSTFLAG=
19053ORDINARY_LINK=
19054case "$opsys" in
19055 ## gnu: GNU needs its own crt0.
19056 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
19057
19058 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
19059 ## library search parth, i.e. it won't search /usr/lib for libc and
19060 ## friends. Using -nostartfiles instead avoids this problem, and
19061 ## will also work on earlier NetBSD releases.
19062 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
19063
19064 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
19065 ## MkLinux/LinuxPPC needs this.
19066 ## ibms390x only supports opsys = gnu-linux so it can be added here.
19067 gnu-*)
19068 case "$machine" in
19069 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
19070 esac
19071 ;;
19072esac
19073
19074
19075if test "x$ORDINARY_LINK" = "xyes"; then
19076
19077 LD_FIRSTFLAG=""
19078
19079$as_echo "#define ORDINARY_LINK 1" >>confdefs.h
19080
19081
19082## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
19083## freebsd, gnu-* not on macppc|ibms390x.
19084elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
19085
19086 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
19087 ## places that are difficult to figure out at make time. Fortunately,
19088 ## these same versions allow you to pass arbitrary flags on to the
19089 ## linker, so there is no reason not to use it as a linker.
19090 ##
19091 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
19092 ## searching for libraries in its internal directories, so we have to
19093 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
19094 LD_FIRSTFLAG="-nostdlib"
19095fi
19096
19097## FIXME? What setting of EDIT_LDFLAGS should this have?
19098test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
19099
19100
19101
19102
19103## FIXME? The logic here is not precisely the same as that above.
19104## There is no check here for a pre-defined LD_FIRSTFLAG.
19105## Should we only be setting LIB_GCC if LD ~ -nostdlib?
19106LIB_GCC=
19107if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
19108
19109 case "$opsys" in
19110 freebsd|netbsd|openbsd) LIB_GCC= ;;
19111
19112 gnu-*)
19113 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
19114 ## build on ARM EABI under GNU/Linux. (Bug#5518)
d6a003a8
AS
19115 case $host_cpu in
19116 arm*)
067d23c9 19117 LIB_GCC="-lgcc_s"
d6a003a8
AS
19118 ;;
19119 *)
067d23c9
KY
19120 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
19121 ## immediately undefine it again and redefine it to empty.
19122 ## Was the C_SWITCH_X_SITE part really necessary?
19123## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
19124 LIB_GCC=
d6a003a8
AS
19125 ;;
19126 esac
067d23c9
KY
19127 ;;
19128
19129 ## Ask GCC where to find libgcc.a.
19130 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
19131 esac
19132fi
19133
19134
19135TOOLTIP_SUPPORT=
19136WINDOW_SUPPORT=
19137## If we're using X11/GNUstep, define some consequences.
19138if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
19139
19140$as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
19141
19142
19143$as_echo "#define HAVE_MOUSE 1" >>confdefs.h
19144
19145 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
19146 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
19147
19148 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
19149 test "$HAVE_X_WINDOWS" = "yes" && \
19150 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
19151
19152fi
19153
19154
19155
19156
19157
19158
19159
19160#### Report on what we decided to do.
19161#### Report GTK as a toolkit, even if it doesn't use Xt.
19162#### It makes printing result more understandable as using GTK sets
19163#### toolkit_scroll_bars to yes by default.
19164if test "${HAVE_GTK}" = "yes"; then
19165 USE_X_TOOLKIT=GTK
19166fi
19167
2b7f50d8
AS
19168and_machfile=
19169if test -n "$machfile"; then
19170 and_machfile=" and \`${machfile}'"
19171fi
19172
067d23c9
KY
19173echo "
19174Configured for \`${canonical}'.
19175
19176 Where should the build process find the source code? ${srcdir}
19177 What operating system and machine description files should Emacs use?
2b7f50d8 19178 \`${opsysfile}'${and_machfile}
067d23c9
KY
19179 What compiler should emacs be built with? ${CC} ${CFLAGS}
19180 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
19181 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
19182 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
19183 What window system should Emacs use? ${window_system}
19184 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
19185
19186if test -n "${x_includes}"; then
19187echo " Where do we find X Windows header files? ${x_includes}"
19188else
19189echo " Where do we find X Windows header files? Standard dirs"
19190fi
19191if test -n "${x_libraries}"; then
19192echo " Where do we find X Windows libraries? ${x_libraries}"
19193else
19194echo " Where do we find X Windows libraries? Standard dirs"
19195fi
19196
19197echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
19198echo " Does Emacs use -lXpm? ${HAVE_XPM}"
19199echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
19200echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
19201echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
19202echo " Does Emacs use -lpng? ${HAVE_PNG}"
19203echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
19204echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
19205
19206echo " Does Emacs use -lgpm? ${HAVE_GPM}"
19207echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
19208echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
19209echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
19210echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
19211echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
19212
19213echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
19214echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
19215echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
19216echo " Does Emacs use -lxft? ${HAVE_XFT}"
19217
19218echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
19219echo
19220
19221if test $USE_XASSERTS = yes; then
19222 echo " Compiling with asserts turned on."
19223 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
19224fi
19225
19226echo
19227
19228if test "$HAVE_NS" = "yes"; then
19229 echo
19230 echo "You must run \"make install\" in order to test the built application.
19231The installed application will go to nextstep/Emacs.app and can be
19232run or moved from there."
19233 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
19234 echo "The application will be fully self-contained."
19235 else
19236 echo "The lisp resources for the application will be installed under ${prefix}.
19237You may need to run \"make install\" with sudo. The application will fail
19238to run if these resources are not installed."
19239 fi
19240 echo
19241fi
19242
19243
19244# Remove any trailing slashes in these variables.
19245test "${prefix}" != NONE &&
19246 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
19247test "${exec_prefix}" != NONE &&
19248 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
19249
193770ee 19250ac_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
KY
19251
19252ac_config_commands="$ac_config_commands default"
19253
19254cat >confcache <<\_ACEOF
19255# This file is a shell script that caches the results of configure
19256# tests run on this system so they can be shared between configure
19257# scripts and configure runs, see configure's option --config-cache.
19258# It is not useful on other systems. If it contains results you don't
19259# want to keep, you may remove or edit it.
19260#
19261# config.status only pays attention to the cache file if you give it
19262# the --recheck option to rerun configure.
19263#
19264# `ac_cv_env_foo' variables (set or unset) will be overridden when
19265# loading this file, other *unset* `ac_cv_foo' will be assigned the
19266# following values.
19267
19268_ACEOF
19269
19270# The following way of writing the cache mishandles newlines in values,
19271# but we know of no workaround that is simple, portable, and efficient.
19272# So, we kill variables containing newlines.
19273# Ultrix sh set writes to stderr and can't be redirected directly,
19274# and sets the high bit in the cache file unless we assign to the vars.
19275(
19276 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19277 eval ac_val=\$$ac_var
19278 case $ac_val in #(
19279 *${as_nl}*)
19280 case $ac_var in #(
19281 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19282$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19283 esac
19284 case $ac_var in #(
19285 _ | IFS | as_nl) ;; #(
19286 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19287 *) { eval $ac_var=; unset $ac_var;} ;;
19288 esac ;;
19289 esac
19290 done
19291
19292 (set) 2>&1 |
19293 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19294 *${as_nl}ac_space=\ *)
19295 # `set' does not quote correctly, so add quotes: double-quote
19296 # substitution turns \\\\ into \\, and sed turns \\ into \.
19297 sed -n \
19298 "s/'/'\\\\''/g;
19299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19300 ;; #(
19301 *)
19302 # `set' quotes correctly as required by POSIX, so do not add quotes.
19303 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19304 ;;
19305 esac |
19306 sort
19307) |
19308 sed '
19309 /^ac_cv_env_/b end
19310 t clear
19311 :clear
19312 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19313 t end
19314 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19315 :end' >>confcache
19316if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19317 if test -w "$cache_file"; then
d6974efa 19318 if test "x$cache_file" != "x/dev/null"; then
067d23c9
KY
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19320$as_echo "$as_me: updating cache $cache_file" >&6;}
d6974efa
PE
19321 if test ! -f "$cache_file" || test -h "$cache_file"; then
19322 cat confcache >"$cache_file"
19323 else
19324 case $cache_file in #(
19325 */* | ?:*)
19326 mv -f confcache "$cache_file"$$ &&
19327 mv -f "$cache_file"$$ "$cache_file" ;; #(
19328 *)
19329 mv -f confcache "$cache_file" ;;
19330 esac
19331 fi
19332 fi
067d23c9
KY
19333 else
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19335$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19336 fi
19337fi
19338rm -f confcache
19339
19340test "x$prefix" = xNONE && prefix=$ac_default_prefix
19341# Let make expand exec_prefix.
19342test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19343
19344DEFS=-DHAVE_CONFIG_H
19345
19346ac_libobjs=
19347ac_ltlibobjs=
2018939f 19348U=
067d23c9
KY
19349for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19350 # 1. Remove the extension, and $U if already installed.
19351 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19352 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19353 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19354 # will be set to the directory where LIBOBJS objects are built.
19355 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19356 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19357done
19358LIBOBJS=$ac_libobjs
19359
19360LTLIBOBJS=$ac_ltlibobjs
19361
19362
743c80a7
PE
19363 if test -n "$EXEEXT"; then
19364 am__EXEEXT_TRUE=
19365 am__EXEEXT_FALSE='#'
19366else
19367 am__EXEEXT_TRUE='#'
19368 am__EXEEXT_FALSE=
19369fi
19370
19371if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19372 as_fn_error $? "conditional \"AMDEP\" was never defined.
19373Usually this means the macro was only invoked conditionally." "$LINENO" 5
19374fi
19375if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19376 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19377Usually this means the macro was only invoked conditionally." "$LINENO" 5
19378fi
19379
19380if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19381 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
19382Usually this means the macro was only invoked conditionally." "$LINENO" 5
19383fi
19384
942f733f 19385
743c80a7
PE
19386 gl_libobjs=
19387 gl_ltlibobjs=
19388 if test -n "$gl_LIBOBJS"; then
19389 # Remove the extension.
19390 sed_drop_objext='s/\.o$//;s/\.obj$//'
19391 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19392 gl_libobjs="$gl_libobjs $i.$ac_objext"
19393 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
19394 done
19395 fi
19396 gl_LIBOBJS=$gl_libobjs
19397
19398 gl_LTLIBOBJS=$gl_ltlibobjs
19399
19400
19401
19402 gltests_libobjs=
19403 gltests_ltlibobjs=
19404 if test -n "$gltests_LIBOBJS"; then
19405 # Remove the extension.
19406 sed_drop_objext='s/\.o$//;s/\.obj$//'
19407 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19408 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
19409 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
19410 done
19411 fi
19412 gltests_LIBOBJS=$gltests_libobjs
19413
19414 gltests_LTLIBOBJS=$gltests_ltlibobjs
19415
067d23c9
KY
19416
19417
d6974efa 19418: "${CONFIG_STATUS=./config.status}"
067d23c9
KY
19419ac_write_fail=0
19420ac_clean_files_save=$ac_clean_files
19421ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19422{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19423$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19424as_write_fail=0
19425cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19426#! $SHELL
19427# Generated by $as_me.
19428# Run this file to recreate the current configuration.
19429# Compiler output produced by configure, useful for debugging
19430# configure, is in config.log if it exists.
19431
19432debug=false
19433ac_cs_recheck=false
19434ac_cs_silent=false
19435
19436SHELL=\${CONFIG_SHELL-$SHELL}
19437export SHELL
19438_ASEOF
19439cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19440## -------------------- ##
19441## M4sh Initialization. ##
19442## -------------------- ##
19443
19444# Be more Bourne compatible
19445DUALCASE=1; export DUALCASE # for MKS sh
19446if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19447 emulate sh
19448 NULLCMD=:
19449 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19450 # is contrary to our usage. Disable this feature.
19451 alias -g '${1+"$@"}'='"$@"'
19452 setopt NO_GLOB_SUBST
19453else
19454 case `(set -o) 2>/dev/null` in #(
19455 *posix*) :
19456 set -o posix ;; #(
19457 *) :
19458 ;;
19459esac
19460fi
19461
19462
19463as_nl='
19464'
19465export as_nl
19466# Printing a long string crashes Solaris 7 /usr/bin/printf.
19467as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19468as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19469as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19470# Prefer a ksh shell builtin over an external printf program on Solaris,
19471# but without wasting forks for bash or zsh.
19472if test -z "$BASH_VERSION$ZSH_VERSION" \
19473 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19474 as_echo='print -r --'
19475 as_echo_n='print -rn --'
19476elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19477 as_echo='printf %s\n'
19478 as_echo_n='printf %s'
19479else
19480 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19481 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19482 as_echo_n='/usr/ucb/echo -n'
19483 else
19484 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19485 as_echo_n_body='eval
19486 arg=$1;
19487 case $arg in #(
19488 *"$as_nl"*)
19489 expr "X$arg" : "X\\(.*\\)$as_nl";
19490 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19491 esac;
19492 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19493 '
19494 export as_echo_n_body
19495 as_echo_n='sh -c $as_echo_n_body as_echo'
19496 fi
19497 export as_echo_body
19498 as_echo='sh -c $as_echo_body as_echo'
19499fi
19500
19501# The user is always right.
19502if test "${PATH_SEPARATOR+set}" != set; then
19503 PATH_SEPARATOR=:
19504 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19505 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19506 PATH_SEPARATOR=';'
19507 }
19508fi
19509
19510
19511# IFS
19512# We need space, tab and new line, in precisely that order. Quoting is
19513# there to prevent editors from complaining about space-tab.
19514# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19515# splitting by setting IFS to empty value.)
19516IFS=" "" $as_nl"
19517
19518# Find who we are. Look in the path if we contain no directory separator.
d6974efa 19519as_myself=
067d23c9
KY
19520case $0 in #((
19521 *[\\/]* ) as_myself=$0 ;;
19522 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19523for as_dir in $PATH
19524do
19525 IFS=$as_save_IFS
19526 test -z "$as_dir" && as_dir=.
19527 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19528 done
19529IFS=$as_save_IFS
19530
19531 ;;
19532esac
19533# We did not find ourselves, most probably we were run as `sh COMMAND'
19534# in which case we are not to be found in the path.
19535if test "x$as_myself" = x; then
19536 as_myself=$0
19537fi
19538if test ! -f "$as_myself"; then
19539 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19540 exit 1
19541fi
19542
19543# Unset variables that we do not need and which cause bugs (e.g. in
19544# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19545# suppresses any "Segmentation fault" message there. '((' could
19546# trigger a bug in pdksh 5.2.14.
19547for as_var in BASH_ENV ENV MAIL MAILPATH
19548do eval test x\${$as_var+set} = xset \
19549 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19550done
19551PS1='$ '
19552PS2='> '
19553PS4='+ '
19554
19555# NLS nuisances.
19556LC_ALL=C
19557export LC_ALL
19558LANGUAGE=C
19559export LANGUAGE
19560
19561# CDPATH.
19562(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19563
19564
2018939f
AS
19565# as_fn_error STATUS ERROR [LINENO LOG_FD]
19566# ----------------------------------------
067d23c9
KY
19567# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19568# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2018939f 19569# script with STATUS, using 1 if that was 0.
067d23c9
KY
19570as_fn_error ()
19571{
2018939f
AS
19572 as_status=$1; test $as_status -eq 0 && as_status=1
19573 if test "$4"; then
19574 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19575 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
067d23c9 19576 fi
2018939f 19577 $as_echo "$as_me: error: $2" >&2
067d23c9
KY
19578 as_fn_exit $as_status
19579} # as_fn_error
19580
19581
19582# as_fn_set_status STATUS
19583# -----------------------
19584# Set $? to STATUS, without forking.
19585as_fn_set_status ()
19586{
19587 return $1
19588} # as_fn_set_status
19589
19590# as_fn_exit STATUS
19591# -----------------
19592# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19593as_fn_exit ()
19594{
19595 set +e
19596 as_fn_set_status $1
19597 exit $1
19598} # as_fn_exit
19599
19600# as_fn_unset VAR
19601# ---------------
19602# Portably unset VAR.
19603as_fn_unset ()
19604{
19605 { eval $1=; unset $1;}
19606}
19607as_unset=as_fn_unset
19608# as_fn_append VAR VALUE
19609# ----------------------
19610# Append the text in VALUE to the end of the definition contained in VAR. Take
19611# advantage of any shell optimizations that allow amortized linear growth over
19612# repeated appends, instead of the typical quadratic growth present in naive
19613# implementations.
19614if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19615 eval 'as_fn_append ()
19616 {
19617 eval $1+=\$2
19618 }'
19619else
19620 as_fn_append ()
19621 {
19622 eval $1=\$$1\$2
19623 }
19624fi # as_fn_append
19625
19626# as_fn_arith ARG...
19627# ------------------
19628# Perform arithmetic evaluation on the ARGs, and store the result in the
19629# global $as_val. Take advantage of shells that can avoid forks. The arguments
19630# must be portable across $(()) and expr.
19631if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19632 eval 'as_fn_arith ()
19633 {
19634 as_val=$(( $* ))
19635 }'
19636else
19637 as_fn_arith ()
19638 {
19639 as_val=`expr "$@" || test $? -eq 1`
19640 }
19641fi # as_fn_arith
19642
19643
19644if expr a : '\(a\)' >/dev/null 2>&1 &&
19645 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19646 as_expr=expr
19647else
19648 as_expr=false
19649fi
19650
19651if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19652 as_basename=basename
19653else
19654 as_basename=false
19655fi
19656
19657if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19658 as_dirname=dirname
19659else
19660 as_dirname=false
19661fi
19662
19663as_me=`$as_basename -- "$0" ||
19664$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19665 X"$0" : 'X\(//\)$' \| \
19666 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19667$as_echo X/"$0" |
19668 sed '/^.*\/\([^/][^/]*\)\/*$/{
19669 s//\1/
19670 q
19671 }
19672 /^X\/\(\/\/\)$/{
19673 s//\1/
19674 q
19675 }
19676 /^X\/\(\/\).*/{
19677 s//\1/
19678 q
19679 }
19680 s/.*/./; q'`
19681
19682# Avoid depending upon Character Ranges.
19683as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19684as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19685as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19686as_cr_digits='0123456789'
19687as_cr_alnum=$as_cr_Letters$as_cr_digits
19688
19689ECHO_C= ECHO_N= ECHO_T=
19690case `echo -n x` in #(((((
19691-n*)
19692 case `echo 'xy\c'` in
19693 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19694 xy) ECHO_C='\c';;
19695 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19696 ECHO_T=' ';;
19697 esac;;
19698*)
19699 ECHO_N='-n';;
19700esac
19701
19702rm -f conf$$ conf$$.exe conf$$.file
19703if test -d conf$$.dir; then
19704 rm -f conf$$.dir/conf$$.file
19705else
19706 rm -f conf$$.dir
19707 mkdir conf$$.dir 2>/dev/null
19708fi
19709if (echo >conf$$.file) 2>/dev/null; then
19710 if ln -s conf$$.file conf$$ 2>/dev/null; then
19711 as_ln_s='ln -s'
19712 # ... but there are two gotchas:
19713 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19714 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19715 # In both cases, we have to default to `cp -p'.
19716 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19717 as_ln_s='cp -p'
19718 elif ln conf$$.file conf$$ 2>/dev/null; then
19719 as_ln_s=ln
19720 else
19721 as_ln_s='cp -p'
19722 fi
19723else
19724 as_ln_s='cp -p'
19725fi
19726rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19727rmdir conf$$.dir 2>/dev/null
19728
19729
19730# as_fn_mkdir_p
19731# -------------
19732# Create "$as_dir" as a directory, including parents if necessary.
19733as_fn_mkdir_p ()
19734{
19735
19736 case $as_dir in #(
19737 -*) as_dir=./$as_dir;;
19738 esac
19739 test -d "$as_dir" || eval $as_mkdir_p || {
19740 as_dirs=
19741 while :; do
19742 case $as_dir in #(
19743 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19744 *) as_qdir=$as_dir;;
19745 esac
19746 as_dirs="'$as_qdir' $as_dirs"
19747 as_dir=`$as_dirname -- "$as_dir" ||
19748$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19749 X"$as_dir" : 'X\(//\)[^/]' \| \
19750 X"$as_dir" : 'X\(//\)$' \| \
19751 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19752$as_echo X"$as_dir" |
19753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19754 s//\1/
19755 q
19756 }
19757 /^X\(\/\/\)[^/].*/{
19758 s//\1/
19759 q
19760 }
19761 /^X\(\/\/\)$/{
19762 s//\1/
19763 q
19764 }
19765 /^X\(\/\).*/{
19766 s//\1/
19767 q
19768 }
19769 s/.*/./; q'`
19770 test -d "$as_dir" && break
19771 done
19772 test -z "$as_dirs" || eval "mkdir $as_dirs"
2018939f 19773 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
067d23c9
KY
19774
19775
19776} # as_fn_mkdir_p
19777if mkdir -p . 2>/dev/null; then
19778 as_mkdir_p='mkdir -p "$as_dir"'
19779else
19780 test -d ./-p && rmdir ./-p
19781 as_mkdir_p=false
19782fi
19783
19784if test -x / >/dev/null 2>&1; then
19785 as_test_x='test -x'
19786else
19787 if ls -dL / >/dev/null 2>&1; then
19788 as_ls_L_option=L
19789 else
19790 as_ls_L_option=
19791 fi
19792 as_test_x='
19793 eval sh -c '\''
19794 if test -d "$1"; then
19795 test -d "$1/.";
19796 else
19797 case $1 in #(
19798 -*)set "./$1";;
19799 esac;
19800 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19801 ???[sx]*):;;*)false;;esac;fi
19802 '\'' sh
19803 '
19804fi
19805as_executable_p=$as_test_x
19806
19807# Sed expression to map a string onto a valid CPP name.
19808as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19809
19810# Sed expression to map a string onto a valid variable name.
19811as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19812
19813
19814exec 6>&1
19815## ----------------------------------- ##
19816## Main body of $CONFIG_STATUS script. ##
19817## ----------------------------------- ##
19818_ASEOF
19819test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19820
19821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19822# Save the log message, to keep $0 and so on meaningful, and to
19823# report actual input values of CONFIG_FILES etc. instead of their
19824# values after options handling.
19825ac_log="
19826This file was extended by emacs $as_me 24.0.50, which was
d6974efa 19827generated by GNU Autoconf 2.68. Invocation command line was
067d23c9
KY
19828
19829 CONFIG_FILES = $CONFIG_FILES
19830 CONFIG_HEADERS = $CONFIG_HEADERS
19831 CONFIG_LINKS = $CONFIG_LINKS
19832 CONFIG_COMMANDS = $CONFIG_COMMANDS
19833 $ $0 $@
19834
19835on `(hostname || uname -n) 2>/dev/null | sed 1q`
19836"
19837
19838_ACEOF
19839
19840case $ac_config_files in *"
19841"*) set x $ac_config_files; shift; ac_config_files=$*;;
19842esac
19843
19844case $ac_config_headers in *"
19845"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19846esac
19847
19848
19849cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19850# Files that config.status was made for.
19851config_files="$ac_config_files"
19852config_headers="$ac_config_headers"
19853config_commands="$ac_config_commands"
19854
19855_ACEOF
19856
19857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19858ac_cs_usage="\
19859\`$as_me' instantiates files and other configuration actions
19860from templates according to the current configuration. Unless the files
19861and actions are specified as TAGs, all are instantiated by default.
19862
19863Usage: $0 [OPTION]... [TAG]...
19864
19865 -h, --help print this help, then exit
19866 -V, --version print version number and configuration settings, then exit
19867 --config print configuration, then exit
19868 -q, --quiet, --silent
19869 do not print progress messages
19870 -d, --debug don't remove temporary files
19871 --recheck update $as_me by reconfiguring in the same conditions
19872 --file=FILE[:TEMPLATE]
19873 instantiate the configuration file FILE
19874 --header=FILE[:TEMPLATE]
19875 instantiate the configuration header FILE
19876
19877Configuration files:
19878$config_files
19879
19880Configuration headers:
19881$config_headers
19882
19883Configuration commands:
19884$config_commands
19885
19886Report bugs to the package provider."
19887
19888_ACEOF
19889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19890ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19891ac_cs_version="\\
19892emacs config.status 24.0.50
d6974efa 19893configured by $0, generated by GNU Autoconf 2.68,
067d23c9
KY
19894 with options \\"\$ac_cs_config\\"
19895
2018939f 19896Copyright (C) 2010 Free Software Foundation, Inc.
067d23c9
KY
19897This config.status script is free software; the Free Software Foundation
19898gives unlimited permission to copy, distribute and modify it."
19899
19900ac_pwd='$ac_pwd'
19901srcdir='$srcdir'
19902INSTALL='$INSTALL'
743c80a7
PE
19903MKDIR_P='$MKDIR_P'
19904AWK='$AWK'
067d23c9
KY
19905test -n "\$AWK" || AWK=awk
19906_ACEOF
19907
19908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19909# The default lists apply if the user does not specify any file.
19910ac_need_defaults=:
19911while test $# != 0
19912do
19913 case $1 in
2018939f 19914 --*=?*)
067d23c9
KY
19915 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19916 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19917 ac_shift=:
19918 ;;
2018939f
AS
19919 --*=)
19920 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19921 ac_optarg=
19922 ac_shift=:
19923 ;;
067d23c9
KY
19924 *)
19925 ac_option=$1
19926 ac_optarg=$2
19927 ac_shift=shift
19928 ;;
19929 esac
19930
19931 case $ac_option in
19932 # Handling of the options.
19933 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19934 ac_cs_recheck=: ;;
19935 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19936 $as_echo "$ac_cs_version"; exit ;;
19937 --config | --confi | --conf | --con | --co | --c )
19938 $as_echo "$ac_cs_config"; exit ;;
19939 --debug | --debu | --deb | --de | --d | -d )
19940 debug=: ;;
19941 --file | --fil | --fi | --f )
19942 $ac_shift
19943 case $ac_optarg in
19944 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
2018939f 19945 '') as_fn_error $? "missing file argument" ;;
067d23c9
KY
19946 esac
19947 as_fn_append CONFIG_FILES " '$ac_optarg'"
19948 ac_need_defaults=false;;
19949 --header | --heade | --head | --hea )
19950 $ac_shift
19951 case $ac_optarg in
19952 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19953 esac
19954 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19955 ac_need_defaults=false;;
19956 --he | --h)
19957 # Conflict between --help and --header
2018939f 19958 as_fn_error $? "ambiguous option: \`$1'
067d23c9
KY
19959Try \`$0 --help' for more information.";;
19960 --help | --hel | -h )
19961 $as_echo "$ac_cs_usage"; exit ;;
19962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19963 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19964 ac_cs_silent=: ;;
19965
19966 # This is an error.
2018939f 19967 -*) as_fn_error $? "unrecognized option: \`$1'
067d23c9
KY
19968Try \`$0 --help' for more information." ;;
19969
19970 *) as_fn_append ac_config_targets " $1"
19971 ac_need_defaults=false ;;
19972
19973 esac
19974 shift
19975done
19976
19977ac_configure_extra_args=
19978
19979if $ac_cs_silent; then
19980 exec 6>/dev/null
19981 ac_configure_extra_args="$ac_configure_extra_args --silent"
19982fi
19983
19984_ACEOF
19985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19986if \$ac_cs_recheck; then
19987 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19988 shift
19989 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19990 CONFIG_SHELL='$SHELL'
19991 export CONFIG_SHELL
19992 exec "\$@"
19993fi
19994
19995_ACEOF
19996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19997exec 5>>config.log
19998{
19999 echo
20000 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20001## Running $as_me. ##
20002_ASBOX
20003 $as_echo "$ac_log"
20004} >&5
20005
20006_ACEOF
20007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20008#
20009# INIT-COMMANDS
20010#
743c80a7 20011AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
067d23c9
KY
20012GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
20013
20014_ACEOF
20015
20016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20017
20018# Handling of arguments.
20019for ac_config_target in $ac_config_targets
20020do
20021 case $ac_config_target in
20022 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
743c80a7 20023 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
067d23c9 20024 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
743c80a7 20025 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
067d23c9
KY
20026 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
20027 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
20028 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
20029 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
20030 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
20031 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
20032 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20033 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
20034 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
20035 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
ea062854 20036 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
067d23c9
KY
20037 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20038
d6974efa 20039 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
067d23c9
KY
20040 esac
20041done
20042
20043
20044# If the user did not use the arguments to specify the items to instantiate,
20045# then the envvar interface is used. Set only those that are not.
20046# We use the long form for the default assignment because of an extremely
20047# bizarre bug on SunOS 4.1.3.
20048if $ac_need_defaults; then
20049 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20050 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20051 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20052fi
20053
20054# Have a temporary directory for convenience. Make it in the build tree
20055# simply because there is no reason against having it here, and in addition,
20056# creating and moving files from /tmp can sometimes cause problems.
20057# Hook for its removal unless debugging.
20058# Note that there is a small window in which the directory will not be cleaned:
20059# after its creation but before its name has been assigned to `$tmp'.
20060$debug ||
20061{
d6974efa 20062 tmp= ac_tmp=
067d23c9 20063 trap 'exit_status=$?
d6974efa
PE
20064 : "${ac_tmp:=$tmp}"
20065 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
067d23c9
KY
20066' 0
20067 trap 'as_fn_exit 1' 1 2 13 15
20068}
20069# Create a (secure) tmp directory for tmp files.
20070
20071{
20072 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d6974efa 20073 test -d "$tmp"
067d23c9
KY
20074} ||
20075{
20076 tmp=./conf$$-$RANDOM
20077 (umask 077 && mkdir "$tmp")
2018939f 20078} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
d6974efa 20079ac_tmp=$tmp
067d23c9
KY
20080
20081# Set up the scripts for CONFIG_FILES section.
20082# No need to generate them if there are no CONFIG_FILES.
20083# This happens for instance with `./config.status config.h'.
20084if test -n "$CONFIG_FILES"; then
20085
20086if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
20087 ac_cs_awk_getline=:
20088 ac_cs_awk_pipe_init=
20089 ac_cs_awk_read_file='
20090 while ((getline aline < (F[key])) > 0)
20091 print(aline)
20092 close(F[key])'
20093 ac_cs_awk_pipe_fini=
20094else
20095 ac_cs_awk_getline=false
20096 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
20097 ac_cs_awk_read_file='
20098 print "|#_!!_#|"
20099 print "cat " F[key] " &&"
20100 '$ac_cs_awk_pipe_init
20101 # The final `:' finishes the AND list.
20102 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
20103fi
20104ac_cr=`echo X | tr X '\015'`
20105# On cygwin, bash can eat \r inside `` if the user requested igncr.
20106# But we know of no other shell where ac_cr would be empty at this
20107# point, so we can use a bashism as a fallback.
20108if test "x$ac_cr" = x; then
20109 eval ac_cr=\$\'\\r\'
20110fi
20111ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20112if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
2018939f 20113 ac_cs_awk_cr='\\r'
067d23c9
KY
20114else
20115 ac_cs_awk_cr=$ac_cr
20116fi
20117
d6974efa 20118echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
067d23c9
KY
20119_ACEOF
20120
20121# Create commands to substitute file output variables.
20122{
20123 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d6974efa 20124 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
067d23c9
KY
20125 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
20126 echo "_ACAWK" &&
20127 echo "_ACEOF"
20128} >conf$$files.sh &&
20129. ./conf$$files.sh ||
2018939f 20130 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
20131rm -f conf$$files.sh
20132
20133{
20134 echo "cat >conf$$subs.awk <<_ACEOF" &&
20135 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20136 echo "_ACEOF"
20137} >conf$$subs.sh ||
2018939f
AS
20138 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20139ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
067d23c9
KY
20140ac_delim='%!_!# '
20141for ac_last_try in false false false false false :; do
20142 . ./conf$$subs.sh ||
2018939f 20143 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
20144
20145 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20146 if test $ac_delim_n = $ac_delim_num; then
20147 break
20148 elif $ac_last_try; then
2018939f 20149 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
20150 else
20151 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20152 fi
20153done
20154rm -f conf$$subs.sh
20155
20156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d6974efa 20157cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
067d23c9
KY
20158_ACEOF
20159sed -n '
20160h
20161s/^/S["/; s/!.*/"]=/
20162p
20163g
20164s/^[^!]*!//
20165:repl
20166t repl
20167s/'"$ac_delim"'$//
20168t delim
20169:nl
20170h
20171s/\(.\{148\}\)..*/\1/
20172t more1
20173s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20174p
20175n
20176b repl
20177:more1
20178s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20179p
20180g
20181s/.\{148\}//
20182t nl
20183:delim
20184h
20185s/\(.\{148\}\)..*/\1/
20186t more2
20187s/["\\]/\\&/g; s/^/"/; s/$/"/
20188p
20189b
20190:more2
20191s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20192p
20193g
20194s/.\{148\}//
20195t delim
20196' <conf$$subs.awk | sed '
20197/^[^""]/{
20198 N
20199 s/\n//
20200}
20201' >>$CONFIG_STATUS || ac_write_fail=1
20202rm -f conf$$subs.awk
20203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20204_ACAWK
d6974efa 20205cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
067d23c9
KY
20206 for (key in S) S_is_set[key] = 1
20207 FS = "\a"
20208 \$ac_cs_awk_pipe_init
20209}
20210{
20211 line = $ 0
20212 nfields = split(line, field, "@")
20213 substed = 0
20214 len = length(field[1])
20215 for (i = 2; i < nfields; i++) {
20216 key = field[i]
20217 keylen = length(key)
20218 if (S_is_set[key]) {
20219 value = S[key]
20220 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20221 len += length(value) + length(field[++i])
20222 substed = 1
20223 } else
20224 len += 1 + keylen
20225 }
20226 if (nfields == 3 && !substed) {
20227 key = field[2]
20228 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20229 \$ac_cs_awk_read_file
20230 next
20231 }
20232 }
20233 print line
20234}
20235\$ac_cs_awk_pipe_fini
20236_ACAWK
20237_ACEOF
20238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20239if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20240 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20241else
20242 cat
d6974efa 20243fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
2018939f 20244 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
067d23c9
KY
20245_ACEOF
20246
2018939f
AS
20247# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20248# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
067d23c9
KY
20249# trailing colons and then remove the whole line if VPATH becomes empty
20250# (actually we leave an empty line to preserve line numbers).
20251if test "x$srcdir" = x.; then
2018939f
AS
20252 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20253h
20254s///
20255s/^/:/
20256s/[ ]*$/:/
20257s/:\$(srcdir):/:/g
20258s/:\${srcdir}:/:/g
20259s/:@srcdir@:/:/g
20260s/^:*//
067d23c9 20261s/:*$//
2018939f
AS
20262x
20263s/\(=[ ]*\).*/\1/
20264G
20265s/\n//
067d23c9
KY
20266s/^[^=]*=[ ]*$//
20267}'
20268fi
20269
20270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20271fi # test -n "$CONFIG_FILES"
20272
20273# Set up the scripts for CONFIG_HEADERS section.
20274# No need to generate them if there are no CONFIG_HEADERS.
20275# This happens for instance with `./config.status Makefile'.
20276if test -n "$CONFIG_HEADERS"; then
d6974efa 20277cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
067d23c9
KY
20278BEGIN {
20279_ACEOF
20280
20281# Transform confdefs.h into an awk script `defines.awk', embedded as
20282# here-document in config.status, that substitutes the proper values into
20283# config.h.in to produce config.h.
20284
20285# Create a delimiter string that does not exist in confdefs.h, to ease
20286# handling of long lines.
20287ac_delim='%!_!# '
20288for ac_last_try in false false :; do
d6974efa
PE
20289 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20290 if test -z "$ac_tt"; then
067d23c9
KY
20291 break
20292 elif $ac_last_try; then
2018939f 20293 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
067d23c9
KY
20294 else
20295 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20296 fi
20297done
20298
20299# For the awk script, D is an array of macro values keyed by name,
20300# likewise P contains macro parameters if any. Preserve backslash
20301# newline sequences.
20302
20303ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20304sed -n '
20305s/.\{148\}/&'"$ac_delim"'/g
20306t rset
20307:rset
20308s/^[ ]*#[ ]*define[ ][ ]*/ /
20309t def
20310d
20311:def
20312s/\\$//
20313t bsnl
20314s/["\\]/\\&/g
20315s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20316D["\1"]=" \3"/p
20317s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20318d
20319:bsnl
20320s/["\\]/\\&/g
20321s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20322D["\1"]=" \3\\\\\\n"\\/p
20323t cont
20324s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20325t cont
20326d
20327:cont
20328n
20329s/.\{148\}/&'"$ac_delim"'/g
20330t clear
20331:clear
20332s/\\$//
20333t bsnlc
20334s/["\\]/\\&/g; s/^/"/; s/$/"/p
20335d
20336:bsnlc
20337s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20338b cont
20339' <confdefs.h | sed '
20340s/'"$ac_delim"'/"\\\
20341"/g' >>$CONFIG_STATUS || ac_write_fail=1
20342
20343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20344 for (key in D) D_is_set[key] = 1
20345 FS = "\a"
20346}
20347/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20348 line = \$ 0
20349 split(line, arg, " ")
20350 if (arg[1] == "#") {
20351 defundef = arg[2]
20352 mac1 = arg[3]
20353 } else {
20354 defundef = substr(arg[1], 2)
20355 mac1 = arg[2]
20356 }
20357 split(mac1, mac2, "(") #)
20358 macro = mac2[1]
20359 prefix = substr(line, 1, index(line, defundef) - 1)
20360 if (D_is_set[macro]) {
20361 # Preserve the white space surrounding the "#".
20362 print prefix "define", macro P[macro] D[macro]
20363 next
20364 } else {
20365 # Replace #undef with comments. This is necessary, for example,
20366 # in the case of _POSIX_SOURCE, which is predefined and required
20367 # on some systems where configure will not decide to define it.
20368 if (defundef == "undef") {
20369 print "/*", prefix defundef, macro, "*/"
20370 next
20371 }
20372 }
20373}
20374{ print }
20375_ACAWK
20376_ACEOF
20377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2018939f 20378 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
067d23c9
KY
20379fi # test -n "$CONFIG_HEADERS"
20380
20381
20382eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20383shift
20384for ac_tag
20385do
20386 case $ac_tag in
20387 :[FHLC]) ac_mode=$ac_tag; continue;;
20388 esac
20389 case $ac_mode$ac_tag in
20390 :[FHL]*:*);;
d6974efa 20391 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
067d23c9
KY
20392 :[FH]-) ac_tag=-:-;;
20393 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20394 esac
20395 ac_save_IFS=$IFS
20396 IFS=:
20397 set x $ac_tag
20398 IFS=$ac_save_IFS
20399 shift
20400 ac_file=$1
20401 shift
20402
20403 case $ac_mode in
20404 :L) ac_source=$1;;
20405 :[FH])
20406 ac_file_inputs=
20407 for ac_f
20408 do
20409 case $ac_f in
d6974efa 20410 -) ac_f="$ac_tmp/stdin";;
067d23c9
KY
20411 *) # Look for the file first in the build tree, then in the source tree
20412 # (if the path is not absolute). The absolute path cannot be DOS-style,
20413 # because $ac_f cannot contain `:'.
20414 test -f "$ac_f" ||
20415 case $ac_f in
20416 [\\/$]*) false;;
20417 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20418 esac ||
d6974efa 20419 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
067d23c9
KY
20420 esac
20421 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20422 as_fn_append ac_file_inputs " '$ac_f'"
20423 done
20424
20425 # Let's still pretend it is `configure' which instantiates (i.e., don't
20426 # use $as_me), people would be surprised to read:
20427 # /* config.h. Generated by config.status. */
20428 configure_input='Generated from '`
20429 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20430 `' by configure.'
20431 if test x"$ac_file" != x-; then
20432 configure_input="$ac_file. $configure_input"
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20434$as_echo "$as_me: creating $ac_file" >&6;}
20435 fi
20436 # Neutralize special characters interpreted by sed in replacement strings.
20437 case $configure_input in #(
20438 *\&* | *\|* | *\\* )
20439 ac_sed_conf_input=`$as_echo "$configure_input" |
20440 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20441 *) ac_sed_conf_input=$configure_input;;
20442 esac
20443
20444 case $ac_tag in
d6974efa
PE
20445 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20446 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
067d23c9
KY
20447 esac
20448 ;;
20449 esac
20450
20451 ac_dir=`$as_dirname -- "$ac_file" ||
20452$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20453 X"$ac_file" : 'X\(//\)[^/]' \| \
20454 X"$ac_file" : 'X\(//\)$' \| \
20455 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20456$as_echo X"$ac_file" |
20457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20458 s//\1/
20459 q
20460 }
20461 /^X\(\/\/\)[^/].*/{
20462 s//\1/
20463 q
20464 }
20465 /^X\(\/\/\)$/{
20466 s//\1/
20467 q
20468 }
20469 /^X\(\/\).*/{
20470 s//\1/
20471 q
20472 }
20473 s/.*/./; q'`
20474 as_dir="$ac_dir"; as_fn_mkdir_p
20475 ac_builddir=.
20476
20477case "$ac_dir" in
20478.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20479*)
20480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20481 # A ".." for each directory in $ac_dir_suffix.
20482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20483 case $ac_top_builddir_sub in
20484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20486 esac ;;
20487esac
20488ac_abs_top_builddir=$ac_pwd
20489ac_abs_builddir=$ac_pwd$ac_dir_suffix
20490# for backward compatibility:
20491ac_top_builddir=$ac_top_build_prefix
20492
20493case $srcdir in
20494 .) # We are building in place.
20495 ac_srcdir=.
20496 ac_top_srcdir=$ac_top_builddir_sub
20497 ac_abs_top_srcdir=$ac_pwd ;;
20498 [\\/]* | ?:[\\/]* ) # Absolute name.
20499 ac_srcdir=$srcdir$ac_dir_suffix;
20500 ac_top_srcdir=$srcdir
20501 ac_abs_top_srcdir=$srcdir ;;
20502 *) # Relative name.
20503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20504 ac_top_srcdir=$ac_top_build_prefix$srcdir
20505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20506esac
20507ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20508
20509
20510 case $ac_mode in
20511 :F)
20512 #
20513 # CONFIG_FILE
20514 #
20515
20516 case $INSTALL in
20517 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20518 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20519 esac
743c80a7
PE
20520 ac_MKDIR_P=$MKDIR_P
20521 case $MKDIR_P in
20522 [\\/$]* | ?:[\\/]* ) ;;
20523 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20524 esac
067d23c9
KY
20525_ACEOF
20526
20527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20528# If the template does not know about datarootdir, expand it.
20529# FIXME: This hack should be removed a few years after 2.60.
20530ac_datarootdir_hack=; ac_datarootdir_seen=
20531ac_sed_dataroot='
20532/datarootdir/ {
20533 p
20534 q
20535}
20536/@datadir@/p
20537/@docdir@/p
20538/@infodir@/p
20539/@localedir@/p
20540/@mandir@/p'
20541case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20542*datarootdir*) ac_datarootdir_seen=yes;;
20543*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20545$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20546_ACEOF
20547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20548 ac_datarootdir_hack='
20549 s&@datadir@&$datadir&g
20550 s&@docdir@&$docdir&g
20551 s&@infodir@&$infodir&g
20552 s&@localedir@&$localedir&g
20553 s&@mandir@&$mandir&g
20554 s&\\\${datarootdir}&$datarootdir&g' ;;
20555esac
20556_ACEOF
20557
20558# Neutralize VPATH when `$srcdir' = `.'.
20559# Shell code in configure.ac might set extrasub.
20560# FIXME: do we really want to maintain this feature?
20561cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20562ac_sed_extra="$ac_vpsub
20563$extrasub
20564_ACEOF
20565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20566:t
20567/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20568s|@configure_input@|$ac_sed_conf_input|;t t
20569s&@top_builddir@&$ac_top_builddir_sub&;t t
20570s&@top_build_prefix@&$ac_top_build_prefix&;t t
20571s&@srcdir@&$ac_srcdir&;t t
20572s&@abs_srcdir@&$ac_abs_srcdir&;t t
20573s&@top_srcdir@&$ac_top_srcdir&;t t
20574s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20575s&@builddir@&$ac_builddir&;t t
20576s&@abs_builddir@&$ac_abs_builddir&;t t
20577s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20578s&@INSTALL@&$ac_INSTALL&;t t
743c80a7 20579s&@MKDIR_P@&$ac_MKDIR_P&;t t
067d23c9
KY
20580$ac_datarootdir_hack
20581"
20582eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20583if $ac_cs_awk_getline; then
d6974efa 20584 $AWK -f "$ac_tmp/subs.awk"
067d23c9 20585else
d6974efa
PE
20586 $AWK -f "$ac_tmp/subs.awk" | $SHELL
20587fi \
20588 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
20589
20590test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d6974efa
PE
20591 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20592 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20593 "$ac_tmp/out"`; test -z "$ac_out"; } &&
067d23c9 20594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2018939f 20595which seems to be undefined. Please make sure it is defined" >&5
067d23c9 20596$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2018939f 20597which seems to be undefined. Please make sure it is defined" >&2;}
067d23c9 20598
d6974efa 20599 rm -f "$ac_tmp/stdin"
067d23c9 20600 case $ac_file in
d6974efa
PE
20601 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20602 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
067d23c9 20603 esac \
2018939f 20604 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
20605 ;;
20606 :H)
20607 #
20608 # CONFIG_HEADER
20609 #
20610 if test x"$ac_file" != x-; then
20611 {
20612 $as_echo "/* $configure_input */" \
d6974efa
PE
20613 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20614 } >"$ac_tmp/config.h" \
2018939f 20615 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d6974efa 20616 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
067d23c9
KY
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20618$as_echo "$as_me: $ac_file is unchanged" >&6;}
20619 else
20620 rm -f "$ac_file"
d6974efa 20621 mv "$ac_tmp/config.h" "$ac_file" \
2018939f 20622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
067d23c9
KY
20623 fi
20624 else
20625 $as_echo "/* $configure_input */" \
d6974efa 20626 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
2018939f 20627 || as_fn_error $? "could not create -" "$LINENO" 5
067d23c9 20628 fi
743c80a7
PE
20629# Compute "$ac_file"'s index in $config_headers.
20630_am_arg="$ac_file"
20631_am_stamp_count=1
20632for _am_header in $config_headers :; do
20633 case $_am_header in
20634 $_am_arg | $_am_arg:* )
20635 break ;;
20636 * )
20637 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20638 esac
20639done
20640echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20641$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20642 X"$_am_arg" : 'X\(//\)[^/]' \| \
20643 X"$_am_arg" : 'X\(//\)$' \| \
20644 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20645$as_echo X"$_am_arg" |
20646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20647 s//\1/
20648 q
20649 }
20650 /^X\(\/\/\)[^/].*/{
20651 s//\1/
20652 q
20653 }
20654 /^X\(\/\/\)$/{
20655 s//\1/
20656 q
20657 }
20658 /^X\(\/\).*/{
20659 s//\1/
20660 q
20661 }
20662 s/.*/./; q'`/stamp-h$_am_stamp_count
067d23c9
KY
20663 ;;
20664
20665 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20666$as_echo "$as_me: executing $ac_file commands" >&6;}
20667 ;;
20668 esac
20669
20670
20671 case $ac_file$ac_mode in
743c80a7
PE
20672 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20673 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20674 # are listed without --file. Let's play safe and only enable the eval
20675 # if we detect the quoting.
20676 case $CONFIG_FILES in
20677 *\'*) eval set x "$CONFIG_FILES" ;;
20678 *) set x $CONFIG_FILES ;;
20679 esac
20680 shift
20681 for mf
20682 do
20683 # Strip MF so we end up with the name of the file.
20684 mf=`echo "$mf" | sed -e 's/:.*$//'`
20685 # Check whether this is an Automake generated Makefile or not.
20686 # We used to match only the files named `Makefile.in', but
20687 # some people rename them; so instead we look at the file content.
20688 # Grep'ing the first line is not enough: some people post-process
20689 # each Makefile.in and add a new line on top of each file to say so.
20690 # Grep'ing the whole file is not good either: AIX grep has a line
20691 # limit of 2048, but all sed's we know have understand at least 4000.
20692 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20693 dirpart=`$as_dirname -- "$mf" ||
20694$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20695 X"$mf" : 'X\(//\)[^/]' \| \
20696 X"$mf" : 'X\(//\)$' \| \
20697 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20698$as_echo X"$mf" |
20699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20700 s//\1/
20701 q
20702 }
20703 /^X\(\/\/\)[^/].*/{
20704 s//\1/
20705 q
20706 }
20707 /^X\(\/\/\)$/{
20708 s//\1/
20709 q
20710 }
20711 /^X\(\/\).*/{
20712 s//\1/
20713 q
20714 }
20715 s/.*/./; q'`
20716 else
20717 continue
20718 fi
20719 # Extract the definition of DEPDIR, am__include, and am__quote
20720 # from the Makefile without running `make'.
20721 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20722 test -z "$DEPDIR" && continue
20723 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20724 test -z "am__include" && continue
20725 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20726 # When using ansi2knr, U may be empty or an underscore; expand it
20727 U=`sed -n 's/^U = //p' < "$mf"`
20728 # Find all dependency output files, they are included files with
20729 # $(DEPDIR) in their names. We invoke sed twice because it is the
20730 # simplest approach to changing $(DEPDIR) to its actual value in the
20731 # expansion.
20732 for file in `sed -n "
20733 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20734 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20735 # Make sure the directory exists.
20736 test -f "$dirpart/$file" && continue
20737 fdir=`$as_dirname -- "$file" ||
20738$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20739 X"$file" : 'X\(//\)[^/]' \| \
20740 X"$file" : 'X\(//\)$' \| \
20741 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20742$as_echo X"$file" |
20743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20744 s//\1/
20745 q
20746 }
20747 /^X\(\/\/\)[^/].*/{
20748 s//\1/
20749 q
20750 }
20751 /^X\(\/\/\)$/{
20752 s//\1/
20753 q
20754 }
20755 /^X\(\/\).*/{
20756 s//\1/
20757 q
20758 }
20759 s/.*/./; q'`
20760 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20761 # echo "creating $dirpart/$file"
20762 echo '# dummy' > "$dirpart/$file"
20763 done
20764 done
20765}
20766 ;;
067d23c9
KY
20767 "default":C)
20768
20769### Make the necessary directories, if they don't exist.
20770for dir in etc lisp ; do
20771 test -d ${dir} || mkdir ${dir}
20772done
20773
20774echo creating src/epaths.h
20775${MAKE-make} epaths-force
20776
20777if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
20778 echo creating src/.gdbinit
20779 echo source $srcdir/src/.gdbinit > src/.gdbinit
20780fi
20781
20782 ;;
20783
20784 esac
20785done # for ac_tag
20786
20787
20788as_fn_exit 0
20789_ACEOF
20790ac_clean_files=$ac_clean_files_save
20791
20792test $ac_write_fail = 0 ||
2018939f 20793 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
067d23c9
KY
20794
20795
20796# configure is writing to config.log, and then calls config.status.
20797# config.status does its own redirection, appending to config.log.
20798# Unfortunately, on DOS this fails, as config.log is still kept open
20799# by configure, so config.status won't be able to write to it; its
20800# output is simply discarded. So we exec the FD to /dev/null,
20801# effectively closing config.log, so it can be properly (re)opened and
20802# appended to by config.status. When coming back to configure, we
20803# need to make the FD available again.
20804if test "$no_create" != yes; then
20805 ac_cs_success=:
20806 ac_config_status_args=
20807 test "$silent" = yes &&
20808 ac_config_status_args="$ac_config_status_args --quiet"
20809 exec 5>/dev/null
20810 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20811 exec 5>>config.log
20812 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20813 # would make configure fail if this is the last instruction.
2018939f 20814 $ac_cs_success || as_fn_exit 1
067d23c9
KY
20815fi
20816if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20818$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20819fi
20820